@tony01/astroneum 0.4.1-beta.2 → 0.4.1-beta.25
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.
- package/CHANGELOG.md +281 -237
- package/LICENSE +21 -21
- package/README.md +250 -198
- package/dist/{Indicator-BBI3L_lx.d.ts → Indicator-BQQcVGGT.d.ts} +51 -227
- package/dist/astroneum.css +1 -1
- package/dist/chunk-47YGQEL5.js +399 -0
- package/dist/chunk-67XM5LOK.js +2 -0
- package/dist/{chunk-2YYGUSVX.js → chunk-DFJMDDL5.js} +1 -1
- package/dist/chunk-EFAS6F4C.js +59 -0
- package/dist/chunk-EHZN52CY.js +2 -0
- package/dist/chunk-HKLWNPMP.js +35 -0
- package/dist/chunk-ONPPQW65.js +2 -0
- package/dist/chunk-SCTHEM27.js +3 -0
- package/dist/chunk-UQXYMB6X.js +2 -0
- package/dist/chunk-WSIR5T2M.js +3 -0
- package/dist/entries/alerts.d.ts +36 -10
- package/dist/entries/alerts.js +1 -1
- package/dist/entries/datafeeds/crypto.d.ts +5 -1
- package/dist/entries/datafeeds/crypto.js +1 -1
- package/dist/entries/datafeeds/polygon.d.ts +3 -1
- package/dist/entries/datafeeds/polygon.js +1 -1
- package/dist/entries/headless.d.ts +78 -0
- package/dist/entries/headless.js +2 -0
- package/dist/entries/multichart.d.ts +12 -1
- package/dist/entries/multichart.js +1 -1
- package/dist/entries/replay.d.ts +3 -1
- package/dist/entries/script.d.ts +2 -68
- package/dist/entries/script.js +1 -1
- package/dist/entries/watchlist.d.ts +32 -2
- package/dist/entries/watchlist.js +1 -1
- package/dist/entries/workspace.d.ts +61 -0
- package/dist/entries/workspace.js +2 -0
- package/dist/index-BiXdqLA4.d.ts +45 -0
- package/dist/index-_JgHTy8X.d.ts +19 -0
- package/dist/index.d.ts +188 -27
- package/dist/index.js +1 -1
- package/dist/script-BU9StbN-.d.ts +120 -0
- package/dist/types-W6SIYQ9m.d.ts +232 -0
- package/dist/types-yETgeYsE.d.ts +28 -0
- package/dist/zh-CN-NDTUDZGZ.js +3 -0
- package/package.json +157 -147
- package/dist/chunk-4YOLQ5DC.js +0 -2
- package/dist/chunk-I4YQBP2M.js +0 -3
- package/dist/chunk-OOMZRONH.js +0 -35
- package/dist/chunk-PV2GAINM.js +0 -2
- package/dist/chunk-YW3STIPY.js +0 -653
- package/dist/zh-CN-Y2C6RSOI.js +0 -3
- package/docs/STRUCTURE.md +0 -231
- package/docs/TODO-DESIGN.md +0 -261
- package/docs/TODO.md +0 -222
- package/docs/api.md +0 -528
- package/docs/datafeed-guide.md +0 -311
- package/docs/design-astroneum.md +0 -479
- package/docs/plugin-development.md +0 -565
- package/docs/tv-functions-skill.md +0 -706
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {c,b,s as s$1,t,f as f$1,o,h,g as g$1,e,i,k,j,a,d as d$1}from'./chunk-SCTHEM27.js';import {g,f}from'./chunk-YFPXTHZX.js';import {d}from'./chunk-ONPPQW65.js';import {b as b$1}from'./chunk-EFAS6F4C.js';import {q,s,r,j as j$1}from'./chunk-47YGQEL5.js';import z5,{forwardRef,useRef,useState,useEffect,useImperativeHandle,startTransition,useCallback,useMemo,Fragment}from'react';import {createRoot}from'react-dom/client';import {flushSync}from'react-dom';var U1=["fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange"];function E9(e){(e.requestFullscreen??e.webkitRequestFullscreen??e.mozRequestFullScreen??e.msRequestFullscreen)?.call(e);}function Q9(){(document.exitFullscreen??document.msExitFullscreen??document.mozCancelFullScreen??document.webkitExitFullscreen)?.call(document);}function Y1(e,n){return e.multiplier===n.multiplier&&e.timespan===n.timespan}var W9=e=>{let n,[o$1,c$1]=useState(false),l=()=>{c$1(document.fullscreenElement!==null);};return useEffect(()=>(U1.forEach(r=>document.addEventListener(r,l)),()=>{U1.forEach(r=>document.removeEventListener(r,l));}),[]),c("div",{ref:r=>{n=r;},role:"toolbar","aria-label":"Chart toolbar",className:"astroneum-period-bar",children:[b("div",{className:"menu-container",role:"button",tabIndex:0,"aria-label":"Toggle menu",onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onMenuClick());},children:b("svg",{className:e.spread?"":"rotate",viewBox:"0 0 1024 1024",onClick:e.onMenuClick,children:b("path",{d:"M192.037 287.953h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32zM832.161 479.169H438.553c-17.673 0-32 14.327-32 32s14.327 32 32 32h393.608c17.673 0 32-14.327 32-32s-14.327-32-32-32zM832.161 735.802H192.037c-17.673 0-32 14.327-32 32s14.327 32 32 32h640.124c17.673 0 32-14.327 32-32s-14.327-32-32-32zM319.028 351.594l-160 160 160 160z"})})}),e.symbol&&c("div",{className:"symbol",role:"button",tabIndex:0,"aria-label":`Symbol: ${e.symbol?.shortName??e.symbol?.name??e.symbol?.ticker??""}`,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onSymbolClick());},onClick:e.onSymbolClick,children:[e.symbol.logo&&b("img",{alt:"symbol",src:e.symbol.logo}),b("span",{children:e.symbol.shortName??e.symbol.name??e.symbol.ticker})]}),e.periods.map(r=>b("span",{className:`item period ${Y1(r,e.period)?"selected":""}`,role:"button",tabIndex:0,"aria-pressed":Y1(r,e.period),"aria-label":`Period: ${r.text}`,onKeyDown:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),e.onPeriodChange(r));},onClick:()=>{e.onPeriodChange(r);},children:r.text},r.text)),c("div",{className:"item tools",role:"button",tabIndex:0,"aria-label":o("indicator",e.locale),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onIndicatorClick());},onClick:e.onIndicatorClick,children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M15.873,20L3.65079,20C1.5873,20,0,18.3871,0,16.2903L0,3.70968C-3.78442e-7,1.6129,1.5873,0,3.65079,0L15.873,0C17.9365,0,19.5238,1.6129,19.5238,3.70968C19.5238,4.35484,19.2063,4.51613,18.5714,4.51613C17.9365,4.51613,17.619,4.19355,17.619,3.70968C17.619,2.74194,16.8254,1.93548,15.873,1.93548L3.65079,1.93548C2.69841,1.93548,1.90476,2.74194,1.90476,3.70968L1.90476,16.2903C1.90476,17.2581,2.69841,18.0645,3.65079,18.0645L15.873,18.0645C16.8254,18.0645,17.619,17.2581,17.619,16.2903C17.619,15.8065,18.0952,15.3226,18.5714,15.3226C19.0476,15.3226,19.5238,15.8065,19.5238,16.2903C19.5238,18.2258,17.9365,20,15.873,20ZM14.9206,12.9032C14.7619,12.9032,14.4444,12.9032,14.2857,12.7419L11.2698,9.35484C10.9524,9.03226,10.9524,8.54839,11.2698,8.22581C11.5873,7.90323,12.0635,7.90323,12.381,8.22581L15.3968,11.6129C15.7143,11.9355,15.7143,12.4194,15.3968,12.7419C15.3968,12.9032,15.2381,12.9032,14.9206,12.9032ZM11.4286,13.2258C11.2698,13.2258,11.1111,13.2258,10.9524,13.0645C10.6349,12.7419,10.6349,12.4194,10.9524,12.0968L15.0794,7.74193C15.3968,7.41935,15.7143,7.41935,16.0317,7.74193C16.3492,8.06452,16.3492,8.3871,16.0317,8.70968L11.9048,13.0645C11.746,13.2258,11.5873,13.2258,11.4286,13.2258ZM10.3175,3.70968C10.6349,3.70968,11.4286,3.87097,11.4286,4.67742C11.4286,5.32258,10.4762,5.16129,10.1587,5.16129C8.73016,5.16129,8.25397,5.96774,8.09524,6.6129L7.77778,8.54839L9.36508,8.54839C9.68254,8.54839,10,8.87097,10,9.19355C10,9.51613,9.68254,9.83871,9.36508,9.83871L7.61905,9.83871L6.50794,14.8387Q6.34921,16.2903,5.39683,16.2903Q4.44444,16.2903,4.92064,14.8387L6.03175,10L4.60317,10C4.28571,10,3.96825,9.67742,3.96825,9.35484C3.96825,8.70968,4.28571,8.54839,4.60317,8.54839L6.34921,8.54839L6.8254,6.45161C7.14286,3.70968,9.52381,3.54839,10.3175,3.70968ZM18.4127,6.6129C18.5714,6.12903,18.8889,5.96774,19.3651,5.96774C19.8413,6.12903,20,6.45161,20,6.93548L18.4127,13.3871C18.254,13.871,17.9365,14.0323,17.4603,14.0323C16.9841,13.871,16.8254,13.5484,16.8254,13.0645L18.4127,6.6129Z"})}),b("span",{children:o("indicator",e.locale)})]}),c("div",{className:"item tools",role:"button",tabIndex:0,"aria-label":o("timezone",e.locale),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onTimezoneClick());},onClick:e.onTimezoneClick,children:[c("svg",{width:"20",height:"20",viewBox:"0 0 20 20",children:[b("path",{d:"M18.5446,9.09091C18.3333,6.61616,17.2887,4.31818,15.5751,2.63889C13.8498,0.94697,11.6197,0,9.28404,0C8.02817,0,6.81925,0.265151,5.66901,0.782828C5.65728,0.782828,5.65728,0.795454,5.64554,0.795454C5.6338,0.795454,5.6338,0.808081,5.62207,0.808081C4.53052,1.31313,3.55634,2.0202,2.71127,2.92929C1.85446,3.85101,1.18545,4.91162,0.715963,6.11111C0.246479,7.33586,0,8.64899,0,10C0,10.8712,0.105634,11.7172,0.305164,12.5379C0.305164,12.5631,0.316901,12.5884,0.328638,12.6136C0.739437,14.2298,1.51408,15.7197,2.62911,16.9571C4.07277,18.548,5.92723,19.5581,7.93427,19.8737C7.95775,19.8737,7.96948,19.8864,7.99296,19.8864C8.3216,19.9369,8.66197,19.9747,9.00235,19.9747L9.21362,19.9747C9.61268,19.9747,10.3756,19.9369,11.0094,19.697C11.1737,19.6338,11.3028,19.5076,11.3732,19.3434C11.4437,19.1793,11.4554,18.9899,11.3967,18.8131C11.3028,18.5354,11.0563,18.346,10.7864,18.346C10.716,18.346,10.6338,18.3586,10.5634,18.3838C10.0939,18.5606,9.46009,18.5859,9.20188,18.5859L9.09624,18.5859C9.20188,18.2702,9.23709,17.9167,9.15493,17.5505C9.00235,16.8939,8.50939,16.3384,7.58216,15.7955L7.19484,15.5682C6.57277,15.2146,6.23239,15.0253,6.03286,14.7348C5.83333,14.4444,5.69249,13.9899,5.51643,12.9798C5.38732,12.298,5.04695,11.7677,4.50704,11.4646C4.14319,11.2626,3.70892,11.149,3.19249,11.149C2.82864,11.149,2.42958,11.1995,2.00704,11.3005C1.79578,11.351,1.59624,11.4141,1.42019,11.4646C1.33803,10.9848,1.30282,10.4798,1.30282,9.97475C1.30282,6.93182,2.76995,4.26768,4.98826,2.72727C5,3.00505,5.05869,3.29545,5.17606,3.57323C5.48122,4.26768,6.10329,4.7096,7.01878,4.89899C7.06573,4.91162,7.10094,4.91162,7.13615,4.91162L7.1831,4.91162C7.26526,4.91162,7.57042,4.92424,7.88732,5.0505C8.3216,5.2399,8.56808,5.55555,8.65023,6.04798C8.84977,7.61364,9.07277,10.4293,8.79108,11.3384C8.76761,11.4141,8.75587,11.4899,8.75587,11.5657C8.75587,11.9444,9.0493,12.2601,9.40141,12.2601C9.57747,12.2601,9.74179,12.1843,9.85915,12.0581C9.97653,11.9318,12.6174,9.05303,13.3216,8.09343C13.4038,7.97979,13.4859,7.87878,13.5798,7.76515C13.9202,7.33586,14.2723,6.90656,14.4014,6.26262C14.554,5.56818,14.4014,4.79798,13.9437,3.85101C13.615,3.16919,13.5563,2.86616,13.5446,2.75252C13.5563,2.7399,13.5798,2.72727,13.6033,2.71464C15.6221,4.10353,17.0188,6.43939,17.2535,9.19192C17.2887,9.55808,17.5587,9.82323,17.8991,9.82323L17.9577,9.82323C18.3099,9.8106,18.5681,9.48232,18.5446,9.09091ZM3.19249,12.5631C3.48592,12.5631,3.72066,12.6136,3.89671,12.7146C4.08451,12.8283,4.19014,12.9924,4.23709,13.2702C4.43662,14.3434,4.61268,15.0631,5,15.6061C5.37559,16.1364,5.85681,16.4015,6.58451,16.8182L6.60798,16.8308C6.71362,16.8939,6.84272,16.9571,6.96009,17.0328C7.69953,17.4621,7.86385,17.7525,7.89906,17.8914C7.93427,18.0303,7.85211,18.2323,7.74648,18.4343C4.91784,17.8535,2.65258,15.6944,1.73709,12.8283C2.15962,12.702,2.71127,12.5631,3.19249,12.5631ZM12.7934,4.5202C13.4272,5.83333,13.1455,6.18687,12.5822,6.89394C12.4883,7.00758,12.3944,7.12121,12.3005,7.24747C11.9484,7.72727,11.0211,8.77525,10.2113,9.68434C10.2113,9.24242,10.1878,8.73737,10.1526,8.19444C10.0704,6.95707,9.92958,5.90909,9.92958,5.87121L9.92958,5.83333C9.75352,4.83586,9.20188,4.11616,8.3216,3.76263C7.82864,3.56061,7.37089,3.53535,7.19484,3.53535C6.73709,3.43434,6.4554,3.24495,6.33803,2.99242C6.19718,2.68939,6.29108,2.24747,6.38498,1.9697C7.28873,1.59091,8.26291,1.37626,9.28404,1.37626C10.3873,1.37626,11.4437,1.61616,12.4061,2.04545C12.3357,2.18434,12.277,2.34848,12.2535,2.5505C12.2066,3.04293,12.3709,3.64899,12.7934,4.5202Z"}),b("path",{d:"M15.22299772857666,9.722223632261718C12.59389772857666,9.722223632261718,10.44600772857666,12.020201374511718,10.44600772857666,14.861111374511719C10.44600772857666,17.70202137451172,12.58215772857666,20.000021374511718,15.223007728576661,20.000021374511718C17.86384772857666,20.000021374511718,19.99999772857666,17.70202137451172,19.99999772857666,14.861111374511719C19.99999772857666,12.020201374511718,17.85211772857666,9.72222212709572,15.22299772857666,9.722223632261718ZM15.22299772857666,18.598491374511717C13.30985772857666,18.598491374511717,11.737087728576661,16.91919137451172,11.737087728576661,14.848481374511719C11.737087728576661,12.777781374511719,13.29811772857666,11.098491374511719,15.22299772857666,11.098491374511719C17.14787772857666,11.098491374511719,18.708917728576658,12.777781374511719,18.708917728576658,14.848481374511719C18.708917728576658,16.91919137451172,17.13614772857666,18.59848137451172,15.22299772857666,18.598491374511717Z"}),b("path",{d:"M15.692486288146974,15.050496970825195L15.692486288146974,12.676760970825196C15.692486288146974,12.297972970825196,15.399058288146973,11.982316970825195,15.046945288146972,11.982316970825195C14.694833288146972,11.982316970825195,14.401406288146973,12.297972970825196,14.401406288146973,12.676760970825196L14.401406288146973,15.340896970825195C14.401406288146973,15.530296970825194,14.471829288146973,15.694436970825196,14.589200288146973,15.833326970825196L15.751176288146972,17.095956970825195C15.868546288146973,17.222216970825194,16.032866288146973,17.297976970825196,16.208916288146973,17.297976970825196C16.384976288146973,17.297976970825196,16.537556288146973,17.222216970825194,16.666666288146974,17.095956970825195C16.78403628814697,16.969686970825194,16.854456288146974,16.792916970825196,16.854456288146974,16.603526970825193C16.854456288146974,16.414136970825197,16.78403628814697,16.237366970825196,16.666666288146974,16.111106970825197L15.692486288146974,15.050496970825195Z"})]}),b("span",{children:o("timezone",e.locale)})]}),c("div",{className:"item tools",role:"button",tabIndex:0,"aria-label":o("setting",e.locale),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onSettingClick());},onClick:e.onSettingClick,children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M19.7361,12.542L18.1916,11.2919C18.2647,10.8678,18.3025,10.4347,18.3025,10.0017C18.3025,9.56861,18.2647,9.13555,18.1916,8.71142L19.7361,7.46135C19.9743,7.26938,20.0615,6.95686,19.9554,6.6756L19.9342,6.61756C19.5074,5.49026,18.8755,4.45449,18.0549,3.53926L18.0124,3.49238C17.8096,3.26692,17.4819,3.1821,17.1848,3.28032L15.2677,3.92544C14.5603,3.3763,13.7704,2.94324,12.9168,2.63966L12.5466,0.742229C12.49,0.449802,12.2472,0.222111,11.9383,0.168536L11.8746,0.157375C10.6461,-0.0524583,9.35391,-0.0524583,8.1254,0.157375L8.06174,0.168536C7.75284,0.222111,7.50997,0.449802,7.45338,0.742229L7.08082,2.64859C6.2343,2.95217,5.44909,3.383,4.74641,3.92991L2.81522,3.28032C2.52047,3.1821,2.19036,3.26469,1.98757,3.49238L1.94513,3.53926C1.12455,4.45672,0.492609,5.49249,0.0658141,6.61756L0.0445921,6.6756C-0.0615171,6.95463,0.0257283,7.26715,0.263885,7.46135L1.82723,8.72482C1.75413,9.14448,1.71876,9.57308,1.71876,9.99944C1.71876,10.428,1.75413,10.8566,1.82723,11.2741L0.263885,12.5375C0.025729,12.7295,-0.0615164,13.042,0.0445929,13.3233L0.0658148,13.3813C0.49261,14.5064,1.12455,15.5444,1.94513,16.4596L1.98757,16.5065C2.19036,16.732,2.51812,16.8168,2.81522,16.7186L4.74641,16.069C5.44909,16.6159,6.2343,17.0489,7.08082,17.3503L7.45338,19.2567C7.50997,19.5491,7.75284,19.7768,8.06174,19.8303L8.1254,19.8415C8.74084,19.9464,9.37042,20,10,20C10.6296,20,11.2615,19.9464,11.8746,19.8415L11.9383,19.8303C12.2472,19.7768,12.49,19.5491,12.5466,19.2567L12.9168,17.3592C13.7704,17.0556,14.5603,16.6248,15.2677,16.0734L17.1848,16.7186C17.4795,16.8168,17.8096,16.7342,18.0124,16.5065L18.0549,16.4596C18.8755,15.5422,19.5074,14.5064,19.9342,13.3813L19.9554,13.3233C20.0615,13.0487,19.9743,12.7362,19.7361,12.542ZM16.5175,8.97483C16.5764,9.3119,16.6071,9.65791,16.6071,10.0039C16.6071,10.3499,16.5764,10.6959,16.5175,11.033L16.3618,11.9281L18.1233,13.3545C17.8568,13.9372,17.5196,14.4863,17.1188,14.9975L14.9305,14.2631L14.1901,14.839C13.6266,15.2765,12.9994,15.6203,12.3203,15.8614L11.4219,16.1806L10.9998,18.3459C10.3372,18.4173,9.66045,18.4173,8.9955,18.3459L8.57342,16.1761L7.6821,15.8524C7.01008,15.6114,6.38521,15.2676,5.82637,14.8323L5.08596,14.2541L2.88361,14.9953C2.48275,14.4841,2.14791,13.9327,1.8791,13.3523L3.65938,11.9125L3.50611,11.0196C3.44952,10.687,3.41887,10.3432,3.41887,10.0039C3.41887,9.66237,3.44716,9.32083,3.50611,8.98822L3.65938,8.09531L1.8791,6.6555C2.14556,6.07288,2.48275,5.52374,2.88361,5.01255L5.08596,5.75367L5.82637,5.17551C6.38521,4.74022,7.01008,4.39645,7.6821,4.15536L8.57578,3.83615L8.99786,1.66638C9.66045,1.59495,10.3372,1.59495,11.0021,1.66638L11.4242,3.83168L12.3226,4.1509C12.9994,4.39198,13.6289,4.73575,14.1925,5.17328L14.9329,5.7492L17.1211,5.01479C17.522,5.52598,17.8568,6.07734,18.1256,6.65773L16.3642,8.08416L16.5175,8.97483ZM10.0024,5.85189C7.7104,5.85189,5.85231,7.61092,5.85231,9.78068C5.85231,11.9504,7.7104,13.7095,10.0024,13.7095C12.2943,13.7095,14.1524,11.9504,14.1524,9.78068C14.1524,7.61092,12.2943,5.85189,10.0024,5.85189ZM11.8699,11.5486C11.37,12.0196,10.7074,12.2808,10.0024,12.2808C9.29732,12.2808,8.63473,12.0196,8.13483,11.5486C7.6373,11.0754,7.36142,10.4481,7.36142,9.78068C7.36142,9.11323,7.6373,8.48596,8.13483,8.01272C8.63473,7.53948,9.29732,7.28054,10.0024,7.28054C10.7074,7.28054,11.37,7.53948,11.8699,8.01272C12.3674,8.48596,12.6433,9.11323,12.6433,9.78068C12.6433,10.4481,12.3674,11.0754,11.8699,11.5486Z"})}),b("span",{children:o("setting",e.locale)})]}),c("div",{className:"item tools",role:"button",tabIndex:0,"aria-label":o("screenshot",e.locale),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onScreenshotClick());},onClick:e.onScreenshotClick,children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M6.50977,1L13.4902,1C13.6406,1,13.7695,1.1104910000000001,13.7969,1.2631700000000001L14.0273,2.52277C14.1387,3.13147,14.6543,3.57143,15.2559,3.57143L17.5,3.57143C18.8809,3.57143,20,4.72254,20,6.14286L20,16.4286C20,17.8489,18.8809,19,17.5,19L2.5,19C1.11914,19,0,17.8489,0,16.4286L0,6.14286C0,4.72254,1.11914,3.57143,2.5,3.57143L4.74414,3.57143C5.3457,3.57143,5.86133,3.13147,5.97266,2.52277L6.20312,1.2631700000000001C6.23047,1.1104910000000001,6.35937,1,6.50977,1ZM15.2559,4.857139999999999C14.0547,4.857139999999999,13.0215,3.97522,12.7988,2.75982L12.7129,2.28571L7.28711,2.28571L7.20117,2.75982C6.98047,3.97522,5.94727,4.857139999999999,4.74414,4.857139999999999L2.5,4.857139999999999C1.81055,4.857139999999999,1.25,5.43371,1.25,6.14286L1.25,16.4286C1.25,17.1377,1.81055,17.7143,2.5,17.7143L17.5,17.7143C18.1895,17.7143,18.75,17.1377,18.75,16.4286L18.75,6.14286C18.75,5.43371,18.1895,4.857139999999999,17.5,4.857139999999999L15.2559,4.857139999999999ZM4.375,6.78571L3.125,6.78571C2.7793,6.78571,2.5,6.49844,2.5,6.14286C2.5,5.78728,2.7793,5.5,3.125,5.5L4.375,5.5C4.7207,5.5,5,5.78728,5,6.14286C5,6.49844,4.7207,6.78571,4.375,6.78571ZM10,6.14286C7.06641,6.14286,4.6875,8.58973,4.6875,11.6071C4.6875,14.6246,7.06641,17.0714,10,17.0714C12.9336,17.0714,15.3125,14.6246,15.3125,11.6071C15.3125,8.58973,12.9336,6.14286,10,6.14286ZM10,7.42857C11.0859,7.42857,12.1055,7.8625,12.873,8.65201C13.6406,9.44152,14.0625,10.49018,14.0625,11.6071C14.0625,12.7241,13.6406,13.7728,12.873,14.5623C12.1055,15.3518,11.0859,15.7857,10,15.7857C8.91406,15.7857,7.89453,15.3518,7.12695,14.5623C6.35937,13.7728,5.9375,12.7241,5.9375,11.6071C5.9375,10.49018,6.35938,9.44152,7.12695,8.65201C7.89453,7.8625,8.91406,7.42857,10,7.42857ZM10,9.67857C8.96484,9.67857,8.125,10.54241,8.125,11.6071C8.125,12.6719,8.96484,13.5357,10,13.5357C11.0352,13.5357,11.875,12.6719,11.875,11.6071C11.875,10.54241,11.0352,9.67857,10,9.67857ZM10,10.96429C10.3438,10.96429,10.625,11.2536,10.625,11.6071C10.625,11.9607,10.3438,12.25,10,12.25C9.65625,12.25,9.375,11.9607,9.375,11.6071C9.375,11.2536,9.65625,10.96429,10,10.96429Z"})}),b("span",{children:o("screenshot",e.locale)})]}),e.onAlertClick&&c("div",{className:"item tools",role:"button",tabIndex:0,"aria-label":o("alert_create_alert",e.locale),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.onAlertClick?.());},onClick:e.onAlertClick,children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M10,2C10,2,10,2,10,2C9.448,2,9,1.552,9,1C9,0.448,9.448,0,10,0C10.552,0,11,0.448,11,1C11,1.552,10.552,2,10,2ZM16,13L17,14L17,15L3,15L3,14L4,13L4,8C4,5.243,5.982,2.925,8.628,2.196C8.252,1.848,8,1.353,8,0.8C8,0.358,8.358,0,8.8,0C9.242,0,9.6,0.358,9.6,0.8L9.6,2L10,2C10,2,10,2,10,2C10,2,10,2,10,2L10.4,2L10.4,0.8C10.4,0.358,10.758,0,11.2,0C11.642,0,12,0.358,12,0.8C12,1.353,11.748,1.848,11.372,2.196C14.018,2.925,16,5.243,16,8L16,13ZM8.268,16L11.732,16C11.387,16.591,10.748,17,10,17C9.252,17,8.613,16.591,8.268,16Z"})}),b("span",{children:o("alerts",e.locale)})]}),b("div",{className:"item tools",onClick:()=>{if(o$1)Q9();else {let r=n?.parentElement;r&&E9(r);}},children:o$1?c(a,{children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M1.08108,0L0,1.079L4.18919,5.27938L2.54826,6.91715L6.9112,6.91715L6.9112,2.56262L5.28957,4.18112L1.08108,0ZM15.8108,5.27938L20,1.079L18.9189,0L14.7104,4.18112L13.0888,2.56262L13.0888,6.91715L17.4517,6.91715L15.8108,5.27938ZM4.16988,14.7014L0.07722,18.8054L1.1583,20L5.27027,15.7996L6.9112,17.4374L6.9112,13.0829L2.54826,13.0829L4.16988,14.7014ZM17.4517,13.0829L13.0888,13.0829L13.0888,17.4374L14.7297,15.7996L18.8417,20L19.9228,18.8054L15.8301,14.7013L17.4517,13.0829Z"})}),b("span",{children:o("exit_full_screen",e.locale)})]}):c(a,{children:[b("svg",{viewBox:"0 0 20 20",children:b("path",{d:"M2.93444,1.76899L7.57544,6.40999L6.38918,7.59626L1.76899,2.93444L0,4.70343L0,0L4.70343,0L2.93444,1.76899ZM6.40999,12.4037L1.76899,17.0447L0,15.2758L0,19.9792L4.70343,19.9792L2.93444,18.2102L7.57544,13.5692L6.40999,12.4037ZM15.2758,0L17.0447,1.76899L12.4037,6.40999L13.59,7.59626L18.231,2.95526L20,4.72425L20,0L15.2758,0ZM13.5692,12.4037L12.3829,13.59L17.0239,18.231L15.2549,20L19.9792,20L19.9792,15.2758L18.2102,17.0447L13.5692,12.4037Z"})}),b("span",{children:o("full_screen",e.locale)})]})})]})},f1=W9;var q1=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M21,5.5C21,6.32843,20.3284,7,19.5,7C19.4136,7,19.3289,6.99269,19.2465,6.97866L15.6257,15.5086C15.8587,15.7729,16,16.119999999999997,16,16.5C16,17.328400000000002,15.3284,18,14.5,18C13.8469,18,13.2913,17.5826,13.0854,17L3.91465,17C3.70873,17.5826,3.15311,18,2.5,18C1.671573,18,1,17.328400000000002,1,16.5C1,15.6716,1.671573,15,2.5,15C2.5840199999999998,15,2.66643,15.0069,2.74668,15.0202L6.36934,6.48574C6.13933,6.22213,6,5.87733,6,5.5C6,4.671573,6.67157,4,7.5,4C8.15311,4,8.70873,4.417404,8.91465,5L18.0854,5C18.2913,4.417404,18.8469,4,19.5,4C20.3284,4,21,4.671573,21,5.5ZM18.0854,6L8.91465,6C8.892579999999999,6.06243,8.8665,6.12296,8.83672,6.18128L13.9814,15.0921C14.143,15.0325,14.3177,15,14.5,15C14.584,15,14.6664,15.0069,14.7467,15.0202L18.3693,6.48574C18.2462,6.3446,18.149,6.1802,18.0854,6ZM13.2036,15.745L8.0861,6.8811800000000005C7.90605,6.95768,7.70797,7,7.5,7C7.41359,7,7.32888,6.99269,7.24647,6.97866L3.62571,15.5086C3.7512,15.651,3.8501,15.8174,3.91465,16L13.0854,16C13.1169,15.9108,13.1566,15.8255,13.2036,15.745Z",strokeOpacity:"0",stroke:"none"})}),$1=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M9.474616630859375,7.494615087890625L8.844736630859375,7.494615087890625L8.844736630859375,4.149892087890625L8.000006630859374,4.634915087890625L8.004896630859374,4.005035087890625L9.020516630859376,3.414215087890625L9.474616630859375,3.414215087890625L9.474616630859375,7.494615087890625ZM18.529296630859378,4.8318550878906255Q18.307996630859375,5.028795087890625,18.122396630859377,5.385245087890625Q17.868496630859376,5.019035087890625,17.629196630859376,4.8269750878906255Q17.389996630859375,4.634915087890625,17.168596630859376,4.634915087890625Q16.794296630859375,4.634915087890625,16.522496630859376,4.976715087890625Q16.252296630859377,5.3168850878906255,16.252296630859377,5.7856350878906255Q16.252296630859377,6.218575087890625,16.502896630859375,6.521315087890625Q16.755196630859373,6.822415087890625,17.114896630859377,6.822415087890625Q17.368796630859375,6.822415087890625,17.588596630859374,6.625475087890624Q17.809896630859377,6.428535087890625,17.998696630859374,6.0688350878906245Q18.249396630859373,6.439935087890625,18.488596630859377,6.631985087890625Q18.727896630859377,6.822415087890625,18.952496630859375,6.822415087890625Q19.326796630859373,6.822415087890625,19.596996630859376,6.482245087890625Q19.868796630859375,6.140455087890626,19.868796630859375,5.671705087890626Q19.868796630859375,5.238755087890625,19.618196630859376,4.937655087890625Q19.367496630859375,4.634915087890625,19.006196630859375,4.634915087890625Q18.750696630859377,4.634915087890625,18.529296630859378,4.8318550878906255ZM18.337296630859377,5.674955087890625L18.278696630859375,5.596835087890625Q18.449596630859375,5.272935087890625,18.622096630859374,5.1101750878906245Q18.794596630859374,4.947415087890625,18.967096630859373,4.947415087890625Q19.194996630859375,4.947415087890625,19.346396630859374,5.1345950878906255Q19.497696630859377,5.320135087890625,19.497696630859377,5.598455087890625Q19.497696630859377,5.8914250878906245,19.360996630859376,6.096505087890625Q19.224296630859374,6.301585087890626,19.027396630859375,6.301585087890626Q18.915096630859374,6.301585087890626,18.742496630859375,6.146965087890624Q18.569996630859375,5.992335087890625,18.337296630859377,5.674955087890625ZM17.785496630859377,5.779125087890625L17.842496630859372,5.857245087890625Q17.668296630859373,6.186025087890625,17.495796630859374,6.348785087890625Q17.324896630859374,6.509915087890625,17.153996630859375,6.509915087890625Q16.926096630859377,6.509915087890625,16.774796630859377,6.324375087890624Q16.623396630859375,6.137195087890625,16.623396630859375,5.858875087890625Q16.623396630859375,5.565905087890625,16.761696630859376,5.360825087890625Q16.900096630859373,5.1557550878906255,17.095396630859376,5.1557550878906255Q17.228896630859374,5.1557550878906255,17.365596630859375,5.2778250878906245Q17.502296630859377,5.399895087890625,17.785496630859377,5.779125087890625ZM10.710296630859375,10.634915087890626C10.710296630859375,11.024655087890626,10.561656630859375,11.379685087890625,10.317976630859375,11.646395087890625L12.879196630859376,15.171615087890626C12.985696630859374,15.147615087890625,13.096496630859376,15.134915087890626,13.210296630859375,15.134915087890626C13.306796630859376,15.134915087890626,13.401096630859374,15.144015087890624,13.492596630859374,15.161415087890624L16.819096630859377,11.196955087890625C16.748996630859374,11.023375087890624,16.710296630859375,10.833655087890625,16.710296630859375,10.634915087890626C16.710296630859375,9.806495087890625,17.381896630859373,9.134915087890626,18.210296630859375,9.134915087890626C19.038696630859373,9.134915087890626,19.710296630859375,9.806495087890625,19.710296630859375,10.634915087890626C19.710296630859375,11.463345087890625,19.038696630859373,12.134915087890626,18.210296630859375,12.134915087890626C17.949796630859375,12.134915087890626,17.704796630859377,12.068505087890625,17.491296630859374,11.951675087890624L14.364996630859375,15.677415087890624C14.580596630859375,15.937215087890625,14.710296630859375,16.270915087890625,14.710296630859375,16.634915087890626C14.710296630859375,17.463315087890624,14.038696630859375,18.134915087890626,13.210296630859375,18.134915087890626C12.381866630859374,18.134915087890626,11.710296630859375,17.463315087890624,11.710296630859375,16.634915087890626C11.710296630859375,16.284415087890626,11.830486630859374,15.962015087890626,12.031896630859375,15.706715087890625L9.425686630859374,12.119565087890624C9.355346630859376,12.129685087890625,9.283436630859375,12.134915087890626,9.210296630859375,12.134915087890626C8.872396630859374,12.134915087890626,8.560596630859376,12.023195087890626,8.309816630859375,11.834665087890626L5.215876630859375,15.521915087890624C5.519506630859375,15.796415087890624,5.710296630859375,16.193415087890624,5.710296630859375,16.634915087890626C5.710296630859375,17.463315087890624,5.038726630859375,18.134915087890626,4.210296630859375,18.134915087890626C3.381869630859375,18.134915087890626,2.710296630859375,17.463315087890624,2.710296630859375,16.634915087890626C2.710296630859375,15.806515087890626,3.381869630859375,15.134915087890626,4.210296630859375,15.134915087890626C4.218546630859375,15.134915087890626,4.226776630859375,15.135015087890626,4.234996630859375,15.135115087890625L7.744116630859375,10.953115087890625C7.721966630859375,10.850565087890626,7.710296630859375,10.744105087890624,7.710296630859375,10.634915087890626C7.710296630859375,9.806495087890625,8.381866630859374,9.134915087890626,9.210296630859375,9.134915087890626C10.038726630859376,9.134915087890626,10.710296630859375,9.806495087890625,10.710296630859375,10.634915087890626Z",strokeOpacity:"0",stroke:"none"})}),G1=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M17.0643,7.033864912109375L18,3.585784912109375L14.5078,4.509695912109375L15.3537,5.344934912109375L6.02026,14.560584912109375C5.87635,14.517484912109374,5.72366,14.494284912109375,5.5655,14.494284912109375C4.7009,14.494284912109375,4,15.186384912109375,4,16.040084912109375C4,16.893784912109375,4.7009,17.585784912109375,5.5655,17.585784912109375C6.43011,17.585784912109375,7.13101,16.893784912109375,7.13101,16.040084912109375C7.13101,15.722284912109375,7.03392,15.426984912109376,6.86744,15.181384912109374L16.0917,6.073604912109375L17.0643,7.033864912109375Z",strokeOpacity:"0",stroke:"none"})}),J1=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("ellipse",{cx:"10.5",cy:"11.5",rx:"1.5",ry:"1.5",strokeOpacity:"0",stroke:"none"}),b("ellipse",{cx:"17.5",cy:"11.5",rx:"1.5",ry:"1.5",strokeOpacity:"0",stroke:"none"}),b("ellipse",{cx:"10.5",cy:"11.5",rx:"7",ry:"7",fillOpacity:"0",fill:"none",strokeOpacity:"1",strokeWidth:"1"})]}),X1=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M18.8532,7.020985087890625Q19.0257,6.734525087890625,19.0257,6.369945087890625Q19.0257,6.020005087890625,18.8499,5.754705087890625Q18.6758,5.489415087890626,18.3649,5.339675087890625Q18.5944,5.209465087890625,18.7214,4.994615087890625Q18.8499,4.779775087890625,18.8499,4.5193550878906255Q18.8499,4.2003480878906245,18.7002,3.951324087890625Q18.5505,3.700673087890625,18.277,3.557444087890625Q18.0052,3.414215087890625,17.6455,3.414215087890625Q17.285800000000002,3.414215087890625,17.0107,3.557444087890625Q16.7357,3.700673087890625,16.5843,3.951324087890625Q16.4346,4.2003480878906245,16.4346,4.5193550878906255Q16.4346,4.779775087890625,16.561500000000002,4.994615087890625Q16.6901,5.209465087890625,16.919600000000003,5.339675087890625Q16.6055,5.489415087890626,16.4297,5.757965087890625Q16.255499999999998,6.024895087890625,16.255499999999998,6.369945087890625Q16.255499999999998,6.734525087890625,16.4297,7.020985087890625Q16.6055,7.305815087890625,16.919600000000003,7.465325087890625Q17.2354,7.624825087890625,17.6455,7.624825087890625Q18.0557,7.624825087890625,18.3682,7.465325087890625Q18.6807,7.305815087890625,18.8532,7.020985087890625ZM8.76432,7.559725087890625L8.13444,7.559725087890625L8.13444,4.214996087890625L7.28971,4.700025087890625L7.2946,4.070139087890625L8.310220000000001,3.479319087890625L8.76432,3.479319087890625L8.76432,7.559725087890625ZM17.1816,4.955555087890625Q17.0042,4.784655087890625,17.0042,4.5095950878906255Q17.0042,4.229645087890625,17.18,4.057119087890625Q17.355800000000002,3.884592087890625,17.6455,3.884592087890625Q17.935200000000002,3.884592087890625,18.1077,4.057119087890625Q18.2803,4.229645087890625,18.2803,4.5095950878906255Q18.2803,4.784655087890625,18.1045,4.955555087890625Q17.930300000000003,5.124825087890625,17.6455,5.124825087890625Q17.3607,5.124825087890625,17.1816,4.955555087890625ZM18.2217,5.7953950878906255Q18.4398,6.005365087890625,18.4398,6.3552950878906245Q18.4398,6.705235087890625,18.2217,6.915195087890625Q18.0052,7.125155087890625,17.6455,7.125155087890625Q17.285800000000002,7.125155087890625,17.067700000000002,6.915195087890625Q16.849600000000002,6.705235087890625,16.849600000000002,6.3552950878906245Q16.849600000000002,6.005365087890625,17.064500000000002,5.7953950878906255Q17.2793,5.585435087890625,17.6455,5.585435087890625Q18.0052,5.585435087890625,18.2217,5.7953950878906255ZM9.60768,11.711495087890626C9.85136,11.444785087890626,10,11.089765087890626,10,10.700025087890625C10,9.871595087890626,9.32843,9.200025087890625,8.5,9.200025087890625C7.67157,9.200025087890625,7,9.871595087890626,7,10.700025087890625C7,10.809205087890625,7.01167,10.915665087890625,7.03382,11.018215087890624L3.5247,15.200215087890625C3.51648,15.200115087890625,3.5082500000000003,15.200015087890625,3.5,15.200015087890625C2.671573,15.200015087890625,2,15.871615087890625,2,16.700015087890627C2,17.528415087890625,2.671573,18.200015087890627,3.5,18.200015087890627C4.32843,18.200015087890627,5,17.528415087890625,5,16.700015087890627C5,16.258515087890625,4.80921,15.861515087890625,4.50558,15.587015087890626L7.59952,11.899765087890625C7.8503,12.088295087890625,8.162099999999999,12.200025087890625,8.5,12.200025087890625C8.57314,12.200025087890625,8.645050000000001,12.194785087890626,8.71539,12.184675087890625L11.3216,15.771815087890625C11.12019,16.027215087890625,11,16.349515087890623,11,16.700015087890627C11,17.528415087890625,11.67157,18.200015087890627,12.5,18.200015087890627C13.3284,18.200015087890627,14,17.528415087890625,14,16.700015087890627C14,16.336015087890623,13.8703,16.002315087890626,13.6547,15.742515087890625L16.781,12.016775087890625C16.994500000000002,12.133605087890626,17.2395,12.200025087890625,17.5,12.200025087890625C18.3284,12.200025087890625,19,11.528445087890624,19,10.700025087890625C19,9.871595087890626,18.3284,9.200025087890625,17.5,9.200025087890625C16.671599999999998,9.200025087890625,16,9.871595087890626,16,10.700025087890625C16,10.898765087890624,16.0387,11.088475087890625,16.108800000000002,11.262055087890625L12.7823,15.226515087890625C12.6908,15.209115087890625,12.5965,15.200015087890625,12.5,15.200015087890625C12.3862,15.200015087890625,12.2754,15.212715087890626,12.1689,15.236715087890625L9.60768,11.711495087890626Z",strokeOpacity:"0",stroke:"none"})}),j1=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("ellipse",{cx:"10.5",cy:"11.5",rx:"1.5",ry:"1.5",strokeOpacity:"0",stroke:"none"}),b("ellipse",{cx:"17.5",cy:"11.5",rx:"1.5",ry:"1.5",strokeOpacity:"0",stroke:"none"}),b("ellipse",{cx:"10.5",cy:"11.5",rx:"7",ry:"7",fillOpacity:"0",strokeOpacity:"1",fill:"none",strokeWidth:"1"}),b("ellipse",{cx:"10.5",cy:"11.5",rx:"5",ry:"5",fillOpacity:"0",strokeOpacity:"1",fill:"none",strokeWidth:"1"}),b("ellipse",{cx:"10.5",cy:"11.5",rx:"3",ry:"3",fillOpacity:"0",strokeOpacity:"1",fill:"none",strokeWidth:"1"})]}),e0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M17,4.5C17,5.32843,16.328400000000002,6,15.5,6C15.0931,6,14.7241,5.83802,14.4539,5.57503L5.98992,8.32515C5.99658,8.38251,6,8.440850000000001,6,8.5C6,9.15311,5.582599999999999,9.70873,5,9.91465L5,11.08535C5.42621,11.236,5.763999999999999,11.57379,5.91465,12L19.5,12C19.7761,12,20,12.22386,20,12.5C20,12.77614,19.7761,13,19.5,13L5.91465,13C5.70873,13.5826,5.15311,14,4.5,14C3.671573,14,3,13.3284,3,12.5C3,11.84689,3.417404,11.29127,4,11.08535L4,9.91465C3.417404,9.70873,3,9.15311,3,8.5C3,7.67157,3.671573,7,4.5,7C4.90411,7,5.2709,7.15981,5.5406200000000005,7.41967L14.0093,4.66802C14.0032,4.6128599999999995,14,4.5568,14,4.5C14,3.671573,14.6716,3,15.5,3C16.328400000000002,3,17,3.671573,17,4.5ZM4,15.5C4,15.2239,4.22386,15,4.5,15L19.5,15C19.7761,15,20,15.2239,20,15.5C20,15.7761,19.7761,16,19.5,16L4.5,16C4.22386,16,4,15.7761,4,15.5ZM4,18.5C4,18.2239,4.22386,18,4.5,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L4.5,19C4.22386,19,4,18.7761,4,18.5Z",strokeOpacity:"0",stroke:"none"})}),t0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M13.1889,6C12.98303,6.582599999999999,12.42741,7,11.7743,7C11.12119,7,10.565570000000001,6.582599999999999,10.35965,6L3.5,6C3.223857,6,3,5.77614,3,5.5C3,5.22386,3.223857,5,3.5,5L10.35965,5C10.565570000000001,4.417404,11.12119,4,11.7743,4C12.42741,4,12.98303,4.417404,13.1889,5L18.5,5C18.7761,5,19,5.22386,19,5.5C19,5.77614,18.7761,6,18.5,6L13.1889,6ZM3,8.5C3,8.22386,3.223857,8,3.5,8L18.5,8C18.7761,8,19,8.22386,19,8.5C19,8.77614,18.7761,9,18.5,9L3.5,9C3.223857,9,3,8.77614,3,8.5ZM3.278549,11.5C3.278549,11.22386,3.502407,11,3.778549,11L18.7785,11C19.0547,11,19.2785,11.22386,19.2785,11.5C19.2785,11.77614,19.0547,12,18.7785,12L3.778549,12C3.502407,12,3.278549,11.77614,3.278549,11.5ZM3.139267,14.5C3.139267,14.2239,3.363124,14,3.6392670000000003,14L18.6393,14C18.915399999999998,14,19.1393,14.2239,19.1393,14.5C19.1393,14.7761,18.915399999999998,15,18.6393,15L3.6392670000000003,15C3.363124,15,3.139267,14.7761,3.139267,14.5ZM13.1889,18C12.98303,18.5826,12.42741,19,11.7743,19C11.12119,19,10.565570000000001,18.5826,10.35965,18L3.778549,18C3.502407,18,3.278549,17.7761,3.278549,17.5C3.278549,17.2239,3.502407,17,3.778549,17L10.35965,17C10.565570000000001,16.4174,11.12119,16,11.7743,16C12.42741,16,12.98303,16.4174,13.1889,17L18.7785,17C19.0547,17,19.2785,17.2239,19.2785,17.5C19.2785,17.7761,19.0547,18,18.7785,18L13.1889,18Z",strokeOpacity:"0",stroke:"none"})}),n0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M4.91465,6C4.70873,6.582599999999999,4.15311,7,3.5,7C2.671573,7,2,6.32843,2,5.5C2,4.671573,2.671573,4,3.5,4C4.15311,4,4.70873,4.417404,4.91465,5L18.2257,5C18.5018,5,18.7257,5.22386,18.7257,5.5C18.7257,5.77614,18.5018,6,18.2257,6L4.91465,6ZM2.7257,8.5C2.7257,8.22386,2.949558,8,3.2257,8L18.2257,8C18.5018,8,18.7257,8.22386,18.7257,8.5C18.7257,8.77614,18.5018,9,18.2257,9L3.2257,9C2.949558,9,2.7257,8.77614,2.7257,8.5ZM3.00425,11.5C3.00425,11.22386,3.22811,11,3.50425,11L18.5042,11C18.7804,11,19.0042,11.22386,19.0042,11.5C19.0042,11.77614,18.7804,12,18.5042,12L3.50425,12C3.22811,12,3.00425,11.77614,3.00425,11.5ZM2.864967,14.5C2.864967,14.2239,3.08882,14,3.36497,14L18.365,14C18.6411,14,18.865,14.2239,18.865,14.5C18.865,14.7761,18.6411,15,18.365,15L3.36497,15C3.08882,15,2.864967,14.7761,2.864967,14.5ZM20,17.5C20,18.328400000000002,19.3284,19,18.5,19C17.846899999999998,19,17.2913,18.5826,17.0854,18L3.50425,18C3.22811,18,3.00425,17.7761,3.00425,17.5C3.00425,17.2239,3.22811,17,3.50425,17L17.0854,17C17.2913,16.4174,17.846899999999998,16,18.5,16C19.3284,16,20,16.671599999999998,20,17.5Z",strokeOpacity:"0",stroke:"none"})}),o0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M4,17.0854L4,3.5C4,3.223858,4.22386,3,4.5,3C4.77614,3,5,3.223858,5,3.5L5,10L7.57584,10L9.8127,4.46359C9.91614,4.20756,10.20756,4.08386,10.46359,4.1873000000000005C10.71963,4.29075,10.84333,4.58216,10.73988,4.8382000000000005L8.65438,10L11.08535,10C11.29127,9.4174,11.84689,9,12.5,9C12.65154,9,12.79784,9.02247,12.93573,9.06427L16.6464,5.35355C16.8417,5.15829,17.1583,5.15829,17.3536,5.35355C17.5488,5.54882,17.5488,5.8654,17.3536,6.06066L13.7475,9.66675C13.907,9.90508,14,10.19168,14,10.5C14,11.15311,13.5826,11.70873,13,11.91465L13,14.3638L18.3714,12.1936C18.6274,12.09015,18.918799999999997,12.21385,19.0222,12.46989C19.1257,12.72592,19.002,13.0173,18.746000000000002,13.1208L13,15.4423L13,18L19.5,18C19.7761,18,20,18.2239,20,18.5C20,18.7761,19.7761,19,19.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854ZM6.3729499999999994,17.0413L12,14.7678L12,11.91465C11.88136,11.87271,11.76956,11.81627,11.66675,11.74746L6.3729499999999994,17.0413ZM12,15.8463L6.6694700000000005,18L12,18L12,15.8463ZM6.38629,15.6137L8.250350000000001,11L11,11L6.38629,15.6137ZM5,11L7.17182,11L5,16.3754L5,11Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),i0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M3,7.32468C5.90649,3.3893050000000002,11.49833,2.81306,14.6674,6.31944C14.9056,6.1554199999999994,15.192,6.05979,15.5,6.05979C15.845,6.05979,16.1628,6.17974,16.4162,6.381349999999999L18.4509,4.23827L19,4.816615L16.8945,7.03429C16.962600000000002,7.21075,17,7.40319,17,7.60463C17,8.45782,16.328400000000002,9.14947,15.5,9.14947C14.6716,9.14947,14,8.45782,14,7.60463C14,7.36402,14.0534,7.13625,14.1487,6.93322C11.32695,3.748365,6.25159,4.253956,3.612785,7.82695L3,7.32468ZM14.09,15.4717C15.7427,13.78985,16.244500000000002,11.524740000000001,15.5633,9.30134L15.5618,9.30134L16.3012,9.0502C17.072400000000002,11.56646,16.497700000000002,14.158,14.6282,16.0599C12.28737,18.442,8.62386,18.6988,6.41348,16.4501C4.5526,14.5572,4.52076,11.19671,6.36766,9.3177C7.89069,7.76754,10.07544,7.706189999999999,11.56741,9.22363C11.95453,9.61742,12.24817,10.08363,12.43369,10.57677L14.1451,8.77421L14.6942,9.35256L12.64982,11.50582C12.65827,11.59712,12.66295,11.68839,12.66378,11.77936C12.87398,12.04523,13,12.38451,13,12.7541C13,13.60729,12.32843,14.2989,11.5,14.2989C10.67157,14.2989,10,13.60729,10,12.7541C10,11.90091,10.67157,11.20926,11.5,11.20926C11.60387,11.20926,11.70528,11.220130000000001,11.8032,11.240829999999999L11.81763,11.22564C11.69858,10.71874,11.42858,10.21929,11.0284,9.81179C9.844000000000001,8.60765,8.136890000000001,8.65592,6.90822,9.90586C5.37975,11.460930000000001,5.40693,14.288,6.95404,15.8619C8.84598,17.7867,12.03496,17.5626,14.09,15.4717Z",strokeOpacity:"0",stroke:"none"})}),r0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M8.13444,7.494615087890625L8.76432,7.494615087890625L8.76432,3.414215087890625L8.310220000000001,3.414215087890625L7.2946,4.005035087890625L7.28971,4.634915087890625L8.13444,4.149892087890625L8.13444,7.494615087890625ZM18.832,6.929835087890625Q19.0046,6.635245087890625,19.0046,6.2543850878906255Q19.0046,5.889805087890625,18.8451,5.5952050878906245Q18.6855,5.3006050878906255,18.3975,5.132965087890625Q18.1094,4.9653250878906245,17.7399,4.9653250878906245Q17.435499999999998,4.9653250878906245,17.1556,5.149245087890625L17.2793,3.939931087890625L18.8304,3.939931087890625L18.8304,3.414215087890625L16.7406,3.414215087890625L16.5094,5.665195087890625L17.0156,5.795405087890625Q17.095399999999998,5.655425087890626,17.2516,5.570795087890625Q17.4095,5.484525087890625,17.6357,5.484525087890625Q17.9694,5.484525087890625,18.1842,5.697745087890625Q18.4007,5.909335087890625,18.4007,6.2543850878906255Q18.4007,6.604315087890625,18.1842,6.822415087890625Q17.9694,7.0405150878906255,17.6292,7.0405150878906255Q17.3298,7.0405150878906255,17.119799999999998,6.890775087890625Q16.9098,6.739415087890626,16.825200000000002,6.474115087890625L16.3597,6.749175087890626Q16.470399999999998,7.110505087890624,16.807299999999998,7.335115087890625Q17.144199999999998,7.559725087890625,17.6292,7.559725087890625Q18.0296,7.559725087890625,18.3438,7.392075087890625Q18.6595,7.224435087890625,18.832,6.929835087890625ZM10,10.634915087890626C10,11.024655087890626,9.85136,11.379685087890625,9.60768,11.646395087890625L12.1689,15.171615087890626C12.2754,15.147615087890625,12.3862,15.134915087890626,12.5,15.134915087890626C12.5965,15.134915087890626,12.6908,15.144015087890624,12.7823,15.161415087890624L16.108800000000002,11.196955087890625C16.0387,11.023375087890624,16,10.833655087890625,16,10.634915087890626C16,9.806495087890625,16.671599999999998,9.134915087890626,17.5,9.134915087890626C18.3284,9.134915087890626,19,9.806495087890625,19,10.634915087890626C19,11.463345087890625,18.3284,12.134915087890626,17.5,12.134915087890626C17.2395,12.134915087890626,16.994500000000002,12.068505087890625,16.781,11.951675087890624L13.6547,15.677415087890624C13.8703,15.937215087890625,14,16.270915087890625,14,16.634915087890626C14,17.463315087890624,13.3284,18.134915087890626,12.5,18.134915087890626C11.67157,18.134915087890626,11,17.463315087890624,11,16.634915087890626C11,16.284415087890626,11.12019,15.962015087890626,11.3216,15.706715087890625L8.71539,12.119565087890624C8.645050000000001,12.129685087890625,8.57314,12.134915087890626,8.5,12.134915087890626C8.162099999999999,12.134915087890626,7.8503,12.023195087890626,7.59952,11.834665087890626L4.50558,15.521915087890624C4.80921,15.796415087890624,5,16.193415087890624,5,16.634915087890626C5,17.463315087890624,4.32843,18.134915087890626,3.5,18.134915087890626C2.671573,18.134915087890626,2,17.463315087890624,2,16.634915087890626C2,15.806515087890626,2.671573,15.134915087890626,3.5,15.134915087890626C3.5082500000000003,15.134915087890626,3.51648,15.135015087890626,3.5247,15.135115087890625L7.03382,10.953115087890625C7.01167,10.850565087890626,7,10.744105087890624,7,10.634915087890626C7,9.806495087890625,7.67157,9.134915087890626,8.5,9.134915087890626C9.32843,9.134915087890626,10,9.806495087890625,10,10.634915087890626Z",strokeOpacity:"0",stroke:"none"})}),a0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M20,3.5C20,4.15311,19.5826,4.70873,19,4.91465L19,18.5C19,18.7761,18.7761,19,18.5,19L4.91465,19C4.70873,19.5826,4.15311,20,3.5,20C2.671573,20,2,19.3284,2,18.5C2,17.846899999999998,2.417404,17.2913,3,17.0854L3,3.5C3,3.22386,3.22386,3,3.5,3L17.0854,3C17.2913,2.417404,17.846899999999998,2,18.5,2C19.3284,2,20,2.671573,20,3.5ZM17.0854,4C17.236,4.42621,17.5738,4.763999999999999,18,4.91465L18,8L14,8L14,4L17.0854,4ZM13,4L13,8L9,8L9,4L13,4ZM13,9L9,9L9,13L13,13L13,9ZM13,14L9,14L9,18L13,18L13,14ZM14,18L14,14L18,14L18,18L14,18ZM18,13L14,13L14,9L18,9L18,13ZM4.91465,18C4.763999999999999,17.5738,4.42621,17.236,4,17.0854L4,14L8,14L8,18L4.91465,18ZM4,8L4,4L8,4L8,8L4,8ZM8,9L8,13L4,13L4,9L8,9Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),s0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M6.91465,11L11.08535,11C11.29127,10.417404,11.84689,10,12.5,10C13.15311,10,13.70873,10.417404,13.91465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L13.91465,12C13.70873,12.5826,13.15311,13,12.5,13C11.84689,13,11.29127,12.5826,11.08535,12L6.91465,12C6.70873,12.5826,6.15311,13,5.5,13C4.671573,13,4,12.32843,4,11.5C4,10.671573,4.671573,10,5.5,10C6.15311,10,6.70873,10.417404,6.91465,11Z",strokeOpacity:"0",stroke:"none"})}),l0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M6.91465,12.5C6.70873,13.0826,6.15311,13.5,5.5,13.5C4.671573,13.5,4,12.82843,4,12C4,11.171573,4.671573,10.5,5.5,10.5C6.15311,10.5,6.70873,10.917404,6.91465,11.5L16.0853,11.5C16.2913,10.917404,16.846899999999998,10.5,17.5,10.5C18.328400000000002,10.5,19,11.171573,19,12C19,12.82843,18.328400000000002,13.5,17.5,13.5C16.846899999999998,13.5,16.2913,13.0826,16.0853,12.5L6.91465,12.5Z",strokeOpacity:"0",stroke:"none"})}),c0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M12.41465,11L18.5,11C18.7761,11,19,11.22386,19,11.5C19,11.77614,18.7761,12,18.5,12L12.41465,12C12.20873,12.5826,11.65311,13,11,13C10.34689,13,9.79127,12.5826,9.58535,12L3.5,12C3.223857,12,3,11.77614,3,11.5C3,11.22386,3.223857,11,3.5,11L9.58535,11C9.79127,10.417404,10.34689,10,11,10C11.65311,10,12.20873,10.417404,12.41465,11Z",strokeOpacity:"0",stroke:"none"})}),m0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M5.80417,14.9887L4.62563,16.167299999999997C4.43037,16.3625,4.43037,16.6791,4.62563,16.8744C4.82089,17.0696,5.13748,17.0696,5.332739999999999,16.8744L6.62638,15.5807C7.75595,16.290100000000002,9.19328,16.7929,11,16.7929C16.165399999999998,16.7929,18.3323,12.64289,18.8866,11.36789C19.0378,10.99289,19.0378,10.59289,18.8866,10.21789C18.5549,9.45486,17.6456,7.66212,15.8617,6.34545L17.3536,4.853553C17.5488,4.658291,17.5488,4.341709,17.3536,4.146447C17.1583,3.9511845,16.8417,3.9511845,16.6464,4.146447L15.0014,5.7915399999999995C13.9314,5.1969,12.61166,4.792893,11,4.792893C5.80945,4.792893,3.667717,8.94289,3.113386,10.21789C2.9622049,10.59289,2.9622049,10.99289,3.113386,11.36789C3.424435,12.08333,4.2353000000000005,13.70399,5.80417,14.9887ZM7.36012,14.847C8.32327,15.4074,9.52286,15.7929,11,15.7929C15.5606,15.7929,17.4756,12.11789,17.9543,10.99289C18.0047,10.86789,18.0047,10.74289,17.9543,10.61789C17.659,9.90846,16.8171,8.23812,15.1447,7.06241L12.96929,9.23782C13.3134,9.66543,13.5197,10.20642,13.5197,10.79289C13.5197,12.16789,12.38583,13.29289,11,13.29289C10.41596,13.29289,9.87667,13.09308,9.44815,12.75896L7.36012,14.847ZM8.794609999999999,11.99829L6.520099999999999,14.2728C5.06905,13.12119,4.32057,11.628250000000001,4.04567,10.96789C3.995275,10.84289,3.995275,10.71789,4.04567,10.59289C4.52441,9.46789,6.43937,5.79289,11,5.79289C12.28868,5.79289,13.3661,6.086320000000001,14.2596,6.53329L12.19759,8.5953C11.84086,8.40257,11.43271,8.29289,11,8.29289C9.61417,8.29289,8.480319999999999,9.41789,8.480319999999999,10.79289C8.480319999999999,11.22918,8.594470000000001,11.64029,8.794609999999999,11.99829ZM10.16528,12.04183C10.404869999999999,12.20032,10.692070000000001,12.29289,11,12.29289C11.8315,12.29289,12.51181,11.61789,12.51181,10.79289C12.51181,10.48318,12.41593,10.194600000000001,12.25216,9.95494L10.16528,12.04183ZM11.43602,9.35687L9.55616,11.236740000000001C9.512,11.09633,9.48819,10.94724,9.48819,10.79289C9.48819,9.96789,10.1685,9.29289,11,9.29289C11.15142,9.29289,11.29782,9.31528,11.43602,9.35687Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),d0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("defs",{children:b("clipPath",{id:"master_svg0_151_625",children:b("rect",{x:"0",y:"0",width:"22",height:"22",rx:"0"})})}),b("g",{clipPath:"url(#master_svg0_151_625)",children:b("path",{d:"M14.5385,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807692,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.88462,4,14.5385,5.61538,14.5385,7.576919999999999L14.5385,9.76923ZM10.88461,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923L13.38462,9.76923L13.38462,7.576919999999999C13.38462,6.23077,12.26923,5.15385,10.88461,5.15385ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.038450000000001,12.07692,11.307680000000001,12.34615,11.307680000000001,12.65385L11.307680000000001,14.5769C11.307680000000001,14.8846,11.038450000000001,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})})]}),h0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M3.3367688759765626,12.63173C3.5320318759765623,12.82699,3.8486138759765627,12.82699,4.043876875976562,12.63173L11.822052875976562,4.853553C12.017312875976563,4.658291,12.017312875976563,4.341708,11.822052875976562,4.146446C11.626792875976562,3.9511843,11.310202875976563,3.9511843,11.114942875976563,4.146446L3.3367688759765626,11.92462C3.1415071759765625,12.11988,3.1415071759765625,12.43647,3.3367688759765626,12.63173ZM5.001492875976562,17.0351C4.806232875976562,16.8399,4.806232875976562,16.5233,5.001492875976562,16.328L7.304532875976562,14.025C7.210822875976563,13.82916,7.158352875976563,13.60984,7.158352875976563,13.37827C7.158352875976563,12.54984,7.829922875976562,11.87827,8.658352875976561,11.87827C8.889922875976563,11.87827,9.109232875976563,11.93075,9.305052875976562,12.02446L11.304532875976562,10.02498C11.210822875976563,9.82916,11.158352875976561,9.60984,11.158352875976561,9.37827C11.158352875976561,8.54984,11.829922875976562,7.8782700000000006,12.658352875976563,7.8782700000000006C12.889922875976563,7.8782700000000006,13.109232875976563,7.93075,13.305022875976562,8.024460000000001L15.608122875976562,5.72142C15.803322875976562,5.5261499999999995,16.119922875976563,5.5261499999999995,16.315222875976563,5.72142C16.510422875976563,5.9166799999999995,16.510422875976563,6.23326,16.315222875976563,6.42852L14.012122875976562,8.73156C14.105822875976562,8.92738,14.158322875976562,9.1467,14.158322875976562,9.37827C14.158322875976562,10.2067,13.486822875976562,10.87827,12.658352875976563,10.87827C12.426772875976562,10.87827,12.207452875976562,10.82579,12.011642875976563,10.73209L10.012162875976562,12.73156C10.105872875976562,12.92738,10.158352875976561,13.1467,10.158352875976561,13.37827C10.158352875976561,14.2067,9.486772875976563,14.8783,8.658352875976561,14.8783C8.426772875976562,14.8783,8.207452875976562,14.8258,8.011642875976563,14.7321L5.708602875976562,17.0351C5.513342875976562,17.2304,5.196752875976562,17.2304,5.001492875976562,17.0351ZM10.415712875976563,18.328C10.220452875976562,18.5233,9.903862875976563,18.5233,9.708602875976563,18.328C9.513342875976562,18.1328,9.513342875976562,17.816200000000002,9.708602875976563,17.6209L12.304532875976562,15.025C12.210822875976563,14.8292,12.158352875976563,14.6098,12.158352875976563,14.3783C12.158352875976563,13.54984,12.829922875976562,12.87827,13.658322875976562,12.87827C13.889922875976563,12.87827,14.109222875976563,12.93075,14.305022875976562,13.02446L17.486822875976564,9.84274C17.682022875976564,9.64747,17.99862287597656,9.64747,18.19392287597656,9.84274C18.38912287597656,10.038,18.38912287597656,10.35458,18.19392287597656,10.54984L15.012122875976562,13.73156C15.105822875976562,13.92738,15.158322875976562,14.1467,15.158322875976562,14.3783C15.158322875976562,15.2067,14.486822875976562,15.8783,13.658322875976562,15.8783C13.426822875976562,15.8783,13.207422875976562,15.8258,13.011642875976563,15.7321L10.415712875976563,18.328Z",strokeOpacity:"0",stroke:"none"})}),u0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M19.6401,7.99355C20.4028,7.92291,21,7.2811900000000005,21,6.5C21,5.671573,20.3284,5,19.5,5C18.8469,5,18.2913,5.417404,18.0854,6L7.62067,6C7.34453,6,7.12067,6.22386,7.12067,6.5C7.12067,6.5479,7.12741,6.59423,7.13999,6.63809L3.2294099999999997,15.0243C2.530138,15.1517,2,15.764,2,16.5C2,17.328400000000002,2.671573,18,3.5,18C4.15311,18,4.70873,17.5826,4.91465,17L14.5963,17C14.6456,17.076,14.7162,17.1396,14.8044,17.1807C15.0546,17.2974,15.3521,17.1891,15.4688,16.9388L19.6401,7.99355ZM14.7896,16.0293L18.6551,7.739599999999999C18.3942,7.56144,18.1925,7.30307,18.0854,7L8.0746,7L4.25044,15.2009C4.55701,15.3784,4.79493,15.6613,4.91465,16L14.6207,16C14.68,16,14.7368,16.0103,14.7896,16.0293Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),C0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M3.146447,14.178126025390625C2.9511847,13.982826025390626,2.9511847,13.666226025390625,3.146447,13.470926025390625L7.39146,9.225966025390626C7.35417,9.095106025390624,7.33421,8.956946025390625,7.33421,8.814116025390625C7.33421,7.985696025390625,8.00578,7.314116025390625,8.834209999999999,7.314116025390625C8.97703,7.314116025390625,9.11519,7.334086025390625,9.24605,7.371366025390625L13.753,2.864373025390625C13.9483,2.669110325390625,14.2649,2.669110325390625,14.4602,2.864373025390625C14.6554,3.059635025390625,14.6554,3.376217025390625,14.4602,3.571479025390625L10.06916,7.962476025390625C10.23631,8.204386025390626,10.334209999999999,8.497826025390625,10.334209999999999,8.814116025390625C10.334209999999999,9.642546025390626,9.66264,10.314116025390625,8.834209999999999,10.314116025390625C8.51791,10.314116025390625,8.22448,10.216226025390625,7.98256,10.049076025390626L3.853554,14.178126025390625C3.658291,14.373326025390625,3.341709,14.373326025390625,3.146447,14.178126025390625ZM7.67736,19.188526025390626C7.4821,18.993226025390626,7.4821,18.676626025390625,7.67736,18.481426025390626L9.9804,16.178326025390625C9.88669,15.982526025390625,9.834209999999999,15.763226025390624,9.834209999999999,15.531626025390626C9.834209999999999,14.703226025390626,10.50578,14.031626025390626,11.33421,14.031626025390626C11.56579,14.031626025390626,11.78511,14.084126025390624,11.98093,14.177826025390624L13.9804,12.178356025390626C13.8867,11.982536025390624,13.8342,11.763216025390625,13.8342,11.531636025390625C13.8342,10.703206025390624,14.5058,10.031636025390625,15.3342,10.031636025390625C15.5658,10.031636025390625,15.7851,10.084116025390625,15.9809,10.177826025390626L18.284,7.874796025390625C18.4792,7.679536025390625,18.7958,7.679536025390625,18.9911,7.874796025390625C19.1863,8.070056025390624,19.1863,8.386636025390626,18.9911,8.581906025390625L16.688000000000002,10.884936025390624C16.7817,11.080756025390626,16.8342,11.300066025390626,16.8342,11.531636025390625C16.8342,12.360066025390624,16.162599999999998,13.031626025390626,15.3342,13.031626025390626C15.1026,13.031626025390626,14.8833,12.979126025390626,14.6875,12.885426025390625L12.68803,14.884926025390625C12.78174,15.080726025390625,12.83421,15.300026025390626,12.83421,15.531626025390626C12.83421,16.360026025390624,12.16264,17.031626025390626,11.33421,17.031626025390626C11.10264,17.031626025390626,10.88333,16.979126025390627,10.68751,16.885426025390625L8.38446,19.188526025390626C8.1892,19.383726025390626,7.87262,19.383726025390626,7.67736,19.188526025390626Z",strokeOpacity:"0",stroke:"none"})}),p0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M6.91465,13.00505L18.5,13.00505C18.7761,13.00505,19,13.228909999999999,19,13.50505C19,13.781189999999999,18.7761,14.00505,18.5,14.00505L6.91465,14.00505C6.70873,14.58765,6.15311,15.00505,5.5,15.00505C4.671573,15.00505,4,14.33348,4,13.50505C4,12.67662,4.671573,12.00505,5.5,12.00505C6.15311,12.00505,6.70873,12.422450000000001,6.91465,13.00505ZM7.81404,11.625L10.48591,11.625L10.48591,10.90625L9.65193,10.90625L9.65193,7.125L8.997630000000001,7.125C8.71443,7.306641,8.415600000000001,7.419922,7.96443,7.498047L7.96443,8.05078L8.77497,8.05078L8.77497,10.90625L7.81404,10.90625L7.81404,11.625ZM11.081620000000001,11.625L14.0562,11.625L14.0562,10.88281L13.09724,10.88281C12.8863,10.88281,12.59333,10.90625,12.36482,10.93555C13.17537,10.11328,13.84724,9.2207,13.84724,8.39062C13.84724,7.541016,13.28865,7,12.4488,7C11.84333,7,11.446850000000001,7.234375,11.03279,7.679688L11.52497,8.16797C11.747630000000001,7.914062,12.0113,7.697266,12.33552,7.697266C12.7613,7.697266,13.00154,7.982422,13.00154,8.43359C13.00154,9.14648,12.29255,10.00781,11.081620000000001,11.11523L11.081620000000001,11.625ZM15.9605,11.75C16.8121,11.75,17.526899999999998,11.2832,17.526899999999998,10.4375C17.526899999999998,9.82031,17.142200000000003,9.43945,16.6441,9.30078L16.6441,9.27148C17.1129,9.08594,17.3824,8.7207,17.3824,8.21289C17.3824,7.421875,16.8004,7,15.9429,7C15.4215,7,14.9957,7.210938,14.6109,7.541016L15.066,8.11133C15.3258,7.849609,15.5836,7.697266,15.9019,7.697266C16.2789,7.697266,16.4957,7.914062,16.4957,8.28125C16.4957,8.70898,16.2301,9,15.4215,9L15.4215,9.63672C16.3804,9.63672,16.6383,9.91992,16.6383,10.38086C16.6383,10.79688,16.3336,11.03125,15.8824,11.03125C15.4742,11.03125,15.1578,10.82227,14.8922,10.55078L14.4781,11.13281C14.7906,11.486329999999999,15.2652,11.75,15.9605,11.75Z",strokeOpacity:"0",stroke:"none"})}),y0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M7.573332939453125,14.54567903564453C7.667042939453125,14.741499035644532,7.719512939453125,14.960809035644532,7.719512939453125,15.19239903564453C7.719512939453125,16.02079903564453,7.047942939453125,16.69239903564453,6.219512939453125,16.69239903564453C5.391085939453125,16.69239903564453,4.719512939453125,16.02079903564453,4.719512939453125,15.19239903564453C4.719512939453125,14.36394903564453,5.391085939453125,13.692379035644532,6.219512939453125,13.692379035644532C6.451092939453125,13.692379035644532,6.670412939453125,13.74485903564453,6.866232939453125,13.83856903564453L9.865702939453126,10.83909903564453C9.771992939453124,10.643279035644532,9.719512939453125,10.42395903564453,9.719512939453125,10.192379035644532C9.719512939453125,9.36394903564453,10.391082939453124,8.692379035644532,11.219512939453125,8.692379035644532C11.451092939453126,8.692379035644532,11.670412939453126,8.74485903564453,11.866232939453125,8.838569035644532L15.462112939453124,5.242645035644531C15.657412939453126,5.047383335644532,15.974012939453125,5.047383335644532,16.169212939453125,5.242645035644531C16.364512939453125,5.437907035644531,16.364512939453125,5.754489035644531,16.169212939453125,5.949752035644531L12.573332939453124,9.545679035644532C12.667042939453125,9.74149903564453,12.719512939453125,9.96080903564453,12.719512939453125,10.192379035644532C12.719512939453125,11.020809035644533,12.047942939453126,11.692379035644532,11.219512939453125,11.692379035644532C10.987942939453125,11.692379035644532,10.768632939453125,11.639909035644532,10.572812939453126,11.54619903564453L7.573332939453125,14.54567903564453Z",strokeOpacity:"0",stroke:"none"})}),v0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M19,4.5C19,5.15311,18.5826,5.70873,18,5.91465L18,18.5C18,18.7761,17.7761,19,17.5,19L5.91465,19C5.70873,19.5826,5.15311,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.846899999999998,3.417404,17.2913,4,17.0854L4,4.5C4,4.22386,4.22386,4,4.5,4L16.0854,4C16.2913,3.417404,16.846899999999998,3,17.5,3C18.328400000000002,3,19,3.671573,19,4.5ZM5,5L16.0854,5C16.236,5.42621,16.5738,5.763999999999999,17,5.91465L17,18L5.91465,18C5.763999999999999,17.5738,5.42621,17.236,5,17.0854L5,5Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),g0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M16.966900000000003,8.67144C16.6669,8.67144,16.4247,8.91558,16.4247,9.21802L16.4247,16.631500000000003C16.4247,17.322,16.007199999999997,17.9068,15.5139,17.9068L13.93072,17.9068L13.93072,9.2162C13.93072,8.91741,13.68675,8.67144,13.38855,8.67144C13.09036,8.67144,12.84639,8.91741,12.84639,9.21802L12.84639,17.9068L10.151810000000001,17.9068L10.151810000000001,9.21802C10.151810000000001,8.91741,9.90783,8.67144,9.609639999999999,8.67144C9.31145,8.67144,9.06747,8.91741,9.06747,9.219850000000001L9.06747,17.9068L7.48614,17.9068C6.99277,17.9068,6.5753,17.322,6.5753,16.631500000000003L6.5753,9.21802C6.5753,8.91558,6.333130000000001,8.67144,6.03313,8.67144C5.73313,8.67144,5.49096,8.91558,5.49096,9.21802L5.49096,16.631500000000003C5.49096,17.9378,6.385540000000001,19,7.48614,19L15.512,19C16.6127,19,17.509,17.9378,17.509,16.631500000000003L17.509,9.21802C17.509,8.91558,17.2669,8.67144,16.966900000000003,8.67144ZM18.4578,6.21183L4.542169,6.21183C4.243976,6.21183,4,6.45779,4,6.75841C4,7.05903,4.243976,7.30499,4.542169,7.30499L18.4578,7.30499C18.756,7.30499,19,7.05903,19,6.75841C19,6.45779,18.756,6.21183,18.4578,6.21183ZM8.68072,5.10045L14.3193,5.10045C14.6175,5.10045,14.8614,4.852666,14.8614,4.550225C14.8614,4.247783,14.6175,4,14.3193,4L8.68072,4C8.38253,4,8.13855,4.247783,8.13855,4.550225C8.13855,4.852666,8.38253,5.10045,8.68072,5.10045Z",strokeOpacity:"0",fillOpacity:"1"})}),f0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M15.719512939453125,8.461776733398438C16.547912939453127,8.461776733398438,17.219512939453125,7.7902067333984375,17.219512939453125,6.9617767333984375C17.219512939453125,6.133349733398438,16.547912939453127,5.4617767333984375,15.719512939453125,5.4617767333984375C14.891082939453124,5.4617767333984375,14.219512939453125,6.133349733398438,14.219512939453125,6.9617767333984375C14.219512939453125,7.193346733398437,14.271992939453124,7.412666733398438,14.365692939453124,7.608486733398438L7.366222939453126,14.607956733398437C7.170402939453125,14.514256733398437,6.951082939453125,14.461776733398438,6.719512939453125,14.461776733398438C5.891085939453125,14.461776733398438,5.219512939453125,15.133346733398437,5.219512939453125,15.961776733398438C5.219512939453125,16.79017673339844,5.891085939453125,17.461776733398438,6.719512939453125,17.461776733398438C7.547942939453125,17.461776733398438,8.219512939453125,16.79017673339844,8.219512939453125,15.961776733398438C8.219512939453125,15.730176733398437,8.167032939453126,15.510876733398437,8.073322939453124,15.315066733398437L15.072802939453124,8.315586733398437C15.268612939453124,8.409296733398438,15.487912939453125,8.461776733398438,15.719512939453125,8.461776733398438Z",strokeOpacity:"0",stroke:"none"})}),L0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M5.146447,15.753C4.9511845,15.9483,4.9511845,16.2649,5.146447,16.4602C5.341709,16.6554,5.658291,16.6554,5.853554,16.4602L8.156600000000001,14.15711C8.352409999999999,14.25082,8.57173,14.3033,8.8033,14.3033C9.631730000000001,14.3033,10.3033,13.63172,10.3033,12.80329C10.3033,12.57172,10.250820000000001,12.352409999999999,10.157119999999999,12.15659L12.156600000000001,10.15711C12.352409999999999,10.250820000000001,12.571729999999999,10.30329,12.8033,10.30329C13.63173,10.30329,14.3033,9.63172,14.3033,8.80329C14.3033,8.57172,14.25082,8.352409999999999,14.15712,8.15659L16.4602,5.853553C16.6554,5.658291,16.6554,5.341709,16.4602,5.146447C16.2649,4.9511843,15.9483,4.9511843,15.753,5.146447L13.45001,7.449479999999999C13.25419,7.35577,13.03487,7.3032900000000005,12.8033,7.3032900000000005C11.97487,7.3032900000000005,11.3033,7.97487,11.3033,8.80329C11.3033,9.03487,11.35578,9.254190000000001,11.44949,9.450009999999999L9.450009999999999,11.449480000000001C9.254190000000001,11.35577,9.03487,11.30329,8.8033,11.30329C7.97487,11.30329,7.3033,11.97487,7.3033,12.80329C7.3033,13.03487,7.35578,13.25419,7.44949,13.45001L5.146447,15.753Z",strokeOpacity:"0",stroke:"none"})}),M0=e=>c("svg",{className:`icon-overlay ${e??""}`,viewBox:"0 0 22 22",width:"52",height:"38",children:[b("defs",{children:b("clipPath",{id:"master_svg0_151_615",children:b("rect",{x:"0",y:"0",width:"22",height:"22",rx:"0"})})}),b("g",{clipPath:"url(#master_svg0_151_615)",children:b("path",{d:"M19.672,3.0673368C19.4417,2.9354008,19.1463,3.00292252,18.9994,3.2210900000000002L17.4588,5.50622L16.743299999999998,3.781253L13.9915,7.4662L13.9618,7.51108C13.8339,7.72862,13.8936,8.005659999999999,14.1004,8.15391L14.1462,8.183430000000001C14.3683,8.308720000000001,14.6511,8.25001,14.8022,8.047229999999999L16.4907,5.78571L17.246299999999998,7.60713L19.8374,3.7635389999999997L19.8651,3.717088C19.9871,3.484615,19.9023,3.199273,19.672,3.0673368ZM4.79974,8.462530000000001L10.117740000000001,3.252975C10.31381,3.0610145,10.63152,3.0610145,10.82759,3.252975L13.4115,5.78453C13.6076,5.976710000000001,13.6076,6.28833,13.4115,6.4805L8.093869999999999,11.69045C7.48847,12.28368,7.51659,13.3308,8.151309999999999,13.9528C8.786439999999999,14.5755,9.85421,14.6027,10.45961,14.0087L15.7768,8.79831C15.9729,8.60609,16.2909,8.60609,16.487099999999998,8.79831L19.0705,11.33026C19.2667,11.52244,19.2667,11.83406,19.0705,12.02623L13.7533,17.2366C11.32572,19.6158,7.30328,19.578,4.85679,17.1807C2.410298,14.7834,2.371331,10.84174,4.79974,8.462530000000001ZM12.3461,6.1325199999999995L10.47246,4.29654L5.51079,9.15889C3.477674,11.15076,3.510214,14.4688,5.56784,16.4847C7.62506,18.500999999999998,11.01117,18.5325,13.0439,16.540599999999998L15.6842,13.9529L14.2908,12.58718L15.0011,11.89161L16.394399999999997,13.2569L18.0056,11.67786L16.1323,9.84188L11.16985,14.7046C10.18764,15.6679,8.540980000000001,15.6494,7.51498,14.7184L7.44107,14.6487C6.4219,13.65,6.37771,11.98096,7.38362,10.994869999999999L10.02485,8.40693L8.624939999999999,7.03516L9.335180000000001,6.33919L10.73512,7.71099L12.3461,6.1325199999999995Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})})]}),k0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M8.134443814697265,7.494615087890625L8.764323814697265,7.494615087890625L8.764323814697265,3.414215087890625L8.310223814697267,3.414215087890625L7.294603814697266,4.005035087890625L7.289713814697266,4.634915087890625L8.134443814697265,4.149892087890625L8.134443814697265,7.494615087890625ZM18.832003814697266,6.933095087890624Q19.004603814697266,6.635245087890625,19.004603814697266,6.2543850878906255Q19.004603814697266,5.884915087890625,18.845103814697264,5.593575087890625Q18.685503814697267,5.3006050878906255,18.399103814697266,5.136225087890625Q18.114303814697266,4.9702050878906245,17.754603814697266,4.9653250878906245L18.820603814697265,3.840647087890625L18.820603814697265,3.414215087890625L16.519203814697264,3.414215087890625L16.519203814697264,3.939931087890625L18.050803814697264,3.939931087890625L16.719403814697266,5.334785087890625L17.074203814697263,5.7205350878906245Q17.254903814697265,5.484525087890625,17.619503814697268,5.484525087890625Q17.980803814697268,5.484525087890625,18.187503814697266,5.689605087890625Q18.394203814697267,5.894685087890625,18.394203814697267,6.2543850878906255Q18.394203814697267,6.604315087890625,18.187503814697266,6.822415087890625Q17.980803814697268,7.0405150878906255,17.640603814697265,7.0405150878906255Q17.334603814697267,7.0405150878906255,17.124703814697266,6.890775087890625Q16.914703814697265,6.739415087890626,16.820303814697265,6.469225087890624L16.354803814697263,6.744295087890626Q16.480103814697266,7.125155087890625,16.821903814697265,7.341625087890625Q17.165403814697264,7.559725087890625,17.640603814697265,7.559725087890625Q18.039403814697266,7.559725087890625,18.348603814697267,7.393705087890625Q18.659503814697267,7.229315087890625,18.832003814697266,6.933095087890624ZM10.000003814697266,10.634915087890626C10.000003814697266,11.024655087890626,9.851363814697265,11.379685087890625,9.607683814697266,11.646395087890625L12.168903814697266,15.171615087890626C12.275403814697265,15.147615087890625,12.386203814697266,15.134915087890626,12.500003814697266,15.134915087890626C12.596503814697266,15.134915087890626,12.690803814697265,15.144015087890624,12.782303814697265,15.161415087890624L16.108803814697268,11.196955087890625C16.038703814697264,11.023375087890624,16.000003814697266,10.833655087890625,16.000003814697266,10.634915087890626C16.000003814697266,9.806495087890625,16.671603814697264,9.134915087890626,17.500003814697266,9.134915087890626C18.328403814697264,9.134915087890626,19.000003814697266,9.806495087890625,19.000003814697266,10.634915087890626C19.000003814697266,11.463345087890625,18.328403814697264,12.134915087890626,17.500003814697266,12.134915087890626C17.239503814697265,12.134915087890626,16.994503814697268,12.068495087890625,16.781003814697264,11.951675087890624L13.654703814697266,15.677415087890624C13.870303814697266,15.937215087890625,14.000003814697266,16.270915087890625,14.000003814697266,16.634915087890626C14.000003814697266,17.463315087890624,13.328403814697266,18.134915087890626,12.500003814697266,18.134915087890626C11.671573814697265,18.134915087890626,11.000003814697266,17.463315087890624,11.000003814697266,16.634915087890626C11.000003814697266,16.284415087890626,11.120193814697265,15.962015087890626,11.321603814697266,15.706715087890625L8.715393814697265,12.119565087890624C8.645053814697267,12.129685087890625,8.573143814697266,12.134915087890626,8.500003814697266,12.134915087890626C8.162103814697264,12.134915087890626,7.8503038146972655,12.023195087890626,7.599523814697266,11.834665087890626L4.505583814697266,15.521915087890624C4.809213814697266,15.796415087890624,5.000003814697266,16.193415087890624,5.000003814697266,16.634915087890626C5.000003814697266,17.463315087890624,4.328433814697266,18.134915087890626,3.5000038146972656,18.134915087890626C2.6715768146972656,18.134915087890626,2.0000038146972656,17.463315087890624,2.0000038146972656,16.634915087890626C2.0000038146972656,15.806515087890626,2.6715768146972656,15.134915087890626,3.5000038146972656,15.134915087890626C3.508253814697266,15.134915087890626,3.5164838146972657,15.135015087890626,3.524703814697266,15.135115087890625L7.033823814697266,10.953115087890625C7.011673814697265,10.850565087890626,7.000003814697266,10.744105087890624,7.000003814697266,10.634915087890626C7.000003814697266,9.806495087890625,7.671573814697266,9.134915087890626,8.500003814697266,9.134915087890626C9.328433814697267,9.134915087890626,10.000003814697266,9.806495087890625,10.000003814697266,10.634915087890626Z",strokeOpacity:"0",stroke:"none"})}),b0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M11.57625,6.9981C11.55099,6.999359999999999,11.52557,7,11.5,7C11.34,7,11.18584,6.97495,11.04125,6.9285499999999995L5.55401,16.4327C5.713760000000001,16.5905,5.83826,16.7839,5.91465,17L16.0854,17C16.2187,16.622700000000002,16.4987,16.314700000000002,16.8569,16.1445L11.57625,6.9981ZM12.50759,6.611219999999999C12.81005,6.336790000000001,13,5.94058,13,5.5C13,4.671573,12.32843,4,11.5,4C10.67157,4,10,4.671573,10,5.5C10,5.80059,10.08841,6.08052,10.24066,6.31522L4.64514,16.0069C4.59738,16.002299999999998,4.54896,16,4.5,16C3.671573,16,3,16.671599999999998,3,17.5C3,18.328400000000002,3.671573,19,4.5,19C5.15311,19,5.70873,18.5826,5.91465,18L16.0854,18C16.2913,18.5826,16.846899999999998,19,17.5,19C18.328400000000002,19,19,18.328400000000002,19,17.5C19,16.8365,18.5691,16.2735,17.971899999999998,16.075699999999998L12.50759,6.611219999999999Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),x0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("defs",{children:b("clipPath",{id:"master_svg0_151_620",children:b("rect",{x:"0",y:"0",width:"22",height:"22",rx:"0"})})}),b("g",{clipPath:"url(#master_svg0_151_620)",children:b("path",{d:"M8.38461,9.76923L15.6538,9.76923C16.6538,9.76923,17.4615,10.576920000000001,17.4615,11.576920000000001L17.4615,17.1923C17.4615,18.1923,16.6538,19,15.6538,19L5.80769,19C4.807692,19,4,18.1923,4,17.1923L4,11.576920000000001C4,10.576920000000001,4.807693,9.76923,5.80769,9.76923L7.23077,9.76923L7.23077,7.576919999999999C7.23077,5.61538,8.88462,4,10.88462,4C12.46154,4,13.84615,4.961539,14.3462,6.423080000000001C14.4615,6.73077,14.3077,7.038460000000001,14,7.15385C13.69231,7.26923,13.38461,7.11538,13.26923,6.80769C12.92308,5.80769,11.96154,5.15385,10.88462,5.15385C9.5,5.15385,8.38461,6.23077,8.38461,7.576919999999999L8.38461,9.76923ZM15.6538,17.8462C16,17.8462,16.3077,17.5385,16.3077,17.1923L16.3077,11.576920000000001C16.3077,11.23077,16,10.923079999999999,15.6538,10.923079999999999L5.80769,10.923079999999999C5.46154,10.923079999999999,5.15385,11.23077,5.15385,11.576920000000001L5.15385,17.1923C5.15385,17.5385,5.46154,17.8462,5.80769,17.8462L15.6538,17.8462ZM10.153839999999999,12.65385C10.153839999999999,12.34615,10.42307,12.07692,10.73076,12.07692C11.03846,12.07692,11.307690000000001,12.34615,11.307690000000001,12.65385L11.307690000000001,14.5769C11.307690000000001,14.8846,11.03846,15.1538,10.73076,15.1538C10.42307,15.1538,10.153839999999999,14.8846,10.153839999999999,14.5769L10.153839999999999,12.65385Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})})]}),_0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M11.66558837890625,19C10.83716137890625,19,10.16558837890625,18.328400000000002,10.16558837890625,17.5C10.16558837890625,16.846899999999998,10.58298437890625,16.2913,11.16557337890625,16.0854L11.16557337890625,11.91464C10.58298437890625,11.70872,10.16558837890625,11.1531,10.16558837890625,10.5C10.16558837890625,9.8469,10.58298437890625,9.29128,11.16557337890625,9.08536L11.16557337890625,4.5C11.16557337890625,4.223857,11.38942837890625,4,11.66556837890625,4C11.94171837890625,4,12.16556837890625,4.223857,12.16556837890625,4.5L12.16556837890625,9.08535C12.74817837890625,9.291260000000001,13.16558837890625,9.846879999999999,13.16558837890625,10.5C13.16558837890625,11.153120000000001,12.74817837890625,11.708739999999999,12.16556837890625,11.91465L12.16556837890625,16.0854C12.74817837890625,16.2913,13.16558837890625,16.846899999999998,13.16558837890625,17.5C13.16558837890625,18.328400000000002,12.49401837890625,19,11.66558837890625,19Z",strokeOpacity:"0",stroke:"none"})}),w0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M11.165603637695312,6.91465C11.748203637695312,6.70873,12.165603637695312,6.15311,12.165603637695312,5.5C12.165603637695312,4.671573,11.494033637695313,4,10.665603637695312,4C9.837176637695313,4,9.165603637695312,4.671573,9.165603637695312,5.5C9.165603637695312,6.15311,9.583007637695312,6.70873,10.165603637695312,6.91465L10.165603637695312,16.0854C9.583007637695312,16.2913,9.165603637695312,16.846899999999998,9.165603637695312,17.5C9.165603637695312,18.328400000000002,9.837176637695313,19,10.665603637695312,19C11.494033637695313,19,12.165603637695312,18.328400000000002,12.165603637695312,17.5C12.165603637695312,16.846899999999998,11.748203637695312,16.2913,11.165603637695312,16.0854L11.165603637695312,6.91465Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),S0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M11,12.41465L11,18.5C11,18.7761,11.22386,19,11.5,19C11.77614,19,12,18.7761,12,18.5L12,12.41465C12.5826,12.20873,13,11.65311,13,11C13,10.34689,12.5826,9.79127,12,9.58535L12,3.5C12,3.223857,11.77614,3,11.5,3C11.22386,3,11,3.223857,11,3.5L11,9.58535C10.417404,9.79127,10,10.34689,10,11C10,11.65311,10.417404,12.20873,11,12.41465Z",strokeOpacity:"0",stroke:"none"})}),I0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M11,17C5.80945,17,3.667717,12.85,3.113386,11.575C2.9622047,11.2,2.9622047,10.8,3.113386,10.425C3.667717,9.15,5.80945,5,11,5C16.165399999999998,5,18.3323,9.15,18.8866,10.425C19.0378,10.8,19.0378,11.2,18.8866,11.575C18.3323,12.85,16.165399999999998,17,11,17ZM4.04567,10.8C3.995276,10.925,3.995276,11.05,4.04567,11.175C4.52441,12.325,6.43937,16,11,16C15.5606,16,17.4756,12.325,17.9543,11.2C18.0047,11.075,18.0047,10.95,17.9543,10.825C17.4756,9.675,15.5606,6,11,6C6.43937,6,4.52441,9.675,4.04567,10.8ZM11,13.5C9.61417,13.5,8.480319999999999,12.375,8.480319999999999,11C8.480319999999999,9.625,9.61417,8.5,11,8.5C12.38583,8.5,13.5197,9.625,13.5197,11C13.5197,12.375,12.38583,13.5,11,13.5ZM11,9.5C10.1685,9.5,9.48819,10.175,9.48819,11C9.48819,11.825,10.1685,12.5,11,12.5C11.8315,12.5,12.51181,11.825,12.51181,11C12.51181,10.175,11.8315,9.5,11,9.5Z",strokeOpacity:"0",fillOpacity:"1"})}),z0=e=>b("svg",{className:`icon-overlay ${e??""}`,viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M4.727219638671875,8.007996215820313L9.973849638671876,2.7629472158203123C10.167279638671875,2.5696791158203123,10.480729638671875,2.5696791158203123,10.674169638671875,2.7629472158203123L13.223329638671874,5.311756215820313C13.416929638671874,5.505236215820313,13.416929638671874,5.8189862158203125,13.223329638671874,6.012466215820313L7.977129638671875,11.257906215820313C7.379859638671875,11.855176215820313,7.407609638671875,12.909396215820312,8.033809638671876,13.535596215820313C8.660409638671876,14.162596215820313,9.713849638671874,14.189996215820312,10.311129638671876,13.591896215820313L15.556929638671875,8.346066215820311C15.750429638671875,8.152526215820313,16.064229638671875,8.152526215820313,16.257629638671872,8.346066215820311L18.806529638671876,10.895266215820312C19.000029638671876,11.088746215820313,19.000029638671876,11.402496215820312,18.806529638671876,11.595976215820313L13.560629638671875,16.841796215820313C11.165619638671876,19.237196215820312,7.197149638671875,19.19919621582031,4.783499638671875,16.785496215820313C2.3698426386718747,14.371896215820312,2.331397638671875,10.403416215820313,4.727219638671875,8.007996215820313ZM12.172299638671875,5.662106215820312L10.323809638671875,3.8136162158203124L5.4287196386718755,8.709096215820313C3.422893638671875,10.714536215820312,3.4549956386718748,14.055196215820313,5.484999638671875,16.08479621582031C7.514609638671875,18.114796215820313,10.855289638671875,18.146496215820314,12.860719638671876,16.141096215820312L15.465629638671874,13.535796215820312L14.090929638671875,12.160756215820312L14.791629638671875,11.460436215820312L16.166229638671876,12.834996215820313L17.755829638671877,11.245226215820313L15.907729638671874,9.396736215820312L11.011839638671875,14.292596215820312C10.042809638671875,15.262396215820312,8.418249638671874,15.243796215820312,7.406019638671875,14.306496215820312L7.333099638671875,14.236296215820312C6.327599638671876,13.230796215820313,6.284009638671876,11.550396215820312,7.276419638671875,10.557586215820312L9.882199638671874,7.952026215820313L8.501079638671875,6.570906215820313L9.201789638671876,5.870186215820313L10.582939638671874,7.251336215820312L12.172299638671875,5.662106215820312Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),N0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M5.92159,5.93994C6.04014,5.90529,6.152620000000001,5.85639,6.25704,5.79523L9.12729,9.89437C9.045449999999999,10.07959,9,10.28449,9,10.5C9,10.79522,9.08529,11.07053,9.232569999999999,11.30262L4.97573,16.7511L5.92159,5.93994ZM4.92259,5.8848400000000005C4.38078,5.658659999999999,4,5.1238,4,4.5C4,3.671573,4.67157,3,5.5,3C6.2157,3,6.81433,3.50124,6.96399,4.17183L15.1309,4.88634C15.3654,4.36387,15.8902,4,16.5,4C17.328400000000002,4,18,4.67157,18,5.5C18,6.08983,17.659599999999998,6.60015,17.1645,6.84518L18.4264,14.0018C18.4508,14.0006,18.4753,14,18.5,14C19.3284,14,20,14.6716,20,15.5C20,16.328400000000002,19.3284,17,18.5,17C17.932499999999997,17,17.4386,16.6849,17.183799999999998,16.22L5.99686,18.5979C5.946429999999999,19.3807,5.29554,20,4.5,20C3.671573,20,3,19.3284,3,18.5C3,17.869300000000003,3.389292,17.3295,3.94071,17.1077L4.92259,5.8848400000000005ZM5.72452,17.6334C5.69799,17.596,5.6698,17.5599,5.64004,17.525100000000002L10.01843,11.92103C10.16958,11.97223,10.33155,12,10.5,12C10.80059,12,11.08052,11.91158,11.31522,11.75934L17.0606,15.0765C17.0457,15.1271,17.0335,15.1789,17.023899999999998,15.2317L5.72452,17.6334ZM11.92855,10.95875L17.4349,14.1379L16.1699,6.96356C15.9874,6.92257,15.8174,6.8483,15.6667,6.74746L11.99771,10.4165C11.99923,10.44414,12,10.47198,12,10.5C12,10.66,11.97495,10.814160000000001,11.92855,10.95875ZM10.5,9C10.259830000000001,9,10.03285,9.05644,9.83159,9.15679L7.04919,5.1831L15.0493,5.88302C15.054,5.90072,15.059,5.91829,15.0643,5.9357299999999995L11.56066,9.43934C11.28921,9.16789,10.91421,9,10.5,9Z",strokeOpacity:"0",fillRule:"evenodd",fillOpacity:"1"})}),O0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M11,4 L7,12 M11,4 L15,12 M11,4 L11,19 M7,12 L7,19 M15,12 L15,19",fill:"none",strokeOpacity:"1",strokeWidth:"1.2"}),b("circle",{cx:"11",cy:"4",r:"1.5",strokeOpacity:"0"}),b("circle",{cx:"7",cy:"12",r:"1.5",strokeOpacity:"0"}),b("circle",{cx:"15",cy:"12",r:"1.5",strokeOpacity:"0"})]}),D0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,19 L19,3 M3,19 L19,7 M3,19 L19,11 M3,19 L19,15 M3,19 L19,19 M3,19 L15,19 M3,19 L11,19 M3,19 L7,19",fill:"none",strokeOpacity:"1",strokeWidth:"1"}),b("circle",{cx:"3",cy:"19",r:"1.5",strokeOpacity:"0"})]}),P0=e=>c("svg",{className:`icon-overlay ${e??""}`,viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M8,3 L8,7 M14,3 L14,7 M8,7 A3,3 0 0 0 14,7",fill:"none",strokeOpacity:"1",strokeWidth:"1.4"}),b("line",{x1:"3",y1:"4",x2:"19",y2:"18",strokeOpacity:"1",strokeWidth:"1.4"})]}),Z0=e=>c("svg",{className:`icon-overlay ${e??""}`,viewBox:"0 0 22 22",width:"52",height:"38",children:[b("line",{x1:"2",y1:"6",x2:"20",y2:"6",strokeOpacity:"0.5",strokeWidth:"1.2",strokeDasharray:"3,2"}),b("line",{x1:"2",y1:"11",x2:"20",y2:"11",strokeOpacity:"1",strokeWidth:"1.5"}),b("line",{x1:"2",y1:"16",x2:"20",y2:"16",strokeOpacity:"0.5",strokeWidth:"1.2",strokeDasharray:"3,2"}),b("circle",{cx:"11",cy:"11",r:"2",strokeOpacity:"0"})]}),R0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M11,2 L11,8 M11,14 L11,20 M2,11 L8,11 M14,11 L20,11",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeOpacity:"1"}),b("circle",{cx:"11",cy:"11",r:"1.2",fill:"currentColor",strokeOpacity:"0"})]}),A0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("circle",{cx:"11",cy:"11",r:"3",fill:"currentColor",strokeOpacity:"0"}),b("circle",{cx:"11",cy:"11",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeOpacity:"0.4"})]}),T0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M5,3 L5,17 L9,13 L12,19 L14,18 L11,12 L16,12 Z",fill:"currentColor",strokeOpacity:"0"})}),B0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,14 L8,9 L14,3 L19,8 L13,14 L8,19 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1"}),b("path",{d:"M3,14 L13,14",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1",fill:"none"}),b("path",{d:"M14,14 L20,20",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1",fill:"none"})]}),K0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M2,14 L14,2 L20,8 L8,20 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1"}),b("path",{d:"M5,11 L7,13 M8,8 L10,10 M11,5 L13,7",stroke:"currentColor",strokeWidth:"1",strokeOpacity:"1",fill:"none"})]}),V0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("circle",{cx:"9",cy:"9",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1"}),b("path",{d:"M13.5,13.5 L19,19",stroke:"currentColor",strokeWidth:"2",strokeOpacity:"1",fill:"none","stroke-linecap":"round"}),b("path",{d:"M9,6 L9,12 M6,9 L12,9",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1",fill:"none"})]}),E0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M11,2 L14,6 L14,11 L17,13 L17,15 L11,15 L5,15 L5,13 L8,11 L8,6 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1"}),b("path",{d:"M11,15 L11,20",stroke:"currentColor",strokeWidth:"1.5",strokeOpacity:"1",fill:"none","stroke-linecap":"round"})]}),Q0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:b("path",{fill:"currentColor",d:"M5.5 20c1.2 0 2.22.86 2.45 2H25v1H7.95a2.5 2.5 0 1 1-2.45-3m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M25 18H5v-1h20zm-11-4h3v1h-4V9h1zM5.5 4c1.2 0 2.22.86 2.45 2H25v1H7.95A2.5 2.5 0 1 1 5.5 4m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"})}),W0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:b("path",{fill:"currentColor",d:"M5.5 20c1.2 0 2.22.86 2.45 2H25v1H7.95a2.5 2.5 0 1 1-2.45-3m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m9.52-7q.53 0 .93.2l.2.1q.27.17.46.43l.06.1q.2.3.25.73v.02h-.82v-.01a1 1 0 0 0-.36-.55 1.2 1.2 0 0 0-.73-.2q-.22 0-.4.06l-.12.04a1 1 0 0 0-.36.3 1 1 0 0 0-.13.43v.01q0 .2.09.34t.26.25q.19.1.48.2l.76.21q.71.2 1.06.57l.08.1q.27.36.27.9v.02q0 .45-.2.81l-.07.1a2 2 0 0 1-.72.62q-.45.22-1.02.22-.42 0-.77-.1l-.22-.1a2 2 0 0 1-.7-.55 2 2 0 0 1-.3-.84v-.02h.86v.01q.1.36.39.57t.76.22q.34 0 .59-.11a1 1 0 0 0 .4-.31l.06-.1q.09-.17.08-.36a1 1 0 0 0-.1-.38l-.1-.1a1.5 1.5 0 0 0-.65-.34l-.78-.21q-.46-.13-.77-.34-.3-.21-.45-.51-.14-.3-.14-.73 0-.5.24-.88l.06-.09q.24-.32.61-.5.43-.23.96-.23M25 12H5v-1h20zM5.5 4c1.2 0 2.22.86 2.45 2H25v1H7.95A2.5 2.5 0 1 1 5.5 4m0 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"})}),H0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{d:"M19 11h5l-2.5 3z"}),b("circle",{cx:"21.5",cy:"16.5",r:"1.5"}),b("path",{fillRule:"nonzero",d:"M22 11v-6h-1v6z"}),b("path",{d:"M14 18h1v3h-1z"}),b("path",{d:"M14 5h1v6h-1z"}),b("path",{d:"M7 19h1v3h-1z"}),b("path",{d:"M7 6h1v7h-1z"}),b("path",{fillRule:"nonzero",d:"M7 13v6h1v-6h-1zm-1-1h3v8h-3v-8zM14 18h1v-7h-1v7zm-1-8h3v9h-3v-9z"})]})}),F0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",fillRule:"nonzero",children:[b("path",{d:"M6 6v6.5h1v-6.5zM7 22v-2.5h-1v2.5zM11 11v2.5h1v-2.5zM12 24v-7.5h-1v7.5zM16 5v5.5h1v-5.5zM17 21v-2.5h-1v2.5zM21 7v4.5h1v-4.5zM22 19v-2.5h-1v2.5z"}),b("path",{d:"M6 13v6h1v-6h-1zm-1-1h3v8h-3v-8z"}),b("path",{d:"M11 16h1v-2h-1v2zm-1-3h3v4h-3v-4z"}),b("path",{d:"M16 18h1v-7h-1v7zm-1-8h3v9h-3v-9z"}),b("path",{d:"M21 16h1v-4h-1v4zm-1-5h3v6h-3v-6z"})]})}),U0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{fillRule:"nonzero",d:"M4.529 18.21l3.157-1.292-.379-.926-3.157 1.292z"}),b("path",{fillRule:"nonzero",d:"M9.734 16.081l2.97-1.215-.379-.926-2.97 1.215z"}),b("path",{fillRule:"nonzero",d:"M14.725 14.039l2.957-1.21-.379-.926-2.957 1.21z"}),b("path",{fillRule:"nonzero",d:"M19.708 12.001l3.114-1.274-.379-.926-3.114 1.274z"}),b("path",{d:"M8 18h1v3h-1z"}),b("path",{d:"M8 9h1v5h-1z"}),b("path",{fillRule:"nonzero",d:"M8 18h1v-4h-1v4zm-1-5h3v6h-3v-6z"}),b("path",{d:"M18 16h1v3h-1z"}),b("path",{d:"M18 3h1v6h-1z"}),b("path",{fillRule:"nonzero",d:"M18 16h1v-7h-1v7zm-1-8h3v9h-3v-9z"}),b("path",{d:"M13 6h1v5h-1z"}),b("path",{d:"M13 15h1v5h-1z"}),b("path",{fillRule:"nonzero",d:"M13 15h1v-4h-1v4zm-1-5h3v6h-3v-6z"}),b("path",{fillRule:"nonzero",d:"M2.5 20c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM24.5 11c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"})]})}),Y0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",fillRule:"nonzero",children:[b("path",{d:"M23.886 21.431c-.953-8.558-7.742-15.354-16.299-16.315l-.112.994c8.093.909 14.516 7.338 15.417 15.432l.994-.111z"}),b("path",{d:"M5 7.5v14h1v-14zM21.5 23h-14v1h14z"}),b("path",{d:"M5.5 7c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM23.5 25c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM5.5 25c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"})]})}),q0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",fill:"none",children:[b("path",{fill:"currentColor",d:"M17 17h1v6h-1v-6zM17 2h1v5h-1V2z"}),b("path",{fill:"currentColor",d:"M16 17h3V8h-3v9zM15 7h5v11h-5V7zM10 5h1v5h-1V5zM10 22h1v3h-1v-3z"}),b("path",{fill:"currentColor",d:"M9 21h3V10H9v11zM8 9h5v13H8V9z"}),b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M25.27 9.42L14.1 16.53l-6.98-1.5L5.3 16.4l-.6-.8 2.18-1.64 7.02 1.5 10.83-6.88.54.84z"}),b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M4 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"})]}),$0=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",fill:"none",children:[b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5 21.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zM3.5 24a2.5 2.5 0 0 0 .5-4.95V3H3v16.05A2.5 2.5 0 0 0 3.5 24zM25 5.5a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0zM23.5 3a2.5 2.5 0 0 1 .5 4.95V24h-1V7.95A2.5 2.5 0 0 1 23.5 3z"}),b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M9 7H4v2h5V7zM3 6v4h7V6H3z"}),b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M12 10H4v2h8v-2zM3 9v4h10V9H3z"}),b("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7 13H4v2h3v-2zm-4-1v4h5v-4H3z"})]}),G0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:b("path",{fill:"currentColor",fillRule:"evenodd",d:"M24 3h-1v4h-6v3h-5v3H8.95a2.5 2.5 0 1 0 0 1H15v3h5v3h3v4h1V3Zm-6 7h5V8h-5v2Zm-1 1h-4v2h10v-2h-6Zm4 5h-5v-2h7v2h-2Zm0 3v-2h2v2h-2ZM6.5 15a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})}),J0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{fillRule:"nonzero",d:"M4 5h16.5v-1h-16.5zM25 24h-16.5v1h16.5z"}),b("path",{fillRule:"nonzero",d:"M6.5 26c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM22.5 6c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"}),b("path",{fillRule:"nonzero",d:"M14 9v14h1v-14z"}),b("path",{d:"M14.5 6l2.5 3h-5z"})]})}),X0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{fillRule:"nonzero",d:"M20 14h-14v1h14z"}),b("path",{d:"M20 17v-5l3 2.5z"}),b("path",{fillRule:"nonzero",d:"M24 8.5v16.5h1v-16.5zM4 4v16.5h1v-16.5z"}),b("path",{fillRule:"nonzero",d:"M4.5 24c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM24.5 8c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"})]})}),j0=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{fillRule:"nonzero",d:"M6.5 23v1h17.5v-17.5h-1v16.5z"}),b("path",{fillRule:"nonzero",d:"M21.5 5v-1h-17.5v17.5h1v-16.5z"}),b("path",{fillRule:"nonzero",d:"M4.5 25c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5zM23.5 6c.828 0 1.5-.672 1.5-1.5s-.672-1.5-1.5-1.5-1.5.672-1.5 1.5.672 1.5 1.5 1.5zm0 1c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"}),b("path",{fillRule:"nonzero",d:"M13 9v13h1v-13z"}),b("path",{d:"M13.5 6l2.5 3h-5z"}),b("path",{fillRule:"nonzero",d:"M19 14h-13v1h13z"}),b("path",{d:"M19 17v-5l3 2.5z"})]})}),L1=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:b("path",{d:"M5 4h12v2h-5v12h-2V6H5z",fill:"currentColor"})}),e9=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,7L18,3",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M5,19L20,15",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M3.6,10L18.6,6",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M4.2,13L19.2,9",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M4.6,16L19.6,12",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"})]}),t9=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,18L19,4",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M3,18L19,18",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M3,18L11,11",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M3,18L15,8",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M3,18L7,14.5",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"})]}),n9=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,2L3,20",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M5,2L5,20",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M7,2L7,20",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M10,2L10,20",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M14,2L14,20",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M19,2L19,20",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"})]}),o9=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M4,18 A6,6 0 0,1 16,18",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M6,18 A4,4 0 0,1 14,18",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M8,18 A2,2 0 0,1 12,18",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M4,18L16,18",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.4"})]}),i9=()=>c("svg",{className:"icon-overlay",viewBox:"0 0 22 22",width:"52",height:"38",children:[b("path",{d:"M3,18L19,4",fill:"none",stroke:"currentColor",strokeWidth:"1"}),b("path",{d:"M3,18L19,8",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M3,18L19,11",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M3,18L19,14",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"}),b("path",{d:"M3,18L19,18",fill:"none",stroke:"currentColor",strokeWidth:"0.5",strokeOpacity:"0.6"})]}),r9=()=>b("svg",{className:"icon-overlay",viewBox:"0 0 28 28",width:"52",height:"38",children:c("g",{fill:"currentColor",children:[b("path",{d:"M19 11h5l-2.5 3z"}),b("circle",{cx:"21.5",cy:"16.5",r:"1.5"}),b("path",{fillRule:"nonzero",d:"M22 11v-6h-1v6z"}),b("path",{d:"M14 18h1v3h-1z"}),b("path",{d:"M14 5h1v6h-1z"}),b("path",{d:"M7 19h1v3h-1z"}),b("path",{d:"M7 6h1v7h-1z"}),b("path",{fillRule:"nonzero",d:"M7 13v6h1v-6h-1zm-1-1h3v8h-3v-8zM14 18h1v-7h-1v7zm-1-8h3v9h-3v-9z"})]})});var H9={horizontalStraightLine:c0,horizontalRayLine:s0,horizontalSegment:l0,verticalStraightLine:S0,verticalRayLine:_0,verticalSegment:w0,straightLine:L0,rayLine:y0,segment:f0,arrow:G1,priceLine:p0,priceChannelLine:C0,parallelStraightLine:h0,fibonacciLine:t0,fibonacciSegment:n0,fibonacciCircle:j1,fibonacciSpiral:i0,fibonacciSpeedResistanceFan:o0,fibonacciExtension:e0,fibonacciChannel:e9,fibonacciWedge:t9,fibonacciTimeZones:n9,fibonacciArcs:o9,fibonacciFan:i9,gannBox:a0,gannFan:D0,pitchfork:O0,circle:J1,triangle:b0,rect:v0,parallelogram:u0,threeWaves:k0,fiveWaves:r0,eightWaves:X1,anyWaves:$1,abcd:q1,xabcd:N0,weak_magnet:z0,strong_magnet:M0,no_magnet:P0,snap_levels:Z0,lock:d0,unlock:x0,visible:I0,invisible:m0,remove:g0,crossCursor:R0,dotCursor:A0,arrowCursor:T0,eraserCursor:B0,measure:K0,zoomIn:V0,keepDrawing:E0,longPosition:Q0,shortPosition:W0,positionForecast:H0,barsPattern:F0,ghostFeed:U0,sector:Y0,anchoredVwap:q0,fixedRangeVolumeProfile:$0,anchoredVolumeProfile:G0,priceRange:J0,dateRange:X0,dateAndPriceRange:j0,forecasting:r9,textNote:L1,simpleAnnotation:L1};function a9(e){return [{key:"horizontalStraightLine",text:o("horizontal_straight_line",e)},{key:"horizontalRayLine",text:o("horizontal_ray_line",e)},{key:"horizontalSegment",text:o("horizontal_segment",e)},{key:"verticalStraightLine",text:o("vertical_straight_line",e)},{key:"verticalRayLine",text:o("vertical_ray_line",e)},{key:"verticalSegment",text:o("vertical_segment",e)},{key:"straightLine",text:o("straight_line",e)},{key:"rayLine",text:o("ray_line",e)},{key:"segment",text:o("segment",e)},{key:"arrow",text:o("arrow",e)},{key:"priceLine",text:o("price_line",e)}]}function s9(e){return [{key:"priceChannelLine",text:o("price_channel_line",e)},{key:"parallelStraightLine",text:o("parallel_straight_line",e)}]}function l9(e){return [{key:"circle",text:o("circle",e)},{key:"rect",text:o("rect",e)},{key:"parallelogram",text:o("parallelogram",e)},{key:"triangle",text:o("triangle",e)}]}function c9(e){return [{key:"fibonacciLine",text:o("fibonacci_line",e)},{key:"fibonacciSegment",text:o("fibonacci_segment",e)},{key:"fibonacciCircle",text:o("fibonacci_circle",e)},{key:"fibonacciSpiral",text:o("fibonacci_spiral",e)},{key:"fibonacciSpeedResistanceFan",text:o("fibonacci_speed_resistance_fan",e)},{key:"fibonacciExtension",text:o("fibonacci_extension",e)},{key:"fibonacciChannel",text:o("fibonacci_channel",e)},{key:"fibonacciWedge",text:o("fibonacci_wedge",e)},{key:"fibonacciTimeZones",text:o("fibonacci_time_zones",e)},{key:"fibonacciArcs",text:o("fibonacci_arcs",e)},{key:"fibonacciFan",text:o("fibonacci_fan",e)},{key:"gannBox",text:o("gann_box",e)},{key:"gannFan",text:o("gann_fan",e)},{key:"pitchfork",text:o("pitchfork",e)}]}function m9(e){return [{key:"xabcd",text:o("xabcd",e)},{key:"abcd",text:o("abcd",e)},{key:"threeWaves",text:o("three_waves",e)},{key:"fiveWaves",text:o("five_waves",e)},{key:"eightWaves",text:o("eight_waves",e)},{key:"anyWaves",text:o("any_waves",e)}]}function d9(e){return [{key:"no_magnet",text:o("no_magnet",e)},{key:"weak_magnet",text:o("weak_magnet",e)},{key:"strong_magnet",text:o("strong_magnet",e)}]}function h9(e){return [{key:"crossCursor",text:o("cross_cursor",e)},{key:"dotCursor",text:o("dot_cursor",e)},{key:"arrowCursor",text:o("arrow_cursor",e)},{key:"eraserCursor",text:o("eraser_cursor",e)}]}var P=e=>H9[e.name](e.class);function u9(e){return [{key:"__header_forecasting",text:o("forecasting",e),isHeader:true},{key:"longPosition",text:o("long_position",e)},{key:"shortPosition",text:o("short_position",e)},{key:"positionForecast",text:o("position_forecast",e)},{key:"barsPattern",text:o("bars_pattern",e)},{key:"ghostFeed",text:o("ghost_feed",e)},{key:"sector",text:o("sector",e)},{key:"__header_volume_based",text:o("volume_based",e),isHeader:true},{key:"anchoredVwap",text:o("anchored_vwap",e)},{key:"fixedRangeVolumeProfile",text:o("fixed_range_volume_profile",e)},{key:"anchoredVolumeProfile",text:o("anchored_volume_profile",e)},{key:"__header_measurers",text:o("measurers",e),isHeader:true},{key:"priceRange",text:o("price_range",e)},{key:"dateRange",text:o("date_range",e)},{key:"dateAndPriceRange",text:o("date_and_price_range",e)}]}function C9(e){return [{key:"simpleAnnotation",text:o("text_note",e)}]}var k1={crossCursor:"crosshair",dotCursor:"pointer",arrowCursor:"default",eraserCursor:"not-allowed"},b1="M1.07298,0.159458C0.827521,-0.0531526,0.429553,-0.0531526,0.184094,0.159458C-0.0613648,0.372068,-0.0613648,0.716778,0.184094,0.929388L2.61275,3.03303L0.260362,5.07061C0.0149035,5.28322,0.0149035,5.62793,0.260362,5.84054C0.505822,6.05315,0.903789,6.05315,1.14925,5.84054L3.81591,3.53075C4.01812,3.3556,4.05374,3.0908,3.92279,2.88406C3.93219,2.73496,3.87113,2.58315,3.73964,2.46925L1.07298,0.159458Z",F9=e=>{let[n,o$1]=useState("crossCursor"),[c$1,l]=useState("horizontalStraightLine"),[r,s]=useState("priceChannelLine"),[C,h]=useState("circle"),[y,m]=useState("fibonacciLine"),[v,L]=useState("abcd"),[Z,V]=useState("longPosition"),[B,K]=useState("simpleAnnotation"),[z,E]=useState("weak_magnet"),[S,Y]=useState("normal"),[O,H]=useState(false),[A,N]=useState(false),[T,q]=useState(false),[i,u]=useState(true),[M,b$1]=useState(""),x=useMemo(()=>h9(e.locale),[e.locale]),k=useMemo(()=>[{key:"singleLine",icon:c$1,list:a9(e.locale),setter:l},{key:"moreLine",icon:r,list:s9(e.locale),setter:s},{key:"polygon",icon:C,list:l9(e.locale),setter:h},{key:"fibonacci",icon:y,list:c9(e.locale),setter:m},{key:"wave",icon:v,list:m9(e.locale),setter:L},{key:"forecasting",icon:Z,list:u9(e.locale),setter:V},{key:"annotation",icon:B,list:C9(e.locale),setter:K}],[c$1,r,C,y,v,Z,B,e.locale]),g=useMemo(()=>d9(e.locale),[e.locale]);return c("div",{role:"toolbar","aria-label":"Drawing tools",className:"astroneum-drawing-bar",children:[c("div",{className:"item",role:"group","aria-label":"cursors","data-semantic-id":"draw.cursor",tabIndex:0,onBlur:()=>{b$1("");},children:[b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Cursor","data-semantic-id":"draw.cursor",onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),e.onCursorChange?.(k1[n]??"crosshair"));},onClick:()=>{e.onCursorChange?.(k1[n]??"crosshair");},children:b(P,{name:n})}),b("div",{className:"icon-arrow",role:"button",tabIndex:0,"aria-label":"Cursor tools","aria-expanded":M==="cursor",onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),b$1(M==="cursor"?"":"cursor"));},onClick:()=>{b$1(M==="cursor"?"":"cursor");},children:b("svg",{className:M==="cursor"?"rotate":"",viewBox:"0 0 4 6",children:b("path",{d:b1,stroke:"none",strokeOpacity:0})})}),M==="cursor"&&b(g$1,{className:"list",children:x.map(d=>c("li",{onClick:()=>{o$1(d.key),e.onCursorChange?.(k1[d.key]??"crosshair"),b$1("");},children:[b(P,{name:d.key}),b("span",{style:{paddingLeft:"8px"},children:d.text})]},d.key))})]},"cursor"),k.map(d=>c("div",{className:"item",role:"group","aria-label":d.key,"data-semantic-id":d.key==="fibonacci"?"draw.fib_menu":`draw.${d.key}`,tabIndex:0,onBlur:()=>{b$1("");},children:[b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":d.icon,"data-semantic-id":d.key==="fibonacci"?"draw.fib":`draw.${d.key}`,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),e.onDrawingItemClick({groupId:j$1,name:d.icon,visible:i,lock:T,mode:S}));},onClick:()=>{e.onDrawingItemClick({groupId:j$1,name:d.icon,visible:i,lock:T,mode:S});},children:b(P,{name:d.icon})}),b("div",{className:"icon-arrow",role:"button",tabIndex:0,"aria-label":`${d.key} tools`,"aria-expanded":d.key===M,onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),b$1(d.key===M?"":d.key));},onClick:()=>{d.key===M?b$1(""):b$1(d.key);},children:b("svg",{className:d.key===M?"rotate":"",viewBox:"0 0 4 6",children:b("path",{d:b1,stroke:"none",strokeOpacity:0})})}),d.key===M&&b(g$1,{className:"list",children:d.list.map(f=>f.isHeader?b("li",{className:"list-header",children:b("span",{children:f.text})},f.key):c("li",{onClick:()=>{d.setter(f.key),e.onDrawingItemClick({groupId:j$1,name:f.key,lock:T,mode:S}),b$1("");},children:[b(P,{name:f.key}),b("span",{style:{paddingLeft:"8px"},children:f.text})]},f.key))})]},d.key)),b("span",{className:"split-line"}),b("div",{className:"item","data-semantic-id":"draw.measure",children:b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Measure","data-semantic-id":"draw.measure",onClick:()=>{e.onDrawingItemClick({groupId:j$1,name:"measure",visible:i,lock:T,mode:S});},children:b(P,{name:"measure"})})}),b("div",{className:"item","data-semantic-id":"draw.zoom",children:b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Zoom in","data-semantic-id":"draw.zoom",onClick:()=>{e.onZoomIn?.();},children:b(P,{name:"zoomIn"})})}),b("span",{className:"split-line"}),c("div",{className:"item",tabIndex:0,onBlur:()=>{b$1("");},children:[b("span",{className:`icon-overlay${S!=="normal"?" selected":""}`,role:"button",tabIndex:0,"aria-label":"Magnet mode","aria-pressed":S!=="normal",onClick:()=>{let d=z;S!=="normal"&&(d="no_magnet");let f=d==="no_magnet"?"normal":d;Y(f),e.onModeChange(f);},children:b(P,{name:z==="weak_magnet"?"weak_magnet":"strong_magnet"})}),b("div",{className:"icon-arrow",onClick:()=>{b$1(M==="mode"?"":"mode");},children:b("svg",{className:M==="mode"?"rotate":"",viewBox:"0 0 4 6",children:b("path",{d:b1,stroke:"none",strokeOpacity:0})})}),M==="mode"&&b(g$1,{className:"list",children:g.map(d=>c("li",{onClick:()=>{E(d.key);let f=d.key==="no_magnet"?"normal":d.key;Y(f),e.onModeChange(f),b$1("");},children:[b(P,{name:d.key}),b("span",{style:{paddingLeft:"8px"},children:d.text})]},d.key))})]}),b("div",{className:"item","data-semantic-id":"draw.keep_drawing",children:b("span",{className:`icon-overlay${A?" selected":""}`,role:"button",tabIndex:0,"aria-label":"Keep drawing","aria-pressed":A,"data-semantic-id":"draw.keep_drawing",onClick:()=>{N(!A);},children:b(P,{name:"keepDrawing"})})}),b("div",{className:"item",children:b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Lock all drawings","aria-pressed":T,onClick:()=>{let d=!T;q(d),e.onLockChange(d);},children:T?b(P,{name:"lock"}):b(P,{name:"unlock"})})}),b("div",{className:"item",children:b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Hide all drawings","aria-pressed":!i,onClick:()=>{let d=!i;u(d),e.onVisibleChange(d);},children:i?b(P,{name:"visible"}):b(P,{name:"invisible"})})}),b("div",{className:"item",children:b("span",{className:"icon-overlay",role:"button",tabIndex:0,"aria-label":"Remove drawings",onClick:()=>{e.onRemoveClick(j$1);},children:b(P,{name:"remove"})})}),b("span",{className:"split-line"}),b("div",{className:"item",title:o("snap_levels",e.locale),children:b("span",{className:`icon-overlay${O?" selected":""}`,role:"button",tabIndex:0,"aria-pressed":O,"aria-label":o("snap_levels",e.locale),onKeyDown:d=>{if(d.key==="Enter"||d.key===" "){d.preventDefault();let f=!O;H(f),e.onSnapLevelsChange?.(f);}},onClick:()=>{let d=!O;H(d),e.onSnapLevelsChange?.(d);},children:b(P,{name:"snap_levels"})})})]})},x1=F9;var U9=e$1=>b(h,{title:o("indicator",e$1.locale),width:400,onClose:e$1.onClose,children:c(g$1,{className:"astroneum-indicator-modal-list",children:[b("li",{className:"title",children:o("main_indicator",e$1.locale)}),["MA","EMA","SMA","BOLL","SAR","BBI"].map(n=>{let o$1=e$1.mainIndicators.some(c=>c.name===n);return b("li",{className:"row",role:"checkbox","aria-checked":o$1,tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),e$1.onMainIndicatorChange({name:n,paneId:"candle_pane",added:!o$1}));},onClick:c=>{e$1.onMainIndicatorChange({name:n,paneId:"candle_pane",added:!o$1});},children:b(e,{checked:o$1,label:o(n.toLowerCase(),e$1.locale)})},n)}),b("li",{className:"title",children:o("sub_indicator",e$1.locale)}),["MA","EMA","VOL","MACD","BOLL","KDJ","RSI","BIAS","BRAR","CCI","DMI","CR","PSY","DMA","TRIX","OBV","VR","WR","MTM","EMV","SAR","SMA","ROC","PVT","BBI","AO"].map(n=>{let o$1=n in e$1.subIndicators;return b("li",{className:"row",role:"checkbox","aria-checked":o$1,tabIndex:0,onKeyDown:c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),e$1.onSubIndicatorChange({name:n,paneId:e$1.subIndicators[n]??"",added:!o$1}));},onClick:c=>{e$1.onSubIndicatorChange({name:n,paneId:e$1.subIndicators[n]??"",added:!o$1});},children:b(e,{checked:o$1,label:o(n.toLowerCase(),e$1.locale)})},n)})]})}),_1=U9;var p9=[["Etc/UTC","utc"],["Pacific/Honolulu","honolulu"],["America/Juneau","juneau"],["America/Los_Angeles","los_angeles"],["America/Chicago","chicago"],["America/Toronto","toronto"],["America/Sao_Paulo","sao_paulo"],["Europe/London","london"],["Europe/Berlin","berlin"],["Asia/Bahrain","bahrain"],["Asia/Dubai","dubai"],["Asia/Ashkhabad","ashkhabad"],["Asia/Almaty","almaty"],["Asia/Bangkok","bangkok"],["Asia/Shanghai","shanghai"],["Asia/Tokyo","tokyo"],["Australia/Sydney","sydney"],["Pacific/Norfolk","norfolk"]],Y9=new Map(p9.map(([e,n])=>[e,n]));function l1(e,n){let o$1=Y9.get(e);return o$1?o(o$1,n):e}function y9(e){return p9.map(([n,o$1])=>({key:n,text:o(o$1,e)}))}var G9=e=>{let[n,o$1]=useState(e.timezone),c=useMemo(()=>y9(e.locale),[e.locale]);return b(h,{title:o("timezone",e.locale),width:320,buttons:[{children:o("confirm",e.locale),onClick:()=>{e.onConfirm(n),e.onClose();}}],onClose:e.onClose,children:b(i,{style:{width:"100%"},value:n.text,onSelected:l=>{o$1(l);},dataSource:c})})},w1=G9;function S1(e){return [{key:"candle.type",text:o("candle_type",e),component:"select",dataSource:[{key:"candle_solid",text:o("candle_solid",e)},{key:"candle_stroke",text:o("candle_stroke",e)},{key:"candle_up_stroke",text:o("candle_up_stroke",e)},{key:"candle_down_stroke",text:o("candle_down_stroke",e)},{key:"ohlc",text:o("ohlc",e)},{key:"area",text:o("area",e)}]},{key:"candle.priceMark.last.show",text:o("last_price_show",e),component:"switch"},{key:"candle.priceMark.high.show",text:o("high_price_show",e),component:"switch"},{key:"candle.priceMark.low.show",text:o("low_price_show",e),component:"switch"},{key:"indicator.lastValueMark.show",text:o("indicator_last_value_show",e),component:"switch"},{key:"yAxis.type",text:o("price_axis_type",e),component:"select",dataSource:[{key:"normal",text:o("normal",e)},{key:"percentage",text:o("percentage",e)},{key:"log",text:o("log",e)}]},{key:"yAxis.reverse",text:o("reverse_coordinate",e),component:"switch"},{key:"grid.show",text:o("grid_show",e),component:"switch"}]}var j9=e=>{let[n,o$1]=useState(e.currentStyles),[c$1,l]=useState(S1(e.locale));useEffect(()=>{l(S1(e.locale));},[e.locale]);let r=(s$1,C)=>{let h={};f(h,s$1.key,C);let y=s.clone(n);f(y,s$1.key,C),o$1(y),l(c$1.map(m=>({...m}))),e.onChange(h);};return b(h,{title:o("setting",e.locale),width:560,buttons:[{children:o("restore_default",e.locale),onClick:()=>{e.onRestoreDefault(c$1),e.onClose();}}],onClose:e.onClose,children:b("div",{className:"astroneum-setting-modal-content",children:c$1.map(s$1=>{let C,h=s.formatValue(n,s$1.key);switch(s$1.component){case "select":{C=b(i,{style:{width:"120px"},value:o(h,e.locale),dataSource:s$1.dataSource,onSelected:y=>{let m=y.key;r(s$1,m);}});break}case "switch":{let y=!!h;C=b(k,{open:y,onChange:()=>{r(s$1,!y);}});break}}return c(Fragment,{children:[b("span",{children:s$1.text}),C]},s$1.key)})})})},I1=j9;var e5=e=>b(h,{title:o("screenshot",e.locale),width:540,buttons:[{type:"confirm",children:o("save",e.locale),onClick:()=>{let n=document.createElement("a");n.download="screenshot",n.href=e.url,document.body.appendChild(n),n.click(),n.remove();}}],onClose:e.onClose,children:b("img",{className:"astroneum-screenshot-modal-img",src:e.url})}),z1=e5;var t5={AO:[{paramNameKey:"params_1",precision:0,min:1,default:5},{paramNameKey:"params_2",precision:0,min:1,default:34}],BIAS:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}],BOLL:[{paramNameKey:"period",precision:0,min:1,default:20},{paramNameKey:"standard_deviation",precision:2,min:1,default:2}],BRAR:[{paramNameKey:"period",precision:0,min:1,default:26}],BBI:[{paramNameKey:"params_1",precision:0,min:1,default:3},{paramNameKey:"params_2",precision:0,min:1,default:6},{paramNameKey:"params_3",precision:0,min:1,default:12},{paramNameKey:"params_4",precision:0,min:1,default:24}],CCI:[{paramNameKey:"params_1",precision:0,min:1,default:20}],CR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:10},{paramNameKey:"params_3",precision:0,min:1,default:20},{paramNameKey:"params_4",precision:0,min:1,default:40},{paramNameKey:"params_5",precision:0,min:1,default:60}],DMA:[{paramNameKey:"params_1",precision:0,min:1,default:10},{paramNameKey:"params_2",precision:0,min:1,default:50},{paramNameKey:"params_3",precision:0,min:1,default:10}],DMI:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:6}],EMV:[{paramNameKey:"params_1",precision:0,min:1,default:14},{paramNameKey:"params_2",precision:0,min:1,default:9}],EMA:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}],MTM:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],MA:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}],MACD:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:26},{paramNameKey:"params_3",precision:0,min:1,default:9}],OBV:[{paramNameKey:"params_1",precision:0,min:1,default:30}],PVT:[],PSY:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],ROC:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:6}],RSI:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}],SMA:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:2}],KDJ:[{paramNameKey:"params_1",precision:0,min:1,default:9},{paramNameKey:"params_2",precision:0,min:1,default:3},{paramNameKey:"params_3",precision:0,min:1,default:3}],SAR:[{paramNameKey:"params_1",precision:0,min:1,default:2},{paramNameKey:"params_2",precision:0,min:1,default:2},{paramNameKey:"params_3",precision:0,min:1,default:20}],TRIX:[{paramNameKey:"params_1",precision:0,min:1,default:12},{paramNameKey:"params_2",precision:0,min:1,default:9}],VOL:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}],VR:[{paramNameKey:"params_1",precision:0,min:1,default:26},{paramNameKey:"params_2",precision:0,min:1,default:6}],WR:[{paramNameKey:"line_1",precision:0,min:1,styleKey:"lines[0].color"},{paramNameKey:"line_2",precision:0,min:1,styleKey:"lines[1].color"},{paramNameKey:"line_3",precision:0,min:1,styleKey:"lines[2].color"},{paramNameKey:"line_4",precision:0,min:1,styleKey:"lines[3].color"},{paramNameKey:"line_5",precision:0,min:1,styleKey:"lines[4].color"}]},g9=t5;var n5=e=>{let[n,o$1]=useState(s.clone(e.params.calcParams)),[c$1,l]=useState(s.clone(e.params.lineStyles)),r=C=>g9[C]??[],s$1=()=>e.params.lineStyles.length>0;return b(h,{title:e.params.indicatorName,width:360,buttons:[{type:"confirm",children:o("confirm",e.locale),onClick:()=>{let C=r(e.params.indicatorName),h=[];s.clone(n).forEach((y,m)=>{!s.isValid(y)||y===""?"default"in C[m]&&h.push(C[m].default):h.push(Number(y));}),e.onConfirm(h,c$1),e.onClose();}}],onClose:e.onClose,children:c("div",{className:"astroneum-indicator-setting-modal-content",children:[s$1()&&c("div",{className:"astroneum-indicator-setting-modal-header",children:[b("span",{children:o("period",e.locale)}),b("span",{children:o("color",e.locale)}),b("span",{children:o("show",e.locale)})]}),r(e.params.indicatorName).map((C,h)=>{let y=s$1()?c$1[h]:void 0;return c("div",{className:"astroneum-indicator-setting-modal-row",children:[b("span",{className:"astroneum-indicator-setting-modal-label",children:o(C.paramNameKey,e.locale)}),b(j,{style:{width:s$1()?"80px":"200px"},value:n[h]??"",precision:C.precision,min:C.min,onChange:m=>{let v=s.clone(n);v[h]=m,o$1(v);}}),y&&c(a,{children:[b("input",{type:"color",className:"astroneum-indicator-setting-modal-color",value:y.color,onInput:m=>{let v=s.clone(c$1),L=v[h];L&&(L.color=m.currentTarget.value,l(v));}}),b(k,{open:y.show,onChange:()=>{let m=s.clone(c$1),v=m[h];v&&(v.show=!v.show,l(m));}})]})]},h)})]})})},N1=n5;var o5=`// Pine Script\u2013inspired JavaScript indicator
|
|
3
|
+
// Available: ta.sma, ta.ema, ta.rsi, ta.macd, ta.bbands, \u2026
|
|
4
|
+
|
|
5
|
+
study('My SMA', { overlay: true })
|
|
6
|
+
|
|
7
|
+
const len = input('Length', 20)
|
|
8
|
+
|
|
9
|
+
const smaLine = ta.sma(close, len)
|
|
10
|
+
|
|
11
|
+
plot(smaLine, { title: 'SMA' })
|
|
12
|
+
`,i5=e=>{let[n,o$1]=useState(o5),[c$1,l]=useState(""),[r,s]=useState(""),[C,h$1]=useState(false);function y(){l(""),s(""),h$1(true);try{let L=b$1.getInstance().compile(n);s(L.name),h$1(!1);}catch(v){l(v.message),h$1(false);}}function m(){r&&(e.onCompiled(r),e.onClose());}return b(h,{title:o("script_editor",e.locale),width:600,onClose:e.onClose,children:c("div",{className:"astroneum-script-editor",children:[b("div",{className:"script-editor-hint",children:o("script_editor_hint",e.locale)}),b("textarea",{className:"script-editor-textarea",spellcheck:false,value:n,onInput:v=>{o$1(v.target.value),s(""),l("");},"aria-label":"Script source code",rows:18}),c$1&&b("div",{className:"script-editor-error",role:"alert",children:c$1}),r&&c("div",{className:"script-editor-success",role:"status",children:[o("script_compiled",e.locale),": ",b("strong",{children:r})]}),c("div",{className:"script-editor-actions",children:[b(d$1,{onClick:y,type:"cancel",children:C?"\u2026":o("script_compile",e.locale)}),b(d$1,{onClick:m,type:"confirm",className:r?"":"script-apply-disabled",children:o("script_apply",e.locale)})]}),c("details",{className:"script-editor-api-ref",children:[b("summary",{children:o("script_api_ref",e.locale)}),b("pre",{className:"script-api-code",children:`study(name, { overlay?, precision? })
|
|
13
|
+
input(title, default)
|
|
14
|
+
plot(values[], { title?, color?, lineWidth? })
|
|
15
|
+
|
|
16
|
+
// Arrays \u2014 one value per bar (indexed from oldest \u2192 newest)
|
|
17
|
+
// Built-in series: open[], high[], low[], close[], volume[]
|
|
18
|
+
|
|
19
|
+
ta.sma(src, len)
|
|
20
|
+
ta.ema(src, len)
|
|
21
|
+
ta.rma(src, len)
|
|
22
|
+
ta.wma(src, len)
|
|
23
|
+
ta.rsi(src, len)
|
|
24
|
+
ta.highest(src, len)
|
|
25
|
+
ta.lowest(src, len)
|
|
26
|
+
ta.stdev(src, len)
|
|
27
|
+
ta.bbands(src, len, mult=2) \u2192 { upper[], middle[], lower[] }
|
|
28
|
+
ta.macd(src, fast, slow, sig) \u2192 { macd[], signal[], histogram[] }
|
|
29
|
+
ta.cross(a, b) \u2192 boolean[]
|
|
30
|
+
ta.crossover(a, b) \u2192 boolean[]
|
|
31
|
+
ta.crossunder(a, b) \u2192 boolean[]`})]})]})})},O1=i5;function u1(e){if(e.length===0)return [];let n=new Array(e.length),o=e[0],c=(o.open+o.high+o.low+o.close)/4,l=(o.open+o.close)/2;n[0]={timestamp:o.timestamp,open:l,high:Math.max(o.high,l,c),low:Math.min(o.low,l,c),close:c,volume:o.volume,turnover:o.turnover};for(let r=1;r<e.length;r++){let s=e[r],C=n[r-1],h=(s.open+s.high+s.low+s.close)/4,y=(C.open+C.close)/2;n[r]={timestamp:s.timestamp,open:y,high:Math.max(s.high,y,h),low:Math.min(s.low,y,h),close:h,volume:s.volume,turnover:s.turnover};}return n}function r5(e,n){if(n<=0||e.length<=n)return e;let o=[],c=(e.length-2)/(n-2);o.push(e[0]);let l=0;for(let r=0;r<n-2;r++){let s=Math.floor((r+1)*c)+1,C=Math.min(Math.floor((r+2)*c)+1,e.length),h=0,y=0;for(let z=s;z<C;z++)h+=e[z].timestamp,y+=e[z].close;let m=C-s;if(m===0)continue;h/=m,y/=m;let v=Math.floor(r*c)+1,L=Math.min(Math.floor((r+1)*c)+1,e.length),Z=e[l].timestamp,V=e[l].close,B=-1,K=v;for(let z=v;z<L;z++){let E=Math.abs((Z-h)*(e[z].close-V)-(Z-e[z].timestamp)*(y-V))/2;E>B&&(B=E,K=z);}o.push(e[K]),l=K;}return o.push(e[e.length-1]),o}function a5(e,n,o,c=200){if(e.length===0)return e;let l=0,r=e.length-1;for(;l<r;){let h=l+r>>1;e[h].timestamp<n?l=h+1:r=h;}let s=Math.max(0,l-c);for(l=0,r=e.length-1;l<r;){let h=l+r+1>>1;e[h].timestamp>o?r=h-1:l=h;}let C=Math.max(s,Math.min(e.length-1,l+c));return e.slice(s,C+1)}var s5=5e3;function l5(e,n=s5){return e>n}var D1=class{static decimate=r5;static virtualizeWindow=a5;static shouldDecimate=l5;static heikinAshi=u1},G2=D1;function c5(e){return e<=0?Math.log(Math.max(e,1e-10)):Math.log(e)}function m5(e){return Math.exp(e)}function P1(e,n,o){if(n==="linear"||e.length===0)return e;let c=o??e[0].close;return e.map(l=>{let r=s=>{switch(n){case "log":return c5(s);case "percent":return c!==0?(s-c)/c*100:0;case "indexed":return c!==0?s/c*100:0;default:return s}};return {...l,open:r(l.open),high:r(l.high),low:r(l.low),close:r(l.close)}})}function d5(e,n,o){switch(n){case "linear":return e;case "log":return m5(e);case "percent":case "indexed":return o*(1+e/100);default:return e}}function X2(e,n,o,c=2){let l=d5(e,n,o);switch(n){case "percent":return `${e.toFixed(1)}%`;case "indexed":return e.toFixed(1);case "log":return l.toFixed(c);default:return l.toFixed(c)}}function M9(){let[e,n]=useState(""),o=useRef(null);return useEffect(()=>{let c=()=>{let l=new Date;n(`${l.getHours().toString().padStart(2,"0")}:${l.getMinutes().toString().padStart(2,"0")}:${l.getSeconds().toString().padStart(2,"0")}`);};return c(),o.current=setInterval(c,1e3),()=>{o.current!==null&&(clearInterval(o.current),o.current=null);}},[]),e}var C1=200,u5=.15;function k9(e){let n=useRef(()=>{});return useEffect(()=>{let c=s=>{let C=document.activeElement?.tagName?.toLowerCase();if(C==="input"||C==="textarea")return;let h=e.current;if(h){if(s.shiftKey&&(s.key==="+"||s.key==="=")){s.preventDefault(),h.zoomAtCoordinate(.5);return}if(s.shiftKey&&s.key==="-"){s.preventDefault(),h.zoomAtCoordinate(-0.5);return}if(s.ctrlKey&&s.altKey&&(s.key==="h"||s.key==="H")){s.preventDefault();let y=h.getOverlays({groupId:j$1});if(y.length>0){let m=y.some(v=>v.visible);h.overrideOverlay({groupId:j$1,visible:!m});}return}switch(s.key){case "Delete":case "Backspace":h.removeOverlay();break;case "Escape":{let m=h.getOverlays({groupId:j$1}).find(v=>v.currentStep>0);m&&h.removeOverlay({id:m.id});break}case "ArrowLeft":s.preventDefault(),h.scrollByDistance(C1);break;case "ArrowRight":s.preventDefault(),h.scrollByDistance(-C1);break;case "PageUp":s.preventDefault(),h.scrollByDistance(C1*5);break;case "PageDown":s.preventDefault(),h.scrollByDistance(-C1*5);break;case "Home":s.preventDefault(),h.scrollToDataIndex(0);break;case "End":s.preventDefault(),h.scrollToRealTime();break}if(s.ctrlKey||s.metaKey)if(s.key==="c"||s.key==="C"){let y=h.getOverlays();if(y.length>0){let m={overlays:y.map(v=>({name:v.name,points:v.points,styles:v.styles,lock:v.lock,visible:v.visible}))};navigator.clipboard.writeText(JSON.stringify(m)).catch(()=>{});}}else (s.key==="v"||s.key==="V")&&navigator.clipboard.readText().then(y=>{try{let m=JSON.parse(y);if(m.overlays)for(let v of m.overlays)h.createOverlay({name:v.name,points:v.points,styles:v.styles,lock:v.lock,visible:v.visible});}catch{}}).catch(()=>{});}},l=s=>{let C=e.current;if(!C)return;let h=s.target?.closest(".astroneum-widget");if(!h)return;s.preventDefault();let m=1+(s.deltaY<0?1:-1)*u5,v=h.getBoundingClientRect(),L=s.clientX-v.left,Z=s.clientY-v.top;C.zoomAtCoordinate(m,{x:L,y:Z});};document.addEventListener("keydown",c),document.addEventListener("wheel",l,{passive:false});let r=()=>{document.removeEventListener("keydown",c),document.removeEventListener("wheel",l);};return n.current=r,r},[e]),useRef(()=>{n.current();}).current}var b9=`<?xml version="1.0" encoding="UTF-8"?>
|
|
32
|
+
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 200 200">
|
|
33
|
+
<!-- Generator: Adobe Illustrator 30.3.0, SVG Export Plug-In . SVG Version: 2.1.3 Build 182) -->
|
|
34
|
+
<path d="M138.7,102.7c-1.3-3.9-2.7-7.6-4.7-11.2,2.1-3.3,2.4-7.2-.1-10.3,1.4-3.5.3-7.1-3.2-8.4l.8-1.8c2-.5,3.7-1.8,4.8-3.6,3-4.9,3.3-12,.7-17.1-.7-1.3-1.6-2.4-2.9-3.2-2.5-18.4-18.4-30.2-36.8-29.5-19.2.7-35.6,15.8-34.7,35.5-2.6,2-3.4,4.8-3.5,8-.1,4.5,1.1,8.9,3.8,12.5,1.2,1.6,2.7,2.8,4.6,3.3h1.9c.6,2,1.9,3.3,3.3,4.6-1.3,2.9-.4,5.6,2.1,7.5-4.7,5.6-7.4,13-10.5,19.6l-2.4,5.1c-1.8,4.4-1.9,9.2-.2,13.6l1,1.6c1.3,2.5,3,5.1,5.6,6.2-.1,1.4.7,2.4,1.9,3l.2,3.2,1,10.6,1.6,15.2c-4.3,2.3-6.8,6.4-5.9,11.1.3,1.4,1.3,2.3,2.7,2.6,6.8,1.8,17.4.4,24.4-1.3,1.5-.4,2.2-1.7,2.5-3.2.2-2.6-.1-5-.4-7.6l.9-12.3,2.6,10.6c.3,1.2.8,2.6.8,4,0,3.8-1.1,8.5,2.8,9.8,6.8,2.2,16.6,3.1,23.3.9,3.8-1.3,3.2-7.2.7-10.6l-2.5-2.6v-3.3c-.1,0-.8-8.8-.8-8.8l-1-16.1c1.3-.8,2.5-2,2.6-3.5l.2-2.5,1.6-1,2.5-1.3c4.2-2.9,7.5-6.8,9.5-11.5,2.5-5.9,1.2-11.5-.8-17.4h0ZM136,52.1c1.5,4.1,1.4,8.6-.3,12.6-.7,1.7-1.7,3.2-3.4,4.1-1.2.6-2.4-.5-3-1.5-1.1-1.8-1.6-3.8-1.8-5.9-.4-4.2,0-8.8,2.6-12.2.5-.6,1.6-1.5,2.4-1.2,1.8.6,3,2.4,3.6,4.1h0ZM110.1,62.5c.6-.5,1.3-.6,1.9-.3.5.2.9.9,1,1.6.2,2.8-2.1,5.9-3.8,5-2-1-1.2-4.6.9-6.4h0ZM107.9,56c-1.6-2.3-1.5-5.7.4-7.7,1.4-1.5,3.5-1.5,5-.2,2,1.7,2.6,4.7,1.6,7.2-.6,1.5-1.9,2.7-3.5,2.7-1.4,0-2.7-.8-3.5-2h0ZM115,77.9c3-3.3,5.4-7.1,6.7-11.4l.3-1,.9,2c-1.4,5-4.6,10-9,12.9-1.2.8-2.7,1.1-4.1,1.7,1.8-1.4,3.5-2.5,5.1-4.2h0ZM121.9,72.6l1.7-3.9c1.4,2,3.5,2.9,6,2.4-1,2.2-2.3,4.3-4.1,6l-5.5,1.5-3.6,1.1c2.1-2.3,4.1-4.4,5.4-7.2h0ZM124.6,67.5c-4-6.6-1.8-19.1,3.1-20.4,1.3-.3,2.6,0,3.8.4-1.3.4-2.2.9-2.9,2-2.1,3.3-2.7,7.9-2.3,11.9.3,2.9,1.4,6.8,4.1,8.2-2.2.8-4.6,0-5.8-2h0ZM74.5,28.3c6-5.4,13.5-8.7,21.5-9.3,17.4-1.3,33.5,9.5,36.3,27.1-3.3-1.3-6.1-1.2-8.2,1.7-3.1-12.7-14.4-22.5-27.5-23.4-9-.7-17.9,2.4-24.6,8.4-2.1,1.8-3.5,3.9-5.2,6.1,1.8-4.2,4.4-7.6,7.6-10.7h0ZM69.7,37c1.3-1.5,2.6-2.9,4.1-4.1,5.3-4.3,11.7-6.6,18.4-7.2h4.2c13.5,1.1,23.9,10.4,26.9,23.4l-1.2,2.6c-2.5-14.2-14.2-24.6-29-24.1-11.6.3-22.1,6.6-26.8,17.2l-2,5.3c-.1-4.4,2.6-9.9,5.4-13.1h0ZM88.5,88.8l-4.7-2.8c.3-.2.6,0,1,0,5.6,1.4,12.1,1,17.7-.4-2.3,1.2-4.4,2.2-6.4,3.7-2.6.2-5.1,0-7.7-.5ZM94.1,91l-2.7,2.7c-.4-.9-.9-2-1.7-2.9l4.4.2ZM71.1,65.9c.6.5.5,1.1.8,1.8l1.9,5-.2.3c-.4-.7-1.1-1.7-1.4-2.5-.2-.7-.3-1.2-.8-1.7.4-1.4-.7-1.9-.4-2.9h0ZM70.3,60.3c.1-.3.7-.6.9-.7.3,0,.9.4,1.1.7,1.1,1.9.2,4.7-.7,4.8-1,.1-2.2-2.7-1.3-4.8ZM72.1,55.5c-.2.6-1.1,1.4-1.7,1-.8-.5-1-1.8-.9-2.8,1-13.1,13.5-22.7,26.4-20,.7.2,1.4.6,1.8,1.2,0,.2-.5.7-.7.8-11.7.9-21.3,8.7-24.9,19.7h0ZM61.3,66.1c-.7-3-1-6,0-8.9.4-1.1,1-2.2,2-2.9,0,2.2,0,4.1,0,6.1.5,5.3,2.2,10.2,5.1,14.8-3.9-.6-6.4-5.5-7.2-9.2h0ZM68.8,69.9l3,3.5c2.2,3.1,4.5,5.8,7.8,7.7,2,1.6,4.4,2.4,6.9,3.2-2.4-.1-4.6-1.1-6.8-2.1-3.5-1.6-6.2-4.3-8.3-7.5-.9-1.6-1.8-3-2.5-4.8h0ZM70.7,76.3l2.9,3.5c-1.4-.6-2.4-1.9-2.9-3.5ZM64.1,127.2c-.3-1.2-.2-2.3,0-3.4.5-2.8,2-5.4,4.7-6.6-1.9,3.9-3.2,8.1-2.1,12.3.3,1.2,1.3,2.1,1.3,3.4-2-1.5-3.5-3.5-4-5.8h0ZM68.8,130.4c-1-1.5-1.1-3.5-.9-5.3.4-4.1,3.5-9.4,4.7-13.9,1.2-4.4,2-8.8,2.9-13.3.2-.9.5-1.8.4-2.8-1.2,2.3-1.9,4.4-2.5,6.8l-2.1,8c-.8-.8-1.4-1.2-2.3-1.1l1.8,1.2c-1.5.2-2.9,0-3.9,1.3,1.5-.4,2.5-.9,4.2-.4l-1.9,5.1c-.9.2-1.6.5-2.2.9-2.6,2-4,4.8-4.5,8.1-1.1-4.4-.7-7.9,1.2-11.9l3.6-7.8,1.4-3.1,2.9-6c1.2-2.5,2.7-4.7,4.5-6.9l1.7,1.4,5,2.8-2.1,10.6c-.6.4-1,1-1.1,1.6,0,.8.2,1.3.7,1.9l-.2,2c0,.6.7,1.4,1.2,1.5.7.2,1.7-.2,1.8-1.1l.2-2c.5-.4,1.1-.9,1.2-1.4.2-.8,0-1.5-.5-2.2l1.8-9.9,3.1.3c-.8-.7-1.7-1-2.8-1.3.4-1,.4-1.9-.6-2.5-.5-.3-1.2-.4-1.7-.2-.5.3-.7.9-.8,1.5l-2.7-1.8-3.6-2.5c-1.5-1.1-2.8-2-3.1-4.1-.1-.9.2-2.1.9-2.6l2.2,1.8c0,.4.1,1.2.4,1.3l5.1,2.7c1.5.8,3,1.4,4.3,2.5,1.6,1.4,2.8,3,3.7,4.9-1,2.1-1.6,4.3-2.1,6.6l-1.5,7.6-1.2,6.3-6-.5h-3.3c0-.1-1.5,2.8-1.5,2.8-.9,1.8-1.9,3.6-3.2,5.1-.9,1.1-1.4,2-1.3,3.5,0,2.1.7,4.1,1.8,6.1-1.1-.2-2.4-.6-3-1.6h0ZM80.9,106.3c-.3-.3-.2-1.2.3-1.4.4-.2,1.1-.1,1.6,0,.6.2.9.7.7,1.2-.4.7-2.1.8-2.6.1h0ZM82.4,108.2l-.2,1.4c0,.2-.3.5-.4.5-.2,0-.6-.3-.6-.5l.2-1.5c0-.2.4-.5.6-.5.2,0,.5.4.5.7h0ZM82.9,104.3l-1.1-.3c.5-4.1,1.4-7.8,2.4-11.7l.5-.6c.1-.2.5.4.6.6l-2.3,11.9h0ZM106.9,127.5l-.4,2.2c-3.7-1.8-6.7-6.1-7.4-10.1l-.5-3.1h2.6c-.4,4.3,1.8,8.8,5.6,11.1ZM106.5,130.3c0,1.5.2,2.9,1,4.4l-4.7.2h-8s-4-.2-4-.2l-3.4-.2c-2.1-3.9-2.8-7-1.7-11.5l1.7-6.9,2.9.2h3.8c0,.1,4.3.2,4.3.2,0,5.9,2.8,11.3,8.1,13.8h0ZM108,135.5c.8,1.2,1.8,2.2,3.1,3.3l-6,.6-2.8.2h-9.9s-4.8-.4-4.8-.4v-3.6s3.2.2,3.2.2l4.3.2h5.9s4.2-.2,4.2-.2l2.9-.3h0ZM71,126.2c-.4-1.1.2-2,1-2.8,2-2.3,3.4-5.1,4.6-7.9.3-.2,1-.2,1.4,0l-.6,2.1c.4-.7.6-1.2.9-2.1l7,.6-1.3,5.4c-1.2,5.1-1.4,7.8,1.1,12.8-4.2-.4-8.1-1.1-12.2-2-1.1-1.7-1.7-3.6-1.9-5.5.9-.9,1.8-1.5,2.2-2.7l-2.2,2.1h0ZM84.1,127.5c0-2.6.5-5.1,1.2-7.5.4-1.4.3-2.9,1.4-4.1-.6,3.3-1.6,6.3-2,9.5-.4,3.2.6,5.8,1.8,9-1.6-1.8-2.3-4.5-2.3-6.9h0ZM85.8,135.7c.2-.2,1-.2,1.1,0v3.5c-.2,0-.9,0-1.1-.2v-3.2s0,0,0,0ZM87,115h-.4c-.1.1-.1-.3-.1-.5l1.6-8.9,1-4.4c0-.2.5.1.5.2l-2.6,13.5ZM70,135.8c-.3-1.1-.3-2.2-.3-3.5l4.1,1.2c3.8.9,7.7,1.4,11.5,1.8v3.7c0,0-10.6-1.7-10.6-1.7-1.7-.3-3.2-.8-4.7-1.6ZM123.3,167.5c-4.3-2-9.3-1.6-13.1,1-.6.4-1.1.7-1.3,1.6,4.8-2.5,11-3.8,15.5-.2,2.5,2.1,3.8,5.1,3.1,8.3-.1.7-.7,1.3-1.4,1.5-1.8.6-3.5.9-5.4,1-5.6.4-11.2-.2-16.7-1.8-1.3-.4-2-1.3-2-2.7l.2-6.4c1.5,0,2.6.2,3.8-.6-1.3-.2-2.7.7-4.1-.2l-3-12.5,3.2.5h.4c.1,0,.3,0,.2,0-1-.6-2.5-.3-4.1-1.2l-3-10.1-5.3-.9-6.8-1.4c3,1.8,6.1,2.8,9.4,3.3l1.4.2,1.2,4-.9,17c-2.3.7-4.6.4-6.9,0,.1.2.5.5.7.6,1.8.4,3.7.5,5.4.2.2,0,.6-.3.7-.1v.7c.6,2.7,1.1,7.8-.9,8.3-3.9.9-7.8,1.6-11.9,1.9h-8c-1.4,0-2.8-.4-4.1-.8-1.7-.5-1.8-5.1,1.1-8.3,1.9-2,4.4-3.1,7.2-3.2,2.7-.1,5.1.9,7.8,1.8-1.2-1.7-3.3-2.3-5.3-2.8-2-.5-3.9-.4-5.9.2l-1.6-14.4-1.2-13.6,3.7.9c5.5,1.1,10.9,1.8,16.5,2h11.2c3.5,0,6.8-.4,10.3-1.1,2.2,2,5.2,2.3,8,.7l.2,2.7.3,5.5,1.4,18.4h0ZM122,138.7c-3.8,2.5-5.9,1.7-9.2-.5-2.7-1.8-4.7-4.5-5-7.8l.4-3.1-1.6-1.3c1.1-2.5,3.8-4.4,6.3-5.2l5.8,7.6c1.1,1.4,3.2,5,2.9,6-.3.9-1.3,1.5-2.2,2.1,1.4.3,2.6-.5,3.4-1.6h1.5c0,1.6-.7,2.9-2.1,3.8h0ZM123.2,133.5l-1-2.2c-2.1-3.9-4.9-7.3-7.8-10.8-.2-.9,1.1-2.2,2-2,3.7.9,9,8.7,9.5,13.2l-2.7,1.7h0ZM137.7,120.1c-2.3,4.6-6,8.9-10.5,11.1l-.5-2c-1.6-4.4-5.4-10.5-10.1-11.9,1.2-1.7,2.6-3.3,4.2-4.6,1.7-1.3,3.6-1.5,5.8-1.9-1.7-.5-3.2,0-5,.4,1.3-1.6,3.3-2,5.4-2.8-2.2-.2-4.3.6-6,2.3l-.4-2.3-1.8-6.7c-.4-1.3-.3-2.4-.1-3.8.7-4.4,3.5-8,7.8-9.4-2.4.1-4.2,1.8-5.7,3.6-1.8,2.3-2.9,5.2-3,8.2l.3,3.3c-.9-1.3-1.2-2.6-1.9-4.2-.2,2.4.9,4.6,2.3,6.4l1.2,5.9-1.9,1.8-1.8,2.2c-.3.3-.5.9-.7,1.4-1,.4-1.7,1.2-2.1,2.3-1.8,0-3.3,1-4.8,2.1-1.2.9-2.1,1.8-2.7,3.3-1.9-2.1-2.8-4.5-3-7.2,0-.7-.2-1.7-.7-2.2l-5.1-.2-5.9-.2h-3c0-.1,2.4-12.4,2.4-12.4l.6-2.4c-.6.2-1.4.3-1.9,0l.7-2.5.7-1.9c0-.1.4-.4.5-.4.2,0,.4.4.4.6l-.3,2.1h.3s1-3.3,1-3.3c3.5-4.4,8.6-6.8,13.7-9.3,6.5-3.1,13.2-5.4,20.2-7,1.6-.3,3.9-1.1,3.8-2.1h-1.7s1.9-2.8,1.9-2.8c2.9,1.3,3.8,4.8,1.9,7.4,2.4,2.3,2.8,5.9,1.1,8.7l-1.9-2.5c-4.3-4.6-11.3-2.8-16.6-.2l-9.5,4.7-3,1.3c.3-1.1,0-1.9-.9-2.3-.9-.4-2,0-2.4,1-.2.5-.3,1.1-.4,1.7l-2.8,1c1.1.3,1.8,0,2.7.1l-1.1,9.8c-.6.4-1.1,1-1.2,1.6-.1.8.2,1.4.7,2.1,0,.7-.2,1.7,0,2.4.2.9,1.1,1.4,1.8,1.2.8-.2,1.4-.8,1.4-1.7v-1.8c.7-.4,1.1-.9,1.3-1.4.2-.8,0-1.4-.7-2l1.2-9.2.2-1.5,4-1.3,7.8-3.5,5.3-2.3c3.4-1.5,8.5-1.6,11.1,1.4-1.3-.3-2.4-.4-3.6-.2,1.4.1,2.9.1,4,.7,1.9,2.3,3.2,4.9,4.3,7.7,1.8,4.2,3.2,8.5,4.2,13,.8,3.6.4,7-1.3,10.3h0ZM98.4,107.3c-.5,0-1.1.1-1.4-.3-.3-.4-.3-1.1.3-1.4.4-.2,1.3-.2,1.9,0,.7.2.9.8.7,1.2-.3.6-.8.6-1.5.5h0ZM98.7,108.2c0,.6-.1,1.8-.2,2.4,0,.2-.6.3-.7.2-.6-.6-.3-1.1-.1-2.2,0-.3.8-.5,1.1-.3h0ZM99.2,104.8l-1.3-.2,1.7-12.2.7-.6c.2-.1.6.4.6.6l-.5,3.5-1.2,8.8h0Z"/>
|
|
35
|
+
</svg>`;var x9="__snap_guides__",p5="priceLine";function _9(e){let n=-1/0;for(let o=0;o<e.length;o++)e[o]>n&&(n=e[o]);return n}function w9(e){let n=1/0;for(let o=0;o<e.length;o++)e[o]<n&&(n=e[o]);return n}function y5(e,n){let o=n-e;if(o<=0)return [];let c=o/10,l=Math.pow(10,Math.floor(Math.log10(c))),r=Math.ceil(c/l)*l,s=[],C=Math.ceil(e/r)*r;for(let h=C;h<=n+r*.1;h+=r)s.push(parseFloat(h.toPrecision(10)));return s}function v5(e){if(e.length===0)return [];let n=e[e.length-1],c=n.timestamp-864e5,l=e.filter(C=>C.timestamp>=c);if(l.length===0)return [];let r=l.map(C=>C.high),s=l.map(C=>C.low);return [{price:l[0].open,label:"Prev Open",type:"session_open"},{price:n.close,label:"Last Close",type:"session_close"},{price:_9(r),label:"Sess High",type:"session_high"},{price:w9(s),label:"Sess Low",type:"session_low"}]}var R1=class{_chart;_enabled=false;_animFrame=null;constructor(n){this._chart=n;}get enabled(){return this._enabled}enable(){this._enabled||(this._enabled=true,this._refresh());}disable(){this._enabled&&(this._enabled=false,this._removeGuides(),this._animFrame!==null&&(cancelAnimationFrame(this._animFrame),this._animFrame=null));}toggle(){this._enabled?this.disable():this.enable();}refresh(){this._enabled&&(this._animFrame!==null&&cancelAnimationFrame(this._animFrame),this._animFrame=requestAnimationFrame(()=>{this._animFrame=null,this._refresh();}));}_refresh(){this._removeGuides();let n=this._computeLevels();for(let o of n)try{this._chart.createOverlay({name:p5,groupId:x9,lock:!0,visible:!0,mode:"normal",points:[{value:o.price}],extendData:o.label,styles:{line:{color:o.type==="round"?"rgba(120,120,120,0.25)":"rgba(41,98,255,0.35)",size:1,style:o.type==="round"?"dashed":"solid",dashedValue:[4,4]}}});}catch{}}_removeGuides(){try{this._chart.removeOverlay({groupId:x9});}catch{}}_computeLevels(){let n=this._chart.getDataList?.();if(!n||n.length===0)return [];let o=n.slice(Math.max(0,n.length-200)),c=o.map(y=>y.high),l=o.map(y=>y.low),r=_9(c),s=w9(l),C=y5(s,r).map(y=>({price:y,label:String(y),type:"round"})),h=v5(n);return [...C,...h]}},S9=R1;function I9(e){let[n,o]=useState(e.theme),c=useRef(n);c.current=n;let[l,r]=useState(e.locale),s=useRef(l);s.current=l;let[C,h]=useState(e.symbol),y=useRef(C);y.current=C;let[m,v]=useState(e.period),L=useRef(m);L.current=m;let[Z,V]=useState(e.timezone),B=useRef(Z);B.current=Z;let[K,z]=useState(e.styles),E=useRef(K);E.current=K;let[S,Y]=useState(void 0),O=useRef(S);O.current=S;let H=useCallback(()=>c.current,[]),A=useCallback(()=>s.current,[]),N=useCallback(()=>y.current,[]),T=useCallback(()=>L.current,[]),q=useCallback(()=>B.current,[]),i=useCallback(()=>E.current,[]),u=useCallback(()=>O.current,[]);return {theme:H,setTheme:o,locale:A,setLocale:r,symbol:N,setSymbol:h,period:T,setPeriod:v,timezone:q,setTimezone:V,styles:i,setStyles:z,widgetDefaultStyles:u,setWidgetDefaultStyles:Y}}function D9(e){let[n,o]=useState([...e.mainIndicators]),c=useRef(n);c.current=n;let[l,r]=useState({}),s=useRef(l);s.current=l;let C=useCallback(()=>c.current,[]),h=useCallback(()=>s.current,[]);return {mainIndicators:C,setMainIndicators:o,subIndicators:h,setSubIndicators:r}}var A1={visible:false,indicatorName:"",paneId:"",calcParams:[],lineStyles:[]};function P9(e){let[n,o]=useState(e.drawingBarVisible),c=useRef(n);c.current=n;let[l,r]=useState(false),s=useRef(l);s.current=l;let[C,h]=useState(false),y=useRef(C);y.current=C;let[m,v]=useState(false),L=useRef(m);L.current=m;let[Z,V]=useState(false),B=useRef(Z);B.current=Z;let[K,z]=useState(""),E=useRef(K);E.current=K;let[S,Y]=useState(false),O=useRef(S);O.current=S;let[H,A]=useState(A1),N=useRef(H);N.current=H;let T=useCallback(()=>c.current,[]),q=useCallback(()=>s.current,[]),i=useCallback(()=>y.current,[]),u=useCallback(()=>L.current,[]),M=useCallback(()=>B.current,[]),b=useCallback(()=>E.current,[]),x=useCallback(()=>O.current,[]),k=useCallback(()=>N.current,[]);return {drawingBarVisible:T,setDrawingBarVisible:o,symbolSearchModalVisible:q,setSymbolSearchModalVisible:r,indicatorModalVisible:i,setIndicatorModalVisible:h,timezoneModalVisible:u,setTimezoneModalVisible:v,settingModalVisible:M,setSettingModalVisible:V,screenshotUrl:b,setScreenshotUrl:z,loadingVisible:x,setLoadingVisible:Y,indicatorSettingModalParams:k,setIndicatorSettingModalParams:A}}function L5(){return window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function M5(){let e=document.createElement("div");e.innerHTML=b9;let n=e.firstElementChild;return n.classList.add("logo"),n}var k5=[{multiplier:1,timespan:"minute",text:"1m"},{multiplier:5,timespan:"minute",text:"5m"},{multiplier:15,timespan:"minute",text:"15m"},{multiplier:1,timespan:"hour",text:"1H"},{multiplier:2,timespan:"hour",text:"2H"},{multiplier:4,timespan:"hour",text:"4H"},{multiplier:1,timespan:"day",text:"D"},{multiplier:1,timespan:"week",text:"W"},{multiplier:1,timespan:"month",text:"M"},{multiplier:1,timespan:"year",text:"Y"}],b5=[{name:"EMA",calcParams:[7,25,99]}];function A9(e){let n={position:"middle",marginTop:3,marginRight:0,marginBottom:3,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,size:14,color:e,activeColor:e,backgroundColor:"transparent",activeBackgroundColor:"rgba(22, 119, 255, 0.15)",borderRadius:2,type:"icon_font"},o=(c,l,r)=>({...n,id:c,marginLeft:r,content:{family:"icomoon",code:l}});return [o("visible","\uE903",8),o("invisible","\uE901",8),o("setting","\uE902",6),o("close","\uE900",6)]}var x5=A9("#76808F"),_5=A9("#929AA5"),w5={indicator:{tooltip:{features:x5}}},S5={indicator:{tooltip:{features:_5}}},I5={minute:6e4,hour:36e5,day:864e5};function c1(e,n,o){let c=I5[e.timespan];if(c){let C=n-n%c;return [C-o*e.multiplier*c,C]}if(e.timespan==="week"){let m=n+2592e5,v=m-m%6048e5-2592e5;return [v-o*e.multiplier*6048e5,v]}if(e.timespan==="month"){let C=new Date(n),h=Date.UTC(C.getUTCFullYear(),C.getUTCMonth(),1),y=C.getUTCFullYear()*12+C.getUTCMonth()-o*e.multiplier;return [Date.UTC(Math.floor(y/12),y%12,1),h]}let l=new Date(n),r=Date.UTC(l.getUTCFullYear(),0,1);return [Date.UTC(l.getUTCFullYear()-o*e.multiplier,0,1),r]}function r1(e,n,o,c){return e?.createIndicator({name:n.name,calcParams:n.calcParams,createTooltipDataSource:({chart:l,indicator:r})=>{let s=l.getStyles().indicator.tooltip.features;return {features:r.visible?[s[1],s[2],s[3]]:[s[0],s[2],s[3]]}}},o,c)??null}var T9=forwardRef((e,n)=>{let o=useRef(null),c$1=useRef(null),l=useRef(null),r$1=useRef(null),s$2=useRef(null),C=e.theme??L5(),h=e.locale??"en-US",y=e.timezone??"Asia/Shanghai",m=I9({theme:C,locale:h,symbol:e.symbol,period:e.period,timezone:{key:y,text:l1(y,h)},styles:e.styles??{}}),v=D9({mainIndicators:e.mainIndicators??b5}),L=P9({drawingBarVisible:e.drawingBarVisible??true}),[Z,V]=useState(false),[B,K]=useState(false);useEffect(()=>{let i=m.period();(i.multiplier!==e.period.multiplier||i.timespan!==e.period.timespan||i.text!==e.period.text)&&m.setPeriod(e.period);},[e.period]),useEffect(()=>{let i=m.symbol();(i.ticker!==e.symbol.ticker||i.pricePrecision!==e.symbol.pricePrecision||i.volumePrecision!==e.symbol.volumePrecision)&&m.setSymbol(e.symbol);},[e.symbol]),useEffect(()=>{e.theme!==void 0&&m.theme()!==e.theme&&m.setTheme(e.theme);},[e.theme]),useEffect(()=>{e.locale!==void 0&&m.locale()!==e.locale&&m.setLocale(e.locale);},[e.locale]),useEffect(()=>{e.timezone!==void 0&&m.timezone().key!==e.timezone&&m.setTimezone({key:e.timezone,text:l1(e.timezone,m.locale())});},[e.timezone]),useEffect(()=>{e.styles!==void 0&&m.setStyles(e.styles);},[e.styles]);let z=M9();k9(o),useImperativeHandle(n,()=>({setTheme:m.setTheme,getTheme:()=>m.theme(),setStyles:m.setStyles,getStyles:()=>o.current.getStyles(),setLocale:m.setLocale,getLocale:()=>m.locale(),setTimezone:i=>{m.setTimezone({key:i,text:l1(i,m.locale())});},getTimezone:()=>m.timezone().key,setSymbol:m.setSymbol,getSymbol:()=>m.symbol(),setPeriod:m.setPeriod,getPeriod:()=>m.period(),getDataListLength:()=>o.current?.getDataList().length??0,getLastDataTimestamp:()=>{let i=o.current?.getDataList()??[];return i.length>0?i[i.length-1].timestamp??null:null},serializeState:()=>{let i=o.current,u=x=>({name:x.name,calcParams:x.calcParams.every(k=>typeof k=="number")?x.calcParams:void 0,visible:x.visible,styles:x.styles===null?void 0:structuredClone(x.styles)}),M=i?.getIndicators()??[],b=i?i.getOverlays().map(x=>({name:x.name,points:x.points,styles:x.styles,lock:x.lock,visible:x.visible})):[];return {version:1,theme:m.theme(),locale:m.locale(),timezone:m.timezone().key,symbol:m.symbol(),period:m.period(),styles:structuredClone(m.styles()??{}),mainIndicators:M.filter(x=>x.paneId==="candle_pane").map(u),subIndicators:M.filter(x=>x.paneId!=="candle_pane").map(u),overlays:b}},loadState:i=>{let u=o.current;if(i.version!==1||(m.setTheme(i.theme),m.setLocale(i.locale),m.setTimezone({key:i.timezone,text:l1(i.timezone,i.locale)}),m.setSymbol(i.symbol),m.setPeriod(i.period),i.styles&&m.setStyles(i.styles),!u))return;let M=(g,d)=>{let f=typeof g=="string"?{name:g,visible:true}:g,_=r1(u,f,true,d);return _&&(f.visible===false||f.styles!==void 0)&&u.overrideIndicator({id:_,name:f.name,visible:f.visible,styles:f.styles}),_?u.getIndicators({id:_})[0]?.paneId??null:null},b=i.mainIndicators.map(g=>typeof g=="string"?{name:g,visible:true}:g),x=i.subIndicators.map(g=>typeof g=="string"?{name:g,visible:true}:g);u.removeIndicator(),b.forEach(g=>{M(g,{id:"candle_pane"});});let k={};x.forEach(g=>{let d=M(g);d&&(k[g.name]=d);}),v.setMainIndicators(b),v.setSubIndicators(k),u.removeOverlay();for(let g of i.overlays)u.createOverlay({name:g.name,points:g.points,styles:g.styles,lock:g.lock,visible:g.visible});},onCrosshairMove:i=>{let u=o.current;return u?(u.subscribeAction("onCrosshairChange",i),()=>{u.unsubscribeAction("onCrosshairChange",i);}):()=>{}},setCrosshair:i=>{o.current?.executeAction("onCrosshairChange",i);},lockAllDrawings:i=>{let u=o.current;if(!u)return;let M=u.getOverlays();for(let b of M)u.overrideOverlay({id:b.id,lock:i});},createIndicator:(i,u,M)=>{let b=o.current;return b?b.createIndicator(i,u,M)??null:null},removeIndicator:i=>{let u=o.current;return u?u.removeIndicator(i):false},getIndicators:i=>{let u=o.current;return u?u.getIndicators(i)??[]:[]},createOverlay:i=>{let u=o.current;return u?u.createOverlay(i):null},removeOverlay:i=>{let u=o.current;return u?u.removeOverlay(i):false},getDataList:()=>o.current?.getDataList()??[],resetData:()=>{o.current?.resetData();},resize:()=>{o.current?.resize();}}),[]);let E=()=>{let i=o.current;return i?i.getIndicators().flatMap(M=>(M.figures??[]).map(x=>({paneId:M.paneId??"",name:M.name,plot:x.key,shortName:M.shortName??M.name}))):[]},S=useRef(null),Y=()=>{S.current===null&&(S.current=requestAnimationFrame(()=>{S.current=null,o.current?.resize();}));};useEffect(()=>{let i=c$1.current;if(!i)return;window.addEventListener("resize",Y);let u=q(i,{formatter:{formatDate:({dateTimeFormat:k,timestamp:g,template:d,type:f})=>{switch(m.period().timespan){case "minute":return f==="xAxis"?s.formatDate(k,g,"HH:mm"):s.formatDate(k,g,"YYYY-MM-DD HH:mm");case "hour":return f==="xAxis"?s.formatDate(k,g,"MM-DD HH:mm"):s.formatDate(k,g,"YYYY-MM-DD HH:mm");case "day":case "week":return s.formatDate(k,g,"YYYY-MM-DD");case "month":return f==="xAxis"?s.formatDate(k,g,"YYYY-MM"):s.formatDate(k,g,"YYYY-MM-DD");case "year":return f==="xAxis"?s.formatDate(k,g,"YYYY"):s.formatDate(k,g,"YYYY-MM-DD")}return s.formatDate(k,g,d)}}});o.current=u;let M=u?d(u,e.plugins??[]):null;if(u){let k=u.getDom("candle_pane","main");if(k){let f=e.watermark??M5(),_=document.createElement("div");_.className="astroneum-watermark",s.isString(f)?_.textContent=f.trim():_.appendChild(f),k.appendChild(_);}let g=u.getDom("candle_pane","yAxis"),d=document.createElement("span");d.className="astroneum-price-unit",g?.appendChild(d),r$1.current=d;}v.mainIndicators().forEach(k=>{r1(u,k,true,{id:"candle_pane"});});let b={};(e.subIndicators??["VOL"]).forEach(k=>{let g=r1(u,{name:k},true);g&&(b[k]=g);}),v.setSubIndicators(b);let x={getBars:async({type:k,timestamp:g,symbol:d,period:f,callback:_})=>{L.setLoadingVisible(true);try{if(k==="init"){let Q,D,I=e.initialHistory;if(I==="all"){let[,j]=c1(f,Date.now(),1);Q=0,D=j;}else typeof I=="number"&&I>0?[Q,D]=c1(f,Date.now(),I):[Q,D]=c1(f,Date.now(),500);let F=await e.datafeed.getHistoryData(d,f,Q,D);e.barStyle==="heikin_ashi"&&(F=u1(F)),e.priceScale&&e.priceScale!=="linear"&&(F=P1(F,e.priceScale)),_(F,F.length>0);}else if(k==="forward"){let[Q]=c1(f,g,1),[D]=c1(f,Q,500),I=await e.datafeed.getHistoryData(d,f,D,Q);e.barStyle==="heikin_ashi"&&(I=u1(I)),e.priceScale&&e.priceScale!=="linear"&&(I=P1(I,e.priceScale)),_(I,I.length>0);}}finally{L.setLoadingVisible(false);}},subscribeBar:({symbol:k,period:g,callback:d})=>{e.datafeed.subscribe(k,g,d);},unsubscribeBar:({symbol:k,period:g})=>{e.datafeed.unsubscribe(k,g);}};if(u?.setDataLoader(x),e.accessible){let k=0,g=[];u?.subscribeAction("onCrosshairChange",d=>{let f=s$2.current;if(!f)return;let _=performance.now();if(_-k<100)return;k=_;let D=d?.kindsData?.candle_pane;if(!D||D.open===void 0){f.textContent="";return}let I=F=>F===void 0?"\u2014":String(F);g.length=0,g.push(m.symbol().ticker," ",m.period().text,", ","open ",I(D.open),", high ",I(D.high),", ","low ",I(D.low),", close ",I(D.close),", ","volume ",I(D.volume)),f.textContent=g.join("");});}return u?.subscribeAction("onIndicatorTooltipFeatureClick",k=>{let{paneId:g,indicator:d,feature:f}=k;if(d)switch(f.id){case "visible":{u?.overrideIndicator({name:d.name,paneId:g,visible:true});break}case "invisible":{u?.overrideIndicator({name:d.name,paneId:g,visible:false});break}case "setting":{let _=u?.getIndicators({paneId:g,name:d.name})?.[0],Q=_?.calcParams??[],D=u?.getStyles().indicator.lines??[],I=_?.styles?.lines??[],F=D.map((j,B1)=>({color:I[B1]?.color??j.color,show:I[B1]?.show!==false}));L.setIndicatorSettingModalParams({visible:true,indicatorName:d.name,paneId:g,calcParams:Q.map(j=>typeof j=="number"?j:Number(j)),lineStyles:F});break}case "close":if(g==="candle_pane"){let _=[...v.mainIndicators()];u?.removeIndicator({paneId:g,name:d.name}),_.splice(_.findIndex(Q=>Q.name===d.name),1),v.setMainIndicators(_);}else {let _={...v.subIndicators()};u?.removeIndicator({paneId:g,name:d.name}),delete _[d.name],v.setSubIndicators(_);}}}),()=>{window.removeEventListener("resize",Y),l.current?.disable(),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null),M?.(),r(i),o.current=null;}},[]);let O=m.symbol(),H=m.period(),A=m.theme(),N=m.locale(),T=m.timezone(),q$1=m.styles();return useEffect(()=>{let i=o.current;if(!i)return;let u=r$1.current;u&&(O?.priceCurrency?(u.textContent=O.priceCurrency.toLocaleUpperCase(),u.style.display="flex"):u.style.display="none"),i.setSymbol({ticker:O.ticker,pricePrecision:O.pricePrecision??2,volumePrecision:O.volumePrecision??0}),i.setPeriod(H),i.setStyles(A),i.setStyles(A==="dark"?S5:w5),i.setLocale(N),i.setTimezone(T.key),q$1&&(i.setStyles(q$1),m.setWidgetDefaultStyles(g(i.getStyles())));},[O,H,A,N,T,q$1]),c("div",{className:`astroneum${e.className?` ${e.className}`:""}`,"data-theme":A,style:e.style,...e.accessible?{tabIndex:0,role:"img","aria-label":e.ariaLabel??`${O.ticker} ${H.text} chart`}:{},children:[e.accessible&&b("div",{ref:i=>{s$2.current=i;},className:"astroneum-sr-only",role:"status","aria-live":"polite","aria-atomic":"true"}),b("i",{className:"icon-close astroneum-load-icon"}),L.symbolSearchModalVisible()&&b(s$1,{locale:N,searchSymbols:e.datafeed.searchSymbols.bind(e.datafeed),onSymbolSelected:i=>{m.setSymbol(i);},onClose:()=>{L.setSymbolSearchModalVisible(false);}}),L.indicatorModalVisible()&&b(_1,{locale:N,mainIndicators:v.mainIndicators(),subIndicators:v.subIndicators(),onClose:()=>{L.setIndicatorModalVisible(false);},onMainIndicatorChange:i=>{let u=[...v.mainIndicators()];i.added?(r1(o.current,{name:i.name},true,{id:"candle_pane"}),u.push({name:i.name})):(o.current?.removeIndicator({paneId:"candle_pane",name:i.name}),u.splice(u.findIndex(M=>M.name===i.name),1)),v.setMainIndicators(u);},onSubIndicatorChange:i=>{let u={...v.subIndicators()};if(i.added){let M=r1(o.current,{name:i.name});M&&(u[i.name]=M);}else i.paneId&&(o.current?.removeIndicator({paneId:i.paneId,name:i.name}),delete u[i.name]);v.setSubIndicators(u);}}),L.timezoneModalVisible()&&b(w1,{locale:N,timezone:m.timezone(),onClose:()=>{L.setTimezoneModalVisible(false);},onConfirm:m.setTimezone}),L.settingModalVisible()&&b(I1,{locale:N,currentStyles:s.clone(o.current.getStyles()),onClose:()=>{L.setSettingModalVisible(false);},onChange:i=>{o.current?.setStyles(i);},onRestoreDefault:i=>{let u={};i.forEach(M=>{let b=M.key;f(u,b,s.formatValue(m.widgetDefaultStyles(),b));}),o.current?.setStyles(u);}}),L.screenshotUrl().length>0&&b(z1,{locale:N,url:L.screenshotUrl(),onClose:()=>{L.setScreenshotUrl("");}}),L.indicatorSettingModalParams().visible&&b(N1,{locale:N,params:L.indicatorSettingModalParams(),onClose:()=>{L.setIndicatorSettingModalParams(A1);},onConfirm:(i,u)=>{let M=L.indicatorSettingModalParams();o.current?.overrideIndicator({name:M.indicatorName,paneId:M.paneId,calcParams:i,styles:u.length>0?{lines:u.map(b=>({color:b.color,show:b.show}))}:null});}}),Z&&b(t,{currentPrice:o.current?.getDataList()?.slice(-1)[0]?.close,timeframe:m.period().text,indicatorSources:E(),locale:N,symbol:m.symbol().ticker,onClose:()=>{V(false);}}),B&&b(O1,{locale:N,onCompiled:i=>{r1(o.current,{name:i},false);},onClose:()=>{K(false);}}),!!(e.toolbarActionsRef&&(e.toolbarActionsRef.current={toggleDrawingBar:()=>{startTransition(()=>{L.setDrawingBarVisible(i=>!i);}),requestAnimationFrame(()=>{o.current?.resize();});},openSymbolSearch:()=>{L.setSymbolSearchModalVisible(true);},openIndicators:()=>{L.setIndicatorModalVisible(true);},openTimezone:()=>{L.setTimezoneModalVisible(true);},openSettings:()=>{L.setSettingModalVisible(true);},openAlert:()=>{V(true);},captureScreenshot:()=>{o.current&&L.setScreenshotUrl(o.current.getConvertPictureUrl(true,"jpeg",A==="dark"?"#151517":"#ffffff"));}})),e.toolbarVisible!==false&&b(f1,{locale:N,symbol:m.symbol(),spread:L.drawingBarVisible(),period:m.period(),periods:e.periods??k5,onMenuClick:()=>{startTransition(()=>{L.setDrawingBarVisible(i=>!i);}),S.current!==null&&cancelAnimationFrame(S.current),S.current=requestAnimationFrame(()=>{S.current=null,o.current?.resize();});},onSymbolClick:()=>{L.setSymbolSearchModalVisible(!L.symbolSearchModalVisible());},onPeriodChange:m.setPeriod,onIndicatorClick:()=>{L.setIndicatorModalVisible(i=>!i);},onTimezoneClick:()=>{L.setTimezoneModalVisible(i=>!i);},onSettingClick:()=>{L.setSettingModalVisible(i=>!i);},onAlertClick:()=>{V(i=>!i);},onScreenshotClick:()=>{if(o.current){let i=o.current.getConvertPictureUrl(true,"jpeg",A==="dark"?"#151517":"#ffffff");L.setScreenshotUrl(i);}}}),c("div",{className:"astroneum-content",children:[L.loadingVisible()&&b(f$1,{}),L.drawingBarVisible()&&b(x1,{locale:N,onDrawingItemClick:i=>{o.current?.createOverlay(i);},onModeChange:i=>{o.current?.overrideOverlay({mode:i});},onLockChange:i=>{o.current?.overrideOverlay({lock:i});},onVisibleChange:i=>{o.current?.overrideOverlay({visible:i});},onRemoveClick:i=>{o.current?.removeOverlay({groupId:i});},onSnapLevelsChange:i=>{let u=o.current;u&&(l.current||(l.current=new S9(u)),i?l.current.enable():l.current.disable());}}),b("div",{ref:i=>{c$1.current=i;},className:"astroneum-widget","data-drawing-bar-visible":L.drawingBarVisible()}),b("div",{className:"astroneum-clock","aria-hidden":"true",children:z})]})]})});T9.displayName="AstroneumChart";var B9=T9;function D5(e){switch(e){case 2:return {cols:2,rows:1};case 4:return {cols:2,rows:2};case 8:return {cols:4,rows:2};case 16:return {cols:4,rows:4};default:return {cols:2,rows:1}}}function P5(e){return e===2||e===4||e===8||e===16}function Z5(e){if(e===null||typeof e!="object")return false;let n=e;return n.version===1&&n.symbol!==null&&typeof n.symbol=="object"&&n.period!==null&&typeof n.period=="object"}function R5(e,n){try{localStorage.setItem(e,JSON.stringify(n));}catch{}}function A5(e){try{let n=localStorage.getItem(e);return n?JSON.parse(n):null}catch{return null}}var T1=class{_container;_count;_charts=[];_slots;_options;_storageKey;_syncCrosshair;_syncSymbolPeriod;_activeIndex=0;_wrapperEl=null;_states=[];_persistTimer=null;_restoreTimer=null;_readyTimer=null;_restorePending=false;_lastPersisted="";constructor(n){if(this._options=n,this._storageKey=n.storageKey!==void 0?n.storageKey:"astroneum-multi-layout",this._syncCrosshair=n.syncCrosshair??true,this._syncSymbolPeriod=n.syncSymbolPeriod??false,typeof n.container=="string"){let s=document.getElementById(n.container);if(!s)throw new Error(`MultiChartLayout: container #${n.container} not found`);this._container=s;}else this._container=n.container;let o=null;this._storageKey&&(o=A5(this._storageKey)),this._count=n.count??(P5(o?.count)?o.count:2);let c=Array.isArray(o?.states)?o.states:[];this._states=Array.from({length:this._count},(s,C)=>Z5(c[C])?c[C]:null),this._activeIndex=Math.max(0,Math.min(typeof o?.activeIndex=="number"?o.activeIndex:0,this._count-1));let l={symbol:n.symbol,period:n.period},r=n.slots??[];this._slots=Array.from({length:this._count},(s,C)=>{let h=this._states[C];return h?{symbol:h.symbol,period:h.period}:o?.slots[C]??r[C]??l}),this._render(),this._storageKey&&(this._persistTimer=window.setInterval(()=>this._persist(),1500));}_render(){this._restorePending||this._captureStates(),this._destroy();let{cols:n,rows:o}=D5(this._count),c=document.createElement("div");c.className="astroneum-multi-layout",Object.assign(c.style,{display:"grid",gridTemplateColumns:`repeat(${n}, 1fr)`,gridTemplateRows:`repeat(${o}, 1fr)`,width:"100%",height:"100%",gap:"2px",boxSizing:"border-box"}),this._wrapperEl=c;for(let l=0;l<this._count;l++){let r=this._slots[l],s=document.createElement("div");s.className="astroneum-multi-cell",Object.assign(s.style,{position:"relative",overflow:"hidden",minWidth:"0",minHeight:"0"}),l===this._activeIndex&&(s.style.outline="2px solid #1677ff"),s.addEventListener("click",()=>this._setActive(l),{capture:true}),c.appendChild(s);let C={...this._options,symbol:r.symbol,period:r.period,drawingBarVisible:false},h=createRoot(s),y={container:s,instance:null,root:h};flushSync(()=>{h.render(z5.createElement(B9,{...C,ref:m=>{y.instance=m;}}));}),this._charts.push(y);}this._container.innerHTML="",this._container.appendChild(c),this._initializeCharts();}_initializeCharts(){if(this._charts.some(n=>n.instance===null)){this._readyTimer=window.setTimeout(()=>this._initializeCharts(),16);return}if(this._syncCrosshair&&this._charts.length>1)for(let n=0;n<this._charts.length;n++)this._charts[n].instance.onCrosshairMove(c=>{for(let l=0;l<this._charts.length;l++)l!==n&&this._charts[l].instance?.setCrosshair(c);});this._readyTimer=null,this._restoreStates();}_setActive(n){let o=this._charts[this._activeIndex];o&&(o.container.style.outline=""),this._activeIndex=n;let c=this._charts[n];c&&(c.container.style.outline="2px solid #1677ff"),this._persist();}_destroy(){this._restoreTimer!==null&&(window.clearTimeout(this._restoreTimer),this._restoreTimer=null),this._readyTimer!==null&&(window.clearTimeout(this._readyTimer),this._readyTimer=null);for(let{root:n}of this._charts)n.unmount();this._charts=[],this._wrapperEl&&(this._container.removeChild(this._wrapperEl),this._wrapperEl=null);}_persist(){if(!this._storageKey)return;this._restorePending||this._captureStates();let n={count:this._count,slots:this._slots,states:this._states,activeIndex:this._activeIndex},o=JSON.stringify(n);o!==this._lastPersisted&&(R5(this._storageKey,n),this._lastPersisted=o);}_captureStates(){if(this._charts.length===0||this._charts.some(o=>o.instance===null))return;let n=this._charts.map(o=>o.instance.serializeState());this._states=n,this._slots=n.map(o=>({symbol:o.symbol,period:o.period}));}_restoreStates(){if(!this._states.some(o=>o!==null))return;this._restorePending=true;let n=()=>{if(this._charts.some(o=>o.instance===null||o.instance.getIndicators().length===0)){this._restoreTimer=window.setTimeout(n,100);return}this._states.forEach((o,c)=>{o&&this._charts[c]?.instance?.loadState(o);}),this._restorePending=false,this._restoreTimer=null,this._persist();};n();}setCount(n){this._restorePending||this._captureStates(),this._count=n;let o={symbol:this._options.symbol,period:this._options.period};for(;this._slots.length<n;)this._slots.push(o);for(this._slots=this._slots.slice(0,n);this._states.length<n;)this._states.push(null);this._states=this._states.slice(0,n),this._activeIndex=Math.min(this._activeIndex,n-1),this._render(),this._persist();}getCount(){return this._count}getChart(n){return this._charts[n]?.instance??void 0}getAllCharts(){return this._charts.flatMap(n=>n.instance?[n.instance]:[])}getActiveIndex(){return this._activeIndex}getActiveChart(){return this._charts[this._activeIndex]?.instance??void 0}setSymbol(n,o){let c=this._syncSymbolPeriod?this._charts.map((l,r)=>r):[o??this._activeIndex];for(let l of c){let r=this._charts[l];r&&(r.instance?.setSymbol(n),this._slots[l]={...this._slots[l],symbol:n});}this._persist();}setPeriod(n,o){let c=this._syncSymbolPeriod?this._charts.map((l,r)=>r):[o??this._activeIndex];for(let l of c){let r=this._charts[l];r&&(r.instance?.setPeriod(n),this._slots[l]={...this._slots[l],period:n});}this._persist();}setTheme(n){for(let{instance:o}of this._charts)o?.setTheme(n);}setLocale(n){for(let{instance:o}of this._charts)o?.setLocale(n);}saveLayout(){this._persist();}destroy(){this._persist(),this._persistTimer!==null&&(window.clearInterval(this._persistTimer),this._persistTimer=null),this._destroy();}};export{u1 as a,G2 as b,P1 as c,d5 as d,X2 as e,B9 as f,T1 as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {b as b$1,k as k$1}from'./chunk-47YGQEL5.js';var d="value",T=16;function h(t){return typeof t=="number"&&Number.isFinite(t)}function p(t,e,n){return Math.min(n,Math.max(e,t))}function R(t){if(h(t))return {[d]:t};if(t!==null&&typeof t=="object"){let e={};if(Object.entries(t).forEach(([n,r])=>{e[n]=h(r)?r:null;}),Object.keys(e).length>0)return e}return {[d]:null}}function D(t,e){let n=new Array(e);for(let r=0;r<e;r++)n[r]=R(t[r]);return n}function P(t){let e=[],n=new Set;for(let r of t)for(let o of Object.keys(r))if(!n.has(o)&&(n.add(o),e.push(o),e.length>=T))return e;return e.length===0?[d]:e}function M(t,e){if(t.length!==e.length)return false;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return false;return true}function I(t){return t.map(e=>({key:e,title:`${e===d?"Value":e}: `,type:"line"}))}function N(t,e,n,r,o){let i=Math.min(n.realFrom,n.realTo),a=Math.max(n.realFrom,n.realTo);if(t.length===0)return {priceMin:i,priceMax:a,timeMin:0,timeMax:0,resolution:[r,o]};let l=t.length-1,u=p(Math.floor(e.realFrom),0,l),c=p(Math.ceil(e.realTo),1,t.length),m=p(c-1,u,l),s=Number(t[u]?.timestamp??0),g=Number(t[m]?.timestamp??s);return {priceMin:i,priceMax:a,timeMin:Math.min(s,g),timeMax:Math.max(s,g),resolution:[r,o]}}function x(t){if(t.extendData===null||typeof t.extendData!="object")return null;let e=t.extendData[k$1];return e===null||typeof e!="object"?null:e}function C(t){let e=t.render2D===void 0?null:(o,i,a)=>{t.render2D?.(o,i,a);},n=t.renderGL===void 0?null:(o,i,a,l)=>{t.renderGL?.(o,i,a,l);},r={name:t.name,shortName:t.shortName??t.name,calcParams:[...t.calcParams??[]],figures:I([d]),extendData:{[k$1]:{output:[],renderGL:n,figureKeys:null}},calc(o,i){let a=t.calc(o,i.calcParams),l=Array.isArray(a)?a:[],u=x(i);u!==null&&(u.output=l);let c=D(l,o.length),m=P(c),s=u?.figureKeys??null;return (s===null||!M(s,m))&&(s=m,u!==null&&(u.figureKeys=m),i.figures=I(m)),c}};return e&&(r.draw=({ctx:o,chart:i,indicator:a,yAxis:l,bounding:u})=>{let c=x(a),m=c!==null?c.output:[],s=N(i.getDataList(),i.getVisibleRange(),l.getRange(),Math.max(1,Math.floor(u.width)),Math.max(1,Math.floor(u.height)));return e(o,m,s),true}),r}function w(t){b$1(C(t));}function b(t){t.forEach(e=>{w(e);});}function k(t,e){let n=[];return e.forEach(r=>{if(r.indicators&&r.indicators.length>0&&b(r.indicators),r.onInit){let o={chart:t,registerIndicatorPlugin:w,registerIndicatorPlugins:b},i=r.onInit(o);typeof i=="function"&&n.push(i);}}),()=>{for(let r=n.length-1;r>=0;r--)n[r]();}}export{C as a,w as b,b as c,k as d};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {a}from'./chunk-67XM5LOK.js';import {createContext,useRef,useState,useCallback,useEffect,useContext,useLayoutEffect,Fragment,Children,useMemo,useId}from'react';import {jsx,jsxs,Fragment as Fragment$1}from'react/jsx-runtime';export{Fragment as a,jsx as b,jsxs as c}from'react/jsx-runtime';var ce={indicator:"Indicator",main_indicator:"Main Indicator",sub_indicator:"Sub Indicator",setting:"Setting",timezone:"Timezone",screenshot:"Screenshot",full_screen:"Full Screen",exit_full_screen:"Exit",save:"Save",confirm:"Confirm",color:"Color",show:"Show",cancel:"Cancel",ma:"MA(Moving Average)",ema:"EMA(Exponential Moving Average)",sma:"SMA",boll:"BOLL(Bolinger Bands)",bbi:"BBI(Bull And Bearlndex)",sar:"SAR(Stop and Reverse)",vol:"VOL(Volume)",macd:"MACD(Moving Average Convergence / Divergence)",kdj:"KDJ(KDJ Index)",rsi:"RSI(Relative Strength Index)",bias:"BIAS(Bias Ratio)",brar:"BRAR(Bull and Bear Sentiment)",cci:"CCI(Commodity Channel Index)",dmi:"DMI(Directional Movement Index)",cr:"CR(Energy Index)",psy:"PSY(Psychological Line)",dma:"DMA(Different of Moving Average)",trix:"TRIX(Triple Exponentially Smoothed Moving Average)",obv:"OBV(On Balance Volume)",vr:"VR(Volatility Volume Ratio)",wr:"WR(Williams %R)",mtm:"MTM(Momentum Index)",emv:"EMV(Ease of Movement Value)",roc:"ROC(Price Rate of Change)",pvt:"PVT(Price and Volume Trend)",ao:"AO(Awesome Oscillator)",utc:"UTC",honolulu:"(UTC-10) Honolulu",juneau:"(UTC-8) Juneau",los_angeles:"(UTC-7) Los Angeles",chicago:"(UTC-5) Chicago",toronto:"(UTC-4) Toronto",sao_paulo:"(UTC-3) Sao Paulo",london:"(UTC+1) London",berlin:"(UTC+2) Berlin",bahrain:"(UTC+3) Bahrain",dubai:"(UTC+4) Dubai",ashkhabad:"(UTC+5) Ashkhabad",almaty:"(UTC+6) Almaty",bangkok:"(UTC+7) Bangkok",shanghai:"(UTC+8) Shanghai",tokyo:"(UTC+9) Tokyo",sydney:"(UTC+10) Sydney",norfolk:"(UTC+12) Norfolk",horizontal_straight_line:"Horizontal Line",horizontal_ray_line:"Horizontal Ray",horizontal_segment:"Horizontal Segment",vertical_straight_line:"Vertical Line",vertical_ray_line:"Vertical Ray",vertical_segment:"Vertical Segment",straight_line:"Trend Line",ray_line:"Ray",segment:"Segment",arrow:"Arrow",price_line:"Price Line",price_channel_line:"Price Channel Line",parallel_straight_line:"Parallel Line",fibonacci_line:"Fibonacci Line",fibonacci_segment:"Fibonacci Segment",fibonacci_circle:"Fibonacci Circle",fibonacci_spiral:"Fibonacci Spiral",fibonacci_speed_resistance_fan:"Fibonacci Sector",fibonacci_extension:"Fibonacci Extension",fibonacci_channel:"Fibonacci Channel",fibonacci_wedge:"Fibonacci Wedge",fibonacci_time_zones:"Fibonacci Time Zones",fibonacci_arcs:"Fibonacci Arcs",fibonacci_fan:"Fibonacci Fan",gann_box:"Gann Box",gann_fan:"Gann Fan",pitchfork:"Andrews Pitchfork",rect:"Rect",parallelogram:"Parallelogram",circle:"Circle",triangle:"Triangle",three_waves:"Three Waves",five_waves:"Five Waves",eight_waves:"Eight Waves",any_waves:"Any Waves",abcd:"ABCD Pattern",xabcd:"XABCD Pattern",weak_magnet:"Weak Magnet",strong_magnet:"Strong Magnet",symbol_search:"Symbol search",symbol_code:"Symbol, ISIN, or CUSIP",sample_study:"Sample Study",sample_study_desc:"Alertable oscillator (0-100) demonstrating indicator-based alerts",params_1:"Parameter 1",params_2:"Parameter 2",params_3:"Parameter 3",params_4:"Parameter 4",params_5:"Parameter 5",line_1:"Line 1",line_2:"Line 2",line_3:"Line 3",line_4:"Line 4",line_5:"Line 5",period:"Period",standard_deviation:"Standard Deviation",candle_type:"Candle Type",candle_solid:"Candle Solid",candle_stroke:"Candle Stroke",candle_up_stroke:"Candle Up Stroke",candle_down_stroke:"Candle Down Stroke",ohlc:"OHLC",area:"Area",last_price_show:"Show Last Price",high_price_show:"Show Highest Price",low_price_show:"Show Lowest Price",indicator_last_value_show:"Show indicator's last value",price_axis_type:"Price Axis Type",normal:"Normal",percentage:"Percentage",log:"Log",reverse_coordinate:"Reverse Coordinate",grid_show:"Show Grids",restore_default:"Restore Defaults",alerts:"Alerts",alert_create:"Create",alert_create_alert:"Create alert",alert_create_on:"Create alert on",alert_save:"Save",alert_history:"History",alert_condition:"Condition",alert_price:"Price",alert_source:"Source",alert_source_price:"Price",alert_operator:"Operator",alert_value:"Value",alert_crosses:"Crosses",alert_is_between:"Is between",alert_add_condition:"Add condition",alert_note:"Note",alert_note_placeholder:"Optional label\u2026",alert_add:"Add Alert",alert_create_button:"Create",alert_submitting:"Creating\u2026",alert_saving:"Saving\u2026",alert_invalid_price:"Please enter a valid number",alert_invalid_condition:"At least one valid condition is required",alert_quota_exceeded:"Alert limit reached",alert_retry:"Retry",alert_active:"Active",alert_no_active:"No active alerts",alert_no_history:"No triggered alerts yet",alert_reactivate:"Re-activate",alert_pause:"Pause",alert_resume:"Resume",alert_edit:"Edit",alert_delete:"Delete",alert_search:"Search alerts\u2026",alert_filter_all:"All symbols",alert_filter_current:"Current symbol",alert_paused:"Paused",alert_expired:"Expired",alert_dismissed:"Dismissed",alert_above:"Above",alert_below:"Below",alert_crosses_above:"Crosses \u2191",alert_crosses_below:"Crosses \u2193",alert_trigger:"Trigger",alert_trigger_once:"Once only",alert_trigger_every_bar:"Every bar",alert_trigger_bar_close:"Once per bar close",alert_expiration:"Expiration",alert_expiration_open:"Open-ended",alert_expiration_1d:"In 1 day",alert_expiration_1w:"In 1 week",alert_expiration_1m:"In 1 month",alert_expiration_2m:"In 2 months",alert_message:"Message",alert_message_hint:"Sent as the webhook body when a webhook URL is set.",alert_message_done:"Done",alert_webhook_body:"Webhook body",alert_notifications:"Notifications",alert_back:"Back",alert_apply:"Apply",alert_notif_app:"Notify in app",alert_notif_app_desc:"Provides a push notification in the mobile app.",alert_notif_toast:"Show toast notification",alert_notif_toast_desc:"Displays an onsite notification in the page corner.",alert_notif_email:"Send email",alert_notif_email_desc:"Sends an email to the address in your account settings.",alert_notif_webhook:"Webhook URL",alert_notif_webhook_desc:"Sends a POST request to your URL when the alert triggers.",alert_notif_sound:"Play sound",alert_notif_sound_desc:"Plays an audio cue when your alert triggers.",alert_notif_plaintext:"Send plain text",alert_notif_plaintext_desc:"Sends plain text to an alternative email.",alert_notif_none:"None",alert_webhook_valid:"Valid target URL",alert_webhook_invalid:"Invalid URL \u2014 use http(s)://, no private or localhost hosts",alert_sound_once:"Once",alert_sound_repeating:"Repeating",alert_schedule:"Notification schedule",alert_schedule_desc:"Notifications are muted outside this schedule.","alert_schedule_24/7":"24/7",alert_schedule_weekdays:"Weekdays",alert_schedule_working_hours:"Working hours (Mon\u2013Fri 09:00\u201318:00)",alert_schedule_custom:"Custom",alert_webhook_delivered:"Delivered",alert_webhook_failed:"Failed",alert_webhook_sending:"Sending",alert_log:"Log",alert_clear_log:"Clear log",alert_actions:"Actions",alert_no_log:"No alerts triggered yet",alert_webhook_success:"Webhook successfully delivered",alert_webhook_failed_prefix:"Webhook delivery failed",alert_webhook_timeout:"request took too long and timed out",alert_webhook_learn_more:"Learn more",snap_levels:"Snap to price levels",no_magnet:"No snap",script_editor:"Script Editor",script_editor_hint:"Write JavaScript \u2014 uses Pine Script\u2013inspired API with ta.* helpers",script_compile:"Compile",script_apply:"Add to Chart",script_compiled:"Compiled",script_api_ref:"API Reference",watchlist:"Watchlist",watchlist_new:"New Watchlist",watchlist_add_list:"Add watchlist",watchlist_delete_list:"Delete watchlist",watchlist_add_symbol:"Add",watchlist_remove_symbol:"Remove symbol",watchlist_enter_symbol:"Enter ticker\u2026",cross_cursor:"Cross",dot_cursor:"Dot",arrow_cursor:"Arrow",eraser_cursor:"Eraser",measure:"Measure",zoom_in:"Zoom In",keep_drawing:"Keep Drawing",long_position:"Long Position",short_position:"Short Position",position_forecast:"Position Forecast",bars_pattern:"Bars Pattern",ghost_feed:"Ghost Feed",sector:"Sector",anchored_vwap:"Anchored VWAP",fixed_range_volume_profile:"Fixed Range Volume Profile",anchored_volume_profile:"Anchored Volume Profile",price_range:"Price Range",date_range:"Date Range",date_and_price_range:"Date and Price Range",forecasting:"Forecasting",volume_based:"Volume-based",measurers:"Measurers",text_note:"Text",annotation:"Annotation",symbol_search_all:"All",symbol_search_stocks:"Stocks",symbol_search_funds:"Funds",symbol_search_futures:"Futures",symbol_search_forex:"Forex",symbol_search_crypto:"Crypto",symbol_search_indices:"Indices",symbol_search_bonds:"Bonds",symbol_search_economy:"Economy",symbol_search_options:"Options",symbol_search_more:"More",symbol_search_footer:"Search using ISIN and CUSIP codes",symbol_search_no_results:"No symbols found",symbol_search_loading:"Searching...",symbol_search_clear:"Clear search"};var B={"en-US":ce},Fe={"zh-CN":()=>import('./zh-CN-NDTUDZGZ.js'),"ja-JP":()=>import('./ja-JP-NIODTBW3.js'),"ko-KR":()=>import('./ko-KR-DQHPXKBA.js'),"de-DE":()=>import('./de-DE-4PR3NRQ7.js'),"fr-FR":()=>import('./fr-FR-Y7XWRGF2.js'),"es-ES":()=>import('./es-ES-HNDVPSLW.js'),"pt-BR":()=>import('./pt-BR-MAMRTOYR.js'),"ru-RU":()=>import('./ru-RU-F43D6B7G.js'),"ar-SA":()=>import('./ar-SA-AEPUSRMF.js'),"hi-IN":()=>import('./hi-IN-KEGIKIMV.js'),"tr-TR":()=>import('./tr-TR-WFTKJ22Y.js'),"nl-NL":()=>import('./nl-NL-BB3ZHCXS.js'),"pl-PL":()=>import('./pl-PL-I5MZDLFD.js'),"it-IT":()=>import('./it-IT-UDTDFSRB.js'),"vi-VN":()=>import('./vi-VN-CD3WI2FQ.js'),"th-TH":()=>import('./th-TH-KTFIUAD6.js'),"id-ID":()=>import('./id-ID-QXDIUQUZ.js')},U={};function Tt(e,a){B[e]=a;}function Pt(e){let a=B[e];if(a)return Promise.resolve(a);if(e in U)return U[e];let l=Fe[e];return l?(U[e]=l().then(d=>(B[e]=d.default,delete U[e],d.default)),U[e]):Promise.resolve(null)}var At=["en-US","zh-CN","ja-JP","ko-KR","de-DE","fr-FR","es-ES","pt-BR","ru-RU","ar-SA","hi-IN","tr-TR","nl-NL","pl-PL","it-IT","vi-VN","th-TH","id-ID"],n=(e,a)=>(B[a]?.[e]??B["en-US"]?.[e]??e).replace(/<[^>]*>/g,"");var Z=createContext(null);function Mt({children:e}){let a=useRef([]),l=useRef(null),[,d]=useState(0),s=useCallback(u=>(a.current=[...a.current.filter(_=>_.id!==u.id),u],d(_=>_+1),()=>{a.current=a.current.filter(_=>_.id!==u.id),d(_=>_+1);}),[]),m=useCallback(()=>{let u=a.current.at(-1);return u?(u.close(),true):false},[]),b=useCallback(()=>{for(let u of [...a.current].reverse())u.close();},[]);useEffect(()=>{let u=_=>{_.key!=="Escape"||!m()||(_.preventDefault(),_.stopPropagation());};return document.addEventListener("keydown",u,true),()=>document.removeEventListener("keydown",u,true)},[m]),useEffect(()=>{let u=_=>{l.current=_.target instanceof Element?_.target:null;};return document.addEventListener("pointerdown",u,true),()=>document.removeEventListener("pointerdown",u,true)},[]);let v=useCallback(()=>{let u=document.activeElement;return u instanceof HTMLElement&&u!==document.body?u:l.current},[]);return jsx(Z.Provider,{value:{register:s,closeTop:m,closeAll:b,getTrigger:v},children:e})}function $t(){let e=useContext(Z);if(!e)throw new Error("useLayerProvider must be used inside LayerProvider");return e}function X(e,a,l){let d=useContext(Z),s=d?.register,m=d?.getTrigger,b=useRef(null);useLayoutEffect(()=>{if(!a||!s)return;b.current=m?.()??document.activeElement;let v=s({id:e,close:l});return ()=>{v();let u=b.current;window.setTimeout(()=>{u instanceof HTMLElement&&u.focus();});}},[m,e,l,a,s]);}var Je=e=>jsx("button",{style:e.style,className:`astroneum-button button is-small ${e.type==="confirm"?"is-primary":""} ${e.className??""}`,disabled:e.disabled,onClick:e.onClick,children:e.children}),Y=Je;var We=e=>{let[a,l]=useState(e.checked??false);return useEffect(()=>{e.checked!==void 0&&l(e.checked);},[e.checked]),jsxs("label",{style:e.style,className:`astroneum-checkbox ${a&&"checked"||""} ${e.disabled?"is-disabled":""} ${e.className||""}`,children:[jsx("input",{type:"checkbox",checked:a,disabled:e.disabled,onChange:d=>{let s=d.target.checked;e.onChange&&e.onChange(s),l(s);}}),jsx("span",{className:"checkbox-visual",children:a&&jsx("svg",{viewBox:"0 0 12 10",fill:"none","aria-hidden":"true",children:jsx("path",{d:"M1 5l3.5 3.5L11 1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),e.label&&jsx("span",{className:"label",children:e.label})]})},A=We;function fe(e,a){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="object"&&e!==null){let l=e.key??e.id;if(typeof l=="string"||typeof l=="number")return l}return a}var ze=()=>jsxs("div",{className:"astroneum-loading",children:[jsx("i",{className:"circle1"}),jsx("i",{className:"circle2"}),jsx("i",{className:"circle3"})]}),Q=ze;var qe=()=>jsx("div",{className:"astroneum-empty",children:jsx("svg",{className:"icon",viewBox:"0 0 1024 1024",children:jsx("path",{d:"M855.6 427.2H168.5c-12.7 0-24.4 6.9-30.6 18L4.4 684.7C1.5 689.9 0 695.8 0 701.8v287.1c0 19.4 15.7 35.1 35.1 35.1H989c19.4 0 35.1-15.7 35.1-35.1V701.8c0-6-1.5-11.8-4.4-17.1L886.2 445.2c-6.2-11.1-17.9-18-30.6-18zM673.4 695.6c-16.5 0-30.8 11.5-34.3 27.7-12.7 58.5-64.8 102.3-127.2 102.3s-114.5-43.8-127.2-102.3c-3.5-16.1-17.8-27.7-34.3-27.7H119c-26.4 0-43.3-28-31.1-51.4l81.7-155.8c6.1-11.6 18-18.8 31.1-18.8h622.4c13 0 25 7.2 31.1 18.8l81.7 155.8c12.2 23.4-4.7 51.4-31.1 51.4H673.4zM819.9 209.5c-1-1.8-2.1-3.7-3.2-5.5-9.8-16.6-31.1-22.2-47.8-12.6L648.5 261c-17 9.8-22.7 31.6-12.6 48.4 0.9 1.4 1.7 2.9 2.5 4.4 9.5 17 31.2 22.8 48 13L807 257.3c16.7-9.7 22.4-31 12.9-47.8zM375.4 261.1L255 191.6c-16.7-9.6-38-4-47.8 12.6-1.1 1.8-2.1 3.6-3.2 5.5-9.5 16.8-3.8 38.1 12.9 47.8L337.3 327c16.9 9.7 38.6 4 48-13.1 0.8-1.5 1.7-2.9 2.5-4.4 10.2-16.8 4.5-38.6-12.4-48.4zM512 239.3h2.5c19.5 0.3 35.5-15.5 35.5-35.1v-139c0-19.3-15.6-34.9-34.8-35.1h-6.4C489.6 30.3 474 46 474 65.2v139c0 19.5 15.9 35.4 35.5 35.1h2.5z"})})}),be=qe;var Ze=e=>{let a=!!e.children,l=[];return e.loading&&l.push(jsx(Fragment,{children:jsx(Q,{})},"list-loading")),!e.loading&&!a&&!e.dataSource?.length&&l.push(jsx(Fragment,{children:jsx(be,{})},"list-empty")),a&&l.push(...Children.toArray(e.children)),a||e.dataSource?.forEach((d,s)=>{let m=fe(d,s),b=e.renderItem?.(d,s);if(b!=null){l.push(jsx(Fragment,{children:b},m));return}l.push(jsx("li",{children:`${d??""}`},m));}),jsx("ul",{style:e.style,className:`astroneum-list ${e.className??""}`,children:l})},Ye=Ze;var _e='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',je=0,et=e=>{let a=`astroneum-modal-title-${++je}`,l=useRef(null),d=useRef(null),s=useRef(null);return useEffect(()=>{s.current=document.activeElement;let m=u=>{if(u.key==="Escape"){if(e.onEscape){e.onEscape();return}e.onClose?.();return}if(u.key==="Tab"&&l.current){let _=l.current.querySelectorAll(_e),p=_[0],c=_[_.length-1];u.shiftKey?document.activeElement===p&&(u.preventDefault(),c?.focus()):document.activeElement===c&&(u.preventDefault(),p?.focus());}};return document.addEventListener("keydown",m),(e.initialFocus==="body"?d.current:l.current)?.querySelector(_e)?.focus(),()=>{document.removeEventListener("keydown",m);let u=s.current;u instanceof HTMLElement&&u.focus();}},[]),jsxs("div",{role:"dialog","aria-modal":"true","aria-labelledby":a,className:"astroneum-modal modal is-active",children:[jsx("div",{className:"modal-background",onClick:e.onClose}),jsxs("div",{ref:m=>{l.current=m;},style:{width:`${e.width??400}px`,maxWidth:"calc(100vw - 32px)"},className:`modal-card ${e.className??""}`,children:[jsxs("header",{className:"modal-card-head",children:[e.onBack&&jsx("button",{className:"modal-back-btn","aria-label":"Back",onClick:e.onBack,children:jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",children:jsx("path",{d:"M14 7H7.2l2.3-2.3-1.1-1.1L4.3 8l3.9 3.9 1.1-1.1L7.2 8.5H14z"})})}),e.headerContent??jsx("p",{id:a,className:"modal-card-title",children:e.title}),jsx("button",{className:"delete","aria-label":"close",onClick:e.onClose})]}),jsx("section",{ref:m=>{d.current=m;},className:"modal-card-body",children:e.children}),e.buttons&&e.buttons.length>0&&jsx("footer",{className:"modal-card-foot",children:e.buttons.map((m,b)=>jsx(Y,{...m,children:m.children},`modal-button-${b}`))})]})]})},F=et;var at=e=>{let[a,l]=useState(false);return jsxs("div",{style:e.style,className:`astroneum-select ${e.className??""} ${a?"astroneum-select-show":""}`,tabIndex:"0",onClick:d=>{l(s=>!s);},onBlur:d=>{l(false);},children:[jsxs("div",{className:"selector-container",children:[jsx("span",{className:"value",children:e.value}),jsx("i",{className:"arrow"})]}),e.dataSource&&e.dataSource.length>0&&jsx("div",{className:"drop-down-container",children:jsx("ul",{children:e.dataSource.map(d=>{let s=d,m=s[e.valueKey??"text"]??d;return jsx("li",{onClick:b=>{b.stopPropagation(),e.value!==m&&e.onSelected?.(d),l(false);},children:m},s.key??m)})})})]})},ot=at;var lt=e=>{let a={min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,...e},l=null,[d,s]=useState("normal");return jsxs("div",{style:a.style,className:`astroneum-input control ${a.prefix?"has-icons-left":""} ${a.suffix?"has-icons-right":""} ${a.className??""}`,"data-status":d,onClick:()=>{l?.focus();},children:[jsx("input",{ref:m=>{l=m,a.inputRef?.(m);},className:"input is-small",placeholder:a.placeholder??"",value:a.value,id:a.id,name:a.name,role:a.role,"aria-label":a.ariaLabel,autoFocus:a.autoFocus,disabled:a.disabled,onKeyDown:a.onKeyDown,onFocus:()=>{s("focus");},onBlur:()=>{s("normal");},onChange:m=>{let b=m.target.value;if("precision"in a){let v,u=Math.max(0,Math.floor(a.precision));u<=0?v=new RegExp(/^[1-9]\d*$/):v=new RegExp("^\\d+\\.?\\d{0,"+u+"}$"),(b===""||v.test(b)&&+b>=a.min&&+b<=a.max)&&a.onChange?.(b===""?b:+b);}else a.onChange?.(b);}}),a.prefix&&jsx("span",{className:"icon is-small is-left",children:a.prefix}),a.suffix&&jsx("span",{className:"icon is-small is-right",children:a.suffix})]})},L=lt;var it=e=>jsx("div",{style:e.style,className:`astroneum-switch ${e.open?"turn-on":"turn-off"} ${e.className??""}`,onClick:a=>{e.onChange&&e.onChange();},children:jsx("i",{className:"thumb"})}),rt=it;var dt=e=>{let[a,l]=useState(false),[d,s]=useState(-1),m=useRef(null),b=useId();useEffect(()=>{if(!a)return;let c=h=>{m.current&&!m.current.contains(h.target)&&l(false);};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[a]),useEffect(()=>{if(a){let c=e.options.findIndex(h=>h.value===e.value);s(c>=0?c:0);}},[a,e.options,e.value]);let v=c=>{c!==e.value&&e.onChange?.(c),l(false);},u=c=>{switch(c.key){case "Enter":if(c.preventDefault(),c.stopPropagation(),a&&d>=0){let h=e.options[d];h&&!h.disabled&&v(h.value);}else e.disabled||l(true);break;case " ":c.preventDefault(),e.disabled||l(h=>!h);break;case "Escape":c.stopPropagation(),l(false);break;case "ArrowDown":if(c.preventDefault(),!a){l(true);break}s(h=>Math.min(h+1,e.options.length-1));break;case "ArrowUp":if(c.preventDefault(),!a){l(true);break}s(h=>Math.max(h-1,0));break;case "Home":a&&(c.preventDefault(),s(0));break;case "End":a&&(c.preventDefault(),s(e.options.length-1));break;case "Tab":l(false);break}},p=e.options.find(c=>c.value===e.value)?.label??e.placeholder??"";return jsxs("div",{ref:c=>{m.current=c;},className:`astroneum-dropdown ${e.block?"is-block":""} ${a?"is-open":""} ${e.disabled?"is-disabled":""} ${e.className??""}`,tabIndex:e.disabled?-1:0,role:"combobox","aria-expanded":a,"aria-haspopup":"listbox","aria-activedescendant":a&&d>=0?`${b}-opt-${d}`:void 0,onClick:()=>{e.disabled||l(c=>!c);},onKeyDown:u,children:[jsxs("div",{className:"dropdown-trigger",children:[jsx("span",{className:"dropdown-value",children:p}),jsx("svg",{className:"dropdown-caret",width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",children:jsx("path",{d:"M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"})})]}),a&&jsx("ul",{role:"listbox",id:b,className:"dropdown-menu",children:e.options.map((c,h)=>jsx("li",{id:`${b}-opt-${h}`,role:"option","aria-selected":c.value===e.value,className:`dropdown-option ${c.value===e.value?"is-selected":""} ${h===d?"is-focused":""} ${c.disabled?"is-disabled":""}`,onClick:T=>{T.stopPropagation(),c.disabled||v(c.value);},onMouseEnter:()=>s(h),children:c.label},c.value))})]})},E=dt;var ut=["all","stocks","funds","futures","forex","crypto","indices","bonds","economy","options"],mt={stock:"stocks",equity:"stocks",common:"stocks",fund:"funds",etf:"funds",futures:"futures",future:"futures",forex:"forex",fx:"forex",crypto:"crypto",indices:"indices",index:"indices",bonds:"bonds",bond:"bonds",economy:"economy",options:"options",option:"options"};function ft(e,a){return a==="all"?e:e.filter(l=>mt[(l.type??"").toLowerCase()]===a)}var bt=e=>{X("symbol-search",true,e.onClose);let[a,l]=useState(""),[d,s]=useState([]),[m,b]=useState(false),[v,u]=useState("all"),[_,p]=useState(0),c=useRef(void 0),h=useRef(0),T=useRef(null);useEffect(()=>(c.current&&clearTimeout(c.current),b(true),c.current=setTimeout(()=>{let f=++h.current;e.searchSymbols(a).then(g=>{h.current===f&&(s(g),p(0));}).catch(()=>{h.current===f&&s([]);}).finally(()=>{h.current===f&&b(false);});},200),()=>{c.current&&clearTimeout(c.current);}),[a,e.searchSymbols]);let R=ft(d,v),O=f=>{if(f.key==="ArrowDown")f.preventDefault(),p(g=>Math.min(g+1,R.length-1));else if(f.key==="ArrowUp")f.preventDefault(),p(g=>Math.max(g-1,0));else if(f.key==="Enter"){f.preventDefault();let g=R[_];g&&(e.onSymbolSelected(g),e.onClose());}};useEffect(()=>{let f=T.current?.querySelector(`[data-index="${_}"]`);f&&f.scrollIntoView({block:"nearest"});},[_]);let I=R[_]?`astroneum-symbol-search-row-${_}`:void 0;return jsx(F,{title:n("symbol_search",e.locale),width:840,onClose:e.onClose,initialFocus:"body",children:jsxs("div",{className:"astroneum-symbol-search-modal",onKeyDown:O,children:[jsx(L,{className:"astroneum-symbol-search-modal-input",placeholder:n("symbol_code",e.locale),role:"searchbox",ariaLabel:n("symbol_search",e.locale),autoFocus:true,prefix:jsx("svg",{viewBox:"0 0 1024 1024",children:jsx("path",{d:"M945.066667 898.133333l-189.866667-189.866666c55.466667-64 87.466667-149.333333 87.466667-241.066667 0-204.8-168.533333-373.333333-373.333334-373.333333S96 264.533333 96 469.333333 264.533333 842.666667 469.333333 842.666667c91.733333 0 174.933333-34.133333 241.066667-87.466667l189.866667 189.866667c6.4 6.4 14.933333 8.533333 23.466666 8.533333s17.066667-2.133333 23.466667-8.533333c8.533333-12.8 8.533333-34.133333-2.133333-46.933334zM469.333333 778.666667C298.666667 778.666667 160 640 160 469.333333S298.666667 160 469.333333 160 778.666667 298.666667 778.666667 469.333333 640 778.666667 469.333333 778.666667z"})}),suffix:a?jsx("button",{type:"button",className:"astroneum-symbol-search-modal-clear","aria-label":n("symbol_search_clear",e.locale),onClick:()=>l(""),children:jsx("svg",{viewBox:"0 0 1024 1024",children:jsx("path",{d:"M512 421.5 331.5 241 241 331.5 421.5 512 241 692.5 331.5 783 512 602.5 692.5 783 783 692.5 602.5 512 783 331.5 692.5 241z"})})}):void 0,value:a,onChange:f=>l(`${f}`)}),jsxs("div",{className:"astroneum-symbol-search-modal-tabs",role:"tablist","aria-label":n("symbol_search",e.locale),children:[ut.map(f=>jsx("button",{role:"tab","aria-selected":v===f,className:`astroneum-symbol-search-modal-tab${v===f?" is-active":""}`,onClick:()=>{u(f),p(0);},children:n(`symbol_search_${f}`,e.locale)},f)),jsx("button",{role:"tab","aria-selected":false,"aria-disabled":"true",disabled:true,title:n("symbol_search_more",e.locale),className:"astroneum-symbol-search-modal-tab is-disabled",children:n("symbol_search_more",e.locale)})]}),jsxs("div",{ref:f=>{T.current=f;},className:"astroneum-symbol-search-modal-results",role:"listbox","aria-activedescendant":I,children:[m&&jsx("div",{className:"astroneum-symbol-search-modal-message",children:n("symbol_search_loading",e.locale)}),!m&&R.length===0&&jsx("div",{className:"astroneum-symbol-search-modal-empty",children:n("symbol_search_no_results",e.locale)}),!m&&R.map((f,g)=>jsxs("div",{id:`astroneum-symbol-search-row-${g}`,"data-index":g,"data-name":"symbol-search-dialog-content-item",role:"option","aria-selected":g===_,className:`astroneum-symbol-search-modal-row${g===_?" is-active":""}`,onMouseEnter:()=>p(g),onClick:()=>{e.onSymbolSelected(f),e.onClose();},children:[jsxs("div",{className:"astroneum-symbol-search-modal-cell-ticker",children:[f.logo&&jsx("img",{alt:"",src:f.logo}),jsx("span",{className:"astroneum-symbol-search-modal-ticker",children:f.shortName??f.ticker})]}),jsx("div",{className:"astroneum-symbol-search-modal-cell-desc",children:f.name??""}),jsx("div",{className:"astroneum-symbol-search-modal-cell-exchange",children:f.exchange??""}),jsx("div",{className:"astroneum-symbol-search-modal-cell-actions"})]},`${f.ticker}-${g}`))]}),jsx("div",{className:"astroneum-symbol-search-modal-footer",children:n("symbol_search_footer",e.locale)})]})})},Da=bt;var pe=[{value:"crosses_above",key:"alert_crosses_above"},{value:"crosses_below",key:"alert_crosses_below"},{value:"crosses",key:"alert_crosses"},{value:"above",key:"alert_above"},{value:"below",key:"alert_below"},{value:"is_between",key:"alert_is_between"}],ht=[{value:"once",key:"alert_trigger_once"},{value:"every_bar",key:"alert_trigger_every_bar"},{value:"bar_close",key:"alert_trigger_bar_close"}],gt=[{value:"",key:"alert_expiration_open"},{value:"1d",key:"alert_expiration_1d"},{value:"1w",key:"alert_expiration_1w"},{value:"1m",key:"alert_expiration_1m"},{value:"2m",key:"alert_expiration_2m"}],vt=["Thin","Classic","Alert","Bell","Chime"],yt=["once","repeating"],pt=[{value:"24/7",key:"alert_schedule_24/7"},{value:"weekdays",key:"alert_schedule_weekdays"},{value:"working_hours",key:"alert_schedule_working_hours"},{value:"custom",key:"alert_schedule_custom"}],w={soundEnabled:false,notificationEnabled:true,toastEnabled:true,emailEnabled:false,plainTextEnabled:false,plainTextEmail:"",webhookUrl:"",soundTitle:"Thin",soundDuration:"once",notificationSchedule:{preset:"24/7"}};function St(e){let a=e.trim();if(!a)return "empty";try{let l=new URL(a);if(l.protocol!=="http:"&&l.protocol!=="https:")return "invalid";let d=l.hostname.toLowerCase().replace(/^\[|\]$/g,"");return d==="localhost"||d==="127.0.0.1"||d==="::1"||/^(10\.|172\.(1[6-9]|2\d|3[01])\.|192\.168\.|169\.254\.|127\.)/.test(d)||d.endsWith(".local")||d.endsWith(".internal")?"invalid":"valid"}catch{return "invalid"}}function Ct(e){if(!e)return;let a=new Date;switch(e){case "1d":a.setDate(a.getDate()+1);break;case "1w":a.setDate(a.getDate()+7);break;case "1m":a.setMonth(a.getMonth()+1);break;case "2m":a.setMonth(a.getMonth()+2);break;default:return}return a.toISOString()}function kt(e,a){return n(pe.find(l=>l.value===e)?.key??"alert_crosses_above",a)}function wt(e){return `https://s3-symbol-logo.tradingview.com/crypto/XTVC${e.replace(/USDT$|USD$|PERP$|\.P$/i,"").toUpperCase()}.svg`}function ye(){return `cond_${Date.now()}_${Math.random().toString(36).slice(2,6)}`}var Nt=e=>{X("alert-modal",true,e.onClose);let a$1=a.getInstance(),l=!!e.editAlert,d=()=>e.editAlert?.conditions?.length?e.editAlert.conditions.map(o=>({...o})):[{id:ye(),source:{type:"price"},operator:"crosses_above",value:e.initialPrice??e.currentPrice??0}],[s,m]=useState(d),[b,v]=useState(e.editAlert?.frequency??"once"),[u,_]=useState("2m"),[p,c]=useState(e.editAlert?.messageTemplate??""),[h,T]=useState("form"),[R,O]=useState(false),[I,f]=useState("editing"),[g,H]=useState(null),[x,Se]=useState(()=>e.editAlert?{soundEnabled:e.editAlert.soundEnabled??w.soundEnabled,notificationEnabled:e.editAlert.notificationEnabled??w.notificationEnabled,toastEnabled:e.editAlert.toastEnabled??w.toastEnabled,emailEnabled:e.editAlert.emailEnabled??w.emailEnabled,plainTextEnabled:e.editAlert.plainTextEnabled??w.plainTextEnabled,plainTextEmail:e.editAlert.plainTextEmail??w.plainTextEmail,webhookUrl:e.editAlert.webhookUrl??w.webhookUrl,soundTitle:e.editAlert.soundTitle??w.soundTitle,soundDuration:e.editAlert.soundDuration??w.soundDuration,notificationSchedule:e.editAlert.notificationSchedule??w.notificationSchedule}:w),[P,M]=useState(null),Ce=useMemo(()=>{let o=[{value:"price",label:n("alert_source_price",e.locale)}];for(let i of e.indicatorSources??[])o.push({value:`ind:${i.paneId}:${i.name}:${i.plot}`,label:`${i.shortName} ${i.plot}`});return o},[e.indicatorSources,e.locale]),ke=useMemo(()=>pe.map(o=>({value:o.value,label:n(o.key,e.locale)})),[e.locale]),we=useMemo(()=>ht.map(o=>({value:o.value,label:n(o.key,e.locale)})),[e.locale]),Ne=useMemo(()=>gt.map(o=>({value:o.value,label:n(o.key,e.locale)})),[e.locale]),xe=useMemo(()=>vt.map(o=>({value:o,label:o})),[]),Ee=useMemo(()=>yt.map(o=>({value:o,label:n(o==="once"?"alert_sound_once":"alert_sound_repeating",e.locale)})),[e.locale]),Te=useMemo(()=>pt.map(o=>({value:o.value,label:n(o.key,e.locale)})),[e.locale]),ae=useMemo(()=>s.map(i=>`${i.source.type==="price"?n("alert_source_price",e.locale):`${i.source.shortName??i.source.name} ${i.source.plot}`} ${kt(i.operator,e.locale)} ${i.value}${i.secondValue!==void 0?`\u2013${i.secondValue}`:""}`).join(" AND "),[s,e.locale]),oe=useMemo(()=>`${e.symbol} ${ae}`,[e.symbol,ae]),ne=p||oe,le=St(P?.webhookUrl??x.webhookUrl),Pe=useMemo(()=>{let o=P??x,i=[];return o.notificationEnabled&&i.push(n("alert_notif_app",e.locale)),o.toastEnabled&&i.push(n("alert_notif_toast",e.locale)),o.soundEnabled&&i.push(n("alert_notif_sound",e.locale)),o.emailEnabled&&i.push(n("alert_notif_email",e.locale)),o.webhookUrl&&i.push(n("alert_notif_webhook",e.locale)),o.plainTextEnabled&&i.push(n("alert_notif_plaintext",e.locale)),i.length>0?i.join(", "):n("alert_notif_none",e.locale)},[x,P,e.locale]),W=useMemo(()=>s.every(o=>isFinite(o.value)&&o.value>0)&&s.length>0&&s.every(o=>o.operator!=="is_between"||o.secondValue!==void 0&&isFinite(o.secondValue)),[s]);function D(o){M(i=>({...i??x,...o}));}function $(o){M(i=>{let S={...i??x};return S[o]=!S[o],S});}function J(o,i){m(C=>C.map(S=>S.id===o?{...S,...i}:S)),f("editing"),H(null);}function Ae(){m(o=>[...o,{id:ye(),source:{type:"price"},operator:"crosses_above",value:e.currentPrice??0}]);}function Le(o){m(i=>i.length>1?i.filter(C=>C.id!==o):i);}function Re(o){if(o==="price")return {type:"price"};let i=o.split(":");if(i[0]==="ind"&&i.length>=4){let[,C,S,re]=i,Ue=e.indicatorSources?.find(q=>q.paneId===C&&q.name===S&&q.plot===re);return {type:"indicator",paneId:C,name:S,plot:re,shortName:Ue?.shortName??S}}return {type:"price"}}let ie=useCallback(()=>{if(!W){f("invalid"),H(n("alert_invalid_condition",e.locale));return}f("submitting"),H(null);let o=Ct(u),i=P??x,C={symbol:e.symbol,conditions:s.map(S=>({...S,source:S.source})),price:s[0]?.value??0,condition:s[0]?.operator??"crosses_above",note:e.editAlert?.note,timeframe:e.timeframe,frequency:b,soundEnabled:i.soundEnabled,notificationEnabled:i.notificationEnabled,webhookUrl:i.webhookUrl||void 0,expiration:o,messageTemplate:p||void 0,emailEnabled:i.emailEnabled,plainTextEnabled:i.plainTextEnabled,plainTextEmail:i.plainTextEmail||void 0,toastEnabled:i.toastEnabled,notificationSchedule:i.notificationSchedule,soundTitle:i.soundTitle,soundDuration:i.soundDuration};try{l&&e.editAlert?a$1.update(e.editAlert.id,C):a$1.add(C),f("success"),setTimeout(()=>e.onClose(),400);}catch{f("error"),H(n("alert_quota_exceeded",e.locale));}},[W,s,u,l,a$1,p,x,P,e,b]),De=()=>{M({...x}),T("notifications");},Ie=()=>{P&&Se(P),M(null),T("form");},z=()=>{M(null),T("form");},Me=h==="notifications"?jsx("p",{id:"astroneum-alert-title",className:"modal-card-title",children:n("alert_notifications",e.locale)}):jsxs("div",{className:"alert-header-content",children:[jsx("span",{className:"alert-header-prefix",children:n("alert_create_on",e.locale)}),jsxs("div",{className:"alert-symbol-pill",onClick:()=>e.onSymbolChange?.(e.symbol),children:[jsx("img",{src:wt(e.symbol),alt:"",className:"alert-symbol-logo",crossOrigin:"anonymous",onError:o=>{o.target.style.display="none";}}),jsx("span",{className:"alert-symbol-ticker",children:e.symbol}),e.onSymbolChange&&jsx("svg",{width:"12",height:"12",viewBox:"0 0 18 18",fill:"currentColor",className:"alert-symbol-caret",children:jsx("path",{d:"M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"})})]})]}),$e=h==="notifications"?[{children:n("cancel",e.locale),onClick:z,className:"is-small is-gray"},{children:n("alert_apply",e.locale),onClick:Ie,className:"is-small is-primary"}]:[{children:n("cancel",e.locale),onClick:e.onClose,className:"is-small is-gray"},{children:I==="submitting"?l?n("alert_saving",e.locale):n("alert_submitting",e.locale):l?n("alert_save",e.locale):n("alert_create_button",e.locale),onClick:ie,disabled:!W||I==="submitting",className:"is-small is-primary"}],y=P??x;return jsx(F,{width:440,headerContent:Me,onBack:h==="notifications"?z:void 0,onEscape:h==="notifications"?z:void 0,buttons:$e,onClose:e.onClose,initialFocus:"body",children:jsx("div",{className:"astroneum-alert-modal",children:h==="notifications"?jsxs("div",{className:"alert-notifications",children:[jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:y.notificationEnabled,onChange:()=>$("notificationEnabled"),label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_app",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_app_desc",e.locale)})]}),jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:y.toastEnabled,onChange:()=>$("toastEnabled"),label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_toast",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_toast_desc",e.locale)})]}),jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:y.emailEnabled,onChange:()=>$("emailEnabled"),label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_email",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_email_desc",e.locale)})]}),jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:!!y.webhookUrl.trim(),onChange:o=>{o||D({webhookUrl:""});},label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_webhook",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_webhook_desc",e.locale)}),jsxs("div",{className:"alert-notif-expander",children:[jsx(L,{className:`alert-webhook-url alert-webhook-url-${le}`,placeholder:"https://example.com/alert-hook",value:y.webhookUrl,disabled:!y.webhookUrl.trim()&&!y.webhookUrl,onChange:o=>D({webhookUrl:String(o)})}),le==="invalid"&&jsx("div",{className:"alert-webhook-validation alert-webhook-validation-invalid",children:n("alert_webhook_invalid",e.locale)})]})]}),jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:y.soundEnabled,onChange:()=>$("soundEnabled"),label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_sound",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_sound_desc",e.locale)}),y.soundEnabled&&jsxs("div",{className:"alert-notif-expander alert-sound-selects",children:[jsx(E,{options:xe,value:y.soundTitle,onChange:o=>D({soundTitle:o})}),jsx(E,{options:Ee,value:y.soundDuration,onChange:o=>D({soundDuration:o})})]})]}),jsxs("div",{className:"alert-notif-item",children:[jsx(A,{checked:y.plainTextEnabled,onChange:()=>$("plainTextEnabled"),label:jsx("span",{className:"alert-notif-label",children:n("alert_notif_plaintext",e.locale)})}),jsx("div",{className:"alert-notif-desc",children:n("alert_notif_plaintext_desc",e.locale)}),y.plainTextEnabled&&jsx("div",{className:"alert-notif-expander",children:jsx(L,{className:"alert-email-input",placeholder:"alternative@example.com",value:y.plainTextEmail,onChange:o=>D({plainTextEmail:String(o)})})})]}),jsx("div",{className:"alert-separator"}),jsxs("div",{className:"alert-notif-item",children:[jsx("div",{className:"alert-notif-label",children:n("alert_schedule",e.locale)}),jsx("div",{className:"alert-notif-expander",children:jsx(E,{block:true,options:Te,value:y.notificationSchedule.preset,onChange:o=>D({notificationSchedule:{preset:o}})})}),jsx("div",{className:"alert-notif-desc",children:n("alert_schedule_desc",e.locale)})]})]}):jsxs("div",{className:"alert-form",children:[jsxs("fieldset",{className:"alert-fieldset",children:[jsx("legend",{className:"alert-legend",children:n("alert_condition",e.locale)}),s.map(o=>jsxs("div",{className:"alert-condition-stack",children:[jsx(E,{block:true,className:"alert-source-dropdown",options:Ce,value:o.source.type==="price"?"price":`ind:${o.source.paneId}:${o.source.name}:${o.source.plot}`,onChange:i=>J(o.id,{source:Re(i)})}),jsx(E,{block:true,className:"alert-operator-dropdown",options:ke,value:o.operator,onChange:i=>J(o.id,{operator:i})}),jsxs("div",{className:"alert-value-row",children:[jsx("div",{className:"alert-value-type",children:"Value"}),jsx(L,{className:"alert-value-input",precision:8,min:0,placeholder:String(e.currentPrice??0),value:o.value,onChange:i=>J(o.id,{value:parseFloat(String(i))||0})}),o.operator==="is_between"&&jsx(L,{className:"alert-value-input alert-value-second",precision:8,min:0,placeholder:"\\u2014",value:o.secondValue??0,onChange:i=>J(o.id,{secondValue:parseFloat(String(i))||0})})]}),s.length>1&&jsx("button",{className:"alert-cond-remove",onClick:()=>Le(o.id),"aria-label":"Remove condition",title:"Remove",children:"\\u00d7"})]},o.id)),jsxs("button",{className:"alert-add-condition",onClick:Ae,children:[jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",children:jsx("path",{d:"M7 1a1 1 0 0 1 1 1v4h4a1 1 0 1 1 0 2H8v4a1 1 0 1 1-2 0V8H2a1 1 0 1 1 0-2h4V2a1 1 0 0 1 1-1Z"})}),n("alert_add_condition",e.locale)]})]}),jsx("div",{className:"alert-divider"}),jsxs("fieldset",{className:"alert-fieldset",children:[jsx("legend",{className:"alert-legend",children:n("alert_trigger",e.locale)}),jsx(E,{block:true,options:we,value:b,onChange:o=>v(o)})]}),jsxs("fieldset",{className:"alert-fieldset",children:[jsx("legend",{className:"alert-legend",children:n("alert_expiration",e.locale)}),jsx(E,{block:true,options:Ne,value:u,onChange:o=>_(o)})]}),jsxs("fieldset",{className:"alert-fieldset",children:[jsx("legend",{className:"alert-legend",children:n("alert_message",e.locale)}),R?jsxs(Fragment$1,{children:[jsx("textarea",{className:"alert-message-textarea",value:ne,onChange:o=>c(o.target.value),rows:2,spellCheck:false,placeholder:oe}),jsx("button",{className:"alert-message-collapse",onClick:()=>O(false),children:n("alert_message_done",e.locale)})]}):jsxs("button",{className:"alert-summary-row",onClick:()=>O(true),children:[jsx("span",{className:"alert-summary-text",children:ne}),jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",children:jsx("path",{d:"M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"})})]})]}),jsxs("fieldset",{className:"alert-fieldset",children:[jsx("legend",{className:"alert-legend",children:n("alert_notifications",e.locale)}),jsxs("button",{className:"alert-summary-row",onClick:De,children:[jsx("span",{className:"alert-summary-text",children:Pe}),jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"currentColor",children:jsx("path",{d:"M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"})})]})]}),g&&jsx("div",{className:"alert-validation-error",role:"alert",children:g}),I==="error"&&jsx("button",{className:"alert-retry-btn",onClick:ie,children:n("alert_retry",e.locale)})]})})})};var Oa=Nt;
|
|
3
|
+
export{Y as d,A as e,Q as f,Ye as g,F as h,ot as i,L as j,rt as k,Tt as l,Pt as m,At as n,n as o,Mt as p,$t as q,X as r,Da as s,Oa as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var h="astroneum-watchlists";function m(){return Math.random().toString(36).slice(2,10)+Date.now().toString(36)}var c=class o{static _instance;_lists=[];_listeners=new Set;constructor(){this._load();}static getInstance(){return o._instance||(o._instance=new o),o._instance}onChange(t){return this._listeners.add(t),()=>{this._listeners.delete(t);}}getLists(){return this._lists}createList(t){let s={id:m(),name:t.trim()||"Watchlist",symbols:[]};return this._lists.push(s),this._persist(),s}deleteList(t){this._lists=this._lists.filter(s=>s.id!==t),this._persist();}renameList(t,s){let i=this._find(t);i&&(i.name=s.trim()||i.name,this._persist());}reorderLists(t,s){if(t===s||t<0||s<0||t>=this._lists.length||s>=this._lists.length)return;let[i]=this._lists.splice(t,1);this._lists.splice(s,0,i),this._persist();}getSymbols(t){return this._find(t)?.symbols??[]}addSymbol(t,s){let i=this._find(t);i&&(i.symbols.some(e=>e.ticker===s.ticker)||(i.symbols.push(this._storedSymbol(s)),this._persist()));}addSymbolFromInfo(t,s){this.addSymbol(t,{ticker:s.ticker,name:s.name,shortName:s.shortName,exchange:s.exchange,pricePrecision:s.pricePrecision,volumePrecision:s.volumePrecision,logo:s.logo,group:typeof s.group=="string"?s.group:void 0});}removeSymbol(t,s){let i=this._find(t);i&&(i.symbols=i.symbols.filter(e=>e.ticker!==s),this._persist());}reorderSymbols(t,s,i){let e=this._find(t);if(!e||s===i||s<0||i<0||s>=e.symbols.length||i>=e.symbols.length)return;let[r]=e.symbols.splice(s,1);e.symbols.splice(i,0,r),this._persist();}moveSymbol(t,s,i,e){let r=this._find(t),n=this._find(s),a=r?.symbols.findIndex(l=>l.ticker===i)??-1;if(!r||!n||a<0||n.symbols.some(l=>l.ticker===i))return;let[g]=r.symbols.splice(a,1),p=Math.max(0,Math.min(e??n.symbols.length,n.symbols.length));n.symbols.splice(p,0,g),this._persist();}setSort(t,s,i){let e=this._find(t);e&&(e.sort=i?{column:s,direction:i}:void 0,this._persist());}setColumns(t,s){let i=this._find(t);i&&(i.columns=[...new Set(s)],this._persist());}setColor(t,s){let i=this._find(t);i&&(i.color=s,this._persist());}updateQuotes(t){if(t.length===0)return;let s=new Map(t.map(e=>[e.ticker,e])),i=false;for(let e of this._lists)for(let r of e.symbols){let n=s.get(r.ticker);n&&(r.lastPrice=n.last,r.change=n.change,r.changePercent=n.changePercent,r.volume=n.volume,r.open=n.open,r.high=n.high,r.low=n.low,i=true);}i&&this._emit();}_find(t){return this._lists.find(s=>s.id===t)}_storedSymbol(t){return {ticker:t.ticker,name:t.name,shortName:t.shortName,exchange:t.exchange,pricePrecision:t.pricePrecision,volumePrecision:t.volumePrecision,logo:t.logo,group:t.group}}_emit(){this._listeners.forEach(t=>{t(this._lists.map(s=>({...s,symbols:s.symbols.map(i=>({...i}))})));});}_persist(){try{let t=this._lists.map(s=>({...s,symbols:s.symbols.map(i=>this._storedSymbol(i))}));localStorage.setItem(h,JSON.stringify(t));}catch{}this._emit();}_load(){try{let t=localStorage.getItem(h);if(t){let s=JSON.parse(t);Array.isArray(s)&&(this._lists=s.filter(i=>i&&typeof i.id=="string"&&typeof i.name=="string").map(i=>({...i,symbols:Array.isArray(i.symbols)?i.symbols.filter(e=>e&&typeof e.ticker=="string").map(e=>this._storedSymbol(e)):[]})));}}catch{}this._lists.length===0&&this._lists.push({id:m(),name:"Watchlist",symbols:[]});}},u=c;export{u as a};
|