Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa70f376c9 | ||
|
|
c8eebb69a4 | ||
|
|
6fe5436603 | ||
|
|
ae99ffb929 | ||
|
|
57498845ee | ||
|
|
20445c67b7 | ||
|
|
5209fc4afd | ||
|
|
9edb9e9108 | ||
|
|
2383c8c6e8 | ||
|
|
12e363f65c | ||
|
|
c9c8795995 | ||
|
|
f3f6d9a943 | ||
|
|
a40415346e | ||
|
|
bff3af11c0 | ||
|
|
2d18f294db | ||
|
|
a7303f87aa | ||
|
|
89a64671f4 | ||
|
|
cd698f721e |
646
changelog.md
646
changelog.md
@@ -1,10 +1,580 @@
|
|||||||
|
|
||||||
ℹ️ You can check the Advanced Charts version by executing `TradingView.version()` in a browser console.
|
ℹ️ You can check the Advanced Charts version by executing `TradingView.version()` in a browser console.
|
||||||
|
|
||||||
<!-- markdownlint-disable no-emphasis-as-header -->
|
<!-- markdownlint-disable no-emphasis-as-heading -->
|
||||||
<!-- markdownlint-disable no-inline-html -->
|
<!-- markdownlint-disable no-inline-html -->
|
||||||
<!-- markdownlint-disable code-block-style -->
|
<!-- markdownlint-disable code-block-style -->
|
||||||
|
|
||||||
|
## Version 31.1.0
|
||||||
|
|
||||||
|
*Date: Wed Apr 08 2026*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added CSP nonce support for widget bootstrap scripts and same-origin iframe loading.** The new [`nonce`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#nonce) widget constructor property applies a Content Security Policy (CSP) nonce to TradingView-owned bootstrap scripts and runtime-created style/script tags inside the library iframe. When `nonce` is omitted, the library attempts to infer the nonce from `window.__tvCspNonce` or a host-page `<script nonce>`. Script nonce propagation is supported. However, strict nonce-based `style-src` CSP is not currently supported, and library styles still require `style-src 'unsafe-inline'`. This property also works with the [`iframe_loading_same_origin`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets#iframe_loading_same_origin) featureset. In this case, the `sameorigin.html` response can provide its own nonce by setting `window.__tvCspNonce`, which takes precedence over the parent-side value.
|
||||||
|
- **Added globally shared mode for drawings.** This feature allows users to synchronize drawings across all layouts for the same symbol.
|
||||||
|
The update also adds a "New drawings sync globally" button to the [drawing toolbar](https:/www.tradingview.com/charting-library-docs/latest/ui_elements/drawings#drawing-toolbar).
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Extended save/load adapter API for separate drawings storage.** The [`saveLineToolsAndGroups`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IExternalSaveLoadAdapter#savelinetoolsandgroups) method now receives an optional `context` argument containing metadata (`sharingMode`, `symbol`, `requestId`). The [`loadLineToolsAndGroups`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IExternalSaveLoadAdapter#loadlinetoolsandgroups) request context is exposed through [`LineToolsAndGroupsLoadRequestContext`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LineToolsAndGroupsLoadRequestContext). For more information, see [Saving drawings separately](https:/www.tradingview.com/charting-library-docs/latest/saving_loading/saving_drawings_separately).
|
||||||
|
- **Added UI support for multiple exit levels on the chart.** The Take Profit and Stop Loss buttons now reappear on the parent order after the initial brackets are placed. This allows users to add [multiple exit levels](https:/www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/brackets#multiple-exit-levels) directly from the chart. (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an error in the broker sample implementation when placing a Stop Loss order.** (Trading Platform only)
|
||||||
|
- **Fixed delayed chart refresh when applying trading property overrides.** The chart now updates immediately when applying overrides to `tradingProperties.showOrders` and `tradingProperties.showPositions`, without requiring user interaction. (Trading Platform only)
|
||||||
|
- **Fixed an issue where adding orders with exit levels caused a `ReferenceError TradedItemType is not defined`.** (Trading Platform only)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 31.0.0
|
||||||
|
|
||||||
|
*Date: Fri Mar 06 2026*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added table view for data visualization.** Users can now view chart and indicator data in a table format.
|
||||||
|
This mode can be opened via the legend's "More" menu or the chart context menu.
|
||||||
|
- **Added multiple exit levels (brackets) support.** When the [`supportMultipleExitLevels`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportmultipleexitlevels) configuration flag is enabled,
|
||||||
|
users can protect orders and positions with multiple take-profit and stop-loss levels at different prices and quantities.
|
||||||
|
This feature introduces the `exitLevels` property to order-related interfaces and the `exitLevelId` property to `BracketOrder` for managing these individual levels.
|
||||||
|
See [Multiple exit levels](https:/www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/brackets#multiple-exit-levels) for more information. (Trading Platform only)
|
||||||
|
- **Added support for the Crypto Exchange Order Ticket for specific symbols.** Use new [`supportCryptoExchange`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SymbolSpecificTradingOptions#supportcryptoexchange) property in [`SymbolSpecificTradingOptions`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SymbolSpecificTradingOptions) to control this behavior.
|
||||||
|
Note that the crypto-specific ticket is displayed only if the [`supportCryptoExchangeOrderTicket`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportcryptoexchangeorderticket) flag is enabled and the symbol's [type](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.InstrumentInfo#type) is `crypto`. (Trading Platform only)
|
||||||
|
- **Added symbol logo support in trading dialogs.** Symbol logos can now be displayed in the *Cancel order* and *Close position* dialogs.
|
||||||
|
To enable them, use the [`show_symbol_logo_in_cancel_order_dialog`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets#show_symbol_logo_in_cancel_order_dialog) and [`show_symbol_logo_in_close_position_dialog`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets#show_symbol_logo_in_close_position_dialog) featuresets alongside the global [`show_symbol_logos`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets#show_symbol_logos) featureset. (Trading Platform only)
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Redesigned empty state styling on the main chart.** Updated the icons and text for all empty states (including invalid symbols and no data) to match the latest design.
|
||||||
|
The empty state container now has a transparent background and full pane coverage.
|
||||||
|
This provides improved responsive behavior across multi-chart layouts and the Table view.
|
||||||
|
- **Added the `supportAdaptiveLayout` broker configuration flag.** When [`supportAdaptiveLayout`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.TradedGroupConfig#supportadaptivelayout) is `true` (default), trading buttons (TP/SL, P&L) on position and order lines will hide on smaller screens and appear on larger ones.
|
||||||
|
When `false`, these buttons will always be visible, regardless of screen width. (Trading Platform only)
|
||||||
|
- **Improved trading settings logic.** The *Reverse position button* option is now automatically disabled in the *Trading settings* whenever *Positions and orders* is unchecked. (Trading Platform only)
|
||||||
|
- **Quantity input types no longer reset when editing orders on the chart.** The Order Ticket now keeps your selected quantity input type (USD, % balance, Risk) even when you adjust order prices or quantities directly on the chart. (Trading Platform only)
|
||||||
|
- **Improved "No overlap" mode behavior.** The "No overlap" mode setting in the context menu is now persistent, meaning the separation of orders and positions remains active until manually toggled off. (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed a bug where symbols with no trading sessions for an entire week due to holidays could not request data.**
|
||||||
|
|
||||||
|
- **Fixed the profit and loss calculation for the risk/reward drawing.** The calculation now correctly uses the actual `qty` based on `lotSize` and multiplies by `pointValue`.
|
||||||
|
Previously, profit and loss was calculated as if `lotSize = 1`, which produced incorrect values when changing lot size.
|
||||||
|
- **Fixed quantity rounding for symbols with integer quantities in the Order Ticket.** The quantity calculator now rounds down to `0` if the specified risk or order value is less than the cost of a single unit.
|
||||||
|
This ensures that validation fails and prevents users from placing an order for `1` unit when the entered value is insufficient to cover the minimum trade value. (Trading Platform only)
|
||||||
|
- **Fixed an issue where the bracket cancellation dialog would fail to appear.** Previously, when attempting to cancel a bracket order repeatedly, the confirmation dialog might not show up, which prevented the bracket order from actually being cancelled. (Trading Platform only)
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New events and subscriptions guide.** Added an article detailing the library's [event system](https:/www.tradingview.com/charting-library-docs/latest/configuration/events-and-subscriptions).
|
||||||
|
It explains the distinction between widget, chart, and component events.
|
||||||
|
- **New trading overrides convention guide.** Added a section explaining the [hierarchical naming pattern](https:/www.tradingview.com/charting-library-docs/latest/customization/overrides/trading-overrides#override-properties) for `BrokerOrderOverrides` and `BrokerPositionOverrides`.
|
||||||
|
It helps identify the specific properties needed to customize the visual state of trading elements.
|
||||||
|
- **Reorganized the documentation for faster onboarding.** We have streamlined our documentation structure to help you get up and running more quickly.
|
||||||
|
The [Introduction](https:/www.tradingview.com/charting-library-docs/latest/introduction) and [Get started](https:/www.tradingview.com/charting-library-docs/latest/quick-start) articles are now more focused, and advanced topics have been moved to dedicated functional categories like *Configuration* and *Reference*.
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Added instructions for [enabling enhanced screen reader descriptions](https:/www.tradingview.com/charting-library-docs/latest/configuration/accessibility#enhanced-descriptions) using the `aria_crosshair_price_description` and `aria_detailed_chart_descriptions` featuresets. They allow screen readers to announce crosshair prices and provide detailed descriptions when the active chart changes.
|
||||||
|
- Clarified descriptions for `supportEditAmount`, `supportModifyBrackets`, and `supportModifyOrderPrice` in the [`BrokerConfigFlags`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.BrokerConfigFlags) interface.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 30.3.0
|
||||||
|
|
||||||
|
*Date: Wed Jan 21 2026*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added the `legend_bar_change_colors_based_on_value` featureset.** When enabled, bar change values in the legend are dynamically colored. For non-OHLC chart types, the color depends on the value (positive, negative, or zero). For OHLC chart types, the library uses the series' own color scheme.
|
||||||
|
- **Added the `applyOverrides` method to the `IChartWidgetApi` interface.** Unlike [`IChartingLibraryWidget.applyOverrides`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#applyoverrides), which applies overrides to **all charts**, this new method allows applying overrides to **specific chart instances**.
|
||||||
|
Refer to [Apply overrides](https:/www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#apply-overrides) for usage example.
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where orders and positions were no longer displayed after a network reconnection.** (Trading Platform only)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 30.2.0
|
||||||
|
|
||||||
|
*Date: Mon Dec 22 2025*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added support for paginated Symbol Search results.** Added the optional [`searchSymbolsPaginated`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#searchsymbolspaginated) method to the Datafeed API. When implemented, the library uses this method instead of [`searchSymbols`](https:/www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/required-methods#searchsymbols), loading Symbol Search results in "pages" rather than returning all results at once. For example, the first 50 results can be returned initially, and then more can be loaded on demand as the user scrolls down the list of symbols.
|
||||||
|
- **Added the `--tv-color-bar-mark-background-color` CSS variable.** This variable allows you to set a custom background color for tooltips shown for [bar marks](https:/www.tradingview.com/charting-library-docs/latest/ui_elements/Marks#marks-on-the-chart).
|
||||||
|
For more information on adjusting UI elements using CSS variables, see [CSS Color Themes](https:/www.tradingview.com/charting-library-docs/latest/customization/styles/CSS-Color-Themes).
|
||||||
|
- **Supported updating Overlay indicator bars that have a time value less than the two most recent main series times.** Ensured that real-time bars are plotted when an Overlay is "behind" the main series, specifically when the most recent Overlay bar time is less than `mainSeriesBars[mainSeriesBars.length - 2]`.
|
||||||
|
- **Reenable the Depth of Market (DOM) widget's dynamic mode by default.** The [DOM widget](https:/www.tradingview.com/charting-library-docs/latest/trading_terminal/depth-of-market) was made static starting with version 28. This change has been reversed so that the pre-28 dynamic mode is enabled by default. The static mode added in version 28 is still available by enabling the `static_dom` featureset. (Trading Platform only)
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **VWAP indicator loads the exact amount of data to reach the target anchor.** Instead of showing an error when there isn’t enough data to calculate the VWAP, the indicator now loads the exact amount of data required to reach the target anchor.
|
||||||
|
- **Added `isAlwaysShownInLegend` property to input definitions in metainfo.** When set, this property keeps any [indicator inputs](https:/www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo/Custom-Studies-Inputs) (`StudySymbolInputInfo`) visible in the legend, even when other indicator inputs are hidden. Note that the [`always_show_study_symbol_input_values_in_legend`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets/#always_show_study_symbol_input_values_in_legend) featureset must be enabled for this property to take effect.
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where the floating toolbar three dots menu would not call the context menu APIs.**
|
||||||
|
- **Fixed inaccurate rounding in the Hull indicator calculation.**
|
||||||
|
- **Fixed an issue where the `onTick` event would not fire.**
|
||||||
|
- **Fixed an issue where custom indicators that return null values were failing to plot.**
|
||||||
|
- **Fixed an issue where the `getVisibleBarsRange` method returned the wrong user time.**
|
||||||
|
- **Fixed an issue where the Overlay indicator was failing to plot because of duplicate bar times.**
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New drag-to-export guide.** Check out a guide on how to [enable the drag-to-export feature](https:/www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#enable-drag-to-export-feature), including an interactive example.
|
||||||
|
It explains how users can drag the chart area to export data to external applications, such as pasting JSON into a text editor.
|
||||||
|
- **New troubleshooting section.** Added a section that explains possible causes and solutions for when [individual positions are not displayed on the chart](https:/www.tradingview.com/charting-library-docs/latest/trading_terminal/common-issues#individual-positions-are-not-displayed-on-the-chart).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 30.1.0
|
||||||
|
|
||||||
|
*Date: Mon Nov 10 2025*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added the `always_show_study_symbol_input_values_in_legend` featureset.** When enabled, this featureset keeps symbol-type [indicator inputs](https:/www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo/Custom-Studies-Inputs) (`StudySymbolInputInfo`) visible in the legend, even when other indicator inputs are hidden. This allows users to visually distinguish multiple instances of the same indicator on the chart by their source symbol.
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Improved drag-to-export feature.** When the [`chart_drag_export`](https:/www.tradingview.com/charting-library-docs/latest/customization/Featuresets#chart_drag_export) featureset is enabled and [`setDragExportEnabled(true)`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#setdragexportenabled) is called, the chart remains responsive to mouse interactions instead of blocking them. The library now emits [`dragstart`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap#dragstart) for all drags. To treat a drag as a drag-drop export, set payload via the parameters of the [`setData`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.DragStartParams#setdata) method. The [event parameters](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.DragStartParams) also include current modifier keys (ctrl/meta/alt/shift), enabling patterns like Cmd+Drag without relying on global key listeners.
|
||||||
|
- **Added the `getVisibleBarsRange` method.** [`getVisibleBarsRange`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#getvisiblebarsrange) returns the range of bar times currently shown on the chart. The method includes existing bars and visible incomplete bars produced by non-time-based chart styles (for example, Renko). Unlike [`getVisibleRange`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#getvisiblerange), `getVisibleBarsRange` doesn't include future bar times beyond the last visible bar.
|
||||||
|
- **Added a dropdown to change the type of Moving Average used for calculating Bollinger Bands.**
|
||||||
|
|
||||||
|
- **Support setting `noData` with non-empty bars response.** It is now possible to signal that there is no more data available, while at the same time returning bars via the [`getBars`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars) callback. Previously, this would cause a `"noData should be set when there is no data in the requested period and earlier only"` warning to be logged to the console, and a second call would be made to [`getBars`](https:/www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#getbars).
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where the widget bar would disappear when resizing.** When transitioning to higher dimensions, the widget bar would not necessarily be properly displayed.
|
||||||
|
- **Fixed VWAP issue.** The VWAP indicator used to break the chart when applied to a Japanese style chart.
|
||||||
|
- **Fixed an issue where the main series wouldn’t load more data if an indicator error appeared.**
|
||||||
|
- **Fixed an issue where the Moving Average Double indicator ignored the `Method` input.**
|
||||||
|
- **Fixed an issue where an error could be thrown after a pane is removed.**
|
||||||
|
- **Fixed an issue where creating an anchored shape would fail if placed before the first available bar.**
|
||||||
|
- **Fixed an issue where the Bollinger Bands indicator could be loaded inconsistently.** The result differed depending on whether it was added from the header dropdown or via the `createStudy` method.
|
||||||
|
- **Fixed an issue where `showOrderDialog` would use the default implementation instead of the one from `customUI`.** (Trading Platform only)
|
||||||
|
- **Fixed an issue where interacting with the DOM could cause errors in the console.** (Trading Platform only)
|
||||||
|
- **Fixed an issue where the Order Panel would not be shown on screens less than 493 pixels high.** (Trading Platform only)
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **Updated navigation and structure.** Restructured and expanded documentation for better navigation and clarity:
|
||||||
|
- Created a new [Time and sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/) section with an introductory article explaining how to correctly configure bar times, symbol sessions, and resolutions in the datafeed.
|
||||||
|
- Reorganized the [Tutorials](https://www.tradingview.com/charting-library-docs/latest/tutorials/) section into four dedicated categories: Tutorials, How-to guides, Framework integrations, and Interactive code examples.
|
||||||
|
- **Added new troubleshooting sections.** Each section explains possible causes and solutions for the corresponding issue.
|
||||||
|
- [Incorrect time display in Japanese-style charts](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-Issues#japanese-charts-show-incorrect-time)
|
||||||
|
- [Memory leak investigation steps](https://www.tradingview.com/charting-library-docs/latest/troubleshooting/#memory-leaks)
|
||||||
|
- [P&L showing 0 in bracket orders](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/common-issues#pl-in-bracket-orders-shows-0)
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Added an [interactive example](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Marks#example) showing how to implement marks on the chart or time scale.
|
||||||
|
- Expanded explanation and added an example for [enabling custom resolutions](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Resolution#enable-custom-resolutions).
|
||||||
|
- Exposed the `addPlusButton` [action ID](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#execute-action-by-id) that enables or disables the *Plus* button on the price scale for [quick trading](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale#quick-trading).
|
||||||
|
- Clarified the behavior of the [`show_zoom_and_move_buttons_on_touch`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#show_zoom_and_move_buttons_on_touch) featureset on mobile devices.
|
||||||
|
- Documented a limitation for `long_positions` and `short_positions` drawing types where the [`text`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.CreateShapeOptions#text) property is auto-generated and must not be set manually.
|
||||||
|
- Clarified method descriptions for `mergeUp`, `mergeDown`, `unmergeUp`, and `unmergeDown` in both [`IStudyApi`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IStudyApi/) and [`ISeriesApi`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ISeriesApi/) interfaces.
|
||||||
|
- Updated the [Connecting data](https://www.tradingview.com/charting-library-docs/latest/connecting_data/) article with clearer descriptions of available integration approaches and their appropriate use cases.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 30.0.0
|
||||||
|
|
||||||
|
*Date: Mon Sep 18 2025*
|
||||||
|
|
||||||
|
**Breaking Changes**
|
||||||
|
|
||||||
|
- **Scrolling and resizing cannot be canceled anymore.** Chart scrolling or resizing via the time or price scale no longer triggers a change event. Therefore, these actions cannot be canceled with undo action anymore.
|
||||||
|
- **Update line tools overrides.** The text visibility checkbox has been removed from the drawing settings. Now, the text is always displayed when specified.
|
||||||
|
For this reason, the `showLabel` override property has no effect for the line tools such as Trend Line.
|
||||||
|
- **Update UDF properties.** Both `exchange-listed` and `exchange-traded` have been marked deprecated in favour of a single `exchange_listed_name` property.
|
||||||
|
From version 31 they will be removed.
|
||||||
|
- **Extend featureset to display inactivity gaps on DWM charts.** The new [`inactivity_gaps`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#inactivity_gaps) featureset replaces the existing `intraday_inactivity_gaps` and enables the display of inactivity gaps both on intraday and DWM (daily, weekly, monthly) charts. For more information, refer to the [Show/hide gaps on the chart](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#showhide-gaps-on-the-chart) section.
|
||||||
|
- **Removed support for iOS version below 15.** Only iOS versions including and above 16 are now compatible with the library.
|
||||||
|
- **Default value of `supportOrdersHistory` changed to `true`.** This means the *History* page in the [Account Manager](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager/) is enabled by default and requires the [`ordersHistory`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerTerminal#ordershistory) method to be implemented. If you don't plan to support order history, set [`supportOrdersHistory`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.BrokerConfigFlags#supportordershistory) to `false` in your broker configuration. This hides the *History* page and prevents related errors. (Trading Platform only)
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added the "Day of week labels" checkbox to the "Scales and lines" settings dialog.**
|
||||||
|
- **Added a floating tooltip for detailed bar analysis in the *Cursors* menu.** On a long press on the chart, the tooltip appears and displays the OHLCV values and price change for the selected bar.
|
||||||
|
It then follows the cursor or finger as you move, providing a seamless way to inspect data across the chart.
|
||||||
|
To disable this feature, use the `long_press_floating_tooltip` featureset.
|
||||||
|
- **Added "No overlap mode" toggle for orders and positions.** A new option is now available in the context menu of orders and positions on the chart. When enabled, it prevents trading lines and labels at the same price level from stacking, automatically offsetting them vertically for better readability.
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added option to remove locked drawings.** A new toggle *Always remove locked drawings* is now available in the left toolbar’s delete menu.
|
||||||
|
When enabled, this option forces the deletion of locked drawings along with other items.
|
||||||
|
- **Added subscription for *Zoom out* tool.** [`IChartWidgetApi`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi) has a new property `canZoomOutWV`. It returns whether the chart can be zoomed out using [`zoomOut`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#zoomout).
|
||||||
|
- **The `onSymbolChanged` method returns the right type.** [`onSymbolChanged`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#onsymbolchanged) now returns the expected type.
|
||||||
|
- **Deprecated support for letters in shortcuts.** The support for letters in [shortcuts](https://www.tradingview.com/charting-library-docs/latest/configuration/Shortcuts) has been deprecated. Starting from version 31, string key names are no longer supported.
|
||||||
|
Old styles like `'ctrl+shift+/'` or `['ctrl', 'shift', '/']` are deprecated. Use the supportable style like `['ctrl', 'shift', 191]` instead. For more information, refer to the [Manage shortcuts](https://www.tradingview.com/charting-library-docs/latest/configuration/Shortcuts#manage-shortcuts) section.
|
||||||
|
- **Added a `label` property to StudyOrDrawingAddedToChartEventParams.** The [`label`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.StudyOrDrawingAddedToChartEventParams#label) property contains the indicator's name as defined in the [`description`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.RawStudyMetaInfo#description) field of its [metainfo](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo).
|
||||||
|
- **New featuresets for legend in-place edit.** The `disable_legend_inplace_resolution_change` and `disable_legend_inplace_symbol_change` featuresets control whether users can change the resolution or symbol directly from the [legend](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend).
|
||||||
|
- **Show symbol name in the _Сompare_ dialog.** When the [`use_symbol_name_for_header_toolbar`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#use_symbol_name_for_header_toolbar) featureset is enabled, the symbol [`name`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology/#name) is displayed in the _Compare_ search dialog instead of [`ticker`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology/#ticker).
|
||||||
|
- **Added new time zone for Kabul.**
|
||||||
|
|
||||||
|
- **Added new APIs to control the watermark settings.** The [Watermark API](https://www.tradingview.com/charting-library-docs/latest/ui_elements/watermarks#watermark-api-recommended) now has three different properties that can be set independently:
|
||||||
|
- [`tickerVisibility`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IWatermarkApi/#tickervisibility) to toggle the display of the ticker (e.g. AAPL)
|
||||||
|
- [`intervalVisibility`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IWatermarkApi/#intervalvisibility) to toggle the display of the interval (e.g. 1h)
|
||||||
|
- [`descriptionVisibility`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IWatermarkApi/#descriptionvisibility) to toggle the display of the description (e.g. Apple Inc.)
|
||||||
|
- **The `setVisibleRange` method can be rejected.** [`setVisibleRange`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#setvisiblerange) now returns a `Promise` that can be rejected.
|
||||||
|
- **Added `chart_theme_changed` event to `SubscribeEventsMap`.** The [`chart_theme_changed`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap#chart_theme_changed) event is fired when a user applies a saved [chart template](https://www.tradingview.com/charting-library-docs/latest/saving_loading#chart-templates), resets the theme to the default built-in settings, or when the [`changeTheme`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#changetheme) or [`loadChartTemplate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#loadcharttemplate) methods are called.
|
||||||
|
- **New `applyTradingCustomization` method.** This method allows you to override the style of order and position lines created with the [Broker API](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts#broker-api) after the widget has been created. (Trading Platform only)
|
||||||
|
- **Added a date property to `PositionBase`.** [`PositionBase`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.PositionBase) now has an optional `updateTime` property. (Trading Platform only)
|
||||||
|
- **Added a `canBeClosed` property to different Position APIs.** Both [`IndividualPositionBase`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IndividualPositionBase) and [`IndividualPosition`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IndividualPosition) now have an optional `canBeClosed` property to determine if a position can be closed. (Trading Platform only)
|
||||||
|
- **Added price information (price and profit/loss details) to the tooltip for positions, orders, and brackets.** (Trading Platform only)
|
||||||
|
- **Redesigned *Trading settings* panel.** The *Trading settings* panel has been reworked to be more intuitive and provide users with clearer options for customizing their trading view. (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where Spread and Ratio indicators did not work correctly on intraday resolutions.** Previously, the Spread and Ratio indicators did not work correctly on intraday resolutions when the compared symbol had a different session (e.g., 24x7 and 0930-1630).
|
||||||
|
- **Fixed an issue where the _Long Position_ and _Short Position_ drawings were not reversed correctly.**
|
||||||
|
|
||||||
|
- **Fixed a bug that allowed orders to be placed without a price.** (Trading Platform only)
|
||||||
|
- **Fixed *Reverse* button color overrides.** Previously, setting override properties for the *Reverse* button within the [`trading_customization`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#trading_customization) object would result in the button rendering as black. (Trading Platform only)
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **AI docs assistant.** You can now download a comprehensive knowledge file containing our complete, up-to-date documentation and full TypeScript definitions. Feed this file to your favorite LLM to create a dedicated expert assistant for our library, ensuring you get accurate, context-aware answers and code examples. [Learn how to set it up](https://www.tradingview.com/charting-library-docs/latest/resources/llm-context).
|
||||||
|
- **New watermarks guide.** The [Watermarks](https://www.tradingview.com/charting-library-docs/latest/ui_elements/watermarks) article explains how to programmatically control the watermark's visibility, color, and content using the Watermark API.
|
||||||
|
- **New profit and loss article.** The [Profit and loss](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/profit-and-loss) article explains how to provide P&L values from your backend. It details the different methods for updating the data and clarifies how the library uses this data for the *Money*, *Ticks*, and *Percentage* display modes.
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Added a new section that describes [time ranges](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Time-Scale#time-range) and how to use `setVisibleRange`.
|
||||||
|
- Added a new section that describes [how to show/hide gaps on the chart](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#showhide-gaps-on-the-chart) using the `intraday_inactivity_gaps` featureset.
|
||||||
|
- Updated information on [mobile app development](https://www.tradingview.com/charting-library-docs/latest/mobile_specifics#mobile-applications).
|
||||||
|
- Updated [`setMinimumAdditionalDepth`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IContext#setminimumadditionaldepth) description, mentioning when to use the method.
|
||||||
|
- Updated the [Trading primitives](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/Trading-Primitives) article, providing clear explanations and examples on the primitive methods.
|
||||||
|
- Updated the [Online playgrounds](https://www.tradingview.com/charting-library-docs/latest/tutorials/Online-Editors) article, providing templates for [CodePen](https://codepen.io/tradingview).
|
||||||
|
- **Update the Datafeed API tutorial.** We updated both the code example and documentation for the [How to connect data via datafeed API](https://www.tradingview.com/charting-library-docs/latest/tutorials/implement_datafeed_tutorial) tutorial. The latest version introduces several key improvements:
|
||||||
|
|
||||||
|
- Added support for minute and hour resolutions.
|
||||||
|
- Removed `full_name` from the `SymbolInfo` object. Now, `ticker` is used instead.
|
||||||
|
- `searchSymbols` now properly filters results by user input, selected exchange, and symbol type.
|
||||||
|
- `getBars` now selects the correct API endpoint based on the requested `resolution` (minute, hour, or day), ensuring the most appropriate data is used.
|
||||||
|
- Reworked streaming logic to support multiple subscriptions to data updates.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.6.0
|
||||||
|
|
||||||
|
*Date: Wed Aug 13 2025*
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added a `label` property to `StudyOrDrawingAddedToChartEventParams`.** The [`label`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.StudyOrDrawingAddedToChartEventParams/#label) property contains the indicator's name as defined in the [`description`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.RawStudyMetaInfo/#description) field of its [metainfo](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo/).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.5.0
|
||||||
|
|
||||||
|
*Date: Tue Aug 05 2025*
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Improved crosshair movement in tracking mode on mobile.** Previously, the crosshair moved incorrectly in tracking mode when `vert_touch_drag_scroll` was disabled. Now, page scrolling is disabled in tracking mode, allowing the crosshair to move on touch.
|
||||||
|
- **Added `setLayoutSizes` method to `IChartingLibraryWidget`.** The [`setLayoutSizes`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#setlayoutsizes) method can be used to resize the charts in [multiple-chart layouts](https://www.tradingview.com/charting-library-docs/latest/trading_terminal#multiple-chart-layout). (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where setMinimumAdditionalDepth would be ignored.** Fixed an issue where custom studies would sometimes not request enough historic bars after calling [`setMinimumAdditionalDepth`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IContext/#setminimumadditionaldepth).
|
||||||
|
- **Fixed an issue where pivot points could be drawn on the wrong bar for overnight sessions.** Fixed an issue where pivot points could be drawn on the wrong bars for symbols with overnight sessions when calculating with a daily timeframe.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.4.0
|
||||||
|
|
||||||
|
*Date: Tue Jun 25 2025*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added new legend property.** A new overrides property `paneProperties.legendProperties.showSeriesLegendCloseOnMobile` was added to hide/show the close value in the legend when on mobile. The default value is `true`.
|
||||||
|
- **Support multiple tick resolution.** The library now supports multiple [tick resolutions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/configure-datafeed-resolutions#resolution-in-ticks). Previously, it was possible to set only `1T` resolution.<br/>
|
||||||
|
Note that the library does not support tick multipliers. This means it is not possible to build a higher resolution (e.g., `10T`) from a lower one (e.g., `1T`). Therefore, your datafeed must explicitly provide each required resolution. (Trading Platform only)
|
||||||
|
- **Enabled custom price formatting for Watchlist values.** `priceFormatterFactory` from [`custom_formatters`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#custom_formatters) can now be used to format values displayed in the Watchlist columns titled _Last_ and _Chg_. (Trading Platform only)
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Updated snapshots functionality in the top toolbar.** Now, handling and storing [snapshots](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Snapshots) rely solely on the [`snapshot_url`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#snapshot_url) property.
|
||||||
|
This means all server-side snapshot actions (*Copy link*, *Open in new tab*, *Tweet image*) must be implemented using your own server.
|
||||||
|
For details on how to set up your own server, see our guide to [implementing a snapshot server](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/implement-snapshots-server).
|
||||||
|
- **Added the `use_symbol_name_for_header_toolbar` featureset.** This featureset allows you to show the symbol name over the ticker in the _Symbol Search_ dialog.
|
||||||
|
- **Added `searchSource` parameter to `searchSymbols`.** [`searchSymbols`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#searchsymbols) now receives a new parameter `searchSource` to indicate where the search was triggered from.
|
||||||
|
- **Added a new property to the `BrokerCustomUI` interface.** [`showReversePositionDialog`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.BrokerCustomUI#showreversepositiondialog) allows overriding the default *Reverse position* dialog with a custom implementation.
|
||||||
|
- **Added VWAP insufficient data warning.** Users will now see a warning icon and message in the legend if there isn't enough data loaded to calculate VWAP.
|
||||||
|
- **Add featureset to display inactivity gaps on intraday charts.** The new `intraday_inactivity_gaps` featureset enables the display of inactivity gaps on intraday charts. These gaps represent periods within the trading session when there has been no trading activity, resulting in missing bars on the chart.<br/>
|
||||||
|
When `intraday_inactivity_gaps` is enabled, a checkbox appears in the chart settings dialog, allowing users to toggle inactivity gaps on or off. The featureset also exposes the [`intradayInactivityGaps`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#intradayinactivitygaps) watched value on the Widget API for programmatic control.
|
||||||
|
- **Improved data loading efficiency by throttling data requests during user scrolling.** This significantly reduces the frequency of small, incremental requests to the Datafeed API.
|
||||||
|
- **Order & Position lines display the same information on desktop and mobile.** Users can now benefit from the same design on both desktop and mobile when an order/position is displayed on the chart. (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed indicator template favorite menu bug.** Fixed an issue where favoriting an indicator template with leading whitespace in its name caused the quick access button in the header menu to appear empty.
|
||||||
|
- **Fixed Relative Strength Index indicator.** The Relative Strength Index indicator was broken in version 29.2.0 and has now been fixed.
|
||||||
|
- **Fixed a bug where switching chart type to a Japanese one would lead to an error in the console.**
|
||||||
|
|
||||||
|
- **Fixed vertical line drawing bug.** Fixed an issue where it was impossible to move an existing vertical line drawing to the right of the most recent bar on the chart.
|
||||||
|
- **Fixed an error when drawing execution shapes on the chart led to an invalid chart state.** Fixes [#9109](https://github.com/tradingview/charting_library/issues/9109)
|
||||||
|
- **Fixed the spread operator issue in the Compare symbol dialog.** Spread operators now function correctly in the _Compare symbol_ dialog, ensuring consistency with the _Symbol Search_ dialog.
|
||||||
|
- **Fix for sameorigin.html loading from relative path.** This fix ensures proper loading of the `sameorigin.html` file when using the `iframe_loading_same_origin` featureset and the current page is not the root page.
|
||||||
|
- **The `_getStyleOverrides` error message.** Fixed a bug where the `_getStyleOverrides` error message could be seen in the console when instantiating the chart with pre-existing orders or positions. (Trading Platform only)
|
||||||
|
- **Fix rendering of multiple execution shapes on a single bar.** Fixed an issue where adding multiple [execution shapes](https://www.tradingview.com/charting-library-docs/latest/ui_elements/drawings/drawings-api#createexecutionshape) to a single bar would only render the first shape. (Trading Platform only)
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New tutorial.** Check out our [new tutorial](https://www.tradingview.com/charting-library-docs/latest/tutorials/implement-broker-api) on how to implement the required methods to enable basic trading functionality using the Broker API.
|
||||||
|
By the end of this tutorial, you will learn how to enable trading UI and how to store, return, and update orders to make the trading flow functional.
|
||||||
|
- **New troubleshooting article.** Explore a new article on common [customization issues](https://www.tradingview.com/charting-library-docs/latest/customization/customization-issues) and potential solutions.
|
||||||
|
- **Other enhancements.** Updated the [Custom themes API](https://www.tradingview.com/charting-library-docs/latest/customization/styles/custom-themes) article and added a new [example](https://codepen.io/tradingview/pen/xbGRaKd) to demonstrate how chart colors can be adjusted using this API.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.3.0
|
||||||
|
|
||||||
|
*Date: Thu May 08 2025*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added HLC bars chart style.** The HLC bars chart style is the same as regular bars but doesn't display the open price. When exporting a series or [overlay](https://www.tradingview.com/charting-library-docs/latest/ui_elements/indicators#add-and-compare-new-series) indicator that uses the HLC bars chart style, open values are not included. Open values also do not appear in the data window or [legend](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend) for series or overlay indicators using this style.
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added price scale details to context menu event.** When invoking the [context menu](https://www.tradingview.com/charting-library-docs/latest/ui_elements/context-menu) on the price scale, it now returns the following details:
|
||||||
|
- `id` of the price scale
|
||||||
|
- `paneIndex` which is the index of the pane the price scale is linked to
|
||||||
|
- `chartIndex` which is the index of the chart the price scale is linked to
|
||||||
|
- **Added icon to dropdown items.** A new property `icon` was added to the [`DropdownItem`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.DropdownItem) interface.
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Empty context menu.** Fixed an issue where the [context menu](https://www.tradingview.com/charting-library-docs/latest/ui_elements/context-menu) would be partially empty on mobile
|
||||||
|
- **onContextMenu callback received incorrect arguments.** Fixed a bug where the [`onContextMenu`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#oncontextmenu) callback received an object instead of the expected arguments.
|
||||||
|
- **Autosave won't trigger with empty text box created during autosave delay.**
|
||||||
|
- **Fixed an error where vertical lines would revert to their previous position when moved beyond latest bar.** Fixes [#8894](https://github.com/tradingview/charting_library/issues/8894)
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **The following enhancements were made.**
|
||||||
|
- Added a new section explaining how to [programmatically open and close Symbol Search](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Symbol-Search#openclose-symbol-search).
|
||||||
|
- Updated the [Customization overview](https://www.tradingview.com/charting-library-docs/latest/customization) and [Time zones](https://www.tradingview.com/charting-library-docs/latest/ui_elements/timezones) articles.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.2.0
|
||||||
|
|
||||||
|
*Date: Tue Apr 08 2025*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added new methods to Trading Host.** The [Trading Host](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts#trading-host) now includes three new methods designed to clear specific caches and trigger fresh data fetches:
|
||||||
|
- [`ordersFullUpdate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#ordersfullupdate)
|
||||||
|
- [`positionsFullUpdate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#positionsfullupdate)
|
||||||
|
- [`individualPositionsFullUpdate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#individualpositionsfullupdate)
|
||||||
|
- **Added cross-tab synchronization for watchlists.** This feature is enabled by default and requires the `use_localstorage_for_settings` [featureset](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets) to be enabled.
|
||||||
|
To disable the cross-tab synchronization, use the `watchlist_cross_tab_sync` featureset. (Trading Platform only)
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **New `resetCache` method.** The new `resetCache` method allows you to delete previously loaded data for all symbol and resolution combinations known to the datafeed at once. You can use this method instead of [`onResetCacheNeededCallback`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#subscribebars) to clear the cache before calling [`resetData`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#resetdata). In this case, you do not need to wait for [`subscribeBars`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IDatafeedChartApi#subscribebars) to be called to access the callback.
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Save button tooltip still shows shortcut when `save_shortcut` is disabled.** Fixed a bug where the _Save_ button's tooltip still showed the shortcut when the `save_shortcut` featureset was disabled. Fixes [#8925](https://github.com/tradingview/charting_library/issues/8925)
|
||||||
|
- **Compare Symbol search dialog behavior.** Fixed an issue where the library would try to resolve a symbol that may not exist when users pressed _Enter_ whenever the featureset `allow_arbitrary_symbol_search_input` would be enabled.
|
||||||
|
- **Adding a custom interval could cause an error.** Adding a custom interval after enabling the [`custom_resolution`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#custom_resolutions) featureset used to cause a console error.
|
||||||
|
- **Fixed an issue where on some occasions PineJS functions would not return the right values when internally comparing it to MIN_VALUE or MAX_VALUE.**
|
||||||
|
|
||||||
|
- **Future bar time extrapolation with `disable_resolution_rebuild`.** Fixed an issue where future bar times would be extrapolated incorrectly when the `disable_resolution_rebuild` featureset was enabled, and daily bars that do not consider the January 1 to be the first day of the year were provided to the library.
|
||||||
|
- **Compare symbol legend context menu.** Fixed an issue where the context menu for compared symbols would show the _Add this indicator to favorites_ item.
|
||||||
|
- **Main series context menu.** Fixed an issue where the [context menu](https://www.tradingview.com/charting-library-docs/latest/ui_elements/context-menu) for the main series would show a blank space instead of the _Add SYMBOL to watchlist_ item.
|
||||||
|
- **Watchlist item counter.** Fixed an issue where the watchlist item count would include section titles in its calculation.
|
||||||
|
- **Fixed an issue with time scale marks that couldn't contain any underscore character.**
|
||||||
|
|
||||||
|
- **Fixed a bug where `getBars` failed to display error messages containing semicolons.**
|
||||||
|
|
||||||
|
- **Fixed drawing keyboard shortcuts.** Fixed an issue where using keyboard shortcuts to add drawings would sometimes open the _Symbol Search_ dialog instead of adding the intended drawing.
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **The following enhancements were made.**
|
||||||
|
- Added a new section explaining how to [display pre- and post-market price lines](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Extended-Sessions#enable-the-price-line).
|
||||||
|
- Added a new section explaining how to [provide profit and loss values](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/profit-and-loss) in Trading Platform.
|
||||||
|
- Updated the [Trading Session](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Trading-Sessions) article with information on how to specify [session history](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Trading-Sessions#session-history)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.1.0
|
||||||
|
|
||||||
|
*Date: Fri Mar 07 2025*
|
||||||
|
|
||||||
|
### New Features
|
||||||
|
|
||||||
|
- **Added the _Another symbol_ input field to Moving Average Multiple, Moving Average Triple, and Pivot Points Standard.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.<ReleaseNoteAnchor id="v29_1-added_other_symbol_to_moving_average_multiple_and_triple" /><br/>
|
||||||
|
|
||||||
|
#### Trading Platform only
|
||||||
|
|
||||||
|
- **Pre-/post-market lines.** Added the `pre_post_market_price_line` featureset that allows you to enable or disable the pre-/post-market price lines. To display the pre-/post-market lines, you need to provide the `rtc` property in [quotes](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Datafeed.DatafeedQuoteValues).<ReleaseNoteAnchor id="v29_1-pre_post_market_lines" /><br/>
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
- **Adds an offset input to the Bollinger Bands indicator.**
|
||||||
|
- **Allow overriding the default shortcuts.** Now, you can override the default shortcuts using the [`onShortcut`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#onshortcut) method. Note that modal dialogs shortcuts cannot be changed.
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- **New articles.** Explore our latest articles:
|
||||||
|
- [Object tree](https://www.tradingview.com/charting-library-docs/latest/ui_elements/object-tree) — an overview of the feature.
|
||||||
|
- [Quotes](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/quotes) — an article explaining the importance of quotes in Trading Platform.
|
||||||
|
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Updated the guide on [how to add a custom page to the Account Manager](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/create-custom-page-in-account-manager). It now describes how to make the symbol name clickable on the custom page.
|
||||||
|
- Added a guide on how to troubleshoot when [quotes are not displayed or refreshed](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-Issues#quotes-are-not-displayed-or-refreshed).
|
||||||
|
- Added a guide on how to troubleshoot [delays in Trading Platform UI elements](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-Issues#delays-in-trading-platform-ui-elements).
|
||||||
|
- Added a new FAQ — [Does the library set cookies](https://www.tradingview.com/charting-library-docs/latest/resources/Frequently-Asked-Questions#other-questions).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 29.0.0
|
||||||
|
|
||||||
|
*Date: Wed Feb 05 2025*
|
||||||
|
|
||||||
|
**Breaking Changes**
|
||||||
|
|
||||||
|
- **Removed trading API methods from Advanced Charts.** The following methods are now available exclusively in Trading Platform. If you’re using Advanced Charts, these methods will no longer be accessible.
|
||||||
|
- [`createOrderLine`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline)
|
||||||
|
- [`createPositionLine`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline)
|
||||||
|
- [`createExecutionShape`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)
|
||||||
|
- **Changed the `getPositionDialogOptions` signature.** The [`getPositionDialogOptions`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerCommon#getpositiondialogoptions) method is asynchronous and returns a promise now. The method also expects a symbol as a parameter.
|
||||||
|
- **Broker API simplification.** To further improve and simplify the library, we have merged the two existing APIs, `IBrokerWithoutRealtime` and `IBrokerTerminal`, and now exclusively expose the latter. Additionally, we have removed the `subscribeDOM`/`unsubscribeDOM` methods, as they were rarely used and duplicated the functionality of [`subscribeDepth`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/trading-platform-methods#subscribedepth)/[`unsubscribeDepth`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/trading-platform-methods#unsubscribedepth). This change ensures that the datafeed fully handles all data management responsibilities.
|
||||||
|
- **Removed the Anchored Note drawing.**
|
||||||
|
- **Renamed the Note drawing to Pin.**
|
||||||
|
- **Updated the default colors for drawings/indicators with Volume Profiles.**
|
||||||
|
- **Added MACD smoothing inputs.**
|
||||||
|
- **Drawing creation methods now return Promises instead of synchronous values.** The drawing creation methods ([`createShape`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createshape), [`createMultipointShape`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createmultipointshape), and [`createAnchoredShape`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createanchoredshape)) now return Promises that resolve to the drawing ID. The methods also throw an Error through a rejected Promise when the drawing creation fails, instead of returning `null`.
|
||||||
|
- **Trading Platform methods for drawing creation now return Promises instead of synchronous values.** The ([`createOrderLine`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createorderline), [`createPositionLine`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createpositionline), and [`createExecutionShape`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#createexecutionshape)) methods now return Promises that resolve to the corresponding API interface. (Trading Platform only)
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added the _Another symbol_ input field to Ichimoku Cloud, Bollinger Bands, and Average Price.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.
|
||||||
|
- **New properties for customizing order and position lines.** You can now override the style of order and position lines created with the [Broker API](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts#broker-api).
|
||||||
|
The [`trading_customization`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.TradingTerminalWidgetOptions#trading_customization) option in the Widget Constructor now supports `brokerOrder` and `brokerPosition` properties.
|
||||||
|
For more details, see the [Trading Overrides](https://www.tradingview.com/charting-library-docs/latest/customization/overrides/trading-overrides#created-with-broker-api) article. (Trading Platform only)
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added an option to keep the leftmost bar visible after resolution switching.** By default, the library resets the chart to the latest data when the resolution is changed. To keep the current time range, users can enable the Save chart left edge position when changing interval option in *Chart settings* → *Scales*.
|
||||||
|
- **Added option to hide/show scroll to the most recent bar button.** The presence of the *Scroll to the most* recent bar button now depends on the Navigation buttons settings (*Chart settings* → *Canvas* → *Buttons* → *Navigation*).
|
||||||
|
- **Added a new `paneIndex` getter to the `StudyAPI`.** The [`paneIndex`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IStudyApi#paneindex) function returns the index of the pane the indicator belongs to.
|
||||||
|
- **Enabled users to adjust coordinates of Parallel Channel within the drawing settings.**
|
||||||
|
- **Enabled users to reverse the Long/Short Position drawings.**
|
||||||
|
- **Buy/Sell buttons' visibility can now be changed for each chart in the layout.**
|
||||||
|
- **Added the Volume option for the Date Range and Date & Price Range tools.**
|
||||||
|
- **Added multiline option for Parallel Channel.** Additional level lines have been added.
|
||||||
|
- **Show price line of Heikin Ashi on real price when the real price label is selected.** On Heikin Ashi chart, the price line now matches the position of the *Last price* label when the *Real prices on price scale (instead of Heikin-Ashi price)* setting is enabled.
|
||||||
|
- **Added new time zone Azores (UTC-1).**
|
||||||
|
- **Added an error message for unsupported resolutions.** If the selected resolution is not supported by the current symbol, an error message appears on the chart along with a button to switch to a supported resolution.
|
||||||
|
- **Implemented dynamic loading for drawings to optimize bundle size.** Drawings have been refactored to utilize dynamic imports, reducing the initial bundle size by loading these components on-demand. This optimization results in faster initial page loads and improved application startup time, while maintaining full drawing functionality through lazy loading when tools are actually accessed by users.
|
||||||
|
- **Added a star icon to chart context menu for indicator.** This icon is displayed next to the _Add this indicator to favorites / Remove this indicator_ from favorites option in the indicator context menu.
|
||||||
|
- **Changed the return type for `OrderPreviewResult`.** When implementing [`previewOrder`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerTerminal#previeworder), you can specify links to external URLs now. The links will be displayed within the `warnings` or `errors` block. (Trading Platform only)
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed unreliable onChartReady callback with cached bundles.** When using `iframe_loading_compatibility_mode` with cached library bundles, the `onChartReady` callback would sometimes fail to execute. Fixes [#8889](https://github.com/tradingview/charting_library/issues/8889)
|
||||||
|
- **Long/Short Position tools are extended to the right if the next bar crosses stop/profit level.** Fixed a bug where Long/Short Position would get partially extended to the right if the next bar crossed the stop/profit level.
|
||||||
|
- **Fixed hovering on the indicator legend.** Now, when an indicator is deleted via the legend, the hover state shifts to the legend of the next indicator below.
|
||||||
|
- **Fixed an issue when cloning drawings that were not selected.** Fixed a bug where _Ctrl+Drag_ would create copies of the last selected drawings on chart, even if they were no longer selected. Now, this shortcut enables area selection.
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New how-to guide.** Check out a new [guide](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/add-custom-button-to-top-toolbar) on how to add a custom button to the top toolbar.
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Added a new section that explains [multiple symbol resolving](https://www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/required-methods#multiple-symbol-resolving).
|
||||||
|
- Updated the [Toolbars](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Toolbars) article.
|
||||||
|
- Added a new [section](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Chart#execute-action-by-id) that describes how to trigger specific actions, such as opening the *Chart settings* dialog, using the [`executeActionById`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#executeactionbyid) method.
|
||||||
|
- Added an [overview](https://www.tradingview.com/charting-library-docs/latest/product-comparison) of other TradingView products.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version 28.5.0
|
||||||
|
|
||||||
|
*Date: Wed Dec 18 2024*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added `baselinePosition` property for column series.** The [`baselinePosition`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ColumnStylePreferences#baselineposition) property allows column series to be drawn relative to the specified baseline value.
|
||||||
|
- The default value is `'bottom'`, which draws columns with the bottom of the chart pane as their baseline.
|
||||||
|
- Setting the value to `'zero'` draws columns with a baseline of 0, displayed as either 0% or 0.00 depending on the price scale mode.
|
||||||
|
- **Added the _Another symbol_ input field to Moving Average Double.** This field allows users to specify a different symbol for calculating the indicator. By default, the current symbol on the chart is used.
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New how-to guide.** Check out a new [guide](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/create-custom-page-in-account-manager) that explains how to create a custom page in the Account Manager.
|
||||||
|
- **Other updates.** The following enhancements were made:
|
||||||
|
- Added a new section that explains how to enable and specify [last day change values](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend#last-day-change-values).
|
||||||
|
- Updated information on [overnight sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Trading-Sessions#overnight-sessions).
|
||||||
|
- Updated information on how to [close](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/positions#close-positions) and [reverse](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/positions#reverse-positions) positions.
|
||||||
|
- Updated API overview page.
|
||||||
|
|
||||||
|
## Version 28.4.0
|
||||||
|
|
||||||
|
*Date: Thu Nov 28 2024*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added `includeOHLCValuesForSingleValuePlots` option when exporting data.** When set to `true`, this option forces all four OHLC plot values to be exported, even if the plot has a single value. This applies, for example, when the symbol has `visible_plots_set: 'c'` or when the exported plot is a single-value style (Area, Baseline, Line, Line with markets, Stepline, or Column).
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added logging of quotes events.** Added extra logging of quote events when [debug mode](https://www.tradingview.com/charting-library-docs/latest/tutorials/enable-debug-mode#enable-debug-mode-for-data-connection) is enabled. The logs will contain information about quote data requests, real-time subscribe and unsubscribe events, and alerts for data requests that do not respond within 10 seconds.
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Fixed an issue where missing translations caused errors when opening the settings dialog of the Ichimoku Cloud indicator.**
|
||||||
|
- **Fixed an issue where the Point and Figure series would not be displayed.**
|
||||||
|
|
||||||
|
**Documentation**
|
||||||
|
|
||||||
|
- **New articles.** Explore our latest articles:
|
||||||
|
- [Positions](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/positions) — an article that overviews position types supported in the library and describes how to manage them.
|
||||||
|
- [UI elements](https://www.tradingview.com/charting-library-docs/latest/ui_elements) — an overview of the library's UI elements.
|
||||||
|
- [News](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/news) — an article that explains how to connect data to the _News_ widget.
|
||||||
|
- **Other updates.** The following articles were improved:
|
||||||
|
- [Custom themes API](https://www.tradingview.com/charting-library-docs/latest/customization/styles/custom-themes)
|
||||||
|
- [CSS color themes](https://www.tradingview.com/charting-library-docs/latest/customization/styles/CSS-Color-Themes)
|
||||||
|
- [Market Status](https://www.tradingview.com/charting-library-docs/latest/ui_elements/market-status)
|
||||||
|
|
||||||
|
## Version 28.3.0
|
||||||
|
|
||||||
|
*Date: Thu Oct 24 2024*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Symbol name in the Watchlist and Details widgets.** Now, the [`DatafeedQuoteValues.short_name`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Datafeed.DatafeedQuoteValues#short_name) value is displayed as a symbol's short name in the [Watchlist](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/Watch-List) and [Details](https://www.tradingview.com/charting-library-docs/latest/trading_terminal#details).
|
||||||
|
You can disable the [`prefer_quote_short_name`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#prefer_quote_short_name) featureset to revert to the old behavior. In this case, the [`ticker`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#ticker) value will be used instead. `Trading Platform Only`
|
||||||
|
|
||||||
|
**Bug Fixes**
|
||||||
|
|
||||||
|
- **Anchored Note in multi-layout.** Fixed an issue where plotting a saved Anchored Note in multi-layout would raise an error. `Trading Platform Only`
|
||||||
|
- **Fixed symbol logo persistence in legend.** Resolved an issue where a failed image load (e.g., a 404 error) for a symbol logo would cause the previous logo to persist in the legend. Now, the legend correctly updates to reflect the absence of a logo when loading fails. See the [Symbol logos](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend#symbol-logos) section of the Legend documentation for more details on the feature.
|
||||||
|
- **Fixed ordering of symbol logos.** Fixed an issue where symbol logos with two URLs defined in [`logo_urls`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#logo_urls) were displayed in an inconsistent order. The order has been corrected on the chart legend and within the Account Manager table.
|
||||||
|
|
||||||
|
## Version 28.2.0
|
||||||
|
|
||||||
|
*Date: Tue Oct 01 2024*
|
||||||
|
|
||||||
|
**New Features**
|
||||||
|
|
||||||
|
- **Added `Rank Correlation Index` indicator.**
|
||||||
|
- **Support building seconds bars from ticks.** Trading Platform now supports building seconds bars from ticks for symbols configured to support it. Compatible symbols must set the [`build_seconds_from_ticks`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#build_seconds_from_ticks) flag to `true`. Additionally, [`has_seconds`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_seconds) and [`has_ticks`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_ticks) must be `true`, and [`seconds_multipliers`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#seconds_multipliers) must be an empty array or only contain multipliers that the datafeed provides itself. `Trading Platform Only`
|
||||||
|
- **Sped up sorting animation in the Account Manager.** Raised by [#8760](https://github.com/tradingview/charting_library/issues/8760) `Trading Platform Only`
|
||||||
|
|
||||||
|
**Improvements**
|
||||||
|
|
||||||
|
- **Added an option to customize the default Volume MA calculation in the Volume indicator.** By default, the Volume MA, optionally plotted in the Volume indicator, used the SMA calculation. We have now introduced two additional options: EMA and WMA.
|
||||||
|
- **Added new event to `SubscribeEventsMap`.** The [`timeframe_interval`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap#timeframe_interval) event is triggered when the one of the bottom left intervals is selected or the [`setTimeFrame`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#settimeframe) API is used.
|
||||||
|
- **Added a symbol change to MACD indicator.** It is now possible to change the targeted symbol when plotting MACD indicator without using the main series.
|
||||||
|
|
||||||
## Version 28.1.0
|
## Version 28.1.0
|
||||||
|
|
||||||
*Date: Wed Sep 04 2024*
|
*Date: Wed Sep 04 2024*
|
||||||
@@ -52,7 +622,7 @@ If you want to retrieve the current state of the Account Manager please use [`ge
|
|||||||
|
|
||||||
These methods will be removed from the Advanced Charts library in the next major version.
|
These methods will be removed from the Advanced Charts library in the next major version.
|
||||||
However, they will still be available in Trading Platform.
|
However, they will still be available in Trading Platform.
|
||||||
- **Make `cancelOrders` optional.** The [`cancelOrders`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerWithoutRealtime#cancelOrders) method is marked as optional because the library calls it only for the [Depth of Market](https://www.tradingview.com/charting-library-docs/latest/trading_terminal#depth-of-market) widget. `Trading Platform Only`
|
- **Make `cancelOrders` optional.** The [`cancelOrders`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerWithoutRealtime#cancelorders) method is marked as optional because the library calls it only for the [Depth of Market](https://www.tradingview.com/charting-library-docs/latest/trading_terminal#depth-of-market) widget. `Trading Platform Only`
|
||||||
- **Removed the `calculatePLUsingLast` flag.** The `calculatePLUsingLast` [broker configuration flag](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/trading-features-configuration) has been removed. `Trading Platform Only`
|
- **Removed the `calculatePLUsingLast` flag.** The `calculatePLUsingLast` [broker configuration flag](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/trading-features-configuration) has been removed. `Trading Platform Only`
|
||||||
- **Symbol search dialog behavior.** Previously, when users pressed _Enter_ in the [_Symbol Search_](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Symbol-Search) dialog, they could enter arbitrary input directly. This input was passed to the datafeed for resolution and loading, regardless of whether the input matched any search results.<br />
|
- **Symbol search dialog behavior.** Previously, when users pressed _Enter_ in the [_Symbol Search_](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Symbol-Search) dialog, they could enter arbitrary input directly. This input was passed to the datafeed for resolution and loading, regardless of whether the input matched any search results.<br />
|
||||||
Now, pressing _Enter_ selects the top search result unless the user has explicitly chosen another item. If there are no search results, pressing _Enter_ will have no effect. You can enable the [`allow_arbitrary_symbol_search_input`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#allow_arbitrary_symbol_search_input) featureset to use the old behavior.
|
Now, pressing _Enter_ selects the top search result unless the user has explicitly chosen another item. If there are no search results, pressing _Enter_ will have no effect. You can enable the [`allow_arbitrary_symbol_search_input`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#allow_arbitrary_symbol_search_input) featureset to use the old behavior.
|
||||||
@@ -86,7 +656,7 @@ To display Volume Candles, select the corresponding option in the drop-down menu
|
|||||||
- **Changed `const enum` to `enum` in the library type declarations.** This change allows you to import enums from the library in a TypeScript environment with the [`isolatedModules`](https://www.typescriptlang.org/tsconfig/#isolatedModules) option enabled, such as when using Vite or similar tools.
|
- **Changed `const enum` to `enum` in the library type declarations.** This change allows you to import enums from the library in a TypeScript environment with the [`isolatedModules`](https://www.typescriptlang.org/tsconfig/#isolatedModules) option enabled, such as when using Vite or similar tools.
|
||||||
- **Added the `hideStudiesFromLegend` option to `ClientSnapshotOptions`.** When `hideStudiesFromLegend` is set to true, the legend within the generated screenshots won't contain any studies applied to the chart.
|
- **Added the `hideStudiesFromLegend` option to `ClientSnapshotOptions`.** When `hideStudiesFromLegend` is set to true, the legend within the generated screenshots won't contain any studies applied to the chart.
|
||||||
- **Exposed `connectionStatusUpdate` from `IBrokerConnectionAdapterHost`.** An existing [`connectionStatusUpdate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#connectionstatusupdate) API has been exposed for [`IBrokerConnectionAdapterHost`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) to help reflect connection status changes throughout the application lifecycle. `Trading Platform Only`
|
- **Exposed `connectionStatusUpdate` from `IBrokerConnectionAdapterHost`.** An existing [`connectionStatusUpdate`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost#connectionstatusupdate) API has been exposed for [`IBrokerConnectionAdapterHost`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IBrokerConnectionAdapterHost) to help reflect connection status changes throughout the application lifecycle. `Trading Platform Only`
|
||||||
- **New keyboard shortcuts.** The following [shortcuts](https://www.tradingview.com/charting-library-docs/latest/getting_started/Shortcuts) were added:
|
- **New keyboard shortcuts.** The following [shortcuts](https://www.tradingview.com/charting-library-docs/latest/configuration/Shortcuts) were added:
|
||||||
- _Shift_ + _Mouse wheel_ — scroll the chart horizontally
|
- _Shift_ + _Mouse wheel_ — scroll the chart horizontally
|
||||||
- _Shift_ + _Alt_ + _B_ — place limit order to buy
|
- _Shift_ + _Alt_ + _B_ — place limit order to buy
|
||||||
- _Shift_ + _Alt_ + _S_ — place limit order to sell
|
- _Shift_ + _Alt_ + _S_ — place limit order to sell
|
||||||
@@ -146,7 +716,7 @@ have been added or updated:
|
|||||||
- Updated the types for `paneProperties.*`.
|
- Updated the types for `paneProperties.*`.
|
||||||
- Added overrides that affect Trading Platform features (`tradingProperties.*`).
|
- Added overrides that affect Trading Platform features (`tradingProperties.*`).
|
||||||
- **New articles.** Explore our latest articles:
|
- **New articles.** Explore our latest articles:
|
||||||
- [How to create a custom indicator](https://www.tradingview.com/charting-library-docs/latest/tutorials/create-custom-indicator) — a step-by-step tutorial that demonstrates the Moving Average implementation.
|
- [How to create a custom indicator](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/create-custom-indicator) — a step-by-step tutorial that demonstrates the Moving Average implementation.
|
||||||
- [Custom indicators. Inputs](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo/Custom-Studies-Inputs) — an overview of how to specify and manage input parameters for a custom indicator.
|
- [Custom indicators. Inputs](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo/Custom-Studies-Inputs) — an overview of how to specify and manage input parameters for a custom indicator.
|
||||||
- [Authentication](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/authentication) — an article that outlines possible authentication approaches. `Trading Platform Only`
|
- [Authentication](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/authentication) — an article that outlines possible authentication approaches. `Trading Platform Only`
|
||||||
|
|
||||||
@@ -165,11 +735,11 @@ have been added or updated:
|
|||||||
**Improvements**
|
**Improvements**
|
||||||
|
|
||||||
- **Update the Anchored AVWAP drawing.** Add bands settings to the Anchored VWAP drawing.
|
- **Update the Anchored AVWAP drawing.** Add bands settings to the Anchored VWAP drawing.
|
||||||
- **Subscribe to widget bar visibility events.** A new [`study_event`](../api/interfaces/Charting_Library.SubscribeEventsMap.md#study_event) type was added: `widgetbar_visibility_changed`. It returns the visibility state of the widget bar.
|
- **Subscribe to widget bar visibility events.** A new [`study_event`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap.md#study_event) type was added: `widgetbar_visibility_changed`. It returns the visibility state of the widget bar.
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
|
|
||||||
- **Fixed a bug in the Market Status pop-up.** [Corrections](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Extended-Sessions#corrections-for-extended-sessions) specified for the extended session in the [`session-correction`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySubsessionInfo#session-correction) properties were not displayed in the _Market Status_ pop-up window.
|
- **Fixed a bug in the Market Status pop-up.** [Corrections](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Extended-Sessions#corrections-for-extended-sessions) specified for the extended session in the [`session-correction`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySubsessionInfo#session-correction) properties were not displayed in the _Market Status_ pop-up window.
|
||||||
|
|
||||||
## Version 27.004
|
## Version 27.004
|
||||||
|
|
||||||
@@ -198,7 +768,7 @@ Fixes [#8413](https://github.com/tradingview/charting_library/issues/8413) [#832
|
|||||||
**Documentation**
|
**Documentation**
|
||||||
|
|
||||||
- **New User accounts article.** Refer to [User accounts](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager/user-accounts) for information on how to manage user accounts in the [Account Manager](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager).
|
- **New User accounts article.** Refer to [User accounts](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager/user-accounts) for information on how to manage user accounts in the [Account Manager](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager).
|
||||||
- **Session documentation updates.** The [Symbology](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology#session) and [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Extended-Sessions) articles now include more information on how to specify sessions and corrections for them.
|
- **Session documentation updates.** The [Symbology](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology#session) and [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/time-and-sessions/Extended-Sessions) articles now include more information on how to specify sessions and corrections for them.
|
||||||
- **New Save user settings article.** Refer to the [Save user settings](https://www.tradingview.com/charting-library-docs/latest/saving_loading/user-settings) article for information on how to store user settings.
|
- **New Save user settings article.** Refer to the [Save user settings](https://www.tradingview.com/charting-library-docs/latest/saving_loading/user-settings) article for information on how to store user settings.
|
||||||
- **Updated Watchlist article.** Explore our latest [Watchlist](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/Watch-List) article that describes how to customize and handle the watchlist's data.
|
- **Updated Watchlist article.** Explore our latest [Watchlist](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/Watch-List) article that describes how to customize and handle the watchlist's data.
|
||||||
|
|
||||||
@@ -212,12 +782,12 @@ Fixes [#8413](https://github.com/tradingview/charting_library/issues/8413) [#832
|
|||||||
- **Added the unloadUnusedCharts method.** The [`unloadUnusedCharts`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#unloadunusedcharts) method deletes non-visible charts from a multiple-chart layout. Use this method to
|
- **Added the unloadUnusedCharts method.** The [`unloadUnusedCharts`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#unloadunusedcharts) method deletes non-visible charts from a multiple-chart layout. Use this method to
|
||||||
prevent the library's inherent behavior to restore previously displayed charts instead of creating new
|
prevent the library's inherent behavior to restore previously displayed charts instead of creating new
|
||||||
charts when changing layouts. `Trading Platform Only`
|
charts when changing layouts. `Trading Platform Only`
|
||||||
- **Added a new type that reflects the ID of the created indicator.** A new [`study_event`](../api/interfaces/Charting_Library.SubscribeEventsMap.md#study_event) type was added: `create`. It returns the `id` of the newly created indicator.
|
- **Added a new type that reflects the ID of the created indicator.** A new [`study_event`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap.md#study_event) type was added: `create`. It returns the `id` of the newly created indicator.
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
|
|
||||||
- **Displaying volume indicator on chart load when visible_plots_set is not specified.** The chart will now correctly display the volume indicator if the `create_volume_indicator_by_default` featureset is enabled even if the symbols [LibrarySymbolInfo](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) doesn't specify the optional [`visible_plots_set`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#visible_plots_set) property.
|
- **Displaying volume indicator on chart load when visible_plots_set is not specified.** The chart will now correctly display the volume indicator if the `create_volume_indicator_by_default` featureset is enabled even if the symbols [LibrarySymbolInfo](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo) doesn't specify the optional [`visible_plots_set`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#visible_plots_set) property.
|
||||||
- **Prioritise widget constructor symbol over saved state.** The [`symbol`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol) property in the widget constructor will now have priority over symbols loaded from saved chart states when using [`saved_data`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#saved_data) or [`load_last_chart`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#load_last_chart). Fixes [#7922](https://github.com/tradingview/charting_library/issues/7922) [#8473](https://github.com/tradingview/charting_library/issues/8473) [#7926](https://github.com/tradingview/charting_library/issues/7926) [#8168](https://github.com/tradingview/charting_library/issues/8168)
|
- **Prioritise widget constructor symbol over saved state.** The [`symbol`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol) property in the widget constructor will now have priority over symbols loaded from saved chart states when using [`saved_data`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#saved_data) or [`load_last_chart`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#load_last_chart). Fixes [#7922](https://github.com/tradingview/charting_library/issues/7922) [#8473](https://github.com/tradingview/charting_library/issues/8473) [#7926](https://github.com/tradingview/charting_library/issues/7926) [#8168](https://github.com/tradingview/charting_library/issues/8168)
|
||||||
- **Fixed an issue where the time_frames description was ignored.**
|
- **Fixed an issue where the time_frames description was ignored.**
|
||||||
|
|
||||||
## Version 27.002
|
## Version 27.002
|
||||||
@@ -308,7 +878,7 @@ To make this option available in the _Chart Settings_ dialog, use the [`legend_l
|
|||||||
- Previously, 'Lagging span' was shifting both cloud and lagging lines. This should no longer apply as 'Leading Shift Periods' now handles the offset change for 'Lagging Span'.
|
- Previously, 'Lagging span' was shifting both cloud and lagging lines. This should no longer apply as 'Leading Shift Periods' now handles the offset change for 'Lagging Span'.
|
||||||
- **`BREAKING CHANGE` Inputs renaming for Stochastic indicator.** Inputs for the Stochastic indicator have been renamed for consistency across our products.
|
- **`BREAKING CHANGE` Inputs renaming for Stochastic indicator.** Inputs for the Stochastic indicator have been renamed for consistency across our products.
|
||||||
- **`BREAKING CHANGE` Broker API clean up.** `Trading Platform Only` The `positionDialogOptions` object has been removed from the Broker's Configuration. Please use the `getPositionDialogOptions` method to customize the Position dialog.
|
- **`BREAKING CHANGE` Broker API clean up.** `Trading Platform Only` The `positionDialogOptions` object has been removed from the Broker's Configuration. Please use the `getPositionDialogOptions` method to customize the Position dialog.
|
||||||
- **Added new keyboard navigation shortcut.** Starting from version [26.002](https://www.tradingview.com/charting-library-docs/latest/releases/release-notes#version-26002), the library supports a keyboard navigation activated via the _Alt/Opt_ + _Z_ shortcut. Now, you can change this default navigation shortcut to _Tab_. To do this, enable the new [`accessible_keyboard_shortcuts`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#accessible_keyboard_shortcuts) featureset. For more information, refer to [Keyboard navigation](https://www.tradingview.com/charting-library-docs/latest/getting_started/accessibility#keyboard-navigation).
|
- **Added new keyboard navigation shortcut.** Starting from version [26.002](https://www.tradingview.com/charting-library-docs/latest/releases/release-notes#version-26002), the library supports a keyboard navigation activated via the _Alt/Opt_ + _Z_ shortcut. Now, you can change this default navigation shortcut to _Tab_. To do this, enable the new [`accessible_keyboard_shortcuts`](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#accessible_keyboard_shortcuts) featureset. For more information, refer to [Keyboard navigation](https://www.tradingview.com/charting-library-docs/latest/configuration/accessibility#keyboard-navigation).
|
||||||
- **Added ability to cancel order dragging by pressing Esc.** If a user presses _Esc_ while dragging the order, the order will be returned to its initial position.
|
- **Added ability to cancel order dragging by pressing Esc.** If a user presses _Esc_ while dragging the order, the order will be returned to its initial position.
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
@@ -328,12 +898,12 @@ To make this option available in the _Chart Settings_ dialog, use the [`legend_l
|
|||||||
Explore our latest article on [customization precedence](https://www.tradingview.com/charting-library-docs/latest/customization/customization-precedence)
|
Explore our latest article on [customization precedence](https://www.tradingview.com/charting-library-docs/latest/customization/customization-precedence)
|
||||||
for a comprehensive understanding of customization methods/properties and the sequence in which they are applied.
|
for a comprehensive understanding of customization methods/properties and the sequence in which they are applied.
|
||||||
- **Order Ticket dialog article added.** Refer to [Order Ticket](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/order-ticket) to learn how to provide custom fields, enable an order preview, implement your custom Order Ticket, and more.
|
- **Order Ticket dialog article added.** Refer to [Order Ticket](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/order-ticket) to learn how to provide custom fields, enable an order preview, implement your custom Order Ticket, and more.
|
||||||
- **New how-to guide on metainfo.** Explore our latest [guide](https://www.tradingview.com/charting-library-docs/latest/tutorials/create-custom-indicator/metainfo-implementation) on how to implement the `metainfo` field when you create a custom indicator. For more information about custom indicators and `metainfo`, refer to the updated [Custom indicators](https://www.tradingview.com/charting-library-docs/latest/custom_studies) and [Metainfo](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo) articles.
|
- **New how-to guide on metainfo.** Explore our latest [guide](https://www.tradingview.com/charting-library-docs/latest/tutorials/how-to-guides/create-custom-indicator/metainfo-implementation) on how to implement the `metainfo` field when you create a custom indicator. For more information about custom indicators and `metainfo`, refer to the updated [Custom indicators](https://www.tradingview.com/charting-library-docs/latest/custom_studies) and [Metainfo](https://www.tradingview.com/charting-library-docs/latest/custom_studies/metainfo) articles.
|
||||||
- **Bracket orders article added.** Explore our latest article on [bracket orders](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/brackets) in Trading Platform.
|
- **Bracket orders article added.** Explore our latest article on [bracket orders](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading-concepts/brackets) in Trading Platform.
|
||||||
- **Account Manager article added.** Refer to [Account Manager](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager) for more information on creating pages, customizing columns, and configuring the Account Manager behavior.
|
- **Account Manager article added.** Refer to [Account Manager](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/account-manager) for more information on creating pages, customizing columns, and configuring the Account Manager behavior.
|
||||||
- **Accessibility article added.** Refer to the new [Accessibility](https://www.tradingview.com/charting-library-docs/latest/getting_started/accessibility) article for information about accessibility features that the library includes.
|
- **Accessibility article added.** Refer to the new [Accessibility](https://www.tradingview.com/charting-library-docs/latest/configuration/accessibility) article for information about accessibility features that the library includes.
|
||||||
- **Other documentation updates.** The new documentation version includes:
|
- **Other documentation updates.** The new documentation version includes:
|
||||||
- Updated [Resolution](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution) and [Price Scale](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale) articles.
|
- Updated [Resolution](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Resolution) and [Price Scale](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale) articles.
|
||||||
- A full list of overrides for built-in indicators. Refer to the [Indicator Overrides](https://www.tradingview.com/charting-library-docs/latest/customization/overrides/indicator-overrides#list-of-overrides) article for information.
|
- A full list of overrides for built-in indicators. Refer to the [Indicator Overrides](https://www.tradingview.com/charting-library-docs/latest/customization/overrides/indicator-overrides#list-of-overrides) article for information.
|
||||||
|
|
||||||
**Other**
|
**Other**
|
||||||
@@ -396,8 +966,8 @@ and IPositionLineAdapter
|
|||||||
interfaces now support setting the unit to `'pixel'`.
|
interfaces now support setting the unit to `'pixel'`.
|
||||||
- Additionally, when using pixel unit, you can specify a negative number to
|
- Additionally, when using pixel unit, you can specify a negative number to
|
||||||
position from the left edge of the chart instead.
|
position from the left edge of the chart instead.
|
||||||
- **Added keyboard navigation.** Keyboard navigation (activated via alt/opt + z keyboard shortcut) and many other accessability improvements have been added to the library.
|
- **Added keyboard navigation.** Keyboard navigation (activated via alt/opt + z keyboard shortcut) and many other accessibility improvements have been added to the library.
|
||||||
- A featureset [accessibility](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets#accessibility) (on by default) has been added to control this behaviour.
|
- A featureset `accessibility` (on by default) has been added to control this behaviour.
|
||||||
- **Menu name is provided to items_processor (context menu API).** [items_processor](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ContextMenuOptions#items_processor) within the [context_menu](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#context_menu) API now includes details about the name of menu, and the ids of the related item (such as the series, drawing, study, order, or position).
|
- **Menu name is provided to items_processor (context menu API).** [items_processor](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ContextMenuOptions#items_processor) within the [context_menu](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#context_menu) API now includes details about the name of menu, and the ids of the related item (such as the series, drawing, study, order, or position).
|
||||||
- **Support more kinds of extended sessions.** The library now supports specifying only one of the postmarket or premarket sessions without the other.
|
- **Support more kinds of extended sessions.** The library now supports specifying only one of the postmarket or premarket sessions without the other.
|
||||||
|
|
||||||
@@ -464,7 +1034,7 @@ interfaces now support setting the unit to `'pixel'`.
|
|||||||
|
|
||||||
- **Fixed a bug where on some DPR there was no separator between the right widget panel and the order panel.** Now the separator line is always visible.
|
- **Fixed a bug where on some DPR there was no separator between the right widget panel and the order panel.** Now the separator line is always visible.
|
||||||
- **No bracket settings in chart settings.** Bracket settings were added to the Chart settings in the Trading tab.
|
- **No bracket settings in chart settings.** Bracket settings were added to the Chart settings in the Trading tab.
|
||||||
- **Symbol logos within the Legend and Account Manager.** Symbol logos can now be displayed within the [Legend](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend#displaying-logos-within-the-legend) and the Account Manager panel (`Trading Platform Only`) if the `show_symbol_logos` featureset is enabled.
|
- **Symbol logos within the Legend and Account Manager.** Symbol logos can now be displayed within the [Legend](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Legend#symbol-logos) and the Account Manager panel (`Trading Platform Only`) if the `show_symbol_logos` featureset is enabled.
|
||||||
- `show_symbol_logo_in_legend` featureset can be disabled to hide the logos within the legend.
|
- `show_symbol_logo_in_legend` featureset can be disabled to hide the logos within the legend.
|
||||||
- `show_symbol_logo_for_compare_studies` featureset can be disabled to hide the logos within the legend for compare overlay studies.
|
- `show_symbol_logo_for_compare_studies` featureset can be disabled to hide the logos within the legend for compare overlay studies.
|
||||||
- `show_symbol_logo_in_account_manager` featureset can be disabled to hide the logos within the Account Manager panel (`Trading Platform Only`).
|
- `show_symbol_logo_in_account_manager` featureset can be disabled to hide the logos within the Account Manager panel (`Trading Platform Only`).
|
||||||
@@ -615,7 +1185,7 @@ Enabling this new `always_show_legend_values_on_mobile` featureset allows you to
|
|||||||
indicator name. Favorited indicators will appear at the top of the indicator
|
indicator name. Favorited indicators will appear at the top of the indicator
|
||||||
list.
|
list.
|
||||||
- The `items_favoriting` featureset should be enabled. [more info](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets)
|
- The `items_favoriting` featureset should be enabled. [more info](https://www.tradingview.com/charting-library-docs/latest/customization/Featuresets)
|
||||||
- **Adding two featuresets to hide the right_toolbar or its tabs.** There are 2 new featuresets `hide_right_toolbar` & `hide_right_toolbar_tabs` plus an additional WidgetBar API [changeWidgetBarVisibility](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IWidgetbarApi#changeWidgetBarVisibility) to control the right toolbar.
|
- **Adding two featuresets to hide the right_toolbar or its tabs.** There are 2 new featuresets `hide_right_toolbar` & `hide_right_toolbar_tabs` plus an additional WidgetBar API [changeWidgetBarVisibility](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IWidgetbarApi#changewidgetbarvisibility) to control the right toolbar.
|
||||||
- `hide_right_toolbar` allows you to instantiate the toolbar without showing it in the UI.
|
- `hide_right_toolbar` allows you to instantiate the toolbar without showing it in the UI.
|
||||||
- `hide_right_toolbar_tabs` will do the same with the exception of not showing tabs when displaying the right toolbar.
|
- `hide_right_toolbar_tabs` will do the same with the exception of not showing tabs when displaying the right toolbar.
|
||||||
|
|
||||||
@@ -638,7 +1208,7 @@ list.
|
|||||||
|
|
||||||
**Documentation**
|
**Documentation**
|
||||||
|
|
||||||
- **New Key Features article.** We have added the [Key Features](https://www.tradingview.com/charting-library-docs/latest/getting_started/Key-Features) article that lists features supported/unsupported in Advanced Charts and Trading Platform.
|
- **New Key Features article.** We have added the [Key Features](https://www.tradingview.com/charting-library-docs/latest/introduction#key-features) article that lists features supported/unsupported in Advanced Charts and Trading Platform.
|
||||||
- **How to connect data via Datafeed API.** We have added a new [tutorial on connecting data via Datafeed API](https://www.tradingview.com/charting-library-docs/latest/tutorials/implement_datafeed_tutorial/).
|
- **How to connect data via Datafeed API.** We have added a new [tutorial on connecting data via Datafeed API](https://www.tradingview.com/charting-library-docs/latest/tutorials/implement_datafeed_tutorial/).
|
||||||
It will help you implement datafeed and real-time data streaming to Advanced Charts step-by-step.
|
It will help you implement datafeed and real-time data streaming to Advanced Charts step-by-step.
|
||||||
|
|
||||||
@@ -665,7 +1235,7 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
- Border width can be set using `borderWidth` and `hoveredBorderWidth`. See [Mark](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.Mark)
|
- Border width can be set using `borderWidth` and `hoveredBorderWidth`. See [Mark](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.Mark)
|
||||||
- **Drawing tools favorites can now be defined within widget constructor.** Drawing tools can now be defined as favorites using the [`favorites`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#favorites) property of the widget constructor options. See [Favorites.drawingTools](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.Favorites#drawingtools) for more information.
|
- **Drawing tools favorites can now be defined within widget constructor.** Drawing tools can now be defined as favorites using the [`favorites`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#favorites) property of the widget constructor options. See [Favorites.drawingTools](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.Favorites#drawingtools) for more information.
|
||||||
- **Context menu API can now be used within the Watchlist.** `watchlist_context_menu` featureset is enabled by default. See [onContextMenu](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#oncontextmenu) for more details.
|
- **Context menu API can now be used within the Watchlist.** `watchlist_context_menu` featureset is enabled by default. See [onContextMenu](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartingLibraryWidget#oncontextmenu) for more details.
|
||||||
- **Improved typings within package.json.** The `package.json` bundled with the library has been improved to support newer versions of node, and offer improved typings. See [NPM](https://www.tradingview.com/charting-library-docs/latest/getting_started/NPM) for more details.
|
- **Improved typings within package.json.** The `package.json` bundled with the library has been improved to support newer versions of node, and offer improved typings.
|
||||||
- **Price scale now supports numbers with more than 10 decimal points.**
|
- **Price scale now supports numbers with more than 10 decimal points.**
|
||||||
- **Timezone data has been updated.**
|
- **Timezone data has been updated.**
|
||||||
|
|
||||||
@@ -677,25 +1247,25 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
|
|
||||||
**Documentation**
|
**Documentation**
|
||||||
|
|
||||||
- **Add FAQ about unsubscribeBars delay.** Added [a new FAQ](https://www.tradingview.com/charting-library-docs/latest/getting_started/Frequently-Asked-Questions) about [`unsubscribeBars`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/required-methods#unsubscribebars) being called with a delay.
|
- **Add FAQ about unsubscribeBars delay.** Added [a new FAQ](https://www.tradingview.com/charting-library-docs/latest/resources/Frequently-Asked-Questions) about [`unsubscribeBars`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/datafeed-api/required-methods#unsubscribebars) being called with a delay.
|
||||||
|
|
||||||
**Other**
|
**Other**
|
||||||
|
|
||||||
- **Added symbol information to datafeed error messages.** Added symbol information to realtime subscription error messages to improve the developer experience.
|
- **Added symbol information to datafeed error messages.** Added symbol information to realtime subscription error messages to improve the developer experience.
|
||||||
- **Updated localisation list.** The [list of support localisations](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Localization) has been updated. Additionally, the chart will now fallback to english (with a console warning) if an unsupported locale is specified in the widget constructor options.
|
- **Updated localisation list.** The [list of support localisations](https://www.tradingview.com/charting-library-docs/latest/configuration/Localization) has been updated. Additionally, the chart will now fallback to english (with a console warning) if an unsupported locale is specified in the widget constructor options.
|
||||||
|
|
||||||
## Version 24.002
|
## Version 24.002
|
||||||
|
|
||||||
**New Features**
|
**New Features**
|
||||||
|
|
||||||
- **Added support for specifying custom timezones.**
|
- **Added support for specifying custom timezones.**
|
||||||
- Additional custom timezones can now be specified for use within the library. Please see the [Adding Custom Timezones](../ui_elements/timezones#adding-custom-time-zones) section within the Timezones page.
|
- Additional custom timezones can now be specified for use within the library. Please see the [Adding Custom Timezones](https://www.tradingview.com/charting-library-docs/latest/ui_elements/timezones#adding-custom-time-zones) section within the Timezones page.
|
||||||
- **Images within timescale marks.**
|
- **Images within timescale marks.**
|
||||||
- Timescale marks now support the rendering of images within the circular shape by specifying the `imageUrl` property. Please see the [TimescaleMark](../api/interfaces/Charting_Library.TimescaleMark) interface for more details.
|
- Timescale marks now support the rendering of images within the circular shape by specifying the `imageUrl` property. Please see the [TimescaleMark](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.TimescaleMark) interface for more details.
|
||||||
- **Support different margin rates for different order types.** [6607](https://github.com/tradingview/charting_library/issues/6607)
|
- **Support different margin rates for different order types.** [6607](https://github.com/tradingview/charting_library/issues/6607)
|
||||||
- `marginRate` has been deprecated
|
- `marginRate` has been deprecated
|
||||||
- A [`supportLeverageButton`](../api/interfaces/Broker.BrokerConfigFlags#supportleveragebutton) flag that displays a leverage button has been added to the Broker configuration.
|
- A [`supportLeverageButton`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.BrokerConfigFlags#supportleveragebutton) flag that displays a leverage button has been added to the Broker configuration.
|
||||||
- The [`supportLeverage`](../api/interfaces/Broker.BrokerConfigFlags#supportleverage) flag enables leverage calculation by getting information from `leverageInfo`.
|
- The [`supportLeverage`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.BrokerConfigFlags#supportleverage) flag enables leverage calculation by getting information from `leverageInfo`.
|
||||||
|
|
||||||
**Enhancements**
|
**Enhancements**
|
||||||
|
|
||||||
@@ -703,7 +1273,7 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
|
|
||||||
**Bug fixes**
|
**Bug fixes**
|
||||||
|
|
||||||
- [`setUserEditEnabled`](../api/interfaces/Charting_Library.IStudyApi#setusereditenabled) does not hide 3 dots in Legend. [6765](https://github.com/tradingview/charting_library/issues/6765) | [6165](https://github.com/tradingview/charting_library/issues/6165)
|
- [`setUserEditEnabled`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IStudyApi#setusereditenabled) does not hide 3 dots in Legend. [6765](https://github.com/tradingview/charting_library/issues/6765) | [6165](https://github.com/tradingview/charting_library/issues/6165)
|
||||||
|
|
||||||
widget.activeChart().getAllStudies().forEach(({ id }) => {
|
widget.activeChart().getAllStudies().forEach(({ id }) => {
|
||||||
console.log(id);
|
console.log(id);
|
||||||
@@ -716,7 +1286,7 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
- `right_toolbar` featureset didn't have a default `on` value.
|
- `right_toolbar` featureset didn't have a default `on` value.
|
||||||
- Empty time frames at the bottom toolbar if `data_status: endofday`
|
- Empty time frames at the bottom toolbar if `data_status: endofday`
|
||||||
- Export data doesn’t include projected data.
|
- Export data doesn’t include projected data.
|
||||||
- Projected data can be included by setting [`includeOffsetStudyValues`](../api/interfaces/Charting_Library.ExportDataOptions#includeoffsetstudyvalues) to `true`.
|
- Projected data can be included by setting [`includeOffsetStudyValues`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ExportDataOptions#includeoffsetstudyvalues) to `true`.
|
||||||
- `await widget.activeChart().exportData({ includeOffsetStudyValues: true });`
|
- `await widget.activeChart().exportData({ includeOffsetStudyValues: true });`
|
||||||
- Highest PineJS.Std function doesn’t work correctly with negative numbers.
|
- Highest PineJS.Std function doesn’t work correctly with negative numbers.
|
||||||
- Missing types in bundled definition file. [7445](https://github.com/tradingview/charting_library/issues/7445) | [7446](https://github.com/tradingview/charting_library/issues/7446)
|
- Missing types in bundled definition file. [7445](https://github.com/tradingview/charting_library/issues/7445) | [7446](https://github.com/tradingview/charting_library/issues/7446)
|
||||||
@@ -725,15 +1295,15 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
|
|
||||||
**Documentation**
|
**Documentation**
|
||||||
|
|
||||||
- Added [migration guide](../trading_terminal/#how-to-migrate-from-charting-library) from TAC to CTP.
|
- Added [migration guide](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/#how-to-migrate-from-advanced-charts) from TAC to CTP.
|
||||||
- Added additional documentation for [Drawings](../ui_elements/drawings/).
|
- Added additional documentation for [Drawings](https://www.tradingview.com/charting-library-docs/latest/ui_elements/drawings/).
|
||||||
- Missing overrides in documentation. [7457](https://github.com/tradingview/charting_library/issues/7457)
|
- Missing overrides in documentation. [7457](https://github.com/tradingview/charting_library/issues/7457)
|
||||||
- Updated documentation for [Marks](../ui_elements/Marks).
|
- Updated documentation for [Marks](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Marks).
|
||||||
- Align ChartMetaInfo & ChartData.
|
- Align ChartMetaInfo & ChartData.
|
||||||
|
|
||||||
**Other**
|
**Other**
|
||||||
|
|
||||||
- Removed `Australia/ACT` from the list of [timezones](../ui_elements/timezones) within our documentation. Please use either the Sydney timezone or [specify your own custom timezone](../ui_elements/timezones#adding-custom-time-zones).
|
- Removed `Australia/ACT` from the list of [timezones](https://www.tradingview.com/charting-library-docs/latest/ui_elements/timezones) within our documentation. Please use either the Sydney timezone or [specify your own custom timezone](https://www.tradingview.com/charting-library-docs/latest/ui_elements/timezones#adding-custom-time-zones).
|
||||||
|
|
||||||
## Version 24.001
|
## Version 24.001
|
||||||
|
|
||||||
@@ -774,8 +1344,8 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
- `preset` Widget-Constructor parameter has been removed. Users can still use some featuresets to mimic the same behavior by disabling the following list:
|
- `preset` Widget-Constructor parameter has been removed. Users can still use some featuresets to mimic the same behavior by disabling the following list:
|
||||||
- `'left_toolbar', 'header_widget', 'timeframes_toolbar', 'edit_buttons_in_legend', 'context_menus', 'control_bar', 'border_around_the_chart'`
|
- `'left_toolbar', 'header_widget', 'timeframes_toolbar', 'edit_buttons_in_legend', 'context_menus', 'control_bar', 'border_around_the_chart'`
|
||||||
- `chart_style_hilo` featureset is now enabled by default. This adds the High-low option to chart style controls dropdown. This featureset has been available since 1.15 but was previously disabled by default.
|
- `chart_style_hilo` featureset is now enabled by default. This adds the High-low option to chart style controls dropdown. This featureset has been available since 1.15 but was previously disabled by default.
|
||||||
- Added typings for custom indicators. Typescript equivalents of our existing examples are available here: [Custom Studies Typescript Examples](../custom_studies/Custom-Studies-Examples).
|
- Added typings for custom indicators. Typescript equivalents of our existing examples are available here: [Custom Studies Typescript Examples](https://www.tradingview.com/charting-library-docs/latest/custom_studies/Custom-Studies-Examples).
|
||||||
- [`symbol_search_complete`](../api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol_search_complete) has changed. The function now takes an additional search result object parameter, and returns an additional human-friendly symbol name.
|
- [`symbol_search_complete`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.ChartingLibraryWidgetOptions#symbol_search_complete) has changed. The function now takes an additional search result object parameter, and returns an additional human-friendly symbol name.
|
||||||
|
|
||||||
**UI changes**
|
**UI changes**
|
||||||
|
|
||||||
@@ -793,8 +1363,8 @@ Please use [settings_adapter](https://www.tradingview.com/charting-library-docs/
|
|||||||
**Trading Platform**
|
**Trading Platform**
|
||||||
|
|
||||||
- Default formatter `textNoWrap` has been removed.
|
- Default formatter `textNoWrap` has been removed.
|
||||||
- `columnId` field of [SortingParameters](../api/interfaces/Broker.SortingParameters) has been renamed to `property`.
|
- `columnId` field of [SortingParameters](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.SortingParameters) has been renamed to `property`.
|
||||||
- Required `id` field has been added to [column description](../api/interfaces/Broker.AccountManagerColumnBase#id).
|
- Required `id` field has been added to [column description](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.AccountManagerColumnBase#id).
|
||||||
- Type of `formatter` field in [column description](../api/interfaces/Broker.AccountManagerColumnBase#formatter) has been changed to [StandardFormatterName | FormatterName](../api/enums/Charting_Library.StandardFormatterName).
|
- Type of `formatter` field in [column description](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.AccountManagerColumnBase#formatter) has been changed to [StandardFormatterName | FormatterName](https://www.tradingview.com/charting-library-docs/latest/api/enums/Charting_Library.StandardFormatterName).
|
||||||
- `property` field has been removed from `column description`. Use [dataFields](../api/interfaces/Broker.AccountManagerColumnBase#datafields) field instead.
|
- `property` field has been removed from `column description`. Use [dataFields](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.AccountManagerColumnBase#datafields) field instead.
|
||||||
- Type of `formatter` field in [SummaryField](../api/interfaces/Broker.AccountManagerSummaryField) has been changed to [StandardFormatterName](../api/enums/Charting_Library.StandardFormatterName).
|
- Type of `formatter` field in [SummaryField](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Broker.AccountManagerSummaryField) has been changed to [StandardFormatterName](https://www.tradingview.com/charting-library-docs/latest/api/enums/Charting_Library.StandardFormatterName).
|
||||||
|
|||||||
1
charting_library/bundles/1049.3418d3509b4f6a41c2eb.css
Normal file
1
charting_library/bundles/1049.3418d3509b4f6a41c2eb.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.button-tFul0OhX{cursor:default;-webkit-user-select:none;user-select:none}.button-children-tFul0OhX{display:block;overflow:hidden;padding:0 2px 0 6px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-tFul0OhX.hiddenArrow-tFul0OhX{padding-right:6px}.invisibleFocusHandler-tFul0OhX{height:0;opacity:0;pointer-events:none;width:0}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.button-tFul0OhX{cursor:default;-webkit-user-select:none;user-select:none}.button-children-tFul0OhX{display:block;overflow:hidden;padding:0 6px 0 2px;text-overflow:ellipsis;white-space:nowrap;width:100%}.button-children-tFul0OhX.hiddenArrow-tFul0OhX{padding-left:6px}.invisibleFocusHandler-tFul0OhX{height:0;opacity:0;pointer-events:none;width:0}
|
||||||
5
charting_library/bundles/1139.8df5074d2045042c47d5.js
Normal file
5
charting_library/bundles/1139.8df5074d2045042c47d5.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1139],{56708:e=>{e.exports={scrollWrap:"scrollWrap-FaOvTD2r"}},86388:e=>{e.exports={wrap:"wrap-vSb6C0Bj","wrap--horizontal":"wrap--horizontal-vSb6C0Bj",bar:"bar-vSb6C0Bj",barInner:"barInner-vSb6C0Bj","barInner--horizontal":"barInner--horizontal-vSb6C0Bj","bar--horizontal":"bar--horizontal-vSb6C0Bj"}},13528:(e,n,a)=>{"use strict";a.d(n,{AppContext:()=>t});const t=(0,a(79474).createContext)({isOnMobileAppPage:()=>!1,isRtl:!1,locale:"en",renderMode:"legacy"})},55971:(e,n,a)=>{"use strict";a.d(n,{useFocus:()=>o});var t=a(79474);function o(e,n){const[a,o]=(0,t.useState)(!1);(0,t.useEffect)((()=>{n&&a&&o(!1)}),[n,a]);const r={onFocus:(0,t.useCallback)((function(n){void 0!==e&&e.current!==n.target||o(!0)}),[e]),onBlur:(0,t.useCallback)((function(n){void 0!==e&&e.current!==n.target||o(!1)}),[e])};return[a,r]}},9774:(e,n,a)=>{"use strict";a.d(n,{useMergedRefs:()=>r});var t=a(79474),o=a(16455);function r(e){return(0,t.useCallback)((0,o.mergeRefs)(e),e)}},61366:(e,n,a)=>{"use strict";a.d(n,{useResizeObserver:()=>i});var t=a(79474),o=a(69947),r=a(73064);function i(e,n=[]){const{callback:a,ref:i=null}=function(e){return"function"==typeof e?{callback:e}:e}(e),s=(0,t.useRef)(null),l=(0,t.useRef)(a);l.current=a;const u=(0,r.useFunctionalRefObject)(i),c=(0,t.useCallback)((e=>{u(e),null!==s.current&&(s.current.disconnect(),null!==e&&s.current.observe(e))}),[u,s]);return(0,o.useIsomorphicLayoutEffect)((()=>(s.current=new ResizeObserver(((e,n)=>{l.current(e,n)})),u.current&&c(u.current),()=>{s.current?.disconnect()})),[u,...n]),c}},2328:(e,n,a)=>{"use strict";a.d(n,{formatTime:()=>_,isValidTimeOptionsDateStyle:()=>g,isValidTimeOptionsRange:()=>c});const t={calendar:"gregory",numberingSystem:"latn",hour12:!1},o={year:"numeric",month:"short",day:"numeric"},r={year:"numeric",month:"2-digit",day:"2-digit"},i={hour:"2-digit",minute:"2-digit",second:"2-digit"},s={timeZoneName:"shortOffset",weekday:"short"},l={year:0,month:1,day:2,hour:3,minute:4,second:5};const u=["year","month","day","hour","minute","second"];function c(e){return u.includes(e)}function g(e){return"numeric"===e||"short"===e}function _(e,n,a="year",u="day",c){const g=function(e="year",n="day",a={}){[e,n]=l[n]>l[e]?[e,n]:[n,e];const u={..."numeric"===a.dateStyle?r:o,...i},c=a.fractionalSecondDigits,g={...t,fractionalSecondDigits:void 0===c?void 0:Math.floor(Math.min(Math.max(1,c),3)),timeZone:a.timeZone,weekday:a.weekday?s.weekday:void 0,timeZoneName:a.timeZoneName?s.timeZoneName:void 0};return Object.keys(u).forEach((a=>{l[a]>=l[e]&&l[a]<=l[n]&&(g[a]=u[a])})),g}(a,u,c),_=new Intl.DateTimeFormat(n,g),d=new Date(e);return _.format(d)}},64483:(e,n,a)=>{"use strict";a.d(n,{createReactRoot:()=>g});var t=a(79474),o=a(29365),r=a(36334),i=a(13528),s=a(90141),l=a(81458);const u={iOs:"old",android:"new",old:"old",new:"new",any:"any"};function c(e){const[n]=(0,t.useState)({isOnMobileAppPage:e=>(0,s.isOnMobileAppPage)(u[e]),isRtl:(0,l.isRtl)(),locale:window.locale,renderMode:e.renderMode??"legacy"})
|
||||||
|
;return t.createElement(i.AppContext.Provider,{value:n},e.children)}function g(e,n,a="legacy"){const i=t.createElement(c,{renderMode:a},e);if("modern"===a){const e=(0,r.createRoot)(n);return e.render(i),{render(n){e.render(t.createElement(c,{renderMode:a},n))},unmount(){e.unmount()}}}return o.render(i,n),{render(e){o.render(t.createElement(c,{renderMode:a},e),n)},unmount(){o.unmountComponentAtNode(n)}}}},94646:(e,n,a)=>{"use strict";a.d(n,{getLocaleIso:()=>r})
|
||||||
|
;const t=JSON.parse('{"en":{"language":"en","language_name":"English","flag":"us","geoip_code":"us","iso":"en","iso_639_3":"eng","global_name":"English","is_only_recommended_tw_autorepost":true},"in":{"language":"en","language_name":"English (India)","flag":"in","geoip_code":"in","iso":"en","iso_639_3":"eng","global_name":"Indian"},"de_DE":{"language":"de","language_name":"Deutsch","flag":"de","geoip_code":"de","countries_with_this_language":["at","ch"],"iso":"de","iso_639_3":"deu","global_name":"German","is_in_european_union":true},"fr":{"language":"fr","language_name":"Français","flag":"fr","geoip_code":"fr","iso":"fr","iso_639_3":"fra","global_name":"French","is_in_european_union":true},"ca_ES":{"language":"ca_ES","language_name":"Català","flag":"es","geoip_code":"es","iso":"ca","iso_639_3":"cat","global_name":"Catalan"},"es":{"language":"es","language_name":"Español","flag":"es","geoip_code":"es","countries_with_this_language":["mx","ar","ve","cl","co","pe","uy","py","cr","gt","c","bo","pa","pr"],"iso":"es","iso_639_3":"spa","global_name":"Spanish","is_in_european_union":true},"it":{"language":"it","language_name":"Italiano","flag":"it","geoip_code":"it","iso":"it","iso_639_3":"ita","global_name":"Italian","is_in_european_union":true},"pl":{"language":"pl","language_name":"Polski","flag":"pl","geoip_code":"pl","iso":"pl","iso_639_3":"pol","global_name":"Polish","is_in_european_union":true},"hu_HU":{"language":"hu_HU","language_name":"Magyar","flag":"hu","geoip_code":"hu","iso":"hu","iso_639_3":"hun","global_name":"Hungarian","is_in_european_union":true},"sv_SE":{"language":"sv","language_name":"Svenska","flag":"se","geoip_code":"se","iso":"sv","iso_639_3":"swe","global_name":"Swedish","is_in_european_union":true},"tr":{"language":"tr","language_name":"Türkçe","flag":"tr","geoip_code":"tr","iso":"tr","iso_639_3":"tur","global_name":"Turkish","is_only_recommended_tw_autorepost":true},"ru":{"language":"ru","language_name":"Русский","flag":"ru","geoip_code":"ru","countries_with_this_language":["am","by","kg","kz","md","tj","tm","uz"],"iso":"ru","iso_639_3":"rus","global_name":"Russian","is_only_recommended_tw_autorepost":true},"br":{"language":"pt","language_name":"Português","flag":"br","geoip_code":"br","iso":"pt","iso_639_3":"por","global_name":"Portuguese"},"id":{"language":"id_ID","language_name":"Bahasa Indonesia","flag":"id","geoip_code":"id","iso":"id","iso_639_3":"ind","global_name":"Indonesian"},"ms_MY":{"language":"ms_MY","language_name":"Bahasa Melayu","flag":"my","geoip_code":"my","iso":"ms","iso_639_3":"zlm","global_name":"Malaysian"},"th_TH":{"language":"th","language_name":"ภาษาไทย","flag":"th","geoip_code":"th","iso":"th","iso_639_3":"tha","global_name":"Thai"},"vi_VN":{"language":"vi","language_name":"Tiếng Việt","flag":"vn","geoip_code":"vn","iso":"vi","iso_639_3":"vie","global_name":"Vietnamese"},"ja":{"language":"ja","language_name":"日本語","flag":"jp","geoip_code":"jp","iso":"ja","iso_639_3":"jpn","global_name":"Japanese"},"kr":{"language":"ko","language_name":"한국어","flag":"kr","geoip_code":"kr","iso":"ko","iso_639_3":"kor","global_name":"Korean"},"zh_CN":{"language":"zh","language_name":"简体中文","flag":"cn","geoip_code":"cn","countries_with_this_language":["zh"],"iso":"zh-Hans","iso_639_3":"cmn","global_name":"Chinese"},"zh_TW":{"language":"zh_TW","language_name":"繁體中文","flag":"tw","geoip_code":"tw","countries_with_this_language":["hk"],"iso":"zh-Hant","iso_639_3":"cmn","global_name":"Taiwanese"},"ar_AE":{"language":"ar","language_name":"العربية","flag":"sa","geoip_code":"sa","countries_with_this_language":["ae","bh","dj","dz","eg","er","iq","jo","km","kw","lb","ly","ma","mr","om","qa","sa","sd","so","sy","td","tn","ye"],"dir":"rtl","iso":"ar","iso_639_3":"arb","global_name":"Arabic"},"he_IL":{"language":"he_IL","language_name":"עברית","flag":"il","geoip_code":"il","dir":"rtl","iso":"he","iso_639_3":"heb","global_name":"Israeli"}}'),o=function(){
|
||||||
|
const e=document.getElementById("page-locale-links")?.textContent,n=e?JSON.parse(e):[];if(0===n.length)return t;const a={};return n.forEach((({locale:e,url:n})=>{a[e]={...t[e],href:n}})),a}();function r(e){return e=e||window.locale,o[e]?.iso}},98808:(e,n,a)=>{"use strict";a.d(n,{OverlayScrollContainer:()=>p});var t=a(79474),o=a(14487),r=a.n(o),i=a(81458),s=a(85842),l=a(85728);const u=a(86388);var c;!function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal",e[e.HorizontalRtl=2]="HorizontalRtl"}(c||(c={}));const g={0:{isHorizontal:!1,isNegative:!1,sizePropName:"height",minSizePropName:"minHeight",startPointPropName:"top",currentMousePointPropName:"clientY",progressBarTransform:"translateY"},1:{isHorizontal:!0,isNegative:!1,sizePropName:"width",minSizePropName:"minWidth",startPointPropName:"left",currentMousePointPropName:"clientX",progressBarTransform:"translateX"},2:{isHorizontal:!0,isNegative:!0,sizePropName:"width",minSizePropName:"minWidth",startPointPropName:"right",currentMousePointPropName:"clientX",progressBarTransform:"translateX"}},_=40;function d(e){const{size:n,scrollSize:a,clientSize:o,scrollProgress:i,onScrollProgressChange:c,scrollMode:d,theme:m=u,onDragStart:f,onDragEnd:h,minBarSize:p=_}=e,b=(0,t.useRef)(null),v=(0,t.useRef)(null),[y,N]=(0,t.useState)(!1),z=(0,t.useRef)(0),{isHorizontal:w,isNegative:P,sizePropName:S,minSizePropName:E,startPointPropName:k,currentMousePointPropName:C,progressBarTransform:M}=g[d];(0,t.useEffect)((()=>{const e=(0,s.ensureNotNull)(b.current).ownerDocument;return y?(f&&f(),e&&(e.addEventListener("mousemove",O),e.addEventListener("mouseup",W))):h&&h(),()=>{e&&(e.removeEventListener("mousemove",O),e.removeEventListener("mouseup",W))}}),[y]);const R=n/a||0,H=o*R||0,T=Math.max(H,p),D=(n-T)/(n-H),I=a-n,L=P?-I:0,B=P?0:I,j=x((0,l.clamp)(i,L,B))||0;return t.createElement("div",{ref:b,className:r()(m.wrap,w&&m["wrap--horizontal"]),style:{[S]:n},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const n=V(e.nativeEvent,(0,s.ensureNotNull)(b.current)),a=Math.sign(n),t=(0,s.ensureNotNull)(v.current).getBoundingClientRect();z.current=a*t[S]/2;let o=Math.abs(n)-Math.abs(z.current);const r=x(I);o<0?(o=0,z.current=n):o>r&&(o=r,z.current=n-a*r);c(A(a*o)),N(!0)}},t.createElement("div",{ref:v,className:r()(m.bar,w&&m["bar--horizontal"]),style:{[E]:p,[S]:T,transform:`${M}(${j}px)`},onMouseDown:function(e){e.preventDefault(),z.current=V(e.nativeEvent,(0,s.ensureNotNull)(v.current)),N(!0)}},t.createElement("div",{className:r()(m.barInner,w&&m["barInner--horizontal"])})));function O(e){const n=V(e,(0,s.ensureNotNull)(b.current))-z.current;c(A(n))}function W(){N(!1)}function V(e,n){const a=n.getBoundingClientRect()[k];return e[C]-a}function x(e){return e*R*D}function A(e){return e/R/D}}var m=a(53530),f=a(56708);const h=8;function p(e){const{reference:n,className:a,containerHeight:r=0,containerWidth:s=0,contentHeight:l=0,contentWidth:u=0,scrollPosTop:c=0,scrollPosLeft:g=0,onVerticalChange:_,onHorizontalChange:p,visible:b}=e,[v,y]=(0,
|
||||||
|
m.useHoverDeprecated)(),[N,z]=(0,t.useState)(!1),w=r<l,P=s<u,S=w&&P?h:0;return t.createElement("div",{...y,ref:n,className:o(a,f.scrollWrap),style:{visibility:b||v||N?"visible":"hidden"}},w&&t.createElement(d,{size:r-S,scrollSize:l-S,clientSize:r-S,scrollProgress:c,onScrollProgressChange:function(e){_&&_(e)},onDragStart:E,onDragEnd:k,scrollMode:0}),P&&t.createElement(d,{size:s-S,scrollSize:u-S,clientSize:s-S,scrollProgress:g,onScrollProgressChange:function(e){p&&p(e)},onDragStart:E,onDragEnd:k,scrollMode:(0,i.isRtl)()?2:1}));function E(){z(!0)}function k(){z(!1)}}},71515:(e,n,a)=>{"use strict";a.d(n,{useDimensions:()=>r});var t=a(79474),o=a(61366);function r(e){const[n,a]=(0,t.useState)(null),r=(0,t.useCallback)((([e])=>{const t=e.target.getBoundingClientRect();t.width===n?.width&&t.height===n.height||a(t)}),[n]);return[(0,o.useResizeObserver)({callback:r,ref:e}),n]}},56804:(e,n,a)=>{"use strict";a.d(n,{useOverlayScroll:()=>l});var t=a(79474),o=a(85842),r=a(53530),i=a(45958);const s={onMouseEnter:()=>{},onMouseLeave:()=>{}};function l(e,n=i.CheckMobile.any()){const a=(0,t.useRef)(null),l=e||(0,t.useRef)(null),[u,c]=(0,r.useHover)(),[g,_]=(0,t.useState)({reference:a,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){_((n=>({...n,scrollPosTop:e}))),(0,o.ensureNotNull)(l.current).scrollTop=e},onHorizontalChange:function(e){_((n=>({...n,scrollPosLeft:e}))),(0,o.ensureNotNull)(l.current).scrollLeft=e},visible:u}),d=(0,t.useCallback)((()=>{if(!l.current)return;const{clientHeight:e,scrollHeight:n,scrollTop:t,clientWidth:o,scrollWidth:r,scrollLeft:i}=l.current,s=a.current?a.current.offsetTop:0;_((a=>({...a,containerHeight:e-s,contentHeight:n-s,scrollPosTop:t,containerWidth:o,contentWidth:r,scrollPosLeft:i})))}),[]);function m(){_((e=>({...e,scrollPosTop:(0,o.ensureNotNull)(l.current).scrollTop,scrollPosLeft:(0,o.ensureNotNull)(l.current).scrollLeft})))}return(0,t.useEffect)((()=>{u&&d(),_((e=>({...e,visible:u})))}),[u]),(0,t.useEffect)((()=>{const e=l.current;return e&&e.addEventListener("scroll",m),()=>{e&&e.removeEventListener("scroll",m)}}),[l]),[g,n?s:c,l,d]}},57069:(e,n,a)=>{"use strict";a.d(n,{useWatchedValueReadonly:()=>r});var t=a(79474),o=a(69947);const r=(e,n=!1,a=[])=>{const r="watchedValue"in e?e.watchedValue:void 0,i="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[s,l]=(0,t.useState)(r?r.value():i);return(n?o.useIsomorphicLayoutEffect:t.useEffect)((()=>{if(r){l(r.value());const e=e=>l(e);return r.subscribe(e),()=>r.unsubscribe(e)}return()=>{}}),[r,...a]),s}}}]);
|
||||||
4
charting_library/bundles/1160.4abd2964867f34433fda.js
Normal file
4
charting_library/bundles/1160.4abd2964867f34433fda.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1160],{66740:e=>{e.exports={button:"button-PYEOTd6i",disabled:"disabled-PYEOTd6i",hidden:"hidden-PYEOTd6i",icon:"icon-PYEOTd6i",dropped:"dropped-PYEOTd6i"}},92318:e=>{e.exports={button:"button-D4RPB3ZC",iconOnly:"iconOnly-D4RPB3ZC",withStartSlot:"withStartSlot-D4RPB3ZC",withEndSlot:"withEndSlot-D4RPB3ZC",startSlotWrap:"startSlotWrap-D4RPB3ZC",endSlotWrap:"endSlotWrap-D4RPB3ZC",xsmall:"xsmall-D4RPB3ZC",small:"small-D4RPB3ZC",medium:"medium-D4RPB3ZC",large:"large-D4RPB3ZC",xlarge:"xlarge-D4RPB3ZC",content:"content-D4RPB3ZC",link:"link-D4RPB3ZC",blue:"blue-D4RPB3ZC",primary:"primary-D4RPB3ZC",secondary:"secondary-D4RPB3ZC",gray:"gray-D4RPB3ZC",green:"green-D4RPB3ZC",red:"red-D4RPB3ZC",black:"black-D4RPB3ZC",slot:"slot-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC",adjustPosition:"adjustPosition-D4RPB3ZC",firstRow:"firstRow-D4RPB3ZC",firstCol:"firstCol-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC",textWrap:"textWrap-D4RPB3ZC",multilineContent:"multilineContent-D4RPB3ZC",primaryText:"primaryText-D4RPB3ZC",secondaryText:"secondaryText-D4RPB3ZC"}},21353:e=>{e.exports={container:"container-WDZ0PRNh","container-xxsmall":"container-xxsmall-WDZ0PRNh","container-xsmall":"container-xsmall-WDZ0PRNh","container-small":"container-small-WDZ0PRNh","container-medium":"container-medium-WDZ0PRNh","container-large":"container-large-WDZ0PRNh","intent-default":"intent-default-WDZ0PRNh",focused:"focused-WDZ0PRNh",readonly:"readonly-WDZ0PRNh",disabled:"disabled-WDZ0PRNh","with-highlight":"with-highlight-WDZ0PRNh",grouped:"grouped-WDZ0PRNh","adjust-position":"adjust-position-WDZ0PRNh","first-row":"first-row-WDZ0PRNh","first-col":"first-col-WDZ0PRNh",stretch:"stretch-WDZ0PRNh","font-size-medium":"font-size-medium-WDZ0PRNh","font-size-large":"font-size-large-WDZ0PRNh","no-corner-top-left":"no-corner-top-left-WDZ0PRNh","no-corner-top-right":"no-corner-top-right-WDZ0PRNh","no-corner-bottom-right":"no-corner-bottom-right-WDZ0PRNh","no-corner-bottom-left":"no-corner-bottom-left-WDZ0PRNh","size-xxsmall":"size-xxsmall-WDZ0PRNh","size-xsmall":"size-xsmall-WDZ0PRNh","size-small":"size-small-WDZ0PRNh","size-medium":"size-medium-WDZ0PRNh","size-large":"size-large-WDZ0PRNh","intent-success":"intent-success-WDZ0PRNh","intent-warning":"intent-warning-WDZ0PRNh","intent-danger":"intent-danger-WDZ0PRNh","intent-primary":"intent-primary-WDZ0PRNh","border-none":"border-none-WDZ0PRNh","border-thin":"border-thin-WDZ0PRNh","border-thick":"border-thick-WDZ0PRNh",highlight:"highlight-WDZ0PRNh",shown:"shown-WDZ0PRNh"}},20853:e=>{e.exports={"inner-slot":"inner-slot-W53jtLjw",interactive:"interactive-W53jtLjw",icon:"icon-W53jtLjw","inner-middle-slot":"inner-middle-slot-W53jtLjw","before-slot":"before-slot-W53jtLjw","after-slot":"after-slot-W53jtLjw"}},12725:(e,t,n)=>{"use strict";var r,o,s
|
||||||
|
;function i(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function a(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function l(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}n.d(t,{Button:()=>m}),function(e){e.Primary="primary",e.Success="success",e.Default="default",e.Danger="danger"}(r||(r={})),function(e){e.Small="s",e.Medium="m",e.Large="l"}(o||(o={})),function(e){e.Default="default",e.Stroke="stroke"}(s||(s={}));var c=n(79474),u=n(63459);function d(e){const{intent:t,size:n,appearance:r,useFullWidth:o,icon:s,...c}=e;return{...c,color:a(t),size:l(n),variant:i(r),stretch:o}}function m(e){return c.createElement(u.SquareButton,{...d(e)})}},91965:(e,t,n)=>{"use strict";n.d(t,{Caret:()=>m,CaretButton:()=>p});var r=n(79474),o=n(14487),s=n.n(o),i=n(73457),a=n(43616),l=n.n(a),c=n(66740),u=n.n(c);function d(e){const{isDropped:t}=e;return r.createElement(i.Icon,{className:s()(u().icon,t&&u().dropped),icon:l()})}function m(e){const{className:t,disabled:n,isDropped:o}=e;return r.createElement("span",{className:s()(u().button,n&&u().disabled,t)},r.createElement(d,{isDropped:o}))}function p(e){const{className:t,tabIndex:n=-1,disabled:o,isDropped:i,...a}=e;return r.createElement("button",{...a,type:"button",tabIndex:n,disabled:o,className:s()(u().button,o&&u().disabled,t)},r.createElement(d,{isDropped:i}))}},63459:(e,t,n)=>{"use strict";n.d(t,{SquareButton:()=>D});var r=n(79474),o=n(14487),s=n.n(o),i=n(67440),a=n(92318),l=n.n(a);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text apply-common-tooltip";function u(e){const{size:t="medium",variant:n="primary",color:r="brand",stretch:o=!1,startSlot:a,endSlot:u,iconOnly:d=!1,className:m,isGrouped:p,cellState:h,disablePositionAdjustment:f=!1,primaryText:R,secondaryText:D,isAnchor:P=!1}=e,g="brand"===r?"black":r,Z=function(e){let t="";return 0!==e&&(1&e&&(t=s()(t,l()["no-corner-top-left"])),2&e&&(t=s()(t,l()["no-corner-top-right"])),4&e&&(t=s()(t,l()["no-corner-bottom-right"])),8&e&&(t=s()(t,l()["no-corner-bottom-left"]))),t}((0,i.getGroupCellRemoveRoundBorders)(h)),b=d&&(a||u);return s()(m,l().button,l()[t],l()[g],l()[n],o&&l().stretch,a&&l().withStartIcon,u&&l().withEndIcon,b&&l().iconOnly,Z,p&&l().grouped,p&&!f&&l().adjustPosition,p&&h.isTop&&l().firstRow,p&&h.isLeft&&l().firstCol,R&&D&&l().multilineContent,P&&l().link,c)}function d(e){const{startSlot:t,iconOnly:n,children:o,endSlot:i,primaryText:a,secondaryText:u}=e;if(t&&i&&n)return r.createElement("span",{className:s()(l().slot,l().startSlotWrap)},t);const d=n&&(t??i),m=!t&&!i&&!n&&!o&&a&&u;return r.createElement(r.Fragment,null,t&&r.createElement("span",{className:s()(l().slot,l().startSlotWrap)},t),o&&!d&&r.createElement("span",{className:l().content},o),i&&r.createElement("span",{className:s()(l().slot,l().endSlotWrap)},i),m&&!d&&function(e){return e.primaryText&&e.secondaryText&&r.createElement("div",{
|
||||||
|
className:s()(l().textWrap,c)},r.createElement("span",{className:l().primaryText}," ",e.primaryText," "),"string"==typeof e.secondaryText?r.createElement("span",{className:l().secondaryText}," ",e.secondaryText," "):r.createElement("span",{className:l().secondaryText},r.createElement("span",null,e.secondaryText.firstLine),r.createElement("span",null,e.secondaryText.secondLine)))}(e))}var m=n(27914),p=n(59794),h=n(40197);function f(e,t){return n=>{if(t)return n.preventDefault(),void n.stopPropagation();e?.(n)}}function R(e){const{className:t,color:n,variant:r,size:o,stretch:s,iconOnly:i,startSlot:a,endSlot:l,primaryText:c,secondaryText:u,...d}=e;return{...d,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function D(e){const{reference:t,tooltipText:n,disabled:o,onClick:s,onMouseOver:i,onMouseOut:a,onMouseDown:l,onMouseEnter:c,"aria-disabled":h,...D}=e,{isGrouped:P,cellState:g,disablePositionAdjustment:Z}=(0,r.useContext)(p.ControlGroupContext),b=u({...D,isGrouped:P,cellState:g,disablePositionAdjustment:Z}),C=n??(e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,m.getTextForTooltip)(e.children));return r.createElement("button",{...R(D),"aria-disabled":o||h,tabIndex:e.tabIndex??(o?-1:0),className:b,ref:t,onClick:f(s,o),onMouseDown:f(l,o),onMouseOver:f(i,o),onMouseOut:f(a,o),onMouseEnter:f(c,o),"data-overflow-tooltip-text":C},r.createElement(d,{...D}))}n(90741)},59794:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(79474).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},67440:(e,t,n)=>{"use strict";function r(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>r})},13621:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>g,InputClasses:()=>R});var r=n(79474),o=n(14487),s=n.n(o),i=n(85842),a=n(9774),l=n(40197),c=n(59794),u=n(67440);var d=n(21353),m=n.n(d);function p(e){let t="";return 0!==e&&(1&e&&(t=s()(t,m()["no-corner-top-left"])),2&e&&(t=s()(t,m()["no-corner-top-right"])),4&e&&(t=s()(t,m()["no-corner-bottom-right"])),8&e&&(t=s()(t,m()["no-corner-bottom-left"]))),t}function h(e,t,n,r){const{removeRoundBorder:o,className:i,intent:a="default",borderStyle:l="thin",size:c,highlight:d,disabled:h,readonly:f,stretch:R,noReadonlyStyles:D,isFocused:P}=e,g=p(o??(0,u.getGroupCellRemoveRoundBorders)(n));return s()(m().container,m()[`container-${c}`],m()[`intent-${a}`],m()[`border-${l}`],c&&m()[`size-${c}`],g,d&&m()["with-highlight"],h&&m().disabled,f&&!D&&m().readonly,P&&m().focused,R&&m().stretch,t&&m().grouped,!r&&m()["adjust-position"],n.isTop&&m()["first-row"],n.isLeft&&m()["first-col"],i)}function f(e,t,n){const{highlight:r,highlightRemoveRoundBorder:o}=e;if(!r)return m().highlight;const i=p(o??(0,u.getGroupCellRemoveRoundBorders)(t));return s()(m().highlight,m().shown,m()[`size-${n}`],i)}const R={FontSizeMedium:(0,i.ensureDefined)(m()["font-size-medium"]),FontSizeLarge:(0,i.ensureDefined)(m()["font-size-large"])},D={passive:!1}
|
||||||
|
;function P(e,t){const{style:n,id:o,role:s,onFocus:i,onBlur:u,onMouseOver:d,onMouseOut:m,onMouseDown:p,onMouseUp:R,onKeyDown:P,onClick:g,tabIndex:Z,startSlot:b,middleSlot:C,endSlot:y,onWheel:N,onWheelNoPassive:x=null,size:W,tag:B="span",type:w}=e,{isGrouped:S,cellState:v,disablePositionAdjustment:E=!1}=(0,r.useContext)(c.ControlGroupContext),T=function(e,t=null,n){const o=(0,r.useRef)(null),s=(0,r.useRef)(null),i=(0,r.useCallback)((()=>{if(null===o.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&o.current.addEventListener(e,t,n)}),[]),a=(0,r.useCallback)((()=>{if(null===o.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&o.current.removeEventListener(e,t,n)}),[]),l=(0,r.useCallback)((e=>{a(),o.current=e,i()}),[]);return(0,r.useEffect)((()=>(s.current=[e,t,n],i(),a)),[e,t,n]),l}("wheel",x,D),z=B;return r.createElement(z,{type:w,style:n,id:o,role:s,className:h(e,S,v,E),tabIndex:Z,ref:(0,a.useMergedRefs)([t,T]),onFocus:i,onBlur:u,onMouseOver:d,onMouseOut:m,onMouseDown:p,onMouseUp:R,onKeyDown:P,onClick:g,onWheel:N,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},b,C,y,r.createElement("span",{className:f(e,v,W)}))}P.displayName="ControlSkeleton";const g=r.forwardRef(P)},78484:(e,t,n)=>{"use strict";n.d(t,{AfterSlot:()=>d,EndSlot:()=>u,MiddleSlot:()=>c,StartSlot:()=>l});var r=n(79474),o=n(14487),s=n.n(o),i=n(20853),a=n.n(i);function l(e){const{className:t,interactive:n=!0,icon:o=!1,children:i}=e;return r.createElement("span",{className:s()(a()["inner-slot"],n&&a().interactive,o&&a().icon,t)},i)}function c(e){const{className:t,children:n}=e;return r.createElement("span",{className:s()(a()["inner-slot"],a()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:o=!1,children:i,dataQaId:l}=e;return r.createElement("span",{className:s()(a()["inner-slot"],n&&a().interactive,o&&a().icon,t),"data-qa-id":l},i)}function d(e){const{className:t,children:n,dataQaId:o}=e;return r.createElement("span",{className:s()(a()["after-slot"],t),"data-qa-id":o},n)}}}]);
|
||||||
12
charting_library/bundles/1178.9975e60ad194761f7f79.js
Normal file
12
charting_library/bundles/1178.9975e60ad194761f7f79.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1178],{73832:e=>{e.exports={favorite:"favorite-_FRQhM5Y",hovered:"hovered-_FRQhM5Y",disabled:"disabled-_FRQhM5Y",focused:"focused-_FRQhM5Y",active:"active-_FRQhM5Y",checked:"checked-_FRQhM5Y"}},28390:(e,o,t)=>{"use strict";t.d(o,{useActiveDescendant:()=>n});var l=t(79474),i=t(73064);function n(e,o=[]){const[t,n]=(0,l.useState)(!1),a=(0,i.useFunctionalRefObject)(e);return(0,l.useLayoutEffect)((()=>{const e=a.current;if(null===e)return;const o=e=>{switch(e.type){case"active-descendant-focus":n(!0);break;case"active-descendant-blur":n(!1)}};return e.addEventListener("active-descendant-focus",o),e.addEventListener("active-descendant-blur",o),()=>{e.removeEventListener("active-descendant-focus",o),e.removeEventListener("active-descendant-blur",o)}}),o),[a,t]}},92381:(e,o,t)=>{"use strict";t.d(o,{RemoveTitleType:()=>l,removeTitlesMap:()=>n});var l,i=t(91599);!function(e){e.Add="add",e.Remove="remove"}(l||(l={}));const n={[l.Add]:i.t(null,void 0,t(99529)),[l.Remove]:i.t(null,void 0,t(16590))}},62466:(e,o,t)=>{"use strict";t.d(o,{FavoriteButton:()=>d});var l=t(79474),i=t(14487),n=t.n(i),a=t(66334),r=t(92381),s=t(28390),c=t(72995),v=t(89658),h=t(73832);function d(e){const{className:o,isFilled:t,isActive:i,onClick:d,title:m,...u}=e,[g,L]=(0,s.useActiveDescendant)(null),T=m??(t?r.removeTitlesMap[r.RemoveTitleType.Remove]:r.removeTitlesMap[r.RemoveTitleType.Add]);return(0,l.useLayoutEffect)((()=>{const e=g.current;e instanceof HTMLElement&&T&&e.dispatchEvent(new CustomEvent("common-tooltip-update"))}),[T,g]),l.createElement(a.Icon,{...u,className:n()(h.favorite,"apply-common-tooltip",t&&h.checked,i&&h.active,L&&h.focused,o),onClick:d,icon:t?c:v,title:T,ariaLabel:T,ref:g})}},60714:(e,o,t)=>{"use strict";t.d(o,{focusFirstMenuItem:()=>v,handleAccessibleMenuFocus:()=>s,handleAccessibleMenuKeyDown:()=>c,queryMenuElements:()=>m});var l=t(78122),i=t(87918),n=t(23351),a=t(45280);const r=[37,39,38,40];function s(e,o){if(!e.target)return;const t=e.relatedTarget?.getAttribute("aria-activedescendant");if(e.relatedTarget!==o.current){const e=t&&document.getElementById(t);if(!e||e!==o.current)return}v(e.target)}function c(e){if(e.defaultPrevented)return;const o=(0,n.hashFromEvent)(e);if(!r.includes(o))return;const t=document.activeElement;if(!(document.activeElement instanceof HTMLElement))return;const a=m(e.currentTarget).sort(l.navigationOrderComparator);if(0===a.length)return;const s=document.activeElement.closest('[data-role="menuitem"]')||document.activeElement.parentElement?.querySelector('[data-role="menuitem"]');if(!(s instanceof HTMLElement))return;const c=a.indexOf(s);if(-1===c)return;const v=u(s),g=v.indexOf(document.activeElement),L=-1!==g,T=e=>{t&&(0,i.becomeSecondaryElement)(t),(0,i.becomeMainElement)(e),e.focus()};switch((0,l.mapKeyCodeToDirection)(o)){case"inlinePrev":if(!v.length)return;e.preventDefault(),T(0===g?a[c]:L?h(v,g,-1):v[v.length-1]);break;case"inlineNext":if(!v.length)return;e.preventDefault(),g===v.length-1?T(a[c]):T(L?h(v,g,1):v[0]);break
|
||||||
|
;case"blockPrev":{e.preventDefault();const o=h(a,c,-1);if(L){const e=d(o,g);T(e||o);break}T(o);break}case"blockNext":{e.preventDefault();const o=h(a,c,1);if(L){const e=d(o,g);T(e||o);break}T(o)}}}function v(e){const[o]=m(e);o&&((0,i.becomeMainElement)(o),o.focus())}function h(e,o,t){return e[(o+e.length+t)%e.length]}function d(e,o){const t=u(e);return t.length?t[(o+t.length)%t.length]:null}function m(e){return Array.from(e.querySelectorAll('[data-role="menuitem"]:not([disabled]):not([aria-disabled="true" i])')).filter((0,a.createScopedVisibleElementFilter)(e))}function u(e){return Array.from(e.querySelectorAll('[tabindex]:not([disabled]):not([aria-disabled="true" i])')).filter((0,a.createScopedVisibleElementFilter)(e))}},20360:(e,o,t)=>{"use strict";t.d(o,{drawingToolsIcons:()=>l});const l={SyncDrawing:t(30934),arrow:t(39669),cursor:t(61206),dot:t(84539),demonstration:t(62874),performance:"",drawginmode:t(22313),drawginmodeActive:t(31061),eraser:t(16962),group:t(6955),hideAllDrawings:t(1607),hideAllDrawingsActive:t(30252),hideAllIndicators:t(43381),hideAllIndicatorsActive:t(34491),hideAllDrawingTools:t(14798),hideAllDrawingToolsActive:t(49604),hideAllPositionsTools:t(56073),hideAllPositionsToolsActive:t(8099),lockAllDrawings:t(97941),lockAllDrawingsActive:t(86766),magnet:t(43220),heart:t(14746),smile:t(53874),sticker:t(27215),strongMagnet:t(5454),measure:t(26130),removeAllDrawingTools:t(62494),showObjectsTree:t(59204),zoom:t(28697),"zoom-out":t(78120)}},90454:(e,o,t)=>{"use strict";t.d(o,{isLineTool:()=>d,isLineToolOption:()=>m,isLineToolSwitcherOption:()=>u,isLineToolsGroupWithSections:()=>h,lineTools:()=>v,lineToolsFlat:()=>g});var l=t(91599),i=t(45958),n=t(16905),a=t(7132),r=t(7321);const s=(0,n.isFeaturesetEnabled)("image_drawingtool"),c=!i.CheckMobile.any()&&(0,n.isFeaturesetEnabled)("long_press_floating_tooltip"),v=[{id:"linetool-group-cursors",title:l.t(null,void 0,t(94409)),sections:[{items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"demonstration"},null].filter(r.isExistent)},{items:[{name:"eraser"},c?{type:"switcher",reactKey:"values-tooltip-on-long-press",label:l.t(null,void 0,t(52080)),value:"valuesTooltipOnLongPress",watchedValue:a.chartFloatingTooltipEnabledWV}:null].filter(r.isExistent)}],trackLabel:null},{id:"linetool-group-trend-line",title:l.t(null,void 0,t(63579)),sections:[{title:l.t(null,void 0,t(99758)),items:[{name:"LineToolTrendLine"},{name:"LineToolRay"},{name:"LineToolInfoLine"},{name:"LineToolExtended"},{name:"LineToolTrendAngle"},{name:"LineToolHorzLine"},{name:"LineToolHorzRay"},{name:"LineToolVertLine"},{name:"LineToolCrossLine"}]},{title:l.t(null,void 0,t(46035)),items:[{name:"LineToolParallelChannel"},{name:"LineToolRegressionTrend"},{name:"LineToolFlatBottom"},{name:"LineToolDisjointAngle"}]},{title:l.t(null,void 0,t(91261)),items:[{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"}]}],trackLabel:null},{id:"linetool-group-gann-and-fibonacci",title:l.t(null,void 0,t(75131)),sections:[{
|
||||||
|
title:l.t(null,void 0,t(36651)),items:[{name:"LineToolFibRetracement"},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolFibChannel"},{name:"LineToolFibTimeZone"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"},{name:"LineToolPitchfan"}]},{title:l.t(null,void 0,t(46083)),items:[{name:"LineToolGannSquare"},{name:"LineToolGannFixed"},{name:"LineToolGannComplex"},{name:"LineToolGannFan"}]}],trackLabel:null},{id:"linetool-group-patterns",title:l.t(null,void 0,t(54328)),sections:[{title:l.t(null,void 0,t(54328)),items:[{name:"LineTool5PointsPattern"},{name:"LineToolCypherPattern"},{name:"LineToolHeadAndShoulders"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"}]},{title:l.t(null,void 0,t(60549)),items:[{name:"LineToolElliottImpulse"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolElliottTripleCombo"}]},{title:l.t(null,void 0,t(5294)),items:[{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}]}],trackLabel:null},{id:"linetool-group-prediction-and-measurement",title:l.t(null,void 0,t(72132)),sections:[{title:l.t(null,void 0,t(53332)),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolBarsPattern"},{name:"LineToolGhostFeed"},{name:"LineToolProjection"}].filter(r.isExistent)},{title:l.t(null,void 0,t(28073)),items:[{name:"LineToolAnchoredVWAP"},{name:"LineToolFixedRangeVolumeProfile"},null].filter(r.isExistent)},{title:l.t(null,void 0,t(66688)),items:[{name:"LineToolPriceRange"},{name:"LineToolDateRange"},{name:"LineToolDateAndPriceRange"}]}],trackLabel:null},{id:"linetool-group-geometric-shapes",title:l.t(null,void 0,t(29345)),sections:[{title:l.t(null,void 0,t(93202)),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"}]},{title:l.t(null,void 0,t(52374)),items:[{name:"LineToolArrowMarker"},{name:"LineToolArrow"},{name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"}].filter(r.isExistent)},{title:l.t(null,void 0,t(28534)),items:[{name:"LineToolRectangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolPath"},{name:"LineToolCircle"},{name:"LineToolEllipse"},{name:"LineToolPolyline"},{name:"LineToolTriangle"},{name:"LineToolArc"},{name:"LineToolBezierQuadro"},{name:"LineToolBezierCubic"}]}],trackLabel:null},{id:"linetool-group-annotation",title:l.t(null,void 0,t(79454)),sections:[{title:l.t(null,void 0,t(10983)),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolTextNote"},{name:"LineToolPriceNote"},{name:"LineToolNote"},{name:"LineToolTable"},{name:"LineToolCallout"},{name:"LineToolComment"},{name:"LineToolPriceLabel"},{name:"LineToolSignpost"},{name:"LineToolFlagMark"}].filter(r.isExistent)},{title:l.t(null,void 0,t(19943)),items:[s?{name:"LineToolImage"
|
||||||
|
}:null,null,null].filter(r.isExistent)}],trackLabel:null}];function h(e){return"sections"in e}function d(e){return"name"in e}function m(e){return"type"in e}function u(e){return m(e)&&"switcher"===e.type}const g=v.map((function(e){return h(e)?e.sections.map((e=>e.items.filter(d))).flat():e.items.filter(d)})).flat()},27559:(e,o,t)=>{"use strict";t.d(o,{lineToolsInfo:()=>f});var l=t(85842),i=t(91599),n=t(70327),a=(t(53225),t(70644)),r=t(20360);const s={SyncDrawing:i.t(null,void 0,t(55519)),arrow:i.t(null,void 0,t(51979)),cursor:i.t(null,void 0,t(88180)),demonstration:i.t(null,void 0,t(2521)),dot:i.t(null,void 0,t(56191)),performance:i.t(null,void 0,t(81183)),drawginmode:i.t(null,void 0,t(76659)),eraser:i.t(null,void 0,t(71697)),group:i.t(null,void 0,t(99282)),hideAllDrawings:i.t(null,void 0,t(32320)),lockAllDrawings:i.t(null,void 0,t(17768)),magnet:i.t(null,void 0,t(46656)),measure:i.t(null,void 0,t(69034)),removeAllDrawingTools:i.t(null,void 0,t(21665)),showObjectsTree:i.t(null,void 0,t(52616)),zoom:i.t(null,void 0,t(2632)),"zoom-out":i.t(null,void 0,t(92848))};var c=t(56469),v=t(23351),h=t(88994);const d=(0,v.humanReadableModifiers)(v.Modifiers.Shift,!1).trim(),m=(0,v.humanReadableModifiers)(v.Modifiers.Alt,!1).trim(),u=(0,v.humanReadableModifiers)(v.Modifiers.Mod,!1).trim(),g={keys:[d],text:i.t(null,void 0,t(12256))},L={keys:[d],text:i.t(null,void 0,t(88343))},T={keys:[d],text:i.t(null,void 0,t(36954))},w={LineTool5PointsPattern:{},LineToolABCD:{},LineToolArc:{},LineToolArrow:{},LineToolArrowMarkDown:{},LineToolArrowMarkLeft:{},LineToolArrowMarkRight:{},LineToolArrowMarkUp:{},LineToolComment:{},LineToolBarsPattern:{},LineToolBezierCubic:{},LineToolBezierQuadro:{},LineToolBrush:{},LineToolCallout:{},LineToolCircleLines:{},LineToolCypherPattern:{},LineToolDateAndPriceRange:{},LineToolDateRange:{},LineToolDisjointAngle:{hotKey:(0,n.hotKeySerialize)(g)},LineToolElliottCorrection:{},LineToolElliottDoubleCombo:{},LineToolElliottImpulse:{},LineToolElliottTriangle:{},LineToolElliottTripleCombo:{},LineToolEllipse:{hotKey:(0,n.hotKeySerialize)(L)},LineToolExtended:{},LineToolFibChannel:{},LineToolFibCircles:{hotKey:(0,n.hotKeySerialize)(L)},LineToolFibRetracement:{},LineToolFibSpeedResistanceArcs:{},LineToolFibSpeedResistanceFan:{hotKey:(0,n.hotKeySerialize)(T)},LineToolFibSpiral:{},LineToolFibTimeZone:{},LineToolFibWedge:{},LineToolFlagMark:{},LineToolFlatBottom:{hotKey:(0,n.hotKeySerialize)(g)},LineToolAnchoredVWAP:{},LineToolGannComplex:{},LineToolGannFixed:{},LineToolGannFan:{},LineToolGannSquare:{hotKey:(0,n.hotKeySerialize)({keys:[d],text:i.t(null,void 0,t(35875))})},LineToolHeadAndShoulders:{},LineToolHorzLine:{hotKey:(0,n.hotKeySerialize)({keys:[m,"H"],text:"{0} + {1}"})},LineToolHorzRay:{},LineToolIcon:{},LineToolImage:{},LineToolEmoji:{},LineToolSticker:{},LineToolInsidePitchfork:{},LineToolNote:{},LineToolSignpost:{},LineToolParallelChannel:{hotKey:(0,n.hotKeySerialize)(g)},LineToolPitchfan:{},LineToolPitchfork:{},LineToolPolyline:{},LineToolPath:{},LineToolPrediction:{},LineToolPriceLabel:{},LineToolPriceNote:{
|
||||||
|
hotKey:(0,n.hotKeySerialize)(g)},LineToolTextNote:{},LineToolArrowMarker:{},LineToolPriceRange:{},LineToolProjection:{},LineToolRay:{},LineToolRectangle:{hotKey:(0,n.hotKeySerialize)({keys:[d],text:i.t(null,void 0,t(36954))})},LineToolCircle:{},LineToolRegressionTrend:{},LineToolRiskRewardLong:{},LineToolRiskRewardShort:{},LineToolFixedRangeVolumeProfile:{},LineToolRotatedRectangle:{hotKey:(0,n.hotKeySerialize)(g)},LineToolSchiffPitchfork:{},LineToolSchiffPitchfork2:{},LineToolSineLine:{},LineToolText:{},LineToolTextAbsolute:{},LineToolThreeDrivers:{},LineToolTimeCycles:{},LineToolTrendAngle:{hotKey:(0,n.hotKeySerialize)(g)},LineToolTrendBasedFibExtension:{},LineToolTrendBasedFibTime:{},LineToolTrendLine:{hotKey:(0,n.hotKeySerialize)(g)},LineToolInfoLine:{},LineToolTriangle:{},LineToolTrianglePattern:{},LineToolVertLine:{hotKey:(0,n.hotKeySerialize)({keys:[m,"V"],text:"{0} + {1}"})},LineToolCrossLine:{},LineToolHighlighter:{},LineToolGhostFeed:{},LineToolTable:{},SyncDrawing:{iconActive:r.drawingToolsIcons.SyncDrawingActive},arrow:{},cursor:{},dot:{},demonstration:{hotKey:(0,n.hotKeySerialize)({keys:[m],text:i.t(null,void 0,t(63366))})},drawginmode:{iconActive:r.drawingToolsIcons.drawginmodeActive},eraser:{},group:{},hideAllDrawings:{iconActive:r.drawingToolsIcons.hideAllDrawingsActive,hotKey:(0,n.hotKeySerialize)({keys:[u,m,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{iconActive:r.drawingToolsIcons.lockAllDrawingsActive},magnet:{hotKey:(0,n.hotKeySerialize)({keys:[u],text:"{0}"})},measure:{hotKey:(0,n.hotKeySerialize)({keys:[d],text:i.t(null,void 0,t(43957))})},removeAllDrawingTools:{},showObjectsTree:{},zoom:{},"zoom-out":{}};const f={};Object.entries(w).map((([e,o])=>{const t=a.lineToolsIcons[e]??r.drawingToolsIcons[e];(0,l.assert)(!!t,`Icon is not defined for drawing "${e}"`);const i=c.lineToolsLocalizedNames[e]??s[e];(0,l.assert)(!!i,`Localized name is not defined for drawing "${e}"`);return{...o,name:e,icon:t,localizedName:i,selectHotkey:h.lineToolsSelectHotkeys[e]}})).forEach((e=>{f[e.name]=e}))},95238:(e,o,t)=>{"use strict";t.d(o,{LinetoolsFavoritesStore:()=>c});var l=t(36870),i=t(7321),n=t(82287);const a=["LineToolBalloon","LineToolNoteAbsolute",null,null].filter(i.isExistent),r=!1;var s,c;!function(e){function o(){e.favorites=[];let o=!1;const l=Boolean(void 0===(0,n.getValue)("chart.favoriteDrawings")),s=(0,n.getJSON)("chart.favoriteDrawings",[]);if(0===s.length&&l&&"undefined"!=typeof window){const e=JSON.parse(window.urlParams?.favorites??"{}").drawingTools;e&&Array.isArray(e)&&s.push(...e)}s.forEach(((l,i)=>{const n=l.tool||l;t(n)?a.includes(n)?o=!0:e.favorites.push(n):r&&r.includes(n)&&e.hiddenToolsPositions.set(n,i)})),o&&i(),e.favoritesSynced.fire()}function t(e){return"string"==typeof e&&""!==e&&!(r&&r.includes(e))}function i(o){const t=e.favorites.slice();e.hiddenToolsPositions.forEach(((e,o)=>{t.splice(e,0,o)})),(0,n.setJSON)("chart.favoriteDrawings",t,o)}e.favorites=[],e.favoritesSynced=new l.Delegate,e.hiddenToolsPositions=new Map,e.favoriteIndex=function(o){return e.favorites.indexOf(o)},
|
||||||
|
e.isValidLineToolName=t,e.saveFavorites=i,o(),n.onSync.subscribe(null,o)}(s||(s={})),function(e){function o(e){return s.isValidLineToolName(e)}function t(){return s.favorites.length}function i(e){return-1!==s.favoriteIndex(e)}e.favoriteAdded=new l.Delegate,e.favoriteRemoved=new l.Delegate,e.favoriteMoved=new l.Delegate,e.favoritesSynced=s.favoritesSynced,e.favorites=function(){return s.favorites.slice()},e.isValidLineToolName=o,e.favoritesCount=t,e.favorite=function(e){return e<0||e>=t()?"":s.favorites[e]},e.addFavorite=function(t,l){return!(i(t)||!o(t)||"performance"===t)&&(s.favorites.push(t),s.saveFavorites(l),e.favoriteAdded.fire(t),!0)},e.removeFavorite=function(o,t){const l=s.favoriteIndex(o);if(-1===l)return!1;s.favorites.splice(l,1);const i=s.hiddenToolsPositions;return i.forEach(((e,o)=>{e>l&&i.set(o,e-1)})),s.saveFavorites(t),e.favoriteRemoved.fire(o),!0},e.isFavorite=i,e.moveFavorite=function(l,i,n){if(i<0||i>=t()||!o(l))return!1;const a=s.favoriteIndex(l);if(-1===a||i===a)return!1;const r=s.hiddenToolsPositions;return r.forEach(((e,o)=>{a<e&&i>e?e--:i<e&&a>e&&e++,r.set(o,e)})),s.favorites.splice(a,1),s.favorites.splice(i,0,l),s.saveFavorites(n),e.favoriteMoved.fire(l,a,i),!0}}(c||(c={}))},62874:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="m11.26 21 3.65-4.78 6.09-.66L10 8zm3.09-5.71-2.33 3.05-.8-8.3 7.02 4.82z"/><path fill-rule="evenodd" d="M25 14a11 11 0 1 1-22 0 11 11 0 0 1 22 0m-1 0a10 10 0 1 1-20 0 10 10 0 0 1 20 0"/></svg>'},22313:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M17.27 4.56a2.5 2.5 0 0 0-3.54 0l-.58.59-9 9-1 1-.15.14V20h4.7l.15-.15 1-1 9-9 .59-.58a2.5 2.5 0 0 0 0-3.54l-1.17-1.17Zm-2.83.7a1.5 1.5 0 0 1 2.12 0l1.17 1.18a1.5 1.5 0 0 1 0 2.12l-.23.23-3.3-3.29.24-.23Zm-.94.95 3.3 3.29-8.3 8.3-3.3-3.3 8.3-8.3Zm-9 9 3.3 3.29-.5.5H4v-3.3l.5-.5Zm16.5.29a1.5 1.5 0 0 0-3 0V18h4.5c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-6a1.5 1.5 0 0 1-1.5-1.5v-4c0-.83.67-1.5 1.5-1.5h.5v-2.5a2.5 2.5 0 0 1 5 0v.5h-1v-.5ZM16.5 19a.5.5 0 0 0-.5.5v4c0 .28.22.5.5.5h6a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5h-6Zm2.5 4v-2h1v2h-1Z"/></svg>'},31061:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M17.27 4.56a2.5 2.5 0 0 0-3.54 0l-.58.59-9 9-1 1-.15.14V20h4.7l.15-.15 1-1 9-9 .59-.58a2.5 2.5 0 0 0 0-3.54l-1.17-1.17Zm-2.83.7a1.5 1.5 0 0 1 2.12 0l1.17 1.18a1.5 1.5 0 0 1 0 2.12l-.23.23-3.3-3.29.24-.23Zm-.94.95 3.3 3.29-8.3 8.3-3.3-3.3 8.3-8.3Zm-9 9 3.3 3.29-.5.5H4v-3.3l.5-.5Zm16.5.29a1.5 1.5 0 0 0-3 0V18h3v-2.5Zm1 0V18h.5c.83 0 1.5.67 1.5 1.5v4c0 .83-.67 1.5-1.5 1.5h-6a1.5 1.5 0 0 1-1.5-1.5v-4c0-.83.67-1.5 1.5-1.5h.5v-2.5a2.5 2.5 0 0 1 5 0ZM16.5 19a.5.5 0 0 0-.5.5v4c0 .28.22.5.5.5h6a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 0-.5-.5h-6Zm2.5 4v-2h1v2h-1Z"/></svg>'},6955:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30"><path fill="currentColor" d="M5.5 13A2.5 2.5 0 0 0 3 15.5 2.5 2.5 0 0 0 5.5 18 2.5 2.5 0 0 0 8 15.5 2.5 2.5 0 0 0 5.5 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5A2.5 2.5 0 0 0 15 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 15 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0-2.5-2.5z"/></svg>'},39669:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.682 16.09l3.504 6.068 1.732-1-3.497-6.057 3.595-2.1L8 7.74v10.512l3.682-2.163zm-.362 1.372L7 20V6l12 7-4.216 2.462 3.5 6.062-3.464 2-3.5-6.062z"/></svg>'},61206:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path d="M18 15h8v-1h-8z"/><path d="M14 18v8h1v-8zM14 3v8h1v-8zM3 15h8v-1h-8z"/></g></svg>'},84539:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><circle fill="currentColor" cx="14" cy="14" r="3"/></svg>'},16962:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 31" width="29" height="31"><g fill="currentColor" fill-rule="nonzero"><path d="M15.3 22l8.187-8.187c.394-.394.395-1.028.004-1.418l-4.243-4.243c-.394-.394-1.019-.395-1.407-.006l-11.325 11.325c-.383.383-.383 1.018.007 1.407l1.121 1.121h7.656zm-9.484-.414c-.781-.781-.779-2.049-.007-2.821l11.325-11.325c.777-.777 2.035-.78 2.821.006l4.243 4.243c.781.781.78 2.048-.004 2.832l-8.48 8.48h-8.484l-1.414-1.414z"/><path d="M13.011 22.999h7.999v-1h-7.999zM13.501 11.294l6.717 6.717.707-.707-6.717-6.717z"/></g></svg>'},14746:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M24.13 14.65a6.2 6.2 0 0 0-.46-9.28c-2.57-2.09-6.39-1.71-8.75.6l-.92.91-.92-.9c-2.36-2.32-6.18-2.7-8.75-.61a6.2 6.2 0 0 0-.46 9.28l9.07 8.92c.58.57 1.53.57 2.12 0l9.07-8.92Zm-9.77 8.2 9.07-8.91a5.2 5.2 0 0 0-.39-7.8c-2.13-1.73-5.38-1.45-7.42.55L14 8.29l-1.62-1.6c-2.03-2-5.29-2.28-7.42-.55a5.2 5.2 0 0 0-.4 7.8l9.08 8.91c.2.2.52.2.72 0Z"/></svg>'},43220:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M14 10a2 2 0 0 0-2 2v11H6V12c0-4.416 3.584-8 8-8s8 3.584 8 8v11h-6V12a2 2 0 0 0-2-2zm-3 2a3 3 0 0 1 6 0v10h4V12c0-3.864-3.136-7-7-7s-7 3.136-7 7v10h4V12z"/><path d="M6.5 18h5v1h-5zm10 0h5v1h-5z"/></g></svg>'},26130:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M2 9.75a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h24a1.5 1.5 0 0 0 1.5-1.5v-5.5a1.5 1.5 0 0 0-1.5-1.5zm0 1h3v2.5h1v-2.5h3.25v3.9h1v-3.9h3.25v2.5h1v-2.5h3.25v3.9h1v-3.9H22v2.5h1v-2.5h3a.5.5 0 0 1 .5.5v5.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-5.5a.5.5 0 0 1 .5-.5z" transform="rotate(-45 14 14)"/></svg>'},59204:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M14 18.634l-.307-.239-7.37-5.73-2.137-1.665 9.814-7.633 9.816 7.634-.509.394-1.639 1.269-7.667 5.969zm7.054-6.759l1.131-.876-8.184-6.366-8.186 6.367 1.123.875 7.063 5.491 7.054-5.492z"/><path d="M7 14.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/><path d="M7 17.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/></g></svg>'},53874:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M4.05 14a9.95 9.95 0 1 1 19.9 0 9.95 9.95 0 0 1-19.9 0ZM14 3a11 11 0 1 0 0 22 11 11 0 0 0 0-22Zm-3 13.03a.5.5 0 0 1 .64.3 2.5 2.5 0 0 0 4.72 0 .5.5 0 0 1 .94.34 3.5 3.5 0 0 1-6.6 0 .5.5 0 0 1 .3-.64Zm.5-4.53a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},27215:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M7 4h14a3 3 0 0 1 3 3v11c0 .34-.03.67-.08 1H20.3c-1.28 0-2.31.97-2.31 2.24V24H7a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3Zm12 19.92A6 6 0 0 0 23.66 20H20.3c-.77 0-1.31.48-1.31 1.24v2.68ZM3 7a4 4 0 0 1 4-4h14a4 4 0 0 1 4 4v11a7 7 0 0 1-7 7H7a4 4 0 0 1-4-4V7Zm8 9.03a.5.5 0 0 1 .64.3 2.5 2.5 0 0 0 4.72 0 .5.5 0 0 1 .94.34 3.5 3.5 0 0 1-6.6 0 .5.5 0 0 1 .3-.64Zm.5-4.53a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},5454:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="nonzero" d="M14 5a7 7 0 0 0-7 7v3h4v-3a3 3 0 1 1 6 0v3h4v-3a7 7 0 0 0-7-7zm7 11h-4v3h4v-3zm-10 0H7v3h4v-3zm-5-4a8 8 0 1 1 16 0v8h-6v-8a2 2 0 1 0-4 0v8H6v-8zm3.293 11.294l-1.222-2.037.858-.514 1.777 2.963-2 1 1.223 2.037-.858.514-1.778-2.963 2-1zm9.778-2.551l.858.514-1.223 2.037 2 1-1.777 2.963-.858-.514 1.223-2.037-2-1 1.777-2.963z"/></svg>'},30934:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"/><path d="M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"/></g></svg>'},49604:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M19.76 6.07l-.7.7a13.4 13.4 0 011.93 2.47c.19.3.33.55.42.72l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02a5.1 5.1 0 00-.15-.28 16 16 0 00-2.53-3.41zM6.24 13.93l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41zm6.09-.43a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm-1.97-3.69l-.93.93a3.6 3.6 0 014.24-4.24l-.95.95a2.6 2.6 0 00-2.36 2.36zm11.29 7.84l-.8.79a1.5 1.5 0 000 2.12l.59.59a1.5 1.5 0 002.12 0l1.8-1.8-.71-.7-1.8 1.79a.5.5 0 01-.7 0l-.59-.59a.5.5 0 010-.7l.8-.8-.71-.7zm-5.5 3.5l.35.35-.35-.35.01-.02.02-.02.02-.02a4.68 4.68 0 01.65-.5c.4-.27 1-.59 1.65-.59.66 0 1.28.33 1.73.77.44.45.77 1.07.77 1.73a2.5 2.5 0 01-.77 1.73 2.5 2.5 0 01-1.73.77h-4a.5.5 0 01-.42-.78l1-1.5 1-1.5a.5.5 0 01.07-.07zm.74.67a3.46 3.46 0 01.51-.4c.35-.24.75-.42 1.1-.42.34 0 .72.17 1.02.48.3.3.48.68.48 1.02 0 .34-.17.72-.48 1.02-.3.3-.68.48-1.02.48h-3.07l.49-.72.97-1.46zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},34491:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M16.47 3.7A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76zm-7.04 7.04l.93-.93a2.6 2.6 0 012.36-2.36l.95-.95a3.6 3.6 0 00-4.24 4.24zm.1 5.56c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02-.02-.03-.01-.03a9.5 9.5 0 00-.57-1 16 16 0 00-2.08-2.63l-.7.7.27.29a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76zm2.8-2.8a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm7.9 3.73c-.12.12-.23.35-.23.77v2h1v1h-1v2c0 .58-.14 1.1-.52 1.48-.38.38-.9.52-1.48.52s-1.1-.14-1.48-.52c-.38-.38-.52-.9-.52-1.48h1c0 .42.1.65.23.77.12.12.35.23.77.23.42 0 .65-.1.77-.23.12-.12.23-.35.23-.77v-2h-1v-1h1v-2c0-.58.14-1.1.52-1.48.38-.38.9-.52 1.48-.52s1.1.14 1.48.52c.38.38.52.9.52 1.48h-1c0-.42-.1-.65-.23-.77-.12-.12-.35-.23-.77-.23-.42 0-.65.1-.77.23zm2.56 6.27l-1.14-1.15.7-.7 1.15 1.14 1.15-1.14.7.7-1.14 1.15 1.14 1.15-.7.7-1.15-1.14-1.15 1.14-.7-.7 1.14-1.15zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},8099:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M5.5 18.2L21.2 2.5l-.7-.7L4.8 17.5l.7.7zM19.05 6.78l.71-.7a14.26 14.26 0 0 1 2.08 2.64 14.26 14.26 0 0 1 .6 1.05v.02h.01L22 10l.45.22-.01.02a5.18 5.18 0 0 1-.15.28 16 16 0 0 1-2.23 3.1c-1.56 1.69-3.94 3.44-7.06 3.44-1.29 0-2.44-.3-3.47-.76l.76-.76c.83.32 1.73.52 2.71.52 2.73 0 4.85-1.53 6.33-3.12a15.01 15.01 0 0 0 2.08-2.9l.03-.04-.03-.04a15 15 0 0 0-2.36-3.18zM22 10l.45-.22.1.22-.1.22L22 10zM6.94 13.23l-.7.7a14.24 14.24 0 0 1-2.08-2.64 14.28 14.28 0 0 1-.6-1.05v-.02h-.01L4 10l-.45-.22.01-.02a5.55 5.55 0 0 1 .15-.28 16 16 0 0 1 2.23-3.1C7.5 4.69 9.88 2.94 13 2.94c1.29 0 2.44.3 3.47.76l-.76.76A7.27 7.27 0 0 0 13 3.94c-2.73 0-4.85 1.53-6.33 3.12a15 15 0 0 0-2.08 2.9l-.03.04.03.04a15.01 15.01 0 0 0 2.36 3.18zM4 10l-.45.22-.1-.22.1-.22L4 10zm9 3.56c-.23 0-.46-.02-.67-.06l.95-.95a2.6 2.6 0 0 0 2.36-2.36l.93-.93a3.6 3.6 0 0 1-3.57 4.3zm-3.57-2.82l.93-.93a2.6 2.6 0 0 1 2.36-2.36l.95-.95a3.6 3.6 0 0 0-4.24 4.24zM17.5 21.9l3.28 2.18a.5.5 0 1 1-.56.84L17.5 23.1l-2.72 1.82a.5.5 0 1 1-.56-.84l3.28-2.18zM18.58 19.22a.5.5 0 0 1 .7-.14L22 20.9l2.72-1.82a.5.5 0 0 1 .56.84L22 22.1l-3.28-2.18a.5.5 0 0 1-.14-.7z"/></svg>'},86766:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h6V9a3 3 0 0 0-3-3zm4 6V9a4 4 0 0 0-8 0v3H8.5A2.5 2.5 0 0 0 6 14.5v7A2.5 2.5 0 0 0 8.5 24h11a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-2.5-2.5H18zm-5 5a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},97941:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h8.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 6 21.5v-7A2.5 2.5 0 0 1 8.5 12H10V9a4 4 0 0 1 8 0h-1a3 3 0 0 0-3-3zm-1 11a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},1607:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.56 14a10.05 10.05 0 00.52.91c.41.69 1.04 1.6 1.85 2.5C8.58 19.25 10.95 21 14 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91c-.41-.69-1.04-1.6-1.85-2.5C19.42 8.75 17.05 7 14 7c-3.05 0-5.42 1.76-7.07 3.58A17.18 17.18 0 004.56 14zM24 14l.45-.21-.01-.03a7.03 7.03 0 00-.16-.32c-.11-.2-.28-.51-.5-.87-.44-.72-1.1-1.69-1.97-2.65C20.08 7.99 17.45 6 14 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87.44.72 1.1 1.69 1.97 2.65C7.92 20.01 10.55 22 14 22c3.45 0 6.08-2 7.8-3.92a18.18 18.18 0 002.64-3.84v-.02h.01L24 14zm0 0l.45.21.1-.21-.1-.21L24 14zm-10-3a3 3 0 100 6 3 3 0 000-6zm-4 3a4 4 0 118 0 4 4 0 01-8 0z"/></svg>'},14798:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76l-.41-.72-.03-.04.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12 2.73 0 4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-2.73 0-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a5.04 5.04 0 01-.15.28 16.01 16.01 0 01-2.23 3.1c-1.56 1.69-3.94 3.44-7.06 3.44-3.12 0-5.5-1.75-7.06-3.44a16 16 0 01-2.38-3.38v-.02h-.01L4 10l-.45-.22.01-.02a5.4 5.4 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.88 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16.01 16.01 0 012.38 3.38v.02h.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10 3.6 3.6 0 0013 13.56c2 0 3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zm7.85 12l.8-.8.7.71-.79.8a.5.5 0 000 .7l.59.59c.2.2.5.2.7 0l1.8-1.8.7.71-1.79 1.8a1.5 1.5 0 01-2.12 0l-.59-.59a1.5 1.5 0 010-2.12zM16.5 21.5l-.35-.35a.5.5 0 00-.07.07l-1 1.5-1 1.5a.5.5 0 00.42.78h4a2.5 2.5 0 001.73-.77A2.5 2.5 0 0021 22.5a2.5 2.5 0 00-.77-1.73A2.5 2.5 0 0018.5 20a3.1 3.1 0 00-1.65.58 5.28 5.28 0 00-.69.55v.01h-.01l.35.36zm.39.32l-.97 1.46-.49.72h3.07c.34 0 .72-.17 1.02-.48.3-.3.48-.68.48-1.02 0-.34-.17-.72-.48-1.02-.3-.3-.68-.48-1.02-.48-.35 0-.75.18-1.1.42a4.27 4.27 0 00-.51.4z"/></svg>'},43381:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76a13.27 13.27 0 01-.41-.72L4.56 10l.03-.04a15 15 0 012.08-2.9c1.48-1.6 3.6-3.12 6.33-3.12s4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.08 2.9c-1.48 1.6-3.6 3.12-6.33 3.12s-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a14.3 14.3 0 01-.6 1.05c-.4.64-1 1.48-1.78 2.33-1.56 1.7-3.94 3.44-7.06 3.44s-5.5-1.75-7.06-3.44a16 16 0 01-2.23-3.1 9.39 9.39 0 01-.15-.28v-.02h-.01L4 10l-.45-.22.01-.02a5.59 5.59 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.87 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16 16 0 012.23 3.1 9.5 9.5 0 01.15.28v.01l.01.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10c0 1.98 1.65 3.56 3.65 3.56s3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zM20 18c0-.42.1-.65.23-.77.12-.13.35-.23.77-.23.42 0 .65.1.77.23.13.12.23.35.23.77h1c0-.58-.14-1.1-.52-1.48-.38-.38-.9-.52-1.48-.52s-1.1.14-1.48.52c-.37.38-.52.9-.52 1.48v2h-1v1h1v2c0 .42-.1.65-.23.77-.12.13-.35.23-.77.23-.42 0-.65-.1-.77-.23-.13-.12-.23-.35-.23-.77h-1c0 .58.14 1.1.52 1.48.38.37.9.52 1.48.52s1.1-.14 1.48-.52c.37-.38.52-.9.52-1.48v-2h1v-1h-1v-2zm1.65 4.35l1.14 1.15-1.14 1.15.7.7 1.15-1.14 1.15 1.14.7-.7-1.14-1.15 1.14-1.15-.7-.7-1.15 1.14-1.15-1.14-.7.7z"/></svg>'},56073:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.5 10a8.46 8.46 0 0 0 .46.8c.38.6.94 1.4 1.68 2.19 1.48 1.6 3.62 3.13 6.36 3.13s4.88-1.53 6.36-3.13A15.07 15.07 0 0 0 21.5 10a7.41 7.41 0 0 0-.46-.8c-.38-.6-.94-1.4-1.68-2.19-1.48-1.6-3.62-3.13-6.36-3.13S8.12 5.4 6.64 7A15.07 15.07 0 0 0 4.5 10zM22 10l.41-.19-.4.19zm0 0l.41.19-.4-.19zm.41.19l.09-.19-.09-.19-.01-.02a6.86 6.86 0 0 0-.15-.28c-.1-.18-.25-.45-.45-.76-.4-.64-.99-1.48-1.77-2.32C18.47 4.74 16.11 3 13 3 9.89 3 7.53 4.74 5.97 6.43A15.94 15.94 0 0 0 3.6 9.79v.02h-.01L3.5 10l.09.19.01.02a6.59 6.59 0 0 0 .15.28c.1.18.25.45.45.76.4.64.99 1.48 1.77 2.32C7.53 15.26 9.89 17 13 17c3.11 0 5.47-1.74 7.03-3.43a15.94 15.94 0 0 0 2.37-3.36v-.02h.01zM4 10l-.41-.19.4.19zm9-2.63c-1.5 0-2.7 1.18-2.7 2.63s1.2 2.63 2.7 2.63c1.5 0 2.7-1.18 2.7-2.63S14.5 7.37 13 7.37zM9.4 10C9.4 8.07 11 6.5 13 6.5s3.6 1.57 3.6 3.5S15 13.5 13 13.5A3.55 3.55 0 0 1 9.4 10zm8.1 11.9l3.28 2.18a.5.5 0 1 1-.56.84L17.5 23.1l-2.72 1.82a.5.5 0 1 1-.56-.84l3.28-2.18zm1.78-2.82a.5.5 0 0 0-.56.84L22 22.1l3.28-2.18a.5.5 0 1 0-.56-.84L22 20.9l-2.72-1.82z"/></svg>'},28697:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/><path d="M13 16V9h-1v7z"/></svg>'},78120:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/></svg>'},51894:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16" width="10" height="16"><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z"/></svg>'},72995:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},89658:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'}}]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
charting_library/bundles/1290.08690e001ee3781b56a0.css
Normal file
1
charting_library/bundles/1290.08690e001ee3781b56a0.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-18Pi:var(--color-cold-gray-900);--_1-18Pi:var(--color-white);--_2-18Pi:var(--color-cold-gray-150);--_3-18Pi:var(--color-tv-blue-200);--_4-18Pi:var(--color-cold-gray-150)}[data-theme=dark]{--_0-18Pi:var(--color-cold-gray-200);--_1-18Pi:var(--color-cold-gray-850);--_2-18Pi:var(--color-cold-gray-600);--_3-18Pi:var(--color-tv-blue-a700);--_4-18Pi:var(--color-cold-gray-750)}.button-Rc93kXa8{background-color:var(--_1-18Pi);border:none;border-radius:4px;color:var(--color-default-gray);font-size:12px;height:22px;padding-inline-end:8px;padding-inline-start:8px;white-space:nowrap}@media (any-hover:hover){.button-Rc93kXa8:hover{background-color:var(--_2-18Pi);color:var(--_0-18Pi)}}.button-Rc93kXa8.bordersVisible-Rc93kXa8{border:1px solid var(--_4-18Pi);padding:0 7px}.button-Rc93kXa8.selected-Rc93kXa8{background-color:var(--_3-18Pi);color:var(--_0-18Pi)}.button-Rc93kXa8+.button-Rc93kXa8{margin-inline-start:8px}.listOption-Rc93kXa8{--ui-lib-squareButton-background:var(--tv-color-list-item-button-background,var(--color-container-fill-tertiary-inverse));--ui-lib-squareButton-border-color:var(--color-border-primary-neutral-light);--ui-lib-squareButton-content-color:var(--color-content-secondary-neutral-bold)}.listOption-Rc93kXa8.selected-Rc93kXa8{--ui-lib-squareButton-background:var(--tv-color-selected-list-item-button-background,var(--color-container-fill-primary-neutral-extra-bold));--ui-lib-squareButton-border-color:var(--tv-color-selected-list-item-button-background,var(--color-container-fill-primary-neutral-extra-bold));--ui-lib-squareButton-content-color:var(--tv-color-selected-list-item-button-text,var(--color-content-secondary-inverse))}@media (any-hover:hover){.listOption-Rc93kXa8:hover{--ui-lib-squareButton-background:var(--color-container-fill-primary-neutral-bold);--ui-lib-squareButton-border-color:var(--color-container-fill-primary-neutral-bold)}}.listOption-Rc93kXa8:active{--ui-lib-squareButton-background:var(--color-container-fill-primary-neutral-medium);--ui-lib-squareButton-border-color:var(--color-container-fill-primary-neutral-medium)}.listOption-Rc93kXa8:active{--ui-lib-squareButton-content-color:var(--color-content-secondary-inverse)}@media (any-hover:hover){.listOption-Rc93kXa8:hover{--ui-lib-squareButton-content-color:var(--color-content-secondary-inverse)}}[data-theme=light]{--_0-bOll:var(--color-cold-gray-900);--_1-bOll:var(--color-tv-blue-500);--_2-bOll:var(--color-white)}[data-theme=dark]{--_0-bOll:var(--color-cold-gray-200);--_1-bOll:var(--color-tv-blue-500);--_2-bOll:var(--color-cold-gray-200)}.wrap-oc7l8ZQg{align-items:center;display:flex;gap:8px;height:52px}.header-oc7l8ZQg{color:var(--color-default-gray);font-size:11px;line-height:16px;margin-top:2px;padding:8px 20px;text-transform:uppercase}.item-oc7l8ZQg{box-sizing:border-box;color:var(--_0-bOll);font-size:16px;height:40px;line-height:24px;padding:10px 16px}.item-oc7l8ZQg:active{background-color:var(--_1-bOll);color:var(--_2-bOll)}[data-theme=light]{--_0-Tw47:var(--color-cold-gray-900)}[data-theme=dark]{--_0-Tw47:var(--color-cold-gray-200)}.scrollable-sXALjK1u{flex:1 1 auto;height:100%;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media (max-height:290px){.scrollable-sXALjK1u{min-height:auto}}@supports (-moz-appearance:none){.scrollable-sXALjK1u{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.scrollable-sXALjK1u::-webkit-scrollbar{height:5px;width:5px}.scrollable-sXALjK1u::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.scrollable-sXALjK1u::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-sXALjK1u::-webkit-scrollbar-corner{display:none}.spinnerWrap-sXALjK1u{height:100%;width:100%}.item-sXALjK1u:first-child{margin-top:6px}.item-sXALjK1u:last-child{margin-bottom:6px}.heading-sXALjK1u{color:var(--color-default-gray);font-size:11px;line-height:16px;padding-block:16px 8px;padding-inline:20px 20px;text-transform:uppercase}.checkboxWrap-sXALjK1u{padding-inline-end:8px}.checkbox-sXALjK1u{align-items:baseline;display:flex;height:28px;justify-content:center;padding:0;width:28px}.emptyState-sXALjK1u{align-items:center;display:flex;flex-flow:column;height:100%;justify-content:center}.emptyState-sXALjK1u .image-sXALjK1u{align-items:center;display:flex;height:120px}.emptyState-sXALjK1u .text-sXALjK1u{color:var(--_0-Tw47);font-size:16px;line-height:24px;margin-top:8px}.dialog-IKuIIugL{height:565px;overflow:hidden;width:100%}.tabletDialog-IKuIIugL{max-width:560px}.desktopDialog-IKuIIugL{max-width:840px;min-width:719px;width:100%}@media (max-width:768px){.desktopDialog-IKuIIugL{max-width:640px;min-width:480px}}@media (max-width:519px){.desktopDialog-IKuIIugL{max-width:479px;min-width:380px}}.label-lVJKBKVk{align-items:center;display:flex;gap:8px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-18Pi:var(--color-cold-gray-900);--_1-18Pi:var(--color-white);--_2-18Pi:var(--color-cold-gray-150);--_3-18Pi:var(--color-tv-blue-200);--_4-18Pi:var(--color-cold-gray-150)}[data-theme=dark]{--_0-18Pi:var(--color-cold-gray-200);--_1-18Pi:var(--color-cold-gray-850);--_2-18Pi:var(--color-cold-gray-600);--_3-18Pi:var(--color-tv-blue-a700);--_4-18Pi:var(--color-cold-gray-750)}.button-Rc93kXa8{background-color:var(--_1-18Pi);border:none;border-radius:4px;color:var(--color-default-gray);font-size:12px;height:22px;padding-inline-end:8px;padding-inline-start:8px;white-space:nowrap}@media (any-hover:hover){.button-Rc93kXa8:hover{background-color:var(--_2-18Pi);color:var(--_0-18Pi)}}.button-Rc93kXa8.bordersVisible-Rc93kXa8{border:1px solid var(--_4-18Pi);padding:0 7px}.button-Rc93kXa8.selected-Rc93kXa8{background-color:var(--_3-18Pi);color:var(--_0-18Pi)}.button-Rc93kXa8+.button-Rc93kXa8{margin-inline-start:8px}.listOption-Rc93kXa8{--ui-lib-squareButton-background:var(--tv-color-list-item-button-background,var(--color-container-fill-tertiary-inverse));--ui-lib-squareButton-border-color:var(--color-border-primary-neutral-light);--ui-lib-squareButton-content-color:var(--color-content-secondary-neutral-bold)}.listOption-Rc93kXa8.selected-Rc93kXa8{--ui-lib-squareButton-background:var(--tv-color-selected-list-item-button-background,var(--color-container-fill-primary-neutral-extra-bold));--ui-lib-squareButton-border-color:var(--tv-color-selected-list-item-button-background,var(--color-container-fill-primary-neutral-extra-bold));--ui-lib-squareButton-content-color:var(--tv-color-selected-list-item-button-text,var(--color-content-secondary-inverse))}@media (any-hover:hover){.listOption-Rc93kXa8:hover{--ui-lib-squareButton-background:var(--color-container-fill-primary-neutral-bold);--ui-lib-squareButton-border-color:var(--color-container-fill-primary-neutral-bold)}}.listOption-Rc93kXa8:active{--ui-lib-squareButton-background:var(--color-container-fill-primary-neutral-medium);--ui-lib-squareButton-border-color:var(--color-container-fill-primary-neutral-medium)}.listOption-Rc93kXa8:active{--ui-lib-squareButton-content-color:var(--color-content-secondary-inverse)}@media (any-hover:hover){.listOption-Rc93kXa8:hover{--ui-lib-squareButton-content-color:var(--color-content-secondary-inverse)}}[data-theme=light]{--_0-bOll:var(--color-cold-gray-900);--_1-bOll:var(--color-tv-blue-500);--_2-bOll:var(--color-white)}[data-theme=dark]{--_0-bOll:var(--color-cold-gray-200);--_1-bOll:var(--color-tv-blue-500);--_2-bOll:var(--color-cold-gray-200)}.wrap-oc7l8ZQg{align-items:center;display:flex;gap:8px;height:52px}.header-oc7l8ZQg{color:var(--color-default-gray);font-size:11px;line-height:16px;margin-top:2px;padding:8px 20px;text-transform:uppercase}.item-oc7l8ZQg{box-sizing:border-box;color:var(--_0-bOll);font-size:16px;height:40px;line-height:24px;padding:10px 16px}.item-oc7l8ZQg:active{background-color:var(--_1-bOll);color:var(--_2-bOll)}[data-theme=light]{--_0-Tw47:var(--color-cold-gray-900)}[data-theme=dark]{--_0-Tw47:var(--color-cold-gray-200)}.scrollable-sXALjK1u{flex:1 1 auto;height:100%;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media (max-height:290px){.scrollable-sXALjK1u{min-height:auto}}@supports (-moz-appearance:none){.scrollable-sXALjK1u{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.scrollable-sXALjK1u::-webkit-scrollbar{height:5px;width:5px}.scrollable-sXALjK1u::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.scrollable-sXALjK1u::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.scrollable-sXALjK1u::-webkit-scrollbar-corner{display:none}.spinnerWrap-sXALjK1u{height:100%;width:100%}.item-sXALjK1u:first-child{margin-top:6px}.item-sXALjK1u:last-child{margin-bottom:6px}.heading-sXALjK1u{color:var(--color-default-gray);font-size:11px;line-height:16px;padding-block:16px 8px;padding-inline:20px 20px;text-transform:uppercase}.checkboxWrap-sXALjK1u{padding-inline-end:8px}.checkbox-sXALjK1u{align-items:baseline;display:flex;height:28px;justify-content:center;padding:0;width:28px}.emptyState-sXALjK1u{align-items:center;display:flex;flex-flow:column;height:100%;justify-content:center}.emptyState-sXALjK1u .image-sXALjK1u{align-items:center;display:flex;height:120px}.emptyState-sXALjK1u .text-sXALjK1u{color:var(--_0-Tw47);font-size:16px;line-height:24px;margin-top:8px}.dialog-IKuIIugL{height:565px;overflow:hidden;width:100%}.tabletDialog-IKuIIugL{max-width:560px}.desktopDialog-IKuIIugL{max-width:840px;min-width:719px;width:100%}@media (max-width:768px){.desktopDialog-IKuIIugL{max-width:640px;min-width:480px}}@media (max-width:519px){.desktopDialog-IKuIIugL{max-width:479px;min-width:380px}}.label-lVJKBKVk{align-items:center;display:flex;gap:8px}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
charting_library/bundles/130.39e6202ba00cf6f84f33.css
Normal file
1
charting_library/bundles/130.39e6202ba00cf6f84f33.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.button-KTgbfaP5{height:38px;justify-content:center;width:52px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.button-KTgbfaP5{height:38px;justify-content:center;width:52px}
|
||||||
@@ -1 +0,0 @@
|
|||||||
.row-DFIg7eOh{vertical-align:top}.line-DFIg7eOh{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#e0e3eb));height:1px;margin:6px 0}html.theme-dark .line-DFIg7eOh{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#434651))}.hint-DFIg7eOh{color:var(--themed-color-context-menu-separator-hint,#9598a1);font-size:12px;margin-left:6px;margin-top:12px;text-align:left}html.theme-dark .hint-DFIg7eOh{color:var(--themed-color-context-menu-separator-hint,#50535e)}.separator-Ymxd0dt_{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#e0e3eb));height:1px;margin:6px 0}html.theme-dark .separator-Ymxd0dt_{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#434651))}.loaderWrap-jGEARQlM{height:32px;margin-left:-2px;position:relative}.loaderWrap-jGEARQlM.big-jGEARQlM{min-width:100px}.loaderWrap-jGEARQlM.big-jGEARQlM .loader-jGEARQlM{position:absolute}.loader-jGEARQlM{position:static}.menu-Tx5xMZww{border-collapse:collapse;cursor:default;overflow:visible;-webkit-user-select:none;user-select:none;z-index:500}.accessible-rm8yeqY4{outline:none;overflow:visible;position:relative}.accessible-rm8yeqY4:focus{outline:none}.accessible-rm8yeqY4:focus-visible{outline:none}.accessible-rm8yeqY4:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.accessible-rm8yeqY4:focus:after{display:block}.accessible-rm8yeqY4:focus-visible:after{display:block}.accessible-rm8yeqY4:focus:not(:focus-visible):after{display:none}.accessible-rm8yeqY4:after{border-color:#2962ff;border-radius:6px}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.row-DFIg7eOh{vertical-align:top}.line-DFIg7eOh{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#e0e3eb));height:1px;margin:6px 0}html.theme-dark .line-DFIg7eOh{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#434651))}.hint-DFIg7eOh{color:var(--themed-color-context-menu-separator-hint,#9598a1);font-size:12px;margin-right:6px;margin-top:12px;text-align:right}html.theme-dark .hint-DFIg7eOh{color:var(--themed-color-context-menu-separator-hint,#50535e)}.separator-Ymxd0dt_{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#e0e3eb));height:1px;margin:6px 0}html.theme-dark .separator-Ymxd0dt_{background-color:var(--tv-color-popup-element-divider-background,var(--themed-color-popup-menu-separator,#434651))}.loaderWrap-jGEARQlM{height:32px;margin-right:-2px;position:relative}.loaderWrap-jGEARQlM.big-jGEARQlM{min-width:100px}.loaderWrap-jGEARQlM.big-jGEARQlM .loader-jGEARQlM{position:absolute}.loader-jGEARQlM{position:static}.menu-Tx5xMZww{border-collapse:collapse;cursor:default;overflow:visible;-webkit-user-select:none;user-select:none;z-index:500}.accessible-rm8yeqY4{outline:none;overflow:visible;position:relative}.accessible-rm8yeqY4:focus{outline:none}.accessible-rm8yeqY4:focus-visible{outline:none}.accessible-rm8yeqY4:after{border-style:solid;border-width:2px;box-sizing:border-box;content:"";display:none;height:100%;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:1}.accessible-rm8yeqY4:focus:after{display:block}.accessible-rm8yeqY4:focus-visible:after{display:block}.accessible-rm8yeqY4:focus:not(:focus-visible):after{display:none}.accessible-rm8yeqY4:after{border-color:#2962ff;border-radius:6px}
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
charting_library/bundles/144.4a7e7ba1d7853630aeaf.js
Normal file
6
charting_library/bundles/144.4a7e7ba1d7853630aeaf.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[144,9974],{7955:(e,t,i)=>{i.d(t,{inplaceEditHandlers:()=>o});var n=i(83077);function o(e){const t=(t,i)=>{i.sourceWasSelected&&e(t)};return{areaName:n.AreaName.Text,executeDefaultAction:{doubleClickHandler:!0,doubleTapHandler:!0},clickHandler:t,tapHandler:t}}},7919:(e,t,i)=>{i.d(t,{InplaceTextLineSourcePaneView:()=>u});var n=i(85842),o=i(91599),s=i(82347),r=i(89772),a=i(41928),d=i(83077),l=i(28031),c=i(29968);const h=o.t(null,void 0,i(3443));class u extends a.LineSourcePaneView{constructor(e,t,i,n,o){super(e,t,o),this._textInfo=new r.WatchedObject({}),this._isTextEditModeActivated=!1,this._textWasEdited=!1,this._showTextEditor=i,this._hideTextEditor=n,this._editableTextSpawn=this._source.editableText().spawn(),this._editableTextSpawn.subscribe((()=>this._updateTextWasEditable()))}destroy(){this._editableTextSpawn.destroy()}setSelectionRange(e){this._selectionRange=e}closeTextEditor(){this._closeTextEditorImpl()}_closeTextEditorImpl(e){this._textWasEdited=!1,this._isTextEditModeActivated=!1,this._hideTextEditor?.(e)}_placeHolderMode(e){return!this._isTextEditMode()&&this._model.hoveredSource()===this._source&&0===this._model.hoveredSourceOrigin()&&(!e||this._model.lastHittestData()?.areaName!==d.AreaName.AnchorPoint)&&!(0,c.lastMouseOrTouchEventInfo)().isTouch&&!this._source.editableTextProperties().text.value()&&this._model.selection().isSelected(this._source)}_updateTextWasEditable(){this._textWasEdited=!0}_textCursorType(){return this._model.selection().isSelected(this._source)&&!this._model.sourcesBeingMoved().includes(this._source)?l.PaneCursorType.Text:void 0}_updateInplaceText(e){this._textInfo.setValue(e),this._model.selection().isSelected(this._source)||this.closeTextEditor();const t=this._source.textEditingEl();t&&this._activateEditMode(t)}_tryActivateEditMode(e,t){const i=(0,n.ensureNotNull)(t.target instanceof HTMLElement?t.target.closest(".chart-gui-wrapper"):null);this._activateEditMode(i)}_isTextEditMode(){return this._isTextEditModeActivated}_isTextBeingEdited(){return this._textWasEdited}_textData(){return this._text()||(this._textWasEdited?"":h)}_textColor(){const e=this._source.editableTextProperties().textColor.value();return this._text()?e:(0,s.generateColor)(e,50,!0)}_inplaceTextHighlight(){const e=this._source.editableTextStyle();return this._selectionRange?{selectionHighlight:{start:this._selectionRange[0],end:this._selectionRange[1],color:(0,s.generateColor)(e.selectionColor,80,!0)}}:{}}_activateEditMode(e){this._showTextEditor?.((0,n.ensureNotNull)(this._getOwnerSource()),e,this._textInfo,h,this._closeTextEditorImpl.bind(this)),this._isTextEditModeActivated=!0}_text(){return this._isTextEditMode()?this._source.editableText().value():this._source.editableTextProperties().text.value()}}},63212:(e,t,i)=>{i.d(t,{InplaceTextLineDataSource:()=>S,InplaceTextUndoCommand:()=>m})
|
||||||
|
;var n=i(83991),o=i(85842),s=i(57415),r=i(11284),a=i(55482),d=i(91599),l=i(72769),c=i(68657),h=i(89659),u=i(1479),_=i(82014),p=i(9840),g=i(34773);const x={selectionColor:(0,r.getHexColorByName)("color-tv-blue-500"),cursorColor:(0,r.getHexColorByName)("color-black")},T={selectionColor:(0,r.getHexColorByName)("color-white"),cursorColor:(0,r.getHexColorByName)("color-white")};var P;!function(e){e[e.TextEditingJustFinishedTime=100]="TextEditingJustFinishedTime"}(P||(P={}));class m extends u.UndoCommand{constructor(e,t,n,o){super(new l.TranslatedString("change {title} text",d.t(null,void 0,i(58899))).format({title:new l.TranslatedString(t.name(),t.translatedType())}),!0,!g.lineToolsDoNotAffectChartInvalidation),this._sourceId=t.id(),this._model=e,this._oldValue=n,this._newValue=o}redo(){const e=this._source();this._textProperty(e).setValue(this._newValue)}undo(){const e=this._source();this._textProperty(e).setValue(this._oldValue)}_textProperty(e){return e.editableTextProperties().text}_source(){return(0,o.ensureNotNull)(this._model.dataSourceForId(this._sourceId))}}class S extends _.LineDataSource{constructor(e,t,n,o){super(e,t,n,o),this._container=null,this._activeEditingOwnerSource=null,this._editableText=new h.WatchedValue(""),this._activateTextEditingEl=null,this._paneView=null,this._selectionData={},this._cursorPaneView=null,this._cursorPosition=null,this._editingOnCreation=!1,this._editingActivationTime=null,this._editingDeactivationTime=0,this._editableText.subscribe((()=>{this.updateAllViewsAndRedraw((0,p.sourceChangeEvent)(this.id()))})),this._isDarkBackground=(0,c.combine)(((e,t)=>{if(null===t)return this._model.dark().value();const i=(0,a.blendRgba)((0,a.parseRgba)(e),(0,a.parseRgba)(t));return"black"===(0,a.rgbToBlackWhiteString)([i[0],i[1],i[2]],150)}),this._model.backgroundColor().spawnOwnership(),this._createDataSourceBackgroundColorWV()),Promise.all([i.e(8263),i.e(144),i.e(4073),i.e(1912),i.e(1495)]).then(i.bind(i,16630)).then((t=>{this._cursorPaneView=new t.InplaceTextCursorPaneView(this,e),this._additionalCursorDataGetters&&(this._cursorPaneView.setAdditionalCursorData(...this._additionalCursorDataGetters),null!==this._cursorPosition&&(this._cursorPaneView.setCursorPosition(this._cursorPosition),e.updateSource(this)))}))}destroy(){this._isDarkBackground.destroy(),this._editableText.unsubscribe(),this._closeTextEditor(),super.destroy()}editableTextStyle(){return{...this._isDarkBackground.value()?T:x}}removeIfEditableTextIsEmpty(){return!1}activateEditingOnCreation(){return!1}topPaneViews(e){return this._activeEditingOwnerSource&&e.hasDataSource(this._activeEditingOwnerSource)&&!window.TradingView.printing&&this._cursorPaneView?(this._cursorPaneView.update((0,p.sourceChangeEvent)(this.id())),[this._cursorPaneView]):null}dataAndViewsReady(){return super.dataAndViewsReady()&&null!==this._cursorPaneView}editableText(){return this._editableText}textEditingEl(){return this._activateTextEditingEl}activateTextEditingOn(e,t){this._activateTextEditingEl=e,this._editingOnCreation=!!t,
|
||||||
|
this._editingActivationTime=performance.now(),this.updateAllViewsAndRedraw((0,p.sourceChangeEvent)(this.id()))}deactivateTextEditing(){this._closeTextEditor()}textEditingActivationTime(){return this._editingActivationTime}textEditingJustFinished(){return performance.now()-this._editingDeactivationTime<100}setAdditionalCursorData(e,t){this._cursorPaneView?this._cursorPaneView.setAdditionalCursorData(e,t):this._additionalCursorDataGetters=[e,t]}_updateAllPaneViews(e){super._updateAllPaneViews(e),this._cursorPaneView?.update(e)}async _openTextEditor(e,t,n,r,a){if(null!==this._container)return;null===this._editingActivationTime&&(this._editingActivationTime=performance.now()),this._activateTextEditingEl=null,this._cursorPosition=null,this._container=document.createElement("div"),this._container.style.position="absolute",this._container.style.top="0",this._container.style.bottom="0",this._container.style.left="0",this._container.style.right="0",this._container.style.overflow="hidden",this._container.style.pointerEvents="none",t.appendChild(this._container);const{updateChartEditorText:d,closeChartEditorText:l}=await Promise.all([i.e(7922),i.e(9365),i.e(269)]).then(i.bind(i,5443));if(null===this._container||this._isDestroyed)return;this._activeEditingOwnerSource=e,this._closeChartEditorText=l;const{text:c,textColor:h,wordWrap:u}=this.editableTextProperties(),{forbidLineBreaks:_,maxLength:g}=this.editableTextStyle();this._editableText.setValue(c.value());const x=this.isFixed()?(0,o.ensureDefined)(this.fixedPoint(e)):(0,o.ensureNotNull)(this.pointToScreenPoint(this._points[0],e)),T={position:(0,s.point)(x.x,x.y),textInfo:n,placeholder:r,text:this._editableText,textColor:h,wordWrap:u,forbidLineBreaks:_,maxLength:g,onClose:a,onSelectionChange:this._onSelectionChange.bind(this),onContextMenu:this.onContextMenu?this.onContextMenu.bind(this):void 0};d(this._container,T),this.updateAllViewsAndRedraw((0,p.sourceChangeEvent)(this.id()))}_closeTextEditor(e){null===this._container||this._isDestroyed||(this._editingActivationTime=null,this._editingDeactivationTime=performance.now(),this._saveEditedText(),this._editingOnCreation=!1,this._onSelectionChange(),this._closeChartEditorText?.(this._container),this._closeChartEditorText=void 0,this._container.remove(),this._container=null,this._activeEditingOwnerSource=null,this.updateAllViewsAndRedraw((0,p.sourceChangeEvent)(this.id())))}_saveEditedText(){const e=this.editableTextProperties().text.value(),t=this._editableText.value();e!==t&&(this._editingOnCreation&&this.editableTextProperties().text.setValue(t),this._model.undoModel().undoHistory().pushUndoCommand(this._changeEditableTextUndoCommand(e,t)))}_changeEditableTextUndoCommand(e,t){return new m(this._model,this,e,t)}_createDataSourceBackgroundColorWV(){return new h.WatchedValue(null).readonly().ownership()}_onSelectionChange(e){if(null===this._container)return;const t={};if(void 0!==e){const{start:i,end:n}=e;i===n?t.cursorPosition=i:t.selectionRange=[Math.min(i,n),Math.max(i,n)]}(0,
|
||||||
|
n.default)(t,this._selectionData)||(this._selectionData=t,this._paneViews.forEach((e=>{e.forEach((e=>{"setSelectionRange"in e&&e.setSelectionRange(t.selectionRange)}))})),this._cursorPaneView?this._cursorPaneView.setCursorPosition(t.cursorPosition):this._cursorPosition=t.cursorPosition??null,this.updateAllViewsAndRedraw((0,p.sourceChangeEvent)(this.id())))}}},41928:(e,t,i)=>{i.d(t,{LineSourcePaneView:()=>x,anchorResizeCursorType:()=>p,createLineSourcePaneViewPoint:()=>g});var n=i(11284),o=i(85842),s=i(29968),r=i(83077),a=i(71367),d=i(8165),l=i(28031),c=i(61208);const h=n.colorsPalette["color-tv-blue-600"];var u,_;function p(e,t){const i=e.x-t.x,n=e.y-t.y;if(!Number.isFinite(i)||!Number.isFinite(n)||0===i&&0===n)return l.PaneCursorType.Default;let s=Math.atan2(n,i);return s<0&&(s+=2*Math.PI),s>=_.deg337_5||s<_.deg22_5||s>=_.deg157_5&&s<_.deg202_5?l.PaneCursorType.HorizontalResize:s>=_.deg22_5&&s<_.deg67_5||s>=_.deg202_5&&s<_.deg247_5?l.PaneCursorType.DiagonalNwSeResize:s>=_.deg67_5&&s<_.deg112_5||s>=_.deg247_5&&s<_.deg292_5?l.PaneCursorType.VerticalResize:s>=_.deg112_5&&s<_.deg157_5||s>=_.deg292_5&&s<_.deg337_5?l.PaneCursorType.DiagonalNeSwResize:void(0,o.assert)(!1,"unexpected angle")}function g(e,t){return e.pointIndex=t,e}!function(e){e[e.RegularAnchorRadius=6]="RegularAnchorRadius",e[e.TouchAnchorRadius=13]="TouchAnchorRadius",e[e.RegularStrokeWidth=1]="RegularStrokeWidth",e[e.TouchStrokeWidth=3]="TouchStrokeWidth",e[e.RegularSelectedStrokeWidth=3]="RegularSelectedStrokeWidth",e[e.TouchSelectedStrokeWidth=0]="TouchSelectedStrokeWidth"}(u||(u={})),function(e){e[e.deg22_5=Math.PI/8]="deg22_5",e[e.deg67_5=3*Math.PI/8]="deg67_5",e[e.deg112_5=5*Math.PI/8]="deg112_5",e[e.deg157_5=7*Math.PI/8]="deg157_5",e[e.deg202_5=9*Math.PI/8]="deg202_5",e[e.deg247_5=11*Math.PI/8]="deg247_5",e[e.deg292_5=13*Math.PI/8]="deg292_5",e[e.deg337_5=15*Math.PI/8]="deg337_5"}(_||(_={}));class x{constructor(e,t,i){this._invalidated=!0,this._points=[],this._middlePoint=null,this._selectionRenderers=[],this._lineAnchorRenderers=[],this._source=e,this._model=t,this._ownerSource=i??null}priceToCoordinate(e){const t=this._getOwnerSource(),i=t?.priceScale();if(null==i)return null;const n=null!==t?t.firstValue():null;return null===n?null:i.priceToCoordinate(e,n)}anchorColor(){return h}isHoveredSource(){return this._source===this._model.hoveredSource()}isSelectedSource(){return this._model.selection().isSelected(this._source)}isBeingEdited(){return this._model.lineBeingEdited()===this._source}isEditMode(){return!this._model.isSnapshot()}areAnchorsVisible(){return(this.isHoveredSource()&&!this.isLocked()||this.isSelectedSource())&&this.isEditMode()}update(){this._invalidated=!0}isLocked(){return Boolean(this._source.isLocked&&this._source.isLocked())}addAnchors(e,t={}){let i=this._getPoints();this._model.lineBeingCreated()===this._source&&(i=i.slice(0,-1));const n=this._source.points(),o=i.map(((e,t)=>{const i=n[t],o=(0,d.lineSourcePaneViewPointToLineAnchorPoint)(e);return i&&(o.snappingPrice=i.price,o.snappingIndex=i.index),o}))
|
||||||
|
;e.append(this.createLineAnchor({...t,points:o},0))}createLineAnchor(e,t){const i=e.points.map((e=>e.point)),n=this._getOwnerSource();if(this.isLocked()){const o=this._getSelectionRenderer(t);return o.setData({bgColors:this._lineAnchorColors(i),points:e.points,visible:this.areAnchorsVisible(),hittestResult:r.HitTarget.Regular,ownerSourceId:n?.id(),barSpacing:this._model.timeScale().barSpacing()}),o}const o=(0,s.lastMouseOrTouchEventInfo)().isTouch,a=this._getLineAnchorRenderer(t),d=this.isHoveredSource()?this._model.lastHittestData()?.pointIndex??null:null;return a.setData({...e,color:this.anchorColor(),backgroundColors:this._lineAnchorColors(i),hoveredPointIndex:d,linePointBeingEdited:this.isBeingEdited()?this._model.linePointBeingEdited():null,radius:this._anchorRadius(),strokeWidth:o?u.TouchStrokeWidth:u.RegularStrokeWidth,selected:this.isSelectedSource(),selectedStrokeWidth:o?u.TouchSelectedStrokeWidth:u.RegularSelectedStrokeWidth,visible:this.areAnchorsVisible(),clickHandler:e.clickHandler,ownerSourceId:n?.id()}),a}_getOwnerSource(){return this._ownerSource??this._source.ownerSource()}_anchorRadius(){return(0,s.lastMouseOrTouchEventInfo)().isTouch?u.TouchAnchorRadius:u.RegularAnchorRadius}_lineAnchorColors(e){const t=(0,o.ensureNotNull)(this._model.paneForSource(this._source)).height();return e.map((e=>this._model.backgroundColorAtYPercentFromTop(e.y/t)))}_updateImpl(e){this._points=[];this._model.timeScale().isEmpty()||this._validatePriceScale()&&(this._source.points().forEach(((e,t)=>{const i=this._source.pointToScreenPoint(e,this._ownerSource??void 0);i&&this._points.push(g(i,t))})),2===this._points.length&&(this._middlePoint=this._source.calcMiddlePoint(this._points[0],this._points[1])),this._invalidated=!1)}_validatePriceScale(){const e=this._getOwnerSource()?.priceScale();return null!=e&&!e.isEmpty()}_getSource(){return this._source}_getPoints(){return this._points}_getModel(){return this._model}_height(){const e=this._getOwnerSource()?.priceScale();return null!=e?e.height():0}_width(){return this._model.timeScale().width()}_needLabelExclusionPath(e,t){const i=this._source.properties().childs();return"middle"===(t??i.vertLabelsAlign.value())&&(0,c.needTextExclusionPath)(e)}_addAlertRenderer(e,t,i=this._source.properties().linecolor.value()){}_getAlertRenderer(e){return null}_getSelectionRenderer(e){for(;this._selectionRenderers.length<=e;)this._selectionRenderers.push(new a.SelectionRenderer);return this._selectionRenderers[e]}_getLineAnchorRenderer(e){for(;this._lineAnchorRenderers.length<=e;)this._lineAnchorRenderers.push(new d.LineAnchorRenderer);return this._lineAnchorRenderers[e]}}},8165:(e,t,i)=>{i.d(t,{LineAnchorRenderer:()=>T,lineSourcePaneViewPointToLineAnchorPoint:()=>P,lineSourcePaneViewPointToLineAnchorPoint2:()=>m,mapLineSourcePaneViewPointToLineAnchorPoint:()=>S});var n=i(57415),o=i(91069),s=i(85842),r=i(51946),a=i(7321),d=i(83077),l=i(28031),c=i(72244),h=i(57507);function u(e,t,i,n){const{point:o}=t,s=i+n/2;(0,r.drawRoundRect)(e,o.x-s,o.y-s,2*s,2*s,(i+n)/2),e.closePath(),e.lineWidth=n}
|
||||||
|
function _(e,t,i,n){e.globalAlpha=.2,u(e,t,i,n),e.stroke(),e.globalAlpha=1}function p(e,t,i,n){u(e,t,i-n,n),e.fill(),e.stroke()}function g(e,t,i,n){const{point:o}=t;e.globalAlpha=.2,e.beginPath(),e.arc(o.x,o.y,i+n/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=n,e.stroke(),e.globalAlpha=1}function x(e,t,i,n){const{point:o}=t;e.beginPath(),e.arc(o.x,o.y,i-n/2,0,2*Math.PI,!0),e.closePath(),e.lineWidth=n,e.fill(),e.stroke()}class T extends h.BitmapCoordinatesPaneRenderer{constructor(e){super(),this._data=e??null}setData(e){this._data=e}hitTest(e){if(null===this._data||this._data.disableInteractions)return null;const{radius:t,points:i}=this._data,n=t+(0,c.interactionTolerance)().anchor;for(const t of i){if(t.point.subtract(e).length()<=n)return new d.HitTestResult(t.hitTarget??d.HitTarget.ChangePoint,{areaName:d.AreaName.AnchorPoint,pointIndex:t.pointIndex,cursorType:t.cursorType??l.PaneCursorType.Default,activeItem:t.activeItem,snappingPrice:t.snappingPrice,snappingIndex:t.snappingIndex,nonDiscreteIndex:t.nonDiscreteIndex,possibleMovingDirections:t.possibleMovingDirections,clickHandler:this._data.clickHandler,tapHandler:this._data.clickHandler,ownerSourceId:this._data.ownerSourceId})}return null}doesIntersectWithBox(e){return null!==this._data&&this._data.points.some((t=>(0,o.pointInBox)(t.point,e)))}_drawImpl(e){if(null===this._data||!this._data.visible)return;const t=[],i=[],n=[],o=[];for(let e=0;e<this._data.points.length;++e){const s=this._data.points[e],r=this._data.backgroundColors[e];s.square?(t.push(s),i.push(r)):(n.push(s),o.push(r))}t.length&&this._drawPoints(e,t,i,p,_),n.length&&this._drawPoints(e,n,o,x,g)}_drawPoints(e,t,i,o,r){const{context:d,horizontalPixelRatio:l,verticalPixelRatio:c}=e,h=(0,s.ensureNotNull)(this._data),u=h.radius;let _=Math.max(1,Math.floor((h.strokeWidth||2)*l));h.selected&&(_+=Math.max(1,Math.floor(l/2)));const p=Math.max(1,Math.floor(l));let g=Math.round(u*l*2);g%2!=p%2&&(g+=1);const x=p%2/2;d.strokeStyle=h.color;for(let e=0;e<t.length;++e){const s=t[e];if(!((0,a.isInteger)(s.pointIndex)&&h.linePointBeingEdited===s.pointIndex)){d.fillStyle=i[e];if(o(d,{...s,point:new n.Point(Math.round(s.point.x*l)+x,Math.round(s.point.y*c)+x)},g/2,_),!h.disableInteractions){if(null!==h.hoveredPointIndex&&s.pointIndex===h.hoveredPointIndex){const e=Math.max(1,Math.floor(h.selectedStrokeWidth*l));let t=Math.round(u*l*2);t%2!=p%2&&(t+=1);r(d,{...s,point:new n.Point(Math.round(s.point.x*l)+x,Math.round(s.point.y*c)+x)},t/2,e)}}}}}}function P(e,t=e.pointIndex,i,n,o,s,r,a,d,l){return{point:e,pointIndex:t,cursorType:i,square:n,hitTarget:o,snappingPrice:s,snappingIndex:r,nonDiscreteIndex:a,activeItem:d,possibleMovingDirections:l}}function m(e){return P(e.point,e.pointIndex,e.cursorType,e.square,e.hitTarget,e.snappingPrice,e.snappingIndex,e.nonDiscreteIndex,e.activeItem,e.possibleMovingDirections)}function S(e){return P(e)}}}]);
|
||||||
1
charting_library/bundles/1448.8d5f6c1de12d0422a8c5.css
Normal file
1
charting_library/bundles/1448.8d5f6c1de12d0422a8c5.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,7 +0,0 @@
|
|||||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1553],{11553:(t,e,i)=>{var n;!function(r,s,o,a){"use strict";var h,u=["","webkit","Moz","MS","ms","o"],c=s.createElement("div"),l=Math.round,p=Math.abs,f=Date.now;function v(t,e,i){return setTimeout(I(t,i),e)}function d(t,e,i){return!!Array.isArray(t)&&(m(t,i[e],i),!0)}function m(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function g(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,n,i),t.apply(this,arguments)}}h="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var T=g((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===a)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),y=g((function(t,e){return T(t,e,!0)}),"merge","Use `assign`.");function E(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&h(n,i)}function I(t,e){return function(){return t.apply(e,arguments)}}function A(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function C(t,e){return t===a?e:t}function b(t,e,i){m(D(e),(function(e){t.addEventListener(e,i,!1)}))}function _(t,e,i){m(D(e),(function(e){t.removeEventListener(e,i,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function P(t,e){return t.indexOf(e)>-1}function D(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function O(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];w(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function R(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((n=(i=u[s])?i+r:e)in t)return n;s++}return a}var M=1;function z(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var N="ontouchstart"in r,X=R(r,"PointerEvent")!==a,Y=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",k="mouse",W=24,q=["x","y"],L=["clientX","clientY"];function H(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){A(t.options.enable,[t])&&i.handler(e)},this.init()}function U(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=1&e&&n-r==0,o=12&e&&n-r==0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,function(t,e){
|
|
||||||
var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=V(e));r>1&&!i.firstMultiple?i.firstMultiple=V(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,h=o?o.center:s.center,u=e.center=j(n);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=$(h,u),e.distance=B(h,u),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=Z(e.deltaX,e.deltaY);var c=G(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=p(c.x)>p(c.y)?c.x:c.y,e.scale=o?(l=o.pointers,v=n,B(v[0],v[1],L)/B(l[0],l[1],L)):1,e.rotation=o?function(t,e){return $(e[1],e[0],L)+$(t[1],t[0],L)}(o.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,s,o=t.lastInterval||e,h=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(h>25||o.velocity===a)){var u=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=G(h,u,c);n=l.x,r=l.y,i=p(l.x)>p(l.y)?l.x:l.y,s=Z(u,c),t.lastInterval=e}else i=o.velocity,n=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=s}(i,e);var l,v;var d=t.element;S(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function V(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:l(t.pointers[i].clientX),clientY:l(t.pointers[i].clientY)},i++;return{timeStamp:f(),pointers:e,center:j(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:l(i/e),y:l(n/e)}}function G(t,e,i){return{x:e/t||0,y:i/t||0}}function Z(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function B(t,e,i){i||(i=q);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function $(t,e,i){i||(i=q);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(z(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4},K="mousedown",Q="mousemove mouseup";function tt(){this.evEl=K,this.evWin=Q,this.pressed=!1,H.apply(this,arguments)}E(tt,H,{handler:function(t){var e=J[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:k,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},it={2:F,3:"pen",4:k,
|
|
||||||
5:"kinect"},nt="pointerdown",rt="pointermove pointerup pointercancel";function st(){this.evEl=nt,this.evWin=rt,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(nt="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),E(st,H,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=et[n],s=it[t.pointerType]||t.pointerType,o=s==F,a=w(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",ht="touchstart touchmove touchend touchcancel";function ut(){this.evTarget=at,this.evWin=ht,this.started=!1,H.apply(this,arguments)}function ct(t,e){var i=x(t.touches),n=x(t.changedTouches);return 12&e&&(i=O(i.concat(n),"identifier",!0)),[i,n]}E(ut,H,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var i=ct.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:F,srcEvent:t})}}});var lt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pt="touchstart touchmove touchend touchcancel";function ft(){this.evTarget=pt,this.targetIds={},H.apply(this,arguments)}function vt(t,e){var i=x(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=i.filter((function(t){return S(t.target,h)})),1===e)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),12&e&&delete n[o[r].identifier],r++;return a.length?[O(s.concat(a),"identifier",!0),a]:void 0}E(ft,H,{handler:function(t){var e=lt[t.type],i=vt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:F,srcEvent:t})}});function dt(){H.apply(this,arguments);var t=I(this.handler,this);this.touch=new ft(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function mt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,gt.call(this,e)):12&t&>.call(this,e)}function gt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function Tt(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(s<=25&&o<=25)return!0}return!1}E(dt,H,{handler:function(t,e,i){var n=i.pointerType==F,r=i.pointerType==k;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)mt.call(this,e,i);else if(r&&Tt.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}})
|
|
||||||
;var yt=R(c.style,"touchAction"),Et=yt!==a,It="compute",At="auto",Ct="manipulation",bt="none",_t="pan-x",St="pan-y",Pt=function(){if(!Et)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){t[i]=!e||r.CSS.supports("touch-action",i)})),t}();function Dt(t,e){this.manager=t,this.set(e)}Dt.prototype={set:function(t){t==It&&(t=this.compute()),Et&&this.manager.element.style&&Pt[t]&&(this.manager.element.style[yt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){A(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(P(t,bt))return bt;var e=P(t,_t),i=P(t,St);if(e&&i)return bt;if(e||i)return e?_t:St;if(P(t,Ct))return Ct;return At}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=P(n,bt)&&!Pt.none,s=P(n,St)&&!Pt["pan-y"],o=P(n,_t)&&!Pt["pan-x"];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&i||o&&i&W?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var wt=32;function xt(t){this.options=h({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Ot(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Rt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Mt(t,e){var i=e.manager;return i?i.get(t):t}function zt(){xt.apply(this,arguments)}function Nt(){zt.apply(this,arguments),this.pX=null,this.pY=null}function Xt(){zt.apply(this,arguments)}function Yt(){xt.apply(this,arguments),this._timer=null,this._input=null}function Ft(){zt.apply(this,arguments)}function kt(){zt.apply(this,arguments)}function Wt(){xt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qt(t,e){return(e=e||{}).recognizers=C(e.recognizers,qt.defaults.preset),new Lt(t,e)}xt.prototype={defaults:{},set:function(t){return h(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(d(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Mt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return d(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(d(t,"requireFailure",this))return this;var e=this.requireFail;return-1===w(e,t=Mt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(d(t,"dropRequireFailure",this))return this;t=Mt(t,this);var e=w(this.requireFail,t);return 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){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+Ot(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+Ot(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=wt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=h({},t);if(!A(this.options.enable,[this,e]))return this.reset(),void(this.state=wt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},E(zt,xt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(8&i||!r)?16|e:n||r?4&i?8|e:2&e?4|e:2:wt}}),E(Nt,zt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(St),t&W&&e.push(_t),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return zt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Rt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),E(Xt,zt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},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)}}),E(Yt,xt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[At]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=v((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return wt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),E(Ft,zt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),E(kt,zt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Nt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction
|
|
||||||
;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Rt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),E(Wt,xt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ct]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&r&&i){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||B(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=v((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return wt},failTimeout:function(){return this._timer=v((function(){this.state=wt}),this.options.interval,this),wt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qt.VERSION="2.0.7",qt.defaults={domEvents:!1,touchAction:It,enable:!0,inputTarget:null,inputClass:null,preset:[[Ft,{enable:!1}],[Xt,{enable:!1},["rotate"]],[kt,{direction:6}],[Nt,{direction:6},["swipe"]],[Wt],[Wt,{event:"doubletap",taps:2},["tap"]],[Yt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Lt(t,e){var i;this.options=h({},qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(X?st:Y?ft:N?dt:tt))(i,U),this.touchAction=new Dt(this,this.options.touchAction),Ht(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ht(t,e){var i,n=t.element;n.style&&(m(t.options.cssProps,(function(r,s){i=R(n.style,s),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}Lt.prototype={set:function(t){return h(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof xt)return t
|
|
||||||
;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(d(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(d(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=w(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var i=this.handlers;return m(D(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==a){var i=this.handlers;return m(D(t),(function(t){e?i[t]&&i[t].splice(w(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=s.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&Ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(qt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:wt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:W,DIRECTION_ALL:30,Manager:Lt,Input:H,TouchAction:Dt,TouchInput:ft,MouseInput:tt,PointerEventInput:st,TouchMouseInput:dt,SingleTouchInput:ut,Recognizer:xt,AttrRecognizer:zt,Tap:Wt,Pan:Nt,Swipe:kt,Pinch:Xt,Rotate:Ft,Press:Yt,on:b,off:_,each:m,merge:y,extend:T,assign:h,inherit:E,bindFn:I,prefixed:R}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=qt,(n=function(){return qt}.call(e,i,e,t))===a||(t.exports=n)}(window,document)}}]);
|
|
||||||
1
charting_library/bundles/1582.0c60a2665496872c6cc1.css
Normal file
1
charting_library/bundles/1582.0c60a2665496872c6cc1.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-aZuU:var(--color-tv-blue-500);--_1-aZuU:var(--color-black)}[data-theme=dark]{--_0-aZuU:var(--color-tv-blue-500);--_1-aZuU:var(--color-cold-gray-300)}.container-QcG0kDOU{align-items:center;cursor:default;display:flex;flex-direction:column;justify-content:center;text-align:center}@media (max-height:440px) and (orientation:landscape){.container-QcG0kDOU{justify-content:flex-start}}.image-QcG0kDOU{margin-bottom:12px}@media (max-height:440px) and (orientation:landscape){.image-QcG0kDOU{display:none}}.title-QcG0kDOU{color:var(--_1-aZuU);font-size:20px;font-weight:700;margin:0 0 16px}.description-QcG0kDOU{color:var(--color-text-primary);font-size:16px;line-height:24px;margin:0}.button-QcG0kDOU{cursor:default;margin-top:24px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-aZuU:var(--color-tv-blue-500);--_1-aZuU:var(--color-black)}[data-theme=dark]{--_0-aZuU:var(--color-tv-blue-500);--_1-aZuU:var(--color-cold-gray-300)}.container-QcG0kDOU{align-items:center;cursor:default;display:flex;flex-direction:column;justify-content:center;text-align:center}@media (max-height:440px) and (orientation:landscape){.container-QcG0kDOU{justify-content:flex-start}}.image-QcG0kDOU{margin-bottom:12px}@media (max-height:440px) and (orientation:landscape){.image-QcG0kDOU{display:none}}.title-QcG0kDOU{color:var(--_1-aZuU);font-size:20px;font-weight:700;margin:0 0 16px}.description-QcG0kDOU{color:var(--color-text-primary);font-size:16px;line-height:24px;margin:0}.button-QcG0kDOU{cursor:default;margin-top:24px}
|
||||||
1
charting_library/bundles/162.84454d9522365162b47f.css
Normal file
1
charting_library/bundles/162.84454d9522365162b47f.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
charting_library/bundles/1644.ec13e683352881af5b51.css
Normal file
1
charting_library/bundles/1644.ec13e683352881af5b51.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.wrapper-hoWtpNyh{align-items:center;display:flex;justify-content:center;position:relative}.isActive-hoWtpNyh{color:var(--tv-color-popup-element-background-active,var(--color-popup-element-background-active))}.isActive-hoWtpNyh:after{background-color:currentColor;content:"";height:4px;inset-inline-end:0;inset-inline-start:0;position:absolute;top:100%}.button-hoWtpNyh{all:unset;align-items:center;display:flex;justify-content:center;position:relative}.button-hoWtpNyh:before{border-radius:4px;content:none;height:100%;inset-inline-start:0;outline:var(--color-tv-blue-500) none 2px;outline-offset:-2px;pointer-events:none;position:absolute;top:0;width:100%}.button-hoWtpNyh:focus-visible:before{content:"";outline-style:solid}.button-hoWtpNyh.isActive-hoWtpNyh{color:var(--tv-color-popup-element-background-active,var(--color-popup-element-background-active))}.wrapper-RXEt_NWz{border-bottom:1px solid var(--tv-color-popup-element-divider-background,var(--color-popup-menu-separator));display:flex;padding:6px 6px 3px}.wrapper-QWmdCZSA{align-items:center;box-sizing:border-box;color:var(--tv-color-popup-element-secondary-text,var(--color-popup-element-secondary-text));display:flex;font-size:11px;height:100%;letter-spacing:.4px;padding-block:6px 0;padding-inline:18px 6px;text-transform:uppercase}.wrapper-MeQD3kFA{align-items:center;border-radius:4px;display:flex;flex-shrink:0;justify-content:center}.button-MeQD3kFA{all:unset;align-items:center;display:flex;justify-content:center;position:relative}.button-MeQD3kFA:before{border-radius:4px;content:none;height:100%;inset-inline-start:0;outline:var(--color-tv-blue-500) none 2px;outline-offset:-2px;pointer-events:none;position:absolute;top:0;width:100%}.button-MeQD3kFA:focus-visible:before{content:"";outline-style:solid}.wrapper-M14KUVdG{align-items:center;display:flex;height:100%;overflow:hidden;padding:0 6px}.emojiItem-M14KUVdG.hovered-M14KUVdG{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}@media (any-hover:hover){.emojiItem-M14KUVdG:hover{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}}.emojiItem-M14KUVdG:active{background-color:var(--tv-color-popup-element-background-hover,var(--color-container-fill-primary-neutral-light))}.list-JPoFARaG{content-visibility:auto;overscroll-behavior:none;padding-bottom:6px;will-change:contents}@media (pointer:fine){@supports (-moz-appearance:none){.list-JPoFARaG{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.list-JPoFARaG::-webkit-scrollbar{height:5px;width:5px}.list-JPoFARaG::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.list-JPoFARaG::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.list-JPoFARaG::-webkit-scrollbar-corner{display:none}}.wrapper-VmCoyMWF{background-color:var(--tv-color-popup-background,var(--color-popup-background));border-radius:6px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.wrapper-hoWtpNyh{align-items:center;display:flex;justify-content:center;position:relative}.isActive-hoWtpNyh{color:var(--tv-color-popup-element-background-active,var(--color-popup-element-background-active))}.isActive-hoWtpNyh:after{background-color:currentColor;content:"";height:4px;inset-inline-end:0;inset-inline-start:0;position:absolute;top:100%}.button-hoWtpNyh{all:unset;align-items:center;display:flex;justify-content:center;position:relative}.button-hoWtpNyh:before{border-radius:4px;content:none;height:100%;inset-inline-start:0;outline:var(--color-tv-blue-500) none 2px;outline-offset:-2px;pointer-events:none;position:absolute;top:0;width:100%}.button-hoWtpNyh:focus-visible:before{content:"";outline-style:solid}.button-hoWtpNyh.isActive-hoWtpNyh{color:var(--tv-color-popup-element-background-active,var(--color-popup-element-background-active))}.wrapper-RXEt_NWz{border-bottom:1px solid var(--tv-color-popup-element-divider-background,var(--color-popup-menu-separator));display:flex;padding:6px 6px 3px}.wrapper-QWmdCZSA{align-items:center;box-sizing:border-box;color:var(--tv-color-popup-element-secondary-text,var(--color-popup-element-secondary-text));display:flex;font-size:11px;height:100%;letter-spacing:.4px;padding-block:6px 0;padding-inline:18px 6px;text-transform:uppercase}.wrapper-MeQD3kFA{align-items:center;border-radius:4px;display:flex;flex-shrink:0;justify-content:center}.button-MeQD3kFA{all:unset;align-items:center;display:flex;justify-content:center;position:relative}.button-MeQD3kFA:before{border-radius:4px;content:none;height:100%;inset-inline-start:0;outline:var(--color-tv-blue-500) none 2px;outline-offset:-2px;pointer-events:none;position:absolute;top:0;width:100%}.button-MeQD3kFA:focus-visible:before{content:"";outline-style:solid}.wrapper-M14KUVdG{align-items:center;display:flex;height:100%;overflow:hidden;padding:0 6px}.emojiItem-M14KUVdG.hovered-M14KUVdG{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}@media (any-hover:hover){.emojiItem-M14KUVdG:hover{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}}.emojiItem-M14KUVdG:active{background-color:var(--tv-color-popup-element-background-hover,var(--color-container-fill-primary-neutral-light))}.list-JPoFARaG{content-visibility:auto;overscroll-behavior:none;padding-bottom:6px;will-change:contents}@media (pointer:fine){@supports (-moz-appearance:none){.list-JPoFARaG{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.list-JPoFARaG::-webkit-scrollbar{height:5px;width:5px}.list-JPoFARaG::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.list-JPoFARaG::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.list-JPoFARaG::-webkit-scrollbar-corner{display:none}}.wrapper-VmCoyMWF{background-color:var(--tv-color-popup-background,var(--color-popup-background));border-radius:6px}
|
||||||
1
charting_library/bundles/1681.0e72d744c5d55b6e5d5e.css
Normal file
1
charting_library/bundles/1681.0e72d744c5d55b6e5d5e.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
charting_library/bundles/1707.35fc60bac7bba7427820.css
Normal file
1
charting_library/bundles/1707.35fc60bac7bba7427820.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-eIjW:var(--color-cold-gray-100);--_1-eIjW:var(--color-cold-gray-150)}[data-theme=dark]{--_0-eIjW:var(--color-cold-gray-800);--_1-eIjW:var(--color-cold-gray-700)}.divider-pzdcWv_c{border:none;border-color:var(--ui-lib-divider-color,var(--ui-lib-button-default-color-border));margin:0}.divider-pzdcWv_c.orientation-horizontal-pzdcWv_c{border-top-style:solid;width:100%}.divider-pzdcWv_c.orientation-vertical-pzdcWv_c{border-inline-start-style:solid;display:inline-block;height:100%;min-height:2ch;vertical-align:sub}.divider-pzdcWv_c.size-xsmall-pzdcWv_c{border-width:1px}.divider-pzdcWv_c.size-small-pzdcWv_c{border-width:2px}.divider-pzdcWv_c.size-medium-pzdcWv_c{border-width:3px}.divider-pzdcWv_c.size-large-pzdcWv_c{border-width:4px}.divider-pzdcWv_c.size-xlarge-pzdcWv_c{border-width:5px}.divider-pzdcWv_c.size-xxlarge-pzdcWv_c{border-width:6px}.divider-pzdcWv_c.type-primary-pzdcWv_c{--ui-lib-button-default-color-border:var(--_1-eIjW)}.divider-pzdcWv_c.type-secondary-pzdcWv_c{--ui-lib-button-default-color-border:var(--_0-eIjW)}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-eIjW:var(--color-cold-gray-100);--_1-eIjW:var(--color-cold-gray-150)}[data-theme=dark]{--_0-eIjW:var(--color-cold-gray-800);--_1-eIjW:var(--color-cold-gray-700)}.divider-pzdcWv_c{border:none;border-color:var(--ui-lib-divider-color,var(--ui-lib-button-default-color-border));margin:0}.divider-pzdcWv_c.orientation-horizontal-pzdcWv_c{border-top-style:solid;width:100%}.divider-pzdcWv_c.orientation-vertical-pzdcWv_c{border-inline-start-style:solid;display:inline-block;height:100%;min-height:2ch;vertical-align:sub}.divider-pzdcWv_c.size-xsmall-pzdcWv_c{border-width:1px}.divider-pzdcWv_c.size-small-pzdcWv_c{border-width:2px}.divider-pzdcWv_c.size-medium-pzdcWv_c{border-width:3px}.divider-pzdcWv_c.size-large-pzdcWv_c{border-width:4px}.divider-pzdcWv_c.size-xlarge-pzdcWv_c{border-width:5px}.divider-pzdcWv_c.size-xxlarge-pzdcWv_c{border-width:6px}.divider-pzdcWv_c.type-primary-pzdcWv_c{--ui-lib-button-default-color-border:var(--_1-eIjW)}.divider-pzdcWv_c.type-secondary-pzdcWv_c{--ui-lib-button-default-color-border:var(--_0-eIjW)}
|
||||||
1
charting_library/bundles/1709.e507a68f9b2c3dd8e614.css
Normal file
1
charting_library/bundles/1709.e507a68f9b2c3dd8e614.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-boS2:var(--color-cold-gray-50);--_1-boS2:var(--color-cold-gray-200);--_2-boS2:var(--color-white);--_3-boS2:var(--color-cold-gray-400);--_4-boS2:var(--color-cold-gray-100);--_5-boS2:var(--color-cold-gray-900)}[data-theme=dark]{--_0-boS2:var(--color-cold-gray-800);--_1-boS2:var(--color-cold-gray-450);--_2-boS2:var(--color-cold-gray-600);--_3-boS2:var(--color-cold-gray-300);--_4-boS2:var(--color-cold-gray-700);--_5-boS2:var(--color-cold-gray-200)}.container-N4SM7hWm{background:var(--_0-boS2);border:1px dashed var(--_1-boS2);border-radius:4px;box-sizing:border-box;cursor:pointer;position:relative}@media (any-hover:hover){.container-N4SM7hWm:hover .textBlockHeadline-N4SM7hWm{color:var(--color-brand)}}.dropzone-N4SM7hWm{display:block;height:100%;position:absolute;width:100%}.textBlock-N4SM7hWm{align-items:center;color:var(--_3-boS2);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;--ui-lib-typography-line-height:21px;--ui-lib-typography-font-size:14px}.textBlock-N4SM7hWm,.textBlockHeadline-N4SM7hWm{font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:400;line-height:var(--ui-lib-typography-line-height)}.textBlockHeadline-N4SM7hWm{color:var(--color-text-primary);margin-bottom:8px;padding:8px;text-align:center;--ui-lib-typography-line-height:24px;--ui-lib-typography-font-size:16px}.textBlockError-N4SM7hWm{color:var(--color-control-intent-danger)}.img-N4SM7hWm{align-items:center;display:flex;height:100%;object-fit:contain;position:absolute;width:100%}.remove-N4SM7hWm{background-color:var(--_2-boS2);border-radius:4px;color:var(--color-text-primary);height:32px;inset-inline-end:6px;top:8px;width:32px}.backdrop-N4SM7hWm,.remove-N4SM7hWm{align-items:center;display:flex;justify-content:center;position:absolute}.backdrop-N4SM7hWm{background-color:var(--_4-boS2);bottom:0;inset-inline-end:0;inset-inline-start:0;text-align:center;top:0}.mainText-N4SM7hWm{color:var(--_5-boS2);font-size:16px;margin-bottom:0}.dialog-Rg1Vw_8R{height:100%;justify-content:space-between}.transparencyTitle-Rg1Vw_8R{align-content:flex-start;font-size:14px;margin-right:auto}.transparencyControl-Rg1Vw_8R{align-content:flex-end;font-size:14px;margin-left:auto;width:180px}.transparencyWrap-Rg1Vw_8R{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;margin-bottom:24px;padding:10px 0;width:100%}.column-Rg1Vw_8R{display:flex;flex-direction:column;margin-top:10px}.dropzone-Rg1Vw_8R{height:190px;margin-top:8px;max-width:340px}.content-Rg1Vw_8R{height:100%;overflow:auto;padding:0 20px}@media (pointer:fine){@supports (-moz-appearance:none){.content-Rg1Vw_8R{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.content-Rg1Vw_8R::-webkit-scrollbar{height:5px;width:5px}.content-Rg1Vw_8R::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.content-Rg1Vw_8R::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-Rg1Vw_8R::-webkit-scrollbar-corner{display:none}}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-boS2:var(--color-cold-gray-50);--_1-boS2:var(--color-cold-gray-200);--_2-boS2:var(--color-white);--_3-boS2:var(--color-cold-gray-400);--_4-boS2:var(--color-cold-gray-100);--_5-boS2:var(--color-cold-gray-900)}[data-theme=dark]{--_0-boS2:var(--color-cold-gray-800);--_1-boS2:var(--color-cold-gray-450);--_2-boS2:var(--color-cold-gray-600);--_3-boS2:var(--color-cold-gray-300);--_4-boS2:var(--color-cold-gray-700);--_5-boS2:var(--color-cold-gray-200)}.container-N4SM7hWm{background:var(--_0-boS2);border:1px dashed var(--_1-boS2);border-radius:4px;box-sizing:border-box;cursor:pointer;position:relative}@media (any-hover:hover){.container-N4SM7hWm:hover .textBlockHeadline-N4SM7hWm{color:var(--color-brand)}}.dropzone-N4SM7hWm{display:block;height:100%;position:absolute;width:100%}.textBlock-N4SM7hWm{align-items:center;color:var(--_3-boS2);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;--ui-lib-typography-line-height:21px;--ui-lib-typography-font-size:14px}.textBlock-N4SM7hWm,.textBlockHeadline-N4SM7hWm{font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:400;line-height:var(--ui-lib-typography-line-height)}.textBlockHeadline-N4SM7hWm{color:var(--color-text-primary);margin-bottom:8px;padding:8px;text-align:center;--ui-lib-typography-line-height:24px;--ui-lib-typography-font-size:16px}.textBlockError-N4SM7hWm{color:var(--color-control-intent-danger)}.img-N4SM7hWm{align-items:center;display:flex;height:100%;object-fit:contain;position:absolute;width:100%}.remove-N4SM7hWm{background-color:var(--_2-boS2);border-radius:4px;color:var(--color-text-primary);height:32px;inset-inline-end:6px;top:8px;width:32px}.backdrop-N4SM7hWm,.remove-N4SM7hWm{align-items:center;display:flex;justify-content:center;position:absolute}.backdrop-N4SM7hWm{background-color:var(--_4-boS2);bottom:0;inset-inline-end:0;inset-inline-start:0;text-align:center;top:0}.mainText-N4SM7hWm{color:var(--_5-boS2);font-size:16px;margin-bottom:0}.dialog-Rg1Vw_8R{height:100%;justify-content:space-between}.transparencyTitle-Rg1Vw_8R{align-content:flex-start;font-size:14px;margin-left:auto}.transparencyControl-Rg1Vw_8R{align-content:flex-end;font-size:14px;margin-right:auto;width:180px}.transparencyWrap-Rg1Vw_8R{align-content:center;align-items:center;display:flex;flex-flow:row nowrap;justify-content:center;margin-bottom:24px;padding:10px 0;width:100%}.column-Rg1Vw_8R{display:flex;flex-direction:column;margin-top:10px}.dropzone-Rg1Vw_8R{height:190px;margin-top:8px;max-width:340px}.content-Rg1Vw_8R{height:100%;overflow:auto;padding:0 20px}@media (pointer:fine){@supports (-moz-appearance:none){.content-Rg1Vw_8R{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.content-Rg1Vw_8R::-webkit-scrollbar{height:5px;width:5px}.content-Rg1Vw_8R::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.content-Rg1Vw_8R::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-Rg1Vw_8R::-webkit-scrollbar-corner{display:none}}
|
||||||
@@ -1 +0,0 @@
|
|||||||
.tv-circle-logo-pair-ocURKVwI{display:inline-block;position:relative}.tv-circle-logo-pair--xxxxsmall-ocURKVwI{height:20px;width:20px}.tv-circle-logo-pair--xxxsmall-ocURKVwI{height:18px;width:18px}.tv-circle-logo-pair--xxsmall-ocURKVwI{height:20px;width:20px}.tv-circle-logo-pair--xsmall-ocURKVwI{height:24px;width:24px}.tv-circle-logo-pair--small-ocURKVwI{height:28px;width:28px}.tv-circle-logo-pair--medium-ocURKVwI{height:36px;width:36px}.tv-circle-logo-pair--large-ocURKVwI{height:48px;width:48px}.tv-circle-logo-pair--xlarge-ocURKVwI{height:56px;width:56px}.tv-circle-logo-pair--xxlarge-ocURKVwI{height:112px;width:112px}.tv-circle-logo-pair--xxxlarge-ocURKVwI{height:168px;width:168px}.tv-circle-logo-pair--xxxxsmall-ocURKVwI{height:12px}.tv-circle-logo-pair__logo-ocURKVwI{border-radius:50%}.tv-circle-logo-pair__logo-ocURKVwI:not(img){background-color:var(--themed-color-circle-logo-background,#e0e3eb)}html.theme-dark .tv-circle-logo-pair__logo-ocURKVwI:not(img){background-color:var(--themed-color-circle-logo-background,#2a2e39)}.tv-circle-logo-pair__logo-ocURKVwI:first-child,.tv-circle-logo-pair__logo-ocURKVwI:last-child{position:absolute;right:0;top:0}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:first-child{clip-path:path("M3.74882 11.5634C5.14239 10.1236 6 8.16198 6 6C6 3.83802 5.14239 1.87635 3.74882 0.436617C4.44396 0.155056 5.20387 -5.94136e-07 6 -5.24537e-07C9.31371 -2.34843e-07 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C5.20387 12 4.44396 11.8449 3.74882 11.5634Z")}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI:first-child{clip-path:path("M12 0H0v4a8 8 0 0 1 8 8h4V0Z")}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI:last-child{transform:translate(-6px,6px)}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI:first-child{clip-path:path("M12 0H0v6.254A8 8 0 0 1 5.746 12H12Z")}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--xsmall-ocURKVwI{height:16px;width:16px}.tv-circle-logo-pair__logo--xsmall-ocURKVwI:first-child{clip-path:path("M16 8A8 8 0 0 0 .3 6a10 10 0 0 1 9.7 9.7A8 8 0 0 0 16 8Z")}.tv-circle-logo-pair__logo--xsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--small-ocURKVwI{height:18px;width:18px}.tv-circle-logo-pair__logo--small-ocURKVwI:first-child{clip-path:path("M18 0H0v8.04A11 11 0 0 1 9.96 18H18V0Z")}.tv-circle-logo-pair__logo--small-ocURKVwI:last-child{transform:translate(-10px,10px)}.tv-circle-logo-pair__logo--medium-ocURKVwI{height:24px;width:24px}.tv-circle-logo-pair__logo--medium-ocURKVwI:first-child{clip-path:path("M24 0H0v10c8 0 14 6 14 14h10V0Z")}.tv-circle-logo-pair__logo--medium-ocURKVwI:last-child{transform:translate(-12px,12px)}.tv-circle-logo-pair__logo--large-ocURKVwI{height:32px;width:32px}.tv-circle-logo-pair__logo--large-ocURKVwI:first-child{clip-path:path("M32 0H0v14a18 18 0 0 1 18 18h14V0Z")}.tv-circle-logo-pair__logo--large-ocURKVwI:last-child{transform:translate(-16px,16px)}.tv-circle-logo-pair__logo--xlarge-ocURKVwI{height:38px;width:38px}.tv-circle-logo-pair__logo--xlarge-ocURKVwI:first-child{clip-path:path("M38 0H0v16.02L1 16a21 21 0 0 1 20.98 22H38V0Z")}.tv-circle-logo-pair__logo--xlarge-ocURKVwI:last-child{transform:translate(-18px,18px)}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI{height:76px;width:76px}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI:first-child{clip-path:path("M76 0H0v32.05A42 42 0 0 1 43.95 76H76V0Z")}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI:last-child{transform:translate(-36px,36px)}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI{height:114px;width:114px}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI:first-child{clip-path:path("M113 0H0V48c35-1 66 26 66 66v0h48V0Z")}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI:last-child{transform:translate(-54px,54px)}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:last-child{transform:translate(-8px)}.tv-circle-logo-pair__logo-empty-ocURKVwI{background-image:url(empty-coin-light.6d0b731ac6f489f06e65.svg);background-size:contain}html.theme-dark .tv-circle-logo-pair__logo-empty-ocURKVwI{background-image:url(empty-coin-dark.d6d07bff92d7e4dff5ad.svg)}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.tv-circle-logo-pair-ocURKVwI{display:inline-block;position:relative}.tv-circle-logo-pair--xxxxsmall-ocURKVwI{height:20px;width:20px}.tv-circle-logo-pair--xxxsmall-ocURKVwI{height:18px;width:18px}.tv-circle-logo-pair--xxsmall-ocURKVwI{height:20px;width:20px}.tv-circle-logo-pair--xsmall-ocURKVwI{height:24px;width:24px}.tv-circle-logo-pair--small-ocURKVwI{height:28px;width:28px}.tv-circle-logo-pair--medium-ocURKVwI{height:36px;width:36px}.tv-circle-logo-pair--large-ocURKVwI{height:48px;width:48px}.tv-circle-logo-pair--xlarge-ocURKVwI{height:56px;width:56px}.tv-circle-logo-pair--xxlarge-ocURKVwI{height:112px;width:112px}.tv-circle-logo-pair--xxxlarge-ocURKVwI{height:168px;width:168px}.tv-circle-logo-pair--xxxxsmall-ocURKVwI{height:12px}.tv-circle-logo-pair__logo-ocURKVwI{border-radius:50%}.tv-circle-logo-pair__logo-ocURKVwI:not(img){background-color:var(--themed-color-circle-logo-background,#e0e3eb)}html.theme-dark .tv-circle-logo-pair__logo-ocURKVwI:not(img){background-color:var(--themed-color-circle-logo-background,#2a2e39)}.tv-circle-logo-pair__logo-ocURKVwI:first-child,.tv-circle-logo-pair__logo-ocURKVwI:last-child{position:absolute;right:0;top:0}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:first-child{clip-path:path("M3.74882 11.5634C5.14239 10.1236 6 8.16198 6 6C6 3.83802 5.14239 1.87635 3.74882 0.436617C4.44396 0.155056 5.20387 -5.94136e-07 6 -5.24537e-07C9.31371 -2.34843e-07 12 2.68629 12 6C12 9.31371 9.31371 12 6 12C5.20387 12 4.44396 11.8449 3.74882 11.5634Z")}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI:first-child{clip-path:path("M12 0H0v4a8 8 0 0 1 8 8h4V0Z")}.tv-circle-logo-pair__logo--xxxsmall-ocURKVwI:last-child{transform:translate(-6px,6px)}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI{height:12px;width:12px}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI:first-child{clip-path:path("M12 0H0v6.254A8 8 0 0 1 5.746 12H12Z")}.tv-circle-logo-pair__logo--xxsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--xsmall-ocURKVwI{height:16px;width:16px}.tv-circle-logo-pair__logo--xsmall-ocURKVwI:first-child{clip-path:path("M16 8A8 8 0 0 0 .3 6a10 10 0 0 1 9.7 9.7A8 8 0 0 0 16 8Z")}.tv-circle-logo-pair__logo--xsmall-ocURKVwI:last-child{transform:translate(-8px,8px)}.tv-circle-logo-pair__logo--small-ocURKVwI{height:18px;width:18px}.tv-circle-logo-pair__logo--small-ocURKVwI:first-child{clip-path:path("M18 0H0v8.04A11 11 0 0 1 9.96 18H18V0Z")}.tv-circle-logo-pair__logo--small-ocURKVwI:last-child{transform:translate(-10px,10px)}.tv-circle-logo-pair__logo--medium-ocURKVwI{height:24px;width:24px}.tv-circle-logo-pair__logo--medium-ocURKVwI:first-child{clip-path:path("M24 0H0v10c8 0 14 6 14 14h10V0Z")}.tv-circle-logo-pair__logo--medium-ocURKVwI:last-child{transform:translate(-12px,12px)}.tv-circle-logo-pair__logo--large-ocURKVwI{height:32px;width:32px}.tv-circle-logo-pair__logo--large-ocURKVwI:first-child{clip-path:path("M32 0H0v14a18 18 0 0 1 18 18h14V0Z")}.tv-circle-logo-pair__logo--large-ocURKVwI:last-child{transform:translate(-16px,16px)}.tv-circle-logo-pair__logo--xlarge-ocURKVwI{height:38px;width:38px}.tv-circle-logo-pair__logo--xlarge-ocURKVwI:first-child{clip-path:path("M38 0H0v16.02L1 16a21 21 0 0 1 20.98 22H38V0Z")}.tv-circle-logo-pair__logo--xlarge-ocURKVwI:last-child{transform:translate(-18px,18px)}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI{height:76px;width:76px}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI:first-child{clip-path:path("M76 0H0v32.05A42 42 0 0 1 43.95 76H76V0Z")}.tv-circle-logo-pair__logo--xxlarge-ocURKVwI:last-child{transform:translate(-36px,36px)}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI{height:114px;width:114px}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI:first-child{clip-path:path("M113 0H0V48c35-1 66 26 66 66v0h48V0Z")}.tv-circle-logo-pair__logo--xxxlarge-ocURKVwI:last-child{transform:translate(-54px,54px)}.tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI:last-child{transform:translate(8px)}.tv-circle-logo-pair__logo-empty-ocURKVwI{background-image:url(empty-coin-light.6d0b731ac6f489f06e65.svg);background-size:contain}html.theme-dark .tv-circle-logo-pair__logo-empty-ocURKVwI{background-image:url(empty-coin-dark.d6d07bff92d7e4dff5ad.svg)}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.wrap-HAxAr6QG{align-items:center;display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;padding-bottom:54px;padding-top:24px}@media screen and (max-height:430px) and (orientation:landscape){.wrap-HAxAr6QG{justify-content:flex-start}.image-HAxAr6QG{display:none}}.text-HAxAr6QG{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-style:normal;--ui-lib-typography-font-size:18px;font-size:var(--ui-lib-typography-font-size);font-weight:400;--ui-lib-typography-line-height:28px;color:var(--themed-color-empty-state-text,#131722);cursor:default;line-height:var(--ui-lib-typography-line-height)}html.theme-dark .text-HAxAr6QG{color:var(--themed-color-empty-state-text,#d1d4dc)}.item-nuuDM7vP{align-items:center;cursor:default;display:flex;padding-left:8px}.item-nuuDM7vP.big-nuuDM7vP,.item-nuuDM7vP.normal-nuuDM7vP{height:40px}.item-nuuDM7vP.selected-nuuDM7vP{background-color:var(--themed-color-item-selected,#bbd9fb)}@media (any-hover:hover){.item-nuuDM7vP.selected-nuuDM7vP:hover{background-color:var(--themed-color-item-selected,#bbd9fb)}}html.theme-dark .item-nuuDM7vP.selected-nuuDM7vP{background-color:var(--themed-color-item-selected,#142e61)}@media (any-hover:hover){html.theme-dark .item-nuuDM7vP.selected-nuuDM7vP:hover{background-color:var(--themed-color-item-selected,#142e61)}}.contentCell-nuuDM7vP{width:100%}.content-nuuDM7vP{display:flex;max-width:480px;padding-left:8px}.favourite-nuuDM7vP{margin-left:8px}.iconCell-nuuDM7vP{min-width:36px}.icon-nuuDM7vP{margin-left:8px;padding-left:0}.checkboxInput-nuuDM7vP{height:18px;margin-left:8px;padding:5px;width:18px}.label-nuuDM7vP{white-space:normal;word-break:break-word}.section-Og4Rg_SK{border-bottom:1px solid var(--themed-color-divider,#e0e3eb);margin-top:6px;width:100%}html.theme-dark .section-Og4Rg_SK{border-bottom:1px solid var(--themed-color-divider,#434651)}.section-Og4Rg_SK:last-child{margin-bottom:5px}.section-Og4Rg_SK:last-child,html.theme-dark .section-Og4Rg_SK:last-child{border-bottom:1px solid var(--themed-color-static-transparent,#0000)}.heading-Og4Rg_SK{box-sizing:border-box;color:var(--themed-color-default-gray,#6a6d78);cursor:default;font-size:11px;height:34px;line-height:16px;padding:8px 20px;text-transform:uppercase}html.theme-dark .heading-Og4Rg_SK{color:var(--themed-color-default-gray,#868993)}.dialog-UAy2ZKyS{height:680px;width:480px}@media screen and (max-width:480px){.dialog-UAy2ZKyS{width:100%}}.wrap-UAy2ZKyS{display:flex;flex-flow:column;height:100%;overflow-y:auto}@media (pointer:fine){@supports (-moz-appearance:none){.wrap-UAy2ZKyS{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .wrap-UAy2ZKyS{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.wrap-UAy2ZKyS::-webkit-scrollbar{height:5px;width:5px}.wrap-UAy2ZKyS::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .wrap-UAy2ZKyS::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.wrap-UAy2ZKyS::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrap-UAy2ZKyS::-webkit-scrollbar-corner{display:none}}.empty-UAy2ZKyS{align-items:center;box-sizing:border-box;color:var(--themed-color-empty-state-text,#131722);display:flex;flex-flow:column;font-size:16px;height:100%;justify-content:center;line-height:24px;padding:24px}html.theme-dark .empty-UAy2ZKyS{color:var(--themed-color-empty-state-text,#d1d4dc)}.image-UAy2ZKyS{padding-bottom:8px}.emptyState-UAy2ZKyS{padding:0 20px}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.wrap-HAxAr6QG{align-items:center;display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;padding-bottom:54px;padding-top:24px}@media screen and (max-height:430px) and (orientation:landscape){.wrap-HAxAr6QG{justify-content:flex-start}.image-HAxAr6QG{display:none}}.text-HAxAr6QG{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-style:normal;--ui-lib-typography-font-size:18px;font-size:var(--ui-lib-typography-font-size);font-weight:400;--ui-lib-typography-line-height:28px;color:var(--themed-color-empty-state-text,#131722);cursor:default;line-height:var(--ui-lib-typography-line-height)}html.theme-dark .text-HAxAr6QG{color:var(--themed-color-empty-state-text,#d1d4dc)}.item-nuuDM7vP{align-items:center;cursor:default;display:flex;padding-right:8px}.item-nuuDM7vP.big-nuuDM7vP,.item-nuuDM7vP.normal-nuuDM7vP{height:40px}.item-nuuDM7vP.selected-nuuDM7vP{background-color:var(--themed-color-item-selected,#bbd9fb)}@media (any-hover:hover){.item-nuuDM7vP.selected-nuuDM7vP:hover{background-color:var(--themed-color-item-selected,#bbd9fb)}}html.theme-dark .item-nuuDM7vP.selected-nuuDM7vP{background-color:var(--themed-color-item-selected,#142e61)}@media (any-hover:hover){html.theme-dark .item-nuuDM7vP.selected-nuuDM7vP:hover{background-color:var(--themed-color-item-selected,#142e61)}}.contentCell-nuuDM7vP{width:100%}.content-nuuDM7vP{display:flex;max-width:480px;padding-right:8px}.favourite-nuuDM7vP{margin-right:8px}.iconCell-nuuDM7vP{min-width:36px}.icon-nuuDM7vP{margin-right:8px;padding-right:0}.checkboxInput-nuuDM7vP{height:18px;margin-right:8px;padding:5px;width:18px}.label-nuuDM7vP{white-space:normal;word-break:break-word}.section-Og4Rg_SK{border-bottom:1px solid var(--themed-color-divider,#e0e3eb);margin-top:6px;width:100%}html.theme-dark .section-Og4Rg_SK{border-bottom:1px solid var(--themed-color-divider,#434651)}.section-Og4Rg_SK:last-child{margin-bottom:5px}.section-Og4Rg_SK:last-child,html.theme-dark .section-Og4Rg_SK:last-child{border-bottom:1px solid var(--themed-color-static-transparent,#0000)}.heading-Og4Rg_SK{box-sizing:border-box;color:var(--themed-color-default-gray,#6a6d78);cursor:default;font-size:11px;height:34px;line-height:16px;padding:8px 20px;text-transform:uppercase}html.theme-dark .heading-Og4Rg_SK{color:var(--themed-color-default-gray,#868993)}.dialog-UAy2ZKyS{height:680px;width:480px}@media screen and (max-width:480px){.dialog-UAy2ZKyS{width:100%}}.wrap-UAy2ZKyS{display:flex;flex-flow:column;height:100%;overflow-y:auto}@media (pointer:fine){@supports (-moz-appearance:none){.wrap-UAy2ZKyS{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .wrap-UAy2ZKyS{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.wrap-UAy2ZKyS::-webkit-scrollbar{height:5px;width:5px}.wrap-UAy2ZKyS::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .wrap-UAy2ZKyS::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.wrap-UAy2ZKyS::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrap-UAy2ZKyS::-webkit-scrollbar-corner{display:none}}.empty-UAy2ZKyS{align-items:center;box-sizing:border-box;color:var(--themed-color-empty-state-text,#131722);display:flex;flex-flow:column;font-size:16px;height:100%;justify-content:center;line-height:24px;padding:24px}html.theme-dark .empty-UAy2ZKyS{color:var(--themed-color-empty-state-text,#d1d4dc)}.image-UAy2ZKyS{padding-bottom:8px}.emptyState-UAy2ZKyS{padding:0 20px}
|
|
||||||
31
charting_library/bundles/1829.eb0f7607dcf825a91647.js
Normal file
31
charting_library/bundles/1829.eb0f7607dcf825a91647.js
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1829],{56138:e=>{e.exports={wrapper:"wrapper-VB9J73Gf",focused:"focused-VB9J73Gf",readonly:"readonly-VB9J73Gf",disabled:"disabled-VB9J73Gf","size-small":"size-small-VB9J73Gf","size-medium":"size-medium-VB9J73Gf","size-large":"size-large-VB9J73Gf","font-size-small":"font-size-small-VB9J73Gf","font-size-medium":"font-size-medium-VB9J73Gf","font-size-large":"font-size-large-VB9J73Gf","border-none":"border-none-VB9J73Gf",shadow:"shadow-VB9J73Gf","border-thin":"border-thin-VB9J73Gf","border-thick":"border-thick-VB9J73Gf","intent-default":"intent-default-VB9J73Gf","intent-success":"intent-success-VB9J73Gf","intent-warning":"intent-warning-VB9J73Gf","intent-danger":"intent-danger-VB9J73Gf","intent-primary":"intent-primary-VB9J73Gf","corner-top-left":"corner-top-left-VB9J73Gf","corner-top-right":"corner-top-right-VB9J73Gf","corner-bottom-right":"corner-bottom-right-VB9J73Gf","corner-bottom-left":"corner-bottom-left-VB9J73Gf",childrenContainer:"childrenContainer-VB9J73Gf"}},28733:e=>{e.exports={defaultSelect:"defaultSelect-OM7V5ndi"}},64995:e=>{e.exports={itemWrap:"itemWrap-srH7jxJB",item:"item-srH7jxJB",icon:"icon-srH7jxJB",selected:"selected-srH7jxJB",label:"label-srH7jxJB"}},53787:e=>{e.exports={lineEndSelect:"lineEndSelect-gw7ESiZg",right:"right-gw7ESiZg"}},66787:e=>{e.exports={lineStyleSelect:"lineStyleSelect-GcXENVb4",multipleStyles:"multipleStyles-GcXENVb4"}},20443:e=>{e.exports={lineWidthSelect:"lineWidthSelect-EUDB1YgB",bar:"bar-EUDB1YgB",isActive:"isActive-EUDB1YgB",item:"item-EUDB1YgB"}},3923:e=>{e.exports={container:"container-dhpv13DH",active:"active-dhpv13DH",disabled:"disabled-dhpv13DH",icon:"icon-dhpv13DH"}},87025:e=>{e.exports={wrap:"wrap-b6_0ORMg",disabled:"disabled-b6_0ORMg"}},38343:e=>{e.exports={checkboxWrapper:"checkboxWrapper-tHySGrzM"}},74457:e=>{e.exports={checkbox:"checkbox-hpyVsWoD",container:"container-hpyVsWoD",hintButton:"hintButton-hpyVsWoD",description:"description-hpyVsWoD"}},20438:e=>{e.exports={dropdown:"dropdown-gZlS9p6t",dropdownMenu:"dropdownMenu-gZlS9p6t",gradientColor:"gradientColor-gZlS9p6t",lineWidthSelect:"lineWidthSelect-gZlS9p6t"}},59177:e=>{e.exports={row:"row-nGXZ4vJz",empty:"empty-nGXZ4vJz",noMargins:"noMargins-nGXZ4vJz",wrap:"wrap-nGXZ4vJz",breakpointNormal:"breakpointNormal-nGXZ4vJz",breakpointMedium:"breakpointMedium-nGXZ4vJz",breakpointSmall:"breakpointSmall-nGXZ4vJz"}},5643:e=>{e.exports={coordinates:"coordinates-mb1bDWNb",input:"input-mb1bDWNb",selectionCoordinates:"selectionCoordinates-mb1bDWNb",selectionCoordinates__inputs:"selectionCoordinates__inputs-mb1bDWNb",selectionCoordinates__description:"selectionCoordinates__description-mb1bDWNb",hintButton:"hintButton-mb1bDWNb"}},41027:e=>{e.exports={wrapper:"wrapper-NVcHMTVy",checkbox:"checkbox-NVcHMTVy",colorSelect:"colorSelect-NVcHMTVy",hintButton:"hintButton-NVcHMTVy"}},22419:e=>{e.exports={withoutPadding:"withoutPadding-KtEcG0Q0"}},42830:e=>{e.exports={input:"input-mIsHGNhw",control:"control-mIsHGNhw",item:"item-mIsHGNhw",cell:"cell-mIsHGNhw",
|
||||||
|
fragmentCell:"fragmentCell-mIsHGNhw",largeWidth:"largeWidth-mIsHGNhw",withTitle:"withTitle-mIsHGNhw",title:"title-mIsHGNhw",hidden:"hidden-mIsHGNhw"}},58653:e=>{e.exports={line:"line-j5rMaiWF",control:"control-j5rMaiWF",valueInput:"valueInput-j5rMaiWF",valueUnit:"valueUnit-j5rMaiWF",input:"input-j5rMaiWF"}},42683:e=>{e.exports={unit:"unit-ZtRdVxiD",input:"input-ZtRdVxiD",normal:"normal-ZtRdVxiD",big:"big-ZtRdVxiD",dropdown:"dropdown-ZtRdVxiD",dropdownMenu:"dropdownMenu-ZtRdVxiD"}},93107:e=>{e.exports={numberChildInput:"numberChildInput-F77bfoWJ",numberChildInput_width_normal:"numberChildInput_width_normal-F77bfoWJ",numberChildInput_width_big:"numberChildInput_width_big-F77bfoWJ",optionalSetChild:"optionalSetChild-F77bfoWJ",dropdown:"dropdown-F77bfoWJ",dropdown_width_normal:"dropdown_width_normal-F77bfoWJ",dropdown_width_big:"dropdown_width_big-F77bfoWJ",dropdown__menu:"dropdown__menu-F77bfoWJ",dropdown__menu_width_normal:"dropdown__menu_width_normal-F77bfoWJ",dropdown__menu_width_big:"dropdown__menu_width_big-F77bfoWJ"}},60039:e=>{e.exports={optionalTwoColors:"optionalTwoColors-LDRcAXEV",colorPicker:"colorPicker-LDRcAXEV",dropdown:"dropdown-LDRcAXEV",dropdownMenu:"dropdownMenu-LDRcAXEV"}},49107:e=>{e.exports={dropdown:"dropdown-RxdEkbF0",normal:"normal-RxdEkbF0",big:"big-RxdEkbF0",dropdownMenu:"dropdownMenu-RxdEkbF0"}},28023:e=>{e.exports={range:"range-GLEBGed4",valueInput:"valueInput-GLEBGed4",rangeSlider:"rangeSlider-GLEBGed4",rangeSlider_mixed:"rangeSlider_mixed-GLEBGed4",input:"input-GLEBGed4",hintButton:"hintButton-GLEBGed4"}},18923:e=>{e.exports={select:"select-hJtsYZ3G",preContent:"preContent-hJtsYZ3G",normal:"normal-hJtsYZ3G",big:"big-hJtsYZ3G",dropdownMenu:"dropdownMenu-hJtsYZ3G",wrap:"wrap-hJtsYZ3G",colorsWrap:"colorsWrap-hJtsYZ3G"}},57471:e=>{e.exports={colorPicker:"colorPicker-VK3h8amb",fontStyleButton:"fontStyleButton-VK3h8amb",dropdown:"dropdown-VK3h8amb",dropdownMenu:"dropdownMenu-VK3h8amb",hintButton:"hintButton-VK3h8amb",title:"title-VK3h8amb"}},52907:e=>{e.exports={twoColors:"twoColors-C2hZXnYv",colorPicker:"colorPicker-C2hZXnYv"}},11019:e=>{e.exports={dropdown:"dropdown-eLkGg0Ft",menu:"menu-eLkGg0Ft"}},27094:e=>{e.exports={button:"button-tFul0OhX","button-children":"button-children-tFul0OhX",hiddenArrow:"hiddenArrow-tFul0OhX",invisibleFocusHandler:"invisibleFocusHandler-tFul0OhX"}},74237:e=>{e.exports={buttonWrap:"buttonWrap-icygBqe7",desktopSize:"desktopSize-icygBqe7",drawer:"drawer-icygBqe7",menuBox:"menuBox-icygBqe7"}},51075:e=>{e.exports={btnContent:"btnContent-ivexqeZZ",contentPart:"contentPart-ivexqeZZ"}},42785:e=>{e.exports={placeholder:"placeholder-V6ceS6BN"}},85739:e=>{e.exports={checkbox:"checkbox-aOSYFxuH"}},94205:e=>{e.exports={range:"range-mFgGeMmT",disabled:"disabled-mFgGeMmT",rangeSlider:"rangeSlider-mFgGeMmT",rangeSliderMiddleWrap:"rangeSliderMiddleWrap-mFgGeMmT",rangeSliderMiddle:"rangeSliderMiddle-mFgGeMmT",dragged:"dragged-mFgGeMmT",pointer:"pointer-mFgGeMmT",rangePointerWrap:"rangePointerWrap-mFgGeMmT"}},36779:e=>{e.exports={button:"button-iLKiGOdQ",hovered:"hovered-iLKiGOdQ",
|
||||||
|
disabled:"disabled-iLKiGOdQ",focused:"focused-iLKiGOdQ",active:"active-iLKiGOdQ",hidden:"hidden-iLKiGOdQ"}},70670:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>i});var o=n(59654);function i(e){const{intent:t,highlight:n,...i}=e,{isFocused:r,...a}=(0,o.useDisclosure)(i);return{...a,isFocused:r,highlight:n??r,intent:t??(r?"primary":"default")}}},66728:(e,t,n)=>{"use strict";n.d(t,{FontSizeSelect:()=>c});var o=n(79474),i=n(14487),r=n.n(i),a=n(28986),l=n(40197),s=n(28733);function c(e){const{id:t,fontSize:n,fontSizes:i=[],className:c,disabled:d,fontSizeChange:u}=e;return o.createElement(a.Select,{id:t,disabled:d,className:r()(c,s.defaultSelect),menuClassName:s.defaultSelect,items:(p=i,p.map((e=>({value:e.value,content:e.title})))),value:n,onChange:u,...(0,l.filterDataProps)(e)});var p}},72958:(e,t,n)=>{"use strict";n.d(t,{DisplayItem:()=>d,DropItem:()=>u,IconDropdown:()=>c});var o=n(79474),i=n(14487),r=n.n(i),a=n(28986),l=n(66334),s=n(64995);function c(e){const{menuItemClassName:t,...n}=e;return o.createElement(a.Select,{...n,menuItemClassName:r()(t,s.itemWrap)})}function d(e){return o.createElement("div",{className:r()(s.item,s.selected,e.className)},o.createElement(l.Icon,{className:s.icon,icon:e.icon}))}function u(e){return o.createElement("div",{className:s.item},o.createElement(l.Icon,{className:r()(s.icon,e.iconClassName),icon:e.icon}),o.createElement("div",{className:s.label},e.label))}},12091:(e,t,n)=>{"use strict";n.d(t,{defaultLineStyleItems:()=>c,lineStyleItemValues:()=>s});var o=n(60135),i=n(80140),r=n(85658),a=n(1018),l=n(26317);const s=[{type:i.LINESTYLE_SOLID,icon:r,label:o.t(null,void 0,n(27912))},{type:i.LINESTYLE_DASHED,icon:a,label:o.t(null,void 0,n(98847))},{type:i.LINESTYLE_DOTTED,icon:l,label:o.t(null,void 0,n(33987))}],c=s.map((e=>e.type))},68814:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>d});var o=n(79474),i=n(14487),r=n.n(i),a=n(72958),l=n(12091),s=n(51528),c=n(66787);class d extends o.PureComponent{render(){const{id:e,lineStyle:t,className:n,lineStyleChange:i,disabled:d,additionalItems:u,allowedLineStyles:p}=this.props;let m=function(e){let t=[...l.lineStyleItemValues];return void 0!==e&&(t=t.filter((t=>e.includes(t.type)))),t.map((e=>({value:e.type,selectedContent:o.createElement(a.DisplayItem,{icon:e.icon}),content:o.createElement(a.DropItem,{icon:e.icon,label:e.label})})))}(p);return u&&(m=[{readonly:!0,content:u},...m]),o.createElement(a.IconDropdown,{id:e,disabled:d,className:r()(c.lineStyleSelect,n),hideArrowButton:!0,items:m,value:t,onChange:i,"data-name":"line-style-select",addPlaceholderToItems:!1,placeholder:o.createElement(a.DisplayItem,{icon:s,className:c.multipleStyles})})}}},81264:(e,t,n)=>{"use strict";n.d(t,{Transparency:()=>s});var o=n(79474),i=n(14487),r=n(71691),a=n(11284),l=n(87025);function s(e){const{value:t,disabled:n,onChange:s,className:c}=e;return o.createElement("div",{className:i(l.wrap,c,{[l.disabled]:n})},o.createElement(r.Opacity,{hideInput:!0,color:a.colorsPalette["color-tv-blue-500"],opacity:1-t/100,onChange:function(e){n||s(100-100*e)},disabled:n
|
||||||
|
}))}},28390:(e,t,n)=>{"use strict";n.d(t,{useActiveDescendant:()=>r});var o=n(79474),i=n(73064);function r(e,t=[]){const[n,r]=(0,o.useState)(!1),a=(0,i.useFunctionalRefObject)(e);return(0,o.useLayoutEffect)((()=>{const e=a.current;if(null===e)return;const t=e=>{switch(e.type){case"active-descendant-focus":r(!0);break;case"active-descendant-blur":r(!1)}};return e.addEventListener("active-descendant-focus",t),e.addEventListener("active-descendant-blur",t),()=>{e.removeEventListener("active-descendant-focus",t),e.removeEventListener("active-descendant-blur",t)}}),t),[a,n]}},58530:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>o.useWatchedValueReadonly});var o=n(57069)},13146:(e,t,n)=>{"use strict";n.d(t,{LineStyleSelect:()=>a});var o=n(79474),i=n(68814),r=n(1556);function a(e){const{property:t}=e,[n,a]=(0,r.useDefinitionProperty)({property:t});return o.createElement(i.LineStyleSelect,{...e,lineStyle:n,lineStyleChange:a})}},97367:(e,t,n)=>{"use strict";n.d(t,{LineWidthSelect:()=>d});var o=n(79474),i=n(14487),r=n(28986),a=n(20443);const l=[1,2,3,4];function s(e){const{id:t,value:n,items:s=l,disabled:c,onChange:d,className:u}=e;return o.createElement(r.Select,{id:t,disabled:c,hideArrowButton:!0,className:i(a.lineWidthSelect,u),items:(p=s,p.map((e=>({value:e,selectedContent:m(e,!0),content:m(e)})))),value:n,onChange:d,"data-name":"line-width-select"});var p;function m(e,t){const r={borderTopWidth:e};return o.createElement("div",{className:a.item},o.createElement("div",{className:i(a.bar,{[a.isActive]:e===n&&!t}),style:r}," "))}}var c=n(1556);function d(e){const{property:t}=e,[n,i]=(0,c.useDefinitionProperty)({property:t});return o.createElement(s,{...e,value:n,onChange:i})}},99189:(e,t,n)=>{"use strict";n.d(t,{ControlCustomHeightContext:()=>l,ControlCustomWidthContext:()=>r});var o,i=n(79474);!function(e){e.Small="small",e.Normal="normal",e.Big="big"}(o||(o={}));const r=i.createContext({});var a;!function(e){e.Normal="normal",e.Big="big"}(a||(a={}));const l=i.createContext({})},73951:(e,t,n)=>{"use strict";n.d(t,{Section:()=>cn});var o=n(79474),i=n(73405),r=n(1556),a=n(67328);function l(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:l},title:s,solutionId:c,infoTooltip:d},offset:u}=e,[p]=(0,r.useDefinitionProperty)({property:i,defaultValue:!1}),[m]=(0,r.useDefinitionProperty)({property:l,defaultValue:!0});return m?o.createElement(a.CommonSection,{id:t,offset:u,checked:n,title:s,solutionId:c,infoTooltip:d,disabled:e.disabled||p}):null}var s=n(14487),c=n.n(s),d=n(48504),u=n(91599),p=n(11614),m=n(21566),h=n(13146),f=n(97367),b=n(12745),v=n(85842);function y(e){return"mixed"===e}function g(e,t,n){const[i,r]=(0,o.useState)(e),a=(0,o.useRef)(i);return(0,o.useEffect)((()=>{r(e)}),[e,n]),[i,function(e){a.current=e,r(e)},function(){t(a.current)},function(){a.current=e,r(e)}]}var E,w=n(23351),C=n(72896),D=n(85728),S=n(47470),x=n(45958);function V(e){const{property:t,...n}=e,[i,a]=(0,o.useState)(performance.now()),[l,s]=(0,r.useDefinitionProperty)({property:t,handler:()=>a(performance.now())}),c=g(l,s,i)
|
||||||
|
;return o.createElement(k,{...n,valueHash:i,sharedBuffer:c})}function k(e){const{sharedBuffer:t,min:n,max:i,step:r,...a}=e,[l,s,c,d]=t,u=(0,o.useRef)(null),p=(0,o.useRef)(null),m={flushed:!1};return o.createElement(N,{...a,ref:p,onValueChange:function(e,t){s(e),"step"!==t||m.flushed||(c(),m.flushed=!0)},onKeyDown:function(e){if(e.defaultPrevented||m.flushed)return;switch((0,w.hashFromEvent)(e.nativeEvent)){case 27:d(),m.flushed=!0;break;case 13:e.preventDefault();const t=(0,v.ensureNotNull)(p.current).getClampedValue();null!==t&&(s(t),c(),m.flushed=!0)}},onBlur:function(e){const t=(0,v.ensureNotNull)(u.current);if(!t.contains(document.activeElement)&&!t.contains(e.relatedTarget)){const e=(0,v.ensureNotNull)(p.current).getClampedValue();null===e||m.flushed||(s(e),c(),m.flushed=!0)}},value:l,roundByStep:!1,containerReference:function(e){u.current=e},inputMode:x.CheckMobile.iOS()?void 0:"numeric",min:n,max:i,step:r,stretch:!1})}!function(e){e.Input="input",e.Step="step"}(E||(E={}));const P={mode:"float",min:-Number.MAX_VALUE,max:Number.MAX_VALUE,step:1,precision:0,inheritPrecisionFromStep:!0};class N extends o.PureComponent{constructor(e){super(e),this._selection=null,this._restoreSelection=!1,this._input=null,this._handleSelectionChange=()=>{this._restoreSelection||document.activeElement!==(0,v.ensureNotNull)(this._input)||this._saveSelection((0,v.ensureNotNull)(this._input))},this._handleInputReference=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(e)},this._onFocus=e=>{this._saveSelection((0,v.ensureNotNull)(this._input)),this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this._selection=null,this.setState({displayValue:M(this.props,this.props.value,L(this.props)),focused:!1}),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=e.currentTarget,n=t.value,o=function(e,t,n){switch(n){case"integer":return T.test(t)?t:e;case"float":return t=t.replace(/,/g,"."),I.test(t)?t:e;case"fractional":return _.test(t)?t:e}}(this.state.displayValue,n,this.props.mode),i=B(o),r=this._checkValueBoundaries(i);var a,l;this.setState({displayValue:o}),o!==n&&(a=this.state.displayValue,l=(l=o).replace(/,/g,"."),(a=a.replace(/,/g,".")).includes(".")||!l.includes("."))?(this._restoreSelection=!0,this.forceUpdate()):this._saveSelection(t),r.value&&M(this.props,i)===o&&this.props.onValueChange(i,"input")},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1}=this.props,o=B(this.state.displayValue);let i;if(isNaN(o)){const{defaultValue:e}=this.props;if(void 0===e)return;i=e}else{const r=new b.Big(o),a=new b.Big(n),l=r.mod(a);let s=r.plus(e*n);!l.eq(0)&&t&&(s=s.plus((e>0?0:1)*n).minus(l)),i=s.toNumber()}this._checkValueBoundaries(i).value&&(this.setState({displayValue:M(this.props,i,L(this.props))}),this.props.onValueChange(i,"step"))},this.state={value:A(this.props.value),displayValue:M(this.props,this.props.value,L(this.props)),focused:!1,valueHash:this.props.valueHash}}componentDidMount(){
|
||||||
|
document.addEventListener("selectionchange",this._handleSelectionChange)}componentWillUnmount(){document.removeEventListener("selectionchange",this._handleSelectionChange)}componentDidUpdate(){const e=(0,v.ensureNotNull)(this._input),t=this._selection;if(null!==t&&this._restoreSelection&&document.activeElement===e){const{start:n,end:o,direction:i}=t;e.setSelectionRange(n,o,i)}this._restoreSelection=!1}render(){return o.createElement(C.NumberInputView,{type:"text",inputMode:this.props.inputMode,name:this.props.name,fontSizeStyle:"medium",value:this.state.displayValue,className:this.props.className,placeholder:this.props.placeholder,forceShowControls:this.props.forceShowControls,disabled:this.props.disabled,stretch:this.props.stretch,error:Boolean(this.props.error),errorMessage:this.props.error,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this._handleInputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,autoSelectOnFocus:!0,"data-name":this.props["data-name"],highlight:this.props.highlight})}getClampedValue(){const{min:e,max:t}=this.props,n=B(this.state.displayValue);return isNaN(n)?null:(0,D.clamp)(n,e,t)}static getDerivedStateFromProps(e,t){const{valueHash:n}=e,o=A(e.value);if(t.value!==o||t.valueHash!==n){return{value:o,valueHash:n,displayValue:M(e,o,t.focused&&t.valueHash===n?void 0:L(e))}}return null}_saveSelection(e){const{selectionStart:t,selectionEnd:n,selectionDirection:o}=e;null!==t&&null!==n&&null!==o&&(this._selection={start:t,end:n,direction:o})}_checkValueBoundaries(e){const{min:t,max:n}=this.props,o=function(e,t,n){const o=e>=t,i=e<=n;return{passMin:o,passMax:i,pass:o&&i,clamped:(0,D.clamp)(e,t,n)}}(e,t,n);return{value:o.pass}}}N.defaultProps=P;const T=/^-?[0-9]*$/,I=/^(-?([0-9]+\.?[0-9]*)|(-?[0-9]*))$/,_=/^(-?([0-9]+'?[0-9]*([0-9]+'?)[0-9]*)|(-?[0-9]*))$/;function M(e,t,n){return y(t=A(t))?"—":(null!==t&&void 0!==n&&(n=Math.max(R(t),n)),function(e,t){if(null===e)return"";return new S.NumericFormatter({precision:t}).format(e,{ignoreLocaleNumberFormat:!0})}(t,n))}function L(e){let t=0;return e.inheritPrecisionFromStep&&e.step<=1&&(t=R(e.step)),Math.max(e.precision,t)||void 0}function R(e){const t=Math.trunc(e).toString();return(0,D.clamp)(S.NumericFormatter.formatNoE(e).length-t.length-1,0,15)}function B(e,t){const n=new S.NumericFormatter({precision:t}).parse(e,{ignoreLocaleNumberFormat:!0});return n.res?n.value:NaN}function A(e){return"number"==typeof e&&Number.isFinite(e)||y(e)?e:null}var F=n(55482),W=n(14946),O=n(82347),z=n(12091);function G(e){const{color:t,thickness:n,thicknessItems:i,noAlpha:a,lineStyle:l,allowedLineStyles:s}=e,[c,d]=(0,r.useDefinitionProperty)({property:t}),[u,p]=(0,r.useDefinitionProperty)(n?{property:n}:{defaultValue:void 0}),[m,h]=(0,r.useDefinitionProperty)(l?{property:l}:{defaultValue:void 0}),f=(0,o.useMemo)((()=>s?z.defaultLineStyleItems.filter((e=>s.includes(e))):z.defaultLineStyleItems),[s])
|
||||||
|
;return o.createElement(W.ColorSelect,{...e,color:function(){if(!c)return null;if("mixed"===c)return"mixed";return(0,F.rgbToHexString)((0,F.parseRgb)(c))}(),onColorChange:function(e){const t=c&&"mixed"!==c?(0,O.alphaToTransparency)((0,F.parseRgba)(c)[3]):0;d((0,O.generateColor)(String(e),t,!0))},thickness:u,lineStyle:m,thicknessItems:i,lineStyleItems:f,onThicknessChange:p,onLineStyleChange:h,opacity:a?void 0:c&&"mixed"!==c?(0,F.parseRgba)(c)[3]:void 0,onOpacityChange:a?void 0:function(e){d((0,O.generateColor)(c,(0,O.alphaToTransparency)(e),!0))}})}var H=n(68459),J=n(72958),K=n(40197),Z=n(21786),j=n(80633),$=n(53787);const U=[{type:H.LineEnd.Normal,icon:Z,label:u.t(null,void 0,n(93894))},{type:H.LineEnd.Arrow,icon:j,label:u.t(null,void 0,n(51979))}];class Y extends o.PureComponent{constructor(e){super(e),this._items=[],this._items=U.map((t=>({value:t.type,selectedContent:o.createElement(J.DisplayItem,{icon:t.icon}),content:o.createElement(J.DropItem,{icon:t.icon,iconClassName:c()(e.isRight&&$.right),label:t.label})})))}render(){const{id:e,lineEnd:t,className:n,lineEndChange:i,isRight:r,disabled:a}=this.props;return o.createElement(J.IconDropdown,{id:e,disabled:a,className:c()($.lineEndSelect,r&&$.right,n),items:this._items,value:t,onChange:i,hideArrowButton:!0,...(0,K.filterDataProps)(this.props)})}}function X(e){const{property:t}=e,[n,i]=(0,r.useDefinitionProperty)({property:t});return o.createElement(Y,{...e,lineEnd:n,lineEndChange:i})}var q,Q=n(46224),ee=n(59177);function te(e){const{children:t,className:n,breakPoint:i="Normal"}=e;return o.createElement(Q.CellWrap,{className:s(ee.wrap,n,ee[`breakpoint${i}`])},o.Children.map(t,(e=>o.isValidElement(e)?o.createElement("span",{key:null===e.key?void 0:e.key,className:s(ee.row,r(e)&&ee.empty,a(e)&&ee.noMargins)},e):e)));function r(e){return!(!o.isValidElement(e)||e.type!==o.Fragment||!Array.isArray(e.props.children))&&e.props.children.every((e=>null===e))}function a(e){return o.isValidElement(e)&&Boolean(e.props?.["data-no-margins"])}}!function(e){e.MobileNormal="Normal",e.MobileMedium="Medium",e.MobileSmall="Small"}(q||(q={}));const ne={1:"float",0:"integer"};var oe=n(58530),ie=n(20819),re=n(9774),ae=n(70670),le=n(47893),se=n(55501),ce=n(46269),de=n(21404),ue=n(1642),pe=n(69144),me=n(85739);function he(e){const{isDisabled:t,hint:n,label:i,isChecked:r,checkboxClassName:a,labelClassName:l,indeterminate:c,isActive:d,checkboxTabIndex:u,checkboxReference:p,checkboxDataRole:m,checkboxDataName:h,...f}=e;return o.createElement(ue.PopupMenuItem,{...f,isDisabled:t,shortcut:n,dontClosePopup:!0,labelRowClassName:l,label:o.createElement(pe.Checkbox,{reference:p,disabled:t,label:i,checked:c?"mixed":r,onChange:fe,className:s(me.checkbox,a),tabIndex:u,"data-role":m,"data-name":h})})}function fe(){}var be=n(99274);function ve(e){const[t,n]=(0,de.useRovingTabindexElement)(null);return o.createElement(he,{...e,className:be.item,checkboxClassName:be.checkbox,checkboxReference:t,checkboxTabIndex:n,checkboxDataRole:"menuitem",onKeyDown:function(e){const n=(0,le.hashFromEvent)(e)
|
||||||
|
;13!==n&&32!==n||(e.preventDefault(),t.current instanceof HTMLElement&&t.current.click())},"aria-disabled":e.isDisabled||void 0})}var ye=n(60714),ge=n(51075);function Ee(e){return!e.readonly&&!e.disabled}function we(e){const{selectedItems:t,placeholder:n}=e;if(!t.length)return o.createElement("span",null,n);const i=t.map((e=>e.selectedContent??e.content??e.value?.toString())).reduce(((e,t,n)=>t?(e.push(o.createElement("span",{key:n,className:ge.contentPart},t)),e.push(o.createElement("span",{key:`separator_${n}`},","," ")),e):e),[]);return i.length&&i.splice(-1),o.createElement("span",{className:ge.btnContent},i)}function Ce(e,t){const{id:n,items:i,menuClassName:r,menuItemClassName:a,tabIndex:l,disabled:s,highlight:c,intent:u,hideArrowButton:p,placeholder:m,value:h,"aria-labelledby":f,onFocus:b,onBlur:v,onClick:y,onChange:g,onKeyDown:E,openMenuOnEnter:w=!0,"aria-describedby":C,"aria-invalid":D,...S}=e,{listboxId:x,isOpened:V,isFocused:k,buttonTabIndex:P,highlight:N,intent:T,open:I,onOpen:_,close:M,toggle:L,buttonFocusBindings:R,onButtonClick:B,buttonRef:A,listboxRef:F,listboxTabIndex:W,buttonAria:O}=(0,ae.useControlDisclosure)({id:n,disabled:s,buttonTabIndex:l,intent:u,highlight:c,onFocus:b,onBlur:v,onClick:y}),z=i.filter(Ee).filter((e=>h.some((t=>e.value===t)))),G=(0,d.joinDomIds)(f,n),H=G.length>0?G:void 0,J=(0,o.useMemo)((()=>({role:"listbox","aria-labelledby":f})),[f]),K=(0,se.useKeyboardToggle)(L,V||w),Z=(0,se.useKeyboardOpen)(V,I),j=(0,se.useKeyboardEventHandler)([K,Z]),$=(0,re.useMergedRefs)([A,t]);return o.createElement(ce.ControlDisclosureView,{...S,...O,...R,id:n,role:"button",tabIndex:P,"aria-owns":O["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":H,disabled:s,hideArrowButton:p,isFocused:k,isOpened:V,highlight:N,intent:T,ref:$,onClick:B,onClose:M,onKeyDown:j,onOpen:_,listboxTabIndex:W,listboxId:x,listboxClassName:r,listboxAria:J,"aria-describedby":C,"aria-invalid":D,listboxReference:F,onListboxKeyDown:function(e){switch((0,le.hashFromEvent)(e)){case 27:case 9:return void(V&&(e.preventDefault(),M()))}(0,ye.handleAccessibleMenuKeyDown)(e)},onListboxFocus:e=>(0,ye.handleAccessibleMenuFocus)(e,A),buttonChildren:o.createElement(we,{selectedItems:z??null,placeholder:m})},i.map(((e,t)=>{if(e.readonly)return o.createElement(o.Fragment,{key:`readonly_item_${t}`},e.content);const i=function(e,t){return t?.id??(0,d.createDomId)(e,"item",t?.value)}(n,e);return o.createElement(ve,{key:i,id:i,className:a,"aria-selected":h===e.value,isChecked:h.includes(e.value),label:e.content??e.value?.toString()??"",onClick:()=>function(e){const t=new Set(h);t.has(e)?t.delete(e):t.add(e);g(Array.from(t))}(e.value),isDisabled:e.disabled})})))}Ce.displayName="Multiselect";const De=o.forwardRef(Ce);function Se(e){return o.createElement(G,{...e})}var xe=n(28986),Ve=n(20425);function ke(e){const{property:t,options:n,...i}=e,[a,l]=(0,r.useDefinitionProperty)({property:t}),s=(0,Ve.useForceUpdate)();return(0,o.useEffect)((()=>{const e=()=>s();return Array.isArray(n)||n.subscribe(e),()=>{Array.isArray(n)||n.unsubscribe(e)}}),[]),
|
||||||
|
o.createElement(xe.Select,{...i,onChange:l,value:a,items:(Array.isArray(n)?n:n.value()).map((e=>e.readonly?{content:e.title,readonly:e.readonly}:{content:e.title,value:e.value,disabled:e.disabled,id:e.id}))})}var Pe=n(9779),Ne=n(99189),Te=n(18923);function Ie(e){const{definition:t}=e,{checked:a,hideCheckbox:l,placeHolder:s,checkableListOptions:d,definitions:p,id:m}=t,[h,f]=(0,o.useState)(V()),[b,y]=(0,o.useState)(k()),g=(0,o.useContext)(Ne.ControlCustomWidthContext),[E]=(0,r.useDefinitionProperty)({property:a,defaultValue:!0});(0,o.useEffect)((()=>{const e={},t=()=>{const e=V();f(e)};return t(),d.forEach((n=>{n.properties.visible&&n.properties.visible.subscribe(e,t)})),()=>{d.forEach((n=>{n.properties.visible&&n.properties.visible.unsubscribe(e,t)}))}}),[t]),(0,o.useEffect)((()=>{const e={},t=()=>{const e=k();y(e)};return t(),h.forEach((n=>{n.properties.checked&&n.properties.checked.subscribe(e,t)})),()=>{h.forEach((n=>{n.properties.checked&&n.properties.checked.unsubscribe(e,t)}))}}),[h]);const w=[],C=[],D=[],S=[];p.value().forEach((e=>{(0,i.isPropertyDefinition)(e)&&((0,i.isColorDefinition)(e)?w.push(e):(0,i.isTwoColorDefinition)(e)?C.push(e):(0,i.isLineDefinition)(e)?D.push(e):(0,i.isOptionsDefinition)(e)&&S.push(e))}));const x=!E||0===b.length;return o.createElement(o.Fragment,null,o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",className:Te.cell,checkableTitle:!0},o.createElement(Pe.CheckableTitle,{name:`is-enabled-${t.id}`,title:t.title,property:l?void 0:a})),o.createElement(ie.PropertyTable.Cell,{placement:"last"},o.createElement("div",{className:Te.wrap},o.createElement(De,{className:c()(Te.select,g[m]&&Te[g[m]]),menuClassName:c()(Te.dropdownMenu,g[m]&&Te[g[m]]),placeholder:s||u.t(null,void 0,n(81242)),disabled:!E,onChange:function(e){const t=new Set(e);h.forEach((e=>{!t.has(e.id)||e.properties.checked?.value()?!t.has(e.id)&&e.properties.checked?.value()&&e.properties.checked.setValue(!1):(0,v.ensureDefined)(e.properties.checked).setValue(!0)}))},value:b,items:h.map((e=>({id:e.id,content:e.notFormatedTitle?o.createElement("span",{className:Te.preContent},(0,v.ensureDefined)(e.title)):(0,v.ensureDefined)(e.title),value:e.id})))}),w.length||D.length?o.createElement("div",{className:Te.colorsWrap},D.map((e=>o.createElement(G,{key:e.id,color:(0,v.ensureDefined)(e.properties.color),thickness:e.properties.width,thicknessItems:e.widthValues,disabled:x}))),w.map((e=>o.createElement(Se,{key:e.id,color:e.properties.color,disabled:x})))):null,C.length?C.map((e=>o.createElement("div",{key:e.id,className:Te.colorsWrap},o.createElement(Se,{color:e.properties.color1,disabled:x,noAlpha:e.noAlpha1}),o.createElement(Se,{color:e.properties.color2,disabled:x,noAlpha:e.noAlpha2})))):null))),S.map((e=>o.createElement(ie.PropertyTable.WrapRowInner,{key:e.id},o.createElement(ie.PropertyTable.Cell,{placement:"first"}),o.createElement(ie.PropertyTable.Cell,{placement:"last"},o.createElement(ke,{className:c()(Te.select,g[e.id]&&Te[g[e.id]]),
|
||||||
|
menuClassName:c()(Te.dropdownMenu,g[e.id]&&Te[g[e.id]]),property:e.properties.option,options:e.options,disabled:x}))))));function V(){return d.filter((e=>void 0===e.properties.visible||e.properties.visible.value()))}function k(){return h.filter((e=>(0,v.ensureDefined)(e.properties?.checked).value())).map((e=>e.id))}}var _e=n(58653);function Me(e){const{definition:{id:t,properties:{checked:i,disabled:l,visible:c,leftEnd:b,rightEnd:v,value:y,extendLeft:g,extendRight:E,style:w,width:C,color:D},title:S,valueMin:x,valueMax:k,valueStep:P,valueUnit:N,extendLeftTitle:T,extendRightTitle:I,solutionId:_,widthValues:M},offset:L}=e,[R]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),[B]=(0,r.useDefinitionProperty)({property:l,defaultValue:!1}),[A]=(0,r.useDefinitionProperty)({property:c,defaultValue:!0}),F=(0,oe.useWatchedValueReadonly)({watchedValue:x,defaultValue:void 0}),W=(0,oe.useWatchedValueReadonly)({watchedValue:k,defaultValue:void 0}),O=(0,oe.useWatchedValueReadonly)({watchedValue:P,defaultValue:void 0}),z=(0,oe.useWatchedValueReadonly)({watchedValue:N,defaultValue:void 0}),H=e.disabled||!R;return A?o.createElement(o.Fragment,null,o.createElement(a.CommonSection,{id:t,offset:L,checked:i,title:S,solutionId:_,disabled:e.disabled||B},o.createElement(te,{className:_e.line,breakPoint:"Small"},D&&o.createElement("span",{className:_e.control},o.createElement(G,{color:D,thickness:C,disabled:H,thicknessItems:M,lineStyle:w})),!D&&C&&o.createElement("span",{className:_e.control},o.createElement(f.LineWidthSelect,{id:(0,d.createDomId)(t,"line-width-select"),items:M,property:C,disabled:H})),!D&&w&&o.createElement("span",{className:_e.control},o.createElement(h.LineStyleSelect,{id:(0,d.createDomId)(t,"line-style-select"),property:w,disabled:H})),(b||v||y)&&o.createElement(o.Fragment,null,o.createElement(o.Fragment,null,b&&o.createElement(X,{id:(0,d.createDomId)(t,"left-end-select"),"data-name":"left-end-select",className:_e.control,property:b,disabled:H}),v&&o.createElement(X,{id:(0,d.createDomId)(t,"right-end-select"),"data-name":"right-end-select",className:_e.control,property:v,disabled:H,isRight:!0})),function(){const{definition:{valueType:t}}=e;return y&&o.createElement("span",{className:s(_e.valueInput,_e.control)},o.createElement(V,{className:_e.input,property:y,min:F,max:W,step:O,disabled:H,mode:void 0!==t?ne[t]:void 0,name:"line-value-input"}),o.createElement("span",{className:_e.valueUnit},z))}()))),(g||E)&&o.createElement(o.Fragment,null,function(){if(void 0!==g&&void 0!==E){const e=(0,m.createPropertyDefinitionsCheckableListOptionsGroup)([(0,p.createCheckablePropertyDefinition)({checked:g,disabled:l},{id:`${t}ExtendLeft`,title:T}),(0,p.createCheckablePropertyDefinition)({checked:E,disabled:l},{id:`${t}ExtendRight`,title:I})],void 0,[],"lineExtend",u.t(null,void 0,n(62726)),void 0,void 0,u.t(null,void 0,n(18656)));return o.createElement(Ie,{definition:e})}if(void 0!==g)return o.createElement(a.CommonSection,{id:`${t}ExtendLeft`,offset:L,checked:g,title:T,disabled:e.disabled||B})
|
||||||
|
;if(void 0!==E)return o.createElement(a.CommonSection,{id:`${t}ExtendRight`,offset:L,checked:E,title:I,disabled:e.disabled||B});return}())):null}var Le=n(43787),Re=n(20438);const Be=[{title:u.t(null,void 0,n(49253)),value:Le.ColorType.Solid},{title:u.t(null,void 0,n(77728)),value:Le.ColorType.Gradient}],Ae=[1,2,3,4];function Fe(e){const{id:t,disabled:n,noAlpha:i,properties:a}=e,{color:l,gradientColor1:s,gradientColor2:c,type:u,width:p}=a,[m]=(0,r.useDefinitionProperty)({property:u,defaultValue:Le.ColorType.Solid});return o.createElement(te,null,u&&o.createElement(ke,{id:(0,d.createDomId)(t,"background-type-options-dropdown"),"data-name":"background-type-options-dropdown",className:Re.dropdown,menuClassName:Re.dropdownMenu,disabled:n,property:u,options:Be}),m!==Le.ColorType.Solid&&m&&s&&c?o.createElement("div",{className:Re.gradientColor},o.createElement(Se,{color:s,disabled:n,noAlpha:i}),o.createElement(Se,{color:c,disabled:n,noAlpha:i}),p&&o.createElement(f.LineWidthSelect,{className:Re.lineWidthSelect,property:p,items:Ae,disabled:!!n})):o.createElement(G,{color:l,disabled:n,noAlpha:i,thickness:p,thicknessItems:Ae}))}function We(e){const{definition:{id:t,properties:n,title:i,noAlpha:l,solutionId:s},offset:c}=e,{color:d,checked:u,disabled:p,visible:m}=n,[h]=(0,r.useDefinitionProperty)({property:u,defaultValue:!0}),[f]=(0,r.useDefinitionProperty)({property:p,defaultValue:!1}),[b]=(0,r.useDefinitionProperty)({property:m,defaultValue:!0}),v=e.disabled||!h;return b?o.createElement(a.CommonSection,{id:t,offset:c,checked:u,title:i,solutionId:s,disabled:e.disabled||f},o.createElement(Q.CellWrap,null,n.hasOwnProperty("type")?o.createElement(Fe,{id:t,properties:n,disabled:v,noAlpha:l}):o.createElement(Se,{color:d,disabled:v,noAlpha:l}))):null}var Oe=n(81264);function ze(e){const{property:t,...n}=e,[i,a]=(0,r.useDefinitionProperty)({property:t});return o.createElement(Oe.Transparency,{...n,value:i,onChange:a})}function Ge(e){const{definition:{id:t,properties:{transparency:n,checked:i,disabled:l,visible:s},title:c,solutionId:d},offset:u}=e,[p]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),[m]=(0,r.useDefinitionProperty)({property:l,defaultValue:!1}),[h]=(0,r.useDefinitionProperty)({property:s,defaultValue:!0}),f=e.disabled||!p;return h?o.createElement(a.CommonSection,{id:t,offset:u,checked:i,title:c,solutionId:d,disabled:e.disabled||m},o.createElement(Q.CellWrap,null,o.createElement(ze,{property:n,disabled:f}))):null}var He=n(52907);function Je(e){const{definition:{id:t,properties:{color1:n,color2:i,checked:l,disabled:s,visible:c},title:d,noAlpha1:u,noAlpha2:p,solutionId:m},offset:h}=e,[f]=(0,r.useDefinitionProperty)({property:l,defaultValue:!0}),[b]=(0,r.useDefinitionProperty)({property:s,defaultValue:!1}),[v]=(0,r.useDefinitionProperty)({property:c,defaultValue:!0}),y=e.disabled||!f||b;return v?o.createElement(a.CommonSection,{id:t,offset:h,checked:l,solutionId:m,title:d,disabled:e.disabled||b},o.createElement(Q.CellWrap,{className:He.twoColors},g(n,u),g(i,p))):null;function g(e,t){return o.createElement("span",{
|
||||||
|
className:He.colorPicker},o.createElement(Se,{color:e,disabled:y,noAlpha:t}))}}var Ke=n(42683);function Ze(e){const{definition:{id:t,properties:{checked:n,value:i,unitOptionsValue:l,disabled:c,visible:u},min:p,max:m,step:h,title:f,unit:b,unitOptions:y,type:g,solutionId:E},offset:w}=e,[C]=(0,r.useDefinitionProperty)({property:n,defaultValue:!0}),[D]=(0,r.useDefinitionProperty)({property:c,defaultValue:!1}),[S]=(0,r.useDefinitionProperty)({property:u,defaultValue:!0}),x=(0,oe.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),k=(0,oe.useWatchedValueReadonly)({watchedValue:m,defaultValue:void 0}),P=(0,oe.useWatchedValueReadonly)({watchedValue:h,defaultValue:void 0}),N=(0,oe.useWatchedValueReadonly)({watchedValue:b,defaultValue:void 0}),T=(0,o.useContext)(Ne.ControlCustomWidthContext),I=D||e.disabled||!C;return S?o.createElement(a.CommonSection,{id:t,offset:w,checked:n,title:f,solutionId:E,disabled:e.disabled||D},o.createElement(Q.CellWrap,null,o.createElement(te,null,o.createElement(V,{className:s(Ke.input,T[t]&&Ke[T[t]]),property:i,min:x,max:k,step:P,disabled:I,mode:ne[g],name:"number-input","data-name":t}),l&&o.createElement(ke,{id:(0,d.createDomId)(t,"unit-options-dropdown"),"data-name":"unit-options-dropdown",className:Ke.dropdown,menuClassName:Ke.dropdownMenu,disabled:I,property:l,options:(0,v.ensureDefined)(y)})),N&&o.createElement("span",{className:Ke.unit},N))):null}function je(e){const{definition:{id:t,properties:{checked:n,disabled:i,visible:l},childrenDefinitions:s,title:c,solutionId:d,dialogContent:u},offset:p}=e,[m]=(0,r.useDefinitionProperty)({property:n,defaultValue:!0}),[h]=(0,r.useDefinitionProperty)({property:i,defaultValue:!1}),[f]=(0,r.useDefinitionProperty)({property:l,defaultValue:!0}),b=e.disabled||!m;return f?o.createElement(o.Fragment,null,o.createElement(a.CommonSection,{id:t,offset:p,checked:n,solutionId:d,title:c,disabled:e.disabled||h,dialogContent:u}),s.map((e=>o.createElement(ie.PropertyTable.WrapRowInner,{key:`wrapper-${e.id}`},o.createElement(cn,{key:e.id,disabled:b,definition:e,offset:!0}))))):null}var $e=n(66728);function Ue(e){const{property:t}=e,[n,i]=(0,r.useDefinitionProperty)({property:t});return o.createElement($e.FontSizeSelect,{...e,fontSize:n,fontSizeChange:i,"data-name":"font-size-select"})}var Ye=n(66334),Xe=n(3923);function qe(e){const{className:t,checked:n,icon:i,disabled:r,onClick:a}=e;return o.createElement("div",{className:c()(t,Xe.container,n&&!r&&Xe.active,r&&Xe.disabled),onClick:r?void 0:a,"data-role":"button",...(0,K.filterDataProps)(e)},o.createElement(Ye.Icon,{className:Xe.icon,icon:i}))}function Qe(e){const{icon:t,className:n,property:i,disabled:a}=e,[l,s]=(0,r.useDefinitionProperty)({property:i});return o.createElement(qe,{className:n,icon:t,checked:l,onClick:function(){s(!l)},disabled:a,...(0,K.filterDataProps)(e)})}var et=n(88169),tt=n(88340);function nt(e){const{property:t,...n}=e,[i,a]=(0,r.useDefinitionProperty)({property:t}),l=(0,o.useCallback)((e=>a(e.target.value)),[a]);return o.createElement(tt.Textarea,{...n,value:i,onChange:l})}
|
||||||
|
var ot=n(19320),it=n(34943),rt=n(57471);const at=e=>({content:e.title,title:e.title,value:e.value,id:e.id}),lt=e=>({content:e.title,title:e.title,value:e.value,id:e.id});function st(e){const{definition:{id:t,properties:{color:n,size:i,checked:l,disabled:s,bold:c,italic:u,text:p,alignmentHorizontal:m,alignmentVertical:h,orientation:f,backgroundVisible:b,backgroundColor:v,borderVisible:y,borderColor:g,borderWidth:E,wrap:w},title:C,solutionId:D,sizeItems:S,alignmentTitle:x,alignmentHorizontalItems:V,alignmentVerticalItems:k,orientationTitle:P,orientationItems:N,backgroundTitle:T,borderTitle:I,borderWidthItems:_,wrapTitle:M,placeholder:L},offset:R}=e,B=(0,o.useContext)(Ne.ControlCustomHeightContext),[A]=(0,r.useDefinitionProperty)({property:l,defaultValue:!0}),[F]=(0,r.useDefinitionProperty)({property:s,defaultValue:!1}),[W,O]=(0,r.useDefinitionProperty)({property:h,defaultValue:void 0}),[z,H]=(0,r.useDefinitionProperty)({property:f,defaultValue:"horizontal"}),[J,K]=(0,r.useDefinitionProperty)({property:m,defaultValue:void 0}),[Z]=(0,r.useDefinitionProperty)({property:b,defaultValue:!1}),[j]=(0,r.useDefinitionProperty)({property:y,defaultValue:!1}),$=e.disabled||!A;return o.createElement(o.Fragment,null,function(){if(C)return o.createElement(a.CommonSection,{id:t,offset:R,checked:l,title:C,solutionId:D,disabled:e.disabled||F},o.createElement(te,{breakPoint:"Small"},X(),q()));return o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",colSpan:2,offset:R,"data-qa-id":`property-dialog-item ${t}`},X(),q(),D&&!1))}(),p&&o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",colSpan:2,offset:R,"data-qa-id":`property-dialog-item ${t}`},o.createElement(nt,{className:et.InputClasses.FontSizeMedium,rows:(U=B[t],"big"===U?9:5),stretch:!0,property:p,disabled:$,onFocus:function(e){e.target.select()},name:"text-input",placeholder:L}))),(m||h)&&o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:R,"data-qa-id":`property-dialog-item ${t}`},o.createElement(Q.CellWrap,null,o.createElement("span",{className:rt.title},x))),o.createElement(ie.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-qa-id":`property-dialog-item ${t}`},o.createElement(te,{breakPoint:"Small"},void 0!==W&&void 0!==k&&o.createElement(xe.Select,{id:(0,d.createDomId)(t,"alignment-vertical-select"),"data-name":"alignment-vertical-select",className:rt.dropdown,menuClassName:rt.dropdownMenu,disabled:$,value:W,items:k.map(at),onChange:O}),void 0!==J&&void 0!==V&&o.createElement(xe.Select,{id:(0,d.createDomId)(t,"alignment-horizontal-select"),"data-name":"alignment-horizontal-select",className:rt.dropdown,menuClassName:rt.dropdownMenu,disabled:$,value:J,items:V.map(at),onChange:K})))),void 0!==f&&void 0!==N&&o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:R,"data-qa-id":`property-dialog-item ${t}`
|
||||||
|
},o.createElement(Q.CellWrap,null,o.createElement("span",{className:rt.title},P))),o.createElement(ie.PropertyTable.Cell,{placement:"last",verticalAlign:"adaptive","data-qa-id":`property-dialog-item ${t}`},o.createElement(te,{breakPoint:"Small"},o.createElement(xe.Select,{id:(0,d.createDomId)(t,"orientation-select"),"data-name":"orientation-select",className:rt.dropdown,menuClassName:rt.dropdownMenu,disabled:$,value:z,items:N.map(lt),onChange:H})))),ee(T,b,v,!!b&&!Z),ee(I,y,g,!!y&&!j,E,_),w&&o.createElement(a.CommonSection,{id:`${t}Wrap`,offset:R,checked:w,title:M,disabled:e.disabled||F}));var U;function Y(e,t,n){return e?o.createElement(Qe,{className:rt.fontStyleButton,icon:t,property:e,disabled:$,"data-name":n}):null}function X(){return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:rt.colorPicker},o.createElement(Se,{color:n,disabled:$})),i&&S&&o.createElement(Ue,{id:(0,d.createDomId)(t,"font-size-select"),property:i,fontSizes:S,disabled:$}))}function q(){return o.createElement(o.Fragment,null,Y(c,ot,"toggle-bold"),Y(u,it,"toggle-italic"))}function ee(e,n,i,r,l,s){return i||n?o.createElement(a.CommonSection,{id:`${t}ColorSelect`,offset:R,checked:n,title:e,disabled:$},i&&o.createElement(G,{color:i,thickness:l,thicknessItems:s,disabled:$||r})):null}}var ct=n(19308),dt=n(7321);function ut(e){const{property:t,mathOperations:n="+/*",mode:i="float",disabled:a,...l}=e,[s,c]=(0,o.useState)(performance.now()),[d,u]=(0,r.useDefinitionProperty)({property:t,handler:()=>c(performance.now())}),[p,m,h,f]=g(d,u,s),b=(0,o.useMemo)((()=>{const e=new RegExp(`^[${n.split("").join("\\")}-]?(${"float"===i?"(\\d+\\.\\d*)|":""}(\\d*))$`);return t=>(0,dt.isString)(t)&&e.test(t)}),[n,i]);return o.createElement(ct.FormInput,{...l,type:"text",value:p,onChange:function(e){const{value:t}=e.currentTarget;m(b(t)?t:p)},onKeyDown:function(e){if(e.defaultPrevented)return;switch((0,w.hashFromEvent)(e.nativeEvent)){case 27:f();break;case 13:v()}},onBlur:function(){v()},disabled:a,stretch:!1,autoSelectOnFocus:!0});function v(){p.length&&h()}}var pt=n(5643);function mt(e){const{definition:{properties:{x:t,y:n,disabled:i},id:r,title:a,solutionId:l},definition:s,offset:c}=e,d=i&&i.value()||e.disabled;return o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{verticalAlign:"top",placement:"first",offset:c,"data-qa-id":`property-dialog-item ${r}`},o.createElement("span",{className:pt.coordinates},a)),(t||n)&&o.createElement(ie.PropertyTable.Cell,{placement:"last",offset:c,"data-qa-id":`property-dialog-item ${r}`},o.createElement(te,{breakPoint:"Medium"},"coordinates"===s.propType?o.createElement(ht,{definition:s,disabled:d}):o.createElement(ft,{definition:s,disabled:d})),l&&!1))}function ht(e){const{definition:{properties:{x:t,y:n},minX:i,maxX:r,stepX:a,minY:l,maxY:s,stepY:c,typeX:d,typeY:u},disabled:p}=e,m=(0,oe.useWatchedValueReadonly)({watchedValue:i,defaultValue:void 0}),h=(0,oe.useWatchedValueReadonly)({watchedValue:r,defaultValue:void 0}),f=(0,oe.useWatchedValueReadonly)({watchedValue:a,
|
||||||
|
defaultValue:void 0}),b=(0,oe.useWatchedValueReadonly)({watchedValue:l,defaultValue:void 0}),v=(0,oe.useWatchedValueReadonly)({watchedValue:s,defaultValue:void 0}),y=(0,oe.useWatchedValueReadonly)({watchedValue:c,defaultValue:void 0});return o.createElement(o.Fragment,null,n&&o.createElement(V,{className:pt.input,property:n,min:b,max:v,step:y,disabled:p,name:"y-input",mode:void 0!==u?ne[u]:"integer"}),t&&o.createElement(V,{className:pt.input,property:t,min:m,max:h,step:f,disabled:p,name:"x-input",mode:void 0!==d?ne[d]:"integer"}))}function ft(e){const{definition:{properties:{x:t,y:i},mathOperationsX:r,mathOperationsY:a,modeX:l,modeY:s},disabled:c}=e;return o.createElement("div",{className:pt.selectionCoordinates},o.createElement("div",{className:pt.selectionCoordinates__inputs},i&&o.createElement(ut,{property:i,mathOperations:a,mode:s,disabled:c,className:pt.input,placeholder:u.t(null,void 0,n(51669))}),t&&o.createElement(ut,{property:t,mathOperations:r,mode:l,disabled:c,className:pt.input,placeholder:u.t(null,void 0,n(28175))})),o.createElement("div",{className:pt.selectionCoordinates__description},u.t(null,void 0,n(9866))))}var bt=n(49107);function vt(e){const{definition:{id:t,properties:{checked:n,option:i,disabled:l,visible:s,color:u,width:p,style:m},title:h,solutionId:f,options:b,infoTooltip:v},offset:y}=e,[g]=(0,r.useDefinitionProperty)({property:n,defaultValue:!0}),[E]=(0,r.useDefinitionProperty)({property:l,defaultValue:!1}),[w]=(0,r.useDefinitionProperty)({property:s,defaultValue:!0}),C=(0,o.useContext)(Ne.ControlCustomWidthContext),D=e.disabled||!g;return w?o.createElement(a.CommonSection,{id:t,offset:y,checked:n,title:h,solutionId:f,disabled:e.disabled||E,infoTooltip:v},o.createElement(Q.CellWrap,null,o.createElement(te,null,o.createElement(ke,{id:(0,d.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:c()(bt.dropdown,C[t]&&bt[C[t]]),menuClassName:c()(bt.dropdownMenu,C[t]&&bt[C[t]]),disabled:D||E,property:i,options:b}),u&&(void 0!==p||void 0!==m?o.createElement(G,{disabled:D,color:u,thickness:p,thicknessItems:p?[1,2,3,4]:void 0,lineStyle:m}):o.createElement(Se,{color:u,disabled:D}))))):null}var yt=n(42532);var gt,Et=n(39944),wt=n(81458),Ct=n(94205);!function(e){e[e.None=0]="None",e[e.From=1]="From",e[e.To=2]="To"}(gt||(gt={}));class Dt extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._rafPosition=null,this._rafDragStop=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null!==this._rafPosition||this.props.disabled||(this._rafPosition=requestAnimationFrame((()=>{const{from:t,to:n,min:o,max:i}=this.props,r=this._getNewPosition(e),a=1===this._detectPointerMode(e),l=a?(0,D.clamp)(r,o,n):t,s=a?n:(0,D.clamp)(r,t,i);l<=s&&this._handleChange(l,s),this._rafPosition=null})))},this._handleDragStop=()=>{null!==this._rafDragStop||this.props.disabled||(this._rafDragStop=requestAnimationFrame((()=>{this.setState({pointerDragMode:0}),this._rafDragStop=null,this.props.onCommit()})))},
|
||||||
|
this._onSliderClick=e=>{x.CheckMobile.any()||(this._handlePosition(e.nativeEvent),this._dragSubscribe())},this._mouseUp=e=>{this._dragUnsubscribe(),this._handlePosition(e),this._handleDragStop()},this._mouseMove=e=>{this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this._handleDragStop()},this.state={pointerDragMode:0}}componentWillUnmount(){null!==this._rafPosition&&(cancelAnimationFrame(this._rafPosition),this._rafPosition=null),null!==this._rafDragStop&&(cancelAnimationFrame(this._rafDragStop),this._rafDragStop=null),this._dragUnsubscribe()}render(){const{className:e,disabled:t,from:n,to:i,min:r,max:a}=this.props,{pointerDragMode:l}=this.state,c=0!==l,d=a-r,u=0===d?r:(n-r)/d,p=0===d?a:(i-r)/d,m=(0,wt.isRtl)()?"right":"left";return o.createElement("div",{className:s(e,Ct.range,t&&Ct.disabled)},o.createElement("div",{className:Ct.rangeSlider,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},o.createElement("div",{className:Ct.rangeSliderMiddleWrap},o.createElement("div",{className:s(Ct.rangeSliderMiddle,c&&Ct.dragged),style:{[m]:100*u+"%",width:100*(p-u)+"%"}})),o.createElement("div",{className:Ct.rangePointerWrap},o.createElement("div",{className:s(Ct.pointer,c&&Ct.dragged),style:{[m]:100*u+"%"},ref:this._refPointer})),o.createElement("div",{className:Ct.rangePointerWrap},o.createElement("div",{className:s(Ct.pointer,c&&Ct.dragged),style:{[m]:100*p+"%"}}))))}_dragSubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,v.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_getNewPosition(e){const{min:t,max:n}=this.props,o=n-t,i=(0,v.ensureNotNull)(this._container),r=(0,v.ensureNotNull)(this._pointer),a=i.getBoundingClientRect(),l=r.offsetWidth;let s=e.clientX-l/2-a.left;return(0,wt.isRtl)()&&(s=a.width-s-l),(0,D.clamp)(s/(a.width-l),0,1)*o+t}_detectPointerMode(e){const{from:t,to:n}=this.props,{pointerDragMode:o}=this.state;if(0!==o)return o;const i=this._getNewPosition(e),r=Math.abs(t-i),a=Math.abs(n-i),l=r===a?i<t?1:2:r<a?1:2;return this.setState({pointerDragMode:l}),l}_handleChange(e,t){const{from:n,to:o,onChange:i}=this.props;e===n&&t===o||i(e,t)}}var St=n(54466),xt=n(28023);function Vt(e){const{definition:{id:t,properties:{checked:n,disabled:i,from:l,to:s},title:d,solutionId:u,max:p,min:m},offset:h,disabled:f}=e,[b]=(0,r.useDefinitionProperty)({property:n,defaultValue:!0}),[v]=(0,r.useDefinitionProperty)({property:i,defaultValue:!1}),E=(0,oe.useWatchedValueReadonly)({watchedValue:m,defaultValue:void 0}),w=(0,oe.useWatchedValueReadonly)({watchedValue:p,defaultValue:void 0}),[C,D]=(0,r.useDefinitionProperty)({property:l}),[S,x]=(0,
|
||||||
|
r.useDefinitionProperty)({property:s}),V=y(C)||y(S),P=g(V?"mixed":C,(function(e){if(D(e),y(M)){const e=w||100;L(e),x(e)}})),[N,T,I]=P,_=g(V?"mixed":S,(function(e){if(x(e),y(N)){const e=E||0;T(e),D(e)}})),[M,L,R]=_,B=y(N)||y(M),A=f||y(b)||!b,F={flushed:!1};return o.createElement(a.CommonSection,{id:t,offset:h,checked:n,title:d,disabled:f||v},o.createElement(Q.CellWrap,{className:xt.range},function(){if(!E||!w)return null;return o.createElement(St.MatchMedia,{rule:"(max-width: 460px)"},(e=>o.createElement(te,{breakPoint:"Medium"},o.createElement(o.Fragment,null,o.createElement("span",{className:xt.valueInput},o.createElement(k,{className:xt.input,sharedBuffer:P,min:E,max:y(M)?w:M,step:1,disabled:A,name:"from-input",mode:"integer",defaultValue:E}),e?o.createElement("span",{className:xt.rangeSlider},"—"):o.createElement(Dt,{className:c()(xt.rangeSlider,B&&xt.rangeSlider_mixed),from:B?E:N,to:B?w:M,min:E,max:w,onChange:W,onCommit:O,disabled:A}))),o.createElement(o.Fragment,null,o.createElement("span",{className:xt.valueInput},o.createElement(k,{className:xt.input,sharedBuffer:_,min:y(N)?E:N,max:w,step:1,disabled:A,name:"to-input",mode:"integer",defaultValue:w}),u&&!1)))))}()));function W(e,t){T(Math.round(e)),L(Math.round(t))}function O(){F.flushed||(I(),R(),F.flushed=!0)}}var kt=n(83186),Pt=n(42830);function Nt(e){const{definitions:t,name:n,offset:i}=e,r=c()(Pt.cell,Pt.fragmentCell,t.some((e=>void 0!==e.solutionId))&&Pt.largeWidth);return o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{className:r,offset:i,placement:"first",verticalAlign:"adaptive",colSpan:2,"data-qa-id":`property-dialog-item ${n}`,checkableTitle:!0},t.map((e=>o.createElement("div",{className:Pt.item,key:e.id,"data-qa-id":`property-dialog-item ${e.id}`},o.createElement(It,{definition:e}))))))}function Tt(e){const{definition:t,offset:n}=e;return o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{className:Pt.cell,offset:n,placement:"first",verticalAlign:"adaptive",colSpan:2,checkableTitle:!0},o.createElement(It,{definition:t})))}function It(e){const{definition:{id:t,properties:{disabled:n,checked:i,color:a,level:l,width:s,style:u},solutionId:p,title:m,widthValues:f,styleValues:b,locked:v}}=e,[y]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),[g]=(0,r.useDefinitionProperty)({property:n,defaultValue:!1}),E=g||!y;return o.createElement(o.Fragment,null,o.createElement(Pe.CheckableTitle,{name:`is-enabled-${t}`,className:c()(m&&Pt.withTitle,v&&Pt.hidden),title:m&&o.createElement("span",{className:Pt.title},m),property:i,disabled:g}),l&&o.createElement(V,{className:c()(Pt.input,Pt.control),property:l,disabled:E}),a&&o.createElement(G,{className:Pt.control,disabled:E,color:a,thickness:s,thicknessItems:f,lineStyle:u,allowedLineStyles:b}),!a&&u&&o.createElement(h.LineStyleSelect,{id:(0,d.createDomId)(t,"leveled-line-style-select"),className:Pt.control,property:u,disabled:E,allowedLineStyles:b}),p&&!1)}var _t=n(11019);function Mt(e){
|
||||||
|
const{definition:{id:t,properties:{option1:n,option2:i,checked:l,disabled:s},title:c,solutionId:u,optionsItems1:p,optionsItems2:m},offset:h}=e,[f]=(0,r.useDefinitionProperty)({property:l,defaultValue:!0}),[b]=(0,r.useDefinitionProperty)({property:s,defaultValue:!1}),v=e.disabled||!f;return o.createElement(a.CommonSection,{id:t,offset:h,checked:l,title:c,solutionId:u,disabled:e.disabled||b},o.createElement(te,{className:_t.twoOptions},o.createElement(ke,{id:(0,d.createDomId)(t,"two-options-dropdown-1"),"data-name":"two-options-dropdown-1",className:_t.dropdown,menuClassName:_t.menu,property:n,disabled:v,options:p}),o.createElement(ke,{id:(0,d.createDomId)(t,"two-options-dropdown-2"),"data-name":"two-options-dropdown-2",className:_t.dropdown,menuClassName:_t.menu,property:i,disabled:v,options:m})))}var Lt=n(57069),Rt=n(60039);function Bt(e){const{definition:{id:t,properties:{color1:n,color2:i,option:r},options:l,color1Visible:s,color2Visible:u,title:p,noAlpha1:m,noAlpha2:h,solutionId:f},offset:b}=e,v=(0,Lt.useWatchedValueReadonly)({watchedValue:s,defaultValue:!1}),y=(0,Lt.useWatchedValueReadonly)({watchedValue:u,defaultValue:!1}),g=(0,o.useContext)(Ne.ControlCustomWidthContext);return o.createElement(a.CommonSection,{id:t,offset:b,solutionId:f,title:p},o.createElement(Q.CellWrap,{className:Rt.optionalTwoColors},o.createElement(te,null,o.createElement(ke,{id:(0,d.createDomId)(t,"options-dropdown"),"data-name":"options-dropdown",className:c()(Rt.dropdown,g[t]&&Rt[g[t]]),menuClassName:c()(Rt.dropdownMenu,g[t]&&Rt[g[t]]),property:r,options:l}),o.createElement(o.Fragment,null,v&&E(n,m),y&&E(i,h)))));function E(e,t){return o.createElement("span",{className:Rt.colorPicker},o.createElement(Se,{color:e,noAlpha:t}))}}var At=n(62352),Ft=n(28187),Wt=n(65399),Ot=n(24981),zt=n(74129),Gt=n(22419);function Ht(e){const{source:t,inputs:n,model:i,inputsTabProperty:r,studyMetaInfo:a}=e.definition,l=(0,o.useMemo)((()=>(0,zt.getStudyInfo)(a,t)),[a]),s=(0,o.useCallback)(((e,n,o,a)=>{const l=a??r.inputs;(0,Ot.setPropertyThroughUndoModel)({value:e,id:n,name:o,model:i,isStudyLineTool:!(0,At.isStudy)(t),property:l})}),[i,t,r]);return o.createElement(Wt.UserInputsTabContent,{className:Gt.withoutPadding,property:r,studyInfo:l,inputs:n,setProperty:s,tzName:(0,Ft.getTimezoneName)(i)})}var Jt=n(11284),Kt=n(32563),Zt=n(41027);function jt(e){const{definition:{id:t,title:n,properties:i,solutionId:l},offset:s}=e,{checked:c,emoji:d,backgroundColor:u}=i,[p]=(0,r.useDefinitionProperty)({property:c,defaultValue:!1}),[m,h]=(0,r.useDefinitionProperty)({property:d,defaultValue:"🙂"}),[f,b]=(0,r.useDefinitionProperty)({property:u,defaultValue:Jt.colorsPalette["color-tv-blue-a600"]}),[v]=(0,r.useDefinitionProperty)({property:i.disabled,defaultValue:!1}),y=e.disabled||!p;return o.createElement(a.CommonSection,{id:t,offset:s,checked:c,title:n,solutionId:l,disabled:e.disabled||v},o.createElement(Kt.EmojiPicker,{value:m,disabled:y,onSelect:h}),o.createElement(W.ColorSelect,{className:Zt.colorSelect,disabled:y,color:function(){if("mixed"===f)return f;return(0,
|
||||||
|
F.rgbToHexString)((0,F.parseRgb)(f))}(),opacity:f&&"mixed"!==f?(0,F.parseRgba)(f)[3]:void 0,onColorChange:function(e){const t=f&&"mixed"!==f?(0,O.alphaToTransparency)((0,F.parseRgba)(f)[3]):0;b((0,O.generateColor)(String(e),t,!0))},onOpacityChange:function(e){b((0,O.generateColor)(f,(0,O.alphaToTransparency)(e),!0))}}))}function $t(e){const{definition:{id:t,properties:{disabled:n,visible:i},childrenDefinitions:l,title:s},offset:c}=e,[d]=(0,r.useDefinitionProperty)({property:n,defaultValue:!1}),[u]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),p=e.disabled;return u?o.createElement(o.Fragment,null,s&&o.createElement(a.CommonSection,{id:t,offset:c,title:s,disabled:e.disabled||d}),l.map((e=>o.createElement(ie.PropertyTable.WrapRowInner,{key:`wrapper-${e.id}`},o.createElement(cn,{key:e.id,disabled:p,definition:e,offset:e.offset??Boolean(s)}))))):null}var Ut=n(74457);function Yt(e){const{label:t,checked:n,disabled:i,onChange:r,hint:a,dataName:l,dataQaId:s,description:c,onCheckboxFocus:d,onCheckboxBlur:u}=e;return o.createElement(o.Fragment,null,o.createElement("div",{className:Ut.container},o.createElement("div",{onMouseDown:d,onMouseUp:u},o.createElement(pe.Checkbox,{checked:n,disabled:i,onChange:function(){r(!n)},label:t,labelAlignBaseline:!0,className:Ut.checkbox,"data-name":l,dataQaId:s})),!1),c&&o.createElement("div",{className:Ut.description},c))}var Xt=n(38343);function qt(e){const{definition:{id:t,properties:{checked:n,visible:i,disabled:a},title:l,solutionId:s,infoTooltip:c},offset:d}=e,[u]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),[p]=(0,r.useDefinitionProperty)({property:a,defaultValue:!1}),[m,h]=(0,r.useDefinitionProperty)({property:n,defaultValue:Boolean(n?.value())});return u?o.createElement(ie.PropertyTable.Row,null,o.createElement(ie.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:d,"data-qa-id":`property-dialog-item ${t}`,checkableTitle:!0,colSpan:2},o.createElement("div",{className:Xt.checkboxWrapper},o.createElement(Yt,{dataQaId:t,label:l??"",checked:Boolean(m),disabled:Boolean(p),description:c,hint:s?{solutionId:s,title:l??""}:void 0,dataName:t,onChange:e=>{h(e)}})))):null}var Qt=n(93107);function en(e){const{definition:{id:t,properties:{checked:n,visible:i,disabled:l,option:s},title:d,options:u,solutionId:p,childrenDefinition:m},offset:h,disabled:f}=e,b=(0,o.useContext)(Ne.ControlCustomWidthContext),[v]=(0,r.useDefinitionProperty)({property:l,defaultValue:!1}),[y]=(0,r.useDefinitionProperty)({property:n,defaultValue:!0}),[g]=(0,r.useDefinitionProperty)({property:i,defaultValue:!0}),E=f||!y;return g?o.createElement(a.CommonSection,{id:t,offset:h,checked:n,title:d,solutionId:p,disabled:f||v},o.createElement(Q.CellWrap,null,o.createElement(te,null,o.createElement(ke,{property:s,options:u,disabled:E||v,className:c()(Qt.dropdown,"normal"===b[t]&&Qt.dropdown_width_normal,"big"===b[t]&&Qt.dropdown_width_big),menuClassName:c()(Qt.dropdown__menu,"normal"===b[t]&&Qt.dropdown__menu_width_normal,"big"===b[t]&&Qt.dropdown__menu_width_big),
|
||||||
|
"data-name":"options-dropdown","data-qa-id":"options-dropdown"}),o.createElement(tn,{definition:m,disabled:E})))):null}function tn(e){const{definition:t,disabled:n}=e;switch(t.propType){case"color":return o.createElement(nn,{definition:t,disabled:n});case"twoColors":return o.createElement(on,{definition:t,disabled:n});case"line":return o.createElement(rn,{definition:t,disabled:n});case"options":return o.createElement(ln,{definition:t,disabled:n});case"number":return o.createElement(sn,{definition:t,disabled:n});default:return null}}function nn(e){const{definition:{properties:{color:t,disabled:n}},disabled:i}=e,[a]=(0,r.useDefinitionProperty)({property:n,defaultValue:!1});return o.createElement(Se,{color:t,disabled:i||a})}function on(e){const{definition:{properties:{color1:t,color2:n,disabled:i},color1Visible:a,color2Visible:l,noAlpha1:s,noAlpha2:c},disabled:d}=e,[u]=(0,r.useDefinitionProperty)({property:i,defaultValue:!1}),p=(0,Lt.useWatchedValueReadonly)({watchedValue:a,defaultValue:!1}),m=(0,Lt.useWatchedValueReadonly)({watchedValue:l,defaultValue:!1});return o.createElement("div",{className:Qt.optionalSetChild},p&&o.createElement(Se,{color:t,disabled:d||u,noAlpha:s}),m&&o.createElement(Se,{color:n,disabled:d||u,noAlpha:c}))}function rn(e){const{definition:{properties:{color:t,width:n,style:i}},disabled:r}=e;return o.createElement(G,{disabled:r,color:t,thickness:n,lineStyle:i,thicknessItems:n?an:void 0})}const an=[1,2,3,4];function ln(e){const{definition:{properties:{option:t},id:n,options:i},disabled:r}=e,a=(0,o.useContext)(Ne.ControlCustomWidthContext);return o.createElement(ke,{property:t,options:i,disabled:r,className:c()(Qt.dropdown,"normal"===a[n]&&Qt.dropdown_width_normal,"big"===a[n]&&Qt.dropdown_width_big),menuClassName:c()(Qt.dropdown__menu,"normal"===a[n]&&Qt.dropdown__menu_width_normal,"big"===a[n]&&Qt.dropdown__menu_width_big)})}function sn(e){const{definition:{id:t,properties:{value:n},min:i,max:r,unit:a},disabled:l}=e,s=(0,o.useContext)(Ne.ControlCustomWidthContext),d=(0,Lt.useWatchedValueReadonly)({watchedValue:i,defaultValue:void 0}),u=(0,Lt.useWatchedValueReadonly)({watchedValue:r,defaultValue:void 0}),p=(0,Lt.useWatchedValueReadonly)({watchedValue:a,defaultValue:void 0});return o.createElement("div",{className:Qt.optionalSetChild},o.createElement(V,{property:n,min:d,max:u,disabled:l,className:c()(Qt.numberChildInput,"normal"===s[t]&&Qt.numberChildInput_width_normal,"big"===s[t]&&Qt.numberChildInput_width_big)}),p&&o.createElement("span",null,p))}function cn(e){const{definition:t,offset:n,disabled:r}=e;if(function(e){(0,o.useEffect)((()=>{if(void 0===e)return;const t={...e.properties};return Object.entries(t).forEach((([n,o])=>{void 0!==o&&o.subscribe(t,(()=>yt.logger.logNormal(`Property "${n}" in definition "${e.id}" was updated to value "${o.value()}"`)))})),()=>{Object.entries(t).forEach((([,e])=>{e?.unsubscribeAll(t)}))}}),[e])}((0,i.isPropertyDefinitionsGroup)(t)?void 0:t),(0,i.isPropertyDefinitionsGroup)(t))return o.createElement(dn,{definition:t,offset:n,disabled:r});switch(t.propType){
|
||||||
|
case"line":return o.createElement(Me,{...e,definition:t});case"checkable":return o.createElement(l,{...e,definition:t});case"color":return o.createElement(We,{...e,definition:t});case"transparency":return o.createElement(Ge,{...e,definition:t});case"twoColors":return o.createElement(Je,{...e,definition:t});case"optionalTwoColors":return o.createElement(Bt,{...e,definition:t});case"fourColors":case"session":case"multiSession":case"soundSelect":case"soundVolume":case"image":default:return null;case"number":return o.createElement(Ze,{...e,definition:t});case"symbol":return o.createElement(Et.SymbolSection,{...e,definition:t});case"text":return o.createElement(st,{...e,definition:t});case"checkableSet":return o.createElement(je,{...e,definition:t});case"set":return o.createElement($t,{...e,definition:t});case"options":return o.createElement(vt,{...e,definition:t});case"range":return o.createElement(Vt,{...e,definition:t});case"coordinates":case"selectionCoordinates":return o.createElement(mt,{...e,definition:t});case"twoOptions":return o.createElement(Mt,{...e,definition:t});case"leveledLine":return o.createElement(Tt,{...e,definition:t});case"emoji":return o.createElement(jt,{...e,definition:t});case"studyInputs":return o.createElement(Ht,{...e,definition:t});case"checkableWithDescription":return o.createElement(qt,{...e,definition:t});case"optionalSet":return o.createElement(en,{definition:t,disabled:r})}}function dn(e){const{definition:t}=e,n=(0,oe.useWatchedValueReadonly)({watchedValue:t.definitions});return(0,oe.useWatchedValueReadonly)({watchedValue:t.visible,defaultValue:!0})?(0,i.isCheckableListOptionsDefinition)(t)?o.createElement(Ie,{definition:t}):o.createElement(o.Fragment,null,t.title&&o.createElement(kt.GroupTitleSection,{title:t.title,name:t.id}),n&&function(e){const t=[];return e.reduce(((e,t)=>{if((0,i.isPropertyDefinitionsGroup)(t)||"leveledLine"!==t.propType)e.push(t);else{const n=e[e.length-1];Array.isArray(n)?n.push(t):e.push([t])}return e}),t)}(n).map((n=>Array.isArray(n)?o.createElement(Nt,{key:n[0].id,name:t.id,definitions:n}):o.createElement(cn,{key:n.id,...e,definition:n}))),"general"===t.groupType&&o.createElement(ie.PropertyTable.GroupSeparator,{size:1})):null}},46269:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>m});var o=n(79474),i=n(14487),r=n.n(i),a=n(9774),l=n(88169),s=n(29914),c=n(78484),d=n(19840),u=n(91965),p=n(27094);const m=o.forwardRef(((e,t)=>{const{listboxId:n,className:i,listboxClassName:m,listboxTabIndex:h,hideArrowButton:f,matchButtonAndListboxWidths:b,popupPosition:v,disabled:y,isOpened:g,scrollWrapReference:E,repositionOnScroll:w,closeOnHeaderOverlap:C,listboxReference:D,size:S="small",onClose:x,onOpen:V,onListboxFocus:k,onListboxBlur:P,onListboxKeyDown:N,buttonChildren:T,children:I,caretClassName:_,buttonContainerClassName:M,listboxAria:L,dataQaId:R,...B}=e,A=(0,o.useRef)(null),F=!f&&o.createElement(c.EndSlot,null,o.createElement(u.Caret,{isDropped:g,disabled:!0,className:_}));return o.createElement(d.PopupMenuDisclosureView,{buttonRef:A,listboxId:n,
|
||||||
|
listboxClassName:m,listboxTabIndex:h,isOpened:g,onClose:x,onOpen:V,listboxReference:D,scrollWrapReference:E,onListboxFocus:k,onListboxBlur:P,onListboxKeyDown:N,listboxAria:L,dataQaId:(0,s.dataQaIds)("popup-menu-container",R),matchButtonAndListboxWidths:b,popupPosition:v,button:o.createElement(l.ControlSkeleton,{...B,"data-qa-id":(0,s.dataQaIds)("ui-kit-disclosure-control",R),"data-role":"listbox",disabled:y,className:r()(p.button,i),size:S,ref:(0,a.useMergedRefs)([A,t]),middleSlot:o.createElement(c.MiddleSlot,null,o.createElement("span",{className:r()(p["button-children"],f&&p.hiddenArrow,M)},T)),endSlot:F}),popupChildren:I,repositionOnScroll:w,closeOnHeaderOverlap:C})}));m.displayName="ControlDisclosureView"},15923:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosure:()=>d});var o=n(79474),i=n(9774),r=n(55501),a=n(46269),l=n(70670),s=n(23351),c=n(27094);const d=o.forwardRef(((e,t)=>{const{id:n,tabIndex:d,disabled:u,highlight:p,intent:m,children:h,onClick:f,onFocus:b,onBlur:v,listboxAria:y,onListboxKeyDown:g,...E}=e,w=(0,o.useRef)({"aria-labelledby":n}),{listboxId:C,isOpened:D,isFocused:S,buttonTabIndex:x,listboxTabIndex:V,highlight:k,intent:P,onOpen:N,close:T,toggle:I,buttonFocusBindings:_,onButtonClick:M,buttonRef:L,listboxRef:R,buttonAria:B}=(0,l.useControlDisclosure)({id:n,disabled:u,buttonTabIndex:d,intent:m,highlight:p,onFocus:b,onBlur:v,onClick:f}),A=(0,r.useKeyboardToggle)(I),F=(0,r.useKeyboardClose)(D,T),W=(0,r.useKeyboardEventHandler)([A,F]);return o.createElement(a.ControlDisclosureView,{...E,..._,...B,id:n,role:"button",tabIndex:x,disabled:u,isOpened:D,isFocused:S,ref:(0,i.useMergedRefs)([L,t]),highlight:k,intent:P,onClose:T,onOpen:N,onClick:M,onKeyDown:W,listboxId:C,listboxTabIndex:V,listboxReference:R,listboxAria:y??w.current,onListboxKeyDown:function(e){if(27===(0,s.hashFromEvent)(e))return e.preventDefault(),void T();g?.(e)}},h,o.createElement("span",{className:c.invisibleFocusHandler,tabIndex:0,"aria-hidden":!0,onFocus:()=>T()}))}));d.displayName="ControlDisclosure"},32563:(e,t,n)=>{"use strict";n.d(t,{EmojiPicker:()=>N});var o=n(79474),i=n(82287),r=n(29844),a=n(41277),l=n(65946);var s=n(29344),c=n(17896),d=n(77690),u=n(86738),p=n(47893),m=n(73283),h=n(54466);function f(e){!function(e,t){(0,o.useEffect)((()=>{const n=t||document;return n.addEventListener("scroll",e),()=>n.removeEventListener("scroll",e)}),[e])}(e,document)}var b=n(86739),v=n(73873),y=n(14487),g=n.n(y),E=n(56138);function w(e){const{children:t,highlight:n,disabled:i,reference:r,...a}=e,l=n?"primary":"default";return o.createElement("div",{...a,ref:r,className:g()(E.wrapper,E[`intent-${l}`],E["border-thin"],E["size-medium"],n&&E.highlight,n&&E.focused,i&&E.disabled),"data-role":"button"},o.createElement("div",{className:g()(E.childrenContainer,i&&E.disabled)},t),n&&o.createElement("span",{className:E.shadow}))}var C=n(7717),D=n(74237);const S=()=>null,x=(0,m.mergeThemes)(u.DEFAULT_MENU_THEME,{menuBox:D.menuBox}),V=378,k=18,P=200;function N(e){const{value:t,disabled:n,onSelect:a,onClose:u,canBeEmpty:m,renderButton:y=T}=e,g=(0,
|
||||||
|
o.useRef)(null),{current:E}=(0,o.useRef)((w=t,i.getJSON("RecentlyUsedEmojis",[w]).filter((e=>e!==C.EMPTY_EMOJI))));var w;const N=(0,o.useRef)(null),[I,_]=(0,o.useState)(E),[M,L]=(0,o.useState)(!1),R=(0,o.useRef)(null),B=(0,o.useCallback)((()=>{L(!1),u?.(),R.current=null}),[u]);f((0,o.useCallback)((()=>{!R.current||Date.now()-R.current<P||B()}),[B]));const A=(0,o.useCallback)((e=>{if(e!==C.EMPTY_EMOJI){const t=Array.from(new Set([e,...I])).slice(0,k);i.setJSON("RecentlyUsedEmojis",t),_(t)}a(e),B()}),[I,a]),F=(0,o.useMemo)((()=>m?[C.EMPTY_EMOJI,...I].slice(0,k):I),[I,m]),W=(O=F,(0,o.useMemo)((()=>{const e=(0,l.emojiGroups)();return e[0].emojis=O,e}),[O]));var O;return o.createElement(o.Fragment,null,o.createElement("div",{ref:g,className:D.buttonWrap},y({emoji:t,isOpened:M,disabled:n,onClick:function(){if(M)return void B();n||(L(!0),R.current=Date.now())}})),o.createElement(h.MatchMedia,{rule:v.DialogBreakpoints.TabletSmall},(e=>M&&o.createElement(c.DrawerManager,null,e?o.createElement(d.Drawer,{className:D.drawer,position:"Bottom",onClose:B,"data-qa-id":"emojipicker-menu"},o.createElement(r.EmojiList,{emojis:W,onSelect:A,height:V})):o.createElement(s.PopupMenu,{theme:x,onKeyDown:G,isOpened:!0,position:(0,b.getPopupPositioner)(g.current,{horizontalDropDirection:b.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:b.HorizontalAttachEdge.Left}),closeOnClickOutside:!1,onClickOutside:H,onClose:S,controller:N,onOpen:z,tabIndex:-1,dataQaId:"emojipicker-menu"},o.createElement(r.EmojiList,{className:D.desktopSize,emojis:W,onSelect:A,height:V}))))));function z(){N.current?.focus()}function G(e){27===(0,p.hashFromEvent)(e)&&(e.preventDefault(),e.stopPropagation(),B())}function H(e){const t=e.target;t instanceof Node&&g.current?.contains(t)||B()}}function T(e){const{emoji:t,isOpened:n,disabled:i,onClick:r}=e;return o.createElement(w,{highlight:n,disabled:i,"data-name":"emoji-picker"},o.createElement(a.EmojiWrap,{emoji:t,onClick:r}))}},55501:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>o.useKeyboardActionHandler,useKeyboardClose:()=>o.useKeyboardClose,useKeyboardEventHandler:()=>o.useKeyboardEventHandler,useKeyboardOpen:()=>o.useKeyboardOpen,useKeyboardToggle:()=>o.useKeyboardToggle});var o=n(4724)},28986:(e,t,n)=>{"use strict";n.d(t,{Select:()=>w});var o=n(79474),i=n(69947),r=n(48504),a=n(51970),l=n(9774),s=n(83683),c=n(1642),d=n(88434),u=n(89315);var p=n(6831),m=n(55501),h=n(46269),f=n(70670),b=n(81458),v=n(42785);function y(e){return!e.readonly}function g(e,t){return t?.id??(0,r.createDomId)(e,"item",t?.value)}function E(e){const{selectedItem:t,placeholder:n}=e;if(!t)return o.createElement("span",{className:v.placeholder},n);const i=t.selectedContent??t.content??t.value;return o.createElement("span",null,i)}const w=o.forwardRef(((e,t)=>{
|
||||||
|
const{id:n,menuClassName:v,menuItemClassName:w,tabIndex:C,disabled:D,highlight:S,intent:x,hideArrowButton:V,placeholder:k,addPlaceholderToItems:P=!1,value:N,"aria-labelledby":T,onFocus:I,onBlur:_,onClick:M,onChange:L,onKeyDown:R,repositionOnScroll:B=!0,openMenuOnEnter:A=!0,"aria-describedby":F,"aria-invalid":W,...O}=e;let{items:z}=e;if(k&&P){z=[{value:void 0,content:k,id:(0,r.createDomId)(n,"placeholder")},...z]}const{listboxId:G,isOpened:H,isFocused:J,buttonTabIndex:K,listboxTabIndex:Z,highlight:j,intent:$,open:U,onOpen:Y,close:X,toggle:q,buttonFocusBindings:Q,onButtonClick:ee,buttonRef:te,listboxRef:ne,buttonAria:oe}=(0,f.useControlDisclosure)({id:n,disabled:D,buttonTabIndex:C,intent:x,highlight:S,onFocus:I,onBlur:_,onClick:M});!function(e,t,n){const i=(0,a.usePrevious)(e);(0,o.useEffect)((()=>{e&&!i&&t?.(),!e&&i&&n?.()}),[e])}(H,e.onOpen,e.onClose);const ie=z.filter(y),re=ie.find((e=>e.value===N)),[ae,le]=o.useState(k&&P?ie[0].value:re?.value),[se,ce,de]=(0,s.useKeepActiveItemIntoView)({activeItem:re});(0,i.useIsomorphicLayoutEffect)((()=>le(re?.value)),[N]);const ue=(0,r.joinDomIds)(T,n),pe=ue.length>0?ue:void 0,me=(0,o.useMemo)((()=>({role:"listbox","aria-labelledby":T,"aria-activedescendant":g(n,re)})),[T,re]),he=(0,o.useCallback)((e=>e.value===ae),[ae]),fe=(0,o.useCallback)((()=>(X(),L&&L(ae))),[X,L,ae]),be=(0,p.useItemsKeyboardNavigation)("vertical",b.isRtl,ie,he,(t=>{le(t.value),e.onItemNavigated?.(t)}),!1,{next:[40],previous:[38]}),ve=(0,m.useKeyboardToggle)(q,H||A),ye=(0,m.useKeyboardToggle)(fe),ge=(0,m.useKeyboardClose)(H,xe),Ee=(0,m.useKeyboardOpen)(H,U),we=(0,m.useKeyboardEventHandler)([ve,ge,Ee]),Ce=(0,m.useKeyboardEventHandler)([be,ye,ge]),De=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)((()=>(0,d.default)((()=>{t.current=""}),500)),[]),i=(0,o.useMemo)((()=>(0,u.default)(e,200)),[e]);return(0,o.useCallback)((e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,i(t.current,e),n())}),[n,i])}(((t,n)=>{const o=function(e,t,n){return e.find((e=>{const o=t.toLowerCase();return!e.readonly&&(n?n(e).toLowerCase().startsWith(o):!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(o)||"string"==typeof e.textContent&&e.textContent.toLowerCase().startsWith(o)||String(e.value??"").toLowerCase().startsWith(o)))}))}(ie,t,e.getSearchKey);void 0!==o&&L&&(n.stopPropagation(),H||U(),L(o.value))}));return o.createElement(h.ControlDisclosureView,{...O,...oe,...Q,id:n,role:"button",tabIndex:K,"aria-owns":oe["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":pe,disabled:D,hideArrowButton:V,isFocused:J,isOpened:H,highlight:j,intent:$,ref:(0,l.useMergedRefs)([te,t]),onClick:ee,onOpen:function(){de(re,{duration:0}),Y()},onClose:xe,onKeyDown:function(e){we(e),R&&R(e);e.defaultPrevented||De(e)},listboxId:G,listboxTabIndex:Z,listboxClassName:v,listboxAria:me,"aria-describedby":F,"aria-invalid":W,listboxReference:ne,scrollWrapReference:se,onListboxKeyDown:function(e){Ce(e),e.defaultPrevented||De(e)},buttonChildren:o.createElement(E,{selectedItem:re??null,placeholder:k}),repositionOnScroll:B
|
||||||
|
},z.map(((t,i)=>{if(t.readonly)return o.createElement(o.Fragment,{key:`readonly_item_${i}`},t.content);const r=g(n,t);return o.createElement(c.PopupMenuItem,{key:r,id:r,className:w,role:"option","aria-selected":N===t.value,isActive:ae===t.value,label:t.content??t.value,onClick:Se,onClickArg:t.value,isDisabled:t.disabled,reference:e=>ce(t,e),onMouseOver:()=>e.onItemMouseOver?.(t),onMouseOut:()=>e.onItemMouseOut?.(t)})})));function Se(e){L&&(L(e),le(e))}function xe(){le(re?.value),X()}}));w.displayName="Select"},57058:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>u});var o=n(91599),i=n(79474),r=n(14487),a=n.n(r),l=n(66334),s=n(28390),c=n(6693),d=n(36779);function u(e){const{className:t,isActive:r,onClick:u,onMouseDown:p,title:m,hidden:h,"data-name":f="remove-button",icon:b,...v}=e,[y,g]=(0,s.useActiveDescendant)(null);return i.createElement(l.Icon,{...v,"data-name":f,className:a()(d.button,"apply-common-tooltip",r&&d.active,h&&d.hidden,g&&d.focused,t),icon:b||c,onClick:u,onMouseDown:p,title:m??o.t(null,void 0,n(91126)),ariaLabel:m??o.t(null,void 0,n(91126)),ref:y})}},99274:e=>{e.exports={checkbox:"checkbox-hcyAOCXc",item:"item-hcyAOCXc"}},60714:(e,t,n)=>{"use strict";n.d(t,{focusFirstMenuItem:()=>d,handleAccessibleMenuFocus:()=>s,handleAccessibleMenuKeyDown:()=>c,queryMenuElements:()=>m});var o=n(78122),i=n(87918),r=n(23351),a=n(45280);const l=[37,39,38,40];function s(e,t){if(!e.target)return;const n=e.relatedTarget?.getAttribute("aria-activedescendant");if(e.relatedTarget!==t.current){const e=n&&document.getElementById(n);if(!e||e!==t.current)return}d(e.target)}function c(e){if(e.defaultPrevented)return;const t=(0,r.hashFromEvent)(e);if(!l.includes(t))return;const n=document.activeElement;if(!(document.activeElement instanceof HTMLElement))return;const a=m(e.currentTarget).sort(o.navigationOrderComparator);if(0===a.length)return;const s=document.activeElement.closest('[data-role="menuitem"]')||document.activeElement.parentElement?.querySelector('[data-role="menuitem"]');if(!(s instanceof HTMLElement))return;const c=a.indexOf(s);if(-1===c)return;const d=h(s),f=d.indexOf(document.activeElement),b=-1!==f,v=e=>{n&&(0,i.becomeSecondaryElement)(n),(0,i.becomeMainElement)(e),e.focus()};switch((0,o.mapKeyCodeToDirection)(t)){case"inlinePrev":if(!d.length)return;e.preventDefault(),v(0===f?a[c]:b?u(d,f,-1):d[d.length-1]);break;case"inlineNext":if(!d.length)return;e.preventDefault(),f===d.length-1?v(a[c]):v(b?u(d,f,1):d[0]);break;case"blockPrev":{e.preventDefault();const t=u(a,c,-1);if(b){const e=p(t,f);v(e||t);break}v(t);break}case"blockNext":{e.preventDefault();const t=u(a,c,1);if(b){const e=p(t,f);v(e||t);break}v(t)}}}function d(e){const[t]=m(e);t&&((0,i.becomeMainElement)(t),t.focus())}function u(e,t,n){return e[(t+e.length+n)%e.length]}function p(e,t){const n=h(e);return n.length?n[(t+n.length)%n.length]:null}function m(e){return Array.from(e.querySelectorAll('[data-role="menuitem"]:not([disabled]):not([aria-disabled="true" i])')).filter((0,a.createScopedVisibleElementFilter)(e))}function h(e){
|
||||||
|
return Array.from(e.querySelectorAll('[tabindex]:not([disabled]):not([aria-disabled="true" i])')).filter((0,a.createScopedVisibleElementFilter)(e))}},86739:(e,t,n)=>{"use strict";n.d(t,{HorizontalAttachEdge:()=>i,HorizontalDropDirection:()=>a,VerticalAttachEdge:()=>o,VerticalDropDirection:()=>r,getPopupPositioner:()=>c});var o,i,r,a,l=n(85842);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.AutoStrict=2]="AutoStrict"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(i||(i={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(r||(r={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(a||(a={}));const s={verticalAttachEdge:o.Bottom,horizontalAttachEdge:i.Left,verticalDropDirection:r.FromTopToBottom,horizontalDropDirection:a.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return n=>{const{contentWidth:c,contentHeight:d,availableHeight:u}=n,p=(0,l.ensureNotNull)(e).getBoundingClientRect(),{horizontalAttachEdge:m=s.horizontalAttachEdge,horizontalDropDirection:h=s.horizontalDropDirection,horizontalMargin:f=s.horizontalMargin,verticalMargin:b=s.verticalMargin,matchButtonAndListboxWidths:v=s.matchButtonAndListboxWidths}=t;let y=t.verticalAttachEdge??s.verticalAttachEdge,g=t.verticalDropDirection??s.verticalDropDirection;y===o.AutoStrict&&(u<p.y+p.height+b+d?(y=o.Top,g=r.FromBottomToTop):(y=o.Bottom,g=r.FromTopToBottom));const E=y===o.Top?-1*b:b,w=m===i.Right?p.right:p.left,C=y===o.Top?p.top:p.bottom,D={x:w-(h===a.FromRightToLeft?c:0)+f,y:C-(g===r.FromBottomToTop?d:0)+E};return v&&(D.overrideWidth=p.width),D}}},21566:(e,t,n)=>{"use strict";n.d(t,{createPropertyDefinitionsCheckableListOptionsGroup:()=>i});var o=n(89659);function i(e,t,n,i,r,a,l,s){return{id:i,title:r,visible:a,groupType:"checkableListOptions",checked:t,definitions:new o.WatchedValue(n),checkableListOptions:e,hideCheckbox:l,placeHolder:s}}},11614:(e,t,n)=>{"use strict";function o(e,t){return{propType:"checkable",properties:e,notFormatedTitle:!1,...t}}n.d(t,{createCheckablePropertyDefinition:()=>o})},42644:(e,t,n)=>{"use strict";n.d(t,{getColorDefinitionProperty:()=>c,getStdColorDefinitionProperty:()=>d});var o=n(55482),i=n(82347),r=n(20707),a=n(74970),l=n(93204);function s(e,t){if((0,i.isHexColor)(e)){const n=(0,o.parseRgb)(e);return(0,o.rgbaToString)((0,o.rgba)(n,(100-t)/100))}return e}function c(e,t,n,o,i){let l;if(null!==n){const e=(0,r.combineProperty)(s,t.weakReference(),n.weakReference());l=(0,a.makeProxyDefinitionProperty)(e.ownership())}else l=(0,a.makeProxyDefinitionProperty)(t.weakReference(),[()=>s(t.value(),0),e=>e]);return l.setValue=n=>{i&&e.beginUndoMacro(o),e.setProperty(t,n,o),i&&e.endUndoMacro()},l}function d(e,t,n,o,i){const s=(0,a.makeProxyDefinitionProperty)((0,r.combineProperty)((e=>t.value(e)),function(e){const t=(0,l.createPrimitiveProperty)(e.value()),n=e=>t.setValue(e);return t.destroy=()=>{e.release(),e.unsubscribe(n)},e.subscribe(n),t
|
||||||
|
}(n).ownership(),t.weakReference()).ownership());var c;return s.setValue=(c=n=>{e.setProperty(t,n,o)},i?(...t)=>{e.beginUndoMacro(o),c(...t),e.endUndoMacro()}:c),s}},74970:(e,t,n)=>{"use strict";n.d(t,{convertToDefinitionProperty:()=>r,makeProxyDefinitionProperty:()=>i});var o=n(64906);function i(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue(r(t))},subscribe:(t,n)=>{const i=e=>{n(a)};o.set(n,i),e.subscribe(t,i)},unsubscribe:(t,n)=>{const i=o.get(n);i&&(e.unsubscribe(t,i),o.delete(n))},unsubscribeAll:t=>{e.unsubscribeAll(t),o.clear()},destroy:()=>{e.release(),n?.()}};return a}function r(e,t,n,r,a,l,s){const c=i(t.weakReference(),r,l),d=void 0!==r?void 0!==r[1]?r[1]:r[0]:e=>e,u=a??(o=>e.setProperty(t,d(o),n));return c.setValue=e=>{s&&(0,o.trackEvent)(s.category,s.event,s.label?.(e)),u(e)},c}},90082:(e,t,n)=>{"use strict";n.d(t,{createLinePropertyDefinition:()=>s});var o=n(68459),i=n(80140);const r=[i.LINESTYLE_SOLID,i.LINESTYLE_DOTTED,i.LINESTYLE_DASHED],a=[1,2,3,4],l=[o.LineEnd.Normal,o.LineEnd.Arrow];function s(e,t){const n={propType:"line",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=r),void 0!==n.properties.width&&(n.widthValues=a),void 0===n.properties.leftEnd&&void 0===n.properties.rightEnd||void 0!==n.endsValues||(n.endsValues=l),void 0!==n.properties.value&&void 0===n.valueType&&(n.valueType=1),n}},1341:(e,t,n)=>{"use strict";var o;function i(e,t){return{propType:"number",properties:e,type:1,...t}}n.d(t,{createNumberPropertyDefinition:()=>i}),function(e){e[e.Integer=0]="Integer",e[e.Float=1]="Float"}(o||(o={}))},54484:(e,t,n)=>{"use strict";function o(e,t){return{propType:"options",properties:e,...t}}n.d(t,{createOptionsPropertyDefinition:()=>o})},73405:(e,t,n)=>{"use strict";n.d(t,{convertFromReadonlyWVToDefinitionProperty:()=>H,convertFromWVToDefinitionProperty:()=>G,convertToDefinitionProperty:()=>O.convertToDefinitionProperty,createCheckablePropertyDefinition:()=>o.createCheckablePropertyDefinition,createCheckableSetPropertyDefinition:()=>i,createColorPropertyDefinition:()=>r,createCoordinatesPropertyDefinition:()=>k,createEmojiPropertyDefinition:()=>L,createImagePropertyDefinition:()=>M,createLeveledLinePropertyDefinition:()=>d,createLinePropertyDefinition:()=>a.createLinePropertyDefinition,createNumberPropertyDefinition:()=>u.createNumberPropertyDefinition,createOptionalTwoColorsPropertyDefinition:()=>V,createOptionsPropertyDefinition:()=>p.createOptionsPropertyDefinition,createPropertyDefinitionsCheckableListOptionsGroup:()=>F.createPropertyDefinitionsCheckableListOptionsGroup,createPropertyDefinitionsGeneralGroup:()=>A,createPropertyDefinitionsLeveledLinesGroup:()=>W,createRangePropertyDefinition:()=>N,createSelectionCoordinatesPropertyDefinition:()=>P,createSessionPropertyDefinition:()=>_,createStudyInputsPropertyDefinition:()=>R,createSymbolPropertyDefinition:()=>I,createTextPropertyDefinition:()=>S,createTransparencyPropertyDefinition:()=>T,createTwoColorsPropertyDefinition:()=>x,
|
||||||
|
createTwoOptionsPropertyDefinition:()=>m,destroyDefinitions:()=>ne,getColorDefinitionProperty:()=>j.getColorDefinitionProperty,getLockPriceScaleDefinitionProperty:()=>K,getPriceScaleSelectionStrategyDefinitionProperty:()=>J,getScaleRatioDefinitionProperty:()=>Z,getSymbolDefinitionProperty:()=>$,isCheckableListOptionsDefinition:()=>te,isColorDefinition:()=>q,isLineDefinition:()=>X,isOptionsDefinition:()=>ee,isPropertyDefinition:()=>U,isPropertyDefinitionsGroup:()=>Y,isTwoColorDefinition:()=>Q,makeProxyDefinitionProperty:()=>O.makeProxyDefinitionProperty});var o=n(11614);function i(e,t,n){return{propType:"checkableSet",properties:e,childrenDefinitions:n,...t}}function r(e,t){return{propType:"color",properties:e,noAlpha:!1,...t}}var a=n(90082),l=n(80140);const s=[l.LINESTYLE_SOLID,l.LINESTYLE_DOTTED,l.LINESTYLE_DASHED],c=[1,2,3,4];function d(e,t){const n={propType:"leveledLine",properties:e,...t};return void 0!==n.properties.style&&(n.styleValues=s),void 0!==n.properties.width&&(n.widthValues=c),n}var u=n(1341),p=n(54484);function m(e,t){return{propType:"twoOptions",properties:e,...t}}var h,f=n(91599),b=n(95385);!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(h||(h={}));const v=[{id:b.VerticalAlign.Top,value:b.VerticalAlign.Bottom,title:f.t(null,void 0,n(65388))},{id:b.VerticalAlign.Middle,value:b.VerticalAlign.Middle,title:f.t(null,void 0,n(55636))},{id:b.VerticalAlign.Bottom,value:b.VerticalAlign.Top,title:f.t(null,void 0,n(65244))}],y=[{id:b.HorizontalAlign.Left,value:b.HorizontalAlign.Left,title:f.t(null,void 0,n(48816))},{id:b.HorizontalAlign.Center,value:b.HorizontalAlign.Center,title:f.t(null,void 0,n(93283))},{id:b.HorizontalAlign.Right,value:b.HorizontalAlign.Right,title:f.t(null,void 0,n(98415))}],g=[{id:"horizontal",value:"horizontal",title:f.t(null,void 0,n(88837))},{id:"vertical",value:"vertical",title:f.t(null,void 0,n(503))}],E=[8,10,11,12,14,16,18,20,22,24,28,32,40].map((e=>({title:String(e),value:e}))),w=[1,2,3,4],C=f.t(null,void 0,n(74953)),D=f.t(null,void 0,n(37223));function S(e,t){const n={propType:"text",properties:e,...t,isEditable:t.isEditable||!1};return void 0!==n.properties.size&&void 0===n.sizeItems&&(n.sizeItems=E),void 0!==n.properties.alignmentVertical&&void 0===n.alignmentVerticalItems&&(n.alignmentVerticalItems=v),void 0!==n.properties.alignmentHorizontal&&void 0===n.alignmentHorizontalItems&&(n.alignmentHorizontalItems=y),(n.alignmentVerticalItems||n.alignmentHorizontalItems)&&void 0===n.alignmentTitle&&(n.alignmentTitle=C),void 0!==n.properties.orientation&&(void 0===n.orientationItems&&(n.orientationItems=g),void 0===n.orientationTitle&&(n.orientationTitle=D)),void 0!==n.properties.borderWidth&&void 0===n.borderWidthItems&&(n.borderWidthItems=w),n}function x(e,t){return{propType:"twoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function V(e,t){return{propType:"optionalTwoColors",properties:e,noAlpha1:!1,noAlpha2:!1,...t}}function k(e,t){return{propType:"coordinates",properties:e,...t}}function P(e,t){return{propType:"selectionCoordinates",properties:e,...t}}
|
||||||
|
function N(e,t){return{propType:"range",properties:e,...t}}function T(e,t){return{propType:"transparency",properties:e,...t}}function I(e,t){return{propType:"symbol",properties:e,...t}}function _(e,t){return{propType:"session",properties:e,...t}}function M(e,t){return{propType:"image",properties:e,...t}}function L(e,t){return{propType:"emoji",properties:e,...t}}function R(e,t){return{propType:"studyInputs",properties:e,...t}}var B=n(89659);function A(e,t,n,o){return{id:t,title:n,visible:o,groupType:"general",definitions:new B.WatchedValue(e)}}var F=n(21566);function W(e,t,n){return{id:t,title:n,groupType:"leveledLines",definitions:new B.WatchedValue(e)}}var O=n(74970);function z(e,t,n){const o=new Map,i=void 0!==t?t[0]:e=>e,r=void 0!==t?void 0!==t[1]?t[1]:t[0]:e=>e,a={value:()=>i(e.value()),setValue:t=>{e.setValue?.(r(t))},subscribe:(t,n)=>{const i=()=>{n(a)};let r=o.get(t);void 0===r?(r=new Map,r.set(n,i),o.set(t,r)):r.set(n,i),e.subscribe(i)},unsubscribe:(t,n)=>{const i=o.get(t);if(void 0!==i){const t=i.get(n);void 0!==t&&(e.unsubscribe(t),i.delete(n))}},unsubscribeAll:t=>{const n=o.get(t);void 0!==n&&(n.forEach(((t,n)=>{e.unsubscribe(t)})),n.clear())}};return n&&(a.destroy=()=>n()),a}function G(e,t,n,o,i){const r=z(t,o,i),a=void 0!==o?void 0!==o[1]?o[1]:o[0]:e=>e;return r.setValue=o=>e.setWatchedValue(t,a(o),n),r}function H(e,t){return function(e,t,n,o){const i=new Map,r={subscribe:(n,o)=>{const r=e=>n(t(e));i.set(n,r),e.subscribe(r,o)},unsubscribe:t=>{if(t){const n=i.get(t);n&&(e.unsubscribe(n),i.delete(t))}else i.clear(),e.unsubscribe()},value:()=>t(e.value())};return z(r,n,o)}(e,(e=>e),t,(()=>e.release()))}function J(e,t){const n=(0,O.makeProxyDefinitionProperty)(t.weakReference());return n.setValue=t=>e.setPriceScaleSelectionStrategy(t),n}function K(e,t,n,o){const i=(0,O.makeProxyDefinitionProperty)(t.weakReference());return i.setValue=t=>{const i={lockScale:t};e.setPriceScaleMode(i,n,o)},i}function Z(e,t,n,o){const i=(0,O.makeProxyDefinitionProperty)(t.weakReference(),o);return i.setValue=o=>{e.setScaleRatioProperty(t,o,n)},i}var j=n(42644);function $(e,t,n,o,i,r){const a=[(l=n,s=t,e=>{const t=l(s);if(e===s.value()&&null!==t){const e=t.ticker||t.full_name;if(e)return e}return e}),e=>e];var l,s;const c=(0,O.convertToDefinitionProperty)(e,t,i,a);r&&(c.setValue=r);const d=new Map;c.subscribe=(e,n)=>{const o=e=>{n(c)};d.set(n,o),t.subscribe(e,o)},c.unsubscribe=(e,n)=>{const o=d.get(n);o&&(t.unsubscribe(e,o),d.delete(n))};const u={};return o.subscribe(u,(()=>{d.forEach(((e,t)=>{t(c)}))})),c.destroy=()=>{o.unsubscribeAll(u),d.clear()},c}function U(e){return e.hasOwnProperty("propType")}function Y(e){return e.hasOwnProperty("groupType")}function X(e){return"line"===e.propType}function q(e){return"color"===e.propType}function Q(e){return"twoColors"===e.propType}function ee(e){return"options"===e.propType}function te(e){return"checkableListOptions"===e.groupType}function ne(e){e.forEach((e=>{if(U(e)){Object.keys(e.properties).forEach((t=>{const n=e.properties[t];void 0!==n&&void 0!==n.destroy&&n.destroy()}))
|
||||||
|
}else ne(e.definitions.value()),e.visible?.destroy()}))}},24981:(e,t,n)=>{"use strict";n.d(t,{setPropertyThroughUndoModel:()=>d});var o=n(72769),i=n(60135),r=n(34773),a=n(85842),l=n(82372),s=n(40451);const c=new o.TranslatedString("change {propertyName} property",i.t(null,{context:"undo input change"},n(1717)));function d(e){const{id:t,model:n,name:i,property:d,value:u,isStudyLineTool:p=!1}=e,m=(0,a.ensureDefined)(e.property.child(t)),h=new o.TranslatedString(i,(0,l.getTranslatedInputTitle)(i));s.logger.logNormal(`Changing property "${t}" value from "${d.value()}" to "${u}"`),n.setProperty(m,u,c.format({propertyName:h}),p&&r.lineToolsDoNotAffectChartInvalidation)}},32509:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M12 4h3v1h-1.04l-.88 9.64a1.5 1.5 0 0 1-1.5 1.36H6.42a1.5 1.5 0 0 1-1.5-1.36L4.05 5H3V4h3v-.5C6 2.67 6.67 2 7.5 2h3c.83 0 1.5.67 1.5 1.5V4ZM7.5 3a.5.5 0 0 0-.5.5V4h4v-.5a.5.5 0 0 0-.5-.5h-3ZM5.05 5l.87 9.55a.5.5 0 0 0 .5.45h5.17a.5.5 0 0 0 .5-.45L12.94 5h-7.9Z"/></svg>'},78025:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'},6693:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},1018:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'},26317:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M3 13h2v2H3v-2Zm5 0h2v2H8v-2Zm7 0h-2v2h2v-2Zm3 0h2v2h-2v-2Zm7 0h-2v2h2v-2Z"/></svg>'},51528:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M23 8H5V7h18v1ZM9 14H5v-1h4v1Zm3 0h4v-1h-4v1Zm11 0h-4v-1h4v1ZM7 19H5v2h2v-2Zm2 0h2v2H9v-2Zm6 0h-2v2h2v-2Zm2 0h2v2h-2v-2Zm6 0h-2v2h2v-2Z"/></svg>'},85658:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'},80633:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M4.5 13.5H24m-19.5 0L8 17m-3.5-3.5L8 10"/></svg>'},21786:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path stroke="currentColor" d="M8.5 13.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm0 0H24"/></svg>'},19320:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M14 21h-3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3c2 0 4 1 4 3 0 1 0 2-1.5 3 1.5.5 2.5 2 2.5 4 0 2.75-2.638 4-5 4zM12 9l.004 3c.39.026.82 0 1.25 0C14.908 12 16 11.743 16 10.5c0-1.1-.996-1.5-2.5-1.5-.397 0-.927-.033-1.5 0zm0 5v5h1.5c1.5 0 3.5-.5 3.5-2.5S15 14 13.5 14c-.5 0-.895-.02-1.5 0z"/></svg>'},34943:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M12.143 20l1.714-12H12V7h5v1h-2.143l-1.714 12H15v1h-5v-1h2.143z"/></svg>'}}]);
|
||||||
5
charting_library/bundles/1912.89fd2d49dcba3d9f1d89.js
Normal file
5
charting_library/bundles/1912.89fd2d49dcba3d9f1d89.js
Normal file
File diff suppressed because one or more lines are too long
1
charting_library/bundles/1941.1c566e13022689467386.css
Normal file
1
charting_library/bundles/1941.1c566e13022689467386.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
charting_library/bundles/1954.e5232e0eb892021a5cad.css
Normal file
1
charting_library/bundles/1954.e5232e0eb892021a5cad.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.summary-ynHBVe1n{align-items:center;box-sizing:border-box;color:var(--tv-color-popup-element-secondary-text,var(--color-popup-element-secondary-text));cursor:default;display:flex;flex:none;font-size:11px;letter-spacing:.4px;line-height:16px;min-width:0;padding-block:0 0;padding-inline:12px 8px;text-transform:uppercase;width:100%}.summary-ynHBVe1n.hovered-ynHBVe1n{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}@media (any-hover:hover){.summary-ynHBVe1n:hover{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}}.summary-ynHBVe1n:active{background-color:var(--tv-color-popup-element-background-hover,var(--color-container-fill-primary-neutral-light))}.caret-ynHBVe1n{height:18px;justify-content:center;margin-block:2px 2px;margin-inline:auto 0;width:18px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.summary-ynHBVe1n{align-items:center;box-sizing:border-box;color:var(--tv-color-popup-element-secondary-text,var(--color-popup-element-secondary-text));cursor:default;display:flex;flex:none;font-size:11px;letter-spacing:.4px;line-height:16px;min-width:0;padding-block:0 0;padding-inline:12px 8px;text-transform:uppercase;width:100%}.summary-ynHBVe1n.hovered-ynHBVe1n{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}@media (any-hover:hover){.summary-ynHBVe1n:hover{background-color:var(--tv-color-popup-element-background-hover,var(--color-popup-element-background-hover))}}.summary-ynHBVe1n:active{background-color:var(--tv-color-popup-element-background-hover,var(--color-container-fill-primary-neutral-light))}.caret-ynHBVe1n{height:18px;justify-content:center;margin-block:2px 2px;margin-inline:auto 0;width:18px}
|
||||||
@@ -1 +0,0 @@
|
|||||||
.themesButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#131722);font-size:14px;width:100px}html.theme-dark .themesButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#d1d4dc)}.themesButtonIcon-w7kgghoW{display:flex}.defaultsButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#131722);font-size:16px;width:100px}html.theme-dark .defaultsButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#d1d4dc)}.defaultsButtonItem-w7kgghoW{min-width:100px}.defaultsButtonItem-w7kgghoW:focus-within .remove-w7kgghoW{visibility:visible}.backButton-yMMXpYEB{margin-left:-3px;margin-right:17px}.withSidebar-F0WBLDV5{display:block;max-width:750px;min-width:610px;width:auto}@media screen and (max-width:768px){.withSidebar-F0WBLDV5{max-width:610px;min-width:420px;width:auto}}@media screen and (max-width:430px){.withSidebar-F0WBLDV5{min-height:auto;min-width:100%}}.withSidebar-F0WBLDV5 .content-F0WBLDV5{border-top:1px solid var(--themed-color-properties-dialog-borders,#e0e3eb);display:flex;flex:1 1 auto;flex-direction:row;overflow:hidden}html.theme-dark .withSidebar-F0WBLDV5 .content-F0WBLDV5{border-top:1px solid var(--themed-color-properties-dialog-borders,#434651)}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;width:auto}@media screen and (max-height:290px){.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{min-height:auto}}@supports (-moz-appearance:none){.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar{height:5px;width:5px}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-corner{display:none}.withSidebar-F0WBLDV5 .applyToAllButton-F0WBLDV5{padding-right:12px}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.themesButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#131722);font-size:14px;width:100px}html.theme-dark .themesButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#d1d4dc)}.themesButtonIcon-w7kgghoW{display:flex}.defaultsButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#131722);font-size:16px;width:100px}html.theme-dark .defaultsButtonText-w7kgghoW{color:var(--themed-color-properties-dialog-defaults-text,#d1d4dc)}.defaultsButtonItem-w7kgghoW{min-width:100px}.defaultsButtonItem-w7kgghoW:focus-within .remove-w7kgghoW{visibility:visible}.backButton-yMMXpYEB{margin-left:17px;margin-right:-3px}.withSidebar-F0WBLDV5{display:block;max-width:750px;min-width:610px;width:auto}@media screen and (max-width:768px){.withSidebar-F0WBLDV5{max-width:610px;min-width:420px;width:auto}}@media screen and (max-width:430px){.withSidebar-F0WBLDV5{min-height:auto;min-width:100%}}.withSidebar-F0WBLDV5 .content-F0WBLDV5{border-top:1px solid var(--themed-color-properties-dialog-borders,#e0e3eb);display:flex;flex:1 1 auto;flex-direction:row;overflow:hidden}html.theme-dark .withSidebar-F0WBLDV5 .content-F0WBLDV5{border-top:1px solid var(--themed-color-properties-dialog-borders,#434651)}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;width:auto}@media screen and (max-height:290px){.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{min-height:auto}}@supports (-moz-appearance:none){.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .withSidebar-F0WBLDV5 .tabContent-F0WBLDV5{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar{height:5px;width:5px}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.withSidebar-F0WBLDV5 .tabContent-F0WBLDV5::-webkit-scrollbar-corner{display:none}.withSidebar-F0WBLDV5 .applyToAllButton-F0WBLDV5{padding-left:12px}
|
|
||||||
11
charting_library/bundles/2064.94883075f89a8532740d.js
Normal file
11
charting_library/bundles/2064.94883075f89a8532740d.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2064],{76284:e=>{e.exports={pills:"pills-PVWoXu5j",primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",blue:"blue-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},71042:e=>{e.exports={lightButton:"lightButton-bYDQcOkp",link:"link-bYDQcOkp",ltr:"ltr-bYDQcOkp",rtl:"rtl-bYDQcOkp","typography-regular16px":"typography-regular16px-bYDQcOkp","typography-medium16px":"typography-medium16px-bYDQcOkp","typography-regular14px":"typography-regular14px-bYDQcOkp","typography-semibold14px":"typography-semibold14px-bYDQcOkp","typography-semibold16px":"typography-semibold16px-bYDQcOkp",content:"content-bYDQcOkp",visuallyHidden:"visuallyHidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp",ellipsisContainer:"ellipsisContainer-bYDQcOkp",textWrapContainer:"textWrapContainer-bYDQcOkp",textWrapWithEllipsis:"textWrapWithEllipsis-bYDQcOkp",slot:"slot-bYDQcOkp",caret:"caret-bYDQcOkp",activeCaret:"activeCaret-bYDQcOkp",xsmall:"xsmall-bYDQcOkp",withStartSlot:"withStartSlot-bYDQcOkp",withEndSlot:"withEndSlot-bYDQcOkp",noContent:"noContent-bYDQcOkp",wrap:"wrap-bYDQcOkp",small:"small-bYDQcOkp",medium:"medium-bYDQcOkp"}},39017:e=>{e.exports={input:"input-RUSovanF","size-xxsmall":"size-xxsmall-RUSovanF","size-xsmall":"size-xsmall-RUSovanF","size-small":"size-small-RUSovanF","size-medium":"size-medium-RUSovanF","size-large":"size-large-RUSovanF","with-start-slot":"with-start-slot-RUSovanF","with-end-slot":"with-end-slot-RUSovanF"}},75332:e=>{e.exports={loader:"loader-UL6iwcBa",static:"static-UL6iwcBa",item:"item-UL6iwcBa","tv-button-loader":"tv-button-loader-UL6iwcBa",medium:"medium-UL6iwcBa",small:"small-UL6iwcBa",black:"black-UL6iwcBa",white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},53160:e=>{e.exports={"tablet-normal-breakpoint":"(max-width: 768px)","small-height-breakpoint":"(max-height: 360px)","tablet-small-breakpoint":"(max-width: 440px)"}},56138:e=>{e.exports={wrapper:"wrapper-VB9J73Gf",focused:"focused-VB9J73Gf",readonly:"readonly-VB9J73Gf",disabled:"disabled-VB9J73Gf","size-small":"size-small-VB9J73Gf","size-medium":"size-medium-VB9J73Gf","size-large":"size-large-VB9J73Gf","font-size-small":"font-size-small-VB9J73Gf","font-size-medium":"font-size-medium-VB9J73Gf","font-size-large":"font-size-large-VB9J73Gf","border-none":"border-none-VB9J73Gf",shadow:"shadow-VB9J73Gf","border-thin":"border-thin-VB9J73Gf","border-thick":"border-thick-VB9J73Gf","intent-default":"intent-default-VB9J73Gf","intent-success":"intent-success-VB9J73Gf","intent-warning":"intent-warning-VB9J73Gf","intent-danger":"intent-danger-VB9J73Gf","intent-primary":"intent-primary-VB9J73Gf","corner-top-left":"corner-top-left-VB9J73Gf",
|
||||||
|
"corner-top-right":"corner-top-right-VB9J73Gf","corner-bottom-right":"corner-bottom-right-VB9J73Gf","corner-bottom-left":"corner-bottom-left-VB9J73Gf",childrenContainer:"childrenContainer-VB9J73Gf"}},22577:e=>{e.exports={autocomplete:"autocomplete-uszkUMOz",suggestions:"suggestions-uszkUMOz",suggestion:"suggestion-uszkUMOz",noResults:"noResults-uszkUMOz",selected:"selected-uszkUMOz",opened:"opened-uszkUMOz"}},74237:e=>{e.exports={buttonWrap:"buttonWrap-icygBqe7",desktopSize:"desktopSize-icygBqe7",drawer:"drawer-icygBqe7",menuBox:"menuBox-icygBqe7"}},66613:e=>{e.exports={button:"button-F5dN3ulE",emoji:"emoji-F5dN3ulE",emptySelect:"emptySelect-F5dN3ulE"}},58313:e=>{e.exports={emojiWrap:"emojiWrap-R2CTpmHr",emoji:"emoji-R2CTpmHr",tooltipEmoji:"tooltipEmoji-R2CTpmHr",tooltipEmojiWrap:"tooltipEmojiWrap-R2CTpmHr"}},3139:e=>{e.exports={emojiSelect:"emojiSelect-IY7RpEY6",placeholder:"placeholder-IY7RpEY6"}},13528:(e,t,n)=>{"use strict";n.d(t,{AppContext:()=>o});const o=(0,n(79474).createContext)({isOnMobileAppPage:()=>!1,isRtl:!1,locale:"en",renderMode:"legacy"})},96518:(e,t,n)=>{"use strict";function o(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}n.d(t,{isIconOnly:()=>o})},8120:(e,t,n)=>{"use strict";n.d(t,{LightButton:()=>o.LightButton});n(54571);var o=n(7859);n(79474),n(14232),n(92531),n(71042),n(76284);n(90741)},54571:(e,t,n)=>{"use strict";n.d(t,{useLightButtonClasses:()=>u});var o=n(79474),r=n(14487),s=n.n(r),i=n(42391),a=n(96518),l=n(59794);const c=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),u=(e,t,n)=>{const r=(0,o.useContext)(i.CustomBehaviourContext),{className:u,isSelected:p,children:d,showCaret:m,forceDirection:h,iconOnly:g,color:f="gray",variant:v="primary",size:E="medium",enableActiveStateStyles:y=r.enableActiveStateStyles,typography:b,isLink:C=!1,textWrap:w,isPills:S,isActive:x,startSlot:O,endSlot:k}=t,B=e[`typography-${((e,t,n)=>{if(n){const e=n.replace(/^\D+/g,"");return t?`semibold${e}`:n}switch(e){case"xsmall":return t?"semibold14px":"regular14px";case"small":case"medium":return t?"semibold16px":"regular16px";default:return""}})(E,p||S,b||void 0)}`],D=(0,o.useContext)(l.ControlGroupContext),{isInButtonGroup:M,isGroupPrimary:_}=(0,o.useContext)(c);return s()(u,e.lightButton,C&&e.link,x&&e.active,p&&e.selected,(0,a.isIconOnly)(d,g)&&e.noContent,!!O&&e.withStartSlot,(m||!!k)&&e.withEndSlot,n&&e.withGrouped,h&&e[h],e[_?"primary":v],e[_?"gray":f],e[E],B,!y&&e.disableActiveStateStyles,D.isGrouped&&e.grouped,w&&e.wrap,M&&e.disableActiveOnTouch,S&&e.pills)}},92531:(e,t,n)=>{"use strict";n.d(t,{LightButtonContent:()=>h});var o=n(79474),r=n(14487),s=n.n(r),i=n(27914),a=n(96518),l=n(66334),c=n(43616),u=n.n(c),p=n(71042),d=n.n(p);const m=e=>o.createElement(l.Icon,{className:s()(d().caret,e&&d().activeCaret),icon:u()});function h(e){const{showCaret:t,iconOnly:n,ellipsis:r=!0,textWrap:l,tooltipText:c,children:u,endSlot:p,startSlot:h,isActiveCaret:g}=e;[p,t].filter((e=>!!e));return o.createElement(o.Fragment,null,h&&o.createElement("span",{className:s()(d().slot,d().startSlot)
|
||||||
|
},h),!(0,a.isIconOnly)(u,n)&&o.createElement("span",{className:s()(d().content,!l&&d().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":c??(0,i.getTextForTooltip)(u)},l||r?o.createElement(o.Fragment,null,o.createElement("span",{className:s()(!l&&r&&d().ellipsisContainer,l&&d().textWrapContainer,l&&r&&d().textWrapWithEllipsis)},u),o.createElement("span",{className:d().visuallyHidden,"aria-hidden":!0},u)):o.createElement(o.Fragment,null,u,o.createElement("span",{className:d().visuallyHidden,"aria-hidden":!0},u))),p&&o.createElement("span",{className:s()(d().slot,d().endSlot)},p),t&&m(g))}},7859:(e,t,n)=>{"use strict";n.d(t,{LightButton:()=>d});var o=n(79474),r=n(59794),s=n(54571),i=n(92531),a=n(40197),l=n(71042),c=n.n(l),u=n(76284),p=n.n(u);function d(e){const{isGrouped:t}=o.useContext(r.ControlGroupContext),{reference:n,className:l,isSelected:u,children:d,iconOnly:m,ellipsis:h,showCaret:g,forceDirection:f,endSlot:v,startSlot:E,color:y,variant:b,size:C,enableActiveStateStyles:w,typography:S,textWrap:x=!1,maxLines:O,style:k={},isPills:B,isActive:D,tooltipText:M,role:_,dataQaId:j,name:A,onFocus:F,onBlur:T,onMouseEnter:R,onMouseLeave:I,onMouseOver:z,onMouseOut:P,onClick:V,onAnimationEnd:L,onPointerOver:N,onPointerOut:W,onKeyDown:U,autoFocus:Q,isActiveCaret:G,id:Y,disabled:J,tabIndex:H,value:q,title:K,type:X,...$}=e,Z=(0,a.filterDataProps)($),ee=(0,a.filterAriaProps)($),te=x?O??2:1,ne=te>0?{...k,"--ui-lib-light-button-content-max-lines":te}:k;return o.createElement("button",{name:A,onFocus:F,onBlur:T,onMouseEnter:R,onMouseLeave:I,onMouseOver:z,onMouseOut:P,onClick:V,onAnimationEnd:L,onPointerOver:N,onPointerOut:W,onKeyDown:U,autoFocus:Q,id:Y,disabled:J,tabIndex:H,value:q,title:K,type:X,"data-qa-id":j,...Z,...ee,className:(0,s.useLightButtonClasses)({...p(),...c()},{className:l,isSelected:u,children:d,iconOnly:m,showCaret:g,forceDirection:f,endSlot:v,startSlot:E,color:y,variant:b,size:C,enableActiveStateStyles:w,typography:S,textWrap:x,isPills:B,isActive:D},t),ref:n,style:ne,role:_},o.createElement(i.LightButtonContent,{showCaret:g,isActiveCaret:g&&(B||D||u||G),iconOnly:m,ellipsis:h,textWrap:x,tooltipText:M,endSlot:v,startSlot:E},d))}},82651:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>b});var o=n(79474),r=n(14487),s=n.n(r),i=n(29914),a=n(40197),l=n(69550),c=n(26834),u=n(9774),p=n(94530),d=n(55971),m=n(59618),h=n(13621),g=n(78484),f=n(39017),v=n.n(f);function E(e){return!(0,a.isAriaAttribute)(e)&&!(0,a.isDataAttribute)(e)}function y(e){const{id:t,title:n,role:r,tabIndex:l,placeholder:c,name:u,type:p,value:d,defaultValue:m,draggable:f,autoComplete:y,autoFocus:b,autoCapitalize:C,autoCorrect:w,maxLength:S,min:x,max:O,step:k,pattern:B,inputMode:D,onSelect:M,onFocus:_,onBlur:j,onKeyDown:A,onKeyUp:F,onKeyPress:T,onChange:R,onDragStart:I,size:z="small",className:P,inputClassName:V,disabled:L,readonly:N,containerTabIndex:W,startSlot:U,endSlot:Q,reference:G,containerReference:Y,onContainerFocus:J,dataQaId:H,...q}=e,K=(0,
|
||||||
|
a.filterProps)(q,E),X={...(0,a.filterAriaProps)(q),...(0,a.filterDataProps)(q),id:t,title:n,role:r,tabIndex:l,placeholder:c,name:u,type:p,value:d,defaultValue:m,draggable:f,autoComplete:y,autoFocus:b,autoCapitalize:C,autoCorrect:w,maxLength:S,min:x,max:O,step:k,pattern:B,inputMode:D,onSelect:M,onFocus:_,onBlur:j,onKeyDown:A,onKeyUp:F,onKeyPress:T,onChange:R,onDragStart:I};return o.createElement(h.ControlSkeleton,{...K,disabled:L,readonly:N,tabIndex:W,className:P,size:z,ref:Y,onFocus:J,startSlot:U,middleSlot:o.createElement(g.MiddleSlot,null,o.createElement("input",{...X,className:s()(v().input,v()[`size-${z}`],V,U&&v()["with-start-slot"],Q&&v()["with-end-slot"]),disabled:L,readOnly:N,ref:G,"data-qa-id":(0,i.dataQaIds)("ui-lib-Input-input",H?`${H}-input`:void 0)})),endSlot:Q,"data-qa-id":(0,i.dataQaIds)("ui-lib-Input",H)})}function b(e){e=(0,p.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:s,onBlur:i,reference:a,containerReference:h=null,dataQaId:g}=e,f=(0,o.useRef)(null),v=(0,o.useRef)(null),[E,b]=(0,d.useFocus)(),C=t?void 0:E?-1:r,w=t?void 0:E?r:-1,{isMouseDown:S,handleMouseDown:x,handleMouseUp:O}=(0,m.useIsMouseDown)(),k=(0,l.createSafeMulticastEventHandler)(b.onFocus,(function(e){n&&!S.current&&(0,c.selectAllContent)(e.currentTarget)}),s),B=(0,l.createSafeMulticastEventHandler)(b.onBlur,i),D=(0,o.useCallback)((e=>{f.current=e,a&&("function"==typeof a&&a(e),"object"==typeof a&&(a.current=e))}),[f,a]);return o.createElement(y,{...e,isFocused:E,containerTabIndex:C,tabIndex:w,onContainerFocus:function(e){v.current===e.target&&null!==f.current&&f.current.focus()},onFocus:k,onBlur:B,reference:D,containerReference:(0,u.useMergedRefs)([v,h]),onMouseDown:x,onMouseUp:O,dataQaId:g})}},42391:(e,t,n)=>{"use strict";n.d(t,{CustomBehaviourContext:()=>o});const o=(0,n(79474).createContext)({enableActiveStateStyles:!0});o.displayName="CustomBehaviourContext"},94530:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>s});var o=n(69550),r=n(55971);function s(e){const{onFocus:t,onBlur:n,intent:s,highlight:i,disabled:a}=e,[l,c]=(0,r.useFocus)(void 0,a),u=(0,o.createSafeMulticastEventHandler)(a?void 0:c.onFocus,t),p=(0,o.createSafeMulticastEventHandler)(a?void 0:c.onBlur,n);return{...e,intent:s||(l?"primary":"default"),highlight:i??l,onFocus:u,onBlur:p}}},55971:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(79474);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)((()=>{t&&n&&r(!1)}),[t,n]);const s={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,s]}},73064:(e,t,n)=>{"use strict";n.d(t,{useFunctionalRefObject:()=>s});var o=n(79474),r=n(69947);function s(e){const t=(0,o.useMemo)((()=>function(e){const t=n=>{e(n),t.current=n};return t.current=null,t}((e=>{a.current(e)}))),[]),n=(0,o.useRef)(null),s=t=>{if(null===t)return i(n.current,t),void(n.current=null);n.current!==e&&(n.current=e,i(n.current,t))},a=(0,o.useRef)(s);return a.current=s,(0,
|
||||||
|
r.useIsomorphicLayoutEffect)((()=>{if(null!==t.current)return a.current(t.current),()=>a.current(null)}),[e]),t}function i(e,t){null!==e&&("function"==typeof e?e(t):e.current=t)}},59618:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(79474);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)((()=>{e.current=!0}),[e]),n=(0,o.useCallback)((()=>{e.current=!1}),[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},9774:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>s});var o=n(79474),r=n(16455);function s(e){return(0,o.useCallback)((0,r.mergeRefs)(e),e)}},61366:(e,t,n)=>{"use strict";n.d(t,{useResizeObserver:()=>i});var o=n(79474),r=n(69947),s=n(73064);function i(e,t=[]){const{callback:n,ref:i=null}=function(e){return"function"==typeof e?{callback:e}:e}(e),a=(0,o.useRef)(null),l=(0,o.useRef)(n);l.current=n;const c=(0,s.useFunctionalRefObject)(i),u=(0,o.useCallback)((e=>{c(e),null!==a.current&&(a.current.disconnect(),null!==e&&a.current.observe(e))}),[c,a]);return(0,r.useIsomorphicLayoutEffect)((()=>(a.current=new ResizeObserver(((e,t)=>{l.current(e,t)})),c.current&&u(c.current),()=>{a.current?.disconnect()})),[c,...t]),u}},61597:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>c});var o,r=n(79474),s=n(14487),i=n.n(s),a=n(75332),l=n.n(a);function c(e){const{className:t,size:n="medium",staticPosition:o,color:s="black"}=e,a=i()(l().item,l()[s],l()[n]);return r.createElement("span",{className:i()(l().loader,o&&l().static,t)},r.createElement("span",{className:a}),r.createElement("span",{className:a}),r.createElement("span",{className:a}))}!function(e){e.Medium="medium",e.Small="small"}(o||(o={}))},27914:(e,t,n)=>{"use strict";n.d(t,{getTextForTooltip:()=>i});var o=n(79474);const r=e=>(0,o.isValidElement)(e)&&Boolean(e.props.children),s=(e,t=!0)=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+(t?" ":""),i=e=>Array.isArray(e)||(0,o.isValidElement)(e)?o.Children.toArray(e).reduce(((e,t)=>{let n="";return n=(0,o.isValidElement)(t)&&r(t)?i(t.props.children):(0,o.isValidElement)(t)&&!r(t)?"":s(t),e.concat(n)}),"").trim():s(e,!1)},26834:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},69550:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},64483:(e,t,n)=>{"use strict";n.d(t,{createReactRoot:()=>p});var o=n(79474),r=n(29365),s=n(36334),i=n(13528),a=n(90141),l=n(81458);const c={iOs:"old",android:"new",old:"old",new:"new",any:"any"};function u(e){const[t]=(0,o.useState)({isOnMobileAppPage:e=>(0,a.isOnMobileAppPage)(c[e]),isRtl:(0,l.isRtl)(),locale:window.locale,renderMode:e.renderMode??"legacy"});return o.createElement(i.AppContext.Provider,{value:t},e.children)}function p(e,t,n="legacy"){const i=o.createElement(u,{renderMode:n},e);if("modern"===n){const e=(0,s.createRoot)(t);return e.render(i),{render(t){e.render(o.createElement(u,{renderMode:n},t))},unmount(){e.unmount()}}}return r.render(i,t),{render(e){r.render(o.createElement(u,{
|
||||||
|
renderMode:n},e),t)},unmount(){r.unmountComponentAtNode(t)}}}},73873:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var o=n(53160);const r={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},63653:(e,t,n)=>{"use strict";n.d(t,{Autocomplete:()=>A});var o,r=n(91599),s=n(79474),i=n(14487),a=n.n(i),l=n(91965),c=n(78484),u=n(61726);!function(e){e[e.Enter=13]="Enter",e[e.Space=32]="Space",e[e.Backspace=8]="Backspace",e[e.DownArrow=40]="DownArrow",e[e.UpArrow=38]="UpArrow",e[e.RightArrow=39]="RightArrow",e[e.LeftArrow=37]="LeftArrow",e[e.Escape=27]="Escape",e[e.Tab=9]="Tab"}(o||(o={}));var p=n(64888),d=n(85842),m=n(47893),h=n(73064),g=n(82651),f=n(16905),v=n(65946),E=n(66334),y=n(8120),b=n(96996),C=n(32563),w=n(7717),S=n(66613),x=n(98696);function O(e){const{emoji:t,onSelect:o,onClose:i,buttonClassName:l}=e;return s.createElement(C.EmojiPicker,{value:t,onSelect:o,onClose:i,renderButton:e=>function(e,t){const{emoji:o,onClick:i}=e;return s.createElement(y.LightButton,{className:a()(t,S.button,"apply-common-tooltip"),title:r.t(null,void 0,n(87646)),size:"xsmall",color:"gray",variant:"ghost",onClick:i,tabIndex:0,startSlot:o===w.EMPTY_EMOJI?s.createElement(E.Icon,{className:S.emptySelect,icon:x}):s.createElement(b.EmojiItem,{className:S.emoji,emoji:o})})}(e,l),canBeEmpty:!0})}var k=n(3139);const B=(0,f.isFeaturesetEnabled)("advanced_emoji_in_titles");function D(e){const{value:t="",onChange:n,reference:o=null,emojiPicker:r=!1,dataQaId:i,...a}=e,{emoji:l,emojiLessString:c}=(0,s.useMemo)((()=>(0,v.separateEmoji)(t)),[t]),u=(0,h.useFunctionalRefObject)(o);return B&&r?s.createElement(g.InputControl,{...a,reference:u,value:c,dataQaId:i,onChange:function(e){n?.(l+e.currentTarget.value)},onKeyDown:function(t){if(e.onKeyDown?.(t),t.defaultPrevented)return;const{selectionStart:o,selectionEnd:r}=(0,d.ensureNotNull)(u.current);0===o&&0===r&&l&&8===(0,m.hashFromEvent)(t)&&(t.preventDefault(),n?.(c))},startSlot:s.createElement(O,{emoji:l,onSelect:function(e){n?.(e+c)},onClose:function(){u.current?.focus()},buttonClassName:k.emojiSelect})}):s.createElement(g.InputControl,{...a,value:t,dataQaId:i,reference:o,onChange:function(e){n?.(e.currentTarget.value)}})}var M=n(16910),_=n(22577);function j(e,t){return""===e||-1!==t.toLowerCase().indexOf(e.toLowerCase())}class A extends s.PureComponent{constructor(e){if(super(e),this._containerInputElement=null,this._raf=null,this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame((()=>{this.setState({appearingWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null})))},this._handleMeasure=()=>{if(this.state.isMeasureValid||!this.props.suggestionsInPortal||!this._containerInputElement)return;const{bottom:e,left:t,width:n}=this._containerInputElement.getBoundingClientRect();this.setState({appearingWidth:n,appearingPosition:{x:t,y:e},isMeasureValid:!0})},this._setInputRef=e=>{e&&(this._inputElement=e,this.props.setupHTMLInput&&this.props.setupHTMLInput(e),
|
||||||
|
this._inputElement.addEventListener("keyup",this._handleKeyUpEnter))},this._setContainerInputRef=e=>{this._containerInputElement=e},this._handleCaretClick=()=>{this.state.isOpened?(this._close(),this.props.preventOnFocusOpen&&this._focus()):this.props.preventOnFocusOpen?this._open():this._focus()},this._handleOutsideClick=()=>{const{allowUserDefinedValues:e,value:t,onChange:n}=this.props,{queryValue:o}=this.state;e?n&&o!==t&&n(o):this.setState(this._valueToQuery(t)),this._close()},this._handleFocus=e=>{this.props.preventOnFocusOpen||this._open(),this.props.onFocus&&this.props.onFocus(e)},this._handleChange=e=>{const{preventSearchOnEmptyQuery:t,allowUserDefinedValues:n,onChange:o,onSuggestionsOpen:r,onSuggestionsClose:s}=this.props;if(t&&""===e)this.setState({queryValue:e,isOpened:!1,active:void 0}),s&&s();else{const t=this._suggestions(e),o=Object.keys(t).length>0;this.setState({queryValue:e,isOpened:o,active:n?void 0:this._getActiveKeyByValue(e)}),o&&r&&r()}n&&o&&o(e)},this._handleItemClick=e=>{const t=e.currentTarget.id;this.setState({queryValue:F(this.props.source)[t]}),this.props.onChange&&this.props.onChange(t),this._close()},this._handleKeyDown=e=>{if(-1===[o.DownArrow,o.UpArrow,o.Enter,o.Escape].indexOf(e.which))return;const{allowUserDefinedValues:t,value:n,onChange:r,onSuggestionsOpen:s}=this.props,{active:i,isOpened:a,queryValue:l}=this.state;a&&(e.preventDefault(),e.stopPropagation());const c=this._suggestions(l);switch(e.which){case o.DownArrow:case o.UpArrow:const u=Object.keys(c);if(!a&&u.length&&e.which===o.DownArrow){this.setState({isOpened:!0,active:u[0]}),s&&s();break}let p;if(void 0===i){if(e.which===o.UpArrow){this._close();break}p=0}else p=u.indexOf(i)+(e.which===o.UpArrow?-1:1);p<0&&(p=0),p>u.length-1&&(p=u.length-1);const d=u[p];this.setState({active:d});const m=document.getElementById(d);m&&this._scrollIfNotVisible(m,this._suggestionsElement);break;case o.Escape:this._close(),a||this._blur();break;case o.Enter:let h=i;t&&(a&&h?this.setState(this._valueToQuery(h)):h=l),void 0!==h&&(this._close(),a||this._blur(),h!==n?r&&r(h):this.setState(this._valueToQuery(h)))}},this._setSuggestionsRef=e=>{e&&(this._suggestionsElement=e)},this._scrollIfNotVisible=(e,t)=>{const n=t.scrollTop,o=t.scrollTop+t.clientHeight,r=e.offsetTop,s=r+e.clientHeight;r<=n?e.scrollIntoView(!0):s>=o&&e.scrollIntoView(!1)},!(e=>Array.isArray(e.source)||!e.allowUserDefinedValues)(e))throw new Error("allowUserDefinedProps === true cay only be used if source is array");this.state={valueFromProps:e.value,isOpened:!1,active:e.value,queryValue:F(e.source)[e.value]||(e.allowUserDefinedValues?e.value:"")}}componentDidMount(){this.props.suggestionsInPortal&&window.addEventListener("resize",this._resize)}componentDidUpdate(){this.state.isOpened&&this._handleMeasure()}componentWillUnmount(){this._inputElement&&this._inputElement.removeEventListener("keyup",this._handleKeyUpEnter),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),window.removeEventListener("resize",this._resize)}render(){const{emojiPicker:e}=this.props
|
||||||
|
;return s.createElement(u.OutsideEvent,{handler:this._handleOutsideClick,click:!0},(t=>s.createElement("div",{className:a()(_.autocomplete,"js-dialog-skip-escape"),ref:t},s.createElement(D,{id:this.props.id,name:this.props.name,endSlot:Object.keys(this._suggestions(this.state.queryValue)).length?s.createElement(c.EndSlot,null,s.createElement(l.CaretButton,{isDropped:this.state.isOpened,onClick:this._handleCaretClick})):void 0,maxLength:this.props.maxLength,reference:this._setInputRef,containerReference:this._setContainerInputRef,stretch:!0,placeholder:this.props.placeholder,value:this.state.queryValue,intent:this.props.error?"danger":void 0,onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this.props.onBlur,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onKeyDown:this._handleKeyDown,autoComplete:"off",size:this.props.size,emojiPicker:e,dataQaId:this.props.dataQaId}),this._renderSuggestions())))}static getDerivedStateFromProps(e,t){const{allowUserDefinedValues:n,value:o,source:r}=e;if(o===t.valueFromProps&&t.isOpened)return null;const s=n?o:""===o?"":F(r)[o]||t.queryValue;return{...t,valueFromProps:o,active:o,queryValue:s}}_renderSuggestions(){return this.props.suggestionsInPortal?this.state.isOpened?this._renderPortalSuggestions():null:this._renderSuggestionsItems()}_renderPortalSuggestions(){return s.createElement(p.Portal,null,this._renderSuggestionsItems())}_focus(){this._inputElement.focus()}_blur(){this._inputElement.blur()}_open(){const{onSuggestionsOpen:e}=this.props;this._focus(),this.setState({isOpened:!0,active:this.props.value}),e&&e()}_close(){const{onSuggestionsClose:e}=this.props;this.setState({isOpened:!1,active:void 0}),e&&e()}_suggestions(e){const{filter:t=j}=this.props,n=F(this.props.source),o={};return Object.keys(n).filter((o=>t(e,n[o]))).forEach((e=>o[e]=n[e])),o}_renderSuggestionsItems(){const e=this._suggestions(this.state.queryValue),t=Object.keys(e).map((t=>{const n=a()(_.suggestion,this.state.active===t&&_.selected);return s.createElement("li",{id:t,key:t,className:n,onClick:this._handleItemClick},s.createElement(M.LeadingEmojiText,{text:e[t]}))})),o=s.createElement("li",{className:_.noResults},r.t(null,void 0,n(86254)));if(!t.length&&this.props.noEmptyText)return null;const{appearingPosition:i,appearingWidth:l}=this.state;return s.createElement("ul",{className:a()(_.suggestions,this.state.isOpened&&_.opened),ref:this._setSuggestionsRef,style:{left:i&&i.x,top:i&&i.y,width:l&&l}},t.length?t:o)}_handleKeyUpEnter(e){e.which===o.Enter&&e.stopImmediatePropagation()}_getActiveKeyByValue(e){const{filter:t=j}=this.props,n=this._suggestions(e),o=Object.keys(n);for(const r of o)if(t(e,n[r]))return r;return o[0]}_valueToQuery(e){return{queryValue:F(this.props.source)[e]||""}}}function F(e){let t={};return Array.isArray(e)?e.forEach((e=>{t[e]=e})):t=e,t}},55486:(e,t,n)=>{"use strict";n.d(t,{useAutoSelect:()=>s});var o=n(79474),r=n(45958);function s(){const e=(0,o.useRef)(null);return(0,o.useLayoutEffect)((()=>{r.CheckMobile.iOS()||e.current&&(e.current.focus(),
|
||||||
|
e.current.select())}),[]),e}},32563:(e,t,n)=>{"use strict";n.d(t,{EmojiPicker:()=>M});var o=n(79474),r=n(82287),s=n(29844),i=n(41277),a=n(65946);var l=n(29344),c=n(17896),u=n(77690),p=n(86738),d=n(47893),m=n(73283),h=n(54466);function g(e){!function(e,t){(0,o.useEffect)((()=>{const n=t||document;return n.addEventListener("scroll",e),()=>n.removeEventListener("scroll",e)}),[e])}(e,document)}var f=n(86739),v=n(73873),E=n(14487),y=n.n(E),b=n(56138);function C(e){const{children:t,highlight:n,disabled:r,reference:s,...i}=e,a=n?"primary":"default";return o.createElement("div",{...i,ref:s,className:y()(b.wrapper,b[`intent-${a}`],b["border-thin"],b["size-medium"],n&&b.highlight,n&&b.focused,r&&b.disabled),"data-role":"button"},o.createElement("div",{className:y()(b.childrenContainer,r&&b.disabled)},t),n&&o.createElement("span",{className:b.shadow}))}var w=n(7717),S=n(74237);const x=()=>null,O=(0,m.mergeThemes)(p.DEFAULT_MENU_THEME,{menuBox:S.menuBox}),k=378,B=18,D=200;function M(e){const{value:t,disabled:n,onSelect:i,onClose:p,canBeEmpty:m,renderButton:E=_}=e,y=(0,o.useRef)(null),{current:b}=(0,o.useRef)((C=t,r.getJSON("RecentlyUsedEmojis",[C]).filter((e=>e!==w.EMPTY_EMOJI))));var C;const M=(0,o.useRef)(null),[j,A]=(0,o.useState)(b),[F,T]=(0,o.useState)(!1),R=(0,o.useRef)(null),I=(0,o.useCallback)((()=>{T(!1),p?.(),R.current=null}),[p]);g((0,o.useCallback)((()=>{!R.current||Date.now()-R.current<D||I()}),[I]));const z=(0,o.useCallback)((e=>{if(e!==w.EMPTY_EMOJI){const t=Array.from(new Set([e,...j])).slice(0,B);r.setJSON("RecentlyUsedEmojis",t),A(t)}i(e),I()}),[j,i]),P=(0,o.useMemo)((()=>m?[w.EMPTY_EMOJI,...j].slice(0,B):j),[j,m]),V=(L=P,(0,o.useMemo)((()=>{const e=(0,a.emojiGroups)();return e[0].emojis=L,e}),[L]));var L;return o.createElement(o.Fragment,null,o.createElement("div",{ref:y,className:S.buttonWrap},E({emoji:t,isOpened:F,disabled:n,onClick:function(){if(F)return void I();n||(T(!0),R.current=Date.now())}})),o.createElement(h.MatchMedia,{rule:v.DialogBreakpoints.TabletSmall},(e=>F&&o.createElement(c.DrawerManager,null,e?o.createElement(u.Drawer,{className:S.drawer,position:"Bottom",onClose:I,"data-qa-id":"emojipicker-menu"},o.createElement(s.EmojiList,{emojis:V,onSelect:z,height:k})):o.createElement(l.PopupMenu,{theme:O,onKeyDown:W,isOpened:!0,position:(0,f.getPopupPositioner)(y.current,{horizontalDropDirection:f.HorizontalDropDirection.FromLeftToRight,horizontalAttachEdge:f.HorizontalAttachEdge.Left}),closeOnClickOutside:!1,onClickOutside:U,onClose:x,controller:M,onOpen:N,tabIndex:-1,dataQaId:"emojipicker-menu"},o.createElement(s.EmojiList,{className:S.desktopSize,emojis:V,onSelect:z,height:k}))))));function N(){M.current?.focus()}function W(e){27===(0,d.hashFromEvent)(e)&&(e.preventDefault(),e.stopPropagation(),I())}function U(e){const t=e.target;t instanceof Node&&y.current?.contains(t)||I()}}function _(e){const{emoji:t,isOpened:n,disabled:r,onClick:s}=e;return o.createElement(C,{highlight:n,disabled:r,"data-name":"emoji-picker"},o.createElement(i.EmojiWrap,{emoji:t,onClick:s}))}},16910:(e,t,n)=>{"use strict"
|
||||||
|
;n.d(t,{LeadingEmojiText:()=>a});var o=n(79474),r=n(92544),s=n(96996),i=n(58313);function a(e){const{text:t,textRender:n,firstSegmentOnly:a=!1,spaceAfterEmoji:l=!0}=e,{leadingEmoji:c,processedText:u}=(0,o.useMemo)((()=>(0,r.processTextWithLeadingEmoji)({text:t,textRender:n,firstSegmentOnly:a})),[t,n,a]);return c?o.createElement(o.Fragment,null,o.createElement("span",{className:i.emojiWrap}," ",o.createElement(s.EmojiItem,{className:i.emoji,emoji:c})),""!==u&&o.createElement(o.Fragment,null,l&&o.createElement(o.Fragment,null," "),u)):o.createElement(o.Fragment,null,u)}},92544:(e,t,n)=>{"use strict";n.d(t,{getLeadingEmojiHtml:()=>p,processTextWithLeadingEmoji:()=>u});var o=n(42897),r=n(16905),s=n(65946),i=n(7717),a=n(7286),l=n(58313);const c=(0,r.isFeaturesetEnabled)("advanced_emoji_in_titles");function u(e){const{text:t,textRender:n=e=>e,firstSegmentOnly:r=!1}=e,a=(0,o.getFirstSegmentOrCodePointString)(t),l=null!==a&&(0,s.isSupportedEmoji)(a)?a:i.EMPTY_EMOJI,u=r?a||"":t;if(!c||l===i.EMPTY_EMOJI)return{leadingEmoji:"",processedText:n(u)};return{leadingEmoji:l,processedText:n(u.replace(l,""))}}function p(e){const{processedText:t,leadingEmoji:n}=u({text:e}),r=(0,o.htmlEscape)(t);if(!n)return r;return`${function(e){const t=(0,a.getTwemojiUrl)(e,"png");return`<span class=${l.tooltipEmojiWrap}> <img class=${l.tooltipEmoji} src=${t} decoding="async" width="12" height="12" alt="" draggable="false"/></span>`}(n)} ${r}`}},14856:(e,t,n)=>{"use strict";n.d(t,{useEnsuredContext:()=>s});var o=n(79474),r=n(85842);function s(e){return(0,r.ensureNotNull)((0,o.useContext)(e))}},39957:(e,t,n)=>{"use strict";n.d(t,{useResizeObserver:()=>o.useResizeObserver});var o=n(61366)},29344:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>d});var o=n(79474),r=n(29365),s=n(41863),i=n(64888),a=n(86738),l=n(11508);const c=o.createContext(void 0);var u=n(4138);const p=o.createContext({setMenuMaxWidth:!1});function d(e){const{controller:t,children:n,isOpened:d,closeOnClickOutside:m=!0,doNotCloseOn:h,onClickOutside:g,onClose:f,onKeyboardClose:v,"data-name":E="popup-menu-container",dataQaId:y="popup-menu-container",closeOnScrollOutsideOffset:b,...C}=e,w=(0,o.useContext)(l.CloseDelegateContext),S=o.useContext(p),x=(0,o.useContext)(c),O=(0,u.useOutsideEvent)({handler:function(e){g&&g(e);if(!m)return;const t=(0,s.default)(h)?h():null==h?[]:[h];if(t.length>0&&e.target instanceof Node)for(const n of t){const t=r.findDOMNode(n);if(t instanceof Node&&t.contains(e.target))return}f()},mouseDown:!0,touchStart:!0});return d?o.createElement(i.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ref:O,style:{pointerEvents:"auto"}},o.createElement(a.Menu,{...C,onClose:f,onKeyboardClose:v,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:w,customRemeasureDelegate:x,ref:t,"data-name":E,dataQaId:y,limitMaxWidth:S.setMenuMaxWidth,"data-tooltip-show-on-focus":"true",closeOnScrollOutsideOffset:b},n))):null}},36334:(e,t,n)=>{"use strict";var o=n(29365);t.createRoot=o.createRoot,o.hydrateRoot},86739:(e,t,n)=>{
|
||||||
|
"use strict";n.d(t,{HorizontalAttachEdge:()=>r,HorizontalDropDirection:()=>i,VerticalAttachEdge:()=>o,VerticalDropDirection:()=>s,getPopupPositioner:()=>c});var o,r,s,i,a=n(85842);!function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.AutoStrict=2]="AutoStrict"}(o||(o={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(r||(r={})),function(e){e[e.FromTopToBottom=0]="FromTopToBottom",e[e.FromBottomToTop=1]="FromBottomToTop"}(s||(s={})),function(e){e[e.FromLeftToRight=0]="FromLeftToRight",e[e.FromRightToLeft=1]="FromRightToLeft"}(i||(i={}));const l={verticalAttachEdge:o.Bottom,horizontalAttachEdge:r.Left,verticalDropDirection:s.FromTopToBottom,horizontalDropDirection:i.FromLeftToRight,verticalMargin:0,horizontalMargin:0,matchButtonAndListboxWidths:!1};function c(e,t){return n=>{const{contentWidth:c,contentHeight:u,availableHeight:p}=n,d=(0,a.ensureNotNull)(e).getBoundingClientRect(),{horizontalAttachEdge:m=l.horizontalAttachEdge,horizontalDropDirection:h=l.horizontalDropDirection,horizontalMargin:g=l.horizontalMargin,verticalMargin:f=l.verticalMargin,matchButtonAndListboxWidths:v=l.matchButtonAndListboxWidths}=t;let E=t.verticalAttachEdge??l.verticalAttachEdge,y=t.verticalDropDirection??l.verticalDropDirection;E===o.AutoStrict&&(p<d.y+d.height+f+u?(E=o.Top,y=s.FromBottomToTop):(E=o.Bottom,y=s.FromTopToBottom));const b=E===o.Top?-1*f:f,C=m===r.Right?d.right:d.left,w=E===o.Top?d.top:d.bottom,S={x:C-(h===i.FromRightToLeft?c:0)+g,y:w-(y===s.FromBottomToTop?u:0)+b};return v&&(S.overrideWidth=d.width),S}}},43616:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"/></svg>'},98696:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M8 7a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM11 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM6.2 10A3 3 0 0 0 9 12a3 3 0 0 0 2.8-2l.95.34A4 4 0 0 1 9 13a4 4 0 0 1-3.75-2.66L6.2 10Z"/><path fill="currentColor" fill-rule="evenodd" d="M1 9a8 8 0 1 1 16 0A8 8 0 0 1 1 9Zm1 0a7 7 0 1 1 14 0A7 7 0 0 1 2 9Z"/></svg>'}}]);
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2079],{36136:e=>{e.exports={"nav-button":"nav-button-znwuaSC1",link:"link-znwuaSC1",background:"background-znwuaSC1",icon:"icon-znwuaSC1","flip-icon":"flip-icon-znwuaSC1","size-large":"size-large-znwuaSC1","preserve-paddings":"preserve-paddings-znwuaSC1","size-medium":"size-medium-znwuaSC1","size-small":"size-small-znwuaSC1","size-xsmall":"size-xsmall-znwuaSC1","size-xxsmall":"size-xxsmall-znwuaSC1","visually-hidden":"visually-hidden-znwuaSC1"}},8473:e=>{e.exports={dialog:"dialog-b8SxMnzX",wrapper:"wrapper-b8SxMnzX",separator:"separator-b8SxMnzX",bounded:"bounded-b8SxMnzX"}},80822:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-BZKENkhT",unsetAlign:"unsetAlign-BZKENkhT",title:"title-BZKENkhT",subtitle:"subtitle-BZKENkhT",textWrap:"textWrap-BZKENkhT",ellipsis:"ellipsis-BZKENkhT",close:"close-BZKENkhT",icon:"icon-BZKENkhT"}},47625:e=>{e.exports={separator:"separator-Pf4rIzEt"}},57340:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>d});var r=n(50959),o=n(64388),i=n(17105),s=n(15130),l=n(38822),a=n(63346),c=n(34983);function u(e="large"){switch(e){case"large":return i;case"medium":default:return s;case"small":return l;case"xsmall":return a;case"xxsmall":return c}}const d=r.forwardRef(((e,t)=>r.createElement(o.NavButton,{...e,ref:t,icon:u(e.size)})))},64388:(e,t,n)=>{"use strict";n.d(t,{NavButton:()=>c});var r=n(50959),o=n(97754),i=n(9745),s=(n(78572),n(36136));function l(e){const{size:t="large",preservePaddings:n,isLink:r,flipIconOnRtl:i,className:l}=e;return o(s["nav-button"],s[`size-${t}`],n&&s["preserve-paddings"],i&&s["flip-icon"],r&&s.link,l)}function a(e){const{children:t,icon:n}=e;return r.createElement(r.Fragment,null,r.createElement("span",{className:s.background}),r.createElement(i.Icon,{icon:n,className:s.icon,"aria-hidden":!0}),t&&r.createElement("span",{className:s["visually-hidden"]},t))}const c=(0,r.forwardRef)(((e,t)=>{const{icon:n,type:o="button",preservePaddings:i,flipIconOnRtl:s,size:c,"aria-label":u,...d}=e;return r.createElement("button",{...d,className:l({...e,children:u}),ref:t,type:o},r.createElement(a,{icon:n},u))}));c.displayName="NavButton";var u=n(21593),d=n(53017);(0,r.forwardRef)(((e,t)=>{const{icon:n,renderComponent:o,"aria-label":i,...s}=e,c=null!=o?o:u.CustomComponentDefaultLink;return r.createElement(c,{...s,className:l({...e,children:i,isLink:!0}),reference:(0,d.isomorphicRef)(t)},r.createElement(a,{icon:n},i))})).displayName="NavAnchorButton"},78572:(e,t,n)=>{"use strict";var r,o,i,s;!function(e){e.Primary="primary",e.QuietPrimary="quiet-primary",e.Secondary="secondary",e.Ghost="ghost"}(r||(r={})),function(e){e.XXSmall="xxsmall",e.XSmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large",e.XLarge="xlarge",e.XXLarge="xxlarge"}(o||(o={})),function(e){e.Brand="brand",e.Gray="gray",e.LightGray="light-gray",e.Green="green",e.Red="red",e.Black="black",e.Gradient="gradient",e.BlackFriday="black-friday",e.CyberMonday="cyber-monday"}(i||(i={})),function(e){
|
|
||||||
e.Semibold18px="semibold18px",e.Semibold16px="semibold16px",e.Semibold14px="semibold14px",e.Medium16px="medium16px",e.Regular16px="regular16px",e.Regular14px="regular14px"}(s||(s={}))},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},38952:(e,t,n)=>{"use strict";function r(e){const{reference:t,...n}=e;return{...n,ref:t}}n.d(t,{renameRef:()=>r})},21593:(e,t,n)=>{"use strict";n.d(t,{CustomComponentDefaultLink:()=>i});var r=n(50959),o=n(38952);function i(e){return r.createElement("a",{...(0,o.renameRef)(e)})}r.PureComponent},66686:(e,t,n)=>{"use strict";n.d(t,{useComposedKeyboardActionHandlers:()=>l,useKeyboardActionHandler:()=>s,useKeyboardClose:()=>u,useKeyboardEventHandler:()=>a,useKeyboardOpen:()=>d,useKeyboardToggle:()=>c});var r=n(50959),o=n(3343);const i=()=>!0;function s(e,t,n=i,o){return(0,r.useCallback)((r=>{if(o){if("horizontal"===o&&(40===r||38===r))return;if("vertical"===o&&(37===r||39===r))return}const i=e.map((e=>"function"==typeof e?e():e));return!(!n(r)||!i.includes(r))&&(t(r),!0)}),[...e,t,n])}function l(...e){return(0,r.useCallback)((t=>{for(const n of e)if(n(t))return!0;return!1}),[...e])}function a(e,t=!0){const n=l(...e);return(0,r.useCallback)((e=>{n((0,o.hashFromEvent)(e))&&t&&e.preventDefault()}),[n])}function c(e,t=!0){return s([13,32],e,(function(e){if(13===e)return t;return!0}))}function u(e,t){return s([9,(0,r.useCallback)((()=>o.Modifiers.Shift+9),[]),27],t,(0,r.useCallback)((()=>e),[e]))}function d(e,t){return s([40,38],t,(0,r.useCallback)((()=>!e),[e]))}},7953:(e,t,n)=>{"use strict";n.d(t,{useDisclosure:()=>c});var r=n(50959),o=n(50151),i=n(54717),s=n(29202),l=n(47201),a=n(22064);function c(e){const{id:t,listboxId:n,disabled:c,buttonTabIndex:u=0,onFocus:d,onBlur:p,onClick:h}=e,[f,m]=(0,r.useState)(!1),[g,b]=(0,s.useFocus)(),v=g||f,C=(null!=n?n:void 0!==t)?(0,a.createDomId)(t,"listbox"):void 0,w=(0,r.useRef)(null),x=(0,r.useCallback)((e=>{var t;return null===(t=w.current)||void 0===t?void 0:t.focus(e)}),[w]),S=(0,r.useRef)(null),y=(0,r.useCallback)((()=>(0,o.ensureNotNull)(S.current).focus()),[S]),_=(0,r.useCallback)((()=>m(!0)),[m]),k=(0,r.useCallback)(((e=!1,t=!1)=>{m(!1);const{activeElement:n}=document;n&&(0,i.isTextEditingField)(n)||t||x({preventScroll:e})}),[m,x]),E=(0,r.useCallback)((()=>{f?k():_()}),[f,k,_]),z=c?[]:[d,b.onFocus],N=c?[]:[p,b.onBlur],B=c?[]:[h,E],O=(0,l.createSafeMulticastEventHandler)(...z),R=(0,l.createSafeMulticastEventHandler)(...N),K=(0,l.createSafeMulticastEventHandler)(...B);return{listboxId:C,isOpened:f,isFocused:v,buttonTabIndex:c?-1:u,listboxTabIndex:-1,open:_,close:k,toggle:E,onOpen:y,buttonFocusBindings:{onFocus:O,onBlur:R},onButtonClick:K,buttonRef:w,listboxRef:S,buttonAria:{"aria-controls":f?C:void 0,"aria-expanded":f,"aria-disabled":c}}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>o});var r=n(50959);function o(e,t){const[n,o]=(0,r.useState)(!1);(0,r.useEffect)((()=>{t&&n&&o(!1)}),[t,n]);const i={onFocus:(0,
|
|
||||||
r.useCallback)((function(t){void 0!==e&&e.current!==t.target||o(!0)}),[e]),onBlur:(0,r.useCallback)((function(t){void 0!==e&&e.current!==t.target||o(!1)}),[e])};return[n,i]}},36762:(e,t,n)=>{"use strict";n.d(t,{useItemsKeyboardNavigation:()=>l});var r,o=n(50959),i=n(66686);function s(e,t){return e>=0?e%t:(t-Math.abs(e)%t)%t}!function(e){e.Next="next",e.Previous="previous",e.First="first",e.Last="last"}(r||(r={}));function l(e,t,n,r,l,a,c={},u){const d=(0,o.useCallback)((e=>{const t=n.findIndex(r);if(t===n.length-1&&!a)return void((null==u?void 0:u.onFailNext)&&u.onFailNext(e));const o=s(t+1,n.length);l&&l(n[o],"next")}),[n,r,l,a]),p=(0,o.useCallback)((e=>{const t=n.findIndex(r);if(0===t&&!a)return void((null==u?void 0:u.onFailPrev)&&u.onFailPrev(e));const o=s(t-1,n.length);l&&l(n[o],"previous")}),[n,r,l,a]),h=(0,o.useCallback)((()=>{l&&l(n[0],"first")}),[l,n]),f=(0,o.useCallback)((()=>{l&&l(n[n.length-1],"last")}),[l,n]),m=(0,o.useMemo)((()=>(e=>({next:[40,()=>e()?37:39],previous:[38,()=>e()?39:37],first:[33,()=>e()?35:36],last:[34,()=>e()?36:35]}))(t)),[t]),{next:g=m.next,previous:b=m.previous,first:v=m.first,last:C=m.last}=c;return(0,i.useComposedKeyboardActionHandlers)((0,i.useKeyboardActionHandler)(g,d,(()=>!0),e),(0,i.useKeyboardActionHandler)(b,p,(()=>!0),e),(0,i.useKeyboardActionHandler)(v,h,(()=>!0),e),(0,i.useKeyboardActionHandler)(C,f,(()=>!0),e))}},16921:(e,t,n)=>{"use strict";n.d(t,{useKeepActiveItemIntoView:()=>d});var r=n(50959),o=n(50151),i=n(74991);const s={duration:200,additionalScroll:0},l={vertical:{scrollSize:"scrollHeight",clientSize:"clientHeight",start:"top",end:"bottom",size:"height"},horizontal:{scrollSize:"scrollWidth",clientSize:"clientWidth",start:"left",end:"right",size:"width"}};function a(e,t){const n=l[e];return t[n.scrollSize]>t[n.clientSize]}function c(e,t,n,r,o,s){const a=function(e,t,n,r=0){const o=l[e];return{start:-1*r,middle:-1*(Math.floor(n[o.size]/2)-Math.floor(t[o.size]/2)),end:-1*(n[o.size]-t[o.size])+r}}(e,r,o,s.additionalScroll);let c=0;if(s.snapToMiddle||function(e,t,n){const r=l[e];return t[r.start]<n[r.start]-n[r.size]/2||t[r.end]>n[r.end]+n[r.size]/2}(e,r,o))c=a.middle;else{const t=function(e,t,n,r=0){const o=l[e],i=t[o.start]+Math.floor(t[o.size]/2),s=n[o.start]+Math.floor(n[o.size]/2);return{start:t[o.start]-n[o.start]-r,middle:i-s,end:t[o.end]-n[o.end]+r}}(e,r,o,s.additionalScroll),n=function(e){const{start:t,middle:n,end:r}=e,o=new Map([[Math.abs(t),{key:"start",value:Math.sign(t)}],[Math.abs(n),{key:"middle",value:Math.sign(n)}],[Math.abs(r),{key:"end",value:Math.sign(r)}]]),i=Math.min(...o.keys());return o.get(i)}(t);c=void 0!==n?a[n.key]:0}return s.align&&(c=a[s.align]),function(e){const{additionalScroll:t=0,duration:n=i.dur,func:r=i.easingFunc.easeInOutCubic,onScrollEnd:o,target:s,wrap:l,direction:a="vertical"}=e;let{targetRect:c,wrapRect:u}=e;c=null!=c?c:s.getBoundingClientRect(),u=null!=u?u:l.getBoundingClientRect();const d=("vertical"===a?c.top-u.top:c.left-u.left)+t,p="vertical"===a?"scrollTop":"scrollLeft",h=l?l[p]:0;let f,m=0
|
|
||||||
;return m=window.requestAnimationFrame((function e(t){let i;if(f?i=t-f:(i=0,f=t),i>=n)return l[p]=h+d,void(o&&o());const s=h+d*r(i/n);l[p]=Math.floor(s),m=window.requestAnimationFrame(e)})),function(){window.cancelAnimationFrame(m),o&&o()}}({...s,target:t,targetRect:r,wrap:n,wrapRect:o,additionalScroll:c,direction:e})}class u{constructor(e=null){this._container=null,this._lastScrolledElement=null,this._stopVerticalScroll=null,this._stopHorizontalScroll=null,this._container=e}scrollTo(e,t=s){if(null!==this._container&&null!==e&&!function(e,t,n=0){const r=e.getBoundingClientRect(),o=t.getBoundingClientRect();return r.top-o.top>=0&&o.bottom-r.bottom>=0&&r.left-o.left>=n&&o.right-r.right>=n}(e,this._container,t.visibilityDetectionOffsetInline)){const n=e.getBoundingClientRect(),r=this._container.getBoundingClientRect();this.stopScroll(),a("vertical",this._container)&&(this._stopVerticalScroll=c("vertical",e,this._container,n,r,this._modifyOptions("vertical",t))),a("horizontal",this._container)&&(this._stopHorizontalScroll=c("horizontal",e,this._container,n,r,this._modifyOptions("horizontal",t)))}this._lastScrolledElement=e}scrollToLastElement(e){this.scrollTo(this._lastScrolledElement,e)}stopScroll(){null!==this._stopVerticalScroll&&this._stopVerticalScroll(),null!==this._stopHorizontalScroll&&this._stopHorizontalScroll()}getContainer(){return this._container}setContainer(e){var t;this._container=e,(null===(t=this._container)||void 0===t?void 0:t.contains(this._lastScrolledElement))||(this._lastScrolledElement=null)}destroy(){this.stopScroll(),this._container=null,this._lastScrolledElement=null}_handleScrollEnd(e){"vertical"===e?this._stopVerticalScroll=null:this._stopHorizontalScroll=null}_modifyOptions(e,t){return Object.assign({},t,{onScrollEnd:()=>{this._handleScrollEnd(e),void 0!==t.onScrollEnd&&t.onScrollEnd()}})}}function d(e={}){const{activeItem:t,getKey:n,...i}=e,s=(0,r.useRef)(null),l=(0,r.useRef)(new Map),a=function(e){const t=(0,r.useRef)(null);return(0,r.useEffect)((()=>(t.current=new u(e),()=>(0,o.ensureNotNull)(t.current).destroy())),[]),t}(s.current),c=(0,r.useCallback)((()=>{null!==a.current&&null!==s.current&&a.current.getContainer()!==s.current&&a.current.setContainer(s.current)}),[a,s]),d=(0,r.useCallback)((e=>{s.current=e}),[s]),p=(0,r.useCallback)(((e,t)=>{const r=n?n(e):e;t?l.current.set(r,t):l.current.delete(r)}),[l,n]),h=(0,r.useCallback)(((e,t)=>{if(!e)return;const r=n?n(e):e,i=l.current.get(r);i&&(c(),(0,o.ensureNotNull)(a.current).scrollTo(i,t))}),[l,a,n]);return(0,r.useEffect)((()=>h(t,i)),[h,t]),[d,p,h]}},38528:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>i});var r=n(50959),o=n(53017);function i(e){return(0,r.useCallback)((0,o.mergeRefs)(e),e)}},22064:(e,t,n)=>{"use strict";n.d(t,{createDomId:()=>a,joinDomIds:()=>c});const r=/\s/g;function o(e){return"string"==typeof e}function i(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function s(e){return e.trim().length>0}function l(e){
|
|
||||||
return e.replace(r,"-")}function a(...e){const t=e.map(i).filter(o).filter(s).map(l);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(i).filter(o).filter(s).join(" ")}},79418:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>N});var r=n(50959),o=n(50151),i=n(97754),s=n.n(i),l=n(68335),a=n(63273),c=n(35749),u=n(82206),d=n(1109),p=n(24437),h=n(90692),f=n(95711);var m=n(52092),g=n(76422),b=n(11542),v=n(57340);const C=r.createContext({setHideClose:()=>{}});var w=n(80822);function x(e){const{title:t,titleTextWrap:o=!1,subtitle:i,showCloseIcon:l=!0,onClose:a,onCloseButtonKeyDown:c,renderBefore:u,renderAfter:d,draggable:p,className:h,unsetAlign:f,closeAriaLabel:m=b.t(null,void 0,n(47742)),closeButtonReference:g}=e,[x,S]=(0,r.useState)(!1);return r.createElement(C.Provider,{value:{setHideClose:S}},r.createElement("div",{className:s()(w.container,h,(i||f)&&w.unsetAlign)},u,r.createElement("div",{"data-dragg-area":p,className:w.title},r.createElement("div",{className:s()(o?w.textWrap:w.ellipsis)},t),i&&r.createElement("div",{className:s()(w.ellipsis,w.subtitle)},i)),d,l&&!x&&r.createElement(v.CloseButton,{className:w.close,"data-name":"close","aria-label":m,onClick:a,onKeyDown:c,ref:g,size:"medium",preservePaddings:!0})))}var S=n(53017),y=n(90186),_=n(56570),k=n(8473);const E={vertical:20},z={vertical:0};class N extends r.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._embedResizerOverridesEnabled=_.enabled("embed_resizer_overrides"),this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleCloseBtnClick=()=>{this.props.onKeyboardClose&&this.props.onKeyboardClose(),this._handleClose()},this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(p.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{if(!e.defaultPrevented){if(this.props.onKeyDown&&this.props.onKeyDown(e),27===(0,l.hashFromEvent)(e)){if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose();const{activeElement:n}=document;if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();const r=this._reference;if(null!==r&&(0,c.isTextEditingField)(n))return void r.focus();if(null==r?void 0:r.contains(n))return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose()}}var t,n;(function(e){if("function"==typeof e)return e();return Boolean(e)})(this.props.disableTabNavigationContainment)||(n=e,[9,l.Modifiers.Shift+9].includes((0,l.hashFromEvent)(n))&&n.stopPropagation())}},this._requestResize=()=>{
|
|
||||||
null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()},this._calculatePositionWithOffsets=(e,t)=>{const n=(0,o.ensureDefined)(this.props.fullScreenViewOffsets).value();return{top:n.top,left:(0,a.isRtl)()?-n.right:n.left,width:t.clientWidth-n.left-n.right,height:t.clientHeight-n.top-n.bottom}}}componentDidMount(){this.props.ignoreClosePopupsAndDialog||g.subscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),this._orientationMediaQuery.addEventListener("change",this._handleOpen)),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.subscribe(this._requestResize)}componentWillUnmount(){this.props.ignoreClosePopupsAndDialog||g.unsubscribe(m.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&this._orientationMediaQuery.removeEventListener("change",this._handleOpen),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.unsubscribe(this._requestResize)}focus(){(0,o.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:o,title:i,titleTextWrap:l,dataName:a,onClickOutside:c,additionalElementPos:m,additionalHeaderElement:g,backdrop:b,shouldForceFocus:v=!0,shouldReturnFocus:C,onForceFocus:w,showSeparator:_,subtitle:N,draggable:B=!0,fullScreen:O=!1,showCloseIcon:R=!0,rounded:K=!0,isAnimationEnabled:M,growPoint:A,dialogTooltip:F,unsetHeaderAlign:D,onDragStart:P,dataDialogName:T,closeAriaLabel:I,containerAriaLabel:H,reference:L,containerTabIndex:W,closeButtonReference:V,onCloseButtonKeyDown:X,shadowed:G,fullScreenViewOffsets:Z,fixedBody:q,onClick:Q}=this.props,j="after"!==m?g:void 0,U="after"===m?g:void 0,J="string"==typeof i?i:T||"",$=(0,y.filterDataProps)(this.props),Y=(0,S.mergeRefs)([this._handleReference,L]);return r.createElement(h.MatchMedia,{rule:p.DialogBreakpoints.SmallHeight},(m=>r.createElement(h.MatchMedia,{rule:p.DialogBreakpoints.TabletSmall},(p=>r.createElement(u.PopupDialog,{rounded:!(p||O)&&K,className:s()(k.dialog,O&&Z&&k.bounded,e),isOpened:o,reference:Y,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:p||O,guard:m?z:E,boundByScreen:p||O,shouldForceFocus:v,onForceFocus:w,shouldReturnFocus:C,backdrop:b,draggable:B,isAnimationEnabled:M,growPoint:A,name:this.props.dataName,dialogTooltip:F,onDragStart:P,containerAriaLabel:H,containerTabIndex:W,calculateDialogPosition:O&&Z?this._calculatePositionWithOffsets:void 0,shadowed:G,fixedBody:q,onClick:Q,...$},r.createElement("div",{className:s()(k.wrapper,t),"data-name":a,"data-dialog-name":J},void 0!==i&&r.createElement(x,{draggable:B&&!(p||O),onClose:this._handleCloseBtnClick,renderAfter:U,renderBefore:j,
|
|
||||||
subtitle:N,title:i,titleTextWrap:l,showCloseIcon:R,className:n,unsetAlign:D,closeAriaLabel:I,closeButtonReference:V,onCloseButtonKeyDown:X}),_&&r.createElement(d.Separator,{className:k.separator}),r.createElement(f.PopupContext.Consumer,null,(e=>this._renderChildren(e,p||O)))))))))}}},4523:(e,t,n)=>{"use strict";n.d(t,{PopupMenuDisclosureView:()=>u});var r=n(50959),o=n(20520),i=n(50151);const s={x:0,y:0};function l(e,t,n){return(0,r.useCallback)((()=>function(e,t,{x:n=s.x,y:r=s.y}=s){const o=(0,i.ensureNotNull)(e).getBoundingClientRect(),l={x:o.left+n,y:o.top+o.height+r,indentFromWindow:{top:4,bottom:4,left:4,right:4}};return t&&(l.overrideWidth=o.width),l}(e.current,t,n)),[e,t])}var a=n(86240);const c=parseInt(a["size-header-height"]);function u(e){const{button:t,popupChildren:n,buttonRef:i,listboxId:s,listboxClassName:a,listboxTabIndex:u,matchButtonAndListboxWidths:d,isOpened:p,scrollWrapReference:h,listboxReference:f,onClose:m,onOpen:g,onListboxFocus:b,onListboxBlur:v,onListboxKeyDown:C,listboxAria:w,repositionOnScroll:x=!0,closeOnHeaderOverlap:S=!1,popupPositionCorrection:y={x:0,y:0},popupPosition:_}=e,k=l(i,d,y),E=S?c:0;return r.createElement(r.Fragment,null,t,r.createElement(o.PopupMenu,{...w,id:s,className:a,tabIndex:u,isOpened:p,position:_||k,repositionOnScroll:x,onClose:m,onOpen:g,doNotCloseOn:i.current,reference:f,scrollWrapReference:h,onFocus:b,onBlur:v,onKeyDown:C,closeOnScrollOutsideOffset:E},n))}},26597:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>r.useKeyboardActionHandler,useKeyboardClose:()=>r.useKeyboardClose,useKeyboardEventHandler:()=>r.useKeyboardEventHandler,useKeyboardOpen:()=>r.useKeyboardOpen,useKeyboardToggle:()=>r.useKeyboardToggle});var r=n(66686)},1109:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>s});var r=n(50959),o=n(97754),i=n(47625);function s(e){return r.createElement("div",{className:o(i.separator,e.className)})}},2948:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"/></svg>'},17105:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 21 21m0-21-21 21"/></svg>'},15130:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 15 15m0-15-15 15"/></svg>'},38822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 11 11m0-11-11 11"/></svg>'},63346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 9 9m0-9-9 9"/></svg>'},34983:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 7 7m0-7-7 7"/></svg>'},86240:e=>{"use strict"
|
|
||||||
;e.exports=JSON.parse('{"size-header-height":"64px","media-phone-vertical":"screen and (max-width: 479px)","media-mf-phone-landscape":"screen and (min-width: 568px)"}')}}]);
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.popupWidget-Wu2pIo3E{box-sizing:border-box;display:flex;padding:12px 16px}@media only screen and (min-width:430px){.popupWidget-Wu2pIo3E.large-Wu2pIo3E{max-width:354px}.popupWidget-Wu2pIo3E.mobile-Wu2pIo3E{max-width:100%}.popupWidget-Wu2pIo3E{max-width:344px}}.popupWidget-Wu2pIo3E:not(:last-child){border-bottom:1px solid var(--themed-color-statuses-popup-border,#f0f3fa)}html.theme-dark .popupWidget-Wu2pIo3E:not(:last-child){border-bottom:1px solid var(--themed-color-statuses-popup-border,#2a2e39)}.popupWidget-Wu2pIo3E .desc-Wu2pIo3E{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%;width:calc(100% - 16px);word-wrap:break-word;overflow:hidden}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E{flex:0 0 auto;margin:2px 6px 2px 0;overflow:hidden}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.small-Wu2pIo3E{border-radius:9px;height:18px;width:18px}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.medium-Wu2pIo3E{border-radius:11px;height:22px;width:22px}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.large-Wu2pIo3E{border-radius:8px;height:28px;width:28px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E{align-items:center;column-gap:6px;display:flex;font-weight:700}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.small-Wu2pIo3E{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.medium-Wu2pIo3E{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.large-Wu2pIo3E{font-size:18px;line-height:32px;margin-bottom:2px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E:first-letter{text-transform:capitalize}.popupWidget-Wu2pIo3E .text-Wu2pIo3E.small-Wu2pIo3E{font-size:14px;line-height:21px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E.large-Wu2pIo3E,.popupWidget-Wu2pIo3E .text-Wu2pIo3E.medium-Wu2pIo3E{font-size:16px;line-height:25px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E .item-Wu2pIo3E:not(:last-child):after{content:" "}.popupWidget-Wu2pIo3E .text-Wu2pIo3E .boldItem-Wu2pIo3E{font-weight:700}.popupWidget-Wu2pIo3E .action-Wu2pIo3E{color:#2962ff;margin-top:8px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.small-Wu2pIo3E{font-size:14px;line-height:21px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.large-Wu2pIo3E,.popupWidget-Wu2pIo3E .action-Wu2pIo3E.medium-Wu2pIo3E{font-size:16px;line-height:25px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.large-Wu2pIo3E{cursor:pointer}.popupWidget-Wu2pIo3E .actionBtn-Wu2pIo3E{align-self:start;margin-top:8px}.additionalWidget-Wu2pIo3E{margin-bottom:12px;margin-top:12px}.additionalWidget-Wu2pIo3E:last-child{margin-bottom:0}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.popupWidget-Wu2pIo3E{box-sizing:border-box;display:flex;padding:12px 16px}@media only screen and (min-width:430px){.popupWidget-Wu2pIo3E.large-Wu2pIo3E{max-width:354px}.popupWidget-Wu2pIo3E.mobile-Wu2pIo3E{max-width:100%}.popupWidget-Wu2pIo3E{max-width:344px}}.popupWidget-Wu2pIo3E:not(:last-child){border-bottom:1px solid var(--themed-color-statuses-popup-border,#f0f3fa)}html.theme-dark .popupWidget-Wu2pIo3E:not(:last-child){border-bottom:1px solid var(--themed-color-statuses-popup-border,#2a2e39)}.popupWidget-Wu2pIo3E .desc-Wu2pIo3E{display:flex;flex:1 1 auto;flex-direction:column;max-width:100%;width:calc(100% - 16px);word-wrap:break-word;overflow:hidden}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E{flex:0 0 auto;margin:2px 0 2px 6px;overflow:hidden}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.small-Wu2pIo3E{border-radius:9px;height:18px;width:18px}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.medium-Wu2pIo3E{border-radius:11px;height:22px;width:22px}.popupWidget-Wu2pIo3E .icon-Wu2pIo3E.large-Wu2pIo3E{border-radius:8px;height:28px;width:28px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E{align-items:center;column-gap:6px;display:flex;font-weight:700}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.small-Wu2pIo3E{font-size:16px;line-height:22px;margin-bottom:4px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.medium-Wu2pIo3E{font-size:18px;line-height:26px;margin-bottom:2px}.popupWidget-Wu2pIo3E .title-Wu2pIo3E.large-Wu2pIo3E{font-size:18px;line-height:32px;margin-bottom:2px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E:first-letter{text-transform:capitalize}.popupWidget-Wu2pIo3E .text-Wu2pIo3E.small-Wu2pIo3E{font-size:14px;line-height:21px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E.large-Wu2pIo3E,.popupWidget-Wu2pIo3E .text-Wu2pIo3E.medium-Wu2pIo3E{font-size:16px;line-height:25px}.popupWidget-Wu2pIo3E .text-Wu2pIo3E .item-Wu2pIo3E:not(:last-child):after{content:" "}.popupWidget-Wu2pIo3E .text-Wu2pIo3E .boldItem-Wu2pIo3E{font-weight:700}.popupWidget-Wu2pIo3E .action-Wu2pIo3E{color:#2962ff;margin-top:8px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.small-Wu2pIo3E{font-size:14px;line-height:21px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.large-Wu2pIo3E,.popupWidget-Wu2pIo3E .action-Wu2pIo3E.medium-Wu2pIo3E{font-size:16px;line-height:25px}.popupWidget-Wu2pIo3E .action-Wu2pIo3E.large-Wu2pIo3E{cursor:pointer}.popupWidget-Wu2pIo3E .actionBtn-Wu2pIo3E{align-self:start;margin-top:8px}.additionalWidget-Wu2pIo3E{margin-bottom:12px;margin-top:12px}.additionalWidget-Wu2pIo3E:last-child{margin-bottom:0}
|
|
||||||
1
charting_library/bundles/2116.700159b1d79897f33385.css
Normal file
1
charting_library/bundles/2116.700159b1d79897f33385.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
charting_library/bundles/2141.eb13b4c8c5d6f8c974e6.js
Normal file
7
charting_library/bundles/2141.eb13b4c8c5d6f8c974e6.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2141],{72141:(t,e,i)=>{var n;!function(r,s,o,a){"use strict";var h,u=["","webkit","Moz","MS","ms","o"],c=s.createElement("div"),l=Math.round,p=Math.abs,f=Date.now;function v(t,e,i){return setTimeout(I(t,i),e)}function d(t,e,i){return!!Array.isArray(t)&&(m(t,i[e],i),!0)}function m(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==a)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function g(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,n,i),t.apply(this,arguments)}}h="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(n!==a&&null!==n)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}:Object.assign;var T=g((function(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;)(!i||i&&t[n[r]]===a)&&(t[n[r]]=e[n[r]]),r++;return t}),"extend","Use `assign`."),y=g((function(t,e){return T(t,e,!0)}),"merge","Use `assign`.");function E(t,e,i){var n,r=e.prototype;(n=t.prototype=Object.create(r)).constructor=t,n._super=r,i&&h(n,i)}function I(t,e){return function(){return t.apply(e,arguments)}}function A(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function C(t,e){return t===a?e:t}function b(t,e,i){m(D(e),(function(e){t.addEventListener(e,i,!1)}))}function _(t,e,i){m(D(e),(function(e){t.removeEventListener(e,i,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function P(t,e){return t.indexOf(e)>-1}function D(t){return t.trim().split(/\s+/g)}function w(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}function x(t){return Array.prototype.slice.call(t,0)}function O(t,e,i){for(var n=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];w(r,o)<0&&n.push(t[s]),r[s]=o,s++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}function R(t,e){for(var i,n,r=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((n=(i=u[s])?i+r:e)in t)return n;s++}return a}var M=1;function z(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var N="ontouchstart"in r,X=R(r,"PointerEvent")!==a,Y=N&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F="touch",k="mouse",W=24,q=["x","y"],L=["clientX","clientY"];function H(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){A(t.options.enable,[t])&&i.handler(e)},this.init()}function U(t,e,i){var n=i.pointers.length,r=i.changedPointers.length,s=1&e&&n-r==0,o=12&e&&n-r==0;i.isFirst=!!s,i.isFinal=!!o,s&&(t.session={}),i.eventType=e,function(t,e){
|
||||||
|
var i=t.session,n=e.pointers,r=n.length;i.firstInput||(i.firstInput=V(e));r>1&&!i.firstMultiple?i.firstMultiple=V(e):1===r&&(i.firstMultiple=!1);var s=i.firstInput,o=i.firstMultiple,h=o?o.center:s.center,u=e.center=j(n);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=$(h,u),e.distance=B(h,u),function(t,e){var i=e.center,n=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y});e.deltaX=r.x+(i.x-n.x),e.deltaY=r.y+(i.y-n.y)}(i,e),e.offsetDirection=Z(e.deltaX,e.deltaY);var c=G(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=p(c.x)>p(c.y)?c.x:c.y,e.scale=o?(l=o.pointers,v=n,B(v[0],v[1],L)/B(l[0],l[1],L)):1,e.rotation=o?function(t,e){return $(e[1],e[0],L)+$(t[1],t[0],L)}(o.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,r,s,o=t.lastInterval||e,h=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(h>25||o.velocity===a)){var u=e.deltaX-o.deltaX,c=e.deltaY-o.deltaY,l=G(h,u,c);n=l.x,r=l.y,i=p(l.x)>p(l.y)?l.x:l.y,s=Z(u,c),t.lastInterval=e}else i=o.velocity,n=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=i,e.velocityX=n,e.velocityY=r,e.direction=s}(i,e);var l,v;var d=t.element;S(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function V(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:l(t.pointers[i].clientX),clientY:l(t.pointers[i].clientY)},i++;return{timeStamp:f(),pointers:e,center:j(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var i=0,n=0,r=0;r<e;)i+=t[r].clientX,n+=t[r].clientY,r++;return{x:l(i/e),y:l(n/e)}}function G(t,e,i){return{x:e/t||0,y:i/t||0}}function Z(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function B(t,e,i){i||(i=q);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return Math.sqrt(n*n+r*r)}function $(t,e,i){i||(i=q);var n=e[i[0]]-t[i[0]],r=e[i[1]]-t[i[1]];return 180*Math.atan2(r,n)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(z(this.element),this.evWin,this.domHandler)}};var J={mousedown:1,mousemove:2,mouseup:4},K="mousedown",Q="mousemove mouseup";function tt(){this.evEl=K,this.evWin=Q,this.pressed=!1,H.apply(this,arguments)}E(tt,H,{handler:function(t){var e=J[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:k,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},it={2:F,3:"pen",4:k,
|
||||||
|
5:"kinect"},nt="pointerdown",rt="pointermove pointerup pointercancel";function st(){this.evEl=nt,this.evWin=rt,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(nt="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),E(st,H,{handler:function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),r=et[n],s=it[t.pointerType]||t.pointerType,o=s==F,a=w(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(i=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),i&&e.splice(a,1))}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function at(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function ht(t,e){var i=x(t.touches),n=x(t.changedTouches);return 12&e&&(i=O(i.concat(n),"identifier",!0)),[i,n]}E(at,H,{handler:function(t){var e=ot[t.type];if(1===e&&(this.started=!0),this.started){var i=ht.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:F,srcEvent:t})}}});var ut={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ct="touchstart touchmove touchend touchcancel";function lt(){this.evTarget=ct,this.targetIds={},H.apply(this,arguments)}function pt(t,e){var i=x(t.touches),n=this.targetIds;if(3&e&&1===i.length)return n[i[0].identifier]=!0,[i,i];var r,s,o=x(t.changedTouches),a=[],h=this.target;if(s=i.filter((function(t){return S(t.target,h)})),1===e)for(r=0;r<s.length;)n[s[r].identifier]=!0,r++;for(r=0;r<o.length;)n[o[r].identifier]&&a.push(o[r]),12&e&&delete n[o[r].identifier],r++;return a.length?[O(s.concat(a),"identifier",!0),a]:void 0}E(lt,H,{handler:function(t){var e=ut[t.type],i=pt.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:F,srcEvent:t})}});function ft(){H.apply(this,arguments);var t=I(this.handler,this);this.touch=new lt(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function vt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,dt.call(this,e)):12&t&&dt.call(this,e)}function dt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY};this.lastTouches.push(i);var n=this.lastTouches;setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function mt(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var r=this.lastTouches[n],s=Math.abs(e-r.x),o=Math.abs(i-r.y);if(s<=25&&o<=25)return!0}return!1}E(ft,H,{handler:function(t,e,i){var n=i.pointerType==F,r=i.pointerType==k;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)vt.call(this,e,i);else if(r&&mt.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}})
|
||||||
|
;var gt=R(c.style,"touchAction"),Tt=gt!==a,yt="compute",Et="auto",It="manipulation",At="none",Ct="pan-x",bt="pan-y",_t=function(){if(!Tt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){t[i]=!e||r.CSS.supports("touch-action",i)})),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==yt&&(t=this.compute()),Tt&&this.manager.element.style&&_t[t]&&(this.manager.element.style[gt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){A(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(P(t,At))return At;var e=P(t,Ct),i=P(t,bt);if(e&&i)return At;if(e||i)return e?Ct:bt;if(P(t,It))return It;return Et}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,r=P(n,At)&&!_t[At],s=P(n,bt)&&!_t[bt],o=P(n,Ct)&&!_t[Ct];if(r){var a=1===t.pointers.length,h=t.distance<2,u=t.deltaTime<250;if(a&&h&&u)return}if(!o||!s)return r||s&&6&i||o&&i&W?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Pt=32;function Dt(t){this.options=h({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function wt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function xt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Ot(t,e){var i=e.manager;return i?i.get(t):t}function Rt(){Dt.apply(this,arguments)}function Mt(){Rt.apply(this,arguments),this.pX=null,this.pY=null}function zt(){Rt.apply(this,arguments)}function Nt(){Dt.apply(this,arguments),this._timer=null,this._input=null}function Xt(){Rt.apply(this,arguments)}function Yt(){Rt.apply(this,arguments)}function Ft(){Dt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function kt(t,e){return(e=e||{}).recognizers=C(e.recognizers,kt.defaults.preset),new Wt(t,e)}Dt.prototype={defaults:{},set:function(t){return h(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(d(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Ot(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return d(t,"dropRecognizeWith",this)||(t=Ot(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(d(t,"requireFailure",this))return this;var e=this.requireFail;return-1===w(e,t=Ot(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(d(t,"dropRequireFailure",this))return this;t=Ot(t,this);var e=w(this.requireFail,t);return 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){
|
||||||
|
var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+wt(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+wt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Pt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=h({},t);if(!A(this.options.enable,[this,e]))return this.reset(),void(this.state=Pt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},E(Rt,Dt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,i=t.eventType,n=6&e,r=this.attrTest(t);return n&&(8&i||!r)?16|e:n||r?4&i?8|e:2&e?4|e:2:Pt}}),E(Mt,Rt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(bt),t&W&&e.push(Ct),e},directionTest:function(t){var e=this.options,i=!0,n=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,i=s!=this.pX,n=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,i=o!=this.pY,n=Math.abs(t.deltaY))),t.direction=r,i&&n>e.threshold&&r&e.direction},attrTest:function(t){return Rt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=xt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),E(zt,Rt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},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)}}),E(Nt,Dt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Et]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!n||!i||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=v((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Pt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),E(Xt,Rt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[At]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),E(Yt,Rt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Mt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction
|
||||||
|
;return 30&i?e=t.overallVelocity:6&i?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=xt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),E(Ft,Dt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[It]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(n&&r&&i){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||B(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=v((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Pt},failTimeout:function(){return this._timer=v((function(){this.state=Pt}),this.options.interval,this),Pt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),kt.VERSION="2.0.7",kt.defaults={domEvents:!1,touchAction:yt,enable:!0,inputTarget:null,inputClass:null,preset:[[Xt,{enable:!1}],[zt,{enable:!1},["rotate"]],[Yt,{direction:6}],[Mt,{direction:6},["swipe"]],[Ft],[Ft,{event:"doubletap",taps:2},["tap"]],[Nt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Wt(t,e){var i;this.options=h({},kt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(X?st:Y?lt:N?ft:tt))(i,U),this.touchAction=new St(this,this.options.touchAction),qt(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function qt(t,e){var i,n=t.element;n.style&&(m(t.options.cssProps,(function(r,s){i=R(n.style,s),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}Wt.prototype={set:function(t){return h(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<n.length;)i=n[s],2===e.stopped||r&&i!=r&&!i.canRecognizeWith(r)?i.reset():i.recognize(t),!r&&14&i.state&&(r=e.curRecognizer=i),s++}},get:function(t){if(t instanceof Dt)return t
|
||||||
|
;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event==t)return e[i];return null},add:function(t){if(d(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(d(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,i=w(e,t);-1!==i&&(e.splice(i,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var i=this.handlers;return m(D(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this}},off:function(t,e){if(t!==a){var i=this.handlers;return m(D(t),(function(t){e?i[t]&&i[t].splice(w(i[t],e),1):delete i[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var i=s.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},destroy:function(){this.element&&qt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(kt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Pt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:W,DIRECTION_ALL:30,Manager:Wt,Input:H,TouchAction:St,TouchInput:lt,MouseInput:tt,PointerEventInput:st,TouchMouseInput:ft,SingleTouchInput:at,Recognizer:Dt,AttrRecognizer:Rt,Tap:Ft,Pan:Mt,Swipe:Yt,Pinch:zt,Rotate:Xt,Press:Nt,on:b,off:_,each:m,merge:y,extend:T,assign:h,inherit:E,bindFn:I,prefixed:R}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=kt,(n=function(){return kt}.call(e,i,e,t))===a||(t.exports=n)}(window,document)}}]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,11 +0,0 @@
|
|||||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2157],{59142:function(e,t){var n,o,s;o=[t],n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var s="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),r=[],a=!1,i=-1,l=void 0,c=void 0,u=function(e){return r.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function(e){var t=e||window.event;return!!u(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},h=function(){setTimeout((function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)}))};e.disableBodyScroll=function(e,o){if(s){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!r.some((function(t){return t.targetElement===e}))){var h={targetElement:e,options:o||{}};r=[].concat(t(r),[h]),e.ontouchstart=function(e){1===e.targetTouches.length&&(i=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,o,s,r;1===t.targetTouches.length&&(o=e,r=(n=t).targetTouches[0].clientY-i,!u(n.target)&&(o&&0===o.scrollTop&&0<r||(s=o)&&s.scrollHeight-s.scrollTop<=s.clientHeight&&r<0?d(n):n.stopPropagation()))},a||(document.addEventListener("touchmove",d,n?{passive:!1}:void 0),a=!0)}}else{p=o,setTimeout((function(){if(void 0===c){var e=!!p&&!0===p.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(c=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")}));var m={targetElement:e,options:o||{}};r=[].concat(t(r),[m])}var p},e.clearAllBodyScrollLocks=function(){s?(r.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),a&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),a=!1),r=[],i=-1):(h(),r=[])},e.enableBodyScroll=function(e){if(s){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,r=r.filter((function(t){return t.targetElement!==e})),a&&0===r.length&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),a=!1)}else 1===r.length&&r[0].targetElement===e?(h(),r=[]):r=r.filter((function(t){return t.targetElement!==e}))}},void 0===(s="function"==typeof n?n.apply(t,o):n)||(e.exports=s)},57723:e=>{e.exports={wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",view:"view-GZajBGIm",danger:"danger-GZajBGIm"}},31542:e=>{e.exports={box:"box-ywH2tsV_",noOutline:"noOutline-ywH2tsV_",
|
|
||||||
disabled:"disabled-ywH2tsV_","intent-danger":"intent-danger-ywH2tsV_",checked:"checked-ywH2tsV_",check:"check-ywH2tsV_",icon:"icon-ywH2tsV_",dot:"dot-ywH2tsV_",disableActiveStyles:"disableActiveStyles-ywH2tsV_"}},49844:e=>{e.exports={loader:"loader-UL6iwcBa",static:"static-UL6iwcBa",item:"item-UL6iwcBa","tv-button-loader":"tv-button-loader-UL6iwcBa",medium:"medium-UL6iwcBa",small:"small-UL6iwcBa",black:"black-UL6iwcBa",white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},10765:e=>{e.exports={accessible:"accessible-rm8yeqY4"}},33832:e=>{e.exports={loaderWrap:"loaderWrap-jGEARQlM",big:"big-jGEARQlM",loader:"loader-jGEARQlM"}},3232:e=>{e.exports={item:"item-GJX1EXhk",interactive:"interactive-GJX1EXhk",hovered:"hovered-GJX1EXhk",disabled:"disabled-GJX1EXhk",active:"active-GJX1EXhk",shortcut:"shortcut-GJX1EXhk",normal:"normal-GJX1EXhk",big:"big-GJX1EXhk",iconCell:"iconCell-GJX1EXhk",icon:"icon-GJX1EXhk",checkmark:"checkmark-GJX1EXhk",content:"content-GJX1EXhk",label:"label-GJX1EXhk",checked:"checked-GJX1EXhk",toolbox:"toolbox-GJX1EXhk",showToolboxOnHover:"showToolboxOnHover-GJX1EXhk",arrowIcon:"arrowIcon-GJX1EXhk",subMenu:"subMenu-GJX1EXhk",invisibleHotkey:"invisibleHotkey-GJX1EXhk"}},74704:e=>{e.exports={row:"row-DFIg7eOh",line:"line-DFIg7eOh",hint:"hint-DFIg7eOh"}},42931:e=>{e.exports={menu:"menu-Tx5xMZww"}},36411:e=>{e.exports={item:"item-WJDah4zD",emptyIcons:"emptyIcons-WJDah4zD",loading:"loading-WJDah4zD",disabled:"disabled-WJDah4zD",interactive:"interactive-WJDah4zD",hovered:"hovered-WJDah4zD",normal:"normal-WJDah4zD",big:"big-WJDah4zD",icon:"icon-WJDah4zD",label:"label-WJDah4zD",title:"title-WJDah4zD",nested:"nested-WJDah4zD",shortcut:"shortcut-WJDah4zD",remove:"remove-WJDah4zD"}},98941:e=>{e.exports={separator:"separator-Ymxd0dt_"}},69658:e=>{e.exports={"default-drawer-min-top-distance":"100px",wrap:"wrap-_HnK0UIN",positionBottom:"positionBottom-_HnK0UIN",backdrop:"backdrop-_HnK0UIN",drawer:"drawer-_HnK0UIN",positionLeft:"positionLeft-_HnK0UIN"}},98992:e=>{e.exports={favorite:"favorite-_FRQhM5Y",hovered:"hovered-_FRQhM5Y",disabled:"disabled-_FRQhM5Y",active:"active-_FRQhM5Y",checked:"checked-_FRQhM5Y"}},11772:e=>{e.exports={button:"button-iLKiGOdQ",hovered:"hovered-iLKiGOdQ",disabled:"disabled-iLKiGOdQ",active:"active-iLKiGOdQ",hidden:"hidden-iLKiGOdQ"}},70673:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>c});var o=n(50959),s=n(97754),r=n(90186),a=n(5811),i=n(57723),l=n.n(i);function c(e){const t=s(l().wrapper,e.className);return o.createElement("span",{className:t,title:e.title,style:e.style},o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:s(e.intent&&l()[e.intent],l().input),type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){var t;null===(t=e.onChange)||void 0===t||t.call(e,e.value)},ref:e.reference,"aria-required":e["aria-required"],"aria-describedby":e["aria-describedby"],"aria-invalid":e["aria-invalid"],...(0,r.filterDataProps)(e)}),o.createElement(a.CheckboxView,{className:l().view,
|
|
||||||
indeterminate:e.indeterminate,checked:e.checked,disabled:e.disabled,intent:e.intent,tabIndex:e.tabIndex}))}},5811:(e,t,n)=>{"use strict";n.d(t,{CheckboxView:()=>c});var o=n(50959),s=n(97754),r=n(9745),a=n(65890),i=n(31542),l=n.n(i);function c(e){const{indeterminate:t,checked:n,tabIndex:i,className:c,disabled:u,disableActiveStyles:d,intent:h,hideIcon:m,...p}=e,v=t||!n||m?"":a,b=s(l().box,l()[`intent-${h}`],!t&&l().check,!!t&&l().dot,-1===i&&l().noOutline,c,n&&l().checked,u&&l().disabled,d&&l().disableActiveStyles);return o.createElement("span",{className:b,...p},o.createElement(r.Icon,{icon:v,className:l().icon}))}},26996:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>l});var o,s=n(50959),r=n(97754),a=n(49844),i=n.n(a);function l(e){const{className:t,size:n="medium",staticPosition:o,color:a="black"}=e,l=r(i().item,i()[a],i()[n]);return s.createElement("span",{className:r(i().loader,o&&i().static,t)},s.createElement("span",{className:l}),s.createElement("span",{className:l}),s.createElement("span",{className:l}))}!function(e){e.Medium="medium",e.Small="small"}(o||(o={}))},50238:(e,t,n)=>{"use strict";n.d(t,{useRovingTabindexElement:()=>r});var o=n(50959),s=n(39416);function r(e,t=[]){const[n,r]=(0,o.useState)(!1),a=(0,s.useFunctionalRefObject)(e);return(0,o.useLayoutEffect)((()=>{const e=a.current;if(null===e)return;const t=e=>{switch(e.type){case"roving-tabindex:main-element":r(!0);break;case"roving-tabindex:secondary-element":r(!1)}};return e.addEventListener("roving-tabindex:main-element",t),e.addEventListener("roving-tabindex:secondary-element",t),()=>{e.removeEventListener("roving-tabindex:main-element",t),e.removeEventListener("roving-tabindex:secondary-element",t)}}),t),[a,n?0:-1]}},10772:(e,t,n)=>{"use strict";n.d(t,{ContextMenuAction:()=>E});var o=n(50959),s=n(50151),r=n(91561),a=n(59064),i=n(51768),l=n(63273);var c=n(83021),u=n(97754),d=n.n(u),h=n(26996),m=n(5304),p=n(33832);function v(e){const{size:t="normal"}=e;return o.createElement(m.ContextMenuItem,{size:t,jsxLabel:o.createElement("div",{className:d()(p.loaderWrap,p[t])},o.createElement(h.Loader,{className:p.loader})),noInteractive:!0,onMouseOver:e.onMouseOver})}var b=n(3343),f=n(50238),g=n(10765);const w=(0,o.forwardRef)((function(e,t){const{className:n,...s}=e,[r,a]=(0,f.useRovingTabindexElement)(t);return o.createElement(m.ContextMenuItem,{...s,className:d()(g.accessible,n),reference:r,tabIndex:a,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,b.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),r.current instanceof HTMLElement&&r.current.click())},"data-role":"menuitem","aria-disabled":e.disabled||void 0})}));class E extends o.PureComponent{constructor(e){super(e),this._itemRef=null,this._menuElementRef=o.createRef(),this._menuRef=null,this._handleClick=e=>{e.isDefaultPrevented()||this.state.disabled||(this._hasSubItems()?this._showSubMenu():(this.state.doNotCloseOnClick||(0,a.globalCloseMenu)(),this.props.action.execute(),this._trackEvent(),this.props.onExecute&&this.props.onExecute(this.props.action)))},
|
|
||||||
this._handleClickToolbox=()=>{(0,a.globalCloseMenu)()},this._handleItemMouseOver=()=>{this._showSubMenu(),this._setCurrentContextValue()},this._handleMenuMouseOver=()=>{this._setCurrentContextValue()},this._showSubMenu=()=>{this.props.onShowSubMenu(this.props.action)},this._calcSubMenuPos=e=>function(e,t,n={x:0,y:10}){if(t){const{left:n,right:o,top:s}=t.getBoundingClientRect(),r=document.documentElement.clientWidth,a={x:n-e,y:s},i={x:o,y:s};return(0,l.isRtl)()?n<=e?i:a:r-o>=e?i:a}return n}(e.contentWidth,this._itemRef),this._updateState=e=>{this.setState(e.getState())},this._setItemRef=e=>{this._itemRef=e},this._handleMenuRef=e=>{this._menuRef=e},this._registerSubmenu=()=>{var e;return null===(e=this.context)||void 0===e?void 0:e.registerSubmenu(this.props.action.id,(e=>(0,s.ensureNotNull)(this._itemRef).contains(e)||null!==this._menuElementRef.current&&this._menuElementRef.current.contains(e)))},this.state={...this.props.action.getState()}}componentDidMount(){this.props.action.onUpdate().subscribe(this,this._updateState),this.state.subItems.length&&(this._unsubscribe=this._registerSubmenu()),this.props.reference&&(this._itemRef=this.props.reference.current)}componentDidUpdate(e,t){var n,o,s;t.loading!==this.state.loading&&(null===(o=(n=this.props).onRequestUpdate)||void 0===o||o.call(n)),0===t.subItems.length&&this.state.subItems.length>0&&(this._unsubscribe=this._registerSubmenu()),t.subItems.length>0&&0===this.state.subItems.length&&(null===(s=this._unsubscribe)||void 0===s||s.call(this)),t.subItems!==this.state.subItems&&null!==this._menuRef&&this._menuRef.update()}componentWillUnmount(){this.props.action.onUpdate().unsubscribe(this,this._updateState),this._unsubscribe&&this._unsubscribe()}render(){var e,t;const n=(null===(e=this.context)||void 0===e?void 0:e.current)?this.context.current===this.props.action.id:this.props.isSubMenuOpened;return this.state.loading?o.createElement(v,{size:this.state.size}):o.createElement(w,{theme:this.props.theme,ref:null!==(t=this.props.reference)&&void 0!==t?t:this._setItemRef,onClick:this._handleClick,onClickToolbox:this._handleClickToolbox,onMouseOver:this._handleItemMouseOver,hovered:n,hasSubItems:this._hasSubItems(),actionName:this.state.name,checkboxInput:this.props.checkboxInput,selected:this.props.selected,...this.state},o.createElement(r.ContextMenu,{isOpened:n,items:this.state.subItems,position:this._calcSubMenuPos,menuStatName:this.props.menuStatName,parentStatName:this._getStatName(),menuElementReference:this._menuElementRef,onMouseOver:this.state.subItems.length?this._handleMenuMouseOver:void 0,ref:this._handleMenuRef}))}_setCurrentContextValue(){var e;this.state.subItems.length&&(null===(e=this.context)||void 0===e||e.setCurrent(this.props.action.id))}_hasSubItems(){return this.state.subItems.length>0}_trackEvent(){const e=this._getStatName();(0,i.trackEvent)("ContextMenuClick",this.props.menuStatName||"",e)}_getStatName(){return[this.props.parentStatName,this.state.statName].filter((e=>Boolean(e))).join(".")}}E.contextType=c.SubmenuContext},5304:(e,t,n)=>{
|
|
||||||
"use strict";n.d(t,{ContextMenuItem:()=>E,DEFAUL_CONTEXT_MENU_ITEM_THEME:()=>g});var o=n(50959),s=n(97754),r=n(70673),a=n(49483),i=n(71382),l=n(96040),c=n(36189),u=n(99025),d=n(25812),h=n(56570),m=n(90186),p=n(60925),v=n(80802),b=n(14665),f=n(3232);const g=f,w=h.enabled("items_favoriting");class E extends o.PureComponent{constructor(){super(...arguments),this._handleMouseOver=e=>{(0,i.isTouchEvent)(e.nativeEvent)||this.props.onMouseOver&&this.props.onMouseOver()},this._handleClickToolbox=e=>{e.stopPropagation(),this.props.onClickToolbox&&this.props.onClickToolbox()}}render(){const{hasSubItems:e,shortcutHint:t,hint:n,invisibleHotkey:r,favourite:i,theme:l=f,size:d="normal",onKeyDown:h,label:p,jsxLabel:v,styledLabel:g}=this.props,E=this.props.checkable&&this.props.checkboxInput?"label":"div";return o.createElement(o.Fragment,null,o.createElement("tr",{...(0,m.filterDataProps)(this.props),...(0,m.filterAriaProps)(this.props),className:s(this.props.className,l.item,!this.props.noInteractive&&l.interactive,this.props.hovered&&l.hovered,this.props.disabled&&l.disabled,this.props.active&&l.active,this.props.selected&&l.selected,l[d]),onClick:this.props.onClick,onMouseOver:this._handleMouseOver,ref:this.props.reference,"data-action-name":this.props.actionName,tabIndex:this.props.tabIndex,onKeyDown:h},w&&void 0!==i&&o.createElement("td",null,o.createElement(c.FavoriteButton,{className:l.favourite,isFilled:i,onClick:this.props.onFavouriteClick})),o.createElement("td",{className:s(l.iconCell),"data-icon-cell":!0},this._icon(l)),o.createElement("td",{className:l.contentCell},o.createElement(E,{className:l.content},o.createElement("span",{className:s(l.label,this.props.checked&&l.checked),"data-label":!0},!v&&g?g.map((({text:e,...t},n)=>o.createElement("span",{key:n,style:t},e))):null!=v?v:p),this._toolbox(l),e&&o.createElement("span",{className:l.arrowIcon,dangerouslySetInnerHTML:{__html:b},"data-submenu-arrow":!0}),!e&&t&&!a.CheckMobile.any()&&o.createElement(u.Hint,{className:s(r&&l.invisibleHotkey),text:t}),!e&&!t&&n&&o.createElement(u.Hint,{text:n})))),o.createElement("tr",{className:l.subMenu},o.createElement("td",null,this.props.children)))}_icon(e){if(this.props.checkable){if(this.props.checkboxInput)return o.createElement(r.CheckboxInput,{className:s(e.icon,e.checkboxInput),checked:this.props.checked});if(this.props.checked){const t=!this.props.icon&&!this.props.iconChecked,n=this.props.iconChecked||this.props.icon||v;return o.createElement("span",{className:s(e.icon,t&&e.checkmark),dangerouslySetInnerHTML:{__html:n},"data-icon-checkmark":t})}return this.props.icon?o.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):o.createElement("span",{className:e.icon})}return this.props.icon?o.createElement("span",{className:e.icon,dangerouslySetInnerHTML:{__html:this.props.icon}}):null}_toolbox(e){return this.props.toolbox?o.createElement("span",{className:s(e.toolbox,this.props.showToolboxOnHover&&e.showToolboxOnHover),onClick:this._handleClickToolbox,"data-toolbox":!0
|
|
||||||
},this._renderToolboxContent()):null}_renderToolboxContent(){return this.props.toolbox&&this.props.toolbox.type===d.ToolboxType.Delete?o.createElement(l.RemoveButton,{icon:p,onClick:this.props.toolbox.action}):null}}},91561:(e,t,n)=>{"use strict";n.d(t,{ContextMenu:()=>_,OverlapContextMenu:()=>M});var o=n(50959),s=n(97754),r=n.n(s),a=n(86431),i=n(27317),l=n(52778);class c extends o.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}var u=n(75535),d=n(37558),h=n(90692),m=n(98941);function p(e){return o.createElement("li",{className:m.separator})}var v=n(23829),b=n(41590),f=n(59064);function g(e){var t;const n=null!==(t=e.action.custom())&&void 0!==t?t:e.action,[s,r]=(0,o.useState)((()=>n.getState())),[a,i]=(0,o.useState)(!1),l=!!s.subItems.length,c=l&&a;return(0,o.useEffect)((()=>{const e=()=>r(n.getState());return n.onUpdate().subscribe(null,e),()=>{n.onUpdate().unsubscribe(null,e)}}),[]),o.createElement(v.ContextMenuItem,{...s,onClick:function(e){if(s.disabled||e.defaultPrevented)return;if(l)return void i(!0);s.doNotCloseOnClick||(0,f.globalCloseMenu)();n.execute()},isLoading:s.loading,isHovered:c},c&&o.createElement(b.Drawer,{onClose:u},o.createElement(x,{items:s.subItems,parentAction:n,closeNested:u})));function u(e){e&&e.preventDefault(),i(!1)}}var w=n(54627),E=n(66493);function x(e){const{items:t,parentAction:n,closeNested:s}=e,r=!Boolean(n)&&t.every((e=>!Boolean("separator"!==e.type&&(e.getState().icon||e.getState().checkable))));return o.createElement(w.EmptyIconsContext.Provider,{value:r},o.createElement("ul",null,n&&o.createElement(o.Fragment,null,o.createElement(v.ContextMenuItem,{label:n.getState().label,isTitle:!0,active:!1,disabled:!1,subItems:[],checkable:!1,checked:!1,doNotCloseOnClick:!1,icon:E,onClick:s}),o.createElement(p,null)),t.map((e=>{switch(e.type){case"action":return o.createElement(g,{key:e.id,action:e});case"separator":return o.createElement(p,{key:e.id})}}))))}const k=o.createContext(null);var y=n(20243),C=n(42931);class _ extends o.PureComponent{constructor(e){super(e),this._menuRef=o.createRef(),this._handleRequestUpdate=()=>{this.update()},this._handleClose=()=>{this.props.onClose&&this.props.onClose()},this._handleOutsideClickClose=e=>{const{doNotCloseOn:t,onClose:n}=this.props;!n||void 0!==t&&t.contains(e.target)||n()},this._handleFocusOnOpen=()=>{var e,t;(null===(e=this.props.menuElementReference)||void 0===e?void 0:e.current)&&this.props.takeFocus&&(null===(t=this.props.menuElementReference)||void 0===t||t.current.focus({preventScroll:!0}))},this._handleFocus=e=>{this.props.isKeyboardEvent&&e.target&&(0,y.focusFirstMenuItem)(e.target)},this.state={}}render(){const{isOpened:e,onClose:t,items:n,doNotCloseOn:s,menuStatName:a,parentStatName:m,takeFocus:p,...v}=this.props
|
|
||||||
;return e?o.createElement(d.DrawerManager,null,o.createElement(c,{keyCode:27,eventType:"keyup",handler:this._handleClose}),o.createElement(h.MatchMedia,{rule:"screen and (max-width: 430px)"},(t=>this._isDrawer(t)?o.createElement(k.Provider,{value:{type:"drawer"}},o.createElement(b.Drawer,{onClose:this._handleClose,position:"Bottom","data-name":v["data-name"]},o.createElement(x,{items:n}))):o.createElement(k.Provider,{value:{type:"menu"}},o.createElement(l.OutsideEvent,{handler:this._handleOutsideClickClose,mouseDown:!0,touchStart:!0,reference:this.props.menuElementReference},(t=>o.createElement(i.Menu,{...v,reference:t,className:r()(C.menu,"context-menu"),onClose:this._handleClose,noMomentumBasedScroll:!0,ref:this._menuRef,tabIndex:p?-1:void 0,onOpen:this._handleFocusOnOpen,onFocus:this._handleFocus,onKeyDown:y.handleAccessibleMenuKeyDown},o.createElement(u.ActionsTable,{items:n,menuStatName:a,parentStatName:m,parentIsOpened:e,onRequestUpdate:this._handleRequestUpdate})))))))):null}update(){var e;this._menuRef.current&&this._menuRef.current.update(),this.props.isKeyboardEvent&&(null===(e=this.props.menuElementReference)||void 0===e?void 0:e.current)&&document.activeElement===this.props.menuElementReference.current&&(0,y.focusFirstMenuItem)(this.props.menuElementReference.current)}_isDrawer(e){return void 0===this.props.mode?e:"drawer"===this.props.mode}}const M=(0,a.makeOverlapable)(_)},99025:(e,t,n)=>{"use strict";n.d(t,{Hint:()=>i});var o=n(50959),s=n(97754),r=n.n(s),a=n(3232);function i(e){const{text:t="",className:n}=e;return o.createElement("span",{className:r()(a.shortcut,n)},t)}},23829:(e,t,n)=>{"use strict";n.d(t,{ContextMenuItem:()=>p});var o=n(50959),s=n(97754),r=n.n(s),a=n(9745),i=n(26996),l=n(54627),c=n(99025),u=n(39750),d=n(79978),h=n(60925),m=n(36411);function p(e){const{className:t,isTitle:n,isLoading:s,isHovered:p,active:v,checkable:b,disabled:f,checked:g,icon:w,iconChecked:E,hint:x,subItems:k,label:y,styledLabel:C,onClick:_,children:M,toolbox:S,jsxLabel:N,size:I="normal"}=e,D=(0,o.useContext)(l.EmptyIconsContext),L=!!k.length;return s?o.createElement("li",{className:r()(t,m.item,m.loading,m[I])},o.createElement(i.Loader,null)):o.createElement("li",{className:r()(t,m.item,m.interactive,n&&m.title,f&&m.disabled,p&&m.hovered,v&&m.active,D&&m.emptyIcons,m[I]),onClick:_},o.createElement(a.Icon,{className:r()(m.icon),icon:function(){if(b&&g)return E||w||u;return w}()}),o.createElement("span",{className:r()(m.label)},!N&&C?C.map((({text:e,...t},n)=>o.createElement("span",{key:n,style:t},e))):null!=N?N:y),!!S&&o.createElement(a.Icon,{onClick:function(){S&&S.action()},className:m.remove,icon:h}),!L&&x&&o.createElement(c.Hint,{className:m.shortcut,text:x}),L&&o.createElement(a.Icon,{className:m.nested,icon:d}),M)}},54627:(e,t,n)=>{"use strict";n.d(t,{EmptyIconsContext:()=>o});const o=n(50959).createContext(!1)},37558:(e,t,n)=>{"use strict";n.d(t,{DrawerContext:()=>a,DrawerManager:()=>r});var o=n(50959),s=n(99054);class r extends o.PureComponent{constructor(e){super(e),this._isBodyFixed=!1,this._addDrawer=e=>{
|
|
||||||
this.setState((t=>({stack:[...t.stack,e]})))},this._removeDrawer=e=>{this.setState((t=>({stack:t.stack.filter((t=>t!==e))})))},this.state={stack:[]}}componentDidUpdate(e,t){!t.stack.length&&this.state.stack.length&&((0,s.setFixedBodyState)(!0),this._isBodyFixed=!0),t.stack.length&&!this.state.stack.length&&this._isBodyFixed&&((0,s.setFixedBodyState)(!1),this._isBodyFixed=!1)}componentWillUnmount(){this.state.stack.length&&this._isBodyFixed&&(0,s.setFixedBodyState)(!1)}render(){return o.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.stack.length?this.state.stack[this.state.stack.length-1]:null}},this.props.children)}}const a=o.createContext(null)},41590:(e,t,n)=>{"use strict";n.d(t,{Drawer:()=>m});var o=n(50959),s=n(50151),r=n(97754),a=n(92184),i=n(42842),l=n(37558),c=n(29197),u=n(86656),d=n(69658);var h;function m(e){const{position:t="Bottom",onClose:n,children:u,reference:h,className:m,theme:v=d}=e,b=(0,s.ensureNotNull)((0,o.useContext)(l.DrawerContext)),[f]=(0,o.useState)((()=>(0,a.randomHash)())),g=(0,o.useRef)(null),w=(0,o.useContext)(c.CloseDelegateContext);return(0,o.useLayoutEffect)((()=>((0,s.ensureNotNull)(g.current).focus({preventScroll:!0}),w.subscribe(b,n),b.addDrawer(f),()=>{b.removeDrawer(f),w.unsubscribe(b,n)})),[]),o.createElement(i.Portal,null,o.createElement("div",{ref:h,className:r(d.wrap,d[`position${t}`])},f===b.currentDrawer&&o.createElement("div",{className:d.backdrop,onClick:n}),o.createElement(p,{className:r(v.drawer,d[`position${t}`],m),ref:g,"data-name":e["data-name"]},u)))}!function(e){e.Left="Left",e.Bottom="Bottom"}(h||(h={}));const p=(0,o.forwardRef)(((e,t)=>{const{className:n,...s}=e;return o.createElement(u.TouchScrollContainer,{className:r(d.drawer,n),tabIndex:-1,ref:t,...s})}))},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>d});var o=n(11542),s=n(50959),r=n(97754),a=n(9745),i=n(39146),l=n(48010),c=n(98992);const u={add:o.t(null,void 0,n(69207)),remove:o.t(null,void 0,n(85106))};function d(e){const{className:t,isFilled:n,isActive:o,onClick:d,...h}=e;return s.createElement(a.Icon,{...h,className:r(c.favorite,"apply-common-tooltip",n&&c.checked,o&&c.active,t),icon:n?i:l,onClick:d,title:n?u.remove:u.add})}},96040:(e,t,n)=>{"use strict";n.d(t,{RemoveButton:()=>c});var o=n(11542),s=n(50959),r=n(97754),a=n(9745),i=n(33765),l=n(11772);function c(e){const{className:t,isActive:c,onClick:u,onMouseDown:d,title:h,hidden:m,"data-name":p="remove-button",icon:v,...b}=e;return s.createElement(a.Icon,{...b,"data-name":p,className:r(l.button,"apply-common-tooltip",c&&l.active,m&&l.hidden,t),icon:v||i,onClick:u,onMouseDown:d,title:h||o.t(null,void 0,n(67410))})}},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>c});var o=n(50959),s=n(59142),r=n(50151),a=n(49483);const i=CSS.supports("overscroll-behavior","none");let l=0;const c=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e,c=(0,o.useRef)(null);return(0,o.useImperativeHandle)(t,(()=>c.current)),(0,o.useLayoutEffect)((()=>{if(a.CheckMobile.iOS())return l++,
|
|
||||||
null!==c.current&&(i?1===l&&(document.body.style.overscrollBehavior="none"):(0,s.disableBodyScroll)(c.current,{allowTouchMove:u(c)})),()=>{l--,null!==c.current&&(i?0===l&&(document.body.style.overscrollBehavior=""):(0,s.enableBodyScroll)(c.current))}}),[]),o.createElement("div",{ref:c,...r},n)}));function u(e){return t=>{const n=(0,r.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},20243:(e,t,n)=>{"use strict";n.d(t,{focusFirstMenuItem:()=>c,handleAccessibleMenuFocus:()=>i,handleAccessibleMenuKeyDown:()=>l,queryMenuElements:()=>h});var o=n(19291),s=n(57177),r=n(68335);const a=[37,39,38,40];function i(e,t){var n;if(!e.target)return;const o=null===(n=e.relatedTarget)||void 0===n?void 0:n.getAttribute("aria-activedescendant");if(e.relatedTarget!==t.current){const e=o&&document.getElementById(o);if(!e||e!==t.current)return}c(e.target)}function l(e){var t;if(e.defaultPrevented)return;const n=(0,r.hashFromEvent)(e);if(!a.includes(n))return;const i=document.activeElement;if(!(document.activeElement instanceof HTMLElement))return;const l=h(e.currentTarget).sort(o.navigationOrderComparator);if(0===l.length)return;const c=document.activeElement.closest('[data-role="menuitem"]')||(null===(t=document.activeElement.parentElement)||void 0===t?void 0:t.querySelector('[data-role="menuitem"]'));if(!(c instanceof HTMLElement))return;const p=l.indexOf(c);if(-1===p)return;const v=m(c),b=v.indexOf(document.activeElement),f=-1!==b,g=e=>{i&&(0,s.becomeSecondaryElement)(i),(0,s.becomeMainElement)(e),e.focus()};switch((0,o.mapKeyCodeToDirection)(n)){case"inlinePrev":if(!v.length)return;e.preventDefault(),g(0===b?l[p]:f?u(v,b,-1):v[v.length-1]);break;case"inlineNext":if(!v.length)return;e.preventDefault(),b===v.length-1?g(l[p]):g(f?u(v,b,1):v[0]);break;case"blockPrev":{e.preventDefault();const t=u(l,p,-1);if(f){const e=d(t,b);g(e||t);break}g(t);break}case"blockNext":{e.preventDefault();const t=u(l,p,1);if(f){const e=d(t,b);g(e||t);break}g(t)}}}function c(e){const[t]=h(e);t&&((0,s.becomeMainElement)(t),t.focus())}function u(e,t,n){return e[(t+e.length+n)%e.length]}function d(e,t){const n=m(e);return n.length?n[(t+n.length)%n.length]:null}function h(e){return Array.from(e.querySelectorAll('[data-role="menuitem"]:not([disabled]):not([aria-disabled])')).filter((0,o.createScopedVisibleElementFilter)(e))}function m(e){return Array.from(e.querySelectorAll("[tabindex]:not([disabled]):not([aria-disabled])")).filter((0,o.createScopedVisibleElementFilter)(e))}},57177:(e,t,n)=>{"use strict";var o;function s(e){e.dispatchEvent(new CustomEvent("roving-tabindex:main-element"))}function r(e){e.dispatchEvent(new CustomEvent("roving-tabindex:secondary-element"))}n.d(t,{becomeMainElement:()=>s,becomeSecondaryElement:()=>r}),function(e){e.MainElement="roving-tabindex:main-element",e.SecondaryElement="roving-tabindex:secondary-element"}(o||(o={}))},75535:(e,t,n)=>{"use strict";n.d(t,{ActionsTable:()=>i});var o=n(50959),s=n(74704);function r(e){return o.createElement("tr",{className:s.row
|
|
||||||
},o.createElement("td",null,o.createElement("div",{className:s.line})),o.createElement("td",null,o.createElement("div",{className:s.line}),e.hint?o.createElement("div",{className:s.hint},e.hint):null))}var a=n(10772);class i extends o.PureComponent{constructor(e){super(e),this._handleShowSubMenu=e=>{const t=e.getState();this.setState({showSubMenuOf:t.subItems.length?e:void 0})},this.state={}}render(){return o.createElement("table",null,o.createElement("tbody",null,this.props.items.map((e=>this._item(e)))))}static getDerivedStateFromProps(e,t){return!e.parentIsOpened&&t.showSubMenuOf?{showSubMenuOf:void 0}:null}_item(e){var t;switch(e.type){case"separator":return o.createElement(r,{key:e.id,hint:e.getHint()});case"action":const n=null!==(t=e.custom())&&void 0!==t?t:e;return o.createElement(a.ContextMenuAction,{key:n.id,action:n,onShowSubMenu:this._handleShowSubMenu,isSubMenuOpened:this.state.showSubMenuOf===n,menuStatName:this.props.menuStatName,parentStatName:this.props.parentStatName,onRequestUpdate:this.props.onRequestUpdate})}}}},60925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M12 4h3v1h-1.04l-.88 9.64a1.5 1.5 0 0 1-1.5 1.36H6.42a1.5 1.5 0 0 1-1.5-1.36L4.05 5H3V4h3v-.5C6 2.67 6.67 2 7.5 2h3c.83 0 1.5.67 1.5 1.5V4ZM7.5 3a.5.5 0 0 0-.5.5V4h4v-.5a.5.5 0 0 0-.5-.5h-3ZM5.05 5l.87 9.55a.5.5 0 0 0 .5.45h5.17a.5.5 0 0 0 .5-.45L12.94 5h-7.9Z"/></svg>'},65890:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke="currentColor" stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'},66493:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16.5 20L11 14.5 16.5 9"/></svg>'},79978:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 5l3.5 3.5L8 12"/></svg>'},80802:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14" width="18" height="14"><path fill="currentColor" d="M6 11.17l-4.17-4.17-1.42 1.41 5.59 5.59 12-12-1.41-1.41-10.59 10.58z"/></svg>'},39750:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 15l5 5L23 9"/></svg>'},33765:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},14665:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16" width="10" height="16"><path d="M.6 1.4l1.4-1.4 8 8-8 8-1.4-1.4 6.389-6.532-6.389-6.668z"/></svg>'},39146:e=>{
|
|
||||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},48010:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'}}]);
|
|
||||||
1
charting_library/bundles/2198.00a4d0f1e70d631f2bf4.css
Normal file
1
charting_library/bundles/2198.00a4d0f1e70d631f2bf4.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
.separator-EI7Qsb2Q{border-top:1px solid var(--themed-color-header-separator-border,#e0e3eb)}html.theme-dark .separator-EI7Qsb2Q{border-top:1px solid var(--themed-color-header-separator-border,#434651)}.scrollable-EI7Qsb2Q{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-EI7Qsb2Q{min-height:auto}}@supports (-moz-appearance:none){.scrollable-EI7Qsb2Q{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .scrollable-EI7Qsb2Q{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.scrollable-EI7Qsb2Q::-webkit-scrollbar{height:5px;width:5px}.scrollable-EI7Qsb2Q::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollable-EI7Qsb2Q::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollable-EI7Qsb2Q::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollable-EI7Qsb2Q::-webkit-scrollbar-corner{display:none}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.separator-EI7Qsb2Q{border-top:1px solid var(--themed-color-header-separator-border,#e0e3eb)}html.theme-dark .separator-EI7Qsb2Q{border-top:1px solid var(--themed-color-header-separator-border,#434651)}.scrollable-EI7Qsb2Q{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-EI7Qsb2Q{min-height:auto}}@supports (-moz-appearance:none){.scrollable-EI7Qsb2Q{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .scrollable-EI7Qsb2Q{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.scrollable-EI7Qsb2Q::-webkit-scrollbar{height:5px;width:5px}.scrollable-EI7Qsb2Q::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollable-EI7Qsb2Q::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollable-EI7Qsb2Q::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollable-EI7Qsb2Q::-webkit-scrollbar-corner{display:none}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.footer-dwINHZFL{align-items:center;background-color:var(--themed-color-bg,#f8f9fd);border-radius:0 0 6px 6px;box-sizing:border-box;color:var(--themed-color-default-gray,#6a6d78);cursor:default;display:flex;flex:0 0 auto;font-size:13px;justify-content:center;line-height:17px;max-height:65px;min-height:40px;padding:9px 20px;text-align:center}html.theme-dark .footer-dwINHZFL{background-color:var(--themed-color-bg,#2a2e39);color:var(--themed-color-default-gray,#868993)}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.footer-dwINHZFL{align-items:center;background-color:var(--themed-color-bg,#f8f9fd);border-radius:0 0 6px 6px;box-sizing:border-box;color:var(--themed-color-default-gray,#6a6d78);cursor:default;display:flex;flex:0 0 auto;font-size:13px;justify-content:center;line-height:17px;max-height:65px;min-height:40px;padding:9px 20px;text-align:center}html.theme-dark .footer-dwINHZFL{background-color:var(--themed-color-bg,#2a2e39);color:var(--themed-color-default-gray,#868993)}
|
|
||||||
1
charting_library/bundles/221.a35afd2176ea6f1cf8db.css
Normal file
1
charting_library/bundles/221.a35afd2176ea6f1cf8db.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-yTmP:var(--color-cold-gray-400)}[data-theme=dark]{--_0-yTmP:var(--color-cold-gray-950)}.wrap-_HnK0UIN{bottom:0;display:flex;inset-inline-end:0;inset-inline-start:0;position:fixed;top:0;z-index:0}.wrap-_HnK0UIN.positionBottom-_HnK0UIN{align-items:flex-end}.backdrop-_HnK0UIN{background-color:var(--_0-yTmP);bottom:0;inset-inline-end:0;inset-inline-start:0;opacity:.7;position:absolute;top:0;transform:translateZ(0)}.drawer-_HnK0UIN{background-color:var(--tv-color-popup-background,var(--color-popup-background));box-sizing:border-box;padding:6px 0;-webkit-overflow-scrolling:touch;box-shadow:0 2px 4px var(--color-shadow-primary-neutral-extra-heavy);z-index:1}.drawer-_HnK0UIN.positionLeft-_HnK0UIN{margin-inline-end:40px;max-width:calc(100% - 40px);min-width:260px}.drawer-_HnK0UIN.positionBottom-_HnK0UIN{border-start-end-radius:6px;border-start-start-radius:6px;flex-basis:100%;margin-top:var(--drawer-margin-top-distance,100px);max-height:calc(100% - var(--drawer-min-top-distance, 100px));overflow:auto}.drawer-_HnK0UIN:focus{outline:none}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
[data-theme=light]{--_0-yTmP:var(--color-cold-gray-400)}[data-theme=dark]{--_0-yTmP:var(--color-cold-gray-950)}.wrap-_HnK0UIN{bottom:0;display:flex;inset-inline-end:0;inset-inline-start:0;position:fixed;top:0;z-index:0}.wrap-_HnK0UIN.positionBottom-_HnK0UIN{align-items:flex-end}.backdrop-_HnK0UIN{background-color:var(--_0-yTmP);bottom:0;inset-inline-end:0;inset-inline-start:0;opacity:.7;position:absolute;top:0;transform:translateZ(0)}.drawer-_HnK0UIN{background-color:var(--tv-color-popup-background,var(--color-popup-background));box-sizing:border-box;padding:6px 0;-webkit-overflow-scrolling:touch;box-shadow:0 2px 4px var(--color-shadow-primary-neutral-extra-heavy);z-index:1}.drawer-_HnK0UIN.positionLeft-_HnK0UIN{margin-inline-end:40px;max-width:calc(100% - 40px);min-width:260px}.drawer-_HnK0UIN.positionBottom-_HnK0UIN{border-start-end-radius:6px;border-start-start-radius:6px;flex-basis:100%;margin-top:var(--drawer-margin-top-distance,100px);max-height:calc(100% - var(--drawer-min-top-distance, 100px));overflow:auto}.drawer-_HnK0UIN:focus{outline:none}
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2227],{82321:(e,n,t)=>{var r=t(50959),l=t(22962);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var u=new Set,o={};function i(e,n){s(e,n),s(e+"Capture",n)}function s(e,n){for(o[e]=n,e=0;e<n.length;e++)u.add(n[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},m={};function h(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=u}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];g[n]=new h(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,n,t,r){var l=g.hasOwnProperty(n)?g[n]:null;(null!==l?0!==l.type:r||!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0
|
|
||||||
;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,l,r)&&(t=null),r||null===l?function(e){return!!f.call(m,e)||!f.call(p,e)&&(d.test(e)?m[e]=!0:(p[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):l.mustUseProperty?e[l.propertyName]=null===t?3!==l.type&&"":t:(n=l.attributeName,r=l.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(l=l.type)||4===l&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var F=Symbol.iterator;function O(e){
|
|
||||||
return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var D,I=Object.assign;function U(e){if(void 0===D)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);D=n&&n[1]||""}return"\n"+D+e}var V=!1;function A(e,n){if(!e||V)return"";V=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(n){if(n&&r&&"string"==typeof n.stack){for(var l=n.stack.split("\n"),a=r.stack.split("\n"),u=l.length-1,o=a.length-1;1<=u&&0<=o&&l[u]!==a[o];)o--;for(;1<=u&&0<=o;u--,o--)if(l[u]!==a[o]){if(1!==u||1!==o)do{if(u--,0>--o||l[u]!==a[o]){var i="\n"+l[u].replace(" at new "," at ");return e.displayName&&i.includes("<anonymous>")&&(i=i.replace("<anonymous>",e.displayName)),i}}while(1<=u&&0<=o);break}}}finally{V=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?U(e):""}function $(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=A(e.type,!1);case 11:return e=A(e.type.render,!1);case 1:return e=A(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(n=e.displayName||null)?n:j(e.type)||"Memo";case R:n=e._payload,e=e._init;try{return j(e(n))}catch(e){}}return null}function B(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(n);case 8:return n===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var n=e.type
|
|
||||||
;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var n=W(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&void 0!==t&&"function"==typeof t.get&&"function"==typeof t.set){var l=t.get,a=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}(e))}function q(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==t&&(n.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(n){return e.body}}function Y(e,n){var t=n.checked;return I({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function X(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=H(null!=n.value?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function G(e,n){null!=(n=n.checked)&&b(e,"checked",n,!1)}function Z(e,n){G(e,n);var t=H(n.value),r=n.type;if(null!=t)"number"===r?(0===t&&""===e.value||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");n.hasOwnProperty("value")?ee(e,n.type,t):n.hasOwnProperty("defaultValue")&&ee(e,n.type,H(n.defaultValue)),null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function J(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}""!==(t=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==t&&(e.name=t)}function ee(e,n,t){"number"===n&&K(e.ownerDocument)===e||(null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var ne=Array.isArray;function te(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+H(t),n=null,l=0;l<e.length;l++){if(e[l].value===t)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==n||e[l].disabled||(n=e[l])}null!==n&&(n.selected=!0)}}function re(e,n){if(null!=n.dangerouslySetInnerHTML)throw Error(a(91));return I({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,n){var t=n.value;if(null==t){if(t=n.children,n=n.defaultValue,null!=t){if(null!=n)throw Error(a(92));if(ne(t)){
|
|
||||||
if(1<t.length)throw Error(a(93));t=t[0]}n=t}null==n&&(n=""),t=n}e._wrapperState={initialValue:H(t)}}function ae(e,n){var t=H(n.value),r=H(n.defaultValue);null!=t&&((t=""+t)!==e.value&&(e.value=t),null==n.defaultValue&&e.defaultValue!==t&&(e.defaultValue=t)),null!=r&&(e.defaultValue=""+r)}function ue(e){var n=e.textContent;n===e._wrapperState.initialValue&&""!==n&&null!==n&&(e.value=n)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(e,n){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(n):"http://www.w3.org/2000/svg"===e&&"foreignObject"===n?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,n){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=n;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=se.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,t,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,n)}))}:ce);function de(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=n)}e.textContent=n}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,n,t){return null==n||"boolean"==typeof n||""===n?"":t||"number"!=typeof n||0===n||pe.hasOwnProperty(e)&&pe[e]?(""+n).trim():n+"px"}function ge(e,n){for(var t in e=e.style,n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=he(t,n[t],r);"float"===t&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}Object.keys(pe).forEach((function(e){me.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),pe[n]=pe[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,n){if(n){if(ve[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!=typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!=typeof n.style)throw Error(a(62))}}function be(e,n){if(-1===e.indexOf("-"))return"string"==typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":
|
|
||||||
case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,xe=null,Ee=null;function Ce(e){if(e=bl(e)){if("function"!=typeof Se)throw Error(a(280));var n=e.stateNode;n&&(n=wl(n),Se(e.stateNode,e.type,n))}}function _e(e){xe?Ee?Ee.push(e):Ee=[e]:xe=e}function Pe(){if(xe){var e=xe,n=Ee;if(Ee=xe=null,Ce(e),n)for(e=0;e<n.length;e++)Ce(n[e])}}function Ne(e,n){return e(n)}function ze(){}var Te=!1;function Le(e,n,t){if(Te)return e(n,t);Te=!0;try{return Ne(e,n,t)}finally{Te=!1,(null!==xe||null!==Ee)&&(ze(),Pe())}}function Re(e,n){var t=e.stateNode;if(null===t)return null;var r=wl(t);if(null===r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(a(231,n,typeof t));return t}var Me=!1;if(c)try{var Fe={};Object.defineProperty(Fe,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Fe,Fe),window.removeEventListener("test",Fe,Fe)}catch(ce){Me=!1}function Oe(e,n,t,r,l,a,u,o,i){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var De=!1,Ie=null,Ue=!1,Ve=null,Ae={onError:function(e){De=!0,Ie=e}};function $e(e,n,t,r,l,a,u,o,i){De=!1,Ie=null,Oe.apply(Ae,arguments)}function je(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(4098&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function Be(e){if(13===e.tag){var n=e.memoizedState;if(null===n&&(null!==(e=e.alternate)&&(n=e.memoizedState)),null!==n)return n.dehydrated}return null}function He(e){if(je(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var n=e.alternate;if(!n){if(null===(n=je(e)))throw Error(a(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var u=l.alternate;if(null===u){if(null!==(r=l.return)){t=r;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===t)return He(l),e;if(u===r)return He(l),n;u=u.sibling}throw Error(a(188))}if(t.return!==r.return)t=l,r=u;else{for(var o=!1,i=l.child;i;){if(i===t){o=!0,t=l,r=u;break}if(i===r){o=!0,r=l,t=u;break}i=i.sibling}if(!o){for(i=u.child;i;){if(i===t){o=!0,t=u,r=l;break}if(i===r){o=!0,r=u,t=l;break}i=i.sibling}if(!o)throw Error(a(189))}}if(t.alternate!==r)throw Error(a(190))}if(3!==t.tag)throw Error(a(188));return t.stateNode.current===t?e:n}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=Qe(e);if(null!==n)return n;e=e.sibling}return null}
|
|
||||||
var qe=l.unstable_scheduleCallback,Ke=l.unstable_cancelCallback,Ye=l.unstable_shouldYield,Xe=l.unstable_requestPaint,Ge=l.unstable_now,Ze=l.unstable_getCurrentPriorityLevel,Je=l.unstable_ImmediatePriority,en=l.unstable_UserBlockingPriority,nn=l.unstable_NormalPriority,tn=l.unstable_LowPriority,rn=l.unstable_IdlePriority,ln=null,an=null;var un=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(on(e)/sn|0)|0},on=Math.log,sn=Math.LN2;var cn=64,fn=4194304;function dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=268435455&t;if(0!==u){var o=u&~l;0!==o?r=dn(o):0!==(a&=u)&&(r=dn(a))}else 0!==(u=t&~l)?r=dn(u):0!==a&&(r=dn(a));if(0===r)return 0;if(0!==n&&n!==r&&0==(n&l)&&((l=r&-r)>=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0<n;)l=1<<(t=31-un(n)),r|=e[t],n&=~l;return r}function mn(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function hn(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gn(){var e=cn;return 0==(4194240&(cn<<=1))&&(cn=64),e}function vn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function yn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-un(n)]=t}function bn(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-un(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var kn=0;function wn(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Sn,xn,En,Cn,_n,Pn=!1,Nn=[],zn=null,Tn=null,Ln=null,Rn=new Map,Mn=new Map,Fn=[],On="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Dn(e,n){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":Rn.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mn.delete(n.pointerId)}}function In(e,n,t,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},
|
|
||||||
null!==n&&(null!==(n=bl(n))&&xn(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,null!==l&&-1===n.indexOf(l)&&n.push(l),e)}function Un(e){var n=yl(e.target);if(null!==n){var t=je(n);if(null!==t)if(13===(n=t.tag)){if(null!==(n=Be(t)))return e.blockedOn=n,void _n(e.priority,(function(){En(t)}))}else if(3===n&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Vn(e){if(null!==e.blockedOn)return!1;for(var n=e.targetContainers;0<n.length;){var t=Xn(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(null!==t)return null!==(n=bl(t))&&xn(n),e.blockedOn=t,!1;var r=new(t=e.nativeEvent).constructor(t.type,t);ke=r,t.target.dispatchEvent(r),ke=null,n.shift()}return!0}function An(e,n,t){Vn(e)&&t.delete(n)}function $n(){Pn=!1,null!==zn&&Vn(zn)&&(zn=null),null!==Tn&&Vn(Tn)&&(Tn=null),null!==Ln&&Vn(Ln)&&(Ln=null),Rn.forEach(An),Mn.forEach(An)}function jn(e,n){e.blockedOn===n&&(e.blockedOn=null,Pn||(Pn=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,$n)))}function Bn(e){function n(n){return jn(n,e)}if(0<Nn.length){jn(Nn[0],e);for(var t=1;t<Nn.length;t++){var r=Nn[t];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==zn&&jn(zn,e),null!==Tn&&jn(Tn,e),null!==Ln&&jn(Ln,e),Rn.forEach(n),Mn.forEach(n),t=0;t<Fn.length;t++)(r=Fn[t]).blockedOn===e&&(r.blockedOn=null);for(;0<Fn.length&&null===(t=Fn[0]).blockedOn;)Un(t),null===t.blockedOn&&Fn.shift()}var Hn=k.ReactCurrentBatchConfig,Wn=!0;function Qn(e,n,t,r){var l=kn,a=Hn.transition;Hn.transition=null;try{kn=1,Kn(e,n,t,r)}finally{kn=l,Hn.transition=a}}function qn(e,n,t,r){var l=kn,a=Hn.transition;Hn.transition=null;try{kn=4,Kn(e,n,t,r)}finally{kn=l,Hn.transition=a}}function Kn(e,n,t,r){if(Wn){var l=Xn(e,n,t,r);if(null===l)Hr(e,n,r,Yn,t),Dn(e,r);else if(function(e,n,t,r,l){switch(n){case"focusin":return zn=In(zn,e,n,t,r,l),!0;case"dragenter":return Tn=In(Tn,e,n,t,r,l),!0;case"mouseover":return Ln=In(Ln,e,n,t,r,l),!0;case"pointerover":var a=l.pointerId;return Rn.set(a,In(Rn.get(a)||null,e,n,t,r,l)),!0;case"gotpointercapture":return a=l.pointerId,Mn.set(a,In(Mn.get(a)||null,e,n,t,r,l)),!0}return!1}(l,e,n,t,r))r.stopPropagation();else if(Dn(e,r),4&n&&-1<On.indexOf(e)){for(;null!==l;){var a=bl(l);if(null!==a&&Sn(a),null===(a=Xn(e,n,t,r))&&Hr(e,n,r,Yn,t),a===l)break;l=a}null!==l&&r.stopPropagation()}else Hr(e,n,r,null,t)}}var Yn=null;function Xn(e,n,t,r){if(Yn=null,null!==(e=yl(e=we(r))))if(null===(n=je(e)))e=null;else if(13===(t=n.tag)){if(null!==(e=Be(n)))return e;e=null}else if(3===t){if(n.stateNode.current.memoizedState.isDehydrated)return 3===n.tag?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Yn=e,null}function Gn(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":
|
|
||||||
case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case en:return 4;case nn:case tn:return 16;case rn:return 536870912;default:return 16}default:return 16}}var Zn=null,Jn=null,et=null;function nt(){if(et)return et;var e,n,t=Jn,r=t.length,l="value"in Zn?Zn.value:Zn.textContent,a=l.length;for(e=0;e<r&&t[e]===l[e];e++);var u=r-e;for(n=1;n<=u&&t[r-n]===l[a-n];n++);return et=l.slice(e,1<n?1-n:void 0)}function tt(e){var n=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===n&&(e=13):e=n,10===e&&(e=13),32<=e||13===e?e:0}function rt(){return!0}function lt(){return!1}function at(e){function n(n,t,r,l,a){for(var u in this._reactName=n,this._targetInst=r,this.type=t,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(u)&&(n=e[u],this[u]=n?n(l):l[u]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?rt:lt,this.isPropagationStopped=lt,this}return I(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rt)},persist:function(){},isPersistent:rt}),n}var ut,ot,it,st={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ct=at(st),ft=I({},st,{view:0,detail:0}),dt=at(ft),pt=I({},ft,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ct,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==it&&(it&&"mousemove"===e.type?(ut=e.screenX-it.screenX,ot=e.screenY-it.screenY):ot=ut=0,it=e),ut)},movementY:function(e){return"movementY"in e?e.movementY:ot}}),mt=at(pt),ht=at(I({},pt,{dataTransfer:0})),gt=at(I({},ft,{relatedTarget:0})),vt=at(I({},st,{animationName:0,elapsedTime:0,pseudoElement:0})),yt=I({},st,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bt=at(yt),kt=at(I({},st,{data:0})),wt={
|
|
||||||
Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},St={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Et(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):!!(e=xt[e])&&!!n[e]}function Ct(){return Et}var _t=I({},ft,{key:function(e){if(e.key){var n=wt[e.key]||e.key;if("Unidentified"!==n)return n}return"keypress"===e.type?13===(e=tt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?St[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ct,charCode:function(e){return"keypress"===e.type?tt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pt=at(_t),Nt=at(I({},pt,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zt=at(I({},ft,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ct})),Tt=at(I({},st,{propertyName:0,elapsedTime:0,pseudoElement:0})),Lt=I({},pt,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rt=at(Lt),Mt=[9,13,27,32],Ft=c&&"CompositionEvent"in window,Ot=null;c&&"documentMode"in document&&(Ot=document.documentMode);var Dt=c&&"TextEvent"in window&&!Ot,It=c&&(!Ft||Ot&&8<Ot&&11>=Ot),Ut=String.fromCharCode(32),Vt=!1;function At(e,n){switch(e){case"keyup":return-1!==Mt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $t(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var jt=!1;var Bt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ht(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===n?!!Bt[e.type]:"textarea"===n}function Wt(e,n,t,r){_e(r),0<(n=Qr(n,"onChange")).length&&(t=new ct("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Qt=null,qt=null;function Kt(e){Ur(e,0)}function Yt(e){if(q(kl(e)))return e}function Xt(e,n){if("change"===e)return n}var Gt=!1;if(c){var Zt;if(c){var Jt="oninput"in document;if(!Jt){var er=document.createElement("div")
|
|
||||||
;er.setAttribute("oninput","return;"),Jt="function"==typeof er.oninput}Zt=Jt}else Zt=!1;Gt=Zt&&(!document.documentMode||9<document.documentMode)}function nr(){Qt&&(Qt.detachEvent("onpropertychange",tr),qt=Qt=null)}function tr(e){if("value"===e.propertyName&&Yt(qt)){var n=[];Wt(n,qt,e,we(e)),Le(Kt,n)}}function rr(e,n,t){"focusin"===e?(nr(),qt=t,(Qt=n).attachEvent("onpropertychange",tr)):"focusout"===e&&nr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yt(qt)}function ar(e,n){if("click"===e)return Yt(n)}function ur(e,n){if("input"===e||"change"===e)return Yt(n)}var or="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n};function ir(e,n){if(or(e,n))return!0;if("object"!=typeof e||null===e||"object"!=typeof n||null===n)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!f.call(n,l)||!or(e[l],n[l]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,n){var t,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(t=e+r.textContent.length,e<=n&&t>=n)return{node:r,offset:n-e};e=t}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?fr(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}function dr(){for(var e=window,n=K();n instanceof e.HTMLIFrameElement;){try{var t="string"==typeof n.contentWindow.location.href}catch(e){t=!1}if(!t)break;n=K((e=n.contentWindow).document)}return n}function pr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function mr(e){var n=dr(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&fr(t.ownerDocument.documentElement,t)){if(null!==r&&pr(t))if(n=r.start,void 0===(e=r.end)&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if((e=(n=t.ownerDocument||document)&&n.defaultView||window).getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=cr(t,a);var u=cr(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&((n=n.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}for(n=[],e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof t.focus&&t.focus(),t=0;t<n.length;t++)(e=n[t]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function kr(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument
|
|
||||||
;br||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ir(yr,r)||(yr=r,0<(r=Qr(vr,"onSelect")).length&&(n=new ct("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=gr)))}function wr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},xr={},Er={};function Cr(e){if(xr[e])return xr[e];if(!Sr[e])return e;var n,t=Sr[e];for(n in t)if(t.hasOwnProperty(n)&&n in Er)return xr[e]=t[n];return e}c&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Cr("animationend"),Pr=Cr("animationiteration"),Nr=Cr("animationstart"),zr=Cr("transitionend"),Tr=new Map,Lr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,n){Tr.set(e,n),i(n,[e])}for(var Mr=0;Mr<Lr.length;Mr++){var Fr=Lr[Mr];Rr(Fr.toLowerCase(),"on"+(Fr[0].toUpperCase()+Fr.slice(1)))}Rr(_r,"onAnimationEnd"),Rr(Pr,"onAnimationIteration"),Rr(Nr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(zr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "))
|
|
||||||
;var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Ir(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,function(e,n,t,r,l,u,o,i,s){if($e.apply(this,arguments),De){if(!De)throw Error(a(198));var c=Ie;De=!1,Ie=null,Ue||(Ue=!0,Ve=c)}}(r,n,void 0,e),e.currentTarget=null}function Ur(e,n){n=0!=(4&n);for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var a=void 0;if(n)for(var u=r.length-1;0<=u;u--){var o=r[u],i=o.instance,s=o.currentTarget;if(o=o.listener,i!==a&&l.isPropagationStopped())break e;Ir(l,o,s),a=i}else for(u=0;u<r.length;u++){if(i=(o=r[u]).instance,s=o.currentTarget,o=o.listener,i!==a&&l.isPropagationStopped())break e;Ir(l,o,s),a=i}}}if(Ue)throw e=Ve,Ue=!1,Ve=null,e}function Vr(e,n){var t=n[hl];void 0===t&&(t=n[hl]=new Set);var r=e+"__bubble";t.has(r)||(Br(n,e,2,!1),t.add(r))}function Ar(e,n,t){var r=0;n&&(r|=4),Br(t,e,r,n)}var $r="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[$r]){e[$r]=!0,u.forEach((function(n){"selectionchange"!==n&&(Dr.has(n)||Ar(n,!1,e),Ar(n,!0,e))}));var n=9===e.nodeType?e:e.ownerDocument;null===n||n[$r]||(n[$r]=!0,Ar("selectionchange",!1,n))}}function Br(e,n,t,r){switch(Gn(n)){case 1:var l=Qn;break;case 4:l=qn;break;default:l=Kn}t=l.bind(null,n,t,e),l=void 0,!Me||"touchstart"!==n&&"touchmove"!==n&&"wheel"!==n||(l=!0),r?void 0!==l?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):void 0!==l?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function Hr(e,n,t,r,l){var a=r;if(0==(1&n)&&0==(2&n)&&null!==r)e:for(;;){if(null===r)return;var u=r.tag;if(3===u||4===u){var o=r.stateNode.containerInfo;if(o===l||8===o.nodeType&&o.parentNode===l)break;if(4===u)for(u=r.return;null!==u;){var i=u.tag;if((3===i||4===i)&&((i=u.stateNode.containerInfo)===l||8===i.nodeType&&i.parentNode===l))return;u=u.return}for(;null!==o;){if(null===(u=yl(o)))return;if(5===(i=u.tag)||6===i){r=a=u;continue e}o=o.parentNode}}r=r.return}Le((function(){var r=a,l=we(t),u=[];e:{var o=Tr.get(e);if(void 0!==o){var i=ct,s=e;switch(e){case"keypress":if(0===tt(t))break e;case"keydown":case"keyup":i=Pt;break;case"focusin":s="focus",i=gt;break;case"focusout":s="blur",i=gt;break;case"beforeblur":case"afterblur":i=gt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":i=mt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":i=ht;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":i=zt;break;case _r:case Pr:case Nr:i=vt;break;case zr:i=Tt;break;case"scroll":i=dt;break;case"wheel":i=Rt;break;case"copy":case"cut":case"paste":i=bt;break;case"gotpointercapture":case"lostpointercapture":
|
|
||||||
case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":i=Nt}var c=0!=(4&n),f=!c&&"scroll"===e,d=c?null!==o?o+"Capture":null:o;c=[];for(var p,m=r;null!==m;){var h=(p=m).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==d&&(null!=(h=Re(m,d))&&c.push(Wr(m,h,p)))),f)break;m=m.return}0<c.length&&(o=new i(o,s,null,t,l),u.push({event:o,listeners:c}))}}if(0==(7&n)){if(i="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||t===ke||!(s=t.relatedTarget||t.fromElement)||!yl(s)&&!s[ml])&&(i||o)&&(o=l.window===l?l:(o=l.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=r,null!==(s=(s=t.relatedTarget||t.toElement)?yl(s):null)&&(s!==(f=je(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(i=null,s=r),i!==s)){if(c=mt,h="onMouseLeave",d="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nt,h="onPointerLeave",d="onPointerEnter",m="pointer"),f=null==i?o:kl(i),p=null==s?o:kl(s),(o=new c(h,m+"leave",i,t,l)).target=f,o.relatedTarget=p,h=null,yl(l)===r&&((c=new c(d,m+"enter",s,t,l)).target=p,c.relatedTarget=f,h=c),f=h,i&&s)e:{for(d=s,m=0,p=c=i;p;p=qr(p))m++;for(p=0,h=d;h;h=qr(h))p++;for(;0<m-p;)c=qr(c),m--;for(;0<p-m;)d=qr(d),p--;for(;m--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==i&&Kr(u,o,i,c,!1),null!==s&&null!==f&&Kr(u,f,s,c,!0)}if("select"===(i=(o=r?kl(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===i&&"file"===o.type)var g=Xt;else if(Ht(o))if(Gt)g=ur;else{g=lr;var v=rr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=ar);switch(g&&(g=g(e,r))?Wt(u,g,t,l):(v&&v(e,o,r),"focusout"===e&&(v=o._wrapperState)&&v.controlled&&"number"===o.type&&ee(o,"number",o.value)),v=r?kl(r):window,e){case"focusin":(Ht(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,kr(u,t,l);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":kr(u,t,l)}var y;if(Ft)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else jt?At(e,t)&&(b="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(b="onCompositionStart");b&&(It&&"ko"!==t.locale&&(jt||"onCompositionStart"!==b?"onCompositionEnd"===b&&jt&&(y=nt()):(Jn="value"in(Zn=l)?Zn.value:Zn.textContent,jt=!0)),0<(v=Qr(r,b)).length&&(b=new kt(b,e,null,t,l),u.push({event:b,listeners:v}),y?b.data=y:null!==(y=$t(t))&&(b.data=y))),(y=Dt?function(e,n){switch(e){case"compositionend":return $t(n);case"keypress":return 32!==n.which?null:(Vt=!0,Ut);case"textInput":return(e=n.data)===Ut&&Vt?null:e;default:return null}}(e,t):function(e,n){if(jt)return"compositionend"===e||!Ft&&At(e,n)?(e=nt(),et=Jn=Zn=null,jt=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char
|
|
||||||
;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return It&&"ko"!==n.locale?null:n.data}}(e,t))&&(0<(r=Qr(r,"onBeforeInput")).length&&(l=new kt("onBeforeInput","beforeinput",null,t,l),u.push({event:l,listeners:r}),l.data=y))}Ur(u,n)}))}function Wr(e,n,t){return{instance:e,listener:n,currentTarget:t}}function Qr(e,n){for(var t=n+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Re(e,t))&&r.unshift(Wr(e,a,l)),null!=(a=Re(e,n))&&r.push(Wr(e,a,l))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,n,t,r,l){for(var a=n._reactName,u=[];null!==t&&t!==r;){var o=t,i=o.alternate,s=o.stateNode;if(null!==i&&i===r)break;5===o.tag&&null!==s&&(o=s,l?null!=(i=Re(t,a))&&u.unshift(Wr(t,i,o)):l||null!=(i=Re(t,a))&&u.push(Wr(t,i,o))),t=t.return}0!==u.length&&e.push({event:n,listeners:u})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Zr(e,n,t){if(n=Gr(n),Gr(e)!==n&&t)throw Error(a(425))}function Jr(){}var el=null,nl=null;function tl(e,n){return"textarea"===e||"noscript"===e||"string"==typeof n.children||"number"==typeof n.children||"object"==typeof n.dangerouslySetInnerHTML&&null!==n.dangerouslySetInnerHTML&&null!=n.dangerouslySetInnerHTML.__html}var rl="function"==typeof setTimeout?setTimeout:void 0,ll="function"==typeof clearTimeout?clearTimeout:void 0,al="function"==typeof Promise?Promise:void 0,ul="function"==typeof queueMicrotask?queueMicrotask:void 0!==al?function(e){return al.resolve(null).then(e).catch(ol)}:rl;function ol(e){setTimeout((function(){throw e}))}function il(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&8===l.nodeType)if("/$"===(t=l.data)){if(0===r)return e.removeChild(l),void Bn(n);r--}else"$"!==t&&"$?"!==t&&"$!"!==t||r++;t=l}while(t);Bn(n)}function sl(e){for(;null!=e;e=e.nextSibling){var n=e.nodeType;if(1===n||3===n)break;if(8===n){if("$"===(n=e.data)||"$!"===n||"$?"===n)break;if("/$"===n)return null}}return e}function cl(e){e=e.previousSibling;for(var n=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t){if(0===n)return e;n--}else"/$"===t&&n++}e=e.previousSibling}return null}var fl=Math.random().toString(36).slice(2),dl="__reactFiber$"+fl,pl="__reactProps$"+fl,ml="__reactContainer$"+fl,hl="__reactEvents$"+fl,gl="__reactListeners$"+fl,vl="__reactHandles$"+fl;function yl(e){var n=e[dl];if(n)return n;for(var t=e.parentNode;t;){if(n=t[ml]||t[dl]){if(t=n.alternate,null!==n.child||null!==t&&null!==t.child)for(e=cl(e);null!==e;){if(t=e[dl])return t;e=cl(e)}return n}t=(e=t).parentNode}return null}function bl(e){return!(e=e[dl]||e[ml])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function kl(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wl(e){return e[pl]||null}var Sl=[],xl=-1;function El(e){return{current:e}}function Cl(e){0>xl||(e.current=Sl[xl],Sl[xl]=null,xl--)}function _l(e,n){xl++,Sl[xl]=e.current,e.current=n}
|
|
||||||
var Pl={},Nl=El(Pl),zl=El(!1),Tl=Pl;function Ll(e,n){var t=e.type.contextTypes;if(!t)return Pl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function Rl(e){return null!=(e=e.childContextTypes)}function Ml(){Cl(zl),Cl(Nl)}function Fl(e,n,t){if(Nl.current!==Pl)throw Error(a(168));_l(Nl,n),_l(zl,t)}function Ol(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,"function"!=typeof r.getChildContext)return t;for(var l in r=r.getChildContext())if(!(l in n))throw Error(a(108,B(e)||"Unknown",l));return I({},t,r)}function Dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pl,Tl=Nl.current,_l(Nl,e),_l(zl,zl.current),!0}function Il(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=Ol(e,n,Tl),r.__reactInternalMemoizedMergedChildContext=e,Cl(zl),Cl(Nl),_l(Nl,e)):Cl(zl),_l(zl,t)}var Ul=null,Vl=!1,Al=!1;function $l(e){null===Ul?Ul=[e]:Ul.push(e)}function jl(){if(!Al&&null!==Ul){Al=!0;var e=0,n=kn;try{var t=Ul;for(kn=1;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}Ul=null,Vl=!1}catch(n){throw null!==Ul&&(Ul=Ul.slice(e+1)),qe(Je,jl),n}finally{kn=n,Al=!1}}return null}var Bl=[],Hl=0,Wl=null,Ql=0,ql=[],Kl=0,Yl=null,Xl=1,Gl="";function Zl(e,n){Bl[Hl++]=Ql,Bl[Hl++]=Wl,Wl=e,Ql=n}function Jl(e,n,t){ql[Kl++]=Xl,ql[Kl++]=Gl,ql[Kl++]=Yl,Yl=e;var r=Xl;e=Gl;var l=32-un(r)-1;r&=~(1<<l),t+=1;var a=32-un(n)+l;if(30<a){var u=l-l%5;a=(r&(1<<u)-1).toString(32),r>>=u,l-=u,Xl=1<<32-un(n)+l|t<<l|r,Gl=a+e}else Xl=1<<a|t<<l|r,Gl=e}function ea(e){null!==e.return&&(Zl(e,1),Jl(e,1,0))}function na(e){for(;e===Wl;)Wl=Bl[--Hl],Bl[Hl]=null,Ql=Bl[--Hl],Bl[Hl]=null;for(;e===Yl;)Yl=ql[--Kl],ql[Kl]=null,Gl=ql[--Kl],ql[Kl]=null,Xl=ql[--Kl],ql[Kl]=null}var ta=null,ra=null,la=!1,aa=null;function ua(e,n){var t=Ls(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)}function oa(e,n){switch(e.tag){case 5:var t=e.type;return null!==(n=1!==n.nodeType||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n)&&(e.stateNode=n,ta=e,ra=sl(n.firstChild),!0);case 6:return null!==(n=""===e.pendingProps||3!==n.nodeType?null:n)&&(e.stateNode=n,ta=e,ra=null,!0);case 13:return null!==(n=8!==n.nodeType?null:n)&&(t=null!==Yl?{id:Xl,overflow:Gl}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},(t=Ls(18,null,null,0)).stateNode=n,t.return=e,e.child=t,ta=e,ra=null,!0);default:return!1}}function ia(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function sa(e){if(la){var n=ra;if(n){var t=n;if(!oa(e,n)){if(ia(e))throw Error(a(418));n=sl(t.nextSibling);var r=ta;n&&oa(e,n)?ua(r,t):(e.flags=-4097&e.flags|2,la=!1,ta=e)}}else{if(ia(e))throw Error(a(418));e.flags=-4097&e.flags|2,la=!1,ta=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ta=e}function fa(e){if(e!==ta)return!1;if(!la)return ca(e),la=!0,!1;var n
|
|
||||||
;if((n=3!==e.tag)&&!(n=5!==e.tag)&&(n="head"!==(n=e.type)&&"body"!==n&&!tl(e.type,e.memoizedProps)),n&&(n=ra)){if(ia(e))throw da(),Error(a(418));for(;n;)ua(e,n),n=sl(n.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t){if(0===n){ra=sl(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++}e=e.nextSibling}ra=null}}else ra=ta?sl(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=sl(e.nextSibling)}function pa(){ra=ta=null,la=!1}function ma(e){null===aa?aa=[e]:aa.push(e)}var ha=k.ReactCurrentBatchConfig;function ga(e,n){if(e&&e.defaultProps){for(var t in n=I({},n),e=e.defaultProps)void 0===n[t]&&(n[t]=e[t]);return n}return n}var va=El(null),ya=null,ba=null,ka=null;function wa(){ka=ba=ya=null}function Sa(e){var n=va.current;Cl(va),e._currentValue=n}function xa(e,n,t){for(;null!==e;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,null!==r&&(r.childLanes|=n)):null!==r&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Ea(e,n){ya=e,ka=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&n)&&(ko=!0),e.firstContext=null)}function Ca(e){var n=e._currentValue;if(ka!==e)if(e={context:e,memoizedValue:n,next:null},null===ba){if(null===ya)throw Error(a(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return n}var _a=null;function Pa(e){null===_a?_a=[e]:_a.push(e)}function Na(e,n,t,r){var l=n.interleaved;return null===l?(t.next=t,Pa(n)):(t.next=l.next,l.next=t),n.interleaved=t,za(e,r)}function za(e,n){e.lanes|=n;var t=e.alternate;for(null!==t&&(t.lanes|=n),t=e,e=e.return;null!==e;)e.childLanes|=n,null!==(t=e.alternate)&&(t.childLanes|=n),t=e,e=e.return;return 3===t.tag?t.stateNode:null}var Ta=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ra(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Fa(e,n,t){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Ni)){var l=r.pending;return null===l?n.next=n:(n.next=l.next,l.next=n),r.pending=n,za(e,t)}return null===(l=r.interleaved)?(n.next=n,Pa(r)):(n.next=l.next,l.next=n),r.interleaved=n,za(e,t)}function Oa(e,n,t){if(null!==(n=n.updateQueue)&&(n=n.shared,0!=(4194240&t))){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}function Da(e,n){var t=e.updateQueue,r=e.alternate;if(null!==r&&t===(r=r.updateQueue)){var l=null,a=null;if(null!==(t=t.firstBaseUpdate)){do{var u={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};null===a?l=a=u:a=a.next=u,t=t.next}while(null!==t);null===a?l=a=n:a=a.next=n}else l=a=n;return t={baseState:r.baseState,firstBaseUpdate:l,
|
|
||||||
lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=t)}null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Ia(e,n,t,r){var l=e.updateQueue;Ta=!1;var a=l.firstBaseUpdate,u=l.lastBaseUpdate,o=l.shared.pending;if(null!==o){l.shared.pending=null;var i=o,s=i.next;i.next=null,null===u?a=s:u.next=s,u=i;var c=e.alternate;null!==c&&((o=(c=c.updateQueue).lastBaseUpdate)!==u&&(null===o?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=i))}if(null!==a){var f=l.baseState;for(u=0,c=s=i=null,o=a;;){var d=o.lane,p=o.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,h=o;switch(d=n,p=t,h.tag){case 1:if("function"==typeof(m=h.payload)){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=h.payload)?m.call(p,f,d):m))break e;f=I({},f,d);break e;case 2:Ta=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[o]:d.push(o))}else p={eventTime:p,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===c?(s=c=p,i=f):c=c.next=p,u|=d;if(null===(o=o.next)){if(null===(o=l.shared.pending))break;o=(d=o).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(i=f),l.baseState=i,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(n=l.shared.interleaved)){l=n;do{u|=l.lane,l=l.next}while(l!==n)}else null===a&&(l.shared.lanes=0);Di|=u,e.lanes=u,e.memoizedState=f}}function Ua(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(null!==l){if(r.callback=null,r=t,"function"!=typeof l)throw Error(a(191,l));l.call(r)}}}var Va=(new r.Component).refs;function Aa(e,n,t,r){t=null==(t=t(r,n=e.memoizedState))?n:I({},n,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var $a={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=es(),l=ns(e),a=Ma(r,l);a.payload=n,null!=t&&(a.callback=t),null!==(n=Fa(e,a,l))&&(ts(n,e,l,r),Oa(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=es(),l=ns(e),a=Ma(r,l);a.tag=1,a.payload=n,null!=t&&(a.callback=t),null!==(n=Fa(e,a,l))&&(ts(n,e,l,r),Oa(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=es(),r=ns(e),l=Ma(t,r);l.tag=2,null!=n&&(l.callback=n),null!==(n=Fa(e,l,r))&&(ts(n,e,r,t),Oa(n,e,r))}};function ja(e,n,t,r,l,a,u){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,u):!n.prototype||!n.prototype.isPureReactComponent||(!ir(t,r)||!ir(l,a))}function Ba(e,n,t){var r=!1,l=Pl,a=n.contextType;return"object"==typeof a&&null!==a?a=Ca(a):(l=Rl(n)?Tl:Nl.current,a=(r=null!=(r=n.contextTypes))?Ll(e,l):Pl),n=new n(t,a),e.memoizedState=null!==n.state&&void 0!==n.state?n.state:null,n.updater=$a,e.stateNode=n,n._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),n}function Ha(e,n,t,r){e=n.state,
|
|
||||||
"function"==typeof n.componentWillReceiveProps&&n.componentWillReceiveProps(t,r),"function"==typeof n.UNSAFE_componentWillReceiveProps&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&$a.enqueueReplaceState(n,n.state,null)}function Wa(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs=Va,La(e);var a=n.contextType;"object"==typeof a&&null!==a?l.context=Ca(a):(a=Rl(n)?Tl:Nl.current,l.context=Ll(e,a)),l.state=e.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(Aa(e,n,a,t),l.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(n=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),n!==l.state&&$a.enqueueReplaceState(l,l.state,null),Ia(e,t,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function Qa(e,n,t){if(null!==(e=t.ref)&&"function"!=typeof e&&"object"!=typeof e){if(t._owner){if(t=t._owner){if(1!==t.tag)throw Error(a(309));var r=t.stateNode}if(!r)throw Error(a(147,e));var l=r,u=""+e;return null!==n&&null!==n.ref&&"function"==typeof n.ref&&n.ref._stringRef===u?n.ref:(n=function(e){var n=l.refs;n===Va&&(n=l.refs={}),null===e?delete n[u]:n[u]=e},n._stringRef=u,n)}if("string"!=typeof e)throw Error(a(284));if(!t._owner)throw Error(a(290,e))}return e}function qa(e,n){throw e=Object.prototype.toString.call(n),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Ka(e){return(0,e._init)(e._payload)}function Ya(e){function n(n,t){if(e){var r=n.deletions;null===r?(n.deletions=[t],n.flags|=16):r.push(t)}}function t(t,r){if(!e)return null;for(;null!==r;)n(t,r),r=r.sibling;return null}function r(e,n){for(e=new Map;null!==n;)null!==n.key?e.set(n.key,n):e.set(n.index,n),n=n.sibling;return e}function l(e,n){return(e=Ms(e,n)).index=0,e.sibling=null,e}function u(n,t,r){return n.index=r,e?null!==(r=n.alternate)?(r=r.index)<t?(n.flags|=2,t):r:(n.flags|=2,t):(n.flags|=1048576,t)}function o(n){return e&&null===n.alternate&&(n.flags|=2),n}function i(e,n,t,r){return null===n||6!==n.tag?((n=Is(t,e.mode,r)).return=e,n):((n=l(n,t)).return=e,n)}function s(e,n,t,r){var a=t.type;return a===x?f(e,n,t.props.children,r,t.key):null!==n&&(n.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===R&&Ka(a)===n.type)?((r=l(n,t.props)).ref=Qa(e,n,t),r.return=e,r):((r=Fs(t.type,t.key,t.props,null,e.mode,r)).ref=Qa(e,n,t),r.return=e,r)}function c(e,n,t,r){return null===n||4!==n.tag||n.stateNode.containerInfo!==t.containerInfo||n.stateNode.implementation!==t.implementation?((n=Us(t,e.mode,r)).return=e,n):((n=l(n,t.children||[])).return=e,n)}function f(e,n,t,r,a){return null===n||7!==n.tag?((n=Os(t,e.mode,r,a)).return=e,n):((n=l(n,t)).return=e,n)}function d(e,n,t){if("string"==typeof n&&""!==n||"number"==typeof n)return(n=Is(""+n,e.mode,t)).return=e,n;if("object"==typeof n&&null!==n){
|
|
||||||
switch(n.$$typeof){case w:return(t=Fs(n.type,n.key,n.props,null,e.mode,t)).ref=Qa(e,null,n),t.return=e,t;case S:return(n=Us(n,e.mode,t)).return=e,n;case R:return d(e,(0,n._init)(n._payload),t)}if(ne(n)||O(n))return(n=Os(n,e.mode,t,null)).return=e,n;qa(e,n)}return null}function p(e,n,t,r){var l=null!==n?n.key:null;if("string"==typeof t&&""!==t||"number"==typeof t)return null!==l?null:i(e,n,""+t,r);if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return t.key===l?s(e,n,t,r):null;case S:return t.key===l?c(e,n,t,r):null;case R:return p(e,n,(l=t._init)(t._payload),r)}if(ne(t)||O(t))return null!==l?null:f(e,n,t,r,null);qa(e,t)}return null}function m(e,n,t,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return i(n,e=e.get(t)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return s(n,e=e.get(null===r.key?t:r.key)||null,r,l);case S:return c(n,e=e.get(null===r.key?t:r.key)||null,r,l);case R:return m(e,n,t,(0,r._init)(r._payload),l)}if(ne(r)||O(r))return f(n,e=e.get(t)||null,r,l,null);qa(n,r)}return null}function h(l,a,o,i){for(var s=null,c=null,f=a,h=a=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],i);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f),a=u(v,a,h),null===c?s=v:c.sibling=v,c=v,f=g}if(h===o.length)return t(l,f),la&&Zl(l,h),s;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],i))&&(a=u(f,a,h),null===c?s=f:c.sibling=f,c=f);return la&&Zl(l,h),s}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],i))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),a=u(g,a,h),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return n(l,e)})),la&&Zl(l,h),s}function g(l,o,i,s){var c=O(i);if("function"!=typeof c)throw Error(a(150));if(null==(i=c.call(i)))throw Error(a(151));for(var f=c=null,h=o,g=o=0,v=null,y=i.next();null!==h&&!y.done;g++,y=i.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h),o=u(b,o,g),null===f?c=b:f.sibling=b,f=b,h=v}if(y.done)return t(l,h),la&&Zl(l,g),c;if(null===h){for(;!y.done;g++,y=i.next())null!==(y=d(l,y.value,s))&&(o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return la&&Zl(l,g),c}for(h=r(l,h);!y.done;g++,y=i.next())null!==(y=m(h,l,g,y.value,s))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=u(y,o,g),null===f?c=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return n(l,e)})),la&&Zl(l,g),c}return function e(r,a,u,i){if("object"==typeof u&&null!==u&&u.type===x&&null===u.key&&(u=u.props.children),"object"==typeof u&&null!==u){switch(u.$$typeof){case w:e:{for(var s=u.key,c=a;null!==c;){if(c.key===s){if((s=u.type)===x){if(7===c.tag){t(r,c.sibling),(a=l(c,u.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===R&&Ka(s)===c.type){t(r,c.sibling),(a=l(c,u.props)).ref=Qa(r,c,u),a.return=r,r=a;break e}t(r,c);break}n(r,c),c=c.sibling}u.type===x?((a=Os(u.props.children,r.mode,i,u.key)).return=r,r=a):((i=Fs(u.type,u.key,u.props,null,r.mode,i)).ref=Qa(r,a,u),
|
|
||||||
i.return=r,r=i)}return o(r);case S:e:{for(c=u.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===u.containerInfo&&a.stateNode.implementation===u.implementation){t(r,a.sibling),(a=l(a,u.children||[])).return=r,r=a;break e}t(r,a);break}n(r,a),a=a.sibling}(a=Us(u,r.mode,i)).return=r,r=a}return o(r);case R:return e(r,a,(c=u._init)(u._payload),i)}if(ne(u))return h(r,a,u,i);if(O(u))return g(r,a,u,i);qa(r,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==a&&6===a.tag?(t(r,a.sibling),(a=l(a,u)).return=r,r=a):(t(r,a),(a=Is(u,r.mode,i)).return=r,r=a),o(r)):t(r,a)}}var Xa=Ya(!0),Ga=Ya(!1),Za={},Ja=El(Za),eu=El(Za),nu=El(Za);function tu(e){if(e===Za)throw Error(a(174));return e}function ru(e,n){switch(_l(nu,n),_l(eu,e),_l(Ja,Za),e=n.nodeType){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ie(null,"");break;default:n=ie(n=(e=8===e?n.parentNode:n).namespaceURI||null,e=e.tagName)}Cl(Ja),_l(Ja,n)}function lu(){Cl(Ja),Cl(eu),Cl(nu)}function au(e){tu(nu.current);var n=tu(Ja.current),t=ie(n,e.type);n!==t&&(_l(eu,e),_l(Ja,t))}function uu(e){eu.current===e&&(Cl(Ja),Cl(eu))}var ou=El(0);function iu(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var su=[];function cu(){for(var e=0;e<su.length;e++)su[e]._workInProgressVersionPrimary=null;su.length=0}var fu=k.ReactCurrentDispatcher,du=k.ReactCurrentBatchConfig,pu=0,mu=null,hu=null,gu=null,vu=!1,yu=!1,bu=0,ku=0;function wu(){throw Error(a(321))}function Su(e,n){if(null===n)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!or(e[t],n[t]))return!1;return!0}function xu(e,n,t,r,l,u){if(pu=u,mu=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,fu.current=null===e||null===e.memoizedState?uo:oo,e=t(r,l),yu){u=0;do{if(yu=!1,bu=0,25<=u)throw Error(a(301));u+=1,gu=hu=null,n.updateQueue=null,fu.current=io,e=t(r,l)}while(yu)}if(fu.current=ao,n=null!==hu&&null!==hu.next,pu=0,gu=hu=mu=null,vu=!1,n)throw Error(a(300));return e}function Eu(){var e=0!==bu;return bu=0,e}function Cu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gu?mu.memoizedState=gu=e:gu=gu.next=e,gu}function _u(){if(null===hu){var e=mu.alternate;e=null!==e?e.memoizedState:null}else e=hu.next;var n=null===gu?mu.memoizedState:gu.next;if(null!==n)gu=n,hu=e;else{if(null===e)throw Error(a(310));e={memoizedState:(hu=e).memoizedState,baseState:hu.baseState,baseQueue:hu.baseQueue,queue:hu.queue,next:null},null===gu?mu.memoizedState=gu=e:gu=gu.next=e}return gu}function Pu(e,n){return"function"==typeof n?n(e):n}function Nu(e){var n=_u(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=hu,l=r.baseQueue,u=t.pending;if(null!==u){if(null!==l){var o=l.next
|
|
||||||
;l.next=u.next,u.next=o}r.baseQueue=l=u,t.pending=null}if(null!==l){u=l.next,r=r.baseState;var i=o=null,s=null,c=u;do{var f=c.lane;if((pu&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(i=s=d,o=r):s=s.next=d,mu.lanes|=f,Di|=f}c=c.next}while(null!==c&&c!==u);null===s?o=r:s.next=i,or(r,n.memoizedState)||(ko=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=s,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{u=l.lane,mu.lanes|=u,Di|=u,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function zu(e){var n=_u(),t=n.queue;if(null===t)throw Error(a(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,u=n.memoizedState;if(null!==l){t.pending=null;var o=l=l.next;do{u=e(u,o.action),o=o.next}while(o!==l);or(u,n.memoizedState)||(ko=!0),n.memoizedState=u,null===n.baseQueue&&(n.baseState=u),t.lastRenderedState=u}return[u,r]}function Tu(){}function Lu(e,n){var t=mu,r=_u(),l=n(),u=!or(r.memoizedState,l);if(u&&(r.memoizedState=l,ko=!0),r=r.queue,Bu(Fu.bind(null,t,r,e),[e]),r.getSnapshot!==n||u||null!==gu&&1&gu.memoizedState.tag){if(t.flags|=2048,Uu(9,Mu.bind(null,t,r,l,n),void 0,null),null===zi)throw Error(a(349));0!=(30&pu)||Ru(t,n,l)}return l}function Ru(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},null===(n=mu.updateQueue)?(n={lastEffect:null,stores:null},mu.updateQueue=n,n.stores=[e]):null===(t=n.stores)?n.stores=[e]:t.push(e)}function Mu(e,n,t,r){n.value=t,n.getSnapshot=r,Ou(n)&&Du(e)}function Fu(e,n,t){return t((function(){Ou(n)&&Du(e)}))}function Ou(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!or(e,t)}catch(e){return!0}}function Du(e){var n=za(e,1);null!==n&&ts(n,e,1,-1)}function Iu(e){var n=Cu();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pu,lastRenderedState:e},n.queue=e,e=e.dispatch=no.bind(null,mu,e),[n.memoizedState,e]}function Uu(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=mu.updateQueue)?(n={lastEffect:null,stores:null},mu.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Vu(){return _u().memoizedState}function Au(e,n,t,r){var l=Cu();mu.flags|=e,l.memoizedState=Uu(1|n,t,void 0,void 0===r?null:r)}function $u(e,n,t,r){var l=_u();r=void 0===r?null:r;var a=void 0;if(null!==hu){var u=hu.memoizedState;if(a=u.destroy,null!==r&&Su(r,u.deps))return void(l.memoizedState=Uu(n,t,a,r))}mu.flags|=e,l.memoizedState=Uu(1|n,t,a,r)}function ju(e,n){return Au(8390656,8,e,n)}function Bu(e,n){return $u(2048,8,e,n)}function Hu(e,n){return $u(4,2,e,n)}function Wu(e,n){return $u(4,4,e,n)}function Qu(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!=n?(e=e(),n.current=e,function(){n.current=null}):void 0}function qu(e,n,t){
|
|
||||||
return t=null!=t?t.concat([e]):null,$u(4,4,Qu.bind(null,n,e),t)}function Ku(){}function Yu(e,n){var t=_u();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Su(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Xu(e,n){var t=_u();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Su(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Gu(e,n,t){return 0==(21&pu)?(e.baseState&&(e.baseState=!1,ko=!0),e.memoizedState=t):(or(t,n)||(t=gn(),mu.lanes|=t,Di|=t,e.baseState=!0),n)}function Zu(e,n){var t=kn;kn=0!==t&&4>t?t:4,e(!0);var r=du.transition;du.transition={};try{e(!1),n()}finally{kn=t,du.transition=r}}function Ju(){return _u().memoizedState}function eo(e,n,t){var r=ns(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},to(e))ro(n,t);else if(null!==(t=Na(e,n,t,r))){ts(t,e,r,es()),lo(t,n,r)}}function no(e,n,t){var r=ns(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(to(e))ro(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=n.lastRenderedReducer))try{var u=n.lastRenderedState,o=a(u,t);if(l.hasEagerState=!0,l.eagerState=o,or(o,u)){var i=n.interleaved;return null===i?(l.next=l,Pa(n)):(l.next=i.next,i.next=l),void(n.interleaved=l)}}catch(e){}null!==(t=Na(e,n,l,r))&&(ts(t,e,r,l=es()),lo(t,n,r))}}function to(e){var n=e.alternate;return e===mu||null!==n&&n===mu}function ro(e,n){yu=vu=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function lo(e,n,t){if(0!=(4194240&t)){var r=n.lanes;t|=r&=e.pendingLanes,n.lanes=t,bn(e,t)}}var ao={readContext:Ca,useCallback:wu,useContext:wu,useEffect:wu,useImperativeHandle:wu,useInsertionEffect:wu,useLayoutEffect:wu,useMemo:wu,useReducer:wu,useRef:wu,useState:wu,useDebugValue:wu,useDeferredValue:wu,useTransition:wu,useMutableSource:wu,useSyncExternalStore:wu,useId:wu,unstable_isNewReconciler:!1},uo={readContext:Ca,useCallback:function(e,n){return Cu().memoizedState=[e,void 0===n?null:n],e},useContext:Ca,useEffect:ju,useImperativeHandle:function(e,n,t){return t=null!=t?t.concat([e]):null,Au(4194308,4,Qu.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Au(4194308,4,e,n)},useInsertionEffect:function(e,n){return Au(4,2,e,n)},useMemo:function(e,n){var t=Cu();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Cu();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=eo.bind(null,mu,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cu().memoizedState=e},useState:Iu,useDebugValue:Ku,useDeferredValue:function(e){return Cu().memoizedState=e},useTransition:function(){var e=Iu(!1),n=e[0];return e=Zu.bind(null,e[1]),Cu().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=mu,l=Cu();if(la){if(void 0===t)throw Error(a(407));t=t()}else{if(t=n(),null===zi)throw Error(a(349));0!=(30&pu)||Ru(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};return l.queue=u,
|
|
||||||
ju(Fu.bind(null,r,u,e),[e]),r.flags|=2048,Uu(9,Mu.bind(null,r,u,t,n),void 0,null),t},useId:function(){var e=Cu(),n=zi.identifierPrefix;if(la){var t=Gl;n=":"+n+"R"+(t=(Xl&~(1<<32-un(Xl)-1)).toString(32)+t),0<(t=bu++)&&(n+="H"+t.toString(32)),n+=":"}else n=":"+n+"r"+(t=ku++).toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},oo={readContext:Ca,useCallback:Yu,useContext:Ca,useEffect:Bu,useImperativeHandle:qu,useInsertionEffect:Hu,useLayoutEffect:Wu,useMemo:Xu,useReducer:Nu,useRef:Vu,useState:function(){return Nu(Pu)},useDebugValue:Ku,useDeferredValue:function(e){return Gu(_u(),hu.memoizedState,e)},useTransition:function(){return[Nu(Pu)[0],_u().memoizedState]},useMutableSource:Tu,useSyncExternalStore:Lu,useId:Ju,unstable_isNewReconciler:!1},io={readContext:Ca,useCallback:Yu,useContext:Ca,useEffect:Bu,useImperativeHandle:qu,useInsertionEffect:Hu,useLayoutEffect:Wu,useMemo:Xu,useReducer:zu,useRef:Vu,useState:function(){return zu(Pu)},useDebugValue:Ku,useDeferredValue:function(e){var n=_u();return null===hu?n.memoizedState=e:Gu(n,hu.memoizedState,e)},useTransition:function(){return[zu(Pu)[0],_u().memoizedState]},useMutableSource:Tu,useSyncExternalStore:Lu,useId:Ju,unstable_isNewReconciler:!1};function so(e,n){try{var t="",r=n;do{t+=$(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l,digest:null}}function co(e,n,t){return{value:e,source:null,stack:null!=t?t:null,digest:null!=n?n:null}}function fo(e,n){try{console.error(n.value)}catch(e){setTimeout((function(){throw e}))}}var po="function"==typeof WeakMap?WeakMap:Map;function mo(e,n,t){(t=Ma(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Hi||(Hi=!0,Wi=r),fo(0,n)},t}function ho(e,n,t){(t=Ma(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){fo(0,n)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){fo(0,n),"function"!=typeof r&&(null===Qi?Qi=new Set([this]):Qi.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})}),t}function go(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new po;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Cs.bind(null,e,n,t),n.then(e,e))}function vo(e){do{var n;if((n=13===e.tag)&&(n=null===(n=e.memoizedState)||null!==n.dehydrated),n)return e;e=e.return}while(null!==e);return null}function yo(e,n,t,r,l){return 0==(1&e.mode)?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,1===t.tag&&(null===t.alternate?t.tag=17:((n=Ma(-1,1)).tag=2,Fa(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var bo=k.ReactCurrentOwner,ko=!1;function wo(e,n,t,r){n.child=null===e?Ga(n,null,t,r):Xa(n,e.child,t,r)}function So(e,n,t,r,l){t=t.render;var a=n.ref;return Ea(n,l),r=xu(e,n,t,r,a,l),t=Eu(),null===e||ko?(la&&t&&ea(n),n.flags|=1,wo(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,
|
|
||||||
e.lanes&=~l,Ho(e,n,l))}function xo(e,n,t,r,l){if(null===e){var a=t.type;return"function"!=typeof a||Rs(a)||void 0!==a.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Fs(t.type,null,r,n,n.mode,l)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=a,Eo(e,n,a,r,l))}if(a=e.child,0==(e.lanes&l)){var u=a.memoizedProps;if((t=null!==(t=t.compare)?t:ir)(u,r)&&e.ref===n.ref)return Ho(e,n,l)}return n.flags|=1,(e=Ms(a,r)).ref=n.ref,e.return=n,n.child=e}function Eo(e,n,t,r,l){if(null!==e){var a=e.memoizedProps;if(ir(a,r)&&e.ref===n.ref){if(ko=!1,n.pendingProps=r=a,0==(e.lanes&l))return n.lanes=e.lanes,Ho(e,n,l);0!=(131072&e.flags)&&(ko=!0)}}return Po(e,n,t,r,l)}function Co(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},_l(Mi,Ri),Ri|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,_l(Mi,Ri),Ri|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:t,_l(Mi,Ri),Ri|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,_l(Mi,Ri),Ri|=r;return wo(e,n,l,t),n.child}function _o(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Po(e,n,t,r,l){var a=Rl(t)?Tl:Nl.current;return a=Ll(n,a),Ea(n,l),t=xu(e,n,t,r,a,l),r=Eu(),null===e||ko?(la&&r&&ea(n),n.flags|=1,wo(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ho(e,n,l))}function No(e,n,t,r,l){if(Rl(t)){var a=!0;Dl(n)}else a=!1;if(Ea(n,l),null===n.stateNode)Bo(e,n),Ba(n,t,r),Wa(n,t,r,l),r=!0;else if(null===e){var u=n.stateNode,o=n.memoizedProps;u.props=o;var i=u.context,s=t.contextType;"object"==typeof s&&null!==s?s=Ca(s):s=Ll(n,s=Rl(t)?Tl:Nl.current);var c=t.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof u.getSnapshotBeforeUpdate;f||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==r||i!==s)&&Ha(n,u,r,s),Ta=!1;var d=n.memoizedState;u.state=d,Ia(n,r,u,l),i=n.memoizedState,o!==r||d!==i||zl.current||Ta?("function"==typeof c&&(Aa(n,t,c,r),i=n.memoizedState),(o=Ta||ja(n,t,o,r,d,i,s))?(f||"function"!=typeof u.UNSAFE_componentWillMount&&"function"!=typeof u.componentWillMount||("function"==typeof u.componentWillMount&&u.componentWillMount(),"function"==typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"==typeof u.componentDidMount&&(n.flags|=4194308)):("function"==typeof u.componentDidMount&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=i),u.props=r,u.state=i,u.context=s,r=o):("function"==typeof u.componentDidMount&&(n.flags|=4194308),r=!1)}else{u=n.stateNode,Ra(e,n),o=n.memoizedProps,s=n.type===n.elementType?o:ga(n.type,o),u.props=s,f=n.pendingProps,d=u.context,"object"==typeof(i=t.contextType)&&null!==i?i=Ca(i):i=Ll(n,i=Rl(t)?Tl:Nl.current);var p=t.getDerivedStateFromProps
|
|
||||||
;(c="function"==typeof p||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(o!==f||d!==i)&&Ha(n,u,r,i),Ta=!1,d=n.memoizedState,u.state=d,Ia(n,r,u,l);var m=n.memoizedState;o!==f||d!==m||zl.current||Ta?("function"==typeof p&&(Aa(n,t,p,r),m=n.memoizedState),(s=Ta||ja(n,t,s,r,d,m,i)||!1)?(c||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(r,m,i),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,m,i)),"function"==typeof u.componentDidUpdate&&(n.flags|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(n.flags|=1024)):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=m),u.props=r,u.state=m,u.context=i,r=s):("function"!=typeof u.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=4),"function"!=typeof u.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(n.flags|=1024),r=!1)}return zo(e,n,t,r,a,l)}function zo(e,n,t,r,l,a){_o(e,n);var u=0!=(128&n.flags);if(!r&&!u)return l&&Il(n,t,!1),Ho(e,n,a);r=n.stateNode,bo.current=n;var o=u&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&u?(n.child=Xa(n,e.child,null,a),n.child=Xa(n,null,o,a)):wo(e,n,o,a),n.memoizedState=r.state,l&&Il(n,t,!0),n.child}function To(e){var n=e.stateNode;n.pendingContext?Fl(0,n.pendingContext,n.pendingContext!==n.context):n.context&&Fl(0,n.context,!1),ru(e,n.containerInfo)}function Lo(e,n,t,r,l){return pa(),ma(l),n.flags|=256,wo(e,n,t,r),n.child}var Ro,Mo,Fo,Oo={dehydrated:null,treeContext:null,retryLane:0};function Do(e){return{baseLanes:e,cachePool:null,transitions:null}}function Io(e,n,t){var r,l=n.pendingProps,u=ou.current,o=!1,i=0!=(128&n.flags);if((r=i)||(r=(null===e||null!==e.memoizedState)&&0!=(2&u)),r?(o=!0,n.flags&=-129):null!==e&&null===e.memoizedState||(u|=1),_l(ou,1&u),null===e)return sa(n),null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&n.mode)?n.lanes=1:"$!"===e.data?n.lanes=8:n.lanes=1073741824,null):(i=l.children,e=l.fallback,o?(l=n.mode,o=n.child,i={mode:"hidden",children:i},0==(1&l)&&null!==o?(o.childLanes=0,o.pendingProps=i):o=Ds(i,l,0,null),e=Os(e,l,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=Do(t),n.memoizedState=Oo,e):Uo(n,i));if(null!==(u=e.memoizedState)&&null!==(r=u.dehydrated))return function(e,n,t,r,l,u,o){if(t)return 256&n.flags?(n.flags&=-257,Vo(e,n,o,r=co(Error(a(422))))):null!==n.memoizedState?(n.child=e.child,n.flags|=128,null):(u=r.fallback,l=n.mode,r=Ds({mode:"visible",children:r.children},l,0,null),(u=Os(u,l,o,null)).flags|=2,r.return=n,u.return=n,r.sibling=u,n.child=r,0!=(1&n.mode)&&Xa(n,e.child,null,o),n.child.memoizedState=Do(o),n.memoizedState=Oo,u);if(0==(1&n.mode))return Vo(e,n,o,null)
|
|
||||||
;if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var i=r.dgst;return r=i,Vo(e,n,o,r=co(u=Error(a(419)),r,void 0))}if(i=0!=(o&e.childLanes),ko||i){if(null!==(r=zi)){switch(o&-o){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!=(l&(r.suspendedLanes|o))?0:l)&&l!==u.retryLane&&(u.retryLane=l,za(e,l),ts(r,e,l,-1))}return hs(),Vo(e,n,o,r=co(Error(a(421))))}return"$?"===l.data?(n.flags|=128,n.child=e.child,n=Ps.bind(null,e),l._reactRetry=n,null):(e=u.treeContext,ra=sl(l.nextSibling),ta=n,la=!0,aa=null,null!==e&&(ql[Kl++]=Xl,ql[Kl++]=Gl,ql[Kl++]=Yl,Xl=e.id,Gl=e.overflow,Yl=n),(n=Uo(n,r.children)).flags|=4096,n)}(e,n,i,l,r,u,t);if(o){o=l.fallback,i=n.mode,r=(u=e.child).sibling;var s={mode:"hidden",children:l.children};return 0==(1&i)&&n.child!==u?((l=n.child).childLanes=0,l.pendingProps=s,n.deletions=null):(l=Ms(u,s)).subtreeFlags=14680064&u.subtreeFlags,null!==r?o=Ms(r,o):(o=Os(o,i,t,null)).flags|=2,o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,i=null===(i=e.child.memoizedState)?Do(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Oo,l}return e=(o=e.child).sibling,l=Ms(o,{mode:"visible",children:l.children}),0==(1&n.mode)&&(l.lanes=t),l.return=n,l.sibling=null,null!==e&&(null===(t=n.deletions)?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=l,n.memoizedState=null,l}function Uo(e,n){return(n=Ds({mode:"visible",children:n},e.mode,0,null)).return=e,e.child=n}function Vo(e,n,t,r){return null!==r&&ma(r),Xa(n,e.child,null,t),(e=Uo(n,n.pendingProps.children)).flags|=2,n.memoizedState=null,e}function Ao(e,n,t){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n),xa(e.return,n,t)}function $o(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function jo(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(wo(e,n,r.children,t),0!=(2&(r=ou.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ao(e,t,n);else if(19===e.tag)Ao(e,t,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_l(ou,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===iu(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),$o(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===iu(e)){n.child=l;break}e=l.sibling,
|
|
||||||
l.sibling=t,t=l,l=e}$o(n,!0,t,null,a);break;case"together":$o(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Bo(e,n){0==(1&n.mode)&&null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Ho(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),Di|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error(a(153));if(null!==n.child){for(t=Ms(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=Ms(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Wo(e,n){if(!la)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qo(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function qo(e,n,t){var r=n.pendingProps;switch(na(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qo(n),null;case 1:case 17:return Rl(n.type)&&Ml(),Qo(n),null;case 3:return r=n.stateNode,lu(),Cl(zl),Cl(Nl),cu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(n)?n.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&n.flags)||(n.flags|=1024,null!==aa&&(us(aa),aa=null))),Qo(n),null;case 5:uu(n);var l=tu(nu.current);if(t=n.type,null!==e&&null!=n.stateNode)Mo(e,n,t,r),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(null===n.stateNode)throw Error(a(166));return Qo(n),null}if(e=tu(Ja.current),fa(n)){r=n.stateNode,t=n.type;var u=n.memoizedProps;switch(r[dl]=n,r[pl]=u,e=0!=(1&n.mode),t){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(l=0;l<Or.length;l++)Vr(Or[l],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":X(r,u),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Vr("invalid",r);break;case"textarea":le(r,u),Vr("invalid",r)}for(var i in ye(t,u),l=null,u)if(u.hasOwnProperty(i)){var s=u[i];"children"===i?"string"==typeof s?r.textContent!==s&&(!0!==u.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==u.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",""+s]):o.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&Vr("scroll",r)}switch(t){case"input":Q(r),J(r,u,!0);break;case"textarea":Q(r),ue(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=Jr)}r=l,n.updateQueue=r,
|
|
||||||
null!==r&&(n.flags|=4)}else{i=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(t)),"http://www.w3.org/1999/xhtml"===e?"script"===t?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),"select"===t&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[dl]=n,e[pl]=r,Ro(e,n),n.stateNode=e;e:{switch(i=be(t,r),t){case"dialog":Vr("cancel",e),Vr("close",e),l=r;break;case"iframe":case"object":case"embed":Vr("load",e),l=r;break;case"video":case"audio":for(l=0;l<Or.length;l++)Vr(Or[l],e);l=r;break;case"source":Vr("error",e),l=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),l=r;break;case"details":Vr("toggle",e),l=r;break;case"input":X(e,r),l=Y(e,r),Vr("invalid",e);break;case"option":default:l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=I({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":le(e,r),l=re(e,r),Vr("invalid",e)}for(u in ye(t,l),s=l)if(s.hasOwnProperty(u)){var c=s[u];"style"===u?ge(e,c):"dangerouslySetInnerHTML"===u?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===u?"string"==typeof c?("textarea"!==t||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?null!=c&&"onScroll"===u&&Vr("scroll",e):null!=c&&b(e,u,c,i))}switch(t){case"input":Q(e),J(e,r,!1);break;case"textarea":Q(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?te(e,!!r.multiple,u,!1):null!=r.defaultValue&&te(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=Jr)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}null!==n.ref&&(n.flags|=512,n.flags|=2097152)}return Qo(n),null;case 6:if(e&&null!=n.stateNode)Fo(0,n,e.memoizedProps,r);else{if("string"!=typeof r&&null===n.stateNode)throw Error(a(166));if(t=tu(nu.current),tu(Ja.current),fa(n)){if(r=n.stateNode,t=n.memoizedProps,r[dl]=n,(u=r.nodeValue!==t)&&null!==(e=ta))switch(e.tag){case 3:Zr(r.nodeValue,t,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,t,0!=(1&e.mode))}u&&(n.flags|=4)}else(r=(9===t.nodeType?t:t.ownerDocument).createTextNode(r))[dl]=n,n.stateNode=r}return Qo(n),null;case 13:if(Cl(ou),r=n.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(la&&null!==ra&&0!=(1&n.mode)&&0==(128&n.flags))da(),pa(),n.flags|=98560,u=!1;else if(u=fa(n),null!==r&&null!==r.dehydrated){if(null===e){if(!u)throw Error(a(318));if(!(u=null!==(u=n.memoizedState)?u.dehydrated:null))throw Error(a(317));u[dl]=n}else pa(),0==(128&n.flags)&&(n.memoizedState=null),n.flags|=4;Qo(n),u=!1}else null!==aa&&(us(aa),aa=null),u=!0;if(!u)return 65536&n.flags?n:null}return 0!=(128&n.flags)?(n.lanes=t,
|
|
||||||
n):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(n.child.flags|=8192,0!=(1&n.mode)&&(null===e||0!=(1&ou.current)?0===Fi&&(Fi=3):hs())),null!==n.updateQueue&&(n.flags|=4),Qo(n),null);case 4:return lu(),null===e&&jr(n.stateNode.containerInfo),Qo(n),null;case 10:return Sa(n.type._context),Qo(n),null;case 19:if(Cl(ou),null===(u=n.memoizedState))return Qo(n),null;if(r=0!=(128&n.flags),null===(i=u.rendering))if(r)Wo(u,!1);else{if(0!==Fi||null!==e&&0!=(128&e.flags))for(e=n.child;null!==e;){if(null!==(i=iu(e))){for(n.flags|=128,Wo(u,!1),null!==(r=i.updateQueue)&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;null!==t;)e=r,(u=t).flags&=14680066,null===(i=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,u.type=i.type,e=i.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return _l(ou,1&ou.current|2),n.child}e=e.sibling}null!==u.tail&&Ge()>ji&&(n.flags|=128,r=!0,Wo(u,!1),n.lanes=4194304)}else{if(!r)if(null!==(e=iu(i))){if(n.flags|=128,r=!0,null!==(t=e.updateQueue)&&(n.updateQueue=t,n.flags|=4),Wo(u,!0),null===u.tail&&"hidden"===u.tailMode&&!i.alternate&&!la)return Qo(n),null}else 2*Ge()-u.renderingStartTime>ji&&1073741824!==t&&(n.flags|=128,r=!0,Wo(u,!1),n.lanes=4194304);u.isBackwards?(i.sibling=n.child,n.child=i):(null!==(t=u.last)?t.sibling=i:n.child=i,u.last=i)}return null!==u.tail?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=Ge(),n.sibling=null,t=ou.current,_l(ou,r?1&t|2:1&t),n):(Qo(n),null);case 22:case 23:return fs(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!=(1&n.mode)?0!=(1073741824&Ri)&&(Qo(n),6&n.subtreeFlags&&(n.flags|=8192)):Qo(n),null;case 24:case 25:return null}throw Error(a(156,n.tag))}function Ko(e,n){switch(na(n),n.tag){case 1:return Rl(n.type)&&Ml(),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return lu(),Cl(zl),Cl(Nl),cu(),0!=(65536&(e=n.flags))&&0==(128&e)?(n.flags=-65537&e|128,n):null;case 5:return uu(n),null;case 13:if(Cl(ou),null!==(e=n.memoizedState)&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));pa()}return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return Cl(ou),null;case 4:return lu(),null;case 10:return Sa(n.type._context),null;case 22:case 23:return fs(),null;default:return null}}Ro=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e.appendChild(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},Mo=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,tu(Ja.current);var a,u=null;switch(t){case"input":l=Y(e,l),r=Y(e,r),u=[];break;case"select":
|
|
||||||
l=I({},l,{value:void 0}),r=I({},r,{value:void 0}),u=[];break;case"textarea":l=re(e,l),r=re(e,r),u=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(t,r),t=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var i=l[c];for(a in i)i.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?u||(u=[]):(u=u||[]).push(c,null));for(c in r){var s=r[c];if(i=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==i&&(null!=s||null!=i))if("style"===c)if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(t||(t={}),t[a]=s[a])}else t||(u||(u=[]),u.push(c,t)),t=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,i=i?i.__html:void 0,null!=s&&i!==s&&(u=u||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(u=u||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Vr("scroll",e),u||i===s||(u=[])):(u=u||[]).push(c,s))}t&&(u=u||[]).push("style",t);var c=u;(n.updateQueue=c)&&(n.flags|=4)}},Fo=function(e,n,t,r){t!==r&&(n.flags|=4)};var Yo=!1,Xo=!1,Go="function"==typeof WeakSet?WeakSet:Set,Zo=null;function Jo(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Es(e,n,t)}else t.current=null}function ei(e,n,t){try{t()}catch(t){Es(e,n,t)}}var ni=!1;function ti(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&ei(n,t,a)}l=l.next}while(l!==r)}}function ri(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function li(e){var n=e.ref;if(null!==n){var t=e.stateNode;e.tag,e=t,"function"==typeof n?n(e):n.current=e}}function ai(e){var n=e.alternate;null!==n&&(e.alternate=null,ai(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(n=e.stateNode)&&(delete n[dl],delete n[pl],delete n[hl],delete n[gl],delete n[vl])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ui(e){return 5===e.tag||3===e.tag||4===e.tag}function oi(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ui(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ii(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode).insertBefore(e,t):(n=t).appendChild(e),null!=(t=t._reactRootContainer)||null!==n.onclick||(n.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ii(e,n,t),
|
|
||||||
e=e.sibling;null!==e;)ii(e,n,t),e=e.sibling}function si(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&null!==(e=e.child))for(si(e,n,t),e=e.sibling;null!==e;)si(e,n,t),e=e.sibling}var ci=null,fi=!1;function di(e,n,t){for(t=t.child;null!==t;)pi(e,n,t),t=t.sibling}function pi(e,n,t){if(an&&"function"==typeof an.onCommitFiberUnmount)try{an.onCommitFiberUnmount(ln,t)}catch(e){}switch(t.tag){case 5:Xo||Jo(t,n);case 6:var r=ci,l=fi;ci=null,di(e,n,t),fi=l,null!==(ci=r)&&(fi?(e=ci,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):ci.removeChild(t.stateNode));break;case 18:null!==ci&&(fi?(e=ci,t=t.stateNode,8===e.nodeType?il(e.parentNode,t):1===e.nodeType&&il(e,t),Bn(e)):il(ci,t.stateNode));break;case 4:r=ci,l=fi,ci=t.stateNode.containerInfo,fi=!0,di(e,n,t),ci=r,fi=l;break;case 0:case 11:case 14:case 15:if(!Xo&&(null!==(r=t.updateQueue)&&null!==(r=r.lastEffect))){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag,void 0!==u&&(0!=(2&a)||0!=(4&a))&&ei(t,n,u),l=l.next}while(l!==r)}di(e,n,t);break;case 1:if(!Xo&&(Jo(t,n),"function"==typeof(r=t.stateNode).componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(e){Es(t,n,e)}di(e,n,t);break;case 21:di(e,n,t);break;case 22:1&t.mode?(Xo=(r=Xo)||null!==t.memoizedState,di(e,n,t),Xo=r):di(e,n,t);break;default:di(e,n,t)}}function mi(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Go),n.forEach((function(n){var r=Ns.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function hi(e,n){var t=n.deletions;if(null!==t)for(var r=0;r<t.length;r++){var l=t[r];try{var u=e,o=n,i=o;e:for(;null!==i;){switch(i.tag){case 5:ci=i.stateNode,fi=!1;break e;case 3:case 4:ci=i.stateNode.containerInfo,fi=!0;break e}i=i.return}if(null===ci)throw Error(a(160));pi(u,o,l),ci=null,fi=!1;var s=l.alternate;null!==s&&(s.return=null),l.return=null}catch(e){Es(l,n,e)}}if(12854&n.subtreeFlags)for(n=n.child;null!==n;)gi(n,e),n=n.sibling}function gi(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hi(n,e),vi(e),4&r){try{ti(3,e,e.return),ri(3,e)}catch(n){Es(e,e.return,n)}try{ti(5,e,e.return)}catch(n){Es(e,e.return,n)}}break;case 1:hi(n,e),vi(e),512&r&&null!==t&&Jo(t,t.return);break;case 5:if(hi(n,e),vi(e),512&r&&null!==t&&Jo(t,t.return),32&e.flags){var l=e.stateNode;try{de(l,"")}catch(n){Es(e,e.return,n)}}if(4&r&&null!=(l=e.stateNode)){var u=e.memoizedProps,o=null!==t?t.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===i&&"radio"===u.type&&null!=u.name&&G(l,u),be(i,o);var c=be(i,u);for(o=0;o<s.length;o+=2){var f=s[o],d=s[o+1];"style"===f?ge(l,d):"dangerouslySetInnerHTML"===f?fe(l,d):"children"===f?de(l,d):b(l,f,d,c)}switch(i){case"input":Z(l,u);break;case"textarea":ae(l,u);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!u.multiple;var m=u.value
|
|
||||||
;null!=m?te(l,!!u.multiple,m,!1):p!==!!u.multiple&&(null!=u.defaultValue?te(l,!!u.multiple,u.defaultValue,!0):te(l,!!u.multiple,u.multiple?[]:"",!1))}l[pl]=u}catch(n){Es(e,e.return,n)}}break;case 6:if(hi(n,e),vi(e),4&r){if(null===e.stateNode)throw Error(a(162));l=e.stateNode,u=e.memoizedProps;try{l.nodeValue=u}catch(n){Es(e,e.return,n)}}break;case 3:if(hi(n,e),vi(e),4&r&&null!==t&&t.memoizedState.isDehydrated)try{Bn(n.containerInfo)}catch(n){Es(e,e.return,n)}break;case 4:default:hi(n,e),vi(e);break;case 13:hi(n,e),vi(e),8192&(l=e.child).flags&&(u=null!==l.memoizedState,l.stateNode.isHidden=u,!u||null!==l.alternate&&null!==l.alternate.memoizedState||($i=Ge())),4&r&&mi(e);break;case 22:if(f=null!==t&&null!==t.memoizedState,1&e.mode?(Xo=(c=Xo)||f,hi(n,e),Xo=c):hi(n,e),vi(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!=(1&e.mode))for(Zo=e,f=e.child;null!==f;){for(d=Zo=f;null!==Zo;){switch(m=(p=Zo).child,p.tag){case 0:case 11:case 14:case 15:ti(4,p,p.return);break;case 1:Jo(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,t=p.return;try{n=r,h.props=n.memoizedProps,h.state=n.memoizedState,h.componentWillUnmount()}catch(e){Es(r,t,e)}}break;case 5:Jo(p,p.return);break;case 22:if(null!==p.memoizedState){wi(d);continue}}null!==m?(m.return=p,Zo=m):wi(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{l=d.stateNode,c?"function"==typeof(u=l.style).setProperty?u.setProperty("display","none","important"):u.display="none":(i=d.stateNode,o=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,i.style.display=he("display",o))}catch(n){Es(e,e.return,n)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(n){Es(e,e.return,n)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hi(n,e),vi(e),4&r&&mi(e);case 21:}}function vi(e){var n=e.flags;if(2&n){try{e:{for(var t=e.return;null!==t;){if(ui(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(de(l,""),r.flags&=-33),si(e,oi(e),l);break;case 3:case 4:var u=r.stateNode.containerInfo;ii(e,oi(e),u);break;default:throw Error(a(161))}}catch(n){Es(e,e.return,n)}e.flags&=-3}4096&n&&(e.flags&=-4097)}function yi(e,n,t){Zo=e,bi(e,n,t)}function bi(e,n,t){for(var r=0!=(1&e.mode);null!==Zo;){var l=Zo,a=l.child;if(22===l.tag&&r){var u=null!==l.memoizedState||Yo;if(!u){var o=l.alternate,i=null!==o&&null!==o.memoizedState||Xo;o=Yo;var s=Xo;if(Yo=u,(Xo=i)&&!s)for(Zo=l;null!==Zo;)i=(u=Zo).child,22===u.tag&&null!==u.memoizedState?Si(l):null!==i?(i.return=u,Zo=i):Si(l);for(;null!==a;)Zo=a,bi(a,n,t),a=a.sibling;Zo=l,Yo=o,Xo=s}ki(e)}else 0!=(8772&l.subtreeFlags)&&null!==a?(a.return=l,Zo=a):ki(e)}}function ki(e){for(;null!==Zo;){var n=Zo;if(0!=(8772&n.flags)){var t=n.alternate;try{
|
|
||||||
if(0!=(8772&n.flags))switch(n.tag){case 0:case 11:case 15:Xo||ri(5,n);break;case 1:var r=n.stateNode;if(4&n.flags&&!Xo)if(null===t)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:ga(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=n.updateQueue;null!==u&&Ua(n,u,r);break;case 3:var o=n.updateQueue;if(null!==o){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}Ua(n,o,t)}break;case 5:var i=n.stateNode;if(null===t&&4&n.flags){t=i;var s=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&t.focus();break;case"img":s.src&&(t.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===n.memoizedState){var c=n.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Bn(d)}}}break;default:throw Error(a(163))}Xo||512&n.flags&&li(n)}catch(e){Es(n,n.return,e)}}if(n===e){Zo=null;break}if(null!==(t=n.sibling)){t.return=n.return,Zo=t;break}Zo=n.return}}function wi(e){for(;null!==Zo;){var n=Zo;if(n===e){Zo=null;break}var t=n.sibling;if(null!==t){t.return=n.return,Zo=t;break}Zo=n.return}}function Si(e){for(;null!==Zo;){var n=Zo;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{ri(4,n)}catch(e){Es(n,t,e)}break;case 1:var r=n.stateNode;if("function"==typeof r.componentDidMount){var l=n.return;try{r.componentDidMount()}catch(e){Es(n,l,e)}}var a=n.return;try{li(n)}catch(e){Es(n,a,e)}break;case 5:var u=n.return;try{li(n)}catch(e){Es(n,u,e)}}}catch(e){Es(n,n.return,e)}if(n===e){Zo=null;break}var o=n.sibling;if(null!==o){o.return=n.return,Zo=o;break}Zo=n.return}}var xi,Ei=Math.ceil,Ci=k.ReactCurrentDispatcher,_i=k.ReactCurrentOwner,Pi=k.ReactCurrentBatchConfig,Ni=0,zi=null,Ti=null,Li=0,Ri=0,Mi=El(0),Fi=0,Oi=null,Di=0,Ii=0,Ui=0,Vi=null,Ai=null,$i=0,ji=1/0,Bi=null,Hi=!1,Wi=null,Qi=null,qi=!1,Ki=null,Yi=0,Xi=0,Gi=null,Zi=-1,Ji=0;function es(){return 0!=(6&Ni)?Ge():-1!==Zi?Zi:Zi=Ge()}function ns(e){return 0==(1&e.mode)?1:0!=(2&Ni)&&0!==Li?Li&-Li:null!==ha.transition?(0===Ji&&(Ji=gn()),Ji):0!==(e=kn)?e:e=void 0===(e=window.event)?16:Gn(e.type)}function ts(e,n,t,r){if(50<Xi)throw Xi=0,Gi=null,Error(a(185));yn(e,t,r),0!=(2&Ni)&&e===zi||(e===zi&&(0==(2&Ni)&&(Ii|=t),4===Fi&&os(e,Li)),rs(e,r),1===t&&0===Ni&&0==(1&n.mode)&&(ji=Ge()+500,Vl&&jl()))}function rs(e,n){var t=e.callbackNode;!function(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var u=31-un(a),o=1<<u,i=l[u];-1===i?0!=(o&t)&&0==(o&r)||(l[u]=mn(o,n)):i<=n&&(e.expiredLanes|=o),a&=~o}}(e,n);var r=pn(e,e===zi?Li:0);if(0===r)null!==t&&Ke(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(null!=t&&Ke(t),1===n)0===e.tag?function(e){Vl=!0,$l(e)}(is.bind(null,e)):$l(is.bind(null,e)),ul((function(){0==(6&Ni)&&jl()})),t=null;else{switch(wn(r)){case 1:t=Je;break;case 4:t=en;break;case 16:default:t=nn;break;case 536870912:t=rn}t=zs(t,ls.bind(null,e))}e.callbackPriority=n,
|
|
||||||
e.callbackNode=t}}function ls(e,n){if(Zi=-1,Ji=0,0!=(6&Ni))throw Error(a(327));var t=e.callbackNode;if(Ss()&&e.callbackNode!==t)return null;var r=pn(e,e===zi?Li:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||n)n=gs(e,r);else{n=r;var l=Ni;Ni|=2;var u=ms();for(zi===e&&Li===n||(Bi=null,ji=Ge()+500,ds(e,n));;)try{ys();break}catch(n){ps(e,n)}wa(),Ci.current=u,Ni=l,null!==Ti?n=0:(zi=null,Li=0,n=Fi)}if(0!==n){if(2===n&&(0!==(l=hn(e))&&(r=l,n=as(e,l))),1===n)throw t=Oi,ds(e,0),os(e,r),rs(e,Ge()),t;if(6===n)os(e,r);else{if(l=e.current.alternate,0==(30&r)&&!function(e){for(var n=e;;){if(16384&n.flags){var t=n.updateQueue;if(null!==t&&null!==(t=t.stores))for(var r=0;r<t.length;r++){var l=t[r],a=l.getSnapshot;l=l.value;try{if(!or(a(),l))return!1}catch(e){return!1}}}if(t=n.child,16384&n.subtreeFlags&&null!==t)t.return=n,n=t;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}(l)&&(2===(n=gs(e,r))&&(0!==(u=hn(e))&&(r=u,n=as(e,u))),1===n))throw t=Oi,ds(e,0),os(e,r),rs(e,Ge()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(a(345));case 2:case 5:ws(e,Ai,Bi);break;case 3:if(os(e,r),(130023424&r)===r&&10<(n=$i+500-Ge())){if(0!==pn(e,0))break;if(((l=e.suspendedLanes)&r)!==r){es(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rl(ws.bind(null,e,Ai,Bi),n);break}ws(e,Ai,Bi);break;case 4:if(os(e,r),(4194240&r)===r)break;for(n=e.eventTimes,l=-1;0<r;){var o=31-un(r);u=1<<o,(o=n[o])>l&&(l=o),r&=~u}if(r=l,10<(r=(120>(r=Ge()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ei(r/1960))-r)){e.timeoutHandle=rl(ws.bind(null,e,Ai,Bi),r);break}ws(e,Ai,Bi);break;default:throw Error(a(329))}}}return rs(e,Ge()),e.callbackNode===t?ls.bind(null,e):null}function as(e,n){var t=Vi;return e.current.memoizedState.isDehydrated&&(ds(e,n).flags|=256),2!==(e=gs(e,n))&&(n=Ai,Ai=t,null!==n&&us(n)),e}function us(e){null===Ai?Ai=e:Ai.push.apply(Ai,e)}function os(e,n){for(n&=~Ui,n&=~Ii,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-un(n),r=1<<t;e[t]=-1,n&=~r}}function is(e){if(0!=(6&Ni))throw Error(a(327));Ss();var n=pn(e,0);if(0==(1&n))return rs(e,Ge()),null;var t=gs(e,n);if(0!==e.tag&&2===t){var r=hn(e);0!==r&&(n=r,t=as(e,r))}if(1===t)throw t=Oi,ds(e,0),os(e,n),rs(e,Ge()),t;if(6===t)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,ws(e,Ai,Bi),rs(e,Ge()),null}function ss(e,n){var t=Ni;Ni|=1;try{return e(n)}finally{0===(Ni=t)&&(ji=Ge()+500,Vl&&jl())}}function cs(e){null!==Ki&&0===Ki.tag&&0==(6&Ni)&&Ss();var n=Ni;Ni|=1;var t=Pi.transition,r=kn;try{if(Pi.transition=null,kn=1,e)return e()}finally{kn=r,Pi.transition=t,0==(6&(Ni=n))&&jl()}}function fs(){Ri=Mi.current,Cl(Mi)}function ds(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(-1!==t&&(e.timeoutHandle=-1,ll(t)),null!==Ti)for(t=Ti.return;null!==t;){var r=t;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ml();break;case 3:lu(),Cl(zl),Cl(Nl),cu();break;case 5:uu(r);break
|
|
||||||
;case 4:lu();break;case 13:case 19:Cl(ou);break;case 10:Sa(r.type._context);break;case 22:case 23:fs()}t=t.return}if(zi=e,Ti=e=Ms(e.current,null),Li=Ri=n,Fi=0,Oi=null,Ui=Ii=Di=0,Ai=Vi=null,null!==_a){for(n=0;n<_a.length;n++)if(null!==(r=(t=_a[n]).interleaved)){t.interleaved=null;var l=r.next,a=t.pending;if(null!==a){var u=a.next;a.next=l,r.next=u}t.pending=r}_a=null}return e}function ps(e,n){for(;;){var t=Ti;try{if(wa(),fu.current=ao,vu){for(var r=mu.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}vu=!1}if(pu=0,gu=hu=mu=null,yu=!1,bu=0,_i.current=null,null===t||null===t.return){Fi=1,Oi=n,Ti=null;break}e:{var u=e,o=t.return,i=t,s=n;if(n=Li,i.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=i,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=vo(o);if(null!==m){m.flags&=-257,yo(m,o,i,0,n),1&m.mode&&go(u,c,n),s=c;var h=(n=m).updateQueue;if(null===h){var g=new Set;g.add(s),n.updateQueue=g}else h.add(s);break e}if(0==(1&n)){go(u,c,n),hs();break e}s=Error(a(426))}else if(la&&1&i.mode){var v=vo(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),yo(v,o,i,0,n),ma(so(s,i));break e}}u=s=so(s,i),4!==Fi&&(Fi=2),null===Vi?Vi=[u]:Vi.push(u),u=o;do{switch(u.tag){case 3:u.flags|=65536,n&=-n,u.lanes|=n,Da(u,mo(0,s,n));break e;case 1:i=s;var y=u.type,b=u.stateNode;if(0==(128&u.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Qi||!Qi.has(b)))){u.flags|=65536,n&=-n,u.lanes|=n,Da(u,ho(u,i,n));break e}}u=u.return}while(null!==u)}ks(t)}catch(e){n=e,Ti===t&&null!==t&&(Ti=t=t.return);continue}break}}function ms(){var e=Ci.current;return Ci.current=ao,null===e?ao:e}function hs(){0!==Fi&&3!==Fi&&2!==Fi||(Fi=4),null===zi||0==(268435455&Di)&&0==(268435455&Ii)||os(zi,Li)}function gs(e,n){var t=Ni;Ni|=2;var r=ms();for(zi===e&&Li===n||(Bi=null,ds(e,n));;)try{vs();break}catch(n){ps(e,n)}if(wa(),Ni=t,Ci.current=r,null!==Ti)throw Error(a(261));return zi=null,Li=0,Fi}function vs(){for(;null!==Ti;)bs(Ti)}function ys(){for(;null!==Ti&&!Ye();)bs(Ti)}function bs(e){var n=xi(e.alternate,e,Ri);e.memoizedProps=e.pendingProps,null===n?ks(e):Ti=n,_i.current=null}function ks(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(32768&n.flags)){if(null!==(t=qo(t,n,Ri)))return void(Ti=t)}else{if(null!==(t=Ko(t,n)))return t.flags&=32767,void(Ti=t);if(null===e)return Fi=6,void(Ti=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(n=n.sibling))return void(Ti=n);Ti=n=e}while(null!==n);0===Fi&&(Fi=5)}function ws(e,n,t){var r=kn,l=Pi.transition;try{Pi.transition=null,kn=1,function(e,n,t,r){do{Ss()}while(null!==Ki);if(0!=(6&Ni))throw Error(a(327));t=e.finishedWork;var l=e.finishedLanes;if(null===t)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var u=t.lanes|t.childLanes;if(function(e,n){var t=e.pendingLanes&~n
|
|
||||||
;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-un(t),a=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~a}}(e,u),e===zi&&(Ti=zi=null,Li=0),0==(2064&t.subtreeFlags)&&0==(2064&t.flags)||qi||(qi=!0,zs(nn,(function(){return Ss(),null}))),u=0!=(15990&t.flags),0!=(15990&t.subtreeFlags)||u){u=Pi.transition,Pi.transition=null;var o=kn;kn=1;var i=Ni;Ni|=4,_i.current=null,function(e,n){if(el=Wn,pr(e=dr())){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(t=(t=e.ownerDocument)&&t.defaultView||window).getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(e){t=null;break e}var o=0,i=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;d!==t||0!==l&&3!==d.nodeType||(i=o+l),d!==u||0!==r&&3!==d.nodeType||(s=o+r),3===d.nodeType&&(o+=d.nodeValue.length),null!==(m=d.firstChild);)p=d,d=m;for(;;){if(d===e)break n;if(p===t&&++c===l&&(i=o),p===u&&++f===r&&(s=o),null!==(m=d.nextSibling))break;p=(d=p).parentNode}d=m}t=-1===i||-1===s?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(nl={focusedElem:e,selectionRange:t},Wn=!1,Zo=n;null!==Zo;)if(e=(n=Zo).child,0!=(1028&n.subtreeFlags)&&null!==e)e.return=n,Zo=e;else for(;null!==Zo;){n=Zo;try{var h=n.alternate;if(0!=(1024&n.flags))switch(n.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:ga(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(a(163))}}catch(e){Es(n,n.return,e)}if(null!==(e=n.sibling)){e.return=n.return,Zo=e;break}Zo=n.return}h=ni,ni=!1}(e,t),gi(t,e),mr(nl),Wn=!!el,nl=el=null,e.current=t,yi(t,e,l),Xe(),Ni=i,kn=o,Pi.transition=u}else e.current=t;if(qi&&(qi=!1,Ki=e,Yi=l),0===(u=e.pendingLanes)&&(Qi=null),function(e){if(an&&"function"==typeof an.onCommitFiberRoot)try{an.onCommitFiberRoot(ln,e,void 0,128==(128&e.current.flags))}catch(e){}}(t.stateNode),rs(e,Ge()),null!==n)for(r=e.onRecoverableError,t=0;t<n.length;t++)l=n[t],r(l.value,{componentStack:l.stack,digest:l.digest});if(Hi)throw Hi=!1,e=Wi,Wi=null,e;0!=(1&Yi)&&0!==e.tag&&Ss(),0!=(1&(u=e.pendingLanes))?e===Gi?Xi++:(Xi=0,Gi=e):Xi=0,jl()}(e,n,t,r)}finally{Pi.transition=l,kn=r}return null}function Ss(){if(null!==Ki){var e=wn(Yi),n=Pi.transition,t=kn;try{if(Pi.transition=null,kn=16>e?16:e,null===Ki)var r=!1;else{if(e=Ki,Ki=null,Yi=0,0!=(6&Ni))throw Error(a(331));var l=Ni;for(Ni|=4,Zo=e.current;null!==Zo;){var u=Zo,o=u.child;if(0!=(16&Zo.flags)){var i=u.deletions;if(null!==i){for(var s=0;s<i.length;s++){var c=i[s];for(Zo=c;null!==Zo;){var f=Zo;switch(f.tag){case 0:case 11:case 15:ti(8,f,u)}var d=f.child;if(null!==d)d.return=f,Zo=d;else for(;null!==Zo;){
|
|
||||||
var p=(f=Zo).sibling,m=f.return;if(ai(f),f===c){Zo=null;break}if(null!==p){p.return=m,Zo=p;break}Zo=m}}}var h=u.alternate;if(null!==h){var g=h.child;if(null!==g){h.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zo=u}}if(0!=(2064&u.subtreeFlags)&&null!==o)o.return=u,Zo=o;else e:for(;null!==Zo;){if(0!=(2048&(u=Zo).flags))switch(u.tag){case 0:case 11:case 15:ti(9,u,u.return)}var y=u.sibling;if(null!==y){y.return=u.return,Zo=y;break e}Zo=u.return}}var b=e.current;for(Zo=b;null!==Zo;){var k=(o=Zo).child;if(0!=(2064&o.subtreeFlags)&&null!==k)k.return=o,Zo=k;else e:for(o=b;null!==Zo;){if(0!=(2048&(i=Zo).flags))try{switch(i.tag){case 0:case 11:case 15:ri(9,i)}}catch(e){Es(i,i.return,e)}if(i===o){Zo=null;break e}var w=i.sibling;if(null!==w){w.return=i.return,Zo=w;break e}Zo=i.return}}if(Ni=l,jl(),an&&"function"==typeof an.onPostCommitFiberRoot)try{an.onPostCommitFiberRoot(ln,e)}catch(e){}r=!0}return r}finally{kn=t,Pi.transition=n}}return!1}function xs(e,n,t){e=Fa(e,n=mo(0,n=so(t,n),1),1),n=es(),null!==e&&(yn(e,1,n),rs(e,n))}function Es(e,n,t){if(3===e.tag)xs(e,e,t);else for(;null!==n;){if(3===n.tag){xs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qi||!Qi.has(r))){n=Fa(n,e=ho(n,e=so(t,e),1),1),e=es(),null!==n&&(yn(n,1,e),rs(n,e));break}}n=n.return}}function Cs(e,n,t){var r=e.pingCache;null!==r&&r.delete(n),n=es(),e.pingedLanes|=e.suspendedLanes&t,zi===e&&(Li&t)===t&&(4===Fi||3===Fi&&(130023424&Li)===Li&&500>Ge()-$i?ds(e,0):Ui|=t),rs(e,n)}function _s(e,n){0===n&&(0==(1&e.mode)?n=1:(n=fn,0==(130023424&(fn<<=1))&&(fn=4194304)));var t=es();null!==(e=za(e,n))&&(yn(e,n,t),rs(e,t))}function Ps(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),_s(e,t)}function Ns(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n),_s(e,t)}function zs(e,n){return qe(e,n)}function Ts(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,n,t,r){return new Ts(e,n,t,r)}function Rs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,n){var t=e.alternate;return null===t?((t=Ls(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=14680064&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}
|
|
||||||
function Fs(e,n,t,r,l,u){var o=2;if(r=e,"function"==typeof e)Rs(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case x:return Os(t.children,l,u,n);case E:o=8,l|=8;break;case C:return(e=Ls(12,t,n,2|l)).elementType=C,e.lanes=u,e;case z:return(e=Ls(13,t,n,l)).elementType=z,e.lanes=u,e;case T:return(e=Ls(19,t,n,l)).elementType=T,e.lanes=u,e;case M:return Ds(t,l,u,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:o=10;break e;case P:o=9;break e;case N:o=11;break e;case L:o=14;break e;case R:o=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(n=Ls(o,t,n,l)).elementType=e,n.type=r,n.lanes=u,n}function Os(e,n,t,r){return(e=Ls(7,e,r,n)).lanes=t,e}function Ds(e,n,t,r){return(e=Ls(22,e,r,n)).elementType=M,e.lanes=t,e.stateNode={isHidden:!1},e}function Is(e,n,t){return(e=Ls(6,e,null,n)).lanes=t,e}function Us(e,n,t){return(n=Ls(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Vs(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function As(e,n,t,r,l,a,u,o,i){return e=new Vs(e,n,t,o,i),1===n?(n=1,!0===a&&(n|=8)):n=0,a=Ls(3,null,null,n),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(a),e}function $s(e,n,t){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:n,implementation:t}}function js(e){if(!e)return Pl;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(Rl(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(null!==n);throw Error(a(171))}if(1===e.tag){var t=e.type;if(Rl(t))return Ol(e,t,n)}return n}function Bs(e,n,t,r,l,a,u,o,i){return(e=As(t,r,!0,e,0,a,0,o,i)).context=js(null),t=e.current,(a=Ma(r=es(),l=ns(t))).callback=null!=n?n:null,Fa(t,a,l),e.current.lanes=l,yn(e,l,r),rs(e,r),e}function Hs(e,n,t,r){var l=n.current,a=es(),u=ns(l);return t=js(t),null===n.context?n.context=t:n.pendingContext=t,(n=Ma(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),null!==(e=Fa(l,n,u))&&(ts(e,l,u,a),Oa(e,l,u)),u}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qs(e,n){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<n?t:n}}function qs(e,n){Qs(e,n),(e=e.alternate)&&Qs(e,n)}xi=function(e,n,t){
|
|
||||||
if(null!==e)if(e.memoizedProps!==n.pendingProps||zl.current)ko=!0;else{if(0==(e.lanes&t)&&0==(128&n.flags))return ko=!1,function(e,n,t){switch(n.tag){case 3:To(n),pa();break;case 5:au(n);break;case 1:Rl(n.type)&&Dl(n);break;case 4:ru(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;_l(va,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=n.memoizedState))return null!==r.dehydrated?(_l(ou,1&ou.current),n.flags|=128,null):0!=(t&n.child.childLanes)?Io(e,n,t):(_l(ou,1&ou.current),null!==(e=Ho(e,n,t))?e.sibling:null);_l(ou,1&ou.current);break;case 19:if(r=0!=(t&n.childLanes),0!=(128&e.flags)){if(r)return jo(e,n,t);n.flags|=128}if(null!==(l=n.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),_l(ou,ou.current),r)break;return null;case 22:case 23:return n.lanes=0,Co(e,n,t)}return Ho(e,n,t)}(e,n,t);ko=0!=(131072&e.flags)}else ko=!1,la&&0!=(1048576&n.flags)&&Jl(n,Ql,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Bo(e,n),e=n.pendingProps;var l=Ll(n,Nl.current);Ea(n,t),l=xu(null,n,r,e,l,t);var u=Eu();return n.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,Rl(r)?(u=!0,Dl(n)):u=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,La(n),l.updater=$a,n.stateNode=l,l._reactInternals=n,Wa(n,r,e,t),n=zo(null,n,r,!0,u,t)):(n.tag=0,la&&u&&ea(n),wo(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Bo(e,n),e=n.pendingProps,r=(l=r._init)(r._payload),n.type=r,l=n.tag=function(e){if("function"==typeof e)return Rs(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===L)return 14}return 2}(r),e=ga(r,e),l){case 0:n=Po(null,n,r,e,t);break e;case 1:n=No(null,n,r,e,t);break e;case 11:n=So(null,n,r,e,t);break e;case 14:n=xo(null,n,r,ga(r.type,e),t);break e}throw Error(a(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,Po(e,n,r,l=n.elementType===r?l:ga(r,l),t);case 1:return r=n.type,l=n.pendingProps,No(e,n,r,l=n.elementType===r?l:ga(r,l),t);case 3:e:{if(To(n),null===e)throw Error(a(387));r=n.pendingProps,l=(u=n.memoizedState).element,Ra(e,n),Ia(n,r,null,t);var o=n.memoizedState;if(r=o.element,u.isDehydrated){if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=u,n.memoizedState=u,256&n.flags){n=Lo(e,n,r,t,l=so(Error(a(423)),n));break e}if(r!==l){n=Lo(e,n,r,t,l=so(Error(a(424)),n));break e}for(ra=sl(n.stateNode.containerInfo.firstChild),ta=n,la=!0,aa=null,t=Ga(n,null,r,t),n.child=t;t;)t.flags=-3&t.flags|4096,t=t.sibling}else{if(pa(),r===l){n=Ho(e,n,t);break e}wo(e,n,r,t)}n=n.child}return n;case 5:return au(n),null===e&&sa(n),r=n.type,l=n.pendingProps,u=null!==e?e.memoizedProps:null,o=l.children,tl(r,l)?o=null:null!==u&&tl(r,u)&&(n.flags|=32),_o(e,n),wo(e,n,o,t),n.child;case 6:return null===e&&sa(n),null;case 13:return Io(e,n,t);case 4:return ru(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Xa(n,null,r,t):wo(e,n,r,t),n.child;case 11:
|
|
||||||
return r=n.type,l=n.pendingProps,So(e,n,r,l=n.elementType===r?l:ga(r,l),t);case 7:return wo(e,n,n.pendingProps,t),n.child;case 8:case 12:return wo(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,u=n.memoizedProps,o=l.value,_l(va,r._currentValue),r._currentValue=o,null!==u)if(or(u.value,o)){if(u.children===l.children&&!zl.current){n=Ho(e,n,t);break e}}else for(null!==(u=n.child)&&(u.return=n);null!==u;){var i=u.dependencies;if(null!==i){o=u.child;for(var s=i.firstContext;null!==s;){if(s.context===r){if(1===u.tag){(s=Ma(-1,t&-t)).tag=2;var c=u.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}u.lanes|=t,null!==(s=u.alternate)&&(s.lanes|=t),xa(u.return,t,n),i.lanes|=t;break}s=s.next}}else if(10===u.tag)o=u.type===n.type?null:u.child;else if(18===u.tag){if(null===(o=u.return))throw Error(a(341));o.lanes|=t,null!==(i=o.alternate)&&(i.lanes|=t),xa(o,t,n),o=u.sibling}else o=u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===n){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}wo(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Ea(n,t),r=r(l=Ca(l)),n.flags|=1,wo(e,n,r,t),n.child;case 14:return l=ga(r=n.type,n.pendingProps),xo(e,n,r,l=ga(r.type,l),t);case 15:return Eo(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:ga(r,l),Bo(e,n),n.tag=1,Rl(r)?(e=!0,Dl(n)):e=!1,Ea(n,t),Ba(n,r,l),Wa(n,r,l,t),zo(null,n,r,!0,e,t);case 19:return jo(e,n,t);case 22:return Co(e,n,t)}throw Error(a(156,n.tag))};var Ks="function"==typeof reportError?reportError:function(e){console.error(e)};function Ys(e){this._internalRoot=e}function Xs(e){this._internalRoot=e}function Gs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function ec(e,n,t,r,l){var a=t._reactRootContainer;if(a){var u=a;if("function"==typeof l){var o=l;l=function(){var e=Ws(u);o.call(e)}}Hs(n,u,e,l)}else u=function(e,n,t,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=Ws(u);a.call(e)}}var u=Bs(n,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=u,e[ml]=u.current,jr(8===e.nodeType?e.parentNode:e),cs(),u}for(;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var o=r;r=function(){var e=Ws(i);o.call(e)}}var i=As(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=i,e[ml]=i.current,jr(8===e.nodeType?e.parentNode:e),cs((function(){Hs(n,i,t,r)})),i}(t,n,e,l,r);return Ws(u)}Xs.prototype.render=Ys.prototype.render=function(e){var n=this._internalRoot;if(null===n)throw Error(a(409));Hs(e,n,null,null)},Xs.prototype.unmount=Ys.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var n=e.containerInfo;cs((function(){Hs(null,e,null,null)})),n[ml]=null}},Xs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Cn();e={blockedOn:null,target:e,
|
|
||||||
priority:n};for(var t=0;t<Fn.length&&0!==n&&n<Fn[t].priority;t++);Fn.splice(t,0,e),0===t&&Un(e)}},Sn=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=dn(n.pendingLanes);0!==t&&(bn(n,1|t),rs(n,Ge()),0==(6&Ni)&&(ji=Ge()+500,jl()))}break;case 13:cs((function(){var n=za(e,1);if(null!==n){var t=es();ts(n,e,1,t)}})),qs(e,1)}},xn=function(e){if(13===e.tag){var n=za(e,134217728);if(null!==n)ts(n,e,134217728,es());qs(e,134217728)}},En=function(e){if(13===e.tag){var n=ns(e),t=za(e,n);if(null!==t)ts(t,e,n,es());qs(e,n)}},Cn=function(){return kn},_n=function(e,n){var t=kn;try{return kn=e,n()}finally{kn=t}},Se=function(e,n,t){switch(n){case"input":if(Z(e,t),n=t.name,"radio"===t.type&&null!=n){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=wl(r);if(!l)throw Error(a(90));q(r),Z(r,l)}}}break;case"textarea":ae(e,t);break;case"select":null!=(n=t.value)&&te(e,!!t.multiple,n,!1)}},Ne=ss,ze=cs;var nc={usingClientEntryPoint:!1,Events:[bl,kl,wl,_e,Pe,ss]},tc={findFiberByHostInstance:yl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{ln=lc.inject(rc),an=lc}catch(ce){}}n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nc,n.createPortal=function(e,n){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gs(n))throw Error(a(200));return $s(e,n,null,t)},n.createRoot=function(e,n){if(!Gs(e))throw Error(a(299));var t=!1,r="",l=Ks;return null!=n&&(!0===n.unstable_strictMode&&(t=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),n=As(e,1,!1,null,0,t,0,r,l),e[ml]=n.current,jr(8===e.nodeType?e.parentNode:e),new Ys(n)},n.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var n=e._reactInternals;if(void 0===n){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=We(n))?null:e.stateNode},n.flushSync=function(e){return cs(e)},n.hydrate=function(e,n,t){if(!Zs(n))throw Error(a(200));return ec(null,e,n,!0,t)},n.hydrateRoot=function(e,n,t){
|
|
||||||
if(!Gs(e))throw Error(a(405));var r=null!=t&&t.hydratedSources||null,l=!1,u="",o=Ks;if(null!=t&&(!0===t.unstable_strictMode&&(l=!0),void 0!==t.identifierPrefix&&(u=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),n=Bs(n,null,e,1,null!=t?t:null,l,0,u,o),e[ml]=n.current,jr(e),r)for(e=0;e<r.length;e++)l=(l=(t=r[e])._getVersion)(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new Xs(n)},n.render=function(e,n,t){if(!Zs(n))throw Error(a(200));return ec(null,e,n,!1,t)},n.unmountComponentAtNode=function(e){if(!Zs(e))throw Error(a(40));return!!e._reactRootContainer&&(cs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[ml]=null}))})),!0)},n.unstable_batchedUpdates=ss,n.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!Zs(t))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,n,t,!1,r)},n.version="18.2.0-next-9e3b772b8-20220608"},32227:(e,n,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=t(82321)},95257:(e,n)=>{var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function v(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}function y(){}function b(e,n,t){this.props=e,this.context=n,this.refs=g,this.updater=t||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var k=b.prototype=new y;k.constructor=b,h(k,v.prototype),k.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,x={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,n,r){var l,a={},u=null,o=null;if(null!=n)for(l in void 0!==n.ref&&(o=n.ref),void 0!==n.key&&(u=""+n.key),n)S.call(n,l)&&!E.hasOwnProperty(l)&&(a[l]=n[l]);var i=arguments.length-2;if(1===i)a.children=r;else if(1<i){for(var s=Array(i),c=0;c<i;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(l in i=e.defaultProps)void 0===a[l]&&(a[l]=i[l]);return{$$typeof:t,type:e,key:u,ref:o,props:a,_owner:x.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var P=/\/+/g
|
|
||||||
;function N(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function z(e,n,l,a,u){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case t:case r:i=!0}}if(i)return u=u(i=e),e=""===a?"."+N(i,0):a,w(u)?(l="",null!=e&&(l=e.replace(P,"$&/")+"/"),z(u,n,l,"",(function(e){return e}))):null!=u&&(_(u)&&(u=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(u,l+(!u.key||i&&i.key===u.key?"":(""+u.key).replace(P,"$&/")+"/")+e)),n.push(u)),1;if(i=0,a=""===a?".":a+":",w(e))for(var s=0;s<e.length;s++){var c=a+N(o=e[s],s);i+=z(o,n,l,c,u)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(o=e.next()).done;)i+=z(o=o.value,n,l,c=a+N(o,s++),u);else if("object"===o)throw n=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return i}function T(e,n,t){if(null==e)return e;var r=[],l=0;return z(e,r,"","",(function(e){return n.call(t,e,l++)})),r}function L(e){if(-1===e._status){var n=e._result;(n=n()).then((function(n){0!==e._status&&-1!==e._status||(e._status=1,e._result=n)}),(function(n){0!==e._status&&-1!==e._status||(e._status=2,e._result=n)})),-1===e._status&&(e._status=0,e._result=n)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},M={transition:null},F={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:M,ReactCurrentOwner:x};n.Children={map:T,forEach:function(e,n,t){T(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return T(e,(function(){n++})),n},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=v,n.Fragment=l,n.Profiler=u,n.PureComponent=b,n.StrictMode=a,n.Suspense=c,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,n.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=h({},e.props),a=e.key,u=e.ref,o=e._owner;if(null!=n){if(void 0!==n.ref&&(u=n.ref,o=x.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in n)S.call(n,s)&&!E.hasOwnProperty(s)&&(l[s]=void 0===n[s]&&void 0!==i?i[s]:n[s])}var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){i=Array(s);for(var c=0;c<s;c++)i[c]=arguments[c+2];l.children=i}return{$$typeof:t,type:e.type,key:a,ref:u,props:l,_owner:o}},n.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,
|
|
||||||
_context:e},e.Consumer=e},n.createElement=C,n.createFactory=function(e){var n=C.bind(null,e);return n.type=e,n},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:s,render:e}},n.isValidElement=_,n.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},n.memo=function(e,n){return{$$typeof:f,type:e,compare:void 0===n?null:n}},n.startTransition=function(e){var n=M.transition;M.transition={};try{e()}finally{M.transition=n}},n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},n.useCallback=function(e,n){return R.current.useCallback(e,n)},n.useContext=function(e){return R.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return R.current.useDeferredValue(e)},n.useEffect=function(e,n){return R.current.useEffect(e,n)},n.useId=function(){return R.current.useId()},n.useImperativeHandle=function(e,n,t){return R.current.useImperativeHandle(e,n,t)},n.useInsertionEffect=function(e,n){return R.current.useInsertionEffect(e,n)},n.useLayoutEffect=function(e,n){return R.current.useLayoutEffect(e,n)},n.useMemo=function(e,n){return R.current.useMemo(e,n)},n.useReducer=function(e,n,t){return R.current.useReducer(e,n,t)},n.useRef=function(e){return R.current.useRef(e)},n.useState=function(e){return R.current.useState(e)},n.useSyncExternalStore=function(e,n,t){return R.current.useSyncExternalStore(e,n,t)},n.useTransition=function(){return R.current.useTransition()},n.version="18.2.0"},50959:(e,n,t)=>{e.exports=t(95257)},85568:(e,n)=>{function t(e,n){var t=e.length;e.push(n);e:for(;0<t;){var r=t-1>>>1,l=e[r];if(!(0<a(l,n)))break e;e[r]=n,e[t]=l,t=r}}function r(e){return 0===e.length?null:e[0]}function l(e){if(0===e.length)return null;var n=e[0],t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,l=e.length,u=l>>>1;r<u;){var o=2*(r+1)-1,i=e[o],s=o+1,c=e[s];if(0>a(i,t))s<l&&0>a(c,i)?(e[r]=c,e[s]=t,r=s):(e[r]=i,e[o]=t,r=o);else{if(!(s<l&&0>a(c,t)))break e;e[r]=c,e[s]=t,r=s}}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var u=performance;n.unstable_now=function(){return u.now()}}else{var o=Date,i=o.now();n.unstable_now=function(){return o.now()-i}}var s=[],c=[],f=1,d=null,p=3,m=!1,h=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function k(e){for(var n=r(c);null!==n;){if(null===n.callback)l(c);else{if(!(n.startTime<=e))break;l(c),n.sortIndex=n.expirationTime,t(s,n)}n=r(c)}}function w(e){if(g=!1,k(e),!h)if(null!==r(s))h=!0,M(S);else{var n=r(c);null!==n&&F(w,n.startTime-e)}}function S(e,t){h=!1,g&&(g=!1,y(_),_=-1),m=!0;var a=p;try{for(k(t),d=r(s);null!==d&&(!(d.expirationTime>t)||e&&!z());){var u=d.callback;if("function"==typeof u){d.callback=null,p=d.priorityLevel;var o=u(d.expirationTime<=t);t=n.unstable_now(),"function"==typeof o?d.callback=o:d===r(s)&&l(s),k(t)}else l(s);d=r(s)}if(null!==d)var i=!0;else{
|
|
||||||
var f=r(c);null!==f&&F(w,f.startTime-t),i=!1}return i}finally{d=null,p=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,E=!1,C=null,_=-1,P=5,N=-1;function z(){return!(n.unstable_now()-N<P)}function T(){if(null!==C){var e=n.unstable_now();N=e;var t=!0;try{t=C(!0,e)}finally{t?x():(E=!1,C=null)}}else E=!1}if("function"==typeof b)x=function(){b(T)};else if("undefined"!=typeof MessageChannel){var L=new MessageChannel,R=L.port2;L.port1.onmessage=T,x=function(){R.postMessage(null)}}else x=function(){v(T,0)};function M(e){C=e,E||(E=!0,x())}function F(e,t){_=v((function(){e(n.unstable_now())}),t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){h||m||(h=!0,M(S))},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},n.unstable_getCurrentPriorityLevel=function(){return p},n.unstable_getFirstCallbackNode=function(){return r(s)},n.unstable_next=function(e){switch(p){case 1:case 2:case 3:var n=3;break;default:n=p}var t=p;p=n;try{return e()}finally{p=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=p;p=e;try{return n()}finally{p=t}},n.unstable_scheduleCallback=function(e,l,a){var u=n.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?u+a:u:a=u,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:f++,callback:l,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>u?(e.sortIndex=a,t(c,e),null===r(s)&&e===r(c)&&(g?(y(_),_=-1):g=!0,F(w,a-u))):(e.sortIndex=o,t(s,e),h||m||(h=!0,M(S))),e},n.unstable_shouldYield=z,n.unstable_wrapCallback=function(e){var n=p;return function(){var t=p;p=n;try{return e.apply(this,arguments)}finally{p=t}}}},22962:(e,n,t)=>{e.exports=t(85568)}}]);
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.titleWrap-e3jFxbHm{align-items:center;display:flex}.ellipsis-e3jFxbHm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hideInput-e3jFxbHm,.hideText-e3jFxbHm{height:0;visibility:hidden}.empty-e3jFxbHm{height:34px;margin-right:-3px;width:34px}.hideEmpty-e3jFxbHm{margin:0;width:0}.editIcon-e3jFxbHm{align-items:center;border-radius:2px;color:var(--themed-color-toolbar-interactive-element-text-normal,#131722);cursor:default;display:flex;flex-shrink:0;height:34px;justify-content:center;margin-left:5px;width:34px}html.theme-dark .editIcon-e3jFxbHm{color:var(--themed-color-toolbar-interactive-element-text-normal,#d1d4dc)}@media (any-hover:hover){.editIcon-e3jFxbHm:hover{background-color:var(--themed-color-bg-primary-hover,#f0f3fa)}html.theme-dark .editIcon-e3jFxbHm:hover{background-color:var(--themed-color-bg-primary-hover,#2a2e39)}}.scrollable-Ycj0dUGE{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-Ycj0dUGE{min-height:auto}}@supports (-moz-appearance:none){.scrollable-Ycj0dUGE{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .scrollable-Ycj0dUGE{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.scrollable-Ycj0dUGE::-webkit-scrollbar{height:5px;width:5px}.scrollable-Ycj0dUGE::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollable-Ycj0dUGE::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollable-Ycj0dUGE::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollable-Ycj0dUGE::-webkit-scrollbar-corner{display:none}.tabs-Ycj0dUGE,.tabs-xNPrJ8dY{--ui-lib-underline-tabs-hor-padding:20px;padding:0 var(--ui-lib-underline-tabs-hor-padding)}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.titleWrap-e3jFxbHm{align-items:center;display:flex}.ellipsis-e3jFxbHm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hideInput-e3jFxbHm,.hideText-e3jFxbHm{height:0;visibility:hidden}.empty-e3jFxbHm{height:34px;margin-left:-3px;width:34px}.hideEmpty-e3jFxbHm{margin:0;width:0}.editIcon-e3jFxbHm{align-items:center;border-radius:2px;color:var(--themed-color-toolbar-interactive-element-text-normal,#131722);cursor:default;display:flex;flex-shrink:0;height:34px;justify-content:center;margin-right:5px;width:34px}html.theme-dark .editIcon-e3jFxbHm{color:var(--themed-color-toolbar-interactive-element-text-normal,#d1d4dc)}@media (any-hover:hover){.editIcon-e3jFxbHm:hover{background-color:var(--themed-color-bg-primary-hover,#f0f3fa)}html.theme-dark .editIcon-e3jFxbHm:hover{background-color:var(--themed-color-bg-primary-hover,#2a2e39)}}.scrollable-Ycj0dUGE{flex:1 1 auto;min-height:145px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}@media screen and (max-height:290px){.scrollable-Ycj0dUGE{min-height:auto}}@supports (-moz-appearance:none){.scrollable-Ycj0dUGE{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .scrollable-Ycj0dUGE{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}.scrollable-Ycj0dUGE::-webkit-scrollbar{height:5px;width:5px}.scrollable-Ycj0dUGE::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollable-Ycj0dUGE::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollable-Ycj0dUGE::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollable-Ycj0dUGE::-webkit-scrollbar-corner{display:none}.tabs-Ycj0dUGE,.tabs-xNPrJ8dY{--ui-lib-underline-tabs-hor-padding:20px;padding:0 var(--ui-lib-underline-tabs-hor-padding)}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2264],{68976:t=>{t.exports={button:"button-D4RPB3ZC",content:"content-D4RPB3ZC",iconOnly:"iconOnly-D4RPB3ZC",link:"link-D4RPB3ZC",brand:"brand-D4RPB3ZC",primary:"primary-D4RPB3ZC",secondary:"secondary-D4RPB3ZC",gray:"gray-D4RPB3ZC",green:"green-D4RPB3ZC",red:"red-D4RPB3ZC",black:"black-D4RPB3ZC","black-friday":"black-friday-D4RPB3ZC","cyber-monday":"cyber-monday-D4RPB3ZC",xsmall:"xsmall-D4RPB3ZC",startIconWrap:"startIconWrap-D4RPB3ZC",endIconWrap:"endIconWrap-D4RPB3ZC",withStartIcon:"withStartIcon-D4RPB3ZC",withEndIcon:"withEndIcon-D4RPB3ZC",small:"small-D4RPB3ZC",medium:"medium-D4RPB3ZC",large:"large-D4RPB3ZC",xlarge:"xlarge-D4RPB3ZC",animated:"animated-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC",adjustPosition:"adjustPosition-D4RPB3ZC",firstRow:"firstRow-D4RPB3ZC",firstCol:"firstCol-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC",textWrap:"textWrap-D4RPB3ZC",multilineContent:"multilineContent-D4RPB3ZC",secondaryText:"secondaryText-D4RPB3ZC",primaryText:"primaryText-D4RPB3ZC"}},74581:t=>{t.exports={container:"container-WDZ0PRNh","container-xxsmall":"container-xxsmall-WDZ0PRNh","container-xsmall":"container-xsmall-WDZ0PRNh","container-small":"container-small-WDZ0PRNh","container-medium":"container-medium-WDZ0PRNh","container-large":"container-large-WDZ0PRNh","intent-default":"intent-default-WDZ0PRNh",focused:"focused-WDZ0PRNh",readonly:"readonly-WDZ0PRNh",disabled:"disabled-WDZ0PRNh","with-highlight":"with-highlight-WDZ0PRNh",grouped:"grouped-WDZ0PRNh","adjust-position":"adjust-position-WDZ0PRNh","first-row":"first-row-WDZ0PRNh","first-col":"first-col-WDZ0PRNh",stretch:"stretch-WDZ0PRNh","font-size-medium":"font-size-medium-WDZ0PRNh","font-size-large":"font-size-large-WDZ0PRNh","no-corner-top-left":"no-corner-top-left-WDZ0PRNh","no-corner-top-right":"no-corner-top-right-WDZ0PRNh","no-corner-bottom-right":"no-corner-bottom-right-WDZ0PRNh","no-corner-bottom-left":"no-corner-bottom-left-WDZ0PRNh","size-xxsmall":"size-xxsmall-WDZ0PRNh","size-xsmall":"size-xsmall-WDZ0PRNh","size-small":"size-small-WDZ0PRNh","size-medium":"size-medium-WDZ0PRNh","size-large":"size-large-WDZ0PRNh","intent-success":"intent-success-WDZ0PRNh","intent-warning":"intent-warning-WDZ0PRNh","intent-danger":"intent-danger-WDZ0PRNh","intent-primary":"intent-primary-WDZ0PRNh","border-none":"border-none-WDZ0PRNh","border-thin":"border-thin-WDZ0PRNh","border-thick":"border-thick-WDZ0PRNh",highlight:"highlight-WDZ0PRNh",shown:"shown-WDZ0PRNh"}},81329:t=>{t.exports={"inner-slot":"inner-slot-W53jtLjw",interactive:"interactive-W53jtLjw",icon:"icon-W53jtLjw","inner-middle-slot":"inner-middle-slot-W53jtLjw","before-slot":"before-slot-W53jtLjw","after-slot":"after-slot-W53jtLjw"}},55315:t=>{t.exports={input:"input-RUSovanF","size-xxsmall":"size-xxsmall-RUSovanF",
|
|
||||||
"size-xsmall":"size-xsmall-RUSovanF","size-small":"size-small-RUSovanF","size-medium":"size-medium-RUSovanF","size-large":"size-large-RUSovanF","with-start-slot":"with-start-slot-RUSovanF","with-end-slot":"with-end-slot-RUSovanF"}},60903:t=>{t.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-PhMf7PhQ",submitButton:"submitButton-PhMf7PhQ",buttons:"buttons-PhMf7PhQ"}},1255:t=>{t.exports={errors:"errors-UKx97h9K",show:"show-UKx97h9K",error:"error-UKx97h9K","visually-hidden":"visually-hidden-UKx97h9K"}},84847:t=>{t.exports={"error-icon":"error-icon-UhKAouIg","intent-danger":"intent-danger-UhKAouIg","intent-warning":"intent-warning-UhKAouIg"}},3378:t=>{t.exports={"static-messages":"static-messages-cF4vS9J8",errors:"errors-cF4vS9J8",warnings:"warnings-cF4vS9J8","success-mesages":"success-mesages-cF4vS9J8","input-description":"input-description-cF4vS9J8",message:"message-cF4vS9J8"}},94720:(t,e,n)=>{"use strict";var r,o,s;function a(t="default"){switch(t){case"default":return"primary";case"stroke":return"secondary"}}function i(t="primary"){switch(t){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function l(t="m"){switch(t){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}n.d(e,{Button:()=>D}),function(t){t.Primary="primary",t.Success="success",t.Default="default",t.Danger="danger"}(r||(r={})),function(t){t.Small="s",t.Medium="m",t.Large="l"}(o||(o={})),function(t){t.Default="default",t.Stroke="stroke"}(s||(s={}));var c=n(50959),u=n(97754),h=n(95604),d=n(9745),m=n(68976),p=n.n(m);const g="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text apply-common-tooltip";function f(t){const{color:e="brand",size:n="medium",variant:r="primary",stretch:o=!1,icon:s,startIcon:a,endIcon:i,iconOnly:l=!1,className:c,isGrouped:d,cellState:m,disablePositionAdjustment:f=!1,primaryText:b,secondaryText:v,isAnchor:R=!1}=t,w=function(t){let e="";return 0!==t&&(1&t&&(e=u(e,p()["no-corner-top-left"])),2&t&&(e=u(e,p()["no-corner-top-right"])),4&t&&(e=u(e,p()["no-corner-bottom-right"])),8&t&&(e=u(e,p()["no-corner-bottom-left"]))),e}((0,h.getGroupCellRemoveRoundBorders)(m));return u(c,p().button,p()[n],p()[e],p()[r],o&&p().stretch,(s||a)&&p().withStartIcon,i&&p().withEndIcon,l&&p().iconOnly,w,d&&p().grouped,d&&!f&&p().adjustPosition,d&&m.isTop&&p().firstRow,d&&m.isLeft&&p().firstCol,b&&v&&p().multilineContent,R&&p().link,g)}function b(t){const{startIcon:e,icon:n,iconOnly:r,children:o,endIcon:s,primaryText:a,secondaryText:i}=t,l=null!=e?e:n,h=!(e||n||s||r)&&!o&&a&&i;return c.createElement(c.Fragment,null,l&&c.createElement(d.Icon,{icon:l,className:p().startIconWrap}),o&&c.createElement("span",{className:p().content},o),s&&!r&&c.createElement(d.Icon,{icon:s,className:p().endIconWrap}),h&&function(t){return t.primaryText&&t.secondaryText&&c.createElement("div",{className:u(p().textWrap,g)},c.createElement("span",{className:p().primaryText
|
|
||||||
}," ",t.primaryText," "),"string"==typeof t.secondaryText?c.createElement("span",{className:p().secondaryText}," ",t.secondaryText," "):c.createElement("span",{className:p().secondaryText},c.createElement("span",null,t.secondaryText.firstLine),c.createElement("span",null,t.secondaryText.secondLine)))}(t))}var v=n(34094),R=n(86332),w=n(90186);function C(t){const{className:e,color:n,variant:r,size:o,stretch:s,animated:a,icon:i,iconOnly:l,startIcon:c,endIcon:u,primaryText:h,secondaryText:d,...m}=t;return{...m,...(0,w.filterDataProps)(t),...(0,w.filterAriaProps)(t)}}function P(t){const{reference:e,tooltipText:n,...r}=t,{isGrouped:o,cellState:s,disablePositionAdjustment:a}=(0,c.useContext)(R.ControlGroupContext),i=f({...r,isGrouped:o,cellState:s,disablePositionAdjustment:a});return c.createElement("button",{...C(r),className:i,ref:e,"data-overflow-tooltip-text":null!=n?n:t.primaryText?[t.primaryText,t.secondaryText].join(" "):(0,v.getTextForTooltip)(t.children)},c.createElement(b,{...r}))}n(78572);function y(t){const{intent:e,size:n,appearance:r,useFullWidth:o,icon:s,...c}=t;return{...c,color:i(e),size:l(n),variant:a(r),stretch:o,startIcon:s}}function D(t){return c.createElement(P,{...y(t)})}},95604:(t,e,n)=>{"use strict";function r(t){let e=0;return t.isTop&&t.isLeft||(e+=1),t.isTop&&t.isRight||(e+=2),t.isBottom&&t.isLeft||(e+=8),t.isBottom&&t.isRight||(e+=4),e}n.d(e,{getGroupCellRemoveRoundBorders:()=>r})},67029:(t,e,n)=>{"use strict";n.d(e,{ControlSkeleton:()=>v,InputClasses:()=>g});var r=n(50959),o=n(97754),s=n(50151),a=n(38528),i=n(90186),l=n(86332),c=n(95604);var u=n(74581),h=n.n(u);function d(t){let e="";return 0!==t&&(1&t&&(e=o(e,h()["no-corner-top-left"])),2&t&&(e=o(e,h()["no-corner-top-right"])),4&t&&(e=o(e,h()["no-corner-bottom-right"])),8&t&&(e=o(e,h()["no-corner-bottom-left"]))),e}function m(t,e,n,r){const{removeRoundBorder:s,className:a,intent:i="default",borderStyle:l="thin",size:u,highlight:m,disabled:p,readonly:g,stretch:f,noReadonlyStyles:b,isFocused:v}=t,R=d(null!=s?s:(0,c.getGroupCellRemoveRoundBorders)(n));return o(h().container,h()[`container-${u}`],h()[`intent-${i}`],h()[`border-${l}`],u&&h()[`size-${u}`],R,m&&h()["with-highlight"],p&&h().disabled,g&&!b&&h().readonly,v&&h().focused,f&&h().stretch,e&&h().grouped,!r&&h()["adjust-position"],n.isTop&&h()["first-row"],n.isLeft&&h()["first-col"],a)}function p(t,e,n){const{highlight:r,highlightRemoveRoundBorder:s}=t;if(!r)return h().highlight;const a=d(null!=s?s:(0,c.getGroupCellRemoveRoundBorders)(e));return o(h().highlight,h().shown,h()[`size-${n}`],a)}const g={FontSizeMedium:(0,s.ensureDefined)(h()["font-size-medium"]),FontSizeLarge:(0,s.ensureDefined)(h()["font-size-large"])},f={passive:!1};function b(t,e){const{style:n,id:o,role:s,onFocus:c,onBlur:u,onMouseOver:h,onMouseOut:d,onMouseDown:g,onMouseUp:b,onKeyDown:v,onClick:R,tabIndex:w,startSlot:C,middleSlot:P,endSlot:y,onWheel:D,onWheelNoPassive:x=null,size:E}=t,{isGrouped:S,cellState:B,disablePositionAdjustment:W=!1}=(0,r.useContext)(l.ControlGroupContext),N=function(t,e=null,n){const o=(0,
|
|
||||||
r.useRef)(null),s=(0,r.useRef)(null),a=(0,r.useCallback)((()=>{if(null===o.current||null===s.current)return;const[t,e,n]=s.current;null!==e&&o.current.addEventListener(t,e,n)}),[]),i=(0,r.useCallback)((()=>{if(null===o.current||null===s.current)return;const[t,e,n]=s.current;null!==e&&o.current.removeEventListener(t,e,n)}),[]),l=(0,r.useCallback)((t=>{i(),o.current=t,a()}),[]);return(0,r.useEffect)((()=>(s.current=[t,e,n],a(),i)),[t,e,n]),l}("wheel",x,f);return r.createElement("span",{style:n,id:o,role:s,className:m(t,S,B,W),tabIndex:w,ref:(0,a.useMergedRefs)([e,N]),onFocus:c,onBlur:u,onMouseOver:h,onMouseOut:d,onMouseDown:g,onMouseUp:b,onKeyDown:v,onClick:R,onWheel:D,...(0,i.filterDataProps)(t),...(0,i.filterAriaProps)(t)},C,P,y,r.createElement("span",{className:p(t,B,E)}))}b.displayName="ControlSkeleton";const v=r.forwardRef(b)},78274:(t,e,n)=>{"use strict";n.d(e,{AfterSlot:()=>u,EndSlot:()=>c,MiddleSlot:()=>l,StartSlot:()=>i});var r=n(50959),o=n(97754),s=n(81329),a=n.n(s);function i(t){const{className:e,interactive:n=!0,icon:s=!1,children:i}=t;return r.createElement("span",{className:o(a()["inner-slot"],n&&a().interactive,s&&a().icon,e)},i)}function l(t){const{className:e,children:n}=t;return r.createElement("span",{className:o(a()["inner-slot"],a()["inner-middle-slot"],e)},n)}function c(t){const{className:e,interactive:n=!0,icon:s=!1,children:i}=t;return r.createElement("span",{className:o(a()["inner-slot"],n&&a().interactive,s&&a().icon,e)},i)}function u(t){const{className:e,children:n}=t;return r.createElement("span",{className:o(a()["after-slot"],e)},n)}},31261:(t,e,n)=>{"use strict";n.d(e,{InputControl:()=>v});var r=n(50959),o=n(97754),s=n(90186),a=n(47201),i=n(48907),l=n(38528),c=n(48027),u=n(29202),h=n(45812),d=n(67029),m=n(78274),p=n(55315),g=n.n(p);function f(t){return!(0,s.isAriaAttribute)(t)&&!(0,s.isDataAttribute)(t)}function b(t){const{id:e,title:n,role:a,tabIndex:i,placeholder:l,name:c,type:u,value:h,defaultValue:p,draggable:b,autoComplete:v,autoFocus:R,maxLength:w,min:C,max:P,step:y,pattern:D,inputMode:x,onSelect:E,onFocus:S,onBlur:B,onKeyDown:W,onKeyUp:N,onKeyPress:M,onChange:Z,onDragStart:A,size:I="small",className:F,inputClassName:k,disabled:T,readonly:z,containerTabIndex:_,startSlot:O,endSlot:L,reference:j,containerReference:K,onContainerFocus:U,...H}=t,G=(0,s.filterProps)(H,f),Y={...(0,s.filterAriaProps)(H),...(0,s.filterDataProps)(H),id:e,title:n,role:a,tabIndex:i,placeholder:l,name:c,type:u,value:h,defaultValue:p,draggable:b,autoComplete:v,autoFocus:R,maxLength:w,min:C,max:P,step:y,pattern:D,inputMode:x,onSelect:E,onFocus:S,onBlur:B,onKeyDown:W,onKeyUp:N,onKeyPress:M,onChange:Z,onDragStart:A};return r.createElement(d.ControlSkeleton,{...G,disabled:T,readonly:z,tabIndex:_,className:o(g().container,F),size:I,ref:K,onFocus:U,startSlot:O,middleSlot:r.createElement(m.MiddleSlot,null,r.createElement("input",{...Y,className:o(g().input,g()[`size-${I}`],k,O&&g()["with-start-slot"],L&&g()["with-end-slot"]),disabled:T,readOnly:z,ref:j})),endSlot:L})}function v(t){t=(0,c.useControl)(t)
|
|
||||||
;const{disabled:e,autoSelectOnFocus:n,tabIndex:o=0,onFocus:s,onBlur:d,reference:m,containerReference:p=null}=t,g=(0,r.useRef)(null),f=(0,r.useRef)(null),[v,R]=(0,u.useFocus)(),w=e?void 0:v?-1:o,C=e?void 0:v?o:-1,{isMouseDown:P,handleMouseDown:y,handleMouseUp:D}=(0,h.useIsMouseDown)(),x=(0,a.createSafeMulticastEventHandler)(R.onFocus,(function(t){n&&!P.current&&(0,i.selectAllContent)(t.currentTarget)}),s),E=(0,a.createSafeMulticastEventHandler)(R.onBlur,d),S=(0,r.useCallback)((t=>{g.current=t,m&&("function"==typeof m&&m(t),"object"==typeof m&&(m.current=t))}),[g,m]);return r.createElement(b,{...t,isFocused:v,containerTabIndex:w,tabIndex:C,onContainerFocus:function(t){f.current===t.target&&null!==g.current&&g.current.focus()},onFocus:x,onBlur:E,reference:S,containerReference:(0,l.useMergedRefs)([f,p]),onMouseDown:y,onMouseUp:D})}},48027:(t,e,n)=>{"use strict";n.d(e,{useControl:()=>s});var r=n(47201),o=n(29202);function s(t){const{onFocus:e,onBlur:n,intent:s,highlight:a,disabled:i}=t,[l,c]=(0,o.useFocus)(void 0,i),u=(0,r.createSafeMulticastEventHandler)(i?void 0:c.onFocus,e),h=(0,r.createSafeMulticastEventHandler)(i?void 0:c.onBlur,n);return{...t,intent:s||(l?"primary":"default"),highlight:null!=a?a:l,onFocus:u,onBlur:h}}},45812:(t,e,n)=>{"use strict";n.d(e,{useIsMouseDown:()=>o});var r=n(50959);function o(){const t=(0,r.useRef)(!1),e=(0,r.useCallback)((()=>{t.current=!0}),[t]),n=(0,r.useCallback)((()=>{t.current=!1}),[t]);return{isMouseDown:t,handleMouseDown:e,handleMouseUp:n}}},48907:(t,e,n)=>{"use strict";function r(t){null!==t&&t.setSelectionRange(0,t.value.length)}n.d(e,{selectAllContent:()=>r})},50182:(t,e,n)=>{"use strict";n.d(e,{AdaptiveConfirmDialog:()=>m});var r,o=n(50959),s=n(97754),a=n.n(s),i=n(94720),l=n(50151),c=n(11542),u=n(68335),h=n(79418),d=n(60903);!function(t){t.Submit="submit",t.Cancel="cancel",t.None="none"}(r||(r={}));class m extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:t,onSubmit:e,onCancel:n,onClose:r}=this.props;switch(t){case"submit":e();break;case"cancel":n()}r()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=t=>{const{onSubmit:e,submitButtonDisabled:n,submitOnEnterKey:r}=this.props;13===(0,u.hashFromEvent)(t)&&r&&(t.preventDefault(),n||e())}}render(){const{render:t,onClose:e,onSubmit:n,onCancel:r,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:l,submitOnEnterKey:c,...u}=this.props;return o.createElement(h.AdaptivePopupDialog,{...u,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,l.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return t=>{const{render:e,footerLeftRenderer:r,additionalButtons:s,submitButtonText:l,submitButtonDisabled:u,onSubmit:h,cancelButtonText:m,showCancelButton:p=!0,showSubmitButton:g=!0,submitButtonClassName:f,cancelButtonClassName:b,buttonsWrapperClassName:v}=this.props
|
|
||||||
;return o.createElement(o.Fragment,null,e(t),o.createElement("div",{className:d.footer},r&&r(t.isSmallWidth),o.createElement("div",{className:a()(d.buttons,v)},s,p&&o.createElement(i.Button,{className:b,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=m?m:c.t(null,void 0,n(4543))),g&&o.createElement("span",{className:d.submitButton},o.createElement(i.Button,{className:f,disabled:u,name:"submit",onClick:h,"data-name":"submit-button"},null!=l?l:c.t(null,void 0,n(19295)))))))}}}m.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},1405:(t,e,n)=>{"use strict";n.d(e,{anchors:()=>o});var r;n(50959);!function(t){t.Top="top",t.Bottom="bottom",t.TopRight="topRight"}(r||(r={}));const o={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},86623:(t,e,n)=>{"use strict";n.d(e,{FormInput:()=>c});var r=n(50959),o=n(31261),s=n(1140),a=n(78274),i=n(47201),l=n(38528);function c(t){var e;const{intent:n,onFocus:c,onBlur:u,onMouseOver:h,onMouseOut:d,containerReference:m=null,endSlot:p,hasErrors:g,hasWarnings:f,hasSuccessMessages:b,errors:v,warnings:R,successMessages:w,alwaysShowAttachedErrors:C,iconHidden:P,messagesPosition:y,messagesAttachment:D,customErrorsAttachment:x,messagesRoot:E,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:B,"aria-required":W,"aria-invalid":N,"aria-label":M,inputDescription:Z,...A}=t,I=(0,s.useControlValidationLayout)({hasErrors:g,hasWarnings:f,hasSuccessMessages:b,errors:v,warnings:R,successMessages:w,alwaysShowAttachedErrors:C,iconHidden:P,messagesPosition:y,messagesAttachment:D,customErrorsAttachment:x,messagesRoot:E,inheritMessagesWidthFromTarget:S,disableMessagesRtlStyles:B,inputDescription:Z}),F=(0,i.createSafeMulticastEventHandler)(c,I.onFocus),k=(0,i.createSafeMulticastEventHandler)(u,I.onBlur),T=(0,i.createSafeMulticastEventHandler)(h,I.onMouseOver),z=(0,i.createSafeMulticastEventHandler)(d,I.onMouseOut);return r.createElement(r.Fragment,null,r.createElement(o.InputControl,{...A,intent:null!==(e=I.intent)&&void 0!==e?e:n,onFocus:F,onBlur:k,onMouseOver:T,onMouseOut:z,containerReference:(0,l.useMergedRefs)([m,I.containerReference]),endSlot:r.createElement(r.Fragment,null,I.icon&&r.createElement(a.EndSlot,{icon:!0},I.icon),p),"aria-required":W,"aria-invalid":N,"aria-describedby":I.ariaIds,"aria-label":M}),I.renderedErrors)}},1140:(t,e,n)=>{"use strict";n.d(e,{MessagesPosition:()=>D,useControlValidationLayout:()=>A});var r=n(50959),o=n(97754);function s(t,e){(0,r.useEffect)((()=>(e&&e(t),()=>{e&&e(t)})),[])}var a=n(29202),i=n(70412),l=n(78274),c=n(1405),u=n(86431),h=n(32227);var d=n(1255),m=n(63273);class p extends r.PureComponent{render(){
|
|
||||||
const{children:t=[],show:e=!1,customErrorClass:n,disableRtlStyles:s,messageIdCallback:a}=this.props,i=o(d.errors,{[d.show]:e},n),l=t.map(((t,e)=>r.createElement(v,{key:e,messageIdCallback:a},t)));let c={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,m.isRtl)()&&!s){const{left:t,right:e}=c;c={...c,left:e,right:t}}return r.createElement("div",{style:c,className:i},l)}}const g=(0,u.makeOverlapable)((f=p,(b=class extends r.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=h.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return r.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},r.createElement(f,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:n,inheritWidthFromTarget:r=!0,inheritMaxWidthFromTarget:o=!1}=this.props,s={width:r?e.width:n,maxWidth:o?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":s.top=e.y;break;default:s[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":s.left=e.x;break;default:s[t.attachment.horizontal]=e.x}return s}return{}}_calcTargetProps(t,e,n){const r=t.getBoundingClientRect(),o=this._instanceElem.getBoundingClientRect(),s="parent"===this.props.root?this._getCoordsRelToParentEl(t,r):this._getCoordsRelToDocument(r);if(null===s)return null;const a=this._getDimensions(o),i=this._getDimensions(r).width;let l=0,c=0;switch(e.vertical){case"top":c=s[n.vertical];break;case"bottom":c=s[n.vertical]-a.height;break;case"middle":c=s[n.vertical]-a.height/2}switch(e.horizontal){case"left":
|
|
||||||
l=s[n.horizontal];break;case"right":l=s[n.horizontal]-a.width;break;case"center":l=s[n.horizontal]-a.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:i}}_getCoordsRelToDocument(t){const e=pageYOffset,n=pageXOffset,r=t.top+e,o=t.bottom+e,s=t.left+n;return{top:r,bottom:o,left:s,right:t.right+n,middle:(r+t.height)/2,center:s+t.width/2}}_getCoordsRelToParentEl(t,e){const n=t.offsetParent;if(null===n)return null;const r=n.scrollTop,o=n.scrollLeft,s=t.offsetTop+r,a=t.offsetLeft+o,i=e.width+a;return{top:s,bottom:e.height+s,left:a,right:i,middle:(s+e.height)/2,center:(a+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",b));var f,b;function v(t){const{children:e,messageIdCallback:n,...o}=t;return r.createElement("div",{...o,className:d.error},e)}function R(t){const{children:e,messageIdCallback:n,...o}=t,a=r.useId();return s(a,n),r.createElement("span",{...o,className:d["visually-hidden"],id:a},e)}var w=n(9745),C=n(16658),P=n(84847);function y(t){const{intent:e="danger"}=t;return r.createElement(w.Icon,{icon:C,className:o(P["error-icon"],P[`intent-${e}`])})}var D,x,E=n(3378);!function(t){t[t.Attached=0]="Attached",t[t.Static=1]="Static",t[t.Hidden=2]="Hidden"}(D||(D={})),function(t){t.Top="top",t.Bottom="bottom"}(x||(x={}));const S={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function B(t){const{isOpened:e,target:n,errorAttachment:o=x.Top,customErrorsAttachment:s,root:a="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:l,children:c,messageIdCallback:u}=t,{attachment:h,targetAttachment:d,attachmentOffsetY:m}=null!=s?s:S[o];return r.createElement(r.Fragment,null,r.createElement(g,{isOpened:e,target:n,root:a,inheritWidthFromTarget:i,attachment:h,targetAttachment:d,attachmentOffsetY:m,disableRtlStyles:l,messageIdCallback:u,inheritMaxWidthFromTarget:!0,show:!0},c),r.createElement(R,{messageIdCallback:u},c))}function W(t,e){return Boolean(t)&&void 0!==e&&e.length>0}function N(t,e,n){return t===D.Attached&&W(e,n)}function M(t,e,n){return t===D.Static&&W(e,n)}function Z(t,e,n){const{hasErrors:r,hasWarnings:o,hasSuccessMessages:s,alwaysShowAttachedErrors:a,iconHidden:i,errors:l,warnings:c,successMessages:u,messagesPosition:h=D.Static}=t,d=N(h,r,l),m=N(h,o,c),p=d&&(e||n||Boolean(a)),g=!p&&m&&(e||n),f=M(h,r,l),b=!f&&M(h,o,c),v=!f&&!b&&M(h,s,u),R=!i&&Boolean(r),w=!i&&!R&&Boolean(o),C=function(t,e,n){
|
|
||||||
return Boolean(n)?"success":Boolean(t)?"danger":Boolean(e)?"warning":void 0}(r,o,s);return{hasAttachedErrorMessages:d,hasAttachedWarningMessages:m,showAttachedErrorMessages:p,showAttachedWarningMessages:g,showStaticErrorMessages:f,showStaticWarningMessages:b,showStaticSuccessMessages:v,showErrorIcon:R,showWarningIcon:w,intent:C}}function A(t){var e,n,s,c;const{errors:u,warnings:h,successMessages:d,messagesAttachment:m,customErrorsAttachment:p,messagesRoot:g,inheritMessagesWidthFromTarget:f,disableMessagesRtlStyles:b,inputDescription:v}=t,[R,w]=(0,a.useFocus)(),[C,P]=(0,i.useHover)(),D=(0,r.useRef)(null),[x,S]=r.useState(void 0),W=(0,r.useRef)(new Map),N=r.useCallback((t=>{if(!t)return;const e=W.current;e.has(t)?e.delete(t):e.set(t,t),0!==e.size?S(Array.from(e.keys()).join(" ")):S(void 0)}),[S,W.current]),{hasAttachedErrorMessages:M,hasAttachedWarningMessages:A,showAttachedErrorMessages:F,showAttachedWarningMessages:k,showStaticErrorMessages:T,showStaticWarningMessages:z,showStaticSuccessMessages:_,showErrorIcon:O,showWarningIcon:L,intent:j}=Z(t,R,C),K=O||L?r.createElement(y,{intent:O?"danger":"warning"}):void 0,U=M?r.createElement(B,{errorAttachment:m,customErrorsAttachment:p,isOpened:F,target:D.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:b,children:u,messageIdCallback:N}):void 0,H=A?r.createElement(B,{errorAttachment:m,isOpened:k,target:D.current,root:g,inheritWidthFromTarget:f,disableRtlStyles:b,children:h,messageIdCallback:N}):void 0,G=T?r.createElement(l.AfterSlot,{className:o(E["static-messages"],E.errors)},null==u?void 0:u.map(((t,e)=>r.createElement(I,{key:e,messageIdCallback:N},t)))):void 0,Y=z?r.createElement(l.AfterSlot,{className:o(E["static-messages"],E.warnings)},null==h?void 0:h.map(((t,e)=>r.createElement(I,{key:e,messageIdCallback:N},t)))):void 0,$=_?r.createElement(l.AfterSlot,{className:o(E["static-messages"],E["success-mesages"])},null==d?void 0:d.map(((t,e)=>r.createElement(I,{key:e,messageIdCallback:N},t)))):void 0,J=!T&&!z&&!_&&v?r.createElement(l.AfterSlot,{className:o(E["static-messages"],E["input-description"])},r.createElement(I,{messageIdCallback:N},v)):void 0;return{ariaIds:x,icon:K,renderedErrors:null!==(c=null!==(s=null!==(n=null!==(e=null!=U?U:H)&&void 0!==e?e:G)&&void 0!==n?n:Y)&&void 0!==s?s:$)&&void 0!==c?c:J,containerReference:D,intent:j,...w,...P}}function I(t){const{children:e,messageIdCallback:n,...o}=t,a=r.useId();return s(a,n),r.createElement("span",{...o,className:E.message,"aria-live":"assertive",id:a},e)}},16658:t=>{t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 16A7 7 0 1 0 9 2a7 7 0 0 0 0 14Zm0 1A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM8 5a1 1 0 0 1 2 0v4a1 1 0 1 1-2 0V5Zm1 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'}}]);
|
|
||||||
1
charting_library/bundles/227.e853387b629051486a5f.css
Normal file
1
charting_library/bundles/227.e853387b629051486a5f.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.container-yrIMi47q{cursor:default;text-align:center;width:100%}.title-yrIMi47q{display:block;font-feature-settings:"tnum" on,"lnum" on;margin-bottom:12px;--ui-lib-typography-line-height:28px;--ui-lib-typography-font-size:24px;color:var(--color-text-primary);font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:700}.title-yrIMi47q,.title_normal-yrIMi47q{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:var(--ui-lib-typography-line-height)}.title_normal-yrIMi47q{font-feature-settings:"tnum" on,"lnum" on;font-style:normal;--ui-lib-typography-font-size:18px;font-size:var(--ui-lib-typography-font-size);font-weight:600;--ui-lib-typography-line-height:24px}.icon-yrIMi47q{display:inline-block;margin-bottom:16px}@media (max-height:440px) and (orientation:landscape){.icon-yrIMi47q{display:none}}.text-yrIMi47q{--ui-lib-typography-font-size:14px;--ui-lib-typography-line-height:18px;color:var(--color-text-primary);overflow-wrap:break-word}.text-yrIMi47q,.text_large-yrIMi47q{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:400;line-height:var(--ui-lib-typography-line-height)}.text_large-yrIMi47q{--ui-lib-typography-font-size:16px;--ui-lib-typography-line-height:24px}.action-yrIMi47q{margin-top:24px}.action-yrIMi47q,.errorCard-S9sXvhAu{display:flex;justify-content:center;width:100%}.errorCard-S9sXvhAu{align-items:center;box-sizing:border-box;flex-direction:column;height:100%;padding:12px}.errorCard__content-S9sXvhAu{max-height:100%;max-width:640px}.errorCard__icon-S9sXvhAu{color:var(--color-content-primary-neutral-bold)}.resizableErrorCard-S9sXvhAu{align-items:center;background:var(--backgroundColor,--color-background-primary-inverse);display:flex;height:100%;justify-content:center;overflow:hidden;width:100%}.errorCardRendererContainer-S9sXvhAu{--backgroundColor:initial;cursor:default;inset:0;position:absolute}.errorCardRendererContainer-S9sXvhAu:empty{visibility:hidden}.emptyStateBlock-S9sXvhAu{align-items:center;display:flex;flex-direction:column;justify-content:center}.emptyStateBlock__icon-S9sXvhAu{display:block}.emptyStateBlock__icon-S9sXvhAu:empty{display:none}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.container-yrIMi47q{cursor:default;text-align:center;width:100%}.title-yrIMi47q{display:block;font-feature-settings:"tnum" on,"lnum" on;margin-bottom:12px;--ui-lib-typography-line-height:28px;--ui-lib-typography-font-size:24px;color:var(--color-text-primary);font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:700}.title-yrIMi47q,.title_normal-yrIMi47q{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;line-height:var(--ui-lib-typography-line-height)}.title_normal-yrIMi47q{font-feature-settings:"tnum" on,"lnum" on;font-style:normal;--ui-lib-typography-font-size:18px;font-size:var(--ui-lib-typography-font-size);font-weight:600;--ui-lib-typography-line-height:24px}.icon-yrIMi47q{display:inline-block;margin-bottom:16px}@media (max-height:440px) and (orientation:landscape){.icon-yrIMi47q{display:none}}.text-yrIMi47q{--ui-lib-typography-font-size:14px;--ui-lib-typography-line-height:18px;color:var(--color-text-primary);overflow-wrap:break-word}.text-yrIMi47q,.text_large-yrIMi47q{font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-size:var(--ui-lib-typography-font-size);font-style:normal;font-weight:400;line-height:var(--ui-lib-typography-line-height)}.text_large-yrIMi47q{--ui-lib-typography-font-size:16px;--ui-lib-typography-line-height:24px}.action-yrIMi47q{margin-top:24px}.action-yrIMi47q,.errorCard-S9sXvhAu{display:flex;justify-content:center;width:100%}.errorCard-S9sXvhAu{align-items:center;box-sizing:border-box;flex-direction:column;height:100%;padding:12px}.errorCard__content-S9sXvhAu{max-height:100%;max-width:640px}.errorCard__icon-S9sXvhAu{color:var(--color-content-primary-neutral-bold)}.resizableErrorCard-S9sXvhAu{align-items:center;background:var(--backgroundColor,--color-background-primary-inverse);display:flex;height:100%;justify-content:center;overflow:hidden;width:100%}.errorCardRendererContainer-S9sXvhAu{--backgroundColor:initial;cursor:default;inset:0;position:absolute}.errorCardRendererContainer-S9sXvhAu:empty{visibility:hidden}.emptyStateBlock-S9sXvhAu{align-items:center;display:flex;flex-direction:column;justify-content:center}.emptyStateBlock__icon-S9sXvhAu{display:block}.emptyStateBlock__icon-S9sXvhAu:empty{display:none}
|
||||||
1
charting_library/bundles/2414.6707a4012bf5cd2d92e6.css
Normal file
1
charting_library/bundles/2414.6707a4012bf5cd2d92e6.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
5
charting_library/bundles/2428.c57b4cba6ae1ac836d88.js
Normal file
5
charting_library/bundles/2428.c57b4cba6ae1ac836d88.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2428],{14405:(e,t,n)=>{n.r(t),n.d(t,{getCoordinateXMetaInfo:()=>g,getCoordinateYMetaInfo:()=>P,getCoordinatesPropertiesDefinitions:()=>T,getSelectionCoordinatesPropertyDefinition:()=>C});var i=n(85842),o=n(85728),r=n(91599),l=n(72769),s=n(9840),a=n(1479);class d extends a.UndoCommand{constructor({lineToolId:e,chartModel:t,newPositionPoints:n}){super(null),this._pointState=null,this._lineToolId=e,this._model=t,this._newPositionPoints=n}redo(){const e=(0,i.ensureNotNull)(this._model.dataSourceForId(this._lineToolId));this._pointState=[e.normalizedPoints(),e.points()],e.startChanging(),e.moveLineTool(this._newPositionPoints),this._model.updateSource(e),e.updateAllViews((0,s.sourceChangeEvent)(e.id())),e.syncMultichartState(e.endChanging(!0,!1))}undo(){if(this._pointState){const e=(0,i.ensureNotNull)(this._model.dataSourceForId(this._lineToolId));e.startChanging(),e.restorePoints(...this._pointState),this._model.updateSource(e),e.updateAllViews((0,s.sourceChangeEvent)(e.id())),e.syncMultichartState(e.endChanging(!0,!1))}}}var c=n(73405),p=n(89659),u=n(22384),h=n(42897);const y=-5e4,m=15e3,w=new l.TranslatedString("change price Y coordinate",r.t(null,void 0,n(95218))),f=new l.TranslatedString("change bar X coordinate",r.t(null,void 0,n(87971))),v=new l.TranslatedString("move drawings",r.t(null,void 0,n(70819)));function P(e,t,n){return{property:(0,c.convertToDefinitionProperty)(e,t.price,w),info:{typeY:1,stepY:n}}}function g(e,t){return{property:(0,c.convertToDefinitionProperty)(e,t.bar,null,void 0,(n=>{n!==t.bar.value()&&e.setProperty(t.bar,(0,o.clamp)(n,y,m),f)})),info:{typeX:0,stepX:new p.WatchedValue(1)}}}function T(e,t,n,i,o,r){const l=g(e,t),s=P(e,t,i);return(0,c.createCoordinatesPropertyDefinition)({x:l.property,y:s.property},{id:(0,h.removeSpaces)(`${r}Coordinates${o}`),title:o,...l.info,...s.info})}const b=/^([+*\-\/]?)((?:\d*)|(?:\d+\.\d*))$/;function S(e,t,n){const o=new u.Property(""),r=(0,c.makeProxyDefinitionProperty)(o.weakReference());return r.setValue=r=>{try{const o=r.match(b);if(!o)return;const[,l,s]=o;if(!s.length)return;const a=n(parseFloat(s));if("/"===l&&(0===a.price||0===a.index))return;t.withMacro(v,(()=>{e.filter((e=>!e.isSourceHidden())).forEach((e=>{const n=e.points();let o;switch(l){case"":{const e=(0,i.ensureDefined)(n[0]);let{index:t=e.index,price:r=e.price}=a;r-=e.price,t-=e.index,o=n.map((e=>({...e,index:e.index+t,price:e.price+r})));break}case"-":case"+":{let{index:e=0,price:t=0}=a;"-"===l&&(e*=-1,t*=-1),o=n.map((n=>({...n,index:n.index+e,price:n.price+t})));break}case"*":{const{index:e=1,price:t=1}=a;o=n.map((n=>({...n,index:n.index*e,price:n.price*t})));break}case"/":{const{index:e=1,price:t=1}=a;o=n.map((n=>({...n,index:n.index/e,price:n.price/t})));break}}t.undoHistory().pushUndoCommand(new d({lineToolId:e.id(),chartModel:t.model(),newPositionPoints:o}))}))}))}finally{o.setValue("",!0)}},r}function C(e,t){const i=S(e,t,(e=>({index:e}))),o=S(e,t,(e=>({price:e})));return(0,
|
||||||
|
c.createSelectionCoordinatesPropertyDefinition)({x:i,y:o},{id:"SourcesCoordinates",title:r.t(null,void 0,n(36666)),mathOperationsX:"+",mathOperationsY:"+/*",modeX:"integer",modeY:"float"})}},5258:(e,t,n)=>{n.r(t),n.d(t,{getIntervalsVisibilitiesPropertiesDefinitions:()=>ae,getSelectionIntervalsVisibilitiesPropertiesDefinition:()=>de});var i=n(91599),o=n(72769),r=n(73405),l=n(89659),s=n(77555),a=n(47778),d=n(33993),c=n(92401);const p=new o.TranslatedString("change {title} visibility on ticks",i.t(null,void 0,n(51732))),u=new o.TranslatedString("change {title} visibility on seconds",i.t(null,void 0,n(4910))),h=new o.TranslatedString("change {title} seconds from",i.t(null,void 0,n(34736))),y=new o.TranslatedString("change {title} seconds to",i.t(null,void 0,n(82723))),m=new o.TranslatedString("change {title} visibility on minutes",i.t(null,void 0,n(3879))),w=new o.TranslatedString("change {title} minutes from",i.t(null,void 0,n(31281))),f=new o.TranslatedString("change {title} minutes to",i.t(null,void 0,n(12570))),v=new o.TranslatedString("change {title} visibility on hours",i.t(null,void 0,n(41369))),P=new o.TranslatedString("change {title} hours from",i.t(null,void 0,n(31657))),g=new o.TranslatedString("change {title} hours to",i.t(null,void 0,n(76212))),T=new o.TranslatedString("change {title} visibility on days",i.t(null,void 0,n(92284))),b=new o.TranslatedString("change {title} days from",i.t(null,void 0,n(3901))),S=new o.TranslatedString("change {title} days to",i.t(null,void 0,n(70790))),C=new o.TranslatedString("change {title} visibility on weeks",i.t(null,void 0,n(7662))),k=new o.TranslatedString("change {title} weeks from",i.t(null,void 0,n(75220))),V=new o.TranslatedString("change {title} weeks to",i.t(null,void 0,n(14204))),W=new o.TranslatedString("change {title} visibility on months",i.t(null,void 0,n(91395))),D=new o.TranslatedString("change {title} months from",i.t(null,void 0,n(78990))),_=new o.TranslatedString("change {title} months to",i.t(null,void 0,n(23882))),x=(new o.TranslatedString("change {title} visibility on ranges",i.t(null,{replace:{ranges:"ranges"}},n(14065))),
|
||||||
|
i.t(null,void 0,n(70243))),U=i.t(null,void 0,n(54814)),I=i.t(null,void 0,n(26671)),M=i.t(null,void 0,n(26403)),L=i.t(null,void 0,n(30721)),F=i.t(null,void 0,n(51728)),A=i.t(null,void 0,n(95337)),R=new o.TranslatedString("ticks",i.t(null,void 0,n(55569))),N=new o.TranslatedString("seconds",i.t(null,void 0,n(32660))),E=new o.TranslatedString("seconds from",i.t(null,void 0,n(10470))),X=new o.TranslatedString("seconds to",i.t(null,void 0,n(49557))),Y=new o.TranslatedString("minutes",i.t(null,void 0,n(81701))),H=new o.TranslatedString("minutes from",i.t(null,void 0,n(72399))),j=new o.TranslatedString("minutes to",i.t(null,void 0,n(74356))),$=new o.TranslatedString("hours",i.t(null,void 0,n(92113))),O=new o.TranslatedString("hours from",i.t(null,void 0,n(87376))),z=new o.TranslatedString("hours to",i.t(null,void 0,n(30949))),q=new o.TranslatedString("days",i.t(null,void 0,n(27529))),B=new o.TranslatedString("days from",i.t(null,void 0,n(2051))),G=new o.TranslatedString("days to",i.t(null,void 0,n(13096))),J=new o.TranslatedString("weeks",i.t(null,void 0,n(56398))),K=new o.TranslatedString("weeks from",i.t(null,void 0,n(39142))),Q=new o.TranslatedString("weeks to",i.t(null,void 0,n(20786))),Z=new o.TranslatedString("months",i.t(null,void 0,n(94355))),ee=new o.TranslatedString("months from",i.t(null,void 0,n(92656))),te=new o.TranslatedString("months to",i.t(null,void 0,n(35600))),ne=(new o.TranslatedString("ranges","ranges"),[1,59]),ie=[1,59],oe=[1,24],re=[1,366],le=[1,52],se=[1,12];function ae(e,t,n){const i=[];if((0,a.isTicksEnabled)()){const o=(0,r.createCheckablePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.ticks,p.format({title:n}))},{id:"IntervalsVisibilitiesTicks",title:x});i.push(o)}if((0,s.isSecondsEnabled)()){const o=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.seconds,u.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.secondsFrom,h.format({title:n})),to:(0,r.convertToDefinitionProperty)(e,t.secondsTo,y.format({title:n}))},{id:"IntervalsVisibilitiesSecond",title:U,min:new l.WatchedValue(ne[0]),max:new l.WatchedValue(ne[1])});i.push(o)}const o=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.minutes,m.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.minutesFrom,w.format({title:n})),to:(0,r.convertToDefinitionProperty)(e,t.minutesTo,f.format({title:n}))},{id:"IntervalsVisibilitiesMinutes",title:I,min:new l.WatchedValue(ie[0]),max:new l.WatchedValue(ie[1])}),d=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.hours,v.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.hoursFrom,P.format({title:n})),to:(0,r.convertToDefinitionProperty)(e,t.hoursTo,g.format({title:n}))},{id:"IntervalsVisibilitiesHours",title:M,min:new l.WatchedValue(oe[0]),max:new l.WatchedValue(oe[1])}),c=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.days,T.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.daysFrom,b.format({title:n})),to:(0,
|
||||||
|
r.convertToDefinitionProperty)(e,t.daysTo,S.format({title:n}))},{id:"IntervalsVisibilitiesDays",title:L,min:new l.WatchedValue(re[0]),max:new l.WatchedValue(re[1])});i.push(o,d,c);const R=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.weeks,C.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.weeksFrom,k.format({title:n})),to:(0,r.convertToDefinitionProperty)(e,t.weeksTo,V.format({title:n}))},{id:"IntervalsVisibilitiesWeeks",title:F,min:new l.WatchedValue(le[0]),max:new l.WatchedValue(le[1])}),N=(0,r.createRangePropertyDefinition)({checked:(0,r.convertToDefinitionProperty)(e,t.months,W.format({title:n})),from:(0,r.convertToDefinitionProperty)(e,t.monthsFrom,D.format({title:n})),to:(0,r.convertToDefinitionProperty)(e,t.monthsTo,_.format({title:n}))},{id:"IntervalsVisibilitiesMonths",title:A,min:new l.WatchedValue(se[0]),max:new l.WatchedValue(se[1])});return i.push(R,N),{definitions:i}}function de(e,t){const n=[];if((0,a.isTicksEnabled)()){const i=(0,r.createCheckablePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.ticks),R,t)},{id:"IntervalsVisibilitiesTicks",title:x});n.push(i)}if((0,s.isSecondsEnabled)()){const i=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.seconds),N,t),from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.secondsFrom),E,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.secondsTo),X,t)},{id:"IntervalsVisibilitiesSecond",title:U,min:new l.WatchedValue(ne[0]),max:new l.WatchedValue(ne[1])});n.push(i)}const i=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.minutes),Y,t),from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.minutesFrom),H,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.minutesTo),j,t)},{id:"IntervalsVisibilitiesMinutes",title:I,min:new l.WatchedValue(ie[0]),max:new l.WatchedValue(ie[1])}),o=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.hours),$,t),from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.hoursFrom),O,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.hoursTo),z,t)},{id:"IntervalsVisibilitiesHours",title:M,min:new l.WatchedValue(oe[0]),max:new l.WatchedValue(oe[1])}),p=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.days),q,t),from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.daysFrom),B,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.daysTo),G,t)},{id:"IntervalsVisibilitiesDays",title:L,min:new l.WatchedValue(re[0]),max:new l.WatchedValue(re[1])});n.push(i,o,p);const u=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.weeks),J,t),
|
||||||
|
from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.weeksFrom),K,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.weeksTo),Q,t)},{id:"IntervalsVisibilitiesWeeks",title:F,min:new l.WatchedValue(le[0]),max:new l.WatchedValue(le[1])}),h=(0,r.createRangePropertyDefinition)({checked:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.months),Z,t),from:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.monthsFrom),ee,t),to:new c.CollectiblePropertyUndoWrapper(new d.LineToolCollectedProperty(e.monthsTo),te,t)},{id:"IntervalsVisibilitiesMonths",title:A,min:new l.WatchedValue(se[0]),max:new l.WatchedValue(se[1])});return n.push(u,h),{definitions:n}}},92401:(e,t,n)=>{n.d(t,{CollectiblePropertyUndoWrapper:()=>a});var i=n(85842),o=n(91599),r=n(72769),l=n(22384);const s=new r.TranslatedString("change {propertyName} property",o.t(null,void 0,n(3327)));class a extends l.Property{constructor(e,t,n){super(),this._isProcess=!1,this._listenersMappers=[],this._valueApplier={applyValue:(e,t)=>{this._propertyApplier.setProperty(e,t,s)}},this._baseProperty=e,this._propertyApplier=n,this._propertyName=t}destroy(){this._baseProperty.destroy(),super.destroy()}value(){return this._baseProperty.value()}setValue(e,t){this._propertyApplier.beginUndoMacro(s.format({propertyName:this._propertyName})),this._isProcess=!0,this._baseProperty.setValue(e,void 0,this._valueApplier),this._isProcess=!1,this._propertyApplier.endUndoMacro(),this._listenersMappers.forEach((e=>{e.method.call(e.obj,this,"")}))}subscribe(e,t){const n=()=>{this._isProcess||t.call(e,this,"")};this._listenersMappers.push({obj:e,method:t,callback:n}),this._baseProperty.subscribe(e,n)}unsubscribe(e,t){const n=(0,i.ensureDefined)(this._listenersMappers.find((n=>n.obj===e&&n.method===t))?.callback);this._baseProperty.unsubscribe(e,n)}unsubscribeAll(e){this._baseProperty.unsubscribeAll(e)}}},78379:(e,t,n)=>{n.d(t,{PropertyApplierWithoutSavingChart:()=>o});var i=n(34773);class o{constructor(e){this._undoModelSupplier=e}setProperty(e,t,n){this._undoModelSupplier().setProperty(e,t,n,i.lineToolsDoNotAffectChartInvalidation)}beginUndoMacro(e){return this._undoModelSupplier().beginUndoMacro(e)}endUndoMacro(){this._undoModelSupplier().endUndoMacro()}setWatchedValue(e,t,n){this._undoModelSupplier().undoHistory().setWatchedValue(e,t,n,i.lineToolsDoNotAffectChartInvalidation)}}}}]);
|
||||||
1
charting_library/bundles/2593.6a08fc3d7286497dfb5c.css
Normal file
1
charting_library/bundles/2593.6a08fc3d7286497dfb5c.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
.menuWrap-Kq3ruQo8{background-color:var(--tv-color-popup-background,var(--themed-color-popup-background,#fff));border-radius:6px;box-shadow:0 2px 4px var(--themed-color-shadow-primary-neutral-extra-heavy,#0003);box-sizing:border-box;min-height:50px;text-align:left;-webkit-user-select:none;user-select:none;z-index:100}html.theme-dark .menuWrap-Kq3ruQo8{background-color:var(--tv-color-popup-background,var(--themed-color-popup-background,#1e222d));box-shadow:0 2px 4px var(--themed-color-shadow-primary-neutral-extra-heavy,#0006)}.menuWrap-Kq3ruQo8.isMeasuring-Kq3ruQo8{opacity:0;pointer-events:none;position:fixed;visibility:hidden}.menuWrap-Kq3ruQo8:focus{outline:none}.scrollWrap-Kq3ruQo8{height:100%;overflow-x:hidden;overflow-y:auto}.scrollWrap-Kq3ruQo8.momentumBased-Kq3ruQo8{-webkit-overflow-scrolling:touch}.scrollWrap-Kq3ruQo8::-webkit-scrollbar{height:5px;width:5px}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollWrap-Kq3ruQo8::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-corner{display:none}.menuBox-Kq3ruQo8{padding:6px 0}.isHidden-Kq3ruQo8{display:none}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.menuWrap-Kq3ruQo8{background-color:var(--tv-color-popup-background,var(--themed-color-popup-background,#fff));border-radius:6px;box-shadow:0 2px 4px var(--themed-color-shadow-primary-neutral-extra-heavy,#0003);box-sizing:border-box;min-height:50px;text-align:right;-webkit-user-select:none;user-select:none;z-index:100}html.theme-dark .menuWrap-Kq3ruQo8{background-color:var(--tv-color-popup-background,var(--themed-color-popup-background,#1e222d));box-shadow:0 2px 4px var(--themed-color-shadow-primary-neutral-extra-heavy,#0006)}.menuWrap-Kq3ruQo8.isMeasuring-Kq3ruQo8{opacity:0;pointer-events:none;position:fixed;visibility:hidden}.menuWrap-Kq3ruQo8:focus{outline:none}.scrollWrap-Kq3ruQo8{height:100%;overflow-x:hidden;overflow-y:auto}.scrollWrap-Kq3ruQo8.momentumBased-Kq3ruQo8{-webkit-overflow-scrolling:touch}.scrollWrap-Kq3ruQo8::-webkit-scrollbar{height:5px;width:5px}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .scrollWrap-Kq3ruQo8::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.scrollWrap-Kq3ruQo8::-webkit-scrollbar-corner{display:none}.menuBox-Kq3ruQo8{padding:6px 0}.isHidden-Kq3ruQo8{display:none}
|
|
||||||
1
charting_library/bundles/2735.d3a42cd87bec87c05a65.css
Normal file
1
charting_library/bundles/2735.d3a42cd87bec87c05a65.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
charting_library/bundles/2736.0a918284704d00f41592.js
Normal file
7
charting_library/bundles/2736.0a918284704d00f41592.js
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2736],{33578:(t,e,i)=>{function o(t,e){return(t&e)===e}i.d(e,{isPlotVisible:()=>o})},54025:(t,e,i)=>{function o(t,e){if(null===t)return e;const i=t.firstIndex,o=e.firstIndex,s=t.clearData||e.clearData;return{firstIndex:s||void 0===i||void 0===o?void 0:Math.min(i,o),clearData:s}}i.d(e,{mergeDataInvalidation:()=>o})},53598:(t,e,i)=>{var o;function s(t){t.lineWidth=void 0,t.lineStyle=void 0;for(let e=0;e<t.colors.length;e++)t.colors[e]=void 0;return t}function n(){return{colors:[void 0,void 0,void 0,void 0,void 0,void 0,void 0],lineWidth:void 0,lineStyle:void 0}}i.d(e,{clearStyle:()=>s,createEmptyStyle:()=>n}),function(t){t[t.Main=0]="Main",t[t.Background=1]="Background",t[t.Text=2]="Text",t[t.Border=3]="Border",t[t.Wick=4]="Wick",t[t.Up=5]="Up",t[t.Down=6]="Down"}(o||(o={}))},24561:(t,e,i)=>{i.d(e,{StudyPlotPaneView:()=>k});var o=i(85842),s=i(55482),n=i(7321),l=i(16905),r=i(85728),a=i(82347),d=i(29142);function c(t,e){const i=new Map;return function(...o){const s=""+(e?e.apply(null,o):o[0]);if(!i.has(s)){const e=t.apply(this,o);return i.set(s,e),e}return i.get(s)}}var h,u=i(18974),_=i(99680),p=i(4111),m=i(71412),f=i(71367),y=i(53598),g=i(57415),v=i(72244),I=i(83077),S=i(57507),P=i(45958);!function(t){t[t.MinCircleRadius=1.5]="MinCircleRadius",t[t.SimplifiedPaintingModeMaxBarSpacing=2]="SimplifiedPaintingModeMaxBarSpacing"}(h||(h={}));class x extends S.BitmapCoordinatesPaneRenderer{constructor(t){super(),this._data=t}hitTest(t){const e=this._data,i=e.lineWidth,o=e.vertOffset||0,s=(0,v.interactionTolerance)().series+i,n=e.visibleItemsRange?.startItemIndex??0,l=e.visibleItemsRange?.endItemIndex??e.items.length;for(let r=n;r<l;r++){const n=e.items[r];if(new g.Point(n.center,n.y+o).subtract(t).length()+i<=s)return new I.HitTestResult(I.HitTarget.Regular)}return null}_drawImpl(t){const e=this._data,{horizontalPixelRatio:i,verticalPixelRatio:o,context:s}=t,l=Math.max(1,Math.floor(i)),r=l%2?.5:0,{vertOffset:a=0,lineColor:d,lineWidth:c,barSpacing:h}=e;let u="",_=!1;const p=e.visibleItemsRange?.startItemIndex??0,m=e.visibleItemsRange?.endItemIndex??e.items.length;for(let t=p;t<m;t++){const p=e.items[t],m=p.center,f=p.y+a;if((0,n.isNaN)(m)||(0,n.isNaN)(f))continue;let y,g;null!=p.style?(y=p.style.color,g=p.style.width):(y=d,g=c),(y!==u||P.isSafari)&&(u=y,_&&s.fill(),s.beginPath(),s.fillStyle=y);const v=Math.round(m*i)+r,I=Math.round(f*o)+r;let S=Math.round(2*Math.max(1.5,g)*i);l%2!=S%2&&(S+=1),h>2||g>1.5?(s.moveTo(v+S/2,I),s.arc(v,I,S/2,0,2*Math.PI,!1)):s.rect(v-S/2,I-S/2,S,S),_=!0}_&&s.fill()}}var C=i(58618),w=i(17086);class b extends S.BitmapCoordinatesPaneRenderer{constructor(t){super(),this._data=t}hitTest(t){const e=(0,v.interactionTolerance)().series+this._data.lineWidth/2;let i,o,s,n;for(let l=1;l<this._data.items.length;++l){i=this._data.items[l-1],o=this._data.items[l],s=i.center,n=o.center;if((0,w.distanceToSegment)(new g.Point(s,i.y),new g.Point(n,o.y),new g.Point(t.x,t.y)).distance<=e)return new I.HitTestResult(I.HitTarget.Regular)}
|
||||||
|
return null}_drawImpl(t){const{context:e,horizontalPixelRatio:i,verticalPixelRatio:o}=t;let s="",l=!1;const r=this._data.visibleItemsRange?.startItemIndex??0,a=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let t=r;t<=a;t++){const r=this._data.items[t];if((0,n.isNaN)(r.center)||(0,n.isNaN)(r.y))continue;const a=r.style?.color??this._data.lineColor,d=r.style?.width??this._data.lineWidth,c=Math.max(1,Math.floor(d*i)),h=Math.max(1,Math.floor(d*o));(a!==s||P.isSafari)&&(s=a,l&&e.fill(),e.beginPath(),e.fillStyle=a);let u=3*c;u%2!=c%2&&(u+=1);let _=3*h;_%2!=h%2&&(_+=1);const p=Math.round(Math.round(r.center*i)-u/2),m=Math.round(Math.round(r.y*o)-_/2),f=p+Math.floor(u/2-c/2),y=m+Math.floor(_/2-h/2);e.rect(p,y,u,h),e.rect(f,m,c,_),l=!0}l&&e.fill()}}class N extends S.BitmapCoordinatesPaneRenderer{constructor(t){super(),this._data=t}hitTest(t){const e=(0,v.interactionTolerance)().series+this._data.lineWidth/2,i=new Map;for(const s of this._data.items){const n=s.center,l=s.y;let r=e;s.style&&(i.has(s.style.width)?r=(0,o.ensureDefined)(i.get(s.style.width)):i.set(this._data.lineWidth,r));if((0,w.distanceToSegment)(new g.Point(n,l),new g.Point(n,this._data.histogramBase),new g.Point(t.x,t.y)).distance<=r)return new I.HitTestResult(I.HitTarget.Regular)}return null}_drawImpl(t){if(0===this._data.items.length)return;const{context:e,horizontalPixelRatio:i,verticalPixelRatio:o}=t;e.fillStyle=this._data.lineColor;const s=Math.max(1,Math.floor(this._data.lineWidth*i)),n=s/2,l=Math.max(1,Math.floor(i)),r=Math.round(this._data.histogramBase*o)-Math.floor(l/2),a=r+l,d=this._data.visibleItemsRange?.startItemIndex??0,c=(this._data.visibleItemsRange?.endItemIndex??this._data.items.length)-1;for(let t=d;t<=c;t++){const d=this._data.items[t];let c=s,h=n;d.style?(e.fillStyle=d.style.color,c=Math.max(1,Math.floor(d.style.width*i)),h=c/2):e.fillStyle=this._data.lineColor;const u=c%2?.5:0,_=Math.round(d.center*i)+u,p=Math.round(d.y*o);let m,f;p<=r?(m=p,f=a):(m=r,f=p-Math.floor(l/2)+l),e.fillRect(Math.floor(_-h),m,c,f-m)}}}var M=i(65164),R=i(49545),B=i(21515),D=i(93976),T=i(43787);const L=t=>{const e=(0,s.rgbToHsl)((0,s.parseRgb)(t)),i=e[0]+.05;return e[0]=i-Math.floor(i),(0,s.rgbToHexString)((0,s.hslToRgb)(e))},W=c(L);class k extends D.StudyPaneViewInplaceUpdatable{constructor(t,e,i,o,s=!1){super(e,i,o),this._histogramBase=null,this._lineColor="",this._lineWidth=1,this._color1="",this._color2="",this._renderer=new _.CompositeRenderer,this._isMarkersEnabled=(0,l.isFeaturesetEnabled)("source_selection_markers"),this._study=t,this._plotIndex=t.metaInfo().plots.findIndex((t=>t.id===o)),this._colorProvider=(0,R.createStudyPlotColorProvider)(t.metaInfo(),t.properties(),o),this._extendStepLineToBarsEndings=s,this._isFundamental=!1;const n=this._study.properties().styles[this._plotName].plottype.value();this._isStepLinePlot=n===M.LineStudyPlotStyle.StepLine||n===M.LineStudyPlotStyle.StepLineWithBreaks||n===M.LineStudyPlotStyle.StepLineWithDiamonds}items(){return this._items}renderer(){return this._makeSureRendererIsValid(),
|
||||||
|
this._renderer}_getTranspValue(){const t=this._study.properties(),e=t.styles[this._plotName];let i=0;const o=this._study.metaInfo();return"Volume@tv-basicstudies"===o.id&&o.version<=46&&"transparency"in t?(i=t.transparency.value(),i=(0,n.isNumber)(i)?i:0,i):(e.transparency&&(i=e.transparency.value(),i=(0,n.isNumber)(i)?i:0),i)}_updateImplFull(t){if(this._renderer.clear(),this._dataInvalidated?.clearData&&(this._items=[]),!this._study.isPlotVisibleAt(this._plotName,1))return!1;const e=this._priceScale();if(!e||e.isEmpty())return!1;if(null===this._study.firstValue(void 0,this.isForceOverlay()))return!1;this._histogramBase=null;const i=this._study.properties().styles[this._plotName],s=i.plottype.value(),n=this._isFundamental&&this._isStepLinePlot,l=this._study.plots().plottableRange(n);if(0===l.size())return!1;const d=this._study.offset(this._plotName),c=(0,M.doesLinePlotStyleSupportFillBreaks)(s),h=this._preallocateItems(l,((t,e)=>({y:NaN,left:NaN,center:NaN,right:NaN,price:e??NaN,timePointIndex:t+d})));let u=NaN,_=NaN;const p=new Map,m=(t,e)=>{let i=p.get(t);void 0===i&&(i=new Map,p.set(t,i));let o=i.get(e);if(void 0===o){const s=!this._plotName||"vol"!==this._plotName;o=(0,a.generateColor)(t,e,s),i.set(e,o)}return o},f=(0,y.createEmptyStyle)(),g=(0,r.clamp)(this._getTranspValue(),0,100),v=this._model.timeScale().visibleBarsStrictRange();if(null===v)return!1;const{startBar:I,endBar:S}=this._calculateStartEnd(v);if(null===I||null===S||0===this._items.length)return!1;const P=h??(0,o.ensureNotNull)(l.firstIndex()),x=(0,o.ensureNotNull)(l.lastIndex())+1,C=l.rangeIterator(P,x);let w,b=(0,B.lowerbound)(this._items,P+d,((t,e)=>t.timePointIndex<e));for(const t of C){let e=t.index;const o=t.value;e+=d,e=Math.floor(e);let s=o[this._plotIndex+1];const n=null==s;if(s=n?NaN:s,c&&n){_=s,u=e,b++;continue}const l=this._items[b];l.valIsNotSameAsPrev=s!==_||e-1!==u;if(this._colorProvider.isColorDefined()&&(l.style={color:m(i.color.value(),100),width:i.linewidth.value(),style:i.linestyle.value()},null!=s)){const t=this._colorProvider.getPlotPointStyle(o,f),e=t.colors[0];void 0!==e&&(l.style.color=(0,a.isHexColor)(e)?m(e,g):e),l.style.width=t.lineWidth??l.style.width,l.style.style=t.lineStyle??l.style.style}!c&&!isNaN(u)&&u!==e-1&&b>0&&(this._items[b].breakBefore=!0),_=s,u=e,b++,w=l}return this._updateImplLight(),!0}_correctVisibleItemIndexes(t,e){return super._correctVisibleItemIndexes(t,e)}_updateRenderer(t,e){this._renderer.clear();const i=this._study.properties().styles.childs()[this._plotName].childs(),s=this._study.metaInfo().styles?.[this._plotName],l=(0,r.clamp)(this._getTranspValue(),0,100);this._lineColor=(0,a.generateColor)(i.color.value(),l),this._lineWidth=i.linewidth.value();let c=i.color.value();const h=this._colorProvider.getDefaultPlotPointStyle();h&&(c=h.colors[0]||c,this._lineWidth=h.lineWidth??this._lineWidth,this._lineColor=c?(0,a.generateColor)(c,l):this._lineColor),this._color2=(0,a.generateColor)(c,l);const _=this._study.metaInfo().isRGB?L(c):W(c);this._color1=(0,a.generateColor)(_,l)
|
||||||
|
;const y=this._histogramBase?this._histogramBase:(0,o.ensureNotNull)(this._priceScale()).height(),g=i.plottype.value(),v={barSpacing:this._model.timeScale().barSpacing(),items:this._items,histogramBase:y,lineIndex:0,lineStyle:i.linestyle.value(),lineColor:this._lineColor,lineWidth:(0,n.isNumber)(this._lineWidth)?this._lineWidth:1,color1:this._color1,color2:this._color2,bottom:y,visibleItemsRange:{startItemIndex:t,endItemIndex:e},simpleMode:this._colorProvider.singleColor(),skipHoles:(0,M.doesLinePlotStyleSupportFillBreaks)(g)},I=this._renderer,S=Boolean(s?.joinPoints);switch(g){case M.LineStudyPlotStyle.Line:case M.LineStudyPlotStyle.LineWithBreaks:I.append(new p.PaneRendererLine({...v,lineColor:{type:T.ColorType.Solid,color:this._lineColor}}));break;case M.LineStudyPlotStyle.Area:case M.LineStudyPlotStyle.AreaWithBreaks:I.append(new u.PaneRendererArea({...v,lineColor:{type:T.ColorType.Solid,color:this._lineColor}}));break;case M.LineStudyPlotStyle.Histogram:I.append(new N(v));break;case M.LineStudyPlotStyle.Columns:I.append(new C.PaneRendererColumns(v));break;case M.LineStudyPlotStyle.Cross:I.append(new b(v)),S&&I.append(new p.PaneRendererLine({...(0,d.deepCopy)(v),lineWidth:1,lineColor:{type:T.ColorType.Solid,color:this._lineColor},forceLineWidth:!0}));break;case M.LineStudyPlotStyle.Circles:I.append(new x(v)),S&&I.append(new p.PaneRendererLine({...(0,d.deepCopy)(v),lineWidth:1,lineColor:{type:T.ColorType.Solid,color:this._lineColor},ignorePaletteLineWidth:!0}));break;case M.LineStudyPlotStyle.StepLine:case M.LineStudyPlotStyle.StepLineWithBreaks:case M.LineStudyPlotStyle.StepLineWithDiamonds:{const t=new m.PaneRendererStepLine;t.setData({...v,lineColor:{type:T.ColorType.Solid,color:this._lineColor},decoration:i.plottype.value()===M.LineStudyPlotStyle.StepLineWithDiamonds?m.StepLineDecoration.Diamonds:m.StepLineDecoration.None,extendToBarsEndings:this._extendStepLineToBarsEndings}),I.append(t);break}default:I.append(new p.PaneRendererLine({...v,lineColor:{type:T.ColorType.Solid,color:this._lineColor}}))}this._isMarkersEnabled&&this._selectionData&&I.append(new f.SelectionRenderer(this._selectionData))}_updateAdditionalPrices(t,e){const i=this._study.metaInfo().styles?.[this._plotName];void 0!==i?.histogramBase&&(this._histogramBase=t.priceToCoordinate(i.histogramBase,e))}}},93299:(t,e,i)=>{i.d(e,{StudyForceOverlayPlotView:()=>n});var o=i(85842);class s{constructor(t,e,i){this._series=t,this._model=e,this._plotName=i}isPlotHighlighted(){return!!this._study.hasHighlightedPlots()&&(0,o.ensureNotNull)(this._model.highlightedPlotInfo()).plotId===this._plotName}}class n extends s{isForceOverlay(){return!!this._study.metaInfo().isPlotForceOverlay(this._plotName)}_priceScale(){return this.isForceOverlay()?this._model.mainSeries().priceScale():this._study.priceScale()}}},93976:(t,e,i)=>{i.d(e,{StudyPaneViewInplaceUpdatable:()=>u});var o=i(85842),s=i(57415),n=i(7321),l=i(54025),r=i(44850),a=i(21515),d=i(88858),c=i(83077),h=i(93299);class u extends h.StudyForceOverlayPlotView{constructor(t,e,i){super(t,e,i),
|
||||||
|
this._selectionData=null,this._dataInvalidated=null,this._viewportInvalidated=!1,this._items=[],this._selectionIndexer=new d.SelectionIndexes(e.timeScale())}update(t){if("hover-change"!==t.type){if("global-change"===t.type)return this._dataInvalidated=(0,l.mergeDataInvalidation)(this._dataInvalidated,{}),void(this._viewportInvalidated=!0);if("data-source-change"!==t.type)this._viewportInvalidated=!0;else{if((t.sourceId===this._study.id()||this._dependsOnSeriesData()&&t.sourceId===this._model.mainSeries().id())&&!t.nonSeriesOnly){const e=(0,l.mergeDataInvalidation)(this._dataInvalidated,{firstIndex:t.firstUpdatedTimePointIndex,clearData:t.clearData});this._dataInvalidated=e}}}}_dependsOnSeriesData(){return!1}_makeSureRendererIsValid(){this._dataInvalidated?this._updateImplFull(this._viewportInvalidated)&&(this._dataInvalidated=null):this._viewportInvalidated&&this._updateImplLight(),this._viewportInvalidated=!1}_preallocateItems(t,e){const i=t.size();let s=this._dataInvalidated?.firstIndex;if(0===i)return s;const n=this._study.offset(this._plotName);if(i!==this._items.length){const i=void 0!==s?s+n:void 0;if(void 0===i||0===this._items.length||i<(0,o.ensureDefined)(this._items[0].timePointIndex))return this._items=[],t.each(((t,i)=>{const o=i[this._plotIndex+1];return this._items.push(e(t,o)),!1})),this._items.length?(0,o.ensureDefined)(this._items[0].timePointIndex)-n:void 0;{const i=(0,o.ensureDefined)(s),l=n>=0?0:n,r=n>=0?n:0;let d=(0,a.lowerbound)(this._items,i+l,((t,e)=>t.timePointIndex<e));const c=(0,o.ensureNotNull)(t.lastIndex()),h=t.rangeIterator(i-r,c);for(const t of h)if(void 0!==d&&this._items[d]?.timePointIndex===t.index+n)d=this._updateItem(t,d);else{const i=t.value[this._plotIndex+1];this._items.push(e(t.index,i))}}}else if(s=s??t.firstIndex()??void 0,void 0!==s){const e=n>=0?0:n,i=n>=0?n:0;let l=(0,a.lowerbound)(this._items,s+e,((t,e)=>t.timePointIndex<e));const r=(0,o.ensureNotNull)(t.lastIndex())+1,d=t.rangeIterator(s-i,r);for(const t of d)l=this._updateItem(t,l)}return s}_updateItem(t,e){const i=this._getValueForUpdating(t);return this._items[e].price=i??NaN,e+1}_getValueForUpdating(t){return t.value[this._plotIndex+1]}_calculateStartEnd(t){const e=this._study.offset(this._plotName);let i=t.firstBar()-Math.abs(e)-1,s=t.lastBar()+Math.abs(e)+1;const n=this._study.getMinFirstBarIndexForPlot(this._plotName)+e;if(n>s+1)return{startBar:null,endBar:null};const l=this._study.plots();if(l.isEmpty())return{startBar:null,endBar:null};const a=l.range(n,(0,o.ensureNotNull)(l.lastIndex()));i=Math.max(i,n),s=Math.max(s,n);const d=a.search(i,r.PlotRowSearchMode.NearestLeft,this._plotIndex+1),c=a.search(s,r.PlotRowSearchMode.NearestRight,this._plotIndex+1);return null!==d&&(i=d.index),null!==c&&(s=c.index),i=Math.max(n,i),{startBar:i,endBar:s}}_updateImplLight(){const t=this._study.firstValue(void 0,this.isForceOverlay());if(null===t)return this._selectionData=null,void this._updateRenderer(0,-1);const e=this._priceScale();if(null===e||e.isEmpty())return this._selectionData=null,void this._updateRenderer(0,-1)
|
||||||
|
;const i=this._model.timeScale().visibleBarsStrictRange();if(null===i)return this._selectionData=null,void this._updateRenderer(0,-1);const{startBar:o,endBar:s}=this._calculateStartEnd(i);if(null===o||null===s||0===this._items.length)return this._selectionData=null,void this._updateRenderer(0,-1);const{startItemIndex:n,endItemIndex:l}=this._correctVisibleItemIndexes(Math.max(0,(0,a.lowerbound)(this._items,o,((t,e)=>t.timePointIndex<e))),Math.min(this._items.length,(0,a.upperbound)(this._items,s,((t,e)=>t<e.timePointIndex))));if(n>=l)return this._selectionData=null,void this._updateRenderer(0,-1);this._convertItemsToCoordinates(e,t,n,l),this._createSelection(t),this._updateRenderer(n,l)}_correctVisibleItemIndexes(t,e){return{startItemIndex:t,endItemIndex:e}}_convertItemsToCoordinates(t,e,i,o){this._convertItemsToCoordinatesImpl(t,e,i,o)}_convertItemsToCoordinatesImpl(t,e,i,o){t.fillYCoordinates(this._items,e,{startItemIndex:i,endItemIndex:o}),this._model.timeScale().fillBarBorders(this._items,{startItemIndex:i,endItemIndex:o},!0),this._updateAdditionalPrices(t,e)}_updateAdditionalPrices(t,e){}_createSelection(t){const e=this._priceScale();if(null===e)return;if(this._selectionData={points:[],bgColors:[],visible:!0,hittestResult:c.HitTarget.Regular,barSpacing:this._model.timeScale().barSpacing()},!this.isPlotHighlighted()&&(!this._model.selection().isSelected(this._study)||this._study.hasHighlightedPlots()))return void this._selectionIndexer.clear();const i=(0,o.ensureNotNull)(this._model.paneForSource(this._study)).height(),s=this._study.offset(this._plotName);for(const o of this._selectionIndexer.indexes()){const l=this._study.plots().valueAt(o);if((0,n.isAbsent)(l))continue;const r=l[this._plotIndex+1];if((0,n.isAbsent)(r))continue;const a=this._createSelectionDataPoint(e,Math.floor(o+s),r,t);this._selectionData.points.push(a),this._selectionData.bgColors.push(this._model.backgroundColorAtYPercentFromTop(a.point.y/i))}}_createSelectionDataPoint(t,e,i,o){const n=this._model.timeScale().indexToCoordinate(e),l=t.priceToCoordinate(i,o);return{point:(0,s.point)(n,l)}}}},49545:(t,e,i)=>{i.d(e,{createStudyPlotColorProvider:()=>p});var o=i(65164),s=i(85842),n=i(53598),l=i(7321);const r=new Map([[0,"color"],[2,"textColor"],[3,"borderColor"],[4,"wickColor"],[5,"colorup"],[6,"colordown"]]);class a{constructor(t){const e=t.childs(),i=[e.color?t=>t.colors[0]=e.color?.value():null,e.colorup?t=>t.colors[5]=e.colorup?.value():null,e.colordown?t=>t.colors[6]=e.colordown?.value():null,e.textColor?t=>t.colors[2]=e.textColor?.value():null,e.borderColor?t=>t.colors[3]=e.borderColor?.value():null,e.wickColor?t=>t.colors[4]=e.wickColor?.value():null,e.linewidth?t=>t.lineWidth=e.linewidth?.value():null,e.linestyle?t=>t.lineStyle=e.linestyle?.value():null].filter(l.notNull);this._fillPlotStyles=t=>{for(const e of i)e(t)}}getPlotPointStyle(t,e){const i=e?(0,n.clearStyle)(e):(0,n.createEmptyStyle)();return this._fillPlotStyles(i),i}isColorDefined(){return!0}singleColor(){return!0}getDefaultPlotPointStyle(){return null}}const d=[0,1,2,3,4,5,6]
|
||||||
|
;class c{constructor(t,e,i,o){this._palettesColors=new Map,this._defaultPlotColors=new Map,this._indexes=o;const n=e.styles[i];if(n)for(const[t,e]of r)this._defaultPlotColors.set(t,n[e]);const l=(0,s.ensureDefined)(t.palettes),a=t.plots;o.forEach(((t,i)=>{const o=a[t];if(o&&"palette"in o){const t=l[o.palette],s=e.palettes[o.palette];if(t&&s){const{valToIndex:e}=t,{colors:o}=s,n={...o};e&&Object.keys(e).forEach((t=>{const i=e[t];void 0!==i&&(n[t]=o[i])})),this._palettesColors.set(i,n)}}}))}getPlotPointStyle(t,e){const i=e?(0,n.clearStyle)(e):(0,n.createEmptyStyle)();return d.forEach((e=>{if(this._palettesColors.has(e)){const o=t[(0,s.ensureDefined)(this._indexes.get(e))+1];if("number"==typeof o){const t=this._palettesColors.get(e)?.[o];0===e&&t&&(i.lineWidth=t.width.value(),i.lineStyle=t.style.value()),i.colors[e]=t?.color.value()}else i.colors[e]="transparent"}else i.colors[e]=this._defaultPlotColors.get(e)?.value()})),i}getDefaultPlotPointStyle(){const t=this._palettesColors.get(0)?.[0];if(void 0!==t){return{colors:[t.color.value(),void 0,void 0,void 0,void 0,void 0,void 0],lineStyle:void 0,lineWidth:t.width.value()}}return null}isColorDefined(){return!!this._palettesColors.size}singleColor(){return!1}}var h=i(17785);class u{constructor(t){this._rgbaFromInteger=(0,h.rgbaFromIntegerCached)(),this._indexes=t}getPlotPointStyle(t,e){const i=e?(0,n.clearStyle)(e):(0,n.createEmptyStyle)();return this._indexes.forEach(((e,o)=>{const s=t[e+1];if(null!=s){const t=this._rgbaFromInteger(s);i.colors[o]=t}else i.colors[o]="transparent"})),i}isColorDefined(){return!0}singleColor(){return!1}getDefaultPlotPointStyle(){return null}}const _=new Map([[0,function(t,e){const i=(0,o.isColorerPlot)(e)||(0,o.isOhlcColorerPlot)(e);return"target"in e&&e.target===t&&i}],[2,function(t,e){const i=(0,o.isTextColorerPlot)(e);return"target"in e&&e.target===t&&i}],[1,function(t,e){return(0,o.isBgColorerPlot)(e)&&e.id===t}],[3,function(t,e){const i=(0,o.isCandleBorderColorerPlot)(e);return"target"in e&&e.target===t&&i}],[4,function(t,e){const i=(0,o.isCandleWickColorerPlot)(e);return"target"in e&&e.target===t&&i}],[5,function(t,e){const i=(0,o.isUpColorerPlot)(e);return"target"in e&&e.target===t&&i}],[6,function(t,e){const i=(0,o.isDownColorerPlot)(e);return"target"in e&&e.target===t&&i}]]);function p(t,e,i){const{colorers:o}=function(t,e){const i=t.plots,o=i.findIndex((t=>t.id===e)),s=new Map;return i.forEach(((t,i)=>{_.forEach(((o,n)=>{o(e,t)&&s.set(n,i)}))})),{plotIndex:-1===o?null:o,colorers:s}}(t,i);if(o.size)return t.isRGB?new u(o):new c(t,e,i,o);{const t=e.ohlcPlots;if(t&&t[i])return new a(t[i]);const o=e.styles[i];return new a(o)}}},17785:(t,e,i)=>{i.d(e,{rgbaFromIntegerCached:()=>l});var o=i(4003),s=i(82347),n=i(19050);function l(t=1e3){const e=o.default.Cache;o.default.Cache=n.CircularCacheBuffer.bind(n.CircularCacheBuffer,t);const i=(0,o.default)(s.rgbaFromInteger);return o.default.Cache=e,i}}}]);
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2751],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,o){if(r(e,o))return!0;if("object"!=typeof e||null===e||"object"!=typeof o||null===o)return!1;var n=Object.keys(e),l=Object.keys(o);if(n.length!==l.length)return!1;for(var a=0;a<n.length;a++)if(!t.call(o,n[a])||!r(e[n[a]],o[n[a]]))return!1;return!0}},62978:e=>{e.exports={primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",pills:"pills-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},29075:e=>{e.exports={lightButton:"lightButton-bYDQcOkp",link:"link-bYDQcOkp",ltr:"ltr-bYDQcOkp",rtl:"rtl-bYDQcOkp","typography-regular16px":"typography-regular16px-bYDQcOkp","typography-medium16px":"typography-medium16px-bYDQcOkp","typography-regular14px":"typography-regular14px-bYDQcOkp","typography-semibold14px":"typography-semibold14px-bYDQcOkp","typography-semibold16px":"typography-semibold16px-bYDQcOkp",content:"content-bYDQcOkp",visuallyHidden:"visuallyHidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp",ellipsisContainer:"ellipsisContainer-bYDQcOkp",textWrapContainer:"textWrapContainer-bYDQcOkp",textWrapWithEllipsis:"textWrapWithEllipsis-bYDQcOkp",slot:"slot-bYDQcOkp",caret:"caret-bYDQcOkp",activeCaret:"activeCaret-bYDQcOkp",xsmall:"xsmall-bYDQcOkp",withStartSlot:"withStartSlot-bYDQcOkp",withEndSlot:"withEndSlot-bYDQcOkp",noContent:"noContent-bYDQcOkp",wrap:"wrap-bYDQcOkp",small:"small-bYDQcOkp",medium:"medium-bYDQcOkp"}},44576:e=>{e.exports={"tv-circle-logo-pair":"tv-circle-logo-pair-ocURKVwI","tv-circle-logo-pair--xxxxsmall":"tv-circle-logo-pair--xxxxsmall-ocURKVwI","tv-circle-logo-pair--xxxsmall":"tv-circle-logo-pair--xxxsmall-ocURKVwI","tv-circle-logo-pair--xxsmall":"tv-circle-logo-pair--xxsmall-ocURKVwI","tv-circle-logo-pair--xsmall":"tv-circle-logo-pair--xsmall-ocURKVwI","tv-circle-logo-pair--small":"tv-circle-logo-pair--small-ocURKVwI","tv-circle-logo-pair--medium":"tv-circle-logo-pair--medium-ocURKVwI","tv-circle-logo-pair--large":"tv-circle-logo-pair--large-ocURKVwI","tv-circle-logo-pair--xlarge":"tv-circle-logo-pair--xlarge-ocURKVwI","tv-circle-logo-pair--xxlarge":"tv-circle-logo-pair--xxlarge-ocURKVwI","tv-circle-logo-pair--xxxlarge":"tv-circle-logo-pair--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo":"tv-circle-logo-pair__logo-ocURKVwI","tv-circle-logo-pair__logo--xxxxsmall":"tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI","tv-circle-logo-pair__logo--xxxsmall":"tv-circle-logo-pair__logo--xxxsmall-ocURKVwI","tv-circle-logo-pair__logo--xxsmall":"tv-circle-logo-pair__logo--xxsmall-ocURKVwI","tv-circle-logo-pair__logo--xsmall":"tv-circle-logo-pair__logo--xsmall-ocURKVwI",
|
|
||||||
"tv-circle-logo-pair__logo--small":"tv-circle-logo-pair__logo--small-ocURKVwI","tv-circle-logo-pair__logo--medium":"tv-circle-logo-pair__logo--medium-ocURKVwI","tv-circle-logo-pair__logo--large":"tv-circle-logo-pair__logo--large-ocURKVwI","tv-circle-logo-pair__logo--xlarge":"tv-circle-logo-pair__logo--xlarge-ocURKVwI","tv-circle-logo-pair__logo--xxlarge":"tv-circle-logo-pair__logo--xxlarge-ocURKVwI","tv-circle-logo-pair__logo--xxxlarge":"tv-circle-logo-pair__logo--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo-empty":"tv-circle-logo-pair__logo-empty-ocURKVwI"}},23348:e=>{e.exports={container:"container-M1mz4quA",pairContainer:"pairContainer-M1mz4quA",logo:"logo-M1mz4quA",hidden:"hidden-M1mz4quA"}},59086:e=>{e.exports={container:"container-qm7Rg5MB",mobile:"mobile-qm7Rg5MB",inputContainer:"inputContainer-qm7Rg5MB",withCancel:"withCancel-qm7Rg5MB",input:"input-qm7Rg5MB",icon:"icon-qm7Rg5MB",cancel:"cancel-qm7Rg5MB"}},25999:e=>{e.exports={actions:"actions-rarsm4ka",actionButton:"actionButton-rarsm4ka"}},75471:e=>{e.exports={logo:"logo-d0vVmGvT"}},35881:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",itemRow:"itemRow-oRSs8UQo",multiLine:"multiLine-oRSs8UQo",cell:"cell-oRSs8UQo",itemInfoCell:"itemInfoCell-oRSs8UQo",description:"description-oRSs8UQo",symbolDescription:"symbolDescription-oRSs8UQo",flag:"flag-oRSs8UQo",exchangeDescription:"exchangeDescription-oRSs8UQo",marketType:"marketType-oRSs8UQo",exchangeName:"exchangeName-oRSs8UQo",actionHandleWrap:"actionHandleWrap-oRSs8UQo",source:"source-oRSs8UQo",hover:"hover-oRSs8UQo",selected:"selected-oRSs8UQo",active:"active-oRSs8UQo",highlighted:"highlighted-oRSs8UQo",light:"light-oRSs8UQo","highlight-animation-theme-light":"highlight-animation-theme-light-oRSs8UQo",dark:"dark-oRSs8UQo","highlight-animation-theme-dark":"highlight-animation-theme-dark-oRSs8UQo",markedFlag:"markedFlag-oRSs8UQo",offset:"offset-oRSs8UQo",descriptionCell:"descriptionCell-oRSs8UQo",addition:"addition-oRSs8UQo",exchangeCell:"exchangeCell-oRSs8UQo",fixedWidth:"fixedWidth-oRSs8UQo",expandHandle:"expandHandle-oRSs8UQo",expanded:"expanded-oRSs8UQo",symbolTitle:"symbolTitle-oRSs8UQo",invalid:"invalid-oRSs8UQo",noDescription:"noDescription-oRSs8UQo",highlightedText:"highlightedText-oRSs8UQo",icon:"icon-oRSs8UQo",narrow:"narrow-oRSs8UQo",wide:"wide-oRSs8UQo",dataMode:"dataMode-oRSs8UQo",actionsCell:"actionsCell-oRSs8UQo",action:"action-oRSs8UQo",targetAction:"targetAction-oRSs8UQo",removeAction:"removeAction-oRSs8UQo",addAction:"addAction-oRSs8UQo",markedFlagWrap:"markedFlagWrap-oRSs8UQo",markedFlagMobile:"markedFlagMobile-oRSs8UQo",logo:"logo-oRSs8UQo",isExpandable:"isExpandable-oRSs8UQo",primaryIcon:"primaryIcon-oRSs8UQo"}},35599:e=>{e.exports={icon:"icon-OJpk_CAQ"}},78406:e=>{e.exports={wrap:"wrap-IxKZEhmO",libAllSelected:"libAllSelected-IxKZEhmO",container:"container-IxKZEhmO",iconWrap:"iconWrap-IxKZEhmO",icon:"icon-IxKZEhmO",title:"title-IxKZEhmO",highlighted:"highlighted-IxKZEhmO",description:"description-IxKZEhmO",mobile:"mobile-IxKZEhmO",allSelected:"allSelected-IxKZEhmO",
|
|
||||||
desktop:"desktop-IxKZEhmO",allSelectedIcon:"allSelectedIcon-IxKZEhmO",selected:"selected-IxKZEhmO",focused:"focused-IxKZEhmO",titleWithoutDesc:"titleWithoutDesc-IxKZEhmO",textBlock:"textBlock-IxKZEhmO",bordered:"bordered-IxKZEhmO"}},9854:e=>{e.exports={container:"container-dfKL9A7t",contentList:"contentList-dfKL9A7t",contentListDesktop:"contentListDesktop-dfKL9A7t",searchSourceItemsContainer:"searchSourceItemsContainer-dfKL9A7t",oneColumn:"oneColumn-dfKL9A7t",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-dfKL9A7t",groupTitleDesktop:"groupTitleDesktop-dfKL9A7t",column:"column-dfKL9A7t",emptyText:"emptyText-dfKL9A7t",emptyIcon:"emptyIcon-dfKL9A7t",noResultsDesktop:"noResultsDesktop-dfKL9A7t"}},16872:e=>{e.exports={wrap:"wrap-gjrLBBL3",item:"item-gjrLBBL3",small:"small-gjrLBBL3",newStyles:"newStyles-gjrLBBL3",mobile:"mobile-gjrLBBL3",text:"text-gjrLBBL3",exchange:"exchange-gjrLBBL3",filterItem:"filterItem-gjrLBBL3",brokerWrap:"brokerWrap-gjrLBBL3"}},90349:e=>{e.exports={wrap:"wrap-dlewR1s1",watchlist:"watchlist-dlewR1s1",noFeed:"noFeed-dlewR1s1",newStyles:"newStyles-dlewR1s1",scrollContainer:"scrollContainer-dlewR1s1",listContainer:"listContainer-dlewR1s1",multiLineItemsContainer:"multiLineItemsContainer-dlewR1s1",withSpinner:"withSpinner-dlewR1s1",spinnerContainer:"spinnerContainer-dlewR1s1",largeSpinner:"largeSpinner-dlewR1s1"}},43376:e=>{e.exports={search:"search-ZXzPWcCf",upperCase:"upperCase-ZXzPWcCf",bubblesContainer:"bubblesContainer-ZXzPWcCf",mobile:"mobile-ZXzPWcCf",bubbles:"bubbles-ZXzPWcCf",withFilters:"withFilters-ZXzPWcCf",spinnerWrap:"spinnerWrap-ZXzPWcCf",emptyText:"emptyText-ZXzPWcCf",emptyIcon:"emptyIcon-ZXzPWcCf",noResultsDesktop:"noResultsDesktop-ZXzPWcCf",brokerButtonWrap:"brokerButtonWrap-ZXzPWcCf"}},54464:e=>{e.exports={flagWrap:"flagWrap-QKnxaZOG",icon:"icon-QKnxaZOG",caret:"caret-QKnxaZOG",title:"title-QKnxaZOG",button:"button-QKnxaZOG",withFlag:"withFlag-QKnxaZOG",buttonContent:"buttonContent-QKnxaZOG"}},26664:e=>{e.exports={dialog:"dialog-u2dP3kv1",tabletDialog:"tabletDialog-u2dP3kv1",desktopDialog:"desktopDialog-u2dP3kv1",backButton:"backButton-u2dP3kv1"}},99113:e=>{e.exports={childrenWrapper:"childrenWrapper-_RhDhmVQ",container:"container-_RhDhmVQ"}},32248:e=>{e.exports={highlighted:"highlighted-cwp8YRo6"}},18429:(e,t,r)=>{"use strict";r.d(t,{SEPARATOR_PREFIX:()=>o,isSeparatorItem:()=>n});const o="###";function n(e){return e.startsWith(o)}},48199:(e,t,r)=>{"use strict";r.d(t,{BackButton:()=>f});var o,n=r(50959),l=r(64388),a=r(95694),s=r(49498),i=r(60176),c=r(35369),u=r(58478),d=r(73063),m=r(14127),p=r(18073),h=r(99243),g=r(42576);function v(e="large",t="1.2"){switch(e){case"large":return"1.2"===t?a:d;case"medium":return"1.2"===t?s:m;case"small":return"1.2"===t?i:p;case"xsmall":return"1.2"===t?c:h;case"xxsmall":return"1.2"===t?u:g;default:return s}}!function(e){e.Thin="1.2",e.Medium="1.5"}(o||(o={}));const f=n.forwardRef(((e,t)=>{const{"aria-label":r,flipIconOnRtl:o,...a}=e;return n.createElement(l.NavButton,{...a,"aria-label":r,ref:t,icon:v(e.size,e.iconStrokeWidth),
|
|
||||||
flipIconOnRtl:o})}))},27011:(e,t,r)=>{"use strict";function o(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}r.d(t,{isIconOnly:()=>o})},14543:(e,t,r)=>{"use strict";r.d(t,{LightButton:()=>o.LightButton});r(9038);var o=r(15893);r(50959),r(21593),r(66860),r(29075),r(62978);r(78572)},9038:(e,t,r)=>{"use strict";r.d(t,{useLightButtonClasses:()=>c});var o=r(50959),n=r(97754),l=r(17946),a=r(27011),s=r(86332);const i=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),c=(e,t,r)=>{const c=(0,o.useContext)(l.CustomBehaviourContext),{className:u,isSelected:d,children:m,showCaret:p,forceDirection:h,iconOnly:g,color:v="gray",variant:f="primary",size:y="medium",enableActiveStateStyles:S=c.enableActiveStateStyles,typography:b,isLink:x=!1,textWrap:w,isPills:k,isActive:C,startSlot:E,endSlot:I}=t,L=e[`typography-${((e,t,r)=>{if(r){const e=r.replace(/^\D+/g,"");return t?`semibold${e}`:r}switch(e){case"xsmall":return t?"semibold14px":"regular14px";case"small":case"medium":return t?"semibold16px":"regular16px";default:return""}})(y,d||k,b||void 0)}`],R=(0,o.useContext)(s.ControlGroupContext),{isInButtonGroup:_,isGroupPrimary:T}=(0,o.useContext)(i);return n(u,e.lightButton,x&&e.link,C&&e.active,d&&e.selected,(0,a.isIconOnly)(m,g)&&e.noContent,!!E&&e.withStartSlot,(p||!!I)&&e.withEndSlot,r&&e.withGrouped,h&&e[h],e[T?"primary":f],e[T?"gray":v],e[y],L,!S&&e.disableActiveStateStyles,R.isGrouped&&e.grouped,w&&e.wrap,_&&e.disableActiveOnTouch,k&&e.pills)}},66860:(e,t,r)=>{"use strict";r.d(t,{LightButtonContent:()=>d});var o=r(50959),n=r(97754),l=r(34094),a=r(27011),s=r(9745),i=r(2948),c=r(29075),u=r.n(c);function d(e){const{showCaret:t,iconOnly:r,ellipsis:c=!0,textWrap:d,tooltipText:m,children:p,endSlot:h,startSlot:g,isActiveCaret:v}=e;[h,t].filter((e=>!!e));return o.createElement(o.Fragment,null,g&&o.createElement("span",{className:n(u().slot,u().startSlot)},g),!(0,a.isIconOnly)(p,r)&&o.createElement("span",{className:n(u().content,!d&&u().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":null!=m?m:(0,l.getTextForTooltip)(p)},d||c?o.createElement(o.Fragment,null,o.createElement("span",{className:n(!d&&c&&u().ellipsisContainer,d&&u().textWrapContainer,d&&c&&u().textWrapWithEllipsis)},p),o.createElement("span",{className:u().visuallyHidden,"aria-hidden":!0},p)):o.createElement(o.Fragment,null,p,o.createElement("span",{className:u().visuallyHidden,"aria-hidden":!0},p))),h&&o.createElement("span",{className:n(u().slot,u().endSlot)},h),t&&(e=>o.createElement(s.Icon,{className:n(u().caret,e&&u().activeCaret),icon:i}))(v))}},15893:(e,t,r)=>{"use strict";r.d(t,{LightButton:()=>d});var o=r(50959),n=r(86332),l=r(9038),a=r(66860),s=r(29075),i=r.n(s),c=r(62978),u=r.n(c);function d(e){
|
|
||||||
const{isGrouped:t}=o.useContext(n.ControlGroupContext),{reference:r,className:s,isSelected:c,children:d,iconOnly:m,ellipsis:p,showCaret:h,forceDirection:g,endSlot:v,startSlot:f,color:y,variant:S,size:b,enableActiveStateStyles:x,typography:w,textWrap:k=!1,maxLines:C,style:E={},isPills:I,isActive:L,tooltipText:R,role:_,...T}=e,N=k?null!=C?C:2:1,B=N>0?{...E,"--ui-lib-light-button-content-max-lines":N}:E;return o.createElement("button",{...T,className:(0,l.useLightButtonClasses)({...u(),...i()},{className:s,isSelected:c,children:d,iconOnly:m,showCaret:h,forceDirection:g,endSlot:v,startSlot:f,color:y,variant:S,size:b,enableActiveStateStyles:x,typography:w,textWrap:k,isPills:I,isActive:L},t),ref:r,style:B,role:_},o.createElement(a.LightButtonContent,{showCaret:h,isActiveCaret:h&&(I||L||c),iconOnly:m,ellipsis:p,textWrap:k,tooltipText:R,endSlot:v,startSlot:f},d))}},34094:(e,t,r)=>{"use strict";r.d(t,{getTextForTooltip:()=>a});var o=r(50959);const n=e=>(0,o.isValidElement)(e)&&Boolean(e.props.children),l=e=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+" ",a=e=>Array.isArray(e)||(0,o.isValidElement)(e)?o.Children.toArray(e).reduce(((e,t)=>{let r="";return r=(0,o.isValidElement)(t)&&n(t)?a(t.props.children):(0,o.isValidElement)(t)&&!n(t)?"":l(t),e.concat(r)}),"").trim():l(e)},3685:(e,t,r)=>{"use strict";function o(){var e,t,r;return null!==(r=null===(t=null===(e=window.configurationData)||void 0===e?void 0:e.exchanges)||void 0===t?void 0:t.map((e=>({...e,country:"",providerId:"",flag:""}))))&&void 0!==r?r:[]}r.d(t,{getExchanges:()=>o})},36279:(e,t,r)=>{"use strict";var o;r.d(t,{LogoSize:()=>o,getLogoUrlResolver:()=>a}),function(e){e[e.Medium=0]="Medium",e[e.Large=1]="Large"}(o||(o={}));class n{getSymbolLogoUrl(e){return e}getCountryFlagUrl(){return""}getCryptoLogoUrl(e){return e}getProviderLogoUrl(e){return e}getSourceLogoUrl(e){return e}getBlockchainContractLogoUrl(e){return e}}let l;function a(){return l||(l=new n),l}},69654:(e,t,r)=>{"use strict";r.d(t,{DialogSearch:()=>d});var o=r(50959),n=r(97754),l=r.n(n),a=r(11542),s=r(9745),i=r(69859),c=r(54313),u=r(59086);function d(e){const{children:t,isMobile:n,renderInput:d,onCancel:p,containerClassName:h,inputContainerClassName:g,iconClassName:v,cancelTitle:f=a.t(null,void 0,r(4543)),...y}=e;return o.createElement("div",{className:l()(u.container,n&&u.mobile,h)},o.createElement("div",{className:l()(u.inputContainer,n&&u.mobile,g,p&&u.withCancel)},d||o.createElement(m,{isMobile:n,...y})),t,o.createElement(s.Icon,{className:l()(u.icon,n&&u.mobile,v),icon:n?c:i}),p&&(!n||""!==y.value)&&o.createElement("div",{className:l()(u.cancel,n&&u.mobile),onClick:p},f))}function m(e){const{className:t,reference:r,isMobile:n,value:a,onChange:s,onFocus:i,onBlur:c,onKeyDown:d,onSelect:m,placeholder:p,activeDescendant:h,...g}=e;return o.createElement("input",{...g,ref:r,type:"text",className:l()(t,u.input,n&&u.mobile),autoComplete:"off","data-role":"search",placeholder:p,value:a,onChange:s,onFocus:i,onBlur:c,onSelect:m,onKeyDown:d,"aria-activedescendant":h})}},
|
|
||||||
96967:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchDialogContentItem:()=>M});var o=r(50959),n=r(97754),l=r.n(n),a=(r(11542),r(50151)),s=r(9745),i=r(56570),c=r(24637),u=r(19785),d=r(84524),m=r(24633),p=r(77975),h=r(45345),g=r(32563),v=r(49406),f=r(618),y=r(36279),S=r(59695),b=r(58492),x=r(39330),w=r(19938),k=r(43010),C=r(23348);function E(e){const{className:t,placeholderLetter:r,url1:n,url2:a,size:s="xxxsmall"}=e,i=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(null),m=(0,o.useRef)(null),p=(0,o.useRef)(null);return(0,k.useIsomorphicLayoutEffect)((()=>{const e=void 0===n?[]:void 0===a?[n]:[n,a],t=p.current=(r=e,Promise.all(r.map((e=>(0,w.getImage)(`symbol_logo_${e}`,e,L).then((e=>e.cloneNode()))))));var r;t.then((e=>{var r,o,n,l,a,s,h,g,v;if(t===p.current)switch(e.length){case 0:null===(r=u.current)||void 0===r||r.classList.add(C.hidden),null===(o=c.current)||void 0===o||o.classList.add(S.hiddenCircleLogoClass),null===(n=i.current)||void 0===n||n.classList.remove(S.hiddenCircleLogoClass);break;case 1:I(c.current,e[0]),null===(l=u.current)||void 0===l||l.classList.add(C.hidden),null===(a=c.current)||void 0===a||a.classList.remove(S.hiddenCircleLogoClass),null===(s=i.current)||void 0===s||s.classList.add(S.hiddenCircleLogoClass);break;case 2:I(d.current,e[0]),I(m.current,e[1]),null===(h=u.current)||void 0===h||h.classList.remove(C.hidden),null===(g=c.current)||void 0===g||g.classList.add(S.hiddenCircleLogoClass),null===(v=i.current)||void 0===v||v.classList.add(S.hiddenCircleLogoClass)}}))}),[n,a]),o.createElement("span",{className:l()(t,C.container)},o.createElement("span",{ref:u,className:l()(C.pairContainer,C.hidden)},o.createElement("span",{className:(0,x.getBlockStyleClasses)(s)},o.createElement("span",{ref:m,className:l()(C.logo,(0,x.getLogoStyleClasses)(s))}),o.createElement("span",{ref:d,className:l()(C.logo,(0,x.getLogoStyleClasses)(s))}))),o.createElement("span",{ref:c,className:l()(C.logo,S.hiddenCircleLogoClass,(0,b.getStyleClasses)(s))}),o.createElement("span",{ref:i,className:l()(C.logo,(0,b.getStyleClasses)(s))},o.createElement(S.CircleLogo,{size:s,placeholderLetter:r})))}function I(e,t){e&&(e.innerHTML="",e.appendChild(t))}function L(e){e.crossOrigin="",e.decoding="async"}var R=r(75471);function _(e){const{logoId:t,baseCurrencyLogoId:r,currencyLogoId:n,placeholder:a,className:s,size:i="xsmall"}=e,c=(0,o.useMemo)((()=>{const e={logoid:t,"currency-logoid":n,"base-currency-logoid":r};return(0,f.removeUsdFromCryptoPairLogos)((0,f.resolveLogoUrls)(e,y.LogoSize.Medium))}),[t,n,r]);return o.createElement(E,{key:i,className:l()(R.logo,s),url1:c[0],url2:c[1],placeholderLetter:a,size:i})}var T=r(29562),N=r(69533),B=r(35881);function M(e){var t,r
|
|
||||||
;const{dangerousTitleHTML:n,title:f,dangerousDescriptionHTML:y,description:S,searchToken:b,exchangeName:x,marketType:w,onClick:k,isSelected:C,isEod:E=!1,isActive:I=!1,isOffset:L=!1,invalid:R=!1,isHighlighted:M=!1,hideExchange:D=!1,hideMarkedListFlag:O=!1,onExpandClick:F,isExpanded:P,hoverComponent:A,country:V,providerId:U,source:Q,source2:W,type:K,flag:z,itemRef:Z,onMouseOut:H,onMouseOver:q,className:$,actions:j,reference:G,fullSymbolName:Y,logoId:X,currencyLogoId:J,baseCurrencyLogoId:ee,shortName:te,hideLogo:re=!1,exchangeTooltip:oe,hideMarketType:ne,isPrimary:le}=e,{isSmallWidth:ae,isMobile:se}=(0,a.ensureNotNull)((0,o.useContext)(d.SymbolSearchItemsDialogContext)),ie=Boolean(A),ce=!R&&!D&&(se||!ie),ue=(0,p.useWatchedValueReadonly)({watchedValue:h.watchedTheme})===m.StdTheme.Dark?B.dark:B.light,de=A,me=i.enabled("show_symbol_logos"),pe=i.enabled("show_exchange_logos"),he=me||!1,ge=null!==(t=null==W?void 0:W.description)&&void 0!==t?t:Q,ve=null!==(r=null==W?void 0:W.name)&&void 0!==r?r:Q;return o.createElement("div",{className:l()(B.itemRow,ae&&B.multiLine,M&&B.highlighted,M&&ue,C&&B.selected,I&&B.active,R&&B.invalid,!se&&g.mobiletouch&&ie&&B.hover,$),onClick:function(e){if(!k||e.defaultPrevented)return;e.preventDefault(),k(e)},"data-role":e["data-role"]||"list-item","data-active":I,"data-type":w,"data-name":"symbol-search-dialog-content-item",onMouseOut:H,onMouseOver:q,ref:G},o.createElement("div",{ref:Z,className:l()(B.itemInfoCell,B.cell,L&&B.offset)},o.createElement("div",{className:l()(B.actionHandleWrap,!he&&B.fixedWidth)},o.createElement(o.Fragment,null,!1,F&&o.createElement("div",{onClick:function(e){if(!F||e.defaultPrevented)return;e.preventDefault(),F(e)}},o.createElement(s.Icon,{className:l()(B.expandHandle,P&&B.expanded,C&&B.selected),icon:N})),he&&!L&&o.createElement("div",{className:l()(B.logo,Boolean(F)&&B.isExpandable)},o.createElement(_,{key:Y,logoId:X,currencyLogoId:J,baseCurrencyLogoId:ee,placeholder:te?te[0]:void 0})))),o.createElement("div",{className:l()(B.description,he&&L&&B.offset)},f&&o.createElement("div",{className:l()(B.symbolTitle,I&&B.active,R&&B.invalid,!Boolean(y)&&B.noDescription),"data-name":"list-item-title"},"string"==typeof f&&b?o.createElement(c.HighlightedText,{className:B.highlightedText,text:f,queryString:b,rules:(0,u.createRegExpList)(b)}):f,E&&o.createElement("span",{className:B.dataMode},"E")),!f&&n&&o.createElement("div",{className:l()(B.symbolTitle,I&&B.active,R&&B.invalid),"data-name":"list-item-title"},o.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),E&&o.createElement("span",{className:B.dataMode},"E")),ae&&fe())),!ae&&o.createElement("div",{className:l()(B.cell,B.descriptionCell,Boolean(de)&&B.addition)},fe(),de?o.createElement(de,{...e,className:B.actions,onMouseOver:void 0,onMouseOut:void 0}):null),ae&&de?o.createElement(de,{...e,className:B.cell,onMouseOver:void 0,onMouseOut:void 0}):null,ce&&o.createElement("div",{className:l()(B.exchangeCell,B.cell)},o.createElement("div",{className:l()(B.exchangeDescription)},!ne&&o.createElement("div",{
|
|
||||||
className:l()(B.marketType,I&&B.active)},w),o.createElement("div",{className:B.source},!1,"economic"===K&&ge&&ve?o.createElement("div",{className:l()(B.exchangeName,I&&B.active,"apply-common-tooltip",B.narrow,ne&&B.wide),title:ge},ve):o.createElement("div",{className:l()(B.exchangeName,I&&B.active,oe&&"apply-common-tooltip"),title:oe},x))),pe&&o.createElement("div",{className:B.flag},o.createElement(T.SymbolSearchFlag,{key:pe?`${Y}_exchange`:`${V}_${U}_${null==W?void 0:W.id}_${K}_${z}`,className:B.icon,country:V,providerId:U,sourceId:"economic"===K&&W?W.id:void 0}))),o.createElement("div",{className:l()(B.cell,Boolean(j)&&B.actionsCell)},j));function fe(){if(R)return null;const e=l()(B.symbolDescription,I&&B.active,!g.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return S?o.createElement("div",{className:e},b?o.createElement(c.HighlightedText,{className:B.highlightedText,text:S,queryString:b,rules:(0,u.createRegExpList)(b)}):S):y?o.createElement("div",{"data-overflow-tooltip-text":(0,v.removeTags)(y),className:e,dangerouslySetInnerHTML:{__html:y}}):null}}},29562:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchFlag:()=>v});var o=r(50959),n=r(97754),l=r.n(n),a=r(24633),s=r(36279);const i=r.p+"mock-dark.16b5f3a431f502b03ae3.svg",c=r.p+"mock-light.d201313017eb2c1b989f.svg";function u(e){return e===a.StdTheme.Dark?i:c}var d=r(77975),m=r(45345),p=r(50151);const h=s.LogoSize.Medium;var g=r(35599);function v(e){const{country:t,tooltip:r,providerId:n,sourceId:a,className:i}=e,c=(0,d.useWatchedValueReadonly)({watchedValue:m.watchedTheme}),[v,f]=(0,o.useState)(function({country:e,providerId:t,sourceId:r}){const o=(0,s.getLogoUrlResolver)();return n=>{const l=e=>o.getProviderLogoUrl(e,h),a=[{value:r,resolve:l},{value:e,resolve:e=>o.getCountryFlagUrl(e.toUpperCase(),h)},{value:t,resolve:l}].find((({value:e})=>void 0!==e&&e.length>0));return void 0!==a?a.resolve((0,p.ensureDefined)(a.value)):u(n)}}({country:t,providerId:n,sourceId:a})(c));return o.createElement("img",{className:l()(i,"apply-common-tooltip",g.icon),crossOrigin:"","data-tooltip":r,src:v,onError:function(){f(u(c))}})}},58442:(e,t,r)=>{"use strict";r.d(t,{QualifiedSources:()=>o,qualifyProName:()=>a});var o,n=r(50151),l=r(56570);r(81319);function a(e){return e}!function(e){function t(e){return e.pro_name}function r(e){{const t=l.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.name;return(0,n.ensureDefined)(t)}}e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:r,symbolname:o,status:n}=e;return"error"===n&&o?o:t(r)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:r,symbol:o}=null!=t?t:e;return l.enabled("pay_attention_to_ticker_not_symbol")?(0,n.ensureDefined)(null!=r?r:o):(0,n.ensureDefined)(o)}},e.fromSymbolInfo=r,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?r(t.params[1]):e}}(o||(o={}))},20882:(e,t,r)=>{"use strict";r.d(t,{createSearchSources:()=>s,filterSearchSources:()=>l,isAllSearchSourcesSelected:()=>n,
|
|
||||||
splitSearchSourcesByGroup:()=>a});const o=[];function n(e){return""===e.value()}function l(e,t){return e.filter((e=>e.includes(t)))}function a(e){const t=new Map;e.forEach((e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}));for(const e of t.values()){e[0].group()!==ExchangeGroup.NorthAmerica&&e.sort(((e,t)=>e.name().toLowerCase()>t.name().toLowerCase()?1:-1))}return new Map([...t.entries()].sort((([e],[t])=>o.indexOf(e)-o.indexOf(t))))}function s(e,t){return t.map((t=>new e(t)))}},70613:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchDialogBodyContext:()=>o});const o=r(50959).createContext(null)},84524:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchItemsDialogContext:()=>o});const o=r(50959).createContext(null)},73280:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchItemsDialog:()=>Xe});var o,n,l,a=r(50959),s=r(97754),i=r.n(s),c=r(11542),u=r(56570),d=r(44254),m=r(81319);function p(e){const t=function(e){let t,r=0,o=0;for(let n=0;n<e.length;n++){const l=e[n];if("whitespace"!==l.type)switch(r){case 0:if("number"!==l.type||1!=+l.value)return[];r=1;break;case 1:if(1!==r||"divide"!==l.type)return[];r=2,t=n+1;break;case 2:if("openBrace"===l.type)r=3,o=1;else if((0,d.isBinaryOperator)(l.type))return[];break;case 3:"openBrace"===l.type?o++:"closeBrace"===l.type&&(o--,o<=0&&(r=2))}}return e.slice(t)}(e);return t.length?(0,d.factorOutBraces)(t):(0,d.factorOutBraces)((0,d.tokenize)("1/("+h(e)+")"))}function h(e){return e.reduce(((e,t)=>"symbol"===t.type&&d.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value),"")}function g(e){const t=function(e){const t=(0,d.tokenize)(e),r=[];return t.forEach((e=>{if("symbol"!==e.type)return;const[t]=(0,d.parseToken)(e);t&&r.push(t)})),r}(e);if(1===t.length)return t[0]}function v(e,t,r){const o=e.value,[n,l]=f(e,r),a=(0,m.getSymbolFullName)(t),s=d.symbolTokenEscapeRe.test(a)?`'${a}'`:a;return[o.substring(0,l)+s+o.substring(l+n.length),l+s.length]}function f(e,t){const{value:r,selectionStart:o}=e,n=(0,d.tokenize)(t?r.toUpperCase():r),l=(0,d.getTokenAtPos)(n,o||0);return[(null==l?void 0:l.value)||"",l?l.offset:r.length,n]}!function(e){e.Init="init",e.Var="var",e.Operator="operator"}(o||(o={})),function(e){e[e.Init=0]="Init",e[e.Div=1]="Div",e[e.Expression=2]="Expression",e[e.BracedExpression=3]="BracedExpression"}(n||(n={})),function(e){e.Stocks="stocks",e.Futures="futures",e.Funds="funds",e.Forex="forex",e.Crypto="bitcoin,crypto",e.Index="index",e.Bond="bond",e.Economic="economic",e.Options="options"}(l||(l={}));const y=["futures","forex","bond","economic","options"];var S=r(84877),b=r(24437),x=r(79418),w=r(9745),k=r(86240),C=r(86781),E=r(84524),I=r(69654),L=r(3343),R=r(19291);function _(e,t,r){return`source-item-${e}-${t}-${r}`}var T=r(20882),N=r(99113);function B(e){const{children:t,className:r}=e;return a.createElement("div",{className:i()(N.container,r)},a.createElement("div",{className:N.childrenWrapper},t))}var M=r(50151),D=r(78036),O=r(24637),F=r(19785),P=r(91540),A=r(78406);function V(e){
|
|
||||||
const{searchSource:t,onClick:r,queryString:o,isFocused:n,id:l}=e,{symbolSearchContent:s,isAllSearchSourcesSelected:c,allSearchSourcesTitle:u,isMobile:d}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),p=s.currentSelectedSearchSource,h=(0,M.ensureNotNull)(p).value(),g=c(t),v=t.value()===h,f=(0,a.useMemo)((()=>(0,F.createRegExpList)(o)),[o]),y=t.description(),S=y&&!g,b=m.isSeparateSymbolSearchTabs&&g&&u?u:t.name(),x=i()(A.container,d?A.mobile:A.desktop,v&&A.selected,n&&A.focused,g&&A.allSelected,g&&A.libAllSelected,!g&&d&&A.bordered);return a.createElement("div",{className:i()(!d&&A.wrap,g&&A.libAllSelected),onClick:r,id:l},a.createElement("div",{className:x},a.createElement("div",{className:A.iconWrap},!!g&&a.createElement(w.Icon,{className:i()(A.icon,A.allSelectedIcon),icon:P})),a.createElement("div",{className:A.textBlock},a.createElement("div",{className:i()(A.title,!S&&!d&&A.titleWithoutDesc)},a.createElement(O.HighlightedText,{className:i()(v&&A.highlighted),queryString:o,text:b,rules:f})),S&&a.createElement("div",{className:i()(A.description,"apply-overflow-tooltip")},a.createElement(O.HighlightedText,{className:A.highlighted,queryString:o,rules:f,text:y})))))}var U=r(77975),Q=r(45345),W=r(26843),K=r(70613),z=r(66619),Z=r(67562),H=r(9854);const q={emptyTextClassName:H.emptyText};function $(e){const{searchSources:t}=e,{setSelectedIndex:o,setSelectedSearchSource:n,setMode:l,isMobile:s,emptyState:u,autofocus:d}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),p=(0,U.useWatchedValueReadonly)({watchedValue:Q.watchedTheme})===W.StdTheme.Dark?z:Z,h=(0,C.useMatchMedia)(k["media-phone-vertical"]),[g,v]=(0,a.useState)(""),f=(0,a.useMemo)((()=>[{group:null,sources:(0,m.createGroupColumns)((0,T.filterSearchSources)(t,g),h?1:2)}]),[t,g,h]),y=((0,a.useMemo)((()=>({})),[]),(0,a.useRef)(null)),S=(0,a.useRef)(null),{focusedItem:b,activeDescendant:x,handleKeyDown:N,resetFocusedItem:M}=function(e,t,r){const[o,n]=(0,a.useState)(null),[l,s]=(0,a.useState)("");function i(t){const r=e[t.groupIndex].sources[t.col].length-1;if(t.row===r){const e=d(t.groupIndex+1);if(null===e)return;return t.col>0&&!u({...t,groupIndex:e,row:0})?void n({groupIndex:e,col:0,row:0}):void n({...t,groupIndex:e,row:0})}n({...t,row:t.row+1})}function c(t){var r,o;if(0===t.row){const l=d(t.groupIndex-1,-1);if(null===l)return;const a=null!==(o=null===(r=e[l].sources[t.col])||void 0===r?void 0:r.length)&&void 0!==o?o:0;return 0===a?void n({groupIndex:l,col:0,row:0}):void n({...t,groupIndex:l,row:a-1})}n({...t,row:t.row-1})}function u(t){var r,o;return Boolean(null===(o=null===(r=e[t.groupIndex])||void 0===r?void 0:r.sources[t.col])||void 0===o?void 0:o[t.row])}function d(t=0,r=1){const o=e.length;let n=(t+o)%o;for(;!u({groupIndex:n,col:0,row:0});)if(n=(n+r+o)%o,n===t)return null;return n}return(0,a.useEffect)((()=>{if(!r.current)return;if(!o)return void s("");const e=_(o.groupIndex,o.col,o.row),t=r.current.querySelector(`#${e}`);null==t||t.scrollIntoView({block:"nearest"}),s(e)}),[o]),(0,a.useEffect)((()=>{n(null)}),[t]),{focusedItem:o,
|
|
||||||
activeDescendant:l,handleKeyDown:function(l){if(!r.current)return;const a=(0,L.hashFromEvent)(l);if(32!==a&&13!==a)switch((0,R.mapKeyCodeToDirection)(a)){case"blockNext":if(l.preventDefault(),!o){const e=d();if(null===e)break;n({groupIndex:e,col:0,row:0});break}i(o);break;case"blockPrev":if(l.preventDefault(),!o)break;c(o);break;case"inlineNext":{if(!o||t)break;l.preventDefault();const r=e[o.groupIndex].sources.length;if(o.col===r-1||!u({...o,col:o.col+1})){i({...o,col:0});break}n({...o,col:o.col+1});break}case"inlinePrev":{if(!o||t)break;l.preventDefault();const r=e[o.groupIndex].sources.length;if(0===o.col){if(0!==o.row){c({...o,col:r-1});break}const t=d(o.groupIndex-1,-1);if(null===t)break;const l=e[t].sources.length,a=e[t].sources[0].length;if(!u({groupIndex:t,col:l-1,row:a-1})){c(o);break}n({groupIndex:t,col:l-1,row:a-1});break}n({...o,col:o.col-1});break}}else{if(!o)return;l.preventDefault();const e=r.current.querySelector(`#${_(o.groupIndex,o.col,o.row)}`);e instanceof HTMLElement&&e.click()}},resetFocusedItem:()=>n(null)}}(f,h,S);(0,a.useLayoutEffect)((()=>{var e;d&&(null===(e=null==y?void 0:y.current)||void 0===e||e.focus())}),[]);const O=u?a.createElement(u,null):a.createElement(B,{className:H.noResultsDesktop},a.createElement(w.Icon,{icon:p,className:H.emptyIcon}),a.createElement("div",{className:H.emptyText},c.t(null,void 0,r(53182)))),F=!(f.length&&f.every((e=>0===e.sources.length)));return a.createElement(K.SymbolSearchDialogBodyContext.Provider,{value:q},a.createElement(I.DialogSearch,{placeholder:c.t(null,void 0,r(8573)),onChange:function(e){M(),v(e.target.value),S&&S.current&&(S.current.scrollTop=0)},reference:y,onKeyDown:N,onBlur:M,"aria-activedescendant":x}),F?a.createElement("div",{ref:S,className:i()(H.contentList,!s&&H.contentListDesktop),onTouchStart:function(){var e;null===(e=y.current)||void 0===e||e.blur()}},f.map(((e,t)=>{const{group:r,sources:o}=e;return 0===o.length?a.createElement(a.Fragment,{key:r}):a.createElement(a.Fragment,{key:r},!1,a.createElement("div",{className:i()(H.searchSourceItemsContainer,!s&&H.searchSourceItemsContainerDesktop,h&&H.oneColumn)},o.map(((e,r)=>a.createElement("div",{key:`${t}-${r}`,className:H.column},e.map(((e,o)=>a.createElement(V,{id:_(t,r,o),isFocused:!!b&&(b.groupIndex===t&&b.col===r&&b.row===o),key:e.value(),searchSource:e,queryString:g,onClick:P.bind(null,e)}))))))))}))):O);function P(e){n(e),l("symbolSearch"),o(-1)}}var j,G,Y,X=r(32227),J=r(14051);r(67580);function ee(e){return e.hasOwnProperty("exchange")}async function te(e){{const t=await async function(e){return new Promise((t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",(e=>{t(e)}))}))}(e);return{symbols:t,symbols_remaining:0}}}!function(e){e.SourceId="source_id",e.EconomicCategory="economic_category",e.SearchType="search_type",e.Sector="sector",e.Product="product",e.Centralization="centralization",e.OnlyHasOptions="only_has_options"}(j||(j={})),function(e){e[e.Prod=0]="Prod",e[e.Local=1]="Local"}(G||(G={})),function(e){
|
|
||||||
e[e.Paginated=0]="Paginated",e[e.NoLimit=1]="NoLimit"}(Y||(Y={}));new Map([].map((({value:e,search_type:t})=>[e,t])));var re=r(78136),oe=r(51768),ne=r(68335),le=r(81348),ae=r(486),se=r(81574),ie=r(35119),ce=r(32617),ue=r(69135),de=r(63861),me=r(25999);function pe(e){var t;const{state:r,update:o}=e,{searchRef:n,forceUpdate:l,upperCaseEnabled:s}=(0,M.ensureNotNull)((0,a.useContext)(E.SymbolSearchItemsDialogContext)),i=(0,d.tokenize)(null===(t=n.current)||void 0===t?void 0:t.value),c=function(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(u.enabled("charting_library_base")&&!u.enabled("show_spread_operators"))return t;let r="init";const o=[];for(let n=0;n<e.length;n++){const l=e[n];if("whitespace"!==l.type){if("incompleteSymbol"===l.type||"incompleteNumber"===l.type){const r=n!==e.length-1,o={status:r?"error":"incomplete",reason:"incomplete_token",offset:l.offset,token:l};if(r?t.errors.push(o):t.warnings.push(o),r)continue}switch(l.type){case"symbol":case"number":if("var"===r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}r="var";break;case"plus":case"minus":case"multiply":case"divide":case"power":if("var"!==r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}r="operator";break;case"openBrace":if("var"===r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}o.push(l),r="init";break;case"closeBrace":if("var"!==r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}o.pop()||t.errors.push({status:"error",reason:"unbalanced_brace",offset:l.offset,token:l}),r="var";break;case"unparsed":t.errors.push({status:"error",reason:"unparsed_entity",offset:l.offset,token:l})}}}for(t.braceBalance=o.length,"var"!==r&&t.warnings.push({status:"incomplete",token:e[e.length-1]});o.length;){const e=o.pop();e&&t.warnings.push({status:"incomplete",reason:"unbalanced_brace",offset:e.offset,token:e})}return t.currentState=r,t}(i);let m=[{icon:ae,insert:"/",type:"binaryOp",name:"division"},{icon:se,insert:"-",type:"binaryOp",name:"subtraction"},{icon:ie,insert:"+",type:"binaryOp",name:"addition"},{icon:ce,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(m=m.concat([{icon:ue,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(m=m.concat([{icon:de,type:"complete",name:"1/x",callback:()=>{!n.current||c.errors.length||c.warnings.length||(n.current.value=h(p(i)),l())}}])),a.createElement("div",{className:me.actions},m.map((e=>a.createElement(le.ToolWidgetButton,{className:me.actionButton,icon:e.icon,key:e.name,isDisabled:he(e,c),onClick:()=>function(e){var t;if(!he(e,c)){if(e.insert&&n.current){const t=n.current.value+e.insert;n.current.value=t,n.current.setSelectionRange(t.length,t.length);const[a,,i]=f(n.current,s);r.current&&(r.current.selectedIndexValue=-1,r.current.searchSpreadsValue=(0,d.isSpread)(i),r.current.searchTokenValue=a),l(),o()}
|
|
||||||
e.callback&&e.callback(),null===(t=n.current)||void 0===t||t.focus(),(0,oe.trackEvent)("GUI","SS",e.name)}}(e)}))))}function he(e,t){let r=!1;if(!t.errors.length)switch(e.type){case"binaryOp":r="var"===t.currentState;break;case"openBrace":r="var"!==t.currentState;break;case"closeBrace":r="var"===t.currentState&&t.braceBalance>0;break;case"complete":r=!t.errors.length&&!t.warnings.length}return!r}var ge=r(63932),ve=r(84952),fe=r(29006),ye=r(14543),Se=r(10381),be=r(52019),xe=r(54464);const we=(0,m.getDefaultSearchSource)();function ke(e){const{mode:t,setMode:o,searchRef:n,cachedInputValue:l,setSelectedIndex:s,setSelectedSearchSource:u,isAllSearchSourcesSelected:d,allSearchSourcesTitle:p,upperCaseEnabled:h,symbolSearchContent:g}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),v=g.currentSelectedSearchSource,f=(0,M.ensureNotNull)(v),y="symbolSearch"===t,S=d(f),b=m.isSeparateSymbolSearchTabs&&S&&p?p:f.name(),x=(0,a.useCallback)((()=>{var e;if(m.isSeparateSymbolSearchTabs&&!S&&we)return u(we),s(-1),void(null===(e=n.current)||void 0===e||e.focus());n.current&&(l.current=h?n.current.value.toUpperCase():n.current.value),o("exchange")}),[S,n,h,o,u]);return m.isSeparateSymbolSearchTabs?y?a.createElement(ye.LightButton,{onClick:x,isPills:!S,size:"xsmall",variant:S?"ghost":"quiet-primary",showCaret:S,endSlot:S?void 0:a.createElement(w.Icon,{icon:be}),enableActiveStateStyles:!1,className:i()(xe.button,!S&&xe.withFlag),tabIndex:-1,"data-name":"sources-button"},a.createElement("div",{className:xe.buttonContent},null,a.createElement("span",null,b))):null:y?a.createElement("div",{className:i()(xe.flagWrap,"apply-common-tooltip",!S&&xe.withFlag),title:c.t(null,void 0,r(57640)),onClick:x,"data-name":"sources-button"},S&&a.createElement(w.Icon,{className:xe.icon,icon:P}),null,a.createElement("div",{className:i()(xe.title)},b),a.createElement(Se.ToolWidgetCaret,{className:xe.caret,dropped:!1})):null}var Ce=r(16872);function Ee(e){const{brokerButton:t=null}=e,{isSmallWidth:o,selectedFilterValues:n,setSelectedFilterValues:l,setSelectedIndex:s,isMobile:u,searchRef:d,symbolSearchContent:p}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),h=p.tabSelectFilters;return m.isSeparateSymbolSearchTabs?a.createElement("div",{className:i()(Ce.wrap,Ce.small,Ce.newStyles,u&&Ce.mobile)},t&&a.createElement("div",{className:Ce.brokerWrap},t),p.canChangeExchange&&a.createElement("div",{className:Ce.filterItem},a.createElement(ke,null)),h&&h.map((e=>{const{id:t,options:r,label:o}=e,i=r.find((e=>e.value===FILTER_DEFAULT_VALUE));if(!i)throw new Error("There must be default filter value in filter definition");const c=r.find((e=>{var r;return e.value===(null===(r=n[p.currentSymbolType])||void 0===r?void 0:r[t])}))||i;return a.createElement("div",{key:t,className:Ce.filterItem},a.createElement(SymbolSearchSelectFilter,{selectedOption:c,defaultOption:i,options:r,onSelect:e=>{var r;l(p.currentSymbolType,{[t]:e.value}),trackEvent("New SS",p.currentSymbolType,null===e.value?e.analyticsLabel:e.value),s(-1),null===(r=d.current)||void 0===r||r.focus()
|
|
||||||
},label:o,isMobile:u,"data-name":t}))}))):a.createElement("div",{className:i()(Ce.wrap,o&&Ce.small)},a.createElement("div",{className:Ce.item},a.createElement("div",{className:Ce.text},o?c.t(null,void 0,r(74007)):c.t(null,void 0,r(95481)))),a.createElement("div",{className:Ce.item},!o&&a.createElement("div",{className:Ce.text},c.t(null,void 0,r(78734))),p.canChangeExchange&&a.createElement("div",{className:Ce.exchange},a.createElement(ke,null))))}var Ie=r(63273),Le=r(90349);function Re(e){const{onTouchMove:t,listRef:r,className:o,listWrapRef:n,virtualListKey:l,items:s,getItemSize:c,hideFeed:u,canLoadMore:d,onLoadMoreSymbols:p}=e,{mode:h,isSmallWidth:g,handleListWidth:v}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),[f,y]=(0,a.useState)(null),S=(0,fe.useResizeObserver)((function([e]){y(e.contentRect.height),v(e.contentRect.width)})),b=(0,a.useCallback)((e=>{const{index:t,style:r}=e;return a.createElement("div",{style:r},s[t])}),[s]),x=(0,a.useCallback)((e=>(0,M.ensure)(s[e].key)),[s]),w="watchlist"===h&&null!==f;return a.createElement("div",{className:i()(Le.wrap,w&&Le.watchlist,u&&Le.noFeed,u&&m.isSeparateSymbolSearchTabs&&Le.newStyles,o),onTouchMove:t,ref:S},a.createElement("div",{ref:n,className:i()(Le.scrollContainer,u&&Le.noFeed)},w?a.createElement(ve.VariableSizeList,{key:l,ref:r,className:Le.listContainer,width:"100%",height:(0,M.ensureNotNull)(f),itemCount:s.length,itemSize:c,children:b,itemKey:x,overscanCount:20,direction:(0,Ie.isRtl)()?"rtl":"ltr"}):a.createElement(a.Fragment,null,a.createElement("div",{className:i()(Le.listContainer,g&&Le.multiLineItemsContainer)},!m.isSeparateSymbolSearchTabs&&a.createElement(Ee,null),...s,!1))))}var _e=r(96967),Te=r(89846),Ne=r(43376);const Be=u.enabled("hide_image_invalid_symbol");function Me(e){const{otherSymbolsCount:t,onChangeSymbolTypeFilter:r,onResetFilters:o,onListTouchMove:n,brokerTitle:l,brokerLogoInfo:i,isBrokerActive:c,onBrokerToggle:u,listRef:d,listWrapRef:p,onLoadMoreSymbols:h,canLoadMore:g}=e,{mode:v,isMobile:f,selectedSymbolType:y,symbolTypes:S,feedItems:b,contentItem:x,emptyState:w=De,symbolSearchContent:k,symbolSearchState:C}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),I=l?a.createElement(BrokerButton,{brokerTitle:l,isActive:c,onToggle:u,onKeyDown:e=>{const t=(0,L.hashFromEvent)(e);t!==9+L.Modifiers.Shift&&9!==t&&e.stopPropagation()},logoInfo:i}):null,R=S.map((e=>({id:e.value,children:e.name}))),_="symbolSearch"===v&&["good","loadingWithPaginated"].includes(C),T=null!=x?x:_e.SymbolSearchDialogContentItem,N=(0,a.useMemo)((()=>b.map((e=>a.createElement(T,{...e,searchToken:k.token})))),[b]);return a.createElement(a.Fragment,null,"symbolSearch"===v&&a.createElement(a.Fragment,null,a.createElement("div",{className:s(Ne.bubblesContainer,!f&&I&&Ne.withButton,f&&Ne.mobile)},S.length>0&&a.createElement(Te.RoundButtonTabs,{id:"symbol-search-tabs",isActive:e=>e.id===y,onActivate:r,overflowBehaviour:f?"scroll":"wrap",className:s(Ne.bubbles,f&&Ne.mobile,m.isSeparateSymbolSearchTabs&&(k.withFilters||I)&&!f&&Ne.withFilters),items:R
|
|
||||||
},f?null:a.createElement("div",null,I)),!m.isSeparateSymbolSearchTabs&&f&&S.length>0&&l&&a.createElement("div",{className:Ne.brokerButtonWrap},I)),m.isSeparateSymbolSearchTabs&&a.createElement(Ee,{brokerButton:f?I:void 0})),a.createElement(Re,{listRef:d,listWrapRef:p,onTouchMove:n,items:N,getItemSize:()=>Fe,onLoadMoreSymbols:h,canLoadMore:g,hideFeed:!_}),"loading"===C&&a.createElement("div",{className:Ne.spinnerWrap},a.createElement(ge.Spinner,null)),"symbolSearch"===v&&a.createElement(a.Fragment,null,!1,"empty"===C&&a.createElement(w,null)))}function De(e){const t=(0,U.useWatchedValueReadonly)({watchedValue:Q.watchedTheme})===W.StdTheme.Dark?z:Z;return a.createElement(B,{className:Ne.noResultsDesktop},!Be&&a.createElement(w.Icon,{icon:t,className:Ne.emptyIcon}),a.createElement("div",{className:Ne.emptyText},c.t(null,void 0,r(76822))))}const Oe=(0,m.getDefaultSearchSource)(),Fe=52;function Pe(e){const{mode:t,setMode:o,setSelectedIndex:n,isMobile:l,selectedSearchSource:s,setSelectedSearchSource:p,isAllSearchSourcesSelected:h,selectedSymbolType:y,setSelectedSymbolType:S,symbolSearchContent:b,setSymbolSearchContent:x,searchRef:w,setSearchSpreads:k,showSpreadActions:C,selectedItem:L,forceUpdate:R,placeholder:_,initialScreen:T,footer:N,searchInput:B,upperCaseEnabled:M,externalInput:O,handleKeyDown:F,customSearchSymbols:P,filterDefinitions:A,filterQueryParams:V,searchSources:U,symbolSearchState:Q,setSymbolSearchState:W,onEmptyResults:z}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),Z=null!=P?P:te,H=(0,a.useRef)(t);H.current=t;const q=(0,a.useRef)(new AbortController),[$,j]=(0,a.useState)(0),G=(0,a.useRef)(0),[Y,le]=(0,a.useState)(b.token),ae=(0,a.useRef)(null),se=(0,a.useRef)(null),ie=(0,a.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ce=(0,a.useRef)(null),ue=(0,a.useRef)(null),de=(0,a.useRef)(null),{broker:me=null,brokerId:he,brokerTitle:ge,brokerLogoInfo:ve,isBrokerChecked:fe=!1,setIsBrokerChecked:ye=(()=>{}),unhideSymbolSearchGroups:Se=""}={brokerId:void 0,brokerTitle:void 0,brokerLogoInfo:void 0};(0,a.useEffect)((()=>()=>{q.current.abort(),Pe(),Ae()}),[]),(0,a.useEffect)((()=>{(null==w?void 0:w.current)&&le(w.current.value)}),[]),(0,a.useEffect)((()=>{const e=w.current;if(e)return e.addEventListener("input",Ie),e.addEventListener("focus",De),e.addEventListener("select",Ee),e.addEventListener("click",Ee),e.addEventListener("keyup",Fe),O&&F&&e.addEventListener("keydown",F),()=>{e&&(e.removeEventListener("input",Ie),e.removeEventListener("focus",De),e.removeEventListener("select",Ee),e.removeEventListener("click",Ee),e.removeEventListener("keyup",Fe),O&&F&&e.removeEventListener("keydown",F))}}),[F]),(0,a.useEffect)((()=>{Boolean(T)&&""===Y.trim()||(x((e=>({...e,symbolStartIndex:0}))),Re(Y,y,s).then((()=>{ae.current&&(ae.current.scrollTop=0)})))}),[Y,y,s,fe,T,V]),(0,a.useEffect)((()=>{var e;if(!L||!w.current)return;if(!u.enabled("show_spread_operators"))return w.current.value=L.symbol,void R();const t=ee(L)?L.exchange:L.parent.exchange;let r
|
|
||||||
;r="contracts"in L&&(null===(e=L.contracts)||void 0===e?void 0:e.length)?L.contracts[0]:L;const o={name:r.symbol,exchange:t,prefix:r.prefix,fullName:r.full_name},[n,l]=v(w.current,o,M);w.current.value=n,w.current.setSelectionRange(l,l),R()}),[L]);const be=null!=T?T:"div",xe=Boolean(T)&&"symbolSearch"!==t,we=null!=B?B:I.DialogSearch,ke=(0,a.useMemo)((()=>({listRef:se,resetRecommends:Be,updateRecommends:Re,searchToken:Y,emptyTextClassName:Ne.emptyText,isBrokerChecked:fe,symbolSearchState:Q,currentMode:H})),[se,Y,fe,Q,H,V]);return a.createElement(K.SymbolSearchDialogBodyContext.Provider,{value:ke},!(O&&"symbolSearch"===t)&&a.createElement(we,{reference:w,className:i()(Ne.search,M&&Ne.upperCase),placeholder:_||c.t(null,void 0,r(8573))},C&&a.createElement(pe,{state:ie,update:Le})),xe?a.createElement(be,null):a.createElement(Me,{otherSymbolsCount:$,onListTouchMove:function(){var e;null===(e=w.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{id:t}=e;S(t),n(-1)},onResetFilters:function(){var e;m.isSeparateSymbolSearchTabs?"resetFilter"===Q?S((0,m.getAllSymbolTypesValue)()):Oe&&p(Oe):(S((0,m.getAllSymbolTypesValue)()),Oe&&p(Oe));ye(!1),l||null===(e=w.current)||void 0===e||e.focus()},brokerTitle:ge,brokerLogoInfo:ve,isBrokerActive:fe,onBrokerToggle:ye,listRef:se,listWrapRef:ae,onLoadMoreSymbols:void 0,canLoadMore:void 0}),N);function Ce(){if(!w.current)return;const[e,t,r]=f(w.current,M);G.current=t,ie.current={selectedIndexValue:-1,searchSpreadsValue:(0,d.isSpread)(r),searchTokenValue:e},ce.current||(ce.current=setTimeout(Le,0))}function Ee(){if(!w.current)return;const[,e]=f(w.current,M);e!==G.current&&Ce()}function Ie(){u.enabled("show_spread_operators")?Ce():w.current&&(ie.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:w.current.value},ce.current||(ce.current=setTimeout(Le,0)))}function Le(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:r}=ie.current;ce.current=null,(0,X.unstable_batchedUpdates)((()=>{k(r),n(e),le(M?t.toUpperCase():t)}))}async function Re(e,t,r,o){var n,l,a;try{"noop"===Q?W("loading"):o?W("loadingWithPaginated"):(Pe(),Ae(),ue.current=setTimeout((()=>{const r=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),o=null==A?void 0:A[t];x({token:e,canChangeExchange:r,tabSelectFilters:o,withFilters:Boolean(r||(null==o?void 0:o.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U,renderSymbolSearchList:[],symbolsRemaining:0,symbolStartIndex:0}),W("loading")}),500)),Ve();(0,m.getAllSymbolTypesValue)();const i=!1;let c;if(fe&&me){c=(await(0,J.respectAbort)(q.current.signal,me.accountMetainfo())).prefix}const d=u.enabled("show_spread_operators")?null!==(l=null!==(n=g(e))&&void 0!==n?n:c)&&void 0!==l?l:null==r?void 0:r.getRequestExchangeValue():null==s?void 0:s.getRequestExchangeValue(),p=g(e)||null===(a=r||s)||void 0===a?void 0:a.getRequestCountryValue(),[h,v]=await Promise.all([Te(q.current.signal,e,t,r,d,p,o),i&&!o?getRecent():Promise.resolve([])]),f=v.filter((e=>{var t,r
|
|
||||||
;return d?(null===(t=e.exchange)||void 0===t?void 0:t.toLowerCase())===d.toLowerCase():!p||(null===(r=e.country)||void 0===r?void 0:r.toLowerCase())===p.toLowerCase()})),y=new Set(f.map((e=>`${e.exchange}_${e.symbol}`))),S=h.symbols.filter((e=>!y.has(`${e.exchange}_${e.symbol}`)));let w=function(e,t=window.ChartApiInstance.symbolsGrouping()){var r;const o={},n=[];for(let l=0;l<e.length;++l){const a=e[l];if(a.prefix||Array.isArray(a.contracts))return e;const s=t[a.type];if(void 0===s){n.push(a);continue}const i=s.exec(a.symbol);if(i){const e=i[1];let t;o.hasOwnProperty(e)?t=o[e]:(t=n.length,o[e]=t,n.push({type:a.type,symbol:e,exchange:a.exchange,description:a.description,full_name:a.exchange+":"+e,contracts:[]})),null===(r=n[t].contracts)||void 0===r||r.push(a)}else n.push(a)}return n}([...f,...S]);if(o&&(w=[...b.renderSymbolSearchList,...w]),!w.length)return x((r=>{const o=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),n=null==A?void 0:A[t];return{...r,canChangeExchange:o,tabSelectFilters:n,token:e,symbolsRemaining:0,withFilters:Boolean(o||(null==n?void 0:n.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U}})),Pe(),W("empty"),void _e();Pe(),x((r=>{const o=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),n=null==A?void 0:A[t];return{...r,canChangeExchange:o,tabSelectFilters:n,renderSymbolSearchList:w,token:e,symbolsRemaining:h.symbols_remaining,withFilters:Boolean(o||(null==n?void 0:n.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U,symbolStartIndex:r.symbolStartIndex+h.symbols.length}})),W("good")}catch(e){(0,J.skipAbortError)(e)}}function _e(){z&&(de.current=setTimeout((()=>z()),1e3))}async function Te(e,t,r,o,n,l,a){var s;const i={serverHighlight:!1,text:u.enabled("show_spread_operators")?(0,d.shortName)(t):null===(s=w.current)||void 0===s?void 0:s.value,exchange:n,country:l,type:r,lang:window.language||"",sortByCountry:void 0,brokerId:he,onlyTradable:Boolean(he)&&fe,unhideSymbolSearchGroups:Se,signal:e,start:a,filterQueryParams:V},c=(0,re.getSearchRequestDelay)();return void 0!==c&&await(0,J.delay)(e,c),Z(i)}function Be(){Ve(),W("empty"),le(""),k(!1),x((e=>({...e,symbolStartIndex:0}))),Pe()}function De(){"watchlist"===H.current&&(o("symbolSearch"),(0,oe.trackEvent)("Watchlist","Mobile SS","Go to SS page"))}function Fe(e){switch((0,ne.hashFromEvent)(e)){case 37:case 39:Ee()}}function Pe(){ue.current&&clearTimeout(ue.current)}function Ae(){de.current&&clearTimeout(de.current)}function Ve(){q.current.abort(),q.current=new AbortController}}var Ae=r(48199),Ve=r(74395),Ue=r(58442),Qe=r(56840);function We(e){const[t,r]=(0,a.useState)((()=>{const{defaultSearchSource:t,searchSources:r}=e,o=Qe.getValue("symboledit.exchangefilter","");return r.find((e=>e.value()===o))||t}));return[t,(0,a.useCallback)((e=>{var t;r(e),t=e,Qe.setValue("symboledit.exchangefilter",t.value())}),[])]}function Ke(e){const[t,r]=(0,a.useState)((()=>{if(1===e.types.length)return e.types[0].value;const t=Qe.getValue("symboledit.filter",(0,
|
|
||||||
m.getAllSymbolTypesValue)());return e.types.find((e=>e.value===t))?t:(0,m.getAllSymbolTypesValue)()}));return[t,(0,a.useCallback)((e=>{var t;r(e),t=e,Qe.setValue("symboledit.filter",t)}),[])]}var ze=r(36947),Ze=r(82708),He=r(88145),qe=r(76460),$e=r(26664);const je=(0,m.getAvailableSearchSources)(),Ge=(0,m.getDefaultSearchSource)(),Ye=u.enabled("uppercase_instrument_names");function Xe(e){var t;const{onClose:o,initialMode:n,defaultValue:l="",showSpreadActions:s,hideMarkedListFlag:i,selectSearchOnInit:d=!0,onSearchComplete:p,dialogTitle:h=c.t(null,void 0,r(51165)),placeholder:g,fullscreen:f,initialScreen:x,wrapper:w,dialog:k,contentItem:C,footer:I,searchInput:L,emptyState:_,autofocus:N,dialogWidth:B,onKeyDown:M,searchSourcesScreen:D,customSearchSymbols:O,isDisableFiltering:F,disableRecents:P,shouldReturnFocus:A,onSymbolFiltersParamsChange:V,onEmptyResults:U}=e,Q=(0,a.useMemo)((()=>F?[]:e.symbolTypes?e.symbolTypes:(0,m.getAvailableSymbolTypes)()),[]),W=void 0!==e.input,K=F?[]:je,[z,Z]=(0,a.useState)(n),H=(0,a.useRef)(l),[q,j]=We({searchSources:K,defaultSearchSource:Ge}),[G,Y]=[],[X,J]=Ke({types:Q}),[re,oe]=[{},()=>{}],[le,ae]=(0,a.useState)(!1),[se,ie]=(0,a.useState)(-1),[ce,ue]=(0,a.useState)("noop"),de=m.isSeparateSymbolSearchTabs?TAB_SELECT_FILTER_MAP:void 0,me=m.isSeparateSymbolSearchTabs?(null==G?void 0:G[X])||Ge:q,pe=(0,a.useMemo)((()=>{if(!m.isSeparateSymbolSearchTabs)return K;return K.filter((e=>{const t=TAB_SOURCE_FILTER_MAP[X];if(!t)return!1;if(!X)return!0;const r=e.group();return r===ExchangeGroup.AllExchanges||r&&t.value.includes(r)}))}),[K,X]),[he,ge]=(0,a.useState)((()=>{const e=Boolean(q&&je.length>1&&!(0,m.exchangeSelectDisabled)(X)),t=null==de?void 0:de[X];return{canChangeExchange:e,tabSelectFilters:t,withFilters:Boolean(e||(null==t?void 0:t.length)),renderSymbolSearchList:[],token:H.current,symbolsRemaining:0,currentSymbolType:X,currentSelectedSearchSource:me,currentTabAvailableSearchSources:pe,symbolStartIndex:0}})),ve=(0,a.useCallback)((e=>{trackEvent("New SS",X,"Change sources"),null==Y||Y(X,e),ge((t=>({...t,currentSelectedSearchSource:e})))}),[X,ge]),fe=(0,a.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[ye,Se]=(0,a.useState)(!1),be=(0,ze.useForceUpdate)(),[xe,we]=(0,a.useState)(new Set),{broker:ke=null,brokerId:Ce,unhideSymbolSearchGroups:Ee="",displayBrokerSymbol:Le=!1}={brokerId:void 0};(0,a.useLayoutEffect)((()=>{var e;!(null==fe?void 0:fe.current)||!W&&Boolean(null===(e=fe.current)||void 0===e?void 0:e.value)||(W||"compare"===z||(fe.current.value=H.current),!N||W&&"symbolSearch"!==z||fe.current.focus())}),[z]),(0,a.useEffect)((()=>{(null==fe?void 0:fe.current)&&d&&N&&fe.current.select()}),[]);const Re=(0,a.useMemo)((()=>he.renderSymbolSearchList.reduce(((e,t)=>{const r=tt(t),o=xe.has(r);return e.push(t),o&&t.contracts&&e.push(...t.contracts.map((e=>({...e,parent:t})))),e}),[])),[he.renderSymbolSearchList,xe]),_e=(0,a.useRef)(null);(0,a.useEffect)((()=>{var e;-1!==se&&(null===(e=_e.current)||void 0===e||e.scrollIntoView({block:"nearest"}))}),[se,_e]);const Te=y.includes(X),Ne=(0,
|
|
||||||
a.useMemo)((()=>Re.map(((e,t)=>{var r,o,n,l;if(ee(e)){const n=tt(e),l=e.contracts?xe.has(n):void 0,a=t===se,s=he.renderSymbolSearchList.findIndex((t=>t.symbol===e.symbol&&t.exchange===e.exchange))+1;return{key:t,numberInList:s,id:n,title:et(e,Le),description:e.description,isOffset:!1,onClick:at.bind(null,e,s),providerId:e.provider_id,source:e.source,source2:e.source2,country:null===(r=e.country)||void 0===r?void 0:r.toLocaleLowerCase(),type:e.type,exchangeName:null===e.exchange?void 0:e.exchange,exchangeTooltip:"",prefix:e.prefix||void 0,marketType:(0,Ve.marketType)(e.type,e.typespecs,!1),hideMarketType:Te,isEod:(null===(o=e.params)||void 0===o?void 0:o.includes("eod"))&&"economic"!==e.type,isYield:(0,He.isYield)(e),isExpanded:l,onExpandClick:e.contracts?st.bind(null,n):void 0,fullSymbolName:e.contracts?Ue.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):Ue.QualifiedSources.fromSymbolSearchResult(e),itemRef:a?_e:void 0,isSelected:t===se,hideMarkedListFlag:i,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ze.safeShortName)(Ue.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code,isPrimary:e.is_primary_listing}}{const{parent:r}=e,o=tt(r),a=t===se,s=he.renderSymbolSearchList.findIndex((e=>e.symbol===r.symbol&&e.exchange===r.exchange))+1;return{key:t,numberInList:s,id:o+e.symbol,dangerousTitleHTML:et(e,Le),dangerousDescriptionHTML:`${r.description}`+(e.description?` (${e.description})`:""),isOffset:!0,isEod:null===(n=e.params)||void 0===n?void 0:n.includes("eod"),isYield:(0,He.isYield)(e),onClick:it.bind(null,e.parent,e,s),providerId:r.provider_id,country:null===(l=r.country)||void 0===l?void 0:l.toLowerCase(),type:r.type,exchangeName:null===r.exchange?void 0:r.exchange,exchangeTooltip:"",marketType:(0,Ve.marketType)(r.type,e.typespecs,!1),hideMarketType:Te,fullSymbolName:Ue.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:a?_e:void 0,isSelected:a,hideMarkedListFlag:i,item:e}}}))),[he.renderSymbolSearchList,xe,z,se,M]),Be=(0,a.useMemo)((()=>function(e,t,r){const o=null==t?void 0:t[e],n=new Map(null==o?void 0:o.map((e=>[e.id,e.urlParam]))),l=r[e];let a;if(l){a={};for(const[e,t]of Object.entries(l)){const r=n.get(e);r&&(a[r]=t)}}return a}(X,de,re)),[X,de,re]),Me=(0,a.useMemo)((()=>he.renderSymbolSearchList.slice(0,20).map((e=>e.contracts?Ue.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):Ue.QualifiedSources.fromSymbolSearchResult(e)))),[he.renderSymbolSearchList]);(0,a.useEffect)((()=>{var e,t,r;if(!V)return;const o=["resetFilter","resetTabFilter","empty"].includes(ce)?[]:Me,n={...Be,result_list:o};if(n.search_type||(n.search_type="bitcoin,crypto"===X?"crypto":X),!m.isSeparateSymbolSearchTabs)return n.exchange=null!==(e=null==me?void 0:me.getRequestCountryValue())&&void 0!==e?e:null,void V(n);if(X){const e=null!==(t=null==me?void 0:me.getRequestCountryValue())&&void 0!==t?t:null;e&&(n.country=e);const o=null!==(r=null==me?void 0:me.getRequestExchangeValue())&&void 0!==r?r:null;o&&(n.exchange=o)}V(n)
|
|
||||||
}),[X,Be,Me,me,ce]);const De=null!=k?k:ot,Oe=De!==ot&&!W,Fe=(e,t)=>{var r;return{mode:z,setMode:Z,selectedSearchSource:me,setSelectedSearchSource:m.isSeparateSymbolSearchTabs?ve:j,isAllSearchSourcesSelected:T.isAllSearchSourcesSelected,allSearchSourcesTitle:m.isSeparateSymbolSearchTabs?null===(r=TAB_SOURCE_FILTER_MAP[he.currentSymbolType])||void 0===r?void 0:r.allSearchSourcesTitle:void 0,selectedSymbolType:X,setSelectedSymbolType:J,selectedIndex:se,setSelectedIndex:ie,onClose:o,setSymbolSearchContent:ge,symbolSearchContent:he,searchRef:fe,cachedInputValue:H,searchSpreads:le,setSearchSpreads:ae,handleListWidth:ct,isSmallWidth:ye,feedItems:Ne,isMobile:e,showSpreadActions:s,selectSearchOnInit:d,isTablet:t,selectedItem:Re[se],forceUpdate:be,placeholder:g,initialScreen:x,toggleExpand:st,openedItems:xe,onSubmit:mt,onSearchComplete:p,footer:I,symbolTypes:Q,contentItem:C,searchInput:L,emptyState:_,autofocus:N,upperCaseEnabled:Ye,externalInput:W,handleKeyDown:Oe?void 0:dt,customSearchSymbols:O,searchSources:pe,filterDefinitions:de,selectedFilterValues:re,setSelectedFilterValues:oe,filterQueryParams:Be,symbolSearchState:ce,setSymbolSearchState:ue,onEmptyResults:void 0}},Qe=null!=D?D:$,Xe="exchange"===z,nt=Xe?{title:c.t(null,void 0,r(28628)),dataName:"exchanges-search",render:()=>a.createElement(Qe,{searchSources:he.currentTabAvailableSearchSources}),additionalHeaderElement:a.createElement(Ae.BackButton,{onClick:()=>Z("symbolSearch"),className:$e.backButton,size:"medium","aria-label":c.t(null,{context:"input"},r(41256)),preservePaddings:!0,flipIconOnRtl:(0,Ie.isRtl)()}),additionalElementPos:"before"}:{title:h,dataName:"symbol-search-items-dialog",render:()=>a.createElement(Pe,null),additionalElementPos:"after"},lt=null!=w?w:"div";return a.createElement(lt,null,a.createElement(S.MatchMediaMap,{rules:b.DialogBreakpoints},(({TabletSmall:e,TabletNormal:t})=>a.createElement(E.SymbolSearchItemsDialogContext.Provider,{value:Fe(e,t)},a.createElement(De,{...nt,shouldReturnFocus:A,fullScreen:f,onClose:o,onClickOutside:o,onKeyDown:Oe?void 0:dt,isOpened:!0})))));function at(e,t,r){if(e.contracts)return e.contracts.length?void it(e,e.contracts[0],t,r):void st(tt(e));it(e,void 0,t,r)}function st(e){const t=new Set(xe);t.has(e)?t.delete(e):t.add(e),we(t)}function it(e,t,r,n){const l=t||e,{exchange:a}=e;if(u.enabled("show_spread_operators")){const e={name:l.symbol,exchange:a,prefix:l.prefix,fullName:l.full_name};if(le)return ut(e),void be();if(fe.current&&fe.current.value.includes(","))return void ut(e)}pt([{resolved:!0,symbol:Ue.QualifiedSources.fromSymbolSearchResult(e,t),result:l}],r,n),o()}function ct(e){Se("fixed"===B||e<=640)}function ut(e){if(!fe.current)return;const[t,r]=v(fe.current,e,Ye);fe.current.value=t,fe.current.setSelectionRange(r,r),fe.current.focus()}function dt(e){if(e.target&&e.target!==fe.current)return;const t=(0,ne.hashFromEvent)(e);switch(t){case 13:e.preventDefault(),mt(!0);break;case 27:if(e.preventDefault(),Xe)return void Z("symbolSearch");o()}switch((0,R.mapKeyCodeToDirection)(t)){case"blockPrev":
|
|
||||||
if(e.preventDefault(),0===se||"good"!==ce)return;if(-1===se)return void ie(0);ie(se-1);break;case"blockNext":if(e.preventDefault(),se===Ne.length-1||"good"!==ce)return;ie(se+1);break;case"inlinePrev":{if(-1===se)return;const t=Ne[se],{id:r,isOffset:o,onExpandClick:n}=t;if(!o&&r&&xe.has(r)&&Boolean(n)&&!Boolean(M)&&(e.preventDefault(),st(r)),n)return void(null==M||M(e,!0));break}case"inlineNext":{if(-1===se)return;const t=Ne[se],{id:r,isOffset:o,onExpandClick:n}=t;if(o||!r||xe.has(r)||!Boolean(n)||Boolean(M)||(e.preventDefault(),st(r)),n)return void(null==M||M(e,!0));break}}null==M||M(e)}function mt(e){if(!fe.current)return;let t=fe.current.value;if(u.enabled("show_spread_operators")&&le&&t){const r=Ne[se];if(r&&void 0!==r.isExpanded&&(r.onClick(),t=fe.current.value),t.includes(",")){return pt(rt(t).map(Je),null),void(e&&o())}return pt([{symbol:Ye?t.toUpperCase():t,resolved:!1}],null),void(e&&o())}if(t.includes(","))return pt(rt(t).map(Je),null),void(e&&o());if(-1!==se){Ne[se].onClick()}else if(u.enabled("allow_arbitrary_symbol_search_input")){const r=Ye?t.toUpperCase():t;if(r&&""!==r.trim()){const e=rt(r);if(void 0!==Ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map((e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==ke?void 0:ke.accountMetainfo()))||void 0===t||t.prefix;const r=void 0,o=await te({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:Ce,onlyTradable:!0,unhideSymbolSearchGroups:Ee,exchange:r});if(0!==o.symbols.length){const e=o.symbols[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,n=e.prefix||e.exchange,l=r?r.symbol:e.symbol;if(n&&l)return{symbol:Ue.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e)))))})(e).then((e=>pt(e,null)));else{pt(e.map(Je),null)}}e&&o()}else if("empty"!==ce&&Ne.length>0){Ne[0].onClick()}}async function pt(e,t,r){var o;const[{result:n,symbol:l,resolved:a}]=e,s=null===(o=fe.current)||void 0===o?void 0:o.value,i=!r||(0,qe.isKeyboardClick)(r);let c=le;void 0!==n&&ee(n)&&(c="spread"===n.type),p(e,{symbolType:X,isKeyboardEvent:i,numberInList:t,inputValue:s,isSpread:c})}}function Je(e){return{symbol:Ye?e.toUpperCase():e,resolved:!1}}function et(e,t){const{broker_symbol:r,symbol:o,description:n}=e;return`${"spread"===e.type?n:o}${t&&r?` (${r})`:""}`}function tt(e){return e.symbol+e.exchange+e.description}function rt(e){return e.split(",").map((e=>e.trim())).filter((e=>""!==e))}function ot(e){const{isMobile:t,isTablet:r}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext);return a.createElement(x.AdaptivePopupDialog,{...e,className:i()($e.dialog,!t&&(r?$e.tabletDialog:$e.desktopDialog)),backdrop:!0,draggable:!1})}},81319:(e,t,r)=>{"use strict";r.d(t,{createGroupColumns:()=>p,exchangeSelectDisabled:()=>m,getAllSymbolTypesValue:()=>d,getAvailableSearchSources:()=>c,getAvailableSymbolTypes:()=>u,getDefaultSearchSource:()=>i,getSymbolFullName:()=>s,isSeparateSymbolSearchTabs:()=>h});var o=r(11542),n=r(20882);class l{
|
|
||||||
constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,n.isAllSearchSourcesSelected)(this)?o.t(null,void 0,r(34040)):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const r=t.toLowerCase(),{name:o,desc:n,searchTerms:l}=e;return o.toLowerCase().includes(r)||n.toLowerCase().includes(r)||void 0!==l&&l.some((e=>e.toLowerCase().includes(r)))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}var a=r(3685);function s(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function i(){const e=c();return e.find(n.isAllSearchSourcesSelected)||e[0]||null}function c(){return(0,n.createSearchSources)(l,(0,a.getExchanges)())}function u(){return window.ChartApiInstance.supportedSymbolsTypes()}function d(){return""}function m(e){return!!h&&!TAB_SOURCE_FILTER_MAP[e]}function p(e,t=2){if(0===e.length)return[];if(1===t)return[e];const r=Math.floor(e.length/2)+e.length%2;return[e.slice(0,r),e.slice(r)].filter((e=>e.length>0))}const h=!1},82708:(e,t,r)=>{"use strict";r.d(t,{safeShortName:()=>n});var o=r(13665);function n(e){try{return(0,o.shortName)(e)}catch(t){return e}}},44254:(e,t,r)=>{"use strict";r.d(t,{factorOutBraces:()=>h,getTokenAtPos:()=>p,isBinaryOperator:()=>d,isSpread:()=>m,parseToken:()=>v,shortName:()=>g,symbolTokenEscapeRe:()=>s,tokenize:()=>u});var o,n=r(56570),l=r(18429);!function(e){e.Symbol="symbol",e.IncompleteSymbol="incompleteSymbol",e.Number="number",e.IncompleteNumber="incompleteNumber",e.SeparatorPrefix="separatorPrefix",e.OpenBrace="openBrace",e.CloseBrace="closeBrace",e.Plus="plus",e.Minus="minus",e.Multiply="multiply",e.Divide="divide",e.Power="power",e.Whitespace="whitespace",e.Unparsed="unparsed"}(o||(o={}));const a=n.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=/[+\-/*]/,i={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:a,incompleteSymbol:/'[^']*/,separatorPrefix:l.SEPARATOR_PREFIX,openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},c=new RegExp(Object.values(i).map((e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t})).filter((e=>""!==e)).concat(".").join("|"),"g");function u(e){if(!e)return[];const t=[],r=Object.keys(i);let o;for(;o=c.exec(e);){let e=!1;for(let n=r.length;n--;)if(o[n+1]){r[n]&&t.push({value:o[n+1],type:r[n],precedence:0,offset:o.index}),e=!0;break}e||t.push({value:o[0],type:"unparsed",precedence:0,offset:o.index})}return t}function d(e){
|
|
||||||
return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function m(e){return e.length>1&&e.some((e=>d(e.type)))}function p(e,t){for(let r=0;r<e.length;r++){const o=e[r],n="symbol"===o.type||"incompleteSymbol"===o.type||"number"===o.type;if(o.offset<=t&&t<=o.offset+o.value.length&&n)return o}return null}function h(e){e=function(e){const t=[];for(const r of e)"whitespace"!==r.type&&t.push(r);return t}(e);const t=[],r=[];let o;for(let n=0;n<e.length;n++){const l=e[n];switch(l.type){case"plus":case"minus":case"multiply":case"divide":case"power":r.length&&r[r.length-1].minPrecedence>l.precedence&&(r[r.length-1].minPrecedence=l.precedence);break;case"openBrace":o={minPrecedence:1/0,openBraceIndex:n},r.push(o);break;case"closeBrace":{if(o=r.pop(),!o)break;const l=e[o.openBraceIndex-1],a=e[n+1],s=l&&("plus"===l.type||"multiply"===l.type);(!d(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<=o.minPrecedence)&&(!d(null==l?void 0:l.type)||(null==l?void 0:l.precedence)<(null==o?void 0:o.minPrecedence)||(null==l?void 0:l.precedence)===(null==o?void 0:o.minPrecedence)&&s)&&(t.unshift(o.openBraceIndex),t.push(n),r.length&&r[r.length-1].minPrecedence>o.minPrecedence&&(r[r.length-1].minPrecedence=o.minPrecedence))}}}for(let r=t.length;r--;)e.splice(t[r],1);return e}function g(e){return h(u(e)).reduce(((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,r]=v(t);return r?e+r:e}),"")}function v(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}},618:(e,t,r)=>{"use strict";r.d(t,{removeUsdFromCryptoPairLogos:()=>a,resolveLogoUrls:()=>l});var o=r(36279);const n=(0,o.getLogoUrlResolver)();function l(e,t=o.LogoSize.Medium){const r=e.logoid,l=e["base-currency-logoid"],a=e["currency-logoid"],s=r&&n.getSymbolLogoUrl(r,t);if(s)return[s];const i=l&&n.getSymbolLogoUrl(l,t),c=a&&n.getSymbolLogoUrl(a,t);return i&&c?[i,c]:i?[i]:c?[c]:[]}function a(e){return 2!==e.length?e:function(e){return e.some((e=>s(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!s(e)))}(e)?e.filter((e=>!s(e))):e}function s(e){return!1}},39330:(e,t,r)=>{"use strict";r.d(t,{getBlockStyleClasses:()=>a,getLogoStyleClasses:()=>s});var o=r(97754),n=r(44576),l=r.n(n);function a(e,t){return o(l()["tv-circle-logo-pair"],l()[`tv-circle-logo-pair--${e}`],t)}function s(e,t=!0){return o(l()["tv-circle-logo-pair__logo"],l()[`tv-circle-logo-pair__logo--${e}`],!t&&l()["tv-circle-logo-pair__logo-empty"])}},58492:(e,t,r)=>{"use strict";r.d(t,{getStyleClasses:()=>o.getStyleClasses});var o=r(53885)},19785:(e,t,r)=>{"use strict";r.d(t,{createRegExpList:()=>a,getHighlightedChars:()=>s,rankedSearch:()=>l});var o,n=r(37265);function l(e){const{data:t,rules:r,queryString:o,isPreventedFromFiltering:l,primaryKey:a,secondaryKey:s=a,optionalPrimaryKey:i,tertiaryKey:c}=e;return t.map((e=>{const t=i&&e[i]?e[i]:e[a],l=e[s],u=c&&e[c];let d,m=0;return r.forEach((e=>{var r,a,s,i,c;const{re:p,fullMatch:h}=e;if(p.lastIndex=0,(0,n.isString)(t)&&t&&t.toLowerCase()===o.toLowerCase())return m=4,
|
|
||||||
void(d=null===(r=t.match(h))||void 0===r?void 0:r.index);if((0,n.isString)(t)&&h.test(t))return m=3,void(d=null===(a=t.match(h))||void 0===a?void 0:a.index);if((0,n.isString)(l)&&h.test(l))return m=2,void(d=null===(s=l.match(h))||void 0===s?void 0:s.index);if((0,n.isString)(l)&&p.test(l))return m=2,void(d=null===(i=l.match(p))||void 0===i?void 0:i.index);if(Array.isArray(u))for(const e of u)if(h.test(e))return m=1,void(d=null===(c=e.match(h))||void 0===c?void 0:c.index)})),{matchPriority:m,matchIndex:d,item:e}})).filter((e=>l||e.matchPriority)).sort(((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0})).map((({item:e})=>e))}function a(e,t){const r=[],o=e.toLowerCase(),n=e.split("").map(((e,t)=>`(${0!==t?`[/\\s-]${i(e)}`:i(e)})`)).join("(.*?)")+"(.*)";return r.push({fullMatch:new RegExp(`(${i(e)})`,"i"),re:new RegExp(`^${n}`,"i"),reserveRe:new RegExp(n,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(o)&&r.push({fullMatch:t[o],re:t[o],fuzzyHighlight:!1}),r}function s(e,t,r){const o=[];return e&&r?(r.forEach((e=>{const{fullMatch:r,re:n,reserveRe:l}=e;r.lastIndex=0,n.lastIndex=0;const a=r.exec(t),s=a||n.exec(t)||l&&l.exec(t);if(e.fuzzyHighlight=!a,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const r=s[t],n=s[t].length;if(t%2){const t=r.startsWith(" ")||r.startsWith("/")||r.startsWith("-");o[t?e+1:e]=!0}e+=n}}else for(let e=0;e<s[0].length;e++)o[s.index+e]=!0})),o):o}function i(e){return e.replace(/[!-/[-^{-}?]/g,"\\$&")}!function(e){e[e.Low=0]="Low",e[e.MediumLow=1]="MediumLow",e[e.Medium=2]="Medium",e[e.High=3]="High",e[e.Highest=4]="Highest"}(o||(o={}))},24637:(e,t,r)=>{"use strict";r.d(t,{HighlightedText:()=>s});var o=r(50959),n=r(97754),l=r(19785),a=r(32248);function s(e){const{queryString:t,rules:r,text:s,className:i}=e,c=(0,o.useMemo)((()=>(0,l.getHighlightedChars)(t,s,r)),[t,r,s]);return o.createElement(o.Fragment,null,c.length?s.split("").map(((e,t)=>o.createElement(o.Fragment,{key:t},c[t]?o.createElement("span",{className:n(a.highlighted,i)},e):o.createElement("span",null,e)))):s)}},78036:(e,t,r)=>{"use strict";r.d(t,{useEnsuredContext:()=>l});var o=r(50959),n=r(50151);function l(e){return(0,n.ensureNotNull)((0,o.useContext)(e))}},29006:(e,t,r)=>{"use strict";r.d(t,{useResizeObserver:()=>o.useResizeObserver});var o=r(67842)},84877:(e,t,r)=>{"use strict";r.d(t,{MatchMediaMap:()=>a});var o=r(50959),n=r(66783),l=r.n(n);class a extends o.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=i(this.state.queries,((e,t)=>t.matches));let t=!1;for(const r in e)if(e.hasOwnProperty(r)&&this.state.matches[r]!==e[r]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=s(t)}shouldComponentUpdate(e,t){return!l()(e,this.props)||(!l()(t.rules,this.state.rules)||!l()(t.matches,this.state.matches))}componentDidMount(){
|
|
||||||
this._migrate(null,this.state.queries)}componentDidUpdate(e,t){l()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(l()(e.rules,t.rules))return null;const{rules:r}=e;return s(r)}_migrate(e,t){null!==e&&i(e,((e,t)=>{t.removeEventListener("change",this._handleMediaChange)})),null!==t&&i(t,((e,t)=>{t.addEventListener("change",this._handleMediaChange)}))}}function s(e){const t=i(e,((e,t)=>window.matchMedia(t)));return{queries:t,matches:i(t,((e,t)=>t.matches)),rules:{...e}}}function i(e,t){const r={};for(const o in e)e.hasOwnProperty(o)&&(r[o]=t(o,e[o]));return r}},4237:(e,t,r)=>{"use strict";var o=r(32227);t.createRoot=o.createRoot,o.hydrateRoot},74395:(e,t,r)=>{"use strict";r.d(t,{VISIBLE_TYPESPECS:()=>a,marketType:()=>s});var o=r(11542);const n=new Map([["cfd",o.t(null,void 0,r(79599))],["dr",o.t(null,void 0,r(47268))],["index",o.t(null,void 0,r(61833))],["forex",o.t(null,void 0,r(17770))],["right",o.t(null,{context:"symbol_type"},r(53174))],["bond",o.t(null,void 0,r(42358))],["bitcoin",o.t(null,void 0,r(46128))],["crypto",o.t(null,void 0,r(46128))],["economic",o.t(null,void 0,r(54094))],["indices",o.t(null,void 0,r(90250))],["futures",o.t(null,void 0,r(4723))],["stock",o.t(null,void 0,r(76752))],["commodity",o.t(null,void 0,r(70932))]]);r(21251);const l=new Map,a=new Set(["cfd","spreadbet","defi","yield","government","corporate","mutual","money","etf","unit","trust","reit","etn","convertible","closedend","crypto","oracle"]);function s(e,t=[],r=!0){const o=t.filter((e=>a.has(e))),s=`${e}_${o.sort().join("_")}`,i=l.get(s);if(void 0!==i)return i;const c=r?function(e){return n.get(e)||e}(e):e,u=Boolean(t.length)?[c,...o].join(" "):c;return l.set(s,u),u}},52019:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M13.35 5.35a.5.5 0 0 0-.7-.7L9 8.29 5.35 4.65a.5.5 0 1 0-.7.7L8.29 9l-3.64 3.65a.5.5 0 0 0 .7.7L9 9.71l3.65 3.64a.5.5 0 0 0 .7-.7L9.71 9l3.64-3.65z"/></svg>'},95694:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M17 22.5 6.85 12.35a.5.5 0 0 1 0-.7L17 1.5"/></svg>'},49498:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M12 16.5 4.85 9.35a.5.5 0 0 1 0-.7L12 1.5"/></svg>'},60176:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M9.5 12.5 3.9 7.37a.5.5 0 0 1 0-.74L9.5 1.5"/></svg>'},35369:e=>{
|
|
||||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M8 10.5 3.85 6.35a.5.5 0 0 1 0-.7L8 1.5"/></svg>'},58478:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M7 8.5 3.85 5.35a.5.5 0 0 1 0-.7L7 1.5"/></svg>'},73063:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M17 22.5 6.85 12.35a.5.5 0 0 1 0-.7L17 1.5"/></svg>'},14127:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M12 16.5 4.85 9.35a.5.5 0 0 1 0-.7L12 1.5"/></svg>'},18073:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9.5 12.5 3.9 7.37a.5.5 0 0 1 0-.74L9.5 1.5"/></svg>'},99243:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M8 10.5 3.85 6.35a.5.5 0 0 1 0-.7L8 1.5"/></svg>'},42576:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 8.5 3.85 5.35a.5.5 0 0 1 0-.7L7 1.5"/></svg>'},91540:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M2.5 14.5c1.68-1.26 3.7-2 6.5-2s4.91.74 6.5 2m-13-11c1.68 1.26 3.7 2 6.5 2s4.91-.74 6.5-2"/><circle stroke="currentColor" cx="9" cy="9" r="8.5"/><path stroke="currentColor" d="M13.5 9c0 2.42-.55 4.58-1.4 6.12-.87 1.56-1.98 2.38-3.1 2.38s-2.23-.82-3.1-2.38c-.85-1.54-1.4-3.7-1.4-6.12s.55-4.58 1.4-6.12C6.77 1.32 7.88.5 9 .5s2.23.82 3.1 2.38c.85 1.54 1.4 3.7 1.4 6.12z"/></svg>'},66619:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#B2B5BE" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},67562:e=>{
|
|
||||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#131722" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},69859:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},486:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h9"/><circle fill="currentColor" cx="7" cy="3" r="1"/><circle fill="currentColor" cx="7" cy="10" r="1"/></svg>'},63861:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" stroke-linejoin="round" d="M3.5 10V2.5L1 5"/><path stroke-linecap="square" d="M1.5 10.5h4"/><path d="M8 12l3-11"/></g></svg>'},81574:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8"/></svg>'},32617:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 10l7-7M3 3l7 7"/></svg>'},35119:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8m-4-4v8"/></svg>'},69135:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 7l3.5-3.5L10 7"/></svg>'},54313:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M18.5 12.5a6 6 0 1 1-12 0 6 6 0 0 1 12 0Zm-1.25 5.8a7.5 7.5 0 1 1 1.06-1.06l4.22 4.23.53.53L22 23.06l-.53-.53-4.22-4.22Z"/></svg>'}}]);
|
|
||||||
10
charting_library/bundles/2827.3dbdc7dfbdee37f1c3d8.js
Normal file
10
charting_library/bundles/2827.3dbdc7dfbdee37f1c3d8.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2827],{7973:(e,i,t)=>{t.d(i,{convertToInt:()=>r,floor:()=>n,limitedPrecision:()=>l});var o=t(95440);function n(e){return Math.floor(e)}function r(e){return parseInt(String(e))}function l(e){const i=new o.LimitedPrecisionNumericFormatter(e,!0);return e=>{if(null===e)return e;const t=i.parse(i.format(e));return t.res?t.value:null}}},8420:(e,i,t)=>{t.d(i,{LineStylePropertyDefinitionsMode:()=>p,lineStylePropertyDefinitions:()=>h});var o=t(91599),n=t(72769),r=t(73405),l=t(28434);const s=new n.TranslatedString("change line price source",o.t(null,void 0,t(2169))),a=new n.TranslatedString("change line color",o.t(null,void 0,t(7345))),c=new n.TranslatedString("change line width",o.t(null,void 0,t(93))),d=new n.TranslatedString("change line style",o.t(null,void 0,t(47517))),u=o.t(null,void 0,t(27912));var p;function h(e,i,t,o,n){const h=(0,l.createPriceSourceDefinition)(e,i,t,o,"SymbolLinePriceSource",s);let y;return y=n===p.Simple?(0,r.createLinePropertyDefinition)({color:i.color,width:i.linewidth,style:i.linestyle},{id:`${o}SymbolLineStyle`,title:u}):(0,r.createColorPropertyDefinition)({color:(0,r.getColorDefinitionProperty)(e,i.color,null,a),gradientColor1:i.gradientStartColor&&(0,r.getColorDefinitionProperty)(e,i.gradientStartColor,null,a),gradientColor2:i.gradientEndColor&&(0,r.getColorDefinitionProperty)(e,i.gradientEndColor,null,a),type:i.colorType&&(0,r.convertToDefinitionProperty)(e,i.colorType,a),width:(0,r.convertToDefinitionProperty)(e,i.linewidth,c),style:(0,r.convertToDefinitionProperty)(e,i.linestyle,d)},{id:`${o}SymbolLineStyle`,title:u}),[h,y]}!function(e){e[e.Gradient=0]="Gradient",e[e.Simple=1]="Simple"}(p||(p={}))},28434:(e,i,t)=>{t.d(i,{basePriceSources:()=>u,createPriceSourceDefinition:()=>p});var o=t(91599),n=t(54484),r=t(89659),l=t(73405),s=t(64830),a=t(37032),c=t(18518);const d=o.t(null,void 0,t(40926)),u=["open","high","low","close","hl2","hlc3","ohlc4"].map((e=>({title:c.priceSourceTitles[e],value:e,id:`price-source-${e}`})));function p(e,i,t,o,c,u){const p=void 0,h=(0,s.createWVFromGetterAndSubscriptions)((()=>!(0,a.isCloseBasedSymbol)(e.mainSeries().symbolInfo())),[e.mainSeries().dataEvents().symbolResolved(),e.mainSeries().dataEvents().symbolError()]);return(0,n.createOptionsPropertyDefinition)({disabled:p&&(0,l.convertFromReadonlyWVToDefinitionProperty)(p.weakReference()),option:(0,l.convertToDefinitionProperty)(e,i.priceSource,u),visible:(0,l.convertFromReadonlyWVToDefinitionProperty)(h.ownership())},{id:`${o}${c}`,title:d,options:new r.WatchedValue(t)})}},48421:(e,i,t)=>{t.d(i,{getSeriesStylePropertiesDefinitions:()=>Te});var o=t(42897),n=t(7321),r=t(91599),l=t(16905),s=t(72769),a=t(73405),c=(t(21725),t(89659)),d=t(7973),u=t(8420),p=t(28434)
|
||||||
|
;const h=new s.TranslatedString("change color bars based on previous close",r.t(null,void 0,t(2018))),y=new s.TranslatedString("change HLC bars",r.t(null,void 0,t(51922))),f=new s.TranslatedString("change bar up color",r.t(null,void 0,t(13128))),v=new s.TranslatedString("change bar down color",r.t(null,void 0,t(67715))),g=new s.TranslatedString("change thin bars",r.t(null,void 0,t(557))),S=new s.TranslatedString("change area price source",r.t(null,void 0,t(34464))),b=new s.TranslatedString("change area line color",r.t(null,void 0,t(80792))),w=new s.TranslatedString("change area line visibility",r.t(null,void 0,t(14340))),P=new s.TranslatedString("change area line width",r.t(null,void 0,t(27089))),m=new s.TranslatedString("change area line style",r.t(null,void 0,t(35152))),T=new s.TranslatedString("change area fill color",r.t(null,void 0,t(95860))),D=new s.TranslatedString("change baseline price source",r.t(null,void 0,t(57390))),C=new s.TranslatedString("change baseline top line color",r.t(null,void 0,t(61764))),_=new s.TranslatedString("change baseline top line width",r.t(null,void 0,t(75699))),k=new s.TranslatedString("change baseline top line style",r.t(null,void 0,t(77290))),$=new s.TranslatedString("change baseline bottom line color",r.t(null,void 0,t(2672))),M=new s.TranslatedString("change baseline bottom line width",r.t(null,void 0,t(2383))),W=new s.TranslatedString("change baseline bottom line style",r.t(null,void 0,t(72774))),L=new s.TranslatedString("change baseline fill top area color",r.t(null,void 0,t(25049))),V=new s.TranslatedString("change baseline fill bottom area color",r.t(null,void 0,t(65523))),I=new s.TranslatedString("change base level",r.t(null,void 0,t(25373))),E=new s.TranslatedString("change high-low body visibility",r.t(null,void 0,t(29853))),O=new s.TranslatedString("change high-low body color",r.t(null,void 0,t(69488))),B=new s.TranslatedString("change high-low borders visibility",r.t(null,void 0,t(32836))),F=new s.TranslatedString("change high-low border color",r.t(null,void 0,t(67709))),x=new s.TranslatedString("change high-low labels visibility",r.t(null,void 0,t(50616))),A=new s.TranslatedString("change high-low labels color",r.t(null,void 0,t(7884))),N=(new s.TranslatedString("change renko wick visibility",r.t(null,void 0,t(14857))),new s.TranslatedString("change renko wick up color",r.t(null,void 0,t(57436))),new s.TranslatedString("change renko wick down color",r.t(null,void 0,t(50229))),new s.TranslatedString("change the display of real prices on price scale (instead of Heiken-Ashi price)",r.t(null,void 0,t(11371))),new s.TranslatedString("change range thin bars",r.t(null,void 0,t(40843))),new s.TranslatedString("change range bars style",r.t(null,void 0,t(79929))),
|
||||||
|
new s.TranslatedString("change {candleType} body visibility",r.t(null,void 0,t(67522)))),H=new s.TranslatedString("change {candleType} up color",r.t(null,void 0,t(10817))),R=new s.TranslatedString("change {candleType} down color",r.t(null,void 0,t(79390))),G=new s.TranslatedString("change {candleType} border visibility",r.t(null,void 0,t(24971))),U=new s.TranslatedString("change {candleType} up border color",r.t(null,void 0,t(73789))),j=new s.TranslatedString("change {candleType} down border color",r.t(null,void 0,t(71771))),z=new s.TranslatedString("change {candleType} wick visibility",r.t(null,void 0,t(55505))),J=new s.TranslatedString("change {candleType} wick up color",r.t(null,void 0,t(16528))),q=new s.TranslatedString("change {candleType} wick down color",r.t(null,void 0,t(41609))),K=(new s.TranslatedString("change {chartType} up color",r.t(null,void 0,t(40964))),new s.TranslatedString("change {chartType} down color",r.t(null,void 0,t(79101))),new s.TranslatedString("change {chartType} projection bar up color",r.t(null,void 0,t(91136))),new s.TranslatedString("change {chartType} projection bar down color",r.t(null,void 0,t(31897))),new s.TranslatedString("change {chartType} border bar up color",r.t(null,void 0,t(4604))),new s.TranslatedString("change {chartType} border bar down color",r.t(null,void 0,t(27157))),new s.TranslatedString("change {chartType} projection border bar up color",r.t(null,void 0,t(40901))),new s.TranslatedString("change {chartType} projection border bar up color",r.t(null,void 0,t(40901))),new s.TranslatedString("change column up color",r.t(null,void 0,t(2613)))),Q=new s.TranslatedString("change column down color",r.t(null,void 0,t(20914))),X=new s.TranslatedString("change column price source",r.t(null,void 0,t(81442))),Y=new s.TranslatedString("change HLC bars color",r.t(null,void 0,t(63413))),Z=r.t(null,void 0,t(73148)),ee=r.t(null,void 0,t(39093)),ie=r.t(null,void 0,t(21944)),te=r.t(null,void 0,t(81075)),oe=r.t(null,void 0,t(18327)),ne=r.t(null,void 0,t(40949)),re=r.t(null,void 0,t(65229)),le=r.t(null,void 0,t(32807)),se=r.t(null,void 0,t(27912)),ae=r.t(null,void 0,t(58956)),ce=r.t(null,void 0,t(52028)),de=r.t(null,void 0,t(32618)),ue=r.t(null,void 0,t(62512)),pe=r.t(null,void 0,t(59972)),he=(r.t(null,void 0,t(27904)),r.t(null,void 0,t(32275)),r.t(null,void 0,t(24811)),r.t(null,void 0,t(60151)),r.t(null,void 0,t(66295)),r.t(null,void 0,t(72297)),r.t(null,void 0,t(3359))),ye=r.t(null,void 0,t(40949)),fe=r.t(null,void 0,t(65229)),ve=r.t(null,void 0,t(27150)),ge=r.t(null,void 0,t(79487)),Se=r.t(null,void 0,t(69886)),be=r.t(null,void 0,t(8986)),we=(r.t(null,void 0,t(31992)),r.t(null,void 0,t(25962)),r.t(null,void 0,t(18e3)),r.t(null,void 0,t(25962)));function Pe(e,i,t,o){return(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.barColorsOnPrevClose,h)},{id:`${t}${o}`,title:Z})}function me(e,i,t,n){const r=(0,o.removeSpaces)(t.originalText());return[(0,a.createTwoColorsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.drawBody,N.format({
|
||||||
|
candleType:t})),color1:(0,a.getColorDefinitionProperty)(e,i.upColor,null,H.format({candleType:t})),color2:(0,a.getColorDefinitionProperty)(e,i.downColor,null,R.format({candleType:t}))},{id:`${n}Symbol${r}CandlesColor`,title:ne}),(0,a.createTwoColorsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.drawBorder,G.format({candleType:t})),color1:(0,a.getColorDefinitionProperty)(e,i.borderUpColor,null,U.format({candleType:t})),color2:(0,a.getColorDefinitionProperty)(e,i.borderDownColor,null,j.format({candleType:t}))},{id:`${n}Symbol${r}BordersColor`,title:re}),(0,a.createTwoColorsPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.drawWick,z.format({candleType:t})),color1:(0,a.getColorDefinitionProperty)(e,i.wickUpColor,null,J.format({candleType:t})),color2:(0,a.getColorDefinitionProperty)(e,i.wickDownColor,null,q.format({candleType:t}))},{id:`${n}Symbol${r}WickColors`,title:le})]}function Te(e,i,o,h,N,H){switch(o){case 0:return function(e,i,t){return[Pe(e,i,t,"SymbolBarStyleBarColorsOnPrevClose"),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.dontDrawOpen,y)},{id:`${t}SymbolDontDrawOpen`,title:ee}),(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.upColor,null,f)},{id:`${t}SymbolUpColor`,title:ie}),(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.downColor,null,v)},{id:`${t}SymbolDownColor`,title:te}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.thinBars,g)},{id:`${t}SymbolBarThinBars`,title:oe})].filter(n.isExistent)}(e,i.barStyle.childs(),N);case 1:case 19:return function(e,i,o){return[Pe(e,i,o,"SymbolCandleStyleBarColorsOnPrevClose"),...me(e,i,new s.TranslatedString("candle",r.t(null,void 0,t(92370))),o)].filter(n.isExistent)}(e,1===o?i.candleStyle.childs():i.volCandlesStyle.childs(),N);case 2:const l=i.lineStyle.childs();return(0,u.lineStylePropertyDefinitions)(e,l,h.seriesPriceSources,N,H);case 14:const E=i.lineWithMarkersStyle.childs();return(0,u.lineStylePropertyDefinitions)(e,E,h.seriesPriceSources,N,H);case 15:const O=i.steplineStyle.childs();return(0,u.lineStylePropertyDefinitions)(e,O,h.seriesPriceSources,N,H);case 3:return function(e,i,t,o){return[(0,p.createPriceSourceDefinition)(e,i,t,o,"SymbolAreaPriceSource",S),(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.linecolor,null,b),width:(0,a.convertToDefinitionProperty)(e,i.linewidth,P),style:(0,a.convertToDefinitionProperty)(e,i.linestyle,m)},{id:`${o}SymbolAreaLineStyle`,title:se}),(0,a.createTwoColorsPropertyDefinition)({color1:(0,a.getColorDefinitionProperty)(e,i.color1,i.transparency,T),color2:(0,a.getColorDefinitionProperty)(e,i.color2,i.transparency,T)},{id:`${o}SymbolAreaFills`,title:de})]}(e,i.areaStyle.childs(),h.seriesPriceSources,N);case 16:return function(e,i,t,o){return[(0,a.createLinePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.highLineVisible,w),color:(0,a.getColorDefinitionProperty)(e,i.highLineColor,null,b),width:(0,
|
||||||
|
a.convertToDefinitionProperty)(e,i.highLineWidth,P)},{id:`${o}SymbolHLCAreaHighLineStyle`,title:ge}),(0,a.createLinePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.lowLineVisible,w),color:(0,a.getColorDefinitionProperty)(e,i.lowLineColor,null,b),width:(0,a.convertToDefinitionProperty)(e,i.lowLineWidth,P)},{id:`${o}SymbolHLCAreaLowLineStyle`,title:be}),(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.closeLineColor,null,b),width:(0,a.convertToDefinitionProperty)(e,i.closeLineWidth,P)},{id:`${o}SymbolHLCAreaCloseLineStyle`,title:Se}),(0,a.createTwoColorsPropertyDefinition)({color1:(0,a.getColorDefinitionProperty)(e,i.highCloseFillColor,null,T),color2:(0,a.getColorDefinitionProperty)(e,i.closeLowFillColor,null,T)},{id:`${o}SymbolHLCAreaFills`,title:de})]}(e,i.hlcAreaStyle.childs(),h.seriesPriceSources,N);case 9:return me(e,i.hollowCandleStyle.childs(),new s.TranslatedString("hollow candles",r.t(null,void 0,t(54171))),N);case 10:return function(e,i,t,o){return[(0,p.createPriceSourceDefinition)(e,i,t,o,"SymbolBaseLinePriceSource",D),(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.topLineColor,null,C),width:(0,a.convertToDefinitionProperty)(e,i.topLineWidth,_),style:(0,a.convertToDefinitionProperty)(e,i.topLineStyle,k)},{id:`${o}SymbolBaseLineTopLine`,title:ae}),(0,a.createLinePropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.bottomLineColor,null,$),width:(0,a.convertToDefinitionProperty)(e,i.bottomLineWidth,M),style:(0,a.convertToDefinitionProperty)(e,i.bottomLineStyle,W)},{id:`${o}SymbolBaseLineBottomLine`,title:ce}),(0,a.createTwoColorsPropertyDefinition)({color1:(0,a.getColorDefinitionProperty)(e,i.topFillColor1,null,L),color2:(0,a.getColorDefinitionProperty)(e,i.topFillColor2,null,L)},{id:`${o}SymbolBaseLineTopFills`,title:ue}),(0,a.createTwoColorsPropertyDefinition)({color1:(0,a.getColorDefinitionProperty)(e,i.bottomFillColor1,null,V),color2:(0,a.getColorDefinitionProperty)(e,i.bottomFillColor2,null,V)},{id:`${o}SymbolBaseLineBottomFills`,title:pe}),(0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,i.baseLevelPercentage,I,[d.floor])},{id:`${o}SymbolBaseLevelPercentage`,title:he,type:0,min:new c.WatchedValue(0),max:new c.WatchedValue(100),step:new c.WatchedValue(1),unit:new c.WatchedValue("%")})]}(e,i.baselineStyle.childs(),h.seriesPriceSources,N);case 13:return function(e,i,t,o){return[(0,p.createPriceSourceDefinition)(e,i,t,o,"SymbolColumnPriceSource",X),Pe(e,i,o,"SymbolColumnStyleColumnColorsOnPrevClose"),(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.upColor,null,K)},{id:`${o}SymbolUpColor`,title:ie}),(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.downColor,null,Q)},{id:`${o}SymbolDownColor`,title:te})].filter(n.isExistent)}(e,i.columnStyle.childs(),h.seriesPriceSources,N);case 21:return function(e,i,t){return[(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(e,i.color,null,Y)},{id:`${t}SymbolColor`,
|
||||||
|
title:we}),(0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.thinBars,g)},{id:`${t}SymbolBarThinBars`,title:oe})].filter(n.isExistent)}(e,i.hlcBarsStyle.childs(),N)}if(12===o&&(0,l.isFeaturesetEnabled)("chart_style_hilo")){return function(e,i,t){return[(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.drawBody,E),color:(0,a.getColorDefinitionProperty)(e,i.color,null,O)},{id:`${t}SymbolBodiesColor`,title:ye}),(0,a.createColorPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showBorders,B),color:(0,a.getColorDefinitionProperty)(e,i.borderColor,null,F)},{id:`${t}SymbolBorderColor`,title:fe}),(0,a.createTextPropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,i.showLabels,x),color:(0,a.getColorDefinitionProperty)(e,i.labelColor,null,A)},{id:`${t}SymbolLabels`,title:ve,isEditable:!1,isMultiLine:!1})]}(e,i.hiloStyle.childs(),N)}if(!i.hasOwnProperty("haStyle"))return[];if(h.isJapaneseChartsAvailable&&8===o){return function(e,i,o){const n=[];return n.push(Pe(e,i,o,"SymbolHAStyleBarColorsOnPrevClose"),...me(e,i,new s.TranslatedString("Heikin Ashi",r.t(null,void 0,t(48182))),o)),n}(e,i.haStyle.childs(),N)}return h.isJapaneseChartsAvailable&&(0,l.isFeaturesetEnabled)("japanese_chart_styles"),[]}},12827:(e,i,t)=>{t.d(i,{SeriesPropertyDefinitionsViewModel:()=>G,seriesPrecisionValues:()=>R});var o=t(85842),n=t(73775),r=t(91599),l=t(16905),s=t(72769),a=t(73405),c=t(73460),d=t(89659),u=t(49399),p=t(37032),h=t(48421),y=t(82372),f=t(7973);const v=new s.TranslatedString("change {inputName} property",r.t(null,void 0,t(32412)));function g(e){return e.map((e=>({value:e,title:(0,y.getTranslatedInputTitle)(e)})))}const S=new Set(["percentageLTP"]);function b(e,i,t,n,r,l,c){const u=[];return t.forEach((t=>{if(!function(e,i){return!e.isHidden&&(void 0===e.visible||function(e,i){if(!e)return!0;const t=e.split("==");return!(t.length<2)&&i[t[0]].value()===t[1]}(e.visible,i))}(t,n))return;const h=t.id;if(!n.hasOwnProperty(h))return;const b=n[h],w=function(e,i){return"style"===e.id?"Box size assignment method":"boxSize"===e.id?"Box size":i.childs().name.value()}(t,r[h]),P=(0,y.getTranslatedInputTitle)(w),m=new s.TranslatedString(w,P);if("options"in t){const i=(0,o.ensure)(t.options);u.push((0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(e,b,v.format({inputName:m}))},{id:`${c}${t.name}`,title:P,options:new d.WatchedValue(g(i))}))}else if("integer"!==t.type){if("float"===t.type){let o;return o=function(e,i){return!((i===(0,p.chartStyleStudyId)(4)||i===(0,p.chartStyleStudyId)(6))&&"boxSize"===e||i===(0,p.chartStyleStudyId)(5)&&"reversalAmount"===e)}(h,i)||null===l.value()?new d.WatchedValue(t.min):l,void u.push((0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,b,v.format({inputName:m}))},{id:`${c}${t.name}`,title:P,type:1,min:o,max:new d.WatchedValue(t.max),unit:S.has(t.id)?new d.WatchedValue("%"):void 0,defval:t.defval}))}"text"!==t.type?"bool"!==t.type||u.push((0,
|
||||||
|
a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(e,b,v.format({inputName:m}))},{id:`${c}${t.name}`,title:P})):u.push((0,a.createTextPropertyDefinition)({text:(0,a.convertToDefinitionProperty)(e,b,v.format({inputName:m}))},{id:`${c}${t.name}`,title:P,isEditable:!0,isMultiLine:!1}))}else u.push((0,a.createNumberPropertyDefinition)({value:(0,a.convertToDefinitionProperty)(e,b,v.format({inputName:m}),[f.floor])},{id:`${c}${t.name}`,title:P,type:0,min:new d.WatchedValue(t.min),max:new d.WatchedValue(t.max),unit:S.has(t.id)?new d.WatchedValue("%"):void 0,defval:t.defval}))})),u}var w=t(11513),P=t(20707),m=t(68657),T=t(54501),D=t(8420),C=t(28434);const _=(0,n.getLogger)("Chart.Definitions.Series"),k=(0,l.isFeaturesetEnabled)("pre_post_market_sessions"),$=new s.TranslatedString("change decimal places",r.t(null,void 0,t(52281))),M=new s.TranslatedString("change timezone",r.t(null,void 0,t(9027))),W=new s.TranslatedString("toggle inactivity gaps",r.t(null,void 0,t(47864))),L=(new s.TranslatedString("adjust data for dividends",r.t(null,void 0,t(87307))),new s.TranslatedString("use settlement as close on daily interval",r.t(null,void 0,t(15790))),new s.TranslatedString("adjust for contract changes",r.t(null,void 0,t(43431))),new s.TranslatedString("change session",r.t(null,void 0,t(23426)))),V=new s.TranslatedString("change extended hours color",r.t(null,void 0,t(26282))),I=new s.TranslatedString("change pre market color",r.t(null,void 0,t(61690))),E=new s.TranslatedString("change post market color",r.t(null,void 0,t(26008))),O=(new s.TranslatedString("change electronic trading hours",r.t(null,void 0,t(39303))),r.t(null,void 0,t(97155)),r.t(null,void 0,t(9956))),B=(r.t(null,void 0,t(4815)),r.t(null,void 0,t(18132)),r.t(null,void 0,t(831))),F=(r.t(null,void 0,t(29235)),r.t(null,void 0,t(64005))),x=r.t(null,void 0,t(69108)),A=r.t(null,void 0,t(37732)),N=r.t(null,void 0,t(10690)),H=[{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}];function R(){const e=[{title:A,value:"default"}],i=function(e=15){const i=[];for(let t=0;t<=e;t++)i.push({priceScale:Math.pow(10,t),minMove:1,frac:!1});return i}();for(let o=0;o<i.length;o++){const n=Math.log10(i[o].priceScale),l=0===n?r.t(null,void 0,t(83975)):r.t(null,{plural:"{value} decimals",count:n,replace:{value:n.toString()}},t(25578));e.push({title:l,value:`${i[o].priceScale},${i[o].minMove},${i[o].frac}`})}for(let i=0;i<H.length;i++)e.push({title:`${H[i].minMove}/${H[i].priceScale}`,value:`${H[i].priceScale},${H[i].minMove},${H[i].frac}`});return e}class G{constructor(e,i,t,o,n,r){this._definitions=null,this._inputsSubscriptions=null,this._isDestroyed=!1,this._propertyPages=null,this._seriesMinTickWV=null,this._sessionIdOptionsWV=new d.WatchedValue([]),this._series=e,this._undoModel=i,this._model=this._undoModel.model(),this._propertyPageId=t,
|
||||||
|
this._propertyPageName=o,this._propertyPageIcon=n,this._timezonePropertyObj=r,this._series.onStyleChanged().subscribe(this,this._updateDefinitions),this._series.properties().childs().rangeStyle.childs().barStyle.subscribe(this,this._updateDefinitions),this._series.dataEvents().symbolResolved().subscribe(this,this._updateSeriesMinTickWV),this._series.dataEvents().symbolResolved().subscribe(this,this._updateSessionIdOptionsWV),this._updateSeriesMinTickWV(),this._updateSessionIdOptionsWV()}destroy(){null!==this._propertyPages&&this._propertyPages.forEach((e=>{(0,a.destroyDefinitions)(e.definitions.value())})),this._series.onStyleChanged().unsubscribe(this,this._updateDefinitions),this._series.properties().childs().rangeStyle.childs().barStyle.unsubscribeAll(this),this._series.dataEvents().symbolResolved().unsubscribeAll(this),this._unsubscribeInputsUpdate(),this._isDestroyed=!0}propertyPages(){return null===this._propertyPages?this._getDefinitions().then((e=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");return null===this._propertyPages&&(this._propertyPages=[{id:this._propertyPageId,title:this._propertyPageName,icon:this._propertyPageIcon,definitions:new d.WatchedValue(e.definitions),visible:e.visible??new d.WatchedValue(!0).readonly()}]),this._propertyPages})):Promise.resolve(this._propertyPages)}_seriesMinTick(){const e=this._series.symbolInfo();return null!==e?e.minmov/e.pricescale:null}_updateSeriesMinTickWV(){null===this._seriesMinTickWV?this._seriesMinTickWV=new d.WatchedValue(this._seriesMinTick()):this._seriesMinTickWV.setValue(this._seriesMinTick())}_updateSessionIdOptionsWV(){if(!k)return;const e=this._series.symbolInfo();if(null===e)return;const i=(e.subsessions||[]).filter((e=>!e.private)).map((e=>({title:(0,T.translateSessionDescription)(e.description),value:e.id})));this._sessionIdOptionsWV.setValue(i)}_updateDefinitions(){null!==this._definitions&&(0,a.destroyDefinitions)(this._definitions.definitions),this._definitions=null,this._createSeriesDefinitions().then((e=>{if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");(0,o.ensureNotNull)(this._propertyPages)[0].definitions.setValue(e.definitions)}))}_getDefinitions(){return null===this._definitions?this._createSeriesDefinitions():Promise.resolve(this._definitions)}_unsubscribeInputsUpdate(){null!==this._inputsSubscriptions&&(this._inputsSubscriptions.forEach((e=>{e.unsubscribeAll(this)})),this._inputsSubscriptions=null)}_subscribeInputsUpdate(e,i){this._unsubscribeInputsUpdate();const t=[];e.forEach((e=>{if(void 0!==e.visible){const o=e.visible.split("==");if(2===o.length){const e=i[o[0]];-1===t.indexOf(e)&&(e.subscribe(this,this._updateDefinitions),t.push(e))}}})),t.length>0?this._inputsSubscriptions=t:this._inputsSubscriptions=null}async _createSeriesDefinitions(){
|
||||||
|
const e=this._series.properties().childs(),i=this._series.getInputsProperties(),n=this._series.getInputsInfoProperties(),s=e.style.value(),y=this._series.getStyleShortName(),f=c.chartStylesWithAttachedStudies.includes(s)?null:(0,p.chartStyleStudyId)(s);let v,g=null;if(null!==f){let e;try{e=await(0,u.studyMetaInfoRepository)().findById({type:"java",studyId:f});const t=(0,o.ensureNotNull)(this._seriesMinTickWV);g=b(this._undoModel,e.id,e.inputs,i,n,t,y),this._subscribeInputsUpdate(e.inputs,i)}catch(i){_.logWarn(`Find meta info for create series definitions with error - ${(0,w.errorToString)(i)}`),e=null}if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed")}else this._unsubscribeInputsUpdate();if(this._isDestroyed)throw new Error("SeriesPropertyDefinitionsViewModel already destroyed");if(c.chartStylesWithAttachedStudies.includes(s))throw new Error("unexpected chart style");{const i=(0,h.getSeriesStylePropertiesDefinitions)(this._undoModel,e,s,{seriesPriceSources:C.basePriceSources,isJapaneseChartsAvailable:true},"mainSeries",D.LineStylePropertyDefinitionsMode.Gradient);null!==g&&i.push(...g),v=(0,a.createPropertyDefinitionsGeneralGroup)(i,"generalSymbolStylesGroup",(0,p.getTranslatedChartStyleName)(s))}const S=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(this._undoModel,e.minTick,$),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(new d.WatchedValue(!0).ownership())},{id:`${y}SymbolMinTick`,title:F,options:new d.WatchedValue(R())}),P=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(this._undoModel,this._timezonePropertyObj.property,M)},{id:`${y}SymbolTimezone`,title:x,options:new d.WatchedValue(this._timezonePropertyObj.values)}),m=[...await this._seriesDataDefinitions(y),S,P];return(0,l.isFeaturesetEnabled)("inactivity_gaps")&&m.push((0,a.createCheckablePropertyDefinition)({checked:(0,a.convertToDefinitionProperty)(this._undoModel,this._undoModel.model().properties().childs().inactivityGaps,W)},{id:`${y}InactivityGap`,title:N})),this._definitions={definitions:[v,(0,a.createPropertyDefinitionsGeneralGroup)(m,"dataModififcationGroup",r.t(null,void 0,t(32198)))]},this._definitions}async _seriesDataDefinitions(e){const i=[];if(k){const t=this._series.sessionIdProxyProperty(),o=(0,m.combineWithFilteredUpdate)(((e,i)=>!i&&(0,p.symbolHasSeveralSessions)(this._series.symbolInfo())),((e,i)=>i||!e),this._series.symbolResolvingActive().weakReference(),(0,P.createWVFromProperty)(this._series.isDWMProperty()).ownership()),n=(0,a.createOptionsPropertyDefinition)({option:(0,a.convertToDefinitionProperty)(this._undoModel,t,L),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(o.ownership())},{id:"sessionId",title:O,options:this._sessionIdOptionsWV});i.push(n);const r=(await this._model.sessions().promise()).graphicsInfo();let l=!1;r.backgrounds&&(l=void 0!==r.backgrounds.outOfSession);const s=await(l?this._createOutOfSessionDefinition(e):this._createPrePostMarketDefinition(e));i.push(s)
|
||||||
|
;const c=this._createElectronicSessionDefinition(e);c&&i.push(c)}return i}_createOutOfSessionDefinition(e){const i=this._model.sessions().properties().childs().sessionHighlight.childs().backgrounds.childs().outOfSession.childs();return(0,a.createColorPropertyDefinition)({color:(0,a.getColorDefinitionProperty)(this._undoModel,i.color,i.transparency,V)},{id:`${e}SymbolExtendedHoursColors`,title:B})}_createPrePostMarketDefinition(e){const i=(0,P.createWVFromGetterAndSubscription)((()=>this._series.symbolInfo()),this._series.dataEvents().symbolResolved()),t=(0,m.combineWithFilteredUpdate)(((e,i)=>!e&&!!i&&(0,p.symbolHasPreOrPostMarket)(i)&&!(0,p.isRegularSessionId)(this._series.sessionIdProxyProperty().value(),i)),((e,i)=>e||!!i),(0,P.createWVFromProperty)(this._series.isDWMProperty()).ownership(),i.ownership()),o=this._model.sessions().properties().childs().sessionHighlight.childs(),n=o.backgrounds.childs().preMarket.childs(),r=o.backgrounds.childs().postMarket.childs();return(0,a.createTwoColorsPropertyDefinition)({color1:(0,a.getColorDefinitionProperty)(this._undoModel,n.color,n.transparency,I),color2:(0,a.getColorDefinitionProperty)(this._undoModel,r.color,r.transparency,E),visible:(0,a.convertFromReadonlyWVToDefinitionProperty)(t.ownership())},{id:`${e}SymbolExtendedHoursColors`,title:B})}_createElectronicSessionDefinition(e){return null}}}}]);
|
||||||
@@ -1 +0,0 @@
|
|||||||
.tooltip-eSLcXvvL{background:var(--themed-color-background,#fff);border-radius:8px;cursor:default;filter:drop-shadow(0 1px 4px rgba(0,0,0,.2));position:absolute;visibility:hidden;z-index:7}html.theme-dark .tooltip-eSLcXvvL{background:var(--themed-color-background,#1e222d)}.tooltip-eSLcXvvL.show-eSLcXvvL{visibility:unset}html.theme-dark .tooltip-eSLcXvvL{filter:drop-shadow(0 1px 4px rgba(0,0,0,.4))}.tooltip-eSLcXvvL:after,.tooltip-eSLcXvvL:before{border:10px solid #0000;content:" ";height:0;margin-top:-10px;pointer-events:none;position:absolute;top:50%;width:0}.tooltip-eSLcXvvL:not(.right-eSLcXvvL):after{border-color:#0000;border-left-color:var(--themed-color-background,#fff);border-left-width:13px;left:100%}html.theme-dark .tooltip-eSLcXvvL:not(.right-eSLcXvvL):after{border-left-color:var(--themed-color-background,#1e222d)}.tooltip-eSLcXvvL.right-eSLcXvvL:before{border-color:#0000;border-right-color:var(--themed-color-background,#fff);border-right-width:13px;right:100%}html.theme-dark .tooltip-eSLcXvvL.right-eSLcXvvL:before{border-right-color:var(--themed-color-background,#1e222d)}.text-hF57_4zZ{color:var(--themed-color-text,#131722);font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-size:14px;line-height:18px;max-width:244px;min-width:25px;padding:12px}html.theme-dark .text-hF57_4zZ{color:var(--themed-color-text,#d1d4dc)}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.tooltip-eSLcXvvL{background:var(--themed-color-background,#fff);border-radius:8px;cursor:default;filter:drop-shadow(0 1px 4px rgba(0,0,0,.2));position:absolute;visibility:hidden;z-index:7}html.theme-dark .tooltip-eSLcXvvL{background:var(--themed-color-background,#1e222d)}.tooltip-eSLcXvvL.show-eSLcXvvL{visibility:unset}html.theme-dark .tooltip-eSLcXvvL{filter:drop-shadow(0 1px 4px rgba(0,0,0,.4))}.tooltip-eSLcXvvL:after,.tooltip-eSLcXvvL:before{border:10px solid #0000;content:" ";height:0;margin-top:-10px;pointer-events:none;position:absolute;top:50%;width:0}.tooltip-eSLcXvvL:not(.right-eSLcXvvL):after{border-color:#0000;border-right-color:var(--themed-color-background,#fff);border-right-width:13px;right:100%}html.theme-dark .tooltip-eSLcXvvL:not(.right-eSLcXvvL):after{border-right-color:var(--themed-color-background,#1e222d)}.tooltip-eSLcXvvL.right-eSLcXvvL:before{border-color:#0000;border-left-color:var(--themed-color-background,#fff);border-left-width:13px;left:100%}html.theme-dark .tooltip-eSLcXvvL.right-eSLcXvvL:before{border-left-color:var(--themed-color-background,#1e222d)}.text-hF57_4zZ{color:var(--themed-color-text,#131722);font-family:-apple-system,BlinkMacSystemFont,Trebuchet MS,Roboto,Ubuntu,sans-serif;font-feature-settings:"tnum" on,"lnum" on;font-size:14px;line-height:18px;max-width:244px;min-width:25px;padding:12px}html.theme-dark .text-hF57_4zZ{color:var(--themed-color-text,#d1d4dc)}
|
|
||||||
1
charting_library/bundles/291.127a37945162e426eb86.css
Normal file
1
charting_library/bundles/291.127a37945162e426eb86.css
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.row-Sj9z7O1v{display:grid;grid-template-columns:150px 100px;grid-gap:12px;margin-bottom:16px;padding-inline-end:20px;padding-inline-start:20px}.mobileRow-Sj9z7O1v{justify-content:flex-start;padding-inline-start:20px}.calendar-PM3TZruR{margin-inline-end:8px;margin-inline-start:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-P_IVoUsZ{min-width:302px}.dialogWrapperSmall-P_IVoUsZ{max-width:419px;width:100%}.tabs-P_IVoUsZ{--ui-lib-underline-tabs-hor-padding:20px;padding:0 var(--ui-lib-underline-tabs-hor-padding)}.content-P_IVoUsZ{overflow:auto;padding-top:17px}@supports (-moz-appearance:none){.content-P_IVoUsZ{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.content-P_IVoUsZ::-webkit-scrollbar{height:5px;width:5px}.content-P_IVoUsZ::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.content-P_IVoUsZ::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-P_IVoUsZ::-webkit-scrollbar-corner{display:none}.contentMobile-P_IVoUsZ{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-P_IVoUsZ{flex:0 1 201px}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
.row-Sj9z7O1v{display:grid;grid-template-columns:150px 100px;grid-gap:12px;margin-bottom:16px;padding-inline-end:20px;padding-inline-start:20px}.mobileRow-Sj9z7O1v{justify-content:flex-start;padding-inline-start:20px}.calendar-PM3TZruR{margin-inline-end:8px;margin-inline-start:8px;padding-bottom:15px;padding-top:1px}.dialogWrapper-P_IVoUsZ{min-width:302px}.dialogWrapperSmall-P_IVoUsZ{max-width:419px;width:100%}.tabs-P_IVoUsZ{--ui-lib-underline-tabs-hor-padding:20px;padding:0 var(--ui-lib-underline-tabs-hor-padding)}.content-P_IVoUsZ{overflow:auto;padding-top:17px}@supports (-moz-appearance:none){.content-P_IVoUsZ{scrollbar-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg)) transparent;scrollbar-width:thin}}.content-P_IVoUsZ::-webkit-scrollbar{height:5px;width:5px}.content-P_IVoUsZ::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--color-scroll-bg));border:1px solid transparent;border-radius:3px}.content-P_IVoUsZ::-webkit-scrollbar-track{background-color:transparent;border-radius:3px}.content-P_IVoUsZ::-webkit-scrollbar-corner{display:none}.contentMobile-P_IVoUsZ{display:flex;flex-direction:column;flex-grow:1}.bodyWrapper-P_IVoUsZ{flex:0 1 201px}
|
||||||
@@ -1 +0,0 @@
|
|||||||
.dialog-lmxpCvnK{display:flex;height:540px;min-height:300px;min-width:380px}.dialogWrapper-lmxpCvnK{flex-grow:1}.wrap-lmxpCvnK{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;position:relative}.wrap-lmxpCvnK::-webkit-scrollbar{height:5px;width:5px}.wrap-lmxpCvnK::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .wrap-lmxpCvnK::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.wrap-lmxpCvnK::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrap-lmxpCvnK::-webkit-scrollbar-corner{display:none}@supports (-moz-appearance:none){.wrap-lmxpCvnK{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .wrap-lmxpCvnK{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.dialog-lmxpCvnK{display:flex;height:540px;min-height:300px;min-width:380px}.dialogWrapper-lmxpCvnK{flex-grow:1}.wrap-lmxpCvnK{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;position:relative}.wrap-lmxpCvnK::-webkit-scrollbar{height:5px;width:5px}.wrap-lmxpCvnK::-webkit-scrollbar-thumb{background-clip:content-box;background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#9598a1));border:1px solid #0000;border-radius:3px}html.theme-dark .wrap-lmxpCvnK::-webkit-scrollbar-thumb{background-color:var(--tv-color-scrollbar-thumb-background,var(--themed-color-scroll-bg,#363a45))}.wrap-lmxpCvnK::-webkit-scrollbar-track{background-color:initial;border-radius:3px}.wrap-lmxpCvnK::-webkit-scrollbar-corner{display:none}@supports (-moz-appearance:none){.wrap-lmxpCvnK{scrollbar-color:var(--themed-color-scroll-bg,#9598a1) #0000;scrollbar-width:thin}html.theme-dark .wrap-lmxpCvnK{scrollbar-color:var(--themed-color-scroll-bg,#363a45) #0000}}
|
|
||||||
1
charting_library/bundles/2939.ec653068b1f00a084451.css
Normal file
1
charting_library/bundles/2939.ec653068b1f00a084451.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
40
charting_library/bundles/294.4efb0e96e0aaf4b8e8a9.js
Normal file
40
charting_library/bundles/294.4efb0e96e0aaf4b8e8a9.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[294],{66740:e=>{e.exports={button:"button-PYEOTd6i",disabled:"disabled-PYEOTd6i",hidden:"hidden-PYEOTd6i",icon:"icon-PYEOTd6i",dropped:"dropped-PYEOTd6i"}},55768:e=>{e.exports={dropdownButton:"dropdownButton-G6buUFKH",top:"top-G6buUFKH",left:"left-G6buUFKH",right:"right-G6buUFKH",bottom:"bottom-G6buUFKH"}},96278:e=>{e.exports={button:"button-pzM0w4il",open:"open-pzM0w4il",default:"default-pzM0w4il",disabled:"disabled-pzM0w4il",danger:"danger-pzM0w4il",warning:"warning-pzM0w4il",xsmall:"xsmall-pzM0w4il",small:"small-pzM0w4il",medium:"medium-pzM0w4il",large:"large-pzM0w4il",content:"content-pzM0w4il",startSlot:"startSlot-pzM0w4il",middleSlot:"middleSlot-pzM0w4il",stretch:"stretch-pzM0w4il",caret:"caret-pzM0w4il"}},98297:e=>{e.exports={"checkbox-size":"18px","checkbox-primary-default-bg":"var(--color-container-fill-primary-neutral-extra-bold)","checkbox-primary-hover-bg":"var(--color-container-fill-primary-neutral-bold)","checkbox-primary-active-bg":"var(--color-container-fill-primary-neutral-medium)","checkbox-primary-fg":"var(--color-container-fill-quinary-inverse)","checkbox-danger-default-bg":"var(--color-container-fill-primary-danger-bold)","checkbox-danger-hover-bg":"var(--color-container-fill-primary-danger-semi-bold)","checkbox-danger-active-bg":"var(--color-container-fill-primary-danger)","checkbox-danger-fg":"var(--color-container-fill-quaternary-inverse)",wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",focusOutline:"focusOutline-GZajBGIm",primary:"primary-GZajBGIm",disabled:"disabled-GZajBGIm",danger:"danger-GZajBGIm",view:"view-GZajBGIm"}},44859:e=>{e.exports={"checkbox-size":"18px",box:"box-vgla_e5o",unchecked:"unchecked-vgla_e5o",checked:"checked-vgla_e5o",mixed:"mixed-vgla_e5o",disabled:"disabled-vgla_e5o",checkedMark:"checkedMark-vgla_e5o",mixedMark:"mixedMark-vgla_e5o"}},49036:e=>{e.exports={"checkbox-primary-default-bg":"var(--color-container-fill-primary-neutral-extra-bold)","checkbox-danger-default-bg":"var(--color-container-fill-primary-danger-bold)","checkbox-primary-fg":"var(--color-container-fill-quinary-inverse)","checkbox-danger-fg":"var(--color-container-fill-quaternary-inverse)",primary:"primary-ywH2tsV_",danger:"danger-ywH2tsV_"}},27284:e=>{e.exports={checkbox:"checkbox-vyj6oJxw",reverse:"reverse-vyj6oJxw",baseline:"baseline-vyj6oJxw",label:"label-vyj6oJxw",disabled:"disabled-vyj6oJxw",primary:"primary-vyj6oJxw",danger:"danger-vyj6oJxw"}},76207:e=>{e.exports={"textarea-container":"textarea-container-x5KHDULU","change-highlight":"change-highlight-x5KHDULU",focused:"focused-x5KHDULU","resize-vertical":"resize-vertical-x5KHDULU","resize-horizontal":"resize-horizontal-x5KHDULU","resize-both":"resize-both-x5KHDULU",textarea:"textarea-x5KHDULU","with-icon":"with-icon-x5KHDULU",endslot:"endslot-x5KHDULU"}},75452:e=>{e.exports={default:"default-EZuD3gZZ",danger:"danger-EZuD3gZZ",warning:"warning-EZuD3gZZ",success:"success-EZuD3gZZ",neutral:"neutral-EZuD3gZZ","neutral-light":"neutral-light-EZuD3gZZ",small:"small-EZuD3gZZ",
|
||||||
|
medium:"medium-EZuD3gZZ",large:"large-EZuD3gZZ",iconWrapper:"iconWrapper-EZuD3gZZ",icon:"icon-EZuD3gZZ"}},9352:e=>{e.exports={wrapper:"wrapper-vkdW50tN",dirMatching:"dirMatching-vkdW50tN"}},63783:e=>{e.exports={customListItem:"customListItem-KOmCbcJ6",clickable:"clickable-KOmCbcJ6"}},37315:e=>{e.exports={background:"background-wJ4EfuBP",medium:"medium-wJ4EfuBP",large:"large-wJ4EfuBP",disabled:"disabled-wJ4EfuBP",open:"open-wJ4EfuBP",selected:"selected-wJ4EfuBP",neutral:"neutral-wJ4EfuBP",danger:"danger-wJ4EfuBP"}},40543:e=>{e.exports={ellipsis:"ellipsis-tEiLUFuT",withGaps:"withGaps-tEiLUFuT"}},54519:e=>{e.exports={hotkey:"hotkey-VUKsQhT0"}},70827:e=>{e.exports={buttonContent:"buttonContent-_b0ghPff",left:"left-_b0ghPff"}},57457:e=>{e.exports={button:"button-HZXWyU6m"}},45515:e=>{e.exports={middle:"middle-RDCgMoEQ",hasNoEndSlot:"hasNoEndSlot-RDCgMoEQ",title:"title-RDCgMoEQ",description:"description-RDCgMoEQ",hasTitle:"hasTitle-RDCgMoEQ",hasDescription:"hasDescription-RDCgMoEQ"}},44479:e=>{e.exports={right:"right-ocwOCm5j",child:"child-ocwOCm5j"}},52093:e=>{e.exports={wrapper:"wrapper-AO80rc_p",primaryTitleWrapper:"primaryTitleWrapper-AO80rc_p",secondaryTitleWrapper:"secondaryTitleWrapper-AO80rc_p",title:"title-AO80rc_p",content:"content-AO80rc_p",left:"left-AO80rc_p",withLeftSlot:"withLeftSlot-AO80rc_p",space:"space-AO80rc_p",icon:"icon-AO80rc_p"}},24748:e=>{e.exports={anchor:"anchor-hRFQR3av"}},46691:e=>{e.exports={contextActions:"contextActions-D_fUDt4_",hideIfNoHover:"hideIfNoHover-D_fUDt4_",someContextActionFocused:"someContextActionFocused-D_fUDt4_"}},74612:e=>{e.exports={"menu-divider":"menu-divider-YZ5qU_gy","menu-divider-line":"menu-divider-line-YZ5qU_gy"}},6071:e=>{e.exports={eventWrapper:"eventWrapper-FB5aPMmU"}},17858:e=>{e.exports={radioButtonView:"radioButtonView-zzLJI6BH",checked:"checked-zzLJI6BH",disabled:"disabled-zzLJI6BH"}},72222:e=>{e.exports={radio:"radio-ALqkCUvs",reverse:"reverse-ALqkCUvs",label:"label-ALqkCUvs",wrapper:"wrapper-ALqkCUvs",input:"input-ALqkCUvs",box:"box-ALqkCUvs",disabled:"disabled-ALqkCUvs"}},78574:e=>{e.exports={wrap:"wrap-g_7HJ1Y8",item:"item-g_7HJ1Y8",checked:"checked-g_7HJ1Y8",accessible:"accessible-g_7HJ1Y8",focusVisible:"focusVisible-g_7HJ1Y8",radio:"radio-g_7HJ1Y8",paddingCompact:"paddingCompact-g_7HJ1Y8"}},51257:e=>{e.exports={innerLabel:"innerLabel-DjbvBF5Y",endSlot:"endSlot-DjbvBF5Y"}},62872:e=>{e.exports={controlWrapper:"controlWrapper-DBTazUk2",hidden:"hidden-DBTazUk2",control:"control-DBTazUk2",controlIncrease:"controlIncrease-DBTazUk2",controlDecrease:"controlDecrease-DBTazUk2",controlIcon:"controlIcon-DBTazUk2",title:"title-DBTazUk2"}},64734:e=>{e.exports={wrap:"wrap-ne5qGlZh",icon:"icon-ne5qGlZh",text:"text-ne5qGlZh",disabled:"disabled-ne5qGlZh"}},1261:e=>{e.exports={container:"container-zTsGmQlA",title:"title-zTsGmQlA",lineContainer:"lineContainer-zTsGmQlA",lineSegment:"lineSegment-zTsGmQlA",checked:"checked-zTsGmQlA"}},26865:e=>{e.exports={colorPickerWrap:"colorPickerWrap-Sw_a4qpB",focused:"focused-Sw_a4qpB",readonly:"readonly-Sw_a4qpB",
|
||||||
|
disabled:"disabled-Sw_a4qpB","size-small":"size-small-Sw_a4qpB","size-medium":"size-medium-Sw_a4qpB","size-large":"size-large-Sw_a4qpB","font-size-small":"font-size-small-Sw_a4qpB","font-size-medium":"font-size-medium-Sw_a4qpB","font-size-large":"font-size-large-Sw_a4qpB","border-none":"border-none-Sw_a4qpB",shadow:"shadow-Sw_a4qpB","border-thin":"border-thin-Sw_a4qpB","border-thick":"border-thick-Sw_a4qpB","intent-default":"intent-default-Sw_a4qpB","intent-success":"intent-success-Sw_a4qpB","intent-warning":"intent-warning-Sw_a4qpB","intent-danger":"intent-danger-Sw_a4qpB","intent-primary":"intent-primary-Sw_a4qpB","corner-top-left":"corner-top-left-Sw_a4qpB","corner-top-right":"corner-top-right-Sw_a4qpB","corner-bottom-right":"corner-bottom-right-Sw_a4qpB","corner-bottom-left":"corner-bottom-left-Sw_a4qpB",colorPicker:"colorPicker-Sw_a4qpB",swatch:"swatch-Sw_a4qpB",placeholderContainer:"placeholderContainer-Sw_a4qpB",placeholder:"placeholder-Sw_a4qpB",mixedColor:"mixedColor-Sw_a4qpB",white:"white-Sw_a4qpB",opacitySwatch:"opacitySwatch-Sw_a4qpB",colorLine:"colorLine-Sw_a4qpB",multiWidth:"multiWidth-Sw_a4qpB",lineStyleSelect:"lineStyleSelect-Sw_a4qpB",overflowContainer:"overflowContainer-Sw_a4qpB",linePropertyContainer:"linePropertyContainer-Sw_a4qpB",whiteContainer:"whiteContainer-Sw_a4qpB",multiProperty:"multiProperty-Sw_a4qpB",lineItem:"lineItem-Sw_a4qpB",lineSegment:"lineSegment-Sw_a4qpB"}},47987:e=>{e.exports={thicknessContainer:"thicknessContainer-C05zSid7",thicknessTitle:"thicknessTitle-C05zSid7",bar:"bar-C05zSid7",checked:"checked-C05zSid7"}},93592:e=>{e.exports={content:"content-RLntasnw",cell:"cell-RLntasnw",inner:"inner-RLntasnw",first:"first-RLntasnw",inlineCell:"inlineCell-RLntasnw",fill:"fill-RLntasnw",top:"top-RLntasnw",topCenter:"topCenter-RLntasnw",offset:"offset-RLntasnw",inlineRow:"inlineRow-RLntasnw",grouped:"grouped-RLntasnw",wrapRowInner:"wrapRowInner-RLntasnw",separator:"separator-RLntasnw",groupSeparator:"groupSeparator-RLntasnw",big:"big-RLntasnw",adaptive:"adaptive-RLntasnw",checkableTitle:"checkableTitle-RLntasnw"}},82224:e=>{e.exports={resetButton:"resetButton-_lNk4Bef"}},86778:e=>{e.exports={hasTooltip:"hasTooltip-DcvaoxPU",uppercase:"uppercase-DcvaoxPU",wrapper:"wrapper-DcvaoxPU"}},69999:e=>{e.exports={wrap:"wrap-Q2NZ0gvI"}},6055:e=>{e.exports={checkbox:"checkbox-FG0u1J5p",title:"title-FG0u1J5p"}},69451:e=>{e.exports={hintButton:"hintButton-qEI9XsjF",infoTooltip:"infoTooltip-qEI9XsjF"}},98363:e=>{e.exports={titleWrap:"titleWrap-SexRbl__",title:"title-SexRbl__"}},86707:e=>{e.exports={button:"button-HBcDEU4c",accessible:"accessible-HBcDEU4c"}},40649:e=>{e.exports={container:"container-mdcOkvbj",sectionTitle:"sectionTitle-mdcOkvbj",separator:"separator-mdcOkvbj",customButton:"customButton-mdcOkvbj",accessible:"accessible-mdcOkvbj"}},45759:e=>{e.exports={container:"container-iiEYaqPD",form:"form-iiEYaqPD",swatch:"swatch-iiEYaqPD",white:"white-iiEYaqPD",inputWrap:"inputWrap-iiEYaqPD",inputHash:"inputHash-iiEYaqPD",input:"input-iiEYaqPD",buttonWrap:"buttonWrap-iiEYaqPD",
|
||||||
|
hueSaturationWrap:"hueSaturationWrap-iiEYaqPD",saturation:"saturation-iiEYaqPD",hue:"hue-iiEYaqPD"}},79819:e=>{e.exports={hue:"hue-r4uo5Wn6",pointer:"pointer-r4uo5Wn6",accessible:"accessible-r4uo5Wn6",pointerContainer:"pointerContainer-r4uo5Wn6"}},55392:e=>{e.exports={opacity:"opacity-EnWts7Xu",opacitySlider:"opacitySlider-EnWts7Xu",opacitySliderGradient:"opacitySliderGradient-EnWts7Xu",pointer:"pointer-EnWts7Xu",dragged:"dragged-EnWts7Xu",opacityPointerWrap:"opacityPointerWrap-EnWts7Xu",opacityInputWrap:"opacityInputWrap-EnWts7Xu",opacityInput:"opacityInput-EnWts7Xu",opacityInputPercent:"opacityInputPercent-EnWts7Xu",accessible:"accessible-EnWts7Xu"}},6921:e=>{e.exports={saturation:"saturation-NFNfqP2w",pointer:"pointer-NFNfqP2w",accessible:"accessible-NFNfqP2w"}},6273:e=>{e.exports={swatches:"swatches-sfn7Lezv",swatch:"swatch-sfn7Lezv",hover:"hover-sfn7Lezv",empty:"empty-sfn7Lezv",white:"white-sfn7Lezv",selected:"selected-sfn7Lezv",contextItem:"contextItem-sfn7Lezv",row:"row-sfn7Lezv"}},49971:e=>{e.exports={"icon-wrapper":"icon-wrapper-dikdewwx","with-link":"with-link-dikdewwx","with-tooltip":"with-tooltip-dikdewwx","no-active-state":"no-active-state-dikdewwx"}},12139:e=>{e.exports={menuWrap:"menuWrap-Kq3ruQo8",isMeasuring:"isMeasuring-Kq3ruQo8",scrollWrap:"scrollWrap-Kq3ruQo8",momentumBased:"momentumBased-Kq3ruQo8",menuBox:"menuBox-Kq3ruQo8",isHidden:"isHidden-Kq3ruQo8"}},91965:(e,t,n)=>{"use strict";n.d(t,{Caret:()=>p,CaretButton:()=>m});var o=n(79474),a=n(14487),r=n.n(a),s=n(73457),i=n(43616),l=n.n(i),c=n(66740),u=n.n(c);function d(e){const{isDropped:t}=e;return o.createElement(s.Icon,{className:r()(u().icon,t&&u().dropped),icon:l()})}function p(e){const{className:t,disabled:n,isDropped:a}=e;return o.createElement("span",{className:r()(u().button,n&&u().disabled,t)},o.createElement(d,{isDropped:a}))}function m(e){const{className:t,tabIndex:n=-1,disabled:a,isDropped:s,...i}=e;return o.createElement("button",{...i,type:"button",tabIndex:n,disabled:a,className:r()(u().button,a&&u().disabled,t)},o.createElement(d,{isDropped:s}))}},71236:(e,t,n)=>{"use strict";n.d(t,{CheckboxInput:()=>d});var o=n(79474),a=n(14487),r=n.n(a),s=n(40197),i=n(11864),l=n(94350),c=n(98297),u=n.n(c);function d(e){const t=e.intent??"primary";return o.createElement("span",{className:r()(u().wrapper,e.disabled&&u().disabled,e.className),title:e.title,style:e.style},o.createElement("span",{className:r()(u().view,u()[t])},o.createElement(l.CheckboxViewImpl,{checked:e.checked,disabled:e.disabled})),o.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:r()(u()[t],u().input),type:"checkbox",name:e.name,checked:!1!==e.checked,disabled:e.disabled,value:e.value,role:e.role,onChange:e.onChange,ref:e.reference,"aria-checked":(()=>{switch(e.checked){case!0:return"true";case!1:return"false";case"mixed":return"mixed"}})(),"aria-required":e.ariaRequired,"aria-describedby":e.ariaDescribedby,"aria-invalid":e.ariaInvalid,"data-qa-id":e.dataQaId,...(0,s.filterDataProps)(e)}),o.createElement("div",{className:u().focusOutline}))}(0,
|
||||||
|
i.makeSwitchGroupItem)(d)},94350:(e,t,n)=>{"use strict";n.d(t,{CheckboxViewImpl:()=>d});var o=n(79474),a=n(14487),r=n.n(a),s=n(64588),i=n(17070),l=n.n(i),c=n(44859),u=n.n(c);function d(e){const{checked:t,disabled:n}=e;return o.createElement("div",{className:r()(u().box,!0===t&&u().checked,!1===t&&u().unchecked,"mixed"===t&&u().mixed,n&&u().disabled)},!0===t&&o.createElement(s.BlockIcon,{icon:l(),className:u().checkedMark}),"mixed"===t&&o.createElement("div",{className:u().mixedMark}))}},69144:(e,t,n)=>{"use strict";n.d(t,{Checkbox:()=>u});var o=n(79474),a=n(14487),r=n.n(a),s=n(11864),i=n(71236),l=n(27284),c=n.n(l);function u(e){const{className:t,labelPositionReverse:n,labelAlignBaseline:a,inputClassName:s,labelClassName:l,label:u,title:d,disabled:p,intent:m="primary",dataQaId:h,value:f,onChange:b,name:v,checked:g,id:C,tabIndex:E,role:y,reference:S,style:x,ariaRequired:w,ariaDescribedby:_,ariaInvalid:I,autoFocus:N,...k}=e,T=Object.fromEntries(Object.entries(k).filter((([e,t])=>e.startsWith("data")))),D=r()(t,c().checkbox,n&&c().reverse,a&&c().baseline),O=r()(c().label,l,p&&c().disabled,c()[m]),R=u?o.createElement("span",{className:O,title:d},u):null;return o.createElement("label",{className:D},o.createElement(i.CheckboxInput,{...T,value:f,onChange:b,dataQaId:h,className:s,intent:m,name:v,checked:g,id:C,tabIndex:E,role:y,reference:S,style:x,ariaRequired:w,ariaDescribedby:_,ariaInvalid:I,disabled:p,autoFocus:N}),R)}(0,s.makeSwitchGroupItem)(u);n(94350),n(49036)},88340:(e,t,n)=>{"use strict";n.d(t,{Textarea:()=>y});var o,a=n(79474),r=n(14487),s=n.n(r),i=n(9774),l=n(55971),c=n(94530),u=n(59618),d=n(69550),p=n(26834),m=n(13621),h=n(78484),f=n(29914),b=n(76207),v=n.n(b);!function(e){e.None="none",e.Vertical="vertical",e.Horizontal="horizontal",e.Both="both"}(o||(o={}));const g=a.forwardRef(((e,t)=>{const{id:n,title:o,tabIndex:r,containerTabIndex:i,role:l,inputClassName:c,autoComplete:u,autoFocus:d,cols:p,disabled:b,isFocused:g,form:C,maxLength:E,minLength:y,name:S,placeholder:x,readonly:w,required:_,rows:I,value:N,defaultValue:k,wrap:T,containerReference:D,onChange:O,onSelect:R,onFocus:P,onContainerFocus:B,onBlur:M,onPaste:L,dataQaId:A,"aria-describedby":F,"aria-required":W,"aria-invalid":V,hasIcon:z,endSlot:U,hasAttachImage:H,...q}=e,G={id:n,title:o,tabIndex:r,role:l,autoComplete:u,autoFocus:d,cols:p,disabled:b,form:C,maxLength:E,minLength:y,name:S,placeholder:x,readOnly:w,required:_,rows:I,value:N,defaultValue:k,wrap:T,onChange:O,onSelect:R,onFocus:P,onBlur:M,onPaste:L,"aria-describedby":F,"aria-required":W,"aria-invalid":V};return a.createElement(m.ControlSkeleton,{...q,"data-qa-id":A,tabIndex:i,disabled:b,readonly:w,isFocused:g,ref:D,onFocus:B,middleSlot:a.createElement(h.MiddleSlot,null,a.createElement("textarea",{...G,"data-qa-id":`${f.UI_LIB_DATA_QA_ID_PREFIX}textarea-middle-slot`,className:s()(v().textarea,c,U&&v().endslot),ref:t})),...U&&{endSlot:a.createElement("span",{className:s()(!H&&v()["with-icon"])},U)}})}));g.displayName="TextareaView"
|
||||||
|
;const C=(e,t,n)=>t?void 0:e?-1:n,E=(e,t,n)=>t?void 0:e?n:-1,y=a.forwardRef(((e,t)=>{e=(0,c.useControl)(e);const{className:n,disabled:r,autoSelectOnFocus:m,tabIndex:h=0,borderStyle:f,highlight:b,resize:y,containerReference:S=null,onFocus:x,onBlur:w,hasIcon:_,...I}=e,N=(0,a.useRef)(null),k=(0,a.useRef)(null),{isMouseDown:T,handleMouseDown:D,handleMouseUp:O}=(0,u.useIsMouseDown)(),[R,P]=(0,l.useFocus)(),B=(0,d.createSafeMulticastEventHandler)(P.onFocus,(function(e){m&&!T.current&&(0,p.selectAllContent)(e.currentTarget)}),x),M=(0,d.createSafeMulticastEventHandler)(P.onBlur,w),L=void 0!==y&&y!==o.None,A=f??(L?b?"thick":"thin":void 0),F=b??(!L&&void 0);return a.createElement(g,{...I,className:s()(v()["textarea-container"],L&&v()["change-highlight"],y&&y!==o.None&&v()[`resize-${y}`],R&&v().focused,n),disabled:r,isFocused:R,containerTabIndex:C(R,r,h),tabIndex:E(R,r,h),borderStyle:A,highlight:F,onContainerFocus:function(e){k.current===e.target&&null!==N.current&&N.current.focus()},onFocus:B,onBlur:M,onMouseDown:D,onMouseUp:O,ref:function(e){N.current=e,"function"==typeof t?t(e):t&&(t.current=e)},containerReference:(0,i.useMergedRefs)([S,k]),hasIcon:_})}));y.displayName="Textarea"},79223:(e,t,n)=>{"use strict";n.d(t,{useTooltip:()=>i});var o=n(79474),a=n(56688);var r=n(73064);const s=200;function i(e,t=null){const{showTooltip:n,hideTooltip:i,onClick:l,doNotShowTooltipOnTouch:c=!1}=e,u=(0,r.useFunctionalRefObject)(t),d=function(){const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{t(a.mobiletouch)}),[]),e}(),p=d&&c?void 0:e.tooltip;(0,o.useEffect)((()=>{const e=()=>i&&i();return document.addEventListener("scroll",e,!0),()=>document.removeEventListener("scroll",e,!0)}),[u,i]);return{onBlur:(0,o.useCallback)((e=>{i&&i()}),[i]),onFocus:(0,o.useCallback)((e=>{!e.target.matches(":hover")&&n&&e.target.matches(":focus-visible")&&n(e.currentTarget,{tooltipDelay:s})}),[n]),onClick:(0,o.useCallback)((e=>{d&&u?.current?.focus(),l&&l(e)}),[l,u,d]),tooltip:p,className:void 0!==p?"apply-common-tooltip":void 0,ref:u}}},78972:(e,t,n)=>{"use strict";n.d(t,{SubmenuContext:()=>a,SubmenuHandler:()=>r});var o=n(79474);const a=o.createContext(null);function r(e){const[t,n]=(0,o.useState)(null),r=(0,o.useRef)(null),s=(0,o.useRef)(new Map);return(0,o.useEffect)((()=>()=>{null!==r.current&&clearTimeout(r.current)}),[]),o.createElement(a.Provider,{value:{current:t,setCurrent:function(e){null!==r.current&&(clearTimeout(r.current),r.current=null);null===t?n(e):r.current=setTimeout((()=>{r.current=null,n(e)}),100)},registerSubmenu:function(e,t){return s.current.set(e,t),()=>{s.current.delete(e)}},isSubmenuNode:function(e){return Array.from(s.current.values()).some((t=>t(e)))}}},e.children)}},11864:(e,t,n)=>{"use strict";n.d(t,{SwitchGroup:()=>s,makeSwitchGroupItem:()=>i});var o=n(79474),a=n(16687);const r=(0,o.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>a.default,subscribe:a.default,unsubscribe:a.default});class s extends o.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name,
|
||||||
|
this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return o.createElement(r.Provider,{value:this.state.switchGroupContext},this.props.children)}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach((t=>t(e)))}_getUpdates(e,t){return[...t,...e].filter((n=>t.includes(n)?!e.includes(n):e.includes(n)))}}function i(e){var t;return t=class extends o.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.getOnChange()(e.target.value)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.subscribe(this._onUpdate)}render(){return o.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.unsubscribe(this._onUpdate)}_getName(){return this.context.getName()}_isChecked(){return this.context.getValues().includes(this.props.value)}},t.contextType=r,t}},72896:(e,t,n)=>{"use strict";n.d(t,{NumberInputView:()=>O});var o,a=n(79474),r=n(72445),s=n(14487),i=n.n(s),l=n(88169),c=n(78484),u=n(19308),d=n(84874),p=n(67970),m=n(51257);!function(e){e.Large="large",e.Medium="medium",e.None="none"}(o||(o={}));const h={large:l.InputClasses.FontSizeLarge,medium:l.InputClasses.FontSizeMedium,none:void 0},f={attachment:p.anchors.top.attachment,targetAttachment:p.anchors.top.targetAttachment,attachmentOffsetY:-4};function b(e){const{className:t,inputClassName:n,endSlotClassName:o,stretch:r=!0,errorMessage:s,fontSizeStyle:l="large",endSlot:p,button:b,error:v,warning:g,innerLabel:C,inputReference:E,children:y,customErrorsAttachment:S,size:x,...w}=e,_=v&&void 0!==s?[s]:void 0,I=g&&void 0!==s?[s]:void 0,N=i()(m.inputContainer,h[l],t),k=C?a.createElement(c.StartSlot,{className:m.innerLabel,interactive:!1},C):void 0,T=p||b||y?a.createElement(c.EndSlot,{className:i()(m.endSlot,o)},p,b,y):void 0;return a.createElement(u.FormInput,{...w,className:N,inputClassName:n,errors:_,warnings:I,hasErrors:v,hasWarnings:g,messagesPosition:d.MessagesPosition.Attached,customErrorsAttachment:{...f,...S},messagesRoot:"document",inheritMessagesWidthFromTarget:!0,disableMessagesRtlStyles:!0,iconHidden:!0,stretch:r,reference:E,startSlot:k,endSlot:T,size:x})}var v=n(9774),g=n(91599),C=n(66334),E=n(63484),y=n(43616),S=n(62872);function x(e){const t=i()(S.control,S.controlIncrease),o=i()(S.control,S.controlDecrease);return a.createElement(a.Fragment,null,void 0!==e.title&&a.createElement("div",{className:S.title},e.title),a.createElement("div",{className:S.controlWrapper},(e.defaultButtonsVisible||e.title)&&a.createElement(a.Fragment,null,a.createElement("button",{type:"button","data-qa-id":"number-input-control-increase",tabIndex:-1,
|
||||||
|
"aria-label":g.t(null,void 0,n(70524)),className:t,onClick:e.increaseValue,onMouseDown:E.preventDefault},a.createElement(C.Icon,{icon:y,className:S.controlIcon})),a.createElement("button",{type:"button","data-qa-id":"number-input-control-decrease",tabIndex:-1,"aria-label":g.t(null,void 0,n(27666)),className:o,onClick:e.decreaseValue,onMouseDown:E.preventDefault},a.createElement(C.Icon,{icon:y,className:S.controlIcon})))))}var w=n(53530),_=n(55971),I=n(69550),N=n(23351);const k=[38],T=[40];var D;function O(e){const[t,n]=(0,w.useHoverDeprecated)(),[o,s]=(0,_.useFocus)(),i=(0,a.useRef)(null),l=(0,I.createSafeMulticastEventHandler)(s.onFocus,e.onFocus),c=(0,I.createSafeMulticastEventHandler)(s.onBlur,e.onBlur),u=(0,a.useCallback)((t=>{!e.disabled&&o&&(t.preventDefault(),t.deltaY<0?e.onValueByStepChange(1):e.onValueByStepChange(-1))}),[o,e.disabled,e.onValueByStepChange]);return a.createElement(b,{...n,id:e.id,name:e.name,pattern:e.pattern,borderStyle:e.borderStyle,fontSizeStyle:e.fontSizeStyle,value:e.value,className:e.className,inputClassName:e.inputClassName,autoComplete:e.autoComplete,button:function(){const{title:n,button:s,disabled:i,forceShowControls:l,hideNumberInputControls:c}=e,u=!i&&!r.mobiletouch&&(l||o||t);return i?void 0:a.createElement(a.Fragment,null,s??(!c&&a.createElement(x,{increaseValue:d,decreaseValue:p,defaultButtonsVisible:u,title:n})))}(),disabled:e.disabled,placeholder:e.placeholder,innerLabel:e.innerLabel,endSlot:e.endSlot,endSlotClassName:e.endSlotClassName,containerReference:(0,v.useMergedRefs)([i,e.containerReference]),inputReference:e.inputReference,inputMode:e.inputMode,type:e.type,warning:e.warning,error:e.error,errorMessage:e.errorMessage,onClick:e.onClick,onFocus:l,onBlur:c,onChange:e.onValueChange,onKeyDown:function(t){if(e.disabled||0!==(0,N.modifiersFromEvent)(t.nativeEvent))return;let n=k,o=T;e.controlDecKeyCodes&&(o=o.concat(e.controlDecKeyCodes));e.controlIncKeyCodes&&(n=n.concat(e.controlIncKeyCodes));(o.includes(t.keyCode)||n.includes(t.keyCode))&&(t.preventDefault(),e.onValueByStepChange(o.includes(t.keyCode)?-1:1));e.onKeyDown&&e.onKeyDown(t);t.nativeEvent.__syntheticallyStopPropagationAfterExecution&&t.stopPropagation()},onWheelNoPassive:u,stretch:e.stretch,intent:e.intent,highlight:e.highlight,highlightRemoveRoundBorder:e.highlightRemoveRoundBorder,autoSelectOnFocus:e.autoSelectOnFocus,customErrorsAttachment:e.customErrorsAttachment,tabIndex:e.tabIndex,"data-property-id":e["data-name"],"aria-current":e["aria-current"],"aria-controls":e["aria-controls"],readonly:e.readonly,noReadonlyStyles:e.noReadonlyStyles,"data-name":e["data-name"],dataQaId:e.dataQaId,size:e.size});function d(){e.disabled||(i.current?.focus(),e.onValueByStepChange(1),e.onInputControlClick?.(1))}function p(){e.disabled||(i.current?.focus(),e.onValueByStepChange(-1),e.onInputControlClick?.(-1))}}!function(e){e[e.Dec=-1]="Dec",e[e.Inc=1]="Inc"}(D||(D={}))},11288:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const o=(()=>{let e;return()=>{if(void 0===e){const t=document.createElement("div"),n=t.style
|
||||||
|
;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(t);const o=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const r=a.offsetWidth;t.parentNode?.removeChild(t),e=o-r}return e}})();function a(e,t,n){null!==e&&e.style.setProperty(t,n)}function r(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function s(e,t){return parseInt(r(e,t))}let i=0,l=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++i){const e=r(t,"overflow"),i=s(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(a(n,"right",`${o()}px`),t.style.paddingRight=`${i+o()}px`,l=!0),t.classList.add("i-no-scroll")}else if(!e&&i>0&&0==--i&&(t.classList.remove("i-no-scroll"),l)){a(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=o()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},14946:(e,t,n)=>{"use strict";n.d(t,{ColorSelect:()=>F});var o=n(79474),a=n(14487),r=n.n(a),s=n(85842),i=n(23351),l=n(29344),c=n(55971),u=n(74871),d=n(98124),p=n(78122),m=n(87918),h=n(86707);function f(e){const{button:t,children:n,className:a,onPopupClose:f,"data-name":b,onColorChange:v,disabled:g,repositionOnScroll:C,closeOnScrollOutsideOffset:E,...y}=e,[S,x]=(0,o.useState)(!1),[w,_]=(0,o.useState)(!1),[I,N]=(0,c.useFocus)(),k=(0,o.useRef)(null),T=(0,o.useRef)(null),D=(0,o.useRef)(null);return o.createElement("div",{className:a,"data-name":b},o.createElement("button",{className:r()(h.button,h.accessible),tabIndex:g?-1:0,ref:D,onClick:function(){if(e.disabled)return;_((e=>!e)),x(!1)},onFocus:N.onFocus,onBlur:N.onBlur,disabled:g},"function"==typeof t?t(w,I):t),o.createElement(l.PopupMenu,{reference:T,controller:k,onFocus:function(e){if(!e.target||e.target!==e.currentTarget||S)return;const t=e.currentTarget,n=(0,s.ensureNotNull)((o=e.target,o.querySelector('[data-role="swatch"]:not([disabled]):not([aria-disabled="true" i])')));var o;(0,m.becomeMainElement)(n),setTimeout((()=>{if(document.activeElement!==t||!e.target.matches(":focus-visible"))return;const[n]=(0,p.queryTabbableElements)(t).sort(p.navigationOrderComparator);n&&n.focus()}))},isOpened:w,onClose:O,position:function(){const e=(0,s.ensureNotNull)(D.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},doNotCloseOn:D.current,onKeyDown:function(e){if(27===(0,i.hashFromEvent)(e))w&&(e.preventDefault(),O())},repositionOnScroll:C,onOpen:function(){k.current?.focus()},tabIndex:-1,closeOnScrollOutsideOffset:E},o.createElement(d.MenuContext.Consumer,null,(e=>o.createElement(u.ColorPicker,{...y,onColorChange:v,onToggleCustom:x,menu:e}))),!S&&n));function O(){_(!1),(0,s.ensureNotNull)(D.current).focus(),f&&f()}}var b=n(92155),v=n(82347),g=n(22057),C=n(91599),E=n(11864),y=n(78574);const S=(0,E.makeSwitchGroupItem)(class extends o.PureComponent{constructor(e){super(e),this._handleFocus=e=>{e.target.matches(":focus-visible")&&this.setState({isFocusVisible:!0})},this._handleBlur=()=>{this.state.isFocusVisible&&this.setState({isFocusVisible:!1})
|
||||||
|
},this.state={isFocusVisible:!1}}render(){const{name:e,checked:t,value:n,renderItemContent:r,className:s}=this.props,i=a(y.item,y.accessible,{[y.checked]:t,[y.focusVisible]:this.state.isFocusVisible},s);return o.createElement("div",{className:i},o.createElement("input",{type:"radio",className:y.radio,name:e,value:n,onChange:this.props.onChange,onFocus:this._handleFocus,onBlur:this._handleBlur,checked:t}),r(parseInt(n),t))}});function x(e){const{name:t,values:n,selectedValues:r,onChange:s,renderItemContent:i}=e,l=n.map(((e,t)=>o.createElement(S,{key:t,value:e.toString(),renderItemContent:i,className:a(n.length>3&&y.paddingCompact)}))),c=r.map((e=>e.toString()));return o.createElement("div",{className:y.wrap},o.createElement(E.SwitchGroup,{name:t,onChange:e=>{s(parseInt(e))},values:c},l))}var w=n(47987);const _=C.t(null,void 0,n(90814));function I(e){const{value:t,items:n,onChange:a}=e;return o.createElement("div",{className:w.thicknessContainer},o.createElement("div",{className:w.thicknessTitle},_),o.createElement(x,{name:"color_picker_thickness_select",onChange:a,values:n,selectedValues:"mixed"===t?[]:[t],renderItemContent:(e,t)=>o.createElement("div",{className:r()(w.bar,t&&w.checked),style:{borderTopWidth:e}})}))}var N=n(80140);function k(e,t,n,o,a,r){return{repeat:e,width:t,height:n,segmentsGap:o,marginTop:a,segmentsGaps:r}}const T={"style-SOLID_thickness-1":k(1,"30px","1px"),"style-DASHED_thickness-1":k(4,"5px","1px","3px"),"style-DOTTED_thickness-1":k(6,"2px","2px","3px"),"style-SOLID_thickness-2":k(1,"30px","2px"),"style-DASHED_thickness-2":k(4,"5px","2px","3px"),"style-DOTTED_thickness-2":k(5,"3px","3px","3px"),"style-SOLID_thickness-3":k(1,"30px","3px"),"style-DASHED_thickness-3":k(4,"5px","3px","3px"),"style-DOTTED_thickness-3":k(5,"4px","4px","2px"),"style-SOLID_thickness-4":k(1,"30px","4px"),"style-DASHED_thickness-4":k(4,"5px","4px","3px"),"style-DOTTED_thickness-4":k(4,"5px","5px","3px")},D={...T,"style-mixed_thickness-large":k(1,"30px","16px"),"style-mixed_thickness-1":[k(1,"27px","1px"),k(4,"4px","1px","4px","5px",{3:"3px"}),k(6,"2px","2px","3px","5px")],"style-mixed_thickness-2":[k(1,"27px","2px"),k(4,"4px","2px","4px","4px",{3:"3px"}),k(6,"2px","2px","3px","4px")],"style-mixed_thickness-3":[k(1,"27px","3px"),k(4,"4px","3px","4px","3px",{3:"3px"}),k(6,"2px","2px","3px","3px")],"style-mixed_thickness-4":[k(1,"27px","4px"),k(4,"4px","4px","4px","3px",{3:"3px"}),k(6,"2px","2px","3px","3px")],"style-SOLID_thickness-mixed":[k(1,"30px","3px",void 0,"4px"),k(1,"30px","2px",void 0,"4px"),k(1,"30px","1px",void 0,"4px")],"style-DASHED_thickness-mixed":[k(4,"5px","3px","3px"),k(4,"5px","2px","3px","4px"),k(4,"5px","1px","3px","4px")],"style-DOTTED_thickness-mixed":[k(5,"3px","3px","3px"),k(5,"3px","2px","3px","4px"),k(6,"2px","2px","3px","4px")],"style-mixed_thickness-mixed":[k(1,"30px","3px"),k(4,"6px","2px","2px","4px"),k(5,"2px","2px","5px","4px")]};function O(e,t){if(!t)return[];const n=e??N.LINESTYLE_SOLID;if("mixed"!==t&&t>4)return D["style-mixed_thickness-large"]||[];const o="mixed"===n?"mixed":R(n)
|
||||||
|
;return D[`style-${o}_thickness-${"mixed"===t?"mixed":t}`]||[]}function R(e){switch(e){case N.LINESTYLE_SOLID:return"SOLID";case N.LINESTYLE_DOTTED:return"DOTTED";case N.LINESTYLE_DASHED:return"DASHED";default:return"UNKNOWN"}}var P=n(81458),B=n(1261);function M(e){const{value:t,items:a,onChange:s,className:i}=e;return o.createElement("div",{className:r()(B.container,i)},o.createElement("div",{className:B.title},C.t(null,void 0,n(41014))),o.createElement(x,{name:"color_picker_line_style_select",onChange:s,values:a,selectedValues:"mixed"===t?[]:[t],renderItemContent:L}))}function L(e,t){const n=function(e,t=1){const n=R(e);return T[`style-${n}_thickness-${t}`]||null}(e,1);return n?o.createElement("div",{className:B.lineContainer},Array.from({length:n.repeat}).map(((e,a)=>{const s=n?.segmentsGaps?.[a]||n?.segmentsGap;return o.createElement("div",{key:a,className:r()(B.lineSegment,t&&B.checked),style:{width:n.width,height:n.height,...0!==a&&{[(0,P.isRtl)()?"marginRight":"marginLeft"]:s}}})}))):null}var A=n(26865);function F(e){const{className:t,selectOpacity:n=void 0!==e.opacity,thickness:a,lineStyle:s,color:i,disabled:l,opacity:c=1,onColorChange:u,onOpacityChange:d,onThicknessChange:p,onLineStyleChange:m,thicknessItems:h,lineStyleItems:v,onPopupClose:g,"data-name":C,repositionOnScroll:E,closeOnScrollOutsideOffset:y}=e,[S,x,w]=(0,b.useCustomColors)(),_=a&&h&&h.length>0;return o.createElement(f,{className:t,disabled:l,color:"mixed"!==i?i:null,selectOpacity:n,opacity:c,selectCustom:!0,customColors:S,onColorChange:u,onOpacityChange:i?d:void 0,onAddColor:x,onRemoveCustomColor:w,button:function(e,t){const n=e||t,u=n?"primary":"default";return o.createElement("div",{className:r()(A.colorPickerWrap,A[`intent-${u}`],A["border-thin"],A["size-medium"],n&&A.highlight,n&&A.focused,l&&A.disabled),"data-role":"button","data-name":a?"color-with-thickness-select":"color-select"},o.createElement("div",{className:r()(A.colorPicker,l&&A.disabled)},i&&"mixed"!==i?function(){const e=W(i,c),t=c>=.95&&V(i);return o.createElement("div",{className:A.opacitySwatch},o.createElement("div",{style:{backgroundColor:e},className:r()(A.swatch,t&&A.white)}))}():o.createElement("div",{className:A.placeholderContainer},o.createElement("div",{className:"mixed"===i?A.mixedColor:A.placeholder})),(void 0!==s||a)&&function(){const e=i&&"mixed"!==i?W(i,c):void 0;if(void 0===s&&!a)return null;const t=O(s,a);if(!t||Array.isArray(t)&&!t.length)return null;if(Array.isArray(t))return o.createElement("div",{className:A.overflowContainer},o.createElement("div",{className:r()(A.linePropertyContainer,A.multiProperty,V(i)&&A.whiteContainer)},t.map(((t,n)=>o.createElement("div",{key:n,className:A.lineItem,style:{marginTop:V(i)&&t?.marginTop?`calc(${t.marginTop} - 2px)`:t?.marginTop}},N(t,e))))));return o.createElement("div",{className:A.overflowContainer},o.createElement("div",{className:r()(A.linePropertyContainer,V(i)&&A.whiteContainer)},N(t,e)))}()),n&&o.createElement("span",{className:A.shadow}))},onPopupClose:g,"data-name":C,repositionOnScroll:E,
|
||||||
|
closeOnScrollOutsideOffset:y},_&&o.createElement(I,{value:a,items:h,onChange:function(e){p?.(e)}}),void 0!==s&&v&&v?.length>0&&o.createElement(M,{className:r()(_&&A.lineStyleSelect),value:s,items:v,onChange:function(e){m?.(e)}}));function N(e,t){return Array.from({length:e.repeat}).map(((n,a)=>{const s=e?.segmentsGaps?.[a]||e?.segmentsGap,l=V(i)&&s?`calc(${s} - 2px)`:s;return o.createElement("div",{key:a,className:r()(A.lineSegment,V(i)&&A.white),style:{width:e.width,height:e.height,backgroundColor:t,...0!==a&&{[(0,P.isRtl)()?"marginRight":"marginLeft"]:l}}})}))}}function W(e,t){return e?(0,v.generateColor)(e,(0,v.alphaToTransparency)(t),!0):"#000000"}function V(e){return!!e&&e.toLowerCase()===g.white}},20819:(e,t,n)=>{"use strict";n.d(t,{PropertyTable:()=>l});var o=n(79474),a=n(14487),r=n(40197),s=n(93592);const i=o.createContext(!1);class l extends o.PureComponent{render(){return o.createElement("div",{ref:this.props.reference,className:a(s.content,this.props.className)},this.props.children)}}var c,u,d;l.InlineRowContext=i,l.Row=function(e){const{children:t,className:n}=e;return(0,o.useContext)(i)?o.createElement("span",{className:a(s.inlineRow,n)},t):o.createElement(o.Fragment,null,t)},l.WrapRowInner=function(e){const{children:t,className:n}=e;return o.createElement("div",{className:a(s.wrapRowInner,n)},t)},function(e){e.Top="top",e.TopCenter="topCenter",e.Middle="middle",e.Adaptive="adaptive"}(c||(c={})),function(e){e.First="first",e.Last="last"}(u||(u={})),l.Cell=function(e){const t=(0,o.useContext)(i),n=a(s.cell,e.offset&&s.offset,e.grouped&&s.grouped,t&&s.inlineCell,"top"===e.verticalAlign&&s.top,"topCenter"===e.verticalAlign&&s.topCenter,"adaptive"===e.verticalAlign&&s.adaptive,e.checkableTitle&&s.checkableTitle,2===e.colSpan&&s.fill,"first"===e.placement&&2!==e.colSpan&&s.first,"last"===e.placement&&2!==e.colSpan&&s.last),l=(0,r.filterDataProps)(e);return o.createElement("div",{...l,className:n},o.createElement("div",{className:a(s.inner,e.className)},e.children))},l.Separator=function(e){return o.createElement(l.Row,null,o.createElement("div",{className:a(s.cell,s.separator,s.fill)}))},function(e){e[e.Small=0]="Small",e[e.Big=1]="Big"}(d||(d={})),l.GroupSeparator=function(e){const t=e.size||0;return o.createElement(l.Row,null,o.createElement("div",{className:a(s.cell,s.groupSeparator,s.fill,1===t&&s.big,e.className)}))}},39944:(e,t,n)=>{"use strict";n.d(t,{SymbolInputsButton:()=>T,SymbolSection:()=>D});var o=n(79474),a=n(14487),r=n.n(a),s=n(91599),i=n(85842),l=n(16905),c=n(16780),u=n(20969),d=n(66411),p=n(45267),m=n(66334),h=n(89326),f=n(64734);function b(e){const{value:t,onClick:n,className:r,startSlot:s,disabled:i=!1}=e;return o.createElement("div",{className:a(f.wrap,i&&f.disabled,r),onClick:n,"data-name":"edit-button"},o.createElement("div",{className:a(f.text,"apply-overflow-tooltip")},void 0!==s&&s,o.createElement("span",null,t)),o.createElement(m.Icon,{icon:h,className:f.icon}))}var v=n(67328),g=n(46224),C=n(986),E=n(96199),y=n(86778),S=n(50878),x=n(8120),w=n(82224);const _=e=>{
|
||||||
|
const{onClick:t,className:n,disabled:a=!1}=e;return o.createElement(x.LightButton,{isSelected:!0,disabled:a,className:r()(w.resetButton,n),startSlot:o.createElement(m.Icon,{icon:S}),variant:"primary",onClick:t})};_.displayName="ResetButton";const I=(0,o.memo)(_),N=e=>{const t=(0,C.tokenize)(e);return(0,C.isSpread)(t)},k=(0,d.getSymbolSearchCompleteOverrideFunction)();function T(e){const{symbol:t,defVal:a,onSymbolChanged:i,disabled:d,className:m,hasTooltip:h,isResetAble:f=!1}=e,[v,g]=(0,o.useState)(t),C=((0,o.useRef)(!1),(0,o.useContext)(c.SlotContext)),S=(0,o.useContext)(u.PopupContext);let x=null,w=!1,_=!1;const T=a;(0,o.useEffect)((()=>{}),[x,w,_]);const D=(0,o.useCallback)((()=>{g(T),i(T)}),[i]);return o.createElement("div",{className:y.wrapper},o.createElement(b,{value:v,onClick:()=>{let e=N(v)?v:(0,E.safeShortName)(v);(0,l.isFeaturesetEnabled)("symbol_search_option_chain_selector"),(0,p.showSymbolSearchItemsDialog)({onSearchComplete:e=>{k(e[0].symbol,e[0].result).then((e=>{i(e.symbol),g(e.name)}))},dialogTitle:s.t(null,void 0,n(2665)),defaultValue:e,manager:C,onClose:()=>{S&&S.focus()},searchInitiationPoint:"indicatorInputs",enableOptionsChain:(0,l.isFeaturesetEnabled)("symbol_search_option_chain_selector"),showSpreadActions:(0,l.isFeaturesetEnabled)("show_spread_operators")&&(0,l.isFeaturesetEnabled)("studies_symbol_search_spread_operators")})},disabled:d,className:r()(m,(0,l.isFeaturesetEnabled)("uppercase_instrument_names")&&y.uppercase,h&&y.hasTooltip)}),f&&o.createElement(I,{disabled:v===T,onClick:D}))}function D(e){const{propType:t,properties:n,id:a,title:r="",solutionId:s}=e.definition,l=n[t],c=l.value()||"";return o.createElement(v.CommonSection,{id:a,title:r,solutionId:s},o.createElement(g.CellWrap,null,o.createElement(T,{symbol:(0,i.ensureDefined)(c),defVal:"",onSymbolChanged:e=>{l.setValue(e)},isResetAble:e.isResetAble})))}},45267:(e,t,n)=>{"use strict";n.d(t,{showSymbolSearchItemsDialog:()=>l});var o=n(79474),a=n(16780),r=n(84688),s=n(72101),i=n(64483);function l(e){const{symbolTypeFilter:t,initialMode:n="symbolSearch",autofocus:l=!0,defaultValue:c,showSpreadActions:u,selectSearchOnInit:d,onSearchComplete:p,dialogTitle:m,placeholder:h,fullscreen:f,initialScreen:b,wrapper:v,dialog:g,contentItem:C,onClose:E,onOpen:y,footer:S,symbolTypes:x,searchInput:w,emptyState:_,hideMarkedListFlag:I,dialogWidth:N="auto",manager:k,shouldReturnFocus:T,onSymbolFiltersParamsChange:D,onEmptyResults:O,customSearchSymbols:R,enableOptionsChain:P,disableRecents:B,overrideQueryParams:M,hiddenFilterIds:L,showRecents:A,searchInitiationPoint:F,selectedSymbolSettingsKey:W,filterValuesSettingsKey:V}=e;if(r.dialogsOpenerManager.isOpened("SymbolSearch")||r.dialogsOpenerManager.isOpened("ChangeIntervalDialog"))return;const z=document.createElement("div"),U=o.createElement(a.SlotContext.Provider,{value:k??null},o.createElement(s.SymbolSearchItemsDialog,{symbolTypeFilter:t,onClose:q,initialMode:n,defaultValue:c,showSpreadActions:u,hideMarkedListFlag:I,selectSearchOnInit:d,onSearchComplete:p,dialogTitle:m,placeholder:h,fullscreen:f,
|
||||||
|
initialScreen:b,wrapper:v,dialog:g,contentItem:C,footer:S,symbolTypes:x,searchInput:w,emptyState:_,autofocus:l,dialogWidth:N,shouldReturnFocus:T,onSymbolFiltersParamsChange:D,onEmptyResults:O,customSearchSymbols:R,enableOptionsChain:P,disableRecents:B,overrideQueryParams:M,hiddenFilterIds:L,showRecents:A,searchInitiationPoint:F,selectedSymbolSettingsKey:W,filterValuesSettingsKey:V})),H=(0,i.createReactRoot)(U,z);function q(){H.unmount(),r.dialogsOpenerManager.setAsClosed("SymbolSearch"),E&&E()}return r.dialogsOpenerManager.setAsOpened("SymbolSearch"),y&&y(),{close:q}}},1556:(e,t,n)=>{"use strict";n.d(t,{useDefinitionProperty:()=>r});var o=n(79474),a=n(42532);const r=e=>{const t="property"in e?e.property:void 0,n="defaultValue"in e?e.defaultValue:e.property.value(),[r,s]=(0,o.useState)(t?t.value():n);(0,o.useEffect)((()=>{if(t){const n={};return s(t.value()),t.subscribe(n,(t=>{const n=t.value();e.handler&&e.handler(n),s(n)})),()=>{t.unsubscribeAll(n)}}return()=>{}}),[t]);return[r,e=>{if(void 0!==t){const n=t.value();a.logger.logNormal(`Changing property value from "${n}" to "${e}"`),t.setValue(e)}}]}},46224:(e,t,n)=>{"use strict";n.d(t,{CellWrap:()=>i});var o=n(79474),a=n(14487),r=n.n(a),s=n(69999);function i(e){return o.createElement("div",{className:r()(s.wrap,e.className)},e.children)}},9779:(e,t,n)=>{"use strict";n.d(t,{CheckableTitle:()=>c});var o=n(79474),a=n(69144),r=n(1556);function s(e){const{property:t,...n}=e,[s,i]=(0,r.useDefinitionProperty)({property:t});return o.createElement(a.Checkbox,{...n,name:"toggle-enabled",checked:s,onChange:function(){i("mixed"===s||!s)}})}var i=n(46224),l=n(6055);function c(e){const{property:t,disabled:n,title:a,className:r,name:c}=e,u=o.createElement("span",{className:l.title},a);return o.createElement(i.CellWrap,{className:r},t?o.createElement(s,{checked:!1,name:c,className:l.checkbox,property:t,disabled:n,label:u,labelAlignBaseline:!0}):u)}},67328:(e,t,n)=>{"use strict";n.d(t,{CommonSection:()=>s});var o=n(79474),a=(n(90353),n(20819)),r=n(9779);n(57314),n(90632),n(69451);function s(e){const{id:t,offset:n,disabled:s,checked:i,title:l,children:c,solutionId:u,infoTooltip:d,dialogContent:p}=e;return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{placement:"first",verticalAlign:"adaptive",offset:n,"data-qa-id":`property-dialog-item ${t}`,colSpan:Boolean(c)?void 0:2,checkableTitle:!0},o.createElement(r.CheckableTitle,{name:`is-enabled-${t}`,title:l,disabled:s,property:i,dialogContent:p}),u&&!Boolean(c)&&!1,!1,d&&!Boolean(c)&&!1),Boolean(c)&&o.createElement(a.PropertyTable.Cell,{placement:"last","data-qa-id":`property-dialog-item ${t}`},c,u&&!1,d&&!1))}},83186:(e,t,n)=>{"use strict";n.d(t,{GroupTitleSection:()=>l});var o=n(79474),a=n(20819),r=n(9779),s=n(14487),i=n(98363);function l(e){return o.createElement(a.PropertyTable.Row,null,o.createElement(a.PropertyTable.Cell,{className:s(i.titleWrap,e.rowClassName),placement:"first",verticalAlign:"adaptive",colSpan:2,"data-qa-id":`property-dialog-item ${e.name}`,checkableTitle:!0
|
||||||
|
},o.createElement(r.CheckableTitle,{title:e.title,name:`is-enabled-${e.name}`,className:i.title})))}},42532:(e,t,n)=>{"use strict";n.d(t,{logger:()=>o});const o=(0,n(73775).getLogger)("Platform.GUI.PropertyDefinitionTrace")},74871:(e,t,n)=>{"use strict";n.d(t,{ColorPicker:()=>U});var o=n(79474),a=n(14487),r=n.n(a),s=n(91599),i=n(26490),l=n(98862),c=n(55482),u=n(85842),d=n(45958),p=n(29344),m=n(1642),h=n(22057),f=n(21404),b=n(62494),v=n(6273);const g=4;function C(e){const{color:t,selected:r,onSelect:i,onSwatchRemove:l}=e,[c,C]=(0,o.useState)(!1),[E,y]=(0,f.useRovingTabindexElement)(null),S=Boolean(l)&&!d.CheckMobile.any();return o.createElement(o.Fragment,null,o.createElement("button",{ref:E,style:t?{color:t}:void 0,className:a(v.swatch,c&&v.hover,r&&v.selected,!t&&v.empty,String(t).toLowerCase()===h.white&&v.white),onClick:function(){i(t)},onContextMenu:S?x:void 0,tabIndex:y,"data-role":"swatch"}),S&&o.createElement(p.PopupMenu,{isOpened:c,onClose:x,position:function(){const e=(0,u.ensureNotNull)(E.current).getBoundingClientRect();return{x:e.left,y:e.top+e.height+g}},onClickOutside:x},o.createElement(m.PopupMenuItem,{className:v.contextItem,label:s.t(null,void 0,n(82153)),icon:b,onClick:function(){x(),(0,u.ensureDefined)(l)()},dontClosePopup:!0})));function x(){C(!c)}}const E=10;function y(e){const{colors:t,color:n,children:a,onSelect:r,onRemoveCustomColor:s}=e;if(!t)return null;const i=n?(0,c.parseRgb)(String(n)):void 0,u=(0,l.default)(t,E);return o.createElement("div",{className:v.swatches},u.map(((e,t)=>o.createElement("div",{className:v.row,"data-role":"row",key:t},e.map(((e,n)=>o.createElement(C,{key:String(e)+n,color:e,selected:i&&(0,c.areEqualRgb)(i,(0,c.parseRgb)(String(e))),onSelect:d,onSwatchRemove:s?()=>function(e,t){const n=e*E+t;s?.(n)}(t,n):void 0})))))),a);function d(e){r&&r(e)}}var S=n(71691),x=n(12725);function w(e){const t=`Invalid RGB color: ${e}`;if(null===e)throw new Error(t);const n=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i);if(null===n)throw new Error(t);const[,o,a,r]=n;if(!o||!a||!r)throw new Error(t);const s=parseInt(o,16)/255,i=parseInt(a,16)/255,l=parseInt(r,16)/255,c=Math.max(s,i,l),u=Math.min(s,i,l);let d;const p=c,m=c-u,h=0===c?0:m/c;if(c===u)d=0;else{switch(c){case s:d=(i-l)/m+(i<l?6:0);break;case i:d=(l-s)/m+2;break;case l:d=(s-i)/m+4;break;default:d=0}d/=6}return{h:d,s:h,v:p}}var _=n(89315),I=n(23351),N=n(85728),k=n(6921);const T=[37,39,38,40],D=.01;class O extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{h:t},onChange:n}=this.props;if(!n)return;const o=(0,u.ensureNotNull)(this._container).getBoundingClientRect(),a=e.clientX-o.left,r=e.clientY-o.top;n({h:t,s:(0,N.clamp)(a/o.width,0,1),v:(0,N.clamp)(1-r/o.height,0,1)})},this._handleKeyDown=e=>{const{hsv:{h:t,s:n,v:o},onChange:a}=this.props,r=(0,I.hashFromEvent)(e);if(!a||!T.includes(r))return;if(37===r||39===r){return void a({h:t,s:(0,N.clamp)(37===r?n-D:n+D,0,1),v:o})}a({h:t,s:n,v:(0,N.clamp)(40===r?o-D:o+D,0,1)})},
|
||||||
|
this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,_.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t,s:n,v:a}}=this.props,s=`hsl(${360*t}, 100%, 50%)`;return o.createElement("div",{tabIndex:0,className:r()(k.accessible,e),onKeyDown:this._handleKeyDown},o.createElement("div",{className:k.saturation,style:{backgroundColor:s},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:k.pointer,style:{left:100*n+"%",top:100*(1-a)+"%"}})))}}var R=n(79819);class P extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._refContainer=e=>{this._container=e},this._handlePosition=e=>{const{hsv:{s:t,v:n},onChange:o}=this.props;if(!o)return;const a=(0,u.ensureNotNull)(this._container).getBoundingClientRect(),r=e.clientY-a.top;o({h:(0,N.clamp)(r/a.height,0,1),s:t,v:n})},this._handleKeyDown=e=>{const{hsv:{h:t,s:n,v:o},onChange:a}=this.props,r=(0,I.hashFromEvent)(e);if(!a||38!==r&&40!==r)return;a({h:(0,N.clamp)(38===r?t-.01:t+.01,0,1),s:n,v:o})},this._mouseDown=e=>{window.addEventListener("mouseup",this._mouseUp),window.addEventListener("mousemove",this._mouseMove)},this._mouseUp=e=>{window.removeEventListener("mousemove",this._mouseMove),window.removeEventListener("mouseup",this._mouseUp),this._handlePosition(e)},this._mouseMove=(0,_.default)(this._handlePosition,100),this._handleTouch=e=>{this._handlePosition(e.nativeEvent.touches[0])}}render(){const{className:e,hsv:{h:t}}=this.props;return o.createElement("div",{className:r()(R.hue,R.accessible,e),tabIndex:0,onKeyDown:this._handleKeyDown},o.createElement("div",{className:R.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},o.createElement("div",{className:R.pointer,style:{top:100*t+"%"}})))}}var B=n(45759);const M="#000000",L=s.t(null,{context:"Color Picker"},n(3478));class A extends o.PureComponent{constructor(e){super(e),this._inputRef=o.createRef(),this._handleHSV=e=>{const t=function(e){const{h:t,s:n,v:o}=e;let a,r,s;const i=Math.floor(6*t),l=6*t-i,c=o*(1-n),u=o*(1-l*n),d=o*(1-(1-l)*n);switch(i%6){case 0:a=o,r=d,s=c;break;case 1:a=u,r=o,s=c;break;case 2:a=c,r=o,s=d;break;case 3:a=c,r=u,s=o;break;case 4:a=d,r=c,s=o;break;case 5:a=o,r=c,s=u;break;default:a=0,r=0,s=0}return"#"+[255*a,255*r,255*s].map((e=>("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1"))).join("")}(e)||M;this.setState({color:t,inputColor:F(t),hsv:e}),this.props.onSelect(t)},this._handleInput=e=>{const t=F(e.currentTarget.value);try{const e=w(t),n=`#${t}`;this.setState({color:n,inputColor:t,hsv:e}),this.props.onSelect(n)}catch(e){this.setState({inputColor:t})}},
|
||||||
|
this._handleAddColor=()=>this.props.onAdd(this.state.color);const t=e.color||M;this.state={color:t,inputColor:F(t),hsv:w(t)}}componentDidMount(){d.CheckMobile.any()||this._inputRef.current?.focus()}render(){const{color:e,hsv:t,inputColor:n}=this.state;return o.createElement("div",{className:B.container},o.createElement("div",{className:B.form},o.createElement("div",{className:r()(B.swatch,String(e).toLowerCase()===h.white&&B.white),style:{backgroundColor:e}}),o.createElement("div",{className:B.inputWrap},o.createElement("span",{className:B.inputHash},"#"),o.createElement("input",{ref:this._inputRef,type:"text",className:B.input,value:n,onChange:this._handleInput})),o.createElement("div",{className:B.buttonWrap},o.createElement(x.Button,{size:"s",onClick:this._handleAddColor},L))),o.createElement("div",{className:B.hueSaturationWrap},o.createElement(O,{className:B.saturation,hsv:t,onChange:this._handleHSV}),o.createElement(P,{className:B.hue,hsv:t,onChange:this._handleHSV})))}}function F(e){return e.replace(/^#/,"")}var W=n(40649);const V=s.t(null,{context:"Color Picker"},n(6114)),z=s.t(null,{context:"Color Picker"},n(77309));function U(e){const{color:t,opacity:n,selectCustom:a,selectOpacity:s,customColors:l,onRemoveCustomColor:c,onToggleCustom:u,onOpacityChange:d,menu:p}=e,[m,f]=(0,o.useState)(!1),b="number"==typeof n?n:1,[v,g]=(0,i.useRowsNavigation)();return(0,o.useLayoutEffect)((()=>{p&&p.update()}),[s,p]),m?o.createElement(A,{color:t,onSelect:C,onAdd:function(t){f(!1),u?.(!1);const{onAddColor:n}=e;n&&n(t)}}):o.createElement("div",{className:W.container},o.createElement("div",{ref:v,onKeyDown:g},o.createElement(y,{colors:h.basic,color:t,onSelect:C}),o.createElement(y,{colors:h.extended,color:t,onSelect:C}),o.createElement("div",{className:W.separator}),o.createElement(y,{colors:l,color:t,onSelect:C,onRemoveCustomColor:c},a&&o.createElement(o.Fragment,null,l?.length?o.createElement("button",{title:V,onClick:E,className:r()(W.customButton,W.accessible,"apply-common-tooltip"),tabIndex:-1}):o.createElement("div",{"data-role":"row"},o.createElement("button",{title:V,onClick:E,className:r()(W.customButton,W.accessible,"apply-common-tooltip"),tabIndex:-1}))))),s&&o.createElement(o.Fragment,null,o.createElement("div",{className:W.sectionTitle},z),o.createElement(S.Opacity,{color:t,opacity:b,onChange:function(e){d&&d(e)}})));function C(t){const{onColorChange:n}=e;n&&n(t,m)}function E(e){f(!0),u?.(!0)}}},71691:(e,t,n)=>{"use strict";n.d(t,{Opacity:()=>c});var o=n(79474),a=n(14487),r=n(85842),s=n(85728),i=n(23351),l=n(55392);class c extends o.PureComponent{constructor(e){super(e),this._container=null,this._pointer=null,this._raf=null,this._refContainer=e=>{this._container=e},this._refPointer=e=>{this._pointer=e},this._handlePosition=e=>{null===this._raf&&(this._raf=requestAnimationFrame((()=>{const t=(0,r.ensureNotNull)(this._container),n=(0,r.ensureNotNull)(this._pointer),o=t.getBoundingClientRect(),a=n.offsetWidth,i=e.clientX-a/2-o.left,l=(0,s.clamp)(i/(o.width-a),0,1);this.setState({
|
||||||
|
inputOpacity:Math.round(100*l).toString()}),this.props.onChange(l),this._raf=null})))},this._onSliderClick=e=>{this._handlePosition(e.nativeEvent),this._dragSubscribe()},this._mouseUp=e=>{this.setState({isPointerDragged:!1}),this._dragUnsubscribe(),this._handlePosition(e)},this._mouseMove=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e)},this._onTouchStart=e=>{this._handlePosition(e.nativeEvent.touches[0])},this._handleTouch=e=>{this.setState({isPointerDragged:!0}),this._handlePosition(e.nativeEvent.touches[0])},this._handleTouchEnd=()=>{this.setState({isPointerDragged:!1})},this._handleInput=e=>{const t=e.currentTarget.value,n=Number(t)/100;this.setState({inputOpacity:t}),Number.isNaN(n)||n>1||this.props.onChange(n)},this._handleKeyDown=e=>{const t=(0,i.hashFromEvent)(e);if(37!==t&&39!==t)return;e.preventDefault();const n=Number(this.state.inputOpacity);37===t&&0!==n&&this._changeOpacity(n-1),39===t&&100!==n&&this._changeOpacity(n+1)},this.state={inputOpacity:Math.round(100*e.opacity).toString(),isPointerDragged:!1}}componentWillUnmount(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()}render(){const{color:e,opacity:t,hideInput:n,disabled:r}=this.props,{inputOpacity:s,isPointerDragged:i}=this.state,c={color:e||void 0};return o.createElement("div",{className:l.opacity},o.createElement("div",{className:a(l.opacitySlider,l.accessible),style:c,tabIndex:r?-1:0,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd,onKeyDown:this._handleKeyDown,"aria-disabled":r},o.createElement("div",{className:l.opacitySliderGradient,style:{backgroundImage:`linear-gradient(90deg, transparent, ${e})`}}),o.createElement("div",{className:l.opacityPointerWrap},o.createElement("div",{className:a(l.pointer,i&&l.dragged),style:{left:100*t+"%"},ref:this._refPointer}))),!n&&o.createElement("div",{className:l.opacityInputWrap},o.createElement("input",{type:"text",className:l.opacityInput,value:s,onChange:this._handleInput}),o.createElement("span",{className:l.opacityInputPercent},"%")))}_dragSubscribe(){const e=(0,r.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))}_dragUnsubscribe(){const e=(0,r.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))}_changeOpacity(e){this.setState({inputOpacity:e.toString()}),this.props.onChange(e/100)}}},22057:(e,t,n)=>{"use strict";n.d(t,{basic:()=>i,extended:()=>c,white:()=>a});var o=n(11284);const a=o.colorsPalette["color-white"],r=["ripe-red","tan-orange","banana-yellow","iguana-green","minty-green","sky-blue","tv-blue","deep-blue","grapes-purple","berry-pink"],s=[200,300,400,500,600,700,800,900].map((e=>`color-cold-gray-${e}`));s.unshift("color-white"),s.push("color-black"),r.forEach((e=>{s.push(`color-${e}-500`)}));const i=s.map((e=>o.colorsPalette[e])),l=[]
|
||||||
|
;[100,200,300,400,700,900].forEach((e=>{r.forEach((t=>{l.push(`color-${t}-${e}`)}))}));const c=l.map((e=>o.colorsPalette[e]))},92155:(e,t,n)=>{"use strict";n.d(t,{useCustomColors:()=>c});var o=n(79474),a=n(82287),r=n(96375);function s(e,t){(0,o.useEffect)((()=>(r.subscribe(e,t,null),()=>{r.unsubscribe(e,t,null)})),[e,t])}var i,l=n(55482);function c(){const[e,t]=(0,o.useState)((0,a.getJSON)("pickerCustomColors",[]));s("add_new_custom_color",(n=>t(u(n,e)))),s("remove_custom_color",(n=>t(d(n,e))));const n=(0,o.useCallback)((t=>{const n=t?(0,l.parseRgb)(t):null;e.some((e=>null!==e&&null!==n&&(0,l.areEqualRgb)((0,l.parseRgb)(e),n)))||(r.emit("add_new_custom_color",t),(0,a.setJSON)("pickerCustomColors",u(t,e)))}),[e]),i=(0,o.useCallback)((t=>{(t>=0||t<e.length)&&(r.emit("remove_custom_color",t),(0,a.setJSON)("pickerCustomColors",d(t,e)))}),[e]);return[e,n,i]}function u(e,t){const n=t.slice();return n.push(e),n.length>29&&n.shift(),n}function d(e,t){return t.filter(((t,n)=>e!==n))}!function(e){e.SettingsKey="pickerCustomColors",e.GlobalAddEventName="add_new_custom_color",e.GlobalRemoveEventName="remove_custom_color",e[e.MaxColors=29]="MaxColors"}(i||(i={}))},57314:(e,t,n)=>{"use strict";n.d(t,{IconQuestionInformation:()=>O});var o,a=n(79474),r=n(14487),s=n.n(r),i=n(40197),l=n(73457),c=n(20912),u=n.n(c),d=n(45398),p=n.n(d),m=n(10276),h=n.n(m),f=n(1711),b=n.n(f),v=n(75452),g=n.n(v);!function(e){e.Small="small",e.Medium="medium",e.Large="large"}(o||(o={}));const C="small";var E,y;!function(e){e.Default="default",e.Danger="danger",e.Warning="warning",e.Success="success",e.Neutral="neutral",e.NeutralLight="neutral-light"}(E||(E={})),function(e){e.Info="info",e.Question="question",e.Check="check",e.Exclamation="exclamation"}(y||(y={}));const S={info:p(),question:u(),check:h(),exclamation:b()},x=a.forwardRef(((e,t)=>a.createElement("span",{...e,ref:t,className:s()(e.className,g()["no-active-state"])}))),w=a.forwardRef(((e,t)=>{const{icon:n="exclamation",intent:o="default",ariaLabel:r,tooltip:c,className:u,renderComponent:d=x,tabIndex:p=0,size:m=C,onFocus:h,onBlur:f,onClick:b,...v}=e,E=S[n]??n;return a.createElement(d,{className:s()(u,g().iconWrapper,g()[o],g()[m]),title:c,ref:t,tabIndex:p,onFocus:h,onBlur:f,onClick:b,...(0,i.filterDataProps)(v)},a.createElement(l.Icon,{"aria-hidden":!r,"aria-label":r,icon:E,className:g().icon}))}));var _=n(79223),I=n(1324),N=n(49971),k=n.n(N);function T(){document.removeEventListener("scroll",T),document.removeEventListener("touchstart",T),document.removeEventListener("mouseout",T),(0,I.hide)()}const D=e=>{(0,I.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",T),document.addEventListener("touchstart",T),document.addEventListener("mouseout",T)},O=(0,a.forwardRef)(((e,t)=>{const{className:n,onClick:o=D,doNotShowTooltipOnTouch:s,size:i,...l}=e,{tooltip:c,className:u,...d}=(0,_.useTooltip)({tooltip:e.tooltip,doNotShowTooltipOnTouch:!1,showTooltip:I.showOnElement,hideTooltip:I.hide,onClick:o},t);return a.createElement(w,{
|
||||||
|
className:r(n,k()["icon-wrapper"],c&&k()["with-tooltip"],u),tooltip:c,size:i,...l,...d})}));(0,a.forwardRef)(((e,t)=>{const{className:n,href:o,rel:s,target:i,...l}=e,c=(0,a.useMemo)((()=>(0,a.forwardRef)(((e,t)=>a.createElement("a",{href:o,rel:s,target:i,ref:t,...e})))),[o,s,i]);return a.createElement(O,{...l,className:r(n,k()["with-link"]),renderComponent:c,ref:t,doNotShowTooltipOnTouch:!0})})),(0,a.forwardRef)(((e,t)=>{const{className:n,withActiveState:o,...s}=e,i=(0,a.useMemo)((()=>(0,a.forwardRef)(((e,t)=>a.createElement("button",{...e,ref:t,type:"button"})))),[]);return a.createElement(O,{...s,className:r(n,!o&&k()["no-active-state"]),renderComponent:i,ref:t})}))},54466:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>a});var o=n(79474);class a extends o.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addEventListener("change",this._handleChange)}_unsubscribe(e){e.removeEventListener("change",this._handleChange)}}},98124:(e,t,n)=>{"use strict";n.d(t,{MenuContext:()=>o});const o=n(79474).createContext(null)},86738:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_MENU_THEME:()=>b,Menu:()=>g});var o=n(79474),a=n(14487),r=n.n(a),s=n(85842),i=n(85728),l=n(63484),c=n(16780),u=n(11463),d=n(46765),p=n(19960),m=n(78972),h=n(98124),f=n(12139);const b=f;var v;!function(e){e[e.IndentFromWindow=0]="IndentFromWindow"}(v||(v={}));class g extends o.PureComponent{constructor(e){super(e),this._containerRef=null,this._scrollWrapRef=null,this._raf=null,this._scrollRaf=null,this._scrollTimeout=void 0,this._manager=new d.OverlapManager,this._hotkeys=null,this._scroll=0,this._handleContainerRef=e=>{this._containerRef=e,this.props.reference&&("function"==typeof this.props.reference&&this.props.reference(e),"object"==typeof this.props.reference&&(this.props.reference.current=e))},this._handleScrollWrapRef=e=>{this._scrollWrapRef=e,"function"==typeof this.props.scrollWrapReference&&this.props.scrollWrapReference(e),"object"==typeof this.props.scrollWrapReference&&(this.props.scrollWrapReference.current=e)},this._handleCustomRemeasureDelegate=()=>{this._resizeForced(),this._handleMeasure()},this._handleMeasure=({callback:e,forceRecalcPosition:t}={})=>{if(this.state.isMeasureValid&&!t)return;const{position:n}=this.props,o=(0,s.ensureNotNull)(this._containerRef);let a=o.getBoundingClientRect();const r=document.documentElement.clientHeight,l=document.documentElement.clientWidth,c=this.props.closeOnScrollOutsideOffset??0;let u=r-0-c;const d=a.height>u;if(d){(0,s.ensureNotNull)(this._scrollWrapRef).style.overflowY="scroll",a=o.getBoundingClientRect()}
|
||||||
|
const{width:p,height:m}=a,h="function"==typeof n?n({contentWidth:p,contentHeight:m,availableWidth:l,availableHeight:r}):n,f=h?.indentFromWindow?.left??0,b=l-(h.overrideWidth??p)-(h?.indentFromWindow?.right??0),v=(0,i.clamp)(h.x,f,Math.max(f,b)),g=(h?.indentFromWindow?.top??0)+c,C=r-(h.overrideHeight??m)-(h?.indentFromWindow?.bottom??0);let E=(0,i.clamp)(h.y,g,Math.max(g,C));if(h.forbidCorrectYCoord&&E<h.y&&(u-=h.y-E,E=h.y),t&&void 0!==this.props.closeOnScrollOutsideOffset&&h.y<=this.props.closeOnScrollOutsideOffset)return void this._handleGlobalClose(!0);const y=h.overrideHeight??(d?u:void 0);this.setState({appearingMenuHeight:t?this.state.appearingMenuHeight:y,appearingMenuWidth:t?this.state.appearingMenuWidth:h.overrideWidth,appearingPosition:{x:v,y:E},isMeasureValid:!0},(()=>{this.props.doNotRestorePosition||this._restoreScrollPosition(),e&&e()}))},this._restoreScrollPosition=()=>{const e=document.activeElement,t=(0,s.ensureNotNull)(this._containerRef);if(null!==e&&t.contains(e))try{e.scrollIntoView()}catch(e){}else(0,s.ensureNotNull)(this._scrollWrapRef).scrollTop=this._scroll},this._resizeForced=()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0})},this._resize=()=>{null===this._raf&&(this._raf=requestAnimationFrame((()=>{this.setState({appearingMenuHeight:void 0,appearingMenuWidth:void 0,appearingPosition:void 0,isMeasureValid:void 0}),this._raf=null})))},this._handleGlobalClose=e=>{this.props.onClose(e)},this._handleSlot=e=>{this._manager.setContainer(e)},this._handleScroll=()=>{this._scroll=(0,s.ensureNotNull)(this._scrollWrapRef).scrollTop},this._handleScrollOutsideEnd=()=>{clearTimeout(this._scrollTimeout),this._scrollTimeout=setTimeout((()=>{this._handleMeasure({forceRecalcPosition:!0})}),80)},this._handleScrollOutside=e=>{e.target!==this._scrollWrapRef&&(this._handleScrollOutsideEnd(),null===this._scrollRaf&&(this._scrollRaf=requestAnimationFrame((()=>{this._handleMeasure({forceRecalcPosition:!0}),this._scrollRaf=null}))))},this.state={}}componentDidMount(){this._handleMeasure({callback:this.props.onOpen});const{customCloseDelegate:e=u.globalCloseDelegate,customRemeasureDelegate:t}=this.props;e.subscribe(this,this._handleGlobalClose),t?.subscribe(null,this._handleCustomRemeasureDelegate),window.addEventListener("resize",this._resize);const n=null!==this.context;this._hotkeys||n||(this._hotkeys=p.createGroup({desc:"Popup menu"}),this._hotkeys.add({desc:"Close",hotkey:27,handler:()=>{this.props.onKeyboardClose&&this.props.onKeyboardClose(),this._handleGlobalClose()}})),this.props.repositionOnScroll&&window.addEventListener("scroll",this._handleScrollOutside,{capture:!0})}componentDidUpdate(){this._handleMeasure()}componentWillUnmount(){const{customCloseDelegate:e=u.globalCloseDelegate,customRemeasureDelegate:t}=this.props;e.unsubscribe(this,this._handleGlobalClose),t?.unsubscribe(null,this._handleCustomRemeasureDelegate),window.removeEventListener("resize",this._resize),window.removeEventListener("scroll",this._handleScrollOutside,{
|
||||||
|
capture:!0}),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),null!==this._scrollRaf&&(cancelAnimationFrame(this._scrollRaf),this._scrollRaf=null),this._scrollTimeout&&clearTimeout(this._scrollTimeout)}render(){const{id:e,role:t,"aria-label":n,"aria-labelledby":a,"aria-activedescendant":s,"aria-hidden":i,"aria-describedby":u,"aria-invalid":d,children:p,minWidth:b,theme:v=f,className:g,maxHeight:E,onMouseOver:y,onMouseOut:S,onKeyDown:x,onFocus:w,onBlur:_}=this.props,{appearingMenuHeight:I,appearingMenuWidth:N,appearingPosition:k,isMeasureValid:T}=this.state,D={"--ui-kit-menu-max-width":`${k&&k.x}px`,maxWidth:"calc(100vw - var(--ui-kit-menu-max-width) - 6px)"};return o.createElement(h.MenuContext.Provider,{value:this},o.createElement(m.SubmenuHandler,null,o.createElement(c.SlotContext.Provider,{value:this._manager},o.createElement("div",{id:e,role:t,"aria-label":n,"aria-labelledby":a,"aria-activedescendant":s,"aria-hidden":i,"aria-describedby":u,"aria-invalid":d,className:r()(g,v.menuWrap,!T&&v.isMeasuring),style:{height:I,left:k&&k.x,minWidth:b,position:"fixed",top:k&&k.y,width:N,...this.props.limitMaxWidth&&D},"data-name":this.props["data-name"],"data-qa-id":this.props.dataQaId,"data-tooltip-show-on-focus":this.props["data-tooltip-show-on-focus"],ref:this._handleContainerRef,onScrollCapture:this.props.onScroll,onContextMenu:l.preventDefaultForContextMenu,tabIndex:this.props.tabIndex,onMouseOver:y,onMouseOut:S,onKeyDown:x,onFocus:w,onBlur:_},o.createElement("div",{className:r()(v.scrollWrap,!this.props.noMomentumBasedScroll&&v.momentumBased),style:{overflowY:void 0!==I?"scroll":"auto",maxHeight:E},onScrollCapture:this._handleScroll,ref:this._handleScrollWrapRef},o.createElement(C,{className:v.menuBox},p)))),o.createElement(c.Slot,{reference:this._handleSlot})))}update(e){e?this._resizeForced():this._resize()}focus(e){this._containerRef?.focus(e)}blur(){this._containerRef?.blur()}}function C(e){const t=(0,s.ensureNotNull)((0,o.useContext)(m.SubmenuContext)),n=o.useRef(null);return o.createElement("div",{ref:n,className:e.className,onMouseOver:function(e){if(!(null!==t.current&&e.target instanceof Node&&(o=e.target,n.current?.contains(o))))return;var o;t.isSubmenuNode(e.target)||t.setCurrent(null)},"data-qa-id":"menu-inner"},e.children)}g.contextType=m.SubmenuContext},11508:(e,t,n)=>{"use strict";n.d(t,{CloseDelegateContext:()=>r});var o=n(79474),a=n(11463);const r=o.createContext(a.globalCloseDelegate)},64888:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>o.Portal,PortalContext:()=>o.PortalContext});var o=n(52885)},16780:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>o.Slot,SlotContext:()=>o.SlotContext});var o=n(99286)},15620:e=>{e.exports={wrapper:"wrapper-vJKneA8J"}},29808:e=>{e.exports={input:"input-Lah5SRBd",symbol:"symbol-Lah5SRBd",checkbox:"checkbox-Lah5SRBd",label:"label-Lah5SRBd",dropdownMenu:"dropdownMenu-Lah5SRBd",sessionStart:"sessionStart-Lah5SRBd",sessionEnd:"sessionEnd-Lah5SRBd",sessionInputContainer:"sessionInputContainer-Lah5SRBd",
|
||||||
|
sessionDash:"sessionDash-Lah5SRBd",inputGroup:"inputGroup-Lah5SRBd",textarea:"textarea-Lah5SRBd",inlineGroup:"inlineGroup-Lah5SRBd",hasTooltip:"hasTooltip-Lah5SRBd",popoverHeight:"popoverHeight-Lah5SRBd",containerDateTimeInput:"containerDateTimeInput-Lah5SRBd",smallStyleControl:"smallStyleControl-Lah5SRBd",datePickerWrapper:"datePickerWrapper-Lah5SRBd",timePickerWrapper:"timePickerWrapper-Lah5SRBd"}},15593:e=>{e.exports={checkbox:"checkbox-z5Y4Tf9v",label:"label-z5Y4Tf9v"}},62813:e=>{e.exports={titleWrap:"titleWrap-ZxcKfzQ_",groupFooter:"groupFooter-ZxcKfzQ_"}},99145:e=>{e.exports={inlineRow:"inlineRow-uuCuCMOL"}},17664:e=>{e.exports={inputGroup:"inputGroup-R63thVCF",inlineGroup:"inlineGroup-R63thVCF",sessionStart:"sessionStart-R63thVCF"}},51814:e=>{e.exports={wrap:"wrap-gMr4O67p",labelWrap:"labelWrap-gMr4O67p",label:"label-gMr4O67p",hasTooltip:"hasTooltip-gMr4O67p"}},27639:(e,t,n)=>{"use strict";n.d(t,{debounced:()=>r});var o=n(79474);const a={blur:0,commit:0,change:1/0};function r(e,t=a){return class extends o.PureComponent{constructor(e){super(e),this._onChange=(e,n,o)=>{const a=t.change;a?(clearTimeout(this._timeout),this.setState({value:e},(()=>{a!==1/0&&(this._timeout=setTimeout((()=>this._flush()),a))}))):this._flush(e)},this._onBlur=()=>{this._debounce(t.blur);const{onBlur:e}=this.props;e&&e()},this._onKeyDown=e=>{13===e.keyCode&&this._debounce(t.commit)},this.state={prevValue:e.value,value:e.value}}componentWillUnmount(){this._flush()}render(){const{value:t}=this.state;return o.createElement(e,{...this.props,value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown})}static getDerivedStateFromProps(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}}_debounce(e){e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout((()=>this._flush()),e))):this.setState((e=>{this._flush(e.value)}))}_flush(e){const{onChange:t}=this.props,{prevValue:n,value:o}=this.state;clearTimeout(this._timeout);const a=void 0!==e?e:o;void 0!==a&&a!==n&&t(a)}}}},22725:(e,t,n)=>{"use strict";n.d(t,{IconGroupWrapper:()=>r});var o=n(79474),a=n(15620);function r(e){const{children:t}=e;return o.createElement("div",{className:a.wrapper},t)}},80696:(e,t,n)=>{"use strict";n.d(t,{InputTooltip:()=>r});var o=n(79474),a=n(57314);function r(e){const{className:t,title:n}=e;return o.createElement(a.IconQuestionInformation,{icon:"info",className:t,ariaLabel:n,tooltip:n,tabIndex:-1})}},75753:(e,t,n)=>{"use strict";n.d(t,{BoolInput:()=>u,BoolInputComponent:()=>c});var o=n(79474),a=n(69144),r=n(14487),s=n.n(r),i=n(25659),l=n(29808);const c=(0,o.memo)((e=>{const{input:{defval:t},value:n,disabled:r,label:i,hasTooltip:c,onChange:u,onClick:d}=e,p=void 0===n?t:n,m=(0,o.useCallback)((()=>{d?.(),u(!n)}),[u,n]);return o.createElement(a.Checkbox,{className:s()(l.checkbox,c&&l.hasTooltip),disabled:r,checked:p,onChange:m,label:o.createElement("span",{className:l.label},i),labelAlignBaseline:!0})}));c.displayName="BoolInputComponent";const u=(0,i.bind)(c)},29497:(e,t,n)=>{"use strict";n.d(t,{FloatInput:()=>p,
|
||||||
|
FloatInputComponent:()=>d});var o=n(79474),a=n(14487),r=n.n(a),s=n(25659),i=n(27639),l=n(39002),c=n(29808);const u=(0,o.memo)((e=>{const{hasTooltip:t}=e;return o.createElement(l.NumericInput,{...e,className:r()(c.input,t&&c.hasTooltip),stretch:!1})}));u.displayName="FloatInputPureComponent";const d=(0,i.debounced)(u,{change:1/0,commit:0,blur:0}),p=(0,s.bind)(d)},97101:(e,t,n)=>{"use strict";n.d(t,{IntegerInput:()=>p,IntegerInputComponent:()=>d});var o=n(79474),a=n(14487),r=n.n(a),s=n(25659),i=n(27639),l=n(39002),c=n(29808);const u=(0,o.memo)((e=>{const{hasTooltip:t}=e;return o.createElement(l.NumericInput,{...e,mode:"integer",className:r()(c.input,t&&c.hasTooltip),stretch:!1})}));u.displayName="IntegerInputComponent";const d=(0,i.debounced)(u,{change:1/0,commit:0,blur:0}),p=(0,s.bind)(d)},39002:(e,t,n)=>{"use strict";n.d(t,{NumericInput:()=>x});var o=n(79474),a=n(85842),r=n(91599),s=n(12745),i=n(45958),l=n(72896),c=n(47470),u=n(85728),d=n(81458);const p=9e15;function m(e){const{value:t,min:o=-1/0,max:a=p,boundariesErrorMessages:s}=e,i=function(e,t,n){const o=e>=t,a=e<=n;return{passMin:o,passMax:a,pass:o&&a,clamped:(0,u.clamp)(e,t,n)}}(t,o,a);let l;return i.passMax||(l=s?.greaterThanMax??r.t(null,{replace:{max:String(a)}},n(4608))),i.passMin||(l=s?.lessThanMin??r.t(null,{replace:{min:String(o)}},n(4551))),{isPassed:i.pass,msg:l,clampedValue:i.clamped}}var h,f;!function(e){e.Integer="integer",e.Float="float",e.Fractional="fractional"}(h||(h={})),function(e){e.Input="input",e.Step="step"}(f||(f={}));const b=new c.NumericFormatter({ignoreLocaleNumberFormat:!0,noExponentialForm:!0}),v=/^[-−]?[0-9]*$/,g=/^([-−]?([0-9]+\.?[0-9]*)|([-−]?[0-9]*))$/,C=/^([-−]?(?:[0-9]+(?:'[0-9]+){0,2}|[0-9]+(?:'[0-9]+){0,1}'))?$/;class E extends o.PureComponent{constructor(e){super(e),this._onFocus=e=>{this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus(e)},this._onBlur=e=>{this.setState({focused:!1}),!1!==this.props.shouldApplyValueOnBlur&&(this.setState({displayValue:y(this.props,this.props.value)}),this.props.errorHandler&&this.props.errorHandler(!1)),this.props.onBlur&&this.props.onBlur(e)},this._onValueChange=e=>{const t=void 0!==this._replaceDivider?this._replaceDivider(e.target.value,"fractional"===this.props.mode):e.target.value,n=(0,d.stripLTRMarks)(t);if(void 0!==this.props.onEmptyString&&""===t&&this.props.onEmptyString(),"fractional"===this.props.mode&&!C.test(n))return;if("float"===this.props.mode&&!g.test(n))return;if("integer"===this.props.mode&&!v.test(n))return;const o=S(t,this.props.formatter),a=o.res?this._checkValueBoundaries(o.value):{isPassed:!1,msg:void 0},r=o.res&&!a.isPassed,s=o.res&&o.suggest&&!this.state.focused?o.suggest:t,i=r&&a.msg?a.msg:this._errMsg;this.setState({displayValue:s,errorMsg:i}),o.res&&a.isPassed&&this.props.onValueChange(o.value,"input"),this.props.errorHandler&&this.props.errorHandler(!o.res||r,i)},this._onValueByStepChange=e=>{const{roundByStep:t=!0,step:n=1,uiStep:o,min:a=n,formatter:r}=this.props,i=S(this.state.displayValue,r),l=o??n;let c=n;if(i.res){
|
||||||
|
const o=new s.Big(i.value),r=o.minus(a).mod(n);let u=o.plus(e*l);!r.eq(0)&&t&&(u=u.plus((e>0?0:1)*l).minus(r)),c=u.toNumber()}const{isPassed:u,clampedValue:d}=this._checkValueBoundaries(c);c=u?c:d,this.setState({displayValue:y(this.props,c)}),this.props.onValueChange(c,"step"),this.props.errorHandler&&this.props.errorHandler(!1)};const{value:t}=e;this._errMsg=r.t(null,void 0,n(8863));const o=y(e,t);this.state={value:t,displayValue:o,focused:!1,errorMsg:this._errMsg},this.props.onDisplayValueChange?.(o),this._replaceDivider=e.replaceDivider}render(){const{inputMode:e,errorMessage:t,autoSelectOnFocus:n,...a}=this.props;return o.createElement(l.NumberInputView,{...a,inputMode:e??this.state.inputMode,value:(0,d.startWithLTR)((0,d.stripLTRMarks)(this.state.displayValue)),errorMessage:t||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,onFocus:this._onFocus,onBlur:this._onBlur,autoSelectOnFocus:void 0!==n?n:!i.CheckMobile.any(),onInputControlClick:this.props.onInputControlClick})}componentDidMount(){this.setState({inputMode:i.CheckMobile.iOS()?void 0:"numeric"})}componentDidUpdate(e,t){this.props.shouldApplyValueOnFormatterChange&&e.formatter!==this.props.formatter&&this.setState({displayValue:y(this.props,this.props.value)}),t.displayValue!==this.state.displayValue&&this.props.onDisplayValueChange?.(this.state.displayValue)}getClampedValue(){const{min:e=-1/0,max:t=p}=this.props,n=S(this.state.displayValue,this.props.formatter);return n.res?(0,u.clamp)(n.value,e,t):null}static getDerivedStateFromProps(e,t){const{alwaysUpdateValueFromProps:n,value:o,forceApplyValueFromProps:a}=e;return t.focused&&!n||t.value===o&&!a?null:{value:o,displayValue:y(e,o)}}_checkValueBoundaries(e){const{min:t,max:n,boundariesErrorMessages:o}=this.props;return m({value:e,min:t,max:n,boundariesErrorMessages:o})}}function y(e,t){const{useFormatter:n=!0,formatter:o,mode:a}=e;return n&&"integer"!==a?function(e,t=b){return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return c.NumericFormatter.formatNoE(e)}(t)}function S(e,t=b){return t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}class x extends o.PureComponent{constructor(){super(...arguments),this._container=null,this._handleContainerRef=e=>this._container=e,this._onChange=(e,t)=>{const{onChange:n,onBlur:o}=this.props;n(e),"step"===t&&o&&o()},this._onBlur=e=>{const{onBlur:t}=this.props;if(t){const n=(0,a.ensureNotNull)(this._container);n.contains(document.activeElement)||n.contains(e.relatedTarget)||t()}}}render(){const{input:{defval:e,min:t,max:n,step:a},value:r,disabled:s,onKeyDown:i,className:l,mode:c,stretch:u}=this.props;return o.createElement(E,{className:l,value:Number(void 0===r?e:r),min:t,max:n,step:a,mode:c,onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:i,disabled:s,containerReference:this._handleContainerRef,fontSizeStyle:"medium",roundByStep:!1,stretch:u})}}},27933:(e,t,n)=>{"use strict";n.d(t,{SymbolInput:()=>i,SymbolInputComponent:()=>s});var o=n(79474),a=n(39944),r=n(25659)
|
||||||
|
;const s=(0,o.memo)((e=>{const{value:t,input:{defval:n},onChange:r,disabled:s,hasTooltip:i,isResetSymbolAble:l}=e;return o.createElement(a.SymbolInputsButton,{symbol:t||n||"",defVal:n||"",onSymbolChanged:r,disabled:s,hasTooltip:i,isResetAble:l})}));s.displayName="SymbolInputComponent";const i=(0,r.bind)(s)},59346:(e,t,n)=>{"use strict";n.d(t,{InputRow:()=>ln});var o=n(79474),a=n(85842),r=n(82372),s=n(20819),i=n(22725),l=n(80696),c=n(16570),u=n(75753),d=n(14487),p=n.n(d),m=n(34720),h=n(24180),f=n(32438),b=n(10530),v=n(28187),g=n(25659),C=n(29808);function E(e){return 60*new Date(e).getTimezoneOffset()*1e3}function y(e,t,n){return e.valueOf()-t-E(n)}const S=(0,o.memo)((e=>{const{tzName:t,value:n,onChange:a,input:{defval:r},hasTooltip:s,disabled:i}=e,l=(0,o.useMemo)((()=>Number(n??r)),[n,r]),c=(0,o.useMemo)((()=>(0,v.getChartTimezoneOffsetMs)(l,t)),[l,t]),u=(0,o.useMemo)((()=>{const e=new Date(l+c+E(l));return e.setSeconds(0),e}),[l,c]),d=(0,o.useMemo)((()=>(0,f.twoDigitsFormat)(u.getHours())+":"+(0,f.twoDigitsFormat)(u.getMinutes())),[u]),g=(0,o.useCallback)((e=>{const[t,n]=e.split(":"),o=new Date(u);o.setHours(Number(t)),o.setMinutes(Number(n)),a(y(o,c,l))}),[c,l,a]),S=(0,o.useCallback)((e=>{if(null===e)return;const t=new Date(u);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),a(y(t,c,l))}),[c,l,a]);return o.createElement("div",{className:p()(C.containerDateTimeInput,s&&C.hasTooltip)},o.createElement("div",{className:C.datePickerWrapper},o.createElement(m.DatePicker,{InputComponent:h.DateInput,initial:u,onPick:S,disabled:i,revertInvalidData:!0})),o.createElement("div",{className:C.timePickerWrapper},o.createElement(b.TimeInput,{value:d,onChange:g,disabled:i})))}));S.displayName="DateTimeInputComponent";const x=(0,g.bind)(S);var w,_,I=n(29497),N=n(97101),k=n(97792),T=n(77555),D=n(47778),O=n(91965),R=n(40197),P=n(96278),B=n.n(P);function M(e){const{role:t,startSlot:n,children:a,isOpen:r,onClick:s,onKeyDown:i,id:l,reference:c,ariaActivedescendant:u,stretch:d,buttonClassname:m,disabled:h,ariaHaspopup:f,ariaControls:b,ariaLabelledby:v,size:g="medium",intent:C="default",tabIndex:E,...y}=e,S=(0,R.filterDataProps)(y);return o.createElement("button",{type:"button",ref:c,role:t,"aria-controls":b,"aria-expanded":r,"aria-haspopup":f,"aria-activedescendant":u,"aria-disabled":h,"aria-labelledby":v,tabIndex:void 0!==E?E:h?-1:0,onClick:h?void 0:s,onKeyDown:h?void 0:i,id:l,className:p()(B().button,m,h&&B().disabled,d&&B().stretch,g&&B()[g],B()[C],r&&B().open),...S},o.createElement("div",{className:B().content},n&&o.createElement("div",{className:B().startSlot},n),a&&o.createElement("div",{className:B().middleSlot},a),o.createElement(O.Caret,{isDropped:r,className:B().caret,disabled:!0})))}!function(e){e.Default="default",e.Danger="danger",e.Warning="warning"}(w||(w={})),function(e){e.XSmall="xsmall",e.Small="small",e.Medium="medium",e.Large="large"}(_||(_={}));var L=n(59794),A=n(55768),F=n.n(A);function W(e){const{isGrouped:t,cellState:n}=(0,o.useContext)(L.ControlGroupContext)
|
||||||
|
;return t?o.createElement("div",{className:p()(F().dropdownButton,n.isTop&&F().top,n.isLeft&&F().left,n.isBottom&&F().bottom,n.isRight&&F().right)},o.createElement(M,{...e,stretch:e.stretch??!0})):o.createElement(M,{...e})}var V=n(73064),z=n(70373),U=n(7528),H=n(89315),q=n(47893);const G="data-is-popover-item-button",K="data-is-popover-context-action";function Z(e,t){e.scrollIntoView({behavior:t?"smooth":void 0,block:"center"})}var $=n(61713),Q=n(45280);function Y(e,t){const n=t=>(n,o)=>{const a=document.activeElement||n,r=(0,$.getSelectorTreeWalker)(n,e);r.currentNode=a;const s=t(r);return s&&(0,Q.isHTMLOrSVGElement)(s)&&s!==a?(s.focus(o),s):null},o=t?e=>e.previousNode():$.getPreviousNonParent,a=e=>e.nextNode();return{focusPrev:n(o),focusNext:n(a),focusFirst:n($.getFirstDescendant),focusLast:n($.getLastDescendant),focusPrevLoop:n((e=>{const t=o(e);return t||(0,$.getLastDescendant)(e)})),focusNextLoop:n((e=>{const t=a(e);return t||(0,$.getFirstDescendant)(e)})),focusIndex:(e,t,o)=>n((e=>{e.currentNode=e.root;for(let n=0;n<t;n++)e.nextNode();return e.nextNode()}))(e,o)}}const j=(e,t)=>{const n=e(t,{preventScroll:!0});n&&Z(n)};function J(e,t=0){const{focusPrevLoop:n,focusNextLoop:a,focusFirst:r,focusLast:s}=(0,o.useMemo)((()=>Y(`[${G}]`)),[]);const i=(0,o.useCallback)((t=>{e&&t&&r(t)}),[r,e]),l=(0,o.useMemo)((()=>(0,H.default)(j,t,{leading:!1,trailing:!0})),[t]);return{onKeyDown:function(e){const o=(0,q.hashFromEvent)(e),i=e.currentTarget,c=function(e){switch(e){case 38:return n;case 40:return a;case 36:return r;case 35:return s}}(o);c&&(e.stopPropagation(),e.preventDefault(),t?l(c,i):j(c,i))},refToContentWrapperElement:i}}var X=n(9774),ee=n(87013),te=n(47157),ne=n(6071),oe=n.n(ne);function ae(e){const t=(0,o.useRef)(null),{width:n=z.POPOVER_DEFAULT_WIDTH,height:a=z.POPOVER_DEFAULT_HEIGHT,placementRules:r=z.POPOVER_DEFAULT_PLACEMENT_RULES,onClose:s,isOpen:i,anchorPositionerCardAppearanceClassname:l,children:c,role:u,ariaLabelledby:d,idOfContentWrapperElement:p,anchored:m,ariaMultiselectable:h,mobilePositionerSide:f,mobilePositionerCardAppearanceClassname:b,mobilePositionerStretch:v,refObjectToContentWrapperElement:g=t,isRtl:C,repositionTriggers:E,repositionDependencies:y,fixedHeader:S,fixedFooter:x,onScroll:w,scrollRef:_,onKeyDown:I,contentResize:N,mobileBreakpoint:k,dataQaId:T}=e,D=(0,o.useId)(),O=p??D,R=(0,X.useMergedRefs)([g]),P=(0,o.useRef)(null),B=(0,X.useMergedRefs)([_,P]),M=o.createElement("div",{onKeyDown:I,className:oe().eventWrapper},o.createElement(te.PopoverContentVertical,{fixedHeader:S,fixedFooter:x,onScroll:w,scrollRef:B},c));return o.createElement(ee.Popover,{anchored:m,isRtl:C,onClose:s,isOpen:i,anchorPositionerCardAppearanceClassname:l,role:u,ariaLabelledby:d,ariaMultiselectable:h,idOfContentWrapperElement:O,refToContentWrapperElement:R,placementRules:r,width:n,height:a,children:M,mobilePositionerSide:f,mobilePositionerCardAppearanceClassname:b,mobilePositionerStretch:v,repositionTriggers:E,repositionDependencies:y,mobileBreakpoint:k,dataQaId:T,contentResize:N,scrollContainer:P})}var re=n(13528)
|
||||||
|
;function se(e){const t=(0,o.useRef)(null),{width:n=z.POPOVER_DEFAULT_WIDTH,height:a=z.POPOVER_DEFAULT_HEIGHT,placementRules:r=z.POPOVER_DEFAULT_PLACEMENT_RULES,onClose:s,isOpen:i,closeOnClickAway:l=z.POPOVER_DEFAULT_CLOSE_ON_CLICK_AWAY,closeOnEscape:c=z.POPOVER_DEFAULT_CLOSE_ON_ESCAPE,closeOnScrollOutside:u=z.POPOVER_DEFAULT_CLOSE_ON_SCROLL_OUTSIDE,closeOnResizeWindow:d=z.POPOVER_DEFAULT_CLOSE_ON_RESIZE_WINDOW,closeOnTab:p=z.POPOVER_DEFAULT_CLOSE_ON_TAB,anchorPositionerCardAppearanceClassname:m,children:h,role:f,ariaLabelledby:b,idOfContentWrapperElement:v,anchored:g,ariaMultiselectable:C,mobilePositionerSide:E,mobilePositionerCardAppearanceClassname:y,refToContentWrapperElement:S=t,isRtl:x,focusFirstItemOnOpen:w=!0,repositionTriggers:_=[],repositionDependencies:I,fixedHeader:N,fixedFooter:k,onScroll:T,scrollRef:D,mobileBreakpoint:O,contentResize:R=14,mobilePositionerStretch:P,keyDownThrottleMs:B,dataQaId:M}=e,L=(0,o.useContext)(re.AppContext).isRtl,A=x??L,F=(0,V.useFunctionalRefObject)(S),W=(0,o.useId)(),H=v??W,{repositionTriggers:q,refToContentWrapperElement:G}=(0,U.usePopoverCloseBehavior)({onClose:s,isOpen:i,closeOnClickAway:l,closeOnEscape:c,closeOnResizeWindow:d,closeOnScrollOutside:u,closeOnTab:p,refToContentWrapperElement:F,excludeArea:g.at}),{onKeyDown:K,refToContentWrapperElement:Z}=J(w,B),$=(0,X.useMergedRefs)([Z,G]);return o.createElement(ae,{anchored:g,isRtl:A,onClose:s,isOpen:i,anchorPositionerCardAppearanceClassname:m,role:f,ariaLabelledby:b,ariaMultiselectable:C,idOfContentWrapperElement:H,refObjectToContentWrapperElement:$,placementRules:r,width:n,height:a,children:h,mobilePositionerSide:E,mobilePositionerCardAppearanceClassname:y,repositionTriggers:[...q,..._],repositionDependencies:I,fixedFooter:k,fixedHeader:N,onScroll:T,scrollRef:D,onKeyDown:K,contentResize:R,mobilePositionerStretch:P,mobileBreakpoint:O,dataQaId:M})}var ie=n(37315),le=n.n(ie);function ce(e){const t=(0,o.useRef)(null),{children:n,listItemRef:a=t,isOpen:r,selected:s,disabled:i,onMouseEnter:l,size:c="medium",ariaBusy:u,intent:d="neutral",dataQaId:m}=e;return o.createElement("div",{"data-qa-id":m,className:p()(le().background,s&&le().selected,r&&le().open,i&&le().disabled,le()[c],le()[d]),ref:a,onMouseEnter:l,"aria-busy":u},n)}var ue=n(57457),de=n.n(ue);function pe(e){const t=(0,o.useRef)(null),{children:n,listItemButtonRef:a=t,listItemButtonId:r,onKeyDownListItemButton:s,href:i,target:l="_blank",hotkey:c,ariaChecked:u,ariaSelected:d,ariaHaspopup:m,ariaControls:h,ariaExpanded:f,ariaLabel:b,role:v,disabled:g,isOpen:C,selected:E,onClick:y,tabIndex:S=0,rel:x,dataQaId:w,..._}=e,I=(0,R.filterCheckedDataProps)(_),N=(0,V.useFunctionalRefObject)(a),k=(0,o.useCallback)((e=>{if(N.current!==e.target)return;s?.(e);const t=(0,q.hashFromEvent)(e);32!==t&&13!==t||(void 0!==i&&window.open(i,l),y?.(e),e.preventDefault(),e.stopPropagation())}),[y,i,l,s,N]),T={role:v,"aria-keyshortcuts":c?(D=c,Array.isArray(D)?D.map(q.hotkeyHashToAriaKeyshortcuts).join(" "):(0,q.hotkeyHashToAriaKeyshortcuts)(D)):void 0,"aria-expanded":f,"aria-haspopup":m,
|
||||||
|
"aria-controls":h,"aria-checked":u,"aria-selected":d,"aria-disabled":g,"aria-label":b,className:p()(de().button,E&&de().selected),tabIndex:S,ref:N,onKeyDown:g?void 0:k,onClick:g?void 0:y,id:r,"data-qa-id":w,...I};var D;return o.createElement(o.Fragment,null,!i&&o.createElement("div",{...T}," ",n," "),i&&o.createElement("a",{href:i,target:l,rel:x,...T},n))}var me=n(45890),he=n(54519),fe=n.n(he);function be(e){const{hotkey:t}=e;return o.createElement("div",{className:fe().hotkey},(n=t,Array.isArray(n)?n.map(q.humanReadableHash).join(", "):(0,q.humanReadableHash)(n)));var n}var ve=n(44479),ge=n.n(ve);function Ce(e){const{rightSlot:t,hotkey:n,selected:a}=e;return o.createElement("div",{className:ge().right},o.createElement("div",{className:ge().child},o.createElement(me.IconButtonVariantContextProvider,{variant:a?"primary-special":"primary"},n&&o.createElement(be,{hotkey:n}),t)))}var Ee=n(40543),ye=n.n(Ee);function Se(e){const{ellipsis:t,text:n,className:a}=e;return n?o.createElement("div",{className:p()(a,"string"==typeof n&&t&&ye().ellipsis,"string"!=typeof n&&ye().withGaps,t&&"apply-overflow-tooltip")},n):null}var xe=n(45515),we=n.n(xe);function _e(e){const{ellipsis:t=!0,title:n,description:a,hasEndSlot:r}=e;return o.createElement("div",{className:p()(we().middle,n&&we().hasTitle,a&&we().hasDescription,!r&&we().hasNoEndSlot)},o.createElement(Se,{key:"title",className:we().title,text:n,ellipsis:t}),o.createElement(Se,{key:"description",className:we().description,text:a,ellipsis:t}))}var Ie=n(70827),Ne=n.n(Ie);function ke(e){const{leftSlot:t,rightSlot:n,hotkey:a,selected:r,ellipsis:s,title:i,description:l}=e,c=void 0!==t&&o.createElement("div",{className:Ne().left,style:{"--ui-lib-private-listItem-leftSlotItemsNumber":Array.isArray(t)?t.length:1}},t),u=n||a?o.createElement(Ce,{rightSlot:n,hotkey:a,selected:r}):null,d=o.createElement(_e,{ellipsis:s,title:i,description:l,hasEndSlot:!!u});return o.createElement(o.Fragment,null,o.createElement("div",{className:Ne().buttonContent},c,d,u))}const Te=(0,o.createContext)(!1);var De,Oe,Re,Pe;function Be(e){const{title:t,description:n,listItemRef:a,listItemButtonRef:r,isOpen:s,selected:i,disabled:l,onClick:c,href:u,leftSlot:d,rightSlot:p,hotkey:m,intent:h,onMouseEnter:f,onKeyDownListItemButton:b,listItemButtonId:v,ariaChecked:g,ariaSelected:C,ariaHaspopup:E,ariaControls:y,ariaExpanded:S,ariaBusy:x,ariaLabel:w,role:_,size:I,ellipsis:N,target:k,outsideOfButtonSlot:T,tabIndex:D,rel:O,dataQaId:P,...B}=e,M=(0,R.filterCheckedDataProps)(B);return o.createElement(Te.Provider,{value:!!n},o.createElement(ce,{size:I,selected:i,isOpen:s,disabled:l,listItemRef:a,onMouseEnter:f,ariaBusy:x,intent:h},o.createElement(pe,{listItemButtonRef:r,listItemButtonId:v,onKeyDownListItemButton:b,href:u,target:k,hotkey:m,ariaChecked:g,ariaSelected:C,ariaHaspopup:E,ariaControls:y,ariaExpanded:S,ariaLabel:w,role:_,disabled:l,isOpen:s,selected:i,onClick:c,dataQaId:P,tabIndex:D,rel:O,...M},o.createElement(ke,{leftSlot:d,rightSlot:p,hotkey:m,selected:i,ellipsis:N,title:t,description:n})),T))}function Me(e){
|
||||||
|
const{title:t,description:n,popoverItemRef:a,popoverItemButtonRef:r,isOpen:s,selected:i,disabled:l,onClick:c,href:u,leftSlot:d,rightSlot:p,hotkey:m,intent:h,onMouseEnter:f,onKeyDownPopoverItemButton:b,popoverItemButtonId:v,ariaChecked:g,ariaSelected:C,ariaHaspopup:E,ariaControls:y,ariaExpanded:S,ariaBusy:x,ariaLabel:w,role:_,size:I,ellipsis:N,target:k,outsideOfButtonSlot:T,tabIndex:D,rel:O,dataQaId:R}=e;return o.createElement(Be,{title:t,description:n,listItemRef:a,listItemButtonRef:r,isOpen:s,selected:i,disabled:l,onClick:c,href:u,leftSlot:d,rightSlot:p,hotkey:m,intent:h,onMouseEnter:f,onKeyDownListItemButton:b,listItemButtonId:v,ariaChecked:g,ariaSelected:C,ariaHaspopup:E,ariaControls:y,ariaExpanded:S,ariaBusy:x,ariaLabel:w,role:_,size:I,ellipsis:N,target:k,outsideOfButtonSlot:T,tabIndex:D,rel:O,dataQaId:R,[G]:"true"})}!function(e){e.Medium="medium",e.Large="large"}(De||(De={})),function(e){e.Neutral="neutral",e.Danger="danger"}(Oe||(Oe={})),function(e){e.Medium="medium",e.Large="large"}(Re||(Re={})),function(e){e.Neutral="neutral",e.Danger="danger"}(Pe||(Pe={}));var Le=n(9352),Ae=n.n(Le);function Fe(e){return o.createElement("div",{className:p()(Ae().wrapper,e.dirMatching&&Ae().dirMatching),inert:e.inert?"true":void 0},e.children)}function We(e){const{children:t}=e;return o.createElement(Fe,{inert:!0},t)}var Ve=n(64588);function ze(e){const{iconSvg:t,dirMatching:n}=e;return o.createElement(Fe,{dirMatching:n},o.createElement(Ve.BlockIcon,{icon:t}))}var Ue=n(80129);function He(e){const t=(0,o.useContext)(Te),{iconUrl:n,placeholderLetter:a,dirMatching:r}=e;return o.createElement(Fe,{dirMatching:r},o.createElement(Ue.CircleLogo,{size:t?"xsmall":"xxxsmall",logoUrl:n,placeholderLetter:a}))}function qe(e){return o.createElement(Fe,null)}function Ge(e){return e.iconJsx?o.createElement(We,null,e.iconJsx):e.iconSvg?o.createElement(ze,{iconSvg:e.iconSvg}):e.iconUrl?o.createElement(He,{iconUrl:e.iconUrl}):e.iconSpace?o.createElement(qe,null):void 0}function Ke(e){return"divider"!==e?.type}function Ze(e){return e.flatMap((e=>"items"in e?e.items:e))}var $e=n(19976),Qe=n(66334),Ye=n(63783),je=n.n(Ye);const Je=(0,o.forwardRef)(((e,t)=>{const{id:n,children:a,onClick:r,disabled:s,focusable:i,role:l,ariaLabel:c,ariaExpanded:u,ariaControls:d,ariaHaspopup:m,dataQaId:h,...f}=e,b=(0,R.filterCheckedDataProps)(f),v=r?"button":"div",g=i||r,C=s?void 0:r;return o.createElement(v,{id:n,className:p()(je().customListItem,C&&je().clickable),onClick:C,"aria-disabled":s,"aria-label":c,"aria-expanded":u,"aria-controls":d,"aria-haspopup":m,role:l,tabIndex:g?0:void 0,ref:t,...b,"data-qa-id":h},o.createElement("div",{inert:s?"true":void 0},a))}));var Xe=n(29914);function et(e){const{id:t,role:n,onClick:a,rightSlot:r,rightSlotAriaLabelledby:s,focusable:i,ariaExpanded:l,ariaControls:c,ariaHaspopup:u,ariaLabel:d,children:p,className:m,listItemButtonRef:h,dataQaId:f,onKeyDown:b,nestedListsAriaOwns:v,nestedListAriaHidden:g,...C}=e,E=(0,R.filterCheckedDataProps)(C),y=(0,o.useId)();return o.createElement("div",{"data-qa-id":f,onKeyDown:b
|
||||||
|
},o.createElement(Je,{id:t,role:n,onClick:a,focusable:i||!!r,ref:h,ariaExpanded:l??(!!r||void 0),ariaControls:c??(r?y:void 0),ariaHaspopup:u??(r?"menu":void 0),ariaLabel:d,dataQaId:`${Xe.UI_LIB_DATA_QA_ID_PREFIX}title-popover-item`,...E},o.createElement("div",{className:m},p,r)),o.createElement("div",{id:y,role:"menu","aria-labelledby":s,"aria-orientation":"horizontal","aria-owns":v,"aria-hidden":g}))}var tt,nt=n(22955),ot=n.n(nt),at=n(46788),rt=n.n(at),st=n(52093),it=n.n(st);function lt(e){const{id:t,role:n,leftSlot:a,title:r,onClick:s,ariaLabel:i,rightSlot:l,rightSlotAriaLabelledby:c,listItemButtonRef:u,variant:d="primary",ariaControls:m,titleId:h,wrapped:f,dataQaId:b,onKeyDown:v,nestedListsAriaOwns:g,nestedListAriaHidden:C,...E}=e,y=(0,R.filterCheckedDataProps)(E),S=void 0!==f;return o.createElement(et,{dataQaId:b,id:t,role:n,onClick:s,onKeyDown:v,rightSlot:l,rightSlotAriaLabelledby:c,ariaLabel:i,className:p()(it().wrapper,a&&it().withLeftSlot,it()[`${d}TitleWrapper`]),listItemButtonRef:u,focusable:S,ariaExpanded:S?!f:void 0,ariaControls:m,nestedListsAriaOwns:g,nestedListAriaHidden:C,...y},o.createElement("div",{className:it().content},a&&o.createElement("div",{className:it().left},a),o.createElement("div",{className:it().title,id:h},r)),S&&o.createElement(o.Fragment,null,o.createElement("div",{className:it().space}),o.createElement(Qe.Icon,{className:it().icon,icon:f?ot():rt()})))}function ct(e){const{id:t,title:n,children:a,itemRole:r,ariaLabel:s,rightSlot:i,rightSlotAriaLabelledby:l,dataQaId:c,onClick:u,onKeyDown:d,isWrapped:p,...m}=e,h=(0,R.filterCheckedDataProps)(m),f=(0,o.useId)(),b=(0,o.useId)();return o.createElement(o.Fragment,null,o.createElement(lt,{dataQaId:(0,Xe.concatIfNotNull)(`${Xe.UI_LIB_DATA_QA_ID_PREFIX}list-section-title`,c),id:t,title:n,role:r,rightSlot:i,rightSlotAriaLabelledby:l,ariaLabel:s,variant:"secondary",ariaControls:void 0!==p?b:void 0,titleId:f,wrapped:p,onClick:u,onKeyDown:d,...h}),o.createElement("div",{role:"group","aria-labelledby":f,id:b,"data-qa-id":(0,Xe.concatIfNotNull)(`${Xe.UI_LIB_DATA_QA_ID_PREFIX}list-section-content`,c)},!p&&a))}!function(e){e.Primary="primary",e.Secondary="secondary"}(tt||(tt={}));(0,o.createContext)({setIds:()=>{},hideContextActionsIfNoHover:!1,focusedContextActionsCounter:0,setFocusedContextActionsCounter:()=>{}});n(46691);const ut=["a[href]","button:not(:disabled)","input:not(:disabled)",'[role="button"]'];ut.join(",");function dt(e,t={}){const{focusNext:n,focusPrev:o,focusFirst:a,focusLast:r}=Y(e,t.allowNestedFocusable),s={...t.horizontal?{39:n,37:o}:{40:n,38:o},...t.handleHomeEnd?{36:a,35:r}:{}};return{onFocus:function(n){const o=n.currentTarget;n.target===o&&function(n){const o=(0,$.getSelectorTreeWalker)(n,e).nextNode();o&&(0,Q.isHTMLOrSVGElement)(o)&&o!==n&&o.focus(t.focusOptions)}(o)},onKeyDown:function(e){const n=function(e,t){if(!t)return e;const n=255&e,o=-256&e;return 37===n?39+o:39===n?37+o:e}((0,q.hashFromEvent)(e),t.isRtl),o=e.currentTarget,a=e.target;if(!(a instanceof Node))return;if(!o.contains(a))return;const r=s[n];if(r){
|
||||||
|
e.preventDefault();const n=r?.(o,t.focusOptions);n&&e.stopPropagation()}}}}const pt=`[${K}]`,mt=ut.map((e=>`${pt} ${e}`)).join(",");function ht(e){const{id:t,title:n,children:a,itemRole:r,wrappable:s,defaultWrapped:i,onWrappedChanged:l,ariaLabel:c,rightSlot:u,rightSlotAriaLabelledby:d,dataQaId:p}=e,[m,h]=(0,o.useState)(i??!1),{onKeyDown:f}=(()=>{const{isRtl:e}=(0,$e.usePopoverContext)();return dt(mt+`,[${G}]`,{horizontal:!0,isRtl:e,allowNestedFocusable:!0})})(),{onPopoverContentResize:b}=(0,$e.usePopoverContext)();(0,o.useLayoutEffect)((()=>{b?.()}),[b,m]);const v=(0,o.useCallback)((()=>{h((e=>{const t=!e;return l?.(t),t}))}),[l]);return o.createElement(o.Fragment,null,o.createElement(ct,{id:t,title:n,children:a,itemRole:r,ariaLabel:c,rightSlot:u,rightSlotAriaLabelledby:d,dataQaId:p,isWrapped:s?m:void 0,onClick:s?v:void 0,onKeyDown:f,[G]:s||u?"true":void 0}))}var ft=n(74612),bt=n.n(ft);function vt(e){const{role:t}=e;return o.createElement("div",{className:bt()["menu-divider"],role:t},o.createElement("div",{className:bt()["menu-divider-line"]}))}function gt(e){const{isOpen:t,onClose:n,anchorId:a,anchorButtonRef:r,contentId:s,items:i,value:l,onChange:c,placementRules:u,width:d,height:p,closeOnClickAway:m,mobileBreakpoint:h,closeOnResizeWindow:f,closeOnScrollOutside:b,dataQaId:v}=e,g=(0,o.useCallback)((e=>{n(!0,"currentLevel"),c(e)}),[n,c]),C=(0,o.useId)(),E=(0,o.useMemo)((()=>Ze(i.filter(Ke))),[i]),y=(0,o.useMemo)((()=>E.findIndex((e=>e.value===l))),[E,l]);(0,o.useEffect)((()=>{t&&-1!==y&&requestAnimationFrame((()=>{const e=`item_${C}_${y}`,t=document.getElementById(e);t&&(t.focus({preventScroll:!0}),Z(t,!1))}))}),[C,y,t]);const S=(0,o.useCallback)((()=>{let e=0;function t(t){return o.createElement(Ct,{id:`item_${C}_${e++}`,key:`${t.title}:${t.description}`,value:l,item:t,onSelectItem:g,dataQaId:t.dataQaId})}return o.createElement(o.Fragment,null,i.map(((e,n)=>{return"items"in(a=e)||"divider"===a?.type?"divider"===e.type?o.createElement(vt,{role:"presentation",key:`divider_${C}_${n}`}):o.createElement(ht,{key:`group_${C}_${n}`,title:e.title},e.items.map(t)):t(e);var a})))}),[i,g,C,l]),x=(0,o.useMemo)(S,[S]);return o.createElement(se,{role:"listbox",ariaLabelledby:a,isOpen:t,onClose:n,anchored:{type:"element",at:r},idOfContentWrapperElement:s,placementRules:u,width:d,height:p,focusFirstItemOnOpen:!1,closeOnClickAway:m,mobileBreakpoint:h,closeOnResizeWindow:f,closeOnScrollOutside:b,dataQaId:v},x)}function Ct(e){const{id:t,value:n,item:a,onSelectItem:r,dataQaId:s}=e,i=(0,o.useCallback)((()=>r(a.value)),[r,a.value]),l=n===a.value;return o.createElement(Me,{role:"option",selected:l,ariaChecked:l,title:a.title,leftSlot:Ge(a),key:a.title,popoverItemButtonId:t,onClick:i,disabled:a.disabled,dataQaId:s})}function Et(e){const[t,n]=(0,o.useState)(!1),a=(0,o.useCallback)((()=>{n(!1)}),[]),r=(0,o.useCallback)((()=>{n(!0)}),[]),s=function(e,t){return(0,o.useCallback)((n=>{t(),n&&e.current?.focus()}),[e,t])}(e,a);return{isOpen:t,onOpen:r,onClose:s}}const yt=new Set([32]),St=new Set([40,38]),xt=new Set([13]);function wt(e){const t=(0,
|
||||||
|
o.useRef)(),n=(0,V.useFunctionalRefObject)(t),{isOpen:a,onOpen:r,onClose:s}=Et(n),i=(0,o.useId)(),l=e?.anchorId??i,c=(0,o.useId)(),u=function(e){const{isOpen:t,onOpen:n,openOnEnter:a=!0,openOnArrow:r=!0,openOnSpace:s=!0}=e;return(0,o.useCallback)((e=>{const o=(0,q.hashFromEvent)(e);!t&&(a&&xt.has(o)||r&&St.has(o)||s&&yt.has(o))&&(n(),e.preventDefault(),e.stopPropagation())}),[t,n,a])}({isOpen:a,onOpen:r,openOnEnter:e?.openOnEnter,openOnArrow:e?.openOnArrow}),d=(0,o.useCallback)((()=>s(!0,"allLevels")),[s]);return{anchorButtonRef:n,isOpen:a,onOpen:r,onClose:s,anchorId:l,contentId:c,handleAnchorClick:a?d:r,handleAnchorKeyDown:u}}function _t(e,t){const n={};for(const a of Object.entries(t))n["camelCase"===e?"aria"+(o=a[0],""===o?"":o[0].toUpperCase()+o.substring(1)):"aria-"+a[0]]=a[1];var o;return n}function It(e){return function(e){const{isOpen:t,onClose:n,contentId:o,anchorButtonRef:a,anchorId:r,handleAnchorClick:s,handleAnchorKeyDown:i}=wt({anchorId:e.anchorId,openOnEnter:e.openOnEnter,openOnArrow:e.openOnArrow});return{isOpen:t,anchorProps:{id:r,role:"combobox",onClick:s,onKeyDown:i,...(l=e.refStyle,c=a,{[l]:c}),..._t(e.ariaStyle,{expanded:t,controls:o,haspopup:"listbox"})},popoverProps:{isOpen:t,anchorId:r,anchorButtonRef:a,contentId:o,onClose:n,items:e.items,value:e.value,onChange:e.onChange}};var l,c}({items:e.items,value:e.value,onChange:e.onChange,refStyle:e?.refStyle??"reference",ariaStyle:e?.ariaStyle??"kebab-case",openOnEnter:e.openOnEnter,openOnArrow:e.openOnArrow,anchorId:e?.anchorId})}var Nt=n(24748),kt=n.n(Nt);function Tt(e){const{title:t,items:n,onChange:a,value:r,noneSelectedTitle:s,popoverPlacementRules:i,popoverWidth:l,popoverHeight:c,stretch:u,anchorButtonId:d,disabled:m,anchorButtonSize:h,anchorButtonSizeClassname:f,openOnEnter:b,anchorButtonIntent:v,popoverMobileBreakpoint:g,popoverCloseOnScrollOutside:C,popoverCloseOnResizeWindow:E}=e,y=(0,o.useMemo)((()=>Ze(n.filter(Ke)).find((e=>e.value===r))),[n,r]),{isOpen:S,anchorProps:x,popoverProps:w}=It({items:n,value:r,onChange:a,openOnEnter:b,ariaStyle:"camelCase",anchorId:d}),_=t??y?.title??s;return o.createElement(o.Fragment,null,o.createElement("div",{className:p()(f,kt().anchor)},o.createElement(W,{...x,children:_,isOpen:S,stretch:u,disabled:m,size:h,intent:v})),o.createElement(gt,{...w,placementRules:i,width:l,height:c,mobileBreakpoint:g,closeOnScrollOutside:C,closeOnResizeWindow:E}))}var Dt=n(91599);const Ot="",Rt=void 0,Pt=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M","3M","6M","12M"],Bt=["1S","5S","10S","15S","30S","45S"],Mt=["1T","10T","100T","1000T"],Lt=(0,o.memo)((e=>{const{input:t,value:a,disabled:r,hasTooltip:s,onChange:i}=e,l=(0,o.useMemo)((()=>{let e;if(t.options)e=t.options.filter((e=>k.Interval.parse(e).isValid())).map((e=>k.Interval.parse(e).value()));else{const t=Rt?.get()?.filter((e=>!k.Interval.parse(e).isRange()))??[];e=[Ot].concat((0,T.mergeResolutions)(Pt,(0,T.isSecondsEnabled)()?Bt:[],(0,D.isTicksEnabled)()?Mt:[],t))}return e.map((e=>({value:e,title:e===Ot?Dt.t(null,{context:"resolution input option"
|
||||||
|
},n(58986)):(0,T.getTranslatedResolutionModel)(e).hint})))}),[]),c=(0,o.useMemo)((()=>{const e=k.Interval.parse(void 0===a?t.defval:a),n=e.isValid()?e.value():a??t.defval;if(!!l.find((e=>e.value===n)))return n}),[a,l,t.defval]);return o.createElement("div",{className:p()(C.input,s&&C.hasTooltip)},o.createElement(Tt,{anchorButtonId:t.id,popoverHeight:{by:"class",className:C.popoverHeight},items:l,value:c,noneSelectedTitle:Dt.t(null,{context:"input"},n(14196)),onChange:e=>{i(e)},disabled:r,anchorButtonSize:"small",stretch:!0}))}));Lt.displayName="ResolutionInputComponent";const At=(0,g.bind)(Lt),Ft=(0,o.memo)((e=>{const{input:{id:t,defval:n,options:a,optionsTitles:s},value:i,disabled:l,hasTooltip:c,onChange:u}=e,d=a.map((e=>{const t=s&&s[e]?s[e]:e;return{value:e,title:(0,r.getTranslatedInputTitle)(t)}})),m=void 0!==i&&a.includes(i)?i:n;return o.createElement("div",{className:p()(C.input,c&&C.hasTooltip)},o.createElement(Tt,{anchorButtonId:t,value:m,items:d,onChange:u,disabled:l,anchorButtonSize:"small",stretch:!0}))}));Ft.displayName="SelectInputComponent";const Wt=(0,g.bind)(Ft);function Vt(e=""){const[,t="",n="",o="",a=""]=Array.from(e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[]);return[`${t}:${n}`,`${o}:${a}`]}var zt=n(17664);function Ut(e){const{className:t}=e,n=(0,o.useContext)(s.PropertyTable.InlineRowContext);return o.createElement("div",{className:d(zt.inputGroup,n&&zt.inlineGroup,t)},e.children)}function Ht(e,t){return e.replace(":","")+"-"+t.replace(":","")}const qt=(0,o.memo)((e=>{const{value:t,input:n,hasTooltip:r,disabled:s,onChange:i}=e,l=t||n.defval,[c,u]=(0,o.useState)(Vt(l)[0]),[d,m]=(0,o.useState)(Vt(l)[1]),h=(0,o.useRef)(l);(0,o.useEffect)((()=>{if(t!==h.current){const[e,n]=Vt(t);u(e),m(n),h.current=t}}),[t]);const f=(0,o.useCallback)((e=>{u(e);const t=Ht(e,d);i(t)}),[d,i]),v=(0,o.useCallback)((e=>{m(e);const t=Ht(c,e);i(t)}),[c,i]);return o.createElement(Ut,{className:p()(r&&C.hasTooltip)},o.createElement("div",{className:C.sessionStart},o.createElement(b.TimeInput,{className:p()(C.input,C.sessionInputContainer),name:"start",value:(0,a.ensureDefined)(c),onChange:f,disabled:s}),o.createElement("span",{className:C.sessionDash}," — ")),o.createElement("div",{className:C.sessionEnd},o.createElement(b.TimeInput,{className:p()(C.input,C.sessionInputContainer),name:"end",value:(0,a.ensureDefined)(d),onChange:v,disabled:s})))}));qt.displayName="SessionInputComponent";const Gt=(0,g.bind)(qt);var Kt=n(18518);const Zt={};["open","high","low","close","hl2","hlc3","ohlc4","hlcc4"].forEach((e=>{"hlcc4"!==e&&(Zt[e]=Kt.priceSourceTitles[e])}));const $t=(0,o.memo)((e=>{const t=(0,o.useMemo)((()=>({...Zt,...e.availableSources})),[e.availableSources]),n=(0,o.useMemo)((()=>({...e.input,type:"text",options:Object.keys(t),optionsTitles:t})),[e.input,t]);return o.createElement(Ft,{...e,input:n})}));$t.displayName="SourceInputComponent";const Qt=(0,g.bind)($t);var Yt=n(27933),jt=n(82651),Jt=n(27639);const Xt=(0,o.memo)((e=>{const{input:{defval:t},value:n,disabled:a,onBlur:r,onKeyDown:s,hasTooltip:i,onChange:l}=e,c=(0,
|
||||||
|
o.useCallback)((e=>{l(e.currentTarget.value)}),[l]);return o.createElement(jt.InputControl,{className:p()(C.input,i&&C.hasTooltip),value:void 0===n?t:n,onChange:c,onBlur:r,onKeyDown:s,disabled:a,maxLength:40960})}));Xt.displayName="TextInputComponent";const en=(0,g.bind)((0,Jt.debounced)(Xt));var tn=n(55482),nn=n(82347),on=n(14946);const an=(0,o.memo)((e=>{const{disabled:t,hasTooltip:n,value:a,onChange:r}=e,s=(0,o.useCallback)((e=>{let t=0;a&&(t=(0,nn.isHexColor)(a)?0:(0,nn.alphaToTransparency)((0,tn.parseRgba)(a)[3])),r((0,nn.generateColor)(String(e),t,!0))}),[r,a]),i=(0,o.useCallback)((e=>{r((0,nn.generateColor)(String(a),(0,nn.alphaToTransparency)(e),!0))}),[r,a]),l=(0,o.useMemo)((()=>function(e){return e?(0,nn.isHexColor)(e)?e:(0,tn.rgbToHexString)((0,tn.parseRgb)(e)):null}(a)),[a]),c=(0,o.useMemo)((()=>function(e){if(e)return(0,nn.isHexColor)(e)?(0,nn.transparencyToAlpha)(0):(0,tn.parseRgba)(e)[3]}(a)),[a]);return o.createElement(on.ColorSelect,{className:p()(n&&C.hasTooltip),disabled:t,selectOpacity:!0,color:l,opacity:c,onColorChange:s,onOpacityChange:i})}));an.displayName="ColorInputComponent";const rn=(0,g.bind)(an);class sn extends o.PureComponent{render(){const{input:e,hasTooltip:t}=this.props,n=!1===e.active||this.props.disabled;if((0,c.isStudyInputOptionsInfo)(e)&&"resolution"!==e.type)return o.createElement(Wt,{input:e,disabled:n,hasTooltip:t});switch(e.type){case"integer":return o.createElement(N.IntegerInput,{input:e,disabled:n,hasTooltip:t});case"float":case"price":return o.createElement(I.FloatInput,{input:e,disabled:n,hasTooltip:t});case"bool":return o.createElement(u.BoolInput,{input:e,disabled:n,hasTooltip:t});case"text":return o.createElement(en,{input:e,disabled:n,hasTooltip:t});case"symbol":return o.createElement(Yt.SymbolInput,{input:e,disabled:n,hasTooltip:t});case"session":return o.createElement(Gt,{input:e,disabled:n,hasTooltip:t});case"source":return o.createElement(Qt,{input:e,disabled:n,hasTooltip:t});case"resolution":return o.createElement(At,{input:e,disabled:n,hasTooltip:t});case"time":return o.createElement(x,{input:e,hasTooltip:t,disabled:n});case"color":return o.createElement(rn,{input:e,disabled:n,hasTooltip:t});default:return null}}}class ln extends o.PureComponent{render(){const{label:e,children:t,input:n,labelAlign:c,grouped:u,tooltip:d,solutionId:p,offset:m}=this.props,h=!1===n?.active||this.props.disabled,f=Boolean(d);return o.createElement(s.PropertyTable.Row,null,o.createElement(s.PropertyTable.Cell,{"data-study-input-name":n?.id&&`${n.id}-label`,placement:"first",verticalAlign:c,grouped:u,offset:m},void 0!==e?e:(0,r.getTranslatedInputTitle)((0,a.ensureDefined)(n).name)),o.createElement(s.PropertyTable.Cell,{"data-study-input-name":n?.id&&`${n.id}-input`,placement:"last",grouped:u},t||o.createElement(sn,{input:(0,a.ensureDefined)(n),disabled:h,hasTooltip:f}),f&&o.createElement(i.IconGroupWrapper,null,d&&o.createElement(l.InputTooltip,{title:d}),!1)))}}},25659:(e,t,n)=>{"use strict";n.d(t,{bind:()=>s});var o=n(79474),a=n(14856),r=n(40451);function s(e){const t=(0,
|
||||||
|
o.memo)((t=>{const{values:n,setValue:s,availableSources:i,tzName:l,isResetSymbolAble:c}=(0,a.useEnsuredContext)(r.PropertyContext),{input:u}=t,d=(0,o.useCallback)((e=>{s(e,u.id,u.name)}),[s,u]);return o.createElement(e,{...t,value:n[u.id],onChange:d,availableSources:"source"===u.type?i:void 0,tzName:"time"===u.type?l:void 0,isResetSymbolAble:c})}));return t.displayName="BoundInput",t}},40451:(e,t,n)=>{"use strict";n.d(t,{PropertyContainer:()=>l,PropertyContext:()=>i,logger:()=>s});var o=n(79474),a=n(73775),r=n(85842);const s=(0,a.getLogger)("Platform.GUI.StudyInputPropertyContainer"),i=(0,o.createContext)(null);const l=(0,o.memo)((function(e){const{property:t,availableSources:n,setValue:a,tzName:l,isResetSymbolAble:c}=e,[u,d]=(0,o.useState)((()=>t.childNames().reduce(((e,n)=>{const o=(0,r.ensureDefined)(t.child(n));return e.hasOwnProperty(n)||(e[n]=o.value()),e}),{}))),p=(0,o.useCallback)((e=>{const t=e.value(),n=e.nameInOwner();s.logNormal(`Property "${n}" updated to value "${t}"`),d((e=>({...e,[n]:t})))}),[]);(0,o.useEffect)((()=>(t.childNames().forEach((e=>{(0,r.ensureDefined)(t.child(e)).subscribe(null,p)})),()=>{t.childNames().forEach((e=>{(0,r.ensureDefined)(t.child(e)).unsubscribe(null,p)}))})),[t]);const m={values:u,setValue:a,availableSources:n,tzName:l,isResetSymbolAble:c};return o.createElement(i.Provider,{value:m},e.children)}))},65399:(e,t,n)=>{"use strict";n.d(t,{UserInputsTabContent:()=>G});var o=n(79474),a=n(85842),r=n(20819),s=n(82372),i=n(83186),l=n(73501),c=n(22725),u=n(80696),d=n(75753);class p extends o.PureComponent{render(){const{label:e,input:t,tooltip:n,solutionId:a}=this.props,s=!1===t.active,i=Boolean(n);return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{placement:"first",colSpan:2,"data-study-input-name":t?.id&&`${t.id}-checkbox`},o.createElement(d.BoolInput,{label:e,input:t,hasTooltip:i,disabled:s}),i&&o.createElement(c.IconGroupWrapper,null,n&&o.createElement(u.InputTooltip,{title:n}),!1)))}}var m=n(11864),h=n(14487),f=n.n(h),b=n(17858),v=n.n(b);function g(e){const{disabled:t,checked:n}=e;return o.createElement("span",{className:f()(v().radioButtonView,t&&v().disabled,n&&v().checked)})}var C=n(40197),E=n(72222),y=n.n(E);const S=(0,m.makeSwitchGroupItem)((e=>{const{disabled:t,checked:n,label:a,value:r="on",name:s,onChange:i,className:l,id:c,title:u,labelPositionReverse:d,reference:p,ariaDescribedby:m,tabIndex:h,...b}=e,v=f()(l,y().radio,d&&y().reverse),E=f()(y().label,t&&y().disabled);return o.createElement("label",{className:v},o.createElement("span",{className:f()(y().wrapper,t&&y().disabled),title:u},o.createElement("input",{type:"radio",id:c,className:y().input,name:s,checked:n,disabled:t,value:r,onChange:i,ref:p,"aria-describedby":m,tabIndex:h,...(0,C.filterDataProps)(b)}),o.createElement("span",{className:f()(y().box,n&&y().checked)},o.createElement(g,{checked:n,disabled:t}))),a&&o.createElement("span",{className:E},a))}));var x=n(91599),w=n(25659),_=n(27933),I=n(15593);const N=(0,w.bind)((function(e){
|
||||||
|
const{input:t,tooltip:a,solutionId:s,onChange:i,value:l}=e,[d,p]=(0,o.useState)(l?"another-symbol":"main-symbol"),h=(0,o.useRef)(l||null),f=!1===t.active||e.disabled,b=Boolean(a),v=(0,o.useCallback)((e=>{p(e),"main-symbol"===e?i(""):"another-symbol"===e&&h.current&&i(h.current)}),[i]),g=(0,o.useCallback)((e=>{h.current=e,i(e)}),[i]);return o.createElement(m.SwitchGroup,{name:`symbol-source-${t.id}`,values:[d],onChange:v},o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{colSpan:2,placement:"first","data-study-input-name":t?.id&&`${t.id}-main-symbol`},o.createElement(S,{value:"main-symbol",className:I.checkbox,disabled:f,label:o.createElement("span",{className:I.label},x.t(null,{context:"input"},n(74927)))}))),o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{placement:"first","data-study-input-name":t?.id&&`${t.id}-another-symbol-label`},o.createElement(S,{value:"another-symbol",className:I.checkbox,disabled:f,label:o.createElement("span",{className:I.label},x.t(null,{context:"input"},n(39327)))})),o.createElement(r.PropertyTable.Cell,{placement:"last","data-study-input-name":t?.id&&`${t.id}-another-symbol-input`},o.createElement(_.SymbolInputComponent,{value:l,input:t,disabled:f||"main-symbol"===d,hasTooltip:b,onChange:g}),b&&o.createElement(c.IconGroupWrapper,null,a&&o.createElement(u.InputTooltip,{title:a}),!1))))}));var k=n(59346),T=n(88340),D=n(88169),O=n(27639),R=n(29808);const P=(0,o.memo)((e=>{const{onChange:t,value:n,input:{defval:a},disabled:r,onBlur:s,onKeyDown:i}=e;return o.createElement(T.Textarea,{className:f()(R.input,R.textarea,D.InputClasses.FontSizeMedium),value:void 0===n?a:n,onChange:e=>{t(e.currentTarget.value)},onBlur:s,onKeyDown:i,disabled:r,maxLength:40960})}));P.displayName="TextareaInputPureComponent";const B=(0,O.debounced)(P),M=(0,w.bind)(B);var L=n(51814);function A(e){const{input:t,label:n,tooltip:a,solutionId:s}=e,i=!1===t?.active,l=Boolean(a);return o.createElement(r.PropertyTable.Row,null,o.createElement(r.PropertyTable.Cell,{placement:"first",colSpan:2,className:L.wrap,"data-study-input-name":t?.id&&`${t.id}-textarea`},o.createElement("div",{className:L.labelWrap},o.createElement("span",{className:f()(L.label,l&&L.hasTooltip)},n),l&&o.createElement(c.IconGroupWrapper,null,a&&o.createElement(u.InputTooltip,{title:a}),!1)),o.createElement(M,{input:t,disabled:i})))}function F(e){const{input:t,tooltip:n,solutionId:a}=e;return"symbol"===t.type&&t.optional?o.createElement(N,{input:t,tooltip:n,solutionId:a}):"bool"===t.type?o.createElement(p,{label:(0,s.getTranslatedInputTitle)(t.name),input:t,tooltip:n,solutionId:a}):"text_area"===t.type?o.createElement(A,{label:(0,s.getTranslatedInputTitle)(t.name),input:t,tooltip:n,solutionId:a}):o.createElement(k.InputRow,{labelAlign:function(e){switch(e){case"session":return"adaptive";case"time":return"topCenter";default:return}}(t.type),input:t,tooltip:n,solutionId:a})}var W=n(99145);function V(e){const{content:t}=e;let n;return o.createElement(r.PropertyTable.InlineRowContext.Provider,{
|
||||||
|
value:!0},o.createElement("div",{className:W.inlineRow},t.children.map(((e,a)=>(void 0!==e.tooltip&&(n=e.tooltip),o.createElement(F,{key:e.id,input:e,tooltip:a===t.children.length-1?n:void 0}))))))}var z=n(62813);function U(e){const{content:t}=e;return(0,l.isGroup)(t)?(0,l.isInputInlines)(t)?o.createElement(V,{content:t}):o.createElement(o.Fragment,null,o.createElement("div",{className:z.titleWrap},o.createElement(i.GroupTitleSection,{title:(0,s.getTranslatedInputTitle)(t.id),name:t.id})),t.children.map((e=>(0,l.isGroup)(e)?o.createElement(V,{key:e.id,content:e}):o.createElement(F,{key:e.id,input:e,tooltip:e.tooltip,solutionId:e.solutionId}))),o.createElement("div",{className:z.groupFooter})):o.createElement(F,{input:t,tooltip:t.tooltip,solutionId:t.solutionId})}var H=n(40451),q=n(74129);n(15050);class G extends o.PureComponent{render(){const{reference:e,inputs:t,property:n,studyInfo:s,className:i,setProperty:l,availableSources:c,tzName:u}=this.props,{offset:d,offsets:p}=n;return o.createElement(r.PropertyTable,{reference:e,className:i},o.createElement(K,{studyInfo:s,property:n.inputs,inputs:t,setValue:l,availableSources:c,tzName:u}),d&&this._createOffsetSection(d,(0,a.ensureDefined)(s.offset)),p&&p.childNames().map((e=>{const t=p.childs()[e];return this._createOffsetSection(t,(0,a.ensureDefined)(s.offsets?.[e]))})))}_createOffsetSection(e,t){const n=e.childs();return o.createElement(K,{key:`offset_${t.title}`,studyInfo:this.props.studyInfo,inputs:[(0,q.createNumericInputInfoFromOffset)(n,t)],property:e,setValue:(t,n,o)=>this.props.setProperty(t,n,o,e),availableSources:this.props.availableSources})}}function K(e){const{studyInfo:t,inputs:n,property:a,setValue:r,availableSources:s,tzName:i}=e,c=t.hasCustomInputs?n.filter(q.customInputsFilter):n,u=(0,o.useMemo)((()=>(0,l.getInputGroups)(c)),[c]);(0,q.getCustomSessionInputs)(n,t.shortId),(0,q.getAutoAnchorPeriodInputs)(n,t.shortId),(0,q.getTpoInputs)(n,t.shortId);return o.createElement(H.PropertyContainer,{property:a,setValue:r,availableSources:s,tzName:i,isResetSymbolAble:t.isStudy},!1,!1,u.map((e=>o.createElement(o.Fragment,{key:e.id},o.createElement(U,{content:e}),!1))))}},15050:(e,t,n)=>{"use strict";n.d(t,{AUTO_ANCHORED_IDS:()=>o,AUTO_ANCHORED_INPUTS_IDS:()=>a,CUSTOM_ROW_SIZE_INPUTS_IDS:()=>i,CUSTOM_ROW_SIZE_STUDY_IDS:()=>s,DEFAULT_CUSTOM_SESSION_IDS:()=>l,VBP_SESSION_STUDY_IDS:()=>r});const o=new Set(["VWAPAA","VbPAutoAnchored"]),a=new Set(["Anchor Period","Length"]),r=new Set(["VbPSessions","VbPSessionsRoughDetailed","TPOSessions"]),s=new Set(["TPOPeriodic","TPOSessions"]),i=new Set(["rowSize","ticksPerRow"]),l=new Set(["profilesSessions","customSession","customSessionTZ"])},73501:(e,t,n)=>{"use strict";n.d(t,{getInputGroups:()=>s,isGroup:()=>a,isInputInlines:()=>r});var o=n(85842);function a(e){return e.hasOwnProperty("groupType")}function r(e){return a(e)&&"inline"===e.groupType}function s(e){const t=[],n=new Map,a=new Map;return a.set(void 0,new Map),e.forEach((e=>{const{group:r,inline:s}=e;if(void 0!==r||void 0!==s)if(void 0!==r)if(void 0!==s)if(n.has(r)){
|
||||||
|
const t=(0,o.ensureDefined)(n.get(r));let l;a.has(t)?l=(0,o.ensureDefined)(a.get(t)):(l=new Map,a.set(t,l)),i(e,"inline",s,l,t.children)}else{const o={id:s,groupType:"inline",children:[e]},i={id:r,groupType:"group",children:[o]},l=new Map;l.set(s,o),a.set(i,l),n.set(r,i),t.push(i)}else i(e,"group",r,n,t);else{const n=(0,o.ensureDefined)(a.get(void 0));i(e,"inline",(0,o.ensureDefined)(s),n,t)}else t.push(e)})),t}function i(e,t,n,a,r){if(a.has(n))(0,o.ensureDefined)(a.get(n)).children.push(e);else{const o={id:n,groupType:t,children:[e]};a.set(n,o),r.push(o)}}},74129:(e,t,n)=>{"use strict";n.d(t,{createNumericInputInfoFromOffset:()=>m,customInputsFilter:()=>p,getAutoAnchorPeriodInputs:()=>u,getCustomSessionInputs:()=>c,getStudyInfo:()=>i,getTpoInputs:()=>d});var o=n(62352),a=n(60135),r=n(15050);const s=e=>!1;function i(e,t){if(t&&(0,o.isStudy)(t)){const t=e.shortId;return{isStudy:!0,shortId:e.shortId,hasCustomInputs:s(t),offset:e.offset,offsets:e.offsets}}return{isStudy:!1,shortId:e.shortId,hasCustomInputs:!1,offset:e.offset,offsets:e.offsets}}function l(e,t){return(n,o)=>{if(!t(o))return null;const a=n.reduce(((t,n)=>(e.has(n.id)&&(t[n.id]=n),t)),{});return Object.keys(a).length>0?a:null}}const c=l(r.DEFAULT_CUSTOM_SESSION_IDS,(function(e){return r.VBP_SESSION_STUDY_IDS.has(e)})),u=l(r.AUTO_ANCHORED_INPUTS_IDS,(function(e){return r.AUTO_ANCHORED_IDS.has(e)})),d=l(r.CUSTOM_ROW_SIZE_INPUTS_IDS,(function(e){return r.CUSTOM_ROW_SIZE_STUDY_IDS.has(e)}));function p(e){return!r.DEFAULT_CUSTOM_SESSION_IDS.has(e.id)&&!r.AUTO_ANCHORED_INPUTS_IDS.has(e.id)&&!r.CUSTOM_ROW_SIZE_INPUTS_IDS.has(e.id)}function m(e,t){return{id:"val",name:t.title||a.t(null,{context:"study input title"},n(62173)),defval:e.val.value(),type:"integer",min:t.min,max:t.max}}},46788:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 10.62.66.76L9 8.16l3.67 3.22.66-.76L9 6.84l-4.33 3.78Z"/></svg>'},89326:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M11.44 3.34a1.5 1.5 0 0 1 2.12 0l1.09 1.09a1.5 1.5 0 0 1 0 2.12l-7 7a1.5 1.5 0 0 1-1.06.44H4V11.4c0-.4.16-.78.44-1.06l7-7Zm1.41.7a.5.5 0 0 0-.7 0l-.7.7 1.8 1.79.69-.7a.5.5 0 0 0 0-.7l-1.09-1.08Zm-.3 3.2-1.8-1.8-5.6 5.6a.5.5 0 0 0-.15.36v1.59h1.59a.5.5 0 0 0 .35-.15l5.6-5.6Z"/></svg>'},50878:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M10 6.13V8L6 5.5 10 3v2.1A5 5 0 1 1 4 10a.5.5 0 0 1 1 0 4 4 0 1 0 5-3.87Z"/></svg>'},10276:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm4-9.97L11.9 6 8.3 9.82 6.1 7.46 4.99 8.5 8.32 12 13 7.03Z"/></svg>'},1711:e=>{
|
||||||
|
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM9 4c-.79 0-1.38.7-1.25 1.48l.67 4.03a.59.59 0 0 0 1.16 0l.67-4.03A1.27 1.27 0 0 0 9 4Zm0 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},45398:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm1-12a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8.5 9.5H7V8h3v6H8.5V9.5Z"/></svg>'},20912:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm-1-4a1 1 0 1 0 2 0 1 1 0 0 0-2 0Zm2.83-3.52c-.49.43-.97.85-1.06 1.52H8.26c.08-1.18.74-1.69 1.32-2.13.49-.38.92-.71.92-1.37C10.5 6.67 9.82 6 9 6s-1.5.67-1.5 1.5V8H6v-.5a3 3 0 1 1 6 0c0 .96-.6 1.48-1.17 1.98Z"/></svg>'},17070:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke="currentColor" stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'}}]);
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
charting_library/bundles/2961.4c55794a27daa4682a99.js
Normal file
4
charting_library/bundles/2961.4c55794a27daa4682a99.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2961],{14487:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var i=typeof r;if("string"===i||"number"===i)t.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&t.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()},50254:(t,e,r)=>{"use strict";r.d(e,{FixedSizeList:()=>O,VariableSizeList:()=>z});var n=r(31349);function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var s=Number.isNaN||function(t){return"number"==typeof t&&t!=t};function l(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(n=t[r],o=e[r],!(n===o||s(n)&&s(o)))return!1;var n,o;return!0}const c=function(t,e){var r;void 0===e&&(e=l);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&e(a,o)||(n=t.apply(this,a),i=!0,r=this,o=a),n}};var u=r(79474),f="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function d(t){cancelAnimationFrame(t.id)}function h(t,e){var r=f();var n={id:requestAnimationFrame((function o(){f()-r>=e?t.call(null):n.id=requestAnimationFrame(o)}))};return n}var p=null;function m(t){if(void 0===t&&(t=!1),null===p||t){var e=document.createElement("div"),r=e.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?p="positive-descending":(e.scrollLeft=1,p=0===e.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(e),p}return p}var v=function(t,e){return t};function g(t){var e,r,o=t.getItemOffset,s=t.getEstimatedTotalSize,l=t.getItemSize,f=t.getOffsetForIndexAndAlignment,p=t.getStartIndexForOffset,g=t.getStopIndexForStartIndex,I=t.initInstanceProps,y=t.shouldResetStyleCacheOnItemSizeChange,_=t.validateProps;return r=e=function(t){function e(e){var r;return(r=t.call(this,e)||this)._instanceProps=I(r.props,a(a(r))),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:a(a(r)),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=c((function(t,e,n,o){return r.props.onItemsRendered({overscanStartIndex:t,overscanStopIndex:e,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=c((function(t,e,n){return r.props.onScroll({
|
||||||
|
scrollDirection:t,scrollOffset:e,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(t){var e,n=r.props,i=n.direction,a=n.itemSize,s=n.layout,c=r._getItemStyleCache(y&&a,y&&s,y&&i);if(c.hasOwnProperty(t))e=c[t];else{var u=o(r.props,t,r._instanceProps),f=l(r.props,t,r._instanceProps),d="horizontal"===i||"horizontal"===s,h="rtl"===i,p=d?u:0;c[t]=e={position:"absolute",left:h?void 0:p,right:h?p:void 0,top:d?0:u,height:d?"100%":f,width:d?f:"100%"}}return e},r._getItemStyleCache=void 0,r._getItemStyleCache=c((function(t,e,r){return{}})),r._onScrollHorizontal=function(t){var e=t.currentTarget,n=e.clientWidth,o=e.scrollLeft,i=e.scrollWidth;r.setState((function(t){if(t.scrollOffset===o)return null;var e=r.props.direction,a=o;if("rtl"===e)switch(m()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:t.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(t){var e=t.currentTarget,n=e.clientHeight,o=e.scrollHeight,i=e.scrollTop;r.setState((function(t){if(t.scrollOffset===i)return null;var e=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(t){var e=r.props.outerRef;r._outerRef=t,"function"==typeof e?e(t):null!=e&&"object"==typeof e&&e.hasOwnProperty("current")&&(e.current=t)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&d(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=h(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}i(e,t),e.getDerivedStateFromProps=function(t,e){return S(t,e),_(t),null};var r=e.prototype;return r.scrollTo=function(t){t=Math.max(0,t),this.setState((function(e){return e.scrollOffset===t?null:{scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},r.scrollToItem=function(t,e){void 0===e&&(e="auto");var r=this.props.itemCount,n=this.state.scrollOffset;t=Math.max(0,Math.min(t,r-1)),this.scrollTo(f(this.props,t,e,n,this._instanceProps))},r.componentDidMount=function(){var t=this.props,e=t.direction,r=t.initialScrollOffset,n=t.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===e||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},r.componentDidUpdate=function(){var t=this.props,e=t.direction,r=t.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===e||"horizontal"===r)if("rtl"===e)switch(m()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()
|
||||||
|
},r.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&d(this._resetIsScrollingTimeoutId)},r.render=function(){var t=this.props,e=t.children,r=t.className,o=t.direction,i=t.height,a=t.innerRef,l=t.innerElementType,c=t.innerTagName,f=t.itemCount,d=t.itemData,h=t.itemKey,p=void 0===h?v:h,m=t.layout,g=t.outerElementType,S=t.outerTagName,I=t.style,y=t.useIsScrolling,_=t.width,M=this.state.isScrolling,z="horizontal"===o||"horizontal"===m,O=z?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),w=x[0],b=x[1],C=[];if(f>0)for(var R=w;R<=b;R++)C.push((0,u.createElement)(e,{data:d,key:p(R,d),index:R,isScrolling:y?M:void 0,style:this._getItemStyle(R)}));var T=s(this.props,this._instanceProps);return(0,u.createElement)(g||S||"div",{className:r,onScroll:O,ref:this._outerRefSetter,style:(0,n.default)({position:"relative",height:i,width:_,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},I)},(0,u.createElement)(l||c||"div",{children:C,ref:a,style:{height:z?"100%":T,pointerEvents:M?"none":void 0,width:z?T:"100%"}}))},r._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var t=this._getRangeToRender(),e=t[0],r=t[1],n=t[2],o=t[3];this._callOnItemsRendered(e,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},r._getRangeToRender=function(){var t=this.props,e=t.itemCount,r=t.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===e)return[0,0,0,0];var s=p(this.props,a,this._instanceProps),l=g(this.props,s,a,this._instanceProps),c=o&&"backward"!==i?1:Math.max(1,r),u=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,s-c),Math.max(0,Math.min(e-1,l+u)),s,l]},e}(u.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var S=function(t,e){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,e.instance},I=function(t,e,r){var n=t.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(e>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=e;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=e}return o[e]},y=function(t,e,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=I(t,i,e).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},_=function(t,e,r,n){for(var o=t.itemCount,i=1;r<o&&I(t,r,e).offset<n;)r+=i,i*=2;return y(t,e,Math.min(r,o-1),Math.floor(r/2),n)},M=function(t,e){var r=t.itemCount,n=e.itemMetadataMap,o=e.estimatedItemSize,i=e.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},z=g({getItemOffset:function(t,e,r){return I(t,e,r).offset},getItemSize:function(t,e,r){return r.itemMetadataMap[e].size},getEstimatedTotalSize:M,getOffsetForIndexAndAlignment:function(t,e,r,n,o){
|
||||||
|
var i=t.direction,a=t.height,s=t.layout,l=t.width,c="horizontal"===i||"horizontal"===s?l:a,u=I(t,e,o),f=M(t,o),d=Math.max(0,Math.min(f-c,u.offset)),h=Math.max(0,u.offset-c+u.size);switch("smart"===r&&(r=n>=h-c&&n<=d+c?"auto":"center"),r){case"start":return d;case"end":return h;case"center":return Math.round(h+(d-h)/2);default:return n>=h&&n<=d?n:n<h?h:d}},getStartIndexForOffset:function(t,e,r){return function(t,e,r){var n=e.itemMetadataMap,o=e.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?y(t,e,o,0,r):_(t,e,Math.max(0,o),r)}(t,r,e)},getStopIndexForStartIndex:function(t,e,r,n){for(var o=t.direction,i=t.height,a=t.itemCount,s=t.layout,l=t.width,c="horizontal"===o||"horizontal"===s?l:i,u=I(t,e,n),f=r+c,d=u.offset+u.size,h=e;h<a-1&&d<f;)h++,d+=I(t,h,n).size;return h},initInstanceProps:function(t,e){var r={itemMetadataMap:{},estimatedItemSize:t.estimatedItemSize||50,lastMeasuredIndex:-1};return e.resetAfterIndex=function(t,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,t-1),e._getItemStyleCache(-1),n&&e.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),O=g({getItemOffset:function(t,e){return e*t.itemSize},getItemSize:function(t,e){return t.itemSize},getEstimatedTotalSize:function(t){var e=t.itemCount;return t.itemSize*e},getOffsetForIndexAndAlignment:function(t,e,r,n){var o=t.direction,i=t.height,a=t.itemCount,s=t.itemSize,l=t.layout,c=t.width,u="horizontal"===o||"horizontal"===l?c:i,f=Math.max(0,a*s-u),d=Math.min(f,e*s),h=Math.max(0,e*s-u+s);switch("smart"===r&&(r=n>=h-u&&n<=d+u?"auto":"center"),r){case"start":return d;case"end":return h;case"center":var p=Math.round(h+(d-h)/2);return p<Math.ceil(u/2)?0:p>f+Math.floor(u/2)?f:p;default:return n>=h&&n<=d?n:n<h?h:d}},getStartIndexForOffset:function(t,e){var r=t.itemCount,n=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(e/n)))},getStopIndexForStartIndex:function(t,e,r){var n=t.direction,o=t.height,i=t.itemCount,a=t.itemSize,s=t.layout,l=t.width,c=e*a,u="horizontal"===n||"horizontal"===s?l:o,f=Math.ceil((u+r-c)/a);return Math.max(0,Math.min(i-1,e+f-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}})},31349:(t,e,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,{default:()=>n})},56770:(t,e,r)=>{"use strict";r.d(e,{nanoid:()=>n});let n=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"")}}]);
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user