@iccandle/widget-web-trading 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@font-face{font-family:GIP;src:url(/gip-font/GIP-Thin.woff2) format("woff2");font-weight:100;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-UltraLight.woff2) format("woff2");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Light.woff2) format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-ExtraBold.woff2) format("woff2");font-weight:800;font-style:normal;font-display:swap}@font-face{font-family:GIP;src:url(/gip-font/GIP-Black.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap}:root{--background: white;--foreground: #020817;--card: #ffffff;--card-foreground: #020817;--popover: #ffffff;--popover-foreground: #020817;--primary-foreground: #f8fafc;--secondary-foreground: #f8fafc;--muted: hsl(210 40% 96.1%);--muted-foreground: hsl(215.4 16.3% 46.9%);--accent: #fff4e6;--destructive: hsl(0 84.2% 60.2%);--destructive-foreground: hsl(210 40% 98%);--border: hsl(216 8.2% 88%);--input: hsl(214.3 31.8% 91.4%);--radius: .5rem;--gray-0: #ffffff;--gray-1: #f5f2f0;--gray-2: #e9eaec;--gray-3: #dee0e3;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 33%);--gray-10: #464a53;--gray-11: #333333;--gray-12: #1f2228;--gray-13: #14151a;--gray-25: #fcfcfd;--cobalt-50: #eff8ff;--cobalt-100: #dceefc;--cobalt-200: #a9d6ff;--cobalt-300: #75bcff;--cobalt-400: #4ea5ff;--cobalt-500: #3596fc;--cobalt-600: #1f77f1;--cobalt-700: #0f5fd6;--cobalt-800: #0a47aa;--cobalt-900: #073379}.dark{--background: #101010;--foreground: #ededed;--card: #141414;--card-foreground: #ededed;--popover: #141414;--popover-foreground: #ededed;--primary-foreground: #f8fafc;--primary-1: #2d1a0a;--secondary-foreground: #f8fafc;--muted: hsl(217.2 32.6% 17.5%);--muted-foreground: hsl(215 20.2% 65.1%);--accent: #101010;--accent-foreground: #ededed;--destructive-foreground: #ededed;--border: #2e2e2e;--input: hsl(217.2 32.6% 17.5%);--gray-0: #14151a;--gray-1: #1f2228;--gray-2: #333333;--gray-3: #2e2e2e;--gray-6: hsl(224 8.4% 64.9%);--gray-7: hsl(222.9, 12.2%, 54.9%);--gray-8: hsl(224.2, 7.8%, 48%);--gray-9: hsl(226, 8%, 70%);--gray-10: #dee0e3;--gray-11: #e9eaec;--gray-12: #f5f2f0;--gray-13: #ffffff;--gray-25: #0a0a0a}.web-trading-widget-icon{display:block;flex-shrink:0}.web-trading-widget-icon--xs{width:.75rem;height:.75rem}.web-trading-widget-icon--sm{width:.875rem;height:.875rem}.web-trading-widget-icon--md{width:1rem;height:1rem}.web-trading-widget-text-muted{color:#64748b}.dark .web-trading-widget-text-muted{color:#94a3b8}.web-trading-widget-text-buy{color:#2563eb}.dark .web-trading-widget-text-buy{color:#60a5fa}.web-trading-widget-text-sell{color:#dc2626}.dark .web-trading-widget-text-sell{color:#f87171}.web-trading-widget-text-profit-positive{color:#2563eb}.dark .web-trading-widget-text-profit-positive{color:#60a5fa}.web-trading-widget-text-profit-negative{color:#dc2626}.dark .web-trading-widget-text-profit-negative{color:#f87171}.web-trading-widget-icon-btn{flex-shrink:0;color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-icon-btn:hover{color:var(--foreground)}.web-trading-widget-advanced__scan-limit-wrap{position:absolute;left:50%;top:.75rem;z-index:10;transform:translate(-50%)}.web-trading-widget-advanced__scan-limit-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;font-size:.75rem;line-height:1rem;border-radius:.375rem;background-color:#ef4444;color:#f8fafc;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-advanced__scan-limit-badge-title{font-weight:600}.web-trading-widget-advanced__scan-limit-badge-count{opacity:.8}.web-trading-widget-advanced__container{height:100%;width:100%}.web-trading-widget-root{display:flex;flex-direction:column;height:100%;width:100%;min-height:0;overflow:hidden}.web-trading-widget-trading-layout{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;font-family:GIP,sans-serif}.web-trading-widget-trading-layout__body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}@media(min-width:1024px){.web-trading-widget-trading-layout__body{flex-direction:row}}.web-trading-widget-trading-layout__chart-area{position:relative;display:flex;min-height:0;min-width:0;flex:1;flex-direction:column;overflow:hidden}@media(max-width:1023px){.web-trading-widget-trading-layout__chart-area{flex:1 1 auto;min-height:40vh}}.web-trading-widget-trading-layout__host-chart-slot{position:relative;flex:1 1 auto;min-height:0;min-width:0;height:100%;width:100%}.web-trading-widget-trading-layout__chart-slot{position:relative;min-height:0;flex:1;overflow:hidden}.web-trading-widget-trading-layout--news{position:relative;display:flex;height:100%;width:100%;min-height:0;flex-direction:column;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__chart-slot{position:relative;display:block;min-height:0;flex:1;overflow:hidden;isolation:isolate}.web-trading-widget-trading-layout--news .web-trading-widget-trading-layout__news-body{position:relative;display:block;min-height:0;height:100%;width:100%;overflow:hidden}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;pointer-events:none;overflow:visible}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay-layer>.web-trading-widget-new-order-overlay{pointer-events:auto}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay{position:absolute;z-index:20;flex:none;align-self:auto;max-width:calc(100% - 2rem)}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--draggable{top:auto;right:auto;display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-trading-layout--news .web-trading-widget-new-order-overlay--exec-panel>.web-trading-widget-market-panel--modal{width:340px;max-width:100%;flex:none}.web-trading-widget-side-panel{position:relative;display:flex;width:100%;flex-shrink:0;flex-direction:column;overflow:hidden;border-color:var(--border);border-top-width:1px;border-top-style:solid;max-height:42vh;min-height:240px}@media(max-width:1023px){.web-trading-widget-side-panel{height:auto;flex:0 1 auto;max-height:26vh;min-height:132px}.web-trading-widget-side-panel--with-scan{height:42vh;max-height:42vh;min-height:240px}}@media(min-width:1024px){.web-trading-widget-side-panel{height:100%;max-height:none;min-height:0;border-top-width:0;border-left-width:1px;border-left-style:solid;width:min(100%,340px);max-width:340px;flex:none}.web-trading-widget-side-panel--with-scan{min-width:min(340px,40%);max-width:50%;flex:1 1 50%;width:auto}}.web-trading-widget-side-panel__empty{display:flex;height:100%;min-height:200px;align-items:center;justify-content:center;padding:1rem;text-align:center;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-side-panel__empty{color:#94a3b8}.web-trading-widget-side-panel__scan-layout{display:flex;height:100%;min-height:0;flex-direction:column}.web-trading-widget-side-panel__tablist{margin:.5rem;display:flex;width:calc(100% - 1rem);flex-shrink:0;gap:.25rem;border-radius:.5rem;border:1px solid #e5e7eb;padding:.25rem}.dark .web-trading-widget-side-panel__tablist{border-color:#ffffff1a;background-color:#161616}@media(min-width:640px){.web-trading-widget-side-panel__tablist{margin:.75rem;width:calc(100% - 1.5rem)}}.web-trading-widget-side-panel__tab{flex:1;border-bottom:2px solid transparent;padding:.625rem .75rem;font-size:.75rem;line-height:1rem;font-weight:500;transition:color .15s,border-color .15s,background-color .15s;background:transparent;cursor:pointer;color:#6b7280}.web-trading-widget-side-panel__tab:hover{color:#111827}.dark .web-trading-widget-side-panel__tab{color:#ffffff80}.dark .web-trading-widget-side-panel__tab:hover{color:#fffc}@media(min-width:640px){.web-trading-widget-side-panel__tab{font-size:.875rem;line-height:1.25rem}}.web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#fff4e6;color:var(--foreground)}.dark .web-trading-widget-side-panel__tab--active{border-bottom-color:var(--primary-6);background-color:#2a2a2a;color:#fff}.web-trading-widget-side-panel__panels{position:relative;min-height:0;flex:1}.web-trading-widget-side-panel__tabpanel{height:100%;overflow-y:auto}.web-trading-widget-side-panel__tabpanel--scan{position:absolute;top:0;right:0;bottom:0;left:0}.web-trading-widget-side-panel__iframe{height:100%;width:100%;border:0}.web-trading-widget-side-panel__scroll{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-new-order-overlay{pointer-events:auto;position:absolute;width:-moz-fit-content;width:fit-content;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.web-trading-widget-new-order-overlay--dragging{z-index:50}.web-trading-widget-new-order-overlay--news:not(.web-trading-widget-new-order-overlay--draggable){top:1rem;right:1rem;left:auto;z-index:20}.web-trading-widget-new-order-overlay--draggable{top:auto;right:auto}.web-trading-widget-new-order-overlay--exec-panel{display:block;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content}.web-trading-widget-new-order-overlay--side-panel{width:min(100%,360px);max-height:calc(100% - 2rem);overflow:auto;border:1px solid var(--border);border-radius:.375rem;background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.web-trading-widget-new-order-overlay--side-panel .web-trading-widget-market-panel{border:none;box-shadow:none}.web-trading-widget-mini-order{-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:hidden;border-radius:.125rem;border:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:var(--background);box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.dark .web-trading-widget-mini-order{border-color:#ffffff14;background-color:#161616}.web-trading-widget-mini-order--expanded{width:340px}.web-trading-widget-mini-order--collapsed{width:-moz-fit-content;width:fit-content}.web-trading-widget-mini-order__row{display:flex;height:28px;align-items:stretch}.web-trading-widget-mini-order__drag-handle{display:flex;width:18px;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-mini-order__drag-handle:hover{color:var(--foreground)}.web-trading-widget-mini-order__drag-handle--grabbing{cursor:grabbing}.dark .web-trading-widget-mini-order__drag-handle{border-right-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__drag-handle:hover{color:#fffc}.web-trading-widget-mini-order__side-btn{display:flex;min-width:0;flex:1;align-items:stretch;overflow:hidden;transition:opacity .15s;border:none;padding:0;cursor:pointer}.web-trading-widget-mini-order__side-btn:disabled{opacity:.45;cursor:not-allowed}.web-trading-widget-mini-order__side-btn--sell{background-color:#d94a4a}.web-trading-widget-mini-order__side-btn--sell:hover:not(:disabled){background-color:#c94444}.web-trading-widget-mini-order__side-btn--sell:active:not(:disabled){background-color:#b83d3d}.web-trading-widget-mini-order__side-btn--buy{background-color:#3b82f6}.web-trading-widget-mini-order__side-btn--buy:hover:not(:disabled){background-color:#3575e6}.web-trading-widget-mini-order__side-btn--buy:active:not(:disabled){background-color:#2f6ad6}.web-trading-widget-mini-order__price{display:flex;min-width:0;flex:1;align-items:center;justify-content:center;padding:0 .375rem;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:#fffffff2}.web-trading-widget-mini-order__label{display:flex;width:40px;flex-shrink:0;align-items:center;justify-content:center;font-size:10px;font-weight:600;line-height:1;letter-spacing:.05em;color:#fff}.web-trading-widget-mini-order__label--sell{border-left:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__label--buy{border-right:1px solid rgba(255,255,255,.15)}.web-trading-widget-mini-order__volume{display:flex;width:80px;flex-shrink:0;align-items:stretch;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);border-right:1px solid color-mix(in srgb,var(--border) 60%,transparent);background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-mini-order__volume{border-left-color:#ffffff0f;border-right-color:#ffffff0f;background-color:#1e1e1e}.web-trading-widget-mini-order__volume-btn{display:flex;height:100%;width:1.25rem;flex-shrink:0;align-items:center;justify-content:center;color:#64748b;transition:color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-mini-order__volume-btn:disabled{opacity:.4;cursor:not-allowed}.dark .web-trading-widget-mini-order__volume-btn{color:#fff6}.dark .web-trading-widget-mini-order__volume-btn:hover:not(:disabled){color:#fffc}.web-trading-widget-mini-order__volume-input{height:100%;min-width:0;flex:1;border:0;background:transparent;text-align:center;font-size:11px;font-weight:400;font-variant-numeric:tabular-nums;line-height:1;color:var(--foreground);outline:none}.web-trading-widget-mini-order__volume-input:disabled{opacity:.5}.dark .web-trading-widget-mini-order__volume-input{color:#fff}.web-trading-widget-mini-order__toggle{display:flex;width:22px;flex-shrink:0;align-items:center;justify-content:center;border-left:1px solid color-mix(in srgb,var(--border) 60%,transparent);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-right:none;border-bottom:none;cursor:pointer;padding:0}.web-trading-widget-mini-order__toggle:hover{color:var(--foreground)}.dark .web-trading-widget-mini-order__toggle{border-left-color:#ffffff0f;color:#fff6}.dark .web-trading-widget-mini-order__toggle:hover{color:#fffc}.web-trading-widget-market-panel{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-market-panel--modal{width:340px;border:1px solid var(--border);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-market-panel--collapsed .web-trading-widget-market-panel__header{border-bottom:none}.web-trading-widget-market-panel__header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.25rem .75rem .25rem .5rem}.web-trading-widget-market-panel__drag-handle{display:flex;width:1.75rem;flex-shrink:0;touch-action:none;align-items:center;justify-content:center;align-self:stretch;border-right:1px solid var(--border);color:#64748b;transition:color .15s;background:transparent;border-top:none;border-left:none;border-bottom:none;cursor:grab;padding:0}.web-trading-widget-market-panel__drag-handle:hover{color:var(--foreground)}.web-trading-widget-market-panel__drag-handle--grabbing{cursor:grabbing}.web-trading-widget-market-panel__select-trigger{height:2rem;flex:1;border:0;background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0 center;padding-left:0;padding-right:1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;color:inherit}.web-trading-widget-market-panel__select-trigger:focus{outline:none;box-shadow:none}.web-trading-widget-market-panel__header-actions{display:flex;flex-shrink:0;align-items:center;gap:.25rem}.web-trading-widget-market-panel__header-btn{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-market-panel__header-btn:hover{color:var(--foreground)}.web-trading-widget-market-panel__accordion{width:100%}.web-trading-widget-market-panel__accordion-item{border-bottom:1px solid var(--border)}.web-trading-widget-market-panel__accordion-trigger{display:flex;width:100%;align-items:center;justify-content:space-between;border:none;background:transparent;cursor:pointer;color:inherit;padding:.625rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.web-trading-widget-market-panel__accordion-trigger:hover{text-decoration:none}.web-trading-widget-market-panel__accordion-trigger>svg{flex-shrink:0;transition:transform .2s}.web-trading-widget-market-panel__accordion-trigger[data-state=open]>svg,.web-trading-widget-market-panel__accordion-trigger--open>svg{transform:rotate(180deg)}.web-trading-widget-market-panel__accordion-content{display:flex;flex-direction:column;gap:.75rem;padding:0 .75rem .75rem}.web-trading-widget-market-panel__grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.web-trading-widget-market-panel__field{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-market-panel__field-label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-market-panel__field-label{color:#94a3b8}.web-trading-widget-market-panel__select-full{height:2.25rem;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding:0 2rem 0 .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__select-full:focus{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__select-full{border-color:var(--gray-3)}.web-trading-widget-market-panel__input{display:flex;height:2.25rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem;color:inherit}.web-trading-widget-market-panel__input:focus-visible{outline:none;box-shadow:0 0 0 1px var(--border)}.dark .web-trading-widget-market-panel__input{border-color:var(--gray-3)}.web-trading-widget-market-panel__footer{padding:.75rem}.web-trading-widget-market-panel__quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background-color:#f0f9ff;padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;font-weight:500;color:#dc2626}.dark .web-trading-widget-market-panel__quotes{background-color:#1c1c1c}.web-trading-widget-market-panel__quotes-ask{text-align:right}.web-trading-widget-market-panel__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.web-trading-widget-market-panel__sell-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#ea4c4c;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__sell-btn:hover:not(:disabled){background-color:#c74141}.web-trading-widget-market-panel__buy-btn{height:2.5rem;width:100%;border:none;border-radius:0;background-color:#3183ff;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;cursor:pointer}.web-trading-widget-market-panel__buy-btn:hover:not(:disabled){background-color:#296fd9}.web-trading-widget-market-panel__place-btn{height:2.5rem;width:100%;border:none;border-radius:0;font-size:.875rem;line-height:1.25rem;font-weight:600;cursor:pointer}.web-trading-widget-market-panel__place-btn--buy{background-color:#2563eb;color:#fff}.web-trading-widget-market-panel__place-btn--buy:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-market-panel__place-btn--sell{background-color:#ef4444;color:#fff}.web-trading-widget-market-panel__place-btn--sell:hover:not(:disabled){background-color:#ed2c2c}.web-trading-widget-market-panel__sell-btn:disabled,.web-trading-widget-market-panel__buy-btn:disabled,.web-trading-widget-market-panel__place-btn:disabled{opacity:.5;cursor:not-allowed}.web-trading-widget-detail-panel{width:100%;border-radius:.125rem;border-bottom:1px solid var(--border);background-color:var(--background)}.web-trading-widget-detail-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.5rem .75rem}.web-trading-widget-detail-panel__title{font-size:.875rem;line-height:1.375;text-transform:capitalize}.web-trading-widget-detail-panel__title--buy{color:#2563eb}.web-trading-widget-detail-panel__title--sell{color:#dc2626}.web-trading-widget-detail-panel__title--position{color:#2563eb;text-transform:none}.web-trading-widget-detail-panel__body{display:flex;flex-direction:column;gap:.75rem;padding:.75rem}.web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 50%,transparent)}.dark .web-trading-widget-detail-panel__input-muted{background-color:color-mix(in srgb,hsl(217.2 32.6% 17.5%) 50%,transparent)}.web-trading-widget-detail-panel__btn-full{height:2.5rem;width:100%;border-radius:.375rem;border:1px solid var(--input);background-color:transparent;font-size:.875rem;line-height:1.25rem;font-weight:500;color:var(--foreground);cursor:pointer}.web-trading-widget-detail-panel__btn-full:hover:not(:disabled){opacity:.8}.web-trading-widget-detail-panel__btn-full:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-detail-panel__btn-full{border-color:#ffffff1a}.web-trading-widget-detail-panel__action-btn{height:auto;min-height:2.5rem;width:100%;white-space:normal;padding-top:.5rem;padding-bottom:.5rem;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:600;color:#fff;background-color:#f97316;border:none;border-radius:.375rem;cursor:pointer}.web-trading-widget-detail-panel__action-btn:hover:not(:disabled){background-color:#ea580c}.web-trading-widget-confirmation{width:100%;border-radius:.125rem;background-color:var(--background)}.web-trading-widget-confirmation__close-row{display:flex;justify-content:flex-end;padding:.5rem}.web-trading-widget-confirmation__close-btn{color:#2563eb;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-confirmation__close-btn:hover{color:#1d4ed8}.web-trading-widget-confirmation__body{display:flex;flex-direction:column;gap:.75rem;padding:0 1rem 1rem}.web-trading-widget-confirmation__summary{font-size:.875rem;line-height:1.375;color:var(--foreground)}.web-trading-widget-confirmation__ticket,.web-trading-widget-confirmation__side{font-weight:500}.web-trading-widget-confirmation__side--sell{color:#dc2626}.web-trading-widget-confirmation__side--buy{color:#2563eb}.web-trading-widget-confirmation__price{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-confirmation__price{color:#94a3b8}.web-trading-widget-confirmation__status{font-size:1rem;line-height:1.5rem;font-weight:500;color:#16a34a}.web-trading-widget-confirmation__ok-btn{height:2.5rem;width:100%;background-color:#2563eb;color:#fff;border:none;border-radius:.375rem;font-size:.875rem;font-weight:500;cursor:pointer}.web-trading-widget-confirmation__ok-btn:hover:not(:disabled){background-color:#1d4ed8}.web-trading-widget-account-modal{display:flex;flex-direction:column;gap:1rem}@media(min-width:640px){.web-trading-widget-account-modal{max-width:28rem}}.web-trading-widget-account-modal__loading{font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-account-modal__loading{color:#94a3b8}.web-trading-widget-account-modal__error{font-size:.875rem;line-height:1.25rem;color:#ef4444}.web-trading-widget-account-modal__select{height:2.5rem;width:100%}.web-trading-widget-badge{display:inline-flex;align-items:center;border-radius:.375rem;border:1px solid transparent;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:600}.web-trading-widget-badge--destructive{background-color:#ef4444;color:#f8fafc}.web-trading-widget-badge--secondary{background-color:var(--secondary);color:var(--secondary-foreground)}.web-trading-widget-badge--outline{border-color:var(--border);color:var(--foreground)}.web-trading-widget-dialog{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:1rem}.web-trading-widget-dialog__overlay{position:absolute;top:0;right:0;bottom:0;left:0;background-color:color-mix(in srgb,var(--background) 80%,transparent);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.web-trading-widget-dialog__content{position:relative;z-index:1;width:100%;max-width:32rem;border-radius:1rem;border:1px solid var(--border);background-color:var(--background);padding:1.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-dialog__header{display:flex;flex-direction:column;gap:.375rem;border-bottom:1px solid var(--border);padding-bottom:1rem;margin-bottom:1rem}.web-trading-widget-dialog__title{margin:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;color:var(--foreground)}.web-trading-widget-dialog__description{margin:0;font-size:.875rem;line-height:1.25rem;color:#64748b}.dark .web-trading-widget-dialog__description{color:#94a3b8}.web-trading-widget-dialog__footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;margin-top:1rem}.web-trading-widget-btn{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;border-radius:.375rem;border:1px solid transparent;padding:0 1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;cursor:pointer;transition:opacity .15s,background-color .15s}.web-trading-widget-btn:hover:not(:disabled){opacity:.9}.web-trading-widget-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-btn--primary{background-color:var(--primary);color:var(--primary-foreground)}.web-trading-widget-btn--outline{border-color:var(--input);background-color:transparent;color:var(--foreground)}.dark .web-trading-widget-btn--outline{border-color:#ffffff1a}.web-trading-widget-toast-viewport{position:fixed;right:1rem;top:1rem;z-index:100;display:flex;width:min(24rem,calc(100vw - 2rem));flex-direction:column;gap:.5rem;pointer-events:none}.web-trading-widget-toast{pointer-events:auto;display:flex;align-items:flex-start;gap:.5rem;border-radius:.5rem;border:1px solid var(--border);background-color:var(--background);padding:.75rem 1rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.web-trading-widget-toast__content{flex:1 1 auto;min-width:0}.web-trading-widget-toast__close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin:-.125rem -.25rem 0 0;padding:0;border:none;border-radius:.25rem;background:transparent;color:currentColor;opacity:.6;cursor:pointer;transition:opacity .15s ease,background-color .15s ease}.web-trading-widget-toast__close:hover{opacity:1;background-color:#00000014}.web-trading-widget-toast__close:focus-visible{outline:2px solid var(--ring, currentColor);outline-offset:1px;opacity:1}.web-trading-widget-toast--destructive{border-color:#ef4444;background-color:#ef4444;color:#f8fafc}.web-trading-widget-toast__title{margin:0;font-size:.875rem;line-height:1.25rem;font-weight:600}.web-trading-widget-toast__description{font-size:.875rem;line-height:1.25rem}.web-trading-widget-stepper{display:flex;flex-direction:column;gap:.25rem}.web-trading-widget-stepper__header{display:flex;align-items:center;justify-content:space-between;gap:.25rem}.web-trading-widget-stepper__label{font-size:.75rem;line-height:1rem;color:#64748b}.dark .web-trading-widget-stepper__label{color:#94a3b8}.web-trading-widget-stepper__clear{color:#64748b;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-stepper__clear:hover:not(:disabled){color:var(--foreground)}.web-trading-widget-stepper__clear:disabled{opacity:.4}.web-trading-widget-stepper__control{display:flex;align-items:center;overflow:hidden;border-radius:.375rem;border:1px solid hsl(214.3 31.8% 91.4%);background-color:var(--background)}.dark .web-trading-widget-stepper__control{border-color:#1e293b}.web-trading-widget-stepper__control--disabled{opacity:.6}.web-trading-widget-stepper__btn{display:flex;height:2.25rem;width:2.25rem;flex-shrink:0;align-items:center;justify-content:center;border:none;background:transparent;cursor:pointer;padding:0}.web-trading-widget-stepper__btn--minus{border-right:1px solid hsl(214.3 31.8% 91.4%)}.web-trading-widget-stepper__btn--plus{border-left:1px solid hsl(214.3 31.8% 91.4%)}.dark .web-trading-widget-stepper__btn--minus,.dark .web-trading-widget-stepper__btn--plus{border-color:#1e293b}.web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#f1f5f9}.dark .web-trading-widget-stepper__btn:hover:not(:disabled){background-color:#1e293b}.web-trading-widget-stepper__btn:disabled{opacity:.4;cursor:not-allowed}.web-trading-widget-stepper__input{height:2.25rem;min-width:0;flex:1;border:0;background:transparent;padding:0 .5rem;text-align:center;font-size:.875rem;line-height:1.25rem;outline:none}.web-trading-widget-stepper__input:focus-visible{outline:none}.web-trading-widget-stepper__input:disabled{cursor:not-allowed}.web-trading-widget-terminal-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-terminal{position:relative;z-index:1;display:flex;flex-shrink:0;flex-direction:column;overflow:hidden;border-top:1px solid var(--border);background-color:var(--background);font-size:.75rem;line-height:1rem;color:var(--foreground)}.dark .web-trading-widget-terminal{background-color:#000;color:#fff}@media(max-width:1023px){.web-trading-widget-terminal:not(.web-trading-widget-terminal--embedded){max-height:26vh}}.web-trading-widget-terminal__resize-bar-wrap{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-terminal__resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__resize-bar{display:flex;min-height:20px;flex:1;cursor:row-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center;padding-top:.125rem;padding-bottom:.125rem}.web-trading-widget-terminal__resize-icon{color:#64748b}.dark .web-trading-widget-terminal__resize-icon{color:#ffffff80}.web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-terminal__toolbar{display:flex;flex-shrink:0;align-items:center;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__toolbar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-bar{display:flex;flex-shrink:0;align-items:stretch;border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__tab-bar{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__tab-btn{flex-shrink:0;height:2rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;white-space:nowrap;border:none;border-bottom:2px solid transparent;background:transparent;color:#64748b;cursor:pointer;transition:color .15s,border-color .15s}.web-trading-widget-terminal__tab-btn:hover{color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn{color:#fff9}.dark .web-trading-widget-terminal__tab-btn:hover{color:#fff}.web-trading-widget-terminal__tab-btn--active{border-bottom-color:var(--primary);color:var(--foreground)}.dark .web-trading-widget-terminal__tab-btn--active{color:#fff}.web-trading-widget-terminal__deals-wrap{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-terminal__deals-table{width:100%;min-width:1100px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__deals-footer{display:flex;align-items:center;justify-content:center;min-width:1100px;padding:.75rem 1rem;border-top:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-footer{border-top-color:#ffffff1a}.web-trading-widget-terminal__deals-detail-btn{font-size:.75rem;font-weight:500;color:var(--primary);text-decoration:none;padding:.25rem .75rem;border-radius:var(--radius);transition:background-color .15s}.web-trading-widget-terminal__deals-detail-btn:hover{background-color:color-mix(in srgb,var(--primary) 10%,transparent)}.web-trading-widget-terminal__deals-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__deals-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-row{border-bottom:1px solid var(--border)}.dark .web-trading-widget-terminal__skeleton-row{border-bottom-color:#ffffff1a}.web-trading-widget-terminal__skeleton-bar{height:.75rem;width:4rem;border-radius:.25rem;background-color:color-mix(in srgb,var(--border) 60%,transparent);animation:web-trading-widget-skeleton-pulse 1.4s ease-in-out infinite}.web-trading-widget-terminal__skeleton-bar--wide{width:8rem}@keyframes web-trading-widget-skeleton-pulse{0%,to{opacity:1}50%{opacity:.4}}.web-trading-widget-terminal__toolbar-actions{display:flex;margin-left:auto;align-items:center;justify-content:flex-end;gap:.5rem;padding-right:.75rem}.web-trading-widget-terminal__close-all-btn{margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:#dc2626;background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__close-all-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__close-all-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__close-all-btn{color:#f87171}.web-trading-widget-terminal__refetch-btn{display:inline-flex;align-items:center;gap:.375rem;margin-left:.5rem;height:2rem;border-radius:.125rem;padding:0 .75rem;font-size:.75rem;line-height:1rem;color:var(--foreground);background:transparent;border:none;cursor:pointer;transition:opacity .15s}.web-trading-widget-terminal__refetch-btn:hover:not(:disabled){opacity:.6}.web-trading-widget-terminal__refetch-btn:disabled{cursor:not-allowed;opacity:.5}.web-trading-widget-terminal__refetch-icon--spinning{animation:web-trading-widget-refetch-spin 1s linear infinite}@keyframes web-trading-widget-refetch-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.web-trading-widget-terminal__toolbar-profit{font-size:.75rem;line-height:1rem;font-weight:500;font-variant-numeric:tabular-nums;color:var(--foreground)}.dark .web-trading-widget-terminal__toolbar-profit{color:#fff}.web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-terminal__table{width:100%;min-width:1060px;table-layout:fixed;border-collapse:collapse}.web-trading-widget-terminal__cell{padding:.375rem .5rem}.web-trading-widget-terminal__cell--left{text-align:left}.web-trading-widget-terminal__cell--right{text-align:right}.web-trading-widget-terminal__cell--nowrap{white-space:nowrap}.web-trading-widget-terminal__cell--truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.web-trading-widget-terminal__cell--capitalize{text-transform:capitalize}.web-trading-widget-terminal__cell--close{width:2rem;padding:.375rem .25rem}.web-trading-widget-terminal__head-row{color:#64748b}.dark .web-trading-widget-terminal__head-row{color:#ffffffb3}.web-trading-widget-terminal__head-cell{font-weight:400;white-space:nowrap}.web-trading-widget-terminal-col--symbol{width:88px}.web-trading-widget-terminal-col--ticket{width:72px}.web-trading-widget-terminal-col--time{width:148px}.web-trading-widget-terminal-col--type{width:56px}.web-trading-widget-terminal-col--volume{width:88px}.web-trading-widget-terminal-col--price{width:80px}.web-trading-widget-terminal-col--sl,.web-trading-widget-terminal-col--tp{width:72px}.web-trading-widget-terminal-col--price2{width:80px}.web-trading-widget-terminal-col--swap{width:100px}.web-trading-widget-terminal-col--profit{width:88px}.web-trading-widget-terminal-col--close{width:2rem}.web-trading-widget-terminal__row{cursor:pointer;border-bottom:1px solid var(--border)}.web-trading-widget-terminal__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 30%,transparent)}.dark .web-trading-widget-terminal__row{border-bottom-color:#ffffff1a}.dark .web-trading-widget-terminal__row:hover{background-color:#ffffff0d}.web-trading-widget-terminal__row--selected{background-color:#f0f9ff}.dark .web-trading-widget-terminal__row--selected{background-color:#ffffff1a}.web-trading-widget-terminal__empty-cell{padding-top:2rem;padding-bottom:2rem;text-align:center;color:#64748b}.dark .web-trading-widget-terminal__empty-cell{color:#ffffff80}.web-trading-widget-terminal__empty-inner{display:flex;flex-direction:column;align-items:center;gap:.75rem}.web-trading-widget-terminal__empty-text{color:#64748b}.dark .web-trading-widget-terminal__empty-text{color:#ffffffb3}.web-trading-widget-terminal__create-btn{background-color:var(--primary);padding:.375rem 1rem;color:#fff;transition:background-color .15s;border:none;cursor:pointer}.web-trading-widget-terminal__create-btn:hover{background-color:color-mix(in srgb,var(--primary) 90%,transparent)}.dark .web-trading-widget-terminal__create-btn{background-color:#333638;color:var(--primary)}.web-trading-widget-terminal__row-close-btn{display:inline-flex;height:1.5rem;width:1.5rem;align-items:center;justify-content:center;border-radius:.125rem;color:#64748b;transition:color .15s,background-color .15s;background:transparent;border:none;cursor:pointer;padding:0}.web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#fef2f2;color:#dc2626}.web-trading-widget-terminal__row-close-btn:disabled{cursor:not-allowed;opacity:.5}.dark .web-trading-widget-terminal__row-close-btn{color:#ffffff80}.dark .web-trading-widget-terminal__row-close-btn:hover:not(:disabled){background-color:#ef444433;color:#f87171}.web-trading-widget-terminal__stats{flex-shrink:0;border-top:1px solid var(--border);color:#64748b}.dark .web-trading-widget-terminal__stats{border-top-color:#ffffff1a;color:#fffc}.web-trading-widget-terminal__stats-row{display:flex;flex-wrap:wrap;align-items:center;-moz-column-gap:1.5rem;column-gap:1.5rem;row-gap:.25rem}.web-trading-widget-terminal__stats-row--tabular{font-variant-numeric:tabular-nums}.web-trading-widget-terminal__stats-profit{margin-left:auto;color:var(--foreground)}.dark .web-trading-widget-terminal__stats-profit{color:#fff}.web-trading-widget-market-watch-resize-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.web-trading-widget-market-watch{position:relative;z-index:1;display:flex;height:100%;flex-shrink:0;background-color:var(--background)}.web-trading-widget-market-watch__resize-rail{display:flex;width:1rem;flex-shrink:0;flex-direction:column;align-items:center;border-left:1px solid var(--border);background-color:var(--background)}.web-trading-widget-market-watch__resize-handle{display:flex;min-height:48px;width:100%;flex:1;cursor:col-resize;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:center}.web-trading-widget-market-watch__resize-icon{color:#64748b}.dark .web-trading-widget-market-watch__resize-icon{color:#ffffff80}.web-trading-widget-market-watch__content{display:flex;min-width:0;flex:1;flex-direction:column}.web-trading-widget-market-watch__search-wrap{border-bottom:1px solid var(--border);padding:.5rem}.web-trading-widget-market-watch__search-field{position:relative}.web-trading-widget-market-watch__search-icon{pointer-events:none;position:absolute;left:.5rem;top:50%;transform:translateY(-50%);color:#64748b}.web-trading-widget-market-watch__search-input{height:2rem;padding-left:2rem;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__list{min-height:0;flex:1;overflow-y:auto}.web-trading-widget-market-watch__table{width:100%;border-collapse:collapse;font-size:.75rem;line-height:1rem}.web-trading-widget-market-watch__thead{position:sticky;top:0;z-index:1;background-color:var(--background)}.web-trading-widget-market-watch__head-row{border-bottom:1px solid var(--border);color:#64748b}.web-trading-widget-market-watch__th{padding:.375rem .5rem;font-weight:500}.web-trading-widget-market-watch__th--left{text-align:left}.web-trading-widget-market-watch__th--right{text-align:right}.web-trading-widget-market-watch__row{cursor:pointer;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.web-trading-widget-market-watch__row:hover{background-color:color-mix(in srgb,hsl(210 40% 96.1%) 40%,transparent)}.web-trading-widget-market-watch__row--active{background-color:#f0f9ff}.dark .web-trading-widget-market-watch__row--active{background-color:#0ea5e966}.web-trading-widget-market-watch__td{padding:.375rem .5rem}.web-trading-widget-market-watch__td--symbol{font-weight:500}.web-trading-widget-market-watch__td--quote{text-align:right;font-variant-numeric:tabular-nums}.web-trading-widget-market-watch__quote--neutral{color:var(--foreground)}.web-trading-widget-market-watch__quote--muted{color:#64748b}.dark .web-trading-widget-market-watch__quote--muted{color:#94a3b8}.web-trading-widget-news-orders-overlay-root{position:absolute;top:0;right:0;bottom:0;left:0;z-index:40;overflow:visible;pointer-events:none}.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders-overlay__trigger,.web-trading-widget-news-orders-overlay-root .web-trading-widget-news-orders__panel{pointer-events:auto}.web-trading-widget-news-orders__panel{position:absolute;left:0;right:0;bottom:0;z-index:50;display:flex;width:100%;min-height:0;flex-direction:column;overflow:hidden;pointer-events:auto;border-top:1px solid var(--border);background-color:var(--background);box-shadow:0 -8px 24px #0000002e}.dark .web-trading-widget-news-orders__panel{background-color:#000;box-shadow:0 -8px 24px #00000073}.web-trading-widget-news-orders__panel-resize-bar-wrap{display:flex;width:100%;flex-shrink:0;align-items:stretch;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}.dark .web-trading-widget-news-orders__panel-resize-bar-wrap{border-bottom-color:#ffffff1a}.web-trading-widget-news-orders__panel-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:.75rem;border-bottom:1px solid var(--border);padding:.625rem .75rem}.web-trading-widget-news-orders__panel-title{margin:0;font-size:.9375rem;font-weight:600;line-height:1.25;color:var(--foreground)}.web-trading-widget-news-orders__panel-close{display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#64748b;cursor:pointer;padding:.25rem}.web-trading-widget-news-orders__panel-close:hover{color:var(--foreground)}.dark .web-trading-widget-news-orders__panel-close{color:#ffffff8c}.dark .web-trading-widget-news-orders__panel-close:hover{color:#fff}.web-trading-widget-news-orders__panel-body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.web-trading-widget-news-orders__panel-body .web-trading-widget-terminal--embedded{flex:1;min-height:0;height:100%}.web-trading-widget-news-orders__table{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden;font-size:.75rem;line-height:1rem;color:var(--foreground)}.web-trading-widget-news-orders__table .web-trading-widget-terminal__header-scroll{flex-shrink:0;overflow-x:auto}.web-trading-widget-news-orders__table .web-trading-widget-terminal__body-scroll{min-height:0;flex:1;overflow:auto}.web-trading-widget-news-orders-overlay__trigger{position:absolute;left:1rem;bottom:1rem;z-index:40;pointer-events:auto;display:inline-flex;align-items:center;gap:.5rem;border-radius:9999px;border:1px solid var(--border);background-color:var(--background);padding:.5rem .875rem;font-size:.8125rem;font-weight:600;line-height:1;color:var(--foreground);box-shadow:0 4px 12px #0000001f;cursor:pointer}.web-trading-widget-news-orders-overlay__trigger:hover{background-color:var(--muted)}.dark .web-trading-widget-news-orders-overlay__trigger{background-color:#141414;box-shadow:0 4px 12px #0006}.web-trading-widget-news-orders-overlay__badge{display:inline-flex;min-width:1.25rem;align-items:center;justify-content:center;border-radius:9999px;background-color:var(--primary);padding:.125rem .375rem;font-size:.6875rem;font-weight:600;color:var(--primary-foreground)}`)),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
1
2
  var Gl = Object.defineProperty;
2
3
  var ho = (e) => {
3
4
  throw TypeError(e);
@@ -13,7 +14,7 @@ var Ar = (e, t, n, r) => ({
13
14
  return _(e, t, r);
14
15
  }
15
16
  });
16
- import { jsx as l, jsxs as E, Fragment as Ye } from "react/jsx-runtime";
17
+ import { jsx as l, jsxs as A, Fragment as Ye } from "react/jsx-runtime";
17
18
  import * as Ve from "react";
18
19
  import fr, { createContext as hr, useMemo as we, useContext as mr, useState as H, forwardRef as oc, createElement as mo, useEffect as J, useRef as pe, useCallback as Z } from "react";
19
20
  const Zl = [
@@ -121,7 +122,7 @@ function pd({
121
122
  onPointerDownOutside: r,
122
123
  onEscapeKeyDown: i
123
124
  }) {
124
- return e ? /* @__PURE__ */ E("div", { className: "web-trading-widget-dialog", role: "dialog", "aria-modal": "true", children: [
125
+ return e ? /* @__PURE__ */ A("div", { className: "web-trading-widget-dialog", role: "dialog", "aria-modal": "true", children: [
125
126
  /* @__PURE__ */ l(
126
127
  "div",
127
128
  {
@@ -154,7 +155,7 @@ function lc({
154
155
  }) {
155
156
  var m;
156
157
  const { t: o } = Ae(), [a, c] = H(""), d = a || ((m = n[0]) == null ? void 0 : m.login) || "", u = !t && n.length > 0 && d !== "", f = !t && n.length === 0;
157
- return /* @__PURE__ */ E(
158
+ return /* @__PURE__ */ A(
158
159
  pd,
159
160
  {
160
161
  open: e,
@@ -162,7 +163,7 @@ function lc({
162
163
  onPointerDownOutside: (h) => h.preventDefault(),
163
164
  onEscapeKeyDown: (h) => h.preventDefault(),
164
165
  children: [
165
- /* @__PURE__ */ E(gd, { children: [
166
+ /* @__PURE__ */ A(gd, { children: [
166
167
  /* @__PURE__ */ l(yd, { children: o("WebTrading.selectTradingAccount") }),
167
168
  /* @__PURE__ */ l(bd, { children: o("WebTrading.selectAccountDescription") })
168
169
  ] }),
@@ -173,7 +174,7 @@ function lc({
173
174
  className: "web-trading-widget-account-modal__select web-trading-widget-market-panel__select-full",
174
175
  "aria-label": o("WebTrading.selectAccount"),
175
176
  onChange: (h) => c(h.target.value),
176
- children: n.map((h) => /* @__PURE__ */ E("option", { value: h.login, children: [
177
+ children: n.map((h) => /* @__PURE__ */ A("option", { value: h.login, children: [
177
178
  h.label,
178
179
  " (",
179
180
  h.balance.toFixed(2),
@@ -183,7 +184,7 @@ function lc({
183
184
  ] }, h.login))
184
185
  }
185
186
  ),
186
- /* @__PURE__ */ l(_d, { children: f ? /* @__PURE__ */ E(Ye, { children: [
187
+ /* @__PURE__ */ l(_d, { children: f ? /* @__PURE__ */ A(Ye, { children: [
187
188
  i ? /* @__PURE__ */ l("a", { href: i, className: "web-trading-widget-btn web-trading-widget-btn--outline", children: o("WebTrading.back") }) : null,
188
189
  s ? /* @__PURE__ */ l("a", { href: s, className: "web-trading-widget-btn web-trading-widget-btn--primary", children: o("WebTrading.createAccount") }) : null
189
190
  ] }) : /* @__PURE__ */ l(
@@ -1289,15 +1290,15 @@ function Zd() {
1289
1290
  function p(O) {
1290
1291
  if (!T) {
1291
1292
  if (T = !0, S = O, O = m(O), h !== void 0 && w.hasValue) {
1292
- var A = w.value;
1293
- if (h(A, O))
1294
- return g = A;
1293
+ var x = w.value;
1294
+ if (h(x, O))
1295
+ return g = x;
1295
1296
  }
1296
1297
  return g = O;
1297
1298
  }
1298
- if (A = g, r(S, O)) return A;
1299
+ if (x = g, r(S, O)) return x;
1299
1300
  var P = m(O);
1300
- return h !== void 0 && h(A, P) ? (S = O, A) : (S = O, g = P);
1301
+ return h !== void 0 && h(x, P) ? (S = O, x) : (S = O, g = P);
1301
1302
  }
1302
1303
  var T = !1, S, g, C = f === void 0 ? null : f;
1303
1304
  return [
@@ -1349,16 +1350,16 @@ function Yd() {
1349
1350
  function p(O) {
1350
1351
  if (!T) {
1351
1352
  if (T = !0, S = O, O = m(O), h !== void 0 && w.hasValue) {
1352
- var A = w.value;
1353
- if (h(A, O))
1354
- return g = A;
1353
+ var x = w.value;
1354
+ if (h(x, O))
1355
+ return g = x;
1355
1356
  }
1356
1357
  return g = O;
1357
1358
  }
1358
- if (A = g, r(S, O))
1359
- return A;
1359
+ if (x = g, r(S, O))
1360
+ return x;
1360
1361
  var P = m(O);
1361
- return h !== void 0 && h(A, P) ? (S = O, A) : (S = O, g = P);
1362
+ return h !== void 0 && h(x, P) ? (S = O, x) : (S = O, g = P);
1362
1363
  }
1363
1364
  var T = !1, S, g, C = f === void 0 ? null : f;
1364
1365
  return [
@@ -1469,35 +1470,35 @@ function su({
1469
1470
  onExpand: h,
1470
1471
  onPlaceOrder: y
1471
1472
  }) {
1472
- const { t: w } = Ae(), [b, p] = H(String(r)), [T, S] = H(null), [g, C] = H(u), O = se((x) => x.setOrderSide), A = se((x) => x.setVolumeLots);
1473
+ const { t: w } = Ae(), [b, p] = H(String(r)), [T, S] = H(null), [g, C] = H(u), O = se((E) => E.setOrderSide), x = se((E) => E.setVolumeLots);
1473
1474
  u !== g && (C(u), S(null));
1474
1475
  const P = T ?? u === "scan";
1475
1476
  J(() => {
1476
1477
  m();
1477
1478
  }, [P, m]);
1478
1479
  const I = () => {
1479
- const x = !P;
1480
- x && h(), S(x);
1481
- }, B = Number(Ot(Ct(e))), z = t !== null ? _e(t, B) : "—", L = n !== null ? _e(n, B) : "—", G = !o && !a && c !== "" && (t !== null && n !== null), oe = (x) => {
1482
- const $ = Number(b), R = Number.isFinite($) && $ > 0 ? $ : r, Q = Math.max(s, R + x * i), de = Ni(Q, 2);
1483
- p(de), A(Q);
1480
+ const E = !P;
1481
+ E && h(), S(E);
1482
+ }, B = Number(Ot(Ct(e))), z = t !== null ? _e(t, B) : "—", L = n !== null ? _e(n, B) : "—", G = !o && !a && c !== "" && (t !== null && n !== null), oe = (E) => {
1483
+ const $ = Number(b), R = Number.isFinite($) && $ > 0 ? $ : r, Q = Math.max(s, R + E * i), de = Ni(Q, 2);
1484
+ p(de), x(Q);
1484
1485
  }, k = () => {
1485
- const x = Number(b);
1486
- if (!Number.isFinite(x) || x <= 0) {
1487
- p(Ni(r, 2)), A(r);
1486
+ const E = Number(b);
1487
+ if (!Number.isFinite(E) || E <= 0) {
1488
+ p(Ni(r, 2)), x(r);
1488
1489
  return;
1489
1490
  }
1490
- const $ = Math.max(s, x), R = Ni($, 2);
1491
- p(R), A($);
1492
- }, D = (x) => {
1493
- t === null || n === null || O({ side: x, entryPrice: x === "buy" ? n : t });
1494
- }, M = (x) => {
1491
+ const $ = Math.max(s, E), R = Ni($, 2);
1492
+ p(R), x($);
1493
+ }, D = (E) => {
1494
+ t === null || n === null || O({ side: E, entryPrice: E === "buy" ? n : t });
1495
+ }, M = (E) => {
1495
1496
  if (t === null || n === null || !c)
1496
1497
  return;
1497
1498
  const $ = Number(b), R = Math.max(s, Number.isFinite($) && $ > 0 ? $ : r);
1498
- O({ side: x, entryPrice: x === "buy" ? n : t }), y({
1499
+ O({ side: E, entryPrice: E === "buy" ? n : t }), y({
1499
1500
  login: c,
1500
- side: x,
1501
+ side: E,
1501
1502
  volumeLots: R,
1502
1503
  bid: t,
1503
1504
  ask: n
@@ -1507,7 +1508,7 @@ function su({
1507
1508
  "div",
1508
1509
  {
1509
1510
  className: `web-trading-widget-mini-order${P ? " web-trading-widget-mini-order--expanded" : " web-trading-widget-mini-order--collapsed"}`,
1510
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__row", children: [
1511
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__row", children: [
1511
1512
  /* @__PURE__ */ l(
1512
1513
  "button",
1513
1514
  {
@@ -1518,8 +1519,8 @@ function su({
1518
1519
  children: /* @__PURE__ */ l(uc, { className: "web-trading-widget-icon web-trading-widget-icon--sm", strokeWidth: 2 })
1519
1520
  }
1520
1521
  ),
1521
- P ? /* @__PURE__ */ E(Ye, { children: [
1522
- /* @__PURE__ */ E(
1522
+ P ? /* @__PURE__ */ A(Ye, { children: [
1523
+ /* @__PURE__ */ A(
1523
1524
  "button",
1524
1525
  {
1525
1526
  type: "button",
@@ -1533,7 +1534,7 @@ function su({
1533
1534
  ]
1534
1535
  }
1535
1536
  ),
1536
- /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__volume", children: [
1537
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__volume", children: [
1537
1538
  /* @__PURE__ */ l(
1538
1539
  "button",
1539
1540
  {
@@ -1552,7 +1553,7 @@ function su({
1552
1553
  inputMode: "decimal",
1553
1554
  value: b,
1554
1555
  disabled: !G,
1555
- onChange: (x) => p(x.target.value),
1556
+ onChange: (E) => p(E.target.value),
1556
1557
  onBlur: k,
1557
1558
  className: "web-trading-widget-mini-order__volume-input"
1558
1559
  }
@@ -1569,7 +1570,7 @@ function su({
1569
1570
  }
1570
1571
  )
1571
1572
  ] }),
1572
- /* @__PURE__ */ E(
1573
+ /* @__PURE__ */ A(
1573
1574
  "button",
1574
1575
  {
1575
1576
  type: "button",
@@ -1678,9 +1679,9 @@ function Tc(e) {
1678
1679
  p
1679
1680
  );
1680
1681
  u.current = z, xo(p, z);
1681
- }, A = (I) => {
1682
+ }, x = (I) => {
1682
1683
  if (I.pointerId === T) {
1683
- Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", A), b.removeEventListener("pointercancel", A), f.current = null, d(!1), a(u.current), document.body.style.cursor = "", document.body.style.userSelect = "";
1684
+ Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", x), b.removeEventListener("pointercancel", x), f.current = null, d(!1), a(u.current), document.body.style.cursor = "", document.body.style.userSelect = "";
1684
1685
  try {
1685
1686
  window.localStorage.setItem(t, JSON.stringify(u.current));
1686
1687
  } catch {
@@ -1689,8 +1690,8 @@ function Tc(e) {
1689
1690
  }, P = (I) => {
1690
1691
  I.pointerId === T && (I.preventDefault(), O(I.clientX, I.clientY));
1691
1692
  };
1692
- b.addEventListener("pointermove", P), b.addEventListener("pointerup", A), b.addEventListener("pointercancel", A), f.current = () => {
1693
- Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", A), b.removeEventListener("pointercancel", A), document.body.style.cursor = "", document.body.style.userSelect = "", d(!1);
1693
+ b.addEventListener("pointermove", P), b.addEventListener("pointerup", x), b.addEventListener("pointercancel", x), f.current = () => {
1694
+ Eo(b, T), b.removeEventListener("pointermove", P), b.removeEventListener("pointerup", x), b.removeEventListener("pointercancel", x), document.body.style.cursor = "", document.body.style.userSelect = "", d(!1);
1694
1695
  };
1695
1696
  },
1696
1697
  [t]
@@ -2762,10 +2763,10 @@ function wi(e, t, n) {
2762
2763
  if (v.endsWith(T, "{}"))
2763
2764
  T = r ? T : T.slice(0, -2), p = h(p, 1);
2764
2765
  else if (v.isArray(p) && Df(p) || (v.isFileList(p) || v.endsWith(T, "[]")) && (g = v.toArray(p)))
2765
- return T = Fc(T), g.forEach(function(O, A) {
2766
+ return T = Fc(T), g.forEach(function(O, x) {
2766
2767
  !(v.isUndefined(O) || O === null) && t.append(
2767
2768
  // eslint-disable-next-line no-nested-ternary
2768
- o === !0 ? Ri([T], A, s) : o === null ? T : T + "[]",
2769
+ o === !0 ? Ri([T], x, s) : o === null ? T : T + "[]",
2769
2770
  f(O)
2770
2771
  );
2771
2772
  }), !1;
@@ -3369,11 +3370,11 @@ const ch = typeof XMLHttpRequest < "u", lh = ch && function(e) {
3369
3370
  request: b
3370
3371
  };
3371
3372
  Hc(
3372
- function(A) {
3373
- n(A), w();
3373
+ function(x) {
3374
+ n(x), w();
3374
3375
  },
3375
- function(A) {
3376
- r(A), w();
3376
+ function(x) {
3377
+ r(x), w();
3377
3378
  },
3378
3379
  C
3379
3380
  ), b = null;
@@ -3624,7 +3625,7 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3624
3625
  data: g,
3625
3626
  signal: C,
3626
3627
  cancelToken: O,
3627
- timeout: A,
3628
+ timeout: x,
3628
3629
  onDownloadProgress: P,
3629
3630
  onUploadProgress: I,
3630
3631
  responseType: B,
@@ -3635,11 +3636,11 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3635
3636
  maxBodyLength: oe
3636
3637
  } = qc(p);
3637
3638
  const k = v.isNumber(G) && G > -1, D = v.isNumber(oe) && oe > -1, M = (N) => v.hasOwnProp(p, N) ? p[N] : void 0;
3638
- let x = i || fetch;
3639
+ let E = i || fetch;
3639
3640
  B = B ? (B + "").toLowerCase() : "text";
3640
3641
  let $ = dh(
3641
3642
  [C, O && O.toAbortSignal()],
3642
- A
3643
+ x
3643
3644
  ), R = null;
3644
3645
  const Q = $ && $.unsubscribe && (() => {
3645
3646
  $.unsubscribe();
@@ -3738,7 +3739,7 @@ const Zs = "1.18.1", jo = 64 * 1024, { isFunction: Lr } = v, gh = (e) => encodeU
3738
3739
  credentials: Be ? L : void 0
3739
3740
  };
3740
3741
  R = c && new s(T, Se);
3741
- let Le = await (c ? x(R, Y) : x(T, Se));
3742
+ let Le = await (c ? E(R, Y) : E(T, Se));
3742
3743
  const Ne = He.from(Le.headers);
3743
3744
  if (k) {
3744
3745
  const ee = v.toFiniteNumber(Ne.getContentLength());
@@ -4580,7 +4581,7 @@ function Uh({
4580
4581
  hasConfirmedAccount: g,
4581
4582
  needsAccountSelection: C,
4582
4583
  confirmAccountSelection: O,
4583
- placeMarketOrder: A
4584
+ placeMarketOrder: x
4584
4585
  } = r, P = se((k) => k.setDraft), I = se((k) => k.clearDraft), B = fe((k) => k.selectedPositionTicket), z = fe((k) => k.selectedOrderTicket), L = B !== null || z !== null, Y = Number(Ot(Ct(e))), G = Bn(Y);
4585
4586
  J(() => {
4586
4587
  if (g && !L) {
@@ -4614,7 +4615,7 @@ function Uh({
4614
4615
  t
4615
4616
  ]);
4616
4617
  const oe = (k) => {
4617
- A({
4618
+ x({
4618
4619
  symbolTicker: e,
4619
4620
  login: k.login,
4620
4621
  executionMode: "market",
@@ -4633,7 +4634,7 @@ function Uh({
4633
4634
  ask: k.ask
4634
4635
  });
4635
4636
  };
4636
- return /* @__PURE__ */ E(Ye, { children: [
4637
+ return /* @__PURE__ */ A(Ye, { children: [
4637
4638
  /* @__PURE__ */ l(
4638
4639
  lc,
4639
4640
  {
@@ -4865,20 +4866,20 @@ const ns = (e, t, n) => {
4865
4866
  }
4866
4867
  },
4867
4868
  [e]
4868
- ), A = Z(() => {
4869
+ ), x = Z(() => {
4869
4870
  for (const k of qh)
4870
4871
  O(k);
4871
4872
  b.current = {};
4872
4873
  }, [O]), P = Z(
4873
- (k, D, M, x) => {
4874
- const $ = rs(D, x.side), R = Jo(D, {
4875
- side: x.side,
4876
- entryPrice: x.entryPrice,
4874
+ (k, D, M, E) => {
4875
+ const $ = rs(D, E.side), R = Jo(D, {
4876
+ side: E.side,
4877
+ entryPrice: E.entryPrice,
4877
4878
  linePrice: M,
4878
- volumeLots: x.volumeLots
4879
+ volumeLots: E.volumeLots
4879
4880
  });
4880
4881
  k.setProperties({
4881
- text: ea(D, M, x),
4882
+ text: ea(D, M, E),
4882
4883
  linecolor: $,
4883
4884
  textcolor: R,
4884
4885
  showPrice: !0,
@@ -4898,7 +4899,7 @@ const ns = (e, t, n) => {
4898
4899
  }
4899
4900
  if (T.current === k)
4900
4901
  return;
4901
- const x = e.activeChart(), $ = rs(k, M.side), R = Jo(k, {
4902
+ const E = e.activeChart(), $ = rs(k, M.side), R = Jo(k, {
4902
4903
  side: M.side,
4903
4904
  entryPrice: M.entryPrice,
4904
4905
  linePrice: D,
@@ -4906,7 +4907,7 @@ const ns = (e, t, n) => {
4906
4907
  }), Q = ea(k, D, M), de = b.current[k];
4907
4908
  if (de)
4908
4909
  try {
4909
- const ae = x.getShapeById(de);
4910
+ const ae = E.getShapeById(de);
4910
4911
  k === "entry" && Wi(ae);
4911
4912
  const N = (ue = ae.getPoints()[0]) == null ? void 0 : ue.price;
4912
4913
  if (N !== void 0 && Math.abs(N - D) < M.priceStep / 2) {
@@ -4936,7 +4937,7 @@ const ns = (e, t, n) => {
4936
4937
  delete b.current[k];
4937
4938
  }
4938
4939
  try {
4939
- const ae = x.getVisibleRange(), N = await x.createShape(
4940
+ const ae = E.getVisibleRange(), N = await E.createShape(
4940
4941
  { time: ae.from, price: D },
4941
4942
  {
4942
4943
  shape: "horizontal_line",
@@ -4956,19 +4957,19 @@ const ns = (e, t, n) => {
4956
4957
  );
4957
4958
  if (k === "entry")
4958
4959
  try {
4959
- x.getShapeById(N).setProperties(pn);
4960
+ E.getShapeById(N).setProperties(pn);
4960
4961
  } catch {
4961
4962
  }
4962
4963
  if (k === "entry" && !C.current.showEntryLine) {
4963
4964
  try {
4964
- x.removeEntity(N);
4965
+ E.removeEntity(N);
4965
4966
  } catch {
4966
4967
  }
4967
4968
  return;
4968
4969
  }
4969
4970
  if (k === "entry")
4970
4971
  try {
4971
- Wi(x.getShapeById(N));
4972
+ Wi(E.getShapeById(N));
4972
4973
  } catch {
4973
4974
  }
4974
4975
  b.current[k] = N;
@@ -4979,16 +4980,16 @@ const ns = (e, t, n) => {
4979
4980
  ), B = Z(
4980
4981
  async (k) => {
4981
4982
  if (!Xo(e, w.current, n)) {
4982
- A();
4983
+ x();
4983
4984
  return;
4984
4985
  }
4985
4986
  const D = Bi(k.stopLoss), M = Bi(k.takeProfit);
4986
4987
  k.showEntryLine && k.entryPrice !== null ? await I("entry", k.entryPrice, k) : await I("entry", void 0, k), await I("stopLoss", D, k), await I("takeProfit", M, k);
4987
4988
  },
4988
- [e, A, n, I]
4989
+ [e, x, n, I]
4989
4990
  ), z = Z(() => {
4990
- e && (A(), Xo(e, w.current, n) && B(C.current));
4991
- }, [e, A, n, B]), L = pe(z);
4991
+ e && (x(), Xo(e, w.current, n) && B(C.current));
4992
+ }, [e, x, n, B]), L = pe(z);
4992
4993
  J(() => {
4993
4994
  L.current = z;
4994
4995
  }, [z]);
@@ -5006,11 +5007,11 @@ const ns = (e, t, n) => {
5006
5007
  return;
5007
5008
  const k = (D, M) => {
5008
5009
  var Q, de, ue;
5009
- const x = (Q = Object.entries(b.current).find(([, ae]) => ae === D)) == null ? void 0 : Q[0];
5010
- if (!x || !zh(x))
5010
+ const E = (Q = Object.entries(b.current).find(([, ae]) => ae === D)) == null ? void 0 : Q[0];
5011
+ if (!E || !zh(E))
5011
5012
  return;
5012
5013
  const R = e.activeChart().getAllShapes().filter((ae) => ae.name === "horizontal_line").some((ae) => ae.id === D);
5013
- if (x === "entry") {
5014
+ if (E === "entry") {
5014
5015
  if ((M === "move" || M === "points_changed") && R) {
5015
5016
  const ae = C.current;
5016
5017
  if (ae.entryPrice !== null)
@@ -5027,7 +5028,7 @@ const ns = (e, t, n) => {
5027
5028
  return;
5028
5029
  }
5029
5030
  if (M === "remove" && R) {
5030
- T.current = null, x === "stopLoss" && m(""), x === "takeProfit" && h(""), delete b.current[x];
5031
+ T.current = null, E === "stopLoss" && m(""), E === "takeProfit" && h(""), delete b.current[E];
5031
5032
  return;
5032
5033
  }
5033
5034
  if (!(M !== "move" && M !== "points_changed" && !R) && !g.current)
@@ -5035,21 +5036,21 @@ const ns = (e, t, n) => {
5035
5036
  const ae = e.activeChart().getShapeById(D), N = (ue = ae.getPoints()[0]) == null ? void 0 : ue.price;
5036
5037
  if (!Number.isFinite(N) || N <= 0)
5037
5038
  return;
5038
- const X = C.current, ie = x === "stopLoss" ? X.stopLoss : X.takeProfit, Oe = Bi(ie), Be = Oe !== void 0 && Math.abs(Oe - N) < X.priceStep / 2;
5039
+ const X = C.current, ie = E === "stopLoss" ? X.stopLoss : X.takeProfit, Oe = Bi(ie), Be = Oe !== void 0 && Math.abs(Oe - N) < X.priceStep / 2;
5039
5040
  if (M === "points_changed" && R) {
5040
- T.current = x, P(ae, x, N, X), S.current !== null && clearTimeout(S.current), S.current = setTimeout(() => {
5041
+ T.current = E, P(ae, E, N, X), S.current !== null && clearTimeout(S.current), S.current = setTimeout(() => {
5041
5042
  T.current = null;
5042
5043
  const Ne = _e(N, C.current.digits);
5043
- x === "stopLoss" ? m(Ne) : h(Ne);
5044
+ E === "stopLoss" ? m(Ne) : h(Ne);
5044
5045
  }, 120);
5045
5046
  return;
5046
5047
  }
5047
5048
  if (S.current !== null && (clearTimeout(S.current), S.current = null), T.current = null, Be) {
5048
- P(ae, x, N, X);
5049
+ P(ae, E, N, X);
5049
5050
  return;
5050
5051
  }
5051
- const Se = _e(N, X.digits), Le = x === "stopLoss" ? { ...X, stopLoss: Se } : { ...X, takeProfit: Se };
5052
- x === "stopLoss" ? m(Se) : h(Se), P(ae, x, N, Le);
5052
+ const Se = _e(N, X.digits), Le = E === "stopLoss" ? { ...X, stopLoss: Se } : { ...X, takeProfit: Se };
5053
+ E === "stopLoss" ? m(Se) : h(Se), P(ae, E, N, Le);
5053
5054
  } catch {
5054
5055
  T.current = null;
5055
5056
  }
@@ -5075,7 +5076,7 @@ const ns = (e, t, n) => {
5075
5076
  if (!e)
5076
5077
  return;
5077
5078
  if (r === null) {
5078
- A();
5079
+ x();
5079
5080
  return;
5080
5081
  }
5081
5082
  let k = !1;
@@ -5090,7 +5091,7 @@ const ns = (e, t, n) => {
5090
5091
  };
5091
5092
  }, [
5092
5093
  e,
5093
- A,
5094
+ x,
5094
5095
  r,
5095
5096
  i,
5096
5097
  s,
@@ -5105,7 +5106,7 @@ const ns = (e, t, n) => {
5105
5106
  if (!e || r === null)
5106
5107
  return;
5107
5108
  let k = !1, D = null, M = !1;
5108
- const x = () => {
5109
+ const E = () => {
5109
5110
  k || (M = !0, G.current());
5110
5111
  }, $ = () => {
5111
5112
  k || !M || (M = !1, G.current());
@@ -5114,7 +5115,7 @@ const ns = (e, t, n) => {
5114
5115
  e.onChartReady(() => {
5115
5116
  if (!k)
5116
5117
  try {
5117
- D = e.activeChart(), D.onSymbolChanged().subscribe(null, x), D.onDataLoaded().subscribe(null, $);
5118
+ D = e.activeChart(), D.onSymbolChanged().subscribe(null, E), D.onDataLoaded().subscribe(null, $);
5118
5119
  } catch {
5119
5120
  }
5120
5121
  });
@@ -5123,7 +5124,7 @@ const ns = (e, t, n) => {
5123
5124
  return () => {
5124
5125
  if (k = !0, p.current !== null && (clearTimeout(p.current), p.current = null), D)
5125
5126
  try {
5126
- D.onSymbolChanged().unsubscribe(null, x), D.onDataLoaded().unsubscribe(null, $);
5127
+ D.onSymbolChanged().unsubscribe(null, E), D.onDataLoaded().unsubscribe(null, $);
5127
5128
  } catch {
5128
5129
  }
5129
5130
  };
@@ -5199,17 +5200,17 @@ const ns = (e, t, n) => {
5199
5200
  i.current.clear();
5200
5201
  }, [u]), m = Z(
5201
5202
  async (g, C, O) => {
5202
- const A = Fi({
5203
+ const x = Fi({
5203
5204
  side: C.type,
5204
5205
  volumeLots: C.volumeLots,
5205
5206
  profit: C.profit
5206
5207
  }), I = { time: g.getVisibleRange().from, price: C.openPrice }, B = await g.createShape(I, {
5207
5208
  shape: "horizontal_line",
5208
- text: String(A.text),
5209
+ text: String(x.text),
5209
5210
  disableSave: !0,
5210
5211
  lock: !0,
5211
5212
  disableSelection: !0,
5212
- overrides: A
5213
+ overrides: x
5213
5214
  });
5214
5215
  if (O !== s.current) {
5215
5216
  try {
@@ -5220,7 +5221,7 @@ const ns = (e, t, n) => {
5220
5221
  }
5221
5222
  try {
5222
5223
  const z = g.getShapeById(B);
5223
- z.setProperties(A), $i(z);
5224
+ z.setProperties(x), $i(z);
5224
5225
  } catch {
5225
5226
  }
5226
5227
  return B;
@@ -5230,14 +5231,14 @@ const ns = (e, t, n) => {
5230
5231
  async (g, C) => {
5231
5232
  if (!e || C !== s.current)
5232
5233
  return;
5233
- const O = e.activeChart(), A = Fi({
5234
+ const O = e.activeChart(), x = Fi({
5234
5235
  side: g.type,
5235
5236
  volumeLots: g.volumeLots,
5236
5237
  profit: g.profit
5237
5238
  }), P = i.current.get(g.ticket);
5238
5239
  if (P)
5239
5240
  try {
5240
- na(O.getShapeById(P), g.openPrice, A), $i(O.getShapeById(P));
5241
+ na(O.getShapeById(P), g.openPrice, x), $i(O.getShapeById(P));
5241
5242
  return;
5242
5243
  } catch {
5243
5244
  i.current.delete(g.ticket);
@@ -5256,9 +5257,9 @@ const ns = (e, t, n) => {
5256
5257
  async (g, C) => {
5257
5258
  if (!e || g !== s.current)
5258
5259
  return;
5259
- const O = ta(C), A = new Set(O.map((P) => P.ticket));
5260
+ const O = ta(C), x = new Set(O.map((P) => P.ticket));
5260
5261
  for (const P of i.current.keys())
5261
- A.has(P) || u(P);
5262
+ x.has(P) || u(P);
5262
5263
  for (const P of O) {
5263
5264
  if (g !== s.current)
5264
5265
  return;
@@ -5277,15 +5278,15 @@ const ns = (e, t, n) => {
5277
5278
  }
5278
5279
  const C = ta(o);
5279
5280
  for (const O of C) {
5280
- const A = i.current.get(O.ticket);
5281
- if (A)
5281
+ const x = i.current.get(O.ticket);
5282
+ if (x)
5282
5283
  try {
5283
5284
  const P = Fi({
5284
5285
  side: O.type,
5285
5286
  volumeLots: O.volumeLots,
5286
5287
  profit: O.profit
5287
5288
  });
5288
- na(g.getShapeById(A), O.openPrice, P), $i(g.getShapeById(A));
5289
+ na(g.getShapeById(x), O.openPrice, P), $i(g.getShapeById(x));
5289
5290
  } catch {
5290
5291
  i.current.delete(O.ticket);
5291
5292
  }
@@ -5315,11 +5316,11 @@ const ns = (e, t, n) => {
5315
5316
  symbolKey: S.current()
5316
5317
  });
5317
5318
  };
5318
- let A = !1;
5319
+ let x = !1;
5319
5320
  const P = () => {
5320
- A = !0, O();
5321
+ x = !0, O();
5321
5322
  }, I = () => {
5322
- g || !A || (A = !1, T.current({ symbolKey: S.current() }));
5323
+ g || !x || (x = !1, T.current({ symbolKey: S.current() }));
5323
5324
  };
5324
5325
  try {
5325
5326
  e.onChartReady(() => {
@@ -5878,7 +5879,7 @@ function fm(e) {
5878
5879
  return Promise.reject(t.signal.reason);
5879
5880
  if (g == null && S.pages.length)
5880
5881
  return Promise.resolve(S);
5881
- const A = (() => {
5882
+ const x = (() => {
5882
5883
  const z = {
5883
5884
  client: t.client,
5884
5885
  queryKey: t.queryKey,
@@ -5887,7 +5888,7 @@ function fm(e) {
5887
5888
  meta: t.options.meta
5888
5889
  };
5889
5890
  return b(z), z;
5890
- })(), P = await p(A), { maxPages: I } = t.options, B = C ? om : sm;
5891
+ })(), P = await p(x), { maxPages: I } = t.options, B = C ? om : sm;
5891
5892
  return {
5892
5893
  pages: B(S.pages, P, I),
5893
5894
  pageParams: B(S.pageParams, g, I)
@@ -6072,12 +6073,12 @@ var vn, Jt, Tn, ot, Xt, Re, ar, en, Xe, pl, wt, ec, mm = (ec = class extends ml
6072
6073
  });
6073
6074
  }, s = () => {
6074
6075
  const g = dl(this.options, n), O = (() => {
6075
- const A = {
6076
+ const x = {
6076
6077
  client: _(this, Xt),
6077
6078
  queryKey: this.queryKey,
6078
6079
  meta: this.meta
6079
6080
  };
6080
- return i(A), A;
6081
+ return i(x), x;
6081
6082
  })();
6082
6083
  return W(this, en, !1), this.options.persister ? this.options.persister(
6083
6084
  g,
@@ -6591,7 +6592,7 @@ var dr, mt, je, sn, pt, Et, nc, bm = (nc = class extends ml {
6591
6592
  this.execute(this.state.variables);
6592
6593
  }
6593
6594
  async execute(t) {
6594
- var o, a, c, d, u, f, m, h, y, w, b, p, T, S, g, C, O, A;
6595
+ var o, a, c, d, u, f, m, h, y, w, b, p, T, S, g, C, O, x;
6595
6596
  const n = () => {
6596
6597
  me(this, pt, Et).call(this, { type: "continue" });
6597
6598
  }, r = {
@@ -6703,7 +6704,7 @@ var dr, mt, je, sn, pt, Et, nc, bm = (nc = class extends ml {
6703
6704
  Promise.reject(I);
6704
6705
  }
6705
6706
  try {
6706
- await ((A = (O = this.options).onSettled) == null ? void 0 : A.call(
6707
+ await ((x = (O = this.options).onSettled) == null ? void 0 : x.call(
6707
6708
  O,
6708
6709
  void 0,
6709
6710
  P,
@@ -7786,7 +7787,7 @@ function mp({
7786
7787
  const { openMarketPanel: a, setSelectedLogin: c, hasConfirmedAccount: d } = i, u = Or();
7787
7788
  return J(() => (t.current = { open: a, setSelectedLogin: c }, () => {
7788
7789
  t.current = null;
7789
- }), [t, a, c]), /* @__PURE__ */ E(Ye, { children: [
7790
+ }), [t, a, c]), /* @__PURE__ */ A(Ye, { children: [
7790
7791
  d ? /* @__PURE__ */ l(
7791
7792
  cl,
7792
7793
  {
@@ -7852,7 +7853,7 @@ function Ap(e, t) {
7852
7853
  return `${e.replace(/\/$/, "")}/${encodeURIComponent(t)}`;
7853
7854
  }
7854
7855
  function xp() {
7855
- return /* @__PURE__ */ E("colgroup", { children: [
7856
+ return /* @__PURE__ */ A("colgroup", { children: [
7856
7857
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--deal" }),
7857
7858
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--ticket" }),
7858
7859
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--symbol" }),
@@ -7868,7 +7869,7 @@ function xp() {
7868
7869
  }
7869
7870
  function Ep() {
7870
7871
  const { t: e } = Ae();
7871
- return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__head-row", children: [
7872
+ return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__head-row", children: [
7872
7873
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.deal") }),
7873
7874
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.login") }),
7874
7875
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.symbol") }),
@@ -7884,7 +7885,7 @@ function Ep() {
7884
7885
  }
7885
7886
  function Lp({ deal: e, dealActions: t }) {
7886
7887
  const { t: n } = Ae(), r = e.profit > 0 ? "web-trading-widget-text-profit-positive" : e.profit < 0 ? "web-trading-widget-text-profit-negative" : "";
7887
- return /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__deals-row", children: [
7888
+ return /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__deals-row", children: [
7888
7889
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.deal }),
7889
7890
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.login }),
7890
7891
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.symbol || "—" }),
@@ -7897,7 +7898,7 @@ function Lp({ deal: e, dealActions: t }) {
7897
7898
  ),
7898
7899
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: (e.volume / 1e4).toFixed(2) }),
7899
7900
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: e.price.toFixed(5) }),
7900
- /* @__PURE__ */ E(
7901
+ /* @__PURE__ */ A(
7901
7902
  "td",
7902
7903
  {
7903
7904
  className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right ${r}`,
@@ -7946,11 +7947,11 @@ function Np({
7946
7947
  () => [...(m == null ? void 0 : m.deals) ?? []].sort((b, p) => p.time - b.time),
7947
7948
  [m == null ? void 0 : m.deals]
7948
7949
  );
7949
- return e ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__deals-wrap", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__body-scroll", children: [
7950
- /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__deals-table", children: [
7950
+ return e ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__deals-wrap", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__body-scroll", children: [
7951
+ /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__deals-table", children: [
7951
7952
  /* @__PURE__ */ l(xp, {}),
7952
7953
  /* @__PURE__ */ l(Ep, {}),
7953
- /* @__PURE__ */ E("tbody", { children: [
7954
+ /* @__PURE__ */ A("tbody", { children: [
7954
7955
  y ? /* @__PURE__ */ l(yp, {}) : null,
7955
7956
  !y && w.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(
7956
7957
  "td",
@@ -8193,8 +8194,8 @@ function Wp() {
8193
8194
  let T = 0, S = 0;
8194
8195
  const g = ((C = p[0]) == null ? void 0 : C.login) ?? "";
8195
8196
  for (const O of p) {
8196
- const A = `position-${O.ticket}`;
8197
- m(A, !0);
8197
+ const x = `position-${O.ticket}`;
8198
+ m(x, !0);
8198
8199
  try {
8199
8200
  if (!(await t(O, {
8200
8201
  skipInvalidation: !0
@@ -8206,7 +8207,7 @@ function Wp() {
8206
8207
  } catch {
8207
8208
  S += 1;
8208
8209
  } finally {
8209
- m(A, !1);
8210
+ m(x, !1);
8210
8211
  }
8211
8212
  }
8212
8213
  o(null), T > 0 && g && await r(g), ve(S === 0 ? {
@@ -8295,7 +8296,7 @@ function $p(e, t, n) {
8295
8296
  };
8296
8297
  }
8297
8298
  function vs() {
8298
- return /* @__PURE__ */ E("colgroup", { children: [
8299
+ return /* @__PURE__ */ A("colgroup", { children: [
8299
8300
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--symbol" }),
8300
8301
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--ticket" }),
8301
8302
  /* @__PURE__ */ l("col", { className: "web-trading-widget-terminal-col--time" }),
@@ -8313,7 +8314,7 @@ function vs() {
8313
8314
  }
8314
8315
  function jp() {
8315
8316
  const { t: e } = Ae();
8316
- return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ E("tr", { className: "web-trading-widget-terminal__head-row", children: [
8317
+ return /* @__PURE__ */ l("thead", { children: /* @__PURE__ */ A("tr", { className: "web-trading-widget-terminal__head-row", children: [
8317
8318
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.symbol") }),
8318
8319
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.ticket") }),
8319
8320
  /* @__PURE__ */ l("th", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--left web-trading-widget-terminal__head-cell", children: e("WebTrading.serverTime") }),
@@ -8340,31 +8341,31 @@ function Vp({
8340
8341
  onScroll: a
8341
8342
  }) {
8342
8343
  const { t: c } = Ae(), d = s > 0 ? "web-trading-widget-text-profit-positive" : s < 0 ? "web-trading-widget-text-profit-negative" : "";
8343
- return /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__stats", children: /* @__PURE__ */ l("div", { ref: o, className: "web-trading-widget-terminal__header-scroll", onScroll: a, children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8344
+ return /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal__stats", children: /* @__PURE__ */ l("div", { ref: o, className: "web-trading-widget-terminal__header-scroll", onScroll: a, children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8344
8345
  /* @__PURE__ */ l(vs, {}),
8345
- /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ E("tr", { children: [
8346
- /* @__PURE__ */ l("td", { colSpan: 10, className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__stats-row web-trading-widget-terminal__stats-row--tabular", children: [
8347
- /* @__PURE__ */ E("span", { children: [
8346
+ /* @__PURE__ */ l("tbody", { children: /* @__PURE__ */ A("tr", { children: [
8347
+ /* @__PURE__ */ l("td", { colSpan: 10, className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__stats-row web-trading-widget-terminal__stats-row--tabular", children: [
8348
+ /* @__PURE__ */ A("span", { children: [
8348
8349
  c("WebTrading.balance"),
8349
8350
  ": ",
8350
8351
  Nt(e)
8351
8352
  ] }),
8352
- /* @__PURE__ */ E("span", { children: [
8353
+ /* @__PURE__ */ A("span", { children: [
8353
8354
  c("WebTrading.equity"),
8354
8355
  ": ",
8355
8356
  Nt(t)
8356
8357
  ] }),
8357
- /* @__PURE__ */ E("span", { children: [
8358
+ /* @__PURE__ */ A("span", { children: [
8358
8359
  c("WebTrading.margin"),
8359
8360
  ": ",
8360
8361
  Nt(n)
8361
8362
  ] }),
8362
- /* @__PURE__ */ E("span", { children: [
8363
+ /* @__PURE__ */ A("span", { children: [
8363
8364
  c("WebTrading.freeMargin"),
8364
8365
  ": ",
8365
8366
  Nt(r)
8366
8367
  ] }),
8367
- /* @__PURE__ */ E("span", { children: [
8368
+ /* @__PURE__ */ A("span", { children: [
8368
8369
  c("WebTrading.level"),
8369
8370
  ": ",
8370
8371
  i !== void 0 ? `${Nt(i, 2)}%` : "0.00%"
@@ -8389,7 +8390,7 @@ function Hp({
8389
8390
  { id: "trade", label: a("WebTrading.trade") },
8390
8391
  { id: "history", label: a("WebTrading.history") }
8391
8392
  ], d = e === "trade" && (n > 0 || r), u = e === "history";
8392
- return /* @__PURE__ */ E("div", { role: "tablist", "aria-label": a("WebTrading.terminalPanelTabs"), className: "web-trading-widget-terminal__tab-bar", children: [
8393
+ return /* @__PURE__ */ A("div", { role: "tablist", "aria-label": a("WebTrading.terminalPanelTabs"), className: "web-trading-widget-terminal__tab-bar", children: [
8393
8394
  c.map((f) => {
8394
8395
  const m = e === f.id;
8395
8396
  return /* @__PURE__ */ l(
@@ -8405,7 +8406,7 @@ function Hp({
8405
8406
  f.id
8406
8407
  );
8407
8408
  }),
8408
- /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__toolbar-actions", children: [
8409
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__toolbar-actions", children: [
8409
8410
  d ? /* @__PURE__ */ l(
8410
8411
  "button",
8411
8412
  {
@@ -8416,7 +8417,7 @@ function Hp({
8416
8417
  children: a(r ? "WebTrading.closing" : "WebTrading.closeAll")
8417
8418
  }
8418
8419
  ) : null,
8419
- u ? /* @__PURE__ */ E(
8420
+ u ? /* @__PURE__ */ A(
8420
8421
  "button",
8421
8422
  {
8422
8423
  type: "button",
@@ -8440,7 +8441,7 @@ function Hp({
8440
8441
  }
8441
8442
  function zp({ position: e, isSelected: t, isClosing: n, onSelect: r, onClose: i }) {
8442
8443
  const { t: s } = Ae(), o = e.type === "buy" ? "web-trading-widget-text-buy" : "web-trading-widget-text-sell", a = e.profit > 0 ? "web-trading-widget-text-profit-positive" : e.profit < 0 ? "web-trading-widget-text-profit-negative" : "";
8443
- return /* @__PURE__ */ E(
8444
+ return /* @__PURE__ */ A(
8444
8445
  "tr",
8445
8446
  {
8446
8447
  className: `web-trading-widget-terminal__row${t ? " web-trading-widget-terminal__row--selected" : ""}`,
@@ -8478,7 +8479,7 @@ function zp({ position: e, isSelected: t, isClosing: n, onSelect: r, onClose: i
8478
8479
  }
8479
8480
  function qp({ order: e, isSelected: t, isDeleting: n, onSelect: r, onDelete: i }) {
8480
8481
  const { t: s } = Ae(), o = e.side === "buy" ? "web-trading-widget-text-buy" : "web-trading-widget-text-sell";
8481
- return /* @__PURE__ */ E(
8482
+ return /* @__PURE__ */ A(
8482
8483
  "tr",
8483
8484
  {
8484
8485
  className: `web-trading-widget-terminal__row${t ? " web-trading-widget-terminal__row--selected" : ""}`,
@@ -8488,7 +8489,7 @@ function qp({ order: e, isSelected: t, isDeleting: n, onSelect: r, onDelete: i }
8488
8489
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell", children: e.ticket }),
8489
8490
  /* @__PURE__ */ l("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: e.time }),
8490
8491
  /* @__PURE__ */ l("td", { className: `web-trading-widget-terminal__cell web-trading-widget-terminal__cell--capitalize ${o}`, children: e.typeLabel }),
8491
- /* @__PURE__ */ E("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: [
8492
+ /* @__PURE__ */ A("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--right", children: [
8492
8493
  e.volumeLots.toFixed(2),
8493
8494
  " / ",
8494
8495
  e.volumeFilledLots.toFixed(2)
@@ -8530,7 +8531,7 @@ function xl({
8530
8531
  } } : m, b = fe((V) => V.selectedLogin), p = fe((V) => V.selectedPositionTicket), T = fe((V) => V.selectedOrderTicket), S = fe((V) => V.setSelectedPositionTicket), g = fe((V) => V.setSelectedOrderTicket), { isLoading: C } = kl(
8531
8532
  b,
8532
8533
  s
8533
- ), O = fe((V) => V.positions), A = fe((V) => V.orders), { closePosition: P, closeAllPositions: I, deleteOrder: B, isClosingAll: z, isRowBusy: L } = Wp(), Y = sp(), G = ct(), oe = Mm({
8534
+ ), O = fe((V) => V.positions), x = fe((V) => V.orders), { closePosition: P, closeAllPositions: I, deleteOrder: B, isClosingAll: z, isRowBusy: L } = Wp(), Y = sp(), G = ct(), oe = Mm({
8534
8535
  predicate: (V) => {
8535
8536
  const ke = V.queryKey;
8536
8537
  return b ? (ke[0] === Pr || ke[0] === kr) && ke[1] === G.baseUrl && ke[2] === b : !1;
@@ -8539,22 +8540,22 @@ function xl({
8539
8540
  () => b ? O.filter((V) => V.login === b) : O,
8540
8541
  [O, b]
8541
8542
  ), M = we(
8542
- () => b ? A.filter((V) => V.login === b) : A,
8543
- [A, b]
8544
- ), x = we(() => {
8543
+ () => b ? x.filter((V) => V.login === b) : x,
8544
+ [x, b]
8545
+ ), E = we(() => {
8545
8546
  const V = u.find((ke) => ke.login === b);
8546
8547
  return (V == null ? void 0 : V.tradeStat) ?? null;
8547
8548
  }, [u, b]), $ = we(
8548
8549
  () => D.map((V) => V.ticket).sort().join("|"),
8549
8550
  [D]
8550
- ), R = we(() => x ? `${x.balance}:${x.credit ?? 0}:${x.equity}:${x.margin}|${$}` : "", [x, $]), Q = we(() => {
8551
- if (!x || D.length === 0)
8551
+ ), R = we(() => E ? `${E.balance}:${E.credit ?? 0}:${E.equity}:${E.margin}|${$}` : "", [E, $]), Q = we(() => {
8552
+ if (!E || D.length === 0)
8552
8553
  return 0;
8553
8554
  const V = Al(D);
8554
- return x.equity - x.balance - (x.credit ?? 0) - V;
8555
+ return E.equity - E.balance - (E.credit ?? 0) - V;
8555
8556
  }, [R]), de = we(
8556
- () => $p(x, D, Q),
8557
- [x, D, Q]
8557
+ () => $p(E, D, Q),
8558
+ [E, D, Q]
8558
8559
  ), ue = D.length === 0 && M.length === 0, ae = pe(null), N = pe(null), X = pe(null), ie = Z(() => {
8559
8560
  I(D);
8560
8561
  }, [I, D]), Oe = Z(() => {
@@ -8581,9 +8582,9 @@ function xl({
8581
8582
  const We = V === "header" ? ke.scrollLeft : V === "body" ? ee.scrollLeft : (Pe == null ? void 0 : Pe.scrollLeft) ?? 0;
8582
8583
  V !== "header" && (ke.scrollLeft = We), V !== "body" && (ee.scrollLeft = We), Pe && V !== "footer" && (Pe.scrollLeft = We);
8583
8584
  }, []);
8584
- return /* @__PURE__ */ E(Ye, { children: [
8585
+ return /* @__PURE__ */ A(Ye, { children: [
8585
8586
  !e && y ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
8586
- /* @__PURE__ */ E(
8587
+ /* @__PURE__ */ A(
8587
8588
  "div",
8588
8589
  {
8589
8590
  className: `web-trading-widget-terminal${e ? " web-trading-widget-terminal--embedded" : ""}`,
@@ -8615,16 +8616,16 @@ function xl({
8615
8616
  onRefetchDeals: Oe
8616
8617
  }
8617
8618
  ),
8618
- a === "trade" ? /* @__PURE__ */ E(Ye, { children: [
8619
- /* @__PURE__ */ l("div", { ref: ae, className: "web-trading-widget-terminal__header-scroll", onScroll: () => Ne("header"), children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8619
+ a === "trade" ? /* @__PURE__ */ A(Ye, { children: [
8620
+ /* @__PURE__ */ l("div", { ref: ae, className: "web-trading-widget-terminal__header-scroll", onScroll: () => Ne("header"), children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8620
8621
  /* @__PURE__ */ l(vs, {}),
8621
8622
  /* @__PURE__ */ l(jp, {})
8622
8623
  ] }) }),
8623
- /* @__PURE__ */ l("div", { ref: N, className: "web-trading-widget-terminal__body-scroll", onScroll: () => Ne("body"), children: /* @__PURE__ */ E("table", { className: "web-trading-widget-terminal__table", children: [
8624
+ /* @__PURE__ */ l("div", { ref: N, className: "web-trading-widget-terminal__body-scroll", onScroll: () => Ne("body"), children: /* @__PURE__ */ A("table", { className: "web-trading-widget-terminal__table", children: [
8624
8625
  /* @__PURE__ */ l(vs, {}),
8625
- /* @__PURE__ */ E("tbody", { children: [
8626
+ /* @__PURE__ */ A("tbody", { children: [
8626
8627
  k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: o("WebTrading.loading") }) }) : null,
8627
- !k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-terminal__empty-inner", children: [
8628
+ !k && ue ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: 13, className: "web-trading-widget-terminal__empty-cell", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-terminal__empty-inner", children: [
8628
8629
  /* @__PURE__ */ l("p", { className: "web-trading-widget-terminal__empty-text", children: o("WebTrading.noPositions") }),
8629
8630
  r ? /* @__PURE__ */ l("button", { type: "button", onClick: r, className: "web-trading-widget-terminal__create-btn", children: o("WebTrading.createNewOrder") }) : null
8630
8631
  ] }) }) }) : null,
@@ -8768,8 +8769,8 @@ function Ll({
8768
8769
  ), y = m.length + h.length, w = () => {
8769
8770
  s(!1), t == null || t();
8770
8771
  };
8771
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders-overlay-root", children: [
8772
- /* @__PURE__ */ E(
8772
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders-overlay-root", children: [
8773
+ /* @__PURE__ */ A(
8773
8774
  "button",
8774
8775
  {
8775
8776
  type: "button",
@@ -8784,7 +8785,7 @@ function Ll({
8784
8785
  ]
8785
8786
  }
8786
8787
  ),
8787
- i ? /* @__PURE__ */ l(Ye, { children: /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders__panel", style: { height: o }, children: [
8788
+ i ? /* @__PURE__ */ l(Ye, { children: /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders__panel", style: { height: o }, children: [
8788
8789
  a ? /* @__PURE__ */ l("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
8789
8790
  /* @__PURE__ */ l("div", { className: "web-trading-widget-news-orders__panel-resize-bar-wrap", children: /* @__PURE__ */ l(
8790
8791
  "div",
@@ -8800,7 +8801,7 @@ function Ll({
8800
8801
  children: /* @__PURE__ */ l(dc, { className: "web-trading-widget-icon web-trading-widget-icon--sm web-trading-widget-terminal__resize-icon" })
8801
8802
  }
8802
8803
  ) }),
8803
- /* @__PURE__ */ E("div", { className: "web-trading-widget-news-orders__panel-header", children: [
8804
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-news-orders__panel-header", children: [
8804
8805
  /* @__PURE__ */ l("h2", { className: "web-trading-widget-news-orders__panel-title", children: r("WebTrading.terminal") }),
8805
8806
  /* @__PURE__ */ l(
8806
8807
  "button",
@@ -8849,8 +8850,8 @@ function yt({
8849
8850
  children: r,
8850
8851
  className: i
8851
8852
  }) {
8852
- return /* @__PURE__ */ E("div", { className: _t("web-trading-widget-market-panel__accordion-item", i), children: [
8853
- /* @__PURE__ */ E(
8853
+ return /* @__PURE__ */ A("div", { className: _t("web-trading-widget-market-panel__accordion-item", i), children: [
8854
+ /* @__PURE__ */ A(
8854
8855
  "button",
8855
8856
  {
8856
8857
  type: "button",
@@ -8951,11 +8952,11 @@ function Ee({
8951
8952
  T(P);
8952
8953
  }, O = (P) => {
8953
8954
  f(Yp(P, s));
8954
- }, A = () => {
8955
+ }, x = () => {
8955
8956
  c || (h(!1), T(""));
8956
8957
  };
8957
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-stepper", children: [
8958
- /* @__PURE__ */ E("div", { className: "web-trading-widget-stepper__header", children: [
8958
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-stepper", children: [
8959
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-stepper__header", children: [
8959
8960
  /* @__PURE__ */ l("span", { className: "web-trading-widget-stepper__label", children: e }),
8960
8961
  d && w ? /* @__PURE__ */ l(
8961
8962
  "button",
@@ -8964,12 +8965,12 @@ function Ee({
8964
8965
  "aria-label": `Clear ${e}`,
8965
8966
  className: "web-trading-widget-stepper__clear",
8966
8967
  disabled: c,
8967
- onClick: A,
8968
+ onClick: x,
8968
8969
  children: /* @__PURE__ */ l(qt, { className: "web-trading-widget-icon web-trading-widget-icon--xs" })
8969
8970
  }
8970
8971
  ) : null
8971
8972
  ] }),
8972
- /* @__PURE__ */ E("div", { className: `web-trading-widget-stepper__control${c ? " web-trading-widget-stepper__control--disabled" : ""}`, children: [
8973
+ /* @__PURE__ */ A("div", { className: `web-trading-widget-stepper__control${c ? " web-trading-widget-stepper__control--disabled" : ""}`, children: [
8973
8974
  /* @__PURE__ */ l(
8974
8975
  "button",
8975
8976
  {
@@ -9026,7 +9027,7 @@ function eg({
9026
9027
  onClose: f,
9027
9028
  onPlaceOrder: m
9028
9029
  }) {
9029
- const { t: h } = Ae(), [y, w] = H("market"), [b, p] = H(String(r)), [T, S] = H(""), [g, C] = H(""), O = se((te) => te.stopLoss), A = se((te) => te.takeProfit), P = se((te) => te.setStopLoss), I = se((te) => te.setTakeProfit), B = se((te) => te.setVolumeLots), z = se((te) => te.setOrderSide), [L, Y] = H(""), [G, oe] = H(qe.GTC), [k, D] = H(""), [M, x] = H(""), [$, R] = H(() => new Set(Xp)), Q = Number(Ot(Ct(e))), de = Bn(Q), ue = Vs(t, n), ae = t !== null ? _e(t, Q) : "—", N = n !== null ? _e(n, Q) : "—", X = pi(y), ie = pc(y), Oe = mi(y), Be = h(Jr[y]), Se = !X && Oe.orderType !== null && Oe.orderType % 2 === 1, Le = we(() => ue !== null ? ue : t ?? n, [n, t, ue]), Ne = (te) => {
9030
+ const { t: h } = Ae(), [y, w] = H("market"), [b, p] = H(String(r)), [T, S] = H(""), [g, C] = H(""), O = se((te) => te.stopLoss), x = se((te) => te.takeProfit), P = se((te) => te.setStopLoss), I = se((te) => te.setTakeProfit), B = se((te) => te.setVolumeLots), z = se((te) => te.setOrderSide), [L, Y] = H(""), [G, oe] = H(qe.GTC), [k, D] = H(""), [M, E] = H(""), [$, R] = H(() => new Set(Xp)), Q = Number(Ot(Ct(e))), de = Bn(Q), ue = Vs(t, n), ae = t !== null ? _e(t, Q) : "—", N = n !== null ? _e(n, Q) : "—", X = pi(y), ie = pc(y), Oe = mi(y), Be = h(Jr[y]), Se = !X && Oe.orderType !== null && Oe.orderType % 2 === 1, Le = we(() => ue !== null ? ue : t ?? n, [n, t, ue]), Ne = (te) => {
9030
9031
  R((rt) => {
9031
9032
  const At = new Set(rt);
9032
9033
  return At.has(te) ? At.delete(te) : At.add(te), At;
@@ -9049,7 +9050,7 @@ function eg({
9049
9050
  orderType: At,
9050
9051
  volumeLots: rt,
9051
9052
  stopLoss: O,
9052
- takeProfit: A,
9053
+ takeProfit: x,
9053
9054
  priceOrder: T,
9054
9055
  priceTrigger: g,
9055
9056
  comment: L,
@@ -9060,8 +9061,8 @@ function eg({
9060
9061
  ask: n
9061
9062
  });
9062
9063
  }, We = t !== null && n !== null, nt = X || Ue(T) !== void 0, hn = !ie || Ue(g) !== void 0, Vn = X || yi(G, k, M), dt = !o && !a && c !== "" && We && nt && hn && Vn, ki = !X && Ws(G), Oi = !X && $s(G);
9063
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel", children: [
9064
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__header", children: [
9064
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel", children: [
9065
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__header", children: [
9065
9066
  /* @__PURE__ */ l(
9066
9067
  "select",
9067
9068
  {
@@ -9072,7 +9073,7 @@ function eg({
9072
9073
  children: Zr.map((te) => /* @__PURE__ */ l("option", { value: te.mode, children: h(Jr[te.mode]) }, te.mode))
9073
9074
  }
9074
9075
  ),
9075
- d ? null : /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__header-actions", children: [
9076
+ d ? null : /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__header-actions", children: [
9076
9077
  /* @__PURE__ */ l(
9077
9078
  "button",
9078
9079
  {
@@ -9095,7 +9096,7 @@ function eg({
9095
9096
  )
9096
9097
  ] })
9097
9098
  ] }),
9098
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__accordion", children: [
9099
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__accordion", children: [
9099
9100
  /* @__PURE__ */ l(
9100
9101
  yt,
9101
9102
  {
@@ -9121,7 +9122,7 @@ function eg({
9121
9122
  title: h("WebTrading.orderPrice"),
9122
9123
  isOpen: $.has("order-price"),
9123
9124
  onToggle: () => Ne("order-price"),
9124
- children: ie ? /* @__PURE__ */ E(Ye, { children: [
9125
+ children: ie ? /* @__PURE__ */ A(Ye, { children: [
9125
9126
  /* @__PURE__ */ l(
9126
9127
  Ee,
9127
9128
  {
@@ -9166,7 +9167,7 @@ function eg({
9166
9167
  title: h("WebTrading.riskManagement"),
9167
9168
  isOpen: $.has("risk-management"),
9168
9169
  onToggle: () => Ne("risk-management"),
9169
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9170
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9170
9171
  /* @__PURE__ */ l(
9171
9172
  Ee,
9172
9173
  {
@@ -9184,7 +9185,7 @@ function eg({
9184
9185
  Ee,
9185
9186
  {
9186
9187
  label: h("WebTrading.takeProfit"),
9187
- value: A,
9188
+ value: x,
9188
9189
  onChange: I,
9189
9190
  step: de,
9190
9191
  decimals: Q,
@@ -9196,7 +9197,7 @@ function eg({
9196
9197
  ] })
9197
9198
  }
9198
9199
  ),
9199
- X ? null : /* @__PURE__ */ E(
9200
+ X ? null : /* @__PURE__ */ A(
9200
9201
  yt,
9201
9202
  {
9202
9203
  title: h("WebTrading.expiration"),
@@ -9213,7 +9214,7 @@ function eg({
9213
9214
  children: gc.map((te) => /* @__PURE__ */ l("option", { value: String(te.value), children: h(yc[te.value]) }, te.value))
9214
9215
  }
9215
9216
  ),
9216
- ki ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9217
+ ki ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9217
9218
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: h("WebTrading.expirationTime") }),
9218
9219
  /* @__PURE__ */ l(
9219
9220
  cn,
@@ -9224,14 +9225,14 @@ function eg({
9224
9225
  }
9225
9226
  )
9226
9227
  ] }) : null,
9227
- Oi ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9228
+ Oi ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9228
9229
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: h("WebTrading.expirationDay") }),
9229
9230
  /* @__PURE__ */ l(
9230
9231
  cn,
9231
9232
  {
9232
9233
  type: "date",
9233
9234
  value: M,
9234
- onChange: (te) => x(te.target.value)
9235
+ onChange: (te) => E(te.target.value)
9235
9236
  }
9236
9237
  )
9237
9238
  ] }) : null
@@ -9248,12 +9249,12 @@ function eg({
9248
9249
  }
9249
9250
  )
9250
9251
  ] }),
9251
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__footer", children: [
9252
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__quotes", children: [
9252
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__footer", children: [
9253
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__quotes", children: [
9253
9254
  /* @__PURE__ */ l("span", { children: ae }),
9254
9255
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__quotes-ask", children: N })
9255
9256
  ] }),
9256
- X ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__actions", children: [
9257
+ X ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__actions", children: [
9257
9258
  /* @__PURE__ */ l(
9258
9259
  "button",
9259
9260
  {
@@ -9298,7 +9299,7 @@ function eg({
9298
9299
  }
9299
9300
  function Nl({ confirmation: e, symbolTicker: t, onDismiss: n }) {
9300
9301
  const { t: r } = Ae(), i = Number(Ot(Ct(t))), s = _e(e.price, i), o = e.side === "sell" ? r("WebTrading.sell") : r("WebTrading.buy"), a = hi(e.symbol || gi(t));
9301
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-confirmation", children: [
9302
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-confirmation", children: [
9302
9303
  /* @__PURE__ */ l("div", { className: "web-trading-widget-confirmation__close-row", children: /* @__PURE__ */ l(
9303
9304
  "button",
9304
9305
  {
@@ -9309,9 +9310,9 @@ function Nl({ confirmation: e, symbolTicker: t, onDismiss: n }) {
9309
9310
  children: /* @__PURE__ */ l(qt, { className: "web-trading-widget-icon web-trading-widget-icon--md" })
9310
9311
  }
9311
9312
  ) }),
9312
- /* @__PURE__ */ E("div", { className: "web-trading-widget-confirmation__body", children: [
9313
- /* @__PURE__ */ E("p", { className: "web-trading-widget-confirmation__summary", children: [
9314
- /* @__PURE__ */ E("span", { className: "web-trading-widget-confirmation__ticket", children: [
9313
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-confirmation__body", children: [
9314
+ /* @__PURE__ */ A("p", { className: "web-trading-widget-confirmation__summary", children: [
9315
+ /* @__PURE__ */ A("span", { className: "web-trading-widget-confirmation__ticket", children: [
9315
9316
  "#",
9316
9317
  e.ticket
9317
9318
  ] }),
@@ -9352,7 +9353,7 @@ function Dl({
9352
9353
  order: e,
9353
9354
  onClose: t
9354
9355
  }) {
9355
- const { t: n } = Ae(), { deleteOrder: r, modifyOrder: i } = Pi(), s = fe((N) => N.removeOrder), o = fe((N) => N.liveQuotes), [a, c] = H(String(e.volumeLots)), [d, u] = H(String(e.orderPrice)), [f, m] = H(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), h = se((N) => N.stopLoss), y = se((N) => N.takeProfit), w = se((N) => N.setStopLoss), b = se((N) => N.setTakeProfit), p = se((N) => N.setDraft), [T, S] = H(e.comment), [g, C] = H(!1), [O, A] = H(!1), P = Bn(e.digits), I = Ie(e.symbol).toUpperCase(), B = o[I], z = (B == null ? void 0 : B.bid) ?? e.marketBid ?? null, L = (B == null ? void 0 : B.ask) ?? e.marketAsk ?? null, Y = z !== null ? _e(z, e.digits) : "—", G = L !== null ? _e(L, e.digits) : "—", oe = we(() => e.orderPrice > 0 ? e.orderPrice : Vs(z, L) ?? z ?? L, [L, z, e.orderPrice]);
9356
+ const { t: n } = Ae(), { deleteOrder: r, modifyOrder: i } = Pi(), s = fe((N) => N.removeOrder), o = fe((N) => N.liveQuotes), [a, c] = H(String(e.volumeLots)), [d, u] = H(String(e.orderPrice)), [f, m] = H(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), h = se((N) => N.stopLoss), y = se((N) => N.takeProfit), w = se((N) => N.setStopLoss), b = se((N) => N.setTakeProfit), p = se((N) => N.setDraft), [T, S] = H(e.comment), [g, C] = H(!1), [O, x] = H(!1), P = Bn(e.digits), I = Ie(e.symbol).toUpperCase(), B = o[I], z = (B == null ? void 0 : B.bid) ?? e.marketBid ?? null, L = (B == null ? void 0 : B.ask) ?? e.marketAsk ?? null, Y = z !== null ? _e(z, e.digits) : "—", G = L !== null ? _e(L, e.digits) : "—", oe = we(() => e.orderPrice > 0 ? e.orderPrice : Vs(z, L) ?? z ?? L, [L, z, e.orderPrice]);
9356
9357
  J(() => {
9357
9358
  p({
9358
9359
  source: "order",
@@ -9377,7 +9378,7 @@ function Dl({
9377
9378
  P,
9378
9379
  p
9379
9380
  ]);
9380
- const k = Bs(e.orderType), D = e.volumeLots, M = Number(d) || e.orderPrice, x = Ue(f), $ = g || O, Q = (M !== e.orderPrice || (k ? x !== e.priceTrigger : !1) || Zn(Ue(h)) !== Zn(e.stopLoss) || Zn(Ue(y)) !== Zn(e.takeProfit) || T.trim() !== e.comment.trim()) && (!k || x !== void 0 && Number.isFinite(M) && M > 0), de = we(() => n("WebTrading.deleteOrderDetail", {
9381
+ const k = Bs(e.orderType), D = e.volumeLots, M = Number(d) || e.orderPrice, E = Ue(f), $ = g || O, Q = (M !== e.orderPrice || (k ? E !== e.priceTrigger : !1) || Zn(Ue(h)) !== Zn(e.stopLoss) || Zn(Ue(y)) !== Zn(e.takeProfit) || T.trim() !== e.comment.trim()) && (!k || E !== void 0 && Number.isFinite(M) && M > 0), de = we(() => n("WebTrading.deleteOrderDetail", {
9381
9382
  ticket: e.ticket,
9382
9383
  typeLabel: e.typeLabel,
9383
9384
  volume: D.toFixed(2),
@@ -9396,7 +9397,7 @@ function Dl({
9396
9397
  const N = await i(e, {
9397
9398
  volumeLots: D,
9398
9399
  priceOrder: M,
9399
- priceTrigger: k ? x : void 0,
9400
+ priceTrigger: k ? E : void 0,
9400
9401
  stopLoss: va(h, e.stopLoss),
9401
9402
  takeProfit: va(y, e.takeProfit),
9402
9403
  comment: T.trim() || "order modify"
@@ -9418,7 +9419,7 @@ function Dl({
9418
9419
  C(!1);
9419
9420
  }
9420
9421
  }, ae = async () => {
9421
- A(!0);
9422
+ x(!0);
9422
9423
  try {
9423
9424
  const N = await r(e);
9424
9425
  if (!N.success) {
@@ -9435,12 +9436,12 @@ function Dl({
9435
9436
  const X = N instanceof Error ? N.message : n("WebTrading.failedDeleteOrder");
9436
9437
  ve({ variant: "destructive", description: X });
9437
9438
  } finally {
9438
- A(!1);
9439
+ x(!1);
9439
9440
  }
9440
9441
  };
9441
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel", children: [
9442
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__header", children: [
9443
- /* @__PURE__ */ E("p", { className: `web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--${e.side}`, children: [
9442
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel", children: [
9443
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__header", children: [
9444
+ /* @__PURE__ */ A("p", { className: `web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--${e.side}`, children: [
9444
9445
  "#",
9445
9446
  e.ticket,
9446
9447
  " ",
@@ -9452,7 +9453,7 @@ function Dl({
9452
9453
  " ",
9453
9454
  e.displaySymbol,
9454
9455
  " ",
9455
- k && x !== void 0 ? `${Mr(x, e.digits)} / ${Mr(M, e.digits)}` : Mr(M, e.digits)
9456
+ k && E !== void 0 ? `${Mr(E, e.digits)} / ${Mr(M, e.digits)}` : Mr(M, e.digits)
9456
9457
  ] }),
9457
9458
  /* @__PURE__ */ l(
9458
9459
  "button",
@@ -9465,9 +9466,9 @@ function Dl({
9465
9466
  }
9466
9467
  )
9467
9468
  ] }),
9468
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__body", children: [
9469
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__body", children: [
9469
9470
  /* @__PURE__ */ l(Ee, { label: n("WebTrading.lots"), value: a, onChange: c, step: 0.01, min: 0.01, decimals: 2, disabled: !0 }),
9470
- k ? /* @__PURE__ */ E(Ye, { children: [
9471
+ k ? /* @__PURE__ */ A(Ye, { children: [
9471
9472
  /* @__PURE__ */ l(
9472
9473
  Ee,
9473
9474
  {
@@ -9501,7 +9502,7 @@ function Dl({
9501
9502
  basePrice: oe
9502
9503
  }
9503
9504
  ),
9504
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9505
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9505
9506
  /* @__PURE__ */ l(
9506
9507
  Ee,
9507
9508
  {
@@ -9529,7 +9530,7 @@ function Dl({
9529
9530
  }
9530
9531
  )
9531
9532
  ] }),
9532
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9533
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9533
9534
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.comment") }),
9534
9535
  /* @__PURE__ */ l(cn, { value: T, onChange: (N) => S(N.target.value) })
9535
9536
  ] }),
@@ -9583,7 +9584,7 @@ function Rl({
9583
9584
  position: e,
9584
9585
  onClose: t
9585
9586
  }) {
9586
- const { t: n } = Ae(), { closePosition: r, modifyPosition: i } = Pi(), s = fe((k) => k.removePosition), o = fe((k) => k.liveQuotes), [a, c] = H(String(e.volumeLots)), d = se((k) => k.stopLoss), u = se((k) => k.takeProfit), f = se((k) => k.setStopLoss), m = se((k) => k.setTakeProfit), h = se((k) => k.setDraft), [y, w] = H(!1), [b, p] = H(!1), T = Bn(e.digits), S = Ie(e.symbol).toUpperCase(), g = o[S], C = (g == null ? void 0 : g.bid) ?? e.marketBid ?? null, O = (g == null ? void 0 : g.ask) ?? e.marketAsk ?? null, A = C !== null ? _e(C, e.digits) : "—", P = O !== null ? _e(O, e.digits) : "—";
9587
+ const { t: n } = Ae(), { closePosition: r, modifyPosition: i } = Pi(), s = fe((k) => k.removePosition), o = fe((k) => k.liveQuotes), [a, c] = H(String(e.volumeLots)), d = se((k) => k.stopLoss), u = se((k) => k.takeProfit), f = se((k) => k.setStopLoss), m = se((k) => k.setTakeProfit), h = se((k) => k.setDraft), [y, w] = H(!1), [b, p] = H(!1), T = Bn(e.digits), S = Ie(e.symbol).toUpperCase(), g = o[S], C = (g == null ? void 0 : g.bid) ?? e.marketBid ?? null, O = (g == null ? void 0 : g.ask) ?? e.marketAsk ?? null, x = C !== null ? _e(C, e.digits) : "—", P = O !== null ? _e(O, e.digits) : "—";
9587
9588
  J(() => {
9588
9589
  h({
9589
9590
  source: "position",
@@ -9664,9 +9665,9 @@ function Rl({
9664
9665
  w(!1);
9665
9666
  }
9666
9667
  };
9667
- return /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel", children: [
9668
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__header", children: [
9669
- /* @__PURE__ */ E("p", { className: "web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--position", children: [
9668
+ return /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel", children: [
9669
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__header", children: [
9670
+ /* @__PURE__ */ A("p", { className: "web-trading-widget-detail-panel__title web-trading-widget-detail-panel__title--position", children: [
9670
9671
  "#",
9671
9672
  e.ticket,
9672
9673
  " ",
@@ -9689,13 +9690,13 @@ function Rl({
9689
9690
  }
9690
9691
  )
9691
9692
  ] }),
9692
- /* @__PURE__ */ E("div", { className: "web-trading-widget-detail-panel__body", children: [
9693
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-detail-panel__body", children: [
9693
9694
  /* @__PURE__ */ l(Ee, { label: n("WebTrading.lots"), value: a, onChange: c, step: 0.01, min: 0.01, decimals: 2, disabled: !0 }),
9694
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9695
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9695
9696
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.price") }),
9696
9697
  /* @__PURE__ */ l(cn, { readOnly: !0, disabled: !0, value: Ur(e.openPrice, e.digits), className: "web-trading-widget-detail-panel__input-muted" })
9697
9698
  ] }),
9698
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9699
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
9699
9700
  /* @__PURE__ */ l(
9700
9701
  Ee,
9701
9702
  {
@@ -9705,7 +9706,7 @@ function Rl({
9705
9706
  step: T,
9706
9707
  decimals: e.digits,
9707
9708
  basePrice: C,
9708
- placeholder: A,
9709
+ placeholder: x,
9709
9710
  clearable: !0
9710
9711
  }
9711
9712
  ),
@@ -9723,7 +9724,7 @@ function Rl({
9723
9724
  }
9724
9725
  )
9725
9726
  ] }),
9726
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
9727
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
9727
9728
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: n("WebTrading.comment") }),
9728
9729
  /* @__PURE__ */ l(
9729
9730
  cn,
@@ -9773,7 +9774,7 @@ function Pa({
9773
9774
  hasConfirmedAccount: f,
9774
9775
  dismissConfirmation: m,
9775
9776
  placeMarketOrder: h
9776
- } = t, y = fe((P) => P.positions), w = fe((P) => P.orders), b = fe((P) => P.selectedPositionTicket), p = fe((P) => P.selectedOrderTicket), T = fe((P) => P.setSelectedPositionTicket), S = fe((P) => P.setSelectedOrderTicket), g = b !== null ? y.find((P) => P.ticket === b) ?? null : null, C = p !== null ? w.find((P) => P.ticket === p) ?? null : null, O = i !== null, A = Z(
9777
+ } = t, y = fe((P) => P.positions), w = fe((P) => P.orders), b = fe((P) => P.selectedPositionTicket), p = fe((P) => P.selectedOrderTicket), T = fe((P) => P.setSelectedPositionTicket), S = fe((P) => P.setSelectedOrderTicket), g = b !== null ? y.find((P) => P.ticket === b) ?? null : null, C = p !== null ? w.find((P) => P.ticket === p) ?? null : null, O = i !== null, x = Z(
9777
9778
  (P) => {
9778
9779
  h({
9779
9780
  symbolTicker: e,
@@ -9809,7 +9810,7 @@ function Pa({
9809
9810
  isSubmitting: s,
9810
9811
  isAccountsLoading: u,
9811
9812
  selectedLogin: d,
9812
- onPlaceOrder: A
9813
+ onPlaceOrder: x
9813
9814
  }
9814
9815
  ) : /* @__PURE__ */ l("div", { className: "web-trading-widget-side-panel__empty", children: n("WebTrading.selectAccountToTrade") });
9815
9816
  }
@@ -9845,8 +9846,8 @@ function ng({
9845
9846
  "aside",
9846
9847
  {
9847
9848
  className: `web-trading-widget-side-panel${c ? " web-trading-widget-side-panel--with-scan" : ""}`,
9848
- children: c ? /* @__PURE__ */ E("div", { className: "web-trading-widget-side-panel__scan-layout", children: [
9849
- /* @__PURE__ */ E(
9849
+ children: c ? /* @__PURE__ */ A("div", { className: "web-trading-widget-side-panel__scan-layout", children: [
9850
+ /* @__PURE__ */ A(
9850
9851
  "div",
9851
9852
  {
9852
9853
  role: "tablist",
@@ -9865,7 +9866,7 @@ function ng({
9865
9866
  ]
9866
9867
  }
9867
9868
  ),
9868
- /* @__PURE__ */ E("div", { className: "web-trading-widget-side-panel__panels", children: [
9869
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-side-panel__panels", children: [
9869
9870
  /* @__PURE__ */ l("div", { role: "tabpanel", hidden: m !== "trade", className: "web-trading-widget-side-panel__tabpanel", children: /* @__PURE__ */ l(Pa, { symbolTicker: e, orderState: t }) }),
9870
9871
  /* @__PURE__ */ l("div", { role: "tabpanel", hidden: m !== "scan", className: "web-trading-widget-side-panel__tabpanel web-trading-widget-side-panel__tabpanel--scan", children: /* @__PURE__ */ l(
9871
9872
  "iframe",
@@ -9932,7 +9933,7 @@ function sg({
9932
9933
  L && (yo(L), C(L), u("confirmed"), o(null), i(t));
9933
9934
  },
9934
9935
  [t, C]
9935
- ), A = Z(() => {
9936
+ ), x = Z(() => {
9936
9937
  o(null), i("market");
9937
9938
  }, []), P = Z(() => {
9938
9939
  o(null), i("mini");
@@ -9954,8 +9955,8 @@ function sg({
9954
9955
  Number(
9955
9956
  Ot(Ct(L.symbolTicker, e))
9956
9957
  );
9957
- const D = pi(L.executionMode), M = Bs(L.orderType), x = Ue(L.priceOrder), $ = Ue(L.priceTrigger);
9958
- if (!D && x === void 0) {
9958
+ const D = pi(L.executionMode), M = Bs(L.orderType), E = Ue(L.priceOrder), $ = Ue(L.priceTrigger);
9959
+ if (!D && E === void 0) {
9959
9960
  Y(), ve({
9960
9961
  variant: "destructive",
9961
9962
  description: n(M ? "WebTrading.pleaseSetLimitPrice" : "WebTrading.pleaseSetOrderPrice")
@@ -9980,7 +9981,7 @@ function sg({
9980
9981
  });
9981
9982
  return;
9982
9983
  }
9983
- const R = D ? L.side === "buy" ? L.ask : L.bid : x ?? (L.side === "buy" ? L.ask : L.bid);
9984
+ const R = D ? L.side === "buy" ? L.ask : L.bid : E ?? (L.side === "buy" ? L.ask : L.bid);
9984
9985
  c(!0);
9985
9986
  try {
9986
9987
  const Q = await b({
@@ -9992,7 +9993,7 @@ function sg({
9992
9993
  volumeLots: oe,
9993
9994
  stopLoss: Ue(L.stopLoss),
9994
9995
  takeProfit: Ue(L.takeProfit),
9995
- priceOrder: Fs(L.orderType) ? x : void 0,
9996
+ priceOrder: Fs(L.orderType) ? E : void 0,
9996
9997
  priceTrigger: M ? $ : void 0,
9997
9998
  comment: L.comment.trim(),
9998
9999
  typeTime: L.typeTime,
@@ -10042,7 +10043,7 @@ function sg({
10042
10043
  hasConfirmedAccount: S,
10043
10044
  needsAccountSelection: g,
10044
10045
  confirmAccountSelection: O,
10045
- openMarketPanel: A,
10046
+ openMarketPanel: x,
10046
10047
  openMiniPanel: P,
10047
10048
  closePanels: I,
10048
10049
  dismissConfirmation: B,
@@ -13475,21 +13476,21 @@ function cy({
13475
13476
  J(() => {
13476
13477
  T(0), S(!1);
13477
13478
  }, [T, S]), J(() => {
13478
- zr() && A(!0);
13479
+ zr() && x(!0);
13479
13480
  }, []);
13480
- const [g, C] = H(null), [O, A] = H(!1), [P, I] = H(null), B = Z(
13481
+ const [g, C] = H(null), [O, x] = H(!1), [P, I] = H(null), B = Z(
13481
13482
  (M) => {
13482
13483
  if (M === b.current)
13483
13484
  return;
13484
- const x = d.find((R) => R.ticker === M);
13485
- if (!x)
13485
+ const E = d.find((R) => R.ticker === M);
13486
+ if (!E)
13486
13487
  return;
13487
13488
  b.current = M, localStorage.setItem(yn, M), t(M);
13488
13489
  const $ = f.current;
13489
13490
  if ($)
13490
13491
  try {
13491
13492
  $.onChartReady(() => {
13492
- $.activeChart().setSymbol(x.ticker);
13493
+ $.activeChart().setSymbol(E.ticker);
13493
13494
  });
13494
13495
  } catch {
13495
13496
  }
@@ -13522,10 +13523,10 @@ function cy({
13522
13523
  }
13523
13524
  const M = oi(d);
13524
13525
  b.current = M, p.current = "60";
13525
- const x = Ml();
13526
- if (!x)
13526
+ const E = Ml();
13527
+ if (!E)
13527
13528
  return;
13528
- const $ = new x({
13529
+ const $ = new E({
13529
13530
  container: g,
13530
13531
  library_path: "/charting_library/",
13531
13532
  datafeed: L,
@@ -13575,24 +13576,24 @@ function cy({
13575
13576
  P.onChartReady(() => {
13576
13577
  M || (async () => {
13577
13578
  try {
13578
- const x = P.activeChart(), $ = await x.createStudy(
13579
+ const E = P.activeChart(), $ = await E.createStudy(
13579
13580
  "Generated Candles - By iC Candle",
13580
13581
  !0,
13581
13582
  !0
13582
13583
  );
13583
- if (M || ($ && x.bringToFront([$]), await P.headerReady(), M) || (await new Promise((de) => {
13584
+ if (M || ($ && E.bringToFront([$]), await P.headerReady(), M) || (await new Promise((de) => {
13584
13585
  setTimeout(() => {
13585
13586
  if (!M)
13586
13587
  try {
13587
- x.clearMarks(2);
13588
+ E.clearMarks(2);
13588
13589
  } catch {
13589
13590
  }
13590
13591
  de(!0);
13591
13592
  }, 150);
13592
13593
  }), M)) return;
13593
- localStorage.setItem("tv:selected-news-events", "[]"), x.refreshMarks();
13594
+ localStorage.setItem("tv:selected-news-events", "[]"), E.refreshMarks();
13594
13595
  const R = (de) => {
13595
- const ue = x.symbol(), ae = Ss(
13596
+ const ue = E.symbol(), ae = Ss(
13596
13597
  ue,
13597
13598
  d,
13598
13599
  w
@@ -13611,7 +13612,7 @@ function cy({
13611
13612
  }
13612
13613
  p.current = de;
13613
13614
  };
13614
- h.current = R, y.current = Q, x.onSymbolChanged().subscribe(null, R), x.onIntervalChanged().subscribe(null, Q);
13615
+ h.current = R, y.current = Q, E.onSymbolChanged().subscribe(null, R), E.onIntervalChanged().subscribe(null, Q);
13615
13616
  } catch {
13616
13617
  }
13617
13618
  })();
@@ -13643,15 +13644,15 @@ function cy({
13643
13644
  };
13644
13645
  }, [P, a]);
13645
13646
  const k = Z(() => {
13646
- A(!0);
13647
- }, []), D = oe ? /* @__PURE__ */ l("div", { className: "web-trading-widget-advanced__scan-limit-wrap", children: /* @__PURE__ */ E(
13647
+ x(!0);
13648
+ }, []), D = oe ? /* @__PURE__ */ l("div", { className: "web-trading-widget-advanced__scan-limit-wrap", children: /* @__PURE__ */ A(
13648
13649
  ag,
13649
13650
  {
13650
13651
  variant: "destructive",
13651
13652
  className: "web-trading-widget-advanced__scan-limit-badge",
13652
13653
  children: [
13653
13654
  /* @__PURE__ */ l("span", { className: "web-trading-widget-advanced__scan-limit-badge-title", children: "Daily scan limit reached" }),
13654
- Y && /* @__PURE__ */ E("span", { className: "web-trading-widget-advanced__scan-limit-badge-count", children: [
13655
+ Y && /* @__PURE__ */ A("span", { className: "web-trading-widget-advanced__scan-limit-badge-count", children: [
13655
13656
  Y.perDayUsage,
13656
13657
  " of ",
13657
13658
  Y.maxPerDayUsage,
@@ -13660,7 +13661,7 @@ function cy({
13660
13661
  ]
13661
13662
  }
13662
13663
  ) }) : null;
13663
- return /* @__PURE__ */ E(Ye, { children: [
13664
+ return /* @__PURE__ */ A(Ye, { children: [
13664
13665
  o ?? D,
13665
13666
  /* @__PURE__ */ l(cg, { onLoad: k }),
13666
13667
  /* @__PURE__ */ l("div", { ref: C, className: "web-trading-widget-advanced__container" })
@@ -13700,34 +13701,34 @@ function dy({
13700
13701
  }) {
13701
13702
  const { t: y } = Ae(), [w, b] = H(!0), p = u ?? w, T = () => {
13702
13703
  f == null || f(), u === void 0 && b((D) => !D);
13703
- }, S = se((D) => D.setOrderSide), g = se((D) => D.setVolumeLots), C = se((D) => D.volumeLots), [O, A] = H(String(C || r));
13704
+ }, S = se((D) => D.setOrderSide), g = se((D) => D.setVolumeLots), C = se((D) => D.volumeLots), [O, x] = H(String(C || r));
13704
13705
  J(() => {
13705
- p || A(Fr(C, 2));
13706
+ p || x(Fr(C, 2));
13706
13707
  }, [p, C]);
13707
13708
  const P = Number(Ot(Ct(e))), I = t !== null ? _e(t, P) : "—", B = n !== null ? _e(n, P) : "—", L = !o && !a && c !== "" && (t !== null && n !== null), Y = (D) => {
13708
- const M = Number(O), x = Number.isFinite(M) && M > 0 ? M : r, $ = Math.max(s, x + D * i), R = Fr($, 2);
13709
- A(R), g($);
13709
+ const M = Number(O), E = Number.isFinite(M) && M > 0 ? M : r, $ = Math.max(s, E + D * i), R = Fr($, 2);
13710
+ x(R), g($);
13710
13711
  }, G = () => {
13711
13712
  const D = Number(O);
13712
13713
  if (!Number.isFinite(D) || D <= 0) {
13713
- A(Fr(r, 2)), g(r);
13714
+ x(Fr(r, 2)), g(r);
13714
13715
  return;
13715
13716
  }
13716
- const M = Math.max(s, D), x = Fr(M, 2);
13717
- A(x), g(M);
13717
+ const M = Math.max(s, D), E = Fr(M, 2);
13718
+ x(E), g(M);
13718
13719
  }, oe = (D) => {
13719
13720
  t === null || n === null || S({ side: D, entryPrice: D === "buy" ? n : t });
13720
13721
  }, k = (D) => {
13721
13722
  if (t === null || n === null || !c)
13722
13723
  return;
13723
- const M = Number(O), x = Math.max(
13724
+ const M = Number(O), E = Math.max(
13724
13725
  s,
13725
13726
  Number.isFinite(M) && M > 0 ? M : r
13726
13727
  );
13727
13728
  S({ side: D, entryPrice: D === "buy" ? n : t }), h({
13728
13729
  login: c,
13729
13730
  side: D,
13730
- volumeLots: x,
13731
+ volumeLots: E,
13731
13732
  bid: t,
13732
13733
  ask: n
13733
13734
  });
@@ -13736,7 +13737,7 @@ function dy({
13736
13737
  "div",
13737
13738
  {
13738
13739
  className: "web-trading-widget-mini-order web-trading-widget-mini-order--expanded",
13739
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__row", children: [
13740
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__row", children: [
13740
13741
  /* @__PURE__ */ l(
13741
13742
  "button",
13742
13743
  {
@@ -13753,8 +13754,8 @@ function dy({
13753
13754
  )
13754
13755
  }
13755
13756
  ),
13756
- /* @__PURE__ */ E(Ye, { children: [
13757
- /* @__PURE__ */ E(
13757
+ /* @__PURE__ */ A(Ye, { children: [
13758
+ /* @__PURE__ */ A(
13758
13759
  "button",
13759
13760
  {
13760
13761
  type: "button",
@@ -13768,7 +13769,7 @@ function dy({
13768
13769
  ]
13769
13770
  }
13770
13771
  ),
13771
- /* @__PURE__ */ E("div", { className: "web-trading-widget-mini-order__volume", children: [
13772
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-mini-order__volume", children: [
13772
13773
  /* @__PURE__ */ l(
13773
13774
  "button",
13774
13775
  {
@@ -13793,7 +13794,7 @@ function dy({
13793
13794
  inputMode: "decimal",
13794
13795
  value: O,
13795
13796
  disabled: !L,
13796
- onChange: (D) => A(D.target.value),
13797
+ onChange: (D) => x(D.target.value),
13797
13798
  onBlur: G,
13798
13799
  className: "web-trading-widget-mini-order__volume-input"
13799
13800
  }
@@ -13816,7 +13817,7 @@ function dy({
13816
13817
  }
13817
13818
  )
13818
13819
  ] }),
13819
- /* @__PURE__ */ E(
13820
+ /* @__PURE__ */ A(
13820
13821
  "button",
13821
13822
  {
13822
13823
  type: "button",
@@ -13875,7 +13876,7 @@ function fy({
13875
13876
  onClose: m,
13876
13877
  onPlaceOrder: h
13877
13878
  }) {
13878
- const { t: y } = Ae(), [w, b] = H(!0), [p, T] = H("market"), S = se((ne) => ne.volumeLots), [g, C] = H(String(S || r)), [O, A] = H(""), [P, I] = H(""), B = se((ne) => ne.stopLoss), z = se((ne) => ne.takeProfit), L = se((ne) => ne.setStopLoss), Y = se((ne) => ne.setTakeProfit), G = se((ne) => ne.setVolumeLots), oe = se((ne) => ne.setOrderSide), [k, D] = H(""), [M, x] = H(qe.GTC), [$, R] = H(""), [Q, de] = H(""), [ue, ae] = H(() => new Set(uy));
13879
+ const { t: y } = Ae(), [w, b] = H(!0), [p, T] = H("market"), S = se((ne) => ne.volumeLots), [g, C] = H(String(S || r)), [O, x] = H(""), [P, I] = H(""), B = se((ne) => ne.stopLoss), z = se((ne) => ne.takeProfit), L = se((ne) => ne.setStopLoss), Y = se((ne) => ne.setTakeProfit), G = se((ne) => ne.setVolumeLots), oe = se((ne) => ne.setOrderSide), [k, D] = H(""), [M, E] = H(qe.GTC), [$, R] = H(""), [Q, de] = H(""), [ue, ae] = H(() => new Set(uy));
13879
13880
  J(() => {
13880
13881
  f();
13881
13882
  }, [w, f]);
@@ -13913,7 +13914,7 @@ function fy({
13913
13914
  ask: n
13914
13915
  });
13915
13916
  }, dt = t !== null && n !== null, ki = Se || Ue(O) !== void 0, Oi = !Le || Ue(P) !== void 0, te = Se || yi(M, $, Q), rt = !o && !a && c !== "" && dt && ki && Oi && te, At = !Se && Ws(M), Cr = !Se && $s(M), uo = () => Ne.orderType !== null && Ne.orderType % 2 === 1 ? "sell" : "buy";
13916
- return /* @__PURE__ */ E(
13917
+ return /* @__PURE__ */ A(
13917
13918
  "div",
13918
13919
  {
13919
13920
  className: `web-trading-widget-market-panel web-trading-widget-market-panel--modal${w ? " web-trading-widget-market-panel--collapsed" : ""}`,
@@ -13955,7 +13956,7 @@ function fy({
13955
13956
  }
13956
13957
  }
13957
13958
  ),
13958
- w ? null : /* @__PURE__ */ E(Ye, { children: [
13959
+ w ? null : /* @__PURE__ */ A(Ye, { children: [
13959
13960
  /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__header", children: /* @__PURE__ */ l(
13960
13961
  "select",
13961
13962
  {
@@ -13966,7 +13967,7 @@ function fy({
13966
13967
  children: Zr.map((ne) => /* @__PURE__ */ l("option", { value: ne.mode, children: y(Jr[ne.mode]) }, ne.mode))
13967
13968
  }
13968
13969
  ) }),
13969
- /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__accordion", children: [
13970
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__accordion", children: [
13970
13971
  /* @__PURE__ */ l(
13971
13972
  yt,
13972
13973
  {
@@ -13992,7 +13993,7 @@ function fy({
13992
13993
  title: y("WebTrading.orderPrice"),
13993
13994
  isOpen: ue.has("order-price"),
13994
13995
  onToggle: () => Pe("order-price"),
13995
- children: Le ? /* @__PURE__ */ E(Ye, { children: [
13996
+ children: Le ? /* @__PURE__ */ A(Ye, { children: [
13996
13997
  /* @__PURE__ */ l(
13997
13998
  Ee,
13998
13999
  {
@@ -14010,7 +14011,7 @@ function fy({
14010
14011
  {
14011
14012
  label: y("WebTrading.limitPrice"),
14012
14013
  value: O,
14013
- onChange: A,
14014
+ onChange: x,
14014
14015
  step: X,
14015
14016
  decimals: N,
14016
14017
  basePrice: ee,
@@ -14022,7 +14023,7 @@ function fy({
14022
14023
  {
14023
14024
  label: y("WebTrading.price"),
14024
14025
  value: O,
14025
- onChange: A,
14026
+ onChange: x,
14026
14027
  step: X,
14027
14028
  decimals: N,
14028
14029
  basePrice: ee,
@@ -14037,7 +14038,7 @@ function fy({
14037
14038
  title: y("WebTrading.riskManagement"),
14038
14039
  isOpen: ue.has("risk-management"),
14039
14040
  onToggle: () => Pe("risk-management"),
14040
- children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__grid-2", children: [
14041
+ children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__grid-2", children: [
14041
14042
  /* @__PURE__ */ l(
14042
14043
  Ee,
14043
14044
  {
@@ -14067,7 +14068,7 @@ function fy({
14067
14068
  ] })
14068
14069
  }
14069
14070
  ),
14070
- Se ? null : /* @__PURE__ */ E(
14071
+ Se ? null : /* @__PURE__ */ A(
14071
14072
  yt,
14072
14073
  {
14073
14074
  title: y("WebTrading.expiration"),
@@ -14080,11 +14081,11 @@ function fy({
14080
14081
  value: String(M),
14081
14082
  className: "web-trading-widget-market-panel__select-full",
14082
14083
  "aria-label": y("WebTrading.orderExpirationType"),
14083
- onChange: (ne) => x(Number(ne.target.value)),
14084
+ onChange: (ne) => E(Number(ne.target.value)),
14084
14085
  children: gc.map((ne) => /* @__PURE__ */ l("option", { value: String(ne.value), children: y(yc[ne.value]) }, ne.value))
14085
14086
  }
14086
14087
  ),
14087
- At ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
14088
+ At ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
14088
14089
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: y("WebTrading.expirationTime") }),
14089
14090
  /* @__PURE__ */ l(
14090
14091
  "input",
@@ -14096,7 +14097,7 @@ function fy({
14096
14097
  }
14097
14098
  )
14098
14099
  ] }) : null,
14099
- Cr ? /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__field", children: [
14100
+ Cr ? /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__field", children: [
14100
14101
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__field-label", children: y("WebTrading.expirationDay") }),
14101
14102
  /* @__PURE__ */ l(
14102
14103
  "input",
@@ -14130,7 +14131,7 @@ function fy({
14130
14131
  }
14131
14132
  )
14132
14133
  ] }),
14133
- /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__footer", children: /* @__PURE__ */ E("div", { className: "web-trading-widget-market-panel__quotes", children: [
14134
+ /* @__PURE__ */ l("div", { className: "web-trading-widget-market-panel__footer", children: /* @__PURE__ */ A("div", { className: "web-trading-widget-market-panel__quotes", children: [
14134
14135
  /* @__PURE__ */ l("span", { children: Oe }),
14135
14136
  /* @__PURE__ */ l("span", { className: "web-trading-widget-market-panel__quotes-ask", children: Be })
14136
14137
  ] }) }),
@@ -14168,11 +14169,11 @@ function hy({
14168
14169
  closePanels: y,
14169
14170
  dismissConfirmation: w,
14170
14171
  placeMarketOrder: b
14171
- } = n, p = fe((R) => R.positions), T = fe((R) => R.orders), S = fe((R) => R.selectedPositionTicket), g = fe((R) => R.selectedOrderTicket), C = fe((R) => R.setSelectedPositionTicket), O = fe((R) => R.setSelectedOrderTicket), A = S !== null ? p.find((R) => R.ticket === S) ?? null : null, P = g !== null ? T.find((R) => R.ticket === g) ?? null : null, I = A !== null || P !== null, B = h && s === "confirmation" && o !== null, z = h && s !== "confirmation" && s !== "closed" && A === null && P === null, { panelRef: L, position: Y, isDragging: G, onDragStart: oe, reclamp: k } = Tc({
14172
+ } = n, p = fe((R) => R.positions), T = fe((R) => R.orders), S = fe((R) => R.selectedPositionTicket), g = fe((R) => R.selectedOrderTicket), C = fe((R) => R.setSelectedPositionTicket), O = fe((R) => R.setSelectedOrderTicket), x = S !== null ? p.find((R) => R.ticket === S) ?? null : null, P = g !== null ? T.find((R) => R.ticket === g) ?? null : null, I = x !== null || P !== null, B = h && s === "confirmation" && o !== null, z = h && s !== "confirmation" && s !== "closed" && x === null && P === null, { panelRef: L, position: Y, isDragging: G, onDragStart: oe, reclamp: k } = Tc({
14172
14173
  storageKey: "web-trading-widget-modal-exec-panel-position",
14173
14174
  defaultAlign: "top-right",
14174
14175
  isActive: z
14175
- }), D = se((R) => R.setDraft), M = se((R) => R.clearDraft), x = Number(Ot(Ct(e))), $ = Bn(x);
14176
+ }), D = se((R) => R.setDraft), M = se((R) => R.clearDraft), E = Number(Ot(Ct(e))), $ = Bn(E);
14176
14177
  return J(() => {
14177
14178
  if (h && !I) {
14178
14179
  if (s === "closed" || s === "confirmation") {
@@ -14188,14 +14189,14 @@ function hy({
14188
14189
  stopLoss: "",
14189
14190
  takeProfit: "",
14190
14191
  volumeLots: c,
14191
- digits: x,
14192
+ digits: E,
14192
14193
  priceStep: $
14193
14194
  });
14194
14195
  }
14195
14196
  }, [
14196
14197
  M,
14197
14198
  c,
14198
- x,
14199
+ E,
14199
14200
  h,
14200
14201
  s,
14201
14202
  $,
@@ -14203,12 +14204,12 @@ function hy({
14203
14204
  I,
14204
14205
  e,
14205
14206
  r
14206
- ]), !h && !I ? null : /* @__PURE__ */ E("div", { className: "web-trading-widget-new-order-overlay-layer", children: [
14207
+ ]), !h && !I ? null : /* @__PURE__ */ A("div", { className: "web-trading-widget-new-order-overlay-layer", children: [
14207
14208
  /* @__PURE__ */ l(cl, { chartWidget: t, symbolTicker: e, symbols: r }),
14208
- I && A !== null ? /* @__PURE__ */ l("div", { className: "web-trading-widget-new-order-overlay web-trading-widget-new-order-overlay--news web-trading-widget-new-order-overlay--side-panel", children: /* @__PURE__ */ l(
14209
+ I && x !== null ? /* @__PURE__ */ l("div", { className: "web-trading-widget-new-order-overlay web-trading-widget-new-order-overlay--news web-trading-widget-new-order-overlay--side-panel", children: /* @__PURE__ */ l(
14209
14210
  Rl,
14210
14211
  {
14211
- position: A,
14212
+ position: x,
14212
14213
  onClose: () => C(null)
14213
14214
  }
14214
14215
  ) }) : null,
@@ -14461,22 +14462,42 @@ function Qa(e, t, n, r) {
14461
14462
  !e || (r == null ? void 0 : r.isConnected) === !1 || (r && (Hl.set(r, { dropdown: e, state: t, onLoginChange: n }), Uy(r)), Kl(e, t, n, r ?? null));
14462
14463
  }
14463
14464
  function Fy() {
14464
- const { toasts: e } = Fp();
14465
+ const { toasts: e, dismiss: t } = Fp();
14465
14466
  return /* @__PURE__ */ l("div", { className: "web-trading-widget-toast-viewport", "aria-live": "polite", "aria-relevant": "additions", children: e.map(
14466
- ({ id: t, title: n, description: r, variant: i, open: s }) => s ? /* @__PURE__ */ E(
14467
+ ({ id: n, title: r, description: i, variant: s, open: o }) => o ? /* @__PURE__ */ A(
14467
14468
  "div",
14468
14469
  {
14469
14470
  className: _t(
14470
14471
  "web-trading-widget-toast",
14471
- i === "destructive" && "web-trading-widget-toast--destructive"
14472
+ s === "destructive" && "web-trading-widget-toast--destructive"
14472
14473
  ),
14473
14474
  role: "status",
14474
14475
  children: [
14475
- n ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__title", children: n }) : null,
14476
- r ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__description", children: r }) : null
14476
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-toast__content", children: [
14477
+ r ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__title", children: r }) : null,
14478
+ i ? /* @__PURE__ */ l("p", { className: "web-trading-widget-toast__description", children: i }) : null
14479
+ ] }),
14480
+ /* @__PURE__ */ l(
14481
+ "button",
14482
+ {
14483
+ type: "button",
14484
+ className: "web-trading-widget-toast__close",
14485
+ "aria-label": "Close notification",
14486
+ onClick: () => t(n),
14487
+ children: /* @__PURE__ */ l("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ l(
14488
+ "path",
14489
+ {
14490
+ d: "M3 3L11 11M11 3L3 11",
14491
+ stroke: "currentColor",
14492
+ strokeWidth: "1.5",
14493
+ strokeLinecap: "round"
14494
+ }
14495
+ ) })
14496
+ }
14497
+ )
14477
14498
  ]
14478
14499
  },
14479
- t
14500
+ n
14480
14501
  ) : null
14481
14502
  ) });
14482
14503
  }
@@ -14500,7 +14521,7 @@ function Wy({
14500
14521
  defaultPanelAfterConfirm: t === "news" ? "market" : "mini"
14501
14522
  }), h = pe(null), y = pe(null), [w, b] = H(null), p = Z((ie) => {
14502
14523
  b(ie);
14503
- }, []), [T, S] = H(null), [g, C] = H(null), O = u ? s ?? null : T, [A, P] = H(
14524
+ }, []), [T, S] = H(null), [g, C] = H(null), O = u ? s ?? null : T, [x, P] = H(
14504
14525
  () => oi(f)
14505
14526
  ), [I, B] = H(
14506
14527
  n ?? null
@@ -14520,7 +14541,7 @@ function Wy({
14520
14541
  m.hasConfirmedAccount
14521
14542
  ), k = pe(null), [D, M] = H(
14522
14543
  m.selectedLogin
14523
- ), x = Z(
14544
+ ), E = Z(
14524
14545
  (ie) => {
14525
14546
  ie !== m.selectedLogin && m.setSelectedLogin(ie);
14526
14547
  },
@@ -14595,7 +14616,7 @@ function Wy({
14595
14616
  isAccountDataLoading: $,
14596
14617
  language: d
14597
14618
  },
14598
- x,
14619
+ E,
14599
14620
  ue
14600
14621
  );
14601
14622
  } catch {
@@ -14619,12 +14640,12 @@ function Wy({
14619
14640
  isAccountDataLoading: $,
14620
14641
  language: d
14621
14642
  },
14622
- x,
14643
+ E,
14623
14644
  ue
14624
14645
  );
14625
14646
  }, [
14626
14647
  ue,
14627
- x,
14648
+ E,
14628
14649
  $,
14629
14650
  d,
14630
14651
  m.accountOptions,
@@ -14633,13 +14654,13 @@ function Wy({
14633
14654
  m.selectedLogin
14634
14655
  ]);
14635
14656
  const X = e ?? (u ? null : /* @__PURE__ */ l(By, {}));
14636
- return t === "news" ? /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ E(
14657
+ return t === "news" ? /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ A(
14637
14658
  "div",
14638
14659
  {
14639
14660
  ref: Y,
14640
14661
  className: "web-trading-widget-trading-layout web-trading-widget-trading-layout--news",
14641
14662
  children: [
14642
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__chart-slot", children: [
14663
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__chart-slot", children: [
14643
14664
  /* @__PURE__ */ l(nl, {}),
14644
14665
  /* @__PURE__ */ l(
14645
14666
  lc,
@@ -14652,7 +14673,7 @@ function Wy({
14652
14673
  createAccountUrl: a
14653
14674
  }
14654
14675
  ),
14655
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__news-body", children: [
14676
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__news-body", children: [
14656
14677
  u ? /* @__PURE__ */ l(
14657
14678
  "div",
14658
14679
  {
@@ -14664,7 +14685,7 @@ function Wy({
14664
14685
  /* @__PURE__ */ l(
14665
14686
  hy,
14666
14687
  {
14667
- symbolTicker: A,
14688
+ symbolTicker: x,
14668
14689
  chartWidget: O,
14669
14690
  orderState: m
14670
14691
  }
@@ -14684,14 +14705,14 @@ function Wy({
14684
14705
  )
14685
14706
  ]
14686
14707
  }
14687
- ) }) : /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout", children: [
14688
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__body", children: [
14689
- /* @__PURE__ */ E("div", { className: "web-trading-widget-trading-layout__chart-area", children: [
14708
+ ) }) : /* @__PURE__ */ l(Ka, { value: N, children: /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout", children: [
14709
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__body", children: [
14710
+ /* @__PURE__ */ A("div", { className: "web-trading-widget-trading-layout__chart-area", children: [
14690
14711
  /* @__PURE__ */ l(
14691
14712
  mp,
14692
14713
  {
14693
14714
  controlsRef: h,
14694
- symbolTicker: A,
14715
+ symbolTicker: x,
14695
14716
  chartWidget: O,
14696
14717
  sidePanelTab: z,
14697
14718
  orderState: m,
@@ -14711,7 +14732,7 @@ function Wy({
14711
14732
  /* @__PURE__ */ l(
14712
14733
  ng,
14713
14734
  {
14714
- symbolTicker: A,
14735
+ symbolTicker: x,
14715
14736
  orderState: m,
14716
14737
  scanResultUrl: I,
14717
14738
  activeTab: z,
@@ -14723,7 +14744,7 @@ function Wy({
14723
14744
  /* @__PURE__ */ l(
14724
14745
  xl,
14725
14746
  {
14726
- symbolTicker: A,
14747
+ symbolTicker: x,
14727
14748
  onSymbolChange: ae,
14728
14749
  onCreateNewOrder: G,
14729
14750
  dealDetailUrl: c,
@@ -14750,7 +14771,7 @@ function ub({
14750
14771
  () => Rs(n),
14751
14772
  [n]
14752
14773
  );
14753
- return /* @__PURE__ */ l(cc, { language: m, children: /* @__PURE__ */ l("div", { className: "web-trading-widget-root", children: /* @__PURE__ */ l(Im, { token: t, children: /* @__PURE__ */ l(El, { children: /* @__PURE__ */ E(el, { baseUrl: e, children: [
14774
+ return /* @__PURE__ */ l(cc, { language: m, children: /* @__PURE__ */ l("div", { className: "web-trading-widget-root", children: /* @__PURE__ */ l(Im, { token: t, children: /* @__PURE__ */ l(El, { children: /* @__PURE__ */ A(el, { baseUrl: e, children: [
14754
14775
  /* @__PURE__ */ l(
14755
14776
  Wy,
14756
14777
  {