From e1a428915450999701efe3a30b1458a92fa64777 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Fri, 16 Nov 2018 19:57:49 +0300 Subject: [PATCH] commit 2018-11-16 16:57:47.130932 --- charting_library/charting_library.min.js | 2 +- ... => ar-tv-chart.99e91cf53749c6852251.html} | 2 +- ...14f76e2f.js => 10.0b4b80ce7284d28083f7.js} | 2 +- ...95456f66.js => 13.87c51bb601702992e1dd.js} | 2 +- ...e0c75635.js => 15.d0280d7e7496e08f4962.js} | 6 +- ...1a99a7fad.js => 9.0f95ea8c401ed7b42af8.js} | 2 +- ...ds-property-pages.4650c8fe6629bba016a1.js} | 108 ++--- ... editobjectdialog.1a53a3b4104302264052.js} | 6 +- ...-date-dialog-impl.4e462a33aa18010573c8.js} | 28 +- ...ie-fallback-logos.58dc8877847b4dced0e4.js} | 2 +- ...=> lazy-jquery-ui.ca86274e39963e6b5b5f.js} | 10 +- ... => lazy-velocity.6843186d1d19426e2f3c.js} | 2 +- ...386.js => library.01b9186ecddcadea2011.js} | 448 +++++++++--------- ... => lt-pane-views.9ecc943f945b2fd4fad6.js} | 124 ++--- ... objecttreedialog.e2f61129ab1c8c59ca83.js} | 16 +- ...pertypagesfactory.88d1e4b5f0c82c2d9b43.js} | 2 +- ...-info-dialog-impl.1d95eab19af70ebdf07d.js} | 12 +- ...image-dialog-impl.45288e052b450c5e2d11.js} | 18 +- ...7b9.js => vendors.838cbe47eebe3eb9244f.js} | 77 ++- ... => cs-tv-chart.99e91cf53749c6852251.html} | 2 +- ... da_DK-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => de-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => el-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => en-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => es-tv-chart.99e91cf53749c6852251.html} | 2 +- ... et_EE-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => fa-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => fr-tv-chart.99e91cf53749c6852251.html} | 2 +- ... he_IL-tv-chart.99e91cf53749c6852251.html} | 2 +- ... hu_HU-tv-chart.99e91cf53749c6852251.html} | 2 +- ... id_ID-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => it-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => ja-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => ko-tv-chart.99e91cf53749c6852251.html} | 2 +- ... ms_MY-tv-chart.99e91cf53749c6852251.html} | 2 +- ... nl_NL-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => no-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => pl-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => pt-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => ro-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => ru-tv-chart.99e91cf53749c6852251.html} | 2 +- ... sk_SK-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => sv-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => th-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => tr-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => vi-tv-chart.99e91cf53749c6852251.html} | 2 +- ... => zh-tv-chart.99e91cf53749c6852251.html} | 2 +- ... zh_TW-tv-chart.99e91cf53749c6852251.html} | 2 +- 48 files changed, 463 insertions(+), 464 deletions(-) rename charting_library/static/{ar-tv-chart.1c7535a2aac5ec511ed5.html => ar-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/bundles/{10.ef75a963f37114f76e2f.js => 10.0b4b80ce7284d28083f7.js} (85%) rename charting_library/static/bundles/{13.23881782ce3895456f66.js => 13.87c51bb601702992e1dd.js} (96%) rename charting_library/static/bundles/{15.14e44c9fe762e0c75635.js => 15.d0280d7e7496e08f4962.js} (93%) rename charting_library/static/bundles/{9.8309436d1561a99a7fad.js => 9.0f95ea8c401ed7b42af8.js} (97%) rename charting_library/static/bundles/{ds-property-pages.1756b413f8f2d038f272.js => ds-property-pages.4650c8fe6629bba016a1.js} (94%) rename charting_library/static/bundles/{editobjectdialog.e76ba6bc652064d1ce6a.js => editobjectdialog.1a53a3b4104302264052.js} (94%) rename charting_library/static/bundles/{go-to-date-dialog-impl.39b794932de89664f82f.js => go-to-date-dialog-impl.4e462a33aa18010573c8.js} (89%) rename charting_library/static/bundles/{ie-fallback-logos.8319ee6d7ee230348d2d.js => ie-fallback-logos.58dc8877847b4dced0e4.js} (93%) rename charting_library/static/bundles/{lazy-jquery-ui.be361390d55b87a2a2f2.js => lazy-jquery-ui.ca86274e39963e6b5b5f.js} (98%) rename charting_library/static/bundles/{lazy-velocity.832705322dfa540785f6.js => lazy-velocity.6843186d1d19426e2f3c.js} (99%) rename charting_library/static/bundles/{library.4b362457b3a7eceed386.js => library.01b9186ecddcadea2011.js} (97%) rename charting_library/static/bundles/{lt-pane-views.b3eda7684d6f1c5952d0.js => lt-pane-views.9ecc943f945b2fd4fad6.js} (94%) rename charting_library/static/bundles/{objecttreedialog.33adfe386aa3612bb60e.js => objecttreedialog.e2f61129ab1c8c59ca83.js} (93%) rename charting_library/static/bundles/{propertypagesfactory.37bd38e8744b0cc04a07.js => propertypagesfactory.88d1e4b5f0c82c2d9b43.js} (92%) rename charting_library/static/bundles/{symbol-info-dialog-impl.f3cf4493236b7285e923.js => symbol-info-dialog-impl.1d95eab19af70ebdf07d.js} (89%) rename charting_library/static/bundles/{take-chart-image-dialog-impl.3c3cf6c1f317decbf3b4.js => take-chart-image-dialog-impl.45288e052b450c5e2d11.js} (88%) rename charting_library/static/bundles/{vendors.181dfaa7faeff71be7b9.js => vendors.838cbe47eebe3eb9244f.js} (96%) rename charting_library/static/{cs-tv-chart.1c7535a2aac5ec511ed5.html => cs-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{da_DK-tv-chart.1c7535a2aac5ec511ed5.html => da_DK-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{de-tv-chart.1c7535a2aac5ec511ed5.html => de-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{el-tv-chart.1c7535a2aac5ec511ed5.html => el-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{en-tv-chart.1c7535a2aac5ec511ed5.html => en-tv-chart.99e91cf53749c6852251.html} (98%) rename charting_library/static/{es-tv-chart.1c7535a2aac5ec511ed5.html => es-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{et_EE-tv-chart.1c7535a2aac5ec511ed5.html => et_EE-tv-chart.99e91cf53749c6852251.html} (98%) rename charting_library/static/{fa-tv-chart.1c7535a2aac5ec511ed5.html => fa-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{fr-tv-chart.1c7535a2aac5ec511ed5.html => fr-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{he_IL-tv-chart.1c7535a2aac5ec511ed5.html => he_IL-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{hu_HU-tv-chart.1c7535a2aac5ec511ed5.html => hu_HU-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{id_ID-tv-chart.1c7535a2aac5ec511ed5.html => id_ID-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{it-tv-chart.1c7535a2aac5ec511ed5.html => it-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{ja-tv-chart.1c7535a2aac5ec511ed5.html => ja-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{ko-tv-chart.1c7535a2aac5ec511ed5.html => ko-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{ms_MY-tv-chart.1c7535a2aac5ec511ed5.html => ms_MY-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{nl_NL-tv-chart.1c7535a2aac5ec511ed5.html => nl_NL-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{no-tv-chart.1c7535a2aac5ec511ed5.html => no-tv-chart.99e91cf53749c6852251.html} (98%) rename charting_library/static/{pl-tv-chart.1c7535a2aac5ec511ed5.html => pl-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{pt-tv-chart.1c7535a2aac5ec511ed5.html => pt-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{ro-tv-chart.1c7535a2aac5ec511ed5.html => ro-tv-chart.99e91cf53749c6852251.html} (98%) rename charting_library/static/{ru-tv-chart.1c7535a2aac5ec511ed5.html => ru-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{sk_SK-tv-chart.1c7535a2aac5ec511ed5.html => sk_SK-tv-chart.99e91cf53749c6852251.html} (98%) rename charting_library/static/{sv-tv-chart.1c7535a2aac5ec511ed5.html => sv-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{th-tv-chart.1c7535a2aac5ec511ed5.html => th-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{tr-tv-chart.1c7535a2aac5ec511ed5.html => tr-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{vi-tv-chart.1c7535a2aac5ec511ed5.html => vi-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{zh-tv-chart.1c7535a2aac5ec511ed5.html => zh-tv-chart.99e91cf53749c6852251.html} (99%) rename charting_library/static/{zh_TW-tv-chart.1c7535a2aac5ec511ed5.html => zh_TW-tv-chart.99e91cf53749c6852251.html} (99%) diff --git a/charting_library/charting_library.min.js b/charting_library/charting_library.min.js index 0d683d6a..f61026b7 100644 --- a/charting_library/charting_library.min.js +++ b/charting_library/charting_library.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.TradingView=t.TradingView||{})}(this,function(t){"use strict";function e(t,o){var i=n({},t);for(var s in o)"object"!=typeof t[s]||null===t[s]||Array.isArray(t[s])?void 0!==o[s]&&(i[s]=o[s]):i[s]=e(t[s],o[s]);return i}function o(){return"1.13 (internal id 1c7535a2 @ 2018-10-10 04:58:21.362341)"}function i(t){window.addEventListener("DOMContentLoaded",t,!1)}var n=Object.assign||function(t){for(var e,o=arguments,i=1,n=arguments.length;i'},t}(),d=a;window.TradingView=window.TradingView||{},window.TradingView.version=o,t.version=o,t.onready=i,t.widget=d,Object.defineProperty(t,"__esModule",{value:!0})}); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.TradingView=t.TradingView||{})}(this,function(t){"use strict";function e(t,o){var i=n({},t);for(var s in o)"object"!=typeof t[s]||null===t[s]||Array.isArray(t[s])?void 0!==o[s]&&(i[s]=o[s]):i[s]=e(t[s],o[s]);return i}function o(){return"1.13 (internal id 99e91cf5 @ 2018-11-16 10:57:41.519597)"}function i(t){window.addEventListener("DOMContentLoaded",t,!1)}var n=Object.assign||function(t){for(var e,o=arguments,i=1,n=arguments.length;i'},t}(),d=a;window.TradingView=window.TradingView||{},window.TradingView.version=o,t.version=o,t.onready=i,t.widget=d,Object.defineProperty(t,"__esModule",{value:!0})}); diff --git a/charting_library/static/ar-tv-chart.1c7535a2aac5ec511ed5.html b/charting_library/static/ar-tv-chart.99e91cf53749c6852251.html similarity index 99% rename from charting_library/static/ar-tv-chart.1c7535a2aac5ec511ed5.html rename to charting_library/static/ar-tv-chart.99e91cf53749c6852251.html index afcda083..7e40b0bd 100644 --- a/charting_library/static/ar-tv-chart.1c7535a2aac5ec511ed5.html +++ b/charting_library/static/ar-tv-chart.99e91cf53749c6852251.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/static/bundles/10.ef75a963f37114f76e2f.js b/charting_library/static/bundles/10.0b4b80ce7284d28083f7.js similarity index 85% rename from charting_library/static/bundles/10.ef75a963f37114f76e2f.js rename to charting_library/static/bundles/10.0b4b80ce7284d28083f7.js index 6957ef47..3e3ad3b4 100644 --- a/charting_library/static/bundles/10.ef75a963f37114f76e2f.js +++ b/charting_library/static/bundles/10.0b4b80ce7284d28083f7.js @@ -1 +1 @@ -webpackJsonp([10],{1193:function(t,e,i){"use strict";function r(){return n.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):new Promise(function(t){c.getCharts(function(e){t(e)})})}var n,o,a,c,s,u,h,l;Object.defineProperty(e,"__esModule",{value:!0}),n=i(5),o=i(1320),a=i(397),c=i(92),s=i(398),u=i(93),h=i(24),l=function(){function t(t){var e=this;this._favoriteChartsService=new o.FavoriteChartsService(u.TVXWindowEvents,h),this._dialog=new a,this._getChartEntry=function(t){return{id:t.id,url:t.url,title:t.name,symbol:t.short_symbol,interval:t.interval,toolsCount:0,modified:t.modified_iso,active:function(){return e._isActiveChart(t.id)},openAction:function(){return c.loadChart(t)},deleteAction:function(i,r){s.deleteChart(r,t.image_url,function(){e._deleteChart(t.id),i.resolve()},i.reject.bind(i))},favoriteAction:e._updateFavorites}},this._updateFavorites=function(t){return e._favoriteChartsService.set(t)},this._isActiveChart=function(t){return t===e._chartWidgetCollection.metaInfo.id.value()},this._deleteChart=function(t){e._isActiveChart(t)&&(n.enabled("saveload_storage_customization")?e._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/")},this._chartWidgetCollection=t}return t.prototype.showLoadDialog=function(){var t=this;r().then(function(e){return e.map(t._getChartEntry)}).then(function(e){t._dialog.show(e,t._favoriteChartsService.get())})},t}(),e.LoadChartService=l},1320:function(t,e,i){"use strict";var r,n,o;Object.defineProperty(e,"__esModule",{value:!0}),r=i(0),n=i(174),o=function(t){function e(e,i){return t.call(this,e,i,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})||this}return r.__extends(e,t),e}(n.CommonJsonStoreService),e.FavoriteChartsService=o}}); \ No newline at end of file +webpackJsonp([10],{1194:function(t,e,i){"use strict";function r(){return n.enabled("saveload_requires_authentication")&&!window.is_authenticated?Promise.resolve([]):new Promise(function(t){c.getCharts(function(e){t(e)})})}var n,o,a,c,s,u,h,l;Object.defineProperty(e,"__esModule",{value:!0}),n=i(5),o=i(1321),a=i(398),c=i(92),s=i(399),u=i(93),h=i(24),l=function(){function t(t){var e=this;this._favoriteChartsService=new o.FavoriteChartsService(u.TVXWindowEvents,h),this._dialog=new a,this._getChartEntry=function(t){return{id:t.id,url:t.url,title:t.name,symbol:t.short_symbol,interval:t.interval,toolsCount:0,modified:t.modified_iso,active:function(){return e._isActiveChart(t.id)},openAction:function(){return c.loadChart(t)},deleteAction:function(i,r){s.deleteChart(r,t.image_url,function(){e._deleteChart(t.id),i.resolve()},i.reject.bind(i))},favoriteAction:e._updateFavorites}},this._updateFavorites=function(t){return e._favoriteChartsService.set(t)},this._isActiveChart=function(t){return t===e._chartWidgetCollection.metaInfo.id.value()},this._deleteChart=function(t){e._isActiveChart(t)&&(n.enabled("saveload_storage_customization")?e._chartWidgetCollection.clearChartMetaInfo():location.href="/chart/")},this._chartWidgetCollection=t}return t.prototype.showLoadDialog=function(){var t=this;r().then(function(e){return e.map(t._getChartEntry)}).then(function(e){t._dialog.show(e,t._favoriteChartsService.get())})},t}(),e.LoadChartService=l},1321:function(t,e,i){"use strict";var r,n,o;Object.defineProperty(e,"__esModule",{value:!0}),r=i(0),n=i(174),o=function(t){function e(e,i){return t.call(this,e,i,"FAVORITE_CHARTS_CHANGED","loadChartDialog.favorites",{})||this}return r.__extends(e,t),e}(n.CommonJsonStoreService),e.FavoriteChartsService=o}}); \ No newline at end of file diff --git a/charting_library/static/bundles/13.23881782ce3895456f66.js b/charting_library/static/bundles/13.87c51bb601702992e1dd.js similarity index 96% rename from charting_library/static/bundles/13.23881782ce3895456f66.js rename to charting_library/static/bundles/13.87c51bb601702992e1dd.js index 8c3471f6..56d4e9fa 100644 --- a/charting_library/static/bundles/13.23881782ce3895456f66.js +++ b/charting_library/static/bundles/13.87c51bb601702992e1dd.js @@ -1,2 +1,2 @@ -webpackJsonp([13],{1194:function(t,e,n){"use strict";function r(t,e,n,r){return l.__awaiter(this,void 0,void 0,function(){var a;return l.__generator(this,function(o){return a=new s.SaveRenameDialog({fields:[new h.InputField({name:w,label:t+":",error:e,maxLength:64})],title:n}),void 0!==r&&a.setField(w,r),[2,a.show().then(function(t){return t[w]})]})})}function a(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleRename,t)]})})}function o(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleCopy,f.valueCopy.format(t))]})})}function i(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleNew,t)]})})}function u(t){"/chart/"===location.pathname&&(location.href="/chart/"+t)}function c(){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(t){return[2,new Promise(function(t){v.enabled("saved_charts_count_restriction")&&!window.user.is_pro?_.getCharts(function(e){t(e.length<5)}):t(!0)})]})})}var l,s,h,_,v,d,f,w,m;Object.defineProperty(e,"__esModule",{value:!0}),l=n(0),s=n(396),h=n(395),_=n(92),v=n(5),d=n(40),f={labelName:window.t("Chart layout name"),labelRename:window.t("Enter a new chart layout name"),error:window.t("Please enter chart layout name"),titleNew:window.t("Save New Chart Layout"),titleRename:window.t("Rename Chart Layout"),titleCopy:window.t("Copy Chart Layout"),valueCopy:window.t("{0} copy",{context:"ex: AAPL chart copy"})},w="chart-title",m=function(){function t(t,e){this._chartWidgetCollection=t,this._chartSaver=e}return t.prototype.tryCloneChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n;return l.__generator(this,function(r){switch(r.label){case 0:return t=this._chartWidgetCollection,[4,c()];case 1:return e=r.sent(),e?[4,o(t.metaInfo.name.value())]:[3,3];case 2:return n=r.sent(),this._saveCurrentChartAsNewWithTitle(n),[3,3];case 3:return[2]}})})}()},t.prototype.tryRenameChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n;return l.__generator(this,function(r){switch(r.label){case 0:return t=this._chartWidgetCollection,e=t.metaInfo.name.value(),[4,a(e)];case 1:return n=r.sent(),t.metaInfo.name.setValue(n),this._doSave(),[2]}})})}()},t.prototype.trySaveNewChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n,r;return l.__generator(this,function(a){switch(a.label){case 0:return t=this._chartWidgetCollection,e=t.metaInfo.name.value(),[4,c()];case 1:return n=a.sent(),n?[4,i(e)]:[3,3];case 2:return r=a.sent(),t.metaInfo.name.setValue(r),this._doSave(),[3,3];case 3:return[2]}})})}()},t.prototype.trySaveExistentChart=function(){this._doSave()},t.prototype._saveCurrentChartAsNewWithTitle=function(t){var e=this._chartWidgetCollection;v.enabled("saveload_storage_customization")?(e.metaInfo.uid.deleteValue(),e.metaInfo.id.deleteValue(), +webpackJsonp([13],{1195:function(t,e,n){"use strict";function r(t,e,n,r){return l.__awaiter(this,void 0,void 0,function(){var a;return l.__generator(this,function(o){return a=new s.SaveRenameDialog({fields:[new h.InputField({name:w,label:t+":",error:e,maxLength:64})],title:n}),void 0!==r&&a.setField(w,r),[2,a.show().then(function(t){return t[w]})]})})}function a(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleRename,t)]})})}function o(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleCopy,f.valueCopy.format(t))]})})}function i(t){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(e){return[2,r(f.labelRename,f.error,f.titleNew,t)]})})}function u(t){"/chart/"===location.pathname&&(location.href="/chart/"+t)}function c(){return l.__awaiter(this,void 0,void 0,function(){return l.__generator(this,function(t){return[2,new Promise(function(t){v.enabled("saved_charts_count_restriction")&&!window.user.is_pro?_.getCharts(function(e){t(e.length<5)}):t(!0)})]})})}var l,s,h,_,v,d,f,w,m;Object.defineProperty(e,"__esModule",{value:!0}),l=n(0),s=n(397),h=n(396),_=n(92),v=n(5),d=n(40),f={labelName:window.t("Chart layout name"),labelRename:window.t("Enter a new chart layout name"),error:window.t("Please enter chart layout name"),titleNew:window.t("Save New Chart Layout"),titleRename:window.t("Rename Chart Layout"),titleCopy:window.t("Copy Chart Layout"),valueCopy:window.t("{0} copy",{context:"ex: AAPL chart copy"})},w="chart-title",m=function(){function t(t,e){this._chartWidgetCollection=t,this._chartSaver=e}return t.prototype.tryCloneChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n;return l.__generator(this,function(r){switch(r.label){case 0:return t=this._chartWidgetCollection,[4,c()];case 1:return e=r.sent(),e?[4,o(t.metaInfo.name.value())]:[3,3];case 2:return n=r.sent(),this._saveCurrentChartAsNewWithTitle(n),[3,3];case 3:return[2]}})})}()},t.prototype.tryRenameChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n;return l.__generator(this,function(r){switch(r.label){case 0:return t=this._chartWidgetCollection,e=t.metaInfo.name.value(),[4,a(e)];case 1:return n=r.sent(),t.metaInfo.name.setValue(n),this._doSave(),[2]}})})}()},t.prototype.trySaveNewChart=function(){var t=this;!function(){l.__awaiter(t,void 0,void 0,function(){var t,e,n,r;return l.__generator(this,function(a){switch(a.label){case 0:return t=this._chartWidgetCollection,e=t.metaInfo.name.value(),[4,c()];case 1:return n=a.sent(),n?[4,i(e)]:[3,3];case 2:return r=a.sent(),t.metaInfo.name.setValue(r),this._doSave(),[3,3];case 3:return[2]}})})}()},t.prototype.trySaveExistentChart=function(){this._doSave()},t.prototype._saveCurrentChartAsNewWithTitle=function(t){var e=this._chartWidgetCollection;v.enabled("saveload_storage_customization")?(e.metaInfo.uid.deleteValue(),e.metaInfo.id.deleteValue(), e.metaInfo.name.setValue(t),this._doSave()):window.open("/chart/?clone="+e.metaInfo.uid.value()+"&name="+encodeURIComponent(t),"_blank")},t.prototype._doSave=function(){var t=this._chartWidgetCollection;this._chartSaver.saveChartSilently(function(){d.trackEvent("GUI","Save Chart Layout"),u(t.metaInfo.uid.value())})},t}(),e.SaveAsService=m}}); \ No newline at end of file diff --git a/charting_library/static/bundles/15.14e44c9fe762e0c75635.js b/charting_library/static/bundles/15.d0280d7e7496e08f4962.js similarity index 93% rename from charting_library/static/bundles/15.14e44c9fe762e0c75635.js rename to charting_library/static/bundles/15.d0280d7e7496e08f4962.js index 1396c580..e41ce12a 100644 --- a/charting_library/static/bundles/15.14e44c9fe762e0c75635.js +++ b/charting_library/static/bundles/15.d0280d7e7496e08f4962.js @@ -1,4 +1,4 @@ -webpackJsonp([15],{1248:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(1313),n(1315),n(1316)],o=c,void 0!==(r="function"==typeof o?o.apply(e,i):o)&&(t.exports=r)}(0,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=i(e),s=i(n),f=i(o),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=function(){function t(t,e){var n,o;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},1313:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(1314)],o=c, +webpackJsonp([15],{1249:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(1314),n(1316),n(1317)],o=c,void 0!==(r="function"==typeof o?o.apply(e,i):o)&&(t.exports=r)}(0,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var l=i(e),s=i(n),f=i(o),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=function(){function t(t,e){var n,o;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,f.default)(t,"click",function(t){return e.onClick(t)})}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return u("action",t)}},{key:"defaultTarget",value:function(t){var e=u("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return u("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach(function(t){n=n&&!!document.queryCommandSupported(t)}),n}}]),e}(s.default);t.exports=p})},1314:function(t,e,n){var o,i,r;!function(a,c){i=[t,n(1315)],o=c, void 0!==(r="function"==typeof o?o.apply(e,i):o)&&(t.exports=r)}(0,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){var n,o;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t,e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top=t+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target", -set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":r(t))||1!==t.nodeType)throw Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c})},1314:function(t,e){function n(t){var e,n,o,i;return"SELECT"===t.nodeName?(t.focus(),e=t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?(n=t.hasAttribute("readonly"),n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value):(t.hasAttribute("contenteditable")&&t.focus(),o=window.getSelection(),i=document.createRange(),i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=""+o),e}t.exports=n},1315:function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o");return p.TVTicker({step:a._minMove/a._priceScale||1,formatter:r,parser:l}),e&&(t=[function(t){var o=l(t);return void 0===o?e.value():o}],o="Change "+n.title()+" point price",i=this.createStringBinder(p,e,t,!1,this.model(),o),i.addFormatter(function(e){return a.format(e)}),this.bindControl(i)),p},i.prototype._createPointRow=function(e,t,o){var i,n,a,r,l,p=$(""),s=$("");return s.html($.t("Price")+o),s.appendTo(p),i=$(""),i.appendTo(p),n=this.createPriceEditor(t.price),n.appendTo(i),a=$(""),a.html($.t("Bar #")),a.appendTo(p),r=$(""),r.appendTo(p),l=$(""),l.appendTo(r),l.addClass("ticker"),this.bindBarIndex(t.bar,l,this.model(),"Change "+this._linetool.title()+" point bar index"),p},i.prototype.prepareLayoutForTable=function(e){var t,o,i,n,a,r=this._linetool.points(),l=r.length;for(t=0;t1?" "+(t+1):"",a=this._createPointRow(o,i,n),a.appendTo(e))},i.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},i.prototype.widget=function(){return this._table},i.prototype.createStringBinder=function(e,t,o,i,n,a){return new s(e,t,o,i,n,a)},e.exports=i},1078:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.FloatBinder,l=a.BooleanBinder,p=a.SliderBinder,s=a.ColorBinding,d=a.SimpleComboBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t){var o,i,n,a,p,d=t||$("").appendTo(this._table),c=$("");return c.appendTo(d),o=$(""),o.appendTo(c),t&&o.css("margin-left","15px"),i=$(""),i.appendTo(d),n=$(""),n.appendTo(i),n.css("width","70px"),this.bindControl(new r(n,e.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),a=$(""),a.appendTo(d),p=h(a),this.bindControl(new l(o,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),this.bindControl(new s(p,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),d}, +webpackJsonp([3],{1077:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t),this._linetool=o,this.prepareLayout()}var n=o(239),a=n.PropertyPage,r=n.GreateTransformer,l=n.LessTransformer,p=n.ToIntTransformer,s=n.SimpleStringBinder;o(242),inherit(i,a),i.BarIndexPastLimit=-5e4,i.BarIndexFutureLimit=15e3,i.prototype.bindBarIndex=function(e,t,o,n){var a=[p(e.value()),r(i.BarIndexPastLimit),l(i.BarIndexFutureLimit)];this.bindControl(this.createStringBinder(t,e,a,!0,o,n))},i.prototype.createPriceEditor=function(e){var t,o,i,n=this._linetool,a=n.ownerSource().formatter(),r=function(e){return a.format(e)},l=function(e){var t=a.parse(e);if(t.res)return t.price?t.price:t.value},p=$("");return p.TVTicker({step:a._minMove/a._priceScale||1,formatter:r,parser:l}),e&&(t=[function(t){var o=l(t);return void 0===o?e.value():o}],o="Change "+n.title()+" point price",i=this.createStringBinder(p,e,t,!1,this.model(),o),i.addFormatter(function(e){return a.format(e)}),this.bindControl(i)),p},i.prototype._createPointRow=function(e,t,o){var i,n,a,r,l,p=$(""),s=$("");return s.html($.t("Price")+o),s.appendTo(p),i=$(""),i.appendTo(p),n=this.createPriceEditor(t.price),n.appendTo(i),a=$(""),a.html($.t("Bar #")),a.appendTo(p),r=$(""),r.appendTo(p),l=$(""),l.appendTo(r),l.addClass("ticker"),this.bindBarIndex(t.bar,l,this.model(),"Change "+this._linetool.title()+" point bar index"),p},i.prototype.prepareLayoutForTable=function(e){var t,o,i,n,a,r=this._linetool.points(),l=r.length;for(t=0;t1?" "+(t+1):"",a=this._createPointRow(o,i,n),a.appendTo(e))},i.prototype.prepareLayout=function(){this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.prepareLayoutForTable(this._table),this.loadData()},i.prototype.widget=function(){return this._table},i.prototype.createStringBinder=function(e,t,o,i,n,a){return new s(e,t,o,i,n,a)},e.exports=i},1079:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.FloatBinder,l=a.BooleanBinder,p=a.SliderBinder,s=a.ColorBinding,d=a.SimpleComboBinder,h=o(373).addColorPicker,c=o(1198).createLineStyleEditor,b=o(1197).createLineWidthEditor,u=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t){var o,i,n,a,p,d=t||$("").appendTo(this._table),c=$("");return c.appendTo(d),o=$(""),o.appendTo(c),t&&o.css("margin-left","15px"),i=$(""),i.appendTo(d),n=$(""),n.appendTo(i),n.css("width","70px"),this.bindControl(new r(n,e.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),a=$(""),a.appendTo(d),p=h(a),this.bindControl(new l(o,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),this.bindControl(new s(p,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),d}, i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B,R,E,F,I,D,A,W,V,O,z,M;for(this._div=$(document.createElement("div")).addClass("property-page"),e=this._linetool.properties().trendline,t=$("").appendTo(this._div).css("padding-bottom","3px"),e&&(o=$("").appendTo(t),i=$(""),$("").appendTo(t),$("").appendTo(w),$("
").append(i).appendTo(o),$("").append($.t("Trend Line")).appendTo(o),this.bindControl(new l(i,e.visible,!0,this.model(),"Change Fib Retracement Line Visibility")),n=$("").appendTo(o),a=h(n),this.bindControl(new s(a,e.color,!0,this.model(),"Change Fib Retracement Line Color",0)),r=$("").appendTo(o),C=b(),C.appendTo(r),this.bindControl(new p(C,e.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$("").appendTo(o),g=c(),g.render().appendTo(y),this.bindControl(new d(g,e.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style"))),T=this._linetool.properties().levelsStyle,w=$("
").appendTo(w),$(""+$.t("Levels Line")+"").appendTo(w),r=$("").appendTo(w),C=b(),C.appendTo(r),this.bindControl(new p(C,T.linewidth,parseInt,this.model(),"Change Fib Retracement Line Width")),y=$("").appendTo(w),g=c(),g.render().appendTo(y),this.bindControl(new d(g,T.linestyle,parseInt,!0,this.model(),"Change Fib Retracement Line Style")),this._table=$(document.createElement("table")).appendTo(this._div),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),_={},m=0;m<24;m++)f=m%8,w=_[f],L="level"+(m+1),_[f]=this.addLevelEditor(this._linetool.properties()[L],w);this.addOneColorPropertyWidget(this._table),v=$("").appendTo(this._div),k=$("").appendTo(v),this._linetool.properties().extendLines&&(S=$(""),P=$("").appendTo(v),F=$(""),P=$("
").append(P).appendTo(k)),this._linetool.properties().extendLeft&&(x=$(""),P=$("").append(P).appendTo(k)),this._linetool.properties().extendRight&&(B=$(""),P=$("").append(P).appendTo(k)),this._linetool.properties().reverse&&(R=$(""),P=$("").append(P).appendTo(k)),E=$("
").append(P).appendTo(E),I=$(""),P=$("").append(P).appendTo(E),D=$(""),P=$("").append(P).appendTo(E),A=$("").appendTo(this._div), -W=$(""),V=$(""),w=$(""),w.append("").append(W).append("").append(V),w.appendTo(A),O=$("
"+$.t("Labels")+" 
").appendTo(this._div),w=$("").appendTo(O),z=$(""),$("
").append(z).appendTo(w),this.createLabeledCell($.t("Background"),z).appendTo(w),M=u(),$("").append(M).appendTo(w),this.bindControl(new l(I,this._linetool.properties().showPrices,!0,this.model(),"Change Gann Fan Prices Visibility")),this.bindControl(new l(F,this._linetool.properties().showCoeffs,!0,this.model(),"Change Gann Fan Levels Visibility")),this.bindControl(new l(z,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.bindControl(new p(M,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this._linetool.properties().extendLines&&this.bindControl(new l(S,this._linetool.properties().extendLines,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendLeft&&this.bindControl(new l(x,this._linetool.properties().extendLeft,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendRight&&this.bindControl(new l(B,this._linetool.properties().extendRight,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().reverse&&this.bindControl(new l(R,this._linetool.properties().reverse,!0,this.model(),"Change Fib Retracement Reverse")),this.bindControl(new d(W,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Labels Horizontal Alignment")),this.bindControl(new d(V,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Labels Vertical Alignment")),this.bindControl(new l(D,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},1083:function(e,t,o){"use strict";(function(t){function i(e,t,o){var i,n,a=t.m_model.properties();l.call(this,a,t),i=this._series=t.mainSeries(),this._chart=t.m_model,this._model=t,this._source=o,this._property=a,this._seriesProperty=i.properties(),this._scaleProperty=i.priceScale().properties(),this._mainSeriesScaleRatioProperty=t.mainSeriesScaleRatioProperty(),n=null,t.m_model.panes().forEach(function(e){e.dataSources().forEach(function(t){if(t===i)return n=e,!1})}),this._pane=n,this.prepareLayout(),this._themes=[],this.supportThemeSwitcher=!1} -var n=o(1234),a=o(1201),r=o(238),l=r.PropertyPage,p=r.GreateTransformer,s=r.LessTransformer,d=r.ToIntTransformer,h=r.SimpleStringBinder,c=r.BooleanBinder,b=r.SliderBinder,u=r.ColorBinding,C=r.SimpleComboBinder,y=r.DisabledBinder,g=r.CheckboxWVBinding,T=r.ToFloatTransformerWithDynamicDefaultValue,w=r.ToFloatLimitedPrecisionTransformer,_=o(49),m=o(22),f=o(372).addColorPicker,L=o(1197).createLineStyleEditor,v=o(1196).createLineWidthEditor,k=(o(133).bindPopupMenu,o(6).DefaultProperty),S=o(171).availableTimezones,P=o(248),x=(o(112).createConfirmDialog,o(40).trackEvent);inherit(i,l),inherit(i,n),i.prototype.setScalesOpenTab=function(){this.scalesTab&&this.scalesTab.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.setTmzOpenTab=function(){this.tmzSessTable&&this.tmzSessTable.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.prepareLayout=function(){var e,o,i,n,r,l,k,B,R,E,F,I,D,A,W,V,O,z,M,j,H,G,N,U,q,Y,K,Q,J,Z,X,ee,te,oe,ie,ne,ae,re,le,pe,se,de,he,ce,be,ue,Ce,ye,ge,$e,Te,we,_e,me,fe,Le,ve,ke,Se,Pe,xe,Be,Re,Ee,Fe,Ie,De,Ae,We,Ve,Oe,ze,Me,je,He,Ge,Ne,Ue,qe,Ye,Ke,Qe,Je,Ze,Xe,et,tt,ot,it,nt,at,rt,lt,pt,st,dt,ht,ct,bt,ut,Ct,yt,gt,$t,Tt,wt,_t,mt,ft,Lt,vt,kt,St,Pt,xt,Bt,Rt,Et,Ft,It,Dt,At,Wt,Vt,Ot,zt,Mt,jt=this;if(t.enabled("chart_property_page_style")&&(e=$('').data("layout-tab",a.TabNames.style),o=$('
').data("layout-tab",a.TabNames.style),i=$('
').data("layout-tab",a.TabNames.style),this._prepareSeriesStyleLayout(e,o,i,this._seriesProperty),this._hasSeriesStyleLayout=!0,l=$('
').data("layout-tab",a.TabNames.style),W=$(''),V=this.addLabeledRow(l,$.t("Price Line"),W),$("
").append(W).prependTo(V),this.bindControl(new c(W,this._seriesProperty.showPriceLine,!0,this.model(),"Change Price Price Line")),O=f($("").appendTo(V)),this.bindControl(new u(O,this._seriesProperty.priceLineColor,!0,this.model(),"Change Price Line Color")),z=v(),$('').append(z).appendTo(V),this.bindControl(new b(z,this._seriesProperty.priceLineWidth,!0,this.model(),"Change Price Line Width")),B=$('').data("layout-tab",a.TabNames.style),this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._series)?M="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._series)?M="right":this._pane.isOverlay(this._series)&&(M="none")),M&&(j={left:$.t("Scale Left"),right:$.t("Scale Right")},jt._pane.actionNoScaleIsEnabled(jt._series)&&(j.none=$.t("Screen (No Scale)")),H=this.createKeyCombo(j).val(M).change(function(){switch(this.value){case"left":jt._model.move(jt._series,jt._pane,jt._pane.leftPriceScale());break;case"right":jt._model.move(jt._series,jt._pane,jt._pane.rightPriceScale());break;case"none":jt._model.move(jt._series,jt._pane,null)}}),G=this.addRow(B), +W=$(""),V=$(""),w=$(""),w.append("").append(W).append("").append(V),w.appendTo(A),O=$("
"+$.t("Labels")+" 
").appendTo(this._div),w=$("").appendTo(O),z=$(""),$("
").append(z).appendTo(w),this.createLabeledCell($.t("Background"),z).appendTo(w),M=u(),$("").append(M).appendTo(w),this.bindControl(new l(I,this._linetool.properties().showPrices,!0,this.model(),"Change Gann Fan Prices Visibility")),this.bindControl(new l(F,this._linetool.properties().showCoeffs,!0,this.model(),"Change Gann Fan Levels Visibility")),this.bindControl(new l(z,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.bindControl(new p(M,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this._linetool.properties().extendLines&&this.bindControl(new l(S,this._linetool.properties().extendLines,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendLeft&&this.bindControl(new l(x,this._linetool.properties().extendLeft,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().extendRight&&this.bindControl(new l(B,this._linetool.properties().extendRight,!0,this.model(),"Change Fib Retracement Extend Lines")),this._linetool.properties().reverse&&this.bindControl(new l(R,this._linetool.properties().reverse,!0,this.model(),"Change Fib Retracement Reverse")),this.bindControl(new d(W,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Labels Horizontal Alignment")),this.bindControl(new d(V,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Labels Vertical Alignment")),this.bindControl(new l(D,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},1084:function(e,t,o){"use strict";(function(t){function i(e,t,o){var i,n,a=t.m_model.properties();l.call(this,a,t),i=this._series=t.mainSeries(),this._chart=t.m_model,this._model=t,this._source=o,this._property=a,this._seriesProperty=i.properties(),this._scaleProperty=i.priceScale().properties(),this._mainSeriesScaleRatioProperty=t.mainSeriesScaleRatioProperty(),n=null,t.m_model.panes().forEach(function(e){e.dataSources().forEach(function(t){if(t===i)return n=e,!1})}),this._pane=n,this.prepareLayout(),this._themes=[],this.supportThemeSwitcher=!1} +var n=o(1235),a=o(1202),r=o(239),l=r.PropertyPage,p=r.GreateTransformer,s=r.LessTransformer,d=r.ToIntTransformer,h=r.SimpleStringBinder,c=r.BooleanBinder,b=r.SliderBinder,u=r.ColorBinding,C=r.SimpleComboBinder,y=r.DisabledBinder,g=r.CheckboxWVBinding,T=r.ToFloatTransformerWithDynamicDefaultValue,w=r.ToFloatLimitedPrecisionTransformer,_=o(49),m=o(22),f=o(373).addColorPicker,L=o(1198).createLineStyleEditor,v=o(1197).createLineWidthEditor,k=(o(133).bindPopupMenu,o(6).DefaultProperty),S=o(171).availableTimezones,P=o(249),x=(o(112).createConfirmDialog,o(40).trackEvent);inherit(i,l),inherit(i,n),i.prototype.setScalesOpenTab=function(){this.scalesTab&&this.scalesTab.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.setTmzOpenTab=function(){this.tmzSessTable&&this.tmzSessTable.data("layout-tab-open",a.TabOpenFrom.Override)},i.prototype.prepareLayout=function(){var e,o,i,n,r,l,k,B,R,E,F,I,D,A,W,V,O,z,M,j,H,G,N,U,q,Y,K,Q,J,Z,X,ee,te,oe,ie,ne,ae,re,le,pe,se,de,he,ce,be,ue,Ce,ye,ge,$e,Te,we,_e,me,fe,Le,ve,ke,Se,Pe,xe,Be,Re,Ee,Fe,Ie,De,Ae,We,Ve,Oe,ze,Me,je,He,Ge,Ne,Ue,qe,Ye,Ke,Qe,Je,Ze,Xe,et,tt,ot,it,nt,at,rt,lt,pt,st,dt,ht,ct,bt,ut,Ct,yt,gt,$t,Tt,wt,_t,mt,ft,Lt,vt,kt,St,Pt,xt,Bt,Rt,Et,Ft,It,Dt,At,Wt,Vt,Ot,zt,Mt,jt=this;if(t.enabled("chart_property_page_style")&&(e=$('').data("layout-tab",a.TabNames.style),o=$('
').data("layout-tab",a.TabNames.style),i=$('
').data("layout-tab",a.TabNames.style),this._prepareSeriesStyleLayout(e,o,i,this._seriesProperty),this._hasSeriesStyleLayout=!0,l=$('
').data("layout-tab",a.TabNames.style),W=$(''),V=this.addLabeledRow(l,$.t("Price Line"),W),$("
").append(W).prependTo(V),this.bindControl(new c(W,this._seriesProperty.showPriceLine,!0,this.model(),"Change Price Price Line")),O=f($("").appendTo(V)),this.bindControl(new u(O,this._seriesProperty.priceLineColor,!0,this.model(),"Change Price Line Color")),z=v(),$('').append(z).appendTo(V),this.bindControl(new b(z,this._seriesProperty.priceLineWidth,!0,this.model(),"Change Price Line Width")),B=$('').data("layout-tab",a.TabNames.style),this._pane&&(-1!==this._pane.leftPriceScale().dataSources().indexOf(this._series)?M="left":-1!==this._pane.rightPriceScale().dataSources().indexOf(this._series)?M="right":this._pane.isOverlay(this._series)&&(M="none")),M&&(j={left:$.t("Scale Left"),right:$.t("Scale Right")},jt._pane.actionNoScaleIsEnabled(jt._series)&&(j.none=$.t("Screen (No Scale)")),H=this.createKeyCombo(j).val(M).change(function(){switch(this.value){case"left":jt._model.move(jt._series,jt._pane,jt._pane.leftPriceScale());break;case"right":jt._model.move(jt._series,jt._pane,jt._pane.rightPriceScale());break;case"none":jt._model.move(jt._series,jt._pane,null)}}),G=this.addRow(B), $("").appendTo(G),$("
"+$.t("Scale")+"").appendTo(G).append(H))),t.enabled("chart_property_page_scales")&&(N=$('').data("layout-tab",a.TabNames.scales),U=$('').change(function(){this.checked&&setTimeout(function(){jt._model.m_model.invalidate(new m(m.LIGHT_UPDATE))},0)}),q=this.addLabeledRow(N,$.t("Auto Scale"),U),Y=function(e){this._undoModel.setAutoScaleProperty(this._property,e,jt._series.priceScale(),this._undoText)},$("
").append(U).prependTo(q),this.bindControl(new c(U,this._scaleProperty.autoScale,!0,this.model(),"Auto Scale",Y)),this.bindControl(new y(U,this._scaleProperty.autoScaleDisabled,!0,this.model(),"Auto Scale")),K=$(''),Q=this.addLabeledRow(N,$.t("Percentage"),K),J=function(e){this._undoModel.setPercentProperty(this._property,e,jt._series.priceScale(),this._undoText)},$("").append(K).prependTo(Q),this.bindControl(new c(K,this._scaleProperty.percentage,!0,this.model(),"Scale Percentage",J)),this.bindControl(new y(K,this._scaleProperty.percentageDisabled,!0,this.model(),"Scale Percentage")),Z=$(''),X=this.addLabeledRow(N,$.t("Log Scale"),Z),ee=function(e){this._undoModel.setLogProperty(this._property,e,jt._series.priceScale(),this._undoText)},$("").append(Z).prependTo(X),this.bindControl(new c(Z,this._scaleProperty.log,!0,this.model(),"Log Scale",ee)),this.bindControl(new y(Z,this._scaleProperty.logDisabled,!0,this.model(),"Log Scale")),te=$('').change(function(){this.checked&&setTimeout(function(){jt._model.m_model.invalidate(new m(m.LIGHT_UPDATE))},0)}),oe=this.addLabeledRow(N,$.t("Scale Series Only"),te),$("").append(te).prependTo(oe),this.bindControl(new c(te,this._property.scalesProperties.scaleSeriesOnly,!0,this.model(),"Scale Series Only")),ie=$(""),ne=this.addLabeledRow(N,$.t("Lock scale"),ie),ae=function(e){this._undoModel.setLockScaleProperty(this._property,e,jt._series,this._undoText)},re=function(e){ne.toggle(e.value()===_.STYLE_PNF)},$("").append(ie).prependTo(ne),this.bindControl(new c(ie,this._scaleProperty.lockScale,!0,this.model(),"Change lock scale",ae)),this._seriesProperty.style.listeners().subscribe(this,re),t.enabled("support_multicharts")&&(le=$(""),pe=this.addLabeledRow(N,$.t("Track time"),le),$("").append(le).prependTo(pe),this.bindControl(new g(le,this._model.trackTime(),null,this.model(),"Change track time"))),se=$('').data("layout-tab",a.TabNames.scales),de=$(''),he=this.addLabeledRow(se,$.t("Top Margin"),de),$("").appendTo(he),ce=[d(this._property.paneProperties.topMargin.value())],ce.push(s(25)),ce.push(p(0)),this.bindControl(new h(de,this._property.paneProperties.topMargin,ce,!0,this.model(),"Top Margin")),be=$(''), ue=this.addLabeledRow(se,$.t("Bottom Margin"),be),$("").appendTo(ue),Ce=[d(this._property.paneProperties.bottomMargin.value())],Ce.push(s(25)),Ce.push(p(0)),this.bindControl(new h(be,this._property.paneProperties.bottomMargin,Ce,!0,this.model(),"Bottom Margin")),ye=$(''),ge=this.addLabeledRow(se,$.t("Right Margin"),ye),$("").appendTo(ge),$e=this._chart.timeScale(),Te=[d($e.defaultRightOffsetProperty().value())],Te.push(s(~~$e.maxRightOffset())),Te.push(p(0)),this.bindControl(new h(ye,$e.defaultRightOffsetProperty(),Te,!0,this.model(),"Right Margin")),we=$(''),ge=this.addLabeledRow(se,$.t("Price/Bar Ratio"),we),_e=!0,me=function(e){this._undoModel.setScaleRatioProperty(this._property,e,jt._series,this._undoText),_e&&(x("GUI","Scales","Edit scale ratio value"),_e=!1)},$("
").appendTo(he).append(de),$("%").appendTo(ue).append(be),$("%").appendTo(ge).append(ye),$(""+$.t("bars",{context:"margin"})+"").appendTo(ge).append(we),we.TVTicker({step:this._mainSeriesScaleRatioProperty.getStepChangeValue()}),fe=w("",7),Le=[T(this._mainSeriesScaleRatioProperty.value.bind(this._mainSeriesScaleRatioProperty)),p(this._mainSeriesScaleRatioProperty.getMinValue()),s(this._mainSeriesScaleRatioProperty.getMaxValue()),fe],ve=new h(we,this._mainSeriesScaleRatioProperty,Le,!1,this.model(),"Price/Bar Ratio",me),ve.addFormatter(fe),this.bindControl(ve),ke=$('').data("layout-tab",a.TabNames.scales),Se=$(""),Pe=this.addLabeledRow(ke,$.t("Left Axis"),Se),$("
").append(Se).prependTo(Pe),setTimeout(function(){this.bindControl(new c(Se,this._property.scalesProperties.showLeftScale,!0,this.model(),"Show Left Axis"))}.bind(this),0),xe=$(""),Be=this.addLabeledRow(ke,$.t("Right Axis"),xe),$("").append(xe).prependTo(Be),setTimeout(function(){this.bindControl(new c(xe,this._property.scalesProperties.showRightScale,!0,this.model(),"Show Right Axis"))}.bind(this),0),t.enabled("countdown")&&(Re=$(""),Ee=this.addLabeledRow(ke,$.t("Countdown"),Re),$("").append(Re).prependTo(Ee),this.bindControl(new c(Re,this._seriesProperty.showCountdown,!0,this.model(),"Change Show Countdown"))),Fe=$(''),Ie=this.addLabeledRow(ke,$.t("Symbol Last Value"),Fe),$("").append(Fe).prependTo(Ie),this.bindControl(new c(Fe,this._property.scalesProperties.showSeriesLastValue,!0,this.model(),"Change Symbol Last Value Visibility")),De=$(''),Ae=this.addLabeledRow(ke,$.t("Indicator Last Value"),De),$("").append(De).prependTo(Ae),this.bindControl(new c(De,this._property.scalesProperties.showStudyLastValue,!0,this.model(),"Change Indicator Last Value Visibility")),We=$(''),Ve=this.addLabeledRow(ke,$.t("Symbol Labels"),We),$("").append(We).prependTo(Ve), this.bindControl(new c(We,this._property.scalesProperties.showSymbolLabels,!0,this.model(),"Show Symbol Labels")),Oe=$(''),ze=this.addLabeledRow(ke,$.t("Indicator Labels"),Oe),$("").append(Oe).prependTo(ze),this.bindControl(new c(Oe,this._property.scalesProperties.showStudyPlotLabels,!0,this.model(),"Show Study Plots Labels")),Me=$(""),je=this.addLabeledRow(ke,$.t("No Overlapping Labels"),Me),$("").append(Me).prependTo(je),this.bindControl(new c(Me,this._scaleProperty.alignLabels,!0,this.model(),"No Overlapping Labels")),He=$('
').append(N).append(se),Ge=$('
').append(ke),R=$("
").css("min-width","520px").data("layout-tab",a.TabNames.scales),R.append(He).append(Ge),this.scalesTab=R,k=$('').data("layout-tab",a.TabNames.style),Ne=this.createSeriesMinTickEditor(),Ue=$(""),qe=$("").appendTo(ke),Ye=$('").appendTo(Ue),$("
').appendTo(qe),$(""+$.t("Decimal Places")+"").append(Ne).appendTo(Ue),k.append(Ue).appendTo(Ye),this.bindControl(new C(Ne,this._seriesProperty.minTick,null,!0,this.model(),"Change Decimal Places"))),t.enabled("chart_property_page_background")&&(Ke=$(''),Qe=this.createColorPicker({hideTransparency:!0}),Je=this.addLabeledRow(Ke,$.t("Background")),$('
').append(Qe).appendTo(Je),this.bindControl(new u(Qe,this._property.paneProperties.background,!0,this.model(),"Change Chart Background Color")),Ze=this.addLabeledRow(Ke,$.t("Vert Grid Lines")),Xe=this.createColorPicker(),$("").append(Xe).appendTo(Ze),this.bindControl(new u(Xe,this._property.paneProperties.vertGridProperties.color,!0,this.model(),"Change Vert Grid Lines Color")),et=L(),$('').append(et.render()).appendTo(Ze),this.bindControl(new C(et,this._property.paneProperties.vertGridProperties.style,parseInt,!0,this.model(),"Change Vert Grid Lines Style")),tt=this.addLabeledRow(Ke,$.t("Horz Grid Lines")),ot=this.createColorPicker(),$("").append(ot).appendTo(tt),this.bindControl(new u(ot,this._property.paneProperties.horzGridProperties.color,!0,this.model(),"Change Horz Grid Lines Color")),it=L(),$('').append(it.render()).appendTo(tt),this.bindControl(new C(it,this._property.paneProperties.horzGridProperties.style,parseInt,!0,this.model(),"Change Horz Grid Lines Style")),nt=this.createColorPicker(),at=this.addLabeledRow(Ke,$.t("Scales Text")),$("").append(nt).appendTo(at),this.bindControl(new u(nt,this._property.scalesProperties.textColor,!0,this.model(),"Change Scales Text Color")),rt=this.createFontSizeEditor(),$("").append(rt).appendTo(at),this.bindControl(new C(rt,this._property.scalesProperties.fontSize,parseInt,!0,this.model(),"Change Scales Font Size")),lt=this.createColorPicker(),pt=this.addLabeledRow(Ke,$.t("Scales Lines")),$('').append(lt).appendTo(pt), this.bindControl(new u(lt,this._property.scalesProperties.lineColor,!0,this.model(),"Change Scales Lines Color")),st=this.addLabeledRow(Ke,$.t("Watermark")),dt=this.createColorPicker(),$("").append(dt).appendTo(st),this.bindControl(new u(dt,this._property.symbolWatermarkProperties.color,!0,this.model(),"Change Symbol Watermark Color",this._property.symbolWatermarkProperties.transparency)),ht=this.addLabeledRow(Ke,$.t("Crosshair")),ct=this.createColorPicker(),$("").append(ct).appendTo(ht),this.bindControl(new u(ct,this._property.paneProperties.crossHairProperties.color,!0,this.model(),"Change Crosshair Color",this._property.paneProperties.crossHairProperties.transparency)),bt=L(),$("").append(bt.render()).appendTo(ht),this.bindControl(new C(bt,this._property.paneProperties.crossHairProperties.style,parseInt,!0,this.model(),"Change Crosshair Style")),ut=v(),$("").append(ut).appendTo(this.addRow(Ke).prepend("")),this.bindControl(new b(ut,this._property.paneProperties.crossHairProperties.width,!0,this.model(),"Change Crosshair Width")),Ct=$(''),yt=this.addLabeledRow(Ct,$.t("Navigation Buttons"),null,!0),gt=$(document.createElement("select")),P.availableValues().forEach(function(e){$(document.createElement("option")).attr("value",e.value).text(e.title).appendTo(gt)}),$("
").append(gt).appendTo(yt),this.bindControl(new C(gt,P.property(),null,!0,this.model(),"Change Navigation Buttons Visibility")),$t=$(''),Tt=$(''),wt=this.addLabeledRow($t,$.t("Symbol Description"),Tt),$("
").append(Tt).prependTo(wt),this.bindControl(new c(Tt,this._property.paneProperties.legendProperties.showSeriesTitle,!0,this.model(),"Change Symbol Description Visibility")),_t=$(''),mt=this.addLabeledRow($t,$.t("OHLC Values"),_t),$("").append(_t).prependTo(mt),this.bindControl(new c(_t,this._property.paneProperties.legendProperties.showSeriesOHLC,!0,this.model(),"Change OHLC Values Visibility")),ft=$(''),Lt=this.addLabeledRow($t,$.t("Indicator Titles"),ft),$("").append(ft).prependTo(Lt),this.bindControl(new c(ft,this._property.paneProperties.legendProperties.showStudyTitles,!0,this.model(),"Change Indicator Titles Visibility")),vt=$(''),kt=this.addLabeledRow($t,$.t("Indicator Arguments"),vt),St=function(e){vt.prop("disabled",!e.value())},$("").append(vt).prependTo(kt),this.bindControl(new c(vt,this._property.paneProperties.legendProperties.showStudyArguments,!0,this.model(),"Change Indicator Arguments Visibility")),this._property.paneProperties.legendProperties.showStudyTitles.listeners().subscribe(this,St),St(this._property.paneProperties.legendProperties.showStudyTitles),Pt=$(''),xt=this.addLabeledRow($t,$.t("Indicator Values"),Pt),$("").append(Pt).prependTo(xt), this.bindControl(new c(Pt,this._property.paneProperties.legendProperties.showStudyValues,!0,this.model(),"Change Indicator Values Visibility")),Bt=$('
').append(Ke),Rt=$('
').append($t),Et=$('
').append(Ct),E=$("
").css("min-width","520px").data("layout-tab",a.TabNames.background),E.append(Bt).append(Rt).append(Et)),t.enabled("chart_property_page_timezone_sessions")){for(I=$('').data("layout-tab",a.TabNames.timezoneSessions),this.tmzSessTable=I,ge=$("").appendTo(I),Ft=$("
").appendTo(ge),It=$('').appendTo(Ft),Dt=$(""),Dt.appendTo(It),At=$("
"),At.appendTo(Dt),At.text($.t("Time Zone")),Wt=$(''),Wt.appendTo(Dt),Vt="",Ot=0;Ot'+S[Ot].title+"";zt=$(""),zt.appendTo(Wt),this.bindControl(new C(zt,this._property.timezone,null,!0,this.model(),"Change Timezone")),this._series.createSessStudy(),this.createSessTable(I)}Mt=t.enabled("trading_options")||t.enabled("chart_property_page_trading"),Mt&&(D=this.createTradingTable()),n=$(''),r=$('
').css({width:"100%"}).data("layout-separated",!0),F=$('
').data("layout-tab",a.TabNames.drawings),this._table=$().add(e).add(o).add(i).add(n).add(r).add(l).add(B).add(R).add(E).add(F).add(I).add(D).add(A),this.loadData()},i.prototype.widget=function(){return this._table},i.prototype.loadData=function(){this.superclass.prototype.loadData.call(this),this.switchStyle()},i.prototype.loadTheme=function(e,t,o){},i.prototype.applyTheme=function(e,t){this._model._chartWidget._chartWidgetCollection.applyTheme(e,t),this.loadData()},i.prototype.createTemplateButton=function(e){return t.enabled("chart_property_page_template_button")?(this,e||(e={}),$(''+$.t("Template")+'')):$("")},i.prototype.switchStyle=function(){if(this._hasSeriesStyleLayout)switch($(this._barsTbody).add(this._barsColorerTbody).add(this._renkoTbody).add(this._pbTbody).add(this._kagiTbody).add(this._pnfTbody).add(this._candlesTbody).add(this._candlesColorerTbody).add(this._hollowCandlesTbody).add(this._lineTbody).add(this._areaTbody).add(this._haTbody).add(this._haColorerTbody).add(this._baselineTbody).css("display","none"),this._seriesProperty.style.value()){case _.STYLE_BARS:this._barsTbody.css("display","table-row-group"),this._barsColorerTbody.css("display","table-row-group");break;case _.STYLE_CANDLES:this._candlesTbody.css("display","table-row-group"),this._candlesColorerTbody.css("display","table-row-group");break;case _.STYLE_HOLLOW_CANDLES:this._hollowCandlesTbody.css("display","table-row-group");break;case _.STYLE_LINE: this._lineTbody.css("display","table-row-group");break;case _.STYLE_AREA:this._areaTbody.css("display","table-row-group");break;case _.STYLE_RENKO:this._renkoTbody.css("display","table-row-group");break;case _.STYLE_PB:this._pbTbody.css("display","table-row-group");break;case _.STYLE_KAGI:this._kagiTbody.css("display","table-row-group");break;case _.STYLE_PNF:this._pnfTbody.css("display","table-row-group");break;case _.STYLE_HEIKEN_ASHI:this._haTbody.css("display","table-row-group"),this._haColorerTbody.css("display","table-row-group");break;case _.STYLE_BASELINE:this._baselineTbody.css("display","table-row-group")}},i.prototype.onResoreDefaults=function(){var e,t,o=this._model.model().properties().paneProperties.topMargin,i=this._model.model().properties().paneProperties.bottomMargin;o.listeners().fire(o),i.listeners().fire(i),e=this._chart.timeScale(),e.restoreRightOffsetPropertyToDefault(),t=this._model.model().properties().timezone,t.listeners().fire(t)},i.prototype.defaultProperties=function(){var e=this,t=[e._seriesProperty.extendedHours,e._property.scalesProperties.showLeftScale,e._property.scalesProperties.showRightScale].map(function(e){return{property:e,previousValue:e.value()}});return setTimeout(function(){t.forEach(function(e){e.property.value()!==e.previousValue&&e.property.listeners().fire(e.property)});var o=new k("chartproperties.paneProperties.rightAxisProperties");["autoScale","percentage","log"].forEach(function(t){var i=e._scaleProperty[t],n=o[t].value();n!==i.value()&&i.setValue(n)})},0),[this._property,this._seriesProperty]},i.prototype.createSessTable=function(e){var t,o=this._series.sessionsStudy().properties(),i=this.createTableInTable(e),n=o.name.value(),a=$(""),r=this.addLabeledRow(i,$.t("Session Breaks"),a),l=L(),p=this.createColorPicker(),s=v();return $("
").append(a).prependTo(r),$("").append(p).appendTo(r),$("").append(l.render()).appendTo(r),$("").append(s).appendTo(r),this.bindControl(new c(a,o.graphics.vertlines.sessBreaks.visible,!0,this.model(),"Change "+n+" visibility")),this.bindControl(new u(p,o.graphics.vertlines.sessBreaks.color,!0,this.model(),"Change "+n+" color")),this.bindControl(new C(l,o.graphics.vertlines.sessBreaks.style,parseInt,!0,this.model(),"Change "+n+" style")),this.bindControl(new b(s,o.graphics.vertlines.sessBreaks.width,!0,this.model(),"Change "+n+" width")),t=this._series.isIntradayInterval(),a.prop("disabled",!t),i},i.prototype._createStudySessRow=function(e,t,o){var i,n=$(""),a=this.addLabeledRow(e,t,n),r=f($("").appendTo(a));return this.bindControl(new c(n,o.visible,!0,this.model(),"Change "+t+" visibility")),this.bindControl(new u(r,o.color,!0,this.model(),t+" color",o.transparency)),i=$(""),i.append(n).prependTo(a),a.addClass("offset-row"),n},i.prototype.createTradingTable=function(){ -var e,t,o,i,n,r,l,u,y,g,T,w=$('').data("layout-tab",a.TabNames.trading),_=$("").appendTo(w),m=$("
").appendTo(_),f=$('').appendTo(m),k=$('');return _=this.addLabeledRow(f,$.t("Show Positions"),k),$(""),y=this.addLabeledRow(f,$.t("Connecting Line"),u),$("").appendTo(y),g=$(''),T=this.addLabeledRow(f,$.t("Show Executions"),g),$("
").append(k).prependTo(_),this.bindControl(new c(k,this._property.tradingProperties.showPositions,!0,this.model(),"Change Positions Visibility")),e=$(''),_=this.addLabeledRow(f,$.t("Show Orders"),e),$("").append(e).prependTo(_),this.bindControl(new c(e,this._property.tradingProperties.showOrders,!0,this.model(),"Change Orders Visibility")),t=$(''),o=this.addLabeledRow(f,$.t("Extend Lines Left"),t),$("").append(t).prependTo(o),this.bindControl(new c(t,this._property.tradingProperties.extendLeft,!0,this.model(),"Extend Lines Left")),i=v(),this.bindControl(new b(i,this._property.tradingProperties.lineWidth,!0,this.model(),"Change Connecting Line Width")),n=L(),this.bindControl(new C(n,this._property.tradingProperties.lineStyle,parseInt,!0,this.model(),"Change Connecting Line Style")),r=$(''),l=[d(this._property.tradingProperties.lineLength.value()),s(100),p(0)],this.bindControl(new h(r,this._property.tradingProperties.lineLength,l,!0,this.model(),"Change Connecting Line Length")),u=$("
").prependTo(y),$("").append(i).appendTo(y),$('').append(n.render()).appendTo(y),$('').append(r).appendTo(y),$("%").append(g).prependTo(T),this.bindControl(new c(g,this._property.tradingProperties.showExecutions,!0,this.model(),"Change Executions Visibility")),w},e.exports=i}).call(t,o(5))},1084:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.ColorBinding,l=a.SliderBinder,p=a.SimpleComboBinder,s=a.BooleanBinder,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$(''),n=$(''),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend(""),$("").append(t).appendTo(c),$("").append(e).appendTo(c),h=this.createFontEditor(),this.bindControl(new r(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new r(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")), -this.bindControl(new l(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new s(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new s(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),b=$('').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("
")),c=this.addLabeledRow(this._table,""),$('
').append(b).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1085:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Arc Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Arc Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Arc Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Arc Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1086:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleStringBinder,l=a.ColorBinding,p=a.SimpleComboBinder;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$('').css({width:"100%"}),e=$("").css({width:"100%"}),t=$('
').append(e),o=this.createColorPicker(),i=this.createFontEditor(),n=$("
").appendTo(this._table),$("
").css({width:"0" -}).html($.t("Text")).appendTo(n),$('').append(t).appendTo(n),n=this.addLabeledRow(this._table,$.t("Text Font")),n.children().css({whiteSpace:"nowrap"}),$("").append(o).appendTo(n).css({width:"0"}),$("").append(i).appendTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Arrow Mark Text Color")),this.bindControl(new r(e,this._linetool.properties().text,null,!0,this.model(),"Change Arrow Mark Text")),this.bindControl(new p(i,this._linetool.properties().font,null,!0,this.model(),"Change Arrow Mark Font")),this.loadData(),setTimeout(function(){e.select(),e.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},1087:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SimpleStringBinder,s=o(1201).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,d,h,c=$('').css({width:"100%"}).data("layout-tab-open",s.Override),b=$('
');this._table=c.add(b),e=$("").css({width:"100%"}),t=this.createColorPicker(),o=this.createFontSizeEditor(),i=this.createColorPicker(),n=this.createColorPicker(),a=$("").appendTo(c),d=$('
').append(e),$("
").appendTo(this._table),t=this.createColorPicker(),o=this.addLabeledRow(e,"Color"),$("").appendTo(e),$("").appendTo(o),n=$(""),$("").appendTo(e),$("").appendTo(o),a=$(""),$(""),e.appendTo(this._table),t=$("
").append(d).appendTo(a),h=this.addLabeledRow(b,$.t("Text")),$("").append(t).appendTo(h),$("").append(o).appendTo(h),h=this.addLabeledRow(b,$.t("Background")),$("").appendTo(h).append(i),h=this.addLabeledRow(b,$.t("Border")),$("").appendTo(h).append(n),$(""),this.bindControl(new p(e,this._linetool.properties().text,null,!0,this.model(),"Change Balloon Text")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Baloon Text Color")),this.bindControl(new r(o,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Balloon Text Font Size")),this.bindControl(new l(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Balloon Background Color",this._linetool.properties().transparency)),this.bindControl(new l(n,this._linetool.properties().borderColor,!0,this.model(),"Change Balloon Border Color")),this.loadData(),setTimeout(function(){e.select(),e.focus()},0)},i.prototype.widget=function(){return this._table},e.exports=i},1088:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(1195),r=o(1076),l=o(238),p=l.ToFloatTransformer,s=l.SimpleComboBinder,d=l.ColorBinding,h=l.BooleanBinder,c=l.SimpleStringBinder;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("
").append(t).appendTo(o), -i=$('"),o=this.addLabeledRow(e,"Mode"),$("").append(i).appendTo(o),o=$("
"+$.t("Mirrored")+"").append(n).appendTo(o),o=$("
"+$.t("Flipped")+"").append(a).appendTo(o),this.bindControl(new h(n,this._linetool.properties().mirrored,!0,this.model(),"Change Bars Pattern Mirroring")),this.bindControl(new h(a,this._linetool.properties().flipped,!0,this.model(),"Change Bars Pattern Flipping")),this.bindControl(new d(t,this._linetool.properties().color,!0,this.model(),"Change Bars Pattern Color")),this.bindControl(new s(i,this._linetool.properties().mode,null,!0,this.model(),"Change Bars Pattern Mode")),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,s;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("
"),t.html($.t("Price")),t.appendTo(e),o=$(""),o.appendTo(e),i=$(""),i.appendTo(o),n=$(""),n.html($.t("Bar #")),n.appendTo(e),a=$(""),a.appendTo(e),r=$(""),r.appendTo(a),r.addClass("ticker"),l=this._linetool.properties().points[0],s=[p(l.price.value())],this.bindControl(new c(i,l.price,s,!1,this.model(),"Change "+this._linetool+" point price")),this.bindBarIndex(l.bar,r,this.model(),"Change "+this._linetool+" point bar index"),this.loadData()},t.LineToolBarsPatternStylesPropertyPage=i,t.LineToolBarsPatternInputsPropertyPage=n},1089:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.ColorBinding,l=a.SimpleComboBinder,p=a.SliderBinder,s=a.BooleanBinder,d=o(1197).createLineStyleEditor,h=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m;this._block=$("
").addClass("property-page"),e=$('').appendTo(this._block),t=$("").appendTo(e),o=h(),i=d(),n=this.createColorPicker(),a=this.addLabeledRow(t,$.t("Line")),$("
").append(n).appendTo(a),$("").append(o).appendTo(a),$('').append(i.render()).appendTo(a),c=$('').appendTo(this._block),a=this.addLabeledRow(c,$.t("Background"),b),b=$(''),u=this.createColorPicker(),$("
").append(b).prependTo(a),$("").append(u).appendTo(a),C=$('').appendTo(this._block), -y=$(""),g=$(""),T=$("").css({"margin-left":"8px"}),w=$('').appendTo(T),_=$("").css({"margin-left":"8px"}),m=$('').appendTo(_),a=this.addLabeledRow(C,$.t("Left End")),$('
').appendTo(a).append(y).append(T),a=this.addLabeledRow(C,$.t("Right End")),$('').appendTo(a).append(g).append(_),this.bindControl(new r(n,this._linetool.properties().linecolor,!0,this.model(),"Change Curve Line Color")),this.bindControl(new l(i,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Curve Line Style")),this.bindControl(new p(o,this._linetool.properties().linewidth,!0,this.model(),"Change Curve Line Width")),this.bindControl(new s(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Curve Filling")),this.bindControl(new r(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Curve Background Color",this._linetool.properties().transparency)),this.bindControl(new l(y,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Curve Line Left End")),this.bindControl(new l(g,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Curve Line Right End")),this.bindControl(new s(w,this._linetool.properties().extendLeft,!0,this.model(),"Change Curve Line Extending Left")),this.bindControl(new s(m,this._linetool.properties().extendRight,!0,this.model(),"Change Curve Line Extending Right")),this.loadData()},i.prototype.widget=function(){return this._block},e.exports=i},1090:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SliderBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c;this._table=$(''),e=d(),t=this.createColorPicker(),o=$(''),i=this.createColorPicker(),n=this.addLabeledRow(this._table,"Line"),$("").appendTo(this._table),h=$(""),c=$(""),n=this.addLabeledRow(a,$.t("Left End")),$("
").prependTo(n),$("").append(t).appendTo(n),$("").append(e).appendTo(n),n=this.addLabeledRow(this._table,"Background",o),$("").append(o).prependTo(n),$("").append(i).appendTo(n),a=$("
").prependTo(n),$('').appendTo(n).append(h),n=this.addLabeledRow(a,$.t("Right End")),$("").prependTo(n),$('').appendTo(n).append(c), -this.bindControl(new p(t,this._linetool.properties().linecolor,!0,this.model(),"Change Brush Color")),this.bindControl(new r(e,this._linetool.properties().linewidth,!0,this.model(),"Change Brush Line Width")),this.bindControl(new l(o,this._linetool.properties().fillBackground,!0,this.model(),"Change Brush Filling")),this.bindControl(new p(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Brush Background Color",this._linetool.properties().transparency)),this.bindControl(new s(h,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Trend Line Left End")),this.bindControl(new s(c,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Trend Line Right End")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1091:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=a.SimpleStringBinder,h=o(1196).createLineWidthEditor,c=o(1201).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n=this.createColorPicker(),a=this.createFontSizeEditor(),b=this.createFontEditor(),u=this.createTextEditor(350,200),C=this.createColorPicker(),y=h(),g=this.createColorPicker(),T=$(''),w=$(''),_=$('');this.bindControl(new l(n,this._linetool.properties().color,!0,this.model(),"Change Text Color")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new d(u,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().transparency)),this.bindControl(new l(g,this._linetool.properties().bordercolor,!0,this.model(),"Change Text Color")),this.bindControl(new s(y,this._linetool.properties().linewidth,!0,this.model(),"Change Border Width")),this.bindControl(new r(T,this._linetool.properties().wordWrap,!0,this.model(),"Change Text Wrap")),this.bindControl(new r(w,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(_,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$('').data("layout-tab-open",c.Override),t=$('
'),o=$('
'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1}).append(n)).append($(document.createElement("td")).attr({width:1 -}).append(b)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).attr({width:1}).append(w)).append($(document.createElement("td")).append(_)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(u)).appendTo(e),i=this.addLabeledRow(t,"Text Wrap",T),$("
").append(T).prependTo(i),i=this.addLabeledRow(o,"Background"),$("").append(C).appendTo(i),i=this.addLabeledRow(o,"Border"),$("").append(g).appendTo(i),$("").append(y).appendTo(i),this.loadData(),setTimeout(function(){u.select(),u.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},1092:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1197).createLineStyleEditor,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=s(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Lines"),$("").append(o).appendTo(i),$("").append(e).appendTo(i),$("").append(t.render()).appendTo(i),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Circle Lines Color")),this.bindControl(new r(t,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Circle Lines Style")),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Circle Lines Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1093:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,T;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("
").prependTo(i),$("").append(o).appendTo(i),$("").append(t).appendTo(i),n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$(''),C=this.createColorPicker(),y=$(''),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")), -this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)),this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("").append(y).prependTo(g),$("").append(C).appendTo(g),T=this.addLabeledRow(e,$.t("Label")),$("").prependTo(T),$("").append(n).appendTo(T),$("").append(c).appendTo(T),$("").append(h).appendTo(T),g=this.addLabeledRow(e,$.t("Label Background"),u),$("").append(u).prependTo(g),$("").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1094:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("
").prependTo(i),$("").append(o).appendTo(i),$("").append(t).appendTo(i),n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$(''),C=this.createColorPicker(),y=$(''),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)), -this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("").append(y).prependTo(g),$("").append(C).appendTo(g),T=this.addLabeledRow(e,$.t("Label")),$("").prependTo(T),$("").append(n).appendTo(T),$("").append(c).appendTo(T),$("").append(h).appendTo(T),g=this.addLabeledRow(e,$.t("Label Background"),u),$("").append(u).prependTo(g),$("").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),w=this._linetool.properties(),void 0!==w.extendTop&&void 0!==w.extendBottom&&(_=$(''),m=$(''),this.bindControl(new p(_,this._linetool.properties().extendTop,!0,this.model(),"Change Extend Top")),this.bindControl(new p(m,this._linetool.properties().extendBottom,!0,this.model(),"Change Extend Bottom")),f=this.addLabeledRow(e,$.t("Extend Top"),_),$("").append(_).prependTo(f),L=this.addLabeledRow(e,$.t("Extend Bottom"),m),$("").append(m).prependTo(L)),void 0!==w.extendLeft&&void 0!==w.extendRight&&(v=$(''),k=$(''),this.bindControl(new p(v,this._linetool.properties().extendLeft,!0,this.model(),"Change Extend Left")),this.bindControl(new p(k,this._linetool.properties().extendRight,!0,this.model(),"Change Extend Right")),S=this.addLabeledRow(e,$.t("Extend Left"),v),$("").append(v).prependTo(S),P=this.addLabeledRow(e,$.t("Extend Right"),k),$("").append(k).prependTo(P)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1095:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(1197).createLineStyleEditor,h=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B;this._table=$(''),e=$("").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("").appendTo(this._table), -g=$(''),T=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),w=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$(''),C=$(''),$("").append(a).appendTo(n),$("").append(b).appendTo(n),$("").append(c).appendTo(n),$("").append(u).appendTo(n),$("").append(C).appendTo(n),y=$("
"),$('").appendTo(w),$("").appendTo(this._table),m=$("").css({"margin-left":"8px"}),f=$('').appendTo(m),L=$("").css({"margin-left":"8px"}),v=$('').appendTo(L),k=$(""),S=$(""),n=this.addLabeledRow(_,$.t("Left End")),$('").appendTo(this._table),n=$("").appendTo(P),x=$(""),B=$("
').append(w).appendTo(n),n=$("
").append(g).appendTo(n),$("").append(T).appendTo(n),_=$("
').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('').appendTo(n).append(S).append(L),P=$("
").append(B).appendTo(n),this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new p(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new l(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new l(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new l(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new l(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")),this.bindControl(new l(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new p(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new l(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new p(T,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1096:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o), -this.prepareLayout()}var n,a,r,l,p,s,d;o(12),n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.BooleanBinder,d=o(1196).createLineWidthEditor,inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$(''),e=this._linetool.getDegrees(),t=this.createKeyCombo(e),t.width(300),o=this.createColorPicker(),i=$(''),n=this.addLabeledRow(this._table,window.t("Degree")),$("");m.appendTo(this._table),i=$(""),i.appendTo(this._table),a=$(""),$("");m.appendTo(this._table),i=$("").appendTo(m),C=$(""),i.appendTo(this._table),a=$(""),$("").appendTo(i),r=u(),$('");b.appendTo(e),i=$("
").prependTo(n),$("").append(t).appendTo(n),n=this.addLabeledRow(this._table,window.t("Line Width")),a=d(),$("").prependTo(n),$("").append(a).appendTo(n),n=this.addLabeledRow(this._table,window.t("Color")),$("").prependTo(n),$("").append(o).appendTo(n),n=this.addLabeledRow(this._table,window.t("Show Wave"),i),$("").append(i).prependTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Elliott Label Color")),this.bindControl(new r(t,this._linetool.properties().degree,parseInt,!0,this.model(),"Change Elliott Wave Size")),this.bindControl(new s(i,this._linetool.properties().showWave,!0,this.model(),"Change Elliott Labels Background")),this.bindControl(new p(a,this._linetool.properties().linewidth,parseInt,this.model(),"Change Elliott Wave Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1097:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Border")),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Background"),i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Ellipse Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Ellipse Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Ellipse Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Ellipse Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1098:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o)}var n=o(1078);inherit(i,n),e.exports=i},1099:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} -var n=o(1195),a=o(238),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(m),C=$(""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),e||(w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Circle Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Circle Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Circle Line Color",0)),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Fib Circle Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,"Levels",o),$("").append(o).prependTo(i),n=$(""),i=this.addLabeledRow(this._table,"Coeffs As Percents",n),$("").append(n).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Circle Levels Visibility")),i=$("
").append(a).appendTo(i),this.createLabeledCell("Background",a).appendTo(i),r=u(),$('').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfork Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfork Background Transparency")),this.bindControl(new p(n,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1100:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n), -i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):$(""+$.t("Trend Line")+""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),e||(w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Arcs Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Speed Resistance Arcs Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Speed Resistance Arcs Line Color",0)),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Fib Speed Resistance Arcs Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,$.t("Levels")),$("").append(o).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Speed Resistance Arcs Levels Visibility")),n=$(""),i=this.addLabeledRow(this._table,$.t("Full Circles")),$("").append(n).prependTo(i),this.bindControl(new p(n,this._linetool.properties().fullCircles,!0,this.model(),"Change Fib Speed Resistance Arcs Full Cirlces Mode")),i=$("
").append(a).appendTo(i),$(""+$.t("Background")+"').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Arcs Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Fib Arcs Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1101:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.FloatBinder,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,s,d,c,b=$("
"),i.appendTo(b),n=$(""),n.appendTo(i),a=$(""),a.appendTo(b), +var e,t,o,i,n,r,l,u,y,g,T,w=$('').data("layout-tab",a.TabNames.trading),_=$("").appendTo(w),m=$("
").appendTo(_),f=$('').appendTo(m),k=$('');return _=this.addLabeledRow(f,$.t("Show Positions"),k),$(""),y=this.addLabeledRow(f,$.t("Connecting Line"),u),$("").appendTo(y),g=$(''),T=this.addLabeledRow(f,$.t("Show Executions"),g),$("
").append(k).prependTo(_),this.bindControl(new c(k,this._property.tradingProperties.showPositions,!0,this.model(),"Change Positions Visibility")),e=$(''),_=this.addLabeledRow(f,$.t("Show Orders"),e),$("").append(e).prependTo(_),this.bindControl(new c(e,this._property.tradingProperties.showOrders,!0,this.model(),"Change Orders Visibility")),t=$(''),o=this.addLabeledRow(f,$.t("Extend Lines Left"),t),$("").append(t).prependTo(o),this.bindControl(new c(t,this._property.tradingProperties.extendLeft,!0,this.model(),"Extend Lines Left")),i=v(),this.bindControl(new b(i,this._property.tradingProperties.lineWidth,!0,this.model(),"Change Connecting Line Width")),n=L(),this.bindControl(new C(n,this._property.tradingProperties.lineStyle,parseInt,!0,this.model(),"Change Connecting Line Style")),r=$(''),l=[d(this._property.tradingProperties.lineLength.value()),s(100),p(0)],this.bindControl(new h(r,this._property.tradingProperties.lineLength,l,!0,this.model(),"Change Connecting Line Length")),u=$("
").prependTo(y),$("").append(i).appendTo(y),$('').append(n.render()).appendTo(y),$('').append(r).appendTo(y),$("%").append(g).prependTo(T),this.bindControl(new c(g,this._property.tradingProperties.showExecutions,!0,this.model(),"Change Executions Visibility")),w},e.exports=i}).call(t,o(5))},1085:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.ColorBinding,l=a.SliderBinder,p=a.SimpleComboBinder,s=a.BooleanBinder,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$(''),n=$(''),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend(""),$("").append(t).appendTo(c),$("").append(e).appendTo(c),h=this.createFontEditor(),this.bindControl(new r(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new r(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")), +this.bindControl(new l(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new s(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new s(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),b=$('').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("
")),c=this.addLabeledRow(this._table,""),$('
').append(b).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1086:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Arc Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Arc Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Arc Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Arc Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1087:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleStringBinder,l=a.ColorBinding,p=a.SimpleComboBinder;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$('').css({width:"100%"}),e=$("").css({width:"100%"}),t=$('
').append(e),o=this.createColorPicker(),i=this.createFontEditor(),n=$("
").appendTo(this._table),$("
").css({width:"0" +}).html($.t("Text")).appendTo(n),$('').append(t).appendTo(n),n=this.addLabeledRow(this._table,$.t("Text Font")),n.children().css({whiteSpace:"nowrap"}),$("").append(o).appendTo(n).css({width:"0"}),$("").append(i).appendTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Arrow Mark Text Color")),this.bindControl(new r(e,this._linetool.properties().text,null,!0,this.model(),"Change Arrow Mark Text")),this.bindControl(new p(i,this._linetool.properties().font,null,!0,this.model(),"Change Arrow Mark Font")),this.loadData(),setTimeout(function(){e.select(),e.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},1088:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SimpleStringBinder,s=o(1202).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,d,h,c=$('').css({width:"100%"}).data("layout-tab-open",s.Override),b=$('
');this._table=c.add(b),e=$("").css({width:"100%"}),t=this.createColorPicker(),o=this.createFontSizeEditor(),i=this.createColorPicker(),n=this.createColorPicker(),a=$("").appendTo(c),d=$('
').append(e),$("
").appendTo(this._table),t=this.createColorPicker(),o=this.addLabeledRow(e,"Color"),$("").appendTo(e),$("").appendTo(o),n=$(""),$("").appendTo(e),$("").appendTo(o),a=$(""),$(""),e.appendTo(this._table),t=$("
").append(d).appendTo(a),h=this.addLabeledRow(b,$.t("Text")),$("").append(t).appendTo(h),$("").append(o).appendTo(h),h=this.addLabeledRow(b,$.t("Background")),$("").appendTo(h).append(i),h=this.addLabeledRow(b,$.t("Border")),$("").appendTo(h).append(n),$(""),this.bindControl(new p(e,this._linetool.properties().text,null,!0,this.model(),"Change Balloon Text")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Baloon Text Color")),this.bindControl(new r(o,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Balloon Text Font Size")),this.bindControl(new l(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Balloon Background Color",this._linetool.properties().transparency)),this.bindControl(new l(n,this._linetool.properties().borderColor,!0,this.model(),"Change Balloon Border Color")),this.loadData(),setTimeout(function(){e.select(),e.focus()},0)},i.prototype.widget=function(){return this._table},e.exports=i},1089:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}function n(e,t,o){r.call(this,e,t,o)}var a=o(1196),r=o(1077),l=o(239),p=l.ToFloatTransformer,s=l.SimpleComboBinder,d=l.ColorBinding,h=l.BooleanBinder,c=l.SimpleStringBinder;inherit(i,a),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("
").append(t).appendTo(o), +i=$('"),o=this.addLabeledRow(e,"Mode"),$("").append(i).appendTo(o),o=$("
"+$.t("Mirrored")+"").append(n).appendTo(o),o=$("
"+$.t("Flipped")+"").append(a).appendTo(o),this.bindControl(new h(n,this._linetool.properties().mirrored,!0,this.model(),"Change Bars Pattern Mirroring")),this.bindControl(new h(a,this._linetool.properties().flipped,!0,this.model(),"Change Bars Pattern Flipping")),this.bindControl(new d(t,this._linetool.properties().color,!0,this.model(),"Change Bars Pattern Color")),this.bindControl(new s(i,this._linetool.properties().mode,null,!0,this.model(),"Change Bars Pattern Mode")),this.loadData()},i.prototype.widget=function(){return this._table},inherit(n,r),n.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,l,s;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=$("
"),t.html($.t("Price")),t.appendTo(e),o=$(""),o.appendTo(e),i=$(""),i.appendTo(o),n=$(""),n.html($.t("Bar #")),n.appendTo(e),a=$(""),a.appendTo(e),r=$(""),r.appendTo(a),r.addClass("ticker"),l=this._linetool.properties().points[0],s=[p(l.price.value())],this.bindControl(new c(i,l.price,s,!1,this.model(),"Change "+this._linetool+" point price")),this.bindBarIndex(l.bar,r,this.model(),"Change "+this._linetool+" point bar index"),this.loadData()},t.LineToolBarsPatternStylesPropertyPage=i,t.LineToolBarsPatternInputsPropertyPage=n},1090:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.ColorBinding,l=a.SimpleComboBinder,p=a.SliderBinder,s=a.BooleanBinder,d=o(1198).createLineStyleEditor,h=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m;this._block=$("
").addClass("property-page"),e=$('').appendTo(this._block),t=$("").appendTo(e),o=h(),i=d(),n=this.createColorPicker(),a=this.addLabeledRow(t,$.t("Line")),$("
").append(n).appendTo(a),$("").append(o).appendTo(a),$('').append(i.render()).appendTo(a),c=$('').appendTo(this._block),a=this.addLabeledRow(c,$.t("Background"),b),b=$(''),u=this.createColorPicker(),$("
").append(b).prependTo(a),$("").append(u).appendTo(a),C=$('').appendTo(this._block), +y=$(""),g=$(""),T=$("").css({"margin-left":"8px"}),w=$('').appendTo(T),_=$("").css({"margin-left":"8px"}),m=$('').appendTo(_),a=this.addLabeledRow(C,$.t("Left End")),$('
').appendTo(a).append(y).append(T),a=this.addLabeledRow(C,$.t("Right End")),$('').appendTo(a).append(g).append(_),this.bindControl(new r(n,this._linetool.properties().linecolor,!0,this.model(),"Change Curve Line Color")),this.bindControl(new l(i,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Curve Line Style")),this.bindControl(new p(o,this._linetool.properties().linewidth,!0,this.model(),"Change Curve Line Width")),this.bindControl(new s(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Curve Filling")),this.bindControl(new r(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Curve Background Color",this._linetool.properties().transparency)),this.bindControl(new l(y,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Curve Line Left End")),this.bindControl(new l(g,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Curve Line Right End")),this.bindControl(new s(w,this._linetool.properties().extendLeft,!0,this.model(),"Change Curve Line Extending Left")),this.bindControl(new s(m,this._linetool.properties().extendRight,!0,this.model(),"Change Curve Line Extending Right")),this.loadData()},i.prototype.widget=function(){return this._block},e.exports=i},1091:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SliderBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c;this._table=$(''),e=d(),t=this.createColorPicker(),o=$(''),i=this.createColorPicker(),n=this.addLabeledRow(this._table,"Line"),$("").appendTo(this._table),h=$(""),c=$(""),n=this.addLabeledRow(a,$.t("Left End")),$("
").prependTo(n),$("").append(t).appendTo(n),$("").append(e).appendTo(n),n=this.addLabeledRow(this._table,"Background",o),$("").append(o).prependTo(n),$("").append(i).appendTo(n),a=$("
").prependTo(n),$('').appendTo(n).append(h),n=this.addLabeledRow(a,$.t("Right End")),$("").prependTo(n),$('').appendTo(n).append(c), +this.bindControl(new p(t,this._linetool.properties().linecolor,!0,this.model(),"Change Brush Color")),this.bindControl(new r(e,this._linetool.properties().linewidth,!0,this.model(),"Change Brush Line Width")),this.bindControl(new l(o,this._linetool.properties().fillBackground,!0,this.model(),"Change Brush Filling")),this.bindControl(new p(i,this._linetool.properties().backgroundColor,!0,this.model(),"Change Brush Background Color",this._linetool.properties().transparency)),this.bindControl(new s(h,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Trend Line Left End")),this.bindControl(new s(c,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Trend Line Right End")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1092:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=a.SimpleStringBinder,h=o(1197).createLineWidthEditor,c=o(1202).TabOpenFrom;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n=this.createColorPicker(),a=this.createFontSizeEditor(),b=this.createFontEditor(),u=this.createTextEditor(350,200),C=this.createColorPicker(),y=h(),g=this.createColorPicker(),T=$(''),w=$(''),_=$('');this.bindControl(new l(n,this._linetool.properties().color,!0,this.model(),"Change Text Color")),this.bindControl(new p(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new d(u,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().transparency)),this.bindControl(new l(g,this._linetool.properties().bordercolor,!0,this.model(),"Change Text Color")),this.bindControl(new s(y,this._linetool.properties().linewidth,!0,this.model(),"Change Border Width")),this.bindControl(new r(T,this._linetool.properties().wordWrap,!0,this.model(),"Change Text Wrap")),this.bindControl(new r(w,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(_,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$('').data("layout-tab-open",c.Override),t=$('
'),o=$('
'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1}).append(n)).append($(document.createElement("td")).attr({width:1 +}).append(b)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).attr({width:1}).append(w)).append($(document.createElement("td")).append(_)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(u)).appendTo(e),i=this.addLabeledRow(t,"Text Wrap",T),$("
").append(T).prependTo(i),i=this.addLabeledRow(o,"Background"),$("").append(C).appendTo(i),i=this.addLabeledRow(o,"Border"),$("").append(g).appendTo(i),$("").append(y).appendTo(i),this.loadData(),setTimeout(function(){u.select(),u.focus()},20)},i.prototype.widget=function(){return this._table},e.exports=i},1093:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1198).createLineStyleEditor,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=s(),o=this.createColorPicker(),i=this.addLabeledRow(this._table,"Lines"),$("").append(o).appendTo(i),$("").append(e).appendTo(i),$("").append(t.render()).appendTo(i),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Circle Lines Color")),this.bindControl(new r(t,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Circle Lines Style")),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Circle Lines Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1094:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,T;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("
").prependTo(i),$("").append(o).appendTo(i),$("").append(t).appendTo(i),n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$(''),C=this.createColorPicker(),y=$(''),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")), +this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)),this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("").append(y).prependTo(g),$("").append(C).appendTo(g),T=this.addLabeledRow(e,$.t("Label")),$("").prependTo(T),$("").append(n).appendTo(T),$("").append(c).appendTo(T),$("").append(h).appendTo(T),g=this.addLabeledRow(e,$.t("Label Background"),u),$("").append(u).prependTo(g),$("").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1095:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=this.createColorPicker(),i=this.addLabeledRow(e,$.t("Line")),$("
").prependTo(i),$("").append(o).appendTo(i),$("").append(t).appendTo(i),n=this.createColorPicker(),a=this.createColorPicker(),h=this.createFontSizeEditor(),c=this.createFontEditor(),b=this.createColorPicker(),u=$(''),C=this.createColorPicker(),y=$(''),this.bindControl(new l(n,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new r(h,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(c,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(b,this._linetool.properties().labelBackgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().labelBackgroundTransparency)),this.bindControl(new p(u,this._linetool.properties().fillLabelBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(C,this._linetool.properties().backgroundColor,!0,this.model(),"Change Text Background",this._linetool.properties().backgroundTransparency)), +this.bindControl(new p(y,this._linetool.properties().fillBackground,!0,this.model(),"Change Text Background Fill")),this.bindControl(new l(a,this._linetool.properties().borderColor,!0,this.model(),"Change Text Border Color")),g=this.addLabeledRow(e,$.t("Background"),y),$("").append(y).prependTo(g),$("").append(C).appendTo(g),T=this.addLabeledRow(e,$.t("Label")),$("").prependTo(T),$("").append(n).appendTo(T),$("").append(c).appendTo(T),$("").append(h).appendTo(T),g=this.addLabeledRow(e,$.t("Label Background"),u),$("").append(u).prependTo(g),$("").append(b).appendTo(g),this.bindControl(new l(o,this._linetool.properties().linecolor,!0,this.model(),"Change Date Range Color")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Date Range Line Width")),w=this._linetool.properties(),void 0!==w.extendTop&&void 0!==w.extendBottom&&(_=$(''),m=$(''),this.bindControl(new p(_,this._linetool.properties().extendTop,!0,this.model(),"Change Extend Top")),this.bindControl(new p(m,this._linetool.properties().extendBottom,!0,this.model(),"Change Extend Bottom")),f=this.addLabeledRow(e,$.t("Extend Top"),_),$("").append(_).prependTo(f),L=this.addLabeledRow(e,$.t("Extend Bottom"),m),$("").append(m).prependTo(L)),void 0!==w.extendLeft&&void 0!==w.extendRight&&(v=$(''),k=$(''),this.bindControl(new p(v,this._linetool.properties().extendLeft,!0,this.model(),"Change Extend Left")),this.bindControl(new p(k,this._linetool.properties().extendRight,!0,this.model(),"Change Extend Right")),S=this.addLabeledRow(e,$.t("Extend Left"),v),$("").append(v).prependTo(S),P=this.addLabeledRow(e,$.t("Extend Right"),k),$("").append(k).prependTo(P)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1096:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(1198).createLineStyleEditor,h=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B;this._table=$(''),e=$("").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("").appendTo(this._table), +g=$(''),T=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),w=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$(''),C=$(''),$("").append(a).appendTo(n),$("").append(b).appendTo(n),$("").append(c).appendTo(n),$("").append(u).appendTo(n),$("").append(C).appendTo(n),y=$("
"),$('").appendTo(w),$("").appendTo(this._table),m=$("").css({"margin-left":"8px"}),f=$('').appendTo(m),L=$("").css({"margin-left":"8px"}),v=$('').appendTo(L),k=$(""),S=$(""),n=this.addLabeledRow(_,$.t("Left End")),$('").appendTo(this._table),n=$("").appendTo(P),x=$(""),B=$("
').append(w).appendTo(n),n=$("
").append(g).appendTo(n),$("").append(T).appendTo(n),_=$("
').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('').appendTo(n).append(S).append(L),P=$("
").append(B).appendTo(n),this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new p(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new l(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new l(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new l(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new l(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")),this.bindControl(new l(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new p(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new l(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new p(T,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1097:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o), +this.prepareLayout()}var n,a,r,l,p,s,d;o(12),n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.BooleanBinder,d=o(1197).createLineWidthEditor,inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a;this._table=$(''),e=this._linetool.getDegrees(),t=this.createKeyCombo(e),t.width(300),o=this.createColorPicker(),i=$(''),n=this.addLabeledRow(this._table,window.t("Degree")),$("");m.appendTo(this._table),i=$(""),i.appendTo(this._table),a=$(""),$("");m.appendTo(this._table),i=$("").appendTo(m),C=$(""),i.appendTo(this._table),a=$(""),$("").appendTo(i),r=u(),$('");b.appendTo(e),i=$("").appendTo(this._table),t=$(""),t.appendTo(e),o=$('
").prependTo(n),$("").append(t).appendTo(n),n=this.addLabeledRow(this._table,window.t("Line Width")),a=d(),$("").prependTo(n),$("").append(a).appendTo(n),n=this.addLabeledRow(this._table,window.t("Color")),$("").prependTo(n),$("").append(o).appendTo(n),n=this.addLabeledRow(this._table,window.t("Show Wave"),i),$("").append(i).prependTo(n),this.bindControl(new l(o,this._linetool.properties().color,!0,this.model(),"Change Elliott Label Color")),this.bindControl(new r(t,this._linetool.properties().degree,parseInt,!0,this.model(),"Change Elliott Wave Size")),this.bindControl(new s(i,this._linetool.properties().showWave,!0,this.model(),"Change Elliott Labels Background")),this.bindControl(new p(a,this._linetool.properties().linewidth,parseInt,this.model(),"Change Elliott Wave Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1098:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Border")),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,$.t("Background"),i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Ellipse Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Ellipse Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Ellipse Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Ellipse Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1099:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o)}var n=o(1079);inherit(i,n),e.exports=i},1100:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} +var n=o(1196),a=o(239),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(373).addColorPicker,c=o(1198).createLineStyleEditor,b=o(1197).createLineWidthEditor,u=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(m),C=$(""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),e||(w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Circle Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Circle Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Circle Line Color",0)),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Fib Circle Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,"Levels",o),$("").append(o).prependTo(i),n=$(""),i=this.addLabeledRow(this._table,"Coeffs As Percents",n),$("").append(n).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Circle Levels Visibility")),i=$("
").append(a).appendTo(i),this.createLabeledCell("Background",a).appendTo(i),r=u(),$('').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfork Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfork Background Transparency")),this.bindControl(new p(n,this._linetool.properties().coeffsAsPercents,!0,this.model(),"Change Fib Retracement Coeffs As Percents")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1101:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.FloatBinder,l=a.SimpleComboBinder,p=a.BooleanBinder,s=a.ColorBinding,d=a.SliderBinder,h=o(373).addColorPicker,c=o(1198).createLineStyleEditor,b=o(1197).createLineWidthEditor,u=o(1199).createTransparencyEditor;inherit(i,n), +i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):$(""+$.t("Trend Line")+""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),e||(w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(_,t.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Arcs Style"))),this.bindControl(new p(n,t.visible,!0,this.model(),"Change Fib Speed Resistance Arcs Visibility")),this.bindControl(new s(y,t.color,!0,this.model(),"Change Fib Speed Resistance Arcs Line Color",0)),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Fib Speed Resistance Arcs Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,$.t("Levels")),$("").append(o).prependTo(i),this.bindControl(new p(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Speed Resistance Arcs Levels Visibility")),n=$(""),i=this.addLabeledRow(this._table,$.t("Full Circles")),$("").append(n).prependTo(i),this.bindControl(new p(n,this._linetool.properties().fullCircles,!0,this.model(),"Change Fib Speed Resistance Arcs Full Cirlces Mode")),i=$("
").append(a).appendTo(i),$(""+$.t("Background")+"').append(r).appendTo(i),this.bindControl(new p(a,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Arcs Background Visibility")),this.bindControl(new d(r,this._linetool.properties().transparency,!0,this.model(),"Change Fib Arcs Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1102:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.BooleanBinder,l=a.ColorBinding,p=a.FloatBinder,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(373).addColorPicker,c=o(1198).createLineStyleEditor,b=o(1197).createLineWidthEditor,u=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,s,d,c,b=$("
"),i.appendTo(b),n=$(""),n.appendTo(i),a=$(""),a.appendTo(b), s=$(""),s.appendTo(a),s.css("width","70px"),this.bindControl(new r(n,o.visible,!0,this.model(),"Change Gann Square Line Visibility")),this.bindControl(new p(s,o.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),d=$(""),d.appendTo(b),c=h(d),this.bindControl(new l(c,o.color,!0,this.model(),"Change Gann Square Line Color",0))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,p,h,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B;for(this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("
'),o.appendTo(t),i=$(''),i.appendTo(t),n=$(''),n.appendTo(o),n.addClass("property-page"),a=$('
'),a.appendTo(i),a.addClass("property-page"),$("").appendTo(n),$("").appendTo(a),p=1;p<=7;p++)h="hlevel"+p,this.addLevelEditor(n,"Level "+p,this._linetool.properties()[h]);for(p=1;p<=7;p++)h="vlevel"+p,this.addLevelEditor(a,"Level "+p,this._linetool.properties()[h]);this.addOneColorPropertyWidget(n),i.css({"vertical-align":"top"}),C=$(""),y=$(""),g=$(""),T=$(""),w=$('
"+$.t("Price Levels")+"
"+$.t("Time Levels")+"
').css({width:"100%"}),_=$("").appendTo(w),m=$('
').appendTo($("
").css({width:"50%"}).appendTo(_)),f=$('').appendTo($("
").css({width:"50%"}).appendTo(_)),L=this.addLabeledRow(m,$.t("Left Labels"),C),$("").append(C).prependTo(L),L=this.addLabeledRow(f,$.t("Right Labels"),y),$("").append(y).prependTo(L),L=this.addLabeledRow(m,$.t("Top Labels"),g),$("").append(g).prependTo(L),L=this.addLabeledRow(f,$.t("Bottom Labels"),T),$("").append(T).prependTo(L),this.bindControl(new r(C,this._linetool.properties().showLeftLabels,!0,this.model(),"Change Gann Square Left Labels Visibility")),this.bindControl(new r(y,this._linetool.properties().showRightLabels,!0,this.model(),"Change Gann Square Right Labels Visibility")),this.bindControl(new r(g,this._linetool.properties().showTopLabels,!0,this.model(),"Change Gann Square Top Labels Visibility")),this.bindControl(new r(T,this._linetool.properties().showBottomLabels,!0,this.model(),"Change Gann Square Bottom Labels Visibility")),v=$(''),k=b(),S=c(),P=this.createColorPicker(),x=$(""),L=this.addLabeledRow(v,$.t("Grid"),x), -$(""),L.appendTo(v),x=$(""),$("
").append(x).prependTo(L),$("").append(P).appendTo(L),$("").append(k).appendTo(L),$("").append(S.render()).appendTo(L),this.bindControl(new r(x,this._linetool.properties().grid.visible,!0,this.model(),"Change Fib Speed Resistance Fan Grid Visibility")),this.bindControl(new l(P,this._linetool.properties().grid.color,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Color",0)),this.bindControl(new s(S,this._linetool.properties().grid.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Style")),this.bindControl(new d(k,this._linetool.properties().grid.linewidth,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Width")),this._table=this._table.add(w).add(v),L=$("
").append(x).appendTo(L),this.createLabeledCell("Background",x).appendTo(L),B=u(),$('').append(B).appendTo(L),this.bindControl(new r(x,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Speed/Resistance Fan Background Visibility")),this.bindControl(new d(B,this._linetool.properties().transparency,!0,this.model(),"Change Fib Speed/Resistance Fan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1102:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1197).createLineStyleEditor,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=s(),i=this.createColorPicker(),n=this.addLabeledRow(e,"Line"),$("");m.appendTo(this._table),i=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Fib Spiral Line Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Fib Spiral Line Style")),this.bindControl(new p(t,this._linetool.properties().linewidth,!0,this.model(),"Change Fib Spiral Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1103:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"), -this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell($.t("Trend Line"),n).appendTo(m),C=$(""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new d(T,t.linewidth,parseInt,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,p,h;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,$.t("Show Labels"),o),$("").append(o).prependTo(i),n=$(""),a=$(""),r=$(""),i=$(""),i.append("").append(a).append("").append(r),i.appendTo(n),i=$(""),$(""),i.appendTo(this._table),p=$(""),$("") -;g.appendTo(this._table),i=$(""),i.appendTo(this._table),n=$(""),$("
"+$.t("Labels")+" 
").append(n).appendTo(i),i.appendTo(this._table),this.bindControl(new s(a,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),this.bindControl(new s(r,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),i=$("
").append(p).appendTo(i),this.createLabeledCell($.t("Background"),p).appendTo(i),h=u(),$('').append(h).appendTo(i),this.bindControl(new l(o,this._linetool.properties().showLabels,!0,this.model(),"Change Fib Time Zone Labels Visibility")),this.bindControl(new d(h,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this.bindControl(new l(p,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1104:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(372).addColorPicker,h=o(1196).createLineWidthEditor,c=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,c,b,u,C,y,g=$("
"),i.appendTo(g),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(g),c=$(""),c.appendTo(a),c.css("width","70px"),this.bindControl(new r(c,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(g),b=$(""),b.appendTo(g),u=d(b),C=$(""),C.appendTo(g),y=h(),y.appendTo(C),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Fib Wedge Visibility")),this.bindControl(new p(u,t.color,!0,this.model(),"Change Fib Wedge Line Color",0)),this.bindControl(new s(y,t.linewidth,!0,this.model(),"Change Fib Wedge Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,"Levels",o),$("").append(o).prependTo(i),this.bindControl(new l(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Wedge Levels Visibility")),i=$("
").append(n).appendTo(i),this.createLabeledCell("Background",n).appendTo(i),a=c(),$('').append(a).appendTo(i),this.bindControl(new l(n,this._linetool.properties().fillBackground,!0,this.model(),"Change Wedge Background Visibility")),this.bindControl(new s(a,this._linetool.properties().transparency,!0,this.model(),"Change Wedge Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1105:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1197).createLineStyleEditor,h=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B;this._table=$(''),e=$("").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("").appendTo(this._table),g=$(''),T=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),w=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$(''),C=$(''),$("").append(a).appendTo(n),$("").append(b).appendTo(n),$("").append(c).appendTo(n),$("").append(u).appendTo(n),$("").append(C).appendTo(n), -y=$("
"),$('").appendTo(w),$("").appendTo(this._table),m=$("").css({"margin-left":"8px"}),f=$('').appendTo(m),L=$("").css({"margin-left":"8px"}),v=$('').appendTo(L),k=$(""),S=$(""),n=this.addLabeledRow(_,$.t("Left End")),$('").appendTo(this._table),n=$("").appendTo(P),x=$(""),B=$("");o.append($(""),e.appendTo(this._table),t=this.model(),o=this._linetool,i=o.properties(),n=$("
').append(w).appendTo(n),n=$("
").append(g).appendTo(n),$("").append(T).appendTo(n),_=$("
').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('').appendTo(n).append(S).append(L),P=$("
").append(B).appendTo(n),this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new p(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new p(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new p(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new p(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")),this.bindControl(new p(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new p(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new l(T,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1106:function(e,t,o){"use strict" -;function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.LessTransformer,l=a.GreateTransformer,p=a.ToFloatTransformer,s=a.BooleanBinder,d=a.SliderBinder,h=a.ColorBinding,c=a.SimpleComboBinder,b=a.SimpleStringBinder,u=o(372).addColorPicker,C=o(1196).createLineWidthEditor,y=o(1198).createTransparencyEditor;o(241),inherit(i,n),i.prototype.addOneColorPropertyWidget=function(e){var t=this.createOneColorForAllLinesWidget(),o=$("
")).append($("")).append(t.editor).append($("").append(t.label)),o.appendTo(e)},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,g,T,w,_,m,f,L,v,k,S,P,x,B,R,E,F,I,D,A,W,V,O,z,M,j,H,G,N,U,q,Y,K,Q,J,Z;this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("
"),$(""),$("").appendTo(a),a.appendTo(n);for(g in i.levels._childs)T=i.levels[g],w=$(""),w.appendTo(n),$("").appendTo(w),_=$(""),$("
").append(n).appendTo(e),a=$("
"+$.t("Levels")+"
"+g+"").append(_).appendTo(w),m=$(""),m.appendTo(w),f=u(m),L=$(""),L.appendTo(w),v=C(),v.appendTo(L),this.bindControl(new s(_,T.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,T.color,!0,t,"Change Gann Line Color",0)),this.bindControl(new d(v,T.width,!0,t,"Change Gann Line Width"));k=$(""),$(""),$("").appendTo(S),S.appendTo(k);for(g in i.fanlines._childs)P=i.fanlines[g],x=$(""),x.appendTo(k),_=$(""),$("").appendTo(x),m=$("
").append(k).appendTo(e),S=$("
"+$.t("Fans")+"
").append(_).appendTo(x),B=P.x.value()+"x"+P.y.value(),$(""+B+""),m.appendTo(x),f=u(m),L=$(""),L.appendTo(x),v=C(),v.appendTo(L),this.bindControl(new s(_,P.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,P.color,!0,t,"Change Gann Fan Color",0)),this.bindControl(new d(v,P.width,!0,t,"Change Gann Line Width"));R=$(""),$(""),$("").appendTo(E),E.appendTo(R);for(g in i.arcs._childs)F=i.arcs[g],I=$(""),I.appendTo(R),_=$(""),$("").appendTo(I),m=$("").appendTo(this._table), -A=$(''),W=y(),V=$("").appendTo(D),O=$("
").append(R).appendTo(e),E=$("
"+$.t("Arcs")+"
").append(_).appendTo(I),B=F.x.value()+"x"+F.y.value(),$(""+B+""),m.appendTo(I),f=u(m),L=$(""),L.appendTo(I),v=C(),v.appendTo(L),this.bindControl(new s(_,F.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,F.color,!0,t,"Change Gann Arc Color",0)),this.bindControl(new d(v,F.width,!0,t,"Change Gann Line Width"));this.addOneColorPropertyWidget(R),D=$("
"),$('").appendTo(O),$("").appendTo(V),$(""),L.appendTo(v),x=$(""),$("
').append(O).appendTo(V),V=$("
").append(A).appendTo(V),$(""+$.t("Background")+"").append(W).appendTo(V),i.reverse&&(z=$(""),V=this.addLabeledRow(O,$.t("Reverse"),z,!0),$("").append(z).prependTo(V),M="Change Gann Square Reverse",this.bindControl(new s(z,i.reverse,!0,t,M))),this.bindControl(new s(A,i.arcsBackground.fillBackground,!0,t,"Change Gann Square Filling")),this.bindControl(new d(W,i.arcsBackground.transparency,!0,t,"Change Gann Square Background Transparency")),j=$(''),V=this.addLabeledRow(O,$.t("Price/Bar Ratio"),j,!0),$("").append(j).appendTo(V),j.TVTicker({step:o.getScaleRatioStep()}),M="Change Gann Square Scale Ratio",H=this._getPropertySetter(i.scaleRatio,M),G=[p(i.scaleRatio.value()),l(1e-7),r(1e8)],N=new b(j,i.scaleRatio,G,!1,t,M,H),N.addFormatter(function(e){return o.getScaleRatioFormatter().format(e)}),this.bindControl(N),U=$(''),V=this.addLabeledRow(O,$.t("Ranges And Ratio"),U,!1),$("").append(U).prependTo(V),this.bindControl(new s(U,i.showLabels,!0,t,"Change Gann Square Lables Visibility")),v=C(),f=this.createColorPicker(),q=$(''),Y=$(''),K=this.createFontSizeEditor(),Q=this.createFontEditor(),J=i.labelsStyle,this.bindControl(new c(K,J.fontSize,parseInt,!0,t,"Change Text Font Size")),this.bindControl(new c(Q,J.font,null,!0,t,"Change Text Font")),this.bindControl(new s(q,J.bold,!0,t,"Change Text Font Bold")),this.bindControl(new s(Y,J.italic,!0,t,"Change Text Font Italic")),Z=$('').append($(document.createElement("td")).attr({width:1}).append(Q)).append($(document.createElement("td")).attr({width:1}).append(K)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(q)).append($(document.createElement("td")).css("vertical-align","top").append(Y)).append($("
")),$('
').append(Z).appendTo(V)},i.prototype.widget=function(){return this._table},i.prototype._getPropertySetter=function(e,t){var o=this.model(),i=this._linetool;return function(n){o.beginUndoMacro(t),o.saveLineToolState(i,"Save Gann Square State"),o.setProperty(e,n,t),o.saveLineToolState(i,"Save Gann Square State"),o.endUndoMacro()}},e.exports.LineToolGannComplexStylesPropertyPage=i},1107:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.SliderBinder,p=a.ColorBinding,s=o(372).addColorPicker,d=o(1196).createLineWidthEditor,h=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addOneColorPropertyWidget=function(e){ +$("").append(x).prependTo(L),$("").append(P).appendTo(L),$("").append(k).appendTo(L),$("").append(S.render()).appendTo(L),this.bindControl(new r(x,this._linetool.properties().grid.visible,!0,this.model(),"Change Fib Speed Resistance Fan Grid Visibility")),this.bindControl(new l(P,this._linetool.properties().grid.color,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Color",0)),this.bindControl(new s(S,this._linetool.properties().grid.linestyle,parseInt,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Style")),this.bindControl(new d(k,this._linetool.properties().grid.linewidth,!0,this.model(),"Change Fib Speed Resistance Fan Grid Line Width")),this._table=this._table.add(w).add(v),L=$("
").append(x).appendTo(L),this.createLabeledCell("Background",x).appendTo(L),B=u(),$('').append(B).appendTo(L),this.bindControl(new r(x,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Speed/Resistance Fan Background Visibility")),this.bindControl(new d(B,this._linetool.properties().transparency,!0,this.model(),"Change Fib Speed/Resistance Fan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1103:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1198).createLineStyleEditor,d=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(''),e=$("").appendTo(this._table),t=d(),o=s(),i=this.createColorPicker(),n=this.addLabeledRow(e,"Line"),$("");m.appendTo(this._table),i=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Fib Spiral Line Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Fib Spiral Line Style")),this.bindControl(new p(t,this._linetool.properties().linewidth,!0,this.model(),"Change Fib Spiral Line Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1104:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(373).addColorPicker,c=o(1198).createLineStyleEditor,b=o(1197).createLineWidthEditor,u=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"), +this.bindControl(new r(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell($.t("Trend Line"),n).appendTo(m),C=$(""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new d(T,t.linewidth,parseInt,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,r,p,h;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,$.t("Show Labels"),o),$("").append(o).prependTo(i),n=$(""),a=$(""),r=$(""),i=$(""),i.append("").append(a).append("").append(r),i.appendTo(n),i=$(""),$(""),i.appendTo(this._table),p=$(""),$("") +;g.appendTo(this._table),i=$(""),i.appendTo(this._table),n=$(""),$("
"+$.t("Labels")+" 
").append(n).appendTo(i),i.appendTo(this._table),this.bindControl(new s(a,this._linetool.properties().horzLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),this.bindControl(new s(r,this._linetool.properties().vertLabelsAlign,null,!0,this.model(),"Change Fib Time Zone Labels Alignment")),i=$("
").append(p).appendTo(i),this.createLabeledCell($.t("Background"),p).appendTo(i),h=u(),$('').append(h).appendTo(i),this.bindControl(new l(o,this._linetool.properties().showLabels,!0,this.model(),"Change Fib Time Zone Labels Visibility")),this.bindControl(new d(h,this._linetool.properties().transparency,!0,this.model(),"Change Fib Retracement Background Transparency")),this.bindControl(new l(p,this._linetool.properties().fillBackground,!0,this.model(),"Change Fib Retracement Background Visibility")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1105:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.FloatBinder,l=a.BooleanBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(373).addColorPicker,h=o(1197).createLineWidthEditor,c=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,c,b,u,C,y,g=$("
"),i.appendTo(g),n=$(""),n.appendTo(i),e?(a=$(""),a.appendTo(g),c=$(""),c.appendTo(a),c.css("width","70px"),this.bindControl(new r(c,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):this.createLabeledCell("Trend Line",n).appendTo(g),b=$(""),b.appendTo(g),u=d(b),C=$(""),C.appendTo(g),y=h(),y.appendTo(C),this.bindControl(new l(n,t.visible,!0,this.model(),"Change Fib Wedge Visibility")),this.bindControl(new p(u,t.color,!0,this.model(),"Change Fib Wedge Line Color",0)),this.bindControl(new s(y,t.linewidth,!0,this.model(),"Change Fib Wedge Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().trendline,!1),e=1;e<=11;e++)t="level"+e,this.addLevelEditor("Level "+e,this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$(""),i=this.addLabeledRow(this._table,"Levels",o),$("").append(o).prependTo(i),this.bindControl(new l(o,this._linetool.properties().showCoeffs,!0,this.model(),"Change Fib Wedge Levels Visibility")),i=$("
").append(n).appendTo(i),this.createLabeledCell("Background",n).appendTo(i),a=c(),$('').append(a).appendTo(i),this.bindControl(new l(n,this._linetool.properties().fillBackground,!0,this.model(),"Change Wedge Background Visibility")),this.bindControl(new s(a,this._linetool.properties().transparency,!0,this.model(),"Change Wedge Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1106:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.SimpleComboBinder,l=a.ColorBinding,p=a.BooleanBinder,s=a.SliderBinder,d=o(1198).createLineStyleEditor,h=o(1197).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B;this._table=$(''),e=$("").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=this.addLabeledRow(e,$.t("Line")),$("").appendTo(this._table),g=$(''),T=this.createColorPicker(),n=this.addLabeledRow(y,$.t("Background"),g),w=$("
").append(i).appendTo(n),$("").append(t).appendTo(n),$('').append(o.render()).appendTo(n),n=this.addLabeledRow(e,$.t("Text")),a=this.createColorPicker(),c=this.createFontSizeEditor(),b=this.createFontEditor(),u=$(''),C=$(''),$("").append(a).appendTo(n),$("").append(b).appendTo(n),$("").append(c).appendTo(n),$("").append(u).appendTo(n),$("").append(C).appendTo(n), +y=$("
"),$('").appendTo(w),$("").appendTo(this._table),m=$("").css({"margin-left":"8px"}),f=$('').appendTo(m),L=$("").css({"margin-left":"8px"}),v=$('').appendTo(L),k=$(""),S=$(""),n=this.addLabeledRow(_,$.t("Left End")),$('").appendTo(this._table),n=$("").appendTo(P),x=$(""),B=$("");o.append($(""),e.appendTo(this._table),t=this.model(),o=this._linetool,i=o.properties(),n=$("
').append(w).appendTo(n),n=$("
").append(g).appendTo(n),$("").append(T).appendTo(n),_=$("
').appendTo(n).append(k).append(m),n=this.addLabeledRow(_,$.t("Right End")),$('').appendTo(n).append(S).append(L),P=$("
").append(B).appendTo(n),this.bindControl(new r(c,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new r(b,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new l(a,this._linetool.properties().textcolor,!0,this.model(),"Change Text Color")),this.bindControl(new p(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new p(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),this.bindControl(new p(x,this._linetool.properties().showPrices,!0,this.model(),"Change Disjoint Angle Show Prices")),this.bindControl(new p(f,this._linetool.properties().extendLeft,!0,this.model(),"Change Disjoint Angle Extending Left")),this.bindControl(new p(v,this._linetool.properties().extendRight,!0,this.model(),"Change Disjoint Angle Extending Right")),this.bindControl(new l(i,this._linetool.properties().linecolor,!0,this.model(),"Change Disjoint Angle Color")),this.bindControl(new r(o,this._linetool.properties().linestyle,parseInt,!0,this.model(),"Change Disjoint Angle Style")),this.bindControl(new s(t,this._linetool.properties().linewidth,!0,this.model(),"Change Disjoint Angle Width")),this.bindControl(new r(k,this._linetool.properties().leftEnd,parseInt,!0,this.model(),"Change Disjoint Angle Left End")),this.bindControl(new r(S,this._linetool.properties().rightEnd,parseInt,!0,this.model(),"Change Disjoint Angle Right End")),this.bindControl(new p(g,this._linetool.properties().fillBackground,!0,this.model(),"Change Disjoint Angle Filling")),this.bindControl(new l(T,this._linetool.properties().backgroundColor,!0,this.model(),"Change Disjoint Angle Background Color",this._linetool.properties().transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1107:function(e,t,o){"use strict" +;function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.LessTransformer,l=a.GreateTransformer,p=a.ToFloatTransformer,s=a.BooleanBinder,d=a.SliderBinder,h=a.ColorBinding,c=a.SimpleComboBinder,b=a.SimpleStringBinder,u=o(373).addColorPicker,C=o(1197).createLineWidthEditor,y=o(1199).createTransparencyEditor;o(242),inherit(i,n),i.prototype.addOneColorPropertyWidget=function(e){var t=this.createOneColorForAllLinesWidget(),o=$("
")).append($("")).append(t.editor).append($("").append(t.label)),o.appendTo(e)},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,g,T,w,_,m,f,L,v,k,S,P,x,B,R,E,F,I,D,A,W,V,O,z,M,j,H,G,N,U,q,Y,K,Q,J,Z;this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("
"),$(""),$("").appendTo(a),a.appendTo(n);for(g in i.levels._childs)T=i.levels[g],w=$(""),w.appendTo(n),$("").appendTo(w),_=$(""),$("
").append(n).appendTo(e),a=$("
"+$.t("Levels")+"
"+g+"").append(_).appendTo(w),m=$(""),m.appendTo(w),f=u(m),L=$(""),L.appendTo(w),v=C(),v.appendTo(L),this.bindControl(new s(_,T.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,T.color,!0,t,"Change Gann Line Color",0)),this.bindControl(new d(v,T.width,!0,t,"Change Gann Line Width"));k=$(""),$(""),$("").appendTo(S),S.appendTo(k);for(g in i.fanlines._childs)P=i.fanlines[g],x=$(""),x.appendTo(k),_=$(""),$("").appendTo(x),m=$("
").append(k).appendTo(e),S=$("
"+$.t("Fans")+"
").append(_).appendTo(x),B=P.x.value()+"x"+P.y.value(),$(""+B+""),m.appendTo(x),f=u(m),L=$(""),L.appendTo(x),v=C(),v.appendTo(L),this.bindControl(new s(_,P.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,P.color,!0,t,"Change Gann Fan Color",0)),this.bindControl(new d(v,P.width,!0,t,"Change Gann Line Width"));R=$(""),$(""),$("").appendTo(E),E.appendTo(R);for(g in i.arcs._childs)F=i.arcs[g],I=$(""),I.appendTo(R),_=$(""),$("").appendTo(I),m=$("").appendTo(this._table), +A=$(''),W=y(),V=$("").appendTo(D),O=$("
").append(R).appendTo(e),E=$("
"+$.t("Arcs")+"
").append(_).appendTo(I),B=F.x.value()+"x"+F.y.value(),$(""+B+""),m.appendTo(I),f=u(m),L=$(""),L.appendTo(I),v=C(),v.appendTo(L),this.bindControl(new s(_,F.visible,!0,t,"Change Gann Line Visibility")),this.bindControl(new h(f,F.color,!0,t,"Change Gann Arc Color",0)),this.bindControl(new d(v,F.width,!0,t,"Change Gann Line Width"));this.addOneColorPropertyWidget(R),D=$("
"),$('").appendTo(O),$("").appendTo(V),$("");o.append($(""),e.appendTo(this._table),t=this._linetool.properties(),o=$("
').append(O).appendTo(V),V=$("
").append(A).appendTo(V),$(""+$.t("Background")+"").append(W).appendTo(V),i.reverse&&(z=$(""),V=this.addLabeledRow(O,$.t("Reverse"),z,!0),$("").append(z).prependTo(V),M="Change Gann Square Reverse",this.bindControl(new s(z,i.reverse,!0,t,M))),this.bindControl(new s(A,i.arcsBackground.fillBackground,!0,t,"Change Gann Square Filling")),this.bindControl(new d(W,i.arcsBackground.transparency,!0,t,"Change Gann Square Background Transparency")),j=$(''),V=this.addLabeledRow(O,$.t("Price/Bar Ratio"),j,!0),$("").append(j).appendTo(V),j.TVTicker({step:o.getScaleRatioStep()}),M="Change Gann Square Scale Ratio",H=this._getPropertySetter(i.scaleRatio,M),G=[p(i.scaleRatio.value()),l(1e-7),r(1e8)],N=new b(j,i.scaleRatio,G,!1,t,M,H),N.addFormatter(function(e){return o.getScaleRatioFormatter().format(e)}),this.bindControl(N),U=$(''),V=this.addLabeledRow(O,$.t("Ranges And Ratio"),U,!1),$("").append(U).prependTo(V),this.bindControl(new s(U,i.showLabels,!0,t,"Change Gann Square Lables Visibility")),v=C(),f=this.createColorPicker(),q=$(''),Y=$(''),K=this.createFontSizeEditor(),Q=this.createFontEditor(),J=i.labelsStyle,this.bindControl(new c(K,J.fontSize,parseInt,!0,t,"Change Text Font Size")),this.bindControl(new c(Q,J.font,null,!0,t,"Change Text Font")),this.bindControl(new s(q,J.bold,!0,t,"Change Text Font Bold")),this.bindControl(new s(Y,J.italic,!0,t,"Change Text Font Italic")),Z=$('').append($(document.createElement("td")).attr({width:1}).append(Q)).append($(document.createElement("td")).attr({width:1}).append(K)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(q)).append($(document.createElement("td")).css("vertical-align","top").append(Y)).append($("
")),$('
').append(Z).appendTo(V)},i.prototype.widget=function(){return this._table},i.prototype._getPropertySetter=function(e,t){var o=this.model(),i=this._linetool;return function(n){o.beginUndoMacro(t),o.saveLineToolState(i,"Save Gann Square State"),o.setProperty(e,n,t),o.saveLineToolState(i,"Save Gann Square State"),o.endUndoMacro()}},e.exports.LineToolGannComplexStylesPropertyPage=i},1108:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1196),a=o(239),r=a.BooleanBinder,l=a.SliderBinder,p=a.ColorBinding,s=o(373).addColorPicker,d=o(1197).createLineWidthEditor,h=o(1199).createTransparencyEditor;inherit(i,n),i.prototype.addOneColorPropertyWidget=function(e){ var t=this.createOneColorForAllLinesWidget(),o=$("
")).append($("")).append(t.editor).append($("").append(t.label)),o.appendTo(e)},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,c,b,u,C,y,g,T,w,_,m,f,L,v,k,S,P,x,B,R,E,F;this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("
"),$(""),$("").appendTo(i),i.appendTo(o);for(n in t.levels._childs)a=t.levels[n],c=$(""),c.appendTo(o),$("").appendTo(c),b=$(""),$("
").append(o).appendTo(e),i=$("
"+$.t("Levels")+"
"+n+"").append(b).appendTo(c),u=$(""),u.appendTo(c),C=s(u),y=$(""),y.appendTo(c),g=d(),g.appendTo(y),this.bindControl(new r(b,a.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,a.color,!0,this.model(),"Change Gann Line Color",0)),this.bindControl(new l(g,a.width,!0,this.model(),"Change Gann Line Width"));T=$(""),$(""),$("").appendTo(w),w.appendTo(T);for(n in t.fanlines._childs)_=t.fanlines[n],m=$(""),m.appendTo(T),b=$(""),$("").appendTo(m),u=$("
").append(T).appendTo(e),w=$("
"+$.t("Fans")+"
").append(b).appendTo(m),f=_.x.value()+"x"+_.y.value(),$(""+f+""),u.appendTo(m),C=s(u),y=$(""),y.appendTo(m),g=d(),g.appendTo(y),this.bindControl(new r(b,_.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,_.color,!0,this.model(),"Change Gann Fan Color",0)),this.bindControl(new l(g,_.width,!0,this.model(),"Change Gann Line Width"));L=$(""),$(""),$("").appendTo(v),v.appendTo(L);for(n in t.arcs._childs)k=t.arcs[n],S=$(""),S.appendTo(L),b=$(""),$("").appendTo(S),u=$("").appendTo(this._table),x=$(''),B=h(),R=$("").appendTo(P),E=$("
").append(L).appendTo(e),v=$("
"+$.t("Arcs")+"
").append(b).appendTo(S),f=k.x.value()+"x"+k.y.value(),$(""+f+""),u.appendTo(S),C=s(u),y=$(""),y.appendTo(S),g=d(),g.appendTo(y),this.bindControl(new r(b,k.visible,!0,this.model(),"Change Gann Line Visibility")),this.bindControl(new p(C,k.color,!0,this.model(),"Change Gann Arc Color",0)),this.bindControl(new l(g,k.width,!0,this.model(),"Change Gann Line Width"));this.addOneColorPropertyWidget(L),P=$("
"),$('").appendTo(E),$("").appendTo(R),$("");m.appendTo(this._tbody),n="control-level-"+o+"-"+i,a=$("
').append(E).appendTo(R),R=$("
").append(x).appendTo(R),$(""+$.t("Background")+"").append(B).appendTo(R),t.reverse&&(F=$(""),R=this.addLabeledRow(E,$.t("Reverse"),F,!0), -$("").append(F).prependTo(R),this.bindControl(new r(F,t.reverse,!0,this.model(),"Change Gann Square Reverse"))),this.bindControl(new r(x,t.arcsBackground.fillBackground,!0,this.model(),"Change Gann Square Filling")),this.bindControl(new l(B,t.arcsBackground.transparency,!0,this.model(),"Change Gann Square Background Transparency"))},i.prototype.widget=function(){return this._table},e.exports.LineToolGannFixedStylesPropertyPage=i},1108:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SimpleComboBinder,s=a.SliderBinder,d=o(372).addColorPicker,h=o(1197).createLineStyleEditor,c=o(1196).createLineWidthEditor,b=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o,i){var n,a,b,u,C,y,g,T,w,_,m=$("
"),a.appendTo(m),b=$(""),b.appendTo(a),u=this.createLabeledCell(e).appendTo(m),u.find("label").attr("for",n),C=$(""),C.appendTo(m),y=d(C),g=$(""),g.appendTo(m),T=c(),T.appendTo(g),w=$(""),w.appendTo(m),_=h(),_.render().appendTo(w),this.bindControl(new r(b,t.visible,!0,this.model(),"Change Gann Fan Line Visibility")),this.bindControl(new l(y,t.color,!0,this.model(),"Change Gann Fan Line Color",0)),this.bindControl(new p(_,t.linestyle,parseInt,!0,this.model(),"Change Gann Fan Line Style")),this.bindControl(new s(T,t.linewidth,!0,this.model(),"Change Gann Fan Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l,p,d,h,c=$(''),u=$('
');for(this._tbody=$("").appendTo(c),e=1;e<=9;e++)t="level"+e,o=this._linetool.properties()[t],i=o.coeff1.value(),n=o.coeff2.value(),a=""+i+""+n+"",this.addLevelEditor(a,o,i,n);this.addOneColorPropertyWidget(this._tbody),l=$(""),p=this.addLabeledRow(u,$.t("Labels"),l),$(""),p.appendTo(this._table),d=$(""),$("");b.appendTo(e),i=$("").appendTo(e),n=$("");n.appendTo($("").appendTo(i),t=$("").appendTo(this._table),t=$(""),t.appendTo(e),o=$('
").append(l).prependTo(p),this.bindControl(new r(l,this._linetool.properties().showLabels,!0,this.model(),"Change Gann Fan Labels Visibility")),this._table=c.add(u),p=$("
").append(d).appendTo(p),this.createLabeledCell($.t("Background"),d).appendTo(p),h=b(),$('').append(h).appendTo(p),this.bindControl(new r(d,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfan Background Visibility")),this.bindControl(new s(h,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1109:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} -var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SliderBinder,d=o(372).addColorPicker,h=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,s,h,c,b=$("
"),i.appendTo(b),n=$(""),n.appendTo(i),a=$(""),a.appendTo(b),s=$(""),s.appendTo(a),s.css("width","70px"),this.bindControl(new r(n,o.visible,!0,this.model(),"Change Gann Square Line Visibility")),this.bindControl(new l(s,o.coeff,!1,this.model(),"Change Pitchfork Line Coeff")),h=$(""),h.appendTo(b),c=d(h),this.bindControl(new p(c,o.color,!0,this.model(),"Change Gann Square Line Color",0))},i.prototype.addFannEditor=function(e){var t,o,i=$("
").appendTo(i)),$(""+$.t("Angles")+"").appendTo(i),o=d(t),this.bindControl(new r(n,this._linetool.properties().fans.visible,!0,this.model(),"Change Gann Square Angles Visibility")),this.bindControl(new p(o,this._linetool.properties().fans.color,!0,this.model(),"Change Gann Square Angles Color",0))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a,l,p,d,c,b,u,C,y,g,T,w,_,m,f;for(this._table=$(document.createElement("table")),this._table.addClass("property-page property-page-unpadded"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this._table.css({width:"100%"}),e=$("
'),o.appendTo(t),i=$(''),i.appendTo(t),n=$(''),n.appendTo(o),n.addClass("property-page"),a=$('
'),a.appendTo(i),a.addClass("property-page"),$("").appendTo(n),$("").appendTo(a),l=1;l<=7;l++)p="hlevel"+l,this.addLevelEditor(n,$.t("Level {0}").format(l),this._linetool.properties()[p]);for(l=1;l<=7;l++)p="vlevel"+l,this.addLevelEditor(a,$.t("Level {0}").format(l),this._linetool.properties()[p]);this.addFannEditor(n),this.addOneColorPropertyWidget(a),i.css({"vertical-align":"top"}),o.css({"vertical-align":"top"}),d=$(""),c=$(""),b=$(""),u=$(""),C=$('
"+$.t("Price Levels")+"
"+$.t("Time Levels")+"
').css({width:"100%"}),y=$("").appendTo(C),g=$('
').appendTo($("
").css({width:"50%","vertical-align":"top"}).appendTo(y)),T=$('').appendTo($(""),w.appendTo(g),_=$(""),$(""),w.appendTo(T),_=$(""),$("
").css({width:"50%","vertical-align":"top"}).appendTo(y)),w=this.addLabeledRow(g,$.t("Left Labels"),d), -$("").append(d).prependTo(w),w=this.addLabeledRow(T,$.t("Right Labels"),c),$("").append(c).prependTo(w),w=this.addLabeledRow(g,$.t("Top Labels"),b),$("").append(b).prependTo(w),w=this.addLabeledRow(T,$.t("Bottom Labels"),u),$("").append(u).prependTo(w),this.bindControl(new r(d,this._linetool.properties().showLeftLabels,!0,this.model(),"Change Gann Square Left Labels Visibility")),this.bindControl(new r(c,this._linetool.properties().showRightLabels,!0,this.model(),"Change Gann Square Right Labels Visibility")),this.bindControl(new r(b,this._linetool.properties().showTopLabels,!0,this.model(),"Change Gann Square Top Labels Visibility")),this.bindControl(new r(u,this._linetool.properties().showBottomLabels,!0,this.model(),"Change Gann Square Bottom Labels Visibility")),this._table=this._table.add(C),w=$("
").append(_).appendTo(w),m=h(),$("").append(m).appendTo(w),this.bindControl(new r(_,this._linetool.properties().fillHorzBackground,!0,this.model(),"Change Gann Square Background Visibility")),this.bindControl(new s(m,this._linetool.properties().horzTransparency,!0,this.model(),"Change Gann Square Background Transparency")),w=$("
").append(_).appendTo(w),m=h(),$("").append(m).appendTo(w),this.bindControl(new r(_,this._linetool.properties().fillVertBackground,!0,this.model(),"Change Gann Square Background Visibility")),this.bindControl(new s(m,this._linetool.properties().vertTransparency,!0,this.model(),"Change Gann Square Background Transparency")),this._linetool.properties().reverse&&(f=$(""),w=this.addLabeledRow(g,$.t("Reverse"),f),$("").append(f).prependTo(w),this.bindControl(new r(f,this._linetool.properties().reverse,!0,this.model(),"Change Gann Box Reverse"))),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1110:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238).ColorBinding;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=$.t("Color")+":",o=this.addLabeledRow(this._table,t),$("").append(e).appendTo(o),i=this._linetool.properties(),this._div=$("
").append(this._table),this.bindControl(new a(e,i.color,!0,this.model(),"Change Icon Color")),this.loadData()},i.prototype.widget=function(){return this._div},e.exports=i},1111:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=a.SimpleComboBinder,d=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,h,c,b,u,C;this._table=$(document.createElement("table")), -this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=d(),t=this.createColorPicker(),o=this.createColorPicker(),i=$(''),n=$(''),a=this.createFontSizeEditor(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Border"),c.prepend("
"),$("").append(t).appendTo(c),$("").append(e).appendTo(c),b=$(''),u=this.createColorPicker(),h=this.createFontEditor(),c=this.addLabeledRow(this._table,"Background",b),$("").append(b).prependTo(c),$("").append(u).appendTo(c),this.bindControl(new r(b,this._linetool.properties().fillBackground,!0,this.model(),"Change Pattern Filling")),this.bindControl(new l(t,this._linetool.properties().color,!0,this.model(),"Change Pattern Line Color")),this.bindControl(new l(o,this._linetool.properties().textcolor,!0,this.model(),"Change Pattern Text Color")),this.bindControl(new l(u,this._linetool.properties().backgroundColor,!0,this.model(),"Change Pattern Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Pattern Border Width")),this.bindControl(new s(a,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new s(h,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new r(i,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new r(n,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),C=$('').append($(document.createElement("td")).attr({width:1}).append(o)).append($(document.createElement("td")).attr({width:1}).append(h)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).css("vertical-align","top").attr({width:1}).append(i)).append($(document.createElement("td")).css("vertical-align","top").append(n)).append($("
")),c=this.addLabeledRow(this._table,""),$('
').append(C).appendTo(c),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1112:function(e,t,o){"use strict";function i(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var n=o(8).Point,a=o(1195),r=o(238),l=r.ColorBinding,p=r.SimpleComboBinder,s=r.SimpleStringBinder,d=r.BooleanBinder,h=o(76);inherit(i,a),i.prototype.prepareLayout=function(){ -var e,t,o,i,n=this.createColorPicker(),a=this.createFontSizeEditor(),r=this.createFontEditor(),h=this.createTextEditor(350,200),c=this.createColorPicker(),b=this.createColorPicker(),u=$(''),C=$('');this.bindControl(new l(n,this._linetool.properties().textColor,!0,this.model(),"Change Text Color")),this.bindControl(new p(a,this._linetool.properties().fontSize,parseInt,!0,this.model(),"Change Text Font Size")),this.bindControl(new p(r,this._linetool.properties().font,null,!0,this.model(),"Change Text Font")),this.bindControl(new s(h,this._linetool.properties().text,null,!0,this.model(),"Change Text")),this.bindControl(new l(c,this._linetool.properties().markerColor,!0,this.model(),"Change Marker and Border Color")),this.bindControl(new l(b,this._linetool.properties().backgroundColor,!0,this.model(),"Change Background Color",this._linetool.properties().backgroundTransparency)),this.bindControl(new d(u,this._linetool.properties().bold,!0,this.model(),"Change Text Font Bold")),this.bindControl(new d(C,this._linetool.properties().italic,!0,this.model(),"Change Text Font Italic")),e=$(''),t=$('
'),o=$('
'),this._table=e.add(o).add(t),$(document.createElement("tr")).append($(document.createElement("td")).attr({width:1}).append(n)).append($(document.createElement("td")).attr({width:1}).append(r)).append($(document.createElement("td")).attr({width:1}).append(a)).append($(document.createElement("td")).attr({width:1}).append(u)).append($(document.createElement("td")).append(C)).appendTo(e),$(document.createElement("tr")).append($(document.createElement("td")).attr({colspan:5}).append(h)).appendTo(e),i=this.addLabeledRow(o,$.t("Label")),$("").appendTo(e),$("").appendTo(n),$("").appendTo(e),a=$("").appendTo(e),y=$("").appendTo(this._table),_=this.addEditorRow(w,"Extend Left",$(""),2),m=this.addEditorRow(w,"Extend Right",$(""),2),f=this._linetool.properties(),this.bindControl(new r(g,f.fillBackground,!0,this.model(),"Change Parallel Channel Fill Background")),this.bindControl(new r(c,f.showMidline,!0,this.model(),"Change Parallel Channel Show Center Line")),this.bindControl(new r(_,f.extendLeft,!0,this.model(),"Change Parallel Channel Extending Left")),this.bindControl(new r(m,f.extendRight,!0,this.model(),"Change Parallel Channel Extending Right")),this.bindControl(new l(i,f.linecolor,!0,this.model(),"Change Parallel Channel Color")),this.bindControl(new p(o,f.linestyle,parseInt,!0,this.model(),"Change Parallel Channel Style")),this.bindControl(new s(t,f.linewidth,!0,this.model(),"Change Parallel Channel Width")),this.bindControl(new l(C,f.midlinecolor,!0,this.model(),"Change Parallel Channel Middle Color")),this.bindControl(new p(u,f.midlinestyle,parseInt,!0,this.model(),"Change Parallel Channel Middle Style")),this.bindControl(new s(b,f.midlinewidth,!0,this.model(),"Change Parallel Channel Middle Width")),this.bindControl(new l(T,f.backgroundColor,!0,this.model(),"Change Parallel Channel Back Color",f.transparency)),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1114:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("");m.appendTo(this._table),e?(i=$("").appendTo(m),C=$(""),o.appendTo(this._table),i=$(""),$("");m.appendTo(this._table),e?(i=$("").appendTo(m),$("").appendTo(m)),C=$(""),o.appendTo(this._table),i=$(""),$(""),o.appendTo(this._table),$("").appendTo(o),$("
").attr("colspan",2).append(c).appendTo(i),i=this.addLabeledRow(o,$.t("Background")),$("").append(b).appendTo(i),this.loadData(),setTimeout(function(){h.select(),h.focus()},20)},i.prototype.widget=function(){return this._table},i.prototype.dialogPosition=function(e,t){var o,i,a,r,l,p,s,d,c,b;if(e&&t){for(o=0,i=this._linetool._model.paneForSource(this._linetool),a=h.getChartWidget();oc?(e.left-=e.left+b+10-c,e):e.left>c&&e.left").appendTo(this._table),t=h(),o=d(),i=this.createColorPicker(),n=$("
"+$.t("Channel")+"").append(i).appendTo(n),$("").append(t).appendTo(n),$("").append(o.render()).appendTo(n),n=$("
").appendTo(n),c=$(""),c.appendTo(a),this.createLabeledCell("Middle",c).appendTo(n),b=h(),u=d(),C=this.createColorPicker(),$("").append(C).appendTo(n),$("").append(b).appendTo(n),$("").append(u.render()).appendTo(n),n=$("
").appendTo(n),g=$(""),g.appendTo(y),this.createLabeledCell("Background",g).appendTo(n),T=this.createColorPicker(),$("").append(T).appendTo(n),w=$("
"),i.appendTo(m), -n=$(""),n.appendTo(i),a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new l(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):$(""+$.t("Median")+""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color"),0),this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfan Line Style")),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Pitchfan Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().median,!1),e=0;e<=8;e++)t="level"+e,this.addLevelEditor($.t("Level {0}").format(e+1),this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("
").append(i).appendTo(o),this.createLabeledCell($.t("Background"),i).appendTo(o),n=u(),$('').append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfan Background Visibility")),this.bindControl(new d(n,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfan Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1115:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.FloatBinder,p=a.ColorBinding,s=a.SimpleComboBinder,d=a.SliderBinder,h=o(372).addColorPicker,c=o(1197).createLineStyleEditor,b=o(1196).createLineWidthEditor,u=o(1198).createTransparencyEditor;inherit(i,n),i.prototype.onResoreDefaults=function(){this._linetool.properties().style.listeners().fire(this._linetool.properties().style)},i.prototype.addLevelEditor=function(e,t,o){var i,n,a,u,C,y,g,T,w,_,m=$("
"),i.appendTo(m),n=$(""),n.appendTo(i),a=$(""),a.appendTo(m),u=$(""),u.appendTo(a),u.css("width","70px"),this.bindControl(new r(n,t.visible,!0,this.model(),"Change Pitchfork Line Visibility")),this.bindControl(new l(u,t.coeff,!1,this.model(),"Change Pitchfork Line Coeff"))):($(""+$.t("Median")+""),C.appendTo(m),y=h(C),g=$(""),g.appendTo(m),T=b(),T.appendTo(g),w=$(""),w.appendTo(m),_=c(),_.render().appendTo(w),this.bindControl(new p(y,t.color,!0,this.model(),"Change Pitchfork Line Color",0)), -this.bindControl(new s(_,t.linestyle,parseInt,!0,this.model(),"Change Pitchfork Line Style")),this.bindControl(new d(T,t.linewidth,!0,this.model(),"Change Pitchfork Line Width"))},i.prototype.prepareLayout=function(){var e,t,o,i,n,a;for(this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),this.addLevelEditor(null,this._linetool.properties().median,!1),e=0;e<=8;e++)t="level"+e,this.addLevelEditor($.t("Level {0}").format(e+1),this._linetool.properties()[t],!1);this.addOneColorPropertyWidget(this._table),o=$("
").append(i).appendTo(o),this.createLabeledCell("Background",i).appendTo(o),n=u(),$('').append(n).appendTo(o),a=$(""),o=$("
"+$.t("Style")+"").append(a).appendTo(o),this.bindControl(new s(a,this._linetool.properties().style,parseInt,!0,this.model(),"Change Pitchfork Style")),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Pitchfork Background Visibility")),this.bindControl(new d(n,this._linetool.properties().transparency,!0,this.model(),"Change Pitchfork Background Transparency")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1116:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.BooleanBinder,l=a.ColorBinding,p=a.SliderBinder,s=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new r(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Polyline Filling")),this.bindControl(new l(t,this._linetool.properties().linecolor,!0,this.model(),"Change Polyline Line Color")),this.bindControl(new l(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Polyline Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Polyline Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1117:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()} -var n=o(1195),a=o(238),r=a.ColorBinding,l=a.SliderBinder,p=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n,a,s,d,h,c,b,u,C,y,g,T,w,_,m=$(''),f=$('
').css({width:"100%"}),L=$('
');this._table=m.add(f).add(L),e=this.createColorPicker(),t=p(),o=this.addLabeledRow(m,"Line"),$("").appendTo(f),n=$("{{#columns}}{{/columns}}',tvDataTableCell:''}},function(t,e,i){"use strict";function o(t){ var e=t.split(":");return{name:e[0],type:2===e.length?e[1]:null}}function n(t,e,i,n){var r,s,a,l,c,p,_,f,m,g,v,y,b,S,w,T=i.split(".");if(0!==T.length&&0!==T[0].length){if(r=o(T[0]),s=r.name,a=r.type,l=null!==a,c=!l||"plot"===a,p=!l||"band"===a,_=!l||"area"===a,f=!l||"input"===a,m=c?d.getPlotIdByTitle(t,s):null,g=p?d.getBandIndexByName(t,s):null,v=_?d.getFilledAreaIdByTitle(t,s):null,y=f?d.getInputByName(t,s):null,b=e.hasOwnProperty(s),(null!==m?1:0)+(null!==g?1:0)+(null!==v?1:0)+(null!==y?1:0)+(b?1:0)>1)return void h.logWarn("Study '"+t.description+"' has ambiguous identifier '"+s+"'");if(S=T[1],null!==m){if(1===T.length)return void h.logWarn("Path of sub-property of '"+s+"' plot for study '"+t.description+"' must be not empty");w=T.slice(1),u.applyPlotProperty(t,e,m,w,n)}else if(null!==y)u.applyInputValue(e,y,n);else if(null!==g){if(void 0===S)return void h.logWarn("Property name of '"+s+"' band for study '"+t.description+"' must be set");u.applyBandProperty(e,g,S,n)}else if(null!==v){if(void 0===S)return void h.logWarn("Property name of '"+s+"' area for study '"+t.description+"' must be set");u.applyFilledAreaProperty(e,v,S,n)}else b?u.setRootProperty(e,T,n):h.logWarn("Study '"+t.description+"' has no plot or input '"+s+"'")}}function r(t,e){var i,o,r=t.properties(),s=r.state();for(i in e)e.hasOwnProperty(i)&&n(t.metaInfo(),s,i,e[i]);r.merge(s),o=r.precision,void 0!==o?o.listeners().fire(o):r.listeners().fire(r)}function s(t,e,i){var o,r,s,a,l;for(o in t)t.hasOwnProperty(o)&&-1!==(r=o.indexOf("."))&&(s=o.substr(0,r),a=d.getMetaInfoByDescription(e,s),null!==a?(l=i(a.id),null!==l?n(a,l,o.substr(r+1),t[o]):h.logWarn("Cannot apply overrides for study "+s)):h.logWarn("There is no such study "+s))}var a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),a=i(111),l=i(9),c=i(7),h=c.getLogger("Chart.Model.StudyPropertiesOverrider"),function(t){function e(t){return"colorer"===t.type}function i(t,i,o){var n,r,s,a;if(void 0===t.plots)return null;for(n=0,r=t.plots;n0?void h.logWarn("Study plot does not have color #"+o):((0===o||isNaN(o))&&(l.ensureDefined(t.styles[i]).color=n+"",o=0),void(null!==e&&(l.ensureDefined(e.colors[o]).color=n+"")))}function n(t,e,n,r,s){var a,l,c,u,p;if(void 0===e.styles)return void h.logWarn("Study does not have styles");if("color"===(a=r[0]))return l=i(t,e,n),c=r.length>1?parseInt(r[1]):NaN,void o(e,l,n,c,s);if(void 0===(u=e.styles[n])||!u.hasOwnProperty(a))return void h.logWarn("Study plot does not have property '"+a+"'");if("plottype"===a){if(void 0===(p=d[s+""]))return void h.logWarn("Unsupported plot type for plot: "+s);s=p}u[a]=s}function r(t,e,i,o){var n,r;if(void 0===t.bands)return void h.logWarn("Study does not have bands");if(void 0===(n=t.bands[e])||!n.hasOwnProperty(i))return void h.logWarn("Study band does not have property '"+i+"'") -;if("plottype"===i){if(void 0===(r=d[o+""]))return void h.logWarn("Unsupported plot type for band: "+o);o=r}n[i]=o}function s(t,e,i,o){if(void 0===t.filledAreasStyle)return void h.logWarn("Study does not have areas");var n=t.filledAreasStyle[e];if(void 0===n||!n.hasOwnProperty(i))return void h.logWarn("Study area does not have property '"+i+"'");n[i]=o}function c(t,e,i){if(void 0===t.inputs||!t.inputs.hasOwnProperty(e))return void h.logWarn("Study does not have input '"+e+"'");t.inputs[e]=i}function u(t,e,i){var o,n,r,s,a;if(0!==e.length){for(o=t,n=0,r=e.slice(0,-1);ne?(a&&(clearTimeout(a),a=null),l=h,r=t.apply(o,n),a||(o=n=null)):a||!1===i.trailing||(a=setTimeout(s,c)),r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,t.exports=e.default},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h,u;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),i(43),n=i(2),r=i(14),s=i(59),a=i(85),l=i(151),c=i(722),h=i(392),u=function(t){function e(e){var i=t.call(this,e)||this;return i._toggleDropdown=function(t){i.setState({isOpened:void 0!==t?t:!i.state.isOpened})},i._handleClose=function(){i._toggleDropdown(!1)},i._getDropdownPosition=function(){ +;if("plottype"===i){if(void 0===(r=d[o+""]))return void h.logWarn("Unsupported plot type for band: "+o);o=r}n[i]=o}function s(t,e,i,o){if(void 0===t.filledAreasStyle)return void h.logWarn("Study does not have areas");var n=t.filledAreasStyle[e];if(void 0===n||!n.hasOwnProperty(i))return void h.logWarn("Study area does not have property '"+i+"'");n[i]=o}function c(t,e,i){if(void 0===t.inputs||!t.inputs.hasOwnProperty(e))return void h.logWarn("Study does not have input '"+e+"'");t.inputs[e]=i}function u(t,e,i){var o,n,r,s,a;if(0!==e.length){for(o=t,n=0,r=e.slice(0,-1);ne?(a&&(clearTimeout(a),a=null),l=h,r=t.apply(o,n),a||(o=n=null)):a||!1===i.trailing||(a=setTimeout(s,c)),r}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,t.exports=e.default},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h,u;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),i(43),n=i(2),r=i(14),s=i(59),a=i(85),l=i(151),c=i(723),h=i(393),u=function(t){function e(e){var i=t.call(this,e)||this;return i._toggleDropdown=function(t){i.setState({isOpened:void 0!==t?t:!i.state.isOpened})},i._handleClose=function(){i._toggleDropdown(!1)},i._getDropdownPosition=function(){ if(!i._control)return{x:0,y:0};var t=i._control.getBoundingClientRect();return{x:t.left+t.width+1,y:t.top-6}},i._handleClickArrow=function(){i._toggleDropdown()},i._handleTouchStart=function(){i.props.onClickButton(),i._toggleDropdown()},i._handlePressStart=function(){if(Modernizr.touch)i._longPressDelay||i.props.onClickButton();else{if(i._doubleClickDelay)return clearTimeout(i._doubleClickDelay),delete i._doubleClickDelay,void i._toggleDropdown(!0);i._doubleClickDelay=setTimeout(function(){delete i._doubleClickDelay,i._longPressDelay||i.props.onClickButton()},175)}i._longPressDelay=setTimeout(function(){delete i._longPressDelay,i._toggleDropdown(!0)},300)},i._handlePressEnd=function(){i._longPressDelay&&(clearTimeout(i._longPressDelay),delete i._longPressDelay,i.state.isOpened?i._toggleDropdown(!1):i.state.isOpened||!i.props.isActive||Modernizr.touch||i._toggleDropdown(!0))},i.state={isOpened:!1},i}return o.__extends(e,t),e.prototype.render=function(){var t,e=this,i=this.props,o=i.buttonActiveClass,u=i.buttonClass,d=i.buttonIcon,p=i.buttonTitle,_=i.children,f=i.isActive,m=i.isGrayed,g=i.onClickWhenGrayed,v=this.state.isOpened;return n.createElement("div",{className:r(c.dropdown,"apply-common-tooltip common-tooltip-vertical",(t={},t[c.isGrayed]=m,t[c.isActive]=f,t[c.isOpened]=v,t)),onClick:m?g:void 0,title:p,"data-tooltip-delay":1500},n.createElement("div",{ref:function(t){return e._control=t},className:c.control},n.createElement("div",{className:c.buttonWrap,onMouseDown:m||Modernizr.touch?void 0:this._handlePressStart,onMouseUp:m||Modernizr.touch?void 0:this._handlePressEnd,onClick:!m&&Modernizr.touch?this._handleTouchStart:void 0},n.createElement(l.ToolButton,{activeClass:o,className:u,icon:d,isActive:f,isGrayed:m,isTransparent:!0})),!m&&!Modernizr.touch&&n.createElement("div",{className:c.arrow,onClick:this._handleClickArrow},n.createElement(s.Icon,{className:c.arrowIcon,icon:h}))),!m&&n.createElement(a.PopupMenu,{doNotCloseOn:this,isOpened:v,onClose:this._handleClose,position:this._getDropdownPosition},_))},e}(n.PureComponent),e.ToolDropdown=u},function(t,e){t.exports=''},function(t,e){ t.exports=''},function(t,e,i){"use strict";function o(t){return n.createDialog(Object.assign({},a,t))}var n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),i(12),n=i(65),r={key:13,name:"yes",text:$.t("Yes"),type:"success"},s={method:"close",name:"no",text:$.t("No"),type:"default"},a={actions:[r,s],actionsWrapTemplate:'
',content:$.t("Are you sure?"),contentWrapTemplate:'

',destroyOnClose:!0,title:$.t("Confirmation"),width:400},e.createConfirmDialog=o},function(t,e,i){"use strict";var o,n,r,s;Object.defineProperty(e,"__esModule",{value:!0}),o=i(9),n=i(19),function(t){t[t.FromLeft=-1]="FromLeft",t[t.FromRight=1]="FromRight"}(r=e.TimePointIndexSearchMode||(e.TimePointIndexSearchMode={})),s=function(){function t(t){this.m_bars=new n.PlotList(t),this.m_nsBars=new n.PlotList(t)}return t.prototype.bars=function(){return this.m_bars},t.prototype.nsBars=function(){return this.m_nsBars},t.prototype.size=function(){return this.m_bars.size()+this.m_nsBars.size()},t.prototype.each=function(t){this.m_bars.each(t),this.m_nsBars.each(t)},t.prototype.clear=function(){this.m_bars.clear(),this.m_nsBars.clear(),this.lastProjectionPrice=void 0},t.prototype.isEmpty=function(){return this.m_bars.isEmpty()&&this.m_nsBars.isEmpty()},t.prototype.first=function(){return this.m_bars.isEmpty()?this.m_nsBars.first():this.m_bars.first()},t.prototype.last=function(){return this.m_nsBars.isEmpty()?this.m_bars.last():this.m_nsBars.last()},t.prototype.search=function(t,e){return this.nsBars().isEmpty()?this.bars().search(t,e):this.bars().isEmpty()?this.nsBars().search(t,e):o.ensureNotNull(this.nsBars().firstIndex())<=t?this.nsBars().search(t,e):this.bars().search(t,e)},t.prototype.valueAt=function(t){var e=this.search(t);return null!==e?e.value:null},t.prototype.plotValueToTimePointIndex=function(t,e,i){var o,n,s,a;if(i===r.FromRight)return o=function(i,o){var n=o[e];return void 0!==n&&null!==n&&t>=n},null!==(n=this.m_bars.findLast(o))?n.index:(s=this.m_nsBars.findLast(o), null!==s?s.index:this.m_bars.firstIndex());if(i===r.FromLeft)return a=function(i,o){var n=o[e];return void 0!==n&&null!==n&&t<=n},null!==(n=this.m_bars.findFirst(a))?n.index:(s=this.m_nsBars.findFirst(a),null!==s?s.index:this.m_bars.lastIndex());throw Error("plotValueToTimePointIndex: unsupported search mode")},t}(),e.SeriesData=s},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(15),n=function(){function t(t){void 0===t&&(t=1),this._precision=t}return t.prototype.format=function(t){var e,i;return o.isNumber(t)||(t=parseFloat(t)),e=t.toFixed(this._precision),i=Math.pow(10,-this._precision),Math.max(parseFloat(e),i)+""},t}(),e.LimitedPrecisionNumericFormatter=n},function(t,e){t.exports=''},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(9),n=i(17),i(13),r=function(){function t(t){var e=this;this._alive=new n,this._body=new n,this._width=new n,this._height=new n,this._fullscreen=new n,this._detachable=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(),body:this._body.readonly(),width:this._width.readonly(),height:this._height.readonly(),fullscreen:this._fullscreen.readonly(),detachable:this._detachable.readonly(),visible:this._visible.readonly(),availWidth:this._availWidth.readonly(),availHeight:this._availHeight.readonly(),remove:function(){var t=e._owner.value();t&&t.remove&&t.remove()},negotiateWidth:function(t){var i=e._owner.value();i&&i.negotiateWidth&&i.negotiateWidth(t)},negotiateHeight:function(t){var i=e._owner.value();i&&i.negotiateHeight&&i.negotiateHeight(t)},requestFullscreen:function(){var t=e._owner.value();t&&t.requestFullscreen&&t.requestFullscreen()},exitFullscreen:function(){var t=e._owner.value();t&&t.exitFullscreen&&t.exitFullscreen()},detach:function(t){var i=e._owner.value();i&&i.detach&&i.detach(t)},attach:function(){var t=e._owner.value();t&&t.attach&&t.attach()}},t&&this.pushOwner(t)}return t.prototype.bridge=function(){return this._bridge},t.prototype.pushOwner=function(t){var e,i,o,n;if(t.alive.value()){for(e=0,i=this._ownersStack;e0,r=e?n.pnfStyle.upColorProjection.value():n.pnfStyle.upColor.value(),s=e?n.pnfStyle.downColorProjection.value():n.pnfStyle.downColor.value(),i.isBarUp=p,i.barColor=p?r:s;break;case TradingView.Series.STYLE_BASELINE:c=this.findBar(t,e,o),f=n.baselineStyle,m=this._series.priceScale(),g=Math.round(m.height()*(Math.abs(100-f.baseLevelPercentage.value())/100)),v=m.coordinateToPrice(g),c[TradingView.CLOSE_PLOT]>v?i.barColor=n.baselineStyle.topLineColor.value():i.barColor=n.baselineStyle.bottomLineColor.value()}return i},n.prototype.getSeriesBars=function(t){return t?this._series.nsBars():this._series.bars()},n.prototype._findBarFieldValue=function(t,e,i){var o=this.getSeriesBars(i).valueAt(t);if(null!==o)return o[e]},n.prototype.findBar=function(t,e,i){return i?i.value:this.getSeriesBars(e).valueAt(t)||[]},n.prototype.findPrevBar=function(t,e,i){var o,n;return i&&i.previousValue?i.previousValue:(o=this._series.bars(),n=o._search(t,s.Exact),null!==n&&n>0?this._series.bars()._valueAt(n-1):[])},inherit(r,o),r.prototype.applyBarStyle=function(t,e,i){var o,n,r,s,a,l,c,h,u,d,p,_,f;return i||(i={}),e?i:(o=this._study.properties(),o.visible.value()?(n=this._study.metaInfo(),(r=this._study.data())&&0!==r.size()?(s=n.plots[this._plotIndex],this._study.getMinFirstBarIndexForPlot(s.id)>t?i:(a=o.styles[s.id],a.visible&&!a.visible.value()?i:(l=this._study.offset(s.id),null===(c=r.valueAt(t-l))?i:null==(h=c[this._plotIndex+1])?i:(h=Math.round(h),u=n.plots[this._plotIndex].palette,d=o.palettes,p=d[u],_=n.palettes[u].valToIndex?n.palettes[u].valToIndex[h]:h,f=p.colors[_].color.value(),i.barColor=f,i.upColor=f.color,i.downColor=f.color,i)))):i):i)},e.SeriesBarColorer=n,e.StudyBarColorer=r},function(t,e,i){"use strict";function o(t){this.items=t.items,this.barSpacing=t.barSpacing,this.colorUp=t.colorup,this.colorDn=t.colordown,this.colorBorderUp=t.colorBorderUp,this.colorBorderDown=t.colorBorderDown,this.width=this._calculateWidth(t.barSpacing),this.minHeight=t.minHeight,this.vertOffset=this._calculateVerticalOffset(t.barSpacing)}function n(t,e,i,o){this.x=t,this.y=e,this.height=i,this.isUp=o}var r=i(8).Point,s=i(11);o.prototype._calculateVerticalOffset=function(t){return Math.round((t||0)/4)},o.prototype._calculateMinHeight=function(t){return this.width||this._calculateWidth(t)},o.prototype._calculateWidth=function(t){var t=t||this.barSpacing;return Math.round(t/2)},o.prototype.draw=function(t){var e,i,o,n,r,s,a,l=this.width,c=l<4,h=Math.max(parseInt(l/2),1),u=Math.round(this.width/2),d=Math.round(this.width);for(t.translate(1,1),e=0,i=this.items.length;e1;return 0===this._graphics.indexes.length&&!t},o.prototype.graphics=function(){return this._graphics},o.prototype.setGraphics=function(t){this._graphics=t,this._postProcessGraphicsData()},o.prototype.process=function(t){if(""!==t.d)return t.d.indexes_replace?void this.replaceIndexes(t):void(t.d.graphicsCmds&&(this.processEraseCmds(t.d.graphicsCmds.erase),this.processCreateCmds(t.d.graphicsCmds.create,t.indexes)))},o.prototype.replaceIndexes=function(t){""!==t.d&&(n(!!t.d.indexes_replace),this._graphics.indexes=t.indexes)},o.prototype.processEraseCmds=function(t){var e,i,r,s,a;if(t)for(n(!!this._graphics,"_graphics object doesn't exist in the study!"),n(!!this._graphics.indexes,"_graphics.indexes array doesn't exist in the study!"),e=0;e=0&&s.data.splice(a,1)}},o._findGraphicsObjIndexById=function(t,e){for(var i=0;i=c.priceHigh||d.priceLow>=c.priceLow)&&(d.priceHigh<=h.priceHigh||d.priceLow<=h.priceLow)&&(d.va=!0);n.shortDataObj||(n.shortDataObj={}),n.shortDataObj[s]=a.slice()}}},o._sortHHistItemsByPrice=function(t){t.sort(function(t,e){return t.priceLow-e.priceLow})},o._splitHHistItemsBySession=function(t,e){var i,o,n,s={};for(i=0;i=0?new c(e,i,a):new c(e,i)},t.exports=o},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(9),r=i(67),s=i(15),a=function(t){function e(e,i){var o=t.call(this)||this;return o._activeBackground="#0F6DBF",o._background="#5592C9",o._active=!1,o._source=e,o._data=i,o}return o.__extends(e,t),e.prototype.setActive=function(t){this._active=t},e.prototype.setBackground=function(t){this._background=t},e.prototype._updateRendererData=function(t){var e,i,o,r,a,l,c,h;if(t.visible=!1,e=this._source.model(),e.timeScale()&&!e.timeScale().isEmpty()&&null!==(i=this._source.priceScale())&&!i.isEmpty()&&(e.selectedSource()===this._source||this._source.isForcedDrawPriceAxisLabel())&&null!==e.timeScale().visibleBars()&&(o=this._source.axisPoints(),r=this._data.pointIndex,!(o.length<=r)&&(a=o[r], +n(s in this._metaInfo.graphics[i]),this._graphics[i]||(this._graphics[i]=[]),a=null;for(l=0;l=c.priceHigh||d.priceLow>=c.priceLow)&&(d.priceHigh<=h.priceHigh||d.priceLow<=h.priceLow)&&(d.va=!0);n.shortDataObj||(n.shortDataObj={}),n.shortDataObj[s]=a.slice()}}},o._sortHHistItemsByPrice=function(t){t.sort(function(t,e){return t.priceLow-e.priceLow})},o._splitHHistItemsBySession=function(t,e){var i,o,n,s={};for(i=0;i=0?new c(e,i,a):new c(e,i)},t.exports=o},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(9),r=i(67),s=i(15),a=function(t){function e(e,i){var o=t.call(this)||this;return o._activeBackground="#0F6DBF",o._background="#5592C9",o._active=!1,o._source=e,o._data=i,o}return o.__extends(e,t),e.prototype.setActive=function(t){this._active=t},e.prototype.setBackground=function(t){this._background=t},e.prototype._updateRendererData=function(t){var e,i,o,r,a,l,c,h;if(t.visible=!1,e=this._source.model(),e.timeScale()&&!e.timeScale().isEmpty()&&null!==(i=this._source.priceScale())&&!i.isEmpty()&&(e.selectedSource()===this._source||this._source.isForcedDrawPriceAxisLabel())&&null!==e.timeScale().visibleBars()&&(o=this._source.axisPoints(),r=this._data.pointIndex,!(o.length<=r)&&(a=o[r], isFinite(a.price)))){if(i.isPercent()){if(!(l=this._source.ownerSource()))return;if(c=l.firstValue(),!s.isNumber(c))return;a.price=n.ensureNotNull(i.priceRange()).convertToPercent(a.price,c)}h=this._active?this._activeBackground:this._background,this._data.backgroundProperty&&(h=this._data.backgroundProperty.value()),t.background=h,t.borderColor="#2E84A6",t.color=this.generateTextColor(h),t.coordinate=i.priceToCoordinate(a.price),t.text=i.formatter().format(a.price),t.visible=!0}},e}(r.PriceAxisView),e.LineToolPriceAxisView=a},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(32),n=function(){function t(){this._text="",this._background="#585858",this._coordinate=0}return t.prototype.text=function(){return this._text},t.prototype.background=function(){return this._background},t.prototype.color=function(){return"black"===o.rgbToBlackWhiteString(o.parseRgb(this._background),150)?"white":"black"},t.prototype.coordinate=function(){return this._coordinate},t}(),e.TimeAxisView=n},function(t,e,i){"use strict";function o(){this._data=null}var n=/[1-9]/g;o.prototype.setData=function(t){this._data=t},o.prototype.draw=function(t,e){var i,o,r,s,a,l,c,h,u,d,p,_,f,m,g,v,y,b,S;null!=this._data&&!1!==this._data.visible&&0!==this._data.text.length&&(t.font=e.font,(i=Math.round(e.widthCache.measureText(t,this._data.text,n)))<=0||(o=e.paddingHorizontal,r=i+2*o,s=r/2,a=this._data.width,l=this._data.coordinate,c=Math.floor(l-s)+.5,c<0?(l+=Math.abs(0-c),c=Math.floor(l-s)+.5):c+r>a&&(l-=Math.abs(a-(c+r)),c=Math.floor(l-s)+.5),h=c,u=h+r,d=u,p=Math.round(this._data.coordinate+1),_=p,f=.5,m=f+e.borderSize+e.tickLength+e.paddingTop+e.fontSize+e.paddingBottom,g=m,v=f,y=v,b=y+e.borderSize+e.tickLength,S=m-e.baselineOffset-e.paddingBottom,t.fillStyle=this._data.background,t.lineWidth=1,t.beginPath(),t.strokeStyle=this._data.color,t.moveTo(c,f),t.lineTo(h,m),t.lineTo(u,g),t.lineTo(d,v),t.fill(),t.beginPath(),t.moveTo(p,y),t.lineTo(_,b),t.stroke(),t.textAlign="left",t.fillStyle=this._data.color,t.fillText(this._data.text,c+o,S)))},t.exports=o},function(t,e,i){"use strict";function o(t,e){this.customization={forcePriceAxisLabel:!0,disableSelection:!0,disableErasing:!0},n.call(this,t,e)}var n=i(1).LineDataSource;inherit(o,n),o.POINTS_COUNT=1,o.prototype.pointsCount=function(){return o.POINTS_COUNT},o.prototype.hasContextMenu=function(){return!1},o.prototype.state=function(){return null},o.prototype.startMoving=function(){n.prototype.startMoving.apply(this,arguments),this._cursorMoved=!1},o.prototype.endMoving=function(){n.prototype.endMoving.apply(this,arguments),this._cursorMoved=!1},o.prototype.correctPoints=function(t){var e,i,o,n,r;for(this._currentMovingPoint&&this._startMovingPoint?this._currentMovingPoint.price-this._startMovingPoint.price&&(this._cursorMoved=!0):this._cursorMoved=!1,e=this.priceScale(),i=e.mainSource().base(),o=1/i,n=0;n100&&y.riskDisplayMode.setValueSilently("money"),this._syncStateExclusions=["entryPrice","stopPrice","targetPrice","riskSize","qty","amountTarget","amountStop","risk","accountSize"],this.version=o.version,this._entryPriceAxisView=new l(this,{colorProperty:y.linecolor,priceProperty:y.entryPrice}),this._stopPriceAxisView=new l(this,{colorProperty:y.stopBackground,priceProperty:y.stopPrice}),this._profitPriceAxisView=new l(this,{colorProperty:y.profitBackground,priceProperty:y.targetPrice}),i.e(1).then(function(t){var e=i(1170).RiskRewardPaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}function n(t,e){var i,n;this._constructor="LineToolRiskRewardShort",i=e||new h("linetoolriskrewardshort"),o.call(this,t,i),n=this.properties(), -n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}function r(t,e){var i,n;this._constructor="LineToolRiskRewardLong",i=e||new h("linetoolriskrewardlong"),o.call(this,t,i),n=this.properties(),n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}var s=i(9).ensureNotNull,a=i(1).LineDataSource,l=i(843).LineToolRiskRewardPriceAxisView,c=i(26),h=i(6).DefaultProperty,u=i(89).NumericFormatter,d=i(3).propertyPages,p=i(408).RiskRewardPointIndex;inherit(o,a),o.prototype.riskFormatter=function(t){return"percents"===t?this._riskInPercentsFormatter:this._riskInMoneyFormatter},o.prototype.getRiskStep=function(t){return"percents"===t?.01:1},o.prototype._roundValue=function(t){return parseFloat(t.toFixed(2))},o.prototype._recalculateRisk=function(){var t=this.properties(),e=t.riskDisplayMode.value(),i=t.riskSize.value(),o=t.accountSize.value(),n=t.risk.value();n="percents"===e?this._roundValue(i/o*100):this._roundValue(o/100*n),this._riskInChange=!0,t.risk.setValue(this.riskFormatter(e).format(n)),this._riskInChange=!1},o.prototype._recalculateRiskSize=function(){var t,e,i,o;this._riskInChange||(t=this.properties(),e=t.risk.value(),i=t.riskDisplayMode.value(),o=t.accountSize.value(),"percents"===i?t.riskSize.setValue(e/100*o):e>o?(t.risk.setValue(o),t.riskSize.setValue(o)):t.riskSize.setValue(e))},o.version=2,o.prototype.i18nCache={title:$.t("Risk/Reward")},o.prototype.lastBarData=function(){var t,e,i,o,n,r=this._model.mainSeries().bars().firstIndex(),a=this._model.mainSeries().bars().lastIndex();return null===r||null===a||isNaN(r)||isNaN(a)?null:(t=this.points(),4===t.length?(e=t[p.ActualClose],e.index=1&&(o=[],o.push(this._points[0]),n=this._points[0],n={price:n.price,index:n.index+50},o.push(n),this._points[1]&&o.push(this._points[1]),this._points[2]&&o.push(this._points[2]),this._points=o,this._timePoint.length>=1&&(r=[],n=this._timePoint[0],r.push(n),s={price:n.price,time_t:n.time_t,offset:n.offset+50},r.push(s), +o.prototype.canBeHidden=function(){return!1},o.prototype.isUserDeletable=function(){return!1},o.prototype.showInObjectTree=function(){return!1},o.prototype.getInputsPropertyPage=function(){return null},t.exports=o},function(t,e,i){"use strict";(function(t){function o(e,n){var r,s,c,d,p,_,f,m,g,v,y=n||new h("linetoolriskreward");a.call(this,e,y),this._properties.addExclusion&&(this._properties.addExclusion("stopLevel"),this._properties.addExclusion("profitLevel")),n.stopLevel||n.profitLevel||(r=e.timeScale().visibleBars(),s=r.firstBar(),c=r.lastBar(),d=e.mainSeries().priceRange(s,c),p=e.mainSeries().priceScale(),p.isLog()&&(_=p.logicalToPrice(d.minValue()),f=p.logicalToPrice(d.maxValue()),d=new t(_,f)),p.isPercent()&&(m=e.mainSeries().firstValue(),_=p.priceRange().convertFromPercent(d.minValue(),m),f=p.priceRange().convertFromPercent(d.maxValue(),m),d=new t(_,f)),d&&!d.isEmpty()&&(g=Math.round(.2*d.length()*e.mainSeries().base()),y.merge({stopLevel:g,profitLevel:g}))),v=this,y.stopLevel.listeners().subscribe(this,this.recalculate),y.stopLevel.listeners().subscribe(null,function(){v.properties().stopPrice._listeners.fire(v.properties().stopPrice)}),y.profitLevel.listeners().subscribe(this,this.recalculate),y.profitLevel.listeners().subscribe(null,function(){v.properties().targetPrice._listeners.fire(v.properties().targetPrice)}),y.addChild("entryPrice",new o.PriceProperty(this,0)),y.addChild("stopPrice",new o.StopPriceProperty(this)),y.addChild("targetPrice",new o.TargetPriceProperty(this)),y.addProperty("riskSize",250),y.addProperty("qty",0),y.addProperty("amountTarget",y.accountSize.value()),y.addProperty("amountStop",y.accountSize.value()),this._riskInPercentsFormatter=new u(2),this._riskInMoneyFormatter=new u,y.risk.subscribe(this,this._recalculateRiskSize),y.accountSize.subscribe(this,this._recalculateRiskSize),y.riskDisplayMode.subscribe(this,this._recalculateRisk),y.riskDisplayMode.subscribe(this,this._recalculateRiskSize),y.entryPrice.subscribe(this,this._recalculateRiskSize),y.stopPrice.subscribe(this,this._recalculateRiskSize),y.profitLevel.subscribe(this,this._recalculateRiskSize),y.stopLevel.subscribe(this,this._recalculateRiskSize),y.qty.subscribe(this,this._recalculateRiskSize),"percents"===y.riskDisplayMode.value()&&y.risk.value()>100&&y.riskDisplayMode.setValueSilently("money"),this._syncStateExclusions=["entryPrice","stopPrice","targetPrice","riskSize","qty","amountTarget","amountStop","risk","accountSize"],this.version=o.version,this._entryPriceAxisView=new l(this,{colorProperty:y.linecolor,priceProperty:y.entryPrice}),this._stopPriceAxisView=new l(this,{colorProperty:y.stopBackground,priceProperty:y.stopPrice}),this._profitPriceAxisView=new l(this,{colorProperty:y.profitBackground,priceProperty:y.targetPrice}),i.e(1).then(function(t){var e=i(1171).RiskRewardPaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}function n(t,e){var i,n;this._constructor="LineToolRiskRewardShort",i=e||new h("linetoolriskrewardshort"),o.call(this,t,i),n=this.properties(), +n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}function r(t,e){var i,n;this._constructor="LineToolRiskRewardLong",i=e||new h("linetoolriskrewardlong"),o.call(this,t,i),n=this.properties(),n.entryPrice.subscribe(this,this._recalculateQty),n.stopPrice.subscribe(this,this._recalculateQty),n.riskSize.subscribe(this,this._recalculateQty),n.entryPrice.subscribe(this,this._recalculateAmount),n.profitLevel.subscribe(this,this._recalculateAmount),n.stopLevel.subscribe(this,this._recalculateAmount),n.accountSize.subscribe(this,this._recalculateAmount),n.riskSize.subscribe(this,this._recalculateAmount),n.qty.subscribe(this,this._recalculateAmount)}var s=i(9).ensureNotNull,a=i(1).LineDataSource,l=i(844).LineToolRiskRewardPriceAxisView,c=i(26),h=i(6).DefaultProperty,u=i(89).NumericFormatter,d=i(3).propertyPages,p=i(409).RiskRewardPointIndex;inherit(o,a),o.prototype.riskFormatter=function(t){return"percents"===t?this._riskInPercentsFormatter:this._riskInMoneyFormatter},o.prototype.getRiskStep=function(t){return"percents"===t?.01:1},o.prototype._roundValue=function(t){return parseFloat(t.toFixed(2))},o.prototype._recalculateRisk=function(){var t=this.properties(),e=t.riskDisplayMode.value(),i=t.riskSize.value(),o=t.accountSize.value(),n=t.risk.value();n="percents"===e?this._roundValue(i/o*100):this._roundValue(o/100*n),this._riskInChange=!0,t.risk.setValue(this.riskFormatter(e).format(n)),this._riskInChange=!1},o.prototype._recalculateRiskSize=function(){var t,e,i,o;this._riskInChange||(t=this.properties(),e=t.risk.value(),i=t.riskDisplayMode.value(),o=t.accountSize.value(),"percents"===i?t.riskSize.setValue(e/100*o):e>o?(t.risk.setValue(o),t.riskSize.setValue(o)):t.riskSize.setValue(e))},o.version=2,o.prototype.i18nCache={title:$.t("Risk/Reward")},o.prototype.lastBarData=function(){var t,e,i,o,n,r=this._model.mainSeries().bars().firstIndex(),a=this._model.mainSeries().bars().lastIndex();return null===r||null===a||isNaN(r)||isNaN(a)?null:(t=this.points(),4===t.length?(e=t[p.ActualClose],e.index=1&&(o=[],o.push(this._points[0]),n=this._points[0],n={price:n.price,index:n.index+50},o.push(n),this._points[1]&&o.push(this._points[1]),this._points[2]&&o.push(this._points[2]),this._points=o,this._timePoint.length>=1&&(r=[],n=this._timePoint[0],r.push(n),s={price:n.price,time_t:n.time_t,offset:n.offset+50},r.push(s), this._timePoint[1]&&o.push(this._points[1]),this._timePoint[2]&&o.push(this._points[2]),this._timePoint=r))},o.prototype.checkAlert=function(){this.recalculate()},o.prototype.priceAxisViews=function(t,e){return this.isSourceHidden()?null:e!==this.priceScale()||this._model.paneForSource(this)!==t?null:[this._entryPriceAxisView,this._stopPriceAxisView,this._profitPriceAxisView]},o.prototype.updateAllViews=function(){this.isActualSymbol()&&this._properties.visible.value()&&(c.hideAllDrawings().value()&&this.userEditEnabled()||(a.prototype.updateAllViews.call(this),this._entryPriceAxisView.update(),this._stopPriceAxisView.update(),this._profitPriceAxisView.update()))},o.prototype.setPoint=function(t,e){var i,o=this.priceScale();switch(o.isPercent()&&(i=this.ownerSource().firstValue(),e.price=o.priceRange().convertFromPercent(e.price,i)),t){case 0:e.price=this._roundPrice(e.price),o.isPercent()&&(e.price=o.priceRange().convertToPercent(e.price,i)),a.prototype.setPoint.call(this,t,e),this.recalculate();break;case 1:this.isActualSymbol()&&this.properties().stopPrice.setValue(this.preparseStopPrice(e.price));break;case 2:this.isActualSymbol()&&this.properties().targetPrice.setValue(this.preparseProfitPrice(e.price));break;case 3:e.price=this._roundPrice(e.price),o.isPercent()&&(e.price=o.priceRange().convertToPercent(e.price,i)),a.prototype.setPoint.call(this,1,e),this.recalculate()}},o.PriceProperty=function(t,e){a.PointPriceProperty.call(this,t,e)},inherit(o.PriceProperty,a.PointPriceProperty),o.PriceProperty.prototype.setValue=function(t){var e=this._lineSource.points()[this._pointIndex];e.price=parseFloat(t),this._lineSource.setPoint(this._pointIndex,e),this._lineSource.recalculate(),this._lineSource._model.updateSource(this._lineSource),this._listeners.fire(this),this._lineSource.endChanging(),this._lineSource._syncMultichartState()},o.StopPriceProperty=function(t){o.PriceProperty.call(this,t,1)},inherit(o.StopPriceProperty,o.PriceProperty),o.StopPriceProperty.prototype.value=function(){var t=this._lineSource.stopPrice(),e=this._lineSource.ownerSource().formatter(),i=e.parse(e.format(t));return i.price?i.price:i.value},o.StopPriceProperty.prototype.setValue=function(t){var e=Math.round(Math.abs(t-this._lineSource.entryPrice())*this._lineSource._model.mainSeries().base());this._lineSource.properties().stopLevel.setValue(e),this._lineSource.properties().stopLevel.listeners().fire(this._lineSource.properties().stopLevel)},o.TargetPriceProperty=function(t){o.PriceProperty.call(this,t,2)},inherit(o.TargetPriceProperty,o.PriceProperty),o.TargetPriceProperty.prototype.value=function(){var t=this._lineSource.profitPrice(),e=this._lineSource.ownerSource().formatter(),i=e.parse(e.format(t));return i.price?i.price:i.value},o.TargetPriceProperty.prototype.setValue=function(t){var e=Math.round(Math.abs(t-this._lineSource.entryPrice())*this._lineSource._model.mainSeries().base());this._lineSource.properties().profitLevel.setValue(e),this._lineSource.properties().profitLevel.listeners().fire(this._lineSource.properties().profitLevel) },o.prototype.pointsCount=function(){return 1},o.prototype.title=function(){return this.i18nCache.title},o.prototype.addPoint=function(t){var e,i;return t.price=this._roundPrice(t.price),a.prototype.addPoint.call(this,t,null,!0),e={price:t.price,index:t.index+50},a.prototype._addPointIntenal.call(this,e,null,!0),i=this.calculateActualEntry(t,e),i&&(a.prototype._addPointIntenal.call(this,i,null,!0),(e=this.findClosePoint(i,e))&&a.prototype._addPointIntenal.call(this,e,null,!0)),this._lastPoint=null,this.normalizePoints(),this.createServerPoints(),!0},o.prototype._roundPrice=function(t){var e=this._model.mainSeries().base();return Math.round(t*e)/e},o.prototype.recalculate=function(){var t,e,i,o,n;this.properties().interval.value()===this._model.mainSeries().interval()&&0!==this.points().length&&(t=this.properties().targetPrice.value(),e=this.properties().stopPrice.value(),i=[this._points[0],this._points[1]],o=this.calculateActualEntry(this.points()[0],this.points()[1]),o&&(i.push(o),(n=this.findClosePoint(o,this.points()[1]))&&i.push(n)),this._points=i,t!==this.properties().targetPrice.value()&&this.properties().targetPrice._listeners.fire(this.properties().targetPrice),e!==this.properties().stopPrice.value()&&this.properties().stopPrice._listeners.fire(this.properties().stopPrice))},o.prototype.start=function(){a.prototype.start.call(this),this.recalculate()},o.prototype.startMoving=function(t){t.price=this._roundPrice(t.price),a.prototype.startMoving.call(this,t)},o.prototype.move=function(t){t.price=this._roundPrice(t.price),a.prototype.move.call(this,t),this.recalculate(),this._entryPriceAxisView.update()},o.prototype.correctPoints=function(t){return!!this.isActualSymbol()&&a.prototype.correctPoints.call(this,[t[0],t[1]])},o.prototype.entryPrice=function(){return this.points()[0].price},o.prototype.findClosePoint=function(t,e){var i,o,n,r=this._model.mainSeries().bars(),a=s(r.firstIndex()),l=Math.max(t.index,a),c=s(r.lastIndex());for(i=l;i<=Math.min(c,e.index);i++)if(o=s(r.valueAt(i)),null!=(n=this.checkStopPrice(o)))return{index:i,price:n};return null},o.prototype.calculateActualEntry=function(t,e){var i,o,n=this._model.mainSeries().bars(),r=s(n.firstIndex()),a=Math.max(t.index,r),l=t.price,c=s(n.lastIndex());for(i=a;i<=Math.min(c,e.index);i++)if(o=s(n.valueAt(i)),o[TradingView.HIGH_PLOT]>=l&&o[TradingView.LOW_PLOT]<=l)return{index:i,price:l};return null},o.prototype.axisPoints=function(){var t,e,i;if(!this._points[p.ActualEntry])return[];if(t=this._points[p.ActualEntry],e=null,4===this._points.length)e=this._points[p.ActualClose];else{if(!(i=this.lastBarData()))return[];e={index:i.index,price:i.closePrice}}return[t,e]},o.prototype.getInputsPropertyPage=function(){return d.LineToolRiskRewardInputsPropertyPage},o.prototype.getStylesPropertyPage=function(){return d.LineToolRiskRewardStylesPropertyPage},inherit(n,o),n.prototype.i18nCache={title:$.t("Risk/Reward short")},n.prototype._recalculateQty=function(){var t,e,i,o,n;0!==this.points().length&&(t=this.properties(),e=t.entryPrice.value(),i=t.stopPrice.value(), o=t.riskSize.value(),n=Math.floor(o/Math.abs(i-e)),t.qty.setValue(n))},n.prototype._recalculateAmount=function(){var t,e,i,o,n,r,s,a;0!==this.points().length&&(t=this.properties(),e=t.accountSize.value(),i=t.entryPrice.value(),o=t.qty.value(),n=t.stopPrice.value(),r=t.targetPrice.value(),s=this._roundValue(e+(i-r)*o),a=this._roundValue(e-(n-i)*o),t.amountTarget.setValue(s),t.amountStop.setValue(a))},n.prototype.title=function(){return this.i18nCache.title},n.prototype.stopPrice=function(){return this.entryPrice()+this.properties().stopLevel.value()/this._model.mainSeries().base()},n.prototype.profitPrice=function(){return this.entryPrice()-this.properties().profitLevel.value()/this._model.mainSeries().base()},n.prototype.calculatePL=function(t){return this.entryPrice()-t},n.prototype.preparseStopPrice=function(t){t=this._roundPrice(t);var e=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(t,e)},n.prototype.preparseProfitPrice=function(t){t=this._roundPrice(t);var e=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(t,e)},n.prototype.checkStopPrice=function(t){var e=this.stopPrice(),i=this.profitPrice();return t[TradingView.HIGH_PLOT]>=e?this.stopPrice():t[TradingView.LOW_PLOT]<=i?this.profitPrice():null},r.prototype.i18nCache={title:$.t("Risk/Reward long")},inherit(r,o),r.prototype._recalculateQty=function(){var t,e,i,o,n;0!==this.points().length&&(t=this.properties(),e=t.entryPrice.value(),i=t.stopPrice.value(),o=t.riskSize.value(),n=Math.floor(o/Math.abs(e-i)),t.qty.setValue(n))},r.prototype._recalculateAmount=function(){var t,e,i,o,n,r,s,a;0!==this.points().length&&(t=this.properties(),e=t.accountSize.value(),i=t.entryPrice.value(),o=t.qty.value(),n=t.stopPrice.value(),r=t.targetPrice.value(),s=this._roundValue(e+(r-i)*o),a=this._roundValue(e-(i-n)*o),t.amountTarget.setValue(s),t.amountStop.setValue(a))},r.prototype.stopPrice=function(){return this.entryPrice()-this.properties().stopLevel.value()/this._model.mainSeries().base()},r.prototype.profitPrice=function(){return this.entryPrice()+this.properties().profitLevel.value()/this._model.mainSeries().base()},r.prototype.calculatePL=function(t){return t-this.entryPrice()},r.prototype.preparseStopPrice=function(t){t=this._roundPrice(t);var e=this.entryPrice()-1/this._model.mainSeries().base();return Math.min(t,e)},r.prototype.preparseProfitPrice=function(t){t=this._roundPrice(t);var e=this.entryPrice()+1/this._model.mainSeries().base();return Math.max(t,e)},r.prototype.checkStopPrice=function(t){var e=this.stopPrice(),i=this.profitPrice();return t[TradingView.LOW_PLOT]<=e?this.stopPrice():t[TradingView.HIGH_PLOT]>=i?this.profitPrice():null},r.prototype.title=function(){return this.i18nCache.title},e.LineToolRiskReward=o,e.LineToolRiskRewardLong=r,e.LineToolRiskRewardShort=n}).call(e,i(73))},function(t,e,i){"use strict";function o(t,e){this._formatter=t,this._maxSize=e||50,this._actualSize=0,this._cache={},this._usageTick=1,this._oldestTick=1,this._tick2Labels={}}o.prototype.format=function(t){var e,i ;return this._cache[t]?this._cache[t].string:(this._actualSize===this._maxSize&&(e=this._tick2Labels[this._oldestTick],delete this._tick2Labels[this._oldestTick],delete this._cache[e],this._oldestTick++,this._actualSize--),i=this._formatter(t),this._cache[t]={string:i,tick:this._usageTick},this._tick2Labels[this._usageTick]=t,this._actualSize++,this._usageTick++,i)},t.exports=o},function(t,e,i){"use strict";function o(t,e,i){a.call(this,t,e,i)}function n(t,e,i){o.call(this,t,e,i)}function r(t,e,i){o.call(this,t,e,i)}function s(t,e,i){o.call(this,t,e,i)}var a=i(105).LineStudyMtp;inherit(o,a),o.prototype.pointsCount=function(){return 1},o.prototype._studyInputs=function(){var t,e,i=this.points();return i.length0?1/0:i<0?-1/0:t.zorder(),[t,i,e]}).sort(function(t,e){return t[1]-e[1]||t[2]-e[2]}).map(function(t){return t[0]})},o.prototype._updateMargins=function(){var t,e,i=.01*this._properties.topMargin.value(),o=.01*this._properties.bottomMargin.value();for(this.m_leftPriceScale.setTopMargin(i),this.m_leftPriceScale.setBottomMargin(o),this.m_rightPriceScale.setTopMargin(i),this.m_rightPriceScale.setBottomMargin(o),t=0;t0?1/0:i<0?-1/0:t.zorder(),[t,i,e]}).sort(function(t,e){return t[1]-e[1]||t[2]-e[2]}).map(function(t){return t[0]})},o.prototype._updateMargins=function(){var t,e,i=.01*this._properties.topMargin.value(),o=.01*this._properties.bottomMargin.value();for(this.m_leftPriceScale.setTopMargin(i),this.m_leftPriceScale.setBottomMargin(o),this.m_rightPriceScale.setTopMargin(i),this.m_rightPriceScale.setBottomMargin(o),t=0;to)&&(o=i));return null===o&&(o=this.getZOrderMinMax().minZOrder-1),this.m_dataSources.forEach(function(t){t.zorder()>o&&t.setZorder(t.zorder()+1)}),o+1},o.prototype.beginInsertManyLineDataSources=function(){this._isInInsertManyDataSourcesState=!0,this._lastLineDataSourceZOrder=null},o.prototype.endInsertManyLineDataSources=function(){this._isInInsertManyDataSourcesState=!1,this._lastLineDataSourceZOrder=null},o.prototype.addDataSource=function(t,e,i){var o;t instanceof r&&!i?(o=null!==this._lastLineDataSourceZOrder?this._lastLineDataSourceZOrder:this._newZOrderForLineTool(),this._isInInsertManyDataSourcesState&&(this._lastLineDataSourceZOrder=o)):o=this.getZOrderMinMax().minZOrder-1,this.insertDataSource(t,e,o)},o.prototype.insertDataSource=function(t,e,i){var n,r,s;this.m_dataSources.push(t),n=!1,t===this._model.mainSeries()?(this.m_mainDataSource=t,n=!0):null===this.m_mainDataSource&&(this.m_mainDataSource=t,n=!0),t._isOverlay=!1, null!==e||this.canHaveMoreNoScaleSources()||(e=this.rightPriceScale()),null===e&&(r=this.m_rightPriceScale.topMargin(),s=this.m_rightPriceScale.bottomMargin(),t.metaInfo&&"Volume@tv-basicstudies"===t.metaInfo().id&&(r=.75,s=0),e=new c(this._model.properties().scalesProperties),e.setHeight(this.m_height),e.setTopMargin(r),e.setBottomMargin(s),t._isOverlay=!0),e.addDataSource(t,this._isInInsertManyDataSourcesState),t.setPriceScale(e),t.onTagsChanged&&t.onTagsChanged().subscribe(this,o.prototype.onSourceTagsChanged),t.setZorder(i),n&&this._processMainSourceChange(),this._tagsChanged.fire(),TradingView.isInherited(t.constructor,a)&&this.recalculatePriceScale(e),this.invalidateSourcesCache()},o.prototype.removeDataSource=function(t,e){var i,n=this.m_dataSources.indexOf(t);if(-1===n)return void l.logDebug("removeDataSource: invalid data source");t._isOverlay=!1,this.m_dataSources.splice(n,1),t!==this.m_mainDataSource||e||(this.m_mainDataSource=null),i=null,-1!==this.m_leftPriceScale.dataSources().indexOf(t)?(this.m_leftPriceScale.removeDataSource(t),i=this.m_leftPriceScale):-1!==this.m_rightPriceScale.dataSources().indexOf(t)&&(this.m_rightPriceScale.removeDataSource(t),i=this.m_rightPriceScale),t.onTagsChanged&&t.onTagsChanged().unsubscribe(this,o.prototype.onSourceTagsChanged),TradingView.isInherited(t.constructor,a)&&this._processMainSourceChange(),this._tagsChanged.fire(),i&&TradingView.isInherited(t.constructor,a)&&this.recalculatePriceScale(i),this.invalidateSourcesCache()},o.prototype.startScalePrice=function(t,e){t.startScale(e)},o.prototype.scalePriceTo=function(t,e){t.scaleTo(e),this.updateAllViews()},o.prototype.endScalePrice=function(t){t.endScale()},o.prototype.startScrollPrice=function(t,e){t.startScroll(e)},o.prototype.scrollPriceTo=function(t,e){t.scrollTo(e),this.updateAllViews()},o.prototype.endScrollPrice=function(t){t.endScroll()},o.prototype.setPriceAutoScale=function(t,e){if(t.setAutoScale(e),this.timeScale().isEmpty())return void t.setPriceRange(null);this.recalculatePriceScale(t)},o.prototype.restorePriceScaleState=function(t,e){t.restoreState(e),this.updateAllViews()},o.prototype.updateAllViews=function(){for(var t=0;t0&&!this.timeScale().isEmpty()&&(i=this.timeScale().visibleBars(),t.recalculatePriceRange(i)),t.updatePaneViews())},o.prototype.resetPriceScale=function(t){var e=this.timeScale().visibleBars();t.isLockScale()||t.setAutoScale(!0),t.recalculatePriceRange(e),this.updateAllViews()},o.prototype.recalculate=function(){var t,e;for(this.recalculatePriceScale(this.m_rightPriceScale),this.recalculatePriceScale(this.m_leftPriceScale),t=0;te&&(e=o.zorder());return{minZOrder:t,maxZOrder:e}},o.prototype.isZOrderAvailable=function(t){var e,i;for(e=0;e0&&e<0?(n=a[l-1].zorder(),r=t.zorder(),a[l-1].setZorder(r),t.setZorder(n)):l0&&(s=a[l+1].zorder(),r=t.zorder(),a[l+1].setZorder(r),t.setZorder(s)),this.invalidateSourcesCache()},o.prototype.onSourceTagsChanged=function(){this._tagsChanged.fire()},o.prototype.onTagsChanged=function(){return this._tagsChanged},o.prototype.dumpPriceScale=function(t){var e,i,o,n=t.dataSources(),r=[];for(e=0;e=0;t--)TradingView.isInherited(this.m_dataSources[t].constructor,TradingView.Series)&&this.m_dataSources.splice(t,1)},o.prototype.nonOverlayPricesSourcesCount=function(){return this.m_dataSources.filter(function(t){return(!t.properties().linkedToSeries||!t.properties().linkedToSeries.value())&&(TradingView.isInherited(t.constructor,a)&&t.showInObjectTree()&&!t.isNoScale())}).length},o.prototype.canHaveMoreNoScaleSources=function(){return this.nonOverlayPricesSourcesCount()>1},o.prototype.actionNoScaleIsEnabled=function(t){return!(!this.isOverlay(t)&&TradingView.isInherited(t.constructor,a))||this.canHaveMoreNoScaleSources()},o.prototype.executionsPositionController=function(){return this._executionsPositionController||(this._executionsPositionController=new n(this,this._model.timeScale())),this._executionsPositionController},o.prototype.isLast=function(){var t=this._model.panes();return t[t.length-1]===this}, o.prototype.setMaximized=function(t){this._maximized=t},o.prototype.isMaximized=function(){return this._maximized},o.prototype.isMainPane=function(){var t=this._model.mainSeries(),e=!1;return this.m_dataSources.forEach(function(i){e||(e=i===t)}),this._isMainPane=e,e},o.prototype.properties=function(){return this._properties},o.prototype._mainSourceVisiblePriceRange=function(t){var e=this.m_timeScale.visibleBars();return null!==e?t.mainSource().priceRange(e.firstBar(),e.lastBar()):new s(-.5,.5)},o.prototype.applyLeftPriceScaleRatio=function(t){this._lastLeftPriceScaleRatio!==t&&(this._setNewPriceRangeByScaleRatio(this.m_leftPriceScale,t,this._mainSourceVisiblePriceRange(this.m_leftPriceScale),!0,!0),this._tryToApplyNewLeftPriceScaleRatio(h(this.m_timeScale,this.m_leftPriceScale)))},o.prototype.applyRightPriceScaleRatio=function(t){this._lastRightPriceScaleRatio!==t&&(this._setNewPriceRangeByScaleRatio(this.m_rightPriceScale,t,this._mainSourceVisiblePriceRange(this.m_rightPriceScale),!0,!0),this._tryToApplyNewRightPriceScaleRatio(h(this.m_timeScale,this.m_rightPriceScale)))},o.prototype.isLeftPriceScaleLocked=function(){return!this.m_leftPriceScale.isLog()&&this.m_leftPriceScale.isLockScale()},o.prototype.isRightPriceScaleLocked=function(){return!this.m_rightPriceScale.isLog()&&this.m_rightPriceScale.isLockScale()},o.prototype.leftPriceScaleRatio=function(){return null===this._lastLeftPriceScaleRatio&&(this._lastLeftPriceScaleRatio=h(this.m_timeScale,this.m_leftPriceScale)),this._lastLeftPriceScaleRatio},o.prototype.rightPriceScaleRatio=function(){return null===this._lastRightPriceScaleRatio&&(this._lastRightPriceScaleRatio=h(this.m_timeScale,this.m_rightPriceScale)),this._lastRightPriceScaleRatio},o.prototype._mainSeriesPaneScaleRatioOnChange=function(){this.isMainPane()&&(this._lastLeftPriceScaleRatio=null,this._lastRightPriceScaleRatio=null,this._model.mainSeriesScaleRatioPropertyOnChanged())},o.prototype._applyOldScaleRatioToPriceScale=function(t,e){if(this._isRecalculatingScales||null===e||void 0===e)return!1;this._isRecalculatingScales=!0,this._setNewPriceRangeByScaleRatio(t,e,this._mainSourceVisiblePriceRange(t)),this._isRecalculatingScales=!1},o.prototype._applyOldScaleRatioToTimeScale=function(t,e){if(this._isRecalculatingScales||null===e||void 0===e)return!1;this._isRecalculatingScales=!0,this._setNewBarSpacingByScaleRatio(t,e),this._isRecalculatingScales=!1},o.prototype._tryToApplyNewLeftPriceScaleRatio=function(t){if(this._lastLeftPriceScaleRatio===t)return!1;this._leftPriceScaleRatioChanged.fire(this._lastLeftPriceScaleRatio,t),this._lastLeftPriceScaleRatio=t},o.prototype._tryToApplyNewRightPriceScaleRatio=function(t){if(this._lastRightPriceScaleRatio===t)return!1;this._rightPriceScaleRatioChanged.fire(this._lastRightPriceScaleRatio,t),this._lastRightPriceScaleRatio=t},o.prototype._recalculatePriceScaleByScaleRatio=function(){ this.isMainPane()&&(this.m_leftPriceScale.mainSource()&&(this.isLeftPriceScaleLocked()&&null!==this._lastLeftPriceScaleRatio?this._applyOldScaleRatioToPriceScale(this.m_leftPriceScale,this._lastLeftPriceScaleRatio):this._tryToApplyNewLeftPriceScaleRatio(h(this.m_timeScale,this.m_leftPriceScale))),this.m_rightPriceScale.mainSource()&&(this.isRightPriceScaleLocked()&&null!==this._lastRightPriceScaleRatio?this._applyOldScaleRatioToPriceScale(this.m_rightPriceScale,this._lastRightPriceScaleRatio):this._tryToApplyNewRightPriceScaleRatio(h(this.m_timeScale,this.m_rightPriceScale))))},o.prototype._recalculateTimeScaleByLeftScaleRatio=function(){this.isLeftPriceScaleLocked()&&null!==this._lastLeftPriceScaleRatio?this._applyOldScaleRatioToTimeScale(this.m_leftPriceScale,this._lastLeftPriceScaleRatio):this._tryToApplyNewLeftPriceScaleRatio(h(this.m_timeScale,this.m_leftPriceScale))},o.prototype._recalculateTimeScaleByRightScaleRatio=function(){this.isRightPriceScaleLocked()&&null!==this._lastRightPriceScaleRatio?this._applyOldScaleRatioToTimeScale(this.m_rightPriceScale,this._lastRightPriceScaleRatio):this._tryToApplyNewRightPriceScaleRatio(h(this.m_timeScale,this.m_rightPriceScale))},o.prototype._setNewPriceRangeByScaleRatio=function(t,e,i,o,n){var r=u(t,this.m_timeScale.barSpacing(),e);t.setPriceRange(null!==r?r:i,o,n)},o.prototype._setMinMaxPriceRange=function(t,e){var i=u(t,this.m_timeScale.maxBarSpacing(),e),o=u(t,this.m_timeScale.minBarSpacing(),e);null!==i&&t.setMaxPriceRange(i),null!==o&&t.setMinPriceRange(o)},o.prototype._onLeftPriceScaleSetMinMaxPriceRange=function(){this._setMinMaxPriceRange(this.m_leftPriceScale,this._lastLeftPriceScaleRatio)},o.prototype._onRightPriceScaleSetMinMaxPriceRange=function(){this._setMinMaxPriceRange(this.m_rightPriceScale,this._lastRightPriceScaleRatio)},o.prototype._setNewBarSpacingByScaleRatio=function(t,e){var i=this.m_timeScale.getValidBarSpacing(d(t,e));this.m_timeScale.isValidBarSpacing(i)&&this.m_timeScale.setBarSpacing(i)},t.exports=o}).call(e,i(10))},function(t,e,i){"use strict";(function(e,o){function n(t,e){if(this.m_base=t,this.m_integralDividers=e,this.m_fractionalDividers=[],c.isBaseDecimal(this.m_base))this.m_fractionalDividers=[2,2.5,2];else for(var i=this.m_base;1!==i;){if(i%2==0)this.m_fractionalDividers.push(2),i/=2;else{if(i%5!=0)throw new RangeError("unexpected base");this.m_fractionalDividers.push(2),this.m_fractionalDividers.push(2.5),i/=5}if(this.m_fractionalDividers.length>100)throw Error("something wrong with base")}}function r(t,e,i){this.m_marks=[],this.m_base=e,this.m_priceScale=t,this._formatter=i,i&&(this._cache=new h(function(t){return i.format(t)})),this._currentFormatBase=0}function s(t){for(var e=1;t*e!==Math.round(t*e);)e*=10;return e}function a(t,i){function n(){var t,e,i=s.m_dataSources;for(t=0;tn+r&&c.greaterOrEqual(s,n,r)&&c.greaterOrEqual(s,i*o,r)&&c.greaterOrEqual(s,1,r);++a,o=this.m_integralDividers[a%this.m_integralDividers.length])s/=o;if(s<=n+r&&(s=n),s=Math.max(1,s),this.m_fractionalDividers.length>0&&c.equal(s,1,r))for(a=0,o=this.m_fractionalDividers[0];s>n+r&&c.greaterOrEqual(s,i*o,r);++a,o=this.m_fractionalDividers[a%this.m_fractionalDividers.length])s/=o;return s},r.prototype.TICK_DENSITY=2.5,r.prototype.base=function(){return this.m_base},r.prototype.setBase=function(t){if(t<0)throw new RangeError("base < 0");this.m_base=t}, +this._priceRangeChanged=new o,this.m_dataSources=[],this.m_topMargin=0,this.m_bottomMargin=0,this._studyTopMargin=0,this._studyBottomMargin=0,this.m_scrollStartPoint=null,this.m_scaleStartPoint=null,this.m_maxPriceRange=null,this.m_minPriceRange=null,this.m_priceRangeSnapshot=null,this._invalidatedForRange={isValid:!0},this.onMarksChanged=new o,this.m_markBuilder=new r(this,100,new f(100)),this._properties.percentage.listeners().subscribe(this,a.prototype.updateFormatter);var s=this;this._properties.log.listeners().subscribe(null,function(t){var e,i,o,n;s.m_priceRange&&(e=s.m_priceRange,t.value()?(i=new g(s._toLog(e.minValue()),s._toLog(e.maxValue())),s.setPriceRange(i)):(o=s._fromLog(e.minValue()),n=s._fromLog(e.maxValue()),isFinite(o)&&isFinite(n)?(i=new g(o,n),s.setPriceRange(i)):s.properties().autoScale.setValue(!0)))}),this._properties.percentage.listeners().subscribe(null,function(){s._properties.autoScale.setValue(!0)}),this._properties.percentage.listeners().subscribe(null,function(){var t,e,i;s._properties.autoScaleDisabled.setValue(s._properties.percentage.value()),t=s.priceRange(),s.mainSource()&&!s.mainSource().model().timeScale().isEmpty()&&!s.mainSource().data().isEmpty()&&s.isLockScale()&&t&&(e=s.mainSource().model().timeScale().visibleBars(),i=s.mainSource().data().search(e.firstBar(),_.NearestRight).value[TradingView.CLOSE_PLOT],null!=t&&void 0!==i&&(s._properties.percentage.value()?s.setPriceRange(t.convertToPercents(i)):s.setPriceRange(t.convertFromPercents(i))))}),this._properties.lockScale.listeners().subscribe(null,function(t){var e=t.value();e&&(s._properties.autoScale.setValue(!1),s._properties.percentage.setValue(!1),s._properties.log.setValue(!1)),s._properties.percentageDisabled.setValue(e),s._properties.logDisabled.setValue(e)}),this._sourcesForAutoscale=null,this._sourcesToUpdateViews=null,this._hasSeries=!1,this._properties.percentage.listeners().subscribe(null,n),this._properties.log.listeners().subscribe(null,n),this._properties.listeners().subscribe(null,function(){s.mainSource()&&s.mainSource().model()&&s.mainSource().model().fullUpdate()})}var l,c=i(54),h=i(227),u=i(1).LineDataSource,d=i(46).PriceDataSource,p=i(77),_=i(19).PlotRowSearchMode,f=i(28).PriceFormatter,m=i(167).PercentageFormatter,g=i(73);n.prototype.TICK_SPAN_EPSILON=1e-9,n.prototype.tickSpan=function(t,e,i){var o,n=0===this.m_base?0:1/this.m_base,r=this.TICK_SPAN_EPSILON,s=Math.pow(10,Math.max(0,Math.ceil(c.log10(t-e)))),a=0;for(a=0,o=this.m_integralDividers[0];s>n+r&&c.greaterOrEqual(s,n,r)&&c.greaterOrEqual(s,i*o,r)&&c.greaterOrEqual(s,1,r);++a,o=this.m_integralDividers[a%this.m_integralDividers.length])s/=o;if(s<=n+r&&(s=n),s=Math.max(1,s),this.m_fractionalDividers.length>0&&c.equal(s,1,r))for(a=0,o=this.m_fractionalDividers[0];s>n+r&&c.greaterOrEqual(s,i*o,r);++a,o=this.m_fractionalDividers[a%this.m_fractionalDividers.length])s/=o;return s},r.prototype.TICK_DENSITY=2.5,r.prototype.base=function(){return this.m_base},r.prototype.setBase=function(t){if(t<0)throw new RangeError("base < 0");this.m_base=t}, r.prototype.fontHeight=function(){return this.m_priceScale.fontSize()},r.prototype.tickSpan=function(t,e){var i,o,r,s,a,l,h;if(t=e?1:-1,n=Math.max(i,e),r=Math.min(i,e),i=n,e=r,i!==e)for(a=this.tickSpan(i,e),l=i%a,l+=l<0?a:0,this.m_marks=[],this._formatter||(c=s(a),this._cache&&this._currentFormatBase===c||(u=new f(c),this._cache=new h(function(t){return u.format(t)}))),d=null,p=i-l;p>e;p-=a)_=this.m_priceScale.priceToCoordinate(p),null!==d&&Math.abs(_-d)30)throw new RangeError("invalid margin");this.m_topMargin!==t&&(this.m_topMargin=t,this._invalidateInternalHeightCache(),this._marksCache=null)},a.prototype.bottomMargin=function(){return Math.max(this.m_bottomMargin,this._studyBottomMargin)},a.prototype.setBottomMargin=function(t){if(!isNumber(t))throw new TypeError("invalid margin");if(t<0||t>30)throw new RangeError("invalid margin");this.m_bottomMargin!==t&&(this.m_bottomMargin=t,this._invalidateInternalHeightCache(),this._marksCache=null)},a.prototype.internalHeight=function(){if(this._internalHeightCache)return this._internalHeightCache;var t=this.height()*(1-this.topMargin()-this.bottomMargin());return this._internalHeightCache=t,t},a.prototype._invalidateInternalHeightCache=function(){this._internalHeightCache=null,this._internalHeightChanged.fire()}, a.prototype.internalHeightChanged=function(){return this._internalHeightChanged},a.prototype.priceRange=function(){return this.makeSureItIsValid(),this.m_priceRange},a.prototype.priceRangeChanged=function(){return this._priceRangeChanged},a.prototype.setPriceRange=function(t,e,i){var o,n,r;if(!(t instanceof g))throw new TypeError("incorrect price range");return o=this.m_priceRange,!!(e||null===o&&null!==t||null!==o&&!o.equals(t))&&(n=null!==this.m_maxPriceRange&&this.m_maxPriceRange.containsStrictly(t),r=null!==this.m_minPriceRange&&t.containsStrictly(this.m_minPriceRange),!(this.isLockScale()&&!e&&(n||r))&&(this._marksCache=null,this.m_priceRange=t,void(i||this._priceRangeChanged.fire(o,t))))},a.prototype.isEmpty=function(){return this.makeSureItIsValid(),0===this.m_height||!this.m_priceRange||this.m_priceRange.isEmpty()},a.prototype.invertedCoordinate=function(t){return this.height()-1-t},a._logicalOffset=4,a._coordOffset=1e-4,a.prototype.log10=function(t){return Math.log(t)/Math.log(10)},a.prototype._toLog=function(t){var e,i=Math.abs(t);return i<1e-8?0:(e=this.log10(i+a._coordOffset)+a._logicalOffset,t<0?-e:e)},a.prototype.priceToLogical=function(t){return this.isLog()&&t?this._toLog(t):t},a.prototype._fromLog=function(t){var e,i=Math.abs(t);return i<1e-8?0:(e=Math.pow(10,i-a._logicalOffset)-a._coordOffset,t<0?-e:e)},a.prototype.logicalToPrice=function(t){return this.isLog()?this._fromLog(t):t},a.prototype.priceToCoordinate=function(t,e){var i,o;return this.makeSureItIsValid(),this.isEmpty()?0:(t=this.priceToLogical(t),i=this.bottomMargin()*this.height()+(this.internalHeight()-1)*(t-this.priceRange().minValue())/(this.priceRange().maxValue()-this.priceRange().minValue()),o=this.invertedCoordinate(i),e?o:Math.round(o))},a.prototype.pricesToCoordinates=function(t){this.pricesToCoordinatesEx(t,function(t){return t.y},function(t,e){t.y=e})},a.prototype.pricesToCoordinatesEx=function(t,e,i){var o,n,r,s,a,l,c,h,u;if(this.makeSureItIsValid(),o=this.bottomMargin()*this.height(),n=this.priceRange().minValue(),r=this.priceRange().maxValue(),s=this.internalHeight()-1,a=s/(r-n),this.isLog())for(l=0;l.01||Math.abs(i-this._studyTopMargin)>.01)&&(this._studyBottomMargin=o,this._studyTopMargin=i,this._marksCache=null,this._invalidateInternalHeightCache()),t?(t.minValue()===t.maxValue()&&(t=new g(t.minValue()-.5,t.maxValue()+.5)),this.setPriceRange(t)):this.m_priceRange||this.setPriceRange(new g(-.5,.5)),this._invalidatedForRange.isValid=!0}},a.prototype.sourcesToUpdateViews=function(){var t,e;if(!this._sourcesToUpdateViews)for(this._sourcesToUpdateViews=[],t=0;t6&&(t.textAlign="center",t.textBaseline="middle",t.font="bold "+e.labelFontSize+"px Arial",t.fillStyle=e.labelFontColor,t.fillText(e.label,e.x,e.y))},n.prototype.hitTest=function(t){var e,i;for(i=this._plates.length-1;i>=0;--i)if(e=this._hitTestDot(this._plates[i],t))return e;return null},n.prototype._hitTestDot=function(t,e){var i=this._dotTransform(t),o=new s(i.x,i.y);return a(e,o,Math.max(i.radius,8))?new l(l.REGULAR,t):null},r.prototype._createLayout=function(){throw Error("Child class must override this member")},r.prototype._updatePlate=function(t){throw Error("Child class must override this member")},r.prototype._getContainer=function(t){return this._container&&this._context===t||(this._context=t,this._container=$(t.canvas).parent()),this._container},r.prototype._plateArrowSize=14,r.prototype.showPlate=function(t,e){var i,o,n,r,s,a,l,c;this._currentId===t.id&&this._layout&&0!==this._layout.length&&null!=this._layout[0].parentNode||(this._currentId=t.id,this._createLayout(),this._getContainer(e).append(this._layout),i=this,this._layout.hover(function(){i.tooltipHovered=!0,$(this).stop(!0).fadeTo(0,1)},function(){i.tooltipHovered=!1})),o=Math.round(t.barWidth/2),o>15&&(o=15),o<10&&(o=10),this._updatePlate(t),n=e.canvas.getBoundingClientRect(),r=t.x-this._layout.outerWidth()=o.Std.max(l,c),a-.5*l+.25*h,o.Std.iff(l>=o.Std.max(a,c),l-.5*a+.25*h,c+.25*h));return o.Std.iff(0===d,0,(s-s.get(1)+.5*(s-i)+.25*(s.get(1)-i.get(1)))/d*u/t*50)},this.f_1=function(t,e){var i=this.f_0(t,e);return o.Std.cum(i,e)},this.main=function(t,e){var i,o;return this._context=t,this._input=e,i=this._input(0),o=this.f_1(i,this._context),[o]}}},{name:"Advance/Decline",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#FF0000"}},precision:4,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"},constructor:function(){this.f_0=function(t,e){return o.Std.gt(t,e)},this.f_1=function(t,e){return o.Std.lt(t,e)},this.f_2=function(t,e){return 0===e?t:t/e},this.main=function(t,e){var i,n,r,s,a,l,c,h,u;return this._context=t,this._input=e,i=this._input(0),n=this.f_0(o.Std.close(this._context),o.Std.open(this._context)),r=this._context.new_var(n),s=o.Std.sum(r,i,this._context),a=this.f_1(o.Std.close(this._context),o.Std.open(this._context)),l=this._context.new_var(a),c=o.Std.sum(l,i,this._context),h=this.f_2(s,c),u=h,[u]}}},{name:"Arnaud Legoux Moving Average",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"}},precision:4,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"},constructor:function(){this.main=function(t,e){var i,n,r,s,a,l;return this._context=t,this._input=e,i=o.Std.close(this._context),n=this._input(0),r=this._input(1),s=this._input(2),a=this._context.new_var(i),l=o.Std.alma(a,n,r,s),[l]}}},{name:"Aroon",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#FF6A00"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#0094FF"}},precision:4,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"},constructor:function(){this.f_0=function(t,e){return 100*(t+e)/e},this.main=function(t,e){var i,n,r,s,a,l,c,h,u,d,p,_;return this._context=t,this._input=e,i=this._input(0),n=o.Std.high(this._context),r=i+1,s=this._context.new_var(n),a=o.Std.highestbars(s,r,this._context),l=this.f_0(a,i),c=o.Std.low(this._context),h=this._context.new_var(c),u=o.Std.lowestbars(h,r,this._context),d=this.f_0(u,i),p=l,_=d,[p,_]}}},{name:"Average Directional Index",metainfo:{_metainfoVersion:41,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0, color:"#FF0000"}},precision:4,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"},constructor:function(){this.f_0=function(t){var e=this._context.new_var(o.Std.high(this._context)),i=o.Std.change(e),n=this._context.new_var(o.Std.low(this._context)),r=-o.Std.change(n),s=this._context.new_var(o.Std.tr(void 0,this._context)),a=o.Std.rma(s,t,this._context),l=this._context.new_var(o.Std.and(o.Std.gt(i,r),o.Std.gt(i,0))?i:0),c=o.Std.fixnan(100*o.Std.rma(l,t,this._context)/a,this._context),h=this._context.new_var(o.Std.and(o.Std.gt(r,i),o.Std.gt(r,0))?r:0);return[c,o.Std.fixnan(100*o.Std.rma(h,t,this._context)/a,this._context)]},this.f_1=function(t,e){var i=this.f_0(t),n=i[0],r=i[1],s=n+r,a=this._context.new_var(o.Std.abs(n-r)/(o.Std.eq(s,0)?1:s));return[100*o.Std.rma(a,e,this._context)]},this.main=function(t,e){return this._context=t,this._input=e,this.f_1(this._input(0),this._input(1))}}},{name:"Average True Range",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#FF0000"}},precision:4,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"},constructor:function(){this.main=function(t,e){var i,n,r,s;return this._context=t,this._input=e,i=this._input(0),n=o.Std.tr(this._context),r=this._context.new_var(n),s=o.Std.rma(r,i,this._context),[s]}}},{name:"Awesome Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:35,visible:!0,color:"#000080"}},precision:4,palettes:{palette_0:{colors:{0:{color:"#FF0000",width:1,style:0},1:{color:"#008000",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"},constructor:function(){this.f_0=function(t,e){return t-e},this.f_1=function(t){return o.Std.le(t,0)?0:1},this.main=function(t,e){var i,n,r,s,a,l,c,h,u,d;return this._context=t,this._input=e, @@ -228,22 +228,22 @@ type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer", linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#0000FF"}},precision:4,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"},constructor:function(){this.main=function(t,e){var i,n,r,s,a;return this._context=t,this._input=e,i=o.Std.close(this._context),n=this._input(0),r=this._context.new_var(i),s=o.Std.vwma(r,n,this._context),a=s,[a]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"}},precision:4,bands:[{color:"#808080",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"},constructor:function(){this.f_0=function(t,e){return 100*(t-e)/e},this.main=function(t,e){var i,n,r,s,a,l,c,h,u;return this._context=t,this._input=e,i=this._input(0),n=this._input(1),r=o.Std.volume(this._context),s=this._context.new_var(r),a=o.Std.ema(s,i,this._context),l=this._context.new_var(r),c=o.Std.ema(l,n,this._context),h=this.f_0(a,c),u=h,[u]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#0000FF"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#FF0000"}},precision:4,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"},constructor:function(){this.f_0=function(){var t=this._input(0),e=this._context.new_var(o.Std.low(this._context)),i=this._context.new_var(o.Std.abs(o.Std.high(this._context)-e.get(1))),n=o.Std.sum(i,t,this._context),r=this._context.new_var(o.Std.high(this._context)),s=this._context.new_var(o.Std.abs(o.Std.low(this._context)-r.get(1))),a=o.Std.sum(s,t,this._context),l=this._context.new_var(o.Std.atr(1,this._context)),c=o.Std.sum(l,t,this._context);return[n/c,a/c]},this.main=function(t,e){return this._context=t,this._input=e,this.f_0()}}},{ name:"Willams %R",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"}},precision:4,bands:[{color:"#808080",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#808080",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#000080",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"},constructor:function(){this.f_0=function(t,e,i){return 100*(t-e)/(e-i)},this.main=function(t,e){var i,n,r,s,a,l,c,h,u;return this._context=t,this._input=e,i=this._input(0),n=o.Std.high(this._context),r=this._context.new_var(n),s=o.Std.highest(r,i,this._context),a=o.Std.low(this._context),l=this._context.new_var(a),c=o.Std.lowest(l,i,this._context),h=this.f_0(o.Std.close(this._context),s,c),u=h,[u]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:27,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#0000FF"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#FF0000"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#008000"}},precision:4,inputs:{in_0:21,in_1:13,in_2:8}},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:"jawLength",defval:21,type:"integer",min:1,max:2e3},{id:"in_1",name:"teethLength",defval:13,type:"integer",min:1,max:2e3},{id:"in_2",name:"lipsLength",defval:8,type:"integer",min:1,max:2e3}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator"},constructor:function(){this.main=function(t,e){var i,n,r,s,a,l,c,h,u,d,p,_,f;return this._context=t,this._input=e,i=this._input(0),n=this._input(1),r=this._input(2),s=o.Std.hl2(this._context),a=this._context.new_var(s),l=o.Std.ema(a,i,this._context),c=this._context.new_var(s),h=o.Std.ema(c,n,this._context),u=this._context.new_var(s),d=o.Std.ema(u,r,this._context),p=l,_=h,f=d,[{value:p,offset:8},{value:_,offset:5},{value:f,offset:3}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:42,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar", transparency:0,color:"#800000"},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:"#808000"}},precision:4,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},constructor:function(){this.f_0=function(){var t=this._input(0),e=this._context.new_var(o.Std.high(this._context)),i=o.Std.or(o.Std.and(o.Std.and(o.Std.lt(e.get(t+2),e.get(t)),o.Std.lt(e.get(t+1),e.get(t))),o.Std.and(o.Std.lt(e.get(t-1),e.get(t)),o.Std.lt(e.get(t-2),e.get(t)))),o.Std.or(o.Std.or(o.Std.and(o.Std.lt(e.get(t+3),e.get(t)),o.Std.and(o.Std.and(o.Std.lt(e.get(t+2),e.get(t)),o.Std.eq(e.get(t+1),e.get(t))),o.Std.and(o.Std.lt(e.get(t-1),e.get(t)),o.Std.lt(e.get(t-2),e.get(t))))),o.Std.and(o.Std.and(o.Std.lt(e.get(t+4),e.get(t)),o.Std.lt(e.get(t+3),e.get(t))),o.Std.and(o.Std.and(o.Std.eq(e.get(t+2),e.get(t)),o.Std.le(e.get(t+1),e.get(t))),o.Std.and(o.Std.lt(e.get(t-1),e.get(t)),o.Std.lt(e.get(t-2),e.get(t)))))),o.Std.or(o.Std.and(o.Std.and(o.Std.lt(e.get(t+5),e.get(t)),o.Std.and(o.Std.lt(e.get(t+4),e.get(t)),o.Std.eq(e.get(t+3),e.get(t)))),o.Std.and(o.Std.and(o.Std.eq(e.get(t+2),e.get(t)),o.Std.le(e.get(t+1),e.get(t))),o.Std.and(o.Std.lt(e.get(t-1),e.get(t)),o.Std.lt(e.get(t-2),e.get(t))))),o.Std.and(o.Std.and(o.Std.and(o.Std.lt(e.get(t+6),e.get(t)),o.Std.lt(e.get(t+5),e.get(t))),o.Std.and(o.Std.eq(e.get(t+4),e.get(t)),o.Std.le(e.get(t+3),e.get(t)))),o.Std.and(o.Std.and(o.Std.eq(e.get(t+2),e.get(t)),o.Std.le(e.get(t+1),e.get(t))),o.Std.and(o.Std.lt(e.get(t-1),e.get(t)),o.Std.lt(e.get(t-2),e.get(t)))))))),n=this._context.new_var(o.Std.low(this._context)) -;return[o.Std.or(o.Std.and(o.Std.and(o.Std.gt(n.get(t+2),n.get(t)),o.Std.gt(n.get(t+1),n.get(t))),o.Std.and(o.Std.gt(n.get(t-1),n.get(t)),o.Std.gt(n.get(t-2),n.get(t)))),o.Std.or(o.Std.or(o.Std.and(o.Std.gt(n.get(t+3),n.get(t)),o.Std.and(o.Std.and(o.Std.gt(n.get(t+2),n.get(t)),o.Std.eq(n.get(t+1),n.get(t))),o.Std.and(o.Std.gt(n.get(t-1),n.get(t)),o.Std.gt(n.get(t-2),n.get(t))))),o.Std.and(o.Std.and(o.Std.gt(n.get(t+4),n.get(t)),o.Std.gt(n.get(t+3),n.get(t))),o.Std.and(o.Std.and(o.Std.eq(n.get(t+2),n.get(t)),o.Std.ge(n.get(t+1),n.get(t))),o.Std.and(o.Std.gt(n.get(t-1),n.get(t)),o.Std.gt(n.get(t-2),n.get(t)))))),o.Std.or(o.Std.and(o.Std.and(o.Std.gt(n.get(t+5),n.get(t)),o.Std.and(o.Std.gt(n.get(t+4),n.get(t)),o.Std.eq(n.get(t+3),n.get(t)))),o.Std.and(o.Std.and(o.Std.eq(n.get(t+2),n.get(t)),o.Std.ge(n.get(t+1),n.get(t))),o.Std.and(o.Std.gt(n.get(t-1),n.get(t)),o.Std.gt(n.get(t-2),n.get(t))))),o.Std.and(o.Std.and(o.Std.and(o.Std.gt(n.get(t+6),n.get(t)),o.Std.gt(n.get(t+5),n.get(t))),o.Std.and(o.Std.eq(n.get(t+4),n.get(t)),o.Std.ge(n.get(t+3),n.get(t)))),o.Std.and(o.Std.and(o.Std.eq(n.get(t+2),n.get(t)),o.Std.ge(n.get(t+1),n.get(t))),o.Std.and(o.Std.gt(n.get(t-1),n.get(t)),o.Std.gt(n.get(t-2),n.get(t)))))))),i]},this.main=function(t,e){this._context=t,this._input=e;var i=this.f_0();return[{value:i[0],offset:-2},{value:i[1],offset:-2}]}}}]},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=i(39),s=i(14),a=i(85),l=i(368),c=i(1025),h=function(t){function e(e){var i=t.call(this,e)||this;return i._handleClick=function(){i._handleToggleDropdown()},i._handleToggleDropdown=function(t){var e=i.state.isOpened,o="boolean"==typeof t?t:!e;i.setState({isOpened:o})},i._handleClose=function(){i._handleToggleDropdown(!1)},i._getDropdownPosition=function(){var t=r.findDOMNode(i).getBoundingClientRect();return{x:t.left+(i.props.directionHorz===a.DirectionHorz.ToLeft?t.width:0),y:t.bottom+2}},i.state={isOpened:!1},i}return o.__extends(e,t),e.prototype.render=function(){var t,e=this.props,i=e.id,o=e.arrow,r=e.children,h=e.content,u=e.directionHorz,d=e.isDisabled,p=e.minWidth,_=e.title,f=e.className,m=this.state.isOpened,g=s(f,c.button,"apply-common-tooltip",(t={},t[c.isDisabled]=d,t[c.isOpened]=m,t));return n.createElement("div",{id:i,className:g,onClick:d?void 0:this._handleClick,title:_},h,o&&n.createElement("div",{className:c.arrow},n.createElement("div",{className:c.arrowWrap},n.createElement(l.ToolWidgetCaret,{dropped:m}))),n.createElement(a.PopupMenu,{closeOnClickOutside:this.props.closeOnClickOutside,directionHorz:u,doNotCloseOn:this,isOpened:m,minWidth:p,onClose:this._handleClose,position:this._getDropdownPosition},r))},e.defaultProps={arrow:!0,closeOnClickOutside:!0},e}(n.PureComponent),e.ToolWidgetMenu=h},function(t,e,i){"use strict";function o(t){var e=t.className,i=n.__rest(t,["className"]);return r.createElement(a.ToolWidgetButton,n.__assign({},i,{className:s(e,l.button)}))}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),n=i(0),r=i(2),s=i(14),a=i(103), -l=i(1033),e.ToolWidgetIconButton=o},function(t,e,i){"use strict";function o(t,e,i){var o,n,r,s,a;for(void 0===i&&(i={}),o=Object.assign({},e),n=0,r=Object.keys(e);nt?t:e}}function a(t){return function(e){var i=parseInt(e,10);return M(i)?t:i}}function l(t){var e=new B;return function(i){var o=e.parse(i);return M(o)?t:o}}function c(t){var e=new B;return function(i){var o=e.parse(i);return M(o)?t():o}}function h(t,e){var i=new z(e);return function(e){var o=i.format(e);return M(o)?t:o}}function u(){return function(t){for(var e=t,i=t.replace(/[^\u0000-\u007F]/,"");i.length!==e.length;)e=i,i=e.replace(/[^\u0000-\u007F]/,"");return i}}function d(t){return function(e){return 0===e.length?t:e}}function p(t,e,i,o,n,r,s){W.call(this,t,e,o,n,r),this._transformFunction=i,this._setter=s,this._attachToControl(t,o)}function _(t,e,i,o,n){p.call(this,t,e,l(e.value()),i,o,n),this.addFormatter(function(t){return(new B).format(t)})}function f(t,e,i,o,n,r){this._subControlIds=e,W.call(this,t,i,o,n,r),this._forEachSubControl(function(t){this._attachToControl(t,o)})}function m(t,e,i,o,n,r,s){this._model=o,this._mainSeries=r,this._toIntTransformer=a(s),this._disabled=!1,W.call(this,t,e,i,o,n);var l=this;i&&t.change(function(){l.setValueToProperty(l.value())}),this._mainSeries.onBarReceived().subscribe(this,function(){l.setValue(this.property().value())})}function g(t,e,i,o,n){W.call(this,t,e,i,o,n),i&&t.on("accept-symbol",function(t,e){this.setValueToProperty(e)}.bind(this))}function v(t,e,i,o,n,r,s,a){W.call(this,t,e,o,n,r),this._transformFunction=i,this._propertyChangedHook=a,this._setter=s;var l=this;o&&t.change(function(){l._setter?l._setter.call(l,l.value()):l.setValueToProperty(l.value())})}function y(t,e){W.call(this,t,e)}function b(t,e,i,o,n,r){if(!t.is(":checkbox, :radio"))return new w(t,e,i,o,n);W.call(this,t,e,i,o,n),this._setter=r;var s=this;i&&t.change(function(){s._setter?s._setter.call(s,s.value()):s.setValueToProperty(s.value())})}function S(t,e,i,o,n,r){W.call(this,t,e,i,o,n),this._inverted=!0===r}function w(t,e,i,o,n){W.call(this,t,e,i,o,n);var r=this;i&&t.click(function(){var t=$(this).toggleClass("active").hasClass("active");r.setValueToProperty(t)})}function T(t,e,i,o,n,r){var s,a;s=t.is("input")?t:t.find("input"),W.call(this,s,e,i,o,n),this._transparencyProperty=r,this.applyOldTransparency(),a=this,i&&s.change(function(){a.setValueToProperty(a.value())})}function C(e,i,o,n,r,s){function a(t,e){var i=c.control().slider("option","min"),o=c.control().slider("option","max"),n=c._property.value();(i<=n&&n<=o||it?t:e}}function a(t){return function(e){var i=parseInt(e,10);return M(i)?t:i}}function l(t){var e=new B;return function(i){var o=e.parse(i);return M(o)?t:o}}function c(t){var e=new B;return function(i){var o=e.parse(i);return M(o)?t():o}}function h(t,e){var i=new z(e);return function(e){var o=i.format(e);return M(o)?t:o}}function u(){return function(t){for(var e=t,i=t.replace(/[^\u0000-\u007F]/,"");i.length!==e.length;)e=i,i=e.replace(/[^\u0000-\u007F]/,"");return i}}function d(t){return function(e){return 0===e.length?t:e}}function p(t,e,i,o,n,r,s){W.call(this,t,e,o,n,r),this._transformFunction=i,this._setter=s,this._attachToControl(t,o)}function _(t,e,i,o,n){p.call(this,t,e,l(e.value()),i,o,n),this.addFormatter(function(t){return(new B).format(t)})}function f(t,e,i,o,n,r){this._subControlIds=e,W.call(this,t,i,o,n,r),this._forEachSubControl(function(t){this._attachToControl(t,o)})}function m(t,e,i,o,n,r,s){this._model=o,this._mainSeries=r,this._toIntTransformer=a(s),this._disabled=!1,W.call(this,t,e,i,o,n);var l=this;i&&t.change(function(){l.setValueToProperty(l.value())}),this._mainSeries.onBarReceived().subscribe(this,function(){l.setValue(this.property().value())})}function g(t,e,i,o,n){W.call(this,t,e,i,o,n),i&&t.on("accept-symbol",function(t,e){this.setValueToProperty(e)}.bind(this))}function v(t,e,i,o,n,r,s,a){W.call(this,t,e,o,n,r),this._transformFunction=i,this._propertyChangedHook=a,this._setter=s;var l=this;o&&t.change(function(){l._setter?l._setter.call(l,l.value()):l.setValueToProperty(l.value())})}function y(t,e){W.call(this,t,e)}function b(t,e,i,o,n,r){if(!t.is(":checkbox, :radio"))return new w(t,e,i,o,n);W.call(this,t,e,i,o,n),this._setter=r;var s=this;i&&t.change(function(){s._setter?s._setter.call(s,s.value()):s.setValueToProperty(s.value())})}function S(t,e,i,o,n,r){W.call(this,t,e,i,o,n),this._inverted=!0===r}function w(t,e,i,o,n){W.call(this,t,e,i,o,n);var r=this;i&&t.click(function(){var t=$(this).toggleClass("active").hasClass("active");r.setValueToProperty(t)})}function T(t,e,i,o,n,r){var s,a;s=t.is("input")?t:t.find("input"),W.call(this,s,e,i,o,n),this._transparencyProperty=r,this.applyOldTransparency(),a=this,i&&s.change(function(){a.setValueToProperty(a.value())})}function C(e,i,o,n,r,s){function a(t,e){var i=c.control().slider("option","min"),o=c.control().slider("option","max"),n=c._property.value();(i<=n&&n<=o||il._transformers[1]&&$(r[1]).val(l._transformers[1]),-1!==$.inArray(t.keyCode,[46,8,9,27,13,110,190])||65===t.keyCode&&!0===t.ctrlKey||67===t.keyCode&&!0===t.ctrlKey||88===t.keyCode&&!0===t.ctrlKey||t.keyCode>=35&&t.keyCode<=39||(t.shiftKey||t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&t.preventDefault()})}),$(r[0]).on("keyup",function(t){parseInt($(this).val())l._transformers[1]&&$(this).val(l._transformers[1]),parseInt($(this).val())>parseInt($(r[1]).val())&&$(this).val(r[1].val()),l._control.slider("values",0,$(this).val()),I.prototype.setValueToProperty.call(l,l._control.slider("values"),"from")}),$(r[1]).on("keyup",function(t){parseInt($(this).val())l._transformers[1]&&$(this).val(l._transformers[1]), -parseInt($(this).val())<$(r[0]).val()&&$(this).val(r[0].val()),l._control.slider("values",1,$(this).val()),I.prototype.setValueToProperty.call(l,l._control.slider("values"),"to")})),this._propFrom.listeners().subscribe(this,I.prototype.propertyChanged),this._propTo.listeners().subscribe(this,I.prototype.propertyChanged),o&&t.on("slide",function(t,e){l.setValueToProperty(l._control.slider("values"),e.handle)}),t.slider({stop:function(t,e){r&&($(r[0]).val(l._control.slider("values",0)),$(r[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)},start:function(t,e){r&&($(r[0]).val(l._control.slider("values",0)),$(r[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)}})}function k(t,e,i,o,n,r){W.call(this,t,e,i,o,n),this._separator=r||" ";var s=this;i&&t.change(function(){s.setValueToProperty(s.value())})}var A,M,E,D,V,O,R,B,z,F,N,W,H;i(384),A=i(9).ensureNotNull,M=i(198).isNaN,E=i(32),D=E.rgba,V=E.rgbaToString,O=E.parseRgb,R=i(212).TimePointIndexSearchMode,B=i(89).NumericFormatter,z=i(213).LimitedPrecisionNumericFormatter,F=i(30),N=i(372).addColorPicker,W=i(320).Binding,H=i(7).getLogger("Chart.PropertyPage"),o.prototype.model=function(){return this._model},o.prototype.bindControl=function(t){return this._bindings.push(t),t},o.prototype.unbindControl=function(t){var e=this._bindings.indexOf(t);-1!==e&&this._bindings.splice(e,1)},o.prototype.loadData=function(){var t,e,i;for(t=0;t",r=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100, +parseInt($(this).val())<$(r[0]).val()&&$(this).val(r[0].val()),l._control.slider("values",1,$(this).val()),I.prototype.setValueToProperty.call(l,l._control.slider("values"),"to")})),this._propFrom.listeners().subscribe(this,I.prototype.propertyChanged),this._propTo.listeners().subscribe(this,I.prototype.propertyChanged),o&&t.on("slide",function(t,e){l.setValueToProperty(l._control.slider("values"),e.handle)}),t.slider({stop:function(t,e){r&&($(r[0]).val(l._control.slider("values",0)),$(r[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)},start:function(t,e){r&&($(r[0]).val(l._control.slider("values",0)),$(r[1]).val(l._control.slider("values",1))),l.setValueToProperty(l._control.slider("values"),e.handle)}})}function k(t,e,i,o,n,r){W.call(this,t,e,i,o,n),this._separator=r||" ";var s=this;i&&t.change(function(){s.setValueToProperty(s.value())})}var A,M,E,D,V,O,R,B,z,F,N,W,H;i(385),A=i(9).ensureNotNull,M=i(198).isNaN,E=i(32),D=E.rgba,V=E.rgbaToString,O=E.parseRgb,R=i(213).TimePointIndexSearchMode,B=i(89).NumericFormatter,z=i(214).LimitedPrecisionNumericFormatter,F=i(30),N=i(373).addColorPicker,W=i(321).Binding,H=i(7).getLogger("Chart.PropertyPage"),o.prototype.model=function(){return this._model},o.prototype.bindControl=function(t){return this._bindings.push(t),t},o.prototype.unbindControl=function(t){var e=this._bindings.indexOf(t);-1!==e&&this._bindings.splice(e,1)},o.prototype.loadData=function(){var t,e,i;for(t=0;t",r=[{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}];for(t in r)e=r[t],i=e.priceScale+","+e.minMove+","+e.frac,o=e.minMove+"/"+e.priceScale,n+="";return n+="",$(n)},o.prototype.createPrecisionEditor=function(){var t,e="",$(e)},o.prototype.createLabeledCell=function(t,e,i){var o,n,r,s,a=null;return"number"==typeof t.valueOf()?(a=t,o=e,n=i):(o=t,n=e),o+="",r=this._labelToId(o),s=$("
").appendTo(t),i=$("
").append(e).appendTo(o),$("").append(t).appendTo(o),i=$("
").appendTo(i).css({"vertical-align":"top",width:"50%"}),a=$("").appendTo(i).css({"vertical-align":"top",width:"50%"}),s=$('').appendTo(n),d=$('
').appendTo(a),h=this.addColorPickerRow(s,$.t("Source back color")),c=this.addColorPickerRow(s,$.t("Source text color")),b=this.addColorPickerRow(s,$.t("Source border color")),u=this.addColorPickerRow(s,$.t("Success back color")),C=this.addColorPickerRow(s,$.t("Success text color")),y=this.addColorPickerRow(d,$.t("Target back color")),g=this.addColorPickerRow(d,$.t("Target text color")),T=this.addColorPickerRow(d,$.t("Target border color")),w=this.addColorPickerRow(d,$.t("Failure back color")),_=this.addColorPickerRow(d,$.t("Failure text color")),this.bindControl(new r(e,this._linetool.properties().linecolor,!0,this.model(),"Forecast Line Color")),this.bindControl(new l(t,this._linetool.properties().linewidth,!0,this.model(),"Forecast Line Width")),this.bindControl(new r(e,this._linetool.properties().linecolor,!0,this.model(),"Forecast Line Color")),this.bindControl(new l(t,this._linetool.properties().linewidth,!0,this.model(),"Forecast Line Width")),this.bindControl(new r(h,this._linetool.properties().sourceBackColor,!0,this.model(),"Forecast Source Background Color",this._linetool.properties().transparency)),this.bindControl(new r(b,this._linetool.properties().sourceStrokeColor,!0,this.model(),"Forecast Source Border Color")),this.bindControl(new r(c,this._linetool.properties().sourceTextColor,!0,this.model(),"Forecast Source Text Color")),this.bindControl(new r(y,this._linetool.properties().targetBackColor,!0,this.model(),"Forecast Target Background Color")),this.bindControl(new r(T,this._linetool.properties().targetStrokeColor,!0,this.model(),"Forecast Target Border Color")),this.bindControl(new r(g,this._linetool.properties().targetTextColor,!0,this.model(),"Forecast Target Text Color")),this.bindControl(new r(u,this._linetool.properties().successBackground,!0,this.model(),"Forecast Success Back Color")),this.bindControl(new r(C,this._linetool.properties().successTextColor,!0,this.model(),"Forecast Success Text Color")),this.bindControl(new r(w,this._linetool.properties().failureBackground,!0,this.model(),"Forecast Failure Back Color")), -this.bindControl(new r(_,this._linetool.properties().failureTextColor,!0,this.model(),"Forecast Failure Text Color")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1118:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SimpleComboBinder,l=a.ColorBinding;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=this.createFontSizeEditor(),o=this.createColorPicker(),i=this.createColorPicker(),n=this.addLabeledRow(this._table,$.t("Text")),$("{{#columns}}{{/columns}}',tvDataTableCell:''}},function(t,e,i){"use strict";function o(t){ +miniWidgetWizardAddSymbol:'{{#timeframeSelectAllow}}{{/timeframeSelectAllow}}',textNotesWidgetLayout:'
'+i(596)+'
'+i(597)+$.t("NEW")+'
'+i(598)+'
'+$.t("Created ")+'. '+$.t("Last edited ")+'
',textNotesWidgetItem:'
{{title}}
{{#symbol}}
'+i(599)+'{{symbol}}
{{/symbol}}
{{description}}
',tvDataTable:'
").append(e).appendTo(n),$("").append(t).appendTo(n),n=this.addLabeledRow(this._table,$.t("Background")),$("").append(o).appendTo(n),n=this.addLabeledRow(this._table,$.t("Border")),$("").append(i).appendTo(n),this.bindControl(new l(e,this._linetool.properties().color,!0,this.model(),"Change Price Text Color")),this.bindControl(new r(t,this._linetool.properties().fontsize,parseInt,!0,this.model(),"Change Price Text Font Size")),this.bindControl(new l(o,this._linetool.properties().backgroundColor,!0,this.model(),"Change Background Color",this._linetool.properties().transparency)),this.bindControl(new l(i,this._linetool.properties().borderColor,!0,this.model(),"Change Border Color")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1119:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.SliderBinder,l=a.ColorBinding,p=o(1196).createLineWidthEditor;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=this.createColorPicker(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background"),$("").append(e).appendTo(o),$("").append(t).appendTo(o),i=p(),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),$("").append(n).appendTo(o),$("").appendTo(o),$("").append(i).appendTo(o),this.bindControl(new l(n,this._linetool.properties().trendline.color,!0,this.model(),"Change Projection Line Color")),this.bindControl(new l(e,this._linetool.properties().color1,!0,this.model(),"Change Projection Background Color",this._linetool.properties().transparency)),this.bindControl(new l(t,this._linetool.properties().color2,!0,this.model(),"Change Projection Background Color",this._linetool.properties().transparency)),this.bindControl(new r(i,this._linetool.properties().linewidth,!0,this.model(),"Change Projection Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1120:function(e,t,o){"use strict";function i(e,t,o){n.call(this,e,t,o),this.prepareLayout()}var n=o(1195),a=o(238),r=a.ColorBinding,l=a.BooleanBinder,p=a.SliderBinder,s=o(1196).createLineWidthEditor -;inherit(i,n),i.prototype.prepareLayout=function(){var e,t,o,i,n;this._table=$(document.createElement("table")),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2"),e=s(),t=this.createColorPicker(),o=this.addLabeledRow(this._table,"Border"),o.prepend(""),$("").append(t).appendTo(o),$("").append(e).appendTo(o),i=$(''),n=this.createColorPicker(),o=this.addLabeledRow(this._table,"Background",i),$("").append(i).prependTo(o),$("").append(n).appendTo(o),this.bindControl(new l(i,this._linetool.properties().fillBackground,!0,this.model(),"Change Rectangle Filling")),this.bindControl(new r(t,this._linetool.properties().color,!0,this.model(),"Change Rectangle Line Color")),this.bindControl(new r(n,this._linetool.properties().backgroundColor,!0,this.model(),"Change Rectangle Background Color",this._linetool.properties().transparency)),this.bindControl(new p(e,this._linetool.properties().linewidth,!0,this.model(),"Change Rectangle Border Width")),this.loadData()},i.prototype.widget=function(){return this._table},e.exports=i},1121:function(e,t,o){"use strict";function i(e,t){this._chartWidget=e,this._undoModel=t}function n(e,t,o){a.call(this,e,t,o),this.prepareLayout()}var a=o(1195),r=o(238),l=r.SimpleStringBinder,p=r.SimpleComboBinder,s=r.ColorBinding,d=r.BooleanBinder;i.prototype.attachSource=function(e,t){this._source=e,this._edit=$("',textNotesWidgetItem:'
{{title}}
{{#symbol}}
'+i(598)+'{{symbol}}
{{/symbol}}
{{description}}
',tvDataTable:'{{#columns}}{{/columns}}{{#bodies}}{{#strokes}}{{#cells}}{{/cells}}{{/strokes}}{{/bodies}}
{{{label}}}
{{#contain}}{{{contain}}}{{/contain}}
',tvDataTableRow:'
{{#contain}}{{{contain}}}{{/contain}}
{{#contain}}{{{contain}}}{{/contain}}
{{symbol}}{{#descriptionShortening}}{{descriptionShortening}}{{/descriptionShortening}}{{^descriptionShortening}}{{description}}{{/descriptionShortening}}{{timeframe}}
{{#columns}}{{/columns}}{{#bodies}}{{#strokes}}{{#cells}}{{/cells}}{{/strokes}}{{/bodies}}
{{{label}}}
{{#contain}}{{{contain}}}{{/contain}}
',tvDataTableRow:'
{{#contain}}{{{contain}}}{{/contain}}
{{#contain}}{{{contain}}}{{/contain}}"),$("
").appendTo(e);return $('').appendTo(i)},o.prototype._labelToId=function(t){return"control"+t.replace(/(^| )\w/g,function(t){return"-"+t.trim().toLowerCase()})+Math.floor(1e3*Math.random())},o.prototype.addRow=function(t){return $(document.createElement("tr")).appendTo(t)},o.prototype.addLabeledRow=function(t,e,i,o){var n,r=e&&e.length>0?$.t(e):"",s=$(document.createElement("tr")),a=$(document.createElement("td")).html(r);return o&&a.attr("colspan",2),i&&(n=this._labelToId(e),i.attr("id",n),a.html('")),s.append(a).appendTo(t)},o.prototype.addEditorRow=function(t,e,i,o){var n=$(document.createElement("td"));return i.row=this.addLabeledRow(t,e,i,o),i.appendTo(n.appendTo(i.row)),i},o.prototype.addColorPickerRow=function(t,e){return this.addEditorRow(t,e,this.createColorPicker())},o.prototype.addOffsetEditorRow=function(t,e){var i=$("");return i.attr("type","text"),i.css("width","100px"),i.addClass("ticker"),this.addEditorRow(t,e,i)},o.prototype.addFontEditorRow=function(t,e){return this.addEditorRow(t,e,this.createFontEditor())},o.prototype.refreshStateControls=function(t,e,i){var o,n,r;for(o=0;o0&&(i=e[0],this._control.selectbox("change",i.value,i.text))}catch(t){}},v.prototype.propertyChanged=function(t){var e=t.value();"function"==typeof this._propertyChangedHook&&(e=this._propertyChangedHook(e)),this.setValue(e)},inherit(y,W),y.prototype.value=function(){return this._property.value()},y.prototype.setValue=function(t){return this._control.html(t)},inherit(b,W),b.prototype.value=function(){return this.control().is(":checked")},b.prototype.setValue=function(t){var e,i,o,n ;return this.control().is(".visibility-checker")&&(t?(this.control().closest("tr").find(".slider-range").slider("enable"),this.control().closest("tr").find('input[type="text"]').each(function(){$(this).prop("disabled",!1)})):(this.control().closest("tr").find(".slider-range").slider("disable"),this.control().closest("tr").find('input[type="text"]').each(function(){$(this).prop("disabled",!0)}))),this.control().is(".visibility-switch")&&(e={opacity:t?1:.5},i=t?"enable":"disable",o=this.control().data("hides"),o?o.closest("td").css(e):(n=this.control(),n.parent().parent().data("visible",t).find("td").filter(function(){var t=$(this);return!t.find("label").length&&t.find(":checkbox").attr("id")!==n.attr("id")}).each(function(){var o=$(this);o.children().each(function(){var n=$(this);n.is(".ui-slider")?n.slider(i):n.is("select")?(n.selectbox(i),o.css(e)):n.is(".custom-select")?(n.data(i)(),o.css(e)):n.is(".tvcolorpicker-container")?(n.find("input").prop("disabled",!t),o.css(e)):(n.prop("disabled",!t),o.css(e))})}))),this.control().attr("checked",!!t)},inherit(S,W),S.prototype.value=function(){return this.control().is(":disabled")},S.prototype.setValue=function(t){return t=!!t,this._inverted&&(t=!t),this.control().parents("label").toggleClass("disabled",t),this.control().attr("disabled",t)},inherit(w,W),w.prototype.value=function(){return this.control().hasClass("active")},w.prototype.setValue=function(t){return this.control().toggleClass("active",!!t)},inherit(T,W),T.prototype.applyOldTransparency=function(){var t,e,i;this.transparencyProperty()&&(F.isHexColor(this.property().value())?(t=this.transparencyProperty().value?this.transparencyProperty().value():this.transparencyProperty(),e=O(this.property().value()),i=(100-t)/100,this.control().val(V(D(e,i)))):this.control().val(this.property().value()),this.control().change())},T.prototype.transparencyProperty=function(){return this._transparencyProperty},T.prototype.value=function(){return this._control.val()},T.prototype.setValue=function(t){this._control.val(t),this._control.change(),this._control.color&&this._control.color.fromString(t)},inherit(C,W),C.prototype.value=function(){return this._control.slider("option","value")},C.prototype.setValue=function(t){this._control.slider("option","value",t)},inherit(x,b),x.prototype.onIntervalChanged=function(){+this._intervalProperty.value()<1440?this._control.attr({disabled:!1,checked:!!this._property.value()}):this._control.attr({disabled:!0,checked:!1})},x.prototype.value=function(){return this._control.is(":disabled")?this._property.value():b.prototype.value.call(this)},x.prototype.setValue=function(t){if(!this._control.is(":disabled"))return b.prototype.setValue.call(this,t)},x.prototype.destroy=function(){this._intervalProperty.listeners().unsubscribe(this,this.onIntervalChanged),delete this._intervalProperty,b.prototype.destroy.call(this,arguments)},P.prototype._attachToControl=function(t){var e=this;this._wv.subscribe(this._setValueBinded,{callWithLast:!0}),$(this._control).on("change",function(){ e.setValueToProperty(e.value())})},P.prototype.control=function(){return this._control},P.prototype.value=function(){var t=$(this._control).val();return this._transformFunction&&(t=this._transformFunction(t)),t},P.prototype.setValue=function(t){$(this._control).val(t)},P.prototype.setValueToProperty=function(t){this._undoModel.undoHistory.setWatchedValue(this._wv,t,this._undoText)},P.prototype.watchedValue=function(){return this._wv},P.prototype.destroy=function(){this._wv.unsubscribe(this._setValueBinded)},inherit(L,P),L.prototype._attachToControl=function(t){var e=this;this._wv.subscribe(this.setValue.bind(this),{callWithLast:!0}),$(this._control).on("click",function(){e.setValueToProperty(e.value())})},L.prototype.value=function(){var t=$(this._control).attr("checked");return this._not&&(t=!t),this._transformFunction&&(t=this._transformFunction(t)),t},L.prototype.setValue=function(t){this._not&&(t=!t),$(this._control).attr("checked",!!t)},I.prototype.properties=function(){return this._properties},I.prototype.value=function(t){return this._control.slider("values",t)},I.prototype.setValue=function(t,e){this._control.slider("values",e,t.value()),this._inputsText&&$(this._inputsText[e]).val(t.value())},I.prototype.propertyChanged=function(t){this.setValue(t)},I.prototype.setValueToProperty=function(t,e){($(e).hasClass("from")||"from"===e)&&(this._undoModel.beginUndoMacro(this._undoText[0]),this._undoModel.setProperty(this._propFrom,t[0],this._undoText[0]),this._propFrom.setValue(t[0],0),this._undoModel.endUndoMacro()),($(e).hasClass("to")||"to"===e)&&(this._undoModel.beginUndoMacro(this._undoText[1]),this._undoModel.setProperty(this._propTo,t[1],this._undoText[1]),this._propTo.setValue(t[1],1),this._undoModel.endUndoMacro())},I.prototype.destroy=function(){this._propFrom&&this._propTo&&(this._propFrom.listeners().unsubscribe(this,W.prototype.propertyChanged),this._propTo.listeners().unsubscribe(this,W.prototype.propertyChanged))},inherit(k,W),k.prototype.value=function(){var t=[];return this._control.each(function(){var e=$(this);e.is(":checked")&&t.push(e.attr("value"))}),t.join(this._separator)},k.prototype.setValue=function(t){var e=t.split(this._separator).filter(Boolean);this._control.each(function(){var t=$(this),i=-1!==e.indexOf(t.attr("value"));t.attr("checked",i),t.parents("label").toggleClass("active",i)})},e.PropertyPage=o,e.UppercaseTransformer=n,e.GreateTransformer=r,e.LessTransformer=s,e.ToIntTransformer=a,e.ToFloatTransformer=l,e.ToFloatTransformerWithDynamicDefaultValue=c,e.ToFloatLimitedPrecisionTransformer=h,e.ToAsciiTransformer=u,e.ReplaceEmptyTransformer=d,e.SimpleStringBinder=p,e.FloatBinder=_,e.SessionBinder=f,e.BarTimeBinder=m,e.SymbolBinder=g,e.SimpleComboBinder=v,e.StaticContentBinder=y,e.BooleanBinder=b,e.DisabledBinder=S,e.ColorBinding=T,e.SliderBinder=C,e.CheckboxWVBinding=L,e.RangeBinder=I}).call(e,i(25))},,function(t,e,i){(function(t){var e={};e.LINESTYLE_SOLID=0,e.LINESTYLE_DOTTED=1,e.LINESTYLE_DASHED=2,e.LINESTYLE_LARGE_DASHED=3,e.LINESTYLE_SPARSE_DOTTED=4,e.TEXTPOS_TOPLEFT=0, -e.TEXTPOS_TOPCENTER=1,e.TEXTPOS_TOPRIGHT=2,e.TEXTPOS_MIDDLELEFT=3,e.TEXTPOS_MIDDLECENTER=4,e.TEXTPOS_MIDDLERIGHT=5,e.TEXTPOS_BOTTOMLEFT=6,e.TEXTPOS_BOTTOMCENTER=7,e.TEXTPOS_BOTTOMRIGHT=8,e.SIZE_AUTO="auto",e.SIZE_TINY="tiny",e.SIZE_SMALL="small",e.SIZE_NORMAL="normal",e.SIZE_LARGE="large",e.SIZE_HUGE="huge",e.MARKLOC_ABOVEBAR="AboveBar",e.MARKLOC_BELOWBAR="BelowBar",e.MARKLOC_TOP="Top",e.MARKLOC_BOTTOM="Bottom",e.MARKLOC_RIGHT="Right",e.MARKLOC_LEFT="Left",e.MARKLOC_ABSOLUTE="Absolute",e.MARKLOC_ABSOLUTEUP="AbsoluteUp",e.MARKLOC_ABSOLUTEDOWN="AbsoluteDown",e.HHISTLOC_RELATIVE="relative",e.HHISTLOC_ABSOLUTE="absolute",e.HHISTDIR_LEFTTORIGHT="left_to_right",e.HHISTDIR_RIGHTTOLEFT="right_to_left",void 0!==t&&t&&t.exports&&(t.exports=e)}).call(e,i(42)(t))},function(t,e,i){"use strict";function o(t){var e,i,o=(t+"").match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return null===o?0:(e=o[1]?o[1].length:0,i=o[2]?parseInt(o[2],0):0,Math.max(0,e-i))}function n(t){return t=Math.abs(t),!l.isInteger(t)&&t>1&&(t=parseFloat((""+t).replace(/^.+\./,"0."))),0').appendTo(r.parent()),i=$('
').html(c).appendTo(e),o=$('
').html(c).appendTo(e),e.on("mousedown",function(t){t.preventDefault(),r.focus()}),i.click(function(){r.is(":disabled")||s(r)}),o.click(function(){r.is(":disabled")||a(r)}),r.keydown(function(t){r.is(":disabled")||(38===t.keyCode?i.addClass("i-active"):40===t.keyCode&&o.addClass("i-active"))}),r.keyup(function(t){r.is(":disabled")||(38===t.keyCode?(s(r),i.removeClass("i-active")):40===t.keyCode&&(a(r),o.removeClass("i-active")))}),r.mousewheel(function(t,e){e>0?i.click():o.click()}))})}},,,function(t,e,i){var o,n;!function(r,s){"object"==typeof t&&t.exports?t.exports=s():(o=s,void 0!==(n="function"==typeof o?o.call(e,i,e,t):o)&&(t.exports=n))}(0,function(){"use strict";function t(t,e){var i,o=document.createElement(t||"div");for(i in e)o[i]=e[i] +e.TEXTPOS_TOPCENTER=1,e.TEXTPOS_TOPRIGHT=2,e.TEXTPOS_MIDDLELEFT=3,e.TEXTPOS_MIDDLECENTER=4,e.TEXTPOS_MIDDLERIGHT=5,e.TEXTPOS_BOTTOMLEFT=6,e.TEXTPOS_BOTTOMCENTER=7,e.TEXTPOS_BOTTOMRIGHT=8,e.SIZE_AUTO="auto",e.SIZE_TINY="tiny",e.SIZE_SMALL="small",e.SIZE_NORMAL="normal",e.SIZE_LARGE="large",e.SIZE_HUGE="huge",e.MARKLOC_ABOVEBAR="AboveBar",e.MARKLOC_BELOWBAR="BelowBar",e.MARKLOC_TOP="Top",e.MARKLOC_BOTTOM="Bottom",e.MARKLOC_RIGHT="Right",e.MARKLOC_LEFT="Left",e.MARKLOC_ABSOLUTE="Absolute",e.MARKLOC_ABSOLUTEUP="AbsoluteUp",e.MARKLOC_ABSOLUTEDOWN="AbsoluteDown",e.HHISTLOC_RELATIVE="relative",e.HHISTLOC_ABSOLUTE="absolute",e.HHISTDIR_LEFTTORIGHT="left_to_right",e.HHISTDIR_RIGHTTOLEFT="right_to_left",void 0!==t&&t&&t.exports&&(t.exports=e)}).call(e,i(42)(t))},function(t,e,i){"use strict";function o(t){var e,i,o=(t+"").match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return null===o?0:(e=o[1]?o[1].length:0,i=o[2]?parseInt(o[2],0):0,Math.max(0,e-i))}function n(t){return t=Math.abs(t),!l.isInteger(t)&&t>1&&(t=parseFloat((""+t).replace(/^.+\./,"0."))),0').appendTo(r.parent()),i=$('
').html(c).appendTo(e),o=$('
').html(c).appendTo(e),e.on("mousedown",function(t){t.preventDefault(),r.focus()}),i.click(function(){r.is(":disabled")||s(r)}),o.click(function(){r.is(":disabled")||a(r)}),r.keydown(function(t){r.is(":disabled")||(38===t.keyCode?i.addClass("i-active"):40===t.keyCode&&o.addClass("i-active"))}),r.keyup(function(t){r.is(":disabled")||(38===t.keyCode?(s(r),i.removeClass("i-active")):40===t.keyCode&&(a(r),o.removeClass("i-active")))}),r.mousewheel(function(t,e){e>0?i.click():o.click()}))})}},,,function(t,e,i){var o,n;!function(r,s){"object"==typeof t&&t.exports?t.exports=s():(o=s,void 0!==(n="function"==typeof o?o.call(e,i,e,t):o)&&(t.exports=n))}(0,function(){"use strict";function t(t,e){var i,o=document.createElement(t||"div");for(i in e)o[i]=e[i] ;return o}function e(t){for(var e=1,i=arguments.length;e',i)}h.addRule(".spin-vml","behavior:url(#default#VML)"),a.prototype.lines=function(t,o){function r(){return n(i("group",{coordsize:h+" "+h,coordorigin:-c+" "+-c}),{width:h,height:h})}function a(t,a,l){e(d,e(n(r(),{rotation:360/o.lines*t+"deg",left:~~a}),e(n(i("roundrect",{arcsize:o.corners}),{width:c,height:o.scale*o.width,left:o.scale*o.radius,top:-o.scale*o.width>>1,filter:l}),i("fill",{color:s(o.color,t),opacity:o.opacity}),i("stroke",{opacity:0}))))}var l,c=o.scale*(o.length+o.width),h=2*o.scale*c,u=-(o.width+o.length)*o.scale*2+"px",d=n(r(),{position:"absolute",top:u,left:u});if(o.shadow)for(l=1;l<=o.lines;l++)a(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=o.lines;l++)a(l);return e(t,d)},a.prototype.opacity=function(t,e,i,o){var n=t.firstChild;o=o.shadow&&o.lines||0,n&&e+o>1)+"px"})}for(var l,h=0,u=(r.lines-1)*(1-r.direction)/2;h");o.appendTo(t),o.css("padding-left","0px"),o.css("padding-right","0px"),i=$(""),i.attr("type","text"),i.addClass("ticker"),i.css("width","40px"),i.attr("id",e),i.appendTo(o)},r=function(t,e,i){var o,n=$("
");n.css("padding-left",i),n.css("padding-right",i),n.appendTo(t),o=$("
"),o.appendTo(n),o.append(e),o.css("font-size","150%")},s=$(""),s.appendTo(t),a=$(""),a.appendTo(s),c=["start_hours","start_minutes","end_hours","end_minutes"],n.call(this,a,c[0]),r.call(this,a,":",0),n.call(this,a,c[1]),r.call(this,a,"-",4),n.call(this,a,c[2]),r.call(this,a,":",0),n.call(this,a,c[3]),h=!1,this.bindControl(new l(a,c,e,h,this.model(),o))},o.prototype.prepareLayoutImpl=function(e,i){function o(t){return(new v).format(t)}function n(t){return function(e){var i,o,n,r=this,s=null;if(0===e.indexOf("#")){if(i=e.slice(1,e.indexOf("$")),null===(o=it._model.model().getStudyById(i)))return void b.logError("Can not get Study by id "+i);if(o.isStarted()||o.start(null,!0), +height:r.scale*r.width+"px",background:e,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/r.lines*h+r.rotate)+"deg) translate("+r.scale*r.radius+"px,0)",borderRadius:(r.corners*r.scale*r.width>>1)+"px"})}for(var l,h=0,u=(r.lines-1)*(1-r.direction)/2;h");o.appendTo(t),o.css("padding-left","0px"),o.css("padding-right","0px"),i=$(""),i.attr("type","text"),i.addClass("ticker"),i.css("width","40px"),i.attr("id",e),i.appendTo(o)},r=function(t,e,i){var o,n=$("
");n.css("padding-left",i),n.css("padding-right",i),n.appendTo(t),o=$("
"),o.appendTo(n),o.append(e),o.css("font-size","150%")},s=$(""),s.appendTo(t),a=$(""),a.appendTo(s),c=["start_hours","start_minutes","end_hours","end_minutes"],n.call(this,a,c[0]),r.call(this,a,":",0),n.call(this,a,c[1]),r.call(this,a,"-",4),n.call(this,a,c[2]),r.call(this,a,":",0),n.call(this,a,c[3]),h=!1,this.bindControl(new l(a,c,e,h,this.model(),o))},o.prototype.prepareLayoutImpl=function(e,i){function o(t){return(new v).format(t)}function n(t){return function(e){var i,o,n,r=this,s=null;if(0===e.indexOf("#")){if(i=e.slice(1,e.indexOf("$")),null===(o=it._model.model().getStudyById(i)))return void b.logError("Can not get Study by id "+i);if(o.isStarted()||o.start(null,!0), !(n=o.sourceId()))return void b.logError("Can not get source id for "+o.metaInfo().id);s=e.replace(/^[^\$]+/,n)}!~e.indexOf("$")&&!~e.indexOf("#")||it._study.isStarted()||it._study.start(null,!0),it._study.testInputValue(t,e)?r.setValueToProperty(s||r.value()):r.setValue(it._property.inputs[t.id].value())}}function l(t){return function(e){var i,o,n,r;if(t.hasOwnProperty(e)||0===e.indexOf("#")||!~e.indexOf("$"))return e;for(i=e.slice(0,e.indexOf("$")),o=it._model.model().allStudies(),n=0;n"),x.appendTo(i),P=$("
"),P.appendTo(x),P.addClass("propertypage-name-label"),P.text($.t(T,{context:"input"})),L=$(""),L.appendTo(x),I=null,k=null,A=null,"resolution"===S.type)I=$('");else if("symbol"===S.type)I=$(''),g.bindToInput(I,{onPopupOpen:function(t){this._$symbolSearchPopup=t,this._symbolSearchZindex&&t.css("z-index",this._symbolSearchZindex)}.bind(this),onPopupClose:function(){this._$symbolSearchPopup=null}.bind(this)});else if("session"===S.type)this._addSessionEditor(L,this._property.inputs[w],S,C);else if("source"===S.type){for(M={},E={open:window.t("open"),high:window.t("high"),low:window.t("low"),close:window.t("close"),hl2:window.t("hl2"),hlc3:window.t("hlc3"),ohlc4:window.t("ohlc4")},D=Object.keys(E),V=0;V").attr("value",X).text(J).appendTo(I);L.addClass("js-value-cell")}else if(S.options)for(I=$(""),"bool"===S.type?I.attr("type","checkbox"):I.attr("type","text");I&&(I.appendTo(L),I.is(":checkbox")||I.css("width","100px")),S.options?this.bindControl(new _(I,this._property.inputs[w],null,!0,this.model(),C,k,A)):"bar_time"===S.type?(Q=10,this.bindControl(new a(I,this._property.inputs[w],!0,this.model(),C,this.model().mainSeries(),Q)),I.addClass("ticker")):"integer"===S.type?(tt=[d(S.defval)],(0===S.min||S.min)&&tt.push(h(S.min)),(0===S.max||S.max)&&tt.push(u(S.max)),this.bindControl(new m(I,this._property.inputs[w],tt,!1,this.model(),C)),I.addClass("ticker"),isFinite(S.step)&&S.step>0&&I.attr("data-step",S.step)):"float"===S.type?(tt=[p(S.defval)],(0===S.min||S.min)&&tt.push(h(S.min)),(0===S.max||S.max)&&tt.push(u(S.max)),et=new m(I,this._property.inputs[w],tt,!1,this.model(),C),et.addFormatter(o),this.bindControl(et),I.addClass("ticker"),isFinite(S.step)&&S.step>0&&I.attr("data-step",S.step)):"text"===S.type?this.bindControl(new m(I,this._property.inputs[w],null,!1,this.model(),C)):"bool"===S.type?this.bindControl(new f(I,this._property.inputs[w],!0,this.model(),C)):"resolution"===S.type?this.bindControl(new _(I,this._property.inputs[w],r,!0,this.model(),"Change Interval")):"symbol"===S.type&&this.bindControl(new s(I,this._property.inputs[w],!0,this.model(),"Change Symbol"))}this._property.offset&&(T=this._property.offset.title?this._property.offset.title.value():$.t("Offset"),I=this.addOffsetEditorRow(i,T),tt=[d(this._property.offset.val)],tt.push(h(this._property.offset.min)),tt.push(u(this._property.offset.max)),this.bindControl(new m(I,this._property.offset.val,tt,!1,this.model(),"Undo "+T))),this._property.offsets&&$.each(e.plots,function(t,e){var o,n,r,s;this._property.offsets[e.id]&&(o=this._property.offsets[e.id],void 0!==o.isHidden&&o.isHidden.value()||(n=o.title.value(),r=this.addOffsetEditorRow(i,n),s=[d(o.val)],s.push(h(o.min)),s.push(u(o.max)),this.bindControl(new m(r,o.val,s,!1,this.model(),"Undo "+n))))}.bind(this))},o.prototype.prepareLayout=function(){this._table=$(""),this._table.addClass("property-page"),this._table.attr("cellspacing","0"),this._table.attr("cellpadding","2");var t=this._study.metaInfo();this.prepareLayoutImpl(t,this._table),this.loadData()},o.prototype.symbolSearchPopup=function(){return this._$symbolSearchPopup},o.prototype.widget=function(){return this._table},e.StudyInputsPropertyPage=o}).call(e,i(5))},function(t,e,i){"use strict";function o(t){this._data=t,this.bars=t.bars,this._barWidth=n.optimalBarWidth(t.barSpacing),this._barBorderWidth=1}var n=i(45),r=i(11);o.prototype.draw=function(t){ var e,i,o,n,r,s,a,l,c,h,u,d,p,_,f=this.bars,m=this._data.barSpacing,g=this._data.drawWick,v=this._data.drawBorder,y=this._data.wickColor,b=this._barBorderWidth,S=this._barWidth;if(t.lineCap="square",t.lineStyle=this._data.lineStyle,m<1){if(g){for(t.strokeStyle=y,t.lineWidth=1,t.beginPath(),h=f.length;h-- >0;)u=f[h],t.moveTo(u.time,u.low),t.lineTo(u.time,u.high);t.stroke()}for(t.lineWidth=1,d="",p=!1,t.beginPath(),h=f.length;h-- >0;)u=f[h],c=u.time,d!==u.color&&(p&&(t.stroke(),t.beginPath(),p=!1),t.strokeStyle=u.color,d=u.color),t.moveTo(u.time,u.open),t.lineTo(u.time,u.close),p=!0;p&&t.stroke()}else{if(f=f.slice().sort(function(t,e){return t.color>e.color?-1:t.colora[a.length-1].time+l)return null;for(e=null,i=0;i5&&("width"in t&&(n[3]=Math.min(t.width,Math.max(1,n[3]))),"height"in t&&(n[4]=Math.min(t.height,Math.max(1,n[4])))),i.apply(this,n)},o(n,function(i,o){var n=t[o];t[o]=function(){var t,o;if("all"===i)for(o=[],t=arguments.length;0]+)>)/gi,""):t},TradingView.encodeSpread=function(t){return encodeURIComponent(t)},TradingView.clean=function(t,e,i){var o,n,r,s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],a=t -;if(!t||!t.replace)return a;for(o=0;o'},function(t,e,i){"use strict";function o(t,e,i,o,n){function r(t){return e&&e[t]?e[t]:t}function s(t,e,i,o){var n=r(e[0]);return!!t.hasOwnProperty(n)&&(e.length>1?s(t[n],e.slice(1),i):(t[n]&&t[n].setValue?t[n].setValue(i):t[n]=i,!0))}function a(t){i||f.logWarn("Path `"+t+"` does not exist.")}var l,c,h,u;if(o)for(l in o)c=l.split("."),h=r(c[0]),u=void 0!==n&&n===c[0],0!==c.length&&u&&(c=c.slice(1),h=r(c[0])),0!==c.length&&t.hasOwnProperty(h)?s(t,c,o[l])||a(l):u&&a(l)}function n(t,e,i,n){window.__defaultsOverrides&&o(t,e,i,window.__defaultsOverrides,n)}function r(){var t=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach(function(e){t.test(e)&&n(TradingView.defaultProperties[e],null,!1,e)})}function s(t,e){return e?l(t,e):a(t)}function a(t){var e,i=m(t);return window._UNIT_TESTS||(e=TradingView.clone(TVSettings.getJSON(t,null)))&&TradingView.merge(i,e),i}function l(t,e){var i,o,n=m(t);return window._UNIT_TESTS||(i=TradingView.clone(TVSettings.getJSON(t,null)),t.startsWith("study_")&&i&&d.isVersionHead(i.version)&&(o=e.updateStudyState(i,i),i=o),TradingView.merge(n,i)),n}var c=i(49),h=i(299).LineToolPitchforkStyle,u=i(245).LineToolBarsPatternMode,d=i(84),p=i(111).PlotType,_=i(74).LineEnd,f=i(7).getLogger("Chart.Defaults"),m=function(t){var e,i,o,s,a,l,d,f,m={a:function(t,e){return{color:t,visible:e}},b:function(t,e,i){return{coeff:t,color:e,visible:i}},c:function(t,e,i,o,n){return{coeff:t,color:e,visible:i,linestyle:void 0===o?CanvasEx.LINESTYLE_SOLID:o,linewidth:void 0===n?1:n}},d:function(t,e,i){return{color:t,width:i,visible:e}},e:function(t,e,i,o,n){return{color:t,visible:e,width:i,x:o,y:n}},f:function(t,e,i,o,n,r){return{coeff1:t,coeff2:e,color:i,visible:o,linestyle:void 0===n?CanvasEx.LINESTYLE_SOLID:n,linewidth:void 0===r?1:r}}};if(void 0===TradingView.defaultProperties){switch(window.locale){case"ar_AE":e="Asia/Dubai";break;case"au":e="Australia/Sydney";break;case"br":e="America/Sao_Paulo";break;case"ca":e="America/Toronto";break;case"de_DE":case"it":e="Europe/Berlin";break;case"es":e="Europe/Madrid";break;case"fa_IR":e="Asia/Tehran";break;case"fr":case"sv_SE":e="Europe/Paris";break;case"he_IL":case"tr":e="Europe/Athens";break;case"hu_HU":case"pl":e="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":e="Asia/Bangkok";break;case"in":e="Asia/Kolkata";break;case"ja":case"kr":e="Asia/Tokyo";break;case"ms_MY":e="Asia/Singapore";break;case"ru":e="Europe/Moscow";break;case"uk":e="Europe/London";break;case"zh_CN":case"zh_TW":e="Asia/Shanghai" +;if(!t||!t.replace)return a;for(o=0;o'},function(t,e,i){"use strict";function o(t,e,i,o,n){function r(t){return e&&e[t]?e[t]:t}function s(t,e,i,o){var n=r(e[0]);return!!t.hasOwnProperty(n)&&(e.length>1?s(t[n],e.slice(1),i):(t[n]&&t[n].setValue?t[n].setValue(i):t[n]=i,!0))}function a(t){i||f.logWarn("Path `"+t+"` does not exist.")}var l,c,h,u;if(o)for(l in o)c=l.split("."),h=r(c[0]),u=void 0!==n&&n===c[0],0!==c.length&&u&&(c=c.slice(1),h=r(c[0])),0!==c.length&&t.hasOwnProperty(h)?s(t,c,o[l])||a(l):u&&a(l)}function n(t,e,i,n){window.__defaultsOverrides&&o(t,e,i,window.__defaultsOverrides,n)}function r(){var t=/^linetool.+/;Object.keys(TradingView.defaultProperties).forEach(function(e){t.test(e)&&n(TradingView.defaultProperties[e],null,!1,e)})}function s(t,e){return e?l(t,e):a(t)}function a(t){var e,i=m(t);return window._UNIT_TESTS||(e=TradingView.clone(TVSettings.getJSON(t,null)))&&TradingView.merge(i,e),i}function l(t,e){var i,o,n=m(t);return window._UNIT_TESTS||(i=TradingView.clone(TVSettings.getJSON(t,null)),t.startsWith("study_")&&i&&d.isVersionHead(i.version)&&(o=e.updateStudyState(i,i),i=o),TradingView.merge(n,i)),n}var c=i(49),h=i(300).LineToolPitchforkStyle,u=i(246).LineToolBarsPatternMode,d=i(84),p=i(111).PlotType,_=i(74).LineEnd,f=i(7).getLogger("Chart.Defaults"),m=function(t){var e,i,o,s,a,l,d,f,m={a:function(t,e){return{color:t,visible:e}},b:function(t,e,i){return{coeff:t,color:e,visible:i}},c:function(t,e,i,o,n){return{coeff:t,color:e,visible:i,linestyle:void 0===o?CanvasEx.LINESTYLE_SOLID:o,linewidth:void 0===n?1:n}},d:function(t,e,i){return{color:t,width:i,visible:e}},e:function(t,e,i,o,n){return{color:t,visible:e,width:i,x:o,y:n}},f:function(t,e,i,o,n,r){return{coeff1:t,coeff2:e,color:i,visible:o,linestyle:void 0===n?CanvasEx.LINESTYLE_SOLID:n,linewidth:void 0===r?1:r}}};if(void 0===TradingView.defaultProperties){switch(window.locale){case"ar_AE":e="Asia/Dubai";break;case"au":e="Australia/Sydney";break;case"br":e="America/Sao_Paulo";break;case"ca":e="America/Toronto";break;case"de_DE":case"it":e="Europe/Berlin";break;case"es":e="Europe/Madrid";break;case"fa_IR":e="Asia/Tehran";break;case"fr":case"sv_SE":e="Europe/Paris";break;case"he_IL":case"tr":e="Europe/Athens";break;case"hu_HU":case"pl":e="Europe/Warsaw";break;case"id":case"th_TH":case"vi_VN":e="Asia/Bangkok";break;case"in":e="Asia/Kolkata";break;case"ja":case"kr":e="Asia/Tokyo";break;case"ms_MY":e="Asia/Singapore";break;case"ru":e="Europe/Moscow";break;case"uk":e="Europe/London";break;case"zh_CN":case"zh_TW":e="Asia/Shanghai" ;break;default:e="Etc/UTC"}TradingView.defaultProperties={chartproperties:{timezone:e,dataWindowProperties:{background:"rgba( 255, 254, 206, 0.2)",border:"rgba( 96, 96, 144, 1)",font:"Verdana",fontBold:!1,fontItalic:!1,fontSize:10,transparency:80,visible:!0},paneProperties:{background:"#ffffff",gridProperties:{color:"#e1ecf2",style:CanvasEx.LINESTYLE_SOLID},vertGridProperties:{color:"#e1ecf2",style:CanvasEx.LINESTYLE_SOLID},horzGridProperties:{color:"#e1ecf2",style:CanvasEx.LINESTYLE_SOLID},crossHairProperties:{color:"rgba( 152, 152, 152, 1)",style:CanvasEx.LINESTYLE_DASHED,transparency:0,width:1},topMargin:5,bottomMargin:5,leftAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!0},rightAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1,alignLabels:!0},legendProperties:{showStudyArguments:!0,showStudyTitles:!0,showStudyValues:!0,showSeriesTitle:!0,showSeriesOHLC:!0,showLegend:!0}},scalesProperties:{showLeftScale:!1,showRightScale:!0,backgroundColor:"#ffffff",lineColor:"#555",textColor:"#555",fontSize:11,scaleSeriesOnly:!1,showSeriesLastValue:!0,showSeriesPrevCloseValue:!1,showStudyLastValue:!1,showSymbolLabels:!1,showStudyPlotLabels:!1},mainSeriesProperties:{style:c.STYLE_CANDLES,esdShowDividends:!0,esdShowSplits:!0,esdShowEarnings:!0,esdShowBreaks:!1,esdBreaksStyle:{color:"rgba( 235, 77, 92, 1)",style:CanvasEx.LINESTYLE_DASHED,width:1},esdFlagSize:2,showCountdown:!0,showInDataWindow:!0,visible:!0,silentIntervalChange:!1,showPriceLine:!0,priceLineWidth:1,priceLineColor:"",showPrevClosePriceLine:!1,prevClosePriceLineWidth:1,prevClosePriceLineColor:"rgba( 85, 85, 85, 1)",minTick:"default",extendedHours:!1,sessVis:!1,statusViewStyle:{fontSize:17,showExchange:!0,showInterval:!0,showSymbolAsDescription:!1},candleStyle:{upColor:"#53b987",downColor:"#eb4d5c",drawWick:!0,drawBorder:!0,borderColor:"#378658",borderUpColor:"#53b987",borderDownColor:"#eb4d5c",wickColor:"#737375",wickUpColor:"#a9cdd3",wickDownColor:"#f5a6ae",barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 83, 185, 135, 1)",borderDownColor:"rgba( 255, 77, 92, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 169, 220, 195, 1)",wickDownColor:"rgba( 245, 166, 174, 1)"},haStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 83, 185, 135, 1)",borderDownColor:"rgba( 255, 77, 92, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 83, 185, 135, 1)",wickDownColor:"rgba( 255, 77, 92, 1)",showRealLastPrice:!1,barColorsOnPrevClose:!1,inputs:{},inputInfo:{}},barStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",barColorsOnPrevClose:!1,dontDrawOpen:!1},lineStyle:{color:"rgba( 60, 120, 216, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1, priceSource:"close",styleType:c.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:"rgba( 96, 96, 144, 0.5)",color2:"rgba( 1, 246, 245, 0.5)",linecolor:"rgba( 0, 148, 255, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,priceSource:"close",transparency:50},priceAxisProperties:{autoScale:!0,autoScaleDisabled:!1,lockScale:!1,percentage:!1,percentageDisabled:!1,log:!1,logDisabled:!1},renkoStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",borderUpColor:"rgba( 83, 185, 135, 1)",borderDownColor:"rgba( 255, 77, 92, 1)",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",borderUpColorProjection:"rgba( 169, 220, 195, 1)",borderDownColorProjection:"rgba( 245, 166, 174, 1)",wickUpColor:"rgba( 83, 185, 135, 1)",wickDownColor:"rgba( 255, 77, 92, 1)",inputs:{source:"close",boxSize:3,style:"ATR",atrLength:14,wicks:!0},inputInfo:{source:{name:"Source"},boxSize:{name:"Box size"},style:{name:"Style"},atrLength:{name:"ATR Length"},wicks:{name:"Wicks"}}},pbStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",borderUpColor:"rgba( 83, 185, 135, 1)",borderDownColor:"rgba( 255, 77, 92, 1)",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",borderUpColorProjection:"rgba( 169, 220, 195, 1)",borderDownColorProjection:"rgba( 245, 166, 174, 1)",inputs:{source:"close",lb:3},inputInfo:{source:{name:"Source"},lb:{name:"Number of line"}}},kagiStyle:{upColor:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",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:"rgba( 83, 185, 135, 1)",downColor:"rgba( 255, 77, 92, 1)",upColorProjection:"rgba( 169, 220, 195, 1)",downColorProjection:"rgba( 245, 166, 174, 1)",inputs:{sources:"Close",reversalAmount:3,boxSize:1,style:"ATR",atrLength:14},inputInfo:{sources:{name:"Source"},boxSize:{name:"Box size"},reversalAmount:{name:"Reversal amount"},style:{name:"Style"},atrLength:{name:"ATR Length"}}},baselineStyle:{baselineColor:"rgba( 117, 134, 150, 1)",topFillColor1:"rgba( 83, 185, 135, 0.1)",topFillColor2:"rgba( 83, 185, 135, 0.1)",bottomFillColor1:"rgba( 235, 77, 92, 0.1)",bottomFillColor2:"rgba( 235, 77, 92, 0.1)",topLineColor:"rgba( 83, 185, 135, 1)",bottomLineColor:"rgba( 235, 77, 92, 1)",topLineWidth:1,bottomLineWidth:1,priceSource:"close",transparency:50,baseLevelPercentage:50}},symbolWatermarkProperties:{color:"rgba( 85, 85, 85, 0)",transparency:100},chartEventsSourceProperties:{visible:!0,futureOnly:!0,breaks:{color:"rgba(85, 85, 85, 1)",visible:!1,style:CanvasEx.LINESTYLE_DASHED,width:1}},tradingProperties:{showPositions:!0,showOrders:!0,showExecutions:!0,extendLeft:!0,lineLength:5,lineWidth:1,lineStyle:CanvasEx.LINESTYLE_DASHED},alertsProperties:{labels:{visible:!0,color:"rgba( 215, 84, 66, 1)",highlightColor:"rgba( 255, 255, 51, 1)", hoverColor:"rgba( 245, 227, 135, 1)",line:{visible:!0,style:CanvasEx.LINESTYLE_DASHED,width:1}},fakeLabels:{visible:!0,color:"rgba( 119, 119, 119, 1)",line:{visible:!0,style:CanvasEx.LINESTYLE_DASHED,width:1}},drawingIcon:{color:"rgba( 170, 170, 170, 1)"}},editorFontsList:["Verdana","Courier New","Times New Roman","Arial"],volumePaneSize:"large"},drawings:{magnet:!1,stayInDrawingMode:!1,drawOnAllCharts:!0,crossHairColor:"rgba( 183, 183, 183, 1)",crossHairStyle:CanvasEx.LINESTYLE_DASHED,crossHairWidth:1},linetoolorder:{singleChartOnly:!0,extendLeft:"inherit",lineLength:"inherit",lineColor:"rgba( 255, 0, 0, 1)",lineTransparency:0,lineStyle:"inherit",lineWidth:"inherit",bodyBorderColor:"rgba( 255, 0, 0, 0)",bodyBorderTransparency:0,bodyBackgroundColor:"rgba( 255, 255, 255, 0.75)",bodyBackgroundTransparency:25,bodyTextColor:"rgba( 255, 0, 0, 0)",bodyTextTransparency:0,bodyFontFamily:"Verdana",bodyFontSize:7,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderColor:"rgba( 255, 0, 0, 0)",quantityBorderTransparency:0,quantityBackgroundColor:"rgba( 255, 0, 0, 0.75)",quantityBackgroundTransparency:25,quantityTextColor:"rgba( 255, 255, 255, 1)",quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:7,quantityFontBold:!0,quantityFontItalic:!1,cancelButtonBorderColor:"rgba( 255, 0, 0, 1)",cancelButtonBorderTransparency:0,cancelButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",cancelButtonBackgroundTransparency:25,cancelButtonIconColor:"rgba( 255, 0, 0, 1)",cancelButtonIconTransparency:0,tooltip:""},linetoolposition:{singleChartOnly:!0,extendLeft:"inherit",lineLength:"inherit",lineColor:"rgba( 0, 113, 224, 1)",lineTransparency:0,lineStyle:"inherit",lineWidth:"inherit",bodyBorderColor:"rgba( 0, 113, 224, 1)",bodyBorderTransparency:0,bodyBackgroundColor:"rgba( 255, 255, 255, 0.75)",bodyBackgroundTransparency:25,bodyTextColor:"rgba( 0, 113, 224, 1)",bodyTextTransparency:0,bodyFontFamily:"Verdana",bodyFontSize:7,bodyFontBold:!0,bodyFontItalic:!1,quantityBorderColor:"rgba( 0, 113, 224, 1)",quantityBorderTransparency:0,quantityBackgroundColor:"rgba( 0, 113, 224, 0.75)",quantityBackgroundTransparency:25,quantityTextColor:"rgba( 255, 255, 255, 1)",quantityTextTransparency:0,quantityFontFamily:"Verdana",quantityFontSize:7,quantityFontBold:!0,quantityFontItalic:!1,reverseButtonBorderColor:"rgba( 0, 113, 224, 1)",reverseButtonBorderTransparency:0,reverseButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",reverseButtonBackgroundTransparency:25,reverseButtonIconColor:"rgba( 0, 113, 224, 1)",reverseButtonIconTransparency:0,closeButtonBorderColor:"rgba( 0, 113, 224, 1)",closeButtonBorderTransparency:0,closeButtonBackgroundColor:"rgba( 255, 255, 255, 0.75)",closeButtonBackgroundTransparency:25,closeButtonIconColor:"rgba( 0, 113, 224, 1)",closeButtonIconTransparency:0,tooltip:""},linetoolexecution:{singleChartOnly:!0,direction:"buy",arrowHeight:8,arrowSpacing:1,arrowColor:"rgba( 0, 0, 255, 1)",arrowTransparency:0,text:"",textColor:"rgba( 0, 0, 0, 1)",textTransparency:0,fontFamily:"Verdana",fontSize:8,fontBold:!1,fontItalic:!1, @@ -260,114 +260,114 @@ __collectibleLines:["trendline","level1","level2","level3","level4","level5","le level3:m.c(.5,"rgba( 149, 204, 40, 1)",!1),level4:m.c(.618,"rgba( 40, 204, 40, 1)",!0),level5:m.c(1,"rgba( 40, 204, 149, 1)",!0),level6:m.c(1.382,"rgba( 40, 149, 204, 1)",!0),level7:m.c(1.618,"rgba( 128, 128, 128, 1)",!0),level8:m.c(2,"rgba( 40, 40, 204, 1)",!0),level9:m.c(2.382,"rgba( 204, 40, 40, 1)",!0),level10:m.c(2.618,"rgba( 149, 40, 204, 1)",!0),level11:m.c(3,"rgba( 204, 40, 149, 1)",!0),__collectibleLines:["trendline","level1","level2","level3","level4","level5","level6","level7","level8","level9","level10","level11"]},linetoolschiffpitchfork:{clonable:!0,fillBackground:!0,transparency:80,style:h.Schiff,median:{visible:!0,color:"rgba( 165, 0, 0, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level0:m.c(.25,"rgba( 160, 107, 0, 1)",!1),level1:m.c(.382,"rgba( 105, 158, 0, 1)",!1),level2:m.c(.5,"rgba( 0, 155, 0, 1)",!0),level3:m.c(.618,"rgba( 0, 153, 101, 1)",!1),level4:m.c(.75,"rgba( 0, 101, 153, 1)",!1),level5:m.c(1,"rgba( 0, 0, 153, 1)",!0),level6:m.c(1.5,"rgba( 102, 0, 153, 1)",!1),level7:m.c(1.75,"rgba( 153, 0, 102, 1)",!1),level8:m.c(2,"rgba( 165, 0, 0, 1)",!1),__collectibleLines:["median","level0","level1","level2","level3","level4","level5","level6","level7","level8"]},linetoolschiffpitchfork2:{clonable:!0,fillBackground:!0,transparency:80,style:h.Schiff2,median:{visible:!0,color:"rgba( 165, 0, 0, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level0:m.c(.25,"rgba( 160, 107, 0, 1)",!1),level1:m.c(.382,"rgba( 105, 158, 0, 1)",!1),level2:m.c(.5,"rgba( 0, 155, 0, 1)",!0),level3:m.c(.618,"rgba( 0, 153, 101, 1)",!1),level4:m.c(.75,"rgba( 0, 101, 153, 1)",!1),level5:m.c(1,"rgba( 0, 0, 153, 1)",!0),level6:m.c(1.5,"rgba( 102, 0, 153, 1)",!1),level7:m.c(1.75,"rgba( 153, 0, 102, 1)",!1),level8:m.c(2,"rgba( 165, 0, 0, 1)",!1),__collectibleLines:["median","level0","level1","level2","level3","level4","level5","level6","level7","level8"]},linetoolinsidepitchfork:{clonable:!0,fillBackground:!0,transparency:80,style:h.Inside,median:{visible:!0,color:"rgba( 165, 0, 0, 1)",linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID},level0:m.c(.25,"rgba( 160, 107, 0, 1)",!1),level1:m.c(.382,"rgba( 105, 158, 0, 1)",!1),level2:m.c(.5,"rgba( 0, 155, 0, 1)",!0),level3:m.c(.618,"rgba( 0, 153, 101, 1)",!1),level4:m.c(.75,"rgba( 0, 101, 153, 1)",!1),level5:m.c(1,"rgba( 0, 0, 153, 1)",!0),level6:m.c(1.5,"rgba( 102, 0, 153, 1)",!1),level7:m.c(1.75,"rgba( 153, 0, 102, 1)",!1),level8:m.c(2,"rgba( 165, 0, 0, 1)",!1),__collectibleLines:["median","level0","level1","level2","level3","level4","level5","level6","level7","level8"]},linetool:{frozen:!1,visible:!0},linetoolvisibilities:{intervalsVisibilities:{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,months:!0}}},n(TradingView.defaultProperties.chartproperties),r()}for(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:"rgba( 4, 150, 255, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0,title:"MA"}}}),void 0===TradingView.defaultProperties["study_ErrorOnUpdate@tv-basicstudies"]&&(TradingView.defaultProperties["study_ErrorOnUpdate@tv-basicstudies"]={description:"Error On Update",styles:{ErrorOnUpdate:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0}}}),void 0===TradingView.defaultProperties["study_ErrorOnCreate@tv-basicstudies"]&&(TradingView.defaultProperties["study_ErrorOnCreate@tv-basicstudies"]={description:"Error On Create",styles:{ErrorOnUpdate:{visible:!0,color:"rgba( 0, 255, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0}}}),void 0===TradingView.defaultProperties["study_ErrorOnNewBar@tv-basicstudies"]&&(TradingView.defaultProperties["study_ErrorOnNewBar@tv-basicstudies"]={description:"Error On New Bar",styles:{ErrorOnUpdate:{visible:!0,color:"rgba( 0, 0, 255, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0}}}),void 0===TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]&&(TradingView.defaultProperties["study_PivotPointsHighLow@tv-basicstudies"]={font:"Arial",fontsize:10,borderColor:"rgba( 83, 143, 31, 1)",backColor:"rgba( 240, 255, 204, 1)",textColor:"rgba( 0, 0, 0, 1)"}),void 0===TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]&&(i="rgba( 212, 121, 40, 1)",o=!0,s=1,TradingView.defaultProperties["study_PivotPointsStandard@tv-basicstudies"]={_hardCodedDefaultsVersion:1,font:"Arial",fontsize:11,levelsStyle:{showLabels:!0,visibility:{P:o,"S1/R1":o,"S2/R2":o,"S3/R3":o,"S4/R4":o,"S5/R5":o},colors:{P:i,"S1/R1":i,"S2/R2":i,"S3/R3":i,"S4/R4":i,"S5/R5":i},widths:{P:s,"S1/R1":s,"S2/R2":s,"S3/R3":s,"S4/R4":s,"S5/R5":s}}}),void 0===TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]&&(TradingView.defaultProperties["study_ZigZag@tv-basicstudies"]={color:"rgba( 86, 135, 29, 1)",linewidth:2}),void 0===TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]&&(TradingView.defaultProperties["study_ElliottWave@tv-basicstudies"]={inputs:{},level0:m.a("rgba( 255, 0, 0, 1)",!1),level1:m.a("rgba( 0, 128, 0, 1)",!1),level2:m.a("rgba( 0, 0, 255, 1)",!1),level3:m.a("rgba( 255, 0, 255, 1)",!1),level4:m.a("rgba( 0, 128, 255, 1)",!0),level5:m.a("rgba( 255, 0, 0, 1)",!0),level6:m.a("rgba( 0, 128, 0, 1)",!0),level7:m.a("rgba( 0, 0, 255, 1)",!0),level8:m.a("rgba( 255, 0, 255, 1)",!0)}),void 0===TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]&&(TradingView.defaultProperties["study_LinearRegression@tv-basicstudies"]={styles:{upLine:{visible:!0,color:"rgba( 0, 0, 255, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0,color:"rgba( 0, 0, 255, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:"rgba( 255, 0, 0, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},extendLines:!0,showPearsons:!0, backgroundColor:"rgba( 153, 21, 21, 0.3)",transparency:70}}),void 0===TradingView.defaultProperties["study_RegressionTrend@tv-basicstudies"]&&(TradingView.defaultProperties["study_RegressionTrend@tv-basicstudies"]={linewidth:1,linestyle:CanvasEx.LINESTYLE_SOLID,styles:{upLine:{visible:!0,color:"rgba( 0, 0, 255, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},downLine:{visible:!0,color:"rgba( 0, 0, 255, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},baseLine:{visible:!0,color:"rgba( 255, 0, 0, 0.3)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1},extendLines:!1,showPearsons:!0,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"]&&(a="study_Overlay@tv-basicstudies",TradingView.defaultProperties[a]={style:c.STYLE_BARS,showPriceLine:!1,minTick:"default",candleStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 34, 84, 55, 1)",borderDownColor:"rgba( 91, 26, 19, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 115, 115, 117, 1)",wickDownColor:"rgba( 115, 115, 117, 1)",barColorsOnPrevClose:!1},hollowCandleStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",drawWick:!0,drawBorder:!0,borderColor:"rgba( 55, 134, 88, 1)",borderUpColor:"rgba( 34, 84, 55, 1)",borderDownColor:"rgba( 91, 26, 19, 1)",wickColor:"rgba( 115, 115, 117, 1)",wickUpColor:"rgba( 115, 115, 117, 1)",wickDownColor:"rgba( 115, 115, 117, 1)",barColorsOnPrevClose:!1},barStyle:{upColor:"rgba( 107, 165, 131, 1)",downColor:"rgba( 215, 84, 66, 1)",barColorsOnPrevClose:!1,dontDrawOpen:!1},lineStyle:{color:"rgba( 3, 3, 247, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,priceSource:"close",styleType:c.STYLE_LINE_TYPE_SIMPLE},areaStyle:{color1:"rgba( 96, 96, 144, 0.5)",color2:"rgba( 1, 246, 245, 0.5)",linecolor:"rgba( 0, 148, 255, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,priceSource:"close",transparency:50},baselineStyle:{baselineColor:"rgba( 117, 134, 150, 1)",topFillColor1:"rgba( 83, 185, 135, 0.1)",topFillColor2:"rgba( 83, 185, 135, 0.1)",bottomFillColor1:"rgba( 235, 77, 92, 0.1)",bottomFillColor2:"rgba( 235, 77, 92, 0.1)",topLineColor:"rgba( 83, 185, 135, 1)",bottomLineColor:"rgba( 235, 77, 92, 1)",topLineWidth:1,bottomLineWidth:1,priceSource:"close",transparency:50,baseLevelPercentage:50},styles:{open:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0},high:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0},low:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0},close:{visible:!0,color:"rgba( 255, 0, 0, 1)",linestyle:CanvasEx.LINESTYLE_SOLID,linewidth:1,plottype:p.Line,histogramBase:0}}}),l=t.split("."), -d=TradingView.defaultProperties,f=0;ft._major?1:this._minort._minor?1:0},t.prototype.isLess=function(t){return this.compareTo(t)<0},t.prototype.isLessOrEqual=function(t){return this.compareTo(t)<=0},t.prototype.isEqual=function(t){return 0===this.compareTo(t)},t.prototype.isGreater=function(t){return this.compareTo(t)>0},t.prototype.isGreaterOrEqual=function(t){return this.compareTo(t)>=0},t.parse=function(e){var i,n,r;if(e instanceof t)return new t(e.major(),e.minor());if("number"==typeof e)return o.assert(Math.floor(e)===e,"Version should not be a float number"),new t(e,0);if("string"==typeof e){if(i=e.split("."),1===i.length)return n=parseInt(i[0],10),o.assert(!isNaN(n),"Bad version string: "+e),new t(n,0);if(2===i.length)return n=parseInt(i[0],10),o.assert(!isNaN(n),"Bad version string: "+e),r=parseInt(i[1],10),o.assert(!isNaN(r),"Bad version string: "+e),new t(n,r);throw Error("Bad version string (one dot expected): "+e)}throw Error("Bad version: "+e)},t.ZERO=new t(0,0),t}(),e.Version=n},function(t,e,i){"use strict";function o(t){this._studyId=t,this._maxToVers=n.ZERO,this._maxFromVers=n.ZERO,this._migrs=[]}var n=i(300).Version,r=i(7).getLogger("Chart.StudyMigration");o.prototype.addMigration=function(t,e,i){var o=n.parse(t),r=n.parse(e);o.isGreater(this._maxFromVers)&&(this._maxFromVers=o),r.isGreater(this._maxToVers)&&(this._maxToVers=r),this._migrs.push({fromVers:o,toVers:r,rules:i})},o.prototype.updateInputs=function(t,e,i){var o,n,s;if(!i)return i;for(o=TradingView.clone(i),n=t;n.isLess(e)&&null!=(s=this._findMigration(n));){ +d=TradingView.defaultProperties,f=0;ft._major?1:this._minort._minor?1:0},t.prototype.isLess=function(t){return this.compareTo(t)<0},t.prototype.isLessOrEqual=function(t){return this.compareTo(t)<=0},t.prototype.isEqual=function(t){return 0===this.compareTo(t)},t.prototype.isGreater=function(t){return this.compareTo(t)>0},t.prototype.isGreaterOrEqual=function(t){return this.compareTo(t)>=0},t.parse=function(e){var i,n,r;if(e instanceof t)return new t(e.major(),e.minor());if("number"==typeof e)return o.assert(Math.floor(e)===e,"Version should not be a float number"),new t(e,0);if("string"==typeof e){if(i=e.split("."),1===i.length)return n=parseInt(i[0],10),o.assert(!isNaN(n),"Bad version string: "+e),new t(n,0);if(2===i.length)return n=parseInt(i[0],10),o.assert(!isNaN(n),"Bad version string: "+e),r=parseInt(i[1],10),o.assert(!isNaN(r),"Bad version string: "+e),new t(n,r);throw Error("Bad version string (one dot expected): "+e)}throw Error("Bad version: "+e)},t.ZERO=new t(0,0),t}(),e.Version=n},function(t,e,i){"use strict";function o(t){this._studyId=t,this._maxToVers=n.ZERO,this._maxFromVers=n.ZERO,this._migrs=[]}var n=i(301).Version,r=i(7).getLogger("Chart.StudyMigration");o.prototype.addMigration=function(t,e,i){var o=n.parse(t),r=n.parse(e);o.isGreater(this._maxFromVers)&&(this._maxFromVers=o),r.isGreater(this._maxToVers)&&(this._maxToVers=r),this._migrs.push({fromVers:o,toVers:r,rules:i})},o.prototype.updateInputs=function(t,e,i){var o,n,s;if(!i)return i;for(o=TradingView.clone(i),n=t;n.isLess(e)&&null!=(s=this._findMigration(n));){ if(r.logNormal("Migrating study inputs from "+s.fromVers+" to "+s.toVers+" version, studyId: "+this._studyId+", migration: "+JSON.stringify(s)+", inputs: "+JSON.stringify(i)),o=this._applyMigration(o,s),!n.isLess(s.toVers))throw Error("Problems in study migration process... Possible infinite cycle has been detected and stopped.");n=s.toVers}return n>t&&r.logNormal("Study inputs migration is done, studyId: "+this._studyId+", inputs: "+JSON.stringify(o)),o},o.prototype._findMigration=function(t){var e,i,o=-1,n=this._maxFromVers;for(e=0;e=0||e.indexOf(t)>=0},o._applyInputChangedMinMaxRule=function(t,e){if("adjustValIfNeeded"!==e.action)throw Error("Unknown action "+e.action+" for rule with type "+e.type);var i=t[e.inputId];return ie.maxVal&&(t[e.inputId]=e.maxVal),r.logNormal("Input "+e.inputId+"="+i+" adjusted to value "+t[e.inputId]),t},o._applyInputChangedOptionsRule=function(t,e){if(!(["text"].indexOf(e.inputType)>=0&&"resetToDefValIfNeeded"===e.action))throw Error("Unexpected rule.inputType="+e.inputType+" in rule.action="+e.action);var i=t[e.inputId];return e.options.indexOf(i)<0&&(t[e.inputId]=e.defVal,r.logNormal("Input "+e.inputId+"="+i+" reset to default value "+e.defVal)),t},t.exports=o},function(t,e){ t.exports=''},function(t,e){t.exports=''},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.reduce(function(t,e,i){return~t.indexOf(e)||t.push(e),t},[])},t.exports=e.default},function(t,e){t.exports=''},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),o=i(24),n=i(5),r=i(17),s=!n.enabled("hide_left_toolbar_by_default"),a=o.getBool("ChartDrawingToolbarWidget.visible",s),e.isDrawingToolbarVisible=new r(a)},function(t,e,i){"use strict";function o(t){var e=t.action,i=t.isActive,o=t.isBgFull,a=t.isHidden,l=t.isTransparent,c=t.toolName;return n.createElement(s.ToolButton,{icon:r.lineToolsInfo[c].icon,isActive:i,isBgFull:o,isHidden:a,isTransparent:l,onClick:e,title:r.lineToolsInfo[c].localizedName})}var n,r,s;Object.defineProperty(e,"__esModule",{value:!0}),n=i(2),r=i(66),s=i(151),e.ToolButtonAction=o},function(t,e,i){"use strict";function o(){var t,e,i=[];for(i=i.concat([61536,61537,61538,61539]),i=i.concat([61725,61726]),i=i.concat([61575,61576,61796,61797]),i=i.concat([61779,61780,61781,61782,61783,61784,61785,61786]),t=i.slice(0),e=61440;e<=61846;e++)-1===i.indexOf(e)&&(e%16==15&&61487!==e||e>=61620&&e<=61630||61718!==e&&61719!==e&&61472!==e&&61619!==e&&t.push(e));return t}Object.defineProperty(e,"__esModule",{value:!0}), -e.availableIcons=o()},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(10),n=i(24),function(t){function e(e){return t.favorites.indexOf(e)}function i(){t.favorites=[],n.getJSON("chart.favoriteDrawings",[]).forEach(function(e){t.favorites.push(e.tool||e)}),t.favoritesSynced.fire()}function r(){n.setJSON("chart.favoriteDrawings",t.favorites)}t.favorites=[],t.favoritesSynced=new o,t.favoriteIndex=e,t.saveFavorites=r,i(),n.onSync.subscribe(null,i)}(r||(r={})),function(t){function e(){return r.favorites.slice()}function i(){return r.favorites.length}function n(t){return t<0||t>=i()?"":r.favorites[t]}function s(e){return!l(e)&&(r.favorites.push(e),r.saveFavorites(),t.favoriteAdded.fire(e),!0)}function a(e){var i=r.favoriteIndex(e);return-1!==i&&(r.favorites.splice(i,1),r.saveFavorites(),t.favoriteRemoved.fire(e),!0)}function l(t){return-1!==r.favoriteIndex(t)}function c(e,o){if(o<0||o>=i())return!1;var n=r.favoriteIndex(e);return-1!==n&&o!==n&&(r.favorites.splice(n,1),r.favorites.splice(o,0,e),r.saveFavorites(),t.favoriteMoved.fire(e,n,o),!0)}t.favoriteAdded=new o,t.favoriteRemoved=new o,t.favoriteMoved=new o,t.favoritesSynced=r.favoritesSynced,t.favorites=e,t.favoritesCount=i,t.favorite=n,t.addFavorite=s,t.removeFavorite=a,t.isFavorite=l,t.moveFavorite=c}(e.LinetoolsFavoritesStore||(e.LinetoolsFavoritesStore={}))},function(t,e,i){"use strict";function o(t,e){var i=L.colorsPalette[t];if(!i)throw Error("No such color "+t);return i}function n(t){return!t.isPrivate}function r(){return e.themes[e.watchedTheme.value()]||e.themes[e.DEFAULT_THEME]}function s(t){return r().getThemedColor(t)}function a(t){e.watchedTheme.setValue(t)}function l(){a(T.getValue(I)||e.DEFAULT_THEME)}function c(){return T.getValue(I)||null}function h(){T.setValue(I,r().name,{forceFlush:!0})}function u(t){return C.loadTheme(t)}function d(){return C.loadThemes()}function p(){return x.getStdThemeNames()}function _(t){return x.getStdChartTheme(t).then(function(t){return t||{content:void 0}})}function f(){return x.getStdThemes()}function m(t,e){return C.saveTheme(t,e)}function g(t){return C.removeTheme(t)}function v(t){return C.isThemeExist(t)}function y(t){return x.translateThemeName(t)}function b(t){return x.isStdTheme(t)}function S(t){return{content:{chartProperties:{paneProperties:t.m_model.properties().paneProperties.state(),scalesProperties:t.m_model.properties().scalesProperties.state()},mainSourceProperties:t.m_model.m_mainSeries.properties().state()}}}var w,T,C,x,P,L,I,k;Object.defineProperty(e,"__esModule",{value:!0}),i(737),i(12),w=i(17),T=i(24),C=i(738),x=i(740),P=i(741),L=i(742),e.themes=(k={},k[x.StdTheme.Light]={name:x.StdTheme.Light,label:window.t("Light",{context:"colorThemeName"}),className:"theme-light",order:2,getThemedColor:function(t){return o(t)}},k[x.StdTheme.Dark]={name:x.StdTheme.Dark,label:window.t("Dark",{context:"colorThemeName"}),className:"theme-dark",order:1,getThemedColor:function(t){return o(P[t])}},k),e.DEFAULT_THEME="light",e.watchedTheme=new w,e.watchedTheme.subscribe(function(t){ +e.availableIcons=o()},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(10),n=i(24),function(t){function e(e){return t.favorites.indexOf(e)}function i(){t.favorites=[],n.getJSON("chart.favoriteDrawings",[]).forEach(function(e){t.favorites.push(e.tool||e)}),t.favoritesSynced.fire()}function r(){n.setJSON("chart.favoriteDrawings",t.favorites)}t.favorites=[],t.favoritesSynced=new o,t.favoriteIndex=e,t.saveFavorites=r,i(),n.onSync.subscribe(null,i)}(r||(r={})),function(t){function e(){return r.favorites.slice()}function i(){return r.favorites.length}function n(t){return t<0||t>=i()?"":r.favorites[t]}function s(e){return!l(e)&&(r.favorites.push(e),r.saveFavorites(),t.favoriteAdded.fire(e),!0)}function a(e){var i=r.favoriteIndex(e);return-1!==i&&(r.favorites.splice(i,1),r.saveFavorites(),t.favoriteRemoved.fire(e),!0)}function l(t){return-1!==r.favoriteIndex(t)}function c(e,o){if(o<0||o>=i())return!1;var n=r.favoriteIndex(e);return-1!==n&&o!==n&&(r.favorites.splice(n,1),r.favorites.splice(o,0,e),r.saveFavorites(),t.favoriteMoved.fire(e,n,o),!0)}t.favoriteAdded=new o,t.favoriteRemoved=new o,t.favoriteMoved=new o,t.favoritesSynced=r.favoritesSynced,t.favorites=e,t.favoritesCount=i,t.favorite=n,t.addFavorite=s,t.removeFavorite=a,t.isFavorite=l,t.moveFavorite=c}(e.LinetoolsFavoritesStore||(e.LinetoolsFavoritesStore={}))},function(t,e,i){"use strict";function o(t,e){var i=L.colorsPalette[t];if(!i)throw Error("No such color "+t);return i}function n(t){return!t.isPrivate}function r(){return e.themes[e.watchedTheme.value()]||e.themes[e.DEFAULT_THEME]}function s(t){return r().getThemedColor(t)}function a(t){e.watchedTheme.setValue(t)}function l(){a(T.getValue(I)||e.DEFAULT_THEME)}function c(){return T.getValue(I)||null}function h(){T.setValue(I,r().name,{forceFlush:!0})}function u(t){return C.loadTheme(t)}function d(){return C.loadThemes()}function p(){return x.getStdThemeNames()}function _(t){return x.getStdChartTheme(t).then(function(t){return t||{content:void 0}})}function f(){return x.getStdThemes()}function m(t,e){return C.saveTheme(t,e)}function g(t){return C.removeTheme(t)}function v(t){return C.isThemeExist(t)}function y(t){return x.translateThemeName(t)}function b(t){return x.isStdTheme(t)}function S(t){return{content:{chartProperties:{paneProperties:t.m_model.properties().paneProperties.state(),scalesProperties:t.m_model.properties().scalesProperties.state()},mainSourceProperties:t.m_model.m_mainSeries.properties().state()}}}var w,T,C,x,P,L,I,k;Object.defineProperty(e,"__esModule",{value:!0}),i(738),i(12),w=i(17),T=i(24),C=i(739),x=i(741),P=i(742),L=i(743),e.themes=(k={},k[x.StdTheme.Light]={name:x.StdTheme.Light,label:window.t("Light",{context:"colorThemeName"}),className:"theme-light",order:2,getThemedColor:function(t){return o(t)}},k[x.StdTheme.Dark]={name:x.StdTheme.Dark,label:window.t("Dark",{context:"colorThemeName"}),className:"theme-dark",order:1,getThemedColor:function(t){return o(P[t])}},k),e.DEFAULT_THEME="light",e.watchedTheme=new w,e.watchedTheme.subscribe(function(t){ var i=document.getElementsByTagName("html")[0];Object.keys(e.themes).forEach(function(t){i.classList.remove(e.themes[t].className)}),i.classList.add(e.themes[t].className)}),e.isPublicTheme=n,e.getCurrentTheme=r,e.setThemedColor=s,e.setTheme=a,I="current_theme.name",e.restoreTheme=l,e.savedThemeName=c,e.syncTheme=h,e.getTheme=u,e.getThemeNames=d,e.getStdThemeNames=p,e.getStdTheme=_,e.getStdThemes=f,e.saveTheme=m,e.removeTheme=g,e.isThemeExist=v,e.translateStdThemeName=y,e.isStdTheme=b,e.extractThemeFromModel=S},function(t,e,i){"use strict";var o=i(23),n=i(15).parseJSONorNot,r=i(7).getLogger("Chart.SaveloadAdapter.Library"),s=function(){var t,e,i,s,a={},l=null;return a.setCustomAdapter=function(t){l=t,r.logNormal("Use custom save-load adapter")},a.initialize=function(o,n,r,a){t=o,e=n,i=r,s=a},a.updateUser=function(t){e=t},a.getCharts=function(o,a){function c(t){t=t.map(function(t){return{id:t.id,name:t.name,image_url:t.id,modified_iso:t.timestamp,short_symbol:t.symbol,interval:t.resolution}}),o(t)}return l?void l.getAllCharts().then(c).catch(a):$.ajax({url:"{0}/{1}/charts?client={2}&user={3}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e)),type:"GET",crossDomain:!0}).done(function(t){var e=n(t);if("ok"!==e.status)return r.logWarn("Charts list request failed: "+e.message),void a();c(e.data)}).fail(a)},a.removeChart=function(o,a){if(l)return void l.removeChart(o).then(a);$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e),encodeURIComponent(o)),type:"DELETE",crossDomain:!0}).done(function(t){var e=n(t);"ok"!==e.status&&r.logWarn("Chart delete request failed: "+e.message),a()})},a.saveChart=function(o,a,c,h,u,d,p){var _,f=u.id.value(),m={name:o,content:JSON.stringify(h),symbol:a,resolution:c};if(l)return m.id=f,void l.saveChart(m).then(d).catch(p);_="{0}/{1}/charts?client={2}&user={3}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e)),void 0!==f&&(_+="&chart="+encodeURIComponent(f)),$.ajax({url:_,data:m,type:"POST",crossDomain:!0}).done(function(t){var e=n(t);if("ok"!==e.status)return r.logWarn("Chart save request failed: "+e.message),void p();d(e.id)}).fail(function(){p()})},a.getChartContent=function(o,a,c){function h(t){var e=JSON.parse(t);return e.uid=o.id,e}if(l)return void l.getChartContent(o.id).then(function(t){var e=h(t);a(e)}).catch(c);$.ajax({url:"{0}/{1}/charts?client={2}&user={3}&chart={4}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e),encodeURIComponent(o.id)),type:"GET",crossDomain:!0}).done(function(t){var e,i=n(t);if("ok"!==i.status)return void r.logWarn("Chart load request failed: "+i.message);e=h(i.data.content),a(e)}).fail(function(){c&&c()})},a.loadChart=function(t){a.getChartContent(t,function(t){o.emit("chart_load_requested",t)},function(){r.logWarn("Error loading chart")})},a.removeStudyTemplate=function(o,a){if(l)return void l.removeStudyTemplate({name:o}).then(a);$.ajax({ url:"{0}/{1}/study_templates?client={2}&user={3}&template={4}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e),encodeURIComponent(o)),type:"DELETE",crossDomain:!0}).done(function(t){var e=n(t);"ok"!==e.status&&r.logWarn("Chart delete request failed: "+e.message),a()})},a.getStudyTemplateContent=function(o,r){if(l)return void l.getStudyTemplateContent({name:o}).then(function(t){r({content:t})});$.ajax({url:"{0}/{1}/study_templates?client={2}&user={3}&template={4}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e),encodeURIComponent(o)),type:"GET",crossDomain:!0}).done(function(t){r(n(t).data)})},a.saveStudyTemplate=function(o,a){var c={name:o.name,content:o.content};if(l)return void l.saveStudyTemplate(c).then(a.bind(null,{error:""})).catch(function(t){a({error:null!=t?""+t:"error"})});$.ajax({url:"{0}/{1}/study_templates?client={2}&user={3}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e)),type:"POST",crossDomain:!0,data:c}).done(function(t){var e=n(t);"ok"!==e.status&&r.logWarn("Template save request failed: "+e.message),a({error:"ok"===e.status?"":e.status})})},a._templatesCache=null,a.getStudyTemplatesList=function(o){function c(t){t=t.map(function(t){return{is_default:!1,name:t.name}}),a._templatesCache=t,o(t)}return a._templatesCache?void o(a._templatesCache):(a._templatesCache=[],l?void l.getAllStudyTemplates().then(c):void $.ajax({url:"{0}/{1}/study_templates?client={2}&user={3}".format(i,encodeURIComponent(s),encodeURIComponent(t),encodeURIComponent(e)),type:"GET",crossDomain:!0}).done(function(t){if(null!==a._templatesCache){var e=n(t);if("ok"!==e.status)return void r.logWarn("Templates list request failed: "+e.message);c(e.data)}}))},a.invalidateStudyTemplatesList=function(){a._templatesCache=null},a}();t.exports=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={SELECT:"select"};e.events=o},function(t,e,i){"use strict";function o(t){return t.replace(r,s)}function n(t){return void 0===t&&(t=""),t.replace(/(<([^>]+)>)/gi,"")}var r,s;Object.defineProperty(e,"__esModule",{value:!0}),r=/[<"'&>]/g,s=function(t){return"&#"+t.charCodeAt(0)+";"},e.htmlEscape=o,e.removeTags=n},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n;Object.defineProperty(e,"__esModule",{value:!0}),n=function(){function t(t,e){var i,o;for(i=0;i0&&void 0!==arguments[0]?arguments[0]:"keydown";o(this,t),this._event=e}return n(t,[{key:"regHandlers",value:function(t){this._handlers=t}},{key:"watchOn",value:function(t){this._listener=this._regListener(),this._watchingEl=t,t.addEventListener(this._event,this._listener)}},{key:"stopWatching",value:function(){ -this._watchingEl.removeEventListener(this._event,this._listener)}},{key:"_regListener",value:function(){var t=this;return function(e){var i=e.which,o=t._getHandler(i);e.stopPropagation(),o(e)}}},{key:"_getHandler",value:function(t){var e=this._handlers[t],i=function(){},o=function(t){t.preventDefault(),e(t)};return e?o:i}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={SELECT:"select",SELECT_CUSTOM:"selectCustom",AFTER_CLOSE_MENU:"afterCloseMenu",BEFORE_OPEN_MENU:"beforeOpenMenu"};e.events=o},function(t,e,i){"use strict";function o(t,e,i){e.toggleClass("i-hidden",""===t.val()),i.fire(t.val())}function n(t){var e,i,n,s=$(l);return t.addClass&&s.addClass(t.addClass),t.withoutControls&&s.addClass("tv-search-row--without-controls"),e=s.find(".js-input-control"),i=s.find(".js-reset-button"),t.placeholder&&e.attr("placeholder",t.placeholder),i[0].addEventListener("click",function(){e.val("").trigger("input").focus()}),n=new r,e.on("input propertychange",o.bind(null,e,i,n)),o(e,i,n),{$control:s,$input:e,inputChangedDelegate:n}}var r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),r=i(10),s=i(383),a=i(762),i(763),l='
'+s+''+a+"
",e.createSearchControl=n},function(t,e,i){"use strict";function o(t){this._options=t||{},this._setInput(),this._caption=$('').html(" "),this._helpTooltipTrigger=$('').text("?").attr("title",$.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)")),this._dialogTitle=$.t("Change Interval")}var n=i(76),r=i(71);o.prototype._setInput=function(){this._input=$(''),this._input.on("keypress",this._handleInput.bind(this)).on("input",function(){this._validate(),this._updateCaption()}.bind(this)).on("blur",function(){setTimeout(this._submit.bind(this),0)}.bind(this))},o.prototype._validate=function(){var t=this._input.val();this._parsed=r.parseIntervalValue(t),this._valid=!this._parsed.error,this._supported=!this._parsed.error&&r.intervalIsSupported(t),!this._supported||this._parsed.unit&&"H"!==this._parsed.unit||this._parsed.qty*("H"===this._parsed.unit?60:1)>1440&&(this._supported=!1)},o.prototype._updateCaption=function(){var t,e,i;this._valid&&this._supported?(e=this._parsed.qty||1,i=this._parsed.unit?{H:"hour",D:"day",W:"week",M:"month",S:"second"}[this._parsed.unit]:"minute",t=e+" "+$.t(i,{count:e}),this._input.add(this._caption).removeClass("error")):(t=this._parsed.error?" ":$.t("Not applicable"),this._input.add(this._caption).addClass("error")),this._caption.html(t)}, -o.prototype._handleInput=function(t){if(13===t.which)return void this._submit();t.ctrlKey||t.metaKey||!t.charCode||!t.which||t.which<=32||r.isIntervalChar(String.fromCharCode(t.charCode))||t.preventDefault()},o.prototype._submit=function(){var t,e;TVDialogs.isOpen(this._dialogTitle)&&(this._valid&&this._supported&&(t=r.sanitizeIntervalValue(this._input.val()),e=n.interval.value(),t&&e!==t&&"function"==typeof this._options.callback&&this._options.callback(t)),TVDialogs.destroy(this._dialogTitle))},o.prototype._setInitialValue=function(t){var e,i;t=t||this._options.initialValue,e="",i=!1,t&&","!==t?e=r.sanitizeIntervalValue(t)||"":(t=n.interval.value(),e=t,i=!0),this._input.val(e),i&&this._input.select()},o.prototype.isValid=function(){return!!this._valid},o.prototype.show=function(t){var e=TVDialogs.createDialog(this._dialogTitle,{hideCloseCross:!0,addClass:"change-interval-dialog"}),i=e.find("._tv-dialog-content");return e.css("min-width",0),i.css("min-width",0).mousedown(function(t){this._input.is(t.target)||t.preventDefault()}.bind(this)).append(this._input.add(this._caption).add(this._helpTooltipTrigger)),TVDialogs.applyHandlers(e),TVDialogs.positionDialog(e),this._setInitialValue(t),this._validate(),this._updateCaption(),e},t.exports=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.AddSymbolCheckbox=void 0,a=i(204),l=o(a),e.AddSymbolCheckbox=function(t){function e(t){n(this,e),t.checked=TVSettings.getBool("showAddSymbolDialog.checkboxState",!0);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.$checkbox.change(function(){setTimeout(function(){TVSettings.setValue("showAddSymbolDialog.checkboxState",i.checked)})}),i}return s(e,t),e}(l.default)},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){var i,o,n,r,c,p,_,f,m,g,v,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(y=$.extend({},{title:$.t("Confirm Inputs"),callback:function(t){}},y),i=null,o=(0,s.createDialog)({title:y.title,contentWrapTemplate:'
',width:u,closeOnClickAtOtherDialogs:!0,destroyOnClose:!0,actionsWrapTemplate:'
',isClickOutFn:function(t){var e=i.symbolSearchPopup() -;if(e)return e[0]!==t.target&&!e[0].contains(t.target)&&void 0},actions:[{name:"apply",type:"primary",text:$.t("Apply"),key:13}]}),d=o,n=(0,l.merge)({},e.defaults.inputs),r=0;ru&&o.$el.css("max-width",v),f.find("input,select").first().focus()}function r(){return d}var s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),e.show=n,e.instance=r,s=i(65),a=i(246),l=i(15),c=i(25),h=o(c),i(241),u=450,d=null},function(t,e,i){function o(t,e,i,o,r,s){if(!t)return void n.logDebug("Missing control");this._control=t,this._property=e,this._applyOnFly=i,this._undoModel=o,this._undoText=r,e&&(this._formatters=[],this._changed=!1,this.setValue(e.value()),e.listeners().subscribe(this,this.propertyChanged))}var n=i(7).getLogger("Chart.PropertyPage.Binding");o.prototype.addFormatter=function(t){this._formatters.push(t),this.setValue(this._property.value())},o.prototype._formatValue=function(t){return this._formatters.reduce(function(t,e){return e(t)},t)},o.prototype._setValueToProperty=function(t){this._setter?this._setter.call(this,t):this.setValueToProperty(t)},o.prototype._attachToControl=function(t,e){var i=this;e?t.on("keyup change input",function(t){var e=i.value();i._setValueToProperty(e),i.setValue(e)}):(t.keypress(function(t){if(this._changed=!0,13===t.which){var e=i.value();i._setValueToProperty(e),i.setValue(e)}}),t.focusout(function(t){var e=i.value();i.changed()&&(i._setValueToProperty(e),i.setValue(e))}),t.change(function(t){var e=i.value();$(t.target).is(".ticker")?(void 0!==i._changeTimerId&&clearTimeout(i._changeTimerId),i._changeTimerId=setTimeout(function(){i._setValueToProperty(e)},250)):i._setValueToProperty(e),i.setValue(e)}))},o.prototype.control=function(){return this._control},o.prototype.changed=function(){return this._changed},o.prototype.setValueToProperty=function(t){this._undoModel.setProperty(this._property,t,this._undoText),this._changed=!1},o.prototype.property=function(){return this._property},o.prototype.propertyChanged=function(t){this.setValue(t.value())},o.prototype.destroy=function(){this._property&&this._property.listeners().unsubscribe(this,this.propertyChanged)},e.Binding=o},function(t,e,i){"use strict";function o(t,e){var i;return function(){clearTimeout(i),i=setTimeout(t.bind.apply(t,[this].concat(Array.prototype.slice.call(arguments))),e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,t.exports=e.default -},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),i(13),i(12),o=i(17),n=i(215),r=i(776),s=i(777),a=function(){function t(t){this._window=t,this._fullscreenApi=new r.FullscreenApi(t.document),this._initFullscreen()}return t.prototype.allocate=function(){var t,e,i,r=this;return this.free(),t=this._window.document,e=$("
",t).addClass("js-rootresizer__contents").css({position:"relative",width:"100%",height:"100%"}).prependTo(t.body),this._visibilityApi=new s.VisibilityApi(this._window.document),i={alive:new o(!0),body:new o(e),width:new o,height:new o,availWidth:new o,availHeight:new o,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:function(){i.alive.setValue(!1)},attach:function(){i.alive.setValue(!1),r._window.close()},requestFullscreen:function(){r._requestFullscreen()},exitFullscreen:function(){r._exitFullscreen()}},i.alive.subscribe(function(t){t||i!==r._area||r.free()}),this._area=i,this._resizeHandler=function(){var t=i.body.value()[0],e=t.clientWidth,o=t.clientHeight;i.availHeight.setValue(o),i.availWidth.setValue(e),i.height.setValue(o),i.width.setValue(e)},this._resizeHandler(),$(this._window).on("resize",this._resizeHandler),new n.ResizerDetacherState(i).bridge()},t.prototype.free=function(){if(this._resizeHandler&&($(this._window).off("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){var t=this._area;this._area=void 0,t.alive.setValue(!1),t.body.value().remove()}},t.prototype._requestFullscreen=function(){this._fullscreenApi.enter()},t.prototype._exitFullscreen=function(){this._fullscreenApi.exit()},t.prototype._initFullscreen=function(){var t=this,e=this._window.document;this._fullscreenApi.isFullscreen.subscribe(function(i){i?(t._$exitFullscreenButton=$("
",e).addClass("tv-exit-fullscreen-button").text($.t("Exit Full Screen (ESC)")).on("click",function(e){e.preventDefault(),t._exitFullscreen()}).appendTo(e.body),t._onExitFullscreenEsc=function(e){27===e.keyCode&&(e.preventDefault(),t._exitFullscreen())},$(e).on("keyup",t._onExitFullscreenEsc)):(t._$exitFullscreenButton&&(t._$exitFullscreenButton.remove(),t._$exitFullscreenButton=void 0),t._onExitFullscreenEsc&&($(e).off("keyup",t._onExitFullscreenEsc),t._onExitFullscreenEsc=void 0)),t._resizeHandler&&t._resizeHandler()})},t}(),e.Root=a},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(72),r=function(t){function e(e){var i=t.call(this,e,!1)||this;return i._subcommands=[],i}return o.__extends(e,t),e.prototype.addCommand=function(t){this._subcommands.push(t)},e.prototype.isEmpty=function(){return 0===this._subcommands.length},e.prototype.redo=function(){for(var t=0;t=0;t--)this._subcommands[t].undo()},e}(n.UndoCommand),e.UndoMacroCommand=r},function(t,e,i){"use strict";var o,n,r +this._watchingEl.removeEventListener(this._event,this._listener)}},{key:"_regListener",value:function(){var t=this;return function(e){var i=e.which,o=t._getHandler(i);e.stopPropagation(),o(e)}}},{key:"_getHandler",value:function(t){var e=this._handlers[t],i=function(){},o=function(t){t.preventDefault(),e(t)};return e?o:i}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={SELECT:"select",SELECT_CUSTOM:"selectCustom",AFTER_CLOSE_MENU:"afterCloseMenu",BEFORE_OPEN_MENU:"beforeOpenMenu"};e.events=o},function(t,e,i){"use strict";function o(t,e,i){e.toggleClass("i-hidden",""===t.val()),i.fire(t.val())}function n(t){var e,i,n,s=$(l);return t.addClass&&s.addClass(t.addClass),t.withoutControls&&s.addClass("tv-search-row--without-controls"),e=s.find(".js-input-control"),i=s.find(".js-reset-button"),t.placeholder&&e.attr("placeholder",t.placeholder),i[0].addEventListener("click",function(){e.val("").trigger("input").focus()}),n=new r,e.on("input propertychange",o.bind(null,e,i,n)),o(e,i,n),{$control:s,$input:e,inputChangedDelegate:n}}var r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),r=i(10),s=i(384),a=i(763),i(764),l='
'+s+''+a+"
",e.createSearchControl=n},function(t,e,i){"use strict";function o(t){this._options=t||{},this._setInput(),this._caption=$('').html(" "),this._helpTooltipTrigger=$('').text("?").attr("title",$.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)")),this._dialogTitle=$.t("Change Interval")}var n=i(76),r=i(71);o.prototype._setInput=function(){this._input=$(''),this._input.on("keypress",this._handleInput.bind(this)).on("input",function(){this._validate(),this._updateCaption()}.bind(this)).on("blur",function(){setTimeout(this._submit.bind(this),0)}.bind(this))},o.prototype._validate=function(){var t=this._input.val();this._parsed=r.parseIntervalValue(t),this._valid=!this._parsed.error,this._supported=!this._parsed.error&&r.intervalIsSupported(t),!this._supported||this._parsed.unit&&"H"!==this._parsed.unit||this._parsed.qty*("H"===this._parsed.unit?60:1)>1440&&(this._supported=!1)},o.prototype._updateCaption=function(){var t,e,i;this._valid&&this._supported?(e=this._parsed.qty||1,i=this._parsed.unit?{H:"hour",D:"day",W:"week",M:"month",S:"second"}[this._parsed.unit]:"minute",t=e+" "+$.t(i,{count:e}),this._input.add(this._caption).removeClass("error")):(t=this._parsed.error?" ":$.t("Not applicable"),this._input.add(this._caption).addClass("error")),this._caption.html(t)}, +o.prototype._handleInput=function(t){if(13===t.which)return void this._submit();t.ctrlKey||t.metaKey||!t.charCode||!t.which||t.which<=32||r.isIntervalChar(String.fromCharCode(t.charCode))||t.preventDefault()},o.prototype._submit=function(){var t,e;TVDialogs.isOpen(this._dialogTitle)&&(this._valid&&this._supported&&(t=r.sanitizeIntervalValue(this._input.val()),e=n.interval.value(),t&&e!==t&&"function"==typeof this._options.callback&&this._options.callback(t)),TVDialogs.destroy(this._dialogTitle))},o.prototype._setInitialValue=function(t){var e,i;t=t||this._options.initialValue,e="",i=!1,t&&","!==t?e=r.sanitizeIntervalValue(t)||"":(t=n.interval.value(),e=t,i=!0),this._input.val(e),i&&this._input.select()},o.prototype.isValid=function(){return!!this._valid},o.prototype.show=function(t){var e=TVDialogs.createDialog(this._dialogTitle,{hideCloseCross:!0,addClass:"change-interval-dialog"}),i=e.find("._tv-dialog-content");return e.css("min-width",0),i.css("min-width",0).mousedown(function(t){this._input.is(t.target)||t.preventDefault()}.bind(this)).append(this._input.add(this._caption).add(this._helpTooltipTrigger)),TVDialogs.applyHandlers(e),TVDialogs.positionDialog(e),this._setInitialValue(t),this._validate(),this._updateCaption(),e},t.exports=o},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.AddSymbolCheckbox=void 0,a=i(205),l=o(a),e.AddSymbolCheckbox=function(t){function e(t){n(this,e),t.checked=TVSettings.getBool("showAddSymbolDialog.checkboxState",!0);var i=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.$checkbox.change(function(){setTimeout(function(){TVSettings.setValue("showAddSymbolDialog.checkboxState",i.checked)})}),i}return s(e,t),e}(l.default)},function(t,e,i){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){var i,o,n,r,c,p,_,f,m,g,v,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(y=$.extend({},{title:$.t("Confirm Inputs"),callback:function(t){}},y),i=null,o=(0,s.createDialog)({title:y.title,contentWrapTemplate:'
',width:u,closeOnClickAtOtherDialogs:!0,destroyOnClose:!0,actionsWrapTemplate:'
',isClickOutFn:function(t){var e=i.symbolSearchPopup() +;if(e)return e[0]!==t.target&&!e[0].contains(t.target)&&void 0},actions:[{name:"apply",type:"primary",text:$.t("Apply"),key:13}]}),d=o,n=(0,l.merge)({},e.defaults.inputs),r=0;ru&&o.$el.css("max-width",v),f.find("input,select").first().focus()}function r(){return d}var s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),e.show=n,e.instance=r,s=i(65),a=i(247),l=i(15),c=i(25),h=o(c),i(242),u=450,d=null},function(t,e,i){function o(t,e,i,o,r,s){if(!t)return void n.logDebug("Missing control");this._control=t,this._property=e,this._applyOnFly=i,this._undoModel=o,this._undoText=r,e&&(this._formatters=[],this._changed=!1,this.setValue(e.value()),e.listeners().subscribe(this,this.propertyChanged))}var n=i(7).getLogger("Chart.PropertyPage.Binding");o.prototype.addFormatter=function(t){this._formatters.push(t),this.setValue(this._property.value())},o.prototype._formatValue=function(t){return this._formatters.reduce(function(t,e){return e(t)},t)},o.prototype._setValueToProperty=function(t){this._setter?this._setter.call(this,t):this.setValueToProperty(t)},o.prototype._attachToControl=function(t,e){var i=this;e?t.on("keyup change input",function(t){var e=i.value();i._setValueToProperty(e),i.setValue(e)}):(t.keypress(function(t){if(this._changed=!0,13===t.which){var e=i.value();i._setValueToProperty(e),i.setValue(e)}}),t.focusout(function(t){var e=i.value();i.changed()&&(i._setValueToProperty(e),i.setValue(e))}),t.change(function(t){var e=i.value();$(t.target).is(".ticker")?(void 0!==i._changeTimerId&&clearTimeout(i._changeTimerId),i._changeTimerId=setTimeout(function(){i._setValueToProperty(e)},250)):i._setValueToProperty(e),i.setValue(e)}))},o.prototype.control=function(){return this._control},o.prototype.changed=function(){return this._changed},o.prototype.setValueToProperty=function(t){this._undoModel.setProperty(this._property,t,this._undoText),this._changed=!1},o.prototype.property=function(){return this._property},o.prototype.propertyChanged=function(t){this.setValue(t.value())},o.prototype.destroy=function(){this._property&&this._property.listeners().unsubscribe(this,this.propertyChanged)},e.Binding=o},function(t,e,i){"use strict";function o(t,e){var i;return function(){clearTimeout(i),i=setTimeout(t.bind.apply(t,[this].concat(Array.prototype.slice.call(arguments))),e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o,t.exports=e.default +},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),i(13),i(12),o=i(17),n=i(216),r=i(777),s=i(778),a=function(){function t(t){this._window=t,this._fullscreenApi=new r.FullscreenApi(t.document),this._initFullscreen()}return t.prototype.allocate=function(){var t,e,i,r=this;return this.free(),t=this._window.document,e=$("
",t).addClass("js-rootresizer__contents").css({position:"relative",width:"100%",height:"100%"}).prependTo(t.body),this._visibilityApi=new s.VisibilityApi(this._window.document),i={alive:new o(!0),body:new o(e),width:new o,height:new o,availWidth:new o,availHeight:new o,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:function(){i.alive.setValue(!1)},attach:function(){i.alive.setValue(!1),r._window.close()},requestFullscreen:function(){r._requestFullscreen()},exitFullscreen:function(){r._exitFullscreen()}},i.alive.subscribe(function(t){t||i!==r._area||r.free()}),this._area=i,this._resizeHandler=function(){var t=i.body.value()[0],e=t.clientWidth,o=t.clientHeight;i.availHeight.setValue(o),i.availWidth.setValue(e),i.height.setValue(o),i.width.setValue(e)},this._resizeHandler(),$(this._window).on("resize",this._resizeHandler),new n.ResizerDetacherState(i).bridge()},t.prototype.free=function(){if(this._resizeHandler&&($(this._window).off("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){var t=this._area;this._area=void 0,t.alive.setValue(!1),t.body.value().remove()}},t.prototype._requestFullscreen=function(){this._fullscreenApi.enter()},t.prototype._exitFullscreen=function(){this._fullscreenApi.exit()},t.prototype._initFullscreen=function(){var t=this,e=this._window.document;this._fullscreenApi.isFullscreen.subscribe(function(i){i?(t._$exitFullscreenButton=$("
",e).addClass("tv-exit-fullscreen-button").text($.t("Exit Full Screen (ESC)")).on("click",function(e){e.preventDefault(),t._exitFullscreen()}).appendTo(e.body),t._onExitFullscreenEsc=function(e){27===e.keyCode&&(e.preventDefault(),t._exitFullscreen())},$(e).on("keyup",t._onExitFullscreenEsc)):(t._$exitFullscreenButton&&(t._$exitFullscreenButton.remove(),t._$exitFullscreenButton=void 0),t._onExitFullscreenEsc&&($(e).off("keyup",t._onExitFullscreenEsc),t._onExitFullscreenEsc=void 0)),t._resizeHandler&&t._resizeHandler()})},t}(),e.Root=a},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(72),r=function(t){function e(e){var i=t.call(this,e,!1)||this;return i._subcommands=[],i}return o.__extends(e,t),e.prototype.addCommand=function(t){this._subcommands.push(t)},e.prototype.isEmpty=function(){return 0===this._subcommands.length},e.prototype.redo=function(){for(var t=0;t=0;t--)this._subcommands[t].undo()},e}(n.UndoCommand),e.UndoMacroCommand=r},function(t,e,i){"use strict";var o,n,r ;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(67),r=function(t){function e(e,i){var o=t.call(this)||this;return o._source=e,o._data=i,o}return o.__extends(e,t),e.prototype._updateRendererData=function(t){t.visible=!1;var e=this._source.lastValueData(this._data.plotIndex,!1);e.noData||(t.background=e.color,t.color=this.generateTextColor(e.color),t.coordinate=e.coordinate,t.floatCoordinate=e.floatCoordinate,t.text=e.text,t.visible=!0)},e}(n.PriceAxisView),e.StudyPriceAxisView=r},function(t,e,i){"use strict";function o(t){this.bars=t.bars,this.barSpacing=t.barSpacing,this.barWidth=n.optimalBarWidth(t.barSpacing),this.barLineWidth=Math.max(1,Math.round(this.barWidth)),this.dontDrawOpen=t.dontDrawOpen}var n=i(45),r=i(11);o.prototype.draw=function(t){var e,i,o;for(t.save(),t.translate(.5,.5),i=0;ia[a.length-1].time+l)return null;for(e=null,i=0;i=0&&!n(this.items[i].y);)i--;if(!(e>=i)){for(t.translate(.5,.5),o={},s=this.items,a=e;a<=i;a++)l=s[a],c=l.style?l.style.color:this.lineColor,a"),s=r.get(0).getContext("2d"),s.font=this._font,a=0,l=0;l").attr("width",this.textImageWidth).attr("height",this.textImageHeight),i=e.get(0).getContext("2d"),i.textBaseline="top",i.font=this._font,i.textAlign="center",i.fillStyle=t,o=Math.round(this.textImageWidth/2),n=0,r=0;r0,this._precision=t}return t.prototype.state=function(){return{precision:this._precision}},t.prototype.format=function(t){if(!n.isNumber(t))return e.PLACE_HOLDER;var i="";return t<0&&(i="-",t=-t),t>=1e100?window.t("N/A"):(!this._fractionalValues||t>=995?t=Math.round(t):this._fractionalValues&&(t=+t.toFixed(this._precision)),t<995?i+this._formatNumber(t):t<999995?i+this._formatNumber(t/1e3)+"K":t<999999995?(t=1e3*Math.round(t/1e3),i+this._formatNumber(t/1e6)+"M"):(t=1e6*Math.round(t/1e6),i+this._formatNumber(t/1e9)+"B"))},t.prototype.parse=function(t){var e,i,o;return"---"===t?{error:"not a number",res:!1,value:NaN}:(e={K:1e3,M:1e6,B:1e9},i=t.slice(-1),e.hasOwnProperty(i)?(o=this._numericFormatter.parse(t.slice(0,-1)),n.isNumber(o)?{res:!0,value:o*e[i]}:{error:"not a number",res:!1,value:NaN}):(o=this._numericFormatter.parse(t),n.isNumber(o)?{res:!0,value:o}:{error:"not a number",res:!1,value:NaN}))},t.serialize=function(t){return t.state()},t.deserialize=function(e){return new t(e.precision)},t.prototype._formatNumber=function(t){return this._fractionalValues&&(t=r.fixComputationError(t)), -this._numericFormatter.format(t).replace(/(\.[1-9]*)0+$/,function(t,e){return e})},t}(),e.VolumeFormatter=s},function(t,e,i){"use strict";function o(t){var e,i=n.get_timezone(t).offset_utc(Date.now()),o="",r=i/1e3/60/60;return r%1&&(o=":"+r%1*60),e="",e=r>0?"+"+(r-r%1)+o:0===r?"":r-r%1+o+"",{offset:i,string:"UTC"+e}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(50);e.parseTzOffset=o},function(t,e,i){"use strict";function o(){a.call(this)}function n(t,e){this._constructor="LineToolFibSpeedResistanceArcs";var n=e||this.createPropertiesObject("linetoolfibwedge");r.call(this,t,n),t._fibWedgeLabelsCache||(t._fibWedgeLabelsCache=new o),i.e(1).then(function(t){var e=i(1079).FibWedgePaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}var r=i(1).LineDataSource,s=i(21),a=i(88),l=i(3).propertyPages;inherit(o,a),o.prototype.levelsCount=function(){return n.LevelsCount},inherit(n,r),n.LevelsCount=11,n.prototype.getCache=function(){return this._model._fibWedgeLabelsCache||(this._model._fibWedgeLabelsCache=new o),this._model._fibWedgeLabelsCache},n.prototype.pointsCount=function(){return 3},n.prototype.title=function(){return"Fib Wedge"},n.prototype.setPoint=function(t,e){var i,o,n,s,a,l,c;r.prototype.setPoint.call(this,t,e),this._recursiveGuard||(this._recursiveGuard=!0,2===t?(i=this.pointToScreenPoint(this._points[0])[0],o=this.pointToScreenPoint(this._points[1])[0],n=this.pointToScreenPoint(this._points[2])[0],s=n.subtract(i).length(),a=o.subtract(i).normalized(),o=i.add(a.scaled(s)),l=this.screenPointToPoint(o),this._properties.points[1].price.setValue(l.price),this._properties.points[1].bar.setValue(l.index)):(i=this.pointToScreenPoint(this._points[0])[0],o=this.pointToScreenPoint(this._points[1])[0],n=this.pointToScreenPoint(this._points[2])[0],c=o.subtract(i).length(),a=n.subtract(i).normalized(),n=i.add(a.scaled(c)),l=this.screenPointToPoint(n),this._properties.points[2].price.setValue(l.price),this._properties.points[2].bar.setValue(l.index)),this._recursiveGuard=!1)},n.prototype.addPoint=function(t){var e,i,o,n,s,a,l,c;return 2===this._points.length&&(e=this.pointToScreenPoint(this._points[0])[0],i=this.pointToScreenPoint(this._points[1])[0],this.priceScale().isPercent()&&(o=this.ownerSource().firstValue(),t.price=this.priceScale().priceRange().convertFromPercent(t.price,o)),n=this.pointToScreenPoint(t)[0],s=i.subtract(e).length(),a=n.subtract(e).normalized(),n=e.add(a.scaled(s)),l=this.priceScale().coordinateToPrice(n.y),c=Math.round(this._model.timeScale().coordinateToIndex(n.x)),t={index:c,price:l}),r.prototype.addPoint.call(this,t)},n.prototype.processErase=function(t,e){var i="level"+e,o=this.properties()[i].visible;t.setProperty(o,!1,"Erase level line")},n.prototype.createPropertiesObject=function(t,e,i){return new s(t,e,i,{range:[1,11]})},n.prototype.getInputsPropertyPage=function(){return null},n.prototype.getStylesPropertyPage=function(){return l.LineToolFibWedgeStylesPropertyPage},e.LineToolFibWedge=n},function(t,e,i){"use strict";(function(t){function o(t,e){ -this._pane=t,this._timeScale=e}function n(t){this._line=t}function r(t,e){this._adapter=new n(this),this._constructor="LineToolExecution";var o=e||new l("linetoolexecution");this.customization={forcePriceAxisLabel:!1,disableSelection:!0,disableErasing:!0},s.call(this,t,o),i.e(1).then(function(t){var e=i(1152).ExecutionPaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}var s=i(1).LineDataSource,a=i(170),l=i(6).DefaultProperty,c=i(19).PlotRowSearchMode;o.prototype._cachedByBarIndexOrderedExecutions={},o.recreateOrderedByBarsSourcesCache=function(t){var e,i,n,r,s;for(o.clearOrderedByBarsSourcesCache(),e=o.prototype,i=t.orderedSources(),n=0;nh.lastBar()||i=0;--d)if((p=u[d])instanceof r&&p._adapter._index===i&&p._adapter.getDirection()===m){if(p===t._line)break;_=p._adapter._height(),f=g?f+_:f-_}return{x:e.indexToCoordinate(i),y:f}},n.prototype._height=function(){var t,e=this.getArrowHeight(),i=this.getArrowSpacing();return this.getText()&&a.fontHeight(this.getFont()),t=10,e+i+0+t},n.prototype.getIndex=function(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index},n.prototype.setIndex=function(t){var e,i=this._line._model.timeScale(),o=i.baseIndex(),n=o-Math.abs(t);return this._line.startMoving(this._line.points()[0]),e=TradingView.merge({},this._line.points()[0]),e.index=n,this._line.move(e),this._line.endMoving(),this},n.prototype.getTime=function(){return this._unixtime},n.prototype.setTime=function(t){var e=this._line._model.mainSeries();return this._unixtime=ChartApiInstance.alignTimePoint?ChartApiInstance.alignTimePoint(t,e.interval(),e.symbolInfo()):t,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this},n.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},n.prototype.setPrice=function(t){return this._line.points().length>0&&(this._line.points()[0].price=t),this._line._timePoint.length>0&&(this._line._timePoint[0].price=t),this},n.prototype.getText=function(){ +this._numericFormatter.format(t).replace(/(\.[1-9]*)0+$/,function(t,e){return e})},t}(),e.VolumeFormatter=s},function(t,e,i){"use strict";function o(t){var e,i=n.get_timezone(t).offset_utc(Date.now()),o="",r=i/1e3/60/60;return r%1&&(o=":"+r%1*60),e="",e=r>0?"+"+(r-r%1)+o:0===r?"":r-r%1+o+"",{offset:i,string:"UTC"+e}}Object.defineProperty(e,"__esModule",{value:!0});var n=i(50);e.parseTzOffset=o},function(t,e,i){"use strict";function o(){a.call(this)}function n(t,e){this._constructor="LineToolFibSpeedResistanceArcs";var n=e||this.createPropertiesObject("linetoolfibwedge");r.call(this,t,n),t._fibWedgeLabelsCache||(t._fibWedgeLabelsCache=new o),i.e(1).then(function(t){var e=i(1080).FibWedgePaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}var r=i(1).LineDataSource,s=i(21),a=i(88),l=i(3).propertyPages;inherit(o,a),o.prototype.levelsCount=function(){return n.LevelsCount},inherit(n,r),n.LevelsCount=11,n.prototype.getCache=function(){return this._model._fibWedgeLabelsCache||(this._model._fibWedgeLabelsCache=new o),this._model._fibWedgeLabelsCache},n.prototype.pointsCount=function(){return 3},n.prototype.title=function(){return"Fib Wedge"},n.prototype.setPoint=function(t,e){var i,o,n,s,a,l,c;r.prototype.setPoint.call(this,t,e),this._recursiveGuard||(this._recursiveGuard=!0,2===t?(i=this.pointToScreenPoint(this._points[0])[0],o=this.pointToScreenPoint(this._points[1])[0],n=this.pointToScreenPoint(this._points[2])[0],s=n.subtract(i).length(),a=o.subtract(i).normalized(),o=i.add(a.scaled(s)),l=this.screenPointToPoint(o),this._properties.points[1].price.setValue(l.price),this._properties.points[1].bar.setValue(l.index)):(i=this.pointToScreenPoint(this._points[0])[0],o=this.pointToScreenPoint(this._points[1])[0],n=this.pointToScreenPoint(this._points[2])[0],c=o.subtract(i).length(),a=n.subtract(i).normalized(),n=i.add(a.scaled(c)),l=this.screenPointToPoint(n),this._properties.points[2].price.setValue(l.price),this._properties.points[2].bar.setValue(l.index)),this._recursiveGuard=!1)},n.prototype.addPoint=function(t){var e,i,o,n,s,a,l,c;return 2===this._points.length&&(e=this.pointToScreenPoint(this._points[0])[0],i=this.pointToScreenPoint(this._points[1])[0],this.priceScale().isPercent()&&(o=this.ownerSource().firstValue(),t.price=this.priceScale().priceRange().convertFromPercent(t.price,o)),n=this.pointToScreenPoint(t)[0],s=i.subtract(e).length(),a=n.subtract(e).normalized(),n=e.add(a.scaled(s)),l=this.priceScale().coordinateToPrice(n.y),c=Math.round(this._model.timeScale().coordinateToIndex(n.x)),t={index:c,price:l}),r.prototype.addPoint.call(this,t)},n.prototype.processErase=function(t,e){var i="level"+e,o=this.properties()[i].visible;t.setProperty(o,!1,"Erase level line")},n.prototype.createPropertiesObject=function(t,e,i){return new s(t,e,i,{range:[1,11]})},n.prototype.getInputsPropertyPage=function(){return null},n.prototype.getStylesPropertyPage=function(){return l.LineToolFibWedgeStylesPropertyPage},e.LineToolFibWedge=n},function(t,e,i){"use strict";(function(t){function o(t,e){ +this._pane=t,this._timeScale=e}function n(t){this._line=t}function r(t,e){this._adapter=new n(this),this._constructor="LineToolExecution";var o=e||new l("linetoolexecution");this.customization={forcePriceAxisLabel:!1,disableSelection:!0,disableErasing:!0},s.call(this,t,o),i.e(1).then(function(t){var e=i(1153).ExecutionPaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}var s=i(1).LineDataSource,a=i(170),l=i(6).DefaultProperty,c=i(19).PlotRowSearchMode;o.prototype._cachedByBarIndexOrderedExecutions={},o.recreateOrderedByBarsSourcesCache=function(t){var e,i,n,r,s;for(o.clearOrderedByBarsSourcesCache(),e=o.prototype,i=t.orderedSources(),n=0;nh.lastBar()||i=0;--d)if((p=u[d])instanceof r&&p._adapter._index===i&&p._adapter.getDirection()===m){if(p===t._line)break;_=p._adapter._height(),f=g?f+_:f-_}return{x:e.indexToCoordinate(i),y:f}},n.prototype._height=function(){var t,e=this.getArrowHeight(),i=this.getArrowSpacing();return this.getText()&&a.fontHeight(this.getFont()),t=10,e+i+0+t},n.prototype.getIndex=function(){return this._line._model.timeScale().baseIndex()-this._line.points()[0].index},n.prototype.setIndex=function(t){var e,i=this._line._model.timeScale(),o=i.baseIndex(),n=o-Math.abs(t);return this._line.startMoving(this._line.points()[0]),e=TradingView.merge({},this._line.points()[0]),e.index=n,this._line.move(e),this._line.endMoving(),this},n.prototype.getTime=function(){return this._unixtime},n.prototype.setTime=function(t){var e=this._line._model.mainSeries();return this._unixtime=ChartApiInstance.alignTimePoint?ChartApiInstance.alignTimePoint(t,e.interval(),e.symbolInfo()):t,this._line.restorePoints([{offset:0,price:this.getPrice(),time_t:this._unixtime}],[]),this._line.createServerPoints(),this},n.prototype.getPrice=function(){return this._line.points().length>0?this._line.points()[0].price:this._line._timePoint.length>0?this._line._timePoint[0].price:void 0},n.prototype.setPrice=function(t){return this._line.points().length>0&&(this._line.points()[0].price=t),this._line._timePoint.length>0&&(this._line._timePoint[0].price=t),this},n.prototype.getText=function(){ return this._line.properties().text.value()},n.prototype.setText=function(t){return this._line.properties().text.setValue(t||""),this._line.updateAllViewsAndRedraw(),this},n.prototype.getArrowHeight=function(){return this._line.properties().arrowHeight.value()},n.prototype.setArrowHeight=function(t){return this._line.properties().arrowHeight.setValue(t||5),this},n.prototype.getArrowSpacing=function(){return this._line.properties().arrowSpacing.value()},n.prototype.setArrowSpacing=function(t){return this._line.properties().arrowSpacing.setValue(t||1),this},n.prototype.getDirection=function(){return this._line.properties().direction.value()},n.prototype.setDirection=function(t){return this._line.properties().direction.setValue(t||"buy"),this},n.prototype.getArrowColor=function(){return a.getColorFromProperties(this._line.properties().arrowColor,this._line.properties().arrowTransparency)},n.prototype.setArrowColor=function(t){return a.setColorToProperties(t,this._line.properties().arrowColor,this._line.properties().arrowTransparency),this},n.prototype.getTextColor=function(){return a.getColorFromProperties(this._line.properties().textColor,this._line.properties().textTransparency)},n.prototype.setTextColor=function(t){return a.setColorToProperties(t,this._line.properties().textColor,this._line.properties().textTransparency),this},n.prototype.getFont=function(){return a.getFontFromProperties(this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic)},n.prototype.setFont=function(t){return a.setFontToProperties(t,this._line.properties().fontFamily,this._line.properties().fontSize,this._line.properties().fontBold,this._line.properties().fontItalic),this},n.prototype.setTooltip=function(t){return null==t?t="":t+="",this._line.properties().tooltip.setValue(t),this},n.prototype.getTooltip=function(){return this._line.properties().tooltip.value()},n.prototype.remove=function(){this._line._model.removeSource(this._line),delete this._line},inherit(r,s),r.POINTS_COUNT=1,r.skipMagnetting=!0,r.prototype.pointsCount=function(){return r.POINTS_COUNT},r.prototype.title=function(){return"Execution"},r.prototype.hasContextMenu=function(){return!1},r.prototype.state=function(){return null},r.prototype.updateAllViews=function(){return this._isVisible()?s.prototype.updateAllViews.call(this):null},r.prototype.priceAxisViews=function(t,e){return this._isVisible()?s.prototype.priceAxisViews.call(this,t,e):null},r.prototype._isVisible=function(){return this._model.properties().tradingProperties.showExecutions.value()},r.prototype.paneViews=function(e){return TradingView.printing&&!t.enabled("snapshot_trading_drawings")?null:this._model.properties().tradingProperties.showExecutions.value()?s.prototype.paneViews.call(this,e):null},r.prototype.userEditEnabled=function(){return!1},r.prototype.showInObjectTree=function(){return!1},r.prototype.getInputsPropertyPage=function(){return null},e.ExecutionsPositionController=o,e.LineToolExecution=r}).call(e,i(5)) -},function(t,e,i){"use strict";function o(t,e,i){return new a(t,e,i)}var n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),n=i(0),r=i(15),s=i(21),a=function(t){function e(e,i,o){return t.call(this,e,i,o,{names:["width","color","visible"]})||this}return n.__extends(e,t),e.prototype._iterateLevels=function(t,e){var i,o,n;for(i in t.levels)if(t.levels[i]&&r.isSameType(t.levels[i],e.typecheck())){o=e.tpl();for(n in this._map.names)this._map.names.hasOwnProperty(n)&&(o=e.fill(n,this._map.names[n],t.levels[i],o));t.levels[i]=o}return t},e}(s),e.LineToolGannComplexProperty=a,e.createPropertiesObject=o},function(t,e,i){"use strict";function o(t,e){this._constructor="LineTool5PointsPattern";var o=e||new r("linetool5pointspattern");n.call(this,t,o),i.e(1).then(function(t){var e=i(1080).Pattern5PaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}var n=i(1).LineDataSource,r=i(6).DefaultProperty,s=i(127).DateTimeFormatter,a=i(3).propertyPages;inherit(o,n),o.prototype.pointsCount=function(){return 5},o.prototype.title=function(){return"XABCD Pattern"},o.prototype._tooltipFieldsHash={time0:{title:"Date 1",value:null},price0:{title:"Price 1",value:null},time1:{title:"Date 2",value:null},price1:{title:"Price 2",value:null},time2:{title:"Date 3",value:null},price2:{title:"Price 3",value:null},time3:{title:"Date 4",value:null},price3:{title:"Price 4",value:null},time4:{title:"Date 5",value:null},price4:{title:"Price 5",value:null}},o.prototype._updateTooltip=function(){var t,e,i,o,n,r=this._tooltipFieldsHash,a=this.points().m_values;a[0]&&(e=this._model.timeScale().indexToUserTime(a[0].index),r.time0.value=e?new s(this._model.mainSeries().isDWM()).format(e):0,r.price0.value=this._model.mainSeries()._formatter.format(a[0].price)),a[1]&&(t=this._model.timeScale().indexToUserTime(a[1].index),r.time1.value=t?new s(this._model.mainSeries().isDWM()).format(t):0,r.price1.value=this._model.mainSeries()._formatter.format(a[1].price)),a[2]&&(i=this._model.timeScale().indexToUserTime(a[2].index),r.time2.value=i?new s(this._model.mainSeries().isDWM()).format(i):0,r.price2.value=this._model.mainSeries()._formatter.format(a[2].price)),a[3]&&(o=this._model.timeScale().indexToUserTime(a[3].index),r.time3.value=o?new s(this._model.mainSeries().isDWM()).format(o):0,r.price3.value=this._model.mainSeries()._formatter.format(a[3].price)),a[4]&&(n=this._model.timeScale().indexToUserTime(a[4].index),r.time4.value=t?new s(this._model.mainSeries().isDWM()).format(n):0,r.price4.value=this._model.mainSeries()._formatter.format(a[4].price))},o.prototype.tooltip=function(){return this._updateTooltip(),this._formatTooltip()},o.prototype.getStylesPropertyPage=function(){return a.LineToolLineTool5PointsPatternStylesPropertyPage},e.LineTool5PointsPattern=o},function(t,e,i){"use strict";function o(t,e){this._constructor="LineToolNote";var n=e||new s("linetoolnote");r.call(this,t,n),this.version=o.version,i.e(1).then(function(t){var e=i(1174).NotePaneView;this._setPaneViews([new e(this,this._model)]) -}.bind(this).bind(null,i)).catch(i.oe)}function n(t,e){var i=e||new s("linetoolnoteabsolute");i.locked.value()||i.locked.setValue(!0),o.call(this,t,i)}var r=i(1).LineDataSource,s=i(6).DefaultProperty,a=i(3).propertyPages;inherit(o,r),o.TOOLTIP_WIDTH=300,o.TOOLTIP_PADDING=10,o.TOOLTIP_LINESPACING=5,o.version=1,o.prototype.pointsCount=function(){return 1},o.prototype.title=function(){return $.t("Note")},o.prototype.applyTemplate=function(t){delete t.locked,delete t.text,r.prototype.applyTemplate.call(this,t)},o.prototype.getTooltipWidth=function(){return o.TOOLTIP_WIDTH},o.prototype.getTooltipPadding=function(){return o.TOOLTIP_PADDING},o.prototype.getTooltipLineSpacing=function(){return o.TOOLTIP_LINESPACING},inherit(n,o),n.prototype.title=function(){return $.t("Anchored Note")},o.prototype.state=function(t){var e=r.prototype.state.call(this,t);return t&&(e.state.fixedSize=!1),e},o.prototype.getStylesPropertyPage=function(){return a.LineToolNotePropertyPage},e.LineToolNote=o,e.LineToolNoteAbsolute=n},function(t,e,i){"use strict";function o(t,e){this._constructor="LineToolText";var o=e||new a("linetooltext");r.call(this,t,o),this._timeScale=t.timeScale(),this._barSpacing=t.timeScale().barSpacing(),i.e(1).then(function(t){var e=i(406).TextPaneView;this._setPaneViews([new e(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}function n(t,e){var i=e||new a("linetooltextabsolute");i.locked.value()||i.locked.setValue(!0),o.call(this,t,i)}var r=i(1).LineDataSource,s=i(46).DataSource,a=i(6).DefaultProperty,l=i(3).propertyPages;inherit(o,r),o.MIN_WIDTH=100,o.prototype.setPoint=function(t,e){var i,n,r=this.properties();if(0===t&&r.wordWrapWidth&&r.wordWrapWidth.value()){if(i=r.locked&&r.locked.value()?this.fixedPoints()[0].x:this._timeScale.indexToCoordinate(this.points()[0].index),n=this._timeScale.indexToCoordinate(e.index)-i-~~(r.fontsize.value()/6),!isFinite(n))return;r.wordWrapWidth.setValue(Math.max(o.MIN_WIDTH,n))}},o.prototype.pointsCount=function(){return 1},o.prototype.title=function(){return $.t("Text")},o.prototype.setPriceScale=function(t){s.prototype.setPriceScale.call(this,t),t&&t.priceRange()&&(this._priceDencity=t.height()/t.priceRange().length(),this._isPriceDencityLog=t.isLog())},o.prototype.restoreSize=function(){this._barSpacing=this._model.timeScale().barSpacing(),this._priceDencity=this.priceScale().height()/this.priceScale().priceRange().length(),this.updateAllViews(),this._model.updateSource(this)},o.prototype.applyTemplate=function(t){delete t.locked,delete t.text,r.prototype.applyTemplate.call(this,t)},inherit(n,o),n.prototype.title=function(){return $.t("Anchored Text")},o.prototype.state=function(t){var e=r.prototype.state.call(this,t);return t&&(e.state.fixedSize=!1),e},o.prototype.getInputsPropertyPage=function(){return null},o.prototype.getStylesPropertyPage=function(){return l.LineToolTextStylesPropertyPage},e.LineToolText=o,e.LineToolTextAbsolute=n},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(9),r=i(67),s=i(15),a=function(t){ -function e(e){var i=t.call(this)||this;return i._source=e,i}return o.__extends(e,t),e.prototype._updateRendererData=function(t){var e,i,o,r,a,l;if(t.visible=!1,e=this._source.points(),i=this._source.priceScale(),0!==e.length&&null!==i&&!i.isEmpty()&&(o=e[0],isFinite(o.price))){if(i.isPercent()){if(!(r=this._source.ownerSource()))return;if(a=r.firstValue(),!s.isNumber(a))return;o.price=n.ensureNotNull(i.priceRange()).convertToPercent(o.price,a)}l=this._source.properties().linecolor.value(),t.background=l,t.color=this.generateTextColor(l),t.coordinate=i.priceToCoordinate(o.price),t.text=i.formatter().format(o.price),t.visible=!0}},e}(r.PriceAxisView),e.LineToolHorzLinePriceAxisView=a},function(t,e,i){"use strict";function o(t,e,i){this._study=t,this._series=e,this._model=i,this._invalidated=!0,this._orderArrow={vMargin:o.DEFAULT_ORDER_ARROW_VMARGIN,width:o.DEFAULT_ORDER_ARROW_WIDTH,height:o.DEFAULT_ORDER_ARROW_HEIGHT},this._exitLineWidth=o.DEFAULT_ORDER_ARROW_EXIT_LINE_WIDTH,this._priceArrow={width:o.DEFAULT_PRICE_ARROW_WIDTH,height:o.DEFAULT_PRICE_ARROW_HEIGHT},this._text={vMargin:o.DEFAULT_TEXT_VMARGIN,font:o.DEFAULT_FONT,fontSize:o.DEFAULT_FONT_SIZE},this._checkHideTextIfBarSpacingLT=o.DEFAULT_CHECK_HIDE_TEXT_IF_BARSPACING_LT,this._textIsVisible=!0,this._colors={entryBuy:o.DEFAULT_ENTRY_BUY_COLOR,entrySell:o.DEFAULT_ENTRY_SELL_COLOR,exit:o.DEFAULT_EXIT_COLOR},this._items={entryBuy:[],entrySell:[],exit:[]},this._textWidths={},this._study.properties().strategy.orders.subscribe(this,this.update)}var n=i(8).Point,r=i(872).PaneRendererStudyStrategyOrders,s=i(53).CompositeRenderer,a=i(19).PlotRowSearchMode;o.DEFAULT_ORDER_ARROW_VMARGIN=7,o.DEFAULT_ORDER_ARROW_WIDTH=9,o.DEFAULT_ORDER_ARROW_HEIGHT=11,o.DEFAULT_ORDER_ARROW_EXIT_LINE_WIDTH=2,o.DEFAULT_PRICE_ARROW_WIDTH=5,o.DEFAULT_PRICE_ARROW_HEIGHT=9,o.DEFAULT_TEXT_VMARGIN=2,o.DEFAULT_FONT="Arial",o.DEFAULT_FONT_SIZE=10,o.DEFAULT_CHECK_HIDE_TEXT_IF_BARSPACING_LT=10,o.DEFAULT_ENTRY_BUY_COLOR="#008fff",o.DEFAULT_ENTRY_SELL_COLOR="#f00",o.DEFAULT_EXIT_COLOR="#cc47ed",o.prototype._updateImpl=function(){var t,e,i,o,r,s,l,c,h,u,d,p,_,f,m,g,v,y,b,S,w,T,C,x,P,L;if(this.clearItems(),(t=this._study.ordersData())&&t.length&&(e=this._model.timeScale(),i=this._series.priceScale(),!(!e||!i||e&&e.isEmpty()||i&&i.isEmpty())&&null!==(o=e.visibleBars()))){for(r=this._study.barsIndexes(),s=this._series.nearestIndex(o.firstBar(),a.NearestRight),l=this._series.nearestIndex(o.lastBar(),a.NearestLeft),c=s,h=[],u=[];c<=l;c++)for(d=-1;-1!==(d=r.indexOf(c,d+1));)(p=t[d])&&(h.push(p),u.push(c));for(_=this._study.properties(),f=_.strategy.orders.showLabels.value(),m=_.strategy.orders.showQty.value(),g=f||m,g&&e.barSpacing()e.width()&&(g=!1),v=g&&this._text.fontSize+this._text.vMargin||0,y=v&&v*(f+m),b=0,S={upper:[],lower:[]};be.width()&&(g=!1),v=g&&this._text.fontSize+this._text.vMargin||0,y=v&&v*(f+m),b=0,S={upper:[],lower:[]};b=3600&&(h=this._addLeadingZero(Math.floor(c/3600))),c%=3600,u=this._addLeadingZero(Math.floor(c/60)),c%=60,d=this._addLeadingZero(Math.floor(c)),null!==h?h+":"+u+":"+d:u+":"+d))},e.prototype._updateRendererData=function(t){var e,i,o,n,r;t.visible=!1,this._data.model.properties().scalesProperties.showSeriesLastValue.value()&&(e=this._source.lastValueData(void 0,h),e.noData||(i=this._source.properties(),i.style.value()===l.STYLE_HEIKEN_ASHI&&i.haStyle.showRealLastPrice.value()&&(o=this._source.lastValueData(void 0,!1),n=this._source.lastValueData(void 0,!0),!o.noData&&!n.noData&&o.index===n.index)||(r="",c&&i.showCountdown.value()&&-1!==u.indexOf(i.style.value())&&(r=this._countdownText()),t.secondLine=r,t.background=this._source.priceLineColor(e.color),t.color=this.generateTextColor(t.background),t.coordinate=e.coordinate, -t.floatCoordinate=e.floatCoordinate,t.text=e.text,t.visible=!0)))},e.prototype._addLeadingZero=function(t){return("0"+t).slice(-2)},e}(s.PriceAxisView),e.SeriesPriceAxisView=d},function(t,e,i){"use strict";function o(t,e){this.m_series=t,this.m_model=e,this.m_bars=[],this._invalidated=!0,this._isMarkersEnabled=P.enabled("source_selection_markers")}function n(t,e){o.call(this,t,e)}function r(t,e){o.call(this,t,e)}function s(t,e){o.call(this,t,e)}function a(t,e){o.call(this,t,e)}function l(t,e){this.m_series=t,this.m_model=e,this.m_items=[]}function c(t,e){l.call(this,t,e),this._invaidated=!0}function h(t,e){l.call(this,t,e),this._invaidated=!0}function u(t,e){l.call(this,t,e),this._invaidated=!0,this._renderer=new b}function d(t,e){this._source=t,this._model=e,this._points=[new p(0,0)],this._invalidated=!0,this._renderer=new S;var i={cursorType:L.VerticalResize,pressedMouseMoveHandler:function(t){var e,i,o,n,r=this._source.priceScale();null!==r&&(e=this._source.properties().baselineStyle,i=r.height(),o=100-t.y/i*100,n=o<0?0:Math.round(10*o)/10,e.baseLevelPercentage.setValue(Math.max(Math.min(n,100),0)))}.bind(this)};this._renderer.setHitTest(new f(f.CUSTOM_MOVE,i))}var p=i(8).Point,_=i(131).SelectionRenderer,f=i(11),m=i(325).PaneRendererBars,g=i(176).PaneRendererLine,v=i(326).PaneRendererArea,y=i(247).PaneRendererCandles,b=i(882).PaneRendererBaseline,S=i(94).HorizontalLineRenderer,w=i(53).CompositeRenderer,T=i(328),C=i(30),x=i(19).PlotRowSearchMode,P=i(5),L=i(343).PaneCursorType;o.prototype.update=function(){this._invalidated=!0},o.prototype._updateImpl=function(){var t,e,i,o,n,r,s,a,l,c,h,u,d,_,m,g=this;if(this.m_bars=[],!this.m_model.timeScale().isEmpty()&&!this.m_series.priceScale().isEmpty()&&null!==(t=this.m_model.timeScale().visibleBars())&&0!==this.m_series.bars().size()){for(e=this.m_series.nearestIndex(t.firstBar(),x.NearestRight),i=this.m_series.nearestIndex(t.lastBar(),x.NearestLeft);e<=i&&null===this.m_series.bars().valueAt(e);e++);if(!(e>i)&&(t=this.m_series.bars().range(e,i),n=this.m_series.priceScale(),r=n.properties().percentage.value(),s=this.m_series.barColorer(),a={},t.each(function(t,e){var i,n;void 0!==e[TradingView.OPEN_PLOT]&&void 0!==e[TradingView.HIGH_PLOT]&&void 0!==e[TradingView.LOW_PLOT]&&void 0!==e[TradingView.CLOSE_PLOT]&&(void 0===o&&(o=e[TradingView.CLOSE_PLOT]),i={},i.time=Math.round(t),r?(i.open=100*(e[TradingView.OPEN_PLOT]-o)/o,i.high=100*(e[TradingView.HIGH_PLOT]-o)/o,i.low=100*(e[TradingView.LOW_PLOT]-o)/o,i.close=100*(e[TradingView.CLOSE_PLOT]-o)/o):(i.open=e[TradingView.OPEN_PLOT],i.high=e[TradingView.HIGH_PLOT],i.low=e[TradingView.LOW_PLOT],i.close=e[TradingView.CLOSE_PLOT]),a.value=e,n=e[TradingView.STYLE_PLOT]?e[TradingView.STYLE_PLOT]:s.barStyle(t,!1,a),e[TradingView.STYLE_PLOT]=n,a.previousValue=e,i.color=n.barColor,i.borderColor=n.barBorderColor,i.wickColor=n.barWickColor,i.hollow=n.isBarHollow,g.m_bars.push(i))},this),n.barPricesToCoordinates(this.m_bars),this.m_model.timeScale().barIndexesToCoordinates(this.m_bars), +t.floatCoordinate=e.floatCoordinate,t.text=e.text,t.visible=!0)))},e.prototype._addLeadingZero=function(t){return("0"+t).slice(-2)},e}(s.PriceAxisView),e.SeriesPriceAxisView=d},function(t,e,i){"use strict";function o(t,e){this.m_series=t,this.m_model=e,this.m_bars=[],this._invalidated=!0,this._isMarkersEnabled=P.enabled("source_selection_markers")}function n(t,e){o.call(this,t,e)}function r(t,e){o.call(this,t,e)}function s(t,e){o.call(this,t,e)}function a(t,e){o.call(this,t,e)}function l(t,e){this.m_series=t,this.m_model=e,this.m_items=[]}function c(t,e){l.call(this,t,e),this._invaidated=!0}function h(t,e){l.call(this,t,e),this._invaidated=!0}function u(t,e){l.call(this,t,e),this._invaidated=!0,this._renderer=new b}function d(t,e){this._source=t,this._model=e,this._points=[new p(0,0)],this._invalidated=!0,this._renderer=new S;var i={cursorType:L.VerticalResize,pressedMouseMoveHandler:function(t){var e,i,o,n,r=this._source.priceScale();null!==r&&(e=this._source.properties().baselineStyle,i=r.height(),o=100-t.y/i*100,n=o<0?0:Math.round(10*o)/10,e.baseLevelPercentage.setValue(Math.max(Math.min(n,100),0)))}.bind(this)};this._renderer.setHitTest(new f(f.CUSTOM_MOVE,i))}var p=i(8).Point,_=i(131).SelectionRenderer,f=i(11),m=i(326).PaneRendererBars,g=i(176).PaneRendererLine,v=i(327).PaneRendererArea,y=i(248).PaneRendererCandles,b=i(883).PaneRendererBaseline,S=i(94).HorizontalLineRenderer,w=i(53).CompositeRenderer,T=i(329),C=i(30),x=i(19).PlotRowSearchMode,P=i(5),L=i(344).PaneCursorType;o.prototype.update=function(){this._invalidated=!0},o.prototype._updateImpl=function(){var t,e,i,o,n,r,s,a,l,c,h,u,d,_,m,g=this;if(this.m_bars=[],!this.m_model.timeScale().isEmpty()&&!this.m_series.priceScale().isEmpty()&&null!==(t=this.m_model.timeScale().visibleBars())&&0!==this.m_series.bars().size()){for(e=this.m_series.nearestIndex(t.firstBar(),x.NearestRight),i=this.m_series.nearestIndex(t.lastBar(),x.NearestLeft);e<=i&&null===this.m_series.bars().valueAt(e);e++);if(!(e>i)&&(t=this.m_series.bars().range(e,i),n=this.m_series.priceScale(),r=n.properties().percentage.value(),s=this.m_series.barColorer(),a={},t.each(function(t,e){var i,n;void 0!==e[TradingView.OPEN_PLOT]&&void 0!==e[TradingView.HIGH_PLOT]&&void 0!==e[TradingView.LOW_PLOT]&&void 0!==e[TradingView.CLOSE_PLOT]&&(void 0===o&&(o=e[TradingView.CLOSE_PLOT]),i={},i.time=Math.round(t),r?(i.open=100*(e[TradingView.OPEN_PLOT]-o)/o,i.high=100*(e[TradingView.HIGH_PLOT]-o)/o,i.low=100*(e[TradingView.LOW_PLOT]-o)/o,i.close=100*(e[TradingView.CLOSE_PLOT]-o)/o):(i.open=e[TradingView.OPEN_PLOT],i.high=e[TradingView.HIGH_PLOT],i.low=e[TradingView.LOW_PLOT],i.close=e[TradingView.CLOSE_PLOT]),a.value=e,n=e[TradingView.STYLE_PLOT]?e[TradingView.STYLE_PLOT]:s.barStyle(t,!1,a),e[TradingView.STYLE_PLOT]=n,a.previousValue=e,i.color=n.barColor,i.borderColor=n.barBorderColor,i.wickColor=n.barWickColor,i.hollow=n.isBarHollow,g.m_bars.push(i))},this),n.barPricesToCoordinates(this.m_bars),this.m_model.timeScale().barIndexesToCoordinates(this.m_bars), this.m_series===this.m_model.selectedSource()))for(l=T(e,i),this._selectionData={points:[]},this._selectionData.hittestResult=f.REGULAR,c=0;cr.precedence&&(i[i.length-1].minPrecedence=r.precedence):r instanceof s?i.push(o={minPrecedence:1/0,openBraceIndex:n}):r instanceof a&&(o=i.pop(),c=t[o.openBraceIndex-1],(h=t[n+1])instanceof l&&!(h.precedence<=o.minPrecedence)||!(!(c instanceof l)||c.precedenceo.minPrecedence&&(i[i.length-1].minPrecedence=o.minPrecedence)));for(n=e.length;n--;)t.splice(e[n],1);return t}function T(t){for(var e=0;e=1;--e)if(i=this._ticker.slice(0,e),t(i)){this._root=i,this._contract=this._ticker.slice(e);break}},_.prototype.exchange=function(t){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null===t||void 0===t?delete this._exchange:this._exchange=t+""},_.prototype.ticker=function(t){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null===t||void 0===t?delete this._ticker:this._ticker=t+"",delete this._root,delete this._contract},_.prototype.root=function(t){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null===t||void 0===t?delete this._root:(this._root=t+"",this._root&&(this._ticker=this._root+(this._contract||"")))},_.prototype.contract=function(t){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null===t||void 0===t?delete this._contract:(this._contract=t+"",this._root&&(this._ticker=this._root+this._contract))},t(f,n),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")},m.prototype.toString=function(){return this.value},t(g,_),g.prototype.isIncomplete=!0,g.prototype.incompleteSuggest=function(){if("'"!==this.value)return"'"},t(v,f),v.prototype.isIncomplete=!0,W=RegExp($.map(function(t){return"("+("string"==typeof t.pattern?i(t.pattern):t.pattern.source)+")"}).concat(".").join("|"),"g"),{tokenize:y,validate:b,factorOutBraces:w,normalizeTokens:T,flip:C,hasBatsSymbols:A,hasEodSymbols:M,hasChxeurSymbols:E,hasChxjpySymbols:D,hasFreeDelaySymbols:V,getExchange:I,isExchange:O,SymbolToken:_,IncompleteSymbolToken:g,NumberToken:f,BinaryOperatorToken:l,OpenBraceToken:s,CloseBraceToken:a,ticker:P,shortName:R,normalize:B}}();t.exports=n}).call(e,i(5))},function(t,e,i){"use strict";function o(t){return t+"("+new Date(1e3*t).toUTCString()+")"}function n(t){var e,i,o,n;return t+="",e=t.slice(0),i=!1,o=e[e.length-1],-1==="DWM".indexOf(o)&&"S"!==o&&(i=!0,o=""),n=parseInt(i?e:e.length>1?e.slice(0,e.length-1):1),{resolution:o,interval:n}}var r,s=i(58),a=i(50),l=i(34).Interval,c=!1,h=null,u=0,d=function(t,e){this._session=new s.Session, this._session.init(t.timezone,t.session),this._symbolInfo=t,this._resolution=e,this._extrapolatedData=[],this._modelId=u++,this._valid=!!t.timezone&&!!t.session,c&&console.log('Created model "{0}", interval "{1}", session "{2}", tz "{3}"'.format(this._modelId,this._resolution,t.session,t.timezone))};d.prototype.uniqueId=function(){return this._modelId},d.prototype.isValid=function(){return this._valid},d.prototype._barBuilder=function(){if(!this._builderCache){var t=n(this._resolution);this._builderCache=s.newBarBuilder(t.resolution,t.interval,this._session,this._session)}return this._builderCache},d.prototype.distance=function(t,e){var i,n,r,a,l;return isNumber(t)&&isNumber(e)&&this.isValid()?(i=this._extrapolatedData.length>0?this._extrapolatedData[0]:null,n=i&&this._extrapolatedData[this._extrapolatedData.length-1],1e3*t!==i&&(this._extrapolatedData=[1e3*t],i=null,n=null),(null===i||1e3*e>n)&&(r=500,a=s.extrapolateBarsFrontToTime(this._barBuilder(),n||1e3*t,1e3*e,r),this._extrapolatedData=this._extrapolatedData.concat(a)),(n=this._extrapolatedData[this._extrapolatedData.length-1])<1e3*e?{success:!1}:(l=this._extrapolatedData.indexOf(1e3*e),-1!==l?(c&&console.log('Model "{0}" "{1}", distance between "{2}" and "{3}" is "{4}"'.format(this._modelId,this._resolution,o(t),o(e),l)),{success:!0,result:l}):{success:!1})):{success:!1}},d.prototype.projectTime=function(t,e){var i,n,r,a;return isNumber(t)&&isNumber(e)&&this.isValid()?(i=this._extrapolatedData.length>0?this._extrapolatedData[0]:null,n=i&&this._extrapolatedData[this._extrapolatedData.length-1],1e3*t!==i&&(this._extrapolatedData=[1e3*t],i=null,n=null),(null===i||e>=this._extrapolatedData.length)&&(r=s.extrapolateBarsFrontByCount(this._barBuilder(),n||1e3*t,e-this._extrapolatedData.length+1),this._extrapolatedData=this._extrapolatedData.concat(r)),e model "{3}" "{4}" targetTime "{5}"'.format(this._source.uniqueId(),this._source._resolution,o(t),this._target.uniqueId(),this._target._resolution,o(e))),e):t},t.exports.SyncPoint=r,t.exports.SyncModel=d},function(t,e,i){"use strict";var o,n=i(49),r=i(886),s=i(887),a=i(888),l=i(889),c=i(890),h=i(891),u=i(892),d=(o={},o[n.STYLE_AREA]=r,o[n.STYLE_BARS]=s,o[n.STYLE_CANDLES]=a,o[n.STYLE_HEIKEN_ASHI]=l,o[n.STYLE_HOLLOW_CANDLES]=c,o[n.STYLE_LINE]=h,o[n.STYLE_BASELINE]=u,o);t.exports=d},function(t,e,i){"use strict";function o(t){return-1!==a.indexOf(t)}function n(t){return-1!==l.indexOf(t)}function r(t){return c[t]}var s,a,l,c;Object.defineProperty(e,"__esModule",{value:!0}),s=i(49),a=[s.STYLE_RENKO,s.STYLE_KAGI,s.STYLE_PNF,s.STYLE_PB,s.STYLE_HEIKEN_ASHI],e.isJapaneseStyle=o,l=[s.STYLE_RENKO,s.STYLE_PB,s.STYLE_KAGI,s.STYLE_PNF],e.hasProjection=n,c={open:function(t){return t[1]},high:function(t){return t[2]},low:function(t){return t[3]},close:function(t){return t[4]},hl2:function(t){return(t[2]+t[3])/2},hlc3:function(t){return(t[2]+t[3]+t[4])/3},ohlc4:function(t){return(t[1]+t[2]+t[3]+t[4])/4}},e.barFunction=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MINUTE_SPAN=20,e.HOUR_SPAN=30,e.DAY_SPAN=40,e.WEEK_SPAN=50,e.MONTH_SPAN=60,e.YEAR_SPAN=70},function(t,e,i){var o;!function(n,r,s,a){"use strict";function l(t,e,i){return setTimeout(p(t,i),e)}function c(t,e,i){return!!Array.isArray(t)&&(h(t,i[e],i),!0)}function h(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,o,i),t.apply(this,arguments)}}function d(t,e,i){var o,n=e.prototype;o=t.prototype=Object.create(n),o.constructor=t,o._super=n,i&&ft(o,i)}function p(t,e){return function(){return t.apply(e,arguments)}}function _(t,e){return typeof t==Te?t.apply(e?e[0]||a:a,e):t}function f(t,e){return t===a?e:t}function m(t,e,i){h(b(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){h(b(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function S(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;o model "{3}" "{4}" targetTime "{5}"'.format(this._source.uniqueId(),this._source._resolution,o(t),this._target.uniqueId(),this._target._resolution,o(e))),e):t},t.exports.SyncPoint=r,t.exports.SyncModel=d},function(t,e,i){"use strict";var o,n=i(49),r=i(887),s=i(888),a=i(889),l=i(890),c=i(891),h=i(892),u=i(893),d=(o={},o[n.STYLE_AREA]=r,o[n.STYLE_BARS]=s,o[n.STYLE_CANDLES]=a,o[n.STYLE_HEIKEN_ASHI]=l,o[n.STYLE_HOLLOW_CANDLES]=c,o[n.STYLE_LINE]=h,o[n.STYLE_BASELINE]=u,o);t.exports=d},function(t,e,i){"use strict";function o(t){return-1!==a.indexOf(t)}function n(t){return-1!==l.indexOf(t)}function r(t){return c[t]}var s,a,l,c;Object.defineProperty(e,"__esModule",{value:!0}),s=i(49),a=[s.STYLE_RENKO,s.STYLE_KAGI,s.STYLE_PNF,s.STYLE_PB,s.STYLE_HEIKEN_ASHI],e.isJapaneseStyle=o,l=[s.STYLE_RENKO,s.STYLE_PB,s.STYLE_KAGI,s.STYLE_PNF],e.hasProjection=n,c={open:function(t){return t[1]},high:function(t){return t[2]},low:function(t){return t[3]},close:function(t){return t[4]},hl2:function(t){return(t[2]+t[3])/2},hlc3:function(t){return(t[2]+t[3]+t[4])/3},ohlc4:function(t){return(t[1]+t[2]+t[3]+t[4])/4}},e.barFunction=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MINUTE_SPAN=20,e.HOUR_SPAN=30,e.DAY_SPAN=40,e.WEEK_SPAN=50,e.MONTH_SPAN=60,e.YEAR_SPAN=70},function(t,e,i){var o;!function(n,r,s,a){"use strict";function l(t,e,i){return setTimeout(p(t,i),e)}function c(t,e,i){return!!Array.isArray(t)&&(h(t,i[e],i),!0)}function h(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=n.console&&(n.console.warn||n.console.log);return r&&r.call(n.console,o,i),t.apply(this,arguments)}}function d(t,e,i){var o,n=e.prototype;o=t.prototype=Object.create(n),o.constructor=t,o._super=n,i&&ft(o,i)}function p(t,e){return function(){return t.apply(e,arguments)}}function _(t,e){return typeof t==Te?t.apply(e?e[0]||a:a,e):t}function f(t,e){return t===a?e:t}function m(t,e,i){h(b(e),function(e){t.addEventListener(e,i,!1)})}function g(t,e,i){h(b(e),function(e){t.removeEventListener(e,i,!1)})}function v(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function y(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function S(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var o=0;oi[e]}):n.sort()),n}function C(t,e){for(var i,o,n=e[0].toUpperCase()+e.slice(1),r=0;r1&&!l.firstMultiple?l.firstMultiple=D(e):1===h&&(l.firstMultiple=!1),i=l.firstInput,o=l.firstMultiple,n=o?o.center:i.center,r=e.center=V(c),e.timeStamp=Pe(),e.deltaTime=e.timeStamp-i.timeStamp,e.angle=z(n,r),e.distance=B(n,r),M(l,e),e.offsetDirection=R(e.deltaX,e.deltaY),s=O(e.deltaTime,e.deltaX,e.deltaY),e.overallVelocityX=s.x,e.overallVelocityY=s.y,e.overallVelocity=xe(s.x)>xe(s.y)?s.x:s.y,e.scale=o?N(o.pointers,c):1,e.rotation=o?F(o.pointers,c):0,e.maxPointers=l.prevInput?e.pointers.length>l.prevInput.maxPointers?e.pointers.length:l.prevInput.maxPointers:e.pointers.length,E(l,e),a=t.element,v(e.srcEvent.target,a)&&(a=e.srcEvent.target),e.target=a}function M(t,e){var i=e.center,o=t.offsetDelta||{},n=t.prevDelta||{},r=t.prevInput||{};e.eventType!==It&&r.eventType!==At||(n=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=n.x+(i.x-o.x),e.deltaY=n.y+(i.y-o.y)}function E(t,e){var i,o,n,r,s,l,c,h=t.lastInterval||e,u=e.timeStamp-h.timeStamp;e.eventType!=Mt&&(u>Lt||h.velocity===a)?(s=e.deltaX-h.deltaX,l=e.deltaY-h.deltaY,c=O(u,s,l),o=c.x,n=c.y,i=xe(c.x)>xe(c.y)?c.x:c.y,r=R(s,l),t.lastInterval=e):(i=h.velocity,o=h.velocityX,n=h.velocityY,r=h.direction),e.velocity=i,e.velocityX=o,e.velocityY=n,e.direction=r}function D(t){for(var e=[],i=0;i=xe(e)?t<0?Dt:Vt:e<0?Ot:Rt}function B(t,e,i){i||(i=Nt);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return Math.sqrt(o*o+n*n)}function z(t,e,i){i||(i=Nt);var o=e[i[0]]-t[i[0]],n=e[i[1]]-t[i[1]];return 180*Math.atan2(n,o)/Math.PI}function F(t,e){return z(e[1],e[0],Wt)+z(t[1],t[0],Wt)}function N(t,e){return B(e[0],e[1],Wt)/B(t[0],t[1],Wt)}function W(){ this.evEl=Ht,this.evWin=Ut,this.pressed=!1,L.apply(this,arguments)}function $(){this.evEl=Gt,this.evWin=Yt,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function H(){this.evTarget=Zt,this.evWin=Xt,this.started=!1,L.apply(this,arguments)}function U(t,e){var i=w(t.touches),o=w(t.changedTouches);return e&(At|Mt)&&(i=T(i.concat(o),"identifier",!0)),[i,o]}function j(){this.evTarget=Qt,this.targetIds={},L.apply(this,arguments)}function q(t,e){var i,o,n,r,s,l=w(t.touches),c=this.targetIds;if(e&(It|kt)&&1===l.length)return c[l[0].identifier]=!0,[l,l];if(n=w(t.changedTouches),r=[],s=this.target,o=l.filter(function(t){return v(t.target,s)}),e===It)for(i=0;i-1&&i.splice(t,1)},setTimeout(o,te))}function Z(t){var e,i,o,n,r=t.srcEvent.clientX,s=t.srcEvent.clientY;for(e=0;e-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,o=this.state;o<_e&&e(i.options.event+et(o)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),o>=_e&&e(i.options.event+et(o))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=ge},canEmit:function(){for(var t=0;te.threshold&&n&e.direction},attrTest:function(t){return nt.prototype.attrTest.call(this,t)&&(this.state&de||!(this.state&de)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=it(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),d(st,nt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&de)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),d(at,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[re]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,o=t.distancee.time;if(this._input=t,!o||!i||t.eventType&(At|Mt)&&!n)this.reset();else if(t.eventType&It)this.reset(),this._timer=l(function(){this.state=fe,this.tryEmit()},e.time,this);else if(t.eventType&At)return fe;return ge},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===fe&&(t&&t.eventType&At?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Pe(),this.manager.emit(this.options.event,this._input)))}}),d(lt,nt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&de)}}),d(ct,nt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Bt|zt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Bt|zt)?e=t.overallVelocity:i&Bt?e=t.overallVelocityX:i&zt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&xe(e)>this.options.velocity&&t.eventType&At},emit:function(t){var e=it(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t), this.manager.emit(this.options.event,t)}}),d(ht,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e,i,o=this.options,n=t.pointers.length===o.pointers,r=t.distance'},function(t,e,i){"use strict";function o(t){var e,i=[],n=t.m_items;for(e=0;e"),this.jqMenu=t,t.attr("cellspacing","0"),t.attr("cellpadding","0"),t.addClass("context-menu"),t.addClass("submenu");for(e in this.m_items)i=this.m_items[e],n.renderItem(t,i)}else{t=u.create(r.MENU_TAG,o),this.jqMenu=t;for(e in this.m_items)i=this.m_items[e],n.renderItem(t,i)}return this.jqMenu},n.prototype.getAttributes=function(){var t={},e=["context-menu"];return this.options.attributes&&this.options.attributes.class&&e.push(this.options.attributes.class),t.cellspacing=0,t.cellpadding=0,t.class=e.join(),t},n.prototype.deploy=function(t,e){var i=this.wrapper();return this.jqMenu=i.append(this.render()),e?($(e).data("submenu",this.jqMenu),$(document.body).append(this.jqMenu),this.jqMenu.data("parent-menu",e),this.jqMenu.data("parent-item",t.currentTarget)):$(document.body).append(this.jqMenu),h.unbindContextMenu(this.jqMenu),this._setCoords(t),this.jqMenu},n.prototype.show=function(t,e){this.deploy(t,e).show()},n.prototype.hide=function(){ +this.element=null}},ft(ut,{INPUT_START:It,INPUT_MOVE:kt,INPUT_END:At,INPUT_CANCEL:Mt,STATE_POSSIBLE:ue,STATE_BEGAN:de,STATE_CHANGED:pe,STATE_ENDED:_e,STATE_RECOGNIZED:fe,STATE_CANCELLED:me,STATE_FAILED:ge,DIRECTION_NONE:Et,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:Vt,DIRECTION_UP:Ot,DIRECTION_DOWN:Rt,DIRECTION_HORIZONTAL:Bt,DIRECTION_VERTICAL:zt,DIRECTION_ALL:Ft,Manager:dt,Input:L,TouchAction:X,TouchInput:j,MouseInput:W,PointerEventInput:$,TouchMouseInput:G,SingleTouchInput:H,Recognizer:tt,AttrRecognizer:nt,Tap:ht,Pan:rt,Swipe:ct,Pinch:st,Rotate:lt,Press:at,on:m,off:g,each:h,merge:gt,extend:mt,assign:ft,inherit:d,bindFn:p,prefixed:C}),be=a!==n?n:"undefined"!=typeof self?self:{},be.Hammer=ut,(o=function(){return ut}.call(e,i,e,t))!==a&&(t.exports=o)}(window,document)},function(t,e){t.exports=''},function(t,e,i){"use strict";function o(t){var e,i=[],n=t.m_items;for(e=0;e"),this.jqMenu=t,t.attr("cellspacing","0"),t.attr("cellpadding","0"),t.addClass("context-menu"),t.addClass("submenu");for(e in this.m_items)i=this.m_items[e],n.renderItem(t,i)}else{t=u.create(r.MENU_TAG,o),this.jqMenu=t;for(e in this.m_items)i=this.m_items[e],n.renderItem(t,i)}return this.jqMenu},n.prototype.getAttributes=function(){var t={},e=["context-menu"];return this.options.attributes&&this.options.attributes.class&&e.push(this.options.attributes.class),t.cellspacing=0,t.cellpadding=0,t.class=e.join(),t},n.prototype.deploy=function(t,e){var i=this.wrapper();return this.jqMenu=i.append(this.render()),e?($(e).data("submenu",this.jqMenu),$(document.body).append(this.jqMenu),this.jqMenu.data("parent-menu",e),this.jqMenu.data("parent-item",t.currentTarget)):$(document.body).append(this.jqMenu),h.unbindContextMenu(this.jqMenu),this._setCoords(t),this.jqMenu},n.prototype.show=function(t,e){this.deploy(t,e).show()},n.prototype.hide=function(){ this.isShown()&&this.destroy()},n.prototype.destroy=function(){$.each(this.m_items,function(t,e){e._menu&&e._menu.destroy()}),this.jqMenu&&(this.jqMenu.remove(),this.jqMenu=null),this.m_wrapper.empty()},n.prototype._setCoords=function(t){var e,i,o,n,r,s,a,l=5,c=this.jqMenu,h=$(this.jqMenu.data("parent-item")),u={width:$(window).width(),height:Math.min($(window).height(),$("body").height())},d={top:$(document).scrollTop(),left:$(document).scrollLeft()};for(this.jqMenu.css({maxWidth:u.width-2*l,maxHeight:u.height-2*l}),e={width:c.outerWidth(),height:c.outerHeight()},h.size()?(o=h.offset(),i={top:o.top-1,left:o.left+h.outerWidth()}):i={top:t.pageY,left:t.pageX},this.jqMenu.offset(i),n=!1,r={},r.top=Math.min(i.top,u.height+d.top-e.height-l),i.left+e.width+l>u.width+d.left||this.options.reverse?(n=!0,r.left=i.left-e.width):r.left=i.left,s=t.target;s&&s!==document;s=s.parentNode)if("fixed"===$(s).css("position")){this.jqMenu.css("position","fixed");break}this.jqMenu.offset(r),n&&(a=e.width-this.jqMenu.outerWidth())&&(r.left+=a,this.jqMenu.offset(r))},n.prototype._wrapper=function(){var t=this,e=r.WRAPPER_ATTRIBUTES;return this._parentMenuItem?this.m_wrapper=u.create(r.WRAPPER_TAG,e):(this.m_wrapper=h.createPopup(e,void 0,{mouseDownOutsideEvent:function(e){var i=$();$.each(o(t),function(){i=i.add(this.m_wrapper)}),$(e.target).parents().andSelf().is(i)||t.hide()}}),this.m_wrapper.addClass("topmenu")),this.m_wrapper},n.prototype.wrapper=function(t){return this.m_wrapper||this._wrapper()},t.exports=n},function(t,e,i){"use strict";t.exports={INSERT_AT_END:0,INSERT_AT_START:1,INSERT_AT_POS:2,WRAPPER_TAG:"div",WRAPPER_ATTRIBUTES:{class:"context-menu-wrapper"},MENU_TAG:"table",ITEM_ROW_TAG:"tr",ICON_CELL_TAG:"td",TEXT_CELL_TAG:"td",RIGHT_CELL_TAG:"td",SUBMENU_CELL_TAG:"td"}},function(t,e,i){"use strict";function o(t){return"number"!=typeof t&&(t=TradingView.STUDY_COUNT_LIMIT),(0,n.createNoticeDialog)({title:$.t("Warning"),content:$.t("Studies limit exceeded: {0} studies per layout.
\nPlease, remove some studies.").format(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.createTooManyStudiesNotice=o;var n=i(145)},function(t,e,i){"use strict";var o,n,r,s,a;Object.defineProperty(e,"__esModule",{value:!0}),o=i(72),n=i(10),r=i(7),s=r.getLogger("Common.UndoStack"),a=function(){function t(){this._commands=[],this._onChange=new n}return t.prototype.onChange=function(){return this._onChange},t.prototype.isEmpty=function(){return 0===this._commands.length},t.prototype.clear=function(){this._commands.length=0,this._onChange.fire()},t.prototype.push=function(t){if(!(t instanceof o.UndoCommand))throw new TypeError("argument must be an instance of UndoCommand");this._commands.push(t),this._onChange.fire()},t.prototype.pop=function(){if(this.isEmpty())return void s.logDebug("pop: undo stack is empty");var t=this._commands.pop();return this._onChange.fire(),t},t.prototype.head=function(){if(!this.isEmpty())return this._commands[this._commands.length-1]},t}(),e.UndoStack=a},function(t,e,i){"use strict";var o,n,r,s,a -;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(72),r=function(t){function e(e,i,o){var n=t.call(this,o)||this;return n._chartModel=e,n._defaultProperty=i,n._state=i.state(),n}return o.__extends(e,t),e.prototype.undo=function(){this._defaultProperty.merge(this._state),this._defaultProperty.listeners().fire(this._defaultProperty),this._chartModel.mainSeries().onChartStyleChanged()},e}(n.UndoCommand),e.RestoreDefaultsUndoCommand=r,s=function(t){function e(e,i,o){return void 0===o&&(o="Restore User Defaults"),t.call(this,e,i,o)||this}return o.__extends(e,t),e.prototype.redo=function(){this._chartModel.restoreDefaults(this._defaultProperty)},e}(r),e.RestoreUserDefaultsUndoCommand=s,a=function(t){function e(e,i,o){return void 0===o&&(o="Restore Defaults"),t.call(this,e,i,o)||this}return o.__extends(e,t),e.prototype.redo=function(){this._chartModel.restoreFactoryDefaults(this._defaultProperty)},e}(r),e.RestoreFactoryDefaultsUndoCommand=a},function(t,e,i){"use strict";function o(t){i.e(4).then(function(e){i(413).showGoToDateDialog(t)}.bind(null,i)).catch(i.oe)}Object.defineProperty(e,"__esModule",{value:!0}),e.showGoToDateDialog=o},function(t,e){t.exports=''},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.AddCompareDialog=void 0,n=function(){function t(t,e){var i,o;for(i=0;i'},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.AddCompareDialog=void 0,n=function(){function t(t,e){var i,o;for(i=0;i0?"+":"-",n+=Math.floor(o/60),o%60&&(n+=":"+o%60)),i.getUTCFullYear()+"-"+("0"+(i.getUTCMonth()+1)).slice(-2)+"-"+("0"+i.getUTCDate()).slice(-2)+" "+("0"+i.getUTCHours()).slice(-2)+":"+("0"+i.getUTCMinutes()).slice(-2)+" ("+n+")"}function r(t){return"string"==typeof t&&0!==t.trim().length}function s(t){var e,i,o,n,s;if(!t||0===t.length)return!0;for(e=0;e2&&void 0!==arguments[2]&&arguments[2];return t.hasOwnProperty("text")?t.hasOwnProperty("color")&&i?e.append($("",{style:"color: "+t.color}).text(t.text)):e.text(t.text):e.text(t)}function l(t,e){if(Array.isArray(t)&&2===t.length)$("
").append(a(t[0],$("
")),a(t[1],$("
"),!0)).appendTo(e);else if(t.hasOwnProperty("br")&&t.br)$("
").appendTo(e);else{var i=$("
").append(a(t,$("
"))).appendTo(e);t.hasOwnProperty("listItem")&&i.addClass("list-item")}}function c(t,e){$("").attr("href",t.href).text(t.text).addClass(t.class).appendTo(e)}function h(t,e){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("string"==typeof t)$("

").text(t).appendTo(e);else if(t.hasOwnProperty("lines"))for(i=0;i").text(t.lines[i].line).appendTo(e):l(t.lines[i].line,e):t.lines[i].hasOwnProperty("link")&&c(t.lines[i].link,e);else t.hasOwnProperty("title")&&$("

").text(t.title).appendTo(e),t.hasOwnProperty("actual")&&$("
").append($("
").text($.t("Actual")+": "),$("
").text(t.actual||"—")).appendTo(e),t.hasOwnProperty("forecast")&&$("
").append($("
").text($.t("Forecast")+": "),$("
").text(t.forecast||"—")).appendTo(e),t.hasOwnProperty("previous")&&$("
").append($("
").text($.t("Previous")+": "),$("
").text(t.previous||"—")).appendTo(e),t.hasOwnProperty("timestamp")&&$("
").append($("
").text($.t("Date")+": "),$("
").text(n(t.timestamp,o)||"—")).appendTo(e)}var u;Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0,u=function(){function t(t,e){var i,o;for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.direction,n=void 0===i?"top":i,r=e.clickable,s=void 0!==r&&r,a=e.wide,l=void 0!==a&&a;o(this,t),this._direction=n,this._tooltipShown=!1,this._tooltipX=void 0,this._tooltipY=void 0,this._tooltipItems=null,this._width=l?250:200,this._$tooltip=$("
").addClass("tv-chart-events-source__tooltip").css({position:"absolute",width:this._width+"px"}),this._$tooltipContent=$("
").addClass("tv-chart-events-source__tooltip__content").appendTo(this._$tooltip), -s&&this._$tooltip.addClass("tv-chart-events-source__tooltip--clickable")}return u(t,[{key:"show",value:function(){var t,e,i,o,n,r,a,l,c,u,d,p,_,f,m,g,v,y,b,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},w=S.items,T=void 0===w?[]:w,C=S.x,x=void 0===C?0:C,P=S.y,L=void 0===P?0:P,I=S.wrapElement,k=void 0===I?null:I,A=S.timeOffset,M=void 0===A?"":A,E=S.leftBorderColor,D=void 0===E?null:E;if(k&&!s(T)){if(t=$(k).width(),e=$(k).height(),i=!1,o=!1,this._tooltipShown||(this._$tooltip.appendTo(k),this._tooltipShown=!0,i=!0,o=!0),x===this._tooltipX&&L===this._tooltipY||(i=!0),i&&(n=Math.max(Math.min(x-this._width/2,t-this._width-10),0),this._$tooltip.css({left:Math.round(n),bottom:Math.round(e-L+10)})),this._tooltipItems||(o=!0),!o)for(r=T.length;r--;)if(this._tooltipItems[r]!==T[r]){o=!0;break}if(o){if(a=void 0,T.length<=1)a=T;else{for(l={},c=T.length;c--;)u=T[c].importance,null==u&&(u=-1),l[u]||(l[u]=[]),l[u].push(T[c]);if(d=Object.keys(l).sort(function(t,e){return t-e}),d.length<=1)a=l[d[0]];else for(a=[],p=d.length;p--;)for(_=l[d[p]],f=_.length;f--;)a.push(_[f])}for(this._$tooltipContent.empty(),m=a.length;m--;)g=a[m],v="",g.hasOwnProperty("importance")?("string"==typeof g.importance&&("earnings"===g.importance?v="--importance-earnings":"splits"===g.importance?v="--importance-splits":"dividends"===g.importance?v="--importance-dividends":"list"===g.importance&&(v="--importance-list")),0===g.importance?v="--importance-normal":g.importance>0&&(v="--importance-high")):D||(v="--importance-none"),y="tv-chart-events-source__tooltip__item",v&&(y+=" "+y+v),b=$("
").attr("class",y),D&&b.css("border-left-color",D),h(g,b,M),b.appendTo(this._$tooltipContent);this._tooltipItems=T}"bottom"===this._direction&&this._$tooltip.css({bottom:Math.round(e-L-this._$tooltipContent.height()+10)})}}},{key:"hide",value:function(){this._tooltipShown&&(this._$tooltip.detach(),this._tooltipShown=!1)}},{key:"isOpened",value:function(){return this._tooltipShown}}]),t}()},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),o=i(13),i(43),n=i(351),r=i(31),s=i(24),a=i(10),l=i(17),c=i(134),h=i(416),u='
'+(Modernizr.touch?'
':"")+'
'+h+'
',i(974),d=function(){function t(e){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new l(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new a,t._toolbars.push(this),this._options=e,this._widget=o(u).get(0),this._content=this._widget.getElementsByClassName("js-content").item(0),this._setZIndex(t._startZIndex+t._toolbars.length-1),this._options.addClass&&(this._widget.className+=" "+this._options.addClass), +var i=new Date(t+e),o=Math.round(Math.abs(e)/6e4),n="UTC";return 0!==o&&(n+=e>0?"+":"-",n+=Math.floor(o/60),o%60&&(n+=":"+o%60)),i.getUTCFullYear()+"-"+("0"+(i.getUTCMonth()+1)).slice(-2)+"-"+("0"+i.getUTCDate()).slice(-2)+" "+("0"+i.getUTCHours()).slice(-2)+":"+("0"+i.getUTCMinutes()).slice(-2)+" ("+n+")"}function r(t){return"string"==typeof t&&0!==t.trim().length}function s(t){var e,i,o,n,s;if(!t||0===t.length)return!0;for(e=0;e2&&void 0!==arguments[2]&&arguments[2];return t.hasOwnProperty("text")?t.hasOwnProperty("color")&&i?e.append($("",{style:"color: "+t.color}).text(t.text)):e.text(t.text):e.text(t)}function l(t,e){if(Array.isArray(t)&&2===t.length)$("
").append(a(t[0],$("
")),a(t[1],$("
"),!0)).appendTo(e);else if(t.hasOwnProperty("br")&&t.br)$("
").appendTo(e);else{var i=$("
").append(a(t,$("
"))).appendTo(e);t.hasOwnProperty("listItem")&&i.addClass("list-item")}}function c(t,e){$("").attr("href",t.href).text(t.text).addClass(t.class).appendTo(e)}function h(t,e){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("string"==typeof t)$("

").text(t).appendTo(e);else if(t.hasOwnProperty("lines"))for(i=0;i").text(t.lines[i].line).appendTo(e):l(t.lines[i].line,e):t.lines[i].hasOwnProperty("link")&&c(t.lines[i].link,e);else t.hasOwnProperty("title")&&$("

").text(t.title).appendTo(e),t.hasOwnProperty("actual")&&$("
").append($("
").text($.t("Actual")+": "),$("
").text(t.actual||"—")).appendTo(e),t.hasOwnProperty("forecast")&&$("
").append($("
").text($.t("Forecast")+": "),$("
").text(t.forecast||"—")).appendTo(e),t.hasOwnProperty("previous")&&$("
").append($("
").text($.t("Previous")+": "),$("
").text(t.previous||"—")).appendTo(e),t.hasOwnProperty("timestamp")&&$("
").append($("
").text($.t("Date")+": "),$("
").text(n(t.timestamp,o)||"—")).appendTo(e)}var u;Object.defineProperty(e,"__esModule",{value:!0}),e.Tooltip=void 0,u=function(){function t(t,e){var i,o;for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.direction,n=void 0===i?"top":i,r=e.clickable,s=void 0!==r&&r,a=e.wide,l=void 0!==a&&a;o(this,t),this._direction=n,this._tooltipShown=!1,this._tooltipX=void 0,this._tooltipY=void 0,this._tooltipItems=null,this._width=l?250:200,this._$tooltip=$("
").addClass("tv-chart-events-source__tooltip").css({position:"absolute",width:this._width+"px"}),this._$tooltipContent=$("
").addClass("tv-chart-events-source__tooltip__content").appendTo(this._$tooltip), +s&&this._$tooltip.addClass("tv-chart-events-source__tooltip--clickable")}return u(t,[{key:"show",value:function(){var t,e,i,o,n,r,a,l,c,u,d,p,_,f,m,g,v,y,b,S=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},w=S.items,T=void 0===w?[]:w,C=S.x,x=void 0===C?0:C,P=S.y,L=void 0===P?0:P,I=S.wrapElement,k=void 0===I?null:I,A=S.timeOffset,M=void 0===A?"":A,E=S.leftBorderColor,D=void 0===E?null:E;if(k&&!s(T)){if(t=$(k).width(),e=$(k).height(),i=!1,o=!1,this._tooltipShown||(this._$tooltip.appendTo(k),this._tooltipShown=!0,i=!0,o=!0),x===this._tooltipX&&L===this._tooltipY||(i=!0),i&&(n=Math.max(Math.min(x-this._width/2,t-this._width-10),0),this._$tooltip.css({left:Math.round(n),bottom:Math.round(e-L+10)})),this._tooltipItems||(o=!0),!o)for(r=T.length;r--;)if(this._tooltipItems[r]!==T[r]){o=!0;break}if(o){if(a=void 0,T.length<=1)a=T;else{for(l={},c=T.length;c--;)u=T[c].importance,null==u&&(u=-1),l[u]||(l[u]=[]),l[u].push(T[c]);if(d=Object.keys(l).sort(function(t,e){return t-e}),d.length<=1)a=l[d[0]];else for(a=[],p=d.length;p--;)for(_=l[d[p]],f=_.length;f--;)a.push(_[f])}for(this._$tooltipContent.empty(),m=a.length;m--;)g=a[m],v="",g.hasOwnProperty("importance")?("string"==typeof g.importance&&("earnings"===g.importance?v="--importance-earnings":"splits"===g.importance?v="--importance-splits":"dividends"===g.importance?v="--importance-dividends":"list"===g.importance&&(v="--importance-list")),0===g.importance?v="--importance-normal":g.importance>0&&(v="--importance-high")):D||(v="--importance-none"),y="tv-chart-events-source__tooltip__item",v&&(y+=" "+y+v),b=$("
").attr("class",y),D&&b.css("border-left-color",D),h(g,b,M),b.appendTo(this._$tooltipContent);this._tooltipItems=T}"bottom"===this._direction&&this._$tooltip.css({bottom:Math.round(e-L-this._$tooltipContent.height()+10)})}}},{key:"hide",value:function(){this._tooltipShown&&(this._$tooltip.detach(),this._tooltipShown=!1)}},{key:"isOpened",value:function(){return this._tooltipShown}}]),t}()},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),o=i(13),i(43),n=i(352),r=i(31),s=i(24),a=i(10),l=i(17),c=i(134),h=i(417),u='
'+(Modernizr.touch?'
':"")+'
'+h+'
',i(975),d=function(){function t(e){this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new l(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new a,t._toolbars.push(this),this._options=e,this._widget=o(u).get(0),this._content=this._widget.getElementsByClassName("js-content").item(0),this._setZIndex(t._startZIndex+t._toolbars.length-1),this._options.addClass&&(this._widget.className+=" "+this._options.addClass), this._options.layout&&"auto"!==this._options.layout&&(this._isVertical="vertical"===this._options.layout,this._updateLayoutType())}return t.prototype.destroy=function(){this.hide(!0),t._toolbars.splice(t._toolbars.indexOf(this),1),document.body.contains(this._widget)&&document.body.removeChild(this._widget),this._widget.innerHTML=""},t.prototype.isVisible=function(){return this._visibility.value()},t.prototype.visibility=function(){return this._visibility.readonly()},t.prototype.isVertical=function(){return this._isVertical},t.prototype.show=function(){var t=this;this.isVisible()||(document.body.contains(this._widget)||(this._init(),document.body.appendChild(this._widget)),this._setHiddingTimeout(null),window.addEventListener("resize",this._windowResizeListener),this.raise(),this._visibility.setValue(!0),this._widget.classList.contains("i-hidden")?(this._widget.classList.remove("i-hidden"),setTimeout(function(){t.isVisible()&&t._widget.classList.remove("i-closed")})):this._widget.classList.remove("i-closed"),this._onWindowResize())},t.prototype.hide=function(t){var e,i,o=this;void 0===t&&(t=!1),this.isVisible()&&(e=this._widget.classList.contains("i-closed"),this._widget.classList.add("i-closed"),this._visibility.setValue(!1),t||e?(this._setHiddingTimeout(null),this._widget.classList.add("i-hidden")):(i=setTimeout(function(){o._setHiddingTimeout(null),o._widget.classList.add("i-hidden")},this.hideDuration()),this._setHiddingTimeout(i)),window.removeEventListener("resize",this._windowResizeListener))},t.prototype.raise=function(){t._toolbars.length+t._startZIndex!==this._zIndex()&&(t._toolbars.splice(t._toolbars.indexOf(this),1),t._toolbars.push(this),t._updateAllZIndexes())},t.prototype.hideDuration=function(){return.75*r.dur},t.prototype.addWidget=function(t,e){var i,o,n;if(void 0===e&&(e={}),i=this.widgetsCount(),void 0===e.index&&(e.index=i),e.index<0||e.index>i)throw Error("Index must be in [0, "+i+"]");o=document.createElement("div"),o.className="tv-floating-toolbar__widget js-widget",o.appendChild(t),n=e.index===i?null:this._content.childNodes.item(e.index),this._content.insertBefore(o,n),this._onWindowResize()},t.prototype.removeWidget=function(t){var e=this._findWrapperForWidget(t);e&&(this._content.removeChild(e),this._onWindowResize())},t.prototype.widgetsCount=function(){return this._content.childNodes.length},t.prototype.showWidget=function(t){var e=this._findWrapperForWidget(t);e&&e.classList.remove("i-hidden")},t.prototype.hideWidget=function(t){var e=this._findWrapperForWidget(t);e&&e.classList.add("i-hidden")},t.prototype.removeWidgets=function(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()},t.prototype.onWidgetsReordered=function(){return this._reorderedDelegate},t.prototype.onContextMenu=function(t){var e,i=this;Modernizr.touch?(e=new n(this._widget),e.get("press").set({time:500}),e.on("press",function(e){i._preventWidgetTouchEndEvent(),t(e.srcEvent)})):this._widget.addEventListener("contextmenu",t)}, t.prototype._determineCurrentLayoutVertical=function(t){var 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)},t.prototype._setZIndex=function(t){this._widget.style.zIndex=t+""},t.prototype._zIndex=function(){return+this._widget.style.zIndex},t.prototype._loadPosition=function(){var t=s.getJSON(this._options.positionSettingsKey,this._options.defaultPosition);this._widget.style.left=Math.round(t.left)+"px",this._widget.style.top=Math.round(t.top)+"px",this._onWindowResize()},t.prototype._savePosition=function(){var t=this._widget.getBoundingClientRect();s.setJSON(this._options.positionSettingsKey,{left:t.left,top:t.top})},t.prototype._init=function(){this._loadPosition(),c.lazyJqueryUI(o(this._widget)).draggable({containment:"window",drag:this._onDragEvent.bind(this),handle:".js-drag",stop:this._savePosition.bind(this)}),this._options.allowSortable&&this._initSortable(),this._widget.addEventListener(Modernizr.touch?"touchstart":"mousedown",this.raise.bind(this))},t.prototype._onDragEvent=function(t,e){this._correctPosition(e.position)},t.prototype._initSortable=function(){var t=this,e=-1;c.lazyJqueryUI(o(this._content)).sortable({start:function(t,i){e=i.item.index()},stop:function(i,o){var n=o.item.index();e!==n&&t._reorderedDelegate.fire(e,n)},tolerance:"point"})},t.prototype._getCorrectedWidgetRect=function(){var t,e,i,o,n=this._widget.getBoundingClientRect();return this._widget.classList.contains("i-closed")?(t=.925,e=1/t-1,i=n.width*e,o=n.height*e,{bottom:n.bottom+o/2,height:n.height+o, left:n.left-i/2,right:n.right+i/2,top:n.top-o/2,width:n.width+i}):n},t._updateAllZIndexes=function(){t._toolbars.forEach(function(e,i){e._setZIndex(t._startZIndex+i)})},t._startZIndex=20,t._toolbars=[],t}(),e.FloatingToolbar=d},function(t,e,i){"use strict";(function(e){var o=i(58),n=i(34).Interval,r=i(10),s=i(5),a=function(t,e){this._server=t,this._session=e,this._timezone=null,this._timezoneId="",this._isDWM=!1,this._resolution=null,this.seriesCompleted=new r,this._lastBarTimes={}};a.prototype.lastBarTime=function(t){return this._lastBarTimes[t]},a.prototype._userTimezone=function(){return this._timezone},a.prototype.setTimezone=function(t){this._timezone="exchange"===t?"exchange":e.get_timezone(t),this._timezoneId=t},a.prototype.timezone=function(){return this._timezoneId},a.prototype.setResolution=function(t){this._isDWM=n.isDWM(t),this._resolution=t},a.prototype.onRequestMetadata=function(t,e){this._server.receiveLocalResponse({method:"studies_metadata",params:[this._session,t,e]})},a.prototype.onSymbolResolved=function(t,e){this._server.receiveLocalResponse({method:"symbol_resolved",params:[this._session,t,e]})},a.prototype.onSymbolError=function(t,e){this._server.receiveLocalResponse({method:"symbol_error",params:[this._session,t,e]})},a.prototype.onStudyError=function(t,e){this._server.receiveLocalResponse({method:"study_error",params:[this._session,t,e]})},a.prototype.onSeriesLoading=function(t,e){this._server.receiveLocalResponse({method:"series_loading",params:[this._session,t,e]})},a.prototype.onSeriesCompleted=function(t,e,i){this._server.receiveLocalResponse({method:"series_completed",params:[this._session,t,i,e]}),this.seriesCompleted.fire(t)},a.prototype.onSeriesError=function(t,e){this._server.receiveLocalResponse({method:"series_error",params:[this._session,t,e]})},a.prototype.onSeriesClearData=function(t,e){var i={};i[t]={series:[],turnaround:e},this._server.receiveLocalResponse({method:"timescale_update",params:[this._session,i,{index:0,zoffset:0,changes:[],marks:[],index_diff:[]}]})},a.prototype.onStudyCompleted=function(t,e){this._server.receiveLocalResponse({method:"study_completed",params:[this._session,t,e]})},a.prototype.onStudyLoading=function(t,e){this._server.receiveLocalResponse({method:"study_loading",params:[this._session,t,e]})},a.prototype._calcMarksTime=function(t,i,n,r,a){var l,c,h,u,d,p=e.get_timezone(i),_=this;if(this._isDWM&&!s.enabled("disable_resolution_rebuild"))for(d=new o.Session,d.init(p,n),u=0;u=0;--a)if(Math.floor(r/l[a].divisor)!==Math.floor(s/l[a].divisor))return l[a].span},TradingView.ChartapiMessagerInstances=[],t.exports=a}).call(e,i(50)) },function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.supportedLineTools={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",onlySelectable:!0},text:{name:"LineToolText",supportsText:!0},anchored_text:{name:"LineToolTextAbsolute",supportsText:!0},note:{name:"LineToolNote",supportsText:!0},anchored_note:{name:"LineToolNoteAbsolute",supportsText:!0},callout:{name:"LineToolCallout",supportsText:!0},balloon:{name:"LineToolBalloon",supportsText:!0},arrow_up:{name:"LineToolArrowMarkUp",supportsText:!0},arrow_down:{name:"LineToolArrowMarkDown",supportsText:!0},arrow_left:{name:"LineToolArrowMarkLeft",supportsText:!0},arrow_right:{name:"LineToolArrowMarkRight",supportsText:!0},price_label:{name:"LineToolPriceLabel"},flag:{name:"LineToolFlagMark"},vertical_line:{name:"LineToolVertLine"},horizontal_line:{name:"LineToolHorzLine"},horizontal_ray:{name:"LineToolHorzRay"},trend_line:{name:"LineToolTrendLine"},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"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"}}},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(48),n=function(){function t(){}return t.prototype.init=function(t,e){t.new_sym(e(1),o.Std.period(t),o.Std.period(t)),this._source=e(0),this._scaleFactor1=1,this._scaleFactor2=1},t.prototype.main=function(t,e){var i,n,r,s,a,l,c=t.symbol.time,h=o.Std[this._source](t);return t.select_sym(1),i=o.Std[this._source](t),n=t.new_var(i),r=t.new_var(t.symbol.time),isNaN(t.symbol.time)&&(n.indexOf(0),r.indexOf(0)),t.select_sym(0),isNaN(c)?null:(s=r.indexOf(c),-1!==s&&r.get(s)!==c&&(s=-1),a=s<0?NaN:n.get(s),l=this._doCalculation(this._scaleFactor1,h,this._scaleFactor2,a),[l])},t}(),e.SpreadRatioBase=n,e.spreadRatioDefaults={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},e.spreadRatioInputs=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],e.spreadRatioPlots=[{id:"plot1",type:"line"}],e.spreadRatioStyles={plot1:{title:"Plot",histogramBase:0}}},function(t,e,i){"use strict";function o(t){var e,i=t.dropped,o=t.className;return n.createElement(s.Icon,{className:r(o,a.icon,(e={},e[a.dropped]=i,e)),icon:l})}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),n=i(2),r=i(14),s=i(59),a=i(1024),l=i(297),e.ToolWidgetCaret=o},function(t,e,i){"use strict";var o,n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=i(14),s=i(103),a=i(1027),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleClick=function(){var t=e.props,i=t.onClick,o=t.onClickArg;i&&i(o)},e}return o.__extends(e,t),e.prototype.render=function(){var t,e=this.props,i=e.isFirst,o=e.isLast,l=e.hint,c=e.text,h=e.icon,u=e.isActive,d=e.isDisabled,p=e.className;return n.createElement(s.ToolWidgetButton,{icon:h,text:c,title:l,isDisabled:d,isActive:u,onClick:this._handleClick,className:r(p,a.button,(t={},t[a.first]=i,t[a.last]=o,t))})},e}(n.PureComponent),e.ToolWidgetQuickButton=l},function(t,e,i){"use strict";var o,n,r,s,a,l,c;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),i(12),n=i(2),r=i(14),s=i(1043),a=i(1044),l={remove:window.t("Remove")},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleClick=function(t){var i=e.props,o=i.onClick,n=i.onClickArg;o&&o(n,t)},e} +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"},ellipse:{name:"LineToolEllipse"},triangle:{name:"LineToolTriangle"},polyline:{name:"LineToolPolyline"},curve:{name:"LineToolBezierQuadro"},double_curve:{name:"LineToolBezierCubic"},arc:{name:"LineToolArc"},icon:{name:"LineToolIcon"}}},function(t,e,i){"use strict";var o,n;Object.defineProperty(e,"__esModule",{value:!0}),o=i(48),n=function(){function t(){}return t.prototype.init=function(t,e){t.new_sym(e(1),o.Std.period(t),o.Std.period(t)),this._source=e(0),this._scaleFactor1=1,this._scaleFactor2=1},t.prototype.main=function(t,e){var i,n,r,s,a,l,c=t.symbol.time,h=o.Std[this._source](t);return t.select_sym(1),i=o.Std[this._source](t),n=t.new_var(i),r=t.new_var(t.symbol.time),isNaN(t.symbol.time)&&(n.indexOf(0),r.indexOf(0)),t.select_sym(0),isNaN(c)?null:(s=r.indexOf(c),-1!==s&&r.get(s)!==c&&(s=-1),a=s<0?NaN:n.get(s),l=this._doCalculation(this._scaleFactor1,h,this._scaleFactor2,a),[l])},t}(),e.SpreadRatioBase=n,e.spreadRatioDefaults={styles:{plot1:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#800080"}},precision:2,inputs:{source:"close",symbol2:""}},e.spreadRatioInputs=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],e.spreadRatioPlots=[{id:"plot1",type:"line"}],e.spreadRatioStyles={plot1:{title:"Plot",histogramBase:0}}},function(t,e,i){"use strict";function o(t){var e,i=t.dropped,o=t.className;return n.createElement(s.Icon,{className:r(o,a.icon,(e={},e[a.dropped]=i,e)),icon:l})}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),n=i(2),r=i(14),s=i(59),a=i(1025),l=i(298),e.ToolWidgetCaret=o},function(t,e,i){"use strict";var o,n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=i(14),s=i(103),a=i(1028),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleClick=function(){var t=e.props,i=t.onClick,o=t.onClickArg;i&&i(o)},e}return o.__extends(e,t),e.prototype.render=function(){var t,e=this.props,i=e.isFirst,o=e.isLast,l=e.hint,c=e.text,h=e.icon,u=e.isActive,d=e.isDisabled,p=e.className;return n.createElement(s.ToolWidgetButton,{icon:h,text:c,title:l,isDisabled:d,isActive:u,onClick:this._handleClick,className:r(p,a.button,(t={},t[a.first]=i,t[a.last]=o,t))})},e}(n.PureComponent),e.ToolWidgetQuickButton=l},function(t,e,i){"use strict";var o,n,r,s,a,l,c;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),i(12),n=i(2),r=i(14),s=i(1044),a=i(1045),l={remove:window.t("Remove")},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleClick=function(t){var i=e.props,o=i.onClick,n=i.onClickArg;o&&o(n,t)},e} return o.__extends(e,t),e.prototype.render=function(){return n.createElement("span",{className:r(s.button,"apply-common-tooltip",this.props.hidden&&s.hidden),dangerouslySetInnerHTML:{__html:a},onClick:this._handleClick,title:l.remove})},e}(n.PureComponent),e.RemoveButton=c},function(t,e,i){"use strict";var o,n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(8),r=i(64),s=i(11),a=i(131),l=function(){function t(t,e){this._invalidated=!0,this._middlePoint=null,this._points=[],this._floatPoints=[],this._source=t,this._model=e}return t.prototype.priceToCoordinate=function(t){var e,i,o,n=this._source.priceScale();return null===n?null:null===(e=n.priceRange())?null:(n.isPercent()&&null!==(i=this._source.ownerSource())&&null!==(o=i.firstValue())&&void 0!==o&&(t=e.convertToPercent(t,o)),n.priceToCoordinate(t))},t.prototype.currentPoint=function(){var t=this._model.crossHairSource();return new n.Point(t.x,t.y)},t.prototype.anchorColor=function(){return this._source.isBeingEdited()?"#D61AD3":this._model.isDark()?"#FFFFFF":"#606060"},t.prototype.isHoveredSource=function(){return this._source===this._model.hoveredSource()},t.prototype.isSelectedSource=function(){return this._source===this._model.selectedSource()},t.prototype.isAnchorsRequired=function(){return(this.isHoveredSource()||this.isSelectedSource())&&!this._model.isSnapshot()},t.prototype.update=function(){this._invalidated=!0},t.prototype.addAnchors=function(t){if(this.isAnchorsRequired()){var e=this._points;this._model.lineBeingCreated()===this._source&&(e=e.slice(0,-1)),t.append(this.createLineAnchor({points:e}))}},t.prototype.createLineAnchor=function(t){var e=r.CheckMobile.any();return new a.LineAnchor(o.__assign({},t,{color:this.anchorColor(),backgroundColor:this._model.backgroundColor(),currentPoint:this.currentPoint(),linePointBeingEdited:this._model.linePointBeingEdited(),hittestResult:s.CHANGEPOINT,radius:(e?15:7)+(this.isSelectedSource()?1:0),strokeWidth:(e?3:1)+(this.isSelectedSource()?1:0)}))},t.prototype._updateImpl=function(){var t,e,i,o,n,r,s,a;if(this._points=[],this._floatPoints=[],t=this._source.priceScale(),e=this._model.timeScale(),t&&!t.isEmpty()&&!e.isEmpty()){for(i=this._source.points(),o=0;o50?t-50:0});return s.rgbToString(i)}function n(t){var e,i,o,n=[];for(e=0,i=t;e');return null!==t&&i.appendTo(t),void 0!==e.addClass&&i.addClass(e.addClass), -$('
').appendTo(i),$('').tvcolorpicker({customColors:n(a.getJSON("pickerCustomColors",[])),direction:e.direction,hideTransparency:!!e.hideTransparency}).on("change",function(){$(this).css("border-color",o($(this).val()||l))}).bind("customcolorchange",function(t,e){a.setJSON("pickerCustomColors",e)}).appendTo(i),i}var s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),i(13),i(284),s=i(32),a=i(24),l="#727272",e.addColorPicker=r},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h;Object.defineProperty(e,"__esModule",{value:!0}),o=i(11),n=i(44),r=i(60),s=i(8),a=i(30),l=i(9),c=i(90),h=function(){function t(t,e,i){this._data=null,this._hitTestResult=t||new o(o.MOVEPOINT),this._backHitTestResult=e||new o(o.MOVEPOINT_BACKGROUND),this._forceOverrideTransparency=!!i}return t.prototype.setData=function(t){this._data=t},t.prototype.draw=function(t){var e,i,o,n;null===this._data||this._data.points.length<2||(t.lineCap="butt",t.strokeStyle=this._data.color,t.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&c.setLineStyle(t,this._data.linestyle),e=this._data.points,i=e[0],o=e[1],n=o.subtract(i),t.beginPath(),t.rect(i.x,i.y,n.x,n.y),this._data.linewidth>0&&t.stroke(),this._data.fillBackground&&(t.fillStyle=this.getColor(),t.fill()))},t.prototype.hitTest=function(t){var e,i,o,a,l,c,h,u,d,p;return null===this._data||this._data.points.length<2||this._data.nohittest?null:(e=this._data.points,i=e[0],o=e[1],a=new s.Point(o.x,i.y),l=new s.Point(i.x,o.y),c=n.distanceToSegment(i,a,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(a,o,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(o,l,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(l,i,t),c.distance<=3?this._hitTestResult:this._data.fillBackground&&(h=Math.min(i.x,o.x),u=Math.max(i.x,o.x),d=Math.min(i.y,o.y),p=Math.max(i.y,o.y),i=new s.Point(h,d),o=new s.Point(u,p),r.pointInRectangle(t,i,o))?this._backHitTestResult:null))))},t.prototype.getColor=function(){var t=l.ensure(this._data);return a.generateColor(t.backcolor,t.transparency,this._forceOverrideTransparency)},t}(),e.RectangleRenderer=h},function(t,e,i){"use strict";var o,n,r,s;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=i(39),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleOutsideEvent=function(t){e.props.handler&&!r.findDOMNode(e).contains(t.target)&&e.props.handler(t)},e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.props.click&&document.addEventListener("click",this._handleOutsideEvent,!1),this.props.mouseDown&&document.addEventListener("mousedown",this._handleOutsideEvent,!1),this.props.touchEnd&&document.addEventListener("touchend",this._handleOutsideEvent,!1),this.props.touchStart&&document.addEventListener("touchstart",this._handleOutsideEvent,!1)},e.prototype.componentWillUnmount=function(){this.props.click&&document.removeEventListener("click",this._handleOutsideEvent,!1), +$('
').appendTo(i),$('').tvcolorpicker({customColors:n(a.getJSON("pickerCustomColors",[])),direction:e.direction,hideTransparency:!!e.hideTransparency}).on("change",function(){$(this).css("border-color",o($(this).val()||l))}).bind("customcolorchange",function(t,e){a.setJSON("pickerCustomColors",e)}).appendTo(i),i}var s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),i(13),i(285),s=i(32),a=i(24),l="#727272",e.addColorPicker=r},function(t,e,i){"use strict";var o,n,r,s,a,l,c,h;Object.defineProperty(e,"__esModule",{value:!0}),o=i(11),n=i(44),r=i(60),s=i(8),a=i(30),l=i(9),c=i(90),h=function(){function t(t,e,i){this._data=null,this._hitTestResult=t||new o(o.MOVEPOINT),this._backHitTestResult=e||new o(o.MOVEPOINT_BACKGROUND),this._forceOverrideTransparency=!!i}return t.prototype.setData=function(t){this._data=t},t.prototype.draw=function(t){var e,i,o,n;null===this._data||this._data.points.length<2||(t.lineCap="butt",t.strokeStyle=this._data.color,t.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&c.setLineStyle(t,this._data.linestyle),e=this._data.points,i=e[0],o=e[1],n=o.subtract(i),t.beginPath(),t.rect(i.x,i.y,n.x,n.y),this._data.linewidth>0&&t.stroke(),this._data.fillBackground&&(t.fillStyle=this.getColor(),t.fill()))},t.prototype.hitTest=function(t){var e,i,o,a,l,c,h,u,d,p;return null===this._data||this._data.points.length<2||this._data.nohittest?null:(e=this._data.points,i=e[0],o=e[1],a=new s.Point(o.x,i.y),l=new s.Point(i.x,o.y),c=n.distanceToSegment(i,a,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(a,o,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(o,l,t),c.distance<=3?this._hitTestResult:(c=n.distanceToSegment(l,i,t),c.distance<=3?this._hitTestResult:this._data.fillBackground&&(h=Math.min(i.x,o.x),u=Math.max(i.x,o.x),d=Math.min(i.y,o.y),p=Math.max(i.y,o.y),i=new s.Point(h,d),o=new s.Point(u,p),r.pointInRectangle(t,i,o))?this._backHitTestResult:null))))},t.prototype.getColor=function(){var t=l.ensure(this._data);return a.generateColor(t.backcolor,t.transparency,this._forceOverrideTransparency)},t}(),e.RectangleRenderer=h},function(t,e,i){"use strict";var o,n,r,s;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=i(39),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleOutsideEvent=function(t){e.props.handler&&!r.findDOMNode(e).contains(t.target)&&e.props.handler(t)},e}return o.__extends(e,t),e.prototype.componentDidMount=function(){this.props.click&&document.addEventListener("click",this._handleOutsideEvent,!1),this.props.mouseDown&&document.addEventListener("mousedown",this._handleOutsideEvent,!1),this.props.touchEnd&&document.addEventListener("touchend",this._handleOutsideEvent,!1),this.props.touchStart&&document.addEventListener("touchstart",this._handleOutsideEvent,!1)},e.prototype.componentWillUnmount=function(){this.props.click&&document.removeEventListener("click",this._handleOutsideEvent,!1), this.props.mouseDown&&document.removeEventListener("mousedown",this._handleOutsideEvent,!1),this.props.touchEnd&&document.removeEventListener("touchend",this._handleOutsideEvent,!1),this.props.touchStart&&document.removeEventListener("touchstart",this._handleOutsideEvent,!1)},e.prototype.render=function(){var t=this.props,e=(t.click,t.handler,t.mouseDown,t.touchEnd,t.touchStart,t.ctor),i=void 0===e?"span":e,r=o.__rest(t,["click","handler","mouseDown","touchEnd","touchStart","ctor"]);return n.createElement(i,o.__assign({},r))},e}(n.Component),e.OutsideEvent=s},function(t,e,i){"use strict";function o(t,e,i){this._cache=t,this._cacheRect=e,this._targetRect=i}var n=i(8).Point,r=i(60).pointInRectangle,s=i(11);o.prototype.draw=function(t){t.translate(.5,.5),t.drawImage(this._cache,this._cacheRect.left,this._cacheRect.top,this._cacheRect.width,this._cacheRect.height,this._targetRect.left,this._targetRect.top,this._targetRect.width,this._targetRect.height),t.translate(-.5,-.5)},o.prototype.hitTest=function(t){var e=new n(this._targetRect.left,this._targetRect.top),i=e.add(new n(this._targetRect.width,this._targetRect.height));return r(t,e,i)?new s(s.REGULAR):null},t.exports=o},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(11),n=i(90),r=function(){function t(){this._data=null,this._hitTest=null}return t.prototype.setData=function(t){this._data=t},t.prototype.setHitTest=function(t){this._hitTest=t},t.prototype.draw=function(t){if(null!==this._data&&0!==this._data.points.length&&!(this._data.linewidth<=0)){var e=this._data.points[0].x;e<0||e>this._data.width||(t.translate(1,0),t.lineCap="square",t.strokeStyle=this._data.color,t.lineWidth=this._data.linewidth,void 0!==this._data.linestyle&&n.setLineStyle(t,this._data.linestyle),n.drawLine(t,e,0,e,this._data.height))}},t.prototype.hitTest=function(t){if(null===this._data||0===this._data.points.length)return null;var e=this._hitTest||new o(o.MOVEPOINT);return Math.abs(t.x-this._data.points[0].x)<=3?e:null},t}(),e.VerticalLineRenderer=r},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(28),r=function(t){function e(e,i,o,n){var r=this;return i||(i=1),"forex"!==o&&"cfd"!==o||!n?(r=t.call(this,1)||this,r._isForex=!1):(r=t.call(this,n)||this,r._isForex=!0),r._pipPriceScale=e,r._pipMinMove=i,r._pipMinMove2=n,r}return o.__extends(e,t),e.prototype.format=function(e,i,o){var n=this._isForex?this._pipMinMove2:this._pipMinMove;return void 0===n&&(n=NaN),t.prototype.format.call(this,e*this._pipPriceScale/n,i,o)},e}(n.PriceFormatter),e.PipFormatter=r},,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i(12);var o=function(){function t(){}return t.prototype.format=function(t){var e,i,o,n,r=t<0;return t=Math.abs(t),e=Math.floor(t/86400),t-=86400*e,i=Math.floor(t/3600),t-=3600*i,o=Math.floor(t/60),t-=60*o,n="",e&&(n+=e+$.t("d",{context:"dates"})+" "),i&&(n+=i+$.t("h",{context:"dates"})+" "),o&&(n+=o+$.t("m",{context:"dates"})+" "),t&&(n+=t+$.t("s",{context:"dates"})+" "), r&&(n="-"+n),n.trim()},t}();e.TimeSpanFormatter=o},function(t,e,i){"use strict";function o(t){this._data=null,this._hittest=t||new a(a.MOVEPOINT),this._backHittest=new a(a.MOVEPOINT_BACKGROUND),this._points=[]}var n=i(60).pointInPolygon,r=i(44).distanceToSegment,s=i(110).TrendLineRenderer,a=i(11),l=i(30),c=i(74).LineEnd;o.prototype.setData=function(t){this._data=t,this._points=t.points},o.prototype.draw=function(t){var e,i,o;if(null!==this._data&&0!==this._points.length){for(t.beginPath(),t.lineCap="butt",t.strokeStyle=this._data.color,t.lineWidth=this._data.linewidth,t.lineStyle=this._data.linestyle,e=this._points[0],t.moveTo(e.x,e.y),i=0;i0&&t.stroke(),this._points.length>1&&(this._data.leftend===c.Arrow&&s.prototype.drawArrow(this._points[1],this._points[0],t,t.lineWidth),this._data.rightend===c.Arrow&&s.prototype.drawArrow(this._points[this._points.length-2],this._points[this._points.length-1],t,t.lineWidth))}},o.prototype.hitTest=function(t){var e,i,o,s,a;if(null===this._data||void 0!==this._data.mouseTouchable&&!this._data.mouseTouchable)return null;for(e=TradingView.isMobile.any()?24:3,i=1;i0&&(o=this._points[0],s=this._points[this._points.length-1],a=r(o,s,t),a.distance<=e)?this._hittest:this._data.filled&&this._data.fillBackground&&n(t,this._data.points)?this._backHittest:null},t.exports=o},function(t,e,i){"use strict";var o,n,r;Object.defineProperty(e,"__esModule",{value:!0}),o=i(0),n=i(2),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._handleKeyDown=function(t){t.keyCode===e.props.keyCode&&e.props.handler(t)},e}return o.__extends(e,t),e.prototype.componentDidMount=function(){document.addEventListener("keydown",this._handleKeyDown,!1)},e.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this._handleKeyDown,!1)},e.prototype.render=function(){return null},e}(n.PureComponent),e.KeyboardDocumentListener=r},function(t,e,i){"use strict";function o(){return[[1,0,0],[0,1,0],[0,0,1]]}function n(t,e){var i,o,n,r=[[0,0,0],[0,0,0],[0,0,0]];for(i=0;i<3;i++)for(o=0;o<3;o++)for(n=0;n<3;n++)r[i][o]+=t[i][n]*e[n][o];return r}function r(t){var e=Math.cos(t),i=Math.sin(t);return[[e,-i,0],[i,e,0],[0,0,1]]}function s(t,e){return[[t,0,0],[0,e,0],[0,0,1]]}function a(t,e){return[[1,0,t],[0,1,e],[0,0,1]]}function l(t,e){var i,o,n=[e.x,e.y,1],r=[0,0,0];for(i=0;i<3;i++)for(o=0;o<3;o++)r[i]+=n[o]*t[i][o];return new c.Point(r[0],r[1])}Object.defineProperty(e,"__esModule",{value:!0});var c=i(8);e.identityMatrix=o,e.multiplyMatrices=n,e.rotationMatrix=r,e.scalingMatrix=s,e.translationMatrix=a,e.transformPoint=l -},function(t,e){t.exports=''},function(t,e,i){var o,n,r;!function(s){n=[i(13),i(242),i(391),i(75),i(168)],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,o=this.options,n=this.element.find(".ui-slider-handle"),r=[];for(i=o.values&&o.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;e");this.handles=n.add(t(r.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("
").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,o,n,r,s,a,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},o=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1, +},function(t,e){t.exports=''},function(t,e,i){var o,n,r;!function(s){n=[i(13),i(243),i(392),i(75),i(168)],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(function(t){return t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,o=this.options,n=this.element.find(".ui-slider-handle"),r=[];for(i=o.values&&o.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;e");this.handles=n.add(t(r.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("
").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,o,n,r,s,a,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},o=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1, this.handles.each(function(e){var i=Math.abs(o-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(n=i,r=t(this),s=e)}),!1!==this._start(e,s)&&(this._mouseSliding=!0,this._handleIndex=s,this._addClass(r,null,"ui-state-active"),r.trigger("focus"),a=r.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-r.width()/2,top:e.pageY-a.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,s,o),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,o,n,r;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),o=i/e,o>1&&(o=1),o<0&&(o=0),"vertical"===this.orientation&&(o=1-o),n=this._valueMax()-this._valueMin(),r=this._valueMin()+o*n,this._trimAlignValue(r)},_uiHash:function(t,e,i){var o={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(o.value=void 0!==e?e:this.values(t),o.values=i||this.values()),o},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var o,n=this.value(),r=this.values();this._hasMultipleValues()&&(o=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(o,i):Math.max(o,i)),r[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,r))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var o,n,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(o=this.options.values,n=arguments[0],r=0;r=0;o--)this._change(null,o);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,o;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),o=0;o=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,o=t-i;return 2*Math.abs(i)>=e&&(o+=i>0?e:-e),parseFloat(o.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;t=Math.round((t-e)/i)*i+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,o,n,r,s=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(o){i=(l.values(o)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](h,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===o&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===o&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===o&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===o&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(o=this.value(), n=this._valueMin(),r=this._valueMax(),i=r!==n?(o-n)/(r-n)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var i,o,n,r=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,r)))return}switch(n=this.options.step,i=o=this._hasMultipleValues()?this.values(r):this.value(),e.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;o=this._trimAlignValue(i+n);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;o=this._trimAlignValue(i-n)}this._slide(e,r,o)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}})})},function(t,e,i){"use strict";(function(e){function o(t,i,o){var n={saveAsText:$.t("Save As..."),applyDefaultText:$.t("Apply Defaults")};this._toolName=t,this._applyTemplate=i,this._options=$.extend(n,o||{}),this._list=[],e.enabled("charting_library_base")||(this.templatesDeferred=this.loadData())}var n=i(133).bindPopupMenu,r=i(154),s=r.SaveRenameDialog,a=r.InputField,l=i(112).createConfirmDialog,c=i(7).getLogger("Chart.LineToolTemplatesList");o._cache={},o.prototype.getData=function(){return this._list},o.prototype.loadData=function(){var t=this;return this._toolName in o._cache?(this._list=o._cache[this._toolName],$.Deferred().resolve()):$.get("/drawing-templates/"+this._toolName+"/",function(e){t._list=e,o._cache[t._toolName]=e}).error(function(){c.logWarn("Failed to load drawing template: "+t._toolName)})},o.prototype.templatesLoaded=function(){return this.templatesDeferred},o.prototype.invalidateToolCache=function(){delete o._cache[this._toolName]},o.prototype.createButton=function(t){var e,i=this;return t=$.extend({},t,i._options), e=$("").addClass(t.buttonClass?t.buttonClass:"_tv-button").html(t.buttonInner?t.buttonInner:$.t("Template")+''),n(e,null,{event:"button-popup",zIndex:t.popupZIndex,activeClass:t.popupActiveClass,direction:t.popupDirection}),e.bind("click",function(e){var o,n,r;e.stopPropagation(),$(this).is("active")||(o=[],"function"==typeof t.getDataForSaveAs&&(n=function(e){var o=JSON.stringify(t.getDataForSaveAs());i.saveTemplate(e,o)},o.push({title:t.saveAsText,action:i.showSaveDialog.bind(i,n),addClass:"special"})),"function"==typeof t.defaultsCallback&&o.push({title:t.applyDefaultText,action:t.defaultsCallback,addClass:"special"}),r=[],$.each(i._list,function(e,o){r.push({title:o,action:function(){i.loadTemplate.call(i,o,t.loadTemplateCallback)},deleteAction:function(){runOrSignIn(function(){var t=$.t("Do you really want to delete Drawing Template '{0}' ?").format(o),e=l({type:"modal",content:t});e.on("action:yes",function(t){i.removeTemplate.call(i,o),t.close()}),e.open()},{source:"Delete line tool template"})}})}),r.length&&(r.sort(function(t,e){return t=t.title.toUpperCase(),e=e.title.toUpperCase(),t===e?0:t>e?1:-1}),o.push({separator:!0}),o=o.concat(r)),$(this).trigger("button-popup",[o]))}),e},o.prototype.loadTemplate=function(t,e){var i=this;return $.get("/drawing-template/"+this._toolName+"/?templateName="+encodeURIComponent(t),function(t){i._applyTemplate(JSON.parse(t.content)),e&&e()}).error(function(t){c.logWarn(t.responseText)})},o.prototype.removeTemplate=function(t){if(t){var e=this;$.post("/remove-drawing-template/",{name:t,tool:e._toolName}).error(function(t){c.logWarn(t.responseText)}),e.invalidateToolCache(),e._list=$.grep(e._list,function(e){return e!==t})}},o.prototype.saveTemplate=function(t,e){var i,o,n,r,s=this;t&&e&&(t=TradingView.clean(t),i=-1!==$.inArray(t,s._list),o=function(){var o={name:t,tool:s._toolName,content:e},n=function(){i||s._list.push(t)};$.post("/save-drawing-template/",o,n).error(function(t){c.logWarn(t.responseText)}),s.invalidateToolCache()},i?(n=$.t("Drawing Template '{0}' already exists. Do you really want to replace it?").format(t),r=l({type:"modal",content:n}),r.on("action:yes",function(t){o(),t.close()}),r.open()):o())},o.prototype.deleteAction=function(t){var e=t,i=this;runOrSignIn(function(){var t=$.t(" Do you really want to delete Drawing Template '{0}' ?").format(e),o=l({type:"modal",content:t});o.on("action:yes",function(t){i.removeTemplate.call(i,e),t.close()}),o.open()},{source:"Delete line tool template"})},o.prototype.showSaveDialog=function(t){var e="text",i=new s({fields:[new a({name:e,label:$.t("Template name")+":",maxLength:64,error:$.t("Please enter template name")})],title:$.t("Save Drawing Template As")});runOrSignIn(function(){i.show().then(function(i){t(i[e])})},{source:"Save line tool template",sourceMeta:"Chart"})},t.exports=o}).call(e,i(5))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});!function(t){t.offset=8,t.font="Arial",t.fontSize=12,t.lineSpacing=10, t.bgColor="rgba(255,255,255,.8)",t.borderColor="#e3e3e3",t.padding=8}(e.LabelSettings||(e.LabelSettings={}))},,,function(t,e,i){"use strict";!function(t){t.fn.selectable=function(e){return this.each(function(){var i=t(this);i.css("user-select",e?"text":"none"),i.css("-moz-user-select",e?"text":"-moz-none"),i.css("-webkit-user-select",e?"auto":"none"),(t.browser.msie||t.browser.opera)&&i.attr("unselectable",e?"off":"on")})}}(jQuery)},,function(t,e,i){var o,n,r;!function(s){n=[i(13),i(75)],o=s,void 0!==(r="function"==typeof o?o.apply(e,n):o)&&(t.exports=r)}(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}})},function(t,e){t.exports=''},function(t,e,i){"use strict";(function(t,o,n){function r(e){this._chartWidgetCollection=e,this._chartAboutToBeSavedDelegate=new t,this._chartSavedDelegate=new t,this._chartSizeLimitExceededDelegate=new t}function s(t,e,i,o){var r,s,a;o=o||{},r={wl:o.wl,images:JSON.stringify(t.images()),previews:o.previews,onWidget:o.onWidget},s=t.activeChartWidget.value().widgetCustomer(),s&&(r.customer=s),r.timezone=t.activeChartWidget.value()._properties.timezone.value(),window.urlParams&&window.urlParams.locale&&(r.language=urlParams.locale),a=n.enabled("charting_library_base")?o.snapshotUrl||"https://www.tradingview.com/snapshot/":"/snapshot/",$.post(a,r,function(t){t?e(t):i()}).fail(function(){i()})}var a=i(92);r.prototype.chartAboutToBeSaved=function(){return this._chartAboutToBeSavedDelegate},r.prototype.chartSaved=function(){return this._chartSavedDelegate},r.prototype.chartSizeLimitExceeded=function(){return this._chartSizeLimitExceededDelegate},r.prototype.whenReadyToSave=function(t){var e,i,o=this._chartWidgetCollection,n=o.activeChartWidget.value(),r=n.model().mainSeries();r.symbolInfo()&&!r.hasDelayedSymbolIntervalChange()?t():(e=null,i=null,e=function(){r.onSymbolError().unsubscribe(null,i,!0),t()},i=function(){r.onSymbolResolved().unsubscribe(null,e,!0)},r.onSymbolResolved().subscribe(null,e,!0),r.onSymbolError().subscribe(null,i,!0))},r.prototype.saveToJSON=function(){return this._fillSavingInfo(!1,!0)},r.prototype._fillAsyncInfo=function(t,e,i){function o(e){t.content=JSON.stringify($.extend(!0,r,e)),n.resolve(t)}var n,r=JSON.parse(t.content),s=this._chartWidgetCollection;return e||(i=!0),n=$.Deferred(),i?s.asyncState(!!e).then(o):s.activeChartWidget.value().asyncState(!!e).then(o),n.promise()},r.prototype._fillSavingInfo=function(t,e,i){var o,n,r,s,a,l,c,h,u,d,p,_;if(t||(e=!0),o={publish_request_id:Math.random().toString(36).substring(2)},n=this._chartWidgetCollection,r=n.activeChartWidget.value(),s=n.metaInfo,a=r.model().mainSeries(),l=a.properties(),c=a.symbolInfo(),s.id.value()&&(o.id=s.id.value()),o.name=s.name.value()||"",o.description=s.description.value()||"", o.resolution=a.properties().interval.value(),o.symbol_type=null!==c&&c.type||"",o.exchange=null!==c&&c.exchange||"",o.listed_exchange=null!==c&&c.listed_exchange||"",null!==c&&a.isSpread()?(h=c.legs[0],u=c.base_name[0],u=u.split(":")[1],o.symbol=h,o.short_name=u,o.expression=c.full_name):(o.symbol=null!==c&&c.ticker||l.symbol.value(),o.short_name=l.shortName.value()),null!==c){for(d=[],p=0,_=c.legs.length;p<_;p++)d.push({symbol:c.legs[p],pro_symbol:c.base_name[p]});o.legs=JSON.stringify(d)}else o.legs=JSON.stringify([]);return o.content=e?JSON.stringify(n.state(!!t,i)):JSON.stringify(r.state(!!t,i)),t&&(o.image=JSON.stringify(n.images({onlyActiveChart:!e}))),o.is_realtime=t?"0":"1",o},r.prototype.publishChart=function(t){},r.prototype.publishScript=function(t,e,i){var o,n,r,s,a=this;a._scriptPublisher?a._scriptPublisher.openPublication(t,e):(o=i.ScriptPublisher,n=i.ScriptsProvider,r=i.CategoriesProvider,s=new n({publish:function(t){return new Promise(function(e,i){var o={closeForm:function(){if(t&&t.scriptPublication&&t.scriptPublication.updateScriptIdPart){var i=t.scriptPublication.updateScriptIdPart;publishedScripts.invalidateCache([i]),window.studyMarket&&(window.studyMarket.resetAllPages(),window.studyMarket.updateFavorites())}e()},showError:function(t){i(t)}};a.onPublish(t,o)})}}),a._scriptPublisher=new o({scriptsProvider:s,categoriesProvider:new r}),a._scriptPublisher.openPublication(t,e))},r.prototype.onPublish=function(t,e){function i(i){var n,r,s,l,c,h;a.publishInProgress=!1,n=i.responseText||i,"ok:"===n.substr(0,3)?(r=!1,e.savePrivacySetting&&(r=!t.is_public,TVSettings.setValue("publishchart.private",r)),kmRecord("Chart","{0} Published".format(void 0===t.script_type?"Chart":"Script"),{is_private:r}),s=n.substr(3),l=JSON.parse(s),a._chartWidgetCollection.metaInfo.id.value()||a._chartWidgetCollection.metaInfo.id.setValue(l.id),e.closeForm&&e.closeForm(),a._lastPublishUrl=l.publishUrl,a.hWnd&&(c=l.publishUrl,e.ideaUrl&&(c=o.render(e.ideaUrl,{idea:l.idea})),a.hWnd.location=c)):(e.showError&&((413===i.status||/^[\d\s]*request.+large/i.test(n.trim()))&&(n=window.t("This chart layout has a lot of objects and can't be published! Please remove some drawings and/or studies from this chart layout and try to publish it again.")),h={html:!0},e.showError(n||$.t("Error occured while publishing"),h)),a.hWnd&&(a.hWnd.close(),a.hWnd=null))}var n,r,s,a=this;a.publishInProgress||(n=a._fillSavingInfo(!0,e&&e.publishAllLayout,!0),a._fillAsyncInfo(n,!0,e&&e.publishAllLayout).then(function(e){var o=t.scriptPublication,n=!(!o||!o.updateScriptIdPart),r=new Promise(function(t,e){if(o){var i;i=n?ScriptLib.publishNext(o.scriptSource,o.updateScriptIdPart):ScriptLib.publishNew(o.scriptSource,o.scriptProtection),i.done(function(e){n||o.scriptProtection!==TVScript.Access.ACCESS_CLOSED_NEEDS_AUTH||PinePerm.add(window.user.username,e.pineId),t(e.publishedstudyscript_id)}).fail(e)}else t()});n?r.then(function(o){var n={publishedstudyscript_id:o,description:t.description,tags:t.tags};$.ajax({url:"/script-update/",type:"post",dataType:"text", -data:$.extend({},e,n),complete:i})},i):r.then(function(o){o&&(t.publishedstudyscript_id=o),$.ajax({url:"/publishchart/",type:"post",dataType:"text",data:$.extend({},e,t),complete:i})},i)}),a.publishInProgress=!0,e.onWidget&&!e.ideaUrl||""!==t.name&&""!==t.description&&t.description.length<=4e3&&t.name.length<=64&&($.cookie("publish_request_id",n.publish_request_id,{path:"/"}),r="/loading/",e.ideaUrl&&(s=urlParams.createUrlParams({ideaUrl:e.ideaUrl}),r="/loading?"+s),a.hWnd=window.open(r,"_blank")))},r.prototype._saveChart=function(t,e,i,o,n){var r=i,s=o;return r=function(t){e.id.value()||(e.id.setValue(t),e.uid.setValue(t)),"function"==typeof i&&i()},a.saveChart(t.name,t.short_name,t.resolution,t,e,r,s.bind(this))},r.prototype.saveChartSilently=function(t,e,i,o){var n=this._chartWidgetCollection.metaInfo,r=this._fillSavingInfo(e);if(o=o||{},o.chartName&&(r.name=o.chartName),r.name&&0!==r.name.length||!o.defaultChartName||(r.name=o.defaultChartName),!r.name)return void console.warn("Saving chart with empty name is not allowed");$(window).on("beforeunload.savechart",function(){return $.t("Your chart is being saved, please wait a moment before you leave this page.")}),this._chartAboutToBeSavedDelegate.fire(),this._saveChart(r,n,function(){this._chartWidgetCollection.metaInfo.name.setValue(r.name),this._chartSavedDelegate.fire(!0),t&&t(n)}.bind(this),function(){this._chartSavedDelegate.fire(!1),i&&i.apply(null,arguments)}.bind(this),o),$(window).off("beforeunload.savechart")},e.ChartSaver=r,e.takeSnapshot=s}).call(e,i(10),i(41),i(5))},function(t,e,i){"use strict";function o(t){var e,i;if(t&&t.__esModule)return t;if(e={},null!=t)for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r,s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownView=void 0,r=function(){function t(t,e){var i,o;for(i=0;i1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.$el=e,this.$wrap=o.$wrap||e.find(".tv-dropdown-behavior__button"),this.$body=o.$body||e.find(".tv-dropdown-behavior__body"),this.notCloseWithCtrl=!!o.notCloseWithCtrl&&o.notCloseWithCtrl,this.closeWithEsc=void 0===o.closeWithEsc||o.closeWithEsc,this.animationDisabled=!0===o.noAnimation,this.closeWithEsc&&this.$el.attr("tabIndex",0),this.animationDisabled||this.$body.addClass("tv-dropdown-behavior__body--animated"),(e.data("scroll")||o.scroll)&&(this.$scroll=this.$body.find(".tv-dropdown-behavior__scroll"),this.$inScroll=this.$scroll.find(".tv-dropdown-behavior__inscroll"),this.scroll=new c.SidebarCustomScroll(this.$scroll,this.$inScroll,{showTopShadow:!1,showBottomShadow:!1}), +data:$.extend({},e,n),complete:i})},i):r.then(function(o){o&&(t.publishedstudyscript_id=o),$.ajax({url:"/publishchart/",type:"post",dataType:"text",data:$.extend({},e,t),complete:i})},i)}),a.publishInProgress=!0,e.onWidget&&!e.ideaUrl||""!==t.name&&""!==t.description&&t.description.length<=4e3&&t.name.length<=64&&($.cookie("publish_request_id",n.publish_request_id,{path:"/"}),r="/loading/",e.ideaUrl&&(s=urlParams.createUrlParams({ideaUrl:e.ideaUrl}),r="/loading?"+s),a.hWnd=window.open(r,"_blank")))},r.prototype._saveChart=function(t,e,i,o,n){var r=i,s=o;return r=function(t){e.id.value()||(e.id.setValue(t),e.uid.setValue(t)),"function"==typeof i&&i()},a.saveChart(t.name,t.short_name,t.resolution,t,e,r,s.bind(this))},r.prototype.saveChartSilently=function(t,e,i,o){var n=this._chartWidgetCollection.metaInfo,r=this._fillSavingInfo(e);if(o=o||{},o.chartName&&(r.name=o.chartName),r.name&&0!==r.name.length||!o.defaultChartName||(r.name=o.defaultChartName),!r.name)return void console.warn("Saving chart with empty name is not allowed");$(window).on("beforeunload.savechart",function(){return $.t("Your chart is being saved, please wait a moment before you leave this page.")}),this._chartAboutToBeSavedDelegate.fire(),this._saveChart(r,n,function(){this._chartWidgetCollection.metaInfo.name.setValue(r.name),this._chartSavedDelegate.fire(!0),t&&t(n)}.bind(this),function(){this._chartSavedDelegate.fire(!1),i&&i.apply(null,arguments)}.bind(this),o),$(window).off("beforeunload.savechart")},e.ChartSaver=r,e.takeSnapshot=s}).call(e,i(10),i(41),i(5))},function(t,e,i){"use strict";function o(t){var e,i;if(t&&t.__esModule)return t;if(e={},null!=t)for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r,s,a,l,c,h,u,d;Object.defineProperty(e,"__esModule",{value:!0}),e.DropdownView=void 0,r=function(){function t(t,e){var i,o;for(i=0;i1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.$el=e,this.$wrap=o.$wrap||e.find(".tv-dropdown-behavior__button"),this.$body=o.$body||e.find(".tv-dropdown-behavior__body"),this.notCloseWithCtrl=!!o.notCloseWithCtrl&&o.notCloseWithCtrl,this.closeWithEsc=void 0===o.closeWithEsc||o.closeWithEsc,this.animationDisabled=!0===o.noAnimation,this.closeWithEsc&&this.$el.attr("tabIndex",0),this.animationDisabled||this.$body.addClass("tv-dropdown-behavior__body--animated"),(e.data("scroll")||o.scroll)&&(this.$scroll=this.$body.find(".tv-dropdown-behavior__scroll"),this.$inScroll=this.$scroll.find(".tv-dropdown-behavior__inscroll"),this.scroll=new c.SidebarCustomScroll(this.$scroll,this.$inScroll,{showTopShadow:!1,showBottomShadow:!1}), this.$scrollBar=this.scroll.getScrollBar(),this.$scrollBar&&this.$scrollBar.on("mousedown.tv-dropdown-view-scroll",function(){i.offClickOutside(),$(document).on("mouseup.tv-dropdown-view-scroll",function(){i.onClickOutside(),$(document).off("mouseup.tv-dropdown-view-scroll")})})),(e.data("adaptBody")||o.adaptBody)&&(this._adaptBody=!0),this._fitScreen=e.data("fitScreen")||o.fitScreen,this.$wrap.add(e.find(".js-dropdown-toggle")).on("click",function(t){$(t.currentTarget).hasClass("js-prevent-dropdown")||i.toggle()})}return r(t,[{key:"toggle",value:function(){this.opened?this.close(!0):this.open()}},{key:"open",value:function(){var t=this;this.animating||this.opened||this.disabled||(this.$el.trigger("beforeOpenMenu"),this.$body.removeClass("i-hidden"),this.$wrap.addClass("i-dropped"),this.$el.addClass("i-opened"),"horz"===this._fitScreen&&this.fitHorizontally(),this._adaptBody&&this.adaptBody(),this.updateDelays(),this.onClickOutside(),this._doOpenAnimation().then(function(){t.$body.addClass("i-opened"),t.$el.trigger("updateScroll"),t.$el.trigger("afterOpenMenu"),t.opened=!0}),this.closeWithEsc&&this.$el.on("keypress keyup",function(e){e.keyCode===u.ESC&&t.close(!0)}))}},{key:"onClickOutside",value:function(){var t=this;setTimeout(function(){t.$body.on("clickoutside",function(){t.close(!0)})},0)}},{key:"offClickOutside",value:function(){this.$body.off("clickoutside")}},{key:"close",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.animating||!this.opened||this.disabled||!e&&this.notCloseWithCtrl&&(window.event.ctrlKey||window.event.metaKey)||(this.offClickOutside(),this.$wrap.removeClass("i-dropped"),this.$el.trigger("beforeCloseMenu"),this._doCloseAnimation().then(function(){t.$body.removeClass("i-opened").addClass("i-hidden"),t.$el.removeClass("i-opened").trigger("afterCloseMenu"),t.opened=!1}),this.closeWithEsc&&this.$el.off("keypress keyup"))}},{key:"isOpened",value:function(){return this.opened}},{key:"updateScroll",value:function(){this.scroll&&(this.scroll.updateScrollBar(),this.scroll.scrollToStart())}},{key:"updateDelays",value:function(){var t,e,i,o,n;this.animationDisabled||(t=this.$scroll||this.$body,e=t.offset().top,i=t.outerHeight(),o=this.$body.find(".tv-dropdown-behavior__item").filter(function(t,o){var n=$(o),r=n.offset().top;return r+n.outerHeight()>=e&&r1&&void 0!==arguments[1]?arguments[1]:{};return new d(t,e)})},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n;Object.defineProperty(e,"__esModule",{value:!0}),n=function(){function t(t,e){var i,o;for(i=0;i\n\t\t\t\t'+i+'\n\t\t\t\t\n\t\t\t'),this._$input=this._$field.find("input"),this._error=a}return n(t,[{key:"appendTo",value:function(t){t.append(this._$field)}},{key:"focus",value:function(){return this._$input.focus()}},{key:"select",value:function(){return this.focus().select()}},{key:"value",set:function(t){this._$input.val(t)},get:function(){return this._$input.val()}},{key:"name",get:function(){return this._name}},{key:"valid",get:function(){ -return!!this._$input.val().trim()}},{key:"error",set:function(t){this._error=t},get:function(){return this._error}}]),t}()},function(t,e,i){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.SaveRenameDialog=void 0,n=function(){function t(t,e){var i,o;for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},i=e.fields,n=e.title,r=void 0===n?"":n,s=e.destroyOnClose,a=void 0===s||s,l=e.modal,c=void 0!==l&&l;o(this,t),this._$form=$("
"),this._fields=i,this._appendFieldsToForm(),this._title=r,this._destroyOnClose=a,this._modal=c}return n(t,[{key:"setField",value:function(t,e){this._fields.find(function(e){return e.name===t}).value=e}},{key:"show",value:function(){var t=this,e=this._createDialog(),i=new Promise(function(i){e.on("action:submit",function(e){return t._onSubmit(e,i)})});return e.open(),this._fields[0].select(),i}},{key:"_appendFieldsToForm",value:function(){var t=this;this._fields.forEach(function(e){e.appendTo(t._$form)})}},{key:"_createDialog",value:function(){return(0,r.createDialog)({type:this._modal?"modal":"popup",title:this._title,content:this._$form,actionsWrapTemplate:'
',width:470,destroyOnClose:this._destroyOnClose,actions:[{name:"submit",type:"primary",text:$.t("Save"),key:13,addClass:"js-submit-button"},{name:"cancel",type:"default",text:$.t("Cancel"),method:"close",addClass:"js-cancel-button"}]})}},{key:"_onSubmit",value:function(t,e){var i=this._validate();i?(t.error(i.error),i.focus()):(e(this._collectValues(),t),t.close())}},{key:"_validate",value:function(){return this._fields.find(function(t){return!t.valid})}},{key:"_collectValues",value:function(){return this._fields.reduce(function(t,e){return t[e.name]=e.value,t},{})}}]),t}()},function(t,e,i){"use strict";(function(e,o,n){function r(){this.title=$.t("Load Chart Layout"),this._removeDialogShown=!1,this.options={},this.matchedItems=[],this.itemsData=[],this.qs=new r.QuickSearch(this.fieldsExtractor,this.searchResult.bind(this)),this.sortObj=new r.SortObject(this.modifiedCompare),this.nameSort=new r.SortObject(this.nameCompare),this.symbolSort=new r.SortObject(this.symbolCompare),this.toolsSort=new r.SortObject(this.toolsCompare),this.offset=0,h.on("chart_loaded",r.onChartLoaded,this)}function s(t){return t.getAttribute("data-id")}var a,l,c,h=i(23),u=i(65).createDialog,d=i(316).createSearchControl,p=i(200).regExpEscape -;a='
{{#withFavs}}
'+i(210)+''+i(209)+'
{{/withFavs}}
{{title}}
{{modifiedDate}}
{{chartSymbol}}
'+i(169)+"
",l='
'+$.t("Chart Layout Name")+'
'+$.t("Last Modified")+'
'+$.t("Active Symbol")+'
',c=50,r.onChartLoaded=function(){this.itemsData&&this.itemsData.length>0&&this._refreshChartsList()},r.QuickSearch=function(t,e){this.fieldsExtractor=t,this.callback=e,this.regExps=[]},r.QuickSearch.prototype.onInput=function(t){this.query=t,this.createRegexps(t),this.search()},r.QuickSearch.prototype.createRegexps=function(t){this.regExps=[],t&&this.regExps.push(RegExp("("+t.split("").map(function(t){return p(t)}).join(")(.*?)(")+")","i"))},r.QuickSearch.prototype.match=function(t){var e,i,o,n;for(e=0;e0&&void 0!==arguments[0]?arguments[0]:{},i=e.fields,n=e.title,r=void 0===n?"":n,s=e.destroyOnClose,a=void 0===s||s,l=e.modal,c=void 0!==l&&l;o(this,t),this._$form=$("
"),this._fields=i,this._appendFieldsToForm(),this._title=r,this._destroyOnClose=a,this._modal=c}return n(t,[{key:"setField",value:function(t,e){this._fields.find(function(e){return e.name===t}).value=e}},{key:"show",value:function(){var t=this,e=this._createDialog(),i=new Promise(function(i){e.on("action:submit",function(e){return t._onSubmit(e,i)})});return e.open(),this._fields[0].select(),i}},{key:"_appendFieldsToForm",value:function(){var t=this;this._fields.forEach(function(e){e.appendTo(t._$form)})}},{key:"_createDialog",value:function(){return(0,r.createDialog)({type:this._modal?"modal":"popup",title:this._title,content:this._$form,actionsWrapTemplate:'
',width:470,destroyOnClose:this._destroyOnClose,actions:[{name:"submit",type:"primary",text:$.t("Save"),key:13,addClass:"js-submit-button"},{name:"cancel",type:"default",text:$.t("Cancel"),method:"close",addClass:"js-cancel-button"}]})}},{key:"_onSubmit",value:function(t,e){var i=this._validate();i?(t.error(i.error),i.focus()):(e(this._collectValues(),t),t.close())}},{key:"_validate",value:function(){return this._fields.find(function(t){return!t.valid})}},{key:"_collectValues",value:function(){return this._fields.reduce(function(t,e){return t[e.name]=e.value,t},{})}}]),t}()},function(t,e,i){"use strict";(function(e,o,n){function r(){this.title=$.t("Load Chart Layout"),this._removeDialogShown=!1,this.options={},this.matchedItems=[],this.itemsData=[],this.qs=new r.QuickSearch(this.fieldsExtractor,this.searchResult.bind(this)),this.sortObj=new r.SortObject(this.modifiedCompare),this.nameSort=new r.SortObject(this.nameCompare),this.symbolSort=new r.SortObject(this.symbolCompare),this.toolsSort=new r.SortObject(this.toolsCompare),this.offset=0,h.on("chart_loaded",r.onChartLoaded,this)}function s(t){return t.getAttribute("data-id")}var a,l,c,h=i(23),u=i(65).createDialog,d=i(317).createSearchControl,p=i(201).regExpEscape +;a='
{{#withFavs}}
'+i(211)+''+i(210)+'
{{/withFavs}}
{{title}}
{{modifiedDate}}
{{chartSymbol}}
'+i(169)+"
",l='
'+$.t("Chart Layout Name")+'
'+$.t("Last Modified")+'
'+$.t("Active Symbol")+'
',c=50,r.onChartLoaded=function(){this.itemsData&&this.itemsData.length>0&&this._refreshChartsList()},r.QuickSearch=function(t,e){this.fieldsExtractor=t,this.callback=e,this.regExps=[]},r.QuickSearch.prototype.onInput=function(t){this.query=t,this.createRegexps(t),this.search()},r.QuickSearch.prototype.createRegexps=function(t){this.regExps=[],t&&this.regExps.push(RegExp("("+t.split("").map(function(t){return p(t)}).join(")(.*?)(")+")","i"))},r.QuickSearch.prototype.match=function(t){var e,i,o,n;for(e=0;e-1&&this.itemsData.splice(e,1),this.setChartsData(this.itemsData)},r.prototype.modifiedCompare=function(t,e){var i=t.modified,o=e.modified;return n(o).diff(n(i))},r.prototype.nameCompare=function(t,e){return t.title.localeCompare(e.title)},r.symbolWrap=function(t){return""===t.symbol?"multiple charts":t.symbol+" "+t.interval},r.prototype.symbolCompare=function(t,e){return r.symbolWrap(t).localeCompare(r.symbolWrap(e))},r.prototype.toolsCompare=function(t,e){var i=t.toolsCount,o=e.toolsCount;return i=this.matchedItems.length)){for(t=Math.min(this.offset+c,this.matchedItems.length),e="",i=this.offset;i");r.append(n.$control),r.append('
'),this.content=$("
").appendTo(r.find(".tv-load-chart-dialog-table")),this.header=this.layoutHeader(),this.setSort(),this.itemsListContainer=$('
').data({localScroll:!0}).appendTo(this.content),this.itemsList=$('
').appendTo(this.itemsListContainer),$('
').text($.t("There are no saved charts")).appendTo(this.itemsListContainer),this.itemsListContainer.on("click",".js-remove-button",function(t){var e=i._findItemById(s(t.currentTarget));i._onRemoveButtonClicked(e,t),t.stopPropagation()}).on("click",".js-table-row",function(t){var e=i._findItemById(s(t.currentTarget));i._onItemClicked(e,t),t.preventDefault()}).on("scrolltoend",function(){ -i.showMoreData()}),o.enabled("items_favoriting")&&this.itemsListContainer.on("click",".js-empty-star",function(t){var e=i._findItemById(s(t.currentTarget));i._onFavoriteClicked(e,!0,t),t.stopPropagation()}).on("click",".js-filled-star",function(t){var e=i._findItemById(s(t.currentTarget));i._onFavoriteClicked(e,!1,t),t.stopPropagation()}),this.header.children(".tv-load-chart-dialog-table__column--header").click($.proxy(this,"sortClick")),n.inputChangedDelegate.subscribe(this.qs,this.qs.onInput),this.favorites=e,this.setChartsData(t),this.qs.onInput(""),this._dialog&&this._dialog.close(),this._dialog=u({title:this.title,width:600,height:550,content:r,contentWrapTemplate:"
",destroyOnClose:!0,withScroll:!1,isClickOutFn:function(){return!this._removeDialogShown&&void 0}.bind(this)}),this._dialog.open()},r.prototype.highlightOccurrences=function(t){0!==t.length&&this.itemsList.children(".js-table-row").each(function(){var e,i=$(this).find(".js-column-name"),o=i.text();o=r.highlightText(o,t),i.html(o),e=$(this).find(".js-column-symbol"),o=e.text(),o=r.highlightText(o,t),e.html(o)})},r.highlightText=function(t,e){var i,o,n,r,s,a;if(t=$("
").text(t).html(),0===e.length)return t;for(i=0;i$'+a+"":"$"+a;if((r=t.replace(o,n))&&r!==t)return r}},t.exports=r}).call(e,i(41),i(5),i(38))},function(t,e,i){"use strict";function o(t,e,i,o){var s=(0,n.createConfirmDialog)({type:"modal",content:document.createTextNode($.t("Do you really want to delete Chart Layout '{0}' ?").format(t)),addClass:"delete-chart-dialog"}),a=function(){var t=o;o=null,t&&t()};s.on("action:yes",function(){o=null,r.removeChart(e,i),s.close()}),s.on("action:no",a),s.on("afterClose",a),s.open()}var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.deleteChart=o,n=i(112),r=i(92)},function(t,e,i){"use strict";function o(t){l.call(this,t),this.ch=t.char[0]||" ",this.fontFamily=t.fontFamily||"Arial",this._charCache=new a(this.ch,!1,!1,this.fontFamily,this.height)}var n=i(8).Point,r=i(45).selectionTolerance,s=i(11),a=i(327),l=i(56).PaneRendererAbstractShape;inherit(o,l),o.prototype.drawShape=function(t){var e,i,o,n,r,s,a=this._vertOffset>0?1:-1;for(e=0,i=this.items.length;e0?"middle":"bottom")},o.prototype.hitTest=function(t){var e,i,o,a=this._vertOffset,l=r(this.height);for(e=0;e",destroyOnClose:!0,withScroll:!1,isClickOutFn:function(){return!this._removeDialogShown&&void 0}.bind(this)}),this._dialog.open()},r.prototype.highlightOccurrences=function(t){0!==t.length&&this.itemsList.children(".js-table-row").each(function(){var e,i=$(this).find(".js-column-name"),o=i.text();o=r.highlightText(o,t),i.html(o),e=$(this).find(".js-column-symbol"),o=e.text(),o=r.highlightText(o,t),e.html(o)})},r.highlightText=function(t,e){var i,o,n,r,s,a;if(t=$("
").text(t).html(),0===e.length)return t;for(i=0;i$'+a+"":"$"+a;if((r=t.replace(o,n))&&r!==t)return r}},t.exports=r}).call(e,i(41),i(5),i(38))},function(t,e,i){"use strict";function o(t,e,i,o){var s=(0,n.createConfirmDialog)({type:"modal",content:document.createTextNode($.t("Do you really want to delete Chart Layout '{0}' ?").format(t)),addClass:"delete-chart-dialog"}),a=function(){var t=o;o=null,t&&t()};s.on("action:yes",function(){o=null,r.removeChart(e,i),s.close()}),s.on("action:no",a),s.on("afterClose",a),s.open()}var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.deleteChart=o,n=i(112),r=i(92)},function(t,e,i){"use strict";function o(t){l.call(this,t),this.ch=t.char[0]||" ",this.fontFamily=t.fontFamily||"Arial",this._charCache=new a(this.ch,!1,!1,this.fontFamily,this.height)}var n=i(8).Point,r=i(45).selectionTolerance,s=i(11),a=i(328),l=i(56).PaneRendererAbstractShape;inherit(o,l),o.prototype.drawShape=function(t){var e,i,o,n,r,s,a=this._vertOffset>0?1:-1;for(e=0,i=this.items.length;e0?"middle":"bottom")},o.prototype.hitTest=function(t){var e,i,o,a=this._vertOffset,l=r(this.height);for(e=0;eo?1:-1},t}(),e.SessionEntry=d,p=function(){function t(t){void 0===t&&(t="0000-0000");var e=this;this._entries=[],this._firstDayOfWeek=s.MONDAY,this._weekEndsCount=null,"24x7"===t.toLowerCase()?u.forEach(function(t){e.addSessionEntry(t,0,0)}):this._parseSpec(t),this._entries.sort(o)}return t.prototype.entries=function(){return this._entries},t.prototype.firstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.addSessionEntry=function(t,e,i){i<=e&&0!==e&&(e-=s.minutesPerDay);var o=i===e?s.minutesPerDay:i-e;this._entries.push(new d(t,e,o))},t.prototype.isWeekEnd=function(t){var e=a.lowerbound(this._entries,new d(t,0,0),function(t,e){return t.dayOfWeek()this._entries.length-1||this._entries[e].dayOfWeek()!==t},t.prototype.weekEndsCount=function(){if(null===this._weekEndsCount){var t={};this._entries.forEach(function(e){t[e.dayOfWeek()]=1}),this._weekEndsCount=7-Object.keys(t).reduce(function(e,i){return e+(t[+i]||0)},0)}return this._weekEndsCount},t.prototype.hasWeekEnds=function(){return this.weekEndsCount()>0},t.prototype.indexOfSessionEntry=function(t,e){var i=a.lowerbound(this._entries,new d(t,e,0),function(t,e){return t.compareTo(e)<0});return i>this._entries.length-1?0:i},t.prototype.findSessionEntry=function(t,e){return this._entries[this.indexOfSessionEntry(t,e)]},t.prototype.correctTradingDay=function(t,e){var i=s.get_day_of_week(t),o=60*s.get_hours(t)+s.get_minutes(t),n=this.findSessionEntry(i,o),r=n.dayOfWeek(),a=(r-i+7)%7;return 0!==a?s.add_days_considering_dst(e,t,a):t},t.prototype.alignToSessionStart=function(t,e){var i=s.get_day_of_week(t),o=s.get_minutes_from_midnight(t),n=this.findSessionEntry(i,o),a=n.alignedStart(),l=n.dayOfWeek(),c=n.isOvernight(),h=(l-i+7)%7-(c?1:0);return 0!==h&&s.add_date(t,h),s.set_hms(t,a/60|0,a%60,0,0),r(n.length(),t,e)},t.prototype._parseSpec=function(t){var e=this,i={},o=!1;t=this._parseFirstDayOfWeek(t),t.split("|").forEach(function(t){var e,r,s=t.split(":");if(1!==s.length&&2!==s.length)return void c.logError("Bad session section: "+t);if(e=1===s.length){if(o)return void c.logError("Duplicated default section: "+t);o=!0}r=e?h:n(s[1]),r.forEach(function(t){e&&i[t]||(i[t]=s[0])})}),u.forEach(function(o){var n=i[o];void 0!==n&&n.split(",").forEach(function(i){var n,r,a=i.split("-");2!==a.length&&(c.logError("Bad sessions spec: "+t),a=["0000","0000"]),n=a[0],r=a[1],e.addSessionEntry(o,s.get_minutes_from_hhmm(n),s.get_minutes_from_hhmm(r))})})},t.prototype._parseFirstDayOfWeek=function(t){var e,i,o,n=t.split(";");return n.length>2?(c.logError("Only one `first day` specification expected @ session "+t),t):1===n.length?t:(e=n[0].indexOf("-")>=0,i=e?NaN:parseInt(n[0]),o=1,isNaN(i)&&(o=0,i=parseInt(n[1])),is.SATURDAY?(c.logError("Unexpected day index @ session: "+t+"; day index "+i),t):(this._firstDayOfWeek=i,n[o]))},t}(),e.ExchangeSession=p},,,,function(t,e,i){"use strict";(function(t){function o(e){var i,o,c,h,u,d,p,_,f,m,g;if(e=$.extend({},l,e),i=$(t.render(s,{tabs:e.tabs,customControls:e.customControls,customControlsAddClass:e.customControlsContainerAddClass},{additionalHeaderContent:e.additionalHeaderContent})),o=$(a),c=o,e.contentAddClass&&o.addClass(e.contentAddClass),!1!==e.withScroll&&(o=$('
').append(c.addClass("tv-dialog__scroll-wrap-inner"))),h=$('
').append(i).append(o),e.customControls&&i.find(".js-custom-controls").append(e.customControls),!0!==e.doNotCreatePages)for(u=0;u').append(e.tabs[u].page));return d=e.tabStateSaveKey,p=e.activeTab,_=e.tabsScrollBoxAddClass,f=e.tabAddClass,delete e.tabs,delete e.activeTab,delete e.customControls, -delete e.tabStateSaveKey,delete e.customControlsContainerAddClass,delete e.tabsScrollBoxAddClass,delete e.tabAddClass,e.closeButtonAddClass="tv-tabbed-dialog__close",e.contentWrapTemplate=h,m=(0,r.createDialog)(e),g=new n.Tabs(i.find(".tv-tabs").get(0),c.get(0),{addLeftArrowsClass:"tv-tabbed-dialog__tabs-arrow-left",addRightArrowsClass:"tv-tabbed-dialog__tabs-arrow-right",addScrollBoxClass:_,tabClass:f,saveTab:d,activeTab:p}),m.on("afterOpen",function(){g.setActivePage(g.index(),!0,!0)}),{dialog:m,tabs:g}}var n,r,s,a,l;Object.defineProperty(e,"__esModule",{value:!0}),e.createTabbedDialog=o,n=i(955),r=i(65),i(958),s='
{{#tabs}}
{{name}}
{{/tabs}}
{{#customControls}}
{{/customControls}}
{{>additionalHeaderContent}}',a='
',l={tabs:[]}}).call(e,i(41))},function(t,e){t.exports=''},function(t,e){t.exports=''},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";(function(t){function e(){var e=window.parent[window.urlParams.uid].settingsAdapter;null!=e?(TVSettings.setSettingsAdapter(e),TVSettings.sync()):t.enabled("use_localstorage_for_settings")&&TVSettings.sync()}function o(){var t,e,i,o,n=urlParams.theme;return n?(t=p.savedThemeName(),e=n.toLowerCase(),(i=p.themes[e])?(p.setTheme(i.name),p.syncTheme(),n===t?$.Deferred().resolve():(o=$.Deferred(),p.getStdTheme(i.name).then(function(t){o.resolve(t.content)}).catch(function(t){console.warn("Cannot load theme {0}, reason: {1}".format(i.name,t)),o.resolve()}),o.promise())):$.Deferred().resolve()):$.Deferred().resolve()}function n(){JSON.parse(urlParams.disabledFeatures).forEach(function(e){t.setEnabled(e,!1)}),JSON.parse(urlParams.enabledFeatures).forEach(function(e){t.setEnabled(e,!0)})}function r(){ -t.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"):(t.setEnabled("saveload_storage_customization",!1),t.setEnabled("header_saveload",!1)))}function s(){q.resolve()}var a,l,c,h,u,d,p,_,f,m,g,v,y,b,S,w,T,C,x,P,L,I,k,A,M,E,D,V,O,R,B,z,F,N,W,H,U,j,q,G;i(570),i(12),a=i(573),i(574),i(298),i(601),n(),l=i(2),c=i(39),h=i(602).HeaderToolbar,u=i(621).DrawingToolbar,d=i(306).isDrawingToolbarVisible,p=i(310),_=i(311),f=i(52).Action,m=i(393).ChartSaver,g=i(744).StudyTemplates,v=i(759).FavoriteStudyTemplateService,y=i(76),b=i(23),S=i(28),w=S.formatterOptions,T=S.customFormatters,C=i(760),x=i(761),P=i(769).SaveLoadWidget,L=i(93).TVXWindowEvents,I=i(774),k=i(207),A=i(322).Root,M=i(779).ChartPage,E=new A(window),D=new M(E.allocate()),i(782),V=i(783),O=i(973).FavoriteDrawingToolbar,R=i(976),B=i(1001),z=i(33),F=i(1010),i(234),i(1018),N=i(71),W=window.parent[urlParams.uid].customIndicatorsUrl,H=$.Deferred(),U=$.Deferred(),$.when(H,U).done(function(){ChartApiInstance.start()}),W?$.getScript(W).done(function(){void 0!==window.__customIndicators&&window.isArray(window.__customIndicators)&&(window.PineJS=i(48),JSServer.studyLibrary=JSServer.studyLibrary.concat(window.__customIndicators),console.log("{0} custom indicators loaded.".format(window.__customIndicators.length)),H.resolve())}).fail(function(t){console.warn("Error loading custom indicators @ `{0}`: {1} ({2}) ".format(W,t.statusText,t.status)),H.resolve()}):H.resolve(),window.widgetReady=function(t){b.subscribe("onChartReady",t)},window.customizeUI=function(t){null!=t.studiesOverrides&&z.setDefaultsOverrides(t.studiesOverrides),window.__defaultsOverrides=t.defaultsOverrides},window.applyStudiesOverrides=function(t){t&&window.chartWidgetCollection.applyStudiesOverrides(t)},window.applyOverrides=function(t){$.extend(!0,window.__defaultsOverrides,t),window.applyDefaultsOverrides(TradingView.defaultProperties.chartproperties),window.applyDefaultOverridesToLinetools(),window.chartWidgetCollection.applyOverrides(t)},window.changeTheme=function(t){var e=p.themes[t.toLowerCase()];e&&window.tradingViewApi.themes().setStdTheme(e.name).then(function(){window.applyOverrides(window.__defaultsOverrides)})},window.is_authenticated=!1,window.parent[urlParams.uid].brokerFactory,window.t("charts by TradingView"),window.t("powered by TradingView"),j=function(e){var o,n,r,s,a,p,_,f,S,A,M,E,z,W;if(!Modernizr.canvas||!Modernizr.canvastext)throw Error("Charting library cannot be running under this browser");t.setEnabled("charting_library_debug_mode","true"===urlParams.debug),t.setEnabled("chart_property_page_trading",!1),t.setEnabled("chart_property_page_template_button",!1),o=window.headerChartPanel=$(".header-chart-panel"),n=$("#library-container"), -t.enabled("remove_library_container_border")&&(n.css("border","0px"),n.css("padding","1px")),window.customizeUI({studiesOverrides:urlParams.studiesOverrides?JSON.parse(urlParams.studiesOverrides):void 0,defaultsOverrides: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&&(w.decimalSign=urlParams.numeric_formatting.decimal_sign[0]),window.ChartApiInstance=new B(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)),ChartApiInstance.setTimeFramesList(JSON.parse(urlParams.timeFrames)),ChartApiInstance.setStudiesAccessController(ChartApiInstance.createStudiesAccessController(urlParams.studiesAccess)),r=urlParams.chartContent?JSON.parse(urlParams.chartContent).json:void 0,s=urlParams.interval||"D",a={resizerBridge:D.allocate({areaName:"center"}),padding:t.enabled("border_around_the_chart")?5:0,edge:t.enabled("border_around_the_chart")?6:0,content:r,widgetOptions:{hideIdeas:!0,addVolume:!0,handleSessionErrors:!0,muteSessionErrors:!0,timezone:urlParams.timezone,defSymbol:urlParams.symbol,defInterval:s,defTimeframe:urlParams.timeframe&&urlParams.timeframe.toLowerCase()},globalEvents:!0,snapshotUrl:urlParams.snapshotUrl},p=t.enabled("left_toolbar"),p&&(_=new O({left:window.innerWidth/2,top:window.headerChartPanel.outerHeight()+61}),a.widgetOptions.favoriteDrawingToolbar=_,a.widgetOptions.isDrawingToolbarVisible=d),r&&void 0!==r.extendedData&&(f=r.extendedData,a.metaInfo={id:f.uid,name:f.name,description:f.description,uid:f.uid,username:"",tags:""}),S=window.chartWidgetCollection=new V(a),window.studyMarket=new x(S,window.user),"undefined"!=typeof serviceLocator&&serviceLocator.registerService(CHART_WIDGET_COLLECTION_SERVICE,S),S.activeChartWidget.subscribe(function(t){b.emit("activeChartChanged",S.getAll().indexOf(t))}),window.saver=new m(S),window.chartWidget=S.activeChartWidget.value(),window.pro=new TradingView.Pro,A=JSON.parse(urlParams.favorites),A.intervals=A.intervals.map(function(t){var e=""+t;return e.match(/1[DWMYdwmy]/)&&(e=e.slice(1)),e}),t.enabled("study_templates")&&(M=new v(L,TVSettings),window.studyTemplates=new g({chartWidgetCollection:S,favoriteStudyTemplatesService:M})),t.enabled("header_widget")&&(E=D.allocate({areaName:"top"}),window.headerWidget=c.render(l.createElement(h,{tools:i(1022).getRestrictedToolSet(),chartSaver:window.saver,chartApiInstance:ChartApiInstance,chartWidgetCollection:S,defaultIntervals:Object.keys(ChartApiInstance.defaultResolutions()),defaultFavoriteStyles:A.chartTypes,defaultFavoriteIntervals:A.intervals,headerChartPanel:o,hideStudyTemplates:!0,resizerBridge:E,studyMarket:window.studyMarket, -studyTemplates:window.studyTemplates,favoriteStudyTemplatesService:M,allowedModes:t.enabled("caption_buttons_text_if_possible")?void 0:["medium"]}),E.body.value()[0])),window.tradingViewApi=new F(S,window.saver,ChartApiInstance,t.enabled("header_saveload")?new P(null,S):null),y.bindToChartWidgetCollection(S),z=urlParams.toolbarbg&&/^[0-9a-f]+$/i.test(urlParams.toolbarbg)?urlParams.toolbarbg+"":void 0,z&&$("",l.id=g,(c?l:f).innerHTML+=i,f.appendChild(l),c||(f.style.background="",f.style.overflow="hidden",u=m.style.overflow,m.style.overflow="hidden",m.appendChild(f)),a=n(l,e),c?l.parentNode.removeChild(l):(f.parentNode.removeChild(f),m.style.overflow=u),!!a},E=function(){function e(e,i){i=i||t.createElement(r[e]||"div"),e="on"+e;var a=e in i;return a||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(e,""),a=o(i[e],"function"),o(i[e],"undefined")||(i[e]=n),i.removeAttribute(e))),i=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),M={}.hasOwnProperty;c=o(M,"undefined")||o(M.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return M.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t,n,r=this;if("function"!=typeof r)throw new TypeError;return t=S.call(arguments,1),n=function(){var o,i,a;return this instanceof n?(o=function(){},o.prototype=r.prototype,i=new o,a=r.apply(i,t.concat(S.call(arguments))),Object(a)===a?a:i):r.apply(e,t.concat(S.call(arguments)))}}),k.flexbox=function(){return u("flexWrap")},k.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},k.canvastext=function(){return!!p.canvas&&!!o(t.createElement("canvas").getContext("2d").fillText,"function")},k.touch=function(){var n +if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(546)},,function(e,t,n){(function(t){e.exports=t.Mustache=n(522)}).call(t,n(78))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=window.Modernizr=function(e,t,n){function r(e){v.cssText=e}function o(e,t){return typeof e===t}function i(e,t){return!!~(""+e).indexOf(t)}function a(e,t){var r,o;for(r in e)if(o=e[r],!i(o,"-")&&v[o]!==n)return"pfx"!=t||o;return!1}function s(e,t,r){var i,a;for(i in e)if((a=t[e[i]])!==n)return!1===r?e[i]:o(a,"function")?a.bind(r||t):a;return!1}function u(e,t,n){var r=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+w.join(r+" ")+r).split(" ");return o(t,"string")||o(t,"undefined")?a(i,t):(i=(e+" "+x.join(r+" ")+r).split(" "),s(i,t,n))}var l,c,f,d="2.8.3",p={},h=!0,m=t.documentElement,g="modernizr",y=t.createElement(g),v=y.style,b=" -webkit- -moz- -o- -ms- ".split(" "),_="Webkit Moz O ms",w=_.split(" "),x=_.toLowerCase().split(" "),k={},T=[],S=T.slice,C=function(e,n,r,o){var i,a,s,u,l=t.createElement("div"),c=t.body,f=c||t.createElement("body");if(parseInt(r,10))for(;r--;)s=t.createElement("div"),s.id=o?o[r]:g+(r+1),l.appendChild(s);return i='­",l.id=g,(c?l:f).innerHTML+=i,f.appendChild(l),c||(f.style.background="",f.style.overflow="hidden",u=m.style.overflow,m.style.overflow="hidden",m.appendChild(f)),a=n(l,e),c?l.parentNode.removeChild(l):(f.parentNode.removeChild(f),m.style.overflow=u),!!a},E=function(){function e(e,i){i=i||t.createElement(r[e]||"div"),e="on"+e;var a=e in i;return a||(i.setAttribute||(i=t.createElement("div")),i.setAttribute&&i.removeAttribute&&(i.setAttribute(e,""),a=o(i[e],"function"),o(i[e],"undefined")||(i[e]=n),i.removeAttribute(e))),i=null,a}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return e}(),M={}.hasOwnProperty;c=o(M,"undefined")||o(M.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return M.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t,n,r=this;if("function"!=typeof r)throw new TypeError;return t=S.call(arguments,1),n=function(){var o,i,a;return this instanceof n?(o=function(){},o.prototype=r.prototype,i=new o,a=r.apply(i,t.concat(S.call(arguments))),Object(a)===a?a:i):r.apply(e,t.concat(S.call(arguments)))}}),k.flexbox=function(){return u("flexWrap")},k.canvas=function(){var e=t.createElement("canvas");return!!e.getContext&&!!e.getContext("2d")},k.canvastext=function(){return!!p.canvas&&!!o(t.createElement("canvas").getContext("2d").fillText,"function")},k.touch=function(){var n ;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:C("@media ("+b.join("touch-enabled),(")+g+"){#modernizr{top:9px;position:absolute}}",function(e){n=9===e.offsetTop}),n},k.history=function(){return!!e.history&&!!history.pushState},k.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},k.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},k.multiplebgs=function(){return r("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(v.background)},k.csscolumns=function(){return u("columnCount")},k.csstransitions=function(){return u("transition")},k.localstorage=function(){try{return localStorage.setItem(g,g),localStorage.removeItem(g),!0}catch(e){return!1}};for(f in k)c(k,f)&&(l=f.toLowerCase(),p[l]=k[f](),T.push((p[l]?"":"no-")+l));return p.addTest=function(e,t){if("object"==typeof e)for(var r in e)c(e,r)&&p.addTest(r,e[r]);else{if(e=e.toLowerCase(),p[e]!==n)return p;t="function"==typeof t?t():t,void 0!==h&&h&&(m.className+=" feature-"+(t?"":"no-")+e),p[e]=t}return p},r(""),y=null,p._version=d,p._prefixes=b,p._domPrefixes=x,p._cssomPrefixes=w,p.hasEvent=E,p.testProp=function(e){return a([e])},p.testAllProps=u,p.testStyles=C,m.className=m.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(h?" feature-js feature-"+T.join(" feature-"):""),p}(window,document);!r.touch||"onorientationchange"in window||(r.touch=!1,document.documentElement.className=document.documentElement.className.replace("feature-touch","feature-no-touch")),r.addTest("pointerevents",function(){var e,t=document.createElement("x"),n=document.documentElement,r=window.getComputedStyle,o=!1;return"pointerEvents"in t.style&&(t.style.pointerEvents="auto",t.style.pointerEvents="x",n.appendChild(t),r&&(e=r(t,""),o=!!e&&"auto"===e.pointerEvents),n.removeChild(t),!!o)}),r.addTest("flexbox",r.testAllProps("flexBasis","1px",!0))},,,,,,,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},,,,function(e,t,n){e.exports=!n(36)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},,,,,,,function(e,t,n){var r=n(182),o=n(82);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(138),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},,,,,function(e,t,n){var r=n(97);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;n.props.shouldMeasure&&(n._node.parentNode||n._setDOMNode(),e=n.getDimensions(n._node,r),t="function"==typeof n.props.children,n._propsToMeasure.some(function(r){if(e[r]!==n._lastDimensions[r])return n.props.onMeasure(e),t&&void 0!==n&&n.setState({dimensions:e}),n._lastDimensions=e,!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 a(t,e),s(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new h.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=d.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,g.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 u.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(u.Component);y.propTypes={whitelist:c.default.array,blacklist:c.default.array,includeMargin:c.default.bool,useClone:c.default.bool,cloneOptions:c.default.object,shouldMeasure:c.default.bool,onMeasure:c.default.func},y.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=y,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";var r,o,i,a="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};"production"!==t.env.NODE_ENV?(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"===(void 0===e?"undefined":a(e))&&null!==e&&e.$$typeof===r},i=!0,e.exports=n(5)(o,i)):e.exports=n(12)()}).call(t,n(4)) },function(e,t){"use strict";function n(){throw Error("setTimeout has not been defined")}function r(){throw 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(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){h&&d&&(h=!1,d.length?p=d.concat(p):m=-1,p.length&&s())}function s(){var e,t;if(!h){for(e=o(a),h=!0,t=p.length;t;){for(d=p,p=[];++m1)for(t=1;t1?t-1:0),r=1;r2?n-2:0),i=2;i1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),r=void 0,o=void 0,i=void 0;return t.margin&&(i=(0, -a.default)(getComputedStyle(e))),t.margin?(r=i.left+n.width+i.right,o=i.top+n.height+i.bottom):(r=n.width,o=n.height),{width:r,height:o,top:n.top,right:n.right,bottom:n.bottom,left:n.left}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(16),a=r(i);e.exports=t.default},function(e,t){"use strict";function n(e){return e=e||{},{top:r(e.marginTop),right:r(e.marginRight),bottom:r(e.marginBottom),left:r(e.marginLeft)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=function(e){return parseInt(e)||0};e.exports=t.default}])})},,,,,,,,,,,,function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(18),o=n(79),i=n(51),a=n(114)("src"),s="toString",u=Function[s],l=(""+u).split(s);n(95).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(t+""))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(252),o=n(184);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(116),o=n(80),i=n(62),a=n(113),s=n(51),u=n(250),l=Object.getOwnPropertyDescriptor;t.f=n(55)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(82);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(20)("unscopables"),o=Array.prototype;void 0==o[r]&&n(79)(o,r,{}),e.exports=function(e){o[r][e]=!0}},,,,,,,,,,,,function(e,t,n){var r=n(29);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(37).f,o=n(51),i=n(20)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(51),o=n(100),i=n(183)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,a){for(;i>=0&&i0?0:s-1;return arguments.length<3&&(o=n[a?a[l]:l],l+=e),t(n,r,o,a,l,s)}}function i(e){return function(t,n,r){var o,i;for(n=l(n,r),o=h(t),i=e>0?0:o-1;i>=0&&i=0&&i0?0:s-1;return arguments.length<3&&(o=n[a?a[l]:l],l+=e),t(n,r,o,a,l,s)}}function i(e){return function(t,n,r){var o,i;for(n=l(n,r),o=h(t),i=e>0?0:o-1;i>=0&&i0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(R.call(r,a,s),V.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i=0&&t<=p},V.each=V.forEach=function(e,t,n){var r,o,i;if(t=u(t,n),m(e))for(r=0,o=e.length;r=0},V.invoke=function(e,t){var n=R.call(arguments,2),r=V.isFunction(t);return V.map(e,function(e){var o=r?t:e[t] ;return null==o?o:o.apply(e,n)})},V.pluck=function(e,t){return V.map(e,V.property(t))},V.where=function(e,t){return V.filter(e,V.matcher(t))},V.findWhere=function(e,t){return V.find(e,V.matcher(t))},V.max=function(e,t,n){var r,o,i,a,s=-1/0,u=-1/0;if(null==t&&null!=e)for(e=m(e)?e:V.values(e),i=0,a=e.length;is&&(s=r);else t=l(t,n),V.each(e,function(e,n,r){((o=t(e,n,r))>u||o===-1/0&&s===-1/0)&&(s=e,u=o)});return s},V.min=function(e,t,n){var r,o,i,a,s=1/0,u=1/0;if(null==t&&null!=e)for(e=m(e)?e:V.values(e),i=0,a=e.length;ir||void 0===n)return 1;if(nt?(s&&(clearTimeout(s),s=null),u=c,i=e.apply(r,o),s||(r=o=null)):s||!1===n.trailing||(s=setTimeout(a,l)),i}},V.debounce=function(e,t,n){var r,o,i,a,s,u=function(){var l=V.now()-a;l=0?r=setTimeout(u,t-l):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=V.now();var l=n&&!r;return r||(r=setTimeout(u,t)),l&&(s=e.apply(i,o),i=o=null),s}},V.wrap=function(e,t){return V.partial(t,e)},V.negate=function(e){return function(){return!e.apply(this,arguments)}},V.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},V.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},V.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},V.once=V.partial(V.before,2),b=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],V.keys=function(e){var t,n;if(!V.isObject(e))return[];if(W)return W(e);t=[] ;for(n in e)V.has(e,n)&&t.push(n);return b&&s(e,t),t},V.allKeys=function(e){var t,n;if(!V.isObject(e))return[];t=[];for(n in e)t.push(n);return b&&s(e,t),t},V.values=function(e){var t,n=V.keys(e),r=n.length,o=Array(r);for(t=0;t":">",'"':""","'":"'","`":"`"},k=V.invert(x),T=function(e){var t=function(t){return e[t]},n="(?:"+V.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}},V.escape=T(x),V.unescape=T(k),V.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),V.isFunction(r)?r.call(e):r},S=0,V.uniqueId=function(e){var t=++S+"";return e?e+t:t},V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},C=/(.)^/,E={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},M=/\\|'|\r|\n|\u2028|\u2029/g,O=function(e){return"\\"+E[e]},V.template=function(e,t,n){var r,o,i,a,s,u;!t&&n&&(t=n),t=V.defaults({},t,V.templateSettings),r=RegExp([(t.escape||C).source,(t.interpolate||C).source,(t.evaluate||C).source].join("|")+"|$","g"),o=0,i="__p+='",e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(M,O),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}return s=function(e){return a.call(this,e,V)},u=t.variable||"obj",s.source="function("+u+"){\n"+i+"}",s},V.chain=function(e){var t=V(e);return t._chain=!0,t},D=function(e,t){return e._chain?V(t).chain():t},V.mixin=function(e){V.each(V.functions(e),function(t){var n=V[t]=e[t];V.prototype[t]=function(){var e=[this._wrapped];return F.apply(e,arguments),D(this,n.apply(V,e))}})},V.mixin(V),V.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=L[e];V.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments), -"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],D(this,n)}}),V.each(["concat","join","slice"],function(e){var t=L[e];V.prototype[e]=function(){return D(this,t.apply(this._wrapped,arguments))}}),V.prototype.value=function(){return this._wrapped},V.prototype.valueOf=V.prototype.toJSON=V.prototype.value,V.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(o=function(){return V}.apply(t,r))&&(e.exports=o)}).call(this)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){r(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}for(var o,i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(!e)return{};o=r(i.shift()),!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function l(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):l(e[r],t[r],n):e[r]=t[r];return e}function c(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function f(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return d[e]}):e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeString=r,t.copy=o,t.setPath=a,t.pushPath=s,t.getPath=u,t.deepExtend=l,t.regexEscape=c,t.escape=f;var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},,,,,,,,,,,,,,,,,function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(138),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(16),o=n(425),i=n(184),a=n(183)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(179)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(255).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(), +"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],D(this,n)}}),V.each(["concat","join","slice"],function(e){var t=L[e];V.prototype[e]=function(){return D(this,t.apply(this._wrapped,arguments))}}),V.prototype.value=function(){return this._wrapped},V.prototype.valueOf=V.prototype.toJSON=V.prototype.value,V.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(o=function(){return V}.apply(t,r))&&(e.exports=o)}).call(this)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){r(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}for(var o,i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(!e)return{};o=r(i.shift()),!e[o]&&n&&(e[o]=new n),e=e[o]}return e?{obj:e,k:r(i.shift())}:{}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function l(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):l(e[r],t[r],n):e[r]=t[r];return e}function c(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function f(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return d[e]}):e}Object.defineProperty(t,"__esModule",{value:!0}),t.makeString=r,t.copy=o,t.setPath=a,t.pushPath=s,t.getPath=u,t.deepExtend=l,t.regexEscape=c,t.escape=f;var d={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},,,,,,,,,,,,,,,,,function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(138),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(16),o=n(426),i=n(184),a=n(183)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(179)("iframe"),r=i.length,o="<",a=">";for(t.style.display="none",n(256).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(), e.write(o+"script"+a+"document.F=Object"+o+"/script"+a),e.close(),l=e.F;r--;)delete l[u][i[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,o,i;!function(a){o=[n(13),n(75)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){var t=0,n=Array.prototype.slice;return e.cleanData=function(t){return function(n){var r,o,i;for(i=0;null!=(o=n[i]);i++)try{r=e._data(o,"events"),r&&r.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}}(e.cleanData),e.widget=function(t,n,r){var o,i,a,s,u={},l=t.split(".")[0];return t=t.split(".")[1],s=l+"-"+t,r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][s.toLowerCase()]=function(t){return!!e.data(t,s)},e[l]=e[l]||{},o=e[l][t],i=e[l][t]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},e.extend(i,o,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),a=new n,a.options=e.widget.extend({},a.options),e.each(r,function(t,r){if(!e.isFunction(r))return void(u[t]=r);u[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,i=this._superApply;return this._super=e,this._superApply=o,t=r.apply(this,arguments),this._super=n,this._superApply=i,t}}()}),i.prototype=e.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix||t:t},u,{constructor:i,namespace:l,widgetName:t,widgetFullName:s}),o?(e.each(o._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,i,n._proto)}),delete o._childConstructors):n._childConstructors.push(i),e.widget.bridge(t,i),i},e.widget.extend=function(t){for(var r,o,i=n.call(arguments,1),a=0,s=i.length;a",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,o,i,a=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},r=t.split("."),t=r.shift(),r.length){for(o=a[t]=e.widget.extend({},this.options[t]),i=0;i22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var r=n(137),o=n(4),i=n(96),a=n(79),s=n(51),u=n(142),l=n(260),c=n(115),f=n(117),d=n(20)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,v,b,_){var w,x,k,T,S,C,E,M,O,D,N,P;if(l(n,t,y),w=function(e){if(!p&&e in S)return S[e];switch(e){case h:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k=v==m,T=!1,S=e.prototype,C=S[d]||S["@@iterator"]||v&&S[v],E=C||w(v),M=v?k?w("entries"):E:void 0,O="Array"==t?S.entries||C:C,O&&(P=f(O.call(new e)))!==Object.prototype&&(c(P,x,!0),r||s(P,d)||a(P,d,g)),k&&C&&C.name!==m&&(T=!0,E=function(){return C.call(this)}),r&&!_||!p&&!T&&S[d]||a(S,d,E),u[t]=E,u[x]=g,v)if(D={values:k?E:w(m),keys:b?E:w(h),entries:M},_)for(N in D)N in S||i(S,N,D[N]);else o(o.P+o.F*(p||T),t,D);return D}},function(e,t,n){var r=n(469),o=n(82);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return o(e)+""}},function(e,t,n){var r=n(20)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r,o=n(20)("iterator"),i=!1;try{r=[7][o](),r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){var n,r,a;if(!t&&!i)return!1;n=!1;try{r=[7],a=r[o](),a.next=function(){return{ -done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(18),o=n(37),i=n(55),a=n(20)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(68),o=n(261),i=n(262),a=n(16),s=n(63),u=n(264),l={},c={};t=e.exports=function(e,t,n,f,d){var p,h,m,g,y=d?function(){return e}:u(e),v=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=s(e.length);p>b;b++)if((g=t?v(a(h=e[b])[0],h[1]):v(e[b]))===l||g===c)return g}else for(m=y.call(e);!(h=m.next()).done;)if((g=o(m,v,h.value,t))===l||g===c)return g},t.BREAK=l,t.RETURN=c},function(e,t,n){var r=n(96);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";function r(e){return"number"==typeof e&&isFinite(e)}function o(e){return"number"==typeof e&&e%1==0}function i(e){return!(e<=0||e>0)}function a(e){return Math.round(1e10*e)/1e10}function s(e,t){var n=e/t,r=Math.floor(n),o=n-r;return o>2e-10?a(o>.5?(r+1)*t:r*t):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=r,t.isInteger=o,t.isNaN=i,t.fixComputationError=a,t.alignTo=s},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(555),i=r(o),a=n(290),s=r(a);e.exports={TransitionGroup:s.default,CSSTransitionGroup:i.default}},,,function(e,t,n){var r,o,i;!function(a){o=[n(13),n(387),n(75),n(168)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.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(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,o=1===n.which,i=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(o&&!i&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(), -!0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},function(e,t,n){"use strict";function r(){return new Promise(function(e){n.e(0).then(function(t){n(388),e()}.bind(null,n)).catch(n.oe)})}Object.defineProperty(t,"__esModule",{value:!0}),n(13),t.lazyVelocity=r,$.fn.velocity=function(){var e,t=this,n=[];for(e=0;eu;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(62),o=n(63),i=n(139);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=o(u.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(81);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){e.exports=n(18).document&&document.documentElement},function(e,t,n){var r=n(29),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e} -},function(e,t,n){var r=n(4),o=n(82),i=n(36),a=n(187),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var o={},s=i(function(){return!!a[e]()||u[e]()!=u}),l=o[e]=s?t(d):a[e];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=f.trim=function(e,t){return e=o(e)+"",1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(138),o=n(82);e.exports=function(e){return function(t,n){var i,a,s=o(t)+"",u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(141),o=n(80),i=n(115),a={};n(79)(a,n(20)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(16);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(142),o=n(20)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(37),o=n(80);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(265),o=n(20)("iterator"),i=n(142);e.exports=n(95).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(81),o=n(20)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(68),o=n(182),i=n(100),a=n(63),s=n(484);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var m,g,y=i(t),v=o(y),b=r(s,h,3),_=a(v.length),w=0,x=n?p(t,_):u?p(t,0):void 0;_>w;w++)if((d||w in v)&&(m=v[w],g=b(m,w,y),e))if(n)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(c)return!1;return f?-1:l||c?c:x}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r,o,i,a=n(68),s=n(269),u=n(255),l=n(179),c=n(18),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=0,g={},y="onreadystatechange",v=function(){var e,t=+this;g.hasOwnProperty(t)&&(e=g[t],delete g[t],e())},b=function(e){v.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete g[e]},"process"==n(81)(f)?r=function(e){f.nextTick(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r=y in l("script")?function(e){ -u.appendChild(l("script"))[y]=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r=n(37).f,o=n(141),i=n(197),a=n(68),s=n(195),u=n(82),l=n(196),c=n(190),f=n(267),d=n(194),p=n(55),h=n(180).fastKey,m=p?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[c],e)});return i(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var t,n,r=this,o=g(r,e);return o&&(t=o.n,n=o.p,delete r._i[o.i],o.r=!0,n&&(n.n=t),t&&(t.p=n),r._f==o&&(r._f=t),r._l==o&&(r._l=n),r[m]--),!!o},forEach:function(e){s(this,f,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),p&&r(f.prototype,"size",{get:function(){return u(this[m])}}),f},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(18),o=n(4),i=n(96),a=n(197),s=n(180),u=n(196),l=n(195),c=n(29),f=n(36),d=n(193),p=n(115),h=n(495);e.exports=function(e,t,n,m,g,y){var v,b,_,w,x,k=r[e],T=k,S=g?"set":"add",C=T&&T.prototype,E={},M=function(e){var t=C[e];i(C,e,"delete"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};return"function"==typeof T&&(y||C.forEach&&!f(function(){(new T).entries().next()}))?(v=new T,b=v[S](y?{}:-0,1)!=v,_=f(function(){v.has(1)}),w=d(function(e){new T(e)}),x=!y&&f(function(){for(var e=new T,t=5;t--;)e[S](t,t);return!e.has(-0)}),w||(T=t(function(t,n){l(t,T,e);var r=h(new k,t,T);return void 0!=n&&u(n,g,r[S],r),r}),T.prototype=C,C.constructor=T),(_||x)&&(M("delete"),M("has"),g&&M("get")),(x||b)&&M(S),y&&C.clear&&delete C.clear):(T=m.getConstructor(t,e,g,S),a(T.prototype,n),s.NEED=!0),p(T,e),E[e]=T,o(o.G+o.W+o.F*(T!=k),E),y||m.setStrong(T,e,g),T}},function(e,t,n){ +if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},p=function(e){return l&&h.NEED&&u(e)&&!i(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:p}},function(e,t,n){var r=n(18),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(81);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(181)("keys"),o=n(114);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(253),o=n(184).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(29),o=n(16),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(68)(Function.call,n(99).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var r=n(137),o=n(4),i=n(96),a=n(79),s=n(51),u=n(142),l=n(261),c=n(115),f=n(117),d=n(20)("iterator"),p=!([].keys&&"next"in[].keys()),h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,v,b,_){var w,x,k,T,S,C,E,M,O,D,N,P;if(l(n,t,y),w=function(e){if(!p&&e in S)return S[e];switch(e){case h:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k=v==m,T=!1,S=e.prototype,C=S[d]||S["@@iterator"]||v&&S[v],E=C||w(v),M=v?k?w("entries"):E:void 0,O="Array"==t?S.entries||C:C,O&&(P=f(O.call(new e)))!==Object.prototype&&(c(P,x,!0),r||s(P,d)||a(P,d,g)),k&&C&&C.name!==m&&(T=!0,E=function(){return C.call(this)}),r&&!_||!p&&!T&&S[d]||a(S,d,E),u[t]=E,u[x]=g,v)if(D={values:k?E:w(m),keys:b?E:w(h),entries:M},_)for(N in D)N in S||i(S,N,D[N]);else o(o.P+o.F*(p||T),t,D);return D}},function(e,t,n){var r=n(470),o=n(82);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return o(e)+""}},function(e,t,n){var r=n(20)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r,o=n(20)("iterator"),i=!1;try{r=[7][o](),r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){var n,r,a;if(!t&&!i)return!1;n=!1;try{r=[7],a=r[o](),a.next=function(){return{ +done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(18),o=n(37),i=n(55),a=n(20)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(68),o=n(262),i=n(263),a=n(16),s=n(63),u=n(265),l={},c={};t=e.exports=function(e,t,n,f,d){var p,h,m,g,y=d?function(){return e}:u(e),v=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=s(e.length);p>b;b++)if((g=t?v(a(h=e[b])[0],h[1]):v(e[b]))===l||g===c)return g}else for(m=y.call(e);!(h=m.next()).done;)if((g=o(m,v,h.value,t))===l||g===c)return g},t.BREAK=l,t.RETURN=c},function(e,t,n){var r=n(96);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";function r(e){return"number"==typeof e&&isFinite(e)}function o(e){return"number"==typeof e&&e%1==0}function i(e){return!(e<=0||e>0)}function a(e){return Math.round(1e10*e)/1e10}function s(e,t){var n=e/t,r=Math.floor(n),o=n-r;return o>2e-10?a(o>.5?(r+1)*t:r*t):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=r,t.isInteger=o,t.isNaN=i,t.fixComputationError=a,t.alignTo=s},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(556),i=r(o),a=n(291),s=r(a);e.exports={TransitionGroup:s.default,CSSTransitionGroup:i.default}},,,function(e,t,n){var r,o,i;!function(a){o=[n(13),n(388),n(75),n(168)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.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(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var r=this,o=1===n.which,i=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(o&&!i&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(), +!0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return r._mouseMove(e)},this._mouseUpDelegate=function(e){return r._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},function(e,t,n){"use strict";function r(){return new Promise(function(e){n.e(0).then(function(t){n(389),e()}.bind(null,n)).catch(n.oe)})}Object.defineProperty(t,"__esModule",{value:!0}),n(13),t.lazyVelocity=r,$.fn.velocity=function(){var e,t=this,n=[];for(e=0;eu;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var r=n(62),o=n(63),i=n(139);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=o(u.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(81);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){e.exports=n(18).document&&document.documentElement},function(e,t,n){var r=n(29),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e} +},function(e,t,n){var r=n(4),o=n(82),i=n(36),a=n(187),s="["+a+"]",u="​…",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),f=function(e,t,n){var o={},s=i(function(){return!!a[e]()||u[e]()!=u}),l=o[e]=s?t(d):a[e];n&&(o[n]=l),r(r.P+r.F*s,"String",o)},d=f.trim=function(e,t){return e=o(e)+"",1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(138),o=n(82);e.exports=function(e){return function(t,n){var i,a,s=o(t)+"",u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u),i<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(141),o=n(80),i=n(115),a={};n(79)(a,n(20)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(16);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(142),o=n(20)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(37),o=n(80);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(266),o=n(20)("iterator"),i=n(142);e.exports=n(95).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(81),o=n(20)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){var r=n(68),o=n(182),i=n(100),a=n(63),s=n(485);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var m,g,y=i(t),v=o(y),b=r(s,h,3),_=a(v.length),w=0,x=n?p(t,_):u?p(t,0):void 0;_>w;w++)if((d||w in v)&&(m=v[w],g=b(m,w,y),e))if(n)x[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:x.push(m)}else if(c)return!1;return f?-1:l||c?c:x}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r,o,i,a=n(68),s=n(270),u=n(256),l=n(179),c=n(18),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,m=0,g={},y="onreadystatechange",v=function(){var e,t=+this;g.hasOwnProperty(t)&&(e=g[t],delete g[t],e())},b=function(e){v.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete g[e]},"process"==n(81)(f)?r=function(e){f.nextTick(a(v,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):r=y in l("script")?function(e){ +u.appendChild(l("script"))[y]=function(){u.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:d,clear:p}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){"use strict";var r=n(37).f,o=n(141),i=n(197),a=n(68),s=n(195),u=n(82),l=n(196),c=n(190),f=n(268),d=n(194),p=n(55),h=n(180).fastKey,m=p?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var f=e(function(e,r){s(e,f,t,"_i"),e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&l(r,n,e[c],e)});return i(f.prototype,{clear:function(){for(var e=this,t=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete t[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var t,n,r=this,o=g(r,e);return o&&(t=o.n,n=o.p,delete r._i[o.i],o.r=!0,n&&(n.n=t),t&&(t.p=n),r._f==o&&(r._f=t),r._l==o&&(r._l=n),r[m]--),!!o},forEach:function(e){s(this,f,"forEach");for(var t,n=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(n(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!g(this,e)}}),p&&r(f.prototype,"size",{get:function(){return u(this[m])}}),f},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?f(0,n.k):"values"==t?f(0,n.v):f(0,[n.k,n.v]):(e._t=void 0,f(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(18),o=n(4),i=n(96),a=n(197),s=n(180),u=n(196),l=n(195),c=n(29),f=n(36),d=n(193),p=n(115),h=n(496);e.exports=function(e,t,n,m,g,y){var v,b,_,w,x,k=r[e],T=k,S=g?"set":"add",C=T&&T.prototype,E={},M=function(e){var t=C[e];i(C,e,"delete"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};return"function"==typeof T&&(y||C.forEach&&!f(function(){(new T).entries().next()}))?(v=new T,b=v[S](y?{}:-0,1)!=v,_=f(function(){v.has(1)}),w=d(function(e){new T(e)}),x=!y&&f(function(){for(var e=new T,t=5;t--;)e[S](t,t);return!e.has(-0)}),w||(T=t(function(t,n){l(t,T,e);var r=h(new k,t,T);return void 0!=n&&u(n,g,r[S],r),r}),T.prototype=C,C.constructor=T),(_||x)&&(M("delete"),M("has"),g&&M("get")),(x||b)&&M(S),y&&C.clear&&delete C.clear):(T=m.getConstructor(t,e,g,S),a(T.prototype,n),s.NEED=!0),p(T,e),E[e]=T,o(o.G+o.W+o.F*(T!=k),E),y||m.setStrong(T,e,g),T}},function(e,t,n){ var r=n(98),o=n(62),i=n(116).f;e.exports=function(e){return function(t){for(var n,a=o(t),s=r(a),u=s.length,l=0,c=[];u>l;)i.call(a,n=s[l++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".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:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";var t="Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.".split("_"),n="Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic".split("_");return e.defineLocale("es",{months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),monthsShort:function(e,r){return/-MMM-/.test(r)?n[e.month()]:t[e.month()]},weekdays:"Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mié._Jue._Vie._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"), weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"Ah時m分s秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah時m分",LLLL:"YYYY年M月D日Ah時m分 dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h시 m분",LLLL:"YYYY년 MMMM D일 dddd A h시 m분"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";function t(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function n(e,n,r){var o=e+" ";switch(r){case"m":return n?"minuta":"minutę";case"mm":return o+(t(e)?"minuty":"minut");case"h":return n?"godzina":"godzinę";case"hh":return o+(t(e)?"godziny":"godzin");case"MM":return o+(t(e)?"miesiące":"miesięcy");case"yy":return o+(t(e)?"lata":"lat")}} var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return e.defineLocale("pl",{months:function(e,t){return""===t?"("+o[e.month()]+"|"+r[e.month()]+")":/D MMMM/.test(t)?o[e.month()]:r[e.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:n,mm:n,h:n,hh:n,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:n,y:"rok",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.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}})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";return e.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º"})})},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){var o={mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===r?n?"минута":"минуту":e+" "+t(o[r],+e)}function r(e,t){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]}function o(e,t){return{nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]}function i(e,t){return{nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]}return e.defineLocale("ru",{months:r,monthsShort:o,weekdays:i,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(e){if(e.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:n,mm:n,h:"час",hh:n,d:"день",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}})}) -},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";var t={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ı"};return e.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(e){if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}})})},function(e,t,n){"use strict";!function(e){function t(t){var n=t||window.event,r=[].slice.call(arguments,1),o=0,i=0,a=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(o=n.wheelDelta/120),n.detail&&(o=-n.detail/3),a=o,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(a=0,i=-1*o),void 0!==n.wheelDeltaY&&(a=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(i=-1*n.wheelDeltaX/120),r.unshift(t,o,i,a),(e.event.dispatch||e.event.handle).apply(this,r)}var n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o=["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(n=r.length;n;)e.event.fixHooks[r[--n]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery)},function(e,t,n){"use strict";var r=n(32),o=r.rgba,i=r.areEqualRgb,a=r.areEqualRgba,s=r.normalizeHue,u=r.normalizeHsvSaturation,l=r.normalizeValue,c=r.hsv,f=r.rgbToHsv,d=r.hsvToRgb,p=r.rgbToString,h=r.rgbaToString,m=r.parseRgb,g=r.parseRgba,y=n(527);!function(e){function t(e){return""===e?e:h(g(e))}function n(e){e&&(e.join||(e=e?(""+e).split(","):[]),b=e)}function r(w){function x(t){var n=!1,r=m(t);return e.each(b,function(e,t){if(i(m(t),r))return n=!0,!1}),!n&&(b=[p(r)].concat(b.slice(0,v-1)),!0)}function k(t,n,r){var i=e(this);t=h(o(m(t),n)),T.call(this,t), +},function(e,t,n){!function(e,t){t(n(38))}(0,function(e){"use strict";var t={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ı"};return e.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(e){if(0===e)return e+"'ıncı";var n=e%10,r=e%100-n,o=e>=100?100:null;return e+(t[n]||t[r]||t[o])},week:{dow:1,doy:7}})})},function(e,t,n){"use strict";!function(e){function t(t){var n=t||window.event,r=[].slice.call(arguments,1),o=0,i=0,a=0;return t=e.event.fix(n),t.type="mousewheel",n.wheelDelta&&(o=n.wheelDelta/120),n.detail&&(o=-n.detail/3),a=o,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(a=0,i=-1*o),void 0!==n.wheelDeltaY&&(a=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(i=-1*n.wheelDeltaX/120),r.unshift(t,o,i,a),(e.event.dispatch||e.event.handle).apply(this,r)}var n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o=["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(n=r.length;n;)e.event.fixHooks[r[--n]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}(jQuery)},function(e,t,n){"use strict";var r=n(32),o=r.rgba,i=r.areEqualRgb,a=r.areEqualRgba,s=r.normalizeHue,u=r.normalizeHsvSaturation,l=r.normalizeValue,c=r.hsv,f=r.rgbToHsv,d=r.hsvToRgb,p=r.rgbToString,h=r.rgbaToString,m=r.parseRgb,g=r.parseRgba,y=n(528);!function(e){function t(e){return""===e?e:h(g(e))}function n(e){e&&(e.join||(e=e?(""+e).split(","):[]),b=e)}function r(w){function x(t){var n=!1,r=m(t);return e.each(b,function(e,t){if(i(m(t),r))return n=!0,!1}),!n&&(b=[p(r)].concat(b.slice(0,v-1)),!0)}function k(t,n,r){var i=e(this);t=h(o(m(t),n)),T.call(this,t), i.removeData("tvcolorpicker").removeData("tvcolorpicker-custom-color"),r&&(O(),i.blur())}function T(t){var n=e(this);n.val(t),n.change(),t?n.trigger("pick-color",t):n.trigger("pick-transparent"),S.call(this,t)}function S(t){if(""===t)return void e(this).addClass("tvcolorpicker-gradient-widget");e(this).removeClass("tvcolorpicker-gradient-widget"),e(this).css({backgroundColor:t,color:t})}function C(t,n){var r,o,a,s,u,l;return n=n||{},r=this,o=e(r).val().toLowerCase(),a=document.createElement("table"),s=document.createElement("tbody"),a.appendChild(s),l=0,e.each(t,function(t,a){var c,f;l++,t%v==0&&(u=e("

").appendTo(s)),c=e('').appendTo(u),f=e('
').appendTo(c).find(".tvcolorpicker-swatch").data("color",a),n.addClass&&f.addClass(n.addClass),a&&(a=a.toLowerCase(),o&&i(m(o),m(a))&&f.addClass("active"),f.css({backgroundColor:a}).data("color",a),f.bind("click",function(){k.call(r,a,D.val(),!0)}))}),e(a).addClass("tvcolorpicker-table"),l?a:e()}function E(t,n,r){var o,i=e(t).offset(),a={left:e(document).scrollLeft(),top:e(document).scrollTop()},s={width:e(t).outerWidth(),height:e(t).outerHeight()},u={width:e(window).width(),height:e(window).height()},l={width:e(n).outerWidth(),height:e(n).outerHeight()};switch("function"==typeof r.direction?r.direction():r.direction){default:case"down":o={top:i.top+s.height+r.offset,left:i.left+r.drift};break;case"right":o={top:i.top+r.drift,left:i.left+s.width+r.offset}}o.top+l.height>u.height+a.top&&(o.top=u.height-l.height+a.top),i.left+l.width>u.width&&(o.left=u.width-l.width),o.left+="px",o.top+="px",n.css(o)}function M(t){function n(e){var t=e.originalEvent,n=e.offsetX||e.layerX||t&&(t.offsetX||t.layerX)||0,r=e.offsetY||e.layerY||t&&(t.offsetY||t.layerY)||0;N.css({left:n+"px",top:r+"px"}),U[0]=s(n/I),U[1]=u(1-r/R),j.css({backgroundColor:p(d(c(U[0],U[1],1)))}),x()}function r(t){1==t.which&&(H=!1,V.is(".opened")&&e(B).get(0).focus())}function i(t){var n=t.pageY,r=e(F),o=r.offset().top,i=n-o;return i>r.height()?r.height():i<0?0:i}function v(e){var t=i(e);A.css({top:t+"px"}),U[2]=l(1-Math.max(0,Math.min(t,R))/R),x()}function w(t){1==t.which&&(Y=!1,e(document).unbind("mouseup",w),V.is(".opened")&&e(B).get(0).focus())}function x(){var e,t;W&&(W=!1,V.find(".tvcolorpicker-swatch.active").removeClass("active")),e=o(d(U),D.val()),a(g(B.val().toUpperCase()),e)||(t=h(e),B.data("tvcolorpicker-custom-color",t),T.call(B,t))}var S,M,O,N,P,L,j,A,F,R,I,H,Y,W,U,z=!1,B=e(this),V=e('
'),q=e('
').appendTo(V);return q.append(C.call(this,["rgb(0, 0, 0)","rgb(66, 66, 66)","rgb(101, 101, 101)","rgb(152, 152, 152)","rgb(182, 182, 182)","rgb(203, 203, 203)","rgb(216, 216, 216)","rgb(238, 238, 238)","rgb(242, 242, 242)","rgb(255, 255, 255)"])), q.append(C.call(this,["rgb(151, 0, 0)","rgb(255, 0, 0)","rgb(255, 152, 0)","rgb(255, 255, 0)","rgb(0, 255, 0)","rgb(0, 255, 255)","rgb(73, 133, 231)","rgb(0, 0, 255)","rgb(152, 0, 255)","rgb(255, 0, 255)"])),q.append(C.call(this,["rgb(230, 184, 175)","rgb(244, 204, 204)","rgb(252, 229, 205)","rgb(255, 242, 204)","rgb(217, 234, 211)","rgb(208, 224, 227)","rgb(201, 218, 248)","rgb(207, 226, 243)","rgb(217, 210, 233)","rgb(234, 209, 220)","rgb(221, 126, 107)","rgb(234, 153, 153)","rgb(249, 203, 156)","rgb(255, 229, 153)","rgb(182, 215, 168)","rgb(162, 196, 201)","rgb(164, 194, 244)","rgb(159, 197, 232)","rgb(180, 167, 214)","rgb(213, 166, 189)","rgb(204, 65, 37)","rgb(224, 102, 102)","rgb(246, 178, 107)","rgb(255, 217, 102)","rgb(147, 196, 125)","rgb(118, 165, 175)","rgb(109, 158, 235)","rgb(111, 168, 220)","rgb(142, 124, 195)","rgb(194, 123, 160)","rgb(166, 28, 0)","rgb(204, 0, 0)","rgb(230, 145, 56)","rgb(241, 194, 50)","rgb(106, 168, 79)","rgb(69, 129, 142)","rgb(60, 120, 216)","rgb(61, 133, 198)","rgb(103, 78, 167)","rgb(166, 77, 121)","rgb(133, 32, 12)","rgb(153, 0, 0)","rgb(180, 95, 6)","rgb(191, 144, 0)","rgb(56, 118, 29)","rgb(19, 79, 92)","rgb(17, 85, 204)","rgb(11, 83, 148)","rgb(53, 28, 117)","rgb(116, 27, 71)","rgb(91, 15, 0)","rgb(102, 0, 0)","rgb(120, 63, 4)","rgb(127, 96, 0)","rgb(39, 78, 19)","rgb(12, 52, 61)","rgb(28, 69, 135)","rgb(7, 55, 99)","rgb(32, 18, 77)","rgb(76, 17, 48)"])),S=e('
').css({display:"none"}).appendTo(V),M=e('
').appendTo(S),O=e('
').appendTo(M),N=e('
').appendTo(O),P=e('
').appendTo(O),L=e('
').appendTo(M),j=e('
').appendTo(L),A=e('
').appendTo(j),F=e('
').appendTo(j),D=y(e(this),t.hideTransparency),D.initEvents(),D.updateColor(),D.$el.appendTo(V),D.val(g(B.val()||_)[3]),R=O.height(),I=O.width(),H=!1,Y=!1,W=!0,U=[0,0,.5],P.bind("mousedown",function(t){1==t.which&&(H=!0,e(document).bind("mouseup",r),n(t),t.preventDefault())}),P.bind("mousemove",function(e){H&&(n(e),e.preventDefault())}),e(D).on("change",function(){if(z)return void x();k.call(this,e(this).val()||_,D.val())}.bind(this)),e(D).on("afterChange",function(){e(this).focus()}.bind(this)),L.bind("mousedown",function(t){1==t.which&&(Y=!0,e(document).bind("mouseup",w),v(t),t.preventDefault())}),e(document).bind("mousemove",function(e){Y&&(v(e),e.preventDefault())}),e('
'+window.t("Custom color...")+"").appendTo(V).bind("click",function(){var t,n=e(this).is(".active");n||S.css({minWidth:q.width()+"px",minHeight:q.height()+"px"}),e(this)[n?"removeClass":"addClass"]("active"),z=e(this).is(".active"),S.css({display:n?"none":"block"}),q.css({display:n?"block":"none"}),n?B.removeData("tvcolorpicker-custom-color"):(R=O.height(),I=O.width(), -t=m(B.val()||_),U=f(t),N.css({left:~~(U[0]*I)+"px",top:~~((1-U[1])*R)+"px"}),A.css({top:~~((1-U[2])*R)+"px"}),j.css({backgroundColor:p(d(c(U[0],U[1],1)))}))}),V.append(e(C.call(this,b,{addClass:"tvcolorpicker-user"})).addClass("tvcolorpicker-user-swatches")),e(document.body).append(V),E(B,V,t),V}function O(){e(".tvcolorpicker-popup").removeClass("opened").remove(),e(D).off("change"),e(D).off("afterChange"),e(N).data("tvcolorpicker",null),e(N).each(function(){var t,n=e(this).data("tvcolorpicker-custom-color");n&&(x(n)&&e(this).trigger("customcolorchange",[b]),e(this).data("tvcolorpicker-custom-color",null)),t=e(this).data("tvcolorpicker-previous-color"),t&&t!=e(this).val()&&e(this).trigger("change"),e(this).removeData("tvcolorpicker-previous-color")})}var D,N;return w=e.extend({},r.options,w||{}),N=this,w&&"customColors"in w&&n(w.customColors),this.each(function(){function n(){var e=t(a.val());S.call(a,e)}var r,o,i,a=e(this);a.val(t(a.val())),r=null,o=!1,a.addClass("tvcolorpicker-widget").attr("autocomplete","off").attr("readonly",!0),i=function(){a.data("tvcolorpicker")||(O.call(a),r=M.call(a,w),a.data("tvcolorpicker-custom-color",null),a.data("tvcolorpicker",r),a.data("tvcolorpicker-previous-color",a.val()),r.bind("mousedown click",function(t){e(t.target).parents().andSelf().is(r)&&(a.focus(),o=!0,setTimeout(function(){o=!1},0))}))},a.on("touchstart",i),a.focus(i),O.call(a),a.bind("blur",function(e){o?e.stopPropagation():O.call(a)}),a.change(function(e){n()}),n()})}var v,b,_;if(!e)throw Error("This program cannot be run in DOS mode");r.setCustomColors=n,e.fn.tvcolorpicker=r,v=10,b=[],_="rgb(14, 15, 16)",r.options={direction:"down",offset:0,drift:0}}(window.jQuery)},function(e,t,n){e.exports=n(534).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function i(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator, +t=m(B.val()||_),U=f(t),N.css({left:~~(U[0]*I)+"px",top:~~((1-U[1])*R)+"px"}),A.css({top:~~((1-U[2])*R)+"px"}),j.css({backgroundColor:p(d(c(U[0],U[1],1)))}))}),V.append(e(C.call(this,b,{addClass:"tvcolorpicker-user"})).addClass("tvcolorpicker-user-swatches")),e(document.body).append(V),E(B,V,t),V}function O(){e(".tvcolorpicker-popup").removeClass("opened").remove(),e(D).off("change"),e(D).off("afterChange"),e(N).data("tvcolorpicker",null),e(N).each(function(){var t,n=e(this).data("tvcolorpicker-custom-color");n&&(x(n)&&e(this).trigger("customcolorchange",[b]),e(this).data("tvcolorpicker-custom-color",null)),t=e(this).data("tvcolorpicker-previous-color"),t&&t!=e(this).val()&&e(this).trigger("change"),e(this).removeData("tvcolorpicker-previous-color")})}var D,N;return w=e.extend({},r.options,w||{}),N=this,w&&"customColors"in w&&n(w.customColors),this.each(function(){function n(){var e=t(a.val());S.call(a,e)}var r,o,i,a=e(this);a.val(t(a.val())),r=null,o=!1,a.addClass("tvcolorpicker-widget").attr("autocomplete","off").attr("readonly",!0),i=function(){a.data("tvcolorpicker")||(O.call(a),r=M.call(a,w),a.data("tvcolorpicker-custom-color",null),a.data("tvcolorpicker",r),a.data("tvcolorpicker-previous-color",a.val()),r.bind("mousedown click",function(t){e(t.target).parents().andSelf().is(r)&&(a.focus(),o=!0,setTimeout(function(){o=!1},0))}))},a.on("touchstart",i),a.focus(i),O.call(a),a.bind("blur",function(e){o?e.stopPropagation():O.call(a)}),a.change(function(e){n()}),n()})}var v,b,_;if(!e)throw Error("This program cannot be run in DOS mode");r.setCustomColors=n,e.fn.tvcolorpicker=r,v=10,b=[],_="rgb(14, 15, 16)",r.options={direction:"down",offset:0,drift:0}}(window.jQuery)},function(e,t,n){e.exports=n(535).default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function i(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator, "sprintf"===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){var t,n=[];for(t=1;t-1?t:e}function p(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)), +return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(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)}var s,u,l,c,f,d,p,h,m,g,y;t.__esModule=!0,s=Object.assign||function(e){var t,n,r;for(t=1;t-1?t:e}function p(e,t){t=t||{};var n=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)), this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){var n,r,o;e&&(n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," "),t.append(decodeURIComponent(r),decodeURIComponent(o)))}),t}function m(e){var t=new o;return e.split("\r\n").forEach(function(e){var n,r=e.split(":"),o=r.shift().trim();o&&(n=r.join(":").trim(),t.append(o,n))}),t}function g(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}var y,v,b,_,w,x;e.fetch||(y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},y.arrayBuffer&&(v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1}),o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];o||(o=[],this.map[e]=o),o.push(r)},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},o.prototype.getAll=function(e){return this.map[t(e)]||[]},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},o.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},y.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries),w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"],p.prototype.clone=function(){return new p(this,{body:this._bodyInit})},f.call(p.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e},x=[301,302,303,307,308],g.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=p,e.Response=g,e.fetch=function(e,t){return new Promise(function(n,r){ -var o=new p(e,t),i=new XMLHttpRequest;i.onload=function(){var e,t={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL"),e="response"in i?i.response:i.responseText,n(new g(e,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&y.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0)}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";(function(t){if(t._babelPolyfill)throw Error("only one instance of babel/polyfill is allowed");t._babelPolyfill=!0,n(421),n(427),n(429),n(431),n(432),n(433),n(434),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(445),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(470),n(471),n(473),n(474),n(475),n(477),n(478),n(479),n(481),n(483),n(486),n(487),n(488),n(489),n(491),n(494),n(496),n(497),n(498),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(510),n(511),n(512),n(513),n(514),n(515),e.exports=n(95)}).call(t,n(78))},function(e,t,n){"use strict";var r,o,i=n(18),a=n(51),s=n(55),u=n(4),l=n(96),c=n(180).KEY,f=n(36),d=n(181),p=n(115),h=n(114),m=n(20),g=n(251),y=n(422),v=n(423),b=n(424),_=n(254),w=n(16),x=n(62),k=n(113),T=n(80),S=n(141),C=n(426),E=n(99),M=n(37),O=n(98),D=E.f,N=M.f,P=C.f,L=i.Symbol,j=i.JSON,A=j&&j.stringify,F="prototype",R=m("_hidden"),I=m("toPrimitive"),H={}.propertyIsEnumerable,Y=d("symbol-registry"),W=d("symbols"),U=d("op-symbols"),z=Object[F],B="function"==typeof L,V=i.QObject,q=!V||!V[F]||!V[F].findChild,$=s&&f(function(){return 7!=S(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(z,t);r&&delete z[t],N(e,t,n),r&&e!==z&&N(z,t,r)}:N,K=function(e){var t=W[e]=S(L[F]);return t._k=e,t},G=B&&"symbol"==typeof L.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof L},J=function(e,t,n){return e===z&&J(U,t,n),w(e),t=k(t,!0),w(n),a(W,t)?(n.enumerable?(a(e,R)&&e[R][t]&&(e[R][t]=!1),n=S(n,{enumerable:T(0,!1)})):(a(e,R)||N(e,R,T(1,{})),e[R][t]=!0),$(e,t,n)):N(e,t,n)},X=function(e,t){w(e);for(var n,r=b(t=x(t)),o=0,i=r.length;i>o;)J(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):X(S(e),t)},Z=function(e){var t=H.call(this,e=k(e,!0));return!(this===z&&a(W,e)&&!a(U,e))&&(!(t||!a(this,e)||!a(W,e)||a(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=x(e),t=k(t,!0),e!==z||!a(W,t)||a(U,t)){var n=D(e,t);return!n||!a(W,t)||a(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=P(x(e)),r=[],o=0;n.length>o;)a(W,t=n[o++])||t==R||t==c||r.push(t);return r},ne=function(e){for(var t,n=e===z,r=P(n?U:x(e)),o=[],i=0;r.length>i;)!a(W,t=r[i++])||n&&!a(z,t)||o.push(W[t]);return o};for(B||(L=function(){ -var e,t;if(this instanceof L)throw TypeError("Symbol is not a constructor!");return e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(U,n),a(this,R)&&a(this[R],e)&&(this[R][e]=!1),$(this,e,T(1,n))},s&&q&&$(z,e,{configurable:!0,set:t}),K(e)},l(L[F],"toString",function(){return this._k}),E.f=ee,M.f=J,n(185).f=C.f=te,n(116).f=Z,n(140).f=ne,s&&!n(137)&&l(z,"propertyIsEnumerable",Z,!0),g.f=function(e){return K(m(e))}),u(u.G+u.W+u.F*!B,{Symbol:L}),r="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),o=0;r.length>o;)m(r[o++]);for(r=O(m.store),o=0;r.length>o;)y(r[o++]);u(u.S+u.F*!B,"Symbol",{for:function(e){return a(Y,e+="")?Y[e]:Y[e]=L(e)},keyFor:function(e){if(G(e))return v(Y,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!B,"Object",{create:Q,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne}),j&&u(u.S+u.F*(!B||f(function(){var e=L();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,A.apply(j,r)}}}),L[F][I]||n(79)(L[F],I,L[F].valueOf),p(L,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,n){var r=n(18),o=n(95),i=n(137),a=n(251),s=n(37).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(98),o=n(62);e.exports=function(e,t){for(var n,i=o(e),a=r(i),s=a.length,u=0;s>u;)if(i[n=a[u++]]===t)return n}},function(e,t,n){var r=n(98),o=n(140),i=n(116);e.exports=function(e){var t,n,a,s,u=r(e),l=o.f;if(l)for(t=l(e),n=i.f,a=0;t.length>a;)n.call(e,s=t[a++])&&u.push(s);return u}},function(e,t,n){var r=n(37),o=n(16),i=n(98);e.exports=n(55)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(62),o=n(185).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(428)})},function(e,t,n){"use strict";var r=n(98),o=n(140),i=n(116),a=n(100),s=n(182),u=Object.assign;e.exports=!u||n(36)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n,u,l,c,f,d=a(e),p=arguments.length,h=1,m=o.f,g=i.f;p>h;)for(n=s(arguments[h++]),u=m?r(n).concat(m(n)):r(n),l=u.length,c=0;l>c;)g.call(n,f=u[c++])&&(d[f]=n[f]);return d}:u},function(e,t,n){var r=n(4);r(r.S,"Object",{is:n(430)})},function(e,t){e.exports=Object.is||function(e,t){ -return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(186).set})},function(e,t,n){var r=n(37).f,o=n(80),i=n(51),a=Function.prototype,s=/^\s*function ([^ (]*)/,u="name",l=Object.isExtensible||function(){return!0};u in a||n(55)&&r(a,u,{configurable:!0,get:function(){try{var e=this,t=(""+e).match(s)[1];return i(e,u)||!l(e)||r(e,u,o(5,t)),t}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(29),o=n(117),i=n(20)("hasInstance"),a=Function.prototype;i in a||n(37).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var r=n(4),o=n(36),i=n(435),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(81);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(4);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(4),o=n(18).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(4);r(r.S,"Number",{isInteger:n(256)})},function(e,t,n){var r=n(4);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(4),o=n(256),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(4);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(4);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(4),o=n(444);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(18).parseFloat,o=n(257).trim;e.exports=1/r(n(187)+"-0")!=-1/0?function(e){var t=o(e+"",3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(4),o=n(446);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(18).parseInt,o=n(257).trim,i=n(187),a=/^[\-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(e+"",3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(4),o=n(258),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(4),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(4),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(4),o=n(188);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(4);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){ -var r=n(4),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(4),o=n(189);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(4),o=n(188),i=Math.pow,a=i(2,-52),s=i(2,-23),u=i(2,127)*(2-s),l=i(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=o(e);return ru||n!=n?i*(1/0):i*n)}})},function(e,t,n){var r=n(4),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){var r=n(4),o=Math.imul;r(r.S+r.F*n(36)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(4);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(4);r(r.S,"Math",{log1p:n(258)})},function(e,t,n){var r=n(4);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(4);r(r.S,"Math",{sign:n(188)})},function(e,t,n){var r=n(4),o=n(189),i=Math.exp;r(r.S+r.F*n(36)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(4),o=n(189),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(4);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(4),o=n(139),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(4),o=n(62),i=n(63);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(t[s++]+""),s=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(4),o=n(259)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(4),o=n(63),i=n(191),a="endsWith",s=""[a];r(r.P+r.F*n(192)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),u=void 0===n?r:Math.min(o(n),r),l=e+"";return s?s.call(t,l,u):t.slice(u-l.length,u)===l}})},function(e,t,n){var r=n(29),o=n(81),i=n(20)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(4),o=n(191),i="includes";r(r.P+r.F*n(192)(i),"String",{ -includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(4);r(r.P,"String",{repeat:n(472)})},function(e,t,n){"use strict";var r=n(138),o=n(82);e.exports=function(e){var t=o(this)+"",n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(4),o=n(63),i=n(191),a="startsWith",s=""[a];r(r.P+r.F*n(192)(a),"String",{startsWith:function(e){var t=i(this,e,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=e+"";return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r[i],s=r.getTime;new Date(NaN)+""!=o&&n(96)(r,i,function(){var e=s.call(this);return e===e?a.call(this):o})},function(e,t,n){var r=n(20)("toPrimitive"),o=Date.prototype;r in o||n(79)(o,r,n(476))},function(e,t,n){"use strict";var r=n(16),o=n(113),i="number";e.exports=function(e){if("string"!==e&&e!==i&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),e!=i)}},function(e,t,n){"use strict";var r=n(68),o=n(4),i=n(100),a=n(261),s=n(262),u=n(63),l=n(263),c=n(264);o(o.S+o.F*!n(193)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,v=c(d);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(t=u(d.length),n=new p(t);t>y;y++)l(n,y,g?m(d[y],y):d[y]);else for(f=v.call(d),n=new p;!(o=f.next()).done;y++)l(n,y,g?a(f,m,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(4),o=n(263);r(r.S+r.F*n(36)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var r=n(4);r(r.P,"Array",{copyWithin:n(480)}),n(101)("copyWithin")},function(e,t,n){"use strict";var r=n(100),o=n(139),i=n(63);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),s=o(e,a),u=o(t,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:o(l,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){var r=n(4);r(r.P,"Array",{fill:n(482)}),n(101)("fill")},function(e,t,n){"use strict";var r=n(100),o=n(139),i=n(63);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(4),o=n(266)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)(i)},function(e,t,n){var r=n(485);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(29),o=n(254),i=n(20)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor, -"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(4),o=n(266)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)(i)},function(e,t,n){n(194)("Array")},function(e,t,n){"use strict";var r=n(101),o=n(267),i=n(142),a=n(62);e.exports=n(190)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){n(55)&&"g"!=/./g.flags&&n(37).f(RegExp.prototype,"flags",{configurable:!0,get:n(490)})},function(e,t,n){"use strict";var r=n(16);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,o,i,a,s,u,l,c,f,d,p,h,m,g,y,v,b,_=n(137),w=n(18),x=n(68),k=n(265),T=n(4),S=n(29),C=n(97),E=n(195),M=n(196),O=n(492),D=n(268).set,N=n(493)(),P="Promise",L=w.TypeError,j=w.process,A=w[P];j=w.process,r="process"==k(j),o=function(){},u=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(20)("species")]=function(e){e(o,o)};return(r||"function"==typeof PromiseRejectionEvent)&&e.then(o)instanceof t}catch(e){}}(),l=function(e,t){return e===t||e===A&&t===s},c=function(e){var t;return!(!S(e)||"function"!=typeof(t=e.then))&&t},f=function(e){return l(A,e)?new d(e):new a(e)},d=a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw L("Bad Promise constructor");t=e,n=r}),this.resolve=C(t),this.reject=C(n)},p=function(e){try{e()}catch(e){return{error:e}}},h=function(e,t){if(!e._n){e._n=!0;var n=e._c;N(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,u=t.reject,l=t.domain;try{a?(o||(2==e._h&&y(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===t.promise?u(L("Promise-chain cycle")):(i=c(n))?i.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&m(e)})}},m=function(e){D.call(w,function(){var t,n,o,i=e._v;if(g(e)&&(t=p(function(){r?j.emit("unhandledRejection",i,e):(n=w.onunhandledrejection)?n({promise:e,reason:i}):(o=w.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=r||g(e)?2:1),e._a=void 0,t)throw t.error})},g=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!g(t.promise))return!1;return!0},y=function(e){D.call(w,function(){var t;r?j.emit("rejectionHandled",e):(t=w.onrejectionhandled)&&t({promise:e,reason:e._v})})},v=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),h(t,!0))},b=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw L("Promise can't be resolved itself");(t=c(e))?N(function(){var r={_w:n,_d:!1};try{t.call(e,x(b,r,1),x(v,r,1))}catch(e){ -v.call(r,e)}}):(n._v=e,n._s=1,h(n,!1))}catch(e){v.call({_w:n,_d:!1},e)}}},u||(A=function(e){E(this,A,P,"_h"),C(e),i.call(this);try{e(x(b,this,1),x(v,this,1))}catch(e){v.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(197)(A.prototype,{then:function(e,t){var n=f(O(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=r?j.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&h(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),d=function(){var e=new i;this.promise=e,this.resolve=x(b,e,1),this.reject=x(v,e,1)}),T(T.G+T.W+T.F*!u,{Promise:A}),n(115)(A,P),n(194)(P),s=n(95)[P],T(T.S+T.F*!u,P,{reject:function(e){var t=f(this);return(0,t.reject)(e),t.promise}}),T(T.S+T.F*(_||!u),P,{resolve:function(e){if(e instanceof A&&l(e.constructor,this))return e;var t=f(this);return(0,t.resolve)(e),t.promise}}),T(T.S+T.F*!(u&&n(193)(function(e){A.all(e).catch(o)})),P,{all:function(e){var t=this,n=f(t),r=n.resolve,o=n.reject,i=p(function(){var n=[],i=0,a=1;M(e,!1,function(e){var s=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(e){var t=this,n=f(t),r=n.reject,o=p(function(){M(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t,n){var r=n(16),o=n(97),i=n(20)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(18),o=n(268).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(81)(a);e.exports=function(){var e,t,n,l,c,f,d=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};return u?n=function(){a.nextTick(d)}:i?(l=!0,c=document.createTextNode(""),new i(d).observe(c,{characterData:!0}),n=function(){c.data=l=!l}):s&&s.resolve?(f=s.resolve(),n=function(){f.then(d)}):n=function(){o.call(r,d)},function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";var r=n(270);e.exports=n(271)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(29),o=n(186).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(270);e.exports=n(271)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){var r=n(4),o=n(97),i=n(16),a=(n(18).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(36)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),u=i(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){ -var r=n(4),o=n(141),i=n(97),a=n(16),s=n(29),u=n(36),l=n(499),c=(n(18).Reflect||{}).construct,f=u(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!u(function(){c(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){var n,r,u,p,h;if(i(e),a(t),n=arguments.length<3?e:i(arguments[2]),d&&!f)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}return r=[null],r.push.apply(r,t),new(l.apply(e,r))}return u=n.prototype,p=o(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t),s(h)?h:p}})},function(e,t,n){"use strict";var r=n(97),o=n(29),i=n(269),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){function r(e,t){var n,s,c=arguments.length<3?e:arguments[2];return l(e)===c?e[t]:(n=o.f(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(s=i(e))?r(s,t,c):void 0}var o=n(99),i=n(117),a=n(51),s=n(4),u=n(29),l=n(16);s(s.S,"Reflect",{get:r})},function(e,t,n){var r=n(99),o=n(4),i=n(16);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(4),o=n(117),i=n(16);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(4);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(4),o=n(16),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(4);r(r.S,"Reflect",{ownKeys:n(509)})},function(e,t,n){var r=n(185),o=n(140),i=n(16),a=n(18).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(4),o=n(16),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,d,p=arguments.length<4?e:arguments[3],h=i.f(c(e),t);if(!h){if(f(d=a(e)))return r(d,t,n,p);h=l(0)} -return s(h,"value")?!(!1===h.writable||!f(p))&&(u=i.f(p,t)||l(0),u.value=n,o.f(p,t,u),!0):void 0!==h.set&&(h.set.call(p,n),!0)}var o=n(37),i=n(99),a=n(117),s=n(51),u=n(4),l=n(80),c=n(16),f=n(29);u(u.S,"Reflect",{set:r})},function(e,t,n){var r=n(4),o=n(186);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(4),o=n(253)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)("includes")},function(e,t,n){var r=n(4),o=n(272)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(4),o=n(272)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(517),n(168),n(242),n(518),n(519)},function(e,t,n){var r,o;!function(){r=["jquery","./data","./disable-selection","./focusable","./form","./ie","./keycode","./labels","./jquery-1-7","./plugin","./safe-active-element","./safe-blur","./scroll-parent","./tabbable","./unique-id","./version"],void 0!==(o="function"==typeof r?r.call(t,n,t,e):r)&&(e.exports=o)}()},function(e,t,n){var r,o,i;!function(a){o=[n(13),n(75)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){return function(){function t(e,t,n){return[parseFloat(e[0])*(f.test(e[0])?t/100:1),parseFloat(e[1])*(f.test(e[1])?n/100:1)]}function n(t,n){return parseInt(e.css(t,n),10)||0}function r(t){var n=t[0];return 9===n.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var o,i=Math.max,a=Math.abs,s=/left|center|right/,u=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,f=/%$/,d=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,n,r=e("
"),i=r.children()[0];return e("body").append(r),t=i.offsetWidth,r.css("overflow","scroll"),n=i.offsetWidth,t===n&&(n=r[0].clientWidth),r.remove(),o=t-n},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.widtho;)J(e,n=r[o++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):X(S(e),t)},Z=function(e){var t=H.call(this,e=k(e,!0));return!(this===z&&a(W,e)&&!a(U,e))&&(!(t||!a(this,e)||!a(W,e)||a(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=x(e),t=k(t,!0),e!==z||!a(W,t)||a(U,t)){var n=D(e,t);return!n||!a(W,t)||a(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=P(x(e)),r=[],o=0;n.length>o;)a(W,t=n[o++])||t==R||t==c||r.push(t);return r},ne=function(e){for(var t,n=e===z,r=P(n?U:x(e)),o=[],i=0;r.length>i;)!a(W,t=r[i++])||n&&!a(z,t)||o.push(W[t]);return o};for(B||(L=function(){ +var e,t;if(this instanceof L)throw TypeError("Symbol is not a constructor!");return e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(U,n),a(this,R)&&a(this[R],e)&&(this[R][e]=!1),$(this,e,T(1,n))},s&&q&&$(z,e,{configurable:!0,set:t}),K(e)},l(L[F],"toString",function(){return this._k}),E.f=ee,M.f=J,n(185).f=C.f=te,n(116).f=Z,n(140).f=ne,s&&!n(137)&&l(z,"propertyIsEnumerable",Z,!0),g.f=function(e){return K(m(e))}),u(u.G+u.W+u.F*!B,{Symbol:L}),r="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),o=0;r.length>o;)m(r[o++]);for(r=O(m.store),o=0;r.length>o;)y(r[o++]);u(u.S+u.F*!B,"Symbol",{for:function(e){return a(Y,e+="")?Y[e]:Y[e]=L(e)},keyFor:function(e){if(G(e))return v(Y,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!B,"Object",{create:Q,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne}),j&&u(u.S+u.F*(!B||f(function(){var e=L();return"[null]"!=A([e])||"{}"!=A({a:e})||"{}"!=A(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!G(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&_(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!G(t))return t}),r[1]=t,A.apply(j,r)}}}),L[F][I]||n(79)(L[F],I,L[F].valueOf),p(L,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,n){var r=n(18),o=n(95),i=n(137),a=n(252),s=n(37).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(98),o=n(62);e.exports=function(e,t){for(var n,i=o(e),a=r(i),s=a.length,u=0;s>u;)if(i[n=a[u++]]===t)return n}},function(e,t,n){var r=n(98),o=n(140),i=n(116);e.exports=function(e){var t,n,a,s,u=r(e),l=o.f;if(l)for(t=l(e),n=i.f,a=0;t.length>a;)n.call(e,s=t[a++])&&u.push(s);return u}},function(e,t,n){var r=n(37),o=n(16),i=n(98);e.exports=n(55)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(62),o=n(185).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(429)})},function(e,t,n){"use strict";var r=n(98),o=n(140),i=n(116),a=n(100),s=n(182),u=Object.assign;e.exports=!u||n(36)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n,u,l,c,f,d=a(e),p=arguments.length,h=1,m=o.f,g=i.f;p>h;)for(n=s(arguments[h++]),u=m?r(n).concat(m(n)):r(n),l=u.length,c=0;l>c;)g.call(n,f=u[c++])&&(d[f]=n[f]);return d}:u},function(e,t,n){var r=n(4);r(r.S,"Object",{is:n(431)})},function(e,t){e.exports=Object.is||function(e,t){ +return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(4);r(r.S,"Object",{setPrototypeOf:n(186).set})},function(e,t,n){var r=n(37).f,o=n(80),i=n(51),a=Function.prototype,s=/^\s*function ([^ (]*)/,u="name",l=Object.isExtensible||function(){return!0};u in a||n(55)&&r(a,u,{configurable:!0,get:function(){try{var e=this,t=(""+e).match(s)[1];return i(e,u)||!l(e)||r(e,u,o(5,t)),t}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(29),o=n(117),i=n(20)("hasInstance"),a=Function.prototype;i in a||n(37).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){"use strict";var r=n(4),o=n(36),i=n(436),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(81);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(4);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(4),o=n(18).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(4);r(r.S,"Number",{isInteger:n(257)})},function(e,t,n){var r=n(4);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(4),o=n(257),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(4);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(4);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(4),o=n(445);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(18).parseFloat,o=n(258).trim;e.exports=1/r(n(187)+"-0")!=-1/0?function(e){var t=o(e+"",3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(4),o=n(447);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(18).parseInt,o=n(258).trim,i=n(187),a=/^[\-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(e+"",3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(4),o=n(259),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){function r(e){return isFinite(e=+e)&&0!=e?e<0?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(4),i=Math.asinh;o(o.S+o.F*!(i&&1/i(0)>0),"Math",{asinh:r})},function(e,t,n){var r=n(4),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(4),o=n(188);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(4);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){ +var r=n(4),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(4),o=n(189);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(4),o=n(188),i=Math.pow,a=i(2,-52),s=i(2,-23),u=i(2,127)*(2-s),l=i(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=o(e);return ru||n!=n?i*(1/0):i*n)}})},function(e,t,n){var r=n(4),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,s=arguments.length,u=0;a0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){var r=n(4),o=Math.imul;r(r.S+r.F*n(36)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){var r=n(4);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(4);r(r.S,"Math",{log1p:n(259)})},function(e,t,n){var r=n(4);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(4);r(r.S,"Math",{sign:n(188)})},function(e,t,n){var r=n(4),o=n(189),i=Math.exp;r(r.S+r.F*n(36)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(4),o=n(189),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(4);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(4),o=n(139),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(4),o=n(62),i=n(63);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(t[s++]+""),s=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(4),o=n(260)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(4),o=n(63),i=n(191),a="endsWith",s=""[a];r(r.P+r.F*n(192)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),u=void 0===n?r:Math.min(o(n),r),l=e+"";return s?s.call(t,l,u):t.slice(u-l.length,u)===l}})},function(e,t,n){var r=n(29),o=n(81),i=n(20)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(4),o=n(191),i="includes";r(r.P+r.F*n(192)(i),"String",{ +includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(4);r(r.P,"String",{repeat:n(473)})},function(e,t,n){"use strict";var r=n(138),o=n(82);e.exports=function(e){var t=o(this)+"",n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(4),o=n(63),i=n(191),a="startsWith",s=""[a];r(r.P+r.F*n(192)(a),"String",{startsWith:function(e){var t=i(this,e,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=e+"";return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=Date.prototype,o="Invalid Date",i="toString",a=r[i],s=r.getTime;new Date(NaN)+""!=o&&n(96)(r,i,function(){var e=s.call(this);return e===e?a.call(this):o})},function(e,t,n){var r=n(20)("toPrimitive"),o=Date.prototype;r in o||n(79)(o,r,n(477))},function(e,t,n){"use strict";var r=n(16),o=n(113),i="number";e.exports=function(e){if("string"!==e&&e!==i&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),e!=i)}},function(e,t,n){"use strict";var r=n(68),o=n(4),i=n(100),a=n(262),s=n(263),u=n(63),l=n(264),c=n(265);o(o.S+o.F*!n(193)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,y=0,v=c(d);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(t=u(d.length),n=new p(t);t>y;y++)l(n,y,g?m(d[y],y):d[y]);else for(f=v.call(d),n=new p;!(o=f.next()).done;y++)l(n,y,g?a(f,m,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(4),o=n(264);r(r.S+r.F*n(36)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var r=n(4);r(r.P,"Array",{copyWithin:n(481)}),n(101)("copyWithin")},function(e,t,n){"use strict";var r=n(100),o=n(139),i=n(63);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),s=o(e,a),u=o(t,a),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?a:o(l,a))-u,a-s),f=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){var r=n(4);r(r.P,"Array",{fill:n(483)}),n(101)("fill")},function(e,t,n){"use strict";var r=n(100),o=n(139),i=n(63);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,l=void 0===u?n:o(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(4),o=n(267)(5),i="find",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)(i)},function(e,t,n){var r=n(486);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(29),o=n(255),i=n(20)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor, +"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(4),o=n(267)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)(i)},function(e,t,n){n(194)("Array")},function(e,t,n){"use strict";var r=n(101),o=n(268),i=n(142),a=n(62);e.exports=n(190)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){n(55)&&"g"!=/./g.flags&&n(37).f(RegExp.prototype,"flags",{configurable:!0,get:n(491)})},function(e,t,n){"use strict";var r=n(16);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r,o,i,a,s,u,l,c,f,d,p,h,m,g,y,v,b,_=n(137),w=n(18),x=n(68),k=n(266),T=n(4),S=n(29),C=n(97),E=n(195),M=n(196),O=n(493),D=n(269).set,N=n(494)(),P="Promise",L=w.TypeError,j=w.process,A=w[P];j=w.process,r="process"==k(j),o=function(){},u=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(20)("species")]=function(e){e(o,o)};return(r||"function"==typeof PromiseRejectionEvent)&&e.then(o)instanceof t}catch(e){}}(),l=function(e,t){return e===t||e===A&&t===s},c=function(e){var t;return!(!S(e)||"function"!=typeof(t=e.then))&&t},f=function(e){return l(A,e)?new d(e):new a(e)},d=a=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw L("Bad Promise constructor");t=e,n=r}),this.resolve=C(t),this.reject=C(n)},p=function(e){try{e()}catch(e){return{error:e}}},h=function(e,t){if(!e._n){e._n=!0;var n=e._c;N(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,u=t.reject,l=t.domain;try{a?(o||(2==e._h&&y(e),e._h=1),!0===a?n=r:(l&&l.enter(),n=a(r),l&&l.exit()),n===t.promise?u(L("Promise-chain cycle")):(i=c(n))?i.call(n,s,u):s(n)):u(r)}catch(e){u(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&m(e)})}},m=function(e){D.call(w,function(){var t,n,o,i=e._v;if(g(e)&&(t=p(function(){r?j.emit("unhandledRejection",i,e):(n=w.onunhandledrejection)?n({promise:e,reason:i}):(o=w.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=r||g(e)?2:1),e._a=void 0,t)throw t.error})},g=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!g(t.promise))return!1;return!0},y=function(e){D.call(w,function(){var t;r?j.emit("rejectionHandled",e):(t=w.onrejectionhandled)&&t({promise:e,reason:e._v})})},v=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),h(t,!0))},b=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw L("Promise can't be resolved itself");(t=c(e))?N(function(){var r={_w:n,_d:!1};try{t.call(e,x(b,r,1),x(v,r,1))}catch(e){ +v.call(r,e)}}):(n._v=e,n._s=1,h(n,!1))}catch(e){v.call({_w:n,_d:!1},e)}}},u||(A=function(e){E(this,A,P,"_h"),C(e),i.call(this);try{e(x(b,this,1),x(v,this,1))}catch(e){v.call(this,e)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n(197)(A.prototype,{then:function(e,t){var n=f(O(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=r?j.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&h(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),d=function(){var e=new i;this.promise=e,this.resolve=x(b,e,1),this.reject=x(v,e,1)}),T(T.G+T.W+T.F*!u,{Promise:A}),n(115)(A,P),n(194)(P),s=n(95)[P],T(T.S+T.F*!u,P,{reject:function(e){var t=f(this);return(0,t.reject)(e),t.promise}}),T(T.S+T.F*(_||!u),P,{resolve:function(e){if(e instanceof A&&l(e.constructor,this))return e;var t=f(this);return(0,t.resolve)(e),t.promise}}),T(T.S+T.F*!(u&&n(193)(function(e){A.all(e).catch(o)})),P,{all:function(e){var t=this,n=f(t),r=n.resolve,o=n.reject,i=p(function(){var n=[],i=0,a=1;M(e,!1,function(e){var s=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(e){var t=this,n=f(t),r=n.reject,o=p(function(){M(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(e,t,n){var r=n(16),o=n(97),i=n(20)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(18),o=n(269).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(81)(a);e.exports=function(){var e,t,n,l,c,f,d=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};return u?n=function(){a.nextTick(d)}:i?(l=!0,c=document.createTextNode(""),new i(d).observe(c,{characterData:!0}),n=function(){c.data=l=!l}):s&&s.resolve?(f=s.resolve(),n=function(){f.then(d)}):n=function(){o.call(r,d)},function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";var r=n(271);e.exports=n(272)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(this,e);return t&&t.v},set:function(e,t){return r.def(this,0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(29),o=n(186).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(271);e.exports=n(272)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(this,e=0===e?0:e,e)}},r)},function(e,t,n){var r=n(4),o=n(97),i=n(16),a=(n(18).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(36)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),u=i(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){ +var r=n(4),o=n(141),i=n(97),a=n(16),s=n(29),u=n(36),l=n(500),c=(n(18).Reflect||{}).construct,f=u(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!u(function(){c(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){var n,r,u,p,h;if(i(e),a(t),n=arguments.length<3?e:i(arguments[2]),d&&!f)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}return r=[null],r.push.apply(r,t),new(l.apply(e,r))}return u=n.prototype,p=o(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t),s(h)?h:p}})},function(e,t,n){"use strict";var r=n(97),o=n(29),i=n(270),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){function r(e,t){var n,s,c=arguments.length<3?e:arguments[2];return l(e)===c?e[t]:(n=o.f(e,t))?a(n,"value")?n.value:void 0!==n.get?n.get.call(c):void 0:u(s=i(e))?r(s,t,c):void 0}var o=n(99),i=n(117),a=n(51),s=n(4),u=n(29),l=n(16);s(s.S,"Reflect",{get:r})},function(e,t,n){var r=n(99),o=n(4),i=n(16);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(4),o=n(117),i=n(16);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(4);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(4),o=n(16),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(4);r(r.S,"Reflect",{ownKeys:n(510)})},function(e,t,n){var r=n(185),o=n(140),i=n(16),a=n(18).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(4),o=n(16),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){function r(e,t,n){var u,d,p=arguments.length<4?e:arguments[3],h=i.f(c(e),t);if(!h){if(f(d=a(e)))return r(d,t,n,p);h=l(0)} +return s(h,"value")?!(!1===h.writable||!f(p))&&(u=i.f(p,t)||l(0),u.value=n,o.f(p,t,u),!0):void 0!==h.set&&(h.set.call(p,n),!0)}var o=n(37),i=n(99),a=n(117),s=n(51),u=n(4),l=n(80),c=n(16),f=n(29);u(u.S,"Reflect",{set:r})},function(e,t,n){var r=n(4),o=n(186);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(4),o=n(254)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(101)("includes")},function(e,t,n){var r=n(4),o=n(273)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(4),o=n(273)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(518),n(168),n(243),n(519),n(520)},function(e,t,n){var r,o;!function(){r=["jquery","./data","./disable-selection","./focusable","./form","./ie","./keycode","./labels","./jquery-1-7","./plugin","./safe-active-element","./safe-blur","./scroll-parent","./tabbable","./unique-id","./version"],void 0!==(o="function"==typeof r?r.call(t,n,t,e):r)&&(e.exports=o)}()},function(e,t,n){var r,o,i;!function(a){o=[n(13),n(75)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){return function(){function t(e,t,n){return[parseFloat(e[0])*(f.test(e[0])?t/100:1),parseFloat(e[1])*(f.test(e[1])?n/100:1)]}function n(t,n){return parseInt(e.css(t,n),10)||0}function r(t){var n=t[0];return 9===n.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var o,i=Math.max,a=Math.abs,s=/left|center|right/,u=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,f=/%$/,d=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,n,r=e("
"),i=r.children()[0];return e("body").append(r),t=i.offsetWidth,r.css("overflow","scroll"),n=i.offsetWidth,t===n&&(n=r[0].clientWidth),r.remove(),o=t-n},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),o="scroll"===n||"auto"===n&&t.width0?"right":"center",vertical:s<0?"top":r>0?"bottom":"middle"};pi(a(r),a(s))?f.important="horizontal":f.important="vertical",o.using.call(this,e,f)}),u.offset(e.extend(S,{using:s}))})},e.ui.position={fit:{left:function(e,t){var n,r=t.within,o=r.isWindow?r.scrollLeft:r.offset.left,a=r.width,s=e.left-t.collisionPosition.marginLeft,u=o-s,l=s+t.collisionWidth-a-o;t.collisionWidth>a?u>0&&l<=0?(n=e.left+u+t.collisionWidth-a-o,e.left+=u-n):e.left=l>0&&u<=0?o:u>l?o+a-t.collisionWidth:o:u>0?e.left+=u:l>0?e.left-=l:e.left=i(e.left-s,e.left)},top:function(e,t){var n,r=t.within,o=r.isWindow?r.scrollTop:r.offset.top,a=t.within.height,s=e.top-t.collisionPosition.marginTop,u=o-s,l=s+t.collisionHeight-a-o;t.collisionHeight>a?u>0&&l<=0?(n=e.top+u+t.collisionHeight-a-o,e.top+=u-n):e.top=l>0&&u<=0?o:u>l?o+a-t.collisionHeight:o:u>0?e.top+=u:l>0?e.top-=l:e.top=i(e.top-s,e.top)}},flip:{left:function(e,t){var n,r,o=t.within,i=o.offset.left+o.scrollLeft,s=o.width,u=o.isWindow?o.scrollLeft:o.offset.left,l=e.left-t.collisionPosition.marginLeft,c=l-u,f=l+t.collisionWidth-s-u,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,h=-2*t.offset[0] ;c<0?((n=e.left+d+p+h+t.collisionWidth-s-i)<0||n0&&((r=e.left-t.collisionPosition.marginLeft+d+p+h-u)>0||a(r)0&&((n=e.top-t.collisionPosition.marginTop+p+h+m-u)>0||a(n)e?0:r.max")[0],h=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)", d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,h(c,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(o,a,s,u){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=e(o).css(a),a=t);var f=this,d=e.type(o),p=this._rgba=[];return a!==t&&(o=[o,a,s,u],d="array"),"string"===d?this.parse(r(o)||i._default):"array"===d?(h(c.rgba.props,function(e,t){p[t.idx]=n(o[t.idx],t)}),this):"object"===d?(o instanceof l?h(c,function(e,t){o[t.cache]&&(f[t.cache]=o[t.cache].slice())}):h(c,function(t,r){var i=r.cache;h(r.props,function(e,t){if(!f[i]&&r.to){if("alpha"===e||null==o[e])return;f[i]=r.to(f._rgba)}f[i][t.idx]=n(o[e],t,!0)}),f[i]&&e.inArray(null,f[i].slice(0,3))<0&&(f[i][3]=1,r.from&&(f._rgba=r.from(f[i])))}),this):t},is:function(e){var t=l(e),n=!0,r=this;return h(c,function(e,o){var i,a=t[o.cache];return a&&(i=r[o.cache]||o.to&&o.to(r._rgba)||[],h(o.props,function(e,t){if(null!=a[t.idx])return n=a[t.idx]===i[t.idx]})),n}),n},_space:function(){var e=[],t=this;return h(c,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var r=l(e),o=r._space(),i=c[o],a=0===this.alpha()?l("transparent"):this,s=a[i.cache]||i.to(a._rgba),u=s.slice();return r=r[i.cache],h(i.props,function(e,o){var i=o.idx,a=s[i],l=r[i],c=f[o.type]||{};null!==l&&(null===a?u[i]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),u[i]=n((l-a)*t+a,o)))}),this[o](u)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),o=l(t)._rgba;return l(e.map(n,function(e,t){return(1-r)*o[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(255*r)),"#"+e.map(n,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,r=e[0]/255,o=e[1]/255,i=e[2]/255,a=e[3],s=Math.max(r,o,i),u=Math.min(r,o,i),l=s-u,c=s+u,f=.5*c;return t=u===s?0:r===s?60*(o-i)/l+360:o===s?60*(i-r)/l+120:60*(r-o)/l+240,n=0===l?0:f<=.5?l/c:l/(2-c),[Math.round(t)%360,n,f,null==a?1:a]},c.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],a=r<=.5?r*(1+n):r+n-r*n,s=2*r-a;return[Math.round(255*o(s,a,t+1/3)),Math.round(255*o(s,a,t)),Math.round(255*o(s,a,t-1/3)),i]},h(c,function(r,o){var i=o.props,a=o.cache,u=o.to,c=o.from;l.fn[r]=function(r){if(u&&!this[a]&&(this[a]=u(this._rgba)),r===t)return this[a].slice();var o,s=e.type(r),f="array"===s||"object"===s?r:arguments,d=this[a].slice();return h(i,function(e,t){ @@ -99,17 +99,17 @@ u.complete.call(a[0])})})},e.fn.extend({addClass:function(t){return function(n,r show:function(e){return function(t){if(i(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(t){if(i(t))return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(t){if(i(t)||"boolean"==typeof t)return e.apply(this,arguments);var n=o.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])}),r},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):a(this.css("clip"),this)},transfer:function(t,n){var r=e(this),o=e(t.to),i="fixed"===o.css("position"),a=e("body"),s=i?a.scrollTop():0,u=i?a.scrollLeft():0,l=o.offset(),c={top:l.top-s,left:l.left-u,height:o.innerHeight(),width:o.innerWidth()},f=r.offset(),d=e("
").appendTo("body").addClass(t.className).css({top:f.top-s,left:f.left-u,height:r.innerHeight(),width:r.innerWidth(),position:i?"fixed":"absolute"}).animate(c,t.duration,t.easing,function(){d.remove(),e.isFunction(n)&&n()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=a(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})}(),e.effects})},function(e,t,n){"use strict";!function(e){function t(t){var n,r;"string"==typeof t.data&&(n=t.handler,r=t.data.toLowerCase().split(" "),t.handler=function(t){var o,i,a,s,u,l;if(this===t.target||!/textarea|select/i.test(t.target.nodeName)&&"text"!==t.target.type)for(o="keypress"!==t.type&&e.hotkeys.specialKeys[t.which],i=String.fromCharCode(t.which).toLowerCase(),a="",s={},t.ctrlKey&&"ctrl"!==o&&(a+="ctrl+"),t.altKey&&"alt"!==o&&(a+="alt+"),t.metaKey&&!t.ctrlKey&&"meta"!==o&&(a+="meta+"),t.shiftKey&&"shift"!==o&&(a+="shift+"),o?s[a+o]=!0:(s[a+i]=!0,s[a+e.hotkeys.shiftNums[i]]=!0,"shift+"===a&&(s[e.hotkeys.shiftNums[i]]=!0)),u=0,l=r.length;u","/":"?","\\":"|"}},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:t}})}(jQuery)},function(e,t,n){var r,o,i;!function(n,a){"object"==typeof t&&t&&"string"!=typeof t.nodeName?a(t):(o=[t],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i))}(0,function(e){function t(e){return"function"==typeof e}function n(e){return g(e)?"array":typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function o(e,t){return null!=e&&"object"==typeof e&&t in e}function i(e,t){return y.call(e,t)}function a(e){return!i(v,e)}function s(e){return(e+"").replace(/[&<>"'`=\/]/g,function(e){return b[e]})}function u(t,n){function o(){if(p&&!h)for(;d.length;)delete u[d.pop()];else d=[];p=!1,h=!1}function i(e){if("string"==typeof e&&(e=e.split(w,2)),!g(e)||2!==e.length)throw Error("Invalid tags: "+e);m=RegExp(r(e[0])+"\\s*"),y=RegExp("\\s*"+r(e[1])),v=RegExp("\\s*"+r("}"+e[1]))}var s,u,d,p,h,m,y,v,b,S,C,E,M,O,D,N,P;if(!t)return[];for(s=[],u=[],d=[],p=!1,h=!1,i(n||e.tags),b=new f(t);!b.eos();){if(S=b.pos,E=b.scanUntil(m))for(N=0,P=E.length;N0?s[s.length-1][4]:i;break;default:a.push(t)}return i}function f(e){this.string=e,this.tail=e,this.pos=0}function d(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function p(){this.cache={}}var h,m=Object.prototype.toString,g=Array.isArray||function(e){return"[object Array]"===m.call(e)},y=RegExp.prototype.test,v=/\S/,b={ "&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},_=/\s*/,w=/\s+/,x=/\s*=/,k=/\s*\}/,T=/#|\^|\/|>|\{|&|=|!/;f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(e){var t,n=this.tail.match(e);return n&&0===n.index?(t=n[0],this.tail=this.tail.substring(t.length),this.pos+=t.length,t):""},f.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},d.prototype.push=function(e){return new d(e,this)},d.prototype.lookup=function(e){var n,r,i,a,s,u=this.cache;if(u.hasOwnProperty(e))n=u[e];else{for(r=this,s=!1;r;){if(e.indexOf(".")>0)for(n=r.view,i=e.split("."),a=0;null!=n&&a"===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&&(l+=a);return l},p.prototype.renderSection=function(e,n,r,o){function i(e){return u.render(e,n,r)}var a,s,u=this,l="",c=n.lookup(e[1]);if(c){if(g(c))for(a=0,s=c.length;a "+o.stack+")

"):window.__tv_js_errors.push(e+" (found at "+t+", line "+n+" at time "+a+")"),i)try{i.apply(window,arguments)}catch(e){}}}()},function(e,t,n){var r,o,i;!function(a){o=[n(13)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){function t(e){return s.raw?e:encodeURIComponent(e)}function n(e){return s.raw?e:decodeURIComponent(e)}function r(e){return t(s.json?JSON.stringify(e):e+"")}function o(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(a," ")),s.json?JSON.parse(e):e}catch(e){}}function i(t,n){var r=s.raw?t:o(t);return e.isFunction(n)?n(r):r}var a=/\+/g,s=e.cookie=function(o,a,u){var l,c,f,d,p,h,m,g,y;if(void 0!==a&&!e.isFunction(a))return u=e.extend({},s.defaults,u),"number"==typeof u.expires&&(l=u.expires,c=u.expires=new Date,c.setTime(+c+864e5*l)),document.cookie=t(o)+"="+r(a)+(u.expires?"; expires="+u.expires.toUTCString():"")+(u.path?"; path="+u.path:"")+(u.domain?"; domain="+u.domain:"")+(u.secure?"; secure":"");for(f=o?void 0:{},d=document.cookie?document.cookie.split("; "):[],p=0,h=d.length;pn)&&(r.top%1n)||(o=Math.round(parseFloat(c.css("margin-left")))||0,i=Math.round(parseFloat(c.css("margin-top")))||0,c.css({"margin-left":o+"px","margin-top":i+"px"}), +e.Scanner=f,e.Context=d,e.Writer=p})},function(e,t,n){function r(e){return n(o(e))}function o(e){var t=i[e];if(!(t+1))throw Error("Cannot find module '"+e+"'.");return t}var i={"./en-gb":274,"./en-gb.js":274,"./es":275,"./es.js":275,"./it":276,"./it.js":276,"./ja":277,"./ja.js":277,"./ko":278,"./ko.js":278,"./pl":279,"./pl.js":279,"./pt":280,"./pt-br":281,"./pt-br.js":281,"./pt.js":280,"./ru":282,"./ru.js":282,"./tr":283,"./tr.js":283};r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id=523},function(e,t,n){"use strict";!function(){var e,t,n,r,o,i,a=function(){};for(void 0===window.console&&(window.console={}),e=window.console,t=["dir","log","time","info","warn","count","clear","debug","error","group","trace","assert","dirxml","profile","timeEnd","groupEnd","profileEnd","timeStamp","exception","table","notifyFirebug","groupCollapsed","getFirebugElement","firebug","userObjects","someMethodForAssetHashChange"],n=0,r=t.length;n "+o.stack+")

"):window.__tv_js_errors.push(e+" (found at "+t+", line "+n+" at time "+a+")"),i)try{i.apply(window,arguments)}catch(e){}}}()},function(e,t,n){var r,o,i;!function(a){o=[n(13)],r=a,void 0!==(i="function"==typeof r?r.apply(t,o):r)&&(e.exports=i)}(function(e){function t(e){return s.raw?e:encodeURIComponent(e)}function n(e){return s.raw?e:decodeURIComponent(e)}function r(e){return t(s.json?JSON.stringify(e):e+"")}function o(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(a," ")),s.json?JSON.parse(e):e}catch(e){}}function i(t,n){var r=s.raw?t:o(t);return e.isFunction(n)?n(r):r}var a=/\+/g,s=e.cookie=function(o,a,u){var l,c,f,d,p,h,m,g,y;if(void 0!==a&&!e.isFunction(a))return u=e.extend({},s.defaults,u),"number"==typeof u.expires&&(l=u.expires,c=u.expires=new Date,c.setTime(+c+864e5*l)),document.cookie=t(o)+"="+r(a)+(u.expires?"; expires="+u.expires.toUTCString():"")+(u.path?"; path="+u.path:"")+(u.domain?"; domain="+u.domain:"")+(u.secure?"; secure":"");for(f=o?void 0:{},d=document.cookie?document.cookie.split("; "):[],p=0,h=d.length;pn)&&(r.top%1n)||(o=Math.round(parseFloat(c.css("margin-left")))||0,i=Math.round(parseFloat(c.css("margin-top")))||0,c.css({"margin-left":o+"px","margin-top":i+"px"}), a=l.getBoundingClientRect(),s=-a.left%1,s>0&&(s-=1),s<-.5&&(s+=1),u=-a.top%1,u>0&&(u-=1),u<-.5&&(u+=1),c.css({"margin-left":o+s+"px","margin-top":i+u+"px"})))}),this}}(jQuery)},function(e,t,n){"use strict";!function(e,t){function n(){this._state=[],this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classHolderOpen:"sbHolderOpen",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",classSeparator:"sbSeparator",useCustomPrependWithSelector:"",customPrependSelectorClass:"",speed:200,slidesUp:!1,effect:"slide",onChange:null,beforeOpen:null,onOpen:null,onClose:null}}function r(t,n,r,o){function i(){n.removeClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend&&(t._lastSelectorPrepend.remove(),delete t._lastSelectorPrepend),r.data("custom-option-prepend")&&(t.settings.customPrependSelectorClass&&n.addClass(t.settings.customPrependSelectorClass),t._lastSelectorPrepend=e(r.data("custom-option-prepend")).clone(),n[t.settings.useCustomPrependWithSelector](t._lastSelectorPrepend))}t.settings.useCustomPrependWithSelector&&(o?t._onAttachCallback=i:i())}var o="selectbox",i=!1,a=!0;e.extend(n.prototype,{_refreshSelectbox:function(e,t){if(!e)return i;var n=this._getInst(e);return null==n?i:(this._fillList(e,n,t),a)},_isOpenSelectbox:function(e){return e?this._getInst(e).isOpen:i},_isDisabledSelectbox:function(e){return e?this._getInst(e).isDisabled:i},_attachSelectbox:function(t,n){function r(){var t,n=this.attr("id").split("_")[1];for(t in u._state)t!==n&&u._state.hasOwnProperty(t)&&e(":input[sb='"+t+"']")[0]&&u._closeSelectbox(e(":input[sb='"+t+"']")[0])}function a(n){s.children().each(function(r){var o,i=e(this);if(i.is(":selected")){if(38==n&&r>0)return o=e(s.children()[r-1]),u._changeSelectbox(t,o.val(),o.text()),!1;if(40==n&&r",{id:"sbHolder_"+l.uid,class:l.settings.classHolder}),m=s.data("selectbox-css"),m&&c.css(m),f=e("
",{id:"sbSelector_"+l.uid,href:"#",class:l.settings.classSelector,click:function(n){n.preventDefault(),n.stopPropagation(),r.apply(e(this),[]);var o=e(this).attr("id").split("_")[1];u._state[o]?u._closeSelectbox(t):(u._openSelectbox(t),d.focus())},keyup:function(e){a(e.keyCode)}}),d=e("",{id:"sbToggle_"+l.uid,href:"#",class:l.settings.classToggle,click:function(n){n.preventDefault(),n.stopPropagation(),r.apply(e(this),[]);var o=e(this).attr("id").split("_")[1];u._state[o]?u._closeSelectbox(t):(u._openSelectbox(t),d.focus())},keyup:function(e){a(e.keyCode)}}),e('
').appendTo(d),d.appendTo(c),p=e("