@sheetxl/react 0.7.21 → 0.7.22
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/browser/cjs/{KLgpeikeRSDp4tUK.cjs → DE4tB6-rHLjtcP1D.cjs} +1 -1
- package/browser/cjs/{n4OQZCE7fVxRfX1r.cjs → DfFvH5gp0fyrdVBe.cjs} +1 -1
- package/browser/cjs/{Be13sRyTTTUvNIit.cjs → IsZqO9D9KfIS8rJK.cjs} +1 -1
- package/browser/cjs/index.cjs +11 -11
- package/browser/esm/{ClLcB3xHul5RfTMr.mjs → B-FEg36883DAwV11.mjs} +1 -1
- package/browser/esm/{Mz1Nj2KbO5FcE969.mjs → C07OMiF-GZT09DE8.mjs} +1 -1
- package/browser/esm/{EUZRpu3SnHayUDBu.mjs → DpetxHCqcdvCcpAe.mjs} +1 -1
- package/browser/esm/index.mjs +428 -431
- package/node/esm/{sKvpUJVdmYl8r9f6.mjs → BzmGjDsMnAeW7Hwa.mjs} +1 -1
- package/node/esm/index.mjs +1339 -1342
- package/package.json +5 -5
- package/types/index.d.ts +32 -80
package/browser/esm/index.mjs
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._TaskPaneArea_6dmgk_5{position:absolute;height:100%;width:100%;display:flex;flex-direction:row}._TaskPaneTitle_6dmgk_13{display:flex;box-sizing:border-box;flex:1 1 0;flex-direction:row;align-items:center;font-size:1.25rem;height:100%;width:100%;padding:8px 16px;border-bottom:solid rgba(0,0,0,.2) 1px}._TaskPaneTitle_6dmgk_13 .title{opacity:.87}._TaskPaneTitle_6dmgk_13.focused .title{opacity:1}._TaskPaneFrame_6dmgk_36{display:flex;position:relative;flex-direction:column;width:100%;box-sizing:border-box;flex:1 1 0;min-height:0;align-items:stretch;justify-content:stretch;margin-bottom:4px;border-radius:4px;overflow:hidden}._TaskPaneStrip_6dmgk_52{display:flex;flex-direction:column;gap:4px;margin-top:4px;margin-left:2px}._TaskPaneStripItem_6dmgk_60{display:flex;flex-direction:row;align-items:center;padding:4px;border-radius:4px;border:grey solid 1px}._TaskPaneStripItem_6dmgk_60.selected{font-weight:700}._sheet-scrollbar_104cg_1{margin-left:2px;margin-bottom:1px;align-items:center}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { FormulaError as Jr, NumberFormat as Yt, ICell as Xt, IBorder as It, ITextFrame as ye, GeomUtils as Dt, ScalarType as Bn, IFont as ct, IRange as Se, DateUtils as go, LicenseManager as Qr, IColor as el, AutoFill as tl, FontUtils as fr, ISheetView as en, Color as ei, IFill as so, RangeClipboardItem as nl, ExternalRangeClipboardItem as ol, TextUtils as nr, IAnchored as an, CoordUtils as rl, ThemeCollection as il } from "@sheetxl/sdk";
|
|
3
3
|
import { LicenseManager as Vc } from "@sheetxl/sdk";
|
|
4
|
-
import { ReactUtils as it, useImperativeElement as $t, useCallbackRef as te, KeyCodes as Nt, SimpleCommand as Ze, Command as Q, KeyModifiers as ne, CommandGroup as bo, useCopyPaste as ti, DynamicIcon as jo, useNotifier as Un, usePersistenceState as Vo, useEditMode as cn, useGlobalClipboard as ll, NotifierType as or, useCommands as ni, ScrollbarOrientation as Fn, VirtualScrollbar as al, MouseButtonCodes as oi, ToolTipPlacement as En, HorizontalAlignment as sl, ScrollPane as cl, useFullscreenPortal as dl, defaultCreateScrollStartButton as ul, defaultCreateScrollEndButton as gl, defaultCreateScrollEdgeButton as hl, ScrollUtils as vr } from "@sheetxl/utils-react";
|
|
5
|
-
export * from "@sheetxl/utils-react";
|
|
6
4
|
import { jsx as m, jsxs as Qe, Fragment as Sn } from "react/jsx-runtime";
|
|
7
|
-
import { AnchorLocation as qt, CommonUtils as et, TypesUtils as Hn, CoordUtils as xt, ExpectedError as
|
|
5
|
+
import { AnchorLocation as qt, CommonUtils as et, TypesUtils as Hn, CoordUtils as xt, ExpectedError as vr, Notifier as ll } from "@sheetxl/utils";
|
|
6
|
+
import { ReactUtils as it, useImperativeElement as $t, useCallbackRef as te, KeyCodes as Nt, SimpleCommand as Ze, Command as Q, KeyModifiers as ne, CommandGroup as bo, useCopyPaste as ti, DynamicIcon as jo, useNotifier as Un, usePersistenceState as Vo, useEditMode as cn, useGlobalClipboard as al, NotifierType as or, useCommands as ni, ScrollbarOrientation as zn, VirtualScrollbar as sl, MouseButtonCodes as oi, ToolTipPlacement as En, HorizontalAlignment as cl, ScrollPane as dl, useFullscreenPortal as ul, defaultCreateScrollStartButton as gl, defaultCreateScrollEndButton as hl, defaultCreateScrollEdgeButton as ml, ScrollUtils as wr } from "@sheetxl/utils-react";
|
|
8
7
|
import Je, { memo as gt, useMemo as fe, useState as Ce, forwardRef as pt, useRef as xe, useEffect as be, useLayoutEffect as Ot, useCallback as Xe, version as pl, createContext as dn, useContext as Kt, useReducer as Jt, Suspense as ri, createElement as fl, cloneElement as vl, useImperativeHandle as wl } from "react";
|
|
9
8
|
import { STANDARD_KEY_CHARS as yl, useSelection as ii, useHeaderSelection as bl, HeaderRenderer as Cl, Grid as li, HeaderDivider as ql, SELECTION_CLIP_INSETS as Ko, defaultSelectionRenderer as Sl, useKeyboardEditorOverlay as xl, Selection as ai, SVGLine as no } from "@sheetxl/grid-react";
|
|
10
9
|
import { unstable_batchedUpdates as oo, createPortal as si } from "react-dom";
|
|
11
10
|
/**
|
|
12
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
11
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.22
|
|
13
12
|
*
|
|
14
13
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
14
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -30,7 +29,7 @@ const yr = gt((e) => {
|
|
|
30
29
|
u?.(x, o), x.preventDefault();
|
|
31
30
|
}, ...l, children: m("svg", { width: "" + 15 * r, height: "" + 15 * r, viewBox: "0 0 15 15", style: { fill: `var(${S && !i ? "--sxl-app-color-primary-dark" : "--sxl-app-color-button-text"}, grey)`, opacity: i ? 0.6 : 1 }, children: m("path", { d: p }) }) });
|
|
32
31
|
}, Rl = (e) => {
|
|
33
|
-
const { value: t, coords: n, bounds: r, children: i, style: o, range: u, zoom: c = 1, view: l, bodyStyle: p, normalStyle: S, showFormulas: f, showZeros: g, docTheme: x, onLinkMouseDown: k, onFilterButtonMouseDown: E, propsFilterButton: A, renderFilterButton: Z = kl, ...V } = e, v = r.height / c,
|
|
32
|
+
const { value: t, coords: n, bounds: r, children: i, style: o, range: u, zoom: c = 1, view: l, bodyStyle: p, normalStyle: S, showFormulas: f, showZeros: g, docTheme: x, onLinkMouseDown: k, onFilterButtonMouseDown: E, propsFilterButton: A, renderFilterButton: Z = kl, ...V } = e, v = r.height / c, F = r.width / c, h = t, R = h.getValue(), b = t.getStyle(), G = p?.darkMode ?? !1;
|
|
34
33
|
let T, N;
|
|
35
34
|
const W = R && R.isFormulaError, ve = W && R instanceof Jr.Parse;
|
|
36
35
|
let j, _ = f || ve;
|
|
@@ -41,7 +40,7 @@ const yr = gt((e) => {
|
|
|
41
40
|
}
|
|
42
41
|
else T = h.getNumberFormat();
|
|
43
42
|
_ || (j = h.getTextOverflow());
|
|
44
|
-
const D = j ? j.colBounds.width + j.leftOffset + j.rightOffset :
|
|
43
|
+
const D = j ? j.colBounds.width + j.leftOffset + j.rightOffset : F, K = j ? j.anchorBounds.x - j.leftOffset : 0, y = j ? j.anchorBounds.width : F, C = j ? j.anchorBounds.x : 0;
|
|
45
44
|
let oe, le = h.getRenderHorizontalAlignment();
|
|
46
45
|
T && (oe = T?.formattedRuns, N = oe?.runs[0]?.text ?? T.displayText);
|
|
47
46
|
const Me = h.getCalcStatus() === Xt.CalcStatus.Pending;
|
|
@@ -52,10 +51,10 @@ const yr = gt((e) => {
|
|
|
52
51
|
const w = b.getBorder().getBottom();
|
|
53
52
|
!w.isNone() && It.BuiltInDefinitions.get(w.getStyle()).width > 1 && (Oe = 1);
|
|
54
53
|
}
|
|
55
|
-
let
|
|
56
|
-
if (
|
|
57
|
-
const { backgroundPosition: ie, ...w } = We, L = ie ?? 0, q = l?.getScrollTopLeft(),
|
|
58
|
-
(ie !== void 0 || $e || Oe ||
|
|
54
|
+
let ze = null;
|
|
55
|
+
if (F !== y || $e || Oe || typeof We?.backgroundPosition == "number") {
|
|
56
|
+
const { backgroundPosition: ie, ...w } = We, L = ie ?? 0, q = l?.getScrollTopLeft(), z = L ? -(r.x + (q.left ?? 0)) % L : 0, ce = L ? -(r.y + (q.top ?? 0)) % L : 0;
|
|
57
|
+
(ie !== void 0 || $e || Oe || F !== y) && (Object.keys(w).length === 1 && w.background === "none" || (We = null, ze = m("div", { className: "fill", style: { marginLeft: `${z}px`, marginTop: `${ce}px`, left: C * c, width: it.boundPixel(y * c - z + 1 + $e), height: it.boundPixel(r.height - ce + 1 + Oe), ...w } }, "background")));
|
|
59
58
|
}
|
|
60
59
|
let Ee = null;
|
|
61
60
|
const ge = h.getComments(), P = h.getWarnings(), Le = h.getErrors();
|
|
@@ -67,10 +66,10 @@ const yr = gt((e) => {
|
|
|
67
66
|
let O = T?.conditionalColor;
|
|
68
67
|
const $ = b.getAlignment(), he = $.getHorizontal() === ye.HorizontalAlignment.Fill, de = $.getHorizontal() === ye.HorizontalAlignment.CenterContinuous || he, me = de || _ ? 0 : $.getRotation(), Ie = h.getInsets(), ae = Ie.top + Ie.bottom;
|
|
69
68
|
let Re = Ie.left, s = Ie.right;
|
|
70
|
-
const Ve = { ...o, left: o.left - 1, top: o.top - 1, width: o.width + 1 + $e, height: o.height + 1 + Oe }, Ue = h.getColumnFilter(),
|
|
69
|
+
const Ve = { ...o, left: o.left - 1, top: o.top - 1, width: o.width + 1 + $e, height: o.height + 1 + Oe }, Ue = h.getColumnFilter(), Fe = Ue && !Ue?.hasHiddenButton();
|
|
71
70
|
let a = null;
|
|
72
71
|
Me && (a = Qe("div", { className: "slider", children: [m("div", { className: "line" }), m("div", { className: "subline inc" })] }, "pending"));
|
|
73
|
-
const I = !(Me ||
|
|
72
|
+
const I = !(Me || Fe || ze || i || Ee || oe?.runs.length > 1 || j || me % 360 != 0);
|
|
74
73
|
We?.background === "none" && (We = null);
|
|
75
74
|
let H = de || !(!j || !(j.rightIndex > 0 || j.leftIndex > 0 || j.colSpan > 1));
|
|
76
75
|
if (!H) {
|
|
@@ -80,7 +79,7 @@ const yr = gt((e) => {
|
|
|
80
79
|
const d = { ...We, ...Ve, pointerEvents: k ? "auto" : void 0 };
|
|
81
80
|
if (!et.isEmpty(N) || !et.isEmpty(T?.repeatPlaceholder)) {
|
|
82
81
|
const ie = T?.canWrap ?? !1;
|
|
83
|
-
let w = null, L = null, q = null,
|
|
82
|
+
let w = null, L = null, q = null, z = [], ce = !0;
|
|
84
83
|
g || _ || R !== 0 || (ce = !1);
|
|
85
84
|
const se = h.getTextFrame(_);
|
|
86
85
|
if (ce && se) {
|
|
@@ -162,7 +161,7 @@ const yr = gt((e) => {
|
|
|
162
161
|
const tt = (dt, St, Bt, Ht, Rt, Et, Vt, Ro, Rn, jn = null) => {
|
|
163
162
|
let gn, hn = at.width;
|
|
164
163
|
ke === ye.HorizontalAlignment.Justify ? (hn = Rt, De || (gn = "justify")) : ke === ye.HorizontalAlignment.Distributed && (hn = Rt, gn = De || dt.text.split(" ").length - 1 == 0 ? "center" : "justify");
|
|
165
|
-
const { style: Qt, className:
|
|
164
|
+
const { style: Qt, className: Ft, ...Kn } = jn;
|
|
166
165
|
let mn = dt.text;
|
|
167
166
|
if (ke === ye.HorizontalAlignment.Fill && T?.repeatChars.length === 0) {
|
|
168
167
|
const Tt = Math.max(1, Math.floor((at?.width ?? 0) / (Vt?.width ?? 1)));
|
|
@@ -179,20 +178,20 @@ const yr = gt((e) => {
|
|
|
179
178
|
const Mn = vt + St;
|
|
180
179
|
let pn = Ie.top + at.y + 0;
|
|
181
180
|
if (Tn && (pn += Rn - rt), Et) {
|
|
182
|
-
const Tt = (Vt.x + Mn) * c + 1,
|
|
183
|
-
|
|
181
|
+
const Tt = (Vt.x + Mn) * c + 1, zt = (Vt.y + pn) * c + 1;
|
|
182
|
+
zt < 0 ? ht.marginTop = zt : ht.paddingTop = zt, Tt < 0 ? (ht.width = (Qt?.width ?? 0) - Tt, ht.left = (Qt?.left ?? 0) + Tt) : ht.paddingLeft = Tt, ht.paddingRight = Math.max(0, (Qt?.width ?? 0) - hn * c - Tt), ht.paddingBottom = Math.max(0, (Qt?.height ?? 0) - at.height * c - zt), ht.height = (Qt?.height ?? 0) + (zt < 0 ? -zt : 0), (zt < 0 || Tt < 0) && (ht.clipPath = `inset(${zt < 0 ? -zt : 0}px 0px 0px ${Tt < 0 ? 1 - Tt : 0}px)`);
|
|
184
183
|
} else if (ht.left = (Vt.x + Mn) * c + 1, ht.top = (Vt.y + pn) * c + 1, ht.width = Vt.width * c, ht.height = Vt.height * c, me && !ie) {
|
|
185
184
|
ht.left = (Vt.x + St) * c + 1, ht.top = (Vt.y + (at.y + 0)) * c + 1;
|
|
186
|
-
const Tt = Dt.centerPoint({ x: vt + St, y: 0, width: dt.width, height: at.height }),
|
|
185
|
+
const Tt = Dt.centerPoint({ x: vt + St, y: 0, width: dt.width, height: at.height }), zt = Dt.centerPoint({ x: vt, y: 0, width: Rt, height: at.height }), Xn = Dt.rotatePoints([Tt], me, zt), Dn = { x: Xn[0].x - Tt.x, y: Xn[0].y - Tt.y };
|
|
187
186
|
ht.left = ht.left + Dn.x * c, ht.top = ht.top + Dn.y * c;
|
|
188
187
|
const rn = { ...at, x: vt, y: Ie.top, width: at.width + (Re + s) }, Mo = Dt.boundsToPoints(rn), Do = Dt.rotatePoints(Mo, me), Jn = Dt.minBoundingRect(Do);
|
|
189
188
|
rn.width = Jn.width, rn.height = Jn.height;
|
|
190
|
-
const fn = Dt.centerPoint(rn), Qn = { x: fn.x -
|
|
189
|
+
const fn = Dt.centerPoint(rn), Qn = { x: fn.x - zt.x, y: fn.y - zt.y };
|
|
191
190
|
ht.left = ht.left + Qn.x * c, ht.top = ht.top + Qn.y * c;
|
|
192
191
|
}
|
|
193
192
|
ht.lineHeight = Zt * c + "px";
|
|
194
193
|
const Yn = I ? void 0 : "text-line";
|
|
195
|
-
|
|
194
|
+
z.push(m("div", { className: Ft ? `${Ft} ${Yn}` : Yn, style: ht, ...Kn, children: mn }, `text-${at.y}-${Ht}-${Bt}`));
|
|
196
195
|
};
|
|
197
196
|
if ($.getOverflow() === ye.Overflow.Shrink && qe > 0) {
|
|
198
197
|
let dt = w?.width ?? 0, St = 0;
|
|
@@ -218,25 +217,25 @@ const yr = gt((e) => {
|
|
|
218
217
|
_e(Pe, Ge, rt, se.lines[0].baseline, De, ke, we === 1 ? oe : null, I && Ge > 0 ? { ...Ne, style: { ...Ne.style, background: void 0 } } : Ne);
|
|
219
218
|
} });
|
|
220
219
|
}
|
|
221
|
-
|
|
220
|
+
z.length > 0 && (ue = z);
|
|
222
221
|
}
|
|
223
222
|
if (I) return ue && ue.length > 0 ? ue : m("div", { style: d, ...V });
|
|
224
223
|
let M = k ? "auto" : Ve.pointerEvents, U = null;
|
|
225
|
-
if (
|
|
224
|
+
if (Fe) {
|
|
226
225
|
const ie = { x: C * c - 1, y: -1, width: y * c + 1, height: v * c + 1 };
|
|
227
226
|
M = "auto", U = Z({ renderBounds: ie, darkMode: G, className: "filter-button", disabled: !h.isEditAllowed(), zoom: c, filter: h.getColumnFilter(), onFilterButtonMouseDown: E, ...A }), U && (U = m("div", { style: { ...ie, position: "absolute", zIndex: 2, display: "flex", alignItems: "end" }, onDoubleClick: (w) => {
|
|
228
227
|
w.stopPropagation(), w.preventDefault();
|
|
229
228
|
}, children: U }, "filterButton"));
|
|
230
229
|
}
|
|
231
230
|
Me && !ue && (ue = m("div", { style: { position: "absolute", left: 0, right: 0, top: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", pointerEvents: "none" }, children: "..." }, "pending-ellipsis"));
|
|
232
|
-
const X = [
|
|
231
|
+
const X = [ze, ue, i, Ee, a, U];
|
|
233
232
|
return m("div", { style: { ...We, ...Ve, pointerEvents: M }, ...V, children: X });
|
|
234
233
|
}, br = { text: "", placeholder: "" }, Cr = (e, t) => {
|
|
235
234
|
if (e.clean().getStyle().getNumberFormat().indexOf("%") === -1) return !1;
|
|
236
235
|
const n = t ?? e.dirty ?? "";
|
|
237
236
|
return n.length === 0 || n.endsWith("%") && !isNaN(parseFloat(n.substring(0, n.length - 1)));
|
|
238
237
|
}, Tl = Object.freeze([Nt.Delete, Nt.Home, Nt.End]), Ml = gt(pt((e, t) => {
|
|
239
|
-
const { editState: n, onStartEdit: r, onChangeEdit: i, onSubmitEdit: o, onCancelEdit: u, onDoneEdit: c, defaultTextStyle: l, useRichStyling: p = !0, bodyStyle: S, activeCoords: f, sheet: g, commands: x, containerBounds: k, setNaturalSize: E, onFocus: A, disabled: Z, style: V, zoom: v = 1, linesVisible:
|
|
238
|
+
const { editState: n, onStartEdit: r, onChangeEdit: i, onSubmitEdit: o, onCancelEdit: u, onDoneEdit: c, defaultTextStyle: l, useRichStyling: p = !0, bodyStyle: S, activeCoords: f, sheet: g, commands: x, containerBounds: k, setNaturalSize: E, onFocus: A, disabled: Z, style: V, zoom: v = 1, linesVisible: F, autoFocus: h = !1, ...R } = e, { height: b = 0, width: G = 0 } = k ?? {}, T = S?.darkMode ?? !1, N = xe(null), [W, ve] = Ce(!1), [j, _] = Ce(null), [D, K] = Ce(() => n);
|
|
240
239
|
be(() => {
|
|
241
240
|
Oe.current = !1, K(n);
|
|
242
241
|
}, [n]);
|
|
@@ -244,7 +243,7 @@ const yr = gt((e) => {
|
|
|
244
243
|
const w = D.clean();
|
|
245
244
|
let L = w.getStyle();
|
|
246
245
|
p || (L = L.createTemporaryStyle({ font: { size: l?.fontSize } }));
|
|
247
|
-
const q = w.getFormula(),
|
|
246
|
+
const q = w.getFormula(), z = L.getAlignment(), ce = q ? ye.HorizontalAlignment.Left : z.getHorizontal(), se = z.getVertical(), qe = z.getOverflow() === ye.Overflow.Wrap || w.getType() === Bn.String && (ce === ye.HorizontalAlignment.Justify || ce === ye.HorizontalAlignment.Distributed || se === ye.VerticalAlignment.Justify || se === ye.VerticalAlignment.Distributed), J = ((Y) => {
|
|
248
247
|
if (!Y) return br;
|
|
249
248
|
const re = Y.clean();
|
|
250
249
|
if (!re) return br;
|
|
@@ -269,7 +268,7 @@ const yr = gt((e) => {
|
|
|
269
268
|
N.current = w?.initialSelection;
|
|
270
269
|
const L = { ...n, editMode: w?.editMode ?? !1 };
|
|
271
270
|
w?.text !== void 0 && (L.dirty = w.text), L.editMode === n.editMode && L.dirty === n.dirty || (K(L), ue?.(L));
|
|
272
|
-
}, submitEdit: () =>
|
|
271
|
+
}, submitEdit: () => ze(), cancelEdit() {
|
|
273
272
|
Ee();
|
|
274
273
|
}, autoFocus() {
|
|
275
274
|
C.current.focus();
|
|
@@ -283,12 +282,12 @@ const yr = gt((e) => {
|
|
|
283
282
|
}, [C.current, j, y.textValue]);
|
|
284
283
|
const le = fe(() => {
|
|
285
284
|
const w = D?.clean(), L = y.style.createTemporaryTextFrame(y.textValue, w?.getType() === Bn.String), q = p ? w.getInsets().right + w.getInsets().left : 0;
|
|
286
|
-
let
|
|
287
|
-
return y.isWrapped && (
|
|
285
|
+
let z = null;
|
|
286
|
+
return y.isWrapped && (z = { width: G - q }), L.layout(z);
|
|
288
287
|
}, [y, G, D, p]), Me = te(() => Math.ceil(le?.lines[0]?.bounds.height), [le]);
|
|
289
288
|
Ot(() => {
|
|
290
289
|
if (!le) return;
|
|
291
|
-
const w = y.style, L = w.getInsets() ?? Hn.EmptyRect, q = p ? L.left + L.right : 0,
|
|
290
|
+
const w = y.style, L = w.getInsets() ?? Hn.EmptyRect, q = p ? L.left + L.right : 0, z = p ? 0.04 * w.getFont().getSize() : 1, ce = Math.round(y.isWrapped ? void 0 : le.bounds.width + q + z), se = Math.round(le.bounds.height);
|
|
292
291
|
E?.({ width: ce, height: se });
|
|
293
292
|
}, [le, E, y, p, D]);
|
|
294
293
|
const ue = te(i, [i]), We = te((w) => {
|
|
@@ -299,7 +298,7 @@ const yr = gt((e) => {
|
|
|
299
298
|
if (D.editMode === w) return;
|
|
300
299
|
const L = { ...D };
|
|
301
300
|
L.editMode = w, K(L), ue?.(L);
|
|
302
|
-
}, [D]), Oe = xe(!1),
|
|
301
|
+
}, [D]), Oe = xe(!1), ze = te(() => {
|
|
303
302
|
if (Oe.current) return !1;
|
|
304
303
|
try {
|
|
305
304
|
o?.(D), c?.(), Oe.current = !0;
|
|
@@ -316,20 +315,20 @@ const yr = gt((e) => {
|
|
|
316
315
|
let pe = 0;
|
|
317
316
|
return Cr(J, J.dirty) && !isNaN(parseFloat(w.key)) ? (J.dirty?.endsWith("%") ? J.dirty = (J.dirty.substring(0, J.dirty.length - 1) ?? "") + w.key + "%" : J.dirty = (J.dirty ?? "") + w.key + "%", pe = J.dirty.length - 1) : w.nativeEvent.key === "Backspace" ? (J.dirty = "", pe = J.dirty.length) : (J.dirty = (J.dirty ?? "") + w.key, pe = J.dirty.length), C.current.value = J?.dirty, N.current = { start: pe, end: pe, direction: "forward" }, C.current?.setSelectionRange(pe, pe, "forward"), K(J), ue?.(J), void w.preventDefault();
|
|
318
317
|
}
|
|
319
|
-
const L = w.nativeEvent.ctrlKey, q = w.nativeEvent.shiftKey,
|
|
318
|
+
const L = w.nativeEvent.ctrlKey, q = w.nativeEvent.shiftKey, z = w.nativeEvent.altKey, ce = w.nativeEvent.metaKey;
|
|
320
319
|
if (L && w.key === "z" && w.stopPropagation(), w.which === Nt.Escape) return w.preventDefault(), void Ee();
|
|
321
320
|
if (w.which === Nt.F2) return $e(!0), void w.preventDefault();
|
|
322
321
|
const se = w.target;
|
|
323
322
|
if (w.key === "%" && se.selectionStart === se.selectionEnd && se.value[se.selectionStart] === "%" && D?.clean().getStyle().numberFormat.includes("%")) return _({ start: se.selectionStart + 1, end: se.selectionEnd + 1, direction: se.selectionDirection }), void w.preventDefault();
|
|
324
323
|
if (w.which === Nt.Enter) {
|
|
325
|
-
if (w.preventDefault(), ce ||
|
|
324
|
+
if (w.preventDefault(), ce || z) {
|
|
326
325
|
const J = y.textValue.substring(0, se.selectionStart) + `
|
|
327
326
|
` + y.textValue.substring(se.selectionEnd);
|
|
328
327
|
return We(J), void _({ start: se.selectionStart + 1, end: se.selectionStart + 1, direction: se.selectionDirection });
|
|
329
328
|
}
|
|
330
|
-
return void (
|
|
329
|
+
return void (ze() && g.getSelection().traverse(Se.Orientation.Column, q));
|
|
331
330
|
}
|
|
332
|
-
if (w.which === Nt.Tab) return w.preventDefault(), void (
|
|
331
|
+
if (w.which === Nt.Tab) return w.preventDefault(), void (ze() && g.getSelection().traverse(Se.Orientation.Row, q));
|
|
333
332
|
let qe = null;
|
|
334
333
|
switch (w.which) {
|
|
335
334
|
case Nt.Left:
|
|
@@ -344,8 +343,8 @@ const yr = gt((e) => {
|
|
|
344
343
|
case Nt.Down:
|
|
345
344
|
qe = Se.Direction.Down;
|
|
346
345
|
}
|
|
347
|
-
if (qe && !(L || q ||
|
|
348
|
-
return void
|
|
346
|
+
if (qe && !(L || q || z || ce) && !D.editMode)
|
|
347
|
+
return void ze();
|
|
349
348
|
D.editMode && (qe || Tl.includes(w.which)) && w.stopPropagation();
|
|
350
349
|
}, [D, g, y]), P = Xe(() => {
|
|
351
350
|
C.current?.focus(), setTimeout(() => {
|
|
@@ -382,8 +381,8 @@ const yr = gt((e) => {
|
|
|
382
381
|
} }), [C.current]), de = fe(() => ({ element: () => C.current, doPaste: async (w, L) => {
|
|
383
382
|
const q = await w.toText?.();
|
|
384
383
|
if (!q) return !0;
|
|
385
|
-
const
|
|
386
|
-
return We(
|
|
384
|
+
const z = C.current.value.substring(0, C.current.selectionStart) + q + C.current.value.substring(C.current.selectionEnd, C.current.value.length);
|
|
385
|
+
return We(z), _({ start: C.current.selectionStart + q.length, end: C.current.selectionStart + q.length, direction: "forward" }), !0;
|
|
387
386
|
} }), [C.current]), me = fe(() => ({ contains: (w) => C.current?.contains(w) || !1, focus() {
|
|
388
387
|
C.current.focus();
|
|
389
388
|
} }), []), Ie = fe(() => [new Ze("selectAll", me, { label: "Select All", description: "Select all of the text in cell.", shortcut: { key: "a", modifiers: [ne.Ctrl] } }, P), new Ze("startEditValueAbove", me, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: '"', modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, Be), new Ze("startEditCurrentTime", me, { label: "Current Time", description: "Insert the current time.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl, ne.Shift] } }, O), new Ze("startEditCurrentDate", me, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, $), new Q("relativeReferencesToggle", me, { label: "Toggle References", description: "Toggles cell references from relative to absolute, to partially absolute, back to relative again.", shortcut: { key: "F4" } }, Le), new Q("toggleEditorFocus", me, { label: "Toggle Editor Focus", description: "Moves focus between editors such as formula editor and inline editor.", shortcut: { key: "F2", modifiers: [ne.Ctrl] } })], []), ae = fe(() => {
|
|
@@ -402,16 +401,16 @@ const yr = gt((e) => {
|
|
|
402
401
|
ve(!0), ae?.activate();
|
|
403
402
|
const L = N.current;
|
|
404
403
|
if (L !== !1) {
|
|
405
|
-
let q,
|
|
404
|
+
let q, z;
|
|
406
405
|
const ce = C.current.value;
|
|
407
|
-
Cr(D, ce) && (q = ce.length - 1,
|
|
406
|
+
Cr(D, ce) && (q = ce.length - 1, z = ce.length - 1), q = L?.start ?? q ?? ce.length, z = L?.end ?? z ?? ce.length, N.current = !1, _({ start: q, end: z, direction: "forward" });
|
|
408
407
|
}
|
|
409
408
|
A?.(w);
|
|
410
|
-
}, [A, D]),
|
|
411
|
-
let a =
|
|
412
|
-
const I =
|
|
413
|
-
let d, M =
|
|
414
|
-
y.frameVertAlign === ye.VerticalAlignment.Center ? M = Math.max(0, (b - (
|
|
409
|
+
}, [A, D]), Fe = y.insets;
|
|
410
|
+
let a = Fe.left + 1;
|
|
411
|
+
const I = Fe.left + Fe.right + 2 - 1, H = le?.bounds.height ?? 0;
|
|
412
|
+
let d, M = Fe.top;
|
|
413
|
+
y.frameVertAlign === ye.VerticalAlignment.Center ? M = Math.max(0, (b - (Fe.top + Fe.bottom) - H) / 2) : y.frameVertAlign === ye.VerticalAlignment.Bottom && (M = Math.max(0, b - (Fe.top + Fe.bottom) - H)), F !== void 0 && le?.lines[0]?.bounds && (d = le?.lines[0]?.bounds.height * F);
|
|
415
414
|
const U = y.style.getFont();
|
|
416
415
|
let X = U.getSize();
|
|
417
416
|
U.isSuperSub() && (X *= U.getSuperSubScale()), X *= ct.getDeviceScale() * v;
|
|
@@ -433,7 +432,7 @@ const yr = gt((e) => {
|
|
|
433
432
|
let v = null;
|
|
434
433
|
if (V && n > 0) {
|
|
435
434
|
v = "";
|
|
436
|
-
for (let
|
|
435
|
+
for (let F = 0; F < V.length; F++) v += V[F], F < V.length - 1 && (v += ",");
|
|
437
436
|
}
|
|
438
437
|
return v;
|
|
439
438
|
}, g = f(r);
|
|
@@ -449,8 +448,8 @@ const yr = gt((e) => {
|
|
|
449
448
|
if (u) {
|
|
450
449
|
k = n / 2;
|
|
451
450
|
const V = k + k / 2;
|
|
452
|
-
let v = x,
|
|
453
|
-
|
|
451
|
+
let v = x, F = null;
|
|
452
|
+
F = p ? `M ${it.boundPixel(c + V)} ${it.boundPixel(l)} L ${it.boundPixel(c + V)} ${it.boundPixel(l + E)}` : `M ${it.boundPixel(c)} ${it.boundPixel(l + V)} L ${it.boundPixel(c + E)} ${it.boundPixel(l + V)}`, A = m("path", { strokeWidth: k, strokeDasharray: v, strokeDashoffset: "1", shapeRendering: "crispEdges", d: F, ...S });
|
|
454
453
|
}
|
|
455
454
|
let Z = null;
|
|
456
455
|
return Z = p ? `M ${it.boundPixel(c + k / 2)} ${it.boundPixel(l)} L ${it.boundPixel(c + k / 2)} ${it.boundPixel(l + E)}` : `M ${it.boundPixel(c)} ${it.boundPixel(l + k / 2)} L ${it.boundPixel(c + E)} ${it.boundPixel(l + k / 2)}`, Qe(Sn, { children: [m("path", { strokeWidth: k, strokeDasharray: g, d: Z, ...S }), A] });
|
|
@@ -492,13 +491,13 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
492
491
|
}, [t]), [n, i];
|
|
493
492
|
} : function() {
|
|
494
493
|
return [El, qr];
|
|
495
|
-
},
|
|
494
|
+
}, Fl = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, zl = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, Nl = (e) => {
|
|
496
495
|
const { key: t, points: n, range: r, stroke: i, darkMode: o, forceThinBorder: u = !1, shiftIfWide: c = !1, isVertical: l = !1, intersections: p, layout: S } = e, f = It.BuiltInDefinitions.get(u ? It.StrokeStyle.Thin : i.getStyle());
|
|
497
496
|
if (!f) return null;
|
|
498
497
|
const g = n[0], x = n[1], k = n[2], E = n[3];
|
|
499
498
|
let A = 1 + (l ? E - x : k - g), Z = 0;
|
|
500
499
|
const V = i.getColor().toRGBA(o).toString(), v = f.description.toLowerCase().includes("double");
|
|
501
|
-
let
|
|
500
|
+
let F, h;
|
|
502
501
|
const R = l ? "rowStart" : "colStart", b = l ? "rowEnd" : "colEnd", G = l ? x : g;
|
|
503
502
|
if (p?.length > 0) {
|
|
504
503
|
const ve = p[0];
|
|
@@ -513,21 +512,21 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
513
512
|
if (v) {
|
|
514
513
|
const _ = l ? "colStart" : "rowStart", D = l ? "colEnd" : "rowEnd", K = l ? S?.getRowOffset : S?.getColOffset;
|
|
515
514
|
let y = 0, C = 0;
|
|
516
|
-
|
|
515
|
+
F = [], h = [];
|
|
517
516
|
const oe = p.length;
|
|
518
517
|
for (let le = 0; le < oe; le++) {
|
|
519
518
|
const Me = p[le];
|
|
520
519
|
if (Me.stroke.getStyle() === It.StrokeStyle.Double && K) {
|
|
521
520
|
const ue = K(Me.range[R]) - (G - Z);
|
|
522
|
-
Me.range[_] < r[_] && (
|
|
521
|
+
Me.range[_] < r[_] && (F.push(ue - y), y = ue, F.push(1), y++), Me.range[D] > r[D] && (h.push(ue - C), C = ue, h.push(1), C++);
|
|
523
522
|
}
|
|
524
523
|
}
|
|
525
|
-
|
|
524
|
+
F.length > 0 && y < A && F.push(A - y), h.length > 0 && C < A && h.push(A - C);
|
|
526
525
|
}
|
|
527
526
|
}
|
|
528
527
|
let T = l ? -Math.floor(f.width / 2) : -Z, N = l ? -Z : -Math.floor(f.width / 2);
|
|
529
528
|
const W = c && f.width > 2 ? -1 : 0;
|
|
530
|
-
return m(Al, { offsetX: g + T + W, offsetY: x + N + W, length: A + Z, isVertical: l, stroke: V, width: f.width, dashArray:
|
|
529
|
+
return m(Al, { offsetX: g + T + W, offsetY: x + N + W, length: A + Z, isVertical: l, stroke: V, width: f.width, dashArray: F ?? f.pattern, dashArrayAdditional: h, isDouble: v, isAngled: f.description.toLowerCase().includes("slant") }, t);
|
|
531
530
|
}, di = ({ getBorderAt: e, rendererBorder: t = Nl, getVisibleCells: n, darkMode: r, forceThinBorder: i = !1, defaultColor: o = "black", shiftIfWide: u = !1 }) => {
|
|
532
531
|
const c = te(n, [n]);
|
|
533
532
|
return { renderOverlay: fe(() => (p) => {
|
|
@@ -537,7 +536,7 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
537
536
|
if (f.length === 0) return;
|
|
538
537
|
const g = p.getVisibleColumnOffsets(), x = p.getVisibleRowOffsets();
|
|
539
538
|
let k = [], E = [];
|
|
540
|
-
const A = p.getVisibleColumns(), Z = p.getVisibleRows(), V = [], v = [],
|
|
539
|
+
const A = p.getVisibleColumns(), Z = p.getVisibleRows(), V = [], v = [], F = [], h = (j, _, D, K, y, C, oe) => {
|
|
541
540
|
const le = { index: K, stroke: y, visibleIndex: D, edge: C, length: oe };
|
|
542
541
|
j[_] || (j[_] = []), j[_].length > 0 && j[_][j[_].length - 1]?.index === K ? j[_][j[_].length - 1] = le : j[_].push(le);
|
|
543
542
|
}, R = p.getVisibleRangeCoords(), b = f.length;
|
|
@@ -557,11 +556,11 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
557
556
|
}
|
|
558
557
|
const Me = _.value, ue = e(Me, j);
|
|
559
558
|
if (!ue || ue.isEmpty()) continue;
|
|
560
|
-
const We = ue.getLeft(), $e = ue.getTop(), Oe = ue.getRight(),
|
|
559
|
+
const We = ue.getLeft(), $e = ue.getTop(), Oe = ue.getRight(), ze = ue.getBottom();
|
|
561
560
|
let Ee = 1, ge = 1;
|
|
562
561
|
if (!oe || !le) continue;
|
|
563
562
|
const P = oe.spanIndex, Le = le.spanIndex;
|
|
564
|
-
We.isNone() || h(V, P, Le, C, We, It.Edge.Left, Ee), $e.isNone() || h(v, Le, P, y, $e, It.Edge.Top, ge), Oe.isNone() || h(V, P + ge, Le, C, Oe, It.Edge.Right, Ee),
|
|
563
|
+
We.isNone() || h(V, P, Le, C, We, It.Edge.Left, Ee), $e.isNone() || h(v, Le, P, y, $e, It.Edge.Top, ge), Oe.isNone() || h(V, P + ge, Le, C, Oe, It.Edge.Right, Ee), ze.isNone() || h(v, Le + Ee, P, y, ze, It.Edge.Bottom, ge);
|
|
565
564
|
}
|
|
566
565
|
const G = (j, _, D) => {
|
|
567
566
|
const K = [];
|
|
@@ -587,13 +586,13 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
587
586
|
}
|
|
588
587
|
}
|
|
589
588
|
if (We) continue;
|
|
590
|
-
const $e = ue.stroke?.getColor(), Oe = $e ? $e.toRGBA().toString() : o,
|
|
591
|
-
(
|
|
589
|
+
const $e = ue.stroke?.getColor(), Oe = $e ? $e.toRGBA().toString() : o, ze = ue.stroke.getStyle() + ":" + Oe;
|
|
590
|
+
(ze !== oe?.key || oe && oe.visibleIndex + 1 < ue.visibleIndex) && (oe && K.push(oe), oe = { key: ze, index: _[C] ?? _[C - 1] + 1, visibleIndex: ue.visibleIndex, edge: ue.edge, stroke: ue.stroke, from: ue.index, to: ue.index + ue.length - 1, intersections: [], length: 1 }), oe.to = ue.index + ue.length - 1, oe.visibleIndex = ue.visibleIndex;
|
|
592
591
|
}
|
|
593
592
|
oe && K.push(oe);
|
|
594
593
|
}), K;
|
|
595
594
|
};
|
|
596
|
-
k = k.sort(
|
|
595
|
+
k = k.sort(zl), E = E.sort(Fl);
|
|
597
596
|
const T = G(V, A, !1), N = G(v, Z, !0);
|
|
598
597
|
if (T.length === 0 && N.length === 0) return null;
|
|
599
598
|
const W = N.length;
|
|
@@ -609,16 +608,16 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
609
608
|
const _ = N[j];
|
|
610
609
|
let D = _.stroke;
|
|
611
610
|
const K = `rBorder:${_.index}:${_.from}:${_.to}:${_.edge}`, y = { rowStart: _.index, rowEnd: _.index, colStart: _.from, colEnd: _.to + 1 }, C = p.getLayout(), oe = !1, le = C.getColOffset(y.colStart), Me = C.getRowOffset(y.rowStart), ue = [le, Me, C.getColOffset(y.colEnd), Me];
|
|
612
|
-
|
|
611
|
+
F.push(t({ key: K, points: ue, stroke: D, darkMode: r, forceThinBorder: i, shiftIfWide: u, range: y, intersections: _.intersections, layout: C, isVertical: oe }));
|
|
613
612
|
}
|
|
614
613
|
const ve = T.length;
|
|
615
614
|
for (let j = 0; j < ve; j++) {
|
|
616
615
|
const _ = T[j];
|
|
617
616
|
let D = _.stroke;
|
|
618
617
|
const K = `cBorder:${_.index}:${_.from}:${_.to}:${_.edge}`, y = { rowStart: _.from, rowEnd: _.to + 1, colStart: _.index, colEnd: _.index }, C = p.getLayout(), oe = !0, le = C.getColOffset(y.colStart), Me = [le, C.getRowOffset(y.rowStart), le, C.getRowOffset(y.rowEnd)];
|
|
619
|
-
|
|
618
|
+
F.push(t({ key: K, stroke: D, points: Me, darkMode: r, forceThinBorder: i, shiftIfWide: u, range: y, intersections: _.intersections, layout: C, isVertical: oe }));
|
|
620
619
|
}
|
|
621
|
-
return m("svg", { width: `${S.width}`, height: `${S.height}`, viewBox: `0 0 ${S.width} ${S.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${S.width}px`, height: `${S.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children:
|
|
620
|
+
return m("svg", { width: `${S.width}`, height: `${S.height}`, viewBox: `0 0 ${S.width} ${S.height}`, preserveAspectRatio: "none", shapeRendering: "crispEdges", style: { position: "absolute", left: "0px", top: "0px", width: `${S.width}px`, height: `${S.height}px`, pointerEvents: "none", transitionTimingFunction: "linear", transitionDelay: "0", transitionProperty: "left, top, width, height", willChange: "left, top, width, height, stroke-dashoffset", overflow: "visible" }, children: F }, "borders");
|
|
622
621
|
}, [e, r]) };
|
|
623
622
|
}, Sr = qt.Center, Ll = Object.freeze({ horizontal: !1, vertical: !1 }), xr = Hn.EmptyTopLeft, Pl = (e, t) => xt.EmptyCell, Ol = (e, t) => new Promise((n, r) => {
|
|
624
623
|
r("StaticBorderRenderer does not support scrolling");
|
|
@@ -630,7 +629,7 @@ const bn = ci && window.ResizeObserver !== void 0 ? function() {
|
|
|
630
629
|
D.push({ coords: C, value: C });
|
|
631
630
|
}
|
|
632
631
|
return D;
|
|
633
|
-
}, []), V = Xe((D) => Z, [Z]), { renderOverlay: v } = di({ getVisibleCells: V, getBorderAt: t, darkMode: c, forceThinBorder: l }),
|
|
632
|
+
}, []), V = Xe((D) => Z, [Z]), { renderOverlay: v } = di({ getVisibleCells: V, getBorderAt: t, darkMode: c, forceThinBorder: l }), F = Math.floor(E / u), h = Math.floor(A / o), R = { getColOffset: (D) => Math.ceil(D * F) + 0, getRowOffset: (D) => Math.ceil(D * h) + 0, getColIndex: (D) => Math.floor((D - 0) / F) - 1, getRowIndex: (D) => Math.floor((D - 0) / h) - 1 }, b = { rowStart: 0, colStart: 0, rowEnd: o, colEnd: u }, G = { x: 0, y: 0, width: Math.max(0, E) + 0, height: Math.max(0, A) + 0 }, T = fe(() => {
|
|
634
633
|
const D = {}, K = Math.floor(E / u);
|
|
635
634
|
for (let y = 0; y < u; y++) D[y] = { offset: y * K, size: K, spanIndex: y };
|
|
636
635
|
return D;
|
|
@@ -687,8 +686,8 @@ const Bl = "_sheetxl-sheet_1qeq6_5", Hl = "_viewport-overlay_1qeq6_6", Vl = (e)
|
|
|
687
686
|
}, [l, n]);
|
|
688
687
|
if (l === null || l.isValidFor(o)) return null;
|
|
689
688
|
const k = l.getType(), E = !x && k.endsWith("ity"), A = l.getLicensee(), Z = E ? 1.6 : 1, V = 135 / Z, v = 37 / Z;
|
|
690
|
-
let
|
|
691
|
-
return !k && A?.length > 0 && (
|
|
689
|
+
let F = null;
|
|
690
|
+
return !k && A?.length > 0 && (F = m("div", { style: { opacity: 0.7, fontWeight: "500", fontSize: "16px", textAlign: "left", color: t }, children: A })), m("div", { style: { pointerEvents: "none", display: "flex", flexDirection: "column", overflow: "hidden", ...u }, ...c, children: Qe("div", { style: { position: "relative", display: "flex", flexDirection: "column" }, children: [S ? m(Vl, { style: g }) : m("svg", { width: V, height: v, style: g, children: m("image", { style: { width: V, height: v }, href: "https://www.sheetxl.com/watermark.svg", onError: () => f(!0) }) }), Qe("div", { children: [F, x, m("div", { style: { height: "0px", fontSize: "16px", textAlign: "left", width: "0px", opacity: 0.8, color: r }, children: i })] })] }) });
|
|
692
691
|
}), ut = (e, t, n) => {
|
|
693
692
|
const r = xe(t);
|
|
694
693
|
r.current = t;
|
|
@@ -781,7 +780,7 @@ const Bl = "_sheetxl-sheet_1qeq6_5", Hl = "_viewport-overlay_1qeq6_6", Vl = (e)
|
|
|
781
780
|
}));
|
|
782
781
|
hi.displayName = "TaskPaneTitle";
|
|
783
782
|
const _l = (e) => m(hi, { ...e }), Gl = gt(pt((e, t) => {
|
|
784
|
-
const { children: n, entry: r, close: i, listenerContainer: o, model: u, commands: c, onMounted: l, onUnmounted: p, wrapperPane: S, propsPane: f, renderTaskPanelTitle: g = _l, style: x, className: k, ...E } = e, [A, Z] = Ce(null), [V, v] = Ce(!1),
|
|
783
|
+
const { children: n, entry: r, close: i, listenerContainer: o, model: u, commands: c, onMounted: l, onUnmounted: p, wrapperPane: S, propsPane: f, renderTaskPanelTitle: g = _l, style: x, className: k, ...E } = e, [A, Z] = Ce(null), [V, v] = Ce(!1), F = te(i, [i]), h = xe(null), R = xe(null);
|
|
785
784
|
be(() => (l?.(r), () => {
|
|
786
785
|
p?.(r);
|
|
787
786
|
}), [r]);
|
|
@@ -789,7 +788,7 @@ const _l = (e) => m(hi, { ...e }), Gl = gt(pt((e, t) => {
|
|
|
789
788
|
const ve = o(W);
|
|
790
789
|
return b.current.push(ve), ve;
|
|
791
790
|
}, close: () => {
|
|
792
|
-
|
|
791
|
+
F?.();
|
|
793
792
|
}, focus: (W) => {
|
|
794
793
|
h.current?.focus(W);
|
|
795
794
|
} }), [o]);
|
|
@@ -797,7 +796,7 @@ const _l = (e) => m(hi, { ...e }), Gl = gt(pt((e, t) => {
|
|
|
797
796
|
for (const W of b.current) W();
|
|
798
797
|
b.current = [];
|
|
799
798
|
}, []);
|
|
800
|
-
const T = fe(() => (r.renderTaskPanelTitle ?? g)({ ref: R, title: r.getTitle(), icon: null, readOnly: !1, focused: V, onClose:
|
|
799
|
+
const T = fe(() => (r.renderTaskPanelTitle ?? g)({ ref: R, title: r.getTitle(), icon: null, readOnly: !1, focused: V, onClose: F, onPointerDown: (W) => {
|
|
801
800
|
} }), [r, V]), N = fe(() => {
|
|
802
801
|
let W = r.renderTaskPane({ entryKey: r.key, model: u, commands: c, frame: G, ...f }, t);
|
|
803
802
|
return S && (W = S(W)), W;
|
|
@@ -820,7 +819,7 @@ const _l = (e) => m(hi, { ...e }), Gl = gt(pt((e, t) => {
|
|
|
820
819
|
}));
|
|
821
820
|
mi.displayName = "TaskPaneStrip";
|
|
822
821
|
const Zl = (e) => m(mi, { ...e }), ac = gt(pt((e, t) => {
|
|
823
|
-
const { className: n = "", registry: r = rr, model: i, commands: o, onOpen: u, onClose: c, wrapperPane: l, propsPane: p, wrapperFrame: S, propsFrame: f, renderTaskPanelTitle: g, renderTaskPaneStrip: x = Zl, alwaysShowStrip: k, style: E } = e, A = te(u, [u]), Z = te(c, [c]), [V, v] = Ce(null),
|
|
822
|
+
const { className: n = "", registry: r = rr, model: i, commands: o, onOpen: u, onClose: c, wrapperPane: l, propsPane: p, wrapperFrame: S, propsFrame: f, renderTaskPanelTitle: g, renderTaskPaneStrip: x = Zl, alwaysShowStrip: k, style: E } = e, A = te(u, [u]), Z = te(c, [c]), [V, v] = Ce(null), F = xe(null), [h, R] = Ce([]), b = xe(/* @__PURE__ */ new Set()), G = te(async (D, K = !1) => {
|
|
824
823
|
const y = Array.from(b.current), C = y.length;
|
|
825
824
|
let oe = !0;
|
|
826
825
|
for (let le = 0; oe && le < C; le++) {
|
|
@@ -850,17 +849,17 @@ const Zl = (e) => m(mi, { ...e }), ac = gt(pt((e, t) => {
|
|
|
850
849
|
}, [Z]), N = te(async (D) => {
|
|
851
850
|
const K = r.getRegisteredTaskPane(D);
|
|
852
851
|
if (!K) return void console.warn(`Invalid taskpane '${D}'`);
|
|
853
|
-
if (
|
|
852
|
+
if (F.current === D || V && !await G(V.key))
|
|
854
853
|
return;
|
|
855
854
|
const y = Je.createRef();
|
|
856
855
|
let C = m(Gl, { ref: () => {
|
|
857
|
-
|
|
856
|
+
F.current = null;
|
|
858
857
|
}, entry: K, model: i, commands: o, close: async () => {
|
|
859
858
|
await G(D) && T(D);
|
|
860
859
|
}, wrapperPane: l, propsPane: p, renderTaskPanelTitle: g, listenerContainer: (le) => (b.current.add(le), () => {
|
|
861
860
|
b.current.delete(le);
|
|
862
861
|
}), onMounted: (le) => {
|
|
863
|
-
le.key === D && (
|
|
862
|
+
le.key === D && (F.current = null), A?.();
|
|
864
863
|
}, onUnmounted: (le) => {
|
|
865
864
|
}, ...f });
|
|
866
865
|
S && (C = S(C));
|
|
@@ -869,10 +868,10 @@ const Zl = (e) => m(mi, { ...e }), ac = gt(pt((e, t) => {
|
|
|
869
868
|
if (le.findIndex((ue) => ue.key === D) !== -1) return le;
|
|
870
869
|
const Me = [...le];
|
|
871
870
|
return Me.push(oe), Me;
|
|
872
|
-
}), v(oe),
|
|
871
|
+
}), v(oe), F.current = D;
|
|
873
872
|
}, [V, S, p, g]);
|
|
874
873
|
be(() => {
|
|
875
|
-
V && !
|
|
874
|
+
V && !F.current && N(V.key);
|
|
876
875
|
}, [f, i]);
|
|
877
876
|
const W = $t(t, () => ({ activateTaskPane: N }), [r, p, i, o]), ve = fe(() => h.map((D) => D.key), [h]), j = fe(() => {
|
|
878
877
|
if (ve.length <= 1 && !k) return null;
|
|
@@ -886,7 +885,7 @@ const Zl = (e) => m(mi, { ...e }), ac = gt(pt((e, t) => {
|
|
|
886
885
|
function jl(e) {
|
|
887
886
|
const { sheet: t, onRepeatCommandChange: n, bodyStyle: r, commands: i, target: o, onStartEdit: u, getViewport: c } = e, l = Un(), p = Ul(), S = te(u, [u]), f = te(c, [c]), g = fe(() => ({ serializer: { parse: (a) => a ? t?.getStyles().parseColor(a) : null, stringify: (a) => a ? a.toString() : null } }), [t]), [x, k] = Vo("sheet.lastBorder", null), [E, A] = Vo("sheet.lastFillColor", t?.getStyles().parseColor(el.Scheme.Bg2), g), [Z, V] = Vo("sheet.lastFontColor", t?.getStyles().parseColor(t?.getStyles().getNormal().getFont().getFill()), g), v = cn();
|
|
888
887
|
xe(v.getMode()).current = v.getMode();
|
|
889
|
-
const [
|
|
888
|
+
const [F, h] = Jt((a) => a + 1, 0), [R, b] = Jt((a) => a + 1, 0), G = al(), T = xe(null), [N, W] = Jt((a) => a + 1, 0), [ve, j] = Jt((a) => a + 1, 0), _ = xe(null), D = te(() => {
|
|
890
889
|
if (!t) return null;
|
|
891
890
|
const a = _.current;
|
|
892
891
|
if (a) return a;
|
|
@@ -894,12 +893,12 @@ function jl(e) {
|
|
|
894
893
|
let w = null;
|
|
895
894
|
ie.length > 0 && (w = ie[0]);
|
|
896
895
|
const L = d.getMerges().length > 0, q = d.isOverlapping();
|
|
897
|
-
let
|
|
896
|
+
let z = !0;
|
|
898
897
|
const ce = d.getCoords(), se = ce.length;
|
|
899
|
-
for (let qe = 0;
|
|
898
|
+
for (let qe = 0; z && qe < se; qe++) z = xt.isSingleCell(ce[qe]);
|
|
900
899
|
return a && w === a.table && et.isEqualArrays(X, a.tables) || requestAnimationFrame(() => {
|
|
901
900
|
j();
|
|
902
|
-
}), _.current = { tables: X, table: w, ranges: d, rangesCoords: ce, range: M, cell: I, containsMerge: L, isOverlapping: q, isSingleCell:
|
|
901
|
+
}), _.current = { tables: X, table: w, ranges: d, rangesCoords: ce, range: M, cell: I, containsMerge: L, isOverlapping: q, isSingleCell: z }, _.current;
|
|
903
902
|
}, [t]), K = Xe(et.debounce(W, 210), []);
|
|
904
903
|
be(() => {
|
|
905
904
|
T.current = t, W();
|
|
@@ -907,13 +906,13 @@ function jl(e) {
|
|
|
907
906
|
_.current = null, K();
|
|
908
907
|
} });
|
|
909
908
|
const y = te(async (a, I, H = null, d = !1, M = !0) => {
|
|
910
|
-
const U = a?.
|
|
909
|
+
const U = a?.getLabel?.(), X = async () => {
|
|
911
910
|
const q = await Promise.resolve(M && l.showBusy(U ?? "Busy..."));
|
|
912
911
|
try {
|
|
913
912
|
await t.doBatch(async () => I(t), U), d && v.setMode(null), q && q();
|
|
914
|
-
} catch (
|
|
915
|
-
if (q && q(), !
|
|
916
|
-
l.showError(
|
|
913
|
+
} catch (z) {
|
|
914
|
+
if (q && q(), !z) return;
|
|
915
|
+
l.showError(z);
|
|
917
916
|
}
|
|
918
917
|
}, ie = [];
|
|
919
918
|
let w = !1;
|
|
@@ -929,8 +928,8 @@ function jl(e) {
|
|
|
929
928
|
if (n) {
|
|
930
929
|
let q = null;
|
|
931
930
|
if (H !== !1 && a) {
|
|
932
|
-
const
|
|
933
|
-
q = new Ze(a.
|
|
931
|
+
const z = H ?? U;
|
|
932
|
+
q = new Ze(a.getKey(), o, { label: z, description: z }, L);
|
|
934
933
|
}
|
|
935
934
|
n(q);
|
|
936
935
|
}
|
|
@@ -991,28 +990,28 @@ function jl(e) {
|
|
|
991
990
|
L.colEnd = M.colIndex - 1;
|
|
992
991
|
}
|
|
993
992
|
if (d.size !== 1 && U) {
|
|
994
|
-
const q = d.getCoords(),
|
|
993
|
+
const q = d.getCoords(), z = d.startIncrementalUpdates({ orientation: Se.Orientation.Column }), ce = { ...L }, se = q.rowStart, qe = q.rowEnd, J = q.colStart, pe = q.colEnd, B = U === Se.Direction.Up;
|
|
995
994
|
for (let Y = J; Y <= pe; Y++) {
|
|
996
995
|
ce.colStart = B ? Y : L.colStart + (Y - J), ce.colEnd = B ? Y : L.colEnd + (Y - J);
|
|
997
996
|
for (let re = se; re <= qe; re++) {
|
|
998
997
|
ce.rowStart = B ? L.rowStart + (re - se) : re, ce.rowEnd = B ? L.rowEnd + (re - se) : re;
|
|
999
998
|
const Ne = H.getRange(ce).toString();
|
|
1000
|
-
|
|
999
|
+
z.pushAt(re, Y, `=${I}(${Ne})`);
|
|
1001
1000
|
}
|
|
1002
1001
|
}
|
|
1003
|
-
|
|
1002
|
+
z.apply();
|
|
1004
1003
|
} else {
|
|
1005
|
-
const q = L ? H.getRange(L).toString() : "",
|
|
1006
|
-
S?.({ text: `${
|
|
1004
|
+
const q = L ? H.getRange(L).toString() : "", z = `=${I}(`;
|
|
1005
|
+
S?.({ text: `${z}${q})`, editMode: !0, initialSelection: { start: z.length, end: z.length + q.length } });
|
|
1007
1006
|
}
|
|
1008
1007
|
}, !1);
|
|
1009
|
-
}, [t]),
|
|
1008
|
+
}, [t]), ze = te((a, I, H = !1, d = !0) => {
|
|
1010
1009
|
y(a, async (M) => {
|
|
1011
1010
|
const U = D()?.table;
|
|
1012
1011
|
if (U) return void U.updateStyleOptions(I);
|
|
1013
1012
|
const X = M.getSelectedRanges().getFixed(!0), ie = M.getSelectedRange().getDefaultSortCriteria(), w = { getNames: () => M.getNames(), table: () => null, styles: () => null, bodyStyle: () => null }, L = { ranges: X, hasHeader: ie?.options?.hasHeader ?? !1 }, q = async (ce) => {
|
|
1014
1013
|
if (!(ce = await Promise.resolve(ce))) return null;
|
|
1015
|
-
const se = await Promise.resolve(l.showBusy(a.
|
|
1014
|
+
const se = await Promise.resolve(l.showBusy(a.getLabel()));
|
|
1016
1015
|
try {
|
|
1017
1016
|
await M.getTables().add(ce.ranges.at(0), { styleName: I?.name, clearFormatting: H, hasHeader: ce.hasHeader }).getRange().select(), se();
|
|
1018
1017
|
} catch (qe) {
|
|
@@ -1020,10 +1019,10 @@ function jl(e) {
|
|
|
1020
1019
|
}
|
|
1021
1020
|
};
|
|
1022
1021
|
if (!d) return void await q(L);
|
|
1023
|
-
const
|
|
1022
|
+
const z = { initialValue: L, context: () => w, onInput: (ce) => {
|
|
1024
1023
|
q(ce);
|
|
1025
1024
|
} };
|
|
1026
|
-
l.showWindow("tableNew",
|
|
1025
|
+
l.showWindow("tableNew", z);
|
|
1027
1026
|
}, !1, !0, !1);
|
|
1028
1027
|
}, []), Ee = te(() => r, [r]), ge = te((a) => ({ styles: () => t.getStyles(), table: () => a, bodyStyle: Ee, getNames: () => t.getNames() }), [t]), P = te(async (a, I, H, d = !0) => {
|
|
1029
1028
|
if (!I) {
|
|
@@ -1066,23 +1065,23 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1066
1065
|
const M = D();
|
|
1067
1066
|
if (!M) return;
|
|
1068
1067
|
const U = M.ranges;
|
|
1069
|
-
if (U.getCount() > 1) throw new
|
|
1068
|
+
if (U.getCount() > 1) throw new vr("Can not sort on multiple cell ranges. Please select a single range and try again.");
|
|
1070
1069
|
let X = U.at(0);
|
|
1071
1070
|
X.size === 1 && (X = X.getSurrounding());
|
|
1072
1071
|
const ie = M.cell;
|
|
1073
1072
|
let w = X.getDefaultSortCriteria(Se.Orientation.Row, ie);
|
|
1074
1073
|
if (!w) {
|
|
1075
|
-
if (H) throw new
|
|
1074
|
+
if (H) throw new vr("Invalid sort selection. Sort requires a single range with data.");
|
|
1076
1075
|
return;
|
|
1077
1076
|
}
|
|
1078
1077
|
const L = async (qe) => {
|
|
1079
1078
|
if (!(qe = await Promise.resolve(qe))) return;
|
|
1080
|
-
const J = await Promise.resolve(l.showBusy(a.
|
|
1079
|
+
const J = await Promise.resolve(l.showBusy(a.getLabel()));
|
|
1081
1080
|
try {
|
|
1082
1081
|
X.doBatch(() => {
|
|
1083
1082
|
const pe = { ...qe, ...I };
|
|
1084
1083
|
X.sort(pe), X.autoFit({ orientations: pe?.orientation === Se.Orientation.Column ? Se.Orientations.Column : Se.Orientations.Row, skipCustomSize: !0, minContent: !0 });
|
|
1085
|
-
}, a?.
|
|
1084
|
+
}, a?.getLabel?.());
|
|
1086
1085
|
} catch (pe) {
|
|
1087
1086
|
J(), l.showError(pe);
|
|
1088
1087
|
}
|
|
@@ -1090,8 +1089,8 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1090
1089
|
};
|
|
1091
1090
|
let q = w.options;
|
|
1092
1091
|
if (!H) return void await L(q);
|
|
1093
|
-
let
|
|
1094
|
-
q.hasHeader && (
|
|
1092
|
+
let z = X;
|
|
1093
|
+
q.hasHeader && (z = X.getIntersect(w.sortCoords)), z.select();
|
|
1095
1094
|
const ce = { range: X, cell: ie }, se = { initialValue: q, context: () => ce, onInput: (qe) => {
|
|
1096
1095
|
L(qe);
|
|
1097
1096
|
} };
|
|
@@ -1141,7 +1140,7 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1141
1140
|
return I;
|
|
1142
1141
|
}, [t, l]);
|
|
1143
1142
|
const me = te(async (a, I, H) => {
|
|
1144
|
-
const d = await l.showBusy(a.
|
|
1143
|
+
const d = await l.showBusy(a.getLabel());
|
|
1145
1144
|
try {
|
|
1146
1145
|
const M = await t.getMovables().addImage(I, { autoSelect: !0, ...H });
|
|
1147
1146
|
return d(), v.setMode(null), M;
|
|
@@ -1159,14 +1158,14 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1159
1158
|
const ie = U[X];
|
|
1160
1159
|
let w = ie;
|
|
1161
1160
|
const L = H.getRange(w).getMerges();
|
|
1162
|
-
let q = 0,
|
|
1161
|
+
let q = 0, z = 0;
|
|
1163
1162
|
if (L.length > 0) {
|
|
1164
1163
|
const ce = L[0];
|
|
1165
|
-
q = ce.rowEnd - ce.rowStart,
|
|
1164
|
+
q = ce.rowEnd - ce.rowStart, z = ce.colEnd - ce.colStart;
|
|
1166
1165
|
}
|
|
1167
|
-
I === Se.Direction.Left ? w = { ...ie, colStart: ie.colEnd +
|
|
1166
|
+
I === Se.Direction.Left ? w = { ...ie, colStart: ie.colEnd + z } : I === Se.Direction.Right ? w = { ...ie, colEnd: ie.colStart + z } : I === Se.Direction.Up ? w = { ...ie, rowStart: ie.rowEnd + q } : I === Se.Direction.Down && (w = { ...ie, rowEnd: ie.rowStart + q }), H.getRange(w).autoFill(ie, { filler: tl.Types.Copy }), H.getRange(ie).autoFit({ orientations: Se.Orientations.Row, skipCustomSize: !0, minContent: !0 });
|
|
1168
1167
|
}
|
|
1169
|
-
}, { autoSelect: !0, description: a.
|
|
1168
|
+
}, { autoSelect: !0, description: a.getLabel() });
|
|
1170
1169
|
});
|
|
1171
1170
|
}, [l]), ae = te(() => {
|
|
1172
1171
|
let a = null;
|
|
@@ -1186,11 +1185,11 @@ Continue?`, options: ["Convert", "Cancel"], defaultOption: "Convert" }) !== "Con
|
|
|
1186
1185
|
For example, you can prevent people from editing locked cells or making formatting changes.`, icon: "Lock" }), new Q("formatSheetTabColor", o, { label: "Tab Color", description: "Color the tab to help differentiate for other sheets.", icon: "stroke.colored" }), new Q("formatCellStyle", o, { label: "Cell Styles", scopedLabels: { cellStyle: "Apply" }, description: "A colorful style is a great way to make important data stand out on the sheet.", icon: "PresetStyles" }, function(a) {
|
|
1187
1186
|
C(this, { named: a.getName() }, !0);
|
|
1188
1187
|
}), new Q("formatTableStyle", o, { label: "Format as Table", scopedLabels: { table: "Apply (Keep Styles)" }, description: "Create a table or apply style to the current table.", icon: "PresetStyles" }, function(a) {
|
|
1189
|
-
|
|
1188
|
+
ze(this, a);
|
|
1190
1189
|
}), new Q("formatTableStyleClearCellStyles", o, { label: "Format as Table (Clear Styles)", scopedLabels: { table: "Apply (Clear Styles)" }, icon: "PresetStyles", description: "Create a table or apply style to the current table and clears all cell styles." }, function(a) {
|
|
1191
|
-
|
|
1190
|
+
ze(this, a, !0);
|
|
1192
1191
|
}), new Q("formatTableStyleClearTableStyle", o, { label: "Clear Table Style", scopedLabels: { table: "Clear Style" }, icon: "ClearFormats", description: "Remove all the styling that is specific for the table." }, function() {
|
|
1193
|
-
|
|
1192
|
+
ze(this, { name: null }, !0);
|
|
1194
1193
|
}), new Q("setDefaultTableStyle", o, { label: "Set Default Table Style", scopedLabels: { table: "Set As Default" }, description: "Sets the default table style used when a table is inserted." }, We), new Q("deleteTableStyle", o, { label: "Delete Table Style", scopedLabels: { table: "Delete" }, description: "Remove the current table style." }, $e), new Q("formatBorder", o, { label: "Border", description: "Create an outline border." }, function(a) {
|
|
1195
1194
|
C(this, { border: a });
|
|
1196
1195
|
}), new Q("formatFillColor", o, { label: "Fill Color", description: "Color the background of the cells to make them stand out." }, function(a) {
|
|
@@ -1206,7 +1205,7 @@ For example, you can prevent people from editing locked cells or making formatti
|
|
|
1206
1205
|
}), new Q("formatFontSize", o, { label: "Font Size", description: "Change the size of your text." }, function(a) {
|
|
1207
1206
|
C(this, { font: { size: a } });
|
|
1208
1207
|
}), new Q("formatNumberDialog", o, { label: "Custom Number Format", scopedLabels: { numberFormat: "Custom" }, description: "Create a custom number format.", shortcut: [{ key: "1", modifiers: [ne.Ctrl] }, { key: "1", modifiers: [ne.Ctrl, ne.Alt] }] }, function(a, I) {
|
|
1209
|
-
const H = this, d = { initialValue: a ?? I.
|
|
1208
|
+
const H = this, d = { initialValue: a ?? I.getState(), context: () => I.getContext(), onInput: (M, U) => {
|
|
1210
1209
|
C(H, { numberFormat: M });
|
|
1211
1210
|
} };
|
|
1212
1211
|
l.showWindow("numberFormat", d);
|
|
@@ -1250,12 +1249,12 @@ For example, you can prevent people from editing locked cells or making formatti
|
|
|
1250
1249
|
}), new Q("startEditCurrentDate", o, { label: "Current Date", description: "Insert the current date.", shortcut: { key: "Semicolon", modifiers: [ne.Ctrl] } }, function() {
|
|
1251
1250
|
S?.({ text: t.createTemporaryCell({ value: go.nowWithPrecision(), style: { numberFormat: "Short Date" } }).toText() });
|
|
1252
1251
|
}), new Ze("sheetZoomOut", o, { label: "Zoom Out", description: "Zoom out to see less detail but more area.", shortcut: [{ key: "-", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadSubtract", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ze("sheetZoomIn", o, { label: "Zoom In", description: "Zoom in to see more detail but less area.", shortcut: [{ key: "=", modifiers: [ne.Ctrl, ne.Alt] }, { key: "NumpadAdd", modifiers: [ne.Ctrl, ne.Alt] }] }), new Ze("sheetZoom100", o, { label: "Zoom 100%", description: "Zoom document to 100%.", shortcut: { key: "o", modifiers: [ne.Ctrl, ne.Alt] } }), new Q("updateHyperlink", o, { label: "Link", scopedLabels: { contextMenu: "Insert Link…", insert: "Link…", hyperlink: "Edit" }, description: "Create a hyperlink to either another webpage or another location within this document.", icon: "HyperlinkInset", context: () => D().cell, shortcut: [{ key: "K", modifiers: [ne.Ctrl] }, { key: "K", modifiers: [ne.Ctrl, ne.Alt] }] }, async function(a, I) {
|
|
1253
|
-
const H = this, d = { context: I.
|
|
1252
|
+
const H = this, d = { context: I.getContext(), onInput: (M) => {
|
|
1254
1253
|
oe(H, M);
|
|
1255
1254
|
} };
|
|
1256
1255
|
l.showWindow("hyperlink", d);
|
|
1257
1256
|
}), new Q("openHyperlink", o, { label: "Open Link", scopedLabels: { hyperlink: "Open" }, shortcut: { key: "Enter", modifiers: [ne.Ctrl] }, description: "Open the hyperlink or goto another location within this document.", icon: "HyperlinkGoto", context: () => D().cell }, async (a, I) => {
|
|
1258
|
-
const H = I.
|
|
1257
|
+
const H = I.getContext()();
|
|
1259
1258
|
if (!H) return;
|
|
1260
1259
|
const d = H.getHyperlink();
|
|
1261
1260
|
if (d) try {
|
|
@@ -1268,9 +1267,9 @@ For example, you can prevent people from editing locked cells or making formatti
|
|
|
1268
1267
|
}), new Ze("insertNote", o, { label: "Insert Note", scopedLabels: { contextMenu: "Insert Note…", insert: "Note" }, shortcut: { key: "F2", modifiers: [ne.Shift] }, description: "Add a note to the cell." }, (a, I) => {
|
|
1269
1268
|
((H, d) => {
|
|
1270
1269
|
H?.showMessage?.(Qe("p", { style: { marginTop: "0px", marginBottom: "0px" }, children: [d, " is not yet implemented.", m("br", {}), m("br", {}), "Please see the ", m("a", { style: { whiteSpace: "nowrap" }, href: "https://www.sheetxl.com/docs/guides/introduction/roadmap", target: "_blank", rel: "noopener", children: "SheetXL Roadmap" }), "."] }));
|
|
1271
|
-
})(l, I.
|
|
1270
|
+
})(l, I.getLabel());
|
|
1272
1271
|
}), new Q("updateComments", o, { label: "Comments", scopedLabels: { contextMenu: "Insert Comments…", insert: "Comments…" }, shortcut: { key: "M", modifiers: [ne.Ctrl, ne.Alt] }, description: "Add a comment to the current cell.", icon: "CommentInsert", context: () => D().cell }, async function(a, I) {
|
|
1273
|
-
const H = this, d = { context: I.
|
|
1272
|
+
const H = this, d = { context: I.getContext(), onInput: (M) => {
|
|
1274
1273
|
le(H, M);
|
|
1275
1274
|
} };
|
|
1276
1275
|
l.showWindow("comments", d);
|
|
@@ -1287,7 +1286,7 @@ For example, you can prevent people from editing locked cells or making formatti
|
|
|
1287
1286
|
}
|
|
1288
1287
|
a && me(this, { fetch: a });
|
|
1289
1288
|
}), new Ze("insertTable", o, { label: "Insert Table", scopedLabels: { contextMenu: "Insert Table…", insert: "Table" }, description: "Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.", icon: "InsertTable", shortcut: [{ key: "L", modifiers: [ne.Ctrl] }, { key: "T", modifiers: [ne.Alt, ne.Ctrl] }] }, function() {
|
|
1290
|
-
|
|
1289
|
+
ze(this);
|
|
1291
1290
|
}), new Q("editTable", o, { label: "Edit Table…", scopedLabels: { table: "Edit…", namedItem: "Edit…" }, description: "Edit the table to adjust formatting, sorting, filtering, or other advanced features.", icon: "InsertTable" }, function(a) {
|
|
1292
1291
|
let I = null, H = !1;
|
|
1293
1292
|
a.isITable ? I = a : a.getValue() && (I = a.getValue(), H = !0), P(this, I, H);
|
|
@@ -1300,13 +1299,13 @@ The table and table specific styling will be removed but the values will be pres
|
|
|
1300
1299
|
The values and the formatting are preserved.`, icon: "InsertTable" }, function(a) {
|
|
1301
1300
|
Le(this, a, !1);
|
|
1302
1301
|
}), new Q("tableTotalRowToggle", o, { label: "Toggle Table Total Row", description: "Toggle Total Row on/off.", scopedLabels: { table: "Total Row" }, shortcut: { key: "T", modifiers: [ne.Ctrl, ne.Alt] } }, function() {
|
|
1303
|
-
const a = this.
|
|
1302
|
+
const a = this.getContext().table();
|
|
1304
1303
|
a && a.setShowTotals(!a.getShowTotals());
|
|
1305
1304
|
}), new Q("tableHeaderRowToggle", o, { label: "Toggle Table Header Row", description: "Toggle Header Row on/off.", scopedLabels: { table: "Header Row" } }, function() {
|
|
1306
|
-
const a = this.
|
|
1305
|
+
const a = this.getContext().table();
|
|
1307
1306
|
a && a.setShowHeaders(!a.getShowHeaders());
|
|
1308
1307
|
}), new Q("autoFilterToggle", o, { label: "Toggle Filter", scopedLabels: { filter: "Filter", sortFilter: "Filter" }, description: "Toggle Auto Filter on/off.", icon: "FilterToggle", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1309
|
-
const a = this.
|
|
1308
|
+
const a = this.getContext().table();
|
|
1310
1309
|
a && a.setShowFilterButton(!a.getShowFilterButton());
|
|
1311
1310
|
}), new Q("autoFilterReapply", o, { label: "Reapply Filter", scopedLabels: { filter: "Reapply", sortFilter: "Reapply" }, description: "Reapply the filter and sort with the latest changes.", icon: "FilterReapply", shortcut: { key: "L", modifiers: [ne.Ctrl, ne.Alt] } }), new Q("autoFilterClear", o, { label: "Clear Filter", scopedLabels: { filter: "Clear", sortFilter: "Clear" }, description: "Clear the filters criteria from the current filter..", icon: "FilterClear" }), new Ze("startEditValueAbove", o, { label: "Copy From Above", description: "Copy the value from the cell above the active cell into the cell or the formula bar.", shortcut: [{ key: "Quote", modifiers: [ne.Ctrl] }, { key: '"', modifiers: [ne.Ctrl, ne.Shift] }] }, ae), new Q("formatPainterToggle", o, { label: "Format Painter", description: "Apply style to another part of your workbook.", icon: "FormatPaint.yellow" }), new Ze("insertCells", o, { label: "Insert Cells", scopedLabels: { insertCells: "At Selection" }, description: "Inserts cells at the current selection.", icon: "InsertCells", shortcut: { key: "=", modifiers: [ne.Ctrl, ne.Shift] } }, function() {
|
|
1312
1311
|
ue(this);
|
|
@@ -1375,7 +1374,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1375
1374
|
ni(i, null, { onChange: () => {
|
|
1376
1375
|
const a = !t.getProtection().isFormatCellsAllowed(), I = v.getMode()?.key === "formatPainter";
|
|
1377
1376
|
s.getCommand("formatPainterToggle").update({ disabled: a || !i?.getCommand("copy"), state: () => I }).updateCallback(() => I ? void v.setMode(null) : s.getCommand("copy").execute({ editMode: { key: "formatPainter", description: "Use the mouse to apply the copied format to another selection.", cursor: `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='black' fill='white'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer` } }));
|
|
1378
|
-
} }, [v,
|
|
1377
|
+
} }, [v, F, i]), ut(t.getView(), { onFreezeSplitChange: () => {
|
|
1379
1378
|
b();
|
|
1380
1379
|
} });
|
|
1381
1380
|
const Ve = () => {
|
|
@@ -1396,10 +1395,10 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1396
1395
|
s.getCommand("openHyperlink").update({ disabled: !H }), s.getCommand("deleteHyperlink").update({ disabled: a || !H });
|
|
1397
1396
|
const d = H ? "Edit" : "Insert", M = "Link";
|
|
1398
1397
|
s.getCommand("updateHyperlink").update({ label: () => `${d} ${M}`, icon: () => d === "Edit" ? "HyperlinkEdit" : "HyperlinkInsert", scopedLabels: { contextMenu: `${d} ${M}…`, insert: `${M}…`, hyperlink: `${d}…` }, disabled: a });
|
|
1399
|
-
}, [N,
|
|
1398
|
+
}, [N, F]), be(() => {
|
|
1400
1399
|
const a = D(), I = a?.cell.getComments(), H = () => I ? "Edit" : "Insert", d = () => I ? "Comments" : "Comment";
|
|
1401
1400
|
s.getCommand("updateComments").update({ label: () => `${H()} ${d()}`, icon: () => I ? "CommentEdit" : "CommentInsert", scopedLabels: { contextMenu: `${H()} ${d()}…`, insert: `${d()}…` } });
|
|
1402
|
-
}, [N,
|
|
1401
|
+
}, [N, F]), ut(t, { onViewChange: () => {
|
|
1403
1402
|
const a = t.getView();
|
|
1404
1403
|
s.getCommand("sheetViewToggleFormulaView").update({ state: a.isShowFormulas() }), s.getCommand("sheetViewToggleShowZeros").update({ state: a.isShowZeros() }), s.getCommand("gridlinesToggle").update({ state: a.isShowColumnGridlines() || a.isShowRowGridlines() }), s.getCommand("sheetViewToggleGridlinesColumns").update({ state: a.isShowColumnGridlines() }), s.getCommand("sheetViewToggleGridlinesRows").update({ state: a.isShowRowGridlines() }), s.getCommand("sheetViewToggleShowHeadings").update({ state: a.isShowColumnHeaders() || a.isShowRowHeaders() }), s.getCommand("sheetViewToggleShowHeadingColumns").update({ state: a.isShowColumnHeaders() }), s.getCommand("sheetViewToggleShowHeadingRows").update({ state: a.isShowRowHeaders() }), s.getCommand("sheetViewToggleShowHeadingsNumeric").update({ state: () => t.getView().getColumnHeaderStyle() === en.HeaderTextStyle.Zero && t.getView().getRowHeaderStyle() === en.HeaderTextStyle.Zero }), Ve();
|
|
1405
1404
|
}, onTabColorChange: () => {
|
|
@@ -1423,7 +1422,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1423
1422
|
s.getCommand("formatTableStyle").update({ label: H ? "Apply Table Style" : "Format As Table", ...ie }), s.getCommand("formatTableStyleClearCellStyles").update(ie), s.getCommand("deleteTableStyle").update(ie), s.getCommand("convertTableToRange").update(ie), s.getCommand("insertTable").update({ disabled: M || d.length > 0 });
|
|
1424
1423
|
const w = { context: U, disabled: M || d.length === 0 };
|
|
1425
1424
|
s.getCommand("tableHeaderRowToggle").update(w), s.getCommand("tableTotalRowToggle").update(w), s.getCommand("autoFilterToggle").update(w), s.getCommand("formatTableStyleClearTableStyle").update({ ...w, disabled: w.disabled || !H || H.getStyleOptions().name === null });
|
|
1426
|
-
}, [ve,
|
|
1425
|
+
}, [ve, F]), be(() => {
|
|
1427
1426
|
s.getCommand("sheetZoomOut").updateCallback(() => {
|
|
1428
1427
|
t.getView().update({ zoomScale: et.findNextStep(t.getView().getZoomScale(), !1) });
|
|
1429
1428
|
}), s.getCommand("sheetZoomIn").updateCallback(() => {
|
|
@@ -1473,12 +1472,12 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1473
1472
|
t.getView().setFreezePanes(null);
|
|
1474
1473
|
}).update({ disabled: () => !M() });
|
|
1475
1474
|
}, [R, N, t, r]);
|
|
1476
|
-
const
|
|
1475
|
+
const Fe = t?.getSelectedCell().getStyle();
|
|
1477
1476
|
return be(() => {
|
|
1478
|
-
const a =
|
|
1477
|
+
const a = Fe.getFont(), I = Fe.getAlignment(), H = I.getHorizontal(), d = I.getVertical(), M = I.getOverflow(), U = I.getRotation();
|
|
1479
1478
|
s.getCommand("formatCellStyle").update({ context: () => ({ styles: () => t.getStyles(), named: () => D().cell.getStyle(!0).getNamed(), bodyStyle: Ee, createTemporaryCell: (ke) => t.createTemporaryCell(ke) }) }), s.getCommand("formatFillColor").update({ state: () => {
|
|
1480
1479
|
let ke = null;
|
|
1481
|
-
const De =
|
|
1480
|
+
const De = Fe.getFill();
|
|
1482
1481
|
return De?.getType() === so.Type.Solid ? ke = De.getColor() : De?.getType() === so.Type.Gradient ? ke = De.getStops()?.[0]?.getColor() : De?.getType() === so.Type.Pattern && (ke = De.getBackground()), ke;
|
|
1483
1482
|
}, icon: () => m(jo, { iconKey: "fill.colored" }), context: () => {
|
|
1484
1483
|
const ke = t.getStyles();
|
|
@@ -1490,7 +1489,7 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1490
1489
|
return { onColorSelect: (De) => {
|
|
1491
1490
|
V(De);
|
|
1492
1491
|
}, darkMode: r.darkMode, quickColor: Z, autoColor: ke.getNormal().getFont().getFill(), schemeLookup: ke.schemeLookup(), recentColors: ke.recentColors(), addRecentColor: (De) => ke.addRecentColor(De), clearRecentColors: () => ke.clearRecentColors() };
|
|
1493
|
-
} }), s.getCommand("formatNumberFormat").update({ state: () =>
|
|
1492
|
+
} }), s.getCommand("formatNumberFormat").update({ state: () => Fe.getNumberFormat(), context: () => D().cell }), s.getCommand("formatNumberDialog").update({ state: () => Fe.getNumberFormat(), context: () => D().cell }), s.getCommand("formatFontFamily").update({ state: () => a.getFamily() }), s.getCommand("formatFontSize").update({ state: () => a.getSize() });
|
|
1494
1493
|
const X = function() {
|
|
1495
1494
|
const ke = a.getWeight() || 0;
|
|
1496
1495
|
return !isNaN(ke) && ke > 500;
|
|
@@ -1532,12 +1531,12 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1532
1531
|
s.getCommand("formatTextOverflowClipToggle").updateCallback(function() {
|
|
1533
1532
|
C(this, { alignment: { overflow: q() ? ye.Overflow.Visible : ye.Overflow.Clip } });
|
|
1534
1533
|
}).update({ state: q });
|
|
1535
|
-
const
|
|
1534
|
+
const z = function() {
|
|
1536
1535
|
return M === ye.Overflow.Shrink;
|
|
1537
1536
|
};
|
|
1538
1537
|
s.getCommand("formatTextOverflowShrinkToggle").updateCallback(function() {
|
|
1539
|
-
C(this, { alignment: { overflow:
|
|
1540
|
-
}).update({ state:
|
|
1538
|
+
C(this, { alignment: { overflow: z() ? ye.Overflow.Visible : ye.Overflow.Shrink } });
|
|
1539
|
+
}).update({ state: z });
|
|
1541
1540
|
const ce = function() {
|
|
1542
1541
|
return M === ye.Overflow.Shrink;
|
|
1543
1542
|
};
|
|
@@ -1632,11 +1631,11 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1632
1631
|
}).update({ disabled: we || Pe, state: U === 315 }), s.getCommand("formatTextRotateCustom").updateCallback(function(ke) {
|
|
1633
1632
|
C(this, { alignment: { rotation: ke } });
|
|
1634
1633
|
}).update({ disabled: we || Pe, state: U ?? 0 });
|
|
1635
|
-
}, [
|
|
1634
|
+
}, [Fe, t, r, E, Z]), be(() => {
|
|
1636
1635
|
const a = !t.getProtection().isFormatCellsAllowed(), I = D(), H = I.containsMerge, d = I.tables.length === 0 && !I.isOverlapping && (H || !I.isSingleCell), M = async (tt, yt) => {
|
|
1637
1636
|
y(yt, async (bt) => {
|
|
1638
1637
|
const dt = async (Bt = !1) => {
|
|
1639
|
-
const Ht = await Promise.resolve(l.showBusy(yt.
|
|
1638
|
+
const Ht = await Promise.resolve(l.showBusy(yt.getLabel()));
|
|
1640
1639
|
try {
|
|
1641
1640
|
const Rt = bt.getSelectedRanges();
|
|
1642
1641
|
if (Rt.merge({ orientations: tt, discardMultipleValues: Bt }), tt === Se.Orientations.Both) {
|
|
@@ -1718,21 +1717,21 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1718
1717
|
} };
|
|
1719
1718
|
l.showWindow("resizeHeader", yt);
|
|
1720
1719
|
}).update(X);
|
|
1721
|
-
let ie = !1, w = 0, L = !1, q = !1,
|
|
1720
|
+
let ie = !1, w = 0, L = !1, q = !1, z = 0, ce = !1;
|
|
1722
1721
|
const se = I.ranges;
|
|
1723
|
-
se && !a && (ie = se.isEntireColumnsAny(), L = ie && !se.isEntireColumns(), w = se.getColumnCount(), q = se.isEntireRowsAny(), ce = q && !se.isEntireRows(),
|
|
1722
|
+
se && !a && (ie = se.isEntireColumnsAny(), L = ie && !se.isEntireColumns(), w = se.getColumnCount(), q = se.isEntireRowsAny(), ce = q && !se.isEntireRows(), z = se.getRowCount());
|
|
1724
1723
|
const qe = { disabled: a || se && se.getCount() !== 1 };
|
|
1725
1724
|
s.getCommand("sortAscending").update(qe), s.getCommand("sortDescending").update(qe);
|
|
1726
1725
|
const J = I.isOverlapping, pe = { disabled: ie || a || J }, B = { disabled: q || a || J }, Y = ie || a || J || ce, re = q || a || J || L;
|
|
1727
1726
|
let Ne = "", Ke = "", _e = "", Te = "", Ge = "", we = "", Pe = "", ke = "", De = "", He = "", lt = "", rt = "", at = "";
|
|
1728
|
-
w > 1 && (Ne = w + " ", Ke = "s", J || (He = we = Ne, lt = Pe = Ke)),
|
|
1727
|
+
w > 1 && (Ne = w + " ", Ke = "s", J || (He = we = Ne, lt = Pe = Ke)), z > 1 && (_e = z + " ", Te = "s", J || (rt = ke = _e, at = De = Te)), v.getMode()?.key === "copy" ? (Ge = ke = we = "Copied ", Pe = De = "s") : v.getMode()?.key === "cut" && (Ge = ke = we = "Cut ", Pe = De = "s");
|
|
1729
1728
|
let Ct = "", vt = "";
|
|
1730
1729
|
if (se) {
|
|
1731
1730
|
const tt = se.getDefaultShiftOrientation() === Se.Orientation.Column;
|
|
1732
1731
|
Ct = ` (${tt ? "Shift Right" : "Shift Down"})`, vt = ` (${tt ? "Shift Left" : "Shift up"})`, s.getCommand("deleteCells").update({ label: `Delete Cells${vt}` });
|
|
1733
1732
|
}
|
|
1734
1733
|
s.getCommand("insertCells").update({ label: `Insert ${Ge}Cells${Ct}`, scopedLabels: { insertCells: `${Ge}At Selection` } }), s.getCommand("insertCellsShiftRight").update(pe), s.getCommand("deleteCellsShiftLeft").update(pe), s.getCommand("deleteCellsShiftUp").update(B), s.getCommand("insertCellsShiftDown").update(B), s.getCommand("insertRows").update({ label: `Insert ${ke}Row${De}`, scopedLabels: { insertCells: `${ke}Row${De}` }, disabled: re }), s.getCommand("insertRowsAfter").update({ label: `Insert ${ke}Row${De} Below`, disabled: re }), s.getCommand("hideRows").update({ label: `Hide ${_e}Row${De}` }), s.getCommand("insertColumns").update({ label: `Insert ${we}Column${Pe}`, scopedLabels: { insertCells: `${we}Column${Pe}` }, disabled: Y }), s.getCommand("insertColumnsAfter").update({ label: `Insert ${we}Column${Pe} After`, disabled: Y }), s.getCommand("hideColumns").update({ label: `Hide ${Ne}Column${Pe}` }), s.getCommand("deleteRows").update({ label: `Delete ${rt}Row${at}`, scopedLabels: { deleteCells: `${rt}Row${at}` }, disabled: re }), s.getCommand("deleteColumns").update({ label: `Delete ${He}Column${lt}`, scopedLabels: { deleteCells: `${He}Column${lt}` }, disabled: Y });
|
|
1735
|
-
}, [R, N,
|
|
1734
|
+
}, [R, N, F, v, l]), be(() => {
|
|
1736
1735
|
const a = t.getProtection(), I = t.getProtection().isLocked(), H = !a.isFormatCellsAllowed(), d = { disabled: H };
|
|
1737
1736
|
s.getCommand("protectionSheetToggle").updateCallback(async (ie, w) => {
|
|
1738
1737
|
let L = null;
|
|
@@ -1740,36 +1739,36 @@ All contents and formatting are removed.`, shortcut: { key: "Delete", modifiers:
|
|
|
1740
1739
|
if (I) {
|
|
1741
1740
|
let q = null;
|
|
1742
1741
|
if (a.hasPassword()) {
|
|
1743
|
-
const
|
|
1744
|
-
if (
|
|
1745
|
-
q =
|
|
1742
|
+
const z = await l.showInput({ title: "Password Required", description: "Enter a password to unprotected", options: ["Unprotect", "Cancel"], defaultOption: "Unprotect", inputType: "password" });
|
|
1743
|
+
if (z.option !== "Unprotect") return;
|
|
1744
|
+
q = z.input;
|
|
1746
1745
|
}
|
|
1747
|
-
L = await Promise.resolve(l.showBusy(w.
|
|
1748
|
-
} else L = await Promise.resolve(l.showBusy(w.
|
|
1746
|
+
L = await Promise.resolve(l.showBusy(w.getLabel())), await a.unlock(q);
|
|
1747
|
+
} else L = await Promise.resolve(l.showBusy(w.getLabel())), await a.lock();
|
|
1749
1748
|
L?.();
|
|
1750
1749
|
} catch (q) {
|
|
1751
1750
|
L?.(), l.showError(q);
|
|
1752
1751
|
}
|
|
1753
1752
|
}).update({ state: I, label: () => I ? "Unprotect Sheet" : "Protect Sheet", scopedLabels: { sheet: I ? "Unprotect" : "Protect" } }), s.getCommand("deleteTable").update(d), s.getCommand("sortAscending").update(d), s.getCommand("sortDescending").update(d), s.getCommand("sortCustom")?.update(d), s.getCommand("updateComments").update(d), s.getCommand("deleteComments").update(d), s.getCommand("insertChart")?.update(d), s.getCommand("insertImageFromFile").update(d), s.getCommand("insertImageFromURL").update(d), s.getCommand("formatBorder").update(d), s.getCommand("formatFillColor").update(d), s.getCommand("formatFontColor").update(d), s.getCommand("formatBoldToggle").update(d), s.getCommand("formatItalicToggle").update(d), s.getCommand("formatUnderlinedToggle").update(d), s.getCommand("formatStrikeThroughToggle").update(d), s.getCommand("formatSuperscriptToggle").update(d), s.getCommand("formatSubscriptToggle").update(d), s.getCommand("formatAlignTopToggle").update(d), s.getCommand("formatTextOverflowVisibleToggle").update(d), s.getCommand("formatTextOverflowWrapToggle").update(d), s.getCommand("formatTextOverflowClipToggle").update(d), s.getCommand("formatTextOverflowShrinkToggle").update(d), s.getCommand("formatAlignMiddleToggle").update(d), s.getCommand("formatAlignBottomToggle").update(d), s.getCommand("formatAlignDistributedVerticalToggle").update(d), s.getCommand("formatAlignJustifyVerticalToggle").update(d), s.getCommand("formatAlignLeftToggle").update(d), s.getCommand("formatAlignCenterToggle").update(d), s.getCommand("formatAlignRightToggle").update(d), s.getCommand("formatAlignJustifyToggle").update(d), s.getCommand("formatAlignCenterContinuousToggle").update(d), s.getCommand("formatAlignDistributedHorizontalToggle").update(d), s.getCommand("formatAlignFillToggle").update(d), s.getCommand("formatFontSizeIncrease").update(d), s.getCommand("formatFontSizeDecrease").update(d), s.getCommand("formatFontFamily").update(d), s.getCommand("formatFontSize").update(d), s.getCommand("formatNumberFormat").update(d), s.getCommand("formatNumberFormatGeneralStyle").update(d), s.getCommand("formatNumberFormatNumberStyle").update(d), s.getCommand("formatNumberFormatTimeStyle").update(d), s.getCommand("formatNumberFormatDateStyle").update(d), s.getCommand("formatNumberFormatAccountingStyle").update(d), s.getCommand("formatNumberFormatPercentStyle").update(d), s.getCommand("formatNumberFormatScientificStyle").update(d), s.getCommand("formatNumberFormatCommaStyle").update(d), s.getCommand("formatNumberFormatIncreaseDecimal").update(d), s.getCommand("formatNumberFormatDecreaseDecimal").update(d), s.getCommand("hideColumns").update(d), s.getCommand("unhideColumns").update(d), s.getCommand("hideRows").update(d), s.getCommand("unhideRows").update(d), s.getCommand("insertFunctionSum").update(d), s.getCommand("insertFunctionAverage").update(d), s.getCommand("insertFunctionCount").update(d), s.getCommand("insertFunctionMax").update(d), s.getCommand("insertFunctionMin").update(d), s.getCommand("insertFunction").update(d), s.getCommand("startEditCurrentTime").update(d), s.getCommand("startEditCurrentDate").update(d), s.getCommand("startEditValueAbove").update(d), s.getCommand("fillDown").update(d), s.getCommand("fillRight").update(d), s.getCommand("fillUp").update(d), s.getCommand("fillLeft").update(d), s.getCommand("formatCellStyle").update(d), s.getCommand("formatTableStyle").update(d), s.getCommand("formatPainterToggle").update(d), s.getCommand("formatBorderAddOutline").update(d), s.getCommand("formatBorderClearOutline").update(d), s.getCommand("formatIndentDecrease").update(d), s.getCommand("formatIndentIncrease").update(d), s.getCommand("clearContents").update(d), s.getCommand("clearFormats").update(d), s.getCommand("clearAll").update(d), s.getCommand("clearComments").update(d), s.getCommand("clearHyperlinks").update(d), s.getCommand("autoFilterClear").update(d), s.getCommand("autoFilterReapply").update(d);
|
|
1754
|
-
const M =
|
|
1753
|
+
const M = Fe.getAlignment().getHorizontal(), U = M === ye.HorizontalAlignment.CenterContinuous || M === ye.HorizontalAlignment.Fill, X = { disabled: H || U };
|
|
1755
1754
|
s.getCommand("formatTextRotate0").update(X), s.getCommand("formatTextRotate45").update(X), s.getCommand("formatTextRotate90").update(X), s.getCommand("formatTextRotate270").update(X), s.getCommand("formatTextRotate315").update(X), s.getCommand("formatTextRotateCustom").update(X), s.getCommand("formatTextRotateVertical").update(X);
|
|
1756
1755
|
}, [R]), s;
|
|
1757
1756
|
}
|
|
1758
1757
|
const Kl = "_sheet-scrollbar_104cg_1", pi = gt(pt((e, t) => {
|
|
1759
1758
|
const { style: n = it.EmptyCssProperties, orientation: r, sheet: i, onShowTooltip: o, onCloseTooltip: u, onScrollOffset: c, showCustomScrollButtons: l, offset: p = 0, totalSize: S = 0, viewportSize: f = 0, className: g, endGap: x, ...k } = e;
|
|
1760
1759
|
if (!i) throw new Error("SheetScrollbar needs an ISheet");
|
|
1761
|
-
const E = te(o, [o]), A = te(u, [u]), Z = Je.useRef(null), V = un([Z, t]), v = r ===
|
|
1762
|
-
const
|
|
1763
|
-
return v ?
|
|
1760
|
+
const E = te(o, [o]), A = te(u, [u]), Z = Je.useRef(null), V = un([Z, t]), v = r === zn.Vertical, [F, h] = Ce(() => {
|
|
1761
|
+
const ze = i.getView().getTopLeft();
|
|
1762
|
+
return v ? ze.top : ze.left;
|
|
1764
1763
|
}), R = () => {
|
|
1765
|
-
const
|
|
1766
|
-
return v ?
|
|
1767
|
-
}, [b, G] = Ce(R), [T, N] = Ce(null), [W, ve] = Ce(!1), j = r ===
|
|
1768
|
-
const
|
|
1769
|
-
return { colIndex: Math.max(
|
|
1764
|
+
const ze = i.getView().getFreezePanes();
|
|
1765
|
+
return v ? ze.coords.rowIndex === 0 ? { shift: 0, scroll: 0 } : { shift: i.getRowHeaders().findOffset(ze.coords.rowIndex) - ze.topLeft.top, scroll: ze.topLeft.top } : ze.coords.colIndex === 0 ? { shift: 0, scroll: 0 } : { shift: i.getColumnHeaders().findOffset(ze.coords.colIndex) - ze.topLeft.left, scroll: ze.topLeft.left };
|
|
1766
|
+
}, [b, G] = Ce(R), [T, N] = Ce(null), [W, ve] = Ce(!1), j = r === zn.Vertical ? i.getRowHeaders() : i.getColumnHeaders(), _ = () => {
|
|
1767
|
+
const ze = i.getUsedRange()?.getCoords() ?? xt.EmptyRange, Ee = i.getSelection().getCoords().cell;
|
|
1768
|
+
return { colIndex: Math.max(ze.colEnd, Ee.colIndex), rowIndex: Math.max(ze.rowEnd, Ee.rowIndex) };
|
|
1770
1769
|
}, [D, K] = Ce(_), y = D ? (v ? D.rowIndex : D.colIndex) + 1 : 0, C = () => {
|
|
1771
|
-
const
|
|
1772
|
-
xt.isEqualCells(D,
|
|
1770
|
+
const ze = _();
|
|
1771
|
+
xt.isEqualCells(D, ze) || K(ze);
|
|
1773
1772
|
};
|
|
1774
1773
|
ut(i.getView(), { onFreezeSplitChange: () => {
|
|
1775
1774
|
G(R);
|
|
@@ -1779,25 +1778,25 @@ const Kl = "_sheet-scrollbar_104cg_1", pi = gt(pt((e, t) => {
|
|
|
1779
1778
|
const oe = p - b.scroll, le = f - b.shift, Me = S - (b.shift + b.scroll), ue = j.findOffset(y) * (i.getView().getZoomScale() / 100) - (b.scroll + b.shift);
|
|
1780
1779
|
be(() => {
|
|
1781
1780
|
if (!T) return W && A?.(), void ve(!1);
|
|
1782
|
-
Oe(v,
|
|
1783
|
-
}, [v, p,
|
|
1784
|
-
const We = te((
|
|
1785
|
-
h(
|
|
1786
|
-
const P =
|
|
1781
|
+
Oe(v, F, le, x, T, i, j, b);
|
|
1782
|
+
}, [v, p, F, le, x, b, r, T, j, W, i]);
|
|
1783
|
+
const We = te((ze, Ee, ge) => {
|
|
1784
|
+
h(ze);
|
|
1785
|
+
const P = ze + b.scroll, Le = Ee + b.shift, Be = ge + b.shift + b.scroll;
|
|
1787
1786
|
c?.(P, Le, Be);
|
|
1788
|
-
}, [c, b]), $e = Xe((
|
|
1789
|
-
const he = O.getTextAt(O.findIndex(Ee / (Be.getView().getZoomScale() / 100) + $.scroll + $.shift)), de = { ...Le, display: (r ===
|
|
1787
|
+
}, [c, b]), $e = Xe((ze, Ee, ge, P, Le, Be, O, $) => {
|
|
1788
|
+
const he = O.getTextAt(O.findIndex(Ee / (Be.getView().getZoomScale() / 100) + $.scroll + $.shift)), de = { ...Le, display: (r === zn.Vertical ? "Row" : "Column") + ": " + he };
|
|
1790
1789
|
if (Z.current) {
|
|
1791
1790
|
const me = Z.current.querySelector('[role="slider"]');
|
|
1792
1791
|
if (me) {
|
|
1793
1792
|
const Ie = me.getBoundingClientRect();
|
|
1794
|
-
|
|
1793
|
+
ze ? de.anchor.y = Ie.top + Ie.height / 2 : de.anchor.x = Ie.left + Ie.width / 2;
|
|
1795
1794
|
}
|
|
1796
1795
|
}
|
|
1797
1796
|
ve(!0), E?.(de);
|
|
1798
1797
|
}, []), Oe = te(et.debounce($e, 90), []);
|
|
1799
|
-
return fe(() => m(
|
|
1800
|
-
N({ anchor: { x:
|
|
1798
|
+
return fe(() => m(sl, { ref: V, className: kt(g, Kl), style: n, offset: oe, viewportSize: le, totalSize: Me, orientation: r, showCustomScrollButtons: l, onMouseDown: (ze) => {
|
|
1799
|
+
N({ anchor: { x: ze.clientX, y: ze.clientY } }), ze.preventDefault();
|
|
1801
1800
|
}, onScrollOffset: We, onMouseOut: () => {
|
|
1802
1801
|
N(null);
|
|
1803
1802
|
}, onMouseUp: () => {
|
|
@@ -1813,14 +1812,14 @@ const kr = (e, t, n = null) => {
|
|
|
1813
1812
|
}
|
|
1814
1813
|
return r;
|
|
1815
1814
|
}, Rr = gt(pt((e, t) => {
|
|
1816
|
-
const { sheetHeader: n, gridRef: r, sheetElement: i, commands: o, oppositeSize: u = 30, containerWidth: c, containerHeight: l, headerText: p, freezeStart: S, gridStyle: f, verticalPadding: g, horizontalPadding: x, onSheetContextMenu: k, onResizeHeadersStart: E, onResizeHeaders: A, onResizeHeadersEnd: Z, onResizeHeadersDown: V, onResizeHeadersUp: v, scrollPoint:
|
|
1815
|
+
const { sheetHeader: n, gridRef: r, sheetElement: i, commands: o, oppositeSize: u = 30, containerWidth: c, containerHeight: l, headerText: p, freezeStart: S, gridStyle: f, verticalPadding: g, horizontalPadding: x, onSheetContextMenu: k, onResizeHeadersStart: E, onResizeHeaders: A, onResizeHeadersEnd: Z, onResizeHeadersDown: V, onResizeHeadersUp: v, scrollPoint: F, onSelectionStart: h, onSelectionEnd: R } = e, b = fe(() => n.getOrientation(), [n]), G = xe(null), [T, N] = Jt((q) => q + 1, 0), [W, ve] = Jt((q) => q + 1, 0), j = n?.getSheet(), _ = xe(!1);
|
|
1817
1816
|
Ot(() => {
|
|
1818
1817
|
_.current = !0;
|
|
1819
1818
|
}, [n]);
|
|
1820
1819
|
const D = fe(() => n.getEntireRange().getCoords().max + 1, [n]), K = fe(() => {
|
|
1821
1820
|
const q = b === Se.Orientation.Column;
|
|
1822
|
-
return { left: q ?
|
|
1823
|
-
}, [
|
|
1821
|
+
return { left: q ? F.left : 0, top: q ? 0 : F.top };
|
|
1822
|
+
}, [F]), [y, C] = Ce(j?.getView().getZoomScale() / 100), [oe, le] = Ce(null);
|
|
1824
1823
|
ut(n, { onSizesChange: (q) => {
|
|
1825
1824
|
C(j?.getView().getZoomScale() / 100), Ie(de());
|
|
1826
1825
|
} });
|
|
@@ -1840,23 +1839,23 @@ const kr = (e, t, n = null) => {
|
|
|
1840
1839
|
}, [b, y, u]), Ot(() => {
|
|
1841
1840
|
le(null), C(n?.getSheet().getView().getZoomScale() / 100), Ie(de());
|
|
1842
1841
|
}, [n]);
|
|
1843
|
-
const Oe = Xe((q) => n.at(q)?.isHidden() || n.at(q)?.getSize() === 0, [n]),
|
|
1844
|
-
|
|
1845
|
-
const se = { size:
|
|
1846
|
-
if (
|
|
1842
|
+
const Oe = Xe((q) => n.at(q)?.isHidden() || n.at(q)?.getSize() === 0, [n]), ze = Xe((q, z) => n.hiddenHeadersAt(q, z), [Oe]), Ee = te((q) => n.isSelected(q), [n]), ge = te((q) => n.isSelectedAll(q), [n]), P = Xe(() => n.getMinSize(), [n]), Le = Xe(() => n.getMaxSize(), [n]), Be = te((q, z, ce) => {
|
|
1843
|
+
z /= y;
|
|
1844
|
+
const se = { size: z = Math.max(P(), Math.min(et.roundAccurately(z, P()), Le())), hidden: !1 }, qe = [];
|
|
1845
|
+
if (z <= 0 && (se.hidden = !0, se.size = ce), qe.push({ address: { min: q, max: q }, update: se }), z < 0) {
|
|
1847
1846
|
const J = b === Se.Orientation.Column, pe = J ? me.getColOffset : me.getRowOffset, B = J ? me.getColIndex : me.getRowIndex, Y = pe(q);
|
|
1848
|
-
let re = B(Y +
|
|
1847
|
+
let re = B(Y + z);
|
|
1849
1848
|
const Ne = pe(re);
|
|
1850
|
-
Ne === Y +
|
|
1849
|
+
Ne === Y + z ? re-- : qe.push({ address: { min: re, max: re }, update: { size: Y - Ne + z } }), q - re > 1 && qe.push({ address: { min: re + 1, max: q - 1 }, update: { hidden: !0 } });
|
|
1851
1850
|
}
|
|
1852
|
-
n.updateHeaderPairs(qe), A?.(q,
|
|
1853
|
-
}, [T, n, y, A]), O = te((q,
|
|
1851
|
+
n.updateHeaderPairs(qe), A?.(q, z, ce);
|
|
1852
|
+
}, [T, n, y, A]), O = te((q, z, ce) => {
|
|
1854
1853
|
const se = b === Se.Orientation.Column;
|
|
1855
1854
|
let qe = null, J = { min: q, max: q };
|
|
1856
1855
|
if (n.isSelectedAll(q)) {
|
|
1857
1856
|
const pe = n.getSelectedRuns();
|
|
1858
1857
|
pe.length > 1 ? qe = "Resize " + (se ? "Columns" : "Rows") : J = pe[0];
|
|
1859
|
-
const B = { hidden:
|
|
1858
|
+
const B = { hidden: z <= 0, size: (z <= 0 ? ce : z) / y };
|
|
1860
1859
|
n.updateHeaderPairs(kr(pe, B, q));
|
|
1861
1860
|
}
|
|
1862
1861
|
if (J) {
|
|
@@ -1864,45 +1863,45 @@ const kr = (e, t, n = null) => {
|
|
|
1864
1863
|
let B;
|
|
1865
1864
|
B = pe === 1 ? n.getRange(J).at(0).getDisplayText() : n.getRange(J).toString(), qe = `Resize ${se ? "Column" : "Row"}${pe > 1 ? "s" : ""} '${B}'`;
|
|
1866
1865
|
}
|
|
1867
|
-
Z?.(q,
|
|
1868
|
-
}, [T, n, Z]), $ = te((q,
|
|
1866
|
+
Z?.(q, z, qe);
|
|
1867
|
+
}, [T, n, Z]), $ = te((q, z) => {
|
|
1869
1868
|
const ce = b === Se.Orientation.Column;
|
|
1870
|
-
E(q,
|
|
1869
|
+
E(q, z, `Resize ${ce ? "Column" : "Row"}(s)`);
|
|
1871
1870
|
}, [E]), he = te((q) => {
|
|
1872
|
-
let
|
|
1871
|
+
let z = !1;
|
|
1873
1872
|
const ce = b === Se.Orientation.Column, se = n.getSheet().getEntireRange().getCoords(), qe = [], J = n.getSelectedRuns(), pe = (B) => {
|
|
1874
1873
|
let Y;
|
|
1875
1874
|
Y = ce ? { colStart: B.min, rowStart: se.rowStart, colEnd: B.max, rowEnd: se.rowEnd } : { colStart: se.colStart, rowStart: B.min, colEnd: se.colEnd, rowEnd: B.max }, qe.push(Y);
|
|
1876
1875
|
};
|
|
1877
1876
|
for (let B = 0; B < J.length; B++) {
|
|
1878
1877
|
const Y = J[B];
|
|
1879
|
-
Y.value.isSelectedAll && (Y.min <= q && Y.max >= q && (
|
|
1878
|
+
Y.value.isSelectedAll && (Y.min <= q && Y.max >= q && (z = !0), pe(Y));
|
|
1880
1879
|
}
|
|
1881
|
-
if (
|
|
1880
|
+
if (z || pe({ min: q, max: q }), n.getSheet().getRanges(qe).autoFit({ orientations: ce ? Se.Orientations.Column : Se.Orientations.Row }), Oe(q)) {
|
|
1882
1881
|
const B = { hidden: null }, Y = kr(J, B);
|
|
1883
|
-
|
|
1882
|
+
z || Y.push({ address: q, update: B }), n.updateHeaderPairs(Y);
|
|
1884
1883
|
}
|
|
1885
1884
|
Z?.(q, null, "Resize Column(s)");
|
|
1886
1885
|
}, [T, n, Z, Oe]), de = () => {
|
|
1887
1886
|
const q = b === Se.Orientation.Column;
|
|
1888
|
-
return { getColOffset: (
|
|
1889
|
-
}, [me, Ie] = Ce(() => de()), ae = Xe((q,
|
|
1887
|
+
return { getColOffset: (z) => q ? n.findOffset(z) : z === 0 ? 0 : u / y, getColIndex: (z) => q ? n.findIndex(z) : 0, getRowOffset: (z) => q ? z === 0 ? 0 : u / y : n.findOffset(z), getRowIndex: (z) => q ? 0 : n.findIndex(z) };
|
|
1888
|
+
}, [me, Ie] = Ce(() => de()), ae = Xe((q, z) => q.nativeEvent.which !== oi.Right || !ge(b === Se.Orientation.Column ? z.colIndex : z.rowIndex), [b, ge]), Re = te((q) => {
|
|
1890
1889
|
i.focusSheet();
|
|
1891
1890
|
}, [i]), s = te((q) => {
|
|
1892
1891
|
j?.getSelection().updateCoords(q);
|
|
1893
1892
|
}, [j]), { ...Ve } = ii({ gridRef: r, commands: null, layout: me, selection: We, fillHandleBorderColor: f.body.fill, selectionBackgroundColor: f.selection.fill, selectionBorderColor: f.selection.strokeFill, selectionRemoveBackgroundColor: f.selectionRemove.fill, selectionRemoveBorderColor: f.selectionRemove.strokeFill, disableTouchSelection: !0, onSelectionChange: s, canSelectionSpanMergedCells: (q) => {
|
|
1894
|
-
const
|
|
1895
|
-
return
|
|
1893
|
+
const z = j.getRange(q);
|
|
1894
|
+
return z.isEntireColumns() || z.isEntireRows();
|
|
1896
1895
|
} }), Ue = te(() => {
|
|
1897
1896
|
h?.();
|
|
1898
1897
|
const q = j?.getSelection();
|
|
1899
1898
|
q && q.setAdjusting(q.getCoords());
|
|
1900
|
-
}, [j, h]),
|
|
1899
|
+
}, [j, h]), Fe = te(async () => {
|
|
1901
1900
|
j?.getSelection().setAdjusting(null), R?.();
|
|
1902
|
-
}, [j, R]), { ...a } = bl({ orientation: b, headerCount: D, gridRef: G, gridMainRef: r, newSelection: Ve?.newSelection, modifySelection: Ve?.modifySelection, appendSelection: Ve?.appendSelection, clearSelections: Ve?.clearSelections, pointerDownInterceptor: ae, onPointerUp: Re, onDragStart: Ue, onDragEnd:
|
|
1901
|
+
}, [j, R]), { ...a } = bl({ orientation: b, headerCount: D, gridRef: G, gridMainRef: r, newSelection: Ve?.newSelection, modifySelection: Ve?.modifySelection, appendSelection: Ve?.appendSelection, clearSelections: Ve?.clearSelections, pointerDownInterceptor: ae, onPointerUp: Re, onDragStart: Ue, onDragEnd: Fe }), I = f.selection?.strokeFill;
|
|
1903
1902
|
be(() => {
|
|
1904
1903
|
if (!G.current) return void le(null);
|
|
1905
|
-
const q = b === Se.Orientation.Column,
|
|
1904
|
+
const q = b === Se.Orientation.Column, z = n.getSelectedRuns(), ce = n.isProtected() ? null : Be, se = (J, pe, B) => {
|
|
1906
1905
|
if (B) return m("div", q ? { style: { position: "absolute", borderBottom: `${f.headerSelection.strokeWidth}px solid ${I}`, pointerEvents: "none", top: `${it.boundPixel(-f.headerSelection.strokeWidth / 2)}px`, left: `${it.boundPixel(B.x - f.headerSelection.strokeWidth)}px`, width: `${it.boundPixel(B.width + f.headerSelection.strokeWidth + 1, !0)}px`, height: u + f.headerSelection.strokeWidth - 0.5 + "px" } } : { style: { position: "absolute", borderRight: `${f.headerSelection.strokeWidth}px solid ${I}`, pointerEvents: "none", top: `${it.boundPixel(B.y - f.headerSelection.strokeWidth)}px`, left: `${it.boundPixel(-f.headerSelection.strokeWidth / 2)}px`, width: u + f.headerSelection.strokeWidth - 0.5 + "px", height: `${it.boundPixel(B.height + f.headerSelection.strokeWidth + 1, !0)}px` } }, J);
|
|
1907
1906
|
}, qe = (J, pe, B) => {
|
|
1908
1907
|
const Y = { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -1924,21 +1923,21 @@ const kr = (e, t, n = null) => {
|
|
|
1924
1923
|
let re = [];
|
|
1925
1924
|
const Ne = [], Ke = B.length;
|
|
1926
1925
|
for (let De = 0; De < Ke; De++) {
|
|
1927
|
-
const He = B[De], lt = De < Ke - 1 ? B[De + 1] : He +
|
|
1928
|
-
if (!pe || pe.max < He) if (
|
|
1929
|
-
const vt = et.findEqualOrGreater(
|
|
1930
|
-
pe =
|
|
1926
|
+
const He = B[De], lt = De < Ke - 1 ? B[De + 1] : He + ze(He + 1, !1) + 1, rt = He + 1 !== lt;
|
|
1927
|
+
if (!pe || pe.max < He) if (z.length > 0 && z[z.length - 1].max >= He) {
|
|
1928
|
+
const vt = et.findEqualOrGreater(z, He, (tt) => tt.max);
|
|
1929
|
+
pe = z[vt];
|
|
1931
1930
|
} else pe = null;
|
|
1932
1931
|
let at = !1, Ct = !1;
|
|
1933
1932
|
if (pe?.value && (pe.min <= He || pe.min <= lt && !rt) && (at = !0, Ct = pe.value.isSelectedAll), He === Y) {
|
|
1934
1933
|
let vt = !1, tt = !1;
|
|
1935
1934
|
pe?.value && pe.min <= He && (vt = !0, tt = pe.value.isSelectedAll), He > 0 && Ne.push({ index: He - 1, isNextHidden: rt, isSelected: vt, isSelectedAll: tt, disabledResize: !0 });
|
|
1936
1935
|
}
|
|
1937
|
-
if (Ct && re.push(Ne.length), Ne.push({ index: He, isHidden: De === 0 &&
|
|
1936
|
+
if (Ct && re.push(Ne.length), Ne.push({ index: He, isHidden: De === 0 && ze(He, !1) > 0, isNextHidden: rt, isSelected: at, isSelectedAll: Ct, onDividerMouseDown: V, onDividerResizeStart: $, onDividerResize: ce, onDividerMouseUp: v, onDividerResizeEnd: O, onDividerAutoFit: he }), rt) {
|
|
1938
1937
|
let vt = !1, tt = !1;
|
|
1939
|
-
if (pe && pe.min >= He && pe.max <= lt - 1 && pe.value.isSelectedAll && re.push(Ne.length), !(pe?.value && pe.max >= lt)) if (
|
|
1940
|
-
const yt = et.findEqualOrGreater(
|
|
1941
|
-
pe =
|
|
1938
|
+
if (pe && pe.min >= He && pe.max <= lt - 1 && pe.value.isSelectedAll && re.push(Ne.length), !(pe?.value && pe.max >= lt)) if (z.length > 0 && z[z.length - 1].max >= lt) {
|
|
1939
|
+
const yt = et.findEqualOrGreater(z, lt, (bt) => bt.max);
|
|
1940
|
+
pe = z[yt];
|
|
1942
1941
|
} else pe = null;
|
|
1943
1942
|
pe?.value && pe.min <= lt && (vt = pe.value.isSelected, tt = pe.value.isSelectedAll), lt > 0 && Ne.push({ index: lt - 1, isHidden: !0, isSelected: vt, isSelectedAll: tt, onDividerMouseDown: V, onDividerResizeStart: $, onDividerResize: ce, onDividerMouseUp: v, onDividerResizeEnd: O, onDividerAutoFit: he });
|
|
1944
1943
|
}
|
|
@@ -1950,7 +1949,7 @@ const kr = (e, t, n = null) => {
|
|
|
1950
1949
|
let at = null;
|
|
1951
1950
|
q ? (at = J.getRangeCoordsBounds({ rowStart: 0, rowEnd: 0, colStart: rt, colEnd: rt }), at.x + at.width > J.getBounds().width && (De -= 1, De === 0 && (De = -1))) : (at = J.getRangeCoordsBounds({ rowStart: rt, rowEnd: rt, colStart: 0, colEnd: 0 }), at.y + at.height > J.getBounds().height && (De -= 1, De === 0 && (De = -1)));
|
|
1952
1951
|
}
|
|
1953
|
-
const He =
|
|
1952
|
+
const He = z?.[z.length - 1], lt = J.getAnchor();
|
|
1954
1953
|
if (lt === "t" || lt === "l") {
|
|
1955
1954
|
const rt = Ne[re[Math.max(0, re.length - 1)]];
|
|
1956
1955
|
rt.showTouchDivider = He && He.max <= rt.index;
|
|
@@ -1960,21 +1959,21 @@ const kr = (e, t, n = null) => {
|
|
|
1960
1959
|
for (let De = 0; De < Pe; De++) ke[De] = m(ql, { orientation: b, view: J, headerStyle: _e, headerStyleSelect: Te, headerStyleSelectAll: Ge, headerStyleHover: we, disabled: n.isProtected(), ...Ne[De] }, `divider${De}`);
|
|
1961
1960
|
return ke;
|
|
1962
1961
|
}, (J) => {
|
|
1963
|
-
const pe = [], B =
|
|
1964
|
-
for (let Y = 0;
|
|
1962
|
+
const pe = [], B = z.length;
|
|
1963
|
+
for (let Y = 0; z && Y < B; Y++) pe.push(se(`selection:${J.getAnchor()}:${Y}`, 0, qe(z[Y].min, z[Y].max, J)));
|
|
1965
1964
|
return pe;
|
|
1966
1965
|
}]);
|
|
1967
1966
|
}, [W, !0, I, f, me, D, S, T, y]), be(() => {
|
|
1968
1967
|
G.current?.invalidate();
|
|
1969
1968
|
}, [T]);
|
|
1970
1969
|
const H = te((q) => p ? p(q) : n.getTextAt(q), [p, n]), d = te((q) => {
|
|
1971
|
-
const { header:
|
|
1972
|
-
return m(Cl, { orientation: b, index: b === Se.Orientation.Column ? J.colStart : J.rowStart, isSelected: Ee, isSelectedAll: ge, zoomScale: 100 * y, headerText: H, headerStyle:
|
|
1970
|
+
const { header: z, headerSelect: ce, headerSelectAll: se, headerHover: qe } = f ?? {}, { range: J, key: pe, ...B } = q;
|
|
1971
|
+
return m(Cl, { orientation: b, index: b === Se.Orientation.Column ? J.colStart : J.rowStart, isSelected: Ee, isSelectedAll: ge, zoomScale: 100 * y, headerText: H, headerStyle: z, headerStyleSelect: ce, headerStyleSelectAll: se, headerStyleHover: qe, verticalPadding: g, horizontalPadding: x, ...B }, pe);
|
|
1973
1972
|
}, [T, D, f, y, n]), M = cn(), U = fe(() => {
|
|
1974
|
-
const q = "white",
|
|
1973
|
+
const q = "white", z = "black", ce = {};
|
|
1975
1974
|
if (it.detectIt().primaryInput !== "touch") {
|
|
1976
|
-
let se = b === Se.Orientation.Column ? `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${
|
|
1977
|
-
M.getMode()?.key === "formatPainter" && (se = `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='${
|
|
1975
|
+
let se = b === Se.Orientation.Column ? `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 8,14.5 2.3125,8.8125 h 3.25 V 1.5 h 4.875 v 7.3125 h 3.25 z' stroke='${z}' fill='${q}'/%3E%3C/g%3E%3C/svg%3E%0A") 8 15, pointer` : `url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${z}' fill='${q}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;
|
|
1976
|
+
M.getMode()?.key === "formatPainter" && (se = `url("data:image/svg+xml,%3Csvg width='30' height='22' viewBox='0 0 30 22' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 26.737611,2.811068 V 2.0241451 c 0,-0.4328075 -0.354115,-0.7869227 -0.786923,-0.7869227 h -9.443074 c -0.432808,0 -0.786923,0.3541152 -0.786923,0.7869227 v 3.1476914 c 0,0.4328076 0.354115,0.7869235 0.786923,0.7869235 h 9.443074 c 0.432808,0 0.786923,-0.3541159 0.786923,-0.7869235 V 4.3849137 h 0.786923 v 3.1476915 h -7.869229 v 8.6561518 c 0,0.432808 0.354116,0.786923 0.786923,0.786923 h 1.573846 c 0.432807,0 0.786923,-0.354115 0.786923,-0.786923 V 9.1064513 H 29.09838 V 2.811068 Z M 10.714339,6.2116849 c -1.60877,0.0017 -3.2175361,0.00425 -4.8263048,0.00609 0.0012,1.5756989 0.00158,3.1513905 0.00244,4.7270891 -1.5978311,0.0017 -3.1956617,0.0034 -4.7934919,0.0043 0.00335,1.740011 0.00655,3.480012 0.00988,5.220023 1.5954589,0 3.1909181,0 4.7863775,0 -0.0017,1.606793 -0.00353,3.213585 -0.0051,4.820375 1.7440936,0.0016 3.4881881,0.0033 5.2322842,0.005 -0.0014,-1.608503 -0.0018,-3.217015 -0.0028,-4.825519 1.58518,0 3.17036,0 4.755543,0 0.0033,-1.741851 0.0073,-3.483705 0.01072,-5.225556 -1.58808,0 -3.176158,0 -4.764238,0 0,-1.5775391 0,-3.1550792 0,-4.7326117 -0.135065,1.3e-4 -0.270128,1.982e-4 -0.40519,4.047e-4 z' stroke='${z}' fill='${q}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`), ce.cursor = se;
|
|
1978
1977
|
}
|
|
1979
1978
|
return ce.backgroundColor = f?.header?.fill || "transparent", ce;
|
|
1980
1979
|
}, [b, T, M, f]), X = $t(t, () => ({ scrollTo: (q) => {
|
|
@@ -1984,13 +1983,13 @@ const kr = (e, t, n = null) => {
|
|
|
1984
1983
|
}, getGridElement: () => G.current }), []), ie = Xe((q) => {
|
|
1985
1984
|
a.onPointerDown(q);
|
|
1986
1985
|
}, [a]), w = Xe((q) => {
|
|
1987
|
-
const
|
|
1988
|
-
if (!
|
|
1986
|
+
const z = a.getCellCoordsFromClient(q.clientX, q.clientY);
|
|
1987
|
+
if (!z || !k) return;
|
|
1989
1988
|
const ce = b === Se.Orientation.Column;
|
|
1990
|
-
k({ originalEvent: q, clientX: q.clientX, clientY: q.clientY, rowIndex: ce ? -1 :
|
|
1989
|
+
k({ originalEvent: q, clientX: q.clientX, clientY: q.clientY, rowIndex: ce ? -1 : z.rowIndex, colIndex: ce ? z.colIndex : -1 }), q.stopPropagation(), q.preventDefault();
|
|
1991
1990
|
}, [a, k]), L = fe(() => {
|
|
1992
1991
|
const q = b === Se.Orientation.Column;
|
|
1993
|
-
return m("div", { ref: X, children: m(li, { className: "sheet-header", style: U, ref: G, scrollPoint: K, columnCount: q ? D : 1, rowCount: q ? 1 : D, width: q ? c : u, height: q ? u : l, freezeLeft: q ? S : void 0, freezeTop: q ? void 0 : S, hiddenColumnsAt: q ?
|
|
1992
|
+
return m("div", { ref: X, children: m(li, { className: "sheet-header", style: U, ref: G, scrollPoint: K, columnCount: q ? D : 1, rowCount: q ? 1 : D, width: q ? c : u, height: q ? u : l, freezeLeft: q ? S : void 0, freezeTop: q ? void 0 : S, hiddenColumnsAt: q ? ze : void 0, hiddenRowsAt: q ? void 0 : ze, showGridLines: !1, layout: me, clipCells: !1, allowOverlaysOverflow: !0, enableMouseWheel: !1, onContextMenu: w, onPointerDown: ie, zoom: y, renderCell: d, renderOverlays: oe }) });
|
|
1994
1993
|
}, [oe, me, c, l, K, U, W]);
|
|
1995
1994
|
return be(() => {
|
|
1996
1995
|
_.current = !1, G.current?.invalidate(), ve();
|
|
@@ -2050,9 +2049,9 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2050
2049
|
}, [r, e]), be(() => {
|
|
2051
2050
|
if (!r) return;
|
|
2052
2051
|
const h = { disabled: !t.getProtection().isFormatCellsAllowed() };
|
|
2053
|
-
r.getCommand("pasteValues").updateCallback((R) => v.paste({ ...Ql, ...R })).update(h), r.getCommand("pasteFormats").updateCallback((R, b) => v.paste({ ...ea, description: b.
|
|
2052
|
+
r.getCommand("pasteValues").updateCallback((R) => v.paste({ ...Ql, ...R })).update(h), r.getCommand("pasteFormats").updateCallback((R, b) => v.paste({ ...ea, description: b.getLabel(), ...R })).update(h), r.getCommand("pasteFormulas").updateCallback((R, b) => v.paste({ ...ta, description: b.getLabel(), ...R })).update(h), r.getCommand("pasteTranspose").updateCallback((R, b) => v.paste({ ...na, description: b.getLabel(), ...R })).update(h), r.getCommand("pasteLinks").updateCallback((R, b) => v.paste({ ...oa, description: b.getLabel(), ...R })).update(h), r.getCommand("cut").update(h), r.getCommand("paste").update(h);
|
|
2054
2053
|
}, [t, r]);
|
|
2055
|
-
const
|
|
2054
|
+
const F = fe(() => {
|
|
2056
2055
|
if (!E || !x.current) return;
|
|
2057
2056
|
const h = E.key;
|
|
2058
2057
|
if (h !== "copy" && h !== "cut" && h !== "formatPainter") return;
|
|
@@ -2068,7 +2067,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2068
2067
|
return j;
|
|
2069
2068
|
} : null;
|
|
2070
2069
|
}, [E, t, n, c, p, l, S]);
|
|
2071
|
-
return { ...v, clipboard: V, overlays:
|
|
2070
|
+
return { ...v, clipboard: V, overlays: F };
|
|
2072
2071
|
}, ia = gt(pt((e, t) => {
|
|
2073
2072
|
const { view: n, element: r, sheet: i, gridStyle: o, commands: u } = e, c = o.body ?? {}, l = i.getView(), { overlays: p } = ra({ element: r, sheet: i, sheetView: l, commands: u, copyForegroundColor: o.selection.strokeFill, copyBackgroundColor: c.fill, cutForegroundColor: o.selectionRemove.strokeFill, cutBackgroundColor: c.fill });
|
|
2074
2073
|
return ut(i?.getSelection(), { onChange(S) {
|
|
@@ -2078,7 +2077,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2078
2077
|
})), la = "_sheet-selection_12wyx_5", aa = { key: "dragCut", description: "Drag selection to move cell contents.", cursor: "move" }, sa = { key: "dragCutInsert", description: "Drag selection to insert cell contents.", cursor: "copy" }, ca = { key: "dragCopy", description: "Drag selection to copy cell contents." }, da = { key: "dragCopyInsert", description: "Drag selection to insert copied cell contents.", cursor: "move" }, Tr = (e, t) => t.ctrlKey && t.shiftKey ? da : t.ctrlKey ? ca : t.shiftKey ? sa : aa, ua = { key: "fill", description: "Drag selection to extend series or fill.", cursor: "crosshair" }, ga = gt(pt((e, t) => {
|
|
2079
2078
|
const { view: n, commands: r, className: i, onFirstRender: o, onShowTooltip: u, onCloseTooltip: c, sheet: l, gridRef: p, gridStyle: S, isActive: f, ...g } = e, x = n?.getBounds(), k = te(u, [u]), E = te(c, [c]), [A, Z] = Ce(() => l?.getSelection().getCoords()), V = te((O) => {
|
|
2080
2079
|
xt.isEqualSelectionCoords(O, A) || l && l.getSelection().updateCoords(O);
|
|
2081
|
-
}, [l, A]), v = cn(),
|
|
2080
|
+
}, [l, A]), v = cn(), F = xe(null), [h, R] = Ce(l?.getProtection().isLocked()), [b, G] = Ce(l?.getView().getMovableSelection().length > 0), T = it.detectIt().primaryInput === "touch", N = !T && f, W = v.getMode()?.args?.stateAndCoords?.coords ?? null, ve = W !== null || b, j = te((O) => {
|
|
2082
2081
|
const $ = xt.cellToRange(O);
|
|
2083
2082
|
if (l.isClosed()) return $;
|
|
2084
2083
|
const he = l.getRange($, { ignoreHidden: !0 }).getMerges();
|
|
@@ -2114,7 +2113,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2114
2113
|
} }), ut(l, { onProtectionChange: () => {
|
|
2115
2114
|
R(l.getProtection().isLocked());
|
|
2116
2115
|
} });
|
|
2117
|
-
const { body: ue = {} } = S || {}, We = Un(), $e = n.getLayout(), Oe = !(N && A.ranges.length <= 1 && W === null && !h && (!v.getMode() || Me)), { cursor:
|
|
2116
|
+
const { body: ue = {} } = S || {}, We = Un(), $e = n.getLayout(), Oe = !(N && A.ranges.length <= 1 && W === null && !h && (!v.getMode() || Me)), { cursor: ze, renderOverlay: Ee, onPointerDown: ge } = ii({ gridRef: p, commands: r, layout: $e, getCellCoordsAsRangeCoords: j, selection: A, fillHandleBorderColor: ue.fill, selectionBackgroundColor: f ? S.selection.fill : S.selectionInactive.fill, selectionBorderColor: f ? S.selection.strokeFill : S.selectionInactive.strokeFill, selectionRemoveBackgroundColor: f ? S.selectionRemove.fill : S.selectionInactive.fill, selectionRemoveBorderColor: f ? S.selectionRemove.strokeFill : S.selectionInactive.strokeFill, disableFillDrag: Oe, disableMoveDrag: T || !(f && A.ranges.length <= 1 && W === null && !h), disableTouchSelection: ve, onSelectionChange: V, onSelectionDragStart: oe, onSelectionDragEnd: le, onMoveDragStart: (O, $, he) => {
|
|
2118
2117
|
v.setMode(Tr(0, he));
|
|
2119
2118
|
}, onMoveDragUpdate: (O, $, he) => {
|
|
2120
2119
|
v.setMode(Tr(0, he));
|
|
@@ -2127,7 +2126,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2127
2126
|
const s = de.getDifferences(O);
|
|
2128
2127
|
let Ve = !1;
|
|
2129
2128
|
const Ue = s.getCount();
|
|
2130
|
-
for (let
|
|
2129
|
+
for (let Fe = 0; !Ve && Fe < Ue; Fe++) Ve = s.at(Fe).isContentful();
|
|
2131
2130
|
if (Ve && await We?.showOptions({ title: "Confirm", description: "There is already data here. Do you want to replace it?", options: ["Replace", "Cancel"], defaultOption: "Replace" }) !== "Replace")
|
|
2132
2131
|
return;
|
|
2133
2132
|
}
|
|
@@ -2154,16 +2153,16 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2154
2153
|
} catch (me) {
|
|
2155
2154
|
We?.showError?.(me);
|
|
2156
2155
|
} finally {
|
|
2157
|
-
|
|
2156
|
+
F.current = null, de?.();
|
|
2158
2157
|
}
|
|
2159
2158
|
}, onFillPreview: (O, $, he) => {
|
|
2160
2159
|
if (p.current && k) {
|
|
2161
2160
|
v.setMode(ua);
|
|
2162
2161
|
try {
|
|
2163
|
-
|
|
2164
|
-
|
|
2162
|
+
F.current?.direction !== he && (F.current = null, l.getRange(O).autoFill($, { previewOnly: (Ue) => {
|
|
2163
|
+
F.current = { callback: Ue, direction: he };
|
|
2165
2164
|
} }));
|
|
2166
|
-
const de =
|
|
2165
|
+
const de = F.current?.callback?.($);
|
|
2167
2166
|
if (!de || de.isEmpty()) return;
|
|
2168
2167
|
const me = de.toText();
|
|
2169
2168
|
if (!me) return;
|
|
@@ -2171,20 +2170,20 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2171
2170
|
let Re = 0, s = 0, Ve = En.Bottom;
|
|
2172
2171
|
if (he === Se.Direction.Down) {
|
|
2173
2172
|
Re = $e.getColOffset(Ie.colEnd + 1) - ae.x;
|
|
2174
|
-
const Ue = $e.getRowOffset(Ie.rowEnd),
|
|
2175
|
-
s =
|
|
2173
|
+
const Ue = $e.getRowOffset(Ie.rowEnd), Fe = $e.getRowOffset(Ie.rowEnd + 1);
|
|
2174
|
+
s = Fe - (Fe - Ue) / 2 - ae.y, Ve = En.Right;
|
|
2176
2175
|
} else if (he === Se.Direction.Right) {
|
|
2177
2176
|
s = $e.getRowOffset(Ie.rowEnd + 1) - ae.y;
|
|
2178
|
-
const Ue = $e.getColOffset(Ie.colEnd),
|
|
2179
|
-
Re =
|
|
2177
|
+
const Ue = $e.getColOffset(Ie.colEnd), Fe = $e.getColOffset(Ie.colEnd + 1);
|
|
2178
|
+
Re = Fe - (Fe - Ue) / 2 - ae.x, Ve = En.Bottom;
|
|
2180
2179
|
} else if (he === Se.Direction.Up) {
|
|
2181
2180
|
Re = $e.getColOffset(Ie.colEnd + 1) - ae.x;
|
|
2182
|
-
const Ue = $e.getRowOffset(Ie.rowStart),
|
|
2183
|
-
s =
|
|
2181
|
+
const Ue = $e.getRowOffset(Ie.rowStart), Fe = $e.getRowOffset(Ie.rowStart + 1);
|
|
2182
|
+
s = Fe - (Fe - Ue) / 2 - ae.y, Ve = En.Right;
|
|
2184
2183
|
} else if (he === Se.Direction.Left) {
|
|
2185
2184
|
s = $e.getRowOffset(Ie.rowEnd + 1) - ae.y;
|
|
2186
|
-
const Ue = $e.getColOffset(Ie.colStart),
|
|
2187
|
-
Re =
|
|
2185
|
+
const Ue = $e.getColOffset(Ie.colStart), Fe = $e.getColOffset(Ie.colStart + 1);
|
|
2186
|
+
Re = Fe - (Fe - Ue) / 2 - ae.x, Ve = En.Bottom;
|
|
2188
2187
|
}
|
|
2189
2188
|
k({ anchor: { x: Re, y: s }, display: me, placement: Ve });
|
|
2190
2189
|
} catch (de) {
|
|
@@ -2192,7 +2191,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2192
2191
|
}
|
|
2193
2192
|
}
|
|
2194
2193
|
}, onFillDone: () => {
|
|
2195
|
-
|
|
2194
|
+
F.current = null, v.setMode(null), E?.();
|
|
2196
2195
|
} }), P = te((O) => {
|
|
2197
2196
|
ge(it.createSyntheticEvent(O));
|
|
2198
2197
|
}, [ge, W]);
|
|
@@ -2205,7 +2204,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2205
2204
|
const Le = $t(t, () => ({}), []), Be = xe(null);
|
|
2206
2205
|
return m("div", { className: kt(i, "sheet-selection", la), style: { position: "absolute", width: x?.width, height: x?.height, overflow: "hidden", pointerEvents: "none", willChange: "none" }, ref: un([Le, Be]), ...g, children: Ee(n) });
|
|
2207
2206
|
})), io = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), ha = { fireOnModelChange: !1 }, ma = gt(pt((e, t) => {
|
|
2208
|
-
const { children: n, view: r, movable: i, onRefLoad: o, onRefUnload: u, onHide: c, onShow: l, onUnFocus: p, isDragging: S, updateFrameBounds: f, dragStart: g, style: x, disabled: k, renderMovable: E, ...A } = e, [Z, V] = Ce(io), [v,
|
|
2207
|
+
const { children: n, view: r, movable: i, onRefLoad: o, onRefUnload: u, onHide: c, onShow: l, onUnFocus: p, isDragging: S, updateFrameBounds: f, dragStart: g, style: x, disabled: k, renderMovable: E, ...A } = e, [Z, V] = Ce(io), [v, F] = Ce(null), [h, R] = Ce(!1), b = xe(null);
|
|
2209
2208
|
Ot(() => {
|
|
2210
2209
|
if (i.isClosed()) return;
|
|
2211
2210
|
const T = i.getBounds();
|
|
@@ -2235,12 +2234,12 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2235
2234
|
const N = T.shiftKey || T.ctrlKey, W = i.isSelected(), ve = T.currentTarget;
|
|
2236
2235
|
N && W ? i.unselect() : (W && !N || await i.select({ addToSelection: N }), g(T.nativeEvent, ve), ve.focus());
|
|
2237
2236
|
}, onFocus: (T) => {
|
|
2238
|
-
T.relatedTarget && !v &&
|
|
2237
|
+
T.relatedTarget && !v && F(T.relatedTarget), R(!0);
|
|
2239
2238
|
}, onBlur: (T) => {
|
|
2240
|
-
v && !b?.current?.contains(T.relatedTarget) &&
|
|
2239
|
+
v && !b?.current?.contains(T.relatedTarget) && F(null), T.relatedTarget && R(!1);
|
|
2241
2240
|
}, ...A, children: G });
|
|
2242
2241
|
})), pa = "_movable-area_314c6_5", fa = gt(pt((e, t) => {
|
|
2243
|
-
const { view: n, movables: r, movablesView: i, renderMovable: o, transactional: u, onUnFocus: c, onFocus: l, disabled: p = !1, disableDrag: S = !1, disableResize: f = !1, className: g, style: x, renderDirections: k = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: E, ...A } = e, Z = n.getBounds(), V = te(E, [E]), v = te(c, [c]),
|
|
2242
|
+
const { view: n, movables: r, movablesView: i, renderMovable: o, transactional: u, onUnFocus: c, onFocus: l, disabled: p = !1, disableDrag: S = !1, disableResize: f = !1, className: g, style: x, renderDirections: k = ["nw", "n", "ne", "w", "e", "sw", "s", "se"], onFirstRender: E, ...A } = e, Z = n.getBounds(), V = te(E, [E]), v = te(c, [c]), F = te(l, [l]), [h, R] = Ce([]), [b, G] = Ce(!1), [T, N] = Ce(!1), W = xe(!0), ve = xe(/* @__PURE__ */ new Map()), j = xe(/* @__PURE__ */ new Map()), _ = xe(/* @__PURE__ */ new Map()), D = xe(/* @__PURE__ */ new Map()), K = xe(/* @__PURE__ */ new Map()), y = xe({ onRequestFocus: (d) => (he(d), null) }), C = xe(null), oe = xe(null), le = xe(null), [Me, ue] = Jt((d) => d + 1, 0);
|
|
2244
2243
|
Ot(() => {
|
|
2245
2244
|
ue();
|
|
2246
2245
|
}, [n, r]), ut(r, { onCollectionChange: () => {
|
|
@@ -2272,9 +2271,9 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2272
2271
|
const X = _.current.get(U);
|
|
2273
2272
|
X && M.indexOf(U) !== -1 && d.push(X);
|
|
2274
2273
|
}), R((U) => et.isEqualArrays(U, d) ? U : d);
|
|
2275
|
-
}, Oe = xe(null),
|
|
2274
|
+
}, Oe = xe(null), ze = xe(null), Ee = fe(() => (ze.current || (ze.current = new Promise((d) => {
|
|
2276
2275
|
Oe.current = d;
|
|
2277
|
-
})),
|
|
2276
|
+
})), ze.current), []), ge = xe(null), P = te(async (d, M) => {
|
|
2278
2277
|
ge.current = M, await (async () => !(!await Ee.then() || !le.current))() && ge.current === M && le.current.dragStart(d, M);
|
|
2279
2278
|
}, [h]), [Le, Be] = Ce(!1), O = xe(null), $ = xe(null), he = te(async (d = null) => {
|
|
2280
2279
|
if (d || (d = i.getMovableSelection()[0]), !d) return v?.(), !1;
|
|
@@ -2287,8 +2286,8 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2287
2286
|
const de = fe(() => {
|
|
2288
2287
|
const d = r.getItems({ address: n.getVisibleRangeCoords(), ignoreHidden: !0 });
|
|
2289
2288
|
if (d.length === 0 && ve.current.size === 0) return null;
|
|
2290
|
-
const M = (L, q,
|
|
2291
|
-
const se = L.isSelected(), qe = { tabIndex:
|
|
2289
|
+
const M = (L, q, z, ce = !0) => {
|
|
2290
|
+
const se = L.isSelected(), qe = { tabIndex: z, view: n, movable: L, onRefLoad: (J) => {
|
|
2292
2291
|
O.current === L && (J.focus(), $.current = J, O.current = null), _.current.set(L, J), j.current.set(J, L), q.rendered = !0, $e();
|
|
2293
2292
|
}, onRefUnload: (J) => {
|
|
2294
2293
|
_.current.delete(L), j.current.delete(J), q.rendered = !1, $e();
|
|
@@ -2312,8 +2311,8 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2312
2311
|
for (let L = 0; L < d.length; L++) {
|
|
2313
2312
|
const q = d[L];
|
|
2314
2313
|
if (q.isClosed()) continue;
|
|
2315
|
-
let
|
|
2316
|
-
|
|
2314
|
+
let z = U.get(q);
|
|
2315
|
+
z || (z = { frame: null, shown: null, onShow: null, onHide: null, rendered: !1, doShow: (ce, se) => {
|
|
2317
2316
|
if (!se || se.shown === !0) return;
|
|
2318
2317
|
se.shown = !0;
|
|
2319
2318
|
const qe = ++se.visibilityRequestId;
|
|
@@ -2326,7 +2325,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2326
2325
|
se.shown = !1;
|
|
2327
2326
|
const qe = ++se.visibilityRequestId, J = await Promise.resolve(se.onHide?.(ce));
|
|
2328
2327
|
qe === se.visibilityRequestId && J !== !1 && (se.shown = !1, ve.current.delete(ce), ue());
|
|
2329
|
-
}, visibilityRequestId: 0 }),
|
|
2328
|
+
}, visibilityRequestId: 0 }), z.frame = M(q, z, L, !0), ie.push(z.frame), z.doShow(q, z), U.delete(q), X.set(q, z);
|
|
2330
2329
|
}
|
|
2331
2330
|
const w = [];
|
|
2332
2331
|
return i.getMovableSelection().forEach((L) => {
|
|
@@ -2358,17 +2357,17 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2358
2357
|
}, [Re.current]);
|
|
2359
2358
|
const s = $t(t, () => ({ isMovableArea: () => !0, focusMovable: he, focus: () => {
|
|
2360
2359
|
he();
|
|
2361
|
-
} }), [i]), [Ve, Ue] = Ce(null),
|
|
2360
|
+
} }), [i]), [Ve, Ue] = Ce(null), Fe = xe(!1), a = xe(!1), I = xe(!1);
|
|
2362
2361
|
be(() => {
|
|
2363
|
-
if (p || h.length === 0 || I.current ||
|
|
2362
|
+
if (p || h.length === 0 || I.current || Fe.current) return;
|
|
2364
2363
|
if (a.current) return void requestAnimationFrame(() => {
|
|
2365
2364
|
le.current && C.current && le.current.refTargets.length > 0 && (I.current = !0, Oe.current?.(!0)), R([...h]);
|
|
2366
2365
|
});
|
|
2367
|
-
|
|
2366
|
+
Fe.current = !0;
|
|
2368
2367
|
const d = Je.lazy(async () => {
|
|
2369
2368
|
try {
|
|
2370
|
-
const M = await import("./
|
|
2371
|
-
return
|
|
2369
|
+
const M = await import("./DpetxHCqcdvCcpAe.mjs");
|
|
2370
|
+
return Fe.current = !1, a.current = !0, R([...h]), M;
|
|
2372
2371
|
} catch (M) {
|
|
2373
2372
|
return console.warn(M), Oe.current?.(!1), null;
|
|
2374
2373
|
}
|
|
@@ -2388,10 +2387,10 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2388
2387
|
console.warn("invalid element");
|
|
2389
2388
|
continue;
|
|
2390
2389
|
}
|
|
2391
|
-
let
|
|
2392
|
-
ie === 0 ? (U = J, X = pe) : (
|
|
2390
|
+
let z = d.dist[0], ce = d.dist[1], se = d.drag.dist[0], qe = d.drag.dist[1], J = L.startBounds.width, pe = L.startBounds.height;
|
|
2391
|
+
ie === 0 ? (U = J, X = pe) : (z *= J / U, se *= J / U, ce *= pe / X, qe *= pe / X);
|
|
2393
2392
|
const B = { ...L.startBounds };
|
|
2394
|
-
if (B.width = Math.max(0, J +
|
|
2393
|
+
if (B.width = Math.max(0, J + z), B.height = Math.max(0, pe + ce), d.direction[0] === -1 && (B.width = Math.max(0, Math.min(L.startBounds.x + J, J - se))), d.direction[1] === -1 && (B.height = Math.max(0, Math.min(L.startBounds.y + pe, pe - qe))), M && (q.isLockAspectRatio() || d.inputEvent?.shiftKey)) {
|
|
2395
2394
|
const Y = J / pe, re = B.width / B.height;
|
|
2396
2395
|
re > Y ? B.height = B.width / Y : re < Y && (B.width = B.height * Y);
|
|
2397
2396
|
}
|
|
@@ -2412,48 +2411,48 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2412
2411
|
}, onMouseUp: (d) => {
|
|
2413
2412
|
} }) }), [Me, Ve, h, n, p, S, f, b, T]);
|
|
2414
2413
|
return m("div", { className: kt(g, "movable-area", pa), style: { width: Z.width, height: Z.height, ...x, position: "absolute", overflow: "hidden", willChange: "transform" }, ref: un([s, Re]), ...A, children: m("div", { className: "movable-scroll", style: { position: "absolute", cursor: "initial", left: 0, top: 0, width: Z.width, height: Z.height }, ...A, children: Qe("div", { ref: C, style: { position: "absolute", pointerEvents: "auto" }, onFocus: (d) => {
|
|
2415
|
-
|
|
2414
|
+
F?.(), Be(!0);
|
|
2416
2415
|
}, onBlur: (d) => {
|
|
2417
2416
|
Be(!1);
|
|
2418
2417
|
}, onKeyDownCapture: (d) => {
|
|
2419
2418
|
if (d.isDefaultPrevented()) return;
|
|
2420
2419
|
const M = d.nativeEvent.ctrlKey, U = d.nativeEvent.altKey, X = d.nativeEvent.shiftKey;
|
|
2421
2420
|
if (d.which === Nt.Escape) {
|
|
2422
|
-
const
|
|
2423
|
-
let ce = [...
|
|
2421
|
+
const z = i.getMovableSelection();
|
|
2422
|
+
let ce = [...z];
|
|
2424
2423
|
return h.forEach((se) => {
|
|
2425
2424
|
if (ce.length === 0) return;
|
|
2426
2425
|
const qe = j.current.get(se);
|
|
2427
2426
|
let J = ce.indexOf(qe);
|
|
2428
2427
|
ce.splice(J, 1);
|
|
2429
|
-
}), ce.length !==
|
|
2428
|
+
}), ce.length !== z.length && i.selectMovables(ce), ce.length === 0 && v?.(), void d.preventDefault();
|
|
2430
2429
|
}
|
|
2431
|
-
const ie = 0.1, w = (
|
|
2430
|
+
const ie = 0.1, w = (z) => {
|
|
2432
2431
|
r.updateSelected((ce) => {
|
|
2433
|
-
ce.setRotation(ce.getRotation() +
|
|
2432
|
+
ce.setRotation(ce.getRotation() + z);
|
|
2434
2433
|
}, "Rotate");
|
|
2435
|
-
}, L = (
|
|
2434
|
+
}, L = (z, ce = !0) => {
|
|
2436
2435
|
r.updateSelected((se) => {
|
|
2437
2436
|
const qe = se.getBounds();
|
|
2438
|
-
let J = 1 +
|
|
2437
|
+
let J = 1 + z;
|
|
2439
2438
|
ce || (J = 1 / J);
|
|
2440
2439
|
const pe = Math.sqrt(Math.pow(qe.width, 2) + Math.pow(qe.height, 2)), B = Math.atan2(qe.height, qe.width), Y = J * pe;
|
|
2441
2440
|
if (Y < 10) return;
|
|
2442
2441
|
const re = Y * Math.cos(B), Ne = Y * Math.sin(B), Ke = { x: qe.x + (qe.width - re) / 2, y: qe.y + (qe.height - Ne) / 2, width: re, height: Ne };
|
|
2443
2442
|
se.setBounds(Ke);
|
|
2444
2443
|
}, "Resize");
|
|
2445
|
-
}, q = (
|
|
2444
|
+
}, q = (z) => {
|
|
2446
2445
|
r.updateSelected((ce) => {
|
|
2447
|
-
const se = ce.getBounds(), qe = { x: se.x + (
|
|
2446
|
+
const se = ce.getBounds(), qe = { x: se.x + (z.x ?? 0), y: se.y + (z.y ?? 0), width: se.width + (z.width ?? 0), height: se.height + (z.height ?? 0) };
|
|
2448
2447
|
ce.setBounds(qe);
|
|
2449
2448
|
}, "Nudge");
|
|
2450
2449
|
};
|
|
2451
|
-
if (d.which === Nt.Delete) r.updateSelected((
|
|
2452
|
-
|
|
2450
|
+
if (d.which === Nt.Delete) r.updateSelected((z) => {
|
|
2451
|
+
z.delete();
|
|
2453
2452
|
}, "Delete"), d.preventDefault();
|
|
2454
2453
|
else if (d.key === "a" && M) {
|
|
2455
|
-
const
|
|
2456
|
-
i.selectMovables(r.getItems(), !0), i.selectMovables(
|
|
2454
|
+
const z = i.getMovableSelection();
|
|
2455
|
+
i.selectMovables(r.getItems(), !0), i.selectMovables(z, !0), d.preventDefault();
|
|
2457
2456
|
} else d.key === "ArrowLeft" ? (X ? L(ie, !1) : U ? w(-10) : q({ x: M ? -10 : -1 }), d.preventDefault()) : d.key === "ArrowRight" ? (X ? L(ie, !0) : U ? w(10) : q({ x: M ? 10 : 1 }), d.preventDefault()) : d.key === "ArrowUp" ? (X ? L(ie, !0) : q({ y: M ? -10 : -1 }), d.preventDefault()) : d.key === "ArrowDown" && (X ? L(ie, !1) : q({ y: M ? 10 : 1 }), d.preventDefault());
|
|
2458
2457
|
}, children: [de, H] }) }) });
|
|
2459
2458
|
})), wn = (e) => {
|
|
@@ -2485,15 +2484,15 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2485
2484
|
}, va = (e) => {
|
|
2486
2485
|
const { movables: t, movablesView: n, transactional: r, commands: i, target: o, onRepeatCommandChange: u } = e, c = Un(), l = cn();
|
|
2487
2486
|
xe(l.getMode()).current = l.getMode();
|
|
2488
|
-
const p = te(async (v,
|
|
2487
|
+
const p = te(async (v, F, h = null, R = !0) => {
|
|
2489
2488
|
const b = async () => {
|
|
2490
|
-
const G = await Promise.resolve(c?.showBusy?.(v.
|
|
2489
|
+
const G = await Promise.resolve(c?.showBusy?.(v.getLabel()));
|
|
2491
2490
|
try {
|
|
2492
|
-
await
|
|
2493
|
-
const T = h ?? v?.
|
|
2491
|
+
await F();
|
|
2492
|
+
const T = h ?? v?.getLabel?.();
|
|
2494
2493
|
if (u) {
|
|
2495
2494
|
let N = null;
|
|
2496
|
-
v && T !== !1 && (N = new Ze(v.
|
|
2495
|
+
v && T !== !1 && (N = new Ze(v.getKey(), o, { label: T, description: T }, b)), u(N);
|
|
2497
2496
|
}
|
|
2498
2497
|
G?.(), R && l.setMode(null);
|
|
2499
2498
|
} catch (T) {
|
|
@@ -2501,7 +2500,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2501
2500
|
}
|
|
2502
2501
|
};
|
|
2503
2502
|
await b();
|
|
2504
|
-
}, [u, c]), [S, f] = Jt((v) => v + 1, 0), g = te((v,
|
|
2503
|
+
}, [u, c]), [S, f] = Jt((v) => v + 1, 0), g = te((v, F, h) => {
|
|
2505
2504
|
if (!n) return;
|
|
2506
2505
|
const R = n.getMovableSelection();
|
|
2507
2506
|
if (R.length === 0) return;
|
|
@@ -2510,7 +2509,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2510
2509
|
const T = R[0];
|
|
2511
2510
|
b = nr.capitalize(T.getContent().getType()) ?? "Drawing";
|
|
2512
2511
|
}
|
|
2513
|
-
const G = `${v.
|
|
2512
|
+
const G = `${v.getLabel()} ${b}`;
|
|
2514
2513
|
p(v, () => {
|
|
2515
2514
|
let T = null;
|
|
2516
2515
|
r && (T = r.beginCommit(G));
|
|
@@ -2519,7 +2518,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2519
2518
|
const W = h?.(N);
|
|
2520
2519
|
for (let ve = 0; ve < N.length; ve++) {
|
|
2521
2520
|
const j = N[ve];
|
|
2522
|
-
|
|
2521
|
+
F(j, W);
|
|
2523
2522
|
}
|
|
2524
2523
|
T?.commit();
|
|
2525
2524
|
});
|
|
@@ -2556,36 +2555,36 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2556
2555
|
v.setAnchorType(an.Type.Absolute);
|
|
2557
2556
|
});
|
|
2558
2557
|
}), new Q("formatDrawAlignLeft", o, { label: "Align Left", description: "Align the selected drawings to the left.", icon: "DrawAlignLeft" }, function() {
|
|
2559
|
-
g(this, (v,
|
|
2560
|
-
v.setBounds({ x:
|
|
2558
|
+
g(this, (v, F) => {
|
|
2559
|
+
v.setBounds({ x: F.x });
|
|
2561
2560
|
}, wn);
|
|
2562
2561
|
}), new Q("formatDrawAlignCenter", o, { label: "Align Center", description: "Align the selected drawings vertically relative to each other.", icon: "DrawAlignCenter" }, function() {
|
|
2563
|
-
g(this, (v,
|
|
2564
|
-
v.setBounds({ x: (
|
|
2562
|
+
g(this, (v, F) => {
|
|
2563
|
+
v.setBounds({ x: (F.width - v.getBounds().width) / 2 + F.x });
|
|
2565
2564
|
}, wn);
|
|
2566
2565
|
}), new Q("formatDrawAlignRight", o, { label: "Align Right", description: "Align the selected drawings to the right.", icon: "DrawAlignRight" }, function() {
|
|
2567
|
-
g(this, (v,
|
|
2568
|
-
v.setBounds({ x:
|
|
2566
|
+
g(this, (v, F) => {
|
|
2567
|
+
v.setBounds({ x: F.width - v.getBounds().width + F.x });
|
|
2569
2568
|
}, wn);
|
|
2570
2569
|
}), new Q("formatDrawAlignTop", o, { label: "Align Top", description: "Align the selected drawings to the top.", icon: "DrawAlignTop" }, function() {
|
|
2571
|
-
g(this, (v,
|
|
2572
|
-
v.setBounds({ y:
|
|
2570
|
+
g(this, (v, F) => {
|
|
2571
|
+
v.setBounds({ y: F.y });
|
|
2573
2572
|
}, wn);
|
|
2574
2573
|
}), new Q("formatDrawAlignMiddle", o, { label: "Align Middle", description: "Align the selected drawings horizontally relative to each other.", icon: "DrawAlignMiddle" }, function() {
|
|
2575
|
-
g(this, (v,
|
|
2576
|
-
v.setBounds({ y: (
|
|
2574
|
+
g(this, (v, F) => {
|
|
2575
|
+
v.setBounds({ y: (F.height - v.getBounds().height) / 2 + F.y });
|
|
2577
2576
|
}, wn);
|
|
2578
2577
|
}), new Q("formatDrawAlignBottom", o, { label: "Align Bottom", description: "Align the selected drawings to the bottom.", icon: "DrawAlignBottom" }, function() {
|
|
2579
|
-
g(this, (v,
|
|
2580
|
-
v.setBounds({ y:
|
|
2578
|
+
g(this, (v, F) => {
|
|
2579
|
+
v.setBounds({ y: F.height - v.getBounds().height + F.y });
|
|
2581
2580
|
}, wn);
|
|
2582
2581
|
}), new Q("formatDrawDistributeHorz", o, { label: "Distribute Horizontally", description: "Distribute the selected drawings horizontally with equal spacing between each.", icon: "DrawDistributeHorz" }, function() {
|
|
2583
|
-
g(this, (v,
|
|
2584
|
-
v.setBounds(
|
|
2582
|
+
g(this, (v, F) => {
|
|
2583
|
+
v.setBounds(F.get(v));
|
|
2585
2584
|
}, (v) => Mr(v));
|
|
2586
2585
|
}), new Q("formatDrawDistributeVert", o, { label: "Distribute Vertically", description: "Distribute the selected drawings vertically with equal spacing between each.", icon: "DrawDistributeVert" }, function() {
|
|
2587
|
-
g(this, (v,
|
|
2588
|
-
v.setBounds(
|
|
2586
|
+
g(this, (v, F) => {
|
|
2587
|
+
v.setBounds(F.get(v));
|
|
2589
2588
|
}, (v) => Mr(v, !1));
|
|
2590
2589
|
}), new Q("formatDrawFlipHorz", o, { label: "Flip Horizontally", description: "Flip the selected drawings horizontally." }), new Q("formatDrawFlipVert", o, { label: "Flip Vertically", description: "Flip the selected drawings vertically." }), new Q("formatDrawGroup", o, { label: "Group", description: "Group the selected drawings into a single drawing.", icon: "DrawGroup" }), new Q("formatDrawUngroup", o, { label: "Ungroup", description: "Break the group of a drawing into individual drawings.", icon: "DrawUngroup" }), new Q("formatDrawSwapShapes", o, { label: "Swap Shapes", description: "Swap the positions of the swap." }), new Q("formatDrawSwapShapesHorz", o, { label: "Swap Shapes Horizontally", description: "Swap the positions of the swap horizontally." }), new Q("formatDrawSwapShapesVert", o, { label: "Swap Shapes Vertically", description: "Swap the positions of the swap vertically." })], [n, x]);
|
|
2591
2590
|
be(() => {
|
|
@@ -2607,11 +2606,11 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2607
2606
|
} }), be(() => {
|
|
2608
2607
|
const v = { disabled: E };
|
|
2609
2608
|
V.getCommand("formatAnchorTypeTwoCell").update(v), V.getCommand("formatAnchorTypeOneCell").update(v), V.getCommand("formatAnchorTypeAbsolute").update(v), V.getCommand("toggleLockAspectRatio").update(v);
|
|
2610
|
-
const
|
|
2609
|
+
const F = t.getCount(), h = n.getMovableSelection(), R = E || F <= 1 || h.length === 0;
|
|
2611
2610
|
let b = { disabled: R }, G = b;
|
|
2612
2611
|
if (!R && h.length === 1) {
|
|
2613
2612
|
const W = h[0];
|
|
2614
|
-
W.getZIndex() === 0 && (b = { disabled: !0 }), W.getZIndex() ===
|
|
2613
|
+
W.getZIndex() === 0 && (b = { disabled: !0 }), W.getZIndex() === F - 1 && (G = { disabled: !0 });
|
|
2615
2614
|
}
|
|
2616
2615
|
V.getCommand("moveToFront").update(G), V.getCommand("moveForward").update(G), V.getCommand("moveToBack").update(b), V.getCommand("moveBackward").update(b);
|
|
2617
2616
|
const T = { disabled: E || h.length <= 1 };
|
|
@@ -2641,13 +2640,13 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2641
2640
|
const y = () => {
|
|
2642
2641
|
const C = r.getRange(k).getCell(), oe = C.getStyle();
|
|
2643
2642
|
let le, Me = oe.getFill()?.toCSS(i.body.darkMode);
|
|
2644
|
-
Me.background !== "none" && Me.background !== "transparent" || (Me = r.getStyles().getNormal().getFill().toCSS(i.body.darkMode)), Me.background !== "none" && Me.background !== "transparent" || (Me = { background: i.body.fill }), Z({ style: Me }), C && !C.getFormula() && (le = C?.getRenderHorizontalAlignment()), v(le ??
|
|
2643
|
+
Me.background !== "none" && Me.background !== "transparent" || (Me = r.getStyles().getNormal().getFill().toCSS(i.body.darkMode)), Me.background !== "none" && Me.background !== "transparent" || (Me = { background: i.body.fill }), Z({ style: Me }), C && !C.getFormula() && (le = C?.getRenderHorizontalAlignment()), v(le ?? cl.Left);
|
|
2645
2644
|
};
|
|
2646
2645
|
return y(), r.getRange(k).addListener(() => {
|
|
2647
2646
|
y();
|
|
2648
2647
|
});
|
|
2649
2648
|
}, [r, k, i?.body]);
|
|
2650
|
-
const
|
|
2649
|
+
const F = te(() => {
|
|
2651
2650
|
let y = g.editState.dirty ?? "";
|
|
2652
2651
|
if (g.editState.dirty !== void 0) {
|
|
2653
2652
|
const C = nr.clampString(y);
|
|
@@ -2655,7 +2654,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2655
2654
|
const oe = g.sheet.getRange(g.coords), le = `Typing '${C}' into ${oe.toString()}`;
|
|
2656
2655
|
return oe.setValue(y, { description: le, autoFit: !0 }), E(null), x(null), p.setMode(null), c(null), !0;
|
|
2657
2656
|
} catch (oe) {
|
|
2658
|
-
throw
|
|
2657
|
+
throw ll.error(new Error(`Unable to enter '${C}'.`, { cause: oe })), oe;
|
|
2659
2658
|
}
|
|
2660
2659
|
}
|
|
2661
2660
|
}, [r, g]), h = te((y) => r.getRange(y).getCell().getExtrusions() ?? xt.cellToRange(y), [r]), R = te((y) => {
|
|
@@ -2679,7 +2678,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2679
2678
|
p.setMode({ key: "edit", args: { stateAndCoords: oe } }), x(oe);
|
|
2680
2679
|
}, onStartEdit: (y) => {
|
|
2681
2680
|
E(y), c(y);
|
|
2682
|
-
}, onSubmitEdit:
|
|
2681
|
+
}, onSubmitEdit: F, onCancelEdit: (y) => {
|
|
2683
2682
|
E(null), x(null), p.setMode(null), c(null);
|
|
2684
2683
|
}, onDoneEdit: (y) => {
|
|
2685
2684
|
p.setMode(null);
|
|
@@ -2767,7 +2766,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2767
2766
|
h.removeEventListener("mousemove", v), h.removeEventListener("mouseleave", v);
|
|
2768
2767
|
};
|
|
2769
2768
|
}, [u, n?.getStage()]), !n || !u || u.length === 0) return null;
|
|
2770
|
-
const
|
|
2769
|
+
const F = [];
|
|
2771
2770
|
for (let h = 0; h < u.length; h++) {
|
|
2772
2771
|
const R = u[h];
|
|
2773
2772
|
if (R.isClosed()) continue;
|
|
@@ -2781,9 +2780,9 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2781
2780
|
}
|
|
2782
2781
|
W || (W = "var(--sxl-app-color-shadow, rgba(0,0,0,.15))");
|
|
2783
2782
|
}
|
|
2784
|
-
|
|
2783
|
+
F.push(m("div", { style: { position: "absolute", left: N.x, top: N.y, width: Math.min(16, N.width), height: N.height, pointerEvents: "all", cursor: ba }, onMouseDown: A }, `table-select-row-${R.getName()}`)), F.push(m("div", { style: { position: "absolute", left: N.x, top: N.y, width: Math.min(16, N.width), height: Math.min(16, N.height), pointerEvents: "all", cursor: Ca }, onMouseDown: E }, `table-select-${R.getName()}`)), F.push(m(ai, { x: N.x, y: N.y, width: N.width, height: N.height, range: T, strokeWidth: G ? 0.5 : 0, stroke: W ?? "var(--sxl-app-color-grey, grey)", style: { willChange: "box-shadow", transition: "box-shadow 80ms ease-in-out", boxShadow: b ? `${W} 0px 0px 1px 1px` : void 0 } }, `table-outline-${R.getName()}`));
|
|
2785
2784
|
}
|
|
2786
|
-
return
|
|
2785
|
+
return F;
|
|
2787
2786
|
})), Sa = gt(pt((e, t) => {
|
|
2788
2787
|
const { view: n, sheet: r, animationTime: i = 60 } = e, [o, u] = Je.useState(null), [c, l] = Je.useState(null), p = Je.useRef(null), S = te(() => {
|
|
2789
2788
|
const A = r.getSelectedCell(), Z = A.getSpill()?.getCoords() ?? null;
|
|
@@ -2811,7 +2810,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2811
2810
|
const n = { ...e }, r = t?.getNormal().getFont(), i = r?.toCSS(), o = { text: { fontFamily: i?.fontFamily, fontSize: r?.getSize() } }, u = n.body = et.mergeContentful(e.body, o);
|
|
2812
2811
|
return n.body = et.mergeContentful({ fill: "#fff", strokeFill: "#dad8d6", strokeWidth: 0.5, text: { fontWeight: "400", fontStyle: "normal", fill: "#040404" } }, u), n.buttonSurface = et.mergeContentful({ fill: "#fff", text: { fill: "black" }, edgeStrokeFill: "black" }, n.buttonSurface), n.selection = { fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#217346", strokeWidth: 2, ...e.selection }, n.selectionInactive = { ...n.selection, fill: "rgba(16, 124, 65, 0.1)", strokeFill: "#dad8d6", ...e.selectionInactive }, n.selectionRemove = { ...n.selection, fill: "rgba(200, 0, 0, 0.1)", strokeFill: "rgba(200, 0, 0, 1)", ...e.selectionRemove }, n.headerSelection = { ...n.selection, ...e.headerSelection }, n.headerSelectionInactive = { ...n.selectionInactive, ...e.headerSelectionInactive }, n.header = et.mergeContentful(n.body, { edgeStrokeFill: "rgb(171, 171, 171)", fill: "#f0f0f0", strokeShadow: void 0, edgeStrokeWidth: 1 }, e.header), n.header = et.mergeContentful(n.header, o), n.headerSelect = et.mergeContentful(n.header, { fill: "rgba(16, 124, 65, 0.1)", text: { fill: n.headerSelection.strokeFill, fontWeight: "700" } }, e.headerSelect), n.headerSelect = et.mergeContentful(n.headerSelect, o), n.headerSelectAll = et.mergeContentful(n.headerSelect, {}, e.headerSelectAll), n.headerSelectAll = et.mergeContentful(n.headerSelectAll, o), n;
|
|
2813
2812
|
}, ka = { fireOnModelChange: !1 }, Ar = {}, Ra = gt(pt((e, t) => {
|
|
2814
|
-
const { sheet: n, gridStyle: r = Ar, headersStyle: i = Ar, onSheetContextMenu: o, showColumnHeaders: u, propsColumnHeader: c, showRowHeaders: l, propsRowHeader: p, showScrollbars: S = !0, propsScrollPane: f, onViewportChange: g, commands: x, onRepeatCommandChange: k, overlays: E, renderMovable: A, viewportComponent: Z, onElementLoad: V, getCellEditor: v, onFocus:
|
|
2813
|
+
const { sheet: n, gridStyle: r = Ar, headersStyle: i = Ar, onSheetContextMenu: o, showColumnHeaders: u, propsColumnHeader: c, showRowHeaders: l, propsRowHeader: p, showScrollbars: S = !0, propsScrollPane: f, onViewportChange: g, commands: x, onRepeatCommandChange: k, overlays: E, renderMovable: A, viewportComponent: Z, onElementLoad: V, getCellEditor: v, onFocus: F, onBlur: h, style: R = it.EmptyCssProperties, onShowTooltip: b, onShowColumnTooltip: G, onShowRowTooltip: T, onCloseTooltip: N, propsGrid: W, propsCellRender: ve, ...j } = e;
|
|
2815
2814
|
if (Je.useEffect(() => {
|
|
2816
2815
|
Qr._validate(!0);
|
|
2817
2816
|
}, []), !n) throw new Error("ISheet must be provided.");
|
|
@@ -2819,7 +2818,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2819
2818
|
Ot(() => {
|
|
2820
2819
|
We.current = !0;
|
|
2821
2820
|
}, [n]);
|
|
2822
|
-
const $e = n?.getStyles(), Oe = fe(() => Dr(r, $e), [r, $e]),
|
|
2821
|
+
const $e = n?.getStyles(), Oe = fe(() => Dr(r, $e), [r, $e]), ze = fe(() => Dr(i, $e), [i, $e]), { body: Ee = {}, buttonSurface: ge = {} } = Oe, { header: P = {}, headerSelect: Le = {}, headerSelectAll: Be = {} } = ze, O = xe(null), [$, he] = Ce(() => n?.getView()), de = ($?.getZoomScale() ?? 100) / 100, me = fe(() => ({ vertical: $.isShowColumnGridlines() && de >= 0.4, horizontal: $.isShowRowGridlines() && de >= 0.4 }), [$?.isShowColumnGridlines(), $?.isShowRowGridlines(), de]), Ie = fe(() => {
|
|
2823
2822
|
if ($?.getGridLineColor()) return { strokeDasharray: "1,1" };
|
|
2824
2823
|
}, [$?.getGridLineColor(), Oe]), ae = u ?? $?.isShowColumnHeaders(), Re = l ?? $?.isShowRowHeaders(), [s, Ve] = Ce({ width: 0, height: 0 }), Ue = fe(() => {
|
|
2825
2824
|
let ee = 40, Ae = 20;
|
|
@@ -2829,7 +2828,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2829
2828
|
ee = nt.width, Ae = nt.lineHeight;
|
|
2830
2829
|
}
|
|
2831
2830
|
return { width: Math.round(ee + 5), height: Math.round(Ae + 3) };
|
|
2832
|
-
}, [s, Oe?.header.text, n]),
|
|
2831
|
+
}, [s, Oe?.header.text, n]), Fe = Re ? de * Ue.width : P.edgeStrokeWidth, a = ae ? de * Ue.height : P.edgeStrokeWidth, I = Math.max(y, (n?.getColumnHeaders().getDefaultSize() ?? Ue.width) + Fe + 1), H = Math.max(C, (n?.getRowHeaders().getDefaultSize() ?? Ue.height) + a + 1), d = xe(/* @__PURE__ */ new Map()), M = xe(null), U = () => ({ getColOffset: (ee) => n.getColumnHeaders().findOffset(ee), getColIndex: (ee) => n.getColumnHeaders().findIndex(ee), getRowOffset: (ee) => n.getRowHeaders().findOffset(ee), getRowIndex: (ee) => n.getRowHeaders().findIndex(ee) }), [X, ie] = Ce(() => U()), [w, L] = Ce(!1), [q, z] = Ce(null), ce = !0, se = Oe.selection?.strokeFill, qe = Xe(() => Zt.current, []), [J, pe] = Ce(), B = te((ee) => {
|
|
2833
2832
|
pe(ee);
|
|
2834
2833
|
const Ae = n ? n.getView() : null;
|
|
2835
2834
|
Ae && Ae.setTopLeft(ee ? { left: ee.left, top: ee.top } : null), g?.(ee);
|
|
@@ -2890,7 +2889,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2890
2889
|
const Ye = { colIndex: Ae?.coords?.colStart, rowIndex: Ae?.coords?.rowStart };
|
|
2891
2890
|
return await O.current?.scrollCellCoordsIntoView(Ye, Ae?.scroll), !0;
|
|
2892
2891
|
}, onRequestFocus: () => et.whenFocus(Zt.current) }, ka);
|
|
2893
|
-
const
|
|
2892
|
+
const Ft = xe(!1), Kn = fe(() => {
|
|
2894
2893
|
const ee = et.debounce((je) => {
|
|
2895
2894
|
requestAnimationFrame(() => {
|
|
2896
2895
|
Et.current && le?.(je);
|
|
@@ -2903,23 +2902,23 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2903
2902
|
const Oo = et.roundAccurately(ot * et.getDPI(), 0), eo = et.roundAccurately(n?.getColumnWidthAsFontUnit(ot / de), 2).toFixed(2), Bo = "Width: " + (ot ? eo + " (" + Oo + " pixels)" : "Hidden"), An = Ao.current.getGridElement().getRelativePointFromClient(0, 0), vn = 0 - An.y, to = 0 - An.y + a, Ho = An.x - mt.x;
|
|
2904
2903
|
ee({ anchor: { x: ft - Ho, y: vn, width: Pt - ft, height: to - vn }, display: Bo });
|
|
2905
2904
|
}
|
|
2906
|
-
const ln = [0, 0, 0, mt.height],
|
|
2907
|
-
return Qe(Je.Fragment, { children: [m(no, { linePoints: ln, bounds: No, ...
|
|
2905
|
+
const ln = [0, 0, 0, mt.height], zo = { style: { boxShadow: `0.5px 0px 0px 0px ${r?.body?.fill}` }, propsPath: { stroke: se } }, No = { x: ft - 1, y: 0, width: 1, height: mt.height }, Lo = { style: { boxShadow: `-0.5px 0px 0px 0px ${r?.body?.fill}` }, propsPath: { stroke: se } }, Po = { x: Pt - 1, y: 0, width: 1, height: mt.height };
|
|
2906
|
+
return Qe(Je.Fragment, { children: [m(no, { linePoints: ln, bounds: No, ...zo }), m(no, { linePoints: ln, bounds: Po, ...Lo })] }, "resize-dividers");
|
|
2908
2907
|
}]);
|
|
2909
2908
|
};
|
|
2910
2909
|
let Ye = null;
|
|
2911
2910
|
return { onResizeHeadersStart: (je, ot, nt) => {
|
|
2912
|
-
Ye = n.beginCommit(nt),
|
|
2911
|
+
Ye = n.beginCommit(nt), Ft.current = !1, Ae(je, ot);
|
|
2913
2912
|
}, onResizeHeaders: (je, ot, nt) => {
|
|
2914
|
-
|
|
2913
|
+
Ft.current = !1, Ae(je, ot);
|
|
2915
2914
|
}, onResizeHeadersDown: (je, ot) => {
|
|
2916
|
-
|
|
2917
|
-
|
|
2915
|
+
Ft.current = !0, setTimeout(() => {
|
|
2916
|
+
Ft.current && Ae(je, ot);
|
|
2918
2917
|
}, 360);
|
|
2919
2918
|
}, onResizeHeadersEnd: (je, ot, nt) => {
|
|
2920
|
-
Ye?.commit({ description: nt }), Ye = null,
|
|
2919
|
+
Ye?.commit({ description: nt }), Ye = null, Ft.current = !1, requestAnimationFrame(() => ue?.()), Et.current = !1, Rt(null);
|
|
2921
2920
|
}, onResizeHeadersUp: (je) => {
|
|
2922
|
-
|
|
2921
|
+
Ft.current = !1, requestAnimationFrame(() => ue?.()), Et.current = !1, Rt(null);
|
|
2923
2922
|
}, ...c };
|
|
2924
2923
|
}, [n, c, a, Ht]), mn = fe(() => {
|
|
2925
2924
|
const ee = et.debounce((je) => {
|
|
@@ -2931,28 +2930,28 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2931
2930
|
if (!nt.toClipBounds(nt.getRangeCoordsBounds({ rowStart: je, rowEnd: je, colStart: 0, colEnd: s.width }))) return;
|
|
2932
2931
|
const wt = nt.getLayout(), ft = Math.max(0, wt.getRowOffset(je)), mt = nt.getBounds(), Pt = Math.min(mt.y + mt.height, wt.getRowOffset(je + 1)), jt = nt.getAnchor();
|
|
2933
2932
|
if (ot !== null && (jt === qt.Top || jt === qt.Center || jt === qt.Bottom)) {
|
|
2934
|
-
const Oo = Math.floor(10 * et.getDPI()) / 10, eo = et.roundAccurately(ot * Oo, 0), Bo = et.roundAccurately(eo / de / (n?.getRowHeaders().getScaleFactor() * et.getDPI()), 2).toFixed(2), An = "Height: " + (ot ? Bo + " (" + eo + " pixels)" : "Hidden"), vn = fn.current.getGridElement().getRelativePointFromClient(0, 0), to = 0 - vn.x, Ho = 0 - vn.x +
|
|
2933
|
+
const Oo = Math.floor(10 * et.getDPI()) / 10, eo = et.roundAccurately(ot * Oo, 0), Bo = et.roundAccurately(eo / de / (n?.getRowHeaders().getScaleFactor() * et.getDPI()), 2).toFixed(2), An = "Height: " + (ot ? Bo + " (" + eo + " pixels)" : "Hidden"), vn = fn.current.getGridElement().getRelativePointFromClient(0, 0), to = 0 - vn.x, Ho = 0 - vn.x + Fe, Qi = vn.y - mt.y;
|
|
2935
2934
|
ee({ anchor: { x: to, y: ft - Qi, width: Ho - to, height: Pt - ft }, display: An });
|
|
2936
2935
|
}
|
|
2937
|
-
const ln = [0, 0, mt.width, 0],
|
|
2938
|
-
return Qe(Je.Fragment, { children: [m(no, { linePoints: ln, bounds: No, ...
|
|
2936
|
+
const ln = [0, 0, mt.width, 0], zo = { style: { boxShadow: `0px 0.5px 0px 0px ${r?.body?.fill}` }, propsPath: { stroke: se } }, No = { x: 0, y: ft - 1, width: mt.width, height: 1 }, Lo = { style: { boxShadow: `0px -0.5px 0px 0px ${r?.body?.fill}` }, propsPath: { stroke: se } }, Po = { x: 0, y: Pt - 1, width: mt.width, height: 1 };
|
|
2937
|
+
return Qe(Je.Fragment, { children: [m(no, { linePoints: ln, bounds: No, ...zo }), m(no, { linePoints: ln, bounds: Po, ...Lo })] }, "resize-dividers");
|
|
2939
2938
|
}]);
|
|
2940
2939
|
};
|
|
2941
2940
|
let Ye = null;
|
|
2942
2941
|
return { onResizeHeadersStart: (je, ot, nt) => {
|
|
2943
|
-
Ye = n.beginCommit(nt),
|
|
2942
|
+
Ye = n.beginCommit(nt), Ft.current = !1, Ae(je, ot);
|
|
2944
2943
|
}, onResizeHeaders: (je, ot, nt) => {
|
|
2945
|
-
|
|
2944
|
+
Ft.current = !1, Ae(je, ot);
|
|
2946
2945
|
}, onResizeHeadersDown: (je, ot) => {
|
|
2947
|
-
|
|
2948
|
-
|
|
2946
|
+
Ft.current = !0, setTimeout(() => {
|
|
2947
|
+
Ft.current && Ae(je, ot);
|
|
2949
2948
|
}, 360);
|
|
2950
2949
|
}, onResizeHeadersEnd: (je, ot, nt) => {
|
|
2951
|
-
Ye?.commit({ description: nt }), Ye = null,
|
|
2950
|
+
Ye?.commit({ description: nt }), Ye = null, Ft.current = !1, requestAnimationFrame(() => ue?.()), Et.current = !1, Rt(null);
|
|
2952
2951
|
}, onResizeHeadersUp: (je) => {
|
|
2953
|
-
|
|
2952
|
+
Ft.current = !1, requestAnimationFrame(() => ue?.()), Et.current = !1, Rt(null);
|
|
2954
2953
|
}, ...p };
|
|
2955
|
-
}, [n, p,
|
|
2954
|
+
}, [n, p, Fe]), Zt = $t(t, () => {
|
|
2956
2955
|
const ee = (Ye) => {
|
|
2957
2956
|
n?.getView() && n.getView().selectMovables([]), M.current = null, O?.current?.focus(Ye);
|
|
2958
2957
|
}, Ae = async (Ye = null) => {
|
|
@@ -2966,7 +2965,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2966
2965
|
let wt = d.current?.get(nt);
|
|
2967
2966
|
return wt?.current ? (await wt.current.focusMovable(Ye), !0) : (M.current = { movable: Ye, anchor: nt }, !0);
|
|
2968
2967
|
};
|
|
2969
|
-
return { getGridElement: () => O.current, getRowHeaderElement: () => fn.current, getColumnHeaderElement: () => Ao.current, rowHeaderHeight: () => a, colHeaderWidth: () =>
|
|
2968
|
+
return { getGridElement: () => O.current, getRowHeaderElement: () => fn.current, getColumnHeaderElement: () => Ao.current, rowHeaderHeight: () => a, colHeaderWidth: () => Fe, startEdit: ke, submitEdit: () => {
|
|
2970
2969
|
we.setMode((Ye) => Ye?.key !== "edit" ? Ye : { key: "edit", args: { stateAndCoords: null, submit: !0 } });
|
|
2971
2970
|
}, cancelEdit: () => {
|
|
2972
2971
|
we.setMode((Ye) => Ye?.key !== "edit" ? Ye : { key: "edit", args: { stateAndCoords: null, cancel: !0 } });
|
|
@@ -2981,10 +2980,10 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
2981
2980
|
}, [Oe]);
|
|
2982
2981
|
const Tn = lt ? Be.edgeStrokeFill : P.fill, To = lt ? Le.fill : typeof Oe.headerHover == "function" ? Oe.headerHover(P)?.fill : P.fill, ht = fe(() => Z ? m("div", { className: kt("sheetxl-viewport-overlay", Hl), style: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute" }, children: Z }) : m(Sn, {}), [Z]);
|
|
2983
2982
|
let Mn = null;
|
|
2984
|
-
ae && Re && (Mn = Qe("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${a}px`, width: `${
|
|
2983
|
+
ae && Re && (Mn = Qe("div", { tabIndex: -1, className: "top-left-corner", style: { padding: "2 2", position: "absolute", height: `${a}px`, width: `${Fe}px`, zIndex: 1, boxSizing: "border-box", cursor: "cell" }, onMouseDown: (ee) => {
|
|
2985
2984
|
let Ae = !ee.ctrlKey;
|
|
2986
2985
|
He?.getCommand("selectAll")?.execute(!Ae || ee.button !== 0), ee.nativeEvent.which === oi.Right ? o?.({ originalEvent: ee, clientX: ee.clientX, clientY: ee.clientY, rowIndex: -1, colIndex: -1 }) : O.current?.focus();
|
|
2987
|
-
}, children: [m("div", { style: { height: a - 5 + "px", width: a - 5 + "px", clipPath: `path('M${a - 5} 0 L0 ${a - 5} L${a - 5} ${a - 5} L${a - 5} 0 Z')`, borderRight: `2px solid ${Tn}`, borderBottom: `2px solid ${Tn}`, background: `${To}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), m("div", { style: { position: "absolute", height: `${a}px`, width: `${
|
|
2986
|
+
}, children: [m("div", { style: { height: a - 5 + "px", width: a - 5 + "px", clipPath: `path('M${a - 5} 0 L0 ${a - 5} L${a - 5} ${a - 5} L${a - 5} 0 Z')`, borderRight: `2px solid ${Tn}`, borderBottom: `2px solid ${Tn}`, background: `${To}`, boxSizing: "border-box", position: "absolute", right: "2px", bottom: "2px" } }), m("div", { style: { position: "absolute", height: `${a}px`, width: `${Fe}px`, boxSizing: "border-box", borderRight: `solid 1px ${P.strokeFill}`, borderBottom: `solid 1px ${P.strokeFill}`, right: "-1px", bottom: "-1px" } })] }));
|
|
2988
2987
|
const pn = te(({ _left: ee, _top: Ae }) => {
|
|
2989
2988
|
}, []), Yn = te((ee) => {
|
|
2990
2989
|
if (!o) return;
|
|
@@ -3000,7 +2999,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
3000
2999
|
const ee = n?.getView().getTopLeft();
|
|
3001
3000
|
pn(ee), O.current?.scrollTo(ee), Ne(ee), he(n.getView()), Ge(_e(n.getView().getFreezePanes())), ie(U()), D();
|
|
3002
3001
|
}, [n?.getView()]);
|
|
3003
|
-
const
|
|
3002
|
+
const zt = Xe((ee, Ae) => n.getRowHeaders().hiddenHeadersAt(ee, Ae), [n]), Xn = Xe((ee, Ae) => n.getColumnHeaders().hiddenHeadersAt(ee, Ae), [n]), Dn = te((ee) => {
|
|
3004
3003
|
const Ae = ee.getVisibleRangeCoords();
|
|
3005
3004
|
if (!Ae) return null;
|
|
3006
3005
|
const Ye = [];
|
|
@@ -3027,7 +3026,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
3027
3026
|
}, [we]), Jn = te(async (ee) => {
|
|
3028
3027
|
const Ae = we.getMode();
|
|
3029
3028
|
return ee.keyCode === Nt.Escape && Ae ? (ee.preventDefault(), void we.setMode(null)) : ee.keyCode === Nt.Enter && Do ? (ee.preventDefault(), await He?.getCommand("paste")?.execute(), void we.setMode(null)) : void He?.dispatchToFocusedCommand(ee);
|
|
3030
|
-
}, [He, we]), fn = xe(null), Qn = fe(() => m("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${a + 1}px`, width: `${
|
|
3029
|
+
}, [He, we]), fn = xe(null), Qn = fe(() => m("div", { tabIndex: -1, style: { position: "relative", flex: "0", top: `${a + 1}px`, width: `${Fe + P.edgeStrokeWidth}px`, minWidth: `${Fe + P.edgeStrokeWidth}px`, borderRight: `solid ${P.edgeStrokeWidth}px ${P.edgeStrokeFill}`, height: `calc(100% - ${a}px)`, boxSizing: "border-box", zIndex: "2" }, children: m(Rr, { ref: fn, sheetElement: Zt.current, gridRef: O, freezeStart: Te?.[qt.Top], oppositeSize: Fe, containerWidth: Fe, containerHeight: H, sheetHeader: n.getRowHeaders(), gridStyle: ze, verticalPadding: Math.max(0, Math.floor(n.getStyles().getNormal().getFont().getSize() / 10)), scrollPoint: hn, onSheetContextMenu: o, tabIndex: -1, style: { position: "relative", flex: "0", top: `${a + 1}px`, width: `${Fe + P.edgeStrokeWidth}px`, minWidth: `${Fe + P.edgeStrokeWidth}px`, borderRight: `solid ${P.edgeStrokeWidth}px ${P.edgeStrokeFill}`, height: `calc(100% - ${a}px)`, boxSizing: "border-box", zIndex: "2", ...mn?.style }, ...mn }) }), [Fe, a, H, n, hn, Te?.[qt.Top], Oe, ce, o, P.fill, p]), Ao = xe(null), Gi = fe(() => m("div", { tabIndex: -1, style: { position: "relative", left: "0px", width: "100%", height: `${a + P.edgeStrokeWidth}px`, minHeight: `${a + P.edgeStrokeWidth}px`, borderBottom: `solid ${P.edgeStrokeWidth}px ${P.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" }, children: m(Rr, { ref: Ao, sheetElement: Zt.current, gridRef: O, freezeStart: Te?.[qt.Left], oppositeSize: a, containerWidth: I, containerHeight: a, sheetHeader: n.getColumnHeaders(), gridStyle: ze, scrollPoint: jn, onSheetContextMenu: o, ...Kn, style: { ...Kn?.style, position: "relative", left: "0px", width: "100%", height: `${a + P.edgeStrokeWidth}px`, minHeight: `${a + P.edgeStrokeWidth}px`, borderBottom: `solid ${P.edgeStrokeWidth}px ${P.edgeStrokeFill}`, boxSizing: "border-box", zIndex: "1" } }) }), [a, I, n, jn, Te?.[qt.Left], Oe, P.fill, ce, o, c]), Zi = te((ee) => {
|
|
3031
3030
|
const { value: Ae, key: Ye, ...je } = ee;
|
|
3032
3031
|
let ot = Ae, nt = q;
|
|
3033
3032
|
if (!nt || nt.colIndex === ee.coords.colIndex && nt.rowIndex === ee.coords.rowIndex || (nt = null), !ot) {
|
|
@@ -3051,7 +3050,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
3051
3050
|
const { key: Ae, ref: Ye, ...je } = ee;
|
|
3052
3051
|
return [m(Yl, { ref: Ye, getVisibleCells: Dn, sheet: n, gridStyle: Oe, ...je }, `border-${Ae}`), m(qa, { ref: Ye, sheet: n, commands: He, ...je }, `table-${Ae}`), m(Sa, { ref: Ye, sheet: n, ...je }, `spill-${Ae}`), m(ga, { ref: Ye, sheet: n, commands: He, onShowTooltip: oe, onCloseTooltip: ue, gridStyle: Oe, gridRef: O, isActive: ce, ...je }, `selection-${Ae}`), m(ia, { ref: Ye, sheet: n, commands: He, gridStyle: Oe, element: qe, ...je }, `copy-paste-${Ae}`), m(wa, { ref: Ye, sheet: n, commands: He, target: Pe, renderMovable: A, propsMovable: { onUnFocus: () => {
|
|
3053
3052
|
Zt.current.focus();
|
|
3054
|
-
} }, ...je }, `movable-${Ae}`), m(ya, { ref: Ye, sheet: n, commands: He, gridStyle: Oe, getCellEditor: v, showProtectedError: St, setEditingCoords:
|
|
3053
|
+
} }, ...je }, `movable-${Ae}`), m(ya, { ref: Ye, sheet: n, commands: He, gridStyle: Oe, getCellEditor: v, showProtectedError: St, setEditingCoords: z, ...je }, `editor-${Ae}`)];
|
|
3055
3054
|
}, [n, O.current, Oe, v, He, dt]), [hr, Ki] = Ce(!1), Yi = fe(() => {
|
|
3056
3055
|
if (I === 0 || H === 0) return null;
|
|
3057
3056
|
const ee = n.getStyles().getNormal(), Ae = ee.getFont(), Ye = ee.getFill(), je = ee.getBorder(), ot = ee.getFill().getType() === so.Type.None;
|
|
@@ -3061,7 +3060,7 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
3061
3060
|
let mt = $?.getGridLineColor()?.toRGBA(Ee.darkMode).toString() ?? Ee.strokeFill;
|
|
3062
3061
|
return ot || (wt = ft(je.getBottom(), wt, !0), wt = ft(je.getTop(), wt, !0), nt = ft(je.getRight(), nt, !0), nt = ft(je.getLeft(), nt, !0)), m(li, { className: "sheetxl-sheet-primary", style: { ...xa, ...Ye.toCSS(Ee.darkMode), ...Ae.toCSS(Ee.darkMode, de), "--sxl-app-color-background": Ee.fill, "--sxl-app-color-shadow": Oe.colorShadow, "--sxl-app-color-grey": Oe.colorGrey, "--sxl-app-color-button-fill": ge.fill, "--sxl-app-color-button-text": ge.text?.fill, "--sxl-app-color-button-border": ge.edgeStrokeFill, "--sxl-app-color-primary-dark": Oe.selection.strokeFill }, ref: O, zoom: de, ...W, onFirstRender: (Pt) => {
|
|
3063
3062
|
Ki(!0), W?.onFirstRender?.(Pt), He?.activate();
|
|
3064
|
-
}, showGridLines: me, gridLineColor: mt, propsGridLineColumns: nt, propsGridLineRows: wt, freezeLeft: Te?.[qt.Left], propsFreezeLeft: rn, freezeTop: Te?.[qt.Top], propsFreezeTop: rn, width: I, height: H, columnCount: s.width, rowCount: s.height, cursor: Bt ?? tt ?? "cell", clipCells: !0, layout: X, renderCell: Zi, renderOverlay: ji, getCellCoordsAsRangeCoords: Ke, hiddenRowsAt:
|
|
3063
|
+
}, showGridLines: me, gridLineColor: mt, propsGridLineColumns: nt, propsGridLineRows: wt, freezeLeft: Te?.[qt.Left], propsFreezeLeft: rn, freezeTop: Te?.[qt.Top], propsFreezeTop: rn, width: I, height: H, columnCount: s.width, rowCount: s.height, cursor: Bt ?? tt ?? "cell", clipCells: !0, layout: X, renderCell: Zi, renderOverlay: ji, getCellCoordsAsRangeCoords: Ke, hiddenRowsAt: zt, hiddenColumnsAt: Xn, getVisibleCells: Dn, onWheelScroll: Tt, onPointerDown: Mo, onKeyDown: Jn, onViewportChange: B, onImmediateScroll: pn, scrollPoint: re, propsStage: { onFocus: () => {
|
|
3065
3064
|
He?.activate();
|
|
3066
3065
|
} }, renderOverlays: Vt });
|
|
3067
3066
|
}, [_]);
|
|
@@ -3080,26 +3079,26 @@ The content is not applied.`, icon: "PasteFormats" }), new Q("pasteFormulas", h,
|
|
|
3080
3079
|
let Io = m("div", { style: Eo, onTouchStart: () => {
|
|
3081
3080
|
pr();
|
|
3082
3081
|
}, onFocus: (ee) => {
|
|
3083
|
-
L(!0),
|
|
3082
|
+
L(!0), F?.(ee);
|
|
3084
3083
|
}, onBlur: (ee) => {
|
|
3085
3084
|
L(!1), h?.(ee);
|
|
3086
3085
|
}, ref: Zt, ...j, children: m("div", { className: kt("sheetxl-sheet", Bl), style: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", display: "flex", flexDirection: "column", flex: "1 1 100%", zIndex: "0", ...Xi }, children: Qe("div", { style: { display: "flex", flexDirection: "row", flex: "1 1 100%" }, children: [Mn, Qn, Qe("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden", position: "relative" }, children: [Gi, Qe("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 100%", position: "relative", borderRight: `solid ${P.edgeStrokeWidth}px ${P.edgeStrokeFill}`, backgroundColor: Ee.fill }, ref: K, onContextMenu: Yn, children: [Yi, ht, m(Wl, { style: { position: "absolute", right: 24, bottom: 4 }, colorLicensee: Oe?.selection?.strokeFill, colorCredits: Oe?.body?.text?.fill })] })] })] }) }) });
|
|
3087
|
-
S && (Io = m(
|
|
3086
|
+
S && (Io = m(dl, { style: { flex: "1 1 100%", overflow: "hidden", background: `${P.fill}`, minHeight: 2 * Ue.height, minWidth: 2 * Ue.width, ...R }, viewport: J, touchElement: O.current?.stage, disableTouch: vt, onScrollViewport: (ee) => {
|
|
3088
3087
|
O.current?.scrollTo(ee);
|
|
3089
3088
|
}, renderScrollbarHorizontal: mr, renderScrollbarVertical: mr, ...f, children: Io })), be(() => {
|
|
3090
3089
|
We.current = !1, D?.(), w && Zt.current?.focus();
|
|
3091
3090
|
}, [n]);
|
|
3092
|
-
const [
|
|
3093
|
-
|
|
3094
|
-
}, [
|
|
3091
|
+
const [Fo, Ji] = Ce(!1), pr = te(() => {
|
|
3092
|
+
Fo || Ji(!0);
|
|
3093
|
+
}, [Fo]);
|
|
3095
3094
|
return be(() => {
|
|
3096
3095
|
if (hr) return typeof V == "function" && V(), it.detectIt().primaryInput === "touch" && pr(), () => {
|
|
3097
3096
|
};
|
|
3098
|
-
}, [V, hr,
|
|
3097
|
+
}, [V, hr, Fo]), Io;
|
|
3099
3098
|
}));
|
|
3100
3099
|
Ra.displayName = "SheetElement";
|
|
3101
3100
|
const Er = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=", Ta = gt(pt((e, t) => {
|
|
3102
|
-
const { children: n, disabled: r, style: i, picture: o, description: u, isDragging: c, view: l, onHide: p, onShow: S, onKeyDownCapture: f, onFocus: g, onBlur: x, loadingPanel: k, ...E } = e, [A, Z] = Ce(!1), [V, v] = Ce(null), [
|
|
3101
|
+
const { children: n, disabled: r, style: i, picture: o, description: u, isDragging: c, view: l, onHide: p, onShow: S, onKeyDownCapture: f, onFocus: g, onBlur: x, loadingPanel: k, ...E } = e, [A, Z] = Ce(!1), [V, v] = Ce(null), [F, h] = Ce(null), [R, b] = Ce(null);
|
|
3103
3102
|
be(() => {
|
|
3104
3103
|
h(null), o.getDetails().then((N) => {
|
|
3105
3104
|
Z(!1), h(N.asUrl()), N.asSVGText?.() && b(N.asSVGText());
|
|
@@ -3108,12 +3107,12 @@ const Er = "data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fd
|
|
|
3108
3107
|
});
|
|
3109
3108
|
}, [o]);
|
|
3110
3109
|
const G = $t(t, () => ({ isPictureEditor: () => !0 }), []), T = fe(() => {
|
|
3111
|
-
if (
|
|
3110
|
+
if (F || R) return m("img", { style: { flex: "1", width: "100%", height: "100%", border: A ? "var(--sxl-app-color-grey, grey) solid 1px" : void 0, backgroundColor: A ? "var(--sxl-app-color-background, white)" : void 0, boxShadow: A ? "0px 0px 3px var(--sxl-app-color-error, red)" : void 0, objectFit: A ? "contain" : void 0, opacity: V ? 1 : 0, filter: "var(--sxl-app-filter-dark-invert)" }, draggable: !1, src: F, onLoad: () => {
|
|
3112
3111
|
v(!0);
|
|
3113
3112
|
}, onError: ({ currentTarget: N }) => {
|
|
3114
3113
|
console.log("error"), N.onerror = null, h(Er), Z(!0);
|
|
3115
3114
|
}, alt: u ?? `${o.getType()}` });
|
|
3116
|
-
}, [V, o,
|
|
3115
|
+
}, [V, o, F, R, c]);
|
|
3117
3116
|
if (!o.isClosed()) return Qe("div", { className: "picture-editor", style: { position: "relative", display: "flex", flex: "1 1 100%", filter: c ? "drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))" : void 0, ...i, width: "100%", height: "100%" }, tabIndex: 0, ...E, onKeyDownCapture: (N) => {
|
|
3118
3117
|
f?.(N);
|
|
3119
3118
|
}, ref: G, children: [V || A ? void 0 : k, T] });
|
|
@@ -3126,9 +3125,9 @@ const cc = gt(pt((e, t) => {
|
|
|
3126
3125
|
const S = $t(t, () => ({ isChartEditor: () => !0 }), []), [f, { height: g, width: x }] = bn();
|
|
3127
3126
|
if (!i.isClosed()) return m("div", { ...p, ref: un([S, f]), children: m("div", { className: "chart-editor", style: { width: "100%", height: "100%", backgroundColor: "var(--sxl-app-color-background, white)", backgroundImage: "var(--sxl-app-image-background)", alignItems: "center", justifyContent: "center", zoom: o.getZoom(), display: "flex", position: "relative", border: "var(--sxl-app-color-grey, grey) solid 1px", filter: r ? "blur(1px)" : void 0, boxShadow: u ? "1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))" : void 0 }, children: m("div", { style: { textAlign: "center" }, children: i.getDescription() }) }) });
|
|
3128
3127
|
})), Ma = "_editable-input_1bqx6_6", Da = (e) => m("input", { ...e }), Aa = gt(pt((e, t) => {
|
|
3129
|
-
const { style: n = {}, className: r, value: i = "", onSubmit: o, onChange: u, onCancel: c, renderInput: l = Da, styleHover: p = {}, dragging: S, maxLength: f, disabled: g = !1, readOnly: x = !1, ...k } = e, [E, A] = Ce(!1), [Z, V] = Ce(!1), [v,
|
|
3128
|
+
const { style: n = {}, className: r, value: i = "", onSubmit: o, onChange: u, onCancel: c, renderInput: l = Da, styleHover: p = {}, dragging: S, maxLength: f, disabled: g = !1, readOnly: x = !1, ...k } = e, [E, A] = Ce(!1), [Z, V] = Ce(!1), [v, F] = Ce(i);
|
|
3130
3129
|
be(() => {
|
|
3131
|
-
|
|
3130
|
+
F(i);
|
|
3132
3131
|
}, [i]);
|
|
3133
3132
|
const h = xe(null), [R, b] = Ce(null), G = Un(), T = Xe(function(K) {
|
|
3134
3133
|
const y = K.message;
|
|
@@ -3140,11 +3139,11 @@ const cc = gt(pt((e, t) => {
|
|
|
3140
3139
|
} catch (C) {
|
|
3141
3140
|
T(C);
|
|
3142
3141
|
}
|
|
3143
|
-
return y ? (h.current = null, V(!1),
|
|
3142
|
+
return y ? (h.current = null, V(!1), F(K), y) : (setTimeout(() => {
|
|
3144
3143
|
h.current?.focus();
|
|
3145
3144
|
}, 0), y);
|
|
3146
3145
|
}, [o]), W = te(() => {
|
|
3147
|
-
|
|
3146
|
+
F(i), h.current = null, V(!1), c?.();
|
|
3148
3147
|
}, [c, i]), ve = fe(() => {
|
|
3149
3148
|
if (!Z) return null;
|
|
3150
3149
|
const K = { className: kt(Ma), autoFocus: !0, spellCheck: !1, name: "editable-label", autoComplete: "off", maxLength: f, type: "text", value: v, onFocus: (y) => {
|
|
@@ -3154,7 +3153,7 @@ const cc = gt(pt((e, t) => {
|
|
|
3154
3153
|
}, onBlur: (y) => {
|
|
3155
3154
|
h.current && N(v);
|
|
3156
3155
|
}, onChange: (y) => {
|
|
3157
|
-
Z &&
|
|
3156
|
+
Z && F(y.target.value);
|
|
3158
3157
|
}, onMouseDown: (y) => y.stopPropagation(), onKeyDown: (y) => y.code === "Escape" ? (y.preventDefault(), void W()) : y.code === "Enter" ? (y.preventDefault(), void N(y.target.value)) : void (y.code !== "Tab" ? y.stopPropagation() : N(y.target.value)) };
|
|
3159
3158
|
return m(Sn, { children: l(K) });
|
|
3160
3159
|
}, [Z, v, N, W, l, g]), [j, _] = Ce();
|
|
@@ -3297,11 +3296,11 @@ function Ea(e) {
|
|
|
3297
3296
|
return e.matches(Ir) ? e : e.querySelector(Ir);
|
|
3298
3297
|
}
|
|
3299
3298
|
const Ia = { display: "none" };
|
|
3300
|
-
function
|
|
3299
|
+
function Fa(e) {
|
|
3301
3300
|
let { id: t, value: n } = e;
|
|
3302
3301
|
return Je.createElement("div", { id: t, style: Ia }, n);
|
|
3303
3302
|
}
|
|
3304
|
-
function
|
|
3303
|
+
function za(e) {
|
|
3305
3304
|
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
|
|
3306
3305
|
return Je.createElement("div", { id: t, style: { position: "fixed", top: 0, left: 0, width: 1, height: 1, margin: -1, border: 0, padding: 0, overflow: "hidden", clip: "rect(0 0 0 0)", clipPath: "inset(100%)", whiteSpace: "nowrap" }, role: "status", "aria-live": r, "aria-atomic": !0 }, n);
|
|
3307
3306
|
}
|
|
@@ -3354,7 +3353,7 @@ function Pa(e) {
|
|
|
3354
3353
|
let { active: g, over: x } = f;
|
|
3355
3354
|
o(t.onDragCancel({ active: g, over: x }));
|
|
3356
3355
|
} }), [o, t])), !l) return null;
|
|
3357
|
-
const S = Je.createElement(Je.Fragment, null, Je.createElement(
|
|
3356
|
+
const S = Je.createElement(Je.Fragment, null, Je.createElement(Fa, { id: r, value: i.draggable }), Je.createElement(za, { id: c, announcement: u }));
|
|
3358
3357
|
return n ? si(S, n) : S;
|
|
3359
3358
|
}
|
|
3360
3359
|
var Mt;
|
|
@@ -3382,7 +3381,7 @@ function Ba(e, t) {
|
|
|
3382
3381
|
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
3383
3382
|
return r - n;
|
|
3384
3383
|
}
|
|
3385
|
-
function
|
|
3384
|
+
function Fr(e) {
|
|
3386
3385
|
let { left: t, top: n, height: r, width: i } = e;
|
|
3387
3386
|
return [{ x: t, y: n }, { x: t + i, y: n }, { x: t, y: n + r }, { x: t + i, y: n + r }];
|
|
3388
3387
|
}
|
|
@@ -3391,16 +3390,16 @@ function Si(e, t) {
|
|
|
3391
3390
|
const [n] = e;
|
|
3392
3391
|
return n[t];
|
|
3393
3392
|
}
|
|
3394
|
-
function
|
|
3393
|
+
function zr(e, t, n) {
|
|
3395
3394
|
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), { x: t + 0.5 * e.width, y: n + 0.5 * e.height };
|
|
3396
3395
|
}
|
|
3397
3396
|
const Ha = (e) => {
|
|
3398
3397
|
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e;
|
|
3399
|
-
const i =
|
|
3398
|
+
const i = zr(t, t.left, t.top), o = [];
|
|
3400
3399
|
for (const u of r) {
|
|
3401
3400
|
const { id: c } = u, l = n.get(c);
|
|
3402
3401
|
if (l) {
|
|
3403
|
-
const p = Ci(
|
|
3402
|
+
const p = Ci(zr(l), i);
|
|
3404
3403
|
o.push({ id: c, data: { droppableContainer: u, value: p } });
|
|
3405
3404
|
}
|
|
3406
3405
|
}
|
|
@@ -3456,8 +3455,8 @@ function kn(e, t) {
|
|
|
3456
3455
|
p && (n = (function(f, g, x) {
|
|
3457
3456
|
const k = xi(g);
|
|
3458
3457
|
if (!k) return f;
|
|
3459
|
-
const { scaleX: E, scaleY: A, x: Z, y: V } = k, v = f.left - Z - (1 - E) * parseFloat(x),
|
|
3460
|
-
return { width: h, height: R, top:
|
|
3458
|
+
const { scaleX: E, scaleY: A, x: Z, y: V } = k, v = f.left - Z - (1 - E) * parseFloat(x), F = f.top - V - (1 - A) * parseFloat(x.slice(x.indexOf(" ") + 1)), h = E ? f.width / E : f.width, R = A ? f.height / A : f.height;
|
|
3459
|
+
return { width: h, height: R, top: F, right: v + h, bottom: F + R, left: v };
|
|
3461
3460
|
})(n, p, S));
|
|
3462
3461
|
}
|
|
3463
3462
|
const { top: r, left: i, width: o, height: u, bottom: c, right: l } = n;
|
|
@@ -3619,7 +3618,7 @@ class ar {
|
|
|
3619
3618
|
if (f) {
|
|
3620
3619
|
const g = Wn(f, S), x = { x: 0, y: 0 }, { scrollableAncestors: k } = r.current;
|
|
3621
3620
|
for (const E of k) {
|
|
3622
|
-
const A = t.code, { isTop: Z, isRight: V, isLeft: v, isBottom:
|
|
3621
|
+
const A = t.code, { isTop: Z, isRight: V, isLeft: v, isBottom: F, maxScroll: h, minScroll: R } = Di(E), b = ja(E), G = { x: Math.min(A === st.Right ? b.right - b.width / 2 : b.right, Math.max(A === st.Right ? b.left : b.left + b.width / 2, f.x)), y: Math.min(A === st.Down ? b.bottom - b.height / 2 : b.bottom, Math.max(A === st.Down ? b.top : b.top + b.height / 2, f.y)) }, T = A === st.Right && !V || A === st.Left && !v, N = A === st.Down && !F || A === st.Up && !Z;
|
|
3623
3622
|
if (T && G.x !== f.x) {
|
|
3624
3623
|
const W = E.scrollLeft + g.x, ve = A === st.Right && W <= h.x || A === st.Left && W >= R.x;
|
|
3625
3624
|
if (ve && !g.y) return void E.scrollTo({ left: W, behavior: c });
|
|
@@ -3729,13 +3728,13 @@ class sr {
|
|
|
3729
3728
|
}
|
|
3730
3729
|
}
|
|
3731
3730
|
const Ja = { cancel: { name: "pointercancel" }, move: { name: "pointermove" }, end: { name: "pointerup" } };
|
|
3732
|
-
class
|
|
3731
|
+
class Fi extends sr {
|
|
3733
3732
|
constructor(t) {
|
|
3734
3733
|
const { event: n } = t, r = qn(n.target);
|
|
3735
3734
|
super(t, Ja, r);
|
|
3736
3735
|
}
|
|
3737
3736
|
}
|
|
3738
|
-
|
|
3737
|
+
Fi.activators = [{ eventName: "onPointerDown", handler: (e, t) => {
|
|
3739
3738
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
3740
3739
|
return !(!n.isPrimary || n.button !== 0) && (r?.({ event: n }), !0);
|
|
3741
3740
|
} }];
|
|
@@ -3744,12 +3743,12 @@ var Jo;
|
|
|
3744
3743
|
(function(e) {
|
|
3745
3744
|
e[e.RightClick = 2] = "RightClick";
|
|
3746
3745
|
})(Jo || (Jo = {}));
|
|
3747
|
-
class
|
|
3746
|
+
class zi extends sr {
|
|
3748
3747
|
constructor(t) {
|
|
3749
3748
|
super(t, Qa, qn(t.event.target));
|
|
3750
3749
|
}
|
|
3751
3750
|
}
|
|
3752
|
-
|
|
3751
|
+
zi.activators = [{ eventName: "onMouseDown", handler: (e, t) => {
|
|
3753
3752
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
3754
3753
|
return n.button !== Jo.RightClick && (r?.({ event: n }), !0);
|
|
3755
3754
|
} }];
|
|
@@ -3791,7 +3790,7 @@ function es(e) {
|
|
|
3791
3790
|
case Pn.DraggableRect:
|
|
3792
3791
|
return i;
|
|
3793
3792
|
}
|
|
3794
|
-
}, [n, i, l]), v = xe(null),
|
|
3793
|
+
}, [n, i, l]), v = xe(null), F = Xe(() => {
|
|
3795
3794
|
const R = v.current;
|
|
3796
3795
|
if (!R) return;
|
|
3797
3796
|
const b = A.current.x * Z.current.x, G = A.current.y * Z.current.y;
|
|
@@ -3805,11 +3804,11 @@ function es(e) {
|
|
|
3805
3804
|
if (!G) continue;
|
|
3806
3805
|
const { direction: T, speed: N } = Za(R, G, V, t, g);
|
|
3807
3806
|
for (const W of ["x", "y"]) x[W][T[W]] || (N[W] = 0, T[W] = 0);
|
|
3808
|
-
if (N.x > 0 || N.y > 0) return E(), v.current = R, k(
|
|
3807
|
+
if (N.x > 0 || N.y > 0) return E(), v.current = R, k(F, u), A.current = N, void (Z.current = T);
|
|
3809
3808
|
}
|
|
3810
3809
|
A.current = { x: 0, y: 0 }, Z.current = { x: 0, y: 0 }, E();
|
|
3811
3810
|
} else E();
|
|
3812
|
-
}, [t,
|
|
3811
|
+
}, [t, F, r, E, o, u, JSON.stringify(V), JSON.stringify(x), k, p, h, S, JSON.stringify(g)]);
|
|
3813
3812
|
}
|
|
3814
3813
|
Ni.activators = [{ eventName: "onTouchStart", handler: (e, t) => {
|
|
3815
3814
|
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
@@ -3900,7 +3899,7 @@ function Li(e) {
|
|
|
3900
3899
|
const t = e.children[0];
|
|
3901
3900
|
return _n(t) ? t : e;
|
|
3902
3901
|
}
|
|
3903
|
-
const os = [{ sensor:
|
|
3902
|
+
const os = [{ sensor: Fi, options: {} }, { sensor: ar, options: {} }], rs = { current: {} }, co = { draggable: { measure: Lr }, droppable: { measure: Lr, strategy: $n.WhileDragging, frequency: Qo.Optimized }, dragOverlay: { measure: kn } };
|
|
3904
3903
|
class On extends Map {
|
|
3905
3904
|
get(t) {
|
|
3906
3905
|
var n;
|
|
@@ -3997,7 +3996,7 @@ const cs = gt(function(e) {
|
|
|
3997
3996
|
return (Te = _e[Ne]) == null ? void 0 : Te.call(_e, Ke);
|
|
3998
3997
|
});
|
|
3999
3998
|
}, [B]), Y];
|
|
4000
|
-
})(), [v,
|
|
3999
|
+
})(), [v, F] = Ce(nn.Uninitialized), h = v === nn.Initialized, { draggable: { active: R, nodes: b, translate: G }, droppable: { containers: T } } = E, N = R != null ? b.get(R) : null, W = xe({ initial: null, translated: null }), ve = fe(() => {
|
|
4001
4000
|
var B;
|
|
4002
4001
|
return R != null ? { id: R, data: (B = N?.data) != null ? B : rs, rect: W } : null;
|
|
4003
4002
|
}, [R, N]), j = xe(null), [_, D] = Ce(null), [K, y] = Ce(null), C = Vn(x, Object.values(x)), oe = Gn("DndDescribedBy", o), le = fe(() => T.getEnabled(), [T]), Me = fe(() => ({ draggable: { ...co.draggable, ...ue?.draggable }, droppable: { ...co.droppable, ...ue?.droppable }, dragOverlay: { ...co.dragOverlay, ...ue?.dragOverlay } }), [(ue = f) == null ? void 0 : ue.draggable, ue?.droppable, ue?.dragOverlay]);
|
|
@@ -4043,7 +4042,7 @@ const cs = gt(function(e) {
|
|
|
4043
4042
|
lt(), rt.current = null;
|
|
4044
4043
|
}, Ge));
|
|
4045
4044
|
}, [Ge, De, lt, ...Ne]), { droppableRects: at, measureDroppableContainers: lt, measuringScheduled: _e != null };
|
|
4046
|
-
})(le, { dragging: h, dependencies: [G.x, G.y], config: Me.droppable }),
|
|
4045
|
+
})(le, { dragging: h, dependencies: [G.x, G.y], config: Me.droppable }), ze = (function(B, Y) {
|
|
4047
4046
|
const re = Y != null ? B.get(Y) : void 0, Ne = re ? re.node.current : null;
|
|
4048
4047
|
return Nn((Ke) => {
|
|
4049
4048
|
var _e;
|
|
@@ -4054,7 +4053,7 @@ const cs = gt(function(e) {
|
|
|
4054
4053
|
return typeof c == "object" ? { ...c, enabled: re } : { enabled: re };
|
|
4055
4054
|
})(), P = (function(B, Y) {
|
|
4056
4055
|
return er(B, Y);
|
|
4057
|
-
})(
|
|
4056
|
+
})(ze, Me.draggable.measure);
|
|
4058
4057
|
(function(B) {
|
|
4059
4058
|
let { activeNode: Y, measure: re, initialRect: Ne, config: Ke = !0 } = B;
|
|
4060
4059
|
const _e = xe(!1), { x: Te, y: Ge } = typeof Ke == "boolean" ? { x: Ke, y: Ke } : Ke;
|
|
@@ -4070,7 +4069,7 @@ const cs = gt(function(e) {
|
|
|
4070
4069
|
}
|
|
4071
4070
|
}, [Y, Te, Ge, Ne, re]);
|
|
4072
4071
|
})({ activeNode: R != null ? b.get(R) : null, config: ge.layoutShiftCompensation, initialRect: P, measure: Me.draggable.measure });
|
|
4073
|
-
const Le = Vr(
|
|
4072
|
+
const Le = Vr(ze, Me.draggable.measure, P), Be = Vr(ze ? ze.parentElement : null), O = xe({ activatorEvent: null, active: null, activeNode: ze, collisionRect: null, collisions: null, droppableRects: We, draggableNodes: b, draggingNode: null, draggingNodeRect: null, droppableContainers: T, over: null, scrollableAncestors: [], scrollAdjustedTranslate: null }), $ = T.getNodeFor((t = O.current.over) == null ? void 0 : t.id), he = (function(B) {
|
|
4074
4073
|
let { measure: Y } = B;
|
|
4075
4074
|
const [re, Ne] = Ce(null), Ke = wo({ callback: Xe((we) => {
|
|
4076
4075
|
for (const { target: Pe } of we) if (_n(Pe)) {
|
|
@@ -4085,14 +4084,14 @@ const cs = gt(function(e) {
|
|
|
4085
4084
|
Ke?.disconnect(), Pe && Ke?.observe(Pe), Ne(Pe ? Y(Pe) : null);
|
|
4086
4085
|
}, [Y, Ke]), [Te, Ge] = ho(_e);
|
|
4087
4086
|
return fe(() => ({ nodeRef: Te, rect: re, setRef: Ge }), [re, Te, Ge]);
|
|
4088
|
-
})({ measure: Me.dragOverlay.measure }), de = (n = he.nodeRef.current) != null ? n :
|
|
4087
|
+
})({ measure: Me.dragOverlay.measure }), de = (n = he.nodeRef.current) != null ? n : ze, me = h ? (r = he.rect) != null ? r : Le : null, Ie = !!(he.nodeRef.current && he.rect), ae = Nr(Re = Ie ? null : Le, er(Re));
|
|
4089
4088
|
var Re;
|
|
4090
4089
|
const s = Ur(de ? Lt(de) : null), Ve = (function(B) {
|
|
4091
4090
|
const Y = xe(B), re = Nn((Ne) => B ? Ne && Ne !== Wr && B && Y.current && B.parentNode === Y.current.parentNode ? Ne : xo(B) : Wr, [B]);
|
|
4092
4091
|
return be(() => {
|
|
4093
4092
|
Y.current = B;
|
|
4094
4093
|
}, [B]), re;
|
|
4095
|
-
})(h ? $ ??
|
|
4094
|
+
})(h ? $ ?? ze : null), Ue = (function(B, Y) {
|
|
4096
4095
|
Y === void 0 && (Y = kn);
|
|
4097
4096
|
const [re] = B, Ne = Ur(re ? Lt(re) : null), [Ke, _e] = Ce(_r);
|
|
4098
4097
|
function Te() {
|
|
@@ -4102,7 +4101,7 @@ const cs = gt(function(e) {
|
|
|
4102
4101
|
return _t(() => {
|
|
4103
4102
|
Ge?.disconnect(), Te(), B.forEach((we) => Ge?.observe(we));
|
|
4104
4103
|
}, [B]), Ke;
|
|
4105
|
-
})(Ve),
|
|
4104
|
+
})(Ve), Fe = Bi(g, { transform: { x: G.x - ae.x, y: G.y - ae.y, scaleX: 1, scaleY: 1 }, activatorEvent: K, active: ve, activeNodeRect: Le, containerNodeRect: Be, draggingNodeRect: me, over: O.current.over, overlayNodeRect: he.rect, scrollableAncestors: Ve, scrollableAncestorRects: Ue, windowRect: s }), a = Ee ? yn(Ee, G) : null, I = (function(B) {
|
|
4106
4105
|
const [Y, re] = Ce(null), Ne = xe(B), Ke = Xe((_e) => {
|
|
4107
4106
|
const Te = _o(_e.target);
|
|
4108
4107
|
Te && re((Ge) => Ge ? (Ge.set(Te, Yo(Te)), new Map(Ge)) : null);
|
|
@@ -4127,9 +4126,9 @@ const cs = gt(function(e) {
|
|
|
4127
4126
|
});
|
|
4128
4127
|
}
|
|
4129
4128
|
}, [Ke, B]), fe(() => B.length ? Y ? Array.from(Y.values()).reduce((_e, Te) => yn(_e, Te), Gt) : Ai(B) : Gt, [B, Y]);
|
|
4130
|
-
})(Ve), H = $r(I), d = $r(I, [Le]), M = yn(
|
|
4129
|
+
})(Ve), H = $r(I), d = $r(I, [Le]), M = yn(Fe, H), U = me ? Ua(me, Fe) : null, X = ve && U ? S({ active: ve, collisionRect: U, droppableRects: We, droppableContainers: le, pointerCoordinates: a }) : null, ie = Si(X, "id"), [w, L] = Ce(null), q = (function(B, Y, re) {
|
|
4131
4130
|
return { ...B, scaleX: Y && re ? Y.width / re.width : 1, scaleY: Y && re ? Y.height / re.height : 1 };
|
|
4132
|
-
})(Ie ?
|
|
4131
|
+
})(Ie ? Fe : yn(Fe, d), (i = w?.rect) != null ? i : null, Le), z = xe(null), ce = Xe((B, Y) => {
|
|
4133
4132
|
let { sensor: re, options: Ne } = Y;
|
|
4134
4133
|
if (j.current == null) return;
|
|
4135
4134
|
const Ke = b.get(j.current);
|
|
@@ -4149,7 +4148,7 @@ const cs = gt(function(e) {
|
|
|
4149
4148
|
if (!ke) return;
|
|
4150
4149
|
const { onDragStart: De } = C.current, He = { activatorEvent: _e, active: { id: Pe, data: ke.data, rect: W } };
|
|
4151
4150
|
oo(() => {
|
|
4152
|
-
De?.(He),
|
|
4151
|
+
De?.(He), F(nn.Initializing), A({ type: Mt.DragStart, initialCoordinates: we, active: Pe }), Z({ type: "onDragStart", event: He }), D(z.current), y(_e);
|
|
4153
4152
|
});
|
|
4154
4153
|
}, onMove(we) {
|
|
4155
4154
|
A({ type: Mt.DragMove, coordinates: we });
|
|
@@ -4163,7 +4162,7 @@ const cs = gt(function(e) {
|
|
|
4163
4162
|
lt = { activatorEvent: _e, active: Pe, collisions: ke, delta: He, over: De }, we === Mt.DragEnd && typeof rt == "function" && await Promise.resolve(rt(lt)) && (we = Mt.DragCancel);
|
|
4164
4163
|
}
|
|
4165
4164
|
j.current = null, oo(() => {
|
|
4166
|
-
A({ type: we }),
|
|
4165
|
+
A({ type: we }), F(nn.Uninitialized), L(null), D(null), y(null), z.current = null;
|
|
4167
4166
|
const rt = we === Mt.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
4168
4167
|
if (lt) {
|
|
4169
4168
|
const at = C.current[rt];
|
|
@@ -4172,7 +4171,7 @@ const cs = gt(function(e) {
|
|
|
4172
4171
|
});
|
|
4173
4172
|
};
|
|
4174
4173
|
}
|
|
4175
|
-
|
|
4174
|
+
z.current = Te;
|
|
4176
4175
|
}, [b]), se = Xe((B, Y) => (re, Ne) => {
|
|
4177
4176
|
const Ke = re.nativeEvent, _e = b.get(Ne);
|
|
4178
4177
|
if (j.current !== null || !_e || Ke.dndKit || Ke.defaultPrevented) return;
|
|
@@ -4199,7 +4198,7 @@ const cs = gt(function(e) {
|
|
|
4199
4198
|
return re;
|
|
4200
4199
|
}));
|
|
4201
4200
|
})(p), _t(() => {
|
|
4202
|
-
Le && v === nn.Initializing &&
|
|
4201
|
+
Le && v === nn.Initializing && F(nn.Initialized);
|
|
4203
4202
|
}, [Le, v]), be(() => {
|
|
4204
4203
|
const { onDragMove: B } = C.current, { active: Y, activatorEvent: re, collisions: Ne, over: Ke } = O.current;
|
|
4205
4204
|
if (!Y || !re) return;
|
|
@@ -4215,14 +4214,14 @@ const cs = gt(function(e) {
|
|
|
4215
4214
|
L(Ge), _e?.(we), Z({ type: "onDragOver", event: we });
|
|
4216
4215
|
});
|
|
4217
4216
|
}, [ie]), _t(() => {
|
|
4218
|
-
O.current = { activatorEvent: K, active: ve, activeNode:
|
|
4219
|
-
}, [ve,
|
|
4220
|
-
const J = fe(() => ({ active: ve, activeNode:
|
|
4217
|
+
O.current = { activatorEvent: K, active: ve, activeNode: ze, collisionRect: U, collisions: X, droppableRects: We, draggableNodes: b, draggingNode: de, draggingNodeRect: me, droppableContainers: T, over: w, scrollableAncestors: Ve, scrollAdjustedTranslate: M }, W.current = { initial: me, translated: U };
|
|
4218
|
+
}, [ve, ze, X, U, b, de, me, We, T, w, Ve, M]), es({ ...ge, delta: G, draggingRect: U, pointerCoordinates: a, scrollableAncestors: Ve, scrollableAncestorRects: Ue });
|
|
4219
|
+
const J = fe(() => ({ active: ve, activeNode: ze, activeNodeRect: Le, activatorEvent: K, collisions: X, containerNodeRect: Be, dragOverlay: he, draggableNodes: b, droppableContainers: T, droppableRects: We, over: w, measureDroppableContainers: $e, scrollableAncestors: Ve, scrollableAncestorRects: Ue, measuringConfiguration: Me, measuringScheduled: Oe, windowRect: s }), [ve, ze, Le, K, X, Be, he, b, T, We, w, $e, Ve, Ue, Me, Oe, s]), pe = fe(() => ({ activatorEvent: K, activators: qe, active: ve, activeNodeRect: Le, ariaDescribedById: { draggable: oe }, dispatch: A, draggableNodes: b, over: w, measureDroppableContainers: $e }), [K, qe, ve, Le, A, oe, b, w, $e]);
|
|
4221
4220
|
return Je.createElement(bi.Provider, { value: V }, Je.createElement(Zn.Provider, { value: pe }, Je.createElement(Oi.Provider, { value: J }, Je.createElement(ko.Provider, { value: q }, l)), Je.createElement(ss, { disabled: u?.restoreFocus === !1 })), Je.createElement(Pa, { ...u, hiddenTextDescribedById: oe }));
|
|
4222
4221
|
}), ds = dn(null), Gr = "button";
|
|
4223
4222
|
function us(e) {
|
|
4224
4223
|
let { id: t, data: n, disabled: r = !1, attributes: i } = e;
|
|
4225
|
-
const o = Gn("Draggable"), { activators: u, activatorEvent: c, active: l, activeNodeRect: p, ariaDescribedById: S, draggableNodes: f, over: g } = Kt(Zn), { role: x = Gr, roleDescription: k = "draggable", tabIndex: E = 0 } = i ?? {}, A = l?.id === t, Z = Kt(A ? ko : ds), [V, v] = ho(), [
|
|
4224
|
+
const o = Gn("Draggable"), { activators: u, activatorEvent: c, active: l, activeNodeRect: p, ariaDescribedById: S, draggableNodes: f, over: g } = Kt(Zn), { role: x = Gr, roleDescription: k = "draggable", tabIndex: E = 0 } = i ?? {}, A = l?.id === t, Z = Kt(A ? ko : ds), [V, v] = ho(), [F, h] = ho(), R = (function(G, T) {
|
|
4226
4225
|
return fe(() => G.reduce((N, W) => {
|
|
4227
4226
|
let { eventName: ve, handler: j } = W;
|
|
4228
4227
|
return N[ve] = (_) => {
|
|
@@ -4230,7 +4229,7 @@ function us(e) {
|
|
|
4230
4229
|
}, N;
|
|
4231
4230
|
}, {}), [G, T]);
|
|
4232
4231
|
})(u, t), b = Vn(n);
|
|
4233
|
-
return _t(() => (f.set(t, { id: t, key: o, node: V, activatorNode:
|
|
4232
|
+
return _t(() => (f.set(t, { id: t, key: o, node: V, activatorNode: F, data: b }), () => {
|
|
4234
4233
|
const G = f.get(t);
|
|
4235
4234
|
G && G.key === o && f.delete(t);
|
|
4236
4235
|
}), [f, t]), { active: l, activatorEvent: c, activeNodeRect: p, attributes: fe(() => ({ role: x, tabIndex: E, "aria-disabled": r, "aria-pressed": !(!A || x !== Gr) || void 0, "aria-roledescription": k, "aria-describedby": S.draggable }), [r, x, E, A, k, S.draggable]), isDragging: A, listeners: r ? void 0 : R, node: V, over: g, setNodeRef: v, setActivatorNodeRef: h, transform: Z };
|
|
@@ -4288,11 +4287,11 @@ function bs(e) {
|
|
|
4288
4287
|
const g = typeof t == "function" ? t : (function(x) {
|
|
4289
4288
|
const { duration: k, easing: E, sideEffects: A, keyframes: Z } = { ...Vi, ...x };
|
|
4290
4289
|
return (V) => {
|
|
4291
|
-
let { active: v, dragOverlay:
|
|
4290
|
+
let { active: v, dragOverlay: F, transform: h, ...R } = V;
|
|
4292
4291
|
if (!k) return;
|
|
4293
|
-
const b = { x:
|
|
4292
|
+
const b = { x: F.rect.left - v.rect.left, y: F.rect.top - v.rect.top }, G = { scaleX: h.scaleX !== 1 ? v.rect.width * h.scaleX / F.rect.width : 1, scaleY: h.scaleY !== 1 ? v.rect.height * h.scaleY / F.rect.height : 1 }, T = { x: h.x - b.x, y: h.y - b.y, ...G }, N = Z({ ...R, active: v, dragOverlay: F, transform: { initial: h, final: T } }), [W] = N, ve = N[N.length - 1];
|
|
4294
4293
|
if (JSON.stringify(W) === JSON.stringify(ve)) return;
|
|
4295
|
-
const j = A?.({ active: v, dragOverlay:
|
|
4294
|
+
const j = A?.({ active: v, dragOverlay: F, ...R }), _ = F.node.animate(N, { duration: k, easing: E, fill: "forwards" });
|
|
4296
4295
|
return new Promise((D) => {
|
|
4297
4296
|
_.onfinish = () => {
|
|
4298
4297
|
j?.(), D();
|
|
@@ -4311,7 +4310,7 @@ function Cs(e) {
|
|
|
4311
4310
|
}
|
|
4312
4311
|
const qs = Je.memo((e) => {
|
|
4313
4312
|
let { adjustScale: t = !1, children: n, dropAnimation: r, style: i, transition: o, modifiers: u, wrapperElement: c = "div", className: l, zIndex: p = 999 } = e;
|
|
4314
|
-
const { activatorEvent: S, active: f, activeNodeRect: g, containerNodeRect: x, draggableNodes: k, droppableContainers: E, dragOverlay: A, over: Z, measuringConfiguration: V, scrollableAncestors: v, scrollableAncestorRects:
|
|
4313
|
+
const { activatorEvent: S, active: f, activeNodeRect: g, containerNodeRect: x, draggableNodes: k, droppableContainers: E, dragOverlay: A, over: Z, measuringConfiguration: V, scrollableAncestors: v, scrollableAncestorRects: F, windowRect: h } = Hi(), R = Kt(ko), b = Cs(f?.id), G = Bi(u, { activatorEvent: S, active: f, activeNodeRect: g, containerNodeRect: x, draggingNodeRect: A.rect, over: Z, overlayNodeRect: A.rect, scrollableAncestors: v, scrollableAncestorRects: F, transform: R, windowRect: h }), T = er(g), N = bs({ config: r, draggableNodes: k, droppableContainers: E, measuringConfiguration: V }), W = T ? A.setRef : void 0;
|
|
4315
4314
|
return Je.createElement(ps, null, Je.createElement(hs, { animation: N }, f && b ? Je.createElement(ws, { key: b, id: f.id, ref: W, as: c, activatorEvent: S, adjustScale: t, className: l, transition: o, rect: T, style: { zIndex: p, ...i }, transform: G }, n) : null));
|
|
4316
4315
|
});
|
|
4317
4316
|
function cr(e, t, n) {
|
|
@@ -4353,7 +4352,7 @@ function ks(e) {
|
|
|
4353
4352
|
if (R.length !== b.length) return !1;
|
|
4354
4353
|
for (let G = 0; G < R.length; G++) if (R[G] !== b[G]) return !1;
|
|
4355
4354
|
return !0;
|
|
4356
|
-
})(x, Z.current), v = A !== -1 && E === -1 || V,
|
|
4355
|
+
})(x, Z.current), v = A !== -1 && E === -1 || V, F = /* @__PURE__ */ (function(R) {
|
|
4357
4356
|
return typeof R == "boolean" ? { draggable: R, droppable: R } : R;
|
|
4358
4357
|
})(o);
|
|
4359
4358
|
_t(() => {
|
|
@@ -4361,7 +4360,7 @@ function ks(e) {
|
|
|
4361
4360
|
}, [V, x, k, S]), be(() => {
|
|
4362
4361
|
Z.current = x;
|
|
4363
4362
|
}, [x]);
|
|
4364
|
-
const h = fe(() => ({ activeIndex: E, containerId: f, disabled:
|
|
4363
|
+
const h = fe(() => ({ activeIndex: E, containerId: f, disabled: F, disableTransforms: v, items: x, overIndex: A, useDragOverlay: g, sortedRects: Ss(x, l), strategy: i }), [E, f, F.draggable, F.droppable, v, x, A, l, g, i]);
|
|
4365
4364
|
return Je.createElement($i.Provider, { value: h }, t);
|
|
4366
4365
|
}
|
|
4367
4366
|
const Rs = (e) => {
|
|
@@ -4376,41 +4375,41 @@ function Es(e) {
|
|
|
4376
4375
|
const { items: S, containerId: f, activeIndex: g, disabled: x, disableTransforms: k, sortedRects: E, overIndex: A, useDragOverlay: Z, strategy: V } = Kt($i), v = (function($, he) {
|
|
4377
4376
|
var de, me;
|
|
4378
4377
|
return typeof $ == "boolean" ? { draggable: $, droppable: !1 } : { draggable: (de = $?.draggable) != null ? de : he.draggable, droppable: (me = $?.droppable) != null ? me : he.droppable };
|
|
4379
|
-
})(r, x),
|
|
4378
|
+
})(r, x), F = S.indexOf(u), h = fe(() => ({ sortable: { containerId: f, index: F, items: S }, ...i }), [f, i, F, S]), R = fe(() => S.slice(S.indexOf(u)), [S, u]), { rect: b, node: G, isOver: T, setNodeRef: N } = (function($) {
|
|
4380
4379
|
let { data: he, disabled: de = !1, id: me, resizeObserverConfig: Ie } = $;
|
|
4381
|
-
const ae = Gn("Droppable"), { active: Re, dispatch: s, over: Ve, measureDroppableContainers: Ue } = Kt(Zn),
|
|
4380
|
+
const ae = Gn("Droppable"), { active: Re, dispatch: s, over: Ve, measureDroppableContainers: Ue } = Kt(Zn), Fe = xe({ disabled: de }), a = xe(!1), I = xe(null), H = xe(null), { disabled: d, updateMeasurementsFor: M, timeout: U } = { ...gs, ...Ie }, X = Vn(M ?? me), ie = wo({ callback: Xe(() => {
|
|
4382
4381
|
a.current ? (H.current != null && clearTimeout(H.current), H.current = setTimeout(() => {
|
|
4383
4382
|
Ue(Array.isArray(X.current) ? X.current : [X.current]), H.current = null;
|
|
4384
4383
|
}, U)) : a.current = !0;
|
|
4385
4384
|
}, [U]), disabled: d || !Re }), w = Xe((ce, se) => {
|
|
4386
4385
|
ie && (se && (ie.unobserve(se), a.current = !1), ce && ie.observe(ce));
|
|
4387
|
-
}, [ie]), [L, q] = ho(w),
|
|
4386
|
+
}, [ie]), [L, q] = ho(w), z = Vn(he);
|
|
4388
4387
|
return be(() => {
|
|
4389
4388
|
ie && L.current && (ie.disconnect(), a.current = !1, ie.observe(L.current));
|
|
4390
|
-
}, [L, ie]), be(() => (s({ type: Mt.RegisterDroppable, element: { id: me, key: ae, disabled: de, node: L, rect: I, data:
|
|
4391
|
-
de !==
|
|
4389
|
+
}, [L, ie]), be(() => (s({ type: Mt.RegisterDroppable, element: { id: me, key: ae, disabled: de, node: L, rect: I, data: z } }), () => s({ type: Mt.UnregisterDroppable, key: ae, id: me })), [me]), be(() => {
|
|
4390
|
+
de !== Fe.current.disabled && (s({ type: Mt.SetDroppableDisabled, id: me, key: ae, disabled: de }), Fe.current.disabled = de);
|
|
4392
4391
|
}, [me, ae, de, s]), { active: Re, rect: I, isOver: Ve?.id === me, node: L, over: Ve, setNodeRef: q };
|
|
4393
4392
|
})({ id: u, data: h, disabled: v.droppable, resizeObserverConfig: { updateMeasurementsFor: R, ...l } }), { active: W, activatorEvent: ve, activeNodeRect: j, attributes: _, setNodeRef: D, listeners: K, isDragging: y, over: C, setActivatorNodeRef: oe, transform: le } = us({ id: u, data: h, attributes: { ...As, ...n }, disabled: v.draggable }), Me = (function() {
|
|
4394
4393
|
for (var $ = arguments.length, he = new Array($), de = 0; de < $; de++) he[de] = arguments[de];
|
|
4395
4394
|
return fe(() => (me) => {
|
|
4396
4395
|
he.forEach((Ie) => Ie(me));
|
|
4397
4396
|
}, he);
|
|
4398
|
-
})(N, D), ue = !!W, We = ue && !k && lo(g) && lo(A), $e = !Z && y, Oe = $e && We ? le : null,
|
|
4397
|
+
})(N, D), ue = !!W, We = ue && !k && lo(g) && lo(A), $e = !Z && y, Oe = $e && We ? le : null, ze = We ? Oe ?? (c ?? V)({ rects: E, activeNodeRect: j, activeIndex: g, overIndex: A, index: F }) : null, Ee = lo(g) && lo(A) ? o({ id: u, items: S, activeIndex: g, overIndex: A }) : F, ge = W?.id, P = xe({ activeId: ge, items: S, newIndex: Ee, containerId: f }), Le = S !== P.current.items, Be = t({ active: W, containerId: f, isDragging: y, isSorting: ue, id: u, index: F, items: S, newIndex: P.current.newIndex, previousItems: P.current.items, previousContainerId: P.current.containerId, transition: p, wasDragging: P.current.activeId != null }), O = (function($) {
|
|
4399
4398
|
let { disabled: he, index: de, node: me, rect: Ie } = $;
|
|
4400
4399
|
const [ae, Re] = Ce(null), s = xe(de);
|
|
4401
4400
|
return _t(() => {
|
|
4402
4401
|
if (!he && de !== s.current && me.current) {
|
|
4403
4402
|
const Ve = Ie.current;
|
|
4404
4403
|
if (Ve) {
|
|
4405
|
-
const Ue = kn(me.current, { ignoreTransform: !0 }),
|
|
4406
|
-
(
|
|
4404
|
+
const Ue = kn(me.current, { ignoreTransform: !0 }), Fe = { x: Ve.left - Ue.left, y: Ve.top - Ue.top, scaleX: Ve.width / Ue.width, scaleY: Ve.height / Ue.height };
|
|
4405
|
+
(Fe.x || Fe.y) && Re(Fe);
|
|
4407
4406
|
}
|
|
4408
4407
|
}
|
|
4409
4408
|
de !== s.current && (s.current = de);
|
|
4410
4409
|
}, [he, de, me, Ie]), be(() => {
|
|
4411
4410
|
ae && Re(null);
|
|
4412
4411
|
}, [ae]), ae;
|
|
4413
|
-
})({ disabled: !Be, index:
|
|
4412
|
+
})({ disabled: !Be, index: F, node: G, rect: b });
|
|
4414
4413
|
return be(() => {
|
|
4415
4414
|
ue && P.current.newIndex !== Ee && (P.current.newIndex = Ee), f !== P.current.containerId && (P.current.containerId = f), S !== P.current.items && (P.current.items = S);
|
|
4416
4415
|
}, [ue, Ee, f, S]), be(() => {
|
|
@@ -4420,8 +4419,8 @@ function Es(e) {
|
|
|
4420
4419
|
P.current.activeId = ge;
|
|
4421
4420
|
}, 50);
|
|
4422
4421
|
return () => clearTimeout($);
|
|
4423
|
-
}, [ge]), { active: W, activeIndex: g, attributes: _, data: h, rect: b, index:
|
|
4424
|
-
if (O || Le && P.current.newIndex ===
|
|
4422
|
+
}, [ge]), { active: W, activeIndex: g, attributes: _, data: h, rect: b, index: F, newIndex: Ee, items: S, isOver: T, isSorting: ue, isDragging: y, listeners: K, node: G, overIndex: A, over: C, setNodeRef: Me, setActivatorNodeRef: oe, setDroppableNodeRef: N, setDraggableNodeRef: D, transform: O ?? ze, transition: (function() {
|
|
4423
|
+
if (O || Le && P.current.newIndex === F) return Ds;
|
|
4425
4424
|
if (!($e && !So(ve) || !p) && (ue || Be))
|
|
4426
4425
|
return sn.Transition.toString({ ...p, property: Ui });
|
|
4427
4426
|
})() };
|
|
@@ -4431,7 +4430,7 @@ function yo(e) {
|
|
|
4431
4430
|
const t = e.data.current;
|
|
4432
4431
|
return !!(t && "sortable" in t && typeof t.sortable == "object" && "containerId" in t.sortable && "items" in t.sortable && "index" in t.sortable);
|
|
4433
4432
|
}
|
|
4434
|
-
const Is = [st.Down, st.Right, st.Up, st.Left],
|
|
4433
|
+
const Is = [st.Down, st.Right, st.Up, st.Left], Fs = (e, t) => {
|
|
4435
4434
|
let { context: { active: n, collisionRect: r, droppableRects: i, droppableContainers: o, over: u, scrollableAncestors: c } } = t;
|
|
4436
4435
|
if (Is.includes(e.code)) {
|
|
4437
4436
|
if (e.preventDefault(), !n || !r) return;
|
|
@@ -4455,11 +4454,11 @@ const Is = [st.Down, st.Right, st.Up, st.Left], zs = (e, t) => {
|
|
|
4455
4454
|
});
|
|
4456
4455
|
const p = ((f) => {
|
|
4457
4456
|
let { collisionRect: g, droppableRects: x, droppableContainers: k } = f;
|
|
4458
|
-
const E =
|
|
4457
|
+
const E = Fr(g), A = [];
|
|
4459
4458
|
for (const Z of k) {
|
|
4460
4459
|
const { id: V } = Z, v = x.get(V);
|
|
4461
4460
|
if (v) {
|
|
4462
|
-
const
|
|
4461
|
+
const F = Fr(v), h = E.reduce((b, G, T) => b + Ci(F[T], G), 0), R = Number((h / 4).toFixed(4));
|
|
4463
4462
|
A.push({ id: V, data: { droppableContainer: Z, value: R } });
|
|
4464
4463
|
}
|
|
4465
4464
|
}
|
|
@@ -4469,8 +4468,8 @@ const Is = [st.Down, st.Right, st.Up, st.Left], zs = (e, t) => {
|
|
|
4469
4468
|
if (S === u?.id && p.length > 1 && (S = p[1].id), S != null) {
|
|
4470
4469
|
const f = o.get(n.id), g = o.get(S), x = g ? i.get(g.id) : null, k = g?.node.current;
|
|
4471
4470
|
if (k && x && f && g) {
|
|
4472
|
-
const E = xo(k).some((
|
|
4473
|
-
return !yo(
|
|
4471
|
+
const E = xo(k).some((F, h) => c[h] !== F), A = jr(f, g), Z = (function(F, h) {
|
|
4472
|
+
return !yo(F) || !yo(h) || !jr(F, h) ? !1 : F.data.current.sortable.index < h.data.current.sortable.index;
|
|
4474
4473
|
})(f, g), V = E || !A ? { x: 0, y: 0 } : { x: Z ? r.width - x.width : 0, y: Z ? r.height - x.height : 0 }, v = { x: x.left, y: x.top };
|
|
4475
4474
|
return V.x && V.y ? v : Wn(v, V);
|
|
4476
4475
|
}
|
|
@@ -4480,7 +4479,7 @@ const Is = [st.Down, st.Right, st.Up, st.Left], zs = (e, t) => {
|
|
|
4480
4479
|
function jr(e, t) {
|
|
4481
4480
|
return !(!yo(e) || !yo(t)) && e.data.current.sortable.containerId === t.data.current.sortable.containerId;
|
|
4482
4481
|
}
|
|
4483
|
-
const
|
|
4482
|
+
const zs = (e) => {
|
|
4484
4483
|
let { transform: t } = e;
|
|
4485
4484
|
return { ...t, y: 0 };
|
|
4486
4485
|
}, Ns = gt(pt((e, t) => {
|
|
@@ -4495,20 +4494,20 @@ const Fs = (e) => {
|
|
|
4495
4494
|
const v = S ? S({ dragOverlay: !!t, dragging: !!n, sorting: !!f, index: c, fadeIn: !!i, listeners: l, ref: V, style: g, transform: k, transition: x, value: E }) : m(Sn, { children: E });
|
|
4496
4495
|
return m("div", { className: kt("tab-item", Ut.Wrapper, i && Ut.fadeIn, f && Ut.sorting, t && Ut.dragOverlay), style: { ...A, transition: [x, A?.transition].filter(Boolean).join(", "), "--translate-x": k ? `${Math.round(k.x)}px` : void 0, "--translate-y": k ? `${Math.round(k.y)}px` : void 0, "--scale-x": k?.scaleX ? `${k.scaleX}` : void 0, "--scale-y": k?.scaleY ? `${k.scaleY}` : void 0, "--index": c }, ref: V, children: m("div", { className: kt(Ut.Item, n && Ut.dragging, o && Ut.withHandle, t && Ut.dragOverlay, r && Ut.disabled, e && Ut.color, "dragging"), style: g, "data-cypress": "draggable-item", ...o ? void 0 : l, ...Z, tabIndex: o ? void 0 : -1, children: v }) });
|
|
4497
4496
|
})), Kr = { Row: "_Row_1kr10_1" }, Ls = gt(pt(({ children: e, horizontal: t, style: n }, r) => m("div", { ref: r, style: { ...n }, className: kt(Kr.Row, t && Kr.horizontal), children: e }))), Ps = { ...Vi }, Os = gt(pt((e, t) => {
|
|
4498
|
-
const { className: n, activationConstraint: r, animateLayoutChanges: i, adjustScale: o = !1, collisionDetection: u = Ha, coordinateGetter: c =
|
|
4497
|
+
const { className: n, activationConstraint: r, animateLayoutChanges: i, adjustScale: o = !1, collisionDetection: u = Ha, coordinateGetter: c = Fs, dropAnimation: l = Ps, getItemStyles: p = () => ({}), getNewIndex: S, handle: f = !1, items: g, onMove: x, isDisabled: k = () => !1, measuring: E, modifiers: A, renderItem: Z, renderDivider: V, reorderItems: v = cr, strategy: F = dr, style: h, useDragOverlay: R = !0, onDragStart: b, wrapperStyle: G = () => ({}) } = e, [T, N] = Ce(() => g);
|
|
4499
4498
|
be(() => {
|
|
4500
4499
|
N(g);
|
|
4501
4500
|
}, [g]);
|
|
4502
4501
|
const [W, ve] = Ce(null), j = (function() {
|
|
4503
4502
|
for (var C = arguments.length, oe = new Array(C), le = 0; le < C; le++) oe[le] = arguments[le];
|
|
4504
4503
|
return fe(() => [...oe].filter((Me) => Me != null), [...oe]);
|
|
4505
|
-
})(Uo(
|
|
4504
|
+
})(Uo(zi, { activationConstraint: r }), Uo(Ni, { activationConstraint: r }), Uo(ar, { scrollBehavior: "Cypress" in window ? "auto" : void 0, coordinateGetter: c })), _ = T.indexOf.bind(T), D = W ? _(W) : -1, K = [];
|
|
4506
4505
|
T.map((C, oe) => {
|
|
4507
4506
|
K.push(m(Bs, { id: C, handle: f, index: oe, style: p, wrapperStyle: G, disabled: k(C), renderItem: Z, animateLayoutChanges: i, useDragOverlay: R, getNewIndex: S }, C + "-" + oe));
|
|
4508
4507
|
const le = V?.({ key: "divider-" + oe });
|
|
4509
4508
|
le && K.push(le);
|
|
4510
4509
|
});
|
|
4511
|
-
const { getPortalContainer: y } =
|
|
4510
|
+
const { getPortalContainer: y } = ul();
|
|
4512
4511
|
return Qe(cs, { sensors: j, collisionDetection: u, onDragStart: (C) => {
|
|
4513
4512
|
const { active: oe } = C;
|
|
4514
4513
|
oe && (b?.(C), ve(oe.id));
|
|
@@ -4519,14 +4518,14 @@ const Fs = (e) => {
|
|
|
4519
4518
|
}
|
|
4520
4519
|
}, onDragCancel: () => {
|
|
4521
4520
|
ve(null);
|
|
4522
|
-
}, measuring: E, modifiers: A, children: [m("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...h }, className: kt(n, Ut.Wrapper), children: m(ks, { items: T, strategy:
|
|
4521
|
+
}, measuring: E, modifiers: A, children: [m("div", { style: { display: "flex", justifyContent: "flex-start", boxSizing: "border-box", ...h }, className: kt(n, Ut.Wrapper), children: m(ks, { items: T, strategy: F, children: m(Ls, { ref: t, children: K }) }) }), R ? si(m(qs, { adjustScale: o, dropAnimation: l, children: W ? m(_i, { value: T[D], handle: f, renderItem: Z, wrapperStyle: G({ index: D, isDragging: !0, id: T[D] }), index: D, dragging: !0, style: p({ id: T[D], index: D, isSorting: W !== null, isDragging: !0, overIndex: -1, isDragOverlay: !0 }), dragOverlay: !0 }) : null }), y()) : null] });
|
|
4523
4522
|
}));
|
|
4524
4523
|
function Bs({ disabled: e, animateLayoutChanges: t, getNewIndex: n, handle: r, id: i, index: o, onRemove: u, style: c, renderItem: l, useDragOverlay: p, wrapperStyle: S }) {
|
|
4525
4524
|
const { attributes: f, isDragging: g, isSorting: x, listeners: k, overIndex: E, setNodeRef: A, transform: Z, transition: V } = Es({ id: i, animateLayoutChanges: t, disabled: e, getNewIndex: n });
|
|
4526
4525
|
return m(_i, { ref: A, value: i, disabled: e, dragging: g, sorting: x, handle: r, renderItem: l, index: o, style: c({ index: o, id: i, isDragging: g, isSorting: x, overIndex: E }), onRemove: u ? () => u(i) : void 0, transform: Z, transition: V, wrapperStyle: S({ index: o, isDragging: g, id: i }), listeners: k, "data-index": o, "data-id": i, dragOverlay: !p && g, ...f });
|
|
4527
4526
|
}
|
|
4528
4527
|
const Hs = "_TabStrip_3x0dp_1", Vs = new ei("rgb(33, 115, 70)"), Ws = "#eee", $s = (e) => m(Ns, { ...e }), Us = gt(pt((e, t) => {
|
|
4529
|
-
const { children: n, style: r, className: i, selectedTabIndex: o = 0, tabNames: u = [], onSelectedTabIndexChange: c, onTabNameChange: l, onTabMove: p, renderScrollButtonStart: S =
|
|
4528
|
+
const { children: n, style: r, className: i, selectedTabIndex: o = 0, tabNames: u = [], onSelectedTabIndexChange: c, onTabNameChange: l, onTabMove: p, renderScrollButtonStart: S = gl, renderScrollButtonEnd: f = hl, renderScrollButtonEdge: g = ml, renderTabButton: x = $s, renderTabDivider: k, propsEditLabel: E, disabled: A = !1, disableDrag: Z = !1, background: V = "white", activeColor: v = Vs, borderColor: F = Ws, borderWidth: h = 1 } = e, [R, b] = Ce(o), [G, T] = Ce(u), N = Xe((ae) => {
|
|
4530
4529
|
const Re = y.current?.[ae]?.closest(".tab-item") ?? y.current?.[ae];
|
|
4531
4530
|
Re && $e.current?.scrollTo({ top: Re.offsetTop, left: Re.offsetLeft, behavior: "smooth" });
|
|
4532
4531
|
}, []);
|
|
@@ -4552,27 +4551,27 @@ const Hs = "_TabStrip_3x0dp_1", Vs = new ei("rgb(33, 115, 70)"), Ws = "#eee", $s
|
|
|
4552
4551
|
y.current?.[ae]?.cancel();
|
|
4553
4552
|
} }, C.current), [R, _]);
|
|
4554
4553
|
const oe = Xe(({ value: ae, index: Re, dragging: s }) => {
|
|
4555
|
-
const { style: Ve, maxLength: Ue, ...
|
|
4554
|
+
const { style: Ve, maxLength: Ue, ...Fe } = E || {}, a = m(Aa, { ref: (I) => {
|
|
4556
4555
|
y.current[Re] = I;
|
|
4557
4556
|
}, value: ae, disabled: A, maxLength: Ue, style: { color: R === Re && v ? v?.toRGBA().toString() : "inherit", flex: "1 1 100%", paddingTop: "1px", paddingBottom: "1px", ...Ve }, styleHover: {}, onSubmit: (I) => (j.current = !1, D(-1), K(Re, I)), onCancel: () => {
|
|
4558
4557
|
j.current = !1, D(-1);
|
|
4559
4558
|
}, onChange: (I) => {
|
|
4560
4559
|
j.current = !0, D(Re);
|
|
4561
|
-
}, ...
|
|
4562
|
-
return x({ onClick: (I) => W(I, Re), value: ae, index: Re, editing: _ === Re && j.current, editable: !0, disabled: A, selectedIndex: R, background: V, activeColor: v, borderColor:
|
|
4563
|
-
}, [R, K, W, E, A, _, x]), [le, { width: Me }] = bn(), [ue, { width: We }] = bn(), $e = xe(null), [Oe,
|
|
4560
|
+
}, ...Fe });
|
|
4561
|
+
return x({ onClick: (I) => W(I, Re), value: ae, index: Re, editing: _ === Re && j.current, editable: !0, disabled: A, selectedIndex: R, background: V, activeColor: v, borderColor: F, borderWidth: h, dragging: s, children: a });
|
|
4562
|
+
}, [R, K, W, E, A, _, x]), [le, { width: Me }] = bn(), [ue, { width: We }] = bn(), $e = xe(null), [Oe, ze] = Ce({ left: 0, top: 0, width: 0, height: 0 }), [Ee, ge] = Ce(null);
|
|
4564
4563
|
be(() => {
|
|
4565
4564
|
Ee !== null && $e.current && $e.current.scrollTo({ left: Ee, behavior: "smooth" });
|
|
4566
4565
|
}, [Ee]);
|
|
4567
4566
|
const P = Xe((ae, Re = !1) => {
|
|
4568
4567
|
if (!$e.current) return 0;
|
|
4569
4568
|
let s = $e.current.firstChild.getBoundingClientRect(), Ve = $e.current.firstChild.firstChild.children, Ue = 0;
|
|
4570
|
-
return Ue = Re ? 0 :
|
|
4569
|
+
return Ue = Re ? 0 : wr.getScrollTo(ae, s.left, Ve, !0, Math.max(0, ae - 200)), ge(Ue), Math.max(0, Ue);
|
|
4571
4570
|
}, []), Le = Xe((ae, Re = !1) => {
|
|
4572
4571
|
if (!$e.current) return 0;
|
|
4573
4572
|
let s = $e.current.firstChild.getBoundingClientRect(), Ve = $e.current.firstChild.firstChild.children, Ue = 0;
|
|
4574
|
-
const
|
|
4575
|
-
return Ue = Re ?
|
|
4573
|
+
const Fe = Math.ceil(We - Me);
|
|
4574
|
+
return Ue = Re ? Fe : wr.getScrollTo(ae, s.left, Ve, !1, Math.max(0, ae + 200)), ge(Ue), Math.min(Fe, Ue);
|
|
4576
4575
|
}, [We, Me]), Be = xe(null), O = xe(null), $ = Xe(() => {
|
|
4577
4576
|
O.current && (clearTimeout(O.current), O.current = null, Be.current = null);
|
|
4578
4577
|
}, []), he = Xe((ae, Re, s = 260) => {
|
|
@@ -4582,13 +4581,13 @@ const Hs = "_TabStrip_3x0dp_1", Vs = new ei("rgb(33, 115, 70)"), Ws = "#eee", $s
|
|
|
4582
4581
|
}, s);
|
|
4583
4582
|
}, [P, Le, $]);
|
|
4584
4583
|
be(() => () => $(), [$]);
|
|
4585
|
-
const de = fe(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(Oe.left) <= 0 || Math.floor(We - Me) === 0, orientation:
|
|
4586
|
-
return Qe("div", { style: { ...r, display: "flex", alignItems: "stretch" }, className: kt(Hs, i), ref: C, children: [m("div", { style: { borderTop: `solid ${
|
|
4587
|
-
|
|
4588
|
-
}, children: m(Os, { isDisabled: (ae) => A || Z, items: G, strategy: xs, modifiers: [
|
|
4584
|
+
const de = fe(() => ({ style: { marginLeft: "4px", marginRight: "6px" }, disabled: Math.floor(Oe.left) <= 0 || Math.floor(We - Me) === 0, orientation: zn.Horizontal, onMouseUp: $, onMouseLeave: $, onMouseDown: () => he($e.current.scrollLeft, !0), onClick: (ae) => P(Math.min($e.current.scrollLeft, Ee ?? Number.MAX_SAFE_INTEGER), ae.ctrlKey) }), [Oe, Ee, We, Me]), me = fe(() => ({ style: { marginLeft: "6px", marginRight: "4px" }, disabled: Math.floor(We - Me) <= Math.ceil(Oe.left), orientation: zn.Horizontal, onMouseUp: $, onMouseLeave: $, onMouseDown: () => he($e.current.scrollLeft, !1), onClick: (ae) => Le(Math.max($e.current.scrollLeft, Ee ?? 0), ae.ctrlKey) }), [Oe, Ee, We, Me]), Ie = fe(() => Qe(Sn, { children: [m("div", { style: { minWidth: "16px" } }), n, g?.(de)] }), [de, me, S, f, n, g]);
|
|
4585
|
+
return Qe("div", { style: { ...r, display: "flex", alignItems: "stretch" }, className: kt(Hs, i), ref: C, children: [m("div", { style: { borderTop: `solid ${F} ${h}px`, position: "absolute", width: "100%" } }), m("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: Ie }), m("div", { className: "Tabs", ref: le, style: { flex: "1 1 100%", display: "flex", position: "relative", overflow: "hidden" }, children: m("div", { style: { position: "relative", overflowY: "hidden", overflowX: "hidden", marginBottom: "3px" }, ref: $e, onScroll: (ae) => {
|
|
4586
|
+
ze({ left: ae.target.scrollLeft, top: ae.target.scrollTop, width: ae.target.scrollWidth, height: ae.target.scrollHeight });
|
|
4587
|
+
}, children: m(Os, { isDisabled: (ae) => A || Z, items: G, strategy: xs, modifiers: [zs], ref: ue, renderItem: oe, renderDivider: k, onMove: ve, activationConstraint: { distance: 15 } }) }) }), m("div", { style: { flex: "none", display: "flex", alignItems: "center" }, children: g(me) })] });
|
|
4589
4588
|
}));
|
|
4590
4589
|
Us.displayName = "TabStrip";
|
|
4591
|
-
const dc = (e) => Qe("svg", { ...e, viewBox: "0 0 48 48", children: [m("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), m("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), m("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), m("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), uc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), gc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), m("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), m("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), m("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), m("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), hc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), m("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), m("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), m("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), m("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), mc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), m("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), pc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), m("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), fc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), m("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), vc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), m("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), wc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), yc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), bc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), m("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), m("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), m("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), m("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Cc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), m("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), m("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), m("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), m("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), qc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), m("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), m("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), m("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), m("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), m("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), Sc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), m("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), m("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), m("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), m("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), xc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), m("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), m("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), m("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), m("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), kc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), m("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), m("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), m("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), m("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Rc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), m("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), m("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), m("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Tc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), m("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), m("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), m("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), m("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), Mc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), m("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), m("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), Dc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), m("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), m("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), Ac = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), m("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), Ec = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), m("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), m("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), Ic = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), m("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), m("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), zc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), Fc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), ur = dn(null);
|
|
4590
|
+
const dc = (e) => Qe("svg", { ...e, viewBox: "0 0 48 48", children: [m("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), m("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), m("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), m("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), uc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), gc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z" }), m("path", { className: "styled background", d: "M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z" }), m("path", { className: "styled info_light", d: "M 832 1387 h -469 v -640 h 469 z" }), m("path", { className: "styled info_dark", d: "M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z" }), m("path", { className: "styled secondary_light", d: "M 1600 1131 h -469 v -811 h 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z" })] }), hc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z" }), m("path", { className: "styled background", d: "M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z" }), m("path", { className: "styled info_light", d: "M 832 1515 h -469 v -1195 h 469 z" }), m("path", { className: "styled info_dark", d: "M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z" }), m("path", { className: "styled secondary_light", d: "M 1600 875 h -469 v -555 h 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z" })] }), mc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z" }), m("path", { className: "styled info", d: "M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z" })] }), pc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), m("path", { className: "styled info", d: "M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), fc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" }), m("path", { className: "styled info", d: "M 1877 299 h -1770 v -43 h 1770 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z" })] }), vc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z" }), m("path", { className: "styled info", d: "M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z" })] }), wc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled info", d: "M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z" })] }), yc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z" }), m("path", { className: "styled info", d: "M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z" })] }), bc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z" }), m("path", { className: "styled background", d: "M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z" }), m("path", { className: "styled current_color", d: "M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z" }), m("path", { className: "styled info_light", d: "M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z" }), m("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z" })] }), Cc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z" }), m("path", { className: "styled background", d: "M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z" }), m("path", { className: "styled current_color", d: "M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z" }), m("path", { className: "styled info_light", d: "M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z" }), m("path", { className: "styled info_dark", d: "M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z" })] }), qc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z" }), m("path", { className: "styled background", d: "M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z" }), m("path", { className: "styled info_light", d: "M 1813 277 v 299 h -1706 v -299 z" }), m("path", { className: "styled info_dark", d: "M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z" }), m("path", { className: "styled secondary_light", d: "M 917 1088 v 299 h -810 v -299 z" }), m("path", { className: "styled secondary_dark", d: "M 896 1109 h -795 v -42 h 838 v 322 h -43 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z" })] }), Sc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z" }), m("path", { className: "styled background", d: "M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z" }), m("path", { className: "styled info_light", d: "M 704 832 v -469 h 640 v 469 z" }), m("path", { className: "styled info_dark", d: "M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z" }), m("path", { className: "styled secondary_light", d: "M 917 1600 v -469 h 811 v 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z" })] }), xc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z" }), m("path", { className: "styled background", d: "M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z" }), m("path", { className: "styled info_light", d: "M 533 832 v -469 h 1195 v 469 z" }), m("path", { className: "styled info_dark", d: "M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z" }), m("path", { className: "styled secondary_light", d: "M 1173 1600 v -469 h 555 v 469 z" }), m("path", { className: "styled secondary_dark", d: "M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z" })] }), kc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z" }), m("path", { className: "styled background", d: "M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z" }), m("path", { className: "styled info_light", d: "M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z" }), m("path", { className: "styled info_dark", d: "M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z" }), m("path", { className: "styled current_color", d: "M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z" })] }), Rc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z" }), m("path", { className: "styled background", d: "M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z" }), m("path", { className: "styled info_light", d: "M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z" }), m("path", { className: "styled info_dark", d: "M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Tc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z" }), m("path", { className: "styled background", d: "M 1941 1941 h -1834 v -1834 h 1834 z" }), m("path", { className: "styled current_color", d: "M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z" }), m("path", { className: "styled info_light", d: "M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z" }), m("path", { className: "styled info_dark", d: "M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z" })] }), Mc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" }), m("path", { className: "styled background", d: "M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z" }), m("path", { className: "styled info", d: "M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z" })] }), Dc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z" }), m("path", { className: "styled background", d: "M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z" }), m("path", { className: "styled info", d: "M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z" })] }), Ac = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z" }), m("path", { className: "styled info", d: "M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z" })] }), Ec = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z" }), m("path", { className: "styled background", d: "M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z" }), m("path", { className: "styled info", d: "M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z" }), m("path", { className: "styled current_color", d: "M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z" })] }), Ic = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z" }), m("path", { className: "styled info", d: "M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z" }), m("path", { className: "styled current_color", d: "M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z" })] }), Fc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), zc = (e) => Qe("svg", { viewBox: "0,0,2048,2048", ...e, children: [m("path", { className: "styled high_contrast", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z" }), m("path", { className: "styled background", d: "M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z" }), m("path", { className: "styled info_light", d: "M 619 1941 h -299 v -1322 h 299 z" }), m("path", { className: "styled info_dark", d: "M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z" }), m("path", { className: "styled secondary_light", d: "M 1429 1941 h -298 v -1066 h 298 z" }), m("path", { className: "styled secondary_dark", d: "M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z" }), m("path", { className: "styled current_color", d: "M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z" })] }), ur = dn(null);
|
|
4592
4591
|
ur.displayName = "DocThemesContext";
|
|
4593
4592
|
const Nc = (e) => {
|
|
4594
4593
|
const { themes: t, children: n } = e;
|
|
@@ -4596,8 +4595,8 @@ const Nc = (e) => {
|
|
|
4596
4595
|
}, Lc = () => {
|
|
4597
4596
|
const e = Kt(ur), [t] = Ce(() => new il());
|
|
4598
4597
|
return fe(() => e || t, [e]);
|
|
4599
|
-
}, _s = "_script-editor_iy654_5", Gs = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, Zs = Je.lazy(() => import("./
|
|
4600
|
-
let In,
|
|
4598
|
+
}, _s = "_script-editor_iy654_5", Gs = { lightbulb: { enabled: !1 }, tabSize: 2, acceptSuggestionOnCommitCharacter: !0, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: !0, autoIndent: !1, codeLens: !0, colorDecorators: !0, contextmenu: !0, cursorBlinking: "blink", cursorSmoothCaretAnimation: !1, cursorStyle: "line", disableLayerHinting: !1, disableMonospaceOptimizations: !1, dragAndDrop: !0, glyphMargin: !0, fixedOverflowWidgets: !1, folding: !0, foldingStrategy: "auto", fontLigatures: !1, formatOnPaste: !0, formatOnType: !1, hideCursorInOverviewRuler: !1, highlightActiveIndentGuide: !0, links: !0, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: !1, multiCursorMergeOverlapping: !0, multiCursorModifier: "alt", overviewRulerBorder: !0, overviewRulerLanes: 2, quickSuggestions: !0, quickSuggestionsDelay: 100, readOnly: !1, renderControlCharacters: !1, renderFinalNewline: !0, renderIndentGuides: !0, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: !0, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: !0, selectOnLineNumbers: !0, selectionClipboard: !0, selectionHighlight: !0, showLightbulbIconMode: !1, showFoldingControls: "mouseover", smoothScrolling: !0, suggestOnTriggerCharacters: !0, wordBasedSuggestions: !0, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: !0, wrappingIndent: "none" }, Zs = Je.lazy(() => import("./C07OMiF-GZT09DE8.mjs"));
|
|
4599
|
+
let In, Fn, tn = ["define", "require"], Yr = !1, uo = "@0.7.22";
|
|
4601
4600
|
uo !== "@local" && uo !== "@0.0.0" || (uo = "");
|
|
4602
4601
|
const js = `https://cdn.jsdelivr.net/npm/@sheetxl/sdk${uo}/types/scripting.d.ts`, Xr = async (e, t, n) => {
|
|
4603
4602
|
const r = e.getModel();
|
|
@@ -4680,14 +4679,14 @@ const Pc = gt(pt((e, t) => {
|
|
|
4680
4679
|
let ge = null;
|
|
4681
4680
|
const P = () => k;
|
|
4682
4681
|
return ge = i ? i.createChildGroup(P, "scriptEditor", !1) : new bo(P, "scriptEditor"), ge.addCommands(E, !0), ge;
|
|
4683
|
-
}, [i, E]), Z = i.getGroup("workbook"), V = ni(Z, ["executeSelectedScript", "saveScripts"]), v = V[0],
|
|
4682
|
+
}, [i, E]), Z = i.getGroup("workbook"), V = ni(Z, ["executeSelectedScript", "saveScripts"]), v = V[0], F = V[1], h = v?.getContext(), [R, b] = Ce({ message: "Loading", cursor: "", dirty: !1 }), [G, T] = Ce({ loading: !1, compiling: !1, errors: [], warnings: [] }), N = te((ge) => {
|
|
4684
4683
|
b((P) => {
|
|
4685
4684
|
const Le = { ...P, ...ge };
|
|
4686
|
-
return et.deepEqual(Le, P) ? P : (
|
|
4685
|
+
return et.deepEqual(Le, P) ? P : (F.update({ disabled: !Le.dirty }).updateCallback(async () => {
|
|
4687
4686
|
await W();
|
|
4688
4687
|
}), Le);
|
|
4689
4688
|
});
|
|
4690
|
-
}, [S,
|
|
4689
|
+
}, [S, F]);
|
|
4691
4690
|
be(() => {
|
|
4692
4691
|
S?.(R);
|
|
4693
4692
|
}, [S, R]);
|
|
@@ -4726,8 +4725,8 @@ const Pc = gt(pt((e, t) => {
|
|
|
4726
4725
|
if (!s) return null;
|
|
4727
4726
|
const Ve = s.startLineNumber === s.endLineNumber && s.startColumn === s.endColumn ? de.getLineCount() : Math.min(s.endLineNumber, de.getLineCount());
|
|
4728
4727
|
for (let Ue = s.startLineNumber; !Re && Ue <= Ve; Ue++) {
|
|
4729
|
-
const
|
|
4730
|
-
|
|
4728
|
+
const Fe = gr(ae, de.getOffsetAt({ lineNumber: Ue, column: 1 }), "function", he);
|
|
4729
|
+
Fe && (Re = Fe.text);
|
|
4731
4730
|
}
|
|
4732
4731
|
return Re;
|
|
4733
4732
|
})(P, Le);
|
|
@@ -4794,7 +4793,7 @@ const Pc = gt(pt((e, t) => {
|
|
|
4794
4793
|
}, [R]), We = xe(null), $e = te((ge, P) => {
|
|
4795
4794
|
g.current = { monaco: P, editor: ge }, D(!0), oe("Loading Types");
|
|
4796
4795
|
const Le = h?.getScripts().getModules().getItems()[0]?.getSource() ?? "";
|
|
4797
|
-
ge.setValue(Le), import("./
|
|
4796
|
+
ge.setValue(Le), import("./B-FEg36883DAwV11.mjs").then((O) => O.c).then(async (O) => {
|
|
4798
4797
|
oe(""), O.AutoTypings.create(ge, { shareCache: !0, dontAdaptEditorOptions: !0, monaco: P, onUpdate: ($, he) => {
|
|
4799
4798
|
if ($.type === "LookedUpPackage" && $.success !== void 0) {
|
|
4800
4799
|
const de = P.languages.typescript.typescriptDefaults.getDiagnosticsOptions();
|
|
@@ -4867,7 +4866,7 @@ const Pc = gt(pt((e, t) => {
|
|
|
4867
4866
|
}), ge.onDidChangeCursorPosition((O) => {
|
|
4868
4867
|
oe();
|
|
4869
4868
|
});
|
|
4870
|
-
}, [h]), Oe = fe(() => _ ? null : c || m("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [_, c]),
|
|
4869
|
+
}, [h]), Oe = fe(() => _ ? null : c || m("div", { style: { position: "absolute", width: "100%", height: "100%" }, children: "Loading..." }), [_, c]), ze = fe(() => {
|
|
4871
4870
|
if (!_) {
|
|
4872
4871
|
if (!In) {
|
|
4873
4872
|
In = {};
|
|
@@ -4877,11 +4876,11 @@ const Pc = gt(pt((e, t) => {
|
|
|
4877
4876
|
In[Be] = globalThis[Be];
|
|
4878
4877
|
}
|
|
4879
4878
|
}
|
|
4880
|
-
if (
|
|
4879
|
+
if (Fn) {
|
|
4881
4880
|
const P = tn.length;
|
|
4882
4881
|
for (let Le = 0; Le < P; Le++) {
|
|
4883
4882
|
const Be = tn[Le];
|
|
4884
|
-
globalThis[Be] =
|
|
4883
|
+
globalThis[Be] = Fn[Be];
|
|
4885
4884
|
}
|
|
4886
4885
|
}
|
|
4887
4886
|
}
|
|
@@ -4905,9 +4904,9 @@ const Pc = gt(pt((e, t) => {
|
|
|
4905
4904
|
for (let ae = 1; ae <= Ie; ae++) {
|
|
4906
4905
|
const Re = me[ae - 1], s = P.editor.tokenize(Re, "typescript"), Ve = s[0].length;
|
|
4907
4906
|
for (let Ue = 0; Ue < Ve; Ue++) {
|
|
4908
|
-
const
|
|
4909
|
-
if (
|
|
4910
|
-
let a =
|
|
4907
|
+
const Fe = s[0]?.[Ue];
|
|
4908
|
+
if (Fe && Fe.type.startsWith("string")) {
|
|
4909
|
+
let a = Fe.offset, I = s[0]?.[Ue + 1]?.offset ?? Re.length, H = new P.Range(ae, a + 1, ae, I + 1), d = O.getValueInRange(H);
|
|
4911
4910
|
const M = d[0];
|
|
4912
4911
|
M !== "`" && M !== "'" && M !== '"' || (a++, d = d.substring(1));
|
|
4913
4912
|
const U = d[d.length - 1];
|
|
@@ -4937,12 +4936,12 @@ const Pc = gt(pt((e, t) => {
|
|
|
4937
4936
|
}
|
|
4938
4937
|
if (j.current && (await Xr(g.current.editor, g.current.monaco, j.current), j.current = null), x.current && requestAnimationFrame(async () => {
|
|
4939
4938
|
x.current && P.editor.focus();
|
|
4940
|
-
}), !
|
|
4941
|
-
|
|
4939
|
+
}), !Fn) {
|
|
4940
|
+
Fn = {};
|
|
4942
4941
|
const O = tn.length;
|
|
4943
4942
|
for (let $ = 0; $ < O; $++) {
|
|
4944
4943
|
const he = tn[$];
|
|
4945
|
-
|
|
4944
|
+
Fn[he] = globalThis[he];
|
|
4946
4945
|
}
|
|
4947
4946
|
}
|
|
4948
4947
|
})();
|
|
@@ -4956,7 +4955,7 @@ const Pc = gt(pt((e, t) => {
|
|
|
4956
4955
|
g.current?.editor && requestAnimationFrame(() => {
|
|
4957
4956
|
Ee.current?.contains(document.activeElement) && Ee.current?.focus();
|
|
4958
4957
|
});
|
|
4959
|
-
}), []), m("div", { className: kt("script-editor", _s, n), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...r }, ref: Ee, ...f, children:
|
|
4958
|
+
}), []), m("div", { className: kt("script-editor", _s, n), style: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...r }, ref: Ee, ...f, children: ze });
|
|
4960
4959
|
})), Oc = Object.freeze(Object.defineProperty({ __proto__: null, FindScopeOptions: { Workbook: "workbook", Sheet: "sheet" } }, Symbol.toStringTag, { value: "Module" }));
|
|
4961
4960
|
export {
|
|
4962
4961
|
kc as ChartAreaIcon,
|
|
@@ -4965,8 +4964,8 @@ export {
|
|
|
4965
4964
|
qc as ChartBarIcon,
|
|
4966
4965
|
Sc as ChartBarStackedIcon,
|
|
4967
4966
|
xc as ChartBarStackedPercentIcon,
|
|
4968
|
-
|
|
4969
|
-
|
|
4967
|
+
zc as ChartBubble3DIcon,
|
|
4968
|
+
Fc as ChartBubbleIcon,
|
|
4970
4969
|
uc as ChartColumnIcon,
|
|
4971
4970
|
gc as ChartColumnStackedIcon,
|
|
4972
4971
|
hc as ChartColumnStackedPercentIcon,
|
|
@@ -4992,13 +4991,11 @@ export {
|
|
|
4992
4991
|
Aa as EditableLabel,
|
|
4993
4992
|
sc as EmptyFrame,
|
|
4994
4993
|
kl as FilterButton,
|
|
4995
|
-
_i as Item,
|
|
4996
4994
|
Vc as LicenseManager,
|
|
4997
4995
|
dc as LogoNoPaddingIcon,
|
|
4998
4996
|
Vl as LogoTextNoPaddingIcon,
|
|
4999
4997
|
fa as MovableArea,
|
|
5000
4998
|
Ta as PictureEditor,
|
|
5001
|
-
Ls as Row,
|
|
5002
4999
|
Pc as ScriptEditor,
|
|
5003
5000
|
Ml as SheetCellEditor,
|
|
5004
5001
|
Rl as SheetCellRenderer,
|