@sheetxl/studio-mui 0.4.13 → 0.4.15

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.
Files changed (123) hide show
  1. package/browser/cjs/BNHQPLsVdLmkPgyG.cjs +6 -0
  2. package/browser/cjs/BUU_z9x81l1Qnv1t.cjs +6 -0
  3. package/browser/cjs/BX8hkPMsPd9PSv0Z.cjs +161 -0
  4. package/browser/cjs/BknKSPzyXctJohHb.cjs +6 -0
  5. package/browser/cjs/Blfxp7Ec3Yjx3gNU.cjs +6 -0
  6. package/browser/cjs/BqFEcpPZjpwULlZk.cjs +6 -0
  7. package/browser/cjs/C-pPuqiWtgMU4NgZ.cjs +15 -0
  8. package/browser/cjs/C9eqE9OnPkiI-5Zd.cjs +7 -0
  9. package/browser/cjs/CB6DGRkCA3BLDEFr.cjs +6 -0
  10. package/browser/cjs/CO4rZgb0ObTZh6NO.cjs +6 -0
  11. package/browser/cjs/CU900NraHPDHMGJt.cjs +18 -0
  12. package/browser/cjs/Cpo-h2pMpScosT7r.cjs +6 -0
  13. package/browser/cjs/Cq2L49XjSKiIAsND.cjs +11 -0
  14. package/browser/cjs/D9X3UXVH6b_NJFeo.cjs +12 -0
  15. package/browser/cjs/DZJO-_8PnMFRZMpg.cjs +6 -0
  16. package/browser/cjs/DmCCEKhedSOg163M.cjs +6 -0
  17. package/browser/cjs/DpZ5HlIMG95q2uIe.cjs +96 -0
  18. package/browser/cjs/DwLcsRl4-LumKl6l.cjs +42 -0
  19. package/browser/cjs/Dy2vYVhrEqTHdzfD.cjs +11 -0
  20. package/browser/cjs/Gj8MlEhOCg_o7idM.cjs +6 -0
  21. package/browser/cjs/IllnWqWVClWDW1ot.cjs +6 -0
  22. package/browser/cjs/J3xq71qTV9LqCUzu.cjs +145 -0
  23. package/browser/cjs/X9sJMKafafBPpNpK.cjs +16 -0
  24. package/browser/cjs/index.cjs +4 -10
  25. package/browser/cjs/klnhoS0cqBpCC5fo.cjs +7 -0
  26. package/browser/esm/BQNKKCtIvfOMph3T.mjs +2250 -0
  27. package/browser/esm/BiQfhG8JMHeWuT63.mjs +1672 -0
  28. package/browser/esm/Btyp6us1Vzz3ZfHk.mjs +13391 -0
  29. package/browser/esm/Bvr3QlWdnOSnskWL.mjs +392 -0
  30. package/browser/esm/CYpvNksOw1PyhLpA.mjs +52 -0
  31. package/browser/esm/CcZUaOkODU7h0onP.mjs +25 -0
  32. package/browser/esm/CnXUhdLB8blNUvSr.mjs +84 -0
  33. package/browser/esm/CwjVlrJJqEGZX6q2.mjs +52 -0
  34. package/browser/esm/D0v3VaJtA3LjHpWR.mjs +20816 -0
  35. package/browser/esm/D4DvAg7aaaWl0TPV.mjs +1467 -0
  36. package/browser/esm/DAZNeiMI9sOM-xd8.mjs +1366 -0
  37. package/browser/esm/DGUm6rEOgO8WrVtT.mjs +23 -0
  38. package/browser/esm/DGoy2q9hDB7kive6.mjs +44 -0
  39. package/browser/esm/DSCE3cCea5d5Ip-N.mjs +1703 -0
  40. package/browser/esm/DrTLuc1VQWQfDAej.mjs +59 -0
  41. package/browser/esm/DuzycndVID_eag8V.mjs +1352 -0
  42. package/browser/esm/FZoe4QJ2ecSD1pjB.mjs +43 -0
  43. package/browser/esm/HI5oLhcn8kfiky1k.mjs +3803 -0
  44. package/browser/esm/T2YlNqs-LGJBm08C.mjs +46 -0
  45. package/browser/esm/UCJVaz3qX1u53mgI.mjs +640 -0
  46. package/browser/esm/UWejV3W_nMwWqnxY.mjs +48 -0
  47. package/browser/esm/VpP_qw0lmgCaHdHR.mjs +153 -0
  48. package/browser/esm/YS19x3zzRUKQqXu_.mjs +2410 -0
  49. package/browser/esm/index.mjs +84 -8
  50. package/browser/esm/jqoS02EUPE2WEY1t.mjs +424 -0
  51. package/licenses/dependencies.txt +6 -6
  52. package/node/esm/{BO6cKQ_efCO2YTyW.mjs → 3htalFC0z5xbRnmH.mjs} +1 -1
  53. package/node/esm/{DKho7vhsoPr3NuMl.mjs → B-pzKiKMkbB9Es-9.mjs} +1 -1
  54. package/node/esm/{BZ8BYhQCAcmtqV_l.mjs → BFxzGj5sPFwrklFi.mjs} +3 -3
  55. package/node/esm/{DvKUmpzXvELOJbAq.mjs → BGYSS0lvjSMTtreq.mjs} +1 -1
  56. package/node/esm/{BxJ8RdpZW49RjtqB.mjs → BGZpuIQG7RsGY_HH.mjs} +1 -1
  57. package/node/esm/{BEWR_Oinb-P8gswu.mjs → BTnlaEz7yZqa7QHP.mjs} +1 -1
  58. package/node/esm/{DW7i1Qv4kcmwOTvD.mjs → BfUEFSGuAZXw2fvO.mjs} +1 -1
  59. package/node/esm/{BqcpB9wQAjq0QKR1.mjs → BiJ5CZBAxg4-QDHh.mjs} +1 -1
  60. package/node/esm/{nmVSg6Qpwj9V1oA0.mjs → Bnkt1wiWaLEq8xla.mjs} +1 -1
  61. package/node/esm/{-mcJjjdCwl8lh-eg.mjs → BwbOSLs2gcxOaV0i.mjs} +1 -1
  62. package/node/esm/{RpUFmc_WL9-PMYhx.mjs → CAWLE2N0nA-FjUkH.mjs} +1 -1
  63. package/node/esm/{uAAAbPd_k3kmgO5f.mjs → CSnI8PJEgxEQEj1B.mjs} +1 -1
  64. package/node/esm/{VnhwCsWDUmo5-K5N.mjs → CvYpf-Km1Rvg15q4.mjs} +1 -1
  65. package/node/esm/{BqsJ9biuGwjU2xgY.mjs → CxhzSvAqksnasp3g.mjs} +1 -1
  66. package/node/esm/{CdLN7JEivNllaQ6w.mjs → DCrdGvQ_vOB2o-ca.mjs} +1 -1
  67. package/node/esm/{CfO2Xok0ch8kylzr.mjs → DhGXQOOW9FBpgCqI.mjs} +1 -1
  68. package/node/esm/{CsPaYpANdd8Rpel-.mjs → DkhnVkboeZsdMJxH.mjs} +1 -1
  69. package/node/esm/{4WfRn0Og_yApP_Q8.mjs → DnMRqYWKDGXlNm42.mjs} +1 -1
  70. package/node/esm/{CQ1mTChRFSKFU2O1.mjs → DsS5U5rJ5tNVEGXs.mjs} +1 -1
  71. package/node/esm/{CcOchU9ZOmdG4JFr.mjs → DuyHq4Fs-_RQkwF_.mjs} +1 -1
  72. package/node/esm/{o-JVx3HFrRjVjKmi.mjs → FzVegyt0upYkLobF.mjs} +2 -2
  73. package/node/esm/{BPG7zfcXK20urqr_.mjs → imk332niB0MxWuGl.mjs} +5 -5
  74. package/node/esm/index.mjs +11 -11
  75. package/package.json +8 -8
  76. package/browser/cjs/34mwIxXhbXYv5xsc.cjs +0 -7
  77. package/browser/cjs/3OIgTi54FC0IBzyK.cjs +0 -7
  78. package/browser/cjs/B-Aq2h8aSDrc_0iZ.cjs +0 -7
  79. package/browser/cjs/BDhT8qcsUqUILki7.cjs +0 -7
  80. package/browser/cjs/BKJsMQHem8u-jMiR.cjs +0 -7
  81. package/browser/cjs/BO7LEbRChpLg-xKv.cjs +0 -7
  82. package/browser/cjs/BZR-qDCIYdiDtD-U.cjs +0 -7
  83. package/browser/cjs/BfE1_C2EpBrmB7bt.cjs +0 -7
  84. package/browser/cjs/Brij8vl9GntSQBer.cjs +0 -7
  85. package/browser/cjs/C61z_849Y2mg6eYL.cjs +0 -7
  86. package/browser/cjs/CaKjImRkCm3-QSAI.cjs +0 -7
  87. package/browser/cjs/Cw7iXqLfwZMRGb3J.cjs +0 -7
  88. package/browser/cjs/CwwItA5xvSx0QgDn.cjs +0 -7
  89. package/browser/cjs/DPTcPoZ3PiOOW7lp.cjs +0 -7
  90. package/browser/cjs/DhmN913n5MBAZsij.cjs +0 -7
  91. package/browser/cjs/DhoDW4ohnPkwiE_o.cjs +0 -7
  92. package/browser/cjs/Dj_PjsvImW3tjX0i.cjs +0 -7
  93. package/browser/cjs/Dl4WPIJFTvpCXOs3.cjs +0 -7
  94. package/browser/cjs/QCtfu4qn-ovJa_wL.cjs +0 -7
  95. package/browser/cjs/VQ4Cuzvkmtel1iE_.cjs +0 -7
  96. package/browser/cjs/VTMW1yjPzEJGyBmh.cjs +0 -7
  97. package/browser/cjs/hY59MepmKCIoN0hM.cjs +0 -7
  98. package/browser/cjs/pKp_fof7vGupYAM2.cjs +0 -7
  99. package/browser/cjs/t-9gaLqrOnGiw-3T.cjs +0 -7
  100. package/browser/esm/5U4XS5qxb3oJ33qK.mjs +0 -7
  101. package/browser/esm/BPMMuKIe5xb3-D8V.mjs +0 -7
  102. package/browser/esm/BXartMrqQuAXu0Qz.mjs +0 -7
  103. package/browser/esm/Bc8N72T3wtTApPEG.mjs +0 -7
  104. package/browser/esm/BjoQXBQuDry5Fgc_.mjs +0 -7
  105. package/browser/esm/BlUq84tk9v01SQgx.mjs +0 -7
  106. package/browser/esm/C5iuJTeAtknnUEIE.mjs +0 -7
  107. package/browser/esm/CN67iG3xuQhXAPad.mjs +0 -7
  108. package/browser/esm/CQgUOqCEwTc61uuT.mjs +0 -7
  109. package/browser/esm/Cq1DtQcbtmTtKOc4.mjs +0 -7
  110. package/browser/esm/Cqz35dsi-gZArS0S.mjs +0 -7
  111. package/browser/esm/D9wzPAaUYfW5yKFN.mjs +0 -7
  112. package/browser/esm/DRRzJ8Ep6_Tyd6ne.mjs +0 -7
  113. package/browser/esm/DSGJzNzS8OeMxUW1.mjs +0 -7
  114. package/browser/esm/DSIpyed_o2mrjd0r.mjs +0 -7
  115. package/browser/esm/DWgrVUwlK4kwFJn-.mjs +0 -7
  116. package/browser/esm/Dr6QLJSwckbF9K_u.mjs +0 -7
  117. package/browser/esm/DuSF-rjIFFvyCoo8.mjs +0 -7
  118. package/browser/esm/EiBc8VBUeU8VXEhw.mjs +0 -7
  119. package/browser/esm/R3CPiIXdp_rdc-Bw.mjs +0 -7
  120. package/browser/esm/eXqnYk6V-QI6pGI5.mjs +0 -7
  121. package/browser/esm/hdx26DrfopUuM4j1.mjs +0 -7
  122. package/browser/esm/oXfsh9SiDjQuu2ZE.mjs +0 -7
  123. package/browser/esm/zBIGDTI8z3bRbFxO.mjs +0 -7
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import{ITextFrame as e,ScalarType as t,IRange as n,IFont as o,ThemeCollection as r,Color as i,IBorder as l,LicenseManager as a,IFill as s,IColor as c,AutoFill as d,NumberFormat as u,ICell as h,ISheetView as p,FormulaError as f,GeomUtils as m,CoordUtils as g,TextUtils as y,RangeClipboardItem as b,ExternalRangeClipboardItem as w,IAnchored as v,ITheme as x,CommonUtils as S,IFontCollection as C,IStyle as k,Table as E,ISheet as _,Workbook as T,TypesUtils as M,PartialError as D,UndoManager as R}from"@sheetxl/sdk";import{jsx as O,jsxs as L,Fragment as I}from"react/jsx-runtime";import*as A from"react";import P,{memo as z,useRef as F,useState as N,useEffect as V,useCallback as H,useReducer as B,useMemo as $,forwardRef as j,useImperativeHandle as W,useLayoutEffect as U,version as q,createElement as Z,createContext as G,Suspense as K,Fragment as X,useContext as Y,cloneElement as J,isValidElement as Q,Component as ee}from"react";import{Divider as te,Box as ne,IconButton as oe,Input as re,SvgIcon as ie,ListItemIcon as le,MenuItem as ae,Typography as se,Paper as ce,Tooltip as de,Toolbar as ue,Chip as he,Popper as pe,Grow as fe,Button as me,DialogContent as ge,DialogActions as ye,Fade as be,Backdrop as we,DialogTitle as ve,FormControlLabel as xe,Checkbox as Se,useMediaQuery as Ce,FormControl as ke,TextField as Ee,InputAdornment as _e,Slider as Te,CircularProgress as Me,Select as De,Tabs as Re,Tab as Oe,Card as Le,CardActions as Ie,Collapse as Ae,CssBaseline as Pe}from"@mui/material";import{ArrowRight as ze,ArrowLeft as Fe,Error as Ne,ArrowDropDown as Ve,ContentCopy as He,BugReport as Be,Close as $e,FormatAlignLeft as je,FormatAlignCenter as We,FormatAlignRight as Ue,FormatAlignJustify as qe,Colorize as Ze,DarkMode as Ge,LightMode as Ke,Keyboard as Xe,Remove as Ye,Add as Je,ExpandLess as Qe,ExpandMore as et,Lock as tt,MoreHoriz as nt,WebhookOutlined as ot,AddCircleOutline as rt,Menu as it,CancelOutlined as lt}from"@mui/icons-material";import{createRoot as at}from"react-dom/client";import st,{unstable_batchedUpdates as ct,createPortal as dt}from"react-dom";import{alpha as ut,darken as ht,lighten as pt,useTheme as ft,unstable_createGetCssVar as mt,createSpacing as gt,ThemeProvider as yt,unstable_createCssVarsProvider as bt}from"@mui/system";import wt,{internal_mutateStyles as vt,internal_serializeStyles as xt,ThemeContext as St}from"@mui/styled-engine";import{deepmerge as Ct}from"@mui/utils";function kt(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=kt(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Et(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kt(e))&&(o&&(o+=" "),o+=t);return o}const _t={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},Tt="text/html",Mt="text/plain",Dt="image/png",Rt=Object.freeze({left:0,top:0}),Ot=Object.freeze({left:0,top:0,bottom:0,right:0}),Lt=Object.freeze({x:0,y:0,width:0,height:0}),It=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Lt,EmptyRect:Ot,EmptyTopLeft:Rt},Symbol.toStringTag,{value:"Module"})),At="column",Pt="row",zt=Object.freeze({colIndex:0,rowIndex:0}),Ft=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),Nt=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Vt=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Ht=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Bt=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,$t=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,jt=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Wt=(e=Pt,t=!1)=>t?e!==At?Ht:Bt:e!==At?Vt:Nt,Ut=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,qt=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Zt=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),Gt=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0},Kt=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},Xt=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];Zt(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},Yt=[null,null],Jt=(e,t,n)=>{if(e[0].value===e[1].value)return t};function Qt(e,t=2,n,o=Pt,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===At,a=0,s=!1;do{const e=i.sort(Wt(l?Pt:At));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&h===t.rowStart&&f===t.rowEnd&&p+1===t.colStart:d&&u===t.colStart&&p===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:h,colEnd:l?t.colEnd:p,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}const en=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:zt,EmptyRange:Ft,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:$t,columnFirstRangeComparator:Nt,createCellComparator:(e=Pt,t=!1)=>t?e!==At?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==At?jt:$t,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const h=t?a:s,p=t?s:a;o={colStart:h,rowStart:p,colEnd:h,rowEnd:p},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?Qt(n,3,!0===e?Jt:e,t?At:Pt,Yt):n)}},createRangeComparator:Wt,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:Xt,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!qt(n,o);)o=n,n=Xt(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(Zt(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:Ut,isEqualRanges:qt,isEqualRangesArrays:Gt,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!Ut(e.cell,t.cell)&&Gt(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Zt,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:Qt,rowFirstCellComparator:jt,rowFirstRangeComparator:Vt,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:Kt,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=Kt(o,e[t],n);return t&&(o=Kt(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const tn="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function nn(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===tn}(e)}(e)}function on(e,t){return!1!==t.clone&&t.isMergeableObject(e)?sn((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function rn(e,t,n){return e.concat(t).map(function(e){return on(e,n)})}function ln(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function an(e,t){try{return t in e}catch(e){return!1}}function sn(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||rn,n.isMergeableObject=n.isMergeableObject||nn,n.cloneUnlessOtherwiseSpecified=on;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&ln(e).forEach(function(t){o[t]=on(e[t],n)}),ln(t).forEach(function(r){(function(e,t){return an(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(an(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return sn;const n=t.customMerge(e);return"function"==typeof n?n:sn}(r,n)(e[r],t[r],n):o[r]=on(t[r],n))}),o}(e,t,n):on(t,n)}sn.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return sn(e,n,t)},{})};const cn=Object.freeze([]),dn=Object.freeze({}),un=e=>e,hn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),pn=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),fn=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,mn=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?mn(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),gn=(e,t)=>!(e!==t&&!pn(e,t)&&!e.isEqual?.(t)),yn=(e,t,n=gn)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===yn(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},bn="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),wn=e=>null==e,vn=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),xn=!("undefined"==typeof window||!window.document||!window.document.createElement),Sn={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Cn=()=>{if(kn())return Sn.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Sn.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Sn.MacOS:/(iphone|ipad|ipod)/i.test(e)?Sn.IOS:/android/.test(e)?Sn.Android:/linux/.test(e)?Sn.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Sn.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Sn.Firefox:Sn.Unknown:Sn.Unknown};function kn(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const En=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),_n=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:cn,EmptyObject:dn,OSType:Sn,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:xn,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>wn(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:sn,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=un){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=un){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!fn(r))return r;o=r}return o??null},getOS:Cn,hasFocus:En,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:pn,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:kn,isNullOrUndefined:wn,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:fn,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:vn,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!fn(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=sn(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!xn)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:mn,removeEqualValues:yn,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=bn(),o={id:requestAnimationFrame(function r(){bn()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!fn(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!fn(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!vn(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:hn,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{En(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const Tn=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},Mn=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")}),Dn=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Tn,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:Mn},Symbol.toStringTag,{value:"Module"})),Rn="data:image/png;base64,",On="Unable to resolve image.",Ln=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(On)}),In="image/svg+xml";var An,Pn;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Rn,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(On)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await Ln(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:In})),i=await Ln(r);n={mimeType:t??In,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===In?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(Pn=An||(An={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,Pn.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};let zn=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const Fn="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Nn="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",Vn={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:Nn,PermsWrite:Cn()===Sn.Safari?Fn:Nn,PermsRead:Cn()===Sn.Safari?Fn:Nn},Hn=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Bn=async(e,t,n)=>{if(Cn()===Sn.Safari)return await n(new Error(Vn.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},$n=async e=>{try{return await e.read({unsanitized:[Tt]})}catch(e){}return await e.read()},jn=async(e,t)=>{if(!e)return null;const n=await $n(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const Wn=async(e,t=Tt)=>new Promise(async(n,o)=>{try{const o=await jn(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),Un=async(e,t=Tt)=>{const n=await Wn(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,Tt)}catch(e){console.warn("Can't parse html from clipboard.")}return o},qn=async e=>{e&&await e.writeText("")},Zn=jn,Gn=Wn,Kn=Un,Xn="clipboard-uuid",Yn="web text/uuid",Jn=e=>`<div style="display:none" ${Xn}="${e}"/>`,Qn=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,Tt);o.body.firstElementChild.setAttribute(Xn,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},eo=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Xn}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let to=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await Bn("clipboard-read",async()=>{await Hn();const e=await Wn(this._nativeClipboard,Yn);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await Un(this._nativeClipboard,Tt);return!this._state||(eo(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||Cn()===Sn.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await Bn("clipboard-read",async()=>{if(await Hn(),this._state?.uuid){const t=await Wn(this._nativeClipboard,Yn);if(t&&t===e._state.uuid)return!0;const n=await Un(this._nativeClipboard,Tt);if(eo(e._state?.uuid,n))return!0}return e._state={items:await $n(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:hn(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await Bn("clipboard-write",async()=>{await Hn(),o&&0===r.length&&(r.push(new ClipboardItem({[Yn]:new Blob([o],{type:Yn})})),r.push(new ClipboardItem({[Tt]:new Blob([Jn(o)],{type:Tt})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(Tt),l=null;if(-1!==i){const e=await t.getType(Tt);l=await Mn(e),l&&(l=Qn(o,l))}if(!l&&t.types.includes(Mt)){const e=await t.getType(Mt);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await Mn(e),t&&(l=`<div ${Xn}="${o}">${t}</div>`)}}if(!l&&t.types.includes(Dt)){const e=await t.getType(Dt),n=Tn(await e.arrayBuffer());l=`<div ${Xn}="${o}"><img src="${Rn+n}"/></div>`}!l&&o&&(l=Jn(o));const a=new Blob([l??""],{type:Tt}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[Tt]=a),o&&(s[Yn]=new Blob([o],{type:Yn})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await qn(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[Mt]=new Blob([t??""],{type:Mt}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[Tt]=new Blob([t],{type:Tt}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[Dt]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:hn(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let e=0;!o&&n&&e<n.length;e++)n[e].types.includes(Mt)&&(o=await n[e].getType(Mt));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[Mt]:new Blob([e],{type:Mt})})];return this._write({uuid:hn(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var no;(no=to||(to={})).ErrorMessages=Vn,no.Global=new no,function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const oo="left",ro={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},io={Tab:9,Enter:13,Escape:27,Space:32,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Delete:46,F1:112,F2:113},lo=3,ao={Horizontal:"horizontal",Vertical:"vertical"};function so(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=so(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function co(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=so(e))&&(o&&(o+=" "),o+=t);return o}var uo=function(){},ho="undefined"!=typeof window,po=ho?U:V,fo={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const mo=ho&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(fo),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return po(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[uo,fo]},go=(e,t)=>{const n=H((...t)=>e?.(...t),t),o=F(null);o.current=n;const r=H((...e)=>o.current?.(...e),[]);if(o.current)return r},yo=e=>{const{style:t,orientation:n=ao.Vertical,...o}=e,r=n===ao.Vertical;return O("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},bo=e=>{const{style:t,orientation:n=ao.Vertical,...o}=e,r=n===ao.Vertical;return O("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},wo=e=>{const{style:t,orientation:n=ao.Vertical,...o}=e,r=n===ao.Vertical;return O("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...t},className:`scrollbar-button ${r?"vertical":"horizontal"} edge`,...o,children:O("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:O("path",{style:{transition:"opacity 240ms ease 0s",opacity:e.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})},vo=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r},xo=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:vo},Symbol.toStringTag,{value:"Module"})),So=z(j((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:a=ao.Vertical,onScrollOffset:s,onScroll:c,showCustomScrollButtons:d=!1,scrollButtonIncrement:u=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:p=120,createScrollStartButton:f=yo,createScrollEndButton:m=bo,...g}=e,y=go(c,[c]),b=F(null),[w,{width:v,height:x}]=mo(),[S,{width:C,height:k}]=mo(),E=a===ao.Vertical,_=E?"top":"left",T=E?"scrollTop":"scrollLeft",M=E?x:v,D=E?k:C,[R,I]=N(null);V(()=>{null!==R&&b.current&&b.current.scrollTo({behavior:"smooth",[_]:R})},[R,E]);const A=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:vo(e,o[_],r,!0,Math.max(0,e-u));return I(i),Math.max(0,i)},[]),P=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(D-M),l=t?i:vo(e,o[_],r,!1,Math.max(0,e+u));return I(l),Math.min(i,l)},[D,M]),z=F(null),B=H(e=>{z.current=n;const t=e.target[T];s(t,r,o),y?.(e)},[s,r,o,n]);V(()=>{const e=z.current;z.current=null,n!==e&&(b.current[T]=n)},[n,T]);const j=F(null),W=F(null),U=H(()=>{j.current&&(clearTimeout(j.current),j.current=null,W.current=null)},[]),q=H((e,t,n,o=h)=>{W.current=e,j.current=setTimeout(()=>{const t=n?A(W.current||e):P(W.current||e);t!==W.current?q(t,!1,n,p):U()},t?0:o)},[A,P,U]);V(()=>()=>U(),[U]);const Z=n,G=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(Z)<=0||0===Math.floor(D-M),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!0)};return f?.(e)},[d,a,Z,R,D,M]),K=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(D-M)<=Math.ceil(Z),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!1)};return m?.(e)},[d,a,Z,R,D,M]);return L("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:E?"column":"row",padding:"0",...i},className:co("_sheetxl-scrollbar_eblx4_6",l),...g,children:[G,O("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:E?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:O("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:E?"scroll":"hidden",overflowX:E?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:B,ref:b,children:O("div",{ref:S,style:{position:"absolute",height:E?o-r+(x??0):1,width:E?1:o-r+(v??0)},className:"scrollbar-viewport"})})}),K]})}));So.displayName="Scrollbar";let Co=Date.now,ko={},Eo=1;const _o=e=>{let t=null!==ko[e];return t&&(ko[e]=null),t},To=(e,t,n,o=0,r)=>{let i=Co(),l=i,a=0,s=0,c=0,d=Eo++;if(d%20==0){const e={};for(let t in ko)e[t]=!0;ko=e}const u=function(h){let p=!0!==h,f=Co(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!ko[d]||!m)return ko[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(p){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,y=!1;try{y=e(g,f,p)}catch(e){y=!1}!1!==y&&1!==a||!p?p&&(l=f,requestAnimationFrame(u)):(ko[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return ko[d]=!0,requestAnimationFrame(u),d},Mo=function(e){return Math.pow(e-1,3)+1},Do=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let Ro=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(e,t,n,o){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}}getPoint(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(_o(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,e,t)}zoomBy(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(_o(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)}scrollBy(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(e,t){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(_o(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(_o(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]}doTouchMove(e,t,n=1){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);let i=this.__positions;if(this.__isDragging){let e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){let t=this.__positions,n=t.length-1,o=n;for(let e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&this.__startDeceleration(e)}else this.options.scrollingComplete?.()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete?.();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}}__publish(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(_o(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),h=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=To(d,u,h,this.options.animationDuration,r?Mo:Do)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=To(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}};var Oo="undefined"!=typeof window?window:{screen:{},navigator:{}},Lo=(Oo.matchMedia||function(){return{matches:!1}}).bind(Oo),Io=!1,Ao={get passive(){return Io=!0}},Po=function(){};Oo.addEventListener&&Oo.addEventListener("p",Po,Ao),Oo.removeEventListener&&Oo.removeEventListener("p",Po,!1);var zo=Io,Fo="PointerEvent"in Oo,No="ontouchstart"in Oo,Vo=No||"TouchEvent"in Oo&&Lo("(any-pointer: coarse)").matches,Ho=(Oo.navigator.maxTouchPoints||0)>0||Vo,Bo=Oo.navigator.userAgent||"",$o=Lo("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Bo)&&Math.min(Oo.screen.width||0,Oo.screen.height||0)>=768,jo=(Lo("(pointer: coarse)").matches||!Lo("(pointer: fine)").matches&&No)&&!/Windows.*Firefox/.test(Bo),Wo=Lo("(any-pointer: fine)").matches||Lo("(any-hover: hover)").matches||$o||!No,Uo=!Ho||!Wo&&jo?Ho?"touchOnly":"mouseOnly":"hybrid",qo="mouseOnly"===Uo?"mouse":"touchOnly"===Uo||jo?"touch":"mouse";const Zo=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Uo,primaryInput:qo,supportsPassiveEvents:zo,supportsPointerEvents:Fo,supportsTouchEvents:Vo},Symbol.toStringTag,{value:"Module"})),Go=new Set(["INPUT","TEXTAREA","SELECT"]),Ko={};function Xo(){return Zo}const Yo=e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":_n.camelToPrettyCase(e),Jo=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Ko,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:Xo,focusableNodeNames:Go,toPrettyKeyCode:Yo},Symbol.toStringTag,{value:"Module"})),Qo=[];function er(e,t,n=Qo){const o=F(null);return W(e,()=>{if(!o.current)return;const e=o.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const r=Object.keys(n),i=r.length;for(let t=0;t<i;t++){const o=r[t],i=n[o];Object.defineProperty(e,o,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},n),o}const tr=e=>O(So,{...e}),nr=({width:e,height:t})=>O("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),or=z(j((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:a=nr,createHorizontalScrollbar:s=tr,createVerticalScrollbar:c=tr,style:d,touchElement:u,disableTouch:h,...p}=e,f=go(r,[r]),m=er(t,()=>({isScrollPane:()=>!0}),[]),g=F(null);V(()=>{g.current&&(g.current.__scrollTop===o?.top&&g.current.__scrollLeft===o?.left||g.current.__isDecelerating||g.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,u]);const y=H((e,t)=>{f?.({left:e,top:t})},[]),b=H(e=>{g.current?.doTouchStart(e.touches,e.timeStamp)},[]),w=H(e=>{e.preventDefault(),g.current?.doTouchMove(e.touches,e.timeStamp)},[]),v=H(e=>{g.current?.doTouchEnd(e.timeStamp)},[]),x=H(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{g.current.setDimensions(e,t,n,o)},[]);V(()=>{const e=u??m.current;if(!h&&Xo().supportsTouchEvents&&e&&o){if(!g.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};g.current=new Ro(y,e)}Xo().supportsTouchEvents&&(e.addEventListener("touchstart",b),e.addEventListener("touchend",v),e.addEventListener("touchmove",w)),x({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{e?.removeEventListener("touchstart",b),e?.removeEventListener("touchend",v),e?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,u]);const[S,{width:C}]=mo(),[k,{height:E}]=mo(),_=$(()=>{const e=c({orientation:ao.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:e=>{f?.({top:e})}});return O("div",{style:{display:"flex",flex:"0"},ref:S,children:e})},[c,o?.top,o?.height,o?.totalHeight]),T=$(()=>{const e=s({orientation:ao.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:e=>f?.({left:e})});return L("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${C}px)`},children:O("div",{ref:k,className:"sizer",children:e})}),l?a({width:C,height:E}):O(I,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,a,C,E]);return O("div",{style:{position:"relative",display:"flex",minWidth:l?`${C}px`:void 0,minHeight:i?`${E}px`:void 0,...d},...p,ref:m,children:L("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[L("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?_:O(I,{})]}),i?T:O(I,{})]})})}));or.displayName="ScrollPane";const rr="error",ir="warning",lr="info",ar=new Set,sr={showMessage:(e,t)=>{if(t?.onceKey){if(ar.has(t.onceKey))return;ar.add(t.onceKey)}let n=console.log;t?.type!==ir&&t?.type!==rr||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(e=>{e(()=>{})}),showError:e=>{console.error(e)}},cr=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let dr=0;const ur=100,hr=100,pr=1e6,fr=100,mr=50,gr=z(j((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=ur,endScrollIncrement:a=hr,style:s=Ko,onMouseDown:c,onScrollOffset:d,onScroll:u,scaleLimit:h=pr,scaleFactor:p=fr,precisionFactor:f=mr,...m}=e;u&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const g=go(c,[c]),y=()=>({offset:n,totalSize:0===h?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,w]=N(y),v=0!==h&&b.totalSize>h?p:1,x=v/f,S=Math.ceil(b.totalSize/v),C=Math.ceil(b.offset/v),k=Math.ceil(o/v),E=H(e=>{},[]),[_,T]=N(!1),M=F(null);U(()=>{if(!_){M.current={propTotalSize:r,propViewportSize:o,propOffset:n};const e=y();w(e)}},[r,o,n,_,i,l,a]);const D=go((e,t,i)=>{const l=M.current;M.current=null,l&&l.propTotalSize===r&&l.propViewportSize===o&&l.propOffset===n||(Math.abs(e-C)<x&&(e=C),d?.(e*v,C,k))},[d,v,x,C,k]),R=H(e=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",R),T(!1)},[]),L=H(e=>{g?.(e),T(!0),document.addEventListener("mousemove",E,{passive:!0}),document.addEventListener("mouseup",R,{passive:!0})},[E,R]);return O(So,{ref:t,style:{...s},...m,offset:C,totalSize:S,viewportSize:k,onMouseDown:L,onScrollOffset:D})}));gr.displayName="VirtualScrollbar";const yr="bottom",br="left",wr="right",vr="top";function xr(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Sr=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=xr(o,t),r="function"==typeof e;n.push(r?e:()=>xr(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)xr(n,t)}};z(j((e,t)=>{const{refFocusStart:n,...o}=e,r=F(null),i=H(()=>{if(n)return void n?.current?.focus();const e=r.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==r.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[n]);return O("div",{tabIndex:0,ref:Sr([r,t]),onFocus:i,...o})}));const Cr=z(j((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:a="grey",...s}=e,[c,{width:d,height:u}]=mo(),h=F(null),p=(e,t=0)=>{const n=e/2,o=u-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],h=u===c?a[1]:a[e+1];if(h&&d&&d.length>2&&"L"===u[0]&&h.length>2&&"L"===h[0]){let e,a,c=l(d),p=l(u),f=l(h);n?(e=r(p,d.origPoint||c,t),a=r(p,h.origPoint||f,t)):(e=o(p,c,t),a=o(p,f,t)),i(u,e),u.origPoint=p,s.push(u);let m=r(e,p,.5),g=r(p,a,.5),y=["C",m.x,m.y,g.x,g.y,a.x,a.y];y.origPoint=p,s.push(y)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${i-.5} ${n} L ${i-.5} ${o} L ${2*i} ${o} L ${d-2*i} ${o} M ${d-2*i} ${o} L ${d-i} ${o} L ${d-i} ${n} L ${d} ${n}`,i)},f=$(()=>p(l),[d,u,i,l]),m=$(()=>{if(0===i)return;const e=i/2;return p(i)+`L ${d} 0 L 0 0 L 0 ${e}`},[f,i,l]),g=$(()=>({style:{clipPath:`path('${m}')`}}),[m]);return L("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:Sr([h,c,t]),children:[P.isValidElement(r)?P.cloneElement(r,g):O(I,{}),O("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:d,height:u,viewBox:`0 0 ${d} ${u}`,children:O("path",{d:f,stroke:a,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})})),kr={},Er=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:a,hitAreaProps:s=kr,...c}=e,d="row"===o,{style:u,className:h,...p}=s;return O("div",{style:{...n,position:"relative"},...c,children:O("div",{className:co("hit-box",h),style:{left:(d?-r:0)+"px",width:`calc(100% + ${d?r+i:0}px)`,top:(d?0:-r)+"px",height:`calc(100% + ${d?0:r+i}px)`,position:"absolute",...u},onPointerDown:l?void 0:t,...p})},a)},_r={},Tr=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,Mr=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Dr=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)},Rr=z(j((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:a,minBefore:s,maxBefore:c,minAfter:d,maxAfter:u,children:h,className:p,style:f,disabled:m=!1,onDragStart:g,onDragResize:y,onDragFinish:b,resizerProps:w=_r,paneProps:v=_r,paneBeforeProps:x=_r,paneAfterProps:S=_r,createResizer:C=Er}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const k=$(()=>P.isValidElement(o)&&P.isValidElement(n),[o,n]),E=$(()=>{let e=null;i&&("before"===i?e=0:"after"===i&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:Dr(s,t),maxBefore:Dr(c,t),minAfter:Dr(d,t),maxAfter:Dr(u,t)}},[s,c,d,u]),_=go(a,[a]),[T,M]=N(()=>Dr(l,null===i));V(()=>{M(Dr(l,null===i))},[l,i]);const[D,{width:R,height:I}]=mo(),[A,{width:z,height:H}]=mo(),B="row"===r?z:H,j="row"===r?R:I,W=$(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:Mr(o.minBefore,!0),maxBefore:Mr(o.maxBefore,!0),minAfter:Mr(o.minAfter),maxAfter:Mr(o.maxAfter)};let l=Tr(e,t,1!==o.fixedPaneOffset),a=t-n,s=Tr(o.minBefore,a,!0)??0,c=Tr(o.maxBefore,a,!0)??a,d=0,u=0,h=0,p=a;d=(Tr(o.maxAfter,t,!1)??n)-n,u=Tr(o.minAfter,t,!1)??t,h=Math.max(s,d),p=Math.min(c,u),l=Math.max(h,Math.min(l,p)),u=Math.min(a-l,Tr(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,Tr(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(T,j,B,E),[E,T,j,B,r]),[U,q]=N(!1),Z=go(g,[g]),G=go(y,[y]),K=go(b,[b]),X=F(null),Y=F(null),J=F(null),{style:Q,className:ee,...te}=v,ne={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:oe,style:re,...ie}=x,{className:le,style:ae,...se}=S,ce={flex:"1 1 100%",width:"100%",...f,flexDirection:r,display:"flex"},{className:de,style:ue,onPointerDown:he,...pe}=w,fe=go(e=>{const t=Dr(e,null===i);M(t)},[i]),me=go(e=>{if(m||!U)return;const t=be.current?.getBoundingClientRect();let n=0;n="row"===r?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(j,n)),1===E.fixedPaneOffset&&(n=j-n),l&&T.pixels===n||M({pixels:n,percent:null}),G?.(n),e.stopPropagation(),e.preventDefault()},[E,r,m,U,T,j]),ge=go(e=>{if(document.removeEventListener("pointermove",me),document.removeEventListener("touchmove",me),document.removeEventListener("pointerup",ge),U&&(q(!1),T)){if(K(T.pixels),!Dr(l,null===i)||T.pixels!==l){const e={...T};null===e.percent&&(e.percent=e.pixels/j*100),_(e)}e.stopPropagation(),e.preventDefault()}},[T,U,l,i,j]),ye=go(e=>{he?.(e),e.defaultPrevented||m||U||(q(!0),Z(),document.addEventListener("pointermove",me,{passive:!1}),document.addEventListener("touchmove",me,{passive:!1}),document.addEventListener("pointerup",ge,{passive:!1}))},[he]),be=er(t,()=>({setPosition:fe,isSplitPane:()=>!0}),[]),we=$(()=>k?C?.({key:"resizer",ref:Sr([A,Y]),className:co("resizer",de),onPointerDownCapture:ye,style:{cursor:m?void 0:"row"===r?"ew-resize":"ns-resize",minWidth:"row"===r?"2px":void 0,minHeight:"row"!==r?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ue},splitDirection:r,disabled:m,...pe}):null,[k,de,pe,r,ue,m]),ve="row"===r?"Width":"Height",xe={...ne,...re,flex:0===E.fixedPaneOffset&&null!==W?.pixels[0]?`0 0 ${Math.round(W?.pixels[0])}px`:`1 1 ${Math.round(W?.percents[0]??100)}%`,[`min${ve}`]:W?.minBefore,[`max${ve}`]:o?W?.maxBefore:"100%"},Se={...ne,...ae,flex:1===E.fixedPaneOffset&&null!==W?.pixels[1]?`0 0 ${Math.round(W?.pixels[1])}px`:`1 1 ${Math.round(W?.percents[1]??100)}%`,[`min${ve}`]:W?.minAfter,[`max${ve}`]:n?W?.maxAfter:"100%"},Ce=$(()=>n?O("div",{ref:X,className:co("before",ee,oe),style:xe,...te,...ie,children:n},"before"):null,[n,v,x,E,W]),ke=$(()=>o?O("div",{ref:J,className:co("after",ee,le),style:Se,...te,...se,children:o},"after"):null,[o,v,S,E,W]);return L("div",{ref:Sr([D,be]),className:co("splitPane","row"===r?"vertical":"horizontal",{dragging:U},p),style:ce,children:[Ce,we,ke]})}));function Or(e,t){return function(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:n,onPointerMoveOrWait:o,processTouch:r=!1,consumeTouch:i=!0}=e,l=go(t,[t]),a=go(n,[n]),s=go(o,[o]),c=F(!1),d=e?.timerInitial??230,u=e?.timerContinuous??d/2,h=F(null),p=F(null),f=F(null),m=F(null),g=H(()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),y=H(e=>{m.current=setTimeout(()=>{window.requestAnimationFrame(()=>{!1!==c.current&&s?.(p.current,f.current,h.current)}),y(u)},e??d)},[]);V(()=>()=>g(),[]);const b=r?"pointer":"mouse",w=H(e=>{e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault()},[]),v=go(e=>{document.removeEventListener(`${b}move`,C),document.removeEventListener(`${b}up`,v),document.removeEventListener("keydown",k),document.removeEventListener("keyup",E),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",x),g(),window.requestAnimationFrame(()=>{!1!==c.current&&(c.current=!1,a?.(e,f.current,h.current),f.current=null)})},[]),x=H(()=>{!1!==c.current&&(c.current=!1,v(p.current))},[]),S=go(()=>{g(),y(u),window.requestAnimationFrame(()=>{!1!==c.current&&s?.(p.current,f.current,h.current)})},[u]),C=go(e=>{p.current=e,S()},[]),k=go(e=>{f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},S()},[]),E=go(e=>{f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},S()},[u]);return go(e=>{e.isDefaultPrevented()||(f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},!1!==l(e,f.current)&&(h.current=e,p.current=e.nativeEvent,document.addEventListener(`${b}up`,v,{passive:!1}),document.addEventListener(`${b}move`,C,{passive:!1}),document.addEventListener("keydown",k,{passive:!1}),document.addEventListener("keyup",E,{passive:!1}),window.addEventListener("blur",x,{passive:!0}),r&&i&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),c.current=!0,y(d)))},[d,r])}({onPointerDown:e,onPointerMoveOrWait:(t,n,o)=>{e?.(o)},...t})}const Lr=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=F(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return U(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},Ir=e=>{console&&console.warn&&console.warn(e)},Ar="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let Pr=1,zr=!1,Fr=!1;const Nr=[],Vr=[],Hr=()=>{Vr.forEach(e=>e())},Br=({automaticContainerInternalUseOnly:e})=>{const[t,n]=N([]),o=F([]);return o.current=t,e||!1!==zr||(Fr=!0),V(()=>{let t=!0;function r(){if(t)return Vr[0]!==r?(e||!0!==zr||Ir("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(e=>[])):void n([...Nr])}return Vr.push(r),Hr(),()=>{t=!1,o.current?.length>0&&Ir("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Vr.splice(Vr.indexOf(r),1),Hr()}},[e]),O(I,{children:t.map(({hook:e,key:t})=>Z(Lr,{...e,key:t}))})},$r=(e,t,n={})=>{let o,r,i=!1,l=!1,a=[],{unmountIfNoConsumers:s=!1}=n;const c=e=>{r=e,ct(()=>a.forEach(t=>t(e)))},d=()=>(l||(r="function"==typeof e?e():e,l=!0),r);return()=>{const[n,l]=N(d);return V(()=>(i||(i=!0,o=(e=>{const t=Pr++;return Nr.push({hook:e,key:t}),0===Vr.length&&!1===Fr&&(zr=!0,(e=>{if(Ar.document&&Ar.document.createElement){const t=Ar.document.createElement("div");at(t).render(O(e,{automaticContainerInternalUseOnly:!0}))}else Ir("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(Br)),Hr(),()=>{Nr.splice(Nr.findIndex(e=>e.key===t),1),Hr()}})({initValue:e,useHookBody:t,applyStateChange:c})),a.push(l),r!==n&&l(r),()=>{a.splice(a.indexOf(l),1),0===a.length&&s&&(o(),i=!1)}),[]),n}};let jr=()=>{console.warn("You must call useEditMode before setting its state.")};const Wr=$r(null,()=>{const[e,t]=N(null);return jr=t,e}),Ur=()=>{const e=Wr();return $(()=>({setMode:e=>{jr(t=>("function"==typeof e&&(e=e(t)),e?.onModeChange?.(e??null),e))},getMode:()=>e}),[e])};let qr=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,void 0===o&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if("function"==typeof e){const n=t??this._context;return e("function"==typeof n?n():n)}return e}target(){return"function"==typeof this._target?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if("function"==typeof n){const e=t??this._context;o=n("function"==typeof e?e():e)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return"function"==typeof this._context?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),!1===await Promise.resolve(n))return!1;const o=this._callback.bind(this)(e,this);if(!1===await Promise.resolve(o))return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}},Zr=class extends qr{},Gr=class e{constructor(e,t){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=_n.uuidV4(),this._target=e,this._groupKey=t??null,this._root=this,this._nodes=new Map,this._nodes.set(t,this),this._children=new Map,this._listeners=new Set,this._commandsByKey=new Map,this._commandsByShortcut=new Map;const n=this;this._unListenersByCommand=new Map,this._listenersByKey=new Map,this._commandsPropertyListener=(e,t)=>{const o=n._root._listenersByKey,r=t.key(),i=o.get(r);i&&n._notifyCommands(i,"onCommandChange",t)}}_getCommand(e){return this._commandsByKey.get(e)||(this._parent?._getCommand(e)??null)}getCommand(e,t=!1){const n=this._root._focused;let o=n,r=n===this;for(;!r&&o;)o===this&&(r=!0),o=o._parent;return(r?n:this)._getCommand(e)}createChildGroup(t,n,o){let r;if(!o){let e=this;for(;e&&!r;){let t=e._nodes.get(n);t&&(r=t),e=e._parent}}r||(r=new e(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(e,t)=>{!e.has(n)||o?e.set(n,t):void 0===o&&console.warn("commandGroup already registered",n)};i(this._root._nodes,r);let l=this._parent;for(;l;)i(this._nodes,r),l=l._parent;return this._children.set(n,r),this._notify("onGroupChange"),r}getKey(){return this._groupKey}getGroup(e){return this._nodes.get(e)}_addCommands(e,t=void 0){const n=this._commandsByKey,o=this._commandsByShortcut,r=this._root._commandsPropertyListener,i=this._root._unListenersByCommand;for(let l=0;l<e.length;l++){const a=e[l],s=a.key();if(n.has(s)&&!t){void 0===t&&console.warn("command already registered",s);continue}n.set(s,a);let c=i.get(a);c&&(c(),i.delete(a));const d=a.addPropertyListener(r);i.set(a,d);const u=a.shortcut();if(!u)continue;const h=Array.isArray(u)?u:[u];for(let e=0;e<h.length;e++){const n=Yr(h[e]),r=o.get(n);r&&!t&&void 0===t&&console.warn(`Shortcut already registered: ${n}, ${s}, ${r}.`),o.set(n,s)}}}removeFromParent(){if(!this._parent)return;let e=this._parent,t=[];const n=this._groupKey;for(;e;)t.push(e._nodes),e._nodes.delete(n),e=e._parent;e=this._parent;const o=e=>{e._children.forEach(e=>{for(let n=0;n<t.length;n++)e._nodes.delete(t[n]);o(e)})};o(this),this._parent=null,this._notify("onGroupChange")}addCommands(e,t){this._addCommands(e,t),this._notify("onGroupChange")}getActive(){return this._root._focused??this._root}activate(e){let t=this;if(e&&(t=this._nodes.get(e),!t))return void console.warn("group not found",e);let n=this._root._focused??this._root;for(;n;)n=n._parent;this._root._focused!==t&&(this._root._focused=t,this._notify("onGroupChange"),this._notify("onActiveChange"))}findCommandByEvent(e){const t=[];e.altKey&&t.push(ro.Alt),e.shiftKey&&t.push(ro.Shift),e.ctrlKey&&t.push(ro.Ctrl),e.metaKey&&t.push(ro.Meta);let n=Yr({key:e.code,modifiers:t});const o=this._commandsByShortcut;let r=o.get(n);r||(n=Yr({key:e.key,modifiers:t}),r=o.get(n)),!r&&e.code.startsWith("Digit")&&(n=Yr({key:e.code.substring(5,e.code.length),modifiers:t}),r=this._commandsByShortcut.get(n)),!r&&e.code.startsWith("Key")&&(r=Yr({key:e.code.substring(3,e.code.length),modifiers:t}),r=o.get(n));let i=null;return r&&(i=this._commandsByKey.get(r),i&&i.disabled()&&(i=null),!i||i.target()&&i.target().contains(e.target)||(i=null)),i||(this._parent?.findCommandByEvent(e)??null)}dispatchToFocusedCommand(e){const t=this.getActive();if(!t)return!1;if(e.isDefaultPrevented())return!1;const n=t.findCommandByEvent?.(e);return!!n&&(n.execute(),e.preventDefault(),!0)}getRoot(){return this._parent?this._parent.getRoot():this}getParent(){return this._parent}addListener(e,t){const n=this._listeners,o=t?.keys,r=this._root._listenersByKey;if(o&&!e.onCommandChange)throw new Error("keys were provided but the listener does not contain 'onCommandChange'.");let i=null;if(o)for(let t=0;t<o.length;t++){const n=o[t];if(!n)continue;let l=r.get(n);l||(l=new Set,r.set(n,l)),i||(i=[]),i.push(l),l.add(e)}return n.add(e),()=>{if(i)for(let t=0;t<i.length;t++)i[t].delete(e);n.delete(e)}}_notifyCommands(e,t,n){const o=this;setTimeout(()=>{e.forEach(e=>{e[t]?.(o,n)})},0)}_notify(e,t){const n=this;setTimeout(()=>{n._listeners.forEach(o=>{o[e]?.(n,t)}),n._parent&&n._parent._notify(e,t)},0)}getAllCommands(){const e=[],t=this._groupKey;return this._commandsByKey.forEach(n=>{e.push({command:n,groupKey:t})}),this._children.forEach(t=>{e.push(...t.getAllCommands())}),e}};const Kr=_n.getOS()===_n.OSType.MacOS||_n.getOS()===_n.OSType.IOS?"Cmd":"Ctrl",Xr=_n.getOS()===_n.OSType.MacOS||_n.getOS()===_n.OSType.IOS?"⌘":"^",Yr=(e,t=!1)=>{const n={};for(let t=0;e.modifiers&&t<e.modifiers.length;t++)n[e.modifiers[t]]=!0;let o="";return(n?.[ro.Ctrl]||n?.[ro.Meta])&&(o+=(o.length>0?"+":"")+(t?Xr:Kr)),n?.[ro.Alt]&&(o+=t?"⌥":"Alt"),n?.[ro.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Yo(e.key),o};function Jr(e,t=null){const n=F(t);n.current=t;const[o,r]=B(e=>e+1,0),i=$(()=>Array.isArray(e)?e:[e],[e]);return V(()=>{if(!i||0===i.length)return;const e=(e,t)=>{n.current?.onChange?.(t),r()};let o=null;t&&(o={onExecute(e,t){n.current?.onExecute?.(e,t)},onError(e,t,o){n.current?.onError?.(e,t,o)}});const l=new Set;for(let n=0;n<i.length;n++)l.add(i[n]?.addPropertyListener(_n.debounce(e,0),!0)),t&&l.add(i[n]?.addExecuteListener(o));return()=>{l.forEach(e=>{e?.()})}},[e]),o}const Qr=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function ei(e,t=null,n=null,o){const r=F(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=N(Qr(e,t)),a=o?[...o,e]:[e];return V(()=>{const n={onGroupChange:()=>{const n=Qr(e,t);l(n),r.current?.onChange?.(this)}};let o;t&&t.length>0&&(o={keys:t},n.onCommandChange=(n,o)=>{r.current?.onChange?.(e),l(Qr(e,t))});const i=e?.addListener(n,o),a=Qr(e,t);return l(a),r.current?.onChange&&r.current?.onChange(e),()=>{i?.()}},a),i}const ti={Toolbar:"toolbar",Menuitem:"menuitem"},ni=$r({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>to.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=N(to.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:F(null),refNativeLastKey:F(null)}}),oi=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=sr,commands:l}=e,a=go(r,[r]),s=go(o,[o]),{getClipboard:c,refNativeCopy:d}=ni(),u=c();$(()=>{const e=t?.element,o=n?.element??t?.element;if(!l)return;const r=[new Zr("cut",e,{label:"Cut",description:"Remove the selection and put it on the clipboard so you can paste it somewhere else.",shortcut:{key:"X",modifiers:[ro.Ctrl]}}),new Zr("copy",e,{label:"Copy",description:"Put a copy of the selection on the clipboard so you can paste it somewhere else.",shortcut:{key:"C",modifiers:[ro.Ctrl]}}),new Zr("paste",o,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[ro.Ctrl]},{key:"F8",modifiers:[ro.Ctrl]}]})];l?.addCommands(r,!0)},[l]);const h=go(async e=>{if(!t?.element)return;let n=null;try{n=t.doCopy?.(e),"string"==typeof n?await u.writeText(n):await u.writeReference(n)}catch(e){throw e}},[t,i]),p=go(async e=>{const n=t?.element?.();if(n){d.current={sourceElement:n,args:e};try{await h(e)}catch(e){i?.showError?.(e)}}},[t?.element,i]),f=H(()=>{p({isCut:!0})},[]),m=go(async(e,t,n)=>{try{if(!1===await e.doPaste(t,n))return;s?.(t,n)}catch(e){i?.showError?.(e)}},[s]),g=go(async(e,t,o)=>{const r=n?.element?.();if(r&&await _n.whenFocus(r),!e&&!t)return;const l=await(i?.showBusy?.("Pasting..."));if(t)try{return await m(n,t,o),void l?.()}catch(e){l?.(),i?.showError?.(e)}let a,s=n.importFromExternal;s||(s=(t,n)=>({getItemType:()=>"text",toText:()=>e.text,isClipboardItem:!0}));try{a=await s(e,{isCut:!1})}catch(e){l?.(),i?.showError?.(e)}if(a)try{const e=await Promise.resolve(a);await m(n,e,o),l?.()}catch(e){l?.(),i?.showError?.(e)}else l?.()},[m,n,i]),y=go(async e=>{if(n?.element)try{const t=await u.readReference();if(t)return void await g(null,t,e);const n=[];n[0]=await Gn(u,Mt),n[1]=await Kn(u,Tt),n[2]=await Zn(u,Dt);const o={text:n[0]??null,html:n[1]??null,image:n[2]??null};await g(o,null,e)}catch(e){if("Document is not focused."===e?.message)return;i?.showError?.(e)}},[g,n?.element,i]);return go(async e=>{},[t?.element]),go(async e=>{},[n?.element,g,i]),V(()=>{if(!u)return;const e=async e=>{const t=await u.readReference();a?.(t)},t=e=>{i?.showMessage?.(to.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},n=e=>{i?.showMessage?.(to.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return u.addEventListener("clipboardchange",e),u.addEventListener("clipboarderrorread",t),u.addEventListener("clipboarderrorwrite",n),()=>{u.removeEventListener("clipboardchange",e),u.removeEventListener("clipboarderrorread",t),u.removeEventListener("clipboarderrorwrite",n)}},[u,i]),V(()=>{},[h,g,t,n]),V(()=>{l?.getCommand("cut")?.updateCallback(f).update({disabled:!t||!n}),l?.getCommand("copy")?.updateCallback(p).update({disabled:!t}),l?.getCommand("paste")?.updateCallback(y).update({disabled:!n})},[t,n,l]),{paste:y,copy:p,clipboard:u}};P["useId".toString()];const ri="Undo the last action.",ii="Repeat the last action or undo the redo.",li=e=>`Redo ${e}`;function ai(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ai(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function si(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ai(e))&&(o&&(o+=" "),o+=t);return o}const ci="text/html",di="text/plain",ui="image/png",hi=Object.freeze({left:0,top:0}),pi=Object.freeze({left:0,top:0,bottom:0,right:0}),fi=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:fi,EmptyRect:pi,EmptyTopLeft:hi},Symbol.toStringTag,{value:"Module"}));const mi="column",gi="row",yi=Object.freeze({colIndex:0,rowIndex:0}),bi=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),wi=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,vi=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,xi=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Si=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,Ci=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,ki=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,Ei=(e=gi,t=!1)=>t?e!==mi?xi:Si:e!==mi?vi:wi,_i=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Ti=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Mi=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),Di=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ti(e[n],t[n]))return!1;return!0},Ri=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},Oi=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];Mi(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},Li=[null,null],Ii=(e,t,n)=>{if(e[0].value===e[1].value)return t};function Ai(e,t=2,n,o=gi,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===mi,a=0,s=!1;do{const e=i.sort(Ei(l?gi:mi));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&h===t.rowStart&&f===t.rowEnd&&p+1===t.colStart:d&&u===t.colStart&&p===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:h,colEnd:l?t.colEnd:p,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:yi,EmptyRange:bi,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:Ci,columnFirstRangeComparator:wi,createCellComparator:(e=gi,t=!1)=>t?e!==mi?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==mi?ki:Ci,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const h=t?a:s,p=t?s:a;o={colStart:h,rowStart:p,colEnd:h,rowEnd:p},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?Ai(n,3,!0===e?Ii:e,t?mi:gi,Li):n)}},createRangeComparator:Ei,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:Oi,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!Ti(n,o);)o=n,n=Oi(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(Mi(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:_i,isEqualRanges:Ti,isEqualRangesArrays:Di,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!_i(e.cell,t.cell)&&Di(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Mi,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:Ai,rowFirstCellComparator:ki,rowFirstRangeComparator:vi,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:Ri,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=Ri(o,e[t],n);return t&&(o=Ri(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Pi="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function zi(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===Pi}(e)}(e)}function Fi(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Bi((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Ni(e,t,n){return e.concat(t).map(function(e){return Fi(e,n)})}function Vi(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function Hi(e,t){try{return t in e}catch(e){return!1}}function Bi(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ni,n.isMergeableObject=n.isMergeableObject||zi,n.cloneUnlessOtherwiseSpecified=Fi;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&Vi(e).forEach(function(t){o[t]=Fi(e[t],n)}),Vi(t).forEach(function(r){(function(e,t){return Hi(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(Hi(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return Bi;const n=t.customMerge(e);return"function"==typeof n?n:Bi}(r,n)(e[r],t[r],n):o[r]=Fi(t[r],n))}),o}(e,t,n):Fi(t,n)}Bi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return Bi(e,n,t)},{})};const $i=Object.freeze([]),ji=Object.freeze({}),Wi=e=>e,Ui=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),qi=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),Zi=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,Gi=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?Gi(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),Ki=(e,t)=>!(e!==t&&!qi(e,t)&&!e.isEqual?.(t)),Xi=(e,t,n=Ki)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===Xi(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},Yi="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),Ji=e=>null==e,Qi=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),el=!("undefined"==typeof window||!window.document||!window.document.createElement),tl={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},nl=()=>{if(ol())return tl.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?tl.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?tl.MacOS:/(iphone|ipad|ipod)/i.test(e)?tl.IOS:/android/.test(e)?tl.Android:/linux/.test(e)?tl.Linux:/^((?!chrome|android|).)*safari/i.test(e)?tl.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?tl.Firefox:tl.Unknown:tl.Unknown};function ol(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const rl=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),il=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:$i,EmptyObject:ji,OSType:tl,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:el,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>Ji(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:Bi,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=Wi){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=Wi){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!Zi(r))return r;o=r}return o??null},getOS:nl,hasFocus:rl,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:qi,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:ol,isNullOrUndefined:Ji,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:Zi,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:Qi,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!Zi(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Bi(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!el)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:Gi,removeEqualValues:Xi,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=Yi(),o={id:requestAnimationFrame(function r(){Yi()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!Zi(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!Zi(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!Qi(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:Ui,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{rl(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const ll=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},al=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:ll,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:al},Symbol.toStringTag,{value:"Module"}));const sl="data:image/png;base64,",cl="Unable to resolve image.",dl=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(cl)}),ul="image/svg+xml";var hl,pl;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:sl,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(cl)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await dl(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:ul})),i=await dl(r);n={mimeType:t??ul,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===ul?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(pl=hl||(hl={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,pl.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};const fl="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",ml="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",gl={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:ml,PermsWrite:nl()===tl.Safari?fl:ml,PermsRead:nl()===tl.Safari?fl:ml},yl=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),bl=async(e,t,n)=>{if(nl()===tl.Safari)return await n(new Error(gl.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},wl=async e=>{try{return await e.read({unsanitized:[ci]})}catch(e){}return await e.read()};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const vl=async(e,t=ci)=>new Promise(async(n,o)=>{try{const o=await(async(e,t)=>{if(!e)return null;const n=await wl(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null})(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),xl=async(e,t=ci)=>{const n=await vl(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,ci)}catch(e){console.warn("Can't parse html from clipboard.")}return o},Sl="clipboard-uuid",Cl="web text/uuid",kl=e=>`<div style="display:none" ${Sl}="${e}"/>`,El=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,ci);o.body.firstElementChild.setAttribute(Sl,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},_l=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Sl}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let Tl=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await bl("clipboard-read",async()=>{await yl();const e=await vl(this._nativeClipboard,Cl);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await xl(this._nativeClipboard,ci);return!this._state||(_l(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||nl()===tl.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await bl("clipboard-read",async()=>{if(await yl(),this._state?.uuid){const t=await vl(this._nativeClipboard,Cl);if(t&&t===e._state.uuid)return!0;const n=await xl(this._nativeClipboard,ci);if(_l(e._state?.uuid,n))return!0}return e._state={items:await wl(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Ui(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await bl("clipboard-write",async()=>{await yl(),o&&0===r.length&&(r.push(new ClipboardItem({[Cl]:new Blob([o],{type:Cl})})),r.push(new ClipboardItem({[ci]:new Blob([kl(o)],{type:ci})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(ci),l=null;if(-1!==i){const e=await t.getType(ci);l=await al(e),l&&(l=El(o,l))}if(!l&&t.types.includes(di)){const e=await t.getType(di);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await al(e),t&&(l=`<div ${Sl}="${o}">${t}</div>`)}}if(!l&&t.types.includes(ui)){const e=await t.getType(ui),n=ll(await e.arrayBuffer());l=`<div ${Sl}="${o}"><img src="${sl+n}"/></div>`}!l&&o&&(l=kl(o));const a=new Blob([l??""],{type:ci}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[ci]=a),o&&(s[Cl]=new Blob([o],{type:Cl})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await(async e=>{e&&await e.writeText("")})(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[di]=new Blob([t??""],{type:di}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[ci]=new Blob([t],{type:ci}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[ui]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:Ui(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let e=0;!o&&n&&e<n.length;e++)n[e].types.includes(di)&&(o=await n[e].getType(di));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[di]:new Blob([e],{type:di})})];return this._write({uuid:Ui(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var Ml;(Ml=Tl||(Tl={})).ErrorMessages=gl,Ml.Global=new Ml;const Dl=e=>O(ie,{...e,children:O("path",{})}),Rl=e=>O(ie,{...e,children:O("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),Ol=e=>L(ie,{...e,children:[O("path",{d:"m 12,21.888913 v -7 h 2 v 7 z M 12,9 V 2 h 2 V 9 Z M 4,2 V 21.999938 H 2 V 2 Z"}),O("path",{className:"styled info",d:"m 6,12.91274 h 3.9862992 3.8490838 4.160058 v 2.554311 L 22,11.635609 17.995441,7.8041663 V 10.358479 H 13.835383 9.9863002 6 Z"})]}),Ll=e=>L(ie,{...e,children:[O("path",{d:"M 22.062389,1.9999683 V 22.000032 h -2 V 1.9999683 Z m -18.062427,0 V 22.000032 h -2 V 1.9999683 Z"}),O("path",{className:"styled info",d:"m 6.0839844,6.3867187 h 7.4238286 c 2.442808,0 4.423828,1.995808 4.423828,4.4589843 0,2.463178 -1.981061,4.460938 -4.423828,4.460938 H 8.9316406 v 1.404296 L 6.1132812,13.871094 8.9316406,11.03125 v 1.404297 h 4.5761724 c 0.870956,0 1.576171,-0.713095 1.576171,-1.589844 0,-0.8767853 -0.70537,-1.5878905 -1.576171,-1.5878905 H 6.0839844 Z"})]}),Il=e=>L(ie,{...e,children:[O("path",{d:"M 4,3 V 21 H 2 V 3 Z m 18,5.573e-4 V 21.000557 H 20 V 3.0005573 Z"}),O("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),Al=e=>L(ie,{...e,children:[O("path",{d:"M 21.974894,2.0582915 V 22.058355 h -2 V 2.0582915 Z M 3.999962,1.9999683 V 22.000032 h -2 V 1.9999683 Z"}),O("path",{className:"styled info",d:"m 6.2289672,7.8040604 -6.3e-5,8.2560526 h 2.518176 l 2e-5,-2.642838 h 6.4753038 l -2e-5,2.642838 h 2.518175 l 6.1e-5,-8.2560526 h -2.518174 l -2.2e-5,2.9478576 H 8.7471192 l 2.3e-5,-2.9478576 z"})]}),Pl=e=>O(ie,{...e,children:O("path",{d:"M 9.2299627,5.1022181 V 7.0235319 H 11.052809 L 9.2996104,17.11043 H 7.3086489 v 1.921315 H 13.072591 V 17.11043 H 11.249744 L 13.002943,7.0235319 h 1.990962 V 5.1022181 Z"})}),zl=e=>O(ie,{...e,children:O("path",{d:"m 15.500659,11.85365 c 0.97,-0.67 1.65,-1.77 1.65,-2.79 0,-2.2599999 -1.75,-3.9999999 -4,-3.9999999 H 6.9006595 V 19.06365 h 7.0399995 c 2.09,0 3.71,-1.7 3.71,-3.79 0,-1.52 -0.86,-2.82 -2.15,-3.42 M 9.9006595,7.5636501 h 2.9999995 c 0.83,0 1.5,0.6699999 1.5,1.4999999 0,0.83 -0.67,1.5 -1.5,1.5 H 9.9006595 Z M 13.400659,16.56365 H 9.9006595 v -3 h 3.4999995 c 0.83,0 1.5,0.67 1.5,1.5 0,0.83 -0.67,1.5 -1.5,1.5"})}),Fl=e=>L(ie,{...e,children:[O("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),O("path",{className:"styled info",d:"M 5.7580928,1.3371537 4.9319914,4.6570488 H 2.2351143 V 5.7189333 H 4.6566242 L 3.933785,8.6756882 H 1.3143556 V 9.7375737 H 3.6584179 L 2.840922,13.047141 H 3.8546168 L 4.6721135,9.7375737 H 6.7958823 L 6.1677007,12.277835 7.5152788,10.930257 7.8112989,9.7375737 H 8.709684 L 9.7715688,8.6756882 H 8.086666 L 8.8095044,5.7189333 H 11.428935 V 4.6570488 H 9.0848717 L 9.9109739,1.3371537 H 8.8955565 L 8.0694549,4.6570488 H 5.947407 L 6.7717875,1.3371537 Z M 5.6634348,5.701723 H 7.8181826 L 7.079855,8.6911775 H 4.9251067 Z"})]}),Nl=e=>O(ie,{...e,children:O("path",{d:"M 15.03125,1.3183594 C 14.54185,1.3182736 14.053088,1.5042411 13.679688,1.8769531 11.398308,4.157118 3.6820968,11.87362 1.5410156,14.013672 c -0.86142447,0.86938 -0.86098491,2.265402 0.00195,3.134765 l 5.6855469,5.685547 c 0.1357951,0.134779 0.3202858,0.213709 0.515625,0.214844 H 18.921875 c 0.952769,-0.0183 0.952325,-1.440701 -0.0059,-1.458984 h -6.72461 c 0.52861,-0.528334 1.319592,-1.318068 1.550782,-1.548828 l 0.0293,-0.02734 0.0059,-0.0098 0.002,-0.002 0.0039,-0.0039 0.0059,-0.0059 0.0039,-0.0039 0.01172,-0.01172 0.0098,-0.0078 c 0.0012,-0.0011 0.01373,-0.01569 0.01563,-0.01758 0.0213,-0.02126 0.07807,-0.07612 0.1875,-0.185547 1.191778,-1.191762 7.211708,-7.213963 8.521484,-8.523437 0.0975,-0.09747 0.168608,-0.170617 0.208985,-0.210938 l 0.0078,-0.0078 0.0059,-0.0059 0.002,-0.002 0.0039,-0.0039 0.002,-0.002 0.002,-0.002 0.002,-0.002 0.01758,-0.01563 c 0.746601,-0.747927 0.74678,-1.9550164 0,-2.7031246 L 16.382812,1.8769531 C 16.009537,1.5041056 15.520443,1.3184452 15.03125,1.3183594 Z m 0,1.4570312 c 0.114653,3.98e-5 0.230973,0.043724 0.320313,0.1328125 l 6.408203,6.4082032 c 0.175951,0.1776856 0.17626,0.4665109 0.002,0.6425781 L 13.296875,18.423828 6.2421875,11.371094 14.708984,2.9082031 c 0.08956,-0.089187 0.207055,-0.1328525 0.322266,-0.1328125 z m -9.8183594,9.6269534 7.0527344,7.052734 -2.134766,2.134766 H 8.0449219 L 2.5722656,16.119141 c -0.2949291,-0.297692 -0.2937607,-0.781608 0,-1.078125 z"})}),Vl=e=>L(ie,{...e,children:[O("path",{d:"M 16.11036,4.2052293 C 15.637405,4.2051462 15.167307,4.3880965 14.807694,4.7470462 12.884011,6.6697055 6.3785302,13.175428 4.5724566,14.980637 c -0.816402,0.823942 -0.8166797,2.144871 0.00165,2.96929 l 4.7940106,4.79401 c 0.1560329,0.154865 0.3687977,0.250643 0.5978103,0.25197 h 9.4299205 c 1.106674,-0.02126 1.103958,-1.676706 -0.0099,-1.697913 H 14.27574 c 0.36412,-0.363115 0.7726,-0.769137 0.900832,-0.89754 l 0.06259,-0.05599 0.0018,-0.0018 v -0.0018 l 0.02306,-0.02964 c 0.01852,-0.01851 0.064,-0.064 0.154803,-0.154806 1.004947,-1.004932 6.080948,-6.082847 7.185253,-7.186898 0.0828,-0.08277 0.143524,-0.145217 0.176214,-0.177861 l 0.0066,-0.0066 0.005,-0.005 0.0018,-0.0018 0.0018,-0.0018 0.0018,-0.0018 0.01976,-0.01812 c 0.720325,-0.721604 0.720603,-1.883449 0,-2.605333 L 17.413027,4.7470462 C 17.053509,4.3879396 16.583014,4.2053121 16.11036,4.2052293 Z m 0,1.6962662 c 0.04001,1.39e-5 0.07896,0.013161 0.107046,0.041172 l 5.40335,5.4033495 c 0.05964,0.06023 0.05788,0.158934 0.0018,0.215738 L 14.647948,18.536208 9.0255673,12.915474 16.001667,5.9426669 c 0.02812,-0.028008 0.06743,-0.041186 0.108693,-0.041171 z M 7.8315934,14.111095 13.452328,19.73183 11.886163,21.297994 H 10.311765 L 5.7680774,16.755952 c -0.1588239,-0.160312 -0.1571288,-0.424381 0,-0.582988 z"}),O("path",{className:"styled info",d:"m 1.6679826,1.0184502 c -0.330106,0 -0.601562,0.314804 -0.601562,0.701172 v 2.810547 c 0,0.386369 0.271456,0.703125 0.601562,0.703125 h 7.201172 c 0.3301052,0 0.5996094,-0.316756 0.5996094,-0.703125 v -0.703125 h 0.601561 v 2.810547 H 4.0683736 v 7.3261708 l 2.40039,-2.363281 V 8.0418882 H 10.08595 l 1.183594,-1.164063 v -4.455078 h -1.80078 v -0.703125 c 0,-0.386368 -0.2695042,-0.701172 -0.5996094,-0.701172 z"})]});function Hl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Bl="$$material";function $l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jl(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var Wl,Ul,ql={exports:{}},Zl={};var Gl=(Ul||(Ul=1,ql.exports=function(){if(Wl)return Zl;Wl=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function f(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case r:case o:case s:case c:case h:return p;default:switch(p=p&&p.$$typeof){case l:case a:case u:case d:case i:return p;default:return f}}case t:return f}}}return Zl.ContextConsumer=i,Zl.ContextProvider=l,Zl.Element=e,Zl.ForwardRef=a,Zl.Fragment=n,Zl.Lazy=u,Zl.Memo=d,Zl.Portal=t,Zl.Profiler=r,Zl.StrictMode=o,Zl.Suspense=s,Zl.SuspenseList=c,Zl.isContextConsumer=function(e){return f(e)===i},Zl.isContextProvider=function(e){return f(e)===l},Zl.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Zl.isForwardRef=function(e){return f(e)===a},Zl.isFragment=function(e){return f(e)===n},Zl.isLazy=function(e){return f(e)===u},Zl.isMemo=function(e){return f(e)===d},Zl.isPortal=function(e){return f(e)===t},Zl.isProfiler=function(e){return f(e)===r},Zl.isStrictMode=function(e){return f(e)===o},Zl.isSuspense=function(e){return f(e)===s},Zl.isSuspenseList=function(e){return f(e)===c},Zl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===r||e===o||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===l||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||void 0!==e.getModuleId)},Zl.typeOf=f,Zl}()),ql.exports);function Kl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xl(e){if(A.isValidElement(e)||Gl.isValidElementType(e)||!Kl(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Xl(e[n])}),t}function Yl(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Kl(e)&&Kl(t)&&Object.keys(t).forEach(r=>{A.isValidElement(t[r])||Gl.isValidElementType(t[r])?o[r]=t[r]:Kl(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Kl(e[r])?o[r]=Yl(e[r],t[r],n):n.clone?o[r]=Kl(t[r])?Xl(t[r]):t[r]:o[r]=t[r]}),o}function Jl(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Ql(e){if(e.type)return e;if("#"===e.charAt(0))return Ql(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Hl(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Hl(10,o))}else r=r.split(",");return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:o}}const ea=(e,t)=>{try{return(e=>{const t=Ql(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function ta(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function na(e){e=Ql(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),ta({type:a,values:s})}function oa(e){let t="hsl"===(e=Ql(e)).type||"hsla"===e.type?Ql(na(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function ra(e,t,n){try{return function(e,t){return e=Ql(e),t=Jl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ta(e)}(e,t)}catch(t){return e}}function ia(e,t){if(e=Ql(e),t=Jl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ta(e)}function la(e,t,n){try{return ia(e,t)}catch(t){return e}}function aa(e,t){if(e=Ql(e),t=Jl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ta(e)}function sa(e,t,n){try{return aa(e,t)}catch(t){return e}}function ca(e,t,n){try{return function(e,t=.15){return oa(e)>.5?ia(e,t):aa(e,t)}(e,t)}catch(t){return e}}const da={black:"#000",white:"#fff"},ua={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ha="#d32f2f",pa="#42a5f5",fa="#0288d1";function ma(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:da.white,default:da.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ga=ma();function ya(){return{text:{primary:da.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:da.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ba=ya();function wa(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=aa(e.main,r):"dark"===t&&(e.dark=ia(e.main,i)))}function va(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(e="light"){return"dark"===e?{main:"#90caf9",light:"#e3f2fd",dark:pa}:{main:"#1976d2",light:pa,dark:"#1565c0"}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),a=e.error||function(e="light"){return"dark"===e?{main:"#f44336",light:"#e57373",dark:ha}:{main:ha,light:"#ef5350",dark:"#c62828"}}(t),s=e.info||function(e="light"){return"dark"===e?{main:"#29b6f6",light:"#4fc3f7",dark:fa}:{main:fa,light:"#03a9f4",dark:"#01579b"}}(t),c=e.success||function(e="light"){return"dark"===e?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function u(e){const t=function(e,t){const n=oa(e),o=oa(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}(e,ba.text.primary)>=n?ba.text.primary:ga.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Hl(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Hl(12,t?` (${t})`:"",JSON.stringify(e.main)));return wa(e,"light",r,o),wa(e,"dark",i,o),e.contrastText||(e.contrastText=u(e.main)),e};let p;return"light"===t?p=ma():"dark"===t&&(p=ya()),Yl({common:{...da},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:s,name:"info"}),success:h({color:c,name:"success"}),grey:ua,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:o,...p},r)}var xa,Sa,Ca,ka,Ea,_a={exports:{}};function Ta(){if(ka)return Ca;ka=1;var e=Sa?xa:(Sa=1,xa="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Ca=function(){function o(t,n,o,r,i,l){if(l!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function Ma(){return Ea||(Ea=1,_a.exports=Ta()()),_a.exports}function Da(e,t){return t?Yl(e,t,{clone:!1}):e}function Ra(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const o=t[n];return delete e[n],e[n]=o,e},{...t}):t}const Oa={xs:0,sm:600,md:900,lg:1200,xl:1536},La={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Oa[e]}px)`},Ia={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Oa[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Aa(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||La;return t.reduce((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o),{})}if("object"==typeof t){const e=o.breakpoints||La;return Object.keys(t).reduce((r,i)=>{if(l=e.keys,"@"===(a=i)||a.startsWith("@")&&(l.some(e=>a.startsWith(`@${e}`))||a.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}(o.containerQueries?o:Ia,i);e&&(r[e]=n(t[i],i))}else if(Object.keys(e.values||Oa).includes(i))r[e.up(i)]=n(t[i],i);else{const e=i;r[e]=t[e]}var l,a;return r},{})}return n(t)}function Pa(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function za(e){if("string"!=typeof e)throw new Error(Hl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fa(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Na(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:Fa(e,n)||o,t&&(r=t(r,o,e)),r}function Va(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=Fa(e.theme,o)||{};return Aa(e,i,e=>{let o=Na(l,r,e);return e===o&&"string"==typeof e&&(o=Na(l,r,`${t}${"default"===e?"":za(e)}`,e)),!1===n?o:{[n]:o}})};return i.propTypes={},i.filterProps=[t],i}const Ha={m:"margin",p:"padding"},Ba={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$a={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ja=function(){const e={};return t=>(void 0===e[t]&&(e[t]=(e=>{if(e.length>2){if(!$a[e])return[e];e=$a[e]}const[t,n]=e.split(""),o=Ha[t],r=Ba[n]||"";return Array.isArray(r)?r.map(e=>o+e):[o+r]})(t)),e[t])}(),Wa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ua=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function qa(e,t,n,o){const r=Fa(e,t,!0)??n;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:"string"==typeof r?`calc(${e} * ${r})`:r*e:Array.isArray(r)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=r[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof r?r:()=>{}}function Za(e){return qa(e,"spacing",8)}function Ga(e,t){return"string"==typeof t||null==t?t:e(t)}function Ka(e,t){const n=Za(e.theme);return Object.keys(e).map(o=>function(e,t,n,o){if(!t.includes(n))return null;const r=function(e,t){return n=>e.reduce((e,o)=>(e[o]=Ga(t,n),e),{})}(ja(n),o);return Aa(e,e[n],r)}(e,t,o,n)).reduce(Da,{})}function Xa(e){return Ka(e,Wa)}function Ya(e){return Ka(e,Ua)}function Ja(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if("components"===r||"slots"===r)n[r]={...e[r],...n[r]};else if("componentsProps"===r||"slotProps"===r){const o=e[r],i=t[r];if(i)if(o){n[r]={...i};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=e;n[r][t]=Ja(o[t],i[t])}}else n[r]=i;else n[r]=o||{}}else void 0===n[r]&&(n[r]=e[r])}return n}Xa.propTypes={},Xa.filterProps=Wa,Ya.propTypes={},Ya.filterProps=Ua;const Qa={borderRadius:4};function es(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,o)=>t[o]?Da(n,t[o](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function ts(e){return"number"!=typeof e?e:`${e}px solid`}function ns(e,t){return Va({prop:e,themeKey:"borders",transform:t})}const os=ns("border",ts),rs=ns("borderTop",ts),is=ns("borderRight",ts),ls=ns("borderBottom",ts),as=ns("borderLeft",ts),ss=ns("borderColor"),cs=ns("borderTopColor"),ds=ns("borderRightColor"),us=ns("borderBottomColor"),hs=ns("borderLeftColor"),ps=ns("outline",ts),fs=ns("outlineColor"),ms=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=qa(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ga(t,e)});return Aa(e,e.borderRadius,n)}return null};ms.propTypes={},ms.filterProps=["borderRadius"],es(os,rs,is,ls,as,ss,cs,ds,us,hs,ms,ps,fs);const gs=e=>{if(void 0!==e.gap&&null!==e.gap){const t=qa(e.theme,"spacing",8),n=e=>({gap:Ga(t,e)});return Aa(e,e.gap,n)}return null};gs.propTypes={},gs.filterProps=["gap"];const ys=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=qa(e.theme,"spacing",8),n=e=>({columnGap:Ga(t,e)});return Aa(e,e.columnGap,n)}return null};ys.propTypes={},ys.filterProps=["columnGap"];const bs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=qa(e.theme,"spacing",8),n=e=>({rowGap:Ga(t,e)});return Aa(e,e.rowGap,n)}return null};function ws(e,t){return"grey"===t?t:e}function vs(e){return e<=1&&0!==e?100*e+"%":e}bs.propTypes={},bs.filterProps=["rowGap"],es(gs,ys,bs,Va({prop:"gridColumn"}),Va({prop:"gridRow"}),Va({prop:"gridAutoFlow"}),Va({prop:"gridAutoColumns"}),Va({prop:"gridAutoRows"}),Va({prop:"gridTemplateColumns"}),Va({prop:"gridTemplateRows"}),Va({prop:"gridTemplateAreas"}),Va({prop:"gridArea"})),es(Va({prop:"color",themeKey:"palette",transform:ws}),Va({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ws}),Va({prop:"backgroundColor",themeKey:"palette",transform:ws}));const xs=Va({prop:"width",transform:vs}),Ss=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Oa[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:vs(t)}};return Aa(e,e.maxWidth,t)}return null};Ss.filterProps=["maxWidth"];const Cs=Va({prop:"minWidth",transform:vs}),ks=Va({prop:"height",transform:vs}),Es=Va({prop:"maxHeight",transform:vs}),_s=Va({prop:"minHeight",transform:vs});Va({prop:"size",cssProperty:"width",transform:vs}),Va({prop:"size",cssProperty:"height",transform:vs}),es(xs,Ss,Cs,ks,Es,_s,Va({prop:"boxSizing"}));const Ts={border:{themeKey:"borders",transform:ts},borderTop:{themeKey:"borders",transform:ts},borderRight:{themeKey:"borders",transform:ts},borderBottom:{themeKey:"borders",transform:ts},borderLeft:{themeKey:"borders",transform:ts},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ts},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ms},color:{themeKey:"palette",transform:ws},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ws},backgroundColor:{themeKey:"palette",transform:ws},p:{style:Ya},pt:{style:Ya},pr:{style:Ya},pb:{style:Ya},pl:{style:Ya},px:{style:Ya},py:{style:Ya},padding:{style:Ya},paddingTop:{style:Ya},paddingRight:{style:Ya},paddingBottom:{style:Ya},paddingLeft:{style:Ya},paddingX:{style:Ya},paddingY:{style:Ya},paddingInline:{style:Ya},paddingInlineStart:{style:Ya},paddingInlineEnd:{style:Ya},paddingBlock:{style:Ya},paddingBlockStart:{style:Ya},paddingBlockEnd:{style:Ya},m:{style:Xa},mt:{style:Xa},mr:{style:Xa},mb:{style:Xa},ml:{style:Xa},mx:{style:Xa},my:{style:Xa},margin:{style:Xa},marginTop:{style:Xa},marginRight:{style:Xa},marginBottom:{style:Xa},marginLeft:{style:Xa},marginX:{style:Xa},marginY:{style:Xa},marginInline:{style:Xa},marginInlineStart:{style:Xa},marginInlineEnd:{style:Xa},marginBlock:{style:Xa},marginBlockStart:{style:Xa},marginBlockEnd:{style:Xa},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gs},rowGap:{style:bs},columnGap:{style:ys},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vs},maxWidth:{style:Ss},minWidth:{transform:vs},height:{transform:vs},maxHeight:{transform:vs},minHeight:{transform:vs},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ms=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const d=Fa(n,a)||{};return c?c(r):Aa(r,t,t=>{let n=Na(d,s,t);return t===n&&"string"==typeof t&&(n=Na(d,s,`${e}${"default"===t?"":za(t)}`,t)),!1===l?n:{[l]:n}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??Ts;function a(n){let o=n;if("function"==typeof n)o=n(r);else if("object"!=typeof n)return n;if(!o)return null;const a=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(r.breakpoints),s=Object.keys(a);let c=a;return Object.keys(o).forEach(n=>{const i="function"==typeof(a=o[n])?a(r):a;var a;if(null!=i)if("object"==typeof i)if(l[n])c=Da(c,e(n,i,r,l));else{const e=Aa({theme:r},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=Da(c,e):c[n]=t({sx:i,theme:r,nested:!0})}else c=Da(c,e(n,i,r,l))}),!i&&r.modularCssLayers?{"@layer sx":Ra(r,Pa(s,c))}:Ra(r,Pa(s,c))}return Array.isArray(o)?o.map(a):a(o)}}();function Ds(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let o=n.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Rs(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,a=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function c(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return{keys:l,values:i,up:a,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...r}}(n),s=function(e=8,t=Za({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(r);let c=Yl({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...Qa,...i}},l);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,o){n.up=(...n)=>t(e.breakpoints.up(...n),o),n.down=(...n)=>t(e.breakpoints.down(...n),o),n.between=(...n)=>t(e.breakpoints.between(...n),o),n.only=(...n)=>t(e.breakpoints.only(...n),o),n.not=(...n)=>{const r=t(e.breakpoints.not(...n),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(n(o,e),o);return n(r),{...e,containerQueries:r}}(c),c.applyStyles=Ds,c=t.reduce((e,t)=>Yl(e,t),c),c.unstable_sxConfig={...Ts,...l?.unstable_sxConfig},c.unstable_sx=function(e){return Ms({sx:e,theme:this})},c}Ms.filterProps=["sx"];const Os=Rs(),Ls=(e,t,n,o=[])=>{let r=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(r)?r[Number(e)]=n:r&&"object"==typeof r&&(r[e]=n):r&&"object"==typeof r&&(r[e]||(r[e]=o.includes(e)?[]:{}),r=r[e])})};function Is(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var a,s;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(r,{[o]:s}),Ls(i,e,`var(${o})`,a),Ls(l,e,`var(${o}, ${s})`,a)}},s=e=>"vars"===e[0],function e(t,n=[],o=[]){Object.entries(t).forEach(([t,r])=>{(!s||s&&!s([...n,t]))&&null!=r&&("object"==typeof r&&Object.keys(r).length>0?e(r,[...n,t],Array.isArray(r)?[...o,t]:o):a([...n,t],r,o))})}(e),{css:r,vars:i,varsWithDefaults:l}}function As(e){const t={};return Object.entries(e).forEach(e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}const Ps={textTransform:"uppercase"},zs='"Roboto", "Helvetica", "Arial", sans-serif';function Fs(e,t){const{fontFamily:n=zs,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,h=o/14,p=d||(e=>e/s*h+"rem"),f=(e,t,o,r,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:o,...n===zs?{letterSpacing:(l=r/t,Math.round(1e5*l)/1e5+"em")}:{},...i,...c};var l},m={h1:f(r,96,1.167,-1.5),h2:f(r,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(l,14,1.75,.4,Ps),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Ps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yl({htmlFontSize:s,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...m},u,{clone:!1})}function Ns(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Vs=["none",Ns(0,2,1,-1,0,1,1,0,0,1,3,0),Ns(0,3,1,-2,0,2,2,0,0,1,5,0),Ns(0,3,3,-2,0,3,4,0,0,1,8,0),Ns(0,2,4,-1,0,4,5,0,0,1,10,0),Ns(0,3,5,-1,0,5,8,0,0,1,14,0),Ns(0,3,5,-1,0,6,10,0,0,1,18,0),Ns(0,4,5,-2,0,7,10,1,0,2,16,1),Ns(0,5,5,-3,0,8,10,1,0,3,14,2),Ns(0,5,6,-3,0,9,12,1,0,3,16,2),Ns(0,6,6,-3,0,10,14,1,0,4,18,3),Ns(0,6,7,-4,0,11,15,1,0,4,20,3),Ns(0,7,8,-4,0,12,17,2,0,5,22,4),Ns(0,7,8,-4,0,13,19,2,0,5,24,4),Ns(0,7,9,-4,0,14,21,2,0,5,26,4),Ns(0,8,9,-5,0,15,22,2,0,6,28,5),Ns(0,8,10,-5,0,16,24,2,0,6,30,5),Ns(0,8,11,-5,0,17,26,2,0,6,32,5),Ns(0,9,11,-5,0,18,28,2,0,7,34,6),Ns(0,9,12,-6,0,19,29,2,0,7,36,6),Ns(0,10,13,-6,0,20,31,3,0,8,38,7),Ns(0,10,13,-6,0,21,33,3,0,8,40,7),Ns(0,10,14,-6,0,22,35,3,0,8,42,7),Ns(0,11,14,-7,0,23,36,3,0,9,44,8),Ns(0,11,15,-7,0,24,38,3,0,9,46,8)],Hs={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Bs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $s(e){return`${Math.round(e)}ms`}function js(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Ws(e){const t={...Hs,...e.easing},n={...Bs,...e.duration};return{getAutoHeightDuration:js,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0,...a}=o;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof r?r:$s(r)} ${i} ${"string"==typeof l?l:$s(l)}`).join(",")},...e,easing:t,duration:n}}const Us={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function qs(e){return Kl(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function Zs(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[r,i]=n[o];!qs(i)||r.startsWith("unstable_")?delete t[r]:Kl(i)&&(t[r]={...i},e(t[r]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function Gs(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:a={},shape:s,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(Hl(20));const d=va(i),u=Rs(e);let h=Yl(u,{mixins:(p=u.breakpoints,f=o,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:d,shadows:Vs.slice(),typography:Fs(d,a),transitions:Ws(l),zIndex:{...Us}});var p,f;return h=Yl(h,c),h=t.reduce((e,t)=>Yl(e,t),h),h.unstable_sxConfig={...Ts,...c?.unstable_sxConfig},h.unstable_sx=function(e){return Ms({sx:e,theme:this})},h.toRuntimeSource=Zs,h}function Ks(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const Xs=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=Ks(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Ys(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function Js(e){return"dark"===e?Xs:[]}function Qs(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const ec=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if("class"===r&&(i=".%s"),"data"===r&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const r={};return(l=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${l?`${l}-`:""}overlays-${t}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(e=>{r[e]=n[e],delete n[e]}),"media"===i?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:r}}:i?{[i.replace("%s",t)]:r,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...r}}}if(i&&"media"!==i)return`${o}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function tc(e,t,n){!e[t]&&n&&(e[t]=n)}function nc(e){return"string"==typeof e&&e.startsWith("hsl")?na(e):e}function oc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ea(nc(e[t])))}const rc=e=>{try{return e()}catch(e){}};function ic(e,t,n,o){if(!t)return;t=!0===t?{}:t;const r="dark"===o?"dark":"light";if(!n)return void(e[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=va(t);return{palette:i,opacity:{...Ys(i.mode),...n},overlays:o||Js(i.mode),...r}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=Gs({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Ys(r),...t?.opacity},overlays:t?.overlays||Js(r)},l}function lc(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:va({...!0===n?{}:n.palette,mode:t})})}function ac(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...l}=e,a=i||"light",s=r?.[a],c={...r,...n?{[a]:{..."boolean"!=typeof s&&s,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return Gs(e,...t);let o=n;"palette"in e||c[a]&&(!0!==c[a]?o=c[a].palette:"dark"===a&&(o={mode:"dark"}));const r=Gs({...e,palette:o},...t);return r.defaultColorScheme=a,r.colorSchemes=c,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==c.light&&c.light,palette:r.palette},lc(r,"dark",c.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:r.palette},lc(r,"light",c.light)),r}return n||"light"in c||"light"!==a||(c.light=!0),function(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=Qs,colorSchemeSelector:a=(n.light&&n.dark?"media":void 0),rootSelector:s=":root",...c}=e,d=Object.keys(n)[0],u=o||(n.light&&"light"!==d?"light":d),h=((e="mui")=>mt(e))(i),{[u]:p,light:f,dark:m,...g}=n,y={...g};let b=p;if(("dark"===u&&!("dark"in n)||"light"===u&&!("light"in n))&&(b=!0),!b)throw new Error(Hl(21,u));const w=ic(y,b,c,u);f&&!y.light&&ic(y,f,void 0,"light"),m&&!y.dark&&ic(y,m,void 0,"dark");let v={defaultColorScheme:u,...w,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:s,getCssVar:h,colorSchemes:y,font:{...As(w.typography),...w.font},spacing:(x=c.spacing,"number"==typeof x?`${x}px`:"string"==typeof x||"function"==typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(v.colorSchemes).forEach(e=>{const t=v.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],r=n[2];return h(e,t[o][r])};var o;if("light"===t.mode&&(tc(t.common,"background","#fff"),tc(t.common,"onBackground","#000")),"dark"===t.mode&&(tc(t.common,"background","#000"),tc(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){tc(t.Alert,"errorColor",la(t.error.light,.6)),tc(t.Alert,"infoColor",la(t.info.light,.6)),tc(t.Alert,"successColor",la(t.success.light,.6)),tc(t.Alert,"warningColor",la(t.warning.light,.6)),tc(t.Alert,"errorFilledBg",n("palette-error-main")),tc(t.Alert,"infoFilledBg",n("palette-info-main")),tc(t.Alert,"successFilledBg",n("palette-success-main")),tc(t.Alert,"warningFilledBg",n("palette-warning-main")),tc(t.Alert,"errorFilledColor",rc(()=>t.getContrastText(t.error.main))),tc(t.Alert,"infoFilledColor",rc(()=>t.getContrastText(t.info.main))),tc(t.Alert,"successFilledColor",rc(()=>t.getContrastText(t.success.main))),tc(t.Alert,"warningFilledColor",rc(()=>t.getContrastText(t.warning.main))),tc(t.Alert,"errorStandardBg",sa(t.error.light,.9)),tc(t.Alert,"infoStandardBg",sa(t.info.light,.9)),tc(t.Alert,"successStandardBg",sa(t.success.light,.9)),tc(t.Alert,"warningStandardBg",sa(t.warning.light,.9)),tc(t.Alert,"errorIconColor",n("palette-error-main")),tc(t.Alert,"infoIconColor",n("palette-info-main")),tc(t.Alert,"successIconColor",n("palette-success-main")),tc(t.Alert,"warningIconColor",n("palette-warning-main")),tc(t.AppBar,"defaultBg",n("palette-grey-100")),tc(t.Avatar,"defaultBg",n("palette-grey-400")),tc(t.Button,"inheritContainedBg",n("palette-grey-300")),tc(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),tc(t.Chip,"defaultBorder",n("palette-grey-400")),tc(t.Chip,"defaultAvatarColor",n("palette-grey-700")),tc(t.Chip,"defaultIconColor",n("palette-grey-700")),tc(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),tc(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),tc(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),tc(t.LinearProgress,"primaryBg",sa(t.primary.main,.62)),tc(t.LinearProgress,"secondaryBg",sa(t.secondary.main,.62)),tc(t.LinearProgress,"errorBg",sa(t.error.main,.62)),tc(t.LinearProgress,"infoBg",sa(t.info.main,.62)),tc(t.LinearProgress,"successBg",sa(t.success.main,.62)),tc(t.LinearProgress,"warningBg",sa(t.warning.main,.62)),tc(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),tc(t.Slider,"primaryTrack",sa(t.primary.main,.62)),tc(t.Slider,"secondaryTrack",sa(t.secondary.main,.62)),tc(t.Slider,"errorTrack",sa(t.error.main,.62)),tc(t.Slider,"infoTrack",sa(t.info.main,.62)),tc(t.Slider,"successTrack",sa(t.success.main,.62)),tc(t.Slider,"warningTrack",sa(t.warning.main,.62));const e=ca(t.background.default,.8);tc(t.SnackbarContent,"bg",e),tc(t.SnackbarContent,"color",rc(()=>t.getContrastText(e))),tc(t.SpeedDialAction,"fabHoverBg",ca(t.background.paper,.15)),tc(t.StepConnector,"border",n("palette-grey-400")),tc(t.StepContent,"border",n("palette-grey-400")),tc(t.Switch,"defaultColor",n("palette-common-white")),tc(t.Switch,"defaultDisabledColor",n("palette-grey-100")),tc(t.Switch,"primaryDisabledColor",sa(t.primary.main,.62)),tc(t.Switch,"secondaryDisabledColor",sa(t.secondary.main,.62)),tc(t.Switch,"errorDisabledColor",sa(t.error.main,.62)),tc(t.Switch,"infoDisabledColor",sa(t.info.main,.62)),tc(t.Switch,"successDisabledColor",sa(t.success.main,.62)),tc(t.Switch,"warningDisabledColor",sa(t.warning.main,.62)),tc(t.TableCell,"border",sa(ra(t.divider,1),.88)),tc(t.Tooltip,"bg",ra(t.grey[700],.92))}if("dark"===t.mode){tc(t.Alert,"errorColor",sa(t.error.light,.6)),tc(t.Alert,"infoColor",sa(t.info.light,.6)),tc(t.Alert,"successColor",sa(t.success.light,.6)),tc(t.Alert,"warningColor",sa(t.warning.light,.6)),tc(t.Alert,"errorFilledBg",n("palette-error-dark")),tc(t.Alert,"infoFilledBg",n("palette-info-dark")),tc(t.Alert,"successFilledBg",n("palette-success-dark")),tc(t.Alert,"warningFilledBg",n("palette-warning-dark")),tc(t.Alert,"errorFilledColor",rc(()=>t.getContrastText(t.error.dark))),tc(t.Alert,"infoFilledColor",rc(()=>t.getContrastText(t.info.dark))),tc(t.Alert,"successFilledColor",rc(()=>t.getContrastText(t.success.dark))),tc(t.Alert,"warningFilledColor",rc(()=>t.getContrastText(t.warning.dark))),tc(t.Alert,"errorStandardBg",la(t.error.light,.9)),tc(t.Alert,"infoStandardBg",la(t.info.light,.9)),tc(t.Alert,"successStandardBg",la(t.success.light,.9)),tc(t.Alert,"warningStandardBg",la(t.warning.light,.9)),tc(t.Alert,"errorIconColor",n("palette-error-main")),tc(t.Alert,"infoIconColor",n("palette-info-main")),tc(t.Alert,"successIconColor",n("palette-success-main")),tc(t.Alert,"warningIconColor",n("palette-warning-main")),tc(t.AppBar,"defaultBg",n("palette-grey-900")),tc(t.AppBar,"darkBg",n("palette-background-paper")),tc(t.AppBar,"darkColor",n("palette-text-primary")),tc(t.Avatar,"defaultBg",n("palette-grey-600")),tc(t.Button,"inheritContainedBg",n("palette-grey-800")),tc(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),tc(t.Chip,"defaultBorder",n("palette-grey-700")),tc(t.Chip,"defaultAvatarColor",n("palette-grey-300")),tc(t.Chip,"defaultIconColor",n("palette-grey-300")),tc(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),tc(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),tc(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),tc(t.LinearProgress,"primaryBg",la(t.primary.main,.5)),tc(t.LinearProgress,"secondaryBg",la(t.secondary.main,.5)),tc(t.LinearProgress,"errorBg",la(t.error.main,.5)),tc(t.LinearProgress,"infoBg",la(t.info.main,.5)),tc(t.LinearProgress,"successBg",la(t.success.main,.5)),tc(t.LinearProgress,"warningBg",la(t.warning.main,.5)),tc(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),tc(t.Slider,"primaryTrack",la(t.primary.main,.5)),tc(t.Slider,"secondaryTrack",la(t.secondary.main,.5)),tc(t.Slider,"errorTrack",la(t.error.main,.5)),tc(t.Slider,"infoTrack",la(t.info.main,.5)),tc(t.Slider,"successTrack",la(t.success.main,.5)),tc(t.Slider,"warningTrack",la(t.warning.main,.5));const e=ca(t.background.default,.98);tc(t.SnackbarContent,"bg",e),tc(t.SnackbarContent,"color",rc(()=>t.getContrastText(e))),tc(t.SpeedDialAction,"fabHoverBg",ca(t.background.paper,.15)),tc(t.StepConnector,"border",n("palette-grey-600")),tc(t.StepContent,"border",n("palette-grey-600")),tc(t.Switch,"defaultColor",n("palette-grey-300")),tc(t.Switch,"defaultDisabledColor",n("palette-grey-600")),tc(t.Switch,"primaryDisabledColor",la(t.primary.main,.55)),tc(t.Switch,"secondaryDisabledColor",la(t.secondary.main,.55)),tc(t.Switch,"errorDisabledColor",la(t.error.main,.55)),tc(t.Switch,"infoDisabledColor",la(t.info.main,.55)),tc(t.Switch,"successDisabledColor",la(t.success.main,.55)),tc(t.Switch,"warningDisabledColor",la(t.warning.main,.55)),tc(t.TableCell,"border",la(ra(t.divider,1),.68)),tc(t.Tooltip,"bg",ra(t.grey[700],.92))}oc(t.background,"default"),oc(t.background,"paper"),oc(t.common,"background"),oc(t.common,"onBackground"),oc(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&tc(t[e],"mainChannel",ea(nc(n.main))),n.light&&tc(t[e],"lightChannel",ea(nc(n.light))),n.dark&&tc(t[e],"darkChannel",ea(nc(n.dark))),n.contrastText&&tc(t[e],"contrastTextChannel",ea(nc(n.contrastText))),"text"===e&&(oc(t[e],"primary"),oc(t[e],"secondary")),"action"===e&&(n.active&&oc(t[e],"active"),n.selected&&oc(t[e],"selected")))})}),v=t.reduce((e,t)=>Yl(e,t),v);const S={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:ec(v)},{vars:C,generateThemeVars:k,generateStyleSheets:E}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:l,defaultColorScheme:a="light",...s}=e,{vars:c,css:d,varsWithDefaults:u}=Is(s,t);let h=u;const p={},{[a]:f,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:o,css:r,varsWithDefaults:i}=Is(n,t);h=Yl(h,i),p[e]={css:r,vars:o}}),f){const{css:e,vars:n,varsWithDefaults:o}=Is(f,t);h=Yl(h,o),p[a]={css:e,vars:n}}function g(t,n){let o=r;if("class"===r&&(o=".%s"),"data"===r&&(o="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach(([,{vars:t}])=>{e=Yl(e,t)}),e},generateStyleSheets:()=>{const t=[],r=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[r]:a,...s}=p;if(a){const{css:e}=a,t=i[r]?.palette?.mode,s=!o&&t?{colorScheme:t,...e}:{...e};l(n(r,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{const r=i[e]?.palette?.mode,a=!o&&r?{colorScheme:r,...t}:{...t};l(n(e,{...a}),a)}),t}}}(v,S);return v.vars=C,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([e,t])=>{v[e]=t}),v.generateThemeVars=k,v.generateStyleSheets=E,v.generateSpacing=function(){return gt(c.spacing,Za(this))},v.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(a),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=l,v.unstable_sxConfig={...Ts,...c?.unstable_sxConfig},v.unstable_sx=function(e){return Ms({sx:e,theme:this})},v.toRuntimeSource=Zs,v}({...l,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof o&&o},...t)}const sc=ac();function cc(){const e=ft(sc);return e[Bl]||e}function dc(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ja(t.components[n].defaultProps,o):o}function uc({props:e,name:t,defaultTheme:n,themeId:o}){let r=function(e=Os){return function(e=null){const t=A.useContext(St);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}(e)}(n);return r=r[o]||r,dc({theme:r,name:t,props:e})}const hc=Rs();function pc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function mc(e){return e?(t,n)=>n[e]:null}function gc(e,t,n){const o="function"==typeof t?t(e):t;if(Array.isArray(o))return o.flatMap(t=>gc(e,t,n));if(Array.isArray(o?.variants)){let t;if(o.isProcessed)t=n?fc(o.style,n):o.style;else{const{variants:e,...r}=o;t=n?fc(xt(r),n):r}return yc(e,o.variants,[t],n)}return o?.isProcessed?n?fc(xt(o.style),n):o.style:n?fc(xt(o),n):o}function yc(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const l=t[i];if("function"==typeof l.props){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(const t in l.props)if(e[t]!==l.props[t]&&e.ownerState?.[t]!==l.props[t])continue e;"function"==typeof l.style?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?fc(xt(l.style(r)),o):l.style(r))):n.push(o?fc(xt(l.style),o):l.style)}return n}function bc(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const wc=function(e={}){const{themeId:t,defaultTheme:n=hc,rootShouldForwardProp:o=pc,slotShouldForwardProp:r=pc}=e;function i(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return(e,t={})=>{vt(e,e=>e.filter(e=>e!==Ms));const{name:n,slot:l,skipVariantsResolver:a,skipSx:s,overridesResolver:c=mc(bc(l)),...d}=t,u=n&&n.startsWith("Mui")||l?"components":"custom",h=void 0!==a?a:l&&"Root"!==l&&"root"!==l||!1,p=s||!1;let f=pc;"Root"===l||"root"===l?f=o:l?f=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(f=void 0);const m=wt(e,{shouldForwardProp:f,label:void 0,...d}),g=e=>{if(e.__emotion_real===e)return e;if("function"==typeof e)return function(t){return gc(t,e,t.theme.modularCssLayers?u:void 0)};if(Kl(e)){const t=function(e){const{variants:t,...n}=e,o={variants:t,style:xt(n),isProcessed:!0};return o.style===n||t&&t.forEach(e=>{"function"!=typeof e.style&&(e.style=xt(e.style))}),o}(e);return function(e){return t.variants?gc(e,t,e.theme.modularCssLayers?u:void 0):e.theme.modularCssLayers?fc(t.style,u):t.style}}return e},y=(...t)=>{const o=[],r=t.map(g),l=[];if(o.push(i),n&&c&&l.push(function(e){const t=e.theme,o=t.components?.[n]?.styleOverrides;if(!o)return null;const r={};for(const t in o)r[t]=gc(e,o[t],e.theme.modularCssLayers?"theme":void 0);return c(e,r)}),n&&!h&&l.push(function(e){const t=e.theme,o=t?.components?.[n]?.variants;return o?yc(e,o,[],e.theme.modularCssLayers?"theme":void 0):null}),p||l.push(Ms),Array.isArray(r[0])){const e=r.shift(),t=new Array(o.length).fill(""),n=new Array(l.length).fill("");let i;i=[...t,...e,...n],i.raw=[...t,...e.raw,...n],o.unshift(i)}const a=[...o,...r,...l],s=m(...a);return e.muiName&&(s.muiName=e.muiName),s};return m.withConfig&&(y.withConfig=m.withConfig),y}}({themeId:Bl,defaultTheme:sc,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e}),vc=e=>{if("dark"===e.palette.mode)return`drop-shadow(0px 0px 1px ${"dark"===e.palette.mode?e.palette.text.primary:e.palette.divider})`},xc=(e=1)=>t=>{if("dark"!==t.palette.mode)return;const n="dark"===t.palette.mode?t.palette.text.primary:t.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},Sc=z(j((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:l,...a}=e;let s=24,c=24;return"medium"===o?(s=32,c=32):"large"===o&&(s=42,c=42),O(ne,{ref:t,className:si("icon",l),sx:{width:s,height:c,...n},...a,children:i})})),Cc=wc(Sc)(({theme:e})=>({fill:"currentColor","& .activeColor":{fill:e.palette.primary.main},"& .styled.high_contrast":{fill:e.palette.primary.main},"& .styled.background":{fill:e.palette.background.paper},"& .styled.current_color":{fill:"currentColor"},"& .styled.secondary":{fill:e.palette.secondary.main},"& .styled.secondary_dark":{fill:e.palette.secondary.dark},"& .styled.secondary_light":{fill:e.palette.secondary.light},"& .styled.info":{fill:e.palette.info.main},"& .styled.info.stroked":{stroke:e.palette.info.main},"& .styled.info_dark":{fill:e.palette.info.dark},"& .styled.info_light":{fill:e.palette.info.light},"& .styled.warning":{fill:e.palette.warning.main},"& .styled.warning.stroked":{stroke:e.palette.warning.main},"& .styled.warning_dark":{fill:e.palette.warning.dark},"& .styled.warning_light":{fill:e.palette.warning.light},"& .styled.error.info":{fill:e.palette.error.main},"& .styled.error.stroked":{stroke:e.palette.error.main},"& .styled.error_dark":{fill:e.palette.error.dark},"& .styled.error_light":{fill:e.palette.error.light},"& .styled.success":{fill:e.palette.success.main},"& .styled.success_dark":{fill:e.palette.success.dark},"& .styled.success_light":{fill:e.palette.success.light},"& .styled.grey":{fill:e.palette.text.icon??e.palette.action.active}})),kc=e=>O(Cc,{children:e}),Ec=e=>{const{sx:t,...n}=e;return L(ie,{sx:{overflow:"visible","& .activeColor":{filter:vc},...t},...n,children:[O("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),O("path",{d:"M19 17c1.1 0 2-.9 2-2 0-1.33-2-3.5-2-3.5s-2 2.17-2 3.5c0 1.1.9 2 2 2zm-10.06-.44c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5zM10 5.21L14.79 10H5.21L10 5.21z",fillOpacity:"1"}),O("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},_c=e=>{const{sx:t,...n}=e;return L(ie,{sx:{overflow:"visible","& .activeColor":{filter:vc},...t},...n,children:[O("path",{d:"m 17.28,7.18 -3.75,-3.75 -10,10 v 3.75 h 3.75 z m 2.96,-2.96 c 0.39,-0.39 0.39,-1.02 0,-1.41 l -2.34,-2.34 c -0.39,-0.39 -1.02,-0.39 -1.41,0 l -1.96,1.96 3.75,3.75 z",fillOpacity:"1"}),O("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},Tc=e=>{const{sx:t,...n}=e;return L(ie,{sx:{overflow:"visible","& .activeColor":{filter:vc},...t},...n,children:[O("path",{d:"M 5.615,17.375 H 8.0566072 L 9.3379465,13.763035 H 15.038393 L 16.309643,17.375 H 18.75125 L 13.444285,3.25 h -2.52232 z m 4.459465,-5.66009 2.048125,-5.8416954 h 0.12107 l 2.048125,5.8416954 z",fillOpacity:"1"}),O("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},Mc=e=>{const{sx:t,...n}=e;return L(ie,{sx:{overflow:"visible","& .activeColor":{filter:vc},...t},...n,children:[O("path",{className:"activeColor",opacity:"1",d:"M12 20c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8z"}),O("path",{className:"style_grey",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"}),O("path",{className:"activeColor",opacity:".3",d:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8z"})]})},Dc=e=>L(ie,{...e,children:[O("path",{d:"M 2.7062296,0.90879274 H 21.29377 c 0.981786,0 1.797437,0.81565116 1.797437,1.79743686 V 21.29377 c 0,0.981786 -0.815651,1.797437 -1.797437,1.797437 H 2.7062296 c -0.9817857,0 -1.79743686,-0.815651 -1.79743686,-1.797437 V 2.7062296 c 0,-0.9817857 0.81565116,-1.79743686 1.79743686,-1.79743686 z M 2.5118579,2.5118579 v 5.5045251 1.3285403 5.3101537 1.32854 5.504525 h 5.5045251 1.3285403 5.3101537 1.32854 5.504525 V 15.983617 14.655077 9.3449233 8.016383 2.5118579 H 15.983617 14.655077 9.3449233 8.016383 Z"}),O("path",{className:"styled info",d:"m 8.44571,8.0624624 3.396641,-3.9592297 3.396641,3.9592297 H 12.691469 V 13.011077 H 10.993224 V 8.0624624 Z m 6.793271,7.5823776 -3.39664,3.707336 -3.396642,-3.707336 h 2.547525 v -4.633763 h 1.698245 v 4.633763 z m 0.494653,-7.113411 3.959229,3.396646 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z m -7.5823711,6.793275 -3.707336,-3.39664 3.707336,-3.396647 v 2.54753 h 4.6337601 v 1.698245 H 8.1512629 Z"})]}),Rc=e=>L(ie,{...e,children:[O("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4707032,0 V 8.3066406 H 14.777344 V 2.7519531 Z m 6.4707027,0 v 5.5546875 h 5.554688 V 2.7519531 Z M 2.7519531,9.2109375 v 0.2011719 5.1757816 1.294922 5.365234 h 5.3652344 1.2949219 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 9.2109375 Z"}),O("path",{className:"styled info",d:"m 15.699562,11.871427 3.959229,3.396644 -3.959229,3.396641 v -2.547524 h -4.948611 v -1.698245 h 4.948611 z M 8.1171875,18.6647 4.4098515,15.26806 8.1171875,11.871415 v 2.547528 h 4.6337635 v 1.698245 H 8.1171875 Z"})]}),Oc=e=>L(ie,{...e,children:[O("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 21.058594 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 H 2.9414063 c -0.9569419,0 -1.7519532,-0.795012 -1.7519532,-1.751953 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z m 6.4667969,0 V 21.248047 h 0.1933594 5.1757816 1.294922 5.365234 V 15.882813 14.587891 9.4121094 8.1171875 2.7519531 H 15.882813 14.587891 9.4121094 Z M 2.7519531,9.2226563 V 14.777344 H 8.3066406 V 9.2226563 Z m 0,6.4707027 v 5.554688 h 5.5546875 v -5.554688 z"}),O("path",{className:"styled info",d:"M 11.759025,7.9527347 15.155669,3.993505 18.55231,7.9527347 H 16.004787 V 12.901345 H 14.306542 V 7.9527347 Z m 6.793274,7.5823733 -3.39664,3.707336 -3.396645,-3.707336 h 2.547528 v -4.633763 h 1.698245 v 4.633763 z"})]}),Lc=e=>O(ie,{...e,children:O("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"})}),Ic=e=>O(ie,{...e,children:O("path",{d:"m 11.263672,2.2636719 h 1.472656 v 4.5449218 l 3.505859,-3.5058593 1.042969,1.0371093 -4.548828,4.5507813 v 2.373047 h 2.373047 l 4.550781,-4.5488283 1.03711,1.0429688 -3.50586,3.5058595 h 4.544922 v 1.472656 h -4.544922 l 3.50586,3.505859 -1.03711,1.042969 -4.550781,-4.548828 h -2.373047 v 2.373047 l 4.548828,4.550781 -1.042969,1.03711 -3.505859,-3.50586 v 4.544922 h -1.472656 v -4.544922 l -3.5058595,3.50586 -1.0429688,-1.03711 4.5488283,-4.550781 V 12.736328 H 8.890625 L 4.3398437,17.285156 3.3027344,16.242187 6.8085937,12.736328 H 2.2636719 V 11.263672 H 6.8085937 L 3.3027344,7.7578125 4.3398437,6.7148437 8.890625,11.263672 h 2.373047 V 8.890625 L 6.7148437,4.3398437 7.7578125,3.3027344 11.263672,6.8085937 Z"})}),Ac=e=>L(ie,{...e,children:[O("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),O("path",{className:"styled info",d:"M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),Pc=e=>L(ie,{...e,children:[O("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),O("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 5.4006271,3.6183952 5.2693357,3.4869436 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),zc=e=>L(ie,{...e,children:[O("path",{d:"M 1,21.058818 C 1,22.120049 1.8799511,23 2.9411822,23 H 21.058818 C 22.120049,23 23,22.120049 23,21.058818 V 2.9411822 C 23,1.8799511 22.120049,1 21.058818,1 H 2.9411822 C 1.8799511,1 1,1.8799511 1,2.9411822 Z M 15.882352,2.9411822 h 5.176466 v 5.1764656 h -5.176466 z m 0,6.4705789 h 5.176466 v 5.1764779 h -5.176466 z m 0,6.4705909 h 5.176466 v 5.176466 H 15.882352 Z M 9.4117611,2.9411822 H 14.588239 V 8.1176478 H 9.4117611 Z m 0,6.4705789 H 14.588239 V 14.588239 H 9.4117611 Z m 0,6.4705909 h 5.1764779 v 5.176466 H 9.4117611 Z M 2.9411822,2.9411822 H 8.1176478 V 8.1176478 H 2.9411822 Z m 0,6.4705789 H 8.1176478 V 14.588239 H 2.9411822 Z m 0,6.4705909 h 5.1764656 v 5.176466 H 2.9411822 Z"}),O("path",{className:"styled info",d:"m 5.4035566,16.631659 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.1276619,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 v -0.107301 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,19.77139 v -1.002353 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.1532651,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.1794261,-0.04798 c 0.09611,-0.02576 0.1532689,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.5275841,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.5275841,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.2549321,0 l -0.131291,0.131452 v -0.107302 c 0,-0.0995 -0.08082,-0.180312 -0.180313,-0.180312 -0.0995,0 -0.1803119,0.08082 -0.1803119,0.180312 z m 1e-7,-6.464187 -0.131292,-0.131452 c -0.07052,-0.07036 -0.184659,-0.07036 -0.255179,0 -0.07036,0.07052 -0.07036,0.184659 0,0.255179 l 0.386384,0.386219 v 1.002496 l -0.868241,-0.501247 -0.141353,-0.527729 c -0.02576,-0.09612 -0.124607,-0.153266 -0.220723,-0.127502 -0.09627,0.02577 -0.153266,0.124766 -0.127662,0.220888 l 0.04814,0.179426 -0.09305,-0.05377 c -0.08597,-0.04975 -0.196575,-0.0202 -0.246319,0.06601 -0.04958,0.08621 -0.02004,0.196573 0.06601,0.246317 l 0.09305,0.05377 -0.179428,0.04798 c -0.09611,0.02576 -0.1532648,0.124767 -0.1275015,0.220887 0.025766,0.09612 0.1247665,0.153267 0.2208885,0.127503 l 0.527585,-0.141353 0.868241,0.501249 -0.868241,0.501083 -0.527585,-0.141353 c -0.09611,-0.02577 -0.195125,0.03139 -0.220888,0.127502 -0.025765,0.09611 0.031395,0.195124 0.127502,0.220888 l 0.179428,0.04798 -0.09289,0.05377 c -0.08621,0.04974 -0.115761,0.160107 -0.06601,0.246317 0.04975,0.08621 0.160107,0.11576 0.246316,0.06601 l 0.09289,-0.05353 -0.04814,0.179266 c -0.02561,0.09611 0.03139,0.195125 0.127663,0.220888 0.09612,0.02576 0.194882,-0.03139 0.220723,-0.127502 l 0.141353,-0.527729 0.86824,-0.501083 v 1.002353 l -0.386383,0.386219 c -0.07036,0.07052 -0.07036,0.18466 0,0.255179 0.07052,0.07036 0.184659,0.07036 0.255179,0 l 0.131291,-0.131451 v 0.107301 c 0,0.0995 0.08082,0.180313 0.180312,0.180313 0.0995,0 0.180313,-0.08082 0.180313,-0.180313 V 13.81715 l 0.131291,0.131451 c 0.07036,0.07036 0.184659,0.07036 0.254932,0 0.07052,-0.07052 0.07052,-0.184659 0,-0.255179 L 5.7641837,13.307203 V 12.30485 l 0.868241,0.501083 0.141353,0.527729 c 0.0256,0.09611 0.124606,0.153266 0.220723,0.127503 0.09611,-0.02576 0.153265,-0.124767 0.127662,-0.220889 l -0.04814,-0.179266 0.09289,0.05353 c 0.08621,0.04975 0.196574,0.0202 0.246317,-0.06601 0.04975,-0.08621 0.0202,-0.196574 -0.06601,-0.246317 l -0.09289,-0.05377 0.179426,-0.04798 c 0.09611,-0.02576 0.153269,-0.124767 0.127506,-0.220888 -0.02576,-0.09612 -0.124767,-0.153266 -0.220888,-0.127502 l -0.527584,0.141353 -0.868241,-0.501083 0.868241,-0.501249 0.527584,0.141353 c 0.09612,0.02577 0.195125,-0.03139 0.220888,-0.127502 0.02576,-0.09611 -0.03139,-0.195124 -0.127502,-0.220888 l -0.179426,-0.04798 0.09289,-0.05377 c 0.08621,-0.04976 0.115761,-0.160107 0.06601,-0.246316 -0.04974,-0.08621 -0.160106,-0.115761 -0.246317,-0.06601 l -0.09289,0.05377 0.04814,-0.179427 c 0.02561,-0.09611 -0.03155,-0.195125 -0.127662,-0.220888 -0.09611,-0.02576 -0.195126,0.0314 -0.220723,0.127502 l -0.141357,0.527729 -0.868241,0.501083 v -1.002353 l 0.386219,-0.386219 c 0.07052,-0.07052 0.07052,-0.184658 0,-0.255178 -0.07036,-0.07036 -0.184659,-0.07036 -0.254932,0 l -0.131291,0.131452 V 10.06015 c 0,-0.0995 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z M 18.316869,3.6183952 18.185577,3.4869436 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 17.448541,4.6295902 17.307188,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 c -0.08597,-0.049754 -0.196575,-0.0202 -0.246319,0.066006 -0.04958,0.086207 -0.02004,0.1965729 0.06601,0.2463169 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.153265,0.1247669 -0.127501,0.2208871 0.02576,0.09612 0.124766,0.1532668 0.220888,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.02576,0.096107 0.03139,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 L 17.44854,6.256849 18.31678,5.7557653 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 18.677496,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 20.443178,6.1256175 20.500337,6.0266153 20.474574,5.930495 20.448814,5.834375 20.349807,5.7772283 20.253686,5.8029929 L 19.726102,5.944346 18.857861,5.4432623 19.726102,4.9420132 20.253686,5.0833663 c 0.09612,0.025765 0.195125,-0.031395 0.220888,-0.1275022 0.02576,-0.096107 -0.03139,-0.1951239 -0.127502,-0.2208871 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 19.545737,4.6295902 18.677496,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 18.677492,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.523574,0 -0.131292,-0.1314516 c -0.07052,-0.070356 -0.184659,-0.070356 -0.255179,0 -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 l 0.386384,0.3862184 V 5.130838 L 10.924967,4.6295902 10.783614,4.1018613 c -0.02576,-0.09612 -0.124607,-0.1532654 -0.220723,-0.1275022 -0.09627,0.025765 -0.153266,0.1247669 -0.127662,0.2208886 l 0.04814,0.1794263 -0.09305,-0.053771 C 10.304349,4.271149 10.193744,4.300703 10.144,4.386909 10.09442,4.473116 10.12396,4.5834819 10.21001,4.6332259 l 0.09305,0.053771 -0.179428,0.04798 c -0.09611,0.025765 -0.1532648,0.1247669 -0.1275015,0.2208871 0.025766,0.09612 0.1247665,0.1532668 0.2208885,0.1275022 l 0.527585,-0.141353 0.868241,0.5012491 -0.868241,0.5010837 -0.527585,-0.1413531 c -0.09611,-0.025765 -0.195125,0.031395 -0.220888,0.1275021 -0.025765,0.096107 0.031395,0.1951239 0.127502,0.2208872 l 0.179428,0.04798 -0.09289,0.053771 c -0.08621,0.049741 -0.115761,0.1601075 -0.06601,0.2463169 0.04975,0.086207 0.160107,0.1157606 0.246316,0.066006 l 0.09289,-0.053531 -0.04814,0.1792662 c -0.02561,0.096107 0.03139,0.1951252 0.127663,0.2208885 0.09612,0.025765 0.194882,-0.031395 0.220723,-0.1275021 l 0.141353,-0.5277287 0.86824,-0.5010837 v 1.0023529 l -0.386383,0.3862197 c -0.07036,0.070516 -0.07036,0.1846593 0,0.2551791 0.07052,0.070356 0.184659,0.070356 0.255179,0 l 0.131291,-0.1314516 v 0.1073014 c 0,0.099496 0.08082,0.1803123 0.180312,0.1803123 0.0995,0 0.180313,-0.080816 0.180313,-0.1803123 V 7.2680654 l 0.131291,0.1314516 c 0.07036,0.070356 0.184659,0.070356 0.254932,0 0.07052,-0.070516 0.07052,-0.1846593 0,-0.2551791 L 12.153922,6.7581182 V 5.7557653 l 0.868241,0.5010837 0.141353,0.527729 c 0.0256,0.096107 0.124606,0.1532654 0.220723,0.1275021 0.09611,-0.025765 0.153265,-0.1247669 0.127662,-0.2208885 l -0.04814,-0.1792662 0.09289,0.053531 c 0.08621,0.049755 0.196574,0.020201 0.246317,-0.066006 0.04975,-0.086207 0.0202,-0.1965742 -0.06601,-0.2463169 l -0.09289,-0.053771 0.179426,-0.04798 C 13.919604,6.1256175 13.976763,6.0266153 13.951,5.930495 13.92524,5.834375 13.826233,5.7772283 13.730112,5.8029929 L 13.202528,5.944346 12.334287,5.4432623 13.202528,4.9420132 13.730112,5.0833663 C 13.826232,5.1091313 13.925237,5.0519713 13.951,4.9558641 13.97676,4.8597571 13.91961,4.7607402 13.823498,4.734977 l -0.179426,-0.04798 0.09289,-0.053771 c 0.08621,-0.049755 0.115761,-0.1601074 0.06601,-0.2463168 -0.04974,-0.086207 -0.160106,-0.1157607 -0.246317,-0.066006 l -0.09289,0.053771 0.04814,-0.1794263 c 0.02561,-0.096107 -0.03155,-0.1951255 -0.127662,-0.2208888 -0.09611,-0.025765 -0.195126,0.031395 -0.220723,0.1275022 L 13.022163,4.6295902 12.153922,5.1306739 V 4.128321 l 0.386219,-0.3862196 c 0.07052,-0.070516 0.07052,-0.184658 0,-0.2551778 -0.07036,-0.070356 -0.184659,-0.070356 -0.254932,0 L 12.153918,3.6183752 V 3.5110738 c 0,-0.099496 -0.08082,-0.1803123 -0.180313,-0.1803123 -0.0995,0 -0.180312,0.080816 -0.180312,0.1803123 z m -6.3926679,0 -0.1312914,-0.1314516 c -0.070516,-0.070356 -0.1846593,-0.070356 -0.2551791,0 -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 L 5.4005404,4.1283411 V 5.130838 L 4.5322996,4.6295902 4.3909465,4.1018613 C 4.3651819,4.005741 4.2663397,3.9485959 4.1702234,3.9743591 4.0739563,4.0001238 4.016958,4.099126 4.0425611,4.1952477 L 4.0907011,4.374674 3.9976501,4.320903 C 3.9116831,4.271149 3.8010756,4.300703 3.7513316,4.386909 3.7017506,4.473116 3.7312906,4.5834819 3.8173376,4.6332259 l 0.093051,0.053771 -0.1794277,0.04798 C 3.6348539,4.7607419 3.5776955,4.8597438 3.6034588,4.955864 3.6292238,5.051984 3.7282257,5.1091308 3.8243473,5.0833662 L 4.3519326,4.9420132 5.2201734,5.4432623 4.3519326,5.944346 3.8243478,5.8029929 C 3.7282408,5.7772279 3.6292226,5.8343879 3.6034593,5.930495 3.5776943,6.026602 3.6348543,6.1256189 3.7309614,6.1513822 l 0.1794277,0.04798 -0.092891,0.053771 c -0.086207,0.049741 -0.1157606,0.1601075 -0.066006,0.2463169 0.049755,0.086207 0.1601075,0.1157606 0.2463169,0.066006 L 4.0907,6.5119251 4.04256,6.6911913 c -0.025605,0.096107 0.031395,0.1951252 0.1276623,0.2208885 0.09612,0.025765 0.1948824,-0.031395 0.220723,-0.1275021 L 4.5322983,6.256849 5.400539,5.7557653 V 6.7581182 L 5.0141552,7.1443379 c -0.070356,0.070516 -0.070356,0.1846593 0,0.2551791 0.070516,0.070356 0.1846593,0.070356 0.2551791,0 L 5.4006258,7.2680654 v 0.1073014 c 0,0.099496 0.080816,0.1803123 0.1803122,0.1803123 0.099496,0 0.1803123,-0.080816 0.1803123,-0.1803123 V 7.2680654 L 5.8925418,7.399517 c 0.070356,0.070356 0.1846592,0.070356 0.2549322,0 0.070516,-0.070516 0.070516,-0.1846593 0,-0.2551791 L 5.7612543,6.7581182 V 5.7557653 L 6.6294951,6.256849 6.7708482,6.784578 C 6.7964532,6.880685 6.895455,6.9378434 6.9915713,6.9120801 7.0876783,6.8863151 7.1448367,6.7873132 7.1192336,6.6911916 l -0.04814,-0.1792662 0.092891,0.053531 c 0.086207,0.049755 0.1965743,0.020201 0.2463169,-0.066006 0.049755,-0.086207 0.020201,-0.1965742 -0.066006,-0.2463169 l -0.092891,-0.053771 0.1794263,-0.04798 C 7.5269375,6.1256176 7.584096,6.0266153 7.5583327,5.930495 7.5325681,5.8343747 7.4335658,5.7772283 7.3374442,5.8029929 L 6.8098607,5.944346 5.9416199,5.4432623 6.8098607,4.9420132 7.3374442,5.0833663 C 7.4335642,5.1091313 7.5325695,5.0519713 7.5583327,4.9558641 7.5840977,4.8597571 7.5269377,4.7607402 7.4308306,4.734977 L 7.2514043,4.686997 7.3442953,4.633226 C 7.4305024,4.5834714 7.4600563,4.4731186 7.4103016,4.3869092 7.3605603,4.3007025 7.2501954,4.2711485 7.1639847,4.3209032 l -0.092891,0.053771 0.04814,-0.1794263 C 7.1448381,4.0991407 7.0876782,4.0001224 6.9915713,3.9743591 6.8954644,3.9485945 6.796446,4.0057543 6.7708482,4.1018613 L 6.6294951,4.6295902 5.7612543,5.1306739 V 4.128321 L 6.147474,3.7421014 c 0.070516,-0.070516 0.070516,-0.184658 0,-0.2551778 -0.070356,-0.070356 -0.1846593,-0.070356 -0.2549322,0 L 5.7612503,3.6183752 V 3.5110738 c 0,-0.099496 -0.080816,-0.1803123 -0.1803123,-0.1803123 -0.099496,0 -0.1803122,0.080816 -0.1803122,0.1803123 z"})]}),Fc=e=>O(ie,{...e,children:O("path",{d:"m 14.147472,23.193365 c -0.06508,0 -0.163329,0 -0.228406,-0.03317 L 10.032492,21.788491 C 9.77091,21.690244 9.575694,21.428646 9.575694,21.168365 L 9.574448,14.275229 2.061319,4.1155175 C 1.636402,3.5272726 1.571332,2.7756983 1.89799,2.1223827 2.224647,1.4690672 2.877962,1.077339 3.596349,1.077339 h 17.247858 c 0.718386,0 1.371701,0.3917282 1.698359,1.0450437 0.326658,0.6533156 0.26158,1.4048899 -0.163329,1.9931348 L 14.834096,14.275229 v 8.264768 c 0,0.228406 -0.09825,0.424918 -0.293484,0.555056 -0.09825,0.06508 -0.26158,0.09825 -0.393,0.09825 z m -3.200233,-2.483121 2.548192,0.881714 -0.0013,-7.545141 c 0,-0.130154 0.03317,-0.293483 0.130155,-0.391728 L 21.302099,3.3320488 C 21.498604,3.070468 21.400357,2.8420618 21.367174,2.743803 21.334005,2.6455442 21.170677,2.4503213 20.877193,2.4503213 H 3.597649 c -0.326657,0 -0.456798,0.2284052 -0.489986,0.2934817 -0.03317,0.098252 -0.130154,0.3266583 0.06508,0.5882458 l 7.676458,10.3230402 c 0.09826,0.130153 0.130153,0.26158 0.130153,0.391728 v 6.663165 z"})}),Nc=e=>L(ie,{...e,children:[O("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),O("path",{d:"M 21.017161,7.1665586 C 20.392995,6.5201968 19.608002,6.0517137 18.742868,5.8090983 17.877689,5.5664598 16.963524,5.5585838 16.094114,5.7860476 15.22488,6.0135852 14.431817,6.4684234 13.796391,7.1037635 c -0.635429,0.6353402 -1.090178,1.428404 -1.317717,2.2977256 -0.227452,0.8693219 -0.219576,1.7834869 0.02305,2.6487529 0.242637,0.865179 0.711099,1.650171 1.35746,2.274294 0.624169,0.646362 1.409161,1.114846 2.274293,1.357462 0.865181,0.242638 1.779345,0.250513 2.648753,0.02306 0.869237,-0.227538 1.6623,-0.682376 2.297726,-1.317715 0.635429,-0.635343 1.090178,-1.428408 1.317717,-2.297728 0.22745,-0.869322 0.219574,-1.783489 -0.02305,-2.6487532 C 22.131989,8.5756772 21.663527,7.7906849 21.017165,7.1665603 Z m -0.713725,6.4440904 c -0.662132,0.662892 -1.533581,1.075598 -2.465862,1.167976 -0.932389,0.09237 -1.867901,-0.141358 -2.647232,-0.661352 -0.779332,-0.52001 -1.354249,-1.294155 -1.626785,-2.190554 -0.272531,-0.896354 -0.225846,-1.859508 0.132116,-2.7253361 0.35788,-0.8657633 1.005002,-1.5807687 1.830956,-2.0229792 0.825931,-0.4422113 1.779669,-0.5844215 2.698649,-0.4022913 0.918982,0.1821195 1.746458,0.6772985 2.341333,1.4010248 0.594836,0.7238123 0.920438,1.6314471 0.921196,2.5682628 0.0017,0.532203 -0.101936,1.059415 -0.305336,1.551284 -0.203304,0.491785 -0.50213,0.938401 -0.879233,1.313899 z"}),O("path",{className:"styled info",d:"M 20.061955,12.09978 18.551369,10.589193 20.061955,9.0786072 C 20.241841,8.8987223 20.312147,8.6365615 20.24631,8.3908377 20.180471,8.1451188 19.988451,7.9530974 19.742725,7.8872526 c -0.245721,-0.065847 -0.507883,0.00456 -0.68777,0.1843533 L 17.544368,9.5821922 16.033782,8.0716076 C 15.853898,7.8917219 15.591737,7.8214144 15.346013,7.8872534 c -0.24572,0.065839 -0.437742,0.2578588 -0.503586,0.5035843 -0.06584,0.2457213 0.0045,0.5078813 0.184355,0.6877695 l 1.510585,1.5105858 -1.510587,1.510587 c -0.179886,0.179885 -0.250192,0.442047 -0.184353,0.687771 0.06584,0.24572 0.257859,0.437743 0.503583,0.503585 0.245721,0.06584 0.507883,-0.0046 0.687771,-0.184354 l 1.510589,-1.510588 1.510586,1.510588 c 0.179884,0.179885 0.442045,0.250192 0.68777,0.184354 0.245719,-0.06584 0.43774,-0.25786 0.503584,-0.503585 0.06584,-0.245721 -0.0045,-0.507884 -0.184355,-0.687771 z"})]}),Vc=e=>L(ie,{...e,children:[O("path",{d:"m 3.5976562,1.0761719 c -0.7183869,0 -1.3725617,0.3916059 -1.6992187,1.0449219 C 1.5717795,2.7744088 1.637583,3.5269905 2.0625,4.1152344 l 7.5117188,10.1601566 0.00195,6.892578 c 0,0.260281 0.1954492,0.52089 0.4570311,0.61914 l 3.886719,1.373047 c 0.06508,0.03317 0.163435,0.0332 0.228516,0.0332 0.13142,0 0.294328,-0.03453 0.392578,-0.09961 0.195234,-0.130138 0.292968,-0.326281 0.292968,-0.554688 v -4.982421 c -0.48986,-0.26001 -0.941054,-0.589724 -1.339843,-0.980469 l 0.002,5.015625 -2.548828,-0.882813 h 0.0332 v -6.662109 c 0,-0.130148 -0.0326,-0.262425 -0.13086,-0.392578 L 3.1738281,3.3320312 C 2.9785941,3.0704432 3.0742519,2.8423906 3.1074219,2.7441406 3.1406119,2.6790606 3.2709992,2.4492188 3.5976562,2.4492188 H 20.876953 c 0.293484,0 0.457065,0.1966618 0.490235,0.2949218 0.03318,0.09826 0.132044,0.3263097 -0.06445,0.5878906 l -0.632812,0.8515626 c 0.38666,0.2189633 0.751183,0.4755385 1.089844,0.765625 l 0.61914,-0.8339844 C 22.803815,3.5269905 22.869627,2.7744088 22.542969,2.1210938 22.216311,1.4677778 21.562136,1.0761719 20.84375,1.0761719 Z"}),O("path",{className:"styled info",d:"m 22.256089,10.618935 c 0.0019,1.595286 -0.778827,3.089601 -2.088797,3.999919 -1.309934,0.909821 -2.982899,1.119896 -4.477215,0.56162 l -0.417759,0.486352 c -0.03192,0.03667 -0.07859,0.05668 -0.127184,0.05479 -0.01329,0.0019 -0.02715,0.0019 -0.0405,0 -0.06002,-0.01619 -0.10479,-0.06574 -0.115756,-0.127184 L 14.56112,13.385637 c -0.01,-0.04716 0.0024,-0.09622 0.03333,-0.132889 0.03096,-0.03717 0.07716,-0.05765 0.125271,-0.05621 l 2.248423,0.100502 v -4.75e-4 c 0.06049,0.0034 0.113848,0.04002 0.138147,0.09574 0.02383,0.05572 0.01433,0.120043 -0.02524,0.166249 l -0.232452,0.27057 c 0.176723,0.03096 0.355838,0.04668 0.534937,0.04668 1.158004,9.49e-4 2.229278,-0.612579 2.814249,-1.611505 0.584958,-0.999375 0.595909,-2.234035 0.02859,-3.2434941 -0.0324,-0.05812 -0.02476,-0.1300373 0.01905,-0.1800642 L 21.13477,7.8246932 v -4.744e-4 c 0.0324,-0.037617 0.0805,-0.058597 0.130514,-0.05573 0.04954,0.00291 0.09527,0.028569 0.123375,0.070014 0.567802,0.8155087 0.870761,1.786251 0.867432,2.7804702 z m -7.707782,1.59809 c -0.566851,-1.008902 -0.556375,-2.2426917 0.02763,-3.2415452 0.584008,-0.9989012 1.654307,-1.6129669 2.811444,-1.6133333 0.179114,0 0.358214,0.015737 0.534937,0.046666 l -0.232452,0.2705727 c -0.03953,0.046189 -0.04907,0.1105115 -0.02524,0.1662469 0.02429,0.05573 0.07765,0.09241 0.138132,0.095746 l 2.248423,0.1005125 v -4.75e-4 c 0.04859,0.00291 0.09622,-0.017628 0.127662,-0.054307 0.03192,-0.037148 0.04478,-0.087165 0.03478,-0.1348157 L 19.779192,5.6435045 c -0.01042,-0.061449 -0.05572,-0.110992 -0.115279,-0.1271835 -0.05907,-0.015252 -0.121463,0.00387 -0.161479,0.049548 l -0.41776,0.4863542 c -1.305178,-0.4882571 -2.757055,-0.3934678 -3.98797,0.2600843 -1.230426,0.653553 -2.122089,1.8034465 -2.448413,3.1581335 -0.326325,1.354689 -0.05621,2.784249 0.741668,3.926511 0.02953,0.04144 0.07622,0.06621 0.127185,0.06717 h 0.0091 -4.75e-4 c 0.04335,-4.77e-4 0.0848,-0.01905 0.114323,-0.05049 l 0.889347,-1.016046 v -4.76e-4 c 0.04477,-0.04954 0.0524,-0.122419 0.01905,-0.180064 z"})]}),Hc=e=>O(ie,{...e,children:O("path",{d:"M 16.384064,5.4840697 C 15.849784,4.9209811 15.205202,4.4682187 14.488187,4.1710272 13.033567,3.566779 11.34346,3.4869289 9.8402213,3.9635743 8.3024412,4.4509209 7.0699875,5.5548619 6.4345935,7.0391759 6.0822502,7.8615625 5.9324318,8.7572257 5.9324318,9.6488233 c 0,1.6579667 0.5252172,2.9915157 1.576473,4.0231087 0.5301483,0.520284 1.1829709,0.917897 1.8802394,1.170621 0.8956638,0.324356 1.8646028,0.403385 2.8104858,0.352344 0.675035,-0.03621 1.319618,-0.200038 1.955961,-0.429731 -0.532615,1.307271 -1.443936,2.383942 -2.684461,3.152105 -1.273528,0.788646 -3.092884,1.334434 -5.4176042,1.657966 l 0.586965,0.989509 c 1.0191383,0 2.0284138,-0.07655 3.0260774,-0.289773 0.7104398,-0.152298 1.4134618,-0.358919 2.0786348,-0.652002 0.657753,-0.289774 1.240588,-0.670926 1.828374,-1.079243 1.394537,-0.970581 2.506804,-2.263815 3.295409,-3.78033 0.808395,-1.516369 1.212602,-3.073072 1.212602,-4.770621 8.22e-4,-1.8407229 -0.585301,-3.3365027 -1.697482,-4.5088729 z"})}),Bc=e=>O(ie,{...e,children:O("path",{d:"m 7.5,4.2265625 c 1.8031695,0 3.273437,1.470268 3.273438,3.2734375 0,1.8031695 -1.4702685,3.273437 -3.273438,3.273438 -1.8031695,0 -3.2734375,-1.4702685 -3.2734375,-3.273438 0,-1.8031695 1.470268,-3.2734375 3.2734375,-3.2734375 z m 11.089844,0.089844 1.09375,1.09375 -14.2675784,14.2675778 -1.09375,-1.09375 z M 7.5,5.7734375 C 6.544151,5.7734375 5.7734375,6.544151 5.7734375,7.5 5.7734375,8.455849 6.544151,9.2265625 7.5,9.2265625 8.455849,9.2265625 9.2265625,8.455849 9.2265625,7.5 9.2265625,6.544151 8.455849,5.7734375 7.5,5.7734375 Z m 9,7.4531255 c 1.803169,0 3.273437,1.470268 3.273437,3.273437 0,1.803169 -1.470268,3.273437 -3.273437,3.273437 -1.803169,0 -3.273437,-1.470268 -3.273437,-3.273437 0,-1.803169 1.470268,-3.273437 3.273437,-3.273437 z m 0,1.546875 c -0.955849,0 -1.726562,0.770713 -1.726562,1.726562 -1e-6,0.955849 0.770713,1.726563 1.726562,1.726562 0.955849,0 1.726563,-0.770713 1.726562,-1.726562 0,-0.955849 -0.770713,-1.726562 -1.726562,-1.726562 z"})}),$c=e=>L(ie,{...e,children:[O("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),O("path",{className:"styled info",d:"m 20.624555,19 -4.244229,3.90401 V 20.301337 H 7.8918586 V 17.698663 H 16.380326 V 15.09599 L 20.624555,19"})]}),jc=e=>L(ie,{...e,children:[O("path",{d:"M 9.9417085,4 C 11.516778,4 12.79598,5.279205 12.79598,6.8542781 V 9.941723 c 0,1.575073 -1.279202,2.854277 -2.8542715,2.854277 -1.5750693,0 -2.8542713,-1.279204 -2.8542713,-2.854277 V 6.8542781 C 7.0874372,5.279205 8.3666392,4 9.9417085,4 Z M 17.145728,4 C 18.720797,4 20,5.279205 20,6.8542781 V 9.941723 c 0,1.575073 -1.279203,2.854277 -2.854272,2.854277 -1.575068,0 -2.85427,-1.279204 -2.85427,-2.854277 V 6.8542781 C 14.291458,5.279205 15.57066,4 17.145728,4 Z M 9.9417085,5.5919635 c -0.6984498,0 -1.2623115,0.563863 -1.2623115,1.2623146 V 9.941723 c 0,0.698451 0.5638617,1.262315 1.2623115,1.262315 0.6984495,0 1.2623125,-0.563864 1.2623125,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563863,-1.2623146 -1.2623125,-1.2623146 z m 7.2040195,0 c -0.698449,0 -1.26231,0.563863 -1.26231,1.2623146 V 9.941723 c 0,0.698451 0.56386,1.262315 1.26231,1.262315 0.698451,0 1.262313,-0.563864 1.262313,-1.262315 V 6.8542781 c 0,-0.6984516 -0.563862,-1.2623146 -1.262313,-1.2623146 z M 4.7959799,11.204038 c 0.4383097,0 0.7959799,0.357671 0.7959799,0.795982 0,0.43831 -0.3576702,0.79598 -0.7959799,0.79598 C 4.3576702,12.796 4,12.43833 4,12.00002 4,11.561709 4.3576702,11.204038 4.7959799,11.204038 Z"}),O("path",{className:"styled info",d:"m 3.2454426,19 4.2442288,3.90401 V 20.301337 H 15.978128 V 17.698663 H 7.4896714 V 15.09599 L 3.2454426,19"})]}),Wc=e=>O(ie,{...e,children:O("path",{d:"m 10.150391,3.1503906 h 2.699218 v 2.1582031 l 0.115235,0.027344 c 1.960079,0.4782967 2.961261,1.9200272 3.083984,3.5136719 H 14.138672 C 14.029741,7.5973962 13.290333,6.75 11.5,6.75 c -1.7437901,0 -2.8496094,0.7991882 -2.8496094,2 0,1.0564872 0.8200058,1.700825 3.1132814,2.296875 2.252935,0.585565 4.585937,1.521676 4.585937,4.253906 0,1.954738 -1.478101,3.040096 -3.376953,3.400391 l -0.123047,0.02344 v 2.125 H 10.150391 V 18.707031 L 10.03125,18.681641 C 8.2079362,18.292287 6.6711519,17.158849 6.4863281,15.150391 H 8.3867188 C 8.5553675,16.353343 9.4500331,17.25 11.5,17.25 c 2.278912,0 2.849609,-1.151198 2.849609,-1.939453 0,-1.024825 -0.565953,-1.944813 -3.115234,-2.556641 -2.7612489,-0.663095 -4.5839844,-1.778508 -4.5839844,-3.9843747 0,-1.8383456 1.4911552,-3.0518263 3.3808594,-3.4609376 L 10.150391,5.28125 Z"})}),Uc=e=>L(ie,{...e,children:[O("path",{d:"m 5.78125,3.0058594 c 1.9829152,0 3.5996094,1.6167226 3.5996094,3.5996093 0,0.5476133 -0.1339172,1.0628676 -0.3554688,1.5312501 L 8.9746094,8.2421875 21.597656,18.814453 c 0.332993,0.278536 0.378219,0.774352 0.09961,1.107422 -0.27842,0.332842 -0.775739,0.377926 -1.107422,0.09961 l -8.830078,-7.394531 -2.7871097,2.339844 0.050781,0.105469 c 0.2227064,0.468278 0.3574219,0.984409 0.3574219,1.533203 0,1.982884 -1.6166943,3.599609 -3.5996094,3.599609 -1.9829151,0 -3.5996094,-1.616725 -3.5996094,-3.599609 0,-1.982888 1.6166941,-3.59961 3.5996094,-3.59961 0.7809243,0 1.5000394,0.257488 2.0917969,0.683594 L 7.96875,13.757813 10.535156,11.603516 7.9707031,9.453125 7.875,9.5214844 C 7.2828198,9.9466952 6.5625337,10.205078 5.78125,10.205078 c -1.9829152,0 -3.5996094,-1.6167226 -3.5996094,-3.5996093 0,-1.9828867 1.6166942,-3.5996093 3.5996094,-3.5996093 z m 0,1.5742187 c -1.1183325,0 -2.0253906,0.9070725 -2.0253906,2.0253906 0,1.118318 0.9070581,2.0253907 2.0253906,2.0253907 1.1183326,0 2.0253906,-0.9070727 2.0253906,-2.0253907 0,-1.1183181 -0.907058,-2.0253906 -2.0253906,-2.0253906 z m 0,9.9999999 c -1.1183323,0 -2.0253906,0.907071 -2.0253906,2.025391 0,1.118318 0.9070581,2.02539 2.0253906,2.02539 1.1183326,0 2.0253906,-0.907072 2.0253906,-2.02539 0,-1.11832 -0.9070582,-2.025391 -2.0253906,-2.025391 z"}),O("path",{d:"m 21.087891,3.0039063 c 0.226287,-0.00155 0.452554,0.095728 0.609375,0.2832031 0.277334,0.3327963 0.231821,0.8312691 -0.09961,1.109375 l -6.90039,5.7753906 c -0.147833,0.123716 -0.326255,0.183594 -0.503907,0.183594 -0.223947,0 -0.448021,-0.09724 -0.603515,-0.283203 -0.278427,-0.3328528 -0.232198,-0.8299063 0.09961,-1.1093754 L 20.589844,3.1875 c 0.145984,-0.1221105 0.322682,-0.1823961 0.498047,-0.1835937 z"})]});!function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const qc={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},Zc={Horizontal:"horizontal",Vertical:"vertical"};function Gc(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Gc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Kc(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Gc(e))&&(o&&(o+=" "),o+=t);return o}var Xc=function(){},Yc="undefined"!=typeof window,Jc=Yc?U:V,Qc={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const ed=Yc&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(Qc),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return Jc(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Xc,Qc]},td=(e,t)=>{const n=H((...t)=>e?.(...t),t),o=F(null);o.current=n;const r=H((...e)=>o.current?.(...e),[]);if(o.current)return r},nd=e=>{const{style:t,orientation:n=Zc.Vertical,...o}=e,r=n===Zc.Vertical;return O("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},od=e=>{const{style:t,orientation:n=Zc.Vertical,...o}=e,r=n===Zc.Vertical;return O("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},rd=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:rd},Symbol.toStringTag,{value:"Module"}));const id=z(j((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:a=Zc.Vertical,onScrollOffset:s,onScroll:c,showCustomScrollButtons:d=!1,scrollButtonIncrement:u=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:p=120,createScrollStartButton:f=nd,createScrollEndButton:m=od,...g}=e,y=td(c,[c]),b=F(null),[w,{width:v,height:x}]=ed(),[S,{width:C,height:k}]=ed(),E=a===Zc.Vertical,_=E?"top":"left",T=E?"scrollTop":"scrollLeft",M=E?x:v,D=E?k:C,[R,I]=N(null);V(()=>{null!==R&&b.current&&b.current.scrollTo({behavior:"smooth",[_]:R})},[R,E]);const A=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:rd(e,o[_],r,!0,Math.max(0,e-u));return I(i),Math.max(0,i)},[]),P=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(D-M),l=t?i:rd(e,o[_],r,!1,Math.max(0,e+u));return I(l),Math.min(i,l)},[D,M]),z=F(null),B=H(e=>{z.current=n;const t=e.target[T];s(t,r,o),y?.(e)},[s,r,o,n]);V(()=>{const e=z.current;z.current=null,n!==e&&(b.current[T]=n)},[n,T]);const j=F(null),W=F(null),U=H(()=>{j.current&&(clearTimeout(j.current),j.current=null,W.current=null)},[]),q=H((e,t,n,o=h)=>{W.current=e,j.current=setTimeout(()=>{const t=n?A(W.current||e):P(W.current||e);t!==W.current?q(t,!1,n,p):U()},t?0:o)},[A,P,U]);V(()=>()=>U(),[U]);const Z=n,G=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(Z)<=0||0===Math.floor(D-M),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!0)};return f?.(e)},[d,a,Z,R,D,M]),K=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(D-M)<=Math.ceil(Z),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!1)};return m?.(e)},[d,a,Z,R,D,M]);return L("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:E?"column":"row",padding:"0",...i},className:Kc("_sheetxl-scrollbar_eblx4_6",l),...g,children:[G,O("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:E?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:O("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:E?"scroll":"hidden",overflowX:E?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:B,ref:b,children:O("div",{ref:S,style:{position:"absolute",height:E?o-r+(x??0):1,width:E?1:o-r+(v??0)},className:"scrollbar-viewport"})})}),K]})}));id.displayName="Scrollbar";let ld=Date.now,ad={},sd=1;const cd=e=>{let t=null!==ad[e];return t&&(ad[e]=null),t},dd=(e,t,n,o=0,r)=>{let i=ld(),l=i,a=0,s=0,c=0,d=sd++;if(d%20==0){const e={};for(let t in ad)e[t]=!0;ad=e}const u=function(h){let p=!0!==h,f=ld(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!ad[d]||!m)return ad[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(p){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,y=!1;try{y=e(g,f,p)}catch(e){y=!1}!1!==y&&1!==a||!p?p&&(l=f,requestAnimationFrame(u)):(ad[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return ad[d]=!0,requestAnimationFrame(u),d},ud=function(e){return Math.pow(e-1,3)+1},hd=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class pd{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(e,t,n,o){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}}getPoint(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(cd(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,e,t)}zoomBy(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(cd(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)}scrollBy(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(e,t){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(cd(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(cd(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]}doTouchMove(e,t,n=1){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);let i=this.__positions;if(this.__isDragging){let e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){let t=this.__positions,n=t.length-1,o=n;for(let e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&this.__startDeceleration(e)}else this.options.scrollingComplete?.()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete?.();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}}__publish(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(cd(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),h=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=dd(d,u,h,this.options.animationDuration,r?ud:hd)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=dd(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}}var fd="undefined"!=typeof window?window:{screen:{},navigator:{}},md=(fd.matchMedia||function(){return{matches:!1}}).bind(fd),gd=!1,yd={get passive(){return gd=!0}},bd=function(){};fd.addEventListener&&fd.addEventListener("p",bd,yd),fd.removeEventListener&&fd.removeEventListener("p",bd,!1);var wd=gd,vd="PointerEvent"in fd,xd="ontouchstart"in fd,Sd=xd||"TouchEvent"in fd&&md("(any-pointer: coarse)").matches,Cd=(fd.navigator.maxTouchPoints||0)>0||Sd,kd=fd.navigator.userAgent||"",Ed=md("(pointer: coarse)").matches&&/iPad|Macintosh/.test(kd)&&Math.min(fd.screen.width||0,fd.screen.height||0)>=768,_d=(md("(pointer: coarse)").matches||!md("(pointer: fine)").matches&&xd)&&!/Windows.*Firefox/.test(kd),Td=md("(any-pointer: fine)").matches||md("(any-hover: hover)").matches||Ed||!xd,Md=!Cd||!Td&&_d?Cd?"touchOnly":"mouseOnly":"hybrid",Dd="mouseOnly"===Md?"mouse":"touchOnly"===Md||_d?"touch":"mouse";const Rd=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Md,primaryInput:Dd,supportsPassiveEvents:wd,supportsPointerEvents:vd,supportsTouchEvents:Sd},Symbol.toStringTag,{value:"Module"})),Od=new Set(["INPUT","TEXTAREA","SELECT"]),Ld={};function Id(){return Rd}const Ad=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Ld,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:Id,focusableNodeNames:Od,toPrettyKeyCode:e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":il.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),Pd=[];function zd(e,t,n=Pd){const o=F(null);return W(e,()=>{if(!o.current)return;const e=o.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const r=Object.keys(n),i=r.length;for(let t=0;t<i;t++){const o=r[t],i=n[o];Object.defineProperty(e,o,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},n),o}const Fd=e=>O(id,{...e}),Nd=({width:e,height:t})=>O("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Vd=z(j((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:a=Nd,createHorizontalScrollbar:s=Fd,createVerticalScrollbar:c=Fd,style:d,touchElement:u,disableTouch:h,...p}=e,f=td(r,[r]),m=zd(t,()=>({isScrollPane:()=>!0}),[]),g=F(null);V(()=>{g.current&&(g.current.__scrollTop===o?.top&&g.current.__scrollLeft===o?.left||g.current.__isDecelerating||g.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,u]);const y=H((e,t)=>{f?.({left:e,top:t})},[]),b=H(e=>{g.current?.doTouchStart(e.touches,e.timeStamp)},[]),w=H(e=>{e.preventDefault(),g.current?.doTouchMove(e.touches,e.timeStamp)},[]),v=H(e=>{g.current?.doTouchEnd(e.timeStamp)},[]),x=H(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{g.current.setDimensions(e,t,n,o)},[]);V(()=>{const e=u??m.current;if(!h&&Id().supportsTouchEvents&&e&&o){if(!g.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};g.current=new pd(y,e)}Id().supportsTouchEvents&&(e.addEventListener("touchstart",b),e.addEventListener("touchend",v),e.addEventListener("touchmove",w)),x({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{e?.removeEventListener("touchstart",b),e?.removeEventListener("touchend",v),e?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,u]);const[S,{width:C}]=ed(),[k,{height:E}]=ed(),_=$(()=>{const e=c({orientation:Zc.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:e=>{f?.({top:e})}});return O("div",{style:{display:"flex",flex:"0"},ref:S,children:e})},[c,o?.top,o?.height,o?.totalHeight]),T=$(()=>{const e=s({orientation:Zc.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:e=>f?.({left:e})});return L("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${C}px)`},children:O("div",{ref:k,className:"sizer",children:e})}),l?a({width:C,height:E}):O(I,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,a,C,E]);return O("div",{style:{position:"relative",display:"flex",minWidth:l?`${C}px`:void 0,minHeight:i?`${E}px`:void 0,...d},...p,ref:m,children:L("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[L("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?_:O(I,{})]}),i?T:O(I,{})]})})}));Vd.displayName="ScrollPane";const Hd=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Bd=0;function $d(){return V(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return Bd++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),Bd--,Bd<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),Bd=0)}},[]),{getPortalContainer:Hd}}const jd=100,Wd=100,Ud=1e6,qd=100,Zd=50,Gd=z(j((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=jd,endScrollIncrement:a=Wd,style:s=Ld,onMouseDown:c,onScrollOffset:d,onScroll:u,scaleLimit:h=Ud,scaleFactor:p=qd,precisionFactor:f=Zd,...m}=e;u&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const g=td(c,[c]),y=()=>({offset:n,totalSize:0===h?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,w]=N(y),v=0!==h&&b.totalSize>h?p:1,x=v/f,S=Math.ceil(b.totalSize/v),C=Math.ceil(b.offset/v),k=Math.ceil(o/v),E=H(e=>{},[]),[_,T]=N(!1),M=F(null);U(()=>{if(!_){M.current={propTotalSize:r,propViewportSize:o,propOffset:n};const e=y();w(e)}},[r,o,n,_,i,l,a]);const D=td((e,t,i)=>{const l=M.current;M.current=null,l&&l.propTotalSize===r&&l.propViewportSize===o&&l.propOffset===n||(Math.abs(e-C)<x&&(e=C),d?.(e*v,C,k))},[d,v,x,C,k]),R=H(e=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",R),T(!1)},[]),L=H(e=>{g?.(e),T(!0),document.addEventListener("mousemove",E,{passive:!0}),document.addEventListener("mouseup",R,{passive:!0})},[E,R]);return O(id,{ref:t,style:{...s},...m,offset:C,totalSize:S,viewportSize:k,onMouseDown:L,onScrollOffset:D})}));function Kd(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}Gd.displayName="VirtualScrollbar";var Xd=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=Kd(o,t),r="function"==typeof e;n.push(r?e:()=>Kd(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)Kd(n,t)}};z(j((e,t)=>{const{refFocusStart:n,...o}=e,r=F(null),i=H(()=>{if(n)return void n?.current?.focus();const e=r.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==r.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[n]);return O("div",{tabIndex:0,ref:Xd([r,t]),onFocus:i,...o})})),z(j((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:a="grey",...s}=e,[c,{width:d,height:u}]=ed(),h=F(null),p=(e,t=0)=>{const n=e/2,o=u-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],h=u===c?a[1]:a[e+1];if(h&&d&&d.length>2&&"L"===u[0]&&h.length>2&&"L"===h[0]){let e,a,c=l(d),p=l(u),f=l(h);n?(e=r(p,d.origPoint||c,t),a=r(p,h.origPoint||f,t)):(e=o(p,c,t),a=o(p,f,t)),i(u,e),u.origPoint=p,s.push(u);let m=r(e,p,.5),g=r(p,a,.5),y=["C",m.x,m.y,g.x,g.y,a.x,a.y];y.origPoint=p,s.push(y)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${i-.5} ${n} L ${i-.5} ${o} L ${2*i} ${o} L ${d-2*i} ${o} M ${d-2*i} ${o} L ${d-i} ${o} L ${d-i} ${n} L ${d} ${n}`,i)},f=$(()=>p(l),[d,u,i,l]),m=$(()=>{if(0===i)return;const e=i/2;return p(i)+`L ${d} 0 L 0 0 L 0 ${e}`},[f,i,l]),g=$(()=>({style:{clipPath:`path('${m}')`}}),[m]);return L("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:Xd([h,c,t]),children:[P.isValidElement(r)?P.cloneElement(r,g):O(I,{}),O("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:d,height:u,viewBox:`0 0 ${d} ${u}`,children:O("path",{d:f,stroke:a,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const Yd={},Jd=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:a,hitAreaProps:s=Yd,...c}=e,d="row"===o,{style:u,className:h,...p}=s;return O("div",{style:{...n,position:"relative"},...c,children:O("div",{className:Kc("hit-box",h),style:{left:(d?-r:0)+"px",width:`calc(100% + ${d?r+i:0}px)`,top:(d?0:-r)+"px",height:`calc(100% + ${d?0:r+i}px)`,position:"absolute",...u},onPointerDown:l?void 0:t,...p})},a)},Qd={},eu=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,tu=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,nu=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};z(j((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:a,minBefore:s,maxBefore:c,minAfter:d,maxAfter:u,children:h,className:p,style:f,disabled:m=!1,onDragStart:g,onDragResize:y,onDragFinish:b,resizerProps:w=Qd,paneProps:v=Qd,paneBeforeProps:x=Qd,paneAfterProps:S=Qd,createResizer:C=Jd}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const k=$(()=>P.isValidElement(o)&&P.isValidElement(n),[o,n]),E=$(()=>{let e=null;i&&("before"===i?e=0:"after"===i&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:nu(s,t),maxBefore:nu(c,t),minAfter:nu(d,t),maxAfter:nu(u,t)}},[s,c,d,u]),_=td(a,[a]),[T,M]=N(()=>nu(l,null===i));V(()=>{M(nu(l,null===i))},[l,i]);const[D,{width:R,height:I}]=ed(),[A,{width:z,height:H}]=ed(),B="row"===r?z:H,j="row"===r?R:I,W=$(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:tu(o.minBefore,!0),maxBefore:tu(o.maxBefore,!0),minAfter:tu(o.minAfter),maxAfter:tu(o.maxAfter)};let l=eu(e,t,1!==o.fixedPaneOffset),a=t-n,s=eu(o.minBefore,a,!0)??0,c=eu(o.maxBefore,a,!0)??a,d=0,u=0,h=0,p=a;d=(eu(o.maxAfter,t,!1)??n)-n,u=eu(o.minAfter,t,!1)??t,h=Math.max(s,d),p=Math.min(c,u),l=Math.max(h,Math.min(l,p)),u=Math.min(a-l,eu(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,eu(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(T,j,B,E),[E,T,j,B,r]),[U,q]=N(!1),Z=td(g,[g]),G=td(y,[y]),K=td(b,[b]),X=F(null),Y=F(null),J=F(null),{style:Q,className:ee,...te}=v,ne={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:oe,style:re,...ie}=x,{className:le,style:ae,...se}=S,ce={flex:"1 1 100%",width:"100%",...f,flexDirection:r,display:"flex"},{className:de,style:ue,onPointerDown:he,...pe}=w,fe=td(e=>{const t=nu(e,null===i);M(t)},[i]),me=td(e=>{if(m||!U)return;const t=be.current?.getBoundingClientRect();let n=0;n="row"===r?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(j,n)),1===E.fixedPaneOffset&&(n=j-n),l&&T.pixels===n||M({pixels:n,percent:null}),G?.(n),e.stopPropagation(),e.preventDefault()},[E,r,m,U,T,j]),ge=td(e=>{if(document.removeEventListener("pointermove",me),document.removeEventListener("touchmove",me),document.removeEventListener("pointerup",ge),U&&(q(!1),T)){if(K(T.pixels),!nu(l,null===i)||T.pixels!==l){const e={...T};null===e.percent&&(e.percent=e.pixels/j*100),_(e)}e.stopPropagation(),e.preventDefault()}},[T,U,l,i,j]),ye=td(e=>{he?.(e),e.defaultPrevented||m||U||(q(!0),Z(),document.addEventListener("pointermove",me,{passive:!1}),document.addEventListener("touchmove",me,{passive:!1}),document.addEventListener("pointerup",ge,{passive:!1}))},[he]),be=zd(t,()=>({setPosition:fe,isSplitPane:()=>!0}),[]),we=$(()=>k?C?.({key:"resizer",ref:Xd([A,Y]),className:Kc("resizer",de),onPointerDownCapture:ye,style:{cursor:m?void 0:"row"===r?"ew-resize":"ns-resize",minWidth:"row"===r?"2px":void 0,minHeight:"row"!==r?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ue},splitDirection:r,disabled:m,...pe}):null,[k,de,pe,r,ue,m]),ve="row"===r?"Width":"Height",xe={...ne,...re,flex:0===E.fixedPaneOffset&&null!==W?.pixels[0]?`0 0 ${Math.round(W?.pixels[0])}px`:`1 1 ${Math.round(W?.percents[0]??100)}%`,[`min${ve}`]:W?.minBefore,[`max${ve}`]:o?W?.maxBefore:"100%"},Se={...ne,...ae,flex:1===E.fixedPaneOffset&&null!==W?.pixels[1]?`0 0 ${Math.round(W?.pixels[1])}px`:`1 1 ${Math.round(W?.percents[1]??100)}%`,[`min${ve}`]:W?.minAfter,[`max${ve}`]:n?W?.maxAfter:"100%"},Ce=$(()=>n?O("div",{ref:X,className:Kc("before",ee,oe),style:xe,...te,...ie,children:n},"before"):null,[n,v,x,E,W]),ke=$(()=>o?O("div",{ref:J,className:Kc("after",ee,le),style:Se,...te,...se,children:o},"after"):null,[o,v,S,E,W]);return L("div",{ref:Xd([D,be]),className:Kc("splitPane","row"===r?"vertical":"horizontal",{dragging:U},p),style:ce,children:[Ce,we,ke]})}));const ou=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=F(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return U(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},ru=e=>{console&&console.warn&&console.warn(e)},iu="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let lu=1,au=!1,su=!1;const cu=[],du=[],uu=()=>{du.forEach(e=>e())},hu=({automaticContainerInternalUseOnly:e})=>{const[t,n]=N([]),o=F([]);return o.current=t,e||!1!==au||(su=!0),V(()=>{let t=!0;function r(){if(t)return du[0]!==r?(e||!0!==au||ru("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(e=>[])):void n([...cu])}return du.push(r),uu(),()=>{t=!1,o.current?.length>0&&ru("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),du.splice(du.indexOf(r),1),uu()}},[e]),O(I,{children:t.map(({hook:e,key:t})=>Z(ou,{...e,key:t}))})},pu=(e,t,n={})=>{let o,r,i=!1,l=!1,a=[],{unmountIfNoConsumers:s=!1}=n;const c=e=>{r=e,ct(()=>a.forEach(t=>t(e)))},d=()=>(l||(r="function"==typeof e?e():e,l=!0),r);return()=>{const[n,l]=N(d);return V(()=>(i||(i=!0,o=(e=>{const t=lu++;return cu.push({hook:e,key:t}),0===du.length&&!1===su&&(au=!0,(e=>{if(iu.document&&iu.document.createElement){const t=iu.document.createElement("div");at(t).render(O(e,{automaticContainerInternalUseOnly:!0}))}else ru("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(hu)),uu(),()=>{cu.splice(cu.findIndex(e=>e.key===t),1),uu()}})({initValue:e,useHookBody:t,applyStateChange:c})),a.push(l),r!==n&&l(r),()=>{a.splice(a.indexOf(l),1),0===a.length&&s&&(o(),i=!1)}),[]),n}};function fu(e,t=null){const n=F(t);n.current=t;const[o,r]=B(e=>e+1,0),i=$(()=>Array.isArray(e)?e:[e],[e]);return V(()=>{if(!i||0===i.length)return;const e=(e,t)=>{n.current?.onChange?.(t),r()};let o=null;t&&(o={onExecute(e,t){n.current?.onExecute?.(e,t)},onError(e,t,o){n.current?.onError?.(e,t,o)}});const l=new Set;for(let n=0;n<i.length;n++)l.add(i[n]?.addPropertyListener(il.debounce(e,0),!0)),t&&l.add(i[n]?.addExecuteListener(o));return()=>{l.forEach(e=>{e?.()})}},[e]),o}pu(null,()=>{const[e,t]=N(null);return e}),il.getOS()===il.OSType.MacOS||(il.getOS(),il.OSType.IOS),il.getOS()===il.OSType.MacOS||(il.getOS(),il.OSType.IOS);const mu=(e,t)=>{const n=[];if(t)for(let o=0;o<t.length;o++){const r=t[o],i=r?e?.getCommand(r):null;n.push(i)}return n};function gu(e,t=null,n=null,o){const r=F(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=N(mu(e,t)),a=o?[...o,e]:[e];return V(()=>{const n={onGroupChange:()=>{const n=mu(e,t);l(n),r.current?.onChange?.(this)}};let o;t&&t.length>0&&(o={keys:t},n.onCommandChange=(n,o)=>{r.current?.onChange?.(e),l(mu(e,t))});const i=e?.addListener(n,o),a=mu(e,t);return l(a),r.current?.onChange&&r.current?.onChange(e),()=>{i?.()}},a),i}const yu={Toolbar:"toolbar",Menuitem:"menuitem"};pu({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Tl.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=N(Tl.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:F(null),refNativeLastKey:F(null)}});let bu=!1,wu=0;var vu="undefined"!=typeof document?U:V;const xu=()=>"sheetxl-ui-"+wu++,Su=P["useId".toString()],Cu=null!=Su?Su:function(){const[e,t]=P.useState(()=>bu?xu():void 0);return vu(()=>{null==e&&t(xu())},[]),P.useEffect(()=>{bu||(bu=!0)},[]),e},ku=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+Cu().replaceAll(":","");V(()=>{if(!t)return;const e=`\n @keyframes ${r} {\n to {\n stroke-dashoffset: 0px;\n }\n }`,n=document.createElement("style");return n.appendChild(document.createTextNode(e)),document.head.appendChild(n),n.sheet.insertRule(e,0),()=>{document.head.removeChild(n)}},[t]);let i=$(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return O(ie,{...o,children:L("g",{children:[O("path",{d:"M 16,1 H 4 C 2.9,1 2,1.9 2,3 V 17 H 4 V 3 h 12 z"}),O("rect",{x:"7",y:"6",width:"13",height:"16",rx:"1.5",className:`styled ${n} stroked`,style:{fill:"none",strokeWidth:"2px",vectorEffect:"non-scaling-stroke",...i}})]})})},Eu=e=>O(ie,{...e,children:O("path",{d:"m 12.25,0.84375 c 1.221781,0 2.257109,0.7931648 2.652344,1.8847656 l 0.07226,0.1992188 h 4.566407 c 0.978211,0 1.78125,0.8030383 1.78125,1.78125 V 21.375 c 0,0.978211 -0.803039,1.78125 -1.78125,1.78125 H 4.9589844 c -0.9782117,0 -1.78125,-0.803039 -1.78125,-1.78125 V 4.7089844 c 0,-0.9782117 0.8030383,-1.78125 1.78125,-1.78125 H 9.5253906 L 9.5976563,2.7285156 C 9.9928911,1.6369148 11.028219,0.84375 12.25,0.84375 Z m 0,1.4785156 c -0.740184,0 -1.34375,0.603566 -1.34375,1.34375 0,0.740184 0.602868,1.3457031 1.34375,1.3457031 0.740882,0 1.34375,-0.6055191 1.34375,-1.3457031 0,-0.740184 -0.603566,-1.34375 -1.34375,-1.34375 z M 4.65625,4.40625 v 17.271484 h 15.1875 V 4.40625 h -2.6875 v 3.125 h -9.8125 v -3.125 z"})}),_u=e=>L(ie,{...e,children:[O("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.1777344 H 19.527344 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 7.5761719 L 7.4375,20.818359 7.2070312,21.736328 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),O("path",{className:"styled info",d:"m 11.739786,23.556948 0.902735,-3.568955 H 9.4304658 l 0.3149085,-1.259631 h 3.2120547 l 0.944723,-3.778895 H 10.27022 l 0.314907,-1.259632 h 3.631935 l 0.881741,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.799886 l 0.881743,-3.568954 h 1.238638 l -0.881743,3.568954 h 3.21206 l -0.314908,1.259632 h -3.21206 l -0.944722,3.778895 h 3.631936 l -0.314908,1.259631 h -3.631935 l -0.881743,3.568955 h -1.25963 l 0.902734,-3.568955 h -3.799887 l -0.881741,3.568955 z m 2.45628,-4.828586 h 3.799888 l 0.944723,-3.778895 H 15.14079 Z"})]}),Tu=e=>L(ie,{...e,children:[O("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 8.4257813 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 8.5722659 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),O("path",{className:"styled info",d:"m 21.482442,11.065857 v -0.7 c 0,-0.3850002 -0.315,-0.7000003 -0.7,-0.7000003 h -8.4 c -0.385,0 -0.7,0.3150001 -0.7,0.7000003 v 2.8 c 0,0.385 0.315,0.7 0.7,0.7 h 8.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -0.7 h 0.7 v 2.8 h -7 v 7.7 c 0,0.385 0.315,0.7 0.7,0.7 h 1.4 c 0.385,0 0.7,-0.315 0.7,-0.7 v -6.3 h 5.6 v -5.6 z"})]}),Mu=e=>L(ie,{...e,children:[O("path",{d:"m 12,0.26367188 c 1.184248,0 2.189274,0.76838252 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 v 7.050781 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 3.28125 v 1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),O("path",{className:"styled info",d:"m 16.272946,14.080613 c 0.08203,-0.104202 0.120059,-0.235524 0.187385,-0.348236 0.0679,-0.113283 0.02918,-0.133961 -0.08536,-0.133041 -0.452794,0.0038 -0.905675,-0.0019 -1.358469,0.0034 -0.120751,0.0015 -0.162109,-0.02505 -0.139019,-0.156938 0.100298,-0.5725 0.196692,-1.145676 0.342588,-1.708645 0.08629,-0.333412 0.178539,-0.666941 0.362824,-0.963823 0.183594,-0.296176 0.43944,-0.373059 0.754352,-0.2199 0.263212,0.127758 0.477353,0.318823 0.654059,0.550881 0.0772,0.101452 0.178882,0.181066 0.296646,0.113284 0.226792,-0.130401 0.425882,-0.289524 0.541354,-0.545854 0.06675,-0.148209 0.104202,-0.31444 0.02666,-0.466323 -0.107769,-0.2104774 -0.306882,-0.3572068 -0.525617,-0.4380898 -0.363382,-0.1341901 -0.755969,-0.1025941 -1.116263,0.02401 -0.415677,0.1461414 -0.814795,0.3875308 -1.160971,0.6583238 -0.127759,0.09995 -0.251837,0.205768 -0.368794,0.318589 -0.430028,0.414529 -0.750116,0.907852 -0.975411,1.460146 -0.160041,0.392705 -0.287914,0.793205 -0.352264,1.212999 -0.01172,0.0772 -0.03677,0.146371 -0.122011,0.159582 -0.10524,0.01632 -0.229435,3.44e-4 -0.336294,6.89e-4 -0.239315,6.87e-4 -0.487235,-0.05056 -0.664412,0.156822 -0.07893,0.09225 -0.162108,0.199795 -0.229549,0.300882 -0.06675,0.100298 -0.06158,0.198301 0.05619,0.242762 0.12925,0.0486 0.299058,0.01735 0.431411,0.01299 0.174747,-0.0056 0.349499,0.0034 0.524235,-4.58e-4 0.120288,-0.0026 0.159468,0.02011 0.136374,0.155791 -0.02206,0.131549 -0.04791,0.257467 -0.06722,0.387764 -0.06606,0.447853 -0.141199,0.894529 -0.216567,1.340999 -0.10489,0.619264 -0.208409,1.239087 -0.321705,1.85741 -0.108224,0.590647 -0.184975,1.186706 -0.318707,1.773558 -0.104435,0.459205 -0.171185,0.927264 -0.282284,1.384646 -0.09317,0.383381 -0.17291,0.775381 -0.385441,1.120293 -0.154641,0.251035 -0.380618,0.357088 -0.664411,0.290097 -0.256665,-0.06112 -0.498618,-0.157629 -0.707618,-0.327794 -0.137982,-0.112479 -0.2958534,-0.196347 -0.4645002,-0.09949 -0.1586624,0.09111 -0.2727473,0.260112 -0.3604113,0.416235 -0.281367,0.501823 0.1777349,0.978852 0.6731465,1.05447 0.332707,0.05056 0.66097,-0.06881 0.953353,-0.216912 0.390382,-0.197841 0.727705,-0.475999 1.010676,-0.804116 0.231961,-0.268957 0.474852,-0.525383 0.668087,-0.824794 0.128791,-0.199794 0.246897,-0.406353 0.354441,-0.618 0.381323,-0.751264 0.618323,-1.561911 0.813999,-2.377998 0.0941,-0.39247 0.196463,-0.782499 0.283318,-1.176823 0.11822,-0.53641 0.215647,-1.08191 0.304235,-1.623969 0.04401,-0.268955 0.08099,-0.537441 0.137179,-0.804234 0.0463,-0.220016 0.08468,-0.447941 0.114321,-0.670736 0.03459,-0.259075 0.198988,-0.242991 0.423146,-0.267693 0.189109,-0.02091 0.379471,-0.03068 0.569264,-0.04469 0.15223,-0.01107 0.326971,0.0027 0.470235,-0.05813 0.05113,-0.02172 0.09731,-0.05342 0.133732,-0.09995 z"}),O("path",{className:"styled info",d:"m 23.12147,13.86826 c -0.03102,-0.103631 -0.08709,-0.196806 -0.160041,-0.276538 -0.06675,-0.07285 -0.160962,-0.1682 -0.250688,-0.211167 -0.2909,-0.139363 -0.683352,-0.01713 -0.935205,0.153494 -0.133962,0.09088 -0.253446,0.204617 -0.373265,0.313411 -0.118797,0.107991 -0.233915,0.219439 -0.3395,0.340412 -0.219438,0.251494 -0.417853,0.521146 -0.608234,0.794911 -0.0926,0.133388 -0.353294,0.618793 -0.432912,0.571 -0.08387,-0.05021 -0.188764,-0.534588 -0.228629,-0.670853 -0.05538,-0.189224 -0.09225,-0.384882 -0.180492,-0.562853 C 19.491985,14.076971 19.416617,13.81146 19.247388,13.592371 19.060461,13.350069 18.845859,13.28046 18.5538,13.36891 c -0.28688,0.08686 -0.518382,0.267464 -0.745411,0.450471 -0.332823,0.267923 -0.580883,0.611911 -0.830293,0.953822 -0.186465,0.255974 -0.188074,0.254827 0.02964,0.487471 0.136374,0.146141 0.133962,0.144299 0.257124,-0.0056 0.175896,-0.214729 0.346735,-0.435647 0.582941,-0.590176 0.172564,-0.113167 0.276078,-0.09041 0.382822,0.08766 0.05239,0.08766 0.09696,0.181871 0.132239,0.278032 0.221738,0.603853 0.389823,1.224735 0.589146,1.835352 0.02516,0.07778 -0.0075,0.128103 -0.04434,0.183938 -0.235524,0.355941 -0.475177,0.709559 -0.741853,1.042735 -0.211625,0.26505 -0.424969,0.531029 -0.70944,0.725058 -0.124082,0.08513 -0.2693,0.143841 -0.420029,0.103632 -0.154526,-0.04148 -0.246898,-0.181526 -0.388089,-0.246783 -0.004,-0.002 -0.0084,-0.0035 -0.01252,-0.0052 -0.06584,-0.02688 -0.164982,-0.02574 -0.233227,-0.01038 -0.29997,0.06767 -0.460823,0.405676 -0.52194,0.676235 -0.05537,0.245521 -8.03e-4,0.514029 0.172564,0.701852 0.151194,0.163718 0.378,0.232076 0.595588,0.235409 0.124886,0.0019 0.264133,-0.03079 0.380176,-0.0756 0.442794,-0.173138 0.780559,-0.586059 1.060206,-0.952323 0.188535,-0.247358 0.363617,-0.504705 0.548029,-0.755293 0.152344,-0.207147 0.453117,-0.824205 0.538941,-0.826176 0.05193,-0.0012 0.06561,0.122703 0.07548,0.159238 0.02205,0.08168 0.04401,0.163374 0.06755,0.2446 0.110637,0.382117 0.227137,0.763912 0.346852,1.143028 0.07985,0.253792 0.208641,0.517 0.370412,0.728853 0.04906,0.06445 0.110521,0.126035 0.173711,0.176241 0.245288,0.196118 0.554117,0.181297 0.836411,0.08134 0.126494,-0.04469 0.244371,-0.107769 0.356264,-0.181985 0.51653,-0.343411 0.885559,-0.821911 1.234264,-1.322734 0.08215,-0.118106 0.071,-0.184167 -0.02274,-0.282744 -0.242646,-0.255171 -0.235867,-0.257467 -0.465764,0.01321 -0.17245,0.202436 -0.348235,0.404647 -0.580882,0.540912 -0.162452,0.09547 -0.273094,0.06824 -0.391529,-0.07824 -0.09812,-0.121209 -0.162682,-0.262065 -0.218864,-0.406147 -0.231044,-0.595235 -0.38903,-1.214499 -0.584676,-1.821469 -0.143612,-0.445323 -0.147632,-0.449441 0.138326,-0.824794 0.295617,-0.388205 0.578471,-0.790558 0.965881,-1.09741 0.284812,-0.225644 0.483471,-0.213121 0.745736,0.03906 0.05205,0.05009 0.137065,0.0918 0.209329,0.09753 0.244255,0.01964 0.456558,-0.199793 0.581911,-0.382588 0.124312,-0.18049 0.171414,-0.408764 0.107769,-0.620734 z"})]}),Du=e=>L(ie,{...e,children:[O("path",{d:"m 12,0.26367188 c 1.184248,0 2.189276,0.76838322 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 9.3613281 L 19.263672,7.8886719 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 h 4.1523438 l 1.4726561,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z m 8.736328,13.2031249 v 0.04687 H 20.6875 Z"}),O("path",{className:"styled info",d:"M 18.125,20.675 H 15.65 v -6.6 H 14 v 6.6 h -2.475 l 3.3,3.3 z M 23.9,14.9 20.6,11.6 v 2.475 h -6.598389 v 1.65 H 20.6 V 18.2 Z"})]}),Ru=e=>L(ie,{...e,children:[O("path",{d:"m 12,0.26367188 c 1.184248,0 2.189275,0.76838292 2.572266,1.82617192 l 0.0625,0.1738281 H 19 c 0.953433,0 1.736328,0.7828955 1.736328,1.7363281 V 14.525391 H 20 c -0.198708,0 -0.390751,0.01635 -0.576172,0.03906 H 19.263672 V 3.7363281 h -2.527344 v 3 H 7.2636719 v -3 H 4.7363281 V 20.263672 H 8.34375 c 0.105427,0.52739 0.2985439,1.023695 0.5625,1.472656 H 5 C 4.0465674,21.736328 3.2636719,20.953433 3.2636719,20 V 4 C 3.2636719,3.0465674 4.0465674,2.2636719 5,2.2636719 h 4.3652344 l 0.0625,-0.1738281 C 9.8107272,1.0320541 10.815752,0.26367187 12,0.26367188 Z m 0,1.47265622 c -0.696562,0 -1.263672,0.5671095 -1.263672,1.2636719 0,0.6965624 0.56711,1.2636719 1.263672,1.2636719 0.696562,0 1.263672,-0.5671095 1.263672,-1.2636719 0,-0.6965624 -0.56711,-1.2636719 -1.263672,-1.2636719 z"}),O("path",{className:"styled info",d:"m 10.894531,19.75 c 0,-1.23975 1.00775,-2.2475 2.2475,-2.2475 h 2.9 V 16.125 h -2.9 c -2.001,0 -3.6249998,1.624 -3.6249998,3.625 0,2.001 1.6239998,3.625 3.6249998,3.625 h 2.9 v -1.3775 h -2.9 c -1.23975,0 -2.2475,-1.00775 -2.2475,-2.2475 z m 2.9725,0.725 h 5.8 v -1.45 h -5.8 z m 6.525,-4.35 h -2.9 v 1.3775 h 2.9 c 1.23975,0 2.2475,1.00775 2.2475,2.2475 0,1.23975 -1.00775,2.2475 -2.2475,2.2475 h -2.9 v 1.3775 h 2.9 c 2.001,0 3.625,-1.624 3.625,-3.625 0,-2.001 -1.624,-3.625 -3.625,-3.625 z"})]}),Ou=e=>L(ie,{...e,children:[O("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z"}),O("path",{className:"styled info",d:"m 13.683923,4.0063431 c 0,0.9359586 -0.758778,1.6947369 -1.694737,1.6947369 -0.935959,0 -1.694737,-0.7587783 -1.694737,-1.6947369 0,-0.9359586 0.758778,-1.6947369 1.694737,-1.6947369 0.935959,0 1.694737,0.7587783 1.694737,1.6947369 M 11.989186,0.61686939 c -3.3684211,0 -5.0000001,3.38947371 -5.0000001,3.38947371 0,0 1.621015,3.3894737 5.0000001,3.3894737 3.378985,0 5,-3.3894737 5,-3.3894737 0,0 -1.631598,-3.38947371 -5,-3.38947371 z m 0,6.01052641 c -1.45265,0 -2.6210527,-1.1789286 -2.6210527,-2.6210527 0,-1.4526504 1.1789287,-2.6210526 2.6210527,-2.6210526 1.442086,0 2.621052,1.1789286 2.621052,2.6210526 0,1.4526504 -1.168421,2.6210527 -2.621052,2.6210527 z"})]}),Lu=e=>L(ie,{...e,children:[O("path",{d:"M 14.810547,3.015625 C 12.885069,3.0518161 10.956121,3.021032 9.0292969,3.03125 8.3433956,3.1343875 8.6152376,3.9661078 8.5664062,4.4670215 8.5699112,5.1357719 8.5542361,5.8058913 8.5859372,6.4726562 10.776053,5.6771754 13.22001,5.608155 15.453125,6.2714844 15.459619,5.3070102 15.449086,4.3390862 15.420589,3.3804146 15.336948,3.1307215 15.056647,3.011539 14.810547,3.015625 Z M 8.5839844,15.521484 c -0.032496,2.708187 -0.020058,5.420929 -0.00781,8.13086 0.6176166,0.774595 1.9260036,0.185956 2.8240216,0.370414 1.248725,-0.01851 2.51169,0.04635 3.751527,-0.04064 0.554855,-0.529107 0.169024,-1.453013 0.278022,-2.157801 -0.0036,-2.03393 0.0211,-4.067779 0.01948,-6.101694 -2.232675,0.661793 -4.675292,0.591069 -6.8652406,-0.201138 z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),O("path",{className:"styled info",d:"m 15.770959,7.0009902 c -0.126716,-0.127416 -0.331342,-0.127416 -0.458057,0 L 8.1789151,14.174303 c -0.1267182,0.127415 -0.1267182,0.33317 0,0.460581 0.068254,0.06863 0.1461605,0.09802 0.2339177,0.09802 0.087699,0 0.1656718,-0.02939 0.2339192,-0.09802 L 15.78074,7.4615714 c 0.116929,-0.1176426 0.116929,-0.333239 -0.0098,-0.4605812 z m -3.716974,5.4945338 c 0.931273,0 1.693141,-0.761954 1.693141,-1.69314 0,-0.217653 -0.03627,-0.42334 -0.120976,-0.616782 l -2.189046,2.189045 c 0.181464,0.07255 0.399194,0.120892 0.616846,0.120892 z M 10.360802,10.80234 c 0,0.217652 0.03627,0.43539 0.120976,0.616781 L 12.670823,9.2300774 C 12.477297,9.1575285 12.271714,9.1091013 12.054042,9.1091013 11.122682,9.109187 10.360816,9.871055 10.360816,10.802327 Z M 9.997978,11.90291 C 9.8165985,11.576345 9.7198318,11.201447 9.7198318,10.802319 c 0,-1.2941195 1.0400992,-2.3341742 2.3341762,-2.3341742 0.399108,0 0.774026,0.096764 1.112662,0.2781441 L 13.964907,7.9480523 C 13.384408,7.7787386 12.755491,7.6699084 12.054028,7.6699084 c -3.1686715,0 -5.1037381,2.1769486 -5.6721638,2.9025986 -0.1088279,0.133041 -0.1088279,0.326565 0,0.459601 0.3265634,0.43539 1.1489237,1.366661 2.4188334,2.068145 z m 7.728171,-1.330359 C 17.399587,10.137161 16.577226,9.2058888 15.307317,8.5044061 L 14.12211,9.689613 c 0.181378,0.326562 0.278145,0.70146 0.278145,1.112662 0,1.294119 -1.052172,2.334175 -2.334175,2.334175 -0.399108,0 -0.774028,-0.09676 -1.112662,-0.278143 l -0.79824,0.798235 c 0.5805,0.169314 1.209417,0.278144 1.91088,0.278144 3.168672,0 5.103738,-2.176949 5.672163,-2.902599 0.08462,-0.132955 0.08462,-0.326479 -0.01215,-0.459515 z"})]}),Iu=e=>L(ie,{...e,children:[O("path",{d:"m 15.044727,18.095388 h 4.01181 c 0.237383,0 0.429823,0.247831 0.429823,0.44852 v 4.186244 c 0,0.247831 -0.192553,0.448516 -0.429823,0.448516 h -4.01181 c -0.237396,0 -0.429834,-0.247831 -0.429834,-0.448516 v -4.186244 c 0,-0.247831 0.192562,-0.44852 0.429834,-0.44852 z m -7.3072108,0 h 4.0118108 c 0.237385,0 0.429822,0.247831 0.429822,0.44852 v 4.186244 c 0,0.247831 -0.192551,0.448516 -0.429822,0.448516 H 7.7375162 c -0.2373949,0 -0.4298325,-0.247831 -0.4298325,-0.448516 v -4.186244 c 0,-0.247831 0.1925619,-0.44852 0.4298325,-0.44852 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.247831 0.4298325,0.44852 v 4.186244 c 0,0.247831 -0.1925618,0.448516 -0.4298325,0.448516 H 0.42983194 C 0.19244752,23.178668 -5.45e-7,22.930837 -5.45e-7,22.730152 v -4.186244 c 0,-0.247831 0.192561825,-0.44852 0.429832485,-0.44852 z M 23.570166,8.9807146 H 8.3107884 C 8.1969692,8.9805809 8.0874296,9.0278176 8.0067478,9.1120542 7.9260977,9.1960959 7.8808422,9.3101394 7.8808422,9.4292345 v 5.7559505 c 0,0.24783 0.1925618,0.448514 0.4298325,0.448514 H 23.570053 c 0.114211,0 0.223359,-0.0471 0.304042,-0.131338 0.08065,-0.08404 0.125904,-0.198045 0.125904,-0.317139 V 9.4292703 c 0,-0.1190951 -0.04518,-0.2331059 -0.125904,-0.3171814 -0.08065,-0.084231 -0.189831,-0.1315417 -0.304042,-0.1313374 z M 12.752474,14.06415 H 9.385189 v -3.51349 h 3.367285 z m 4.871619,0 h -3.366921 v -3.51349 h 3.367087 z m 4.871591,0 h -3.367077 v -3.513491 h 3.367077 z M 15.044727,1.4355069 h 4.011809 c 0.237384,0 0.429824,0.2477898 0.429824,0.4485157 v 4.1862447 c 0,0.2478309 -0.192554,0.4485146 -0.429824,0.4485146 h -4.011809 c -0.237396,0 -0.429834,-0.2477888 -0.429834,-0.4485146 V 1.8840226 c 0,-0.2478309 0.192562,-0.4485157 0.429834,-0.4485157 z m -7.3072108,0 h 4.0118098 c 0.237385,0 0.429822,0.2477898 0.429822,0.4485157 v 4.1862447 c 0,0.2478309 -0.192551,0.4485146 -0.429822,0.4485146 H 7.7375162 c -0.2373949,0 -0.4298325,-0.2477888 -0.4298325,-0.4485146 V 1.8840226 c 0,-0.2478309 0.1925619,-0.4485157 0.4298325,-0.4485157 z m -7.30768426,0 H 4.4416429 c 0.2373845,0 0.4298325,0.2477898 0.4298325,0.4485157 v 4.1862447 c 0,0.2478309 -0.1925618,0.4485146 -0.4298325,0.4485146 H 0.42983194 C 0.19244752,6.5187819 -5.45e-7,6.2709931 -5.45e-7,6.0702673 V 1.8840226 c 0,-0.2478309 0.192561825,-0.4485157 0.429832485,-0.4485157 z"}),O("path",{className:"styled info",d:"m 5.0953063,12.037504 c 0,0.70197 -0.5690836,1.271053 -1.2710528,1.271053 -0.7019694,0 -1.2710529,-0.569083 -1.2710529,-1.271053 0,-0.701969 0.5690835,-1.271051 1.2710529,-1.271051 0.7019692,0 1.2710528,0.569082 1.2710528,1.271051 M 3.8242535,9.4954 c -2.5263161,0 -3.7500004,2.542104 -3.7500004,2.542104 0,0 1.2157613,2.542106 3.7500004,2.542106 2.5342388,0 3.7499996,-2.542106 3.7499996,-2.542106 0,0 -1.223698,-2.542104 -3.7499996,-2.542104 z m 0,4.507893 c -1.0894876,0 -1.9657898,-0.884195 -1.9657898,-1.965789 0,-1.089487 0.8841967,-1.965789 1.9657898,-1.965789 1.0815645,0 1.9657891,0.884196 1.9657891,1.965789 0,1.089488 -0.8763159,1.965789 -1.9657891,1.965789 z"})]}),Au=e=>L(ie,{...e,children:[O("path",{d:"m 2.9717046,9.233336 c 0.022866,1.925478 0.00341,3.854426 0.00988,5.78125 0.065161,0.685901 0.5906617,0.414059 0.9071511,0.46289 0.4225321,-0.0035 0.8459298,0.01217 1.2672078,-0.01953 C 4.6533351,13.267831 4.6097266,10.823874 5.0288336,8.590759 4.4194561,8.584259 3.8078987,8.594759 3.202187,8.623299 3.044425,8.706939 2.969123,8.987241 2.9717046,9.233341 Z m 13.9134934,6.226562 c 2.262009,0.0325 4.527823,0.02006 6.791289,0.0078 0.64698,-0.617616 0.15532,-1.926003 0.309388,-2.824021 -0.01546,-1.248725 0.03871,-2.51169 -0.03394,-3.751527 C 23.51,8.337295 22.738308,8.723126 22.149635,8.614128 c -1.698837,0.0036 -3.397606,-0.0211 -5.096431,-0.01948 0.552762,2.232675 0.49369,4.675292 -0.168001,6.86524 z m -0.700982,2.558966 h 4.32147 c 0.255761,0 0.463042,0.255874 0.463042,0.46303 v 4.321474 c 0,0.255874 -0.207232,0.46303 -0.463042,0.46303 h -4.32147 c -0.255799,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z m -7.871241,0 h 4.321467 c 0.255799,0 0.463046,0.207118 0.463046,0.46303 v 4.321474 c 0,0.255496 -0.207232,0.46303 -0.463046,0.46303 H 8.312975 c -0.25561,0 -0.463041,-0.207496 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.20742,-0.46303 0.463041,-0.46303 z m -7.871287,0 h 4.321467 c 0.255799,0 0.463045,0.255874 0.463045,0.46303 v 4.321474 c 0,0.255874 -0.207231,0.46303 -0.463045,0.46303 H 0.441688 c -0.255798,0 -0.463041,-0.255874 -0.463041,-0.46303 v -4.321474 c 0,-0.255875 0.207231,-0.46303 0.463041,-0.46303 z M 16.184216,0.821406 h 4.32147 c 0.122798,0 0.240416,0.04876 0.327271,0.135685 0.08685,0.08655 0.13557,0.204472 0.13557,0.327307 v 4.321475 c 0,0.255874 -0.207231,0.46303 -0.463041,0.46303 h -4.321281 c -0.255799,0 -0.463045,-0.207118 -0.463045,-0.46303 V 1.284398 c 0,-0.122835 0.04872,-0.240378 0.135571,-0.327307 0.08685,-0.08693 0.204662,-0.135685 0.327459,-0.135685 z m -7.871241,0 h 4.321467 c 0.255799,1.89e-4 0.463046,0.207496 0.463046,0.46303 v 4.321475 c 0,0.255874 -0.207232,0.463067 -0.463046,0.463067 H 8.312975 c -0.122797,0 -0.240567,-0.04876 -0.327269,-0.135685 C 7.898856,5.846363 7.849945,5.728821 7.849945,5.605986 V 1.284511 c 0,-0.255496 0.20742,-0.46303 0.463045,-0.46303 z m -7.871287,0 h 4.321467 c 0.122797,0 0.240567,0.04876 0.327269,0.135685 0.08685,0.08655 0.135761,0.204472 0.135761,0.327307 v 4.321475 c 0,0.255874 -0.20742,0.46303 -0.463041,0.46303 H 0.441673 c -0.255799,0 -0.463041,-0.207118 -0.463041,-0.46303 V 1.284398 c 0,-0.255496 0.207231,-0.46303 0.463041,-0.46303 z"}),O("path",{className:"styled info",d:"m 14.223803,8.6734848 c -0.110187,-0.1107963 -0.288122,-0.1107963 -0.39831,0 L 7.6220235,14.91115 c -0.11019,0.1108 -0.11019,0.289714 0,0.400506 0.059348,0.05968 0.1270966,0.08524 0.2034071,0.08524 0.076261,0 0.1440627,-0.02556 0.203408,-0.08524 L 14.23231,9.0739903 c 0.101675,-0.1022988 0.101675,-0.2897732 -0.0085,-0.4005055 z m -3.232152,4.7778582 c 0.809803,0 1.472298,-0.662569 1.472298,-1.472297 0,-0.189263 -0.03154,-0.368121 -0.1052,-0.536331 l -1.903518,1.903518 c 0.157795,0.06309 0.347125,0.105125 0.536387,0.105125 z M 9.5193174,11.979009 c 0,0.189262 0.031539,0.3786 0.1051963,0.536331 l 1.9035183,-1.903517 c -0.168283,-0.06309 -0.347051,-0.1052 -0.536331,-0.1052 -0.809879,7.5e-5 -1.4723717,0.662569 -1.4723717,1.472372 z M 9.2038182,12.936026 C 9.0460972,12.652056 8.961952,12.326057 8.961952,11.97899 c 0,-1.125322 0.9044347,-2.0297185 2.029719,-2.0297185 0.347051,0 0.673066,0.084138 0.967533,0.2418635 L 12.653323,9.4970174 C 12.148541,9.3497877 11.601657,9.255153 10.991688,9.255153 c -2.7553668,0 -4.4380344,1.893 -4.9323172,2.524 -0.094633,0.115688 -0.094633,0.283971 0,0.399653 0.2839678,0.3786 0.9990639,1.188402 2.1033338,1.798388 z M 15.92397,11.779192 c -0.283967,-0.3786 -0.999064,-1.188404 -2.103333,-1.798388 l -1.030615,1.030615 c 0.15772,0.283967 0.241865,0.609966 0.241865,0.967533 0,1.125321 -0.914933,2.029717 -2.029719,2.029717 -0.34705,0 -0.673067,-0.08414 -0.967532,-0.241862 l -0.6941221,0.694118 c 0.5047828,0.147228 1.0516681,0.241863 1.6616361,0.241863 2.755368,0 4.438034,-1.892999 4.932317,-2.523999 0.07359,-0.115613 0.07359,-0.283895 -0.01062,-0.399579 z"})]}),Pu=e=>L(ie,{...e,children:[O("path",{d:"m 4.1757812,3.6210938 h 3.609375 V 5.0703125 H 4.0625 v 4.5839844 1.1093751 0.0098 2.21289 2.25586 1.11914 4.583984 h 4.5839844 1.1191406 4.46875 1.119141 4.583984 v -4.583984 -1.11914 -4.46875 -0.123047 H 19.9277 V 9.7675781 h 0.0098 V 5.0703125 H 19.773437 16.132812 V 3.6210938 h 3.691407 c 0.853925,-1e-7 1.5625,0.7085755 1.5625,1.5624999 V 20.832031 c 0,0.853925 -0.708575,1.5625 -1.5625,1.5625 H 4.1757812 c -0.8539247,0 -1.5625,-0.708575 -1.5624999,-1.5625 V 5.1835937 c 0,-0.8539247 0.7085755,-1.5625 1.5624999,-1.5624999 z"}),O("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),zu=e=>L(ie,{...e,children:[O("path",{d:"m 6.5045335,15.19778 v 3.80885 c 0,0.225374 -0.2352933,0.408078 -0.4258292,0.408078 H 2.1042441 c -0.2352933,0 -0.4258251,-0.182811 -0.4258251,-0.408078 v -3.80885 c 0,-0.225386 0.2352932,-0.408088 0.4258251,-0.408088 h 3.9744602 c 0.2352932,0 0.4258292,0.18282 0.4258292,0.408088 z m 0,-6.9375342 v 3.8088512 c 0,0.225375 -0.2352933,0.408077 -0.4258292,0.408077 H 2.1042441 c -0.2352933,0 -0.4258251,-0.18281 -0.4258251,-0.408077 V 8.2602458 c 0,-0.2253846 0.2352932,-0.4080873 0.4258251,-0.4080873 h 3.9744602 c 0.2352932,0 0.4258292,0.1828202 0.4258292,0.4080873 z M 15.158089,23.291912 V 8.8045156 C 15.158216,8.6964547 15.113371,8.5924574 15.033394,8.5158572 14.953603,8.4392865 14.84533,8.3963206 14.73226,8.3963206 H 9.2675073 c -0.2352923,0 -0.4258241,0.1828202 -0.4258241,0.4080873 V 23.291805 c 0,0.108433 0.044721,0.212059 0.124694,0.28866 C 9.0461652,23.657035 9.1544028,23.7 9.2674724,23.7 h 5.4647536 c 0.11307,0 0.221313,-0.04289 0.301135,-0.119535 0.07997,-0.07657 0.124887,-0.180227 0.124693,-0.28866 z M 10.331828,13.021494 V 9.8245624 h 3.33574 v 3.1969316 z m 0,4.625161 v -3.196587 h 3.33574 v 3.196744 z m 0,4.625134 v -3.196735 h 3.335741 v 3.196735 z M 22.32158,15.19778 v 3.808849 c 0,0.225375 -0.235254,0.408079 -0.425825,0.408079 h -3.97446 c -0.235293,0 -0.425824,-0.182812 -0.425824,-0.408079 V 15.19778 c 0,-0.225386 0.235253,-0.408088 0.425824,-0.408088 h 3.97446 c 0.235293,0 0.425825,0.18282 0.425825,0.408088 z m 0,-6.9375342 v 3.8088502 c 0,0.225375 -0.235254,0.408077 -0.425825,0.408077 h -3.97446 c -0.235293,0 -0.425824,-0.18281 -0.425824,-0.408077 V 8.2602458 c 0,-0.2253846 0.235253,-0.4080873 0.425824,-0.4080873 h 3.97446 c 0.235293,0 0.425825,0.1828202 0.425825,0.4080873 z m 0,-6.9379836 V 5.131113 c 0,0.2253748 -0.235254,0.4080873 -0.425825,0.4080873 h -3.97446 c -0.235293,0 -0.425824,-0.1828203 -0.425824,-0.4080873 V 1.3222622 c 0,-0.2253748 0.235253,-0.40808731 0.425824,-0.40808731 h 3.97446 c 0.235293,0 0.425825,0.18282021 0.425825,0.40808731 z m -15.8170465,0 V 5.131113 c 0,0.2253748 -0.2352933,0.4080873 -0.4258292,0.4080873 H 2.1042441 C 1.8689508,5.5392003 1.678419,5.35638 1.678419,5.131113 V 1.3222622 c 0,-0.2253748 0.2352932,-0.40808731 0.4258251,-0.40808731 h 3.9744602 c 0.2352932,0 0.4258292,0.18282021 0.4258292,0.40808731 z"}),O("path",{className:"styled info",d:"M 12.859695,5.8455913 V 4.0508962 h 1.872747 c 0.11307,0 0.221313,-0.042986 0.301134,-0.1195368 0.07997,-0.076571 0.124695,-0.1802351 0.124695,-0.288668 V 2.8111242 c 0,-0.1080607 -0.04472,-0.2120482 -0.124694,-0.2886582 C 14.95379,2.4458948 14.845551,2.4029292 14.732442,2.4029292 H 12.859695 V 0.60819501 c 0,-0.10843292 -0.04472,-0.21205813 -0.124693,-0.28865835 C 12.655212,0.24296576 12.546783,0.2 12.433866,0.2 h -0.867733 c -0.235293,0 -0.425829,0.1828202 -0.425829,0.40823417 V 2.4029685 H 9.2673765 c -0.2351001,0 -0.4258292,0.1824481 -0.4258292,0.4080872 v 0.8315672 c 0,0.1080608 0.044916,0.2120483 0.1246941,0.2886583 0.079972,0.076571 0.1882195,0.1195367 0.3011351,0.1195367 H 11.140304 V 5.845513 c 0,0.1084328 0.04472,0.2120581 0.124694,0.2886583 0.07978,0.076571 0.188219,0.1195367 0.301135,0.1195367 h 0.867733 c 0.112878,0 0.221314,-0.042887 0.301135,-0.1195367 0.07997,-0.076571 0.124694,-0.1802255 0.124694,-0.2886583 z"})]}),Fu=e=>L(ie,{...e,children:[O("path",{d:"m 12.986328,1.2324219 h 2.378906 v 0.00195 h 6.275391 c 0.383144,0 0.695313,0.3140538 0.695312,0.7011719 V 16.167969 h -0.0059 v 5.884765 c 0,0.387121 -0.311627,0.699219 -0.695312,0.699219 H 14.205078 V 22.75 h -1.222656 c -0.383714,0 -0.695313,-0.311963 -0.695313,-0.699219 v -4.75 c 0.494532,-0.24814 0.961457,-0.546684 1.392579,-0.892578 v 4.941406 h 1.685546 v 0.002 H 20.9375 V 6.3398437 h 0.0078 V 2.6347656 h -6.740234 v -0.00195 H 13.681641 V 4.1816406 C 13.250904,3.835679 12.784994,3.5353833 12.291016,3.2871094 V 1.9335937 c 0,-0.3871161 0.312172,-0.7011718 0.695312,-0.7011718 z"}),O("path",{d:"M 12.832873,5.607207 C 12.102129,4.850478 11.183099,4.302002 10.170243,4.017959 9.1573351,3.733891 8.0870751,3.724671 7.0692151,3.990969 6.0515591,4.257359 5.1230791,4.78986 4.3791541,5.533685 3.6352261,6.27751 3.1028281,7.205989 2.8364381,8.223748 c -0.266289,1.017758 -0.257069,2.088017 0.02699,3.101026 0.284067,1.012909 0.832519,1.931938 1.589247,2.662632 0.730744,0.756728 1.649775,1.305205 2.662629,1.589248 1.012909,0.284068 2.083168,0.293288 3.1010279,0.027 1.017657,-0.26639 1.946137,-0.798892 2.690063,-1.542716 0.743928,-0.743826 1.276326,-1.672306 1.542716,-2.690064 0.266288,-1.017759 0.257068,-2.088019 -0.02699,-3.101028 C 14.138058,7.256932 13.589605,6.337901 12.832877,5.607208 Z m -0.835594,7.544419 c -0.775191,0.776082 -1.795439,1.259257 -2.8869079,1.367409 -1.091595,0.108147 -2.186847,-0.165495 -3.099248,-0.774279 -0.912403,-0.608801 -1.585489,-1.515132 -1.904559,-2.56459 -0.319066,-1.049407 -0.264409,-2.177019 0.154675,-3.190688 0.418989,-1.013593 1.176607,-1.850685 2.143591,-2.368403 0.96696,-0.517719 2.083549,-0.684213 3.159446,-0.470984 1.0758969,0.213217 2.0446629,0.792948 2.7411169,1.640251 0.696403,0.847403 1.077599,1.910018 1.078488,3.006794 0.002,0.623076 -0.119346,1.240309 -0.357472,1.816167 -0.238018,0.575757 -0.587868,1.098632 -1.029362,1.538247 z"}),O("path",{className:"styled info",d:"M 12.049184,8.931163 H 9.4991431 v -2.55004 c 0,-0.303666 -0.161935,-0.584287 -0.424911,-0.736122 -0.262971,-0.151829 -0.587125,-0.151829 -0.850107,0 -0.262977,0.151829 -0.424913,0.432452 -0.424913,0.736122 v 2.55004 h -2.550038 c -0.303666,0 -0.584288,0.161935 -0.736122,0.424912 -0.15183,0.262971 -0.15183,0.587126 0,0.850107 0.151828,0.262977 0.432451,0.424911 0.736122,0.424911 h 2.550038 v 2.550041 c 0,0.303666 0.161936,0.584288 0.424913,0.736123 0.262971,0.151831 0.587126,0.151831 0.850107,0 0.262976,-0.151828 0.424911,-0.432453 0.424911,-0.736123 v -2.550041 h 2.5500409 c 0.303665,0 0.584288,-0.161934 0.736123,-0.424911 0.15183,-0.262972 0.15183,-0.587126 0,-0.850107 C 12.633479,9.093098 12.352853,8.931163 12.049184,8.931163 Z"})]}),Nu=e=>L(ie,{...e,children:[O("path",{d:"m 1.7298676,12.488882 v 2.378906 h 0.002 v 6.275391 c 0,0.383144 0.314054,0.695313 0.701172,0.695312 H 16.665415 v -0.0059 h 5.884765 c 0.387121,0 0.699219,-0.311627 0.699219,-0.695312 v -7.429647 h -0.002 v -1.222656 c 0,-0.383714 -0.311963,-0.695313 -0.699219,-0.695313 h -4.75 c -0.24814,0.494532 -0.546684,0.961457 -0.892578,1.392579 h 4.941406 v 1.685546 h 0.002 v 5.572266 H 6.8372896 v 0.0078 H 3.1322116 V 13.70762 h -0.0019 v -0.523425 h 1.548775 C 4.3331246,12.753458 4.0328296,12.287548 3.7845556,11.79357 h -1.353516 c -0.387116,0 -0.701172,0.312172 -0.701172,0.695312 z"}),O("path",{d:"m 5.8131464,12.235547 c -0.756729,-0.730744 -1.305205,-1.649774 -1.589248,-2.66263 -0.284068,-1.0129079 -0.293288,-2.0831679 -0.02699,-3.1010279 0.26639,-1.017656 0.798891,-1.946136 1.542716,-2.690061 0.743825,-0.743928 1.672304,-1.276326 2.690063,-1.542716 1.017758,-0.266289 2.0880156,-0.257069 3.1010246,0.02699 1.012909,0.284067 1.931938,0.832519 2.662632,1.589247 0.756728,0.730744 1.305205,1.649775 1.589248,2.662629 0.284068,1.012909 0.293288,2.083168 0.027,3.1010279 -0.26639,1.017657 -0.798892,1.946137 -1.542716,2.690063 -0.743826,0.743928 -1.672306,1.276326 -2.690064,1.542716 -1.017759,0.266288 -2.0880176,0.257068 -3.1010266,-0.02699 -1.012914,-0.284063 -1.931945,-0.832516 -2.662638,-1.589244 z m 7.5444176,-0.835594 c 0.776082,-0.775191 1.259257,-1.795439 1.367409,-2.8869079 0.108147,-1.091595 -0.165495,-2.186847 -0.774279,-3.099248 -0.608801,-0.912403 -1.515132,-1.585489 -2.56459,-1.904559 -1.049407,-0.319066 -2.1770176,-0.264409 -3.1906866,0.154675 -1.013593,0.418989 -1.850685,1.176607 -2.368403,2.143591 -0.517719,0.96696 -0.684213,2.083549 -0.470984,3.159446 0.213217,1.0758969 0.792948,2.0446629 1.640251,2.7411169 0.847403,0.696403 1.910018,1.077599 3.0067926,1.078488 0.623076,0.002 1.240309,-0.119346 1.816167,-0.357472 0.575757,-0.238018 1.098632,-0.587868 1.538247,-1.029362 z"}),O("path",{className:"styled info",d:"M 9.1371024,11.451858 V 8.9018171 h -2.55004 c -0.303666,0 -0.584287,-0.161935 -0.736122,-0.424911 -0.151829,-0.262971 -0.151829,-0.587125 0,-0.850107 0.151829,-0.262977 0.432452,-0.424913 0.736122,-0.424913 h 2.55004 v -2.550038 c 0,-0.303666 0.161935,-0.584288 0.424912,-0.736122 0.2629706,-0.15183 0.5871246,-0.15183 0.8501056,0 0.262977,0.151828 0.424911,0.432451 0.424911,0.736122 v 2.550038 h 2.550041 c 0.303666,0 0.584288,0.161936 0.736123,0.424913 0.151831,0.262971 0.151831,0.587126 0,0.850107 -0.151828,0.262976 -0.432453,0.424911 -0.736123,0.424911 h -2.550041 v 2.5500409 c 0,0.303665 -0.161934,0.584288 -0.424911,0.736123 -0.262972,0.15183 -0.587125,0.15183 -0.8501056,0 -0.262977,-0.151828 -0.424912,-0.432454 -0.424912,-0.736123 z"})]}),Vu=e=>L(ie,{...e,children:[O("path",{d:"m 18.619141,5.5078125 c 0.424809,-0.013626 0.853669,0.032536 1.271484,0.1445312 1.114343,0.2985286 2.064671,1.0266678 2.644531,2.0234375 0.572944,1.0008485 0.72825,2.1886901 0.429688,3.3027348 -0.298352,1.113969 -1.025212,2.06237 -2.021485,2.642578 l -4.832031,2.791015 c -0.888544,0.512809 -1.9297,0.693494 -2.939453,0.509766 -0.840019,-0.14978 -1.61734,-0.543707 -2.236328,-1.128906 l 1.257812,-0.726563 c 0.424883,0.302884 0.922211,0.489415 1.441407,0.542969 0.623515,0.06527 1.25038,-0.06715 1.792968,-0.380859 l 4.816407,-2.78125 0.01563,-0.0098 C 21.17925,11.901541 21.743935,10.9176 21.742187,9.8535156 21.740649,8.789242 21.172946,7.8084933 20.251953,7.2753906 19.330966,6.7422918 18.197358,6.7369245 17.273437,7.265625 l -4.832031,2.789063 c -0.42267,0.243452 -0.77918,0.590225 -1.037109,1.003906 -0.212681,0.342222 -0.351152,0.721598 -0.414063,1.11914 -0.43659,0.238394 -0.91749,0.498035 -1.3945309,0.759766 -0.044673,-0.702093 0.076403,-1.407524 0.359375,-2.052734 C 10.324758,10.03783 10.957146,9.3346541 11.757813,8.8730469 L 16.587891,6.0839844 C 17.213455,5.725581 17.911308,5.530517 18.619141,5.5078125 Z m -4.205078,6.3027345 c 0.236568,-0.0077 0.473947,0.0021 0.710937,0.0332 0.914521,0.11981 1.766487,0.529255 2.435547,1.162109 l -1.257813,0.726563 c -0.424857,-0.302882 -0.922033,-0.489587 -1.441406,-0.542969 -0.623552,-0.06525 -1.24994,0.06512 -1.792969,0.378906 l -4.8300777,2.791016 c -0.6690128,0.388554 -1.1621399,1.01985 -1.3750001,1.763672 -0.2106995,0.735956 -0.1319447,1.525955 0.2207032,2.205078 v 0.0098 l 0.0625,0.09961 c 0.388193,0.668812 1.018153,1.1619 1.7617187,1.375 0.7359698,0.210741 1.5244539,0.129993 2.2031249,-0.222656 h 0.0098 l 4.933593,-2.847657 c 0.422548,-0.243379 0.779268,-0.587812 1.03711,-1.001953 0.216798,-0.348674 0.355234,-0.737142 0.416015,-1.142578 l 1.386719,-0.798828 c 0.05662,0.722377 -0.06175,1.448541 -0.353515,2.113281 -0.369392,0.846701 -1.000526,1.551958 -1.800782,2.013672 l -4.832031,2.789063 c -1.001028,0.572948 -2.1885184,0.728047 -3.3027342,0.429687 -1.1071985,-0.296706 -2.0531794,-1.016826 -2.6347657,-2.003906 0,0 0,-0.002 0,-0.002 l -0.00977,-0.01758 C 5.3881613,20.120237 5.232707,18.934131 5.53125,17.820312 5.8299633,16.706419 6.556311,15.755782 7.5527344,15.175781 l 4.8320316,-2.789062 c 0.622469,-0.356424 1.319697,-0.552944 2.029297,-0.576172 z"}),O("path",{d:"M 9.1428648,3.107132 C 8.5947558,2.5395327 7.9054197,2.1281377 7.1457075,1.9150857 6.3859562,1.702015 5.583187,1.6950994 4.8197214,1.8948413 4.0564088,2.0946523 3.3599844,2.494065 2.8019891,3.0519854 2.2439914,3.6099057 1.8446561,4.3063294 1.6448451,5.0697192 1.4451099,5.8331083 1.4520255,6.6358767 1.6650897,7.3957037 c 0.2130699,0.759752 0.624447,1.4490878 1.1920455,1.997159 0.5481087,0.5675985 1.2374457,0.9789943 1.9971565,1.1920463 0.759752,0.213071 1.5625204,0.219986 2.325986,0.02025 C 7.9435914,10.405349 8.640015,10.005936 9.1980114,9.4480165 9.7560087,8.8900957 10.155344,8.1936711 10.355156,7.4302819 10.55489,6.6668921 10.547974,5.8641229 10.334911,5.1042958 10.121844,4.3445401 9.710466,3.6552031 9.1428675,3.1071327 Z M 8.5161111,8.7659695 C 7.9346643,9.348085 7.1694074,9.7104997 6.35073,9.7916212 5.531958,9.8727391 4.710443,9.6674878 4.026079,9.2108584 3.3417135,8.7542155 2.8368523,8.074404 2.5975276,7.2872377 2.358206,6.5001097 2.3992026,5.6543224 2.7135447,4.8940004 3.0278155,4.1337354 3.5960815,3.5058583 4.3213865,3.117534 5.0466737,2.7292087 5.8841928,2.6043267 6.6911902,2.7642633 7.4981876,2.9241908 8.2248297,3.3590293 8.7472185,3.9945652 9.2695686,4.630177 9.5554923,5.4272112 9.5561592,6.2498693 9.5576892,6.7172195 9.4666452,7.180187 9.2880303,7.6121205 9.1095,8.0439782 8.8470888,8.4361707 8.5159374,8.7659128 Z"}),O("path",{className:"styled info",d:"M 8.5178648,5.607132 H 6.6051568 V 3.6944247 c 0,-0.2277706 -0.121462,-0.4382557 -0.318713,-0.5521425 -0.197246,-0.1138823 -0.440384,-0.1138823 -0.637639,0 -0.197251,0.1138823 -0.318714,0.324369 -0.318714,0.5521425 V 5.607132 h -1.912705 c -0.227771,0 -0.438257,0.121462 -0.552143,0.318713 -0.113883,0.197247 -0.113883,0.440385 0,0.637639 0.113882,0.197251 0.324368,0.318713 0.552143,0.318713 h 1.912705 v 1.912707 c 0,0.227772 0.121463,0.438257 0.318714,0.552144 0.197247,0.113883 0.440385,0.113883 0.637639,0 0.197251,-0.113881 0.318713,-0.32437 0.318713,-0.552143 V 6.882197 h 1.912708 c 0.227769,0 0.438257,-0.121462 0.552143,-0.318713 0.113883,-0.197247 0.113883,-0.440385 0,-0.637639 -0.113882,-0.197251 -0.32437,-0.318713 -0.552143,-0.318713 z"})]}),Hu=e=>L(ie,{...e,children:[O("path",{d:"m 18.054853,10.379482 c -0.123748,0 -0.246135,0.0049 -0.368186,0.01221 V 5.2879282 c 0,-0.7768693 -0.632102,-1.4091874 -1.409014,-1.4091874 H 1.5183591 c -0.77686828,0 -1.40901288,0.6322755 -1.40901288,1.4091874 v 8.8826488 c 0,0.776696 0.63210098,1.408493 1.40901288,1.408493 h 0.2605437 v 4.201566 c 0,0.01458 0.00328,0.02798 0.00436,0.04221 0.00152,0.02255 0.00272,0.04476 0.00676,0.06663 0.0037,0.01967 0.0095,0.03847 0.015088,0.05713 0.00546,0.01898 0.010143,0.03764 0.017291,0.05594 0.0073,0.01865 0.016778,0.03627 0.025942,0.05424 0.00884,0.01696 0.016952,0.03458 0.027458,0.05086 0.011182,0.01729 0.024066,0.03306 0.03695,0.04881 0.011694,0.01475 0.022549,0.02967 0.035432,0.04357 0.01644,0.01696 0.035258,0.03205 0.053738,0.04747 0.010038,0.0079 0.018306,0.01779 0.028986,0.0256 0.00272,0.0019 0.00556,0.0031 0.0083,0.0051 0.010472,0.0073 0.021872,0.0134 0.03288,0.02 0.020684,0.01272 0.041531,0.02457 0.063229,0.03458 0.011694,0.0051 0.023564,0.01002 0.03577,0.01458 0.023728,0.009 0.04764,0.01628 0.07187,0.02237 0.011192,0.0028 0.022036,0.0055 0.033568,0.0077 0.036448,0.0067 0.073233,0.01119 0.1098429,0.01119 h 1.626e-4 1.625e-4 c 0.045764,0 0.089673,-0.0057 0.1322219,-0.01526 0.011694,-0.0027 0.02255,-0.0071 0.03407,-0.01048 0.03119,-0.009 0.0612,-0.01916 0.090175,-0.03255 0.014072,-0.0067 0.027294,-0.01458 0.040516,-0.02237 0.025254,-0.01441 0.049495,-0.02983 0.072382,-0.04747 0.012884,-0.01002 0.025254,-0.02 0.037124,-0.03085 0.024578,-0.02237 0.046614,-0.04661 0.067298,-0.0729 0.00556,-0.0071 0.013048,-0.01238 0.01848,-0.02 L 6.1699123,15.57889 H 12.06176 c -0.03984,0.279529 -0.06153,0.564838 -0.06153,0.855372 0,3.338254 2.716133,6.054128 6.05456,6.054128 3.338254,0 6.054562,-2.715962 6.054562,-6.054128 0,-3.3386 -2.716308,-6.054556 -6.054562,-6.054556 z M 5.859807,14.363718 c -0.01271,0 -0.02424,0.0028 -0.036611,0.004 -0.024752,0.0016 -0.049494,0.0028 -0.07391,0.0073 -0.017804,0.0033 -0.034244,0.0089 -0.051196,0.01356 -0.020684,0.0055 -0.041531,0.0112 -0.061538,0.01898 -0.016952,0.0068 -0.032891,0.01527 -0.049156,0.02356 -0.018982,0.0097 -0.037974,0.01898 -0.055942,0.03034 -0.015262,0.01002 -0.02916,0.02169 -0.04356,0.03289 -0.016778,0.01289 -0.033568,0.02525 -0.048818,0.04034 -0.014574,0.01408 -0.027294,0.02983 -0.040342,0.04542 -0.010472,0.01238 -0.022036,0.02255 -0.031866,0.03577 l -2.3728744,3.285875 1.625e-4,-2.930377 c 0,-0.33564 -0.271899,-0.607539 -0.6075391,-0.607539 H 1.5185303 c -0.106964,0 -0.1939271,-0.0868 -0.1939271,-0.193414 V 5.2881595 c 0,-0.106964 0.086956,-0.1940951 0.1939271,-0.1940951 H 16.277825 c 0.106964,0 0.193925,0.086956 0.193925,0.1940951 v 5.3029455 c -1.902801,0.51619 -3.436706,1.937872 -4.106475,3.772856 z m 12.195046,6.909456 c -2.668312,0 -4.839483,-2.170781 -4.839483,-4.839049 0,-2.668487 2.171127,-4.839481 4.839483,-4.839481 2.668311,0 4.839482,2.171126 4.839482,4.839481 0,2.668312 -2.171127,4.839049 -4.839482,4.839049 z"}),O("path",{d:"m 15.386715,9.0817687 c 0,-1.056852 -0.86001,-1.916861 -1.917397,-1.916861 -1.056851,0 -1.916862,0.859831 -1.916862,1.916861 0,1.0570293 0.859833,1.9172173 1.916862,1.9172173 1.057387,0 1.917397,-0.860188 1.917397,-1.9172173 z m -1.917219,0.668565 c -0.368602,0 -0.668208,-0.29997 -0.668208,-0.668565 0,-0.368594 0.299624,-0.668209 0.668208,-0.668209 0.368777,0 0.668744,0.299624 0.668744,0.668209 -1.67e-4,0.368602 -0.300145,0.668565 -0.668744,0.668565 z M 8.8865838,7.1650867 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.9168592,-0.86001 1.9168592,-1.9172163 0,-1.05685 -0.8598292,-1.91686 -1.9168592,-1.91686 z m 0,2.58547 c -0.368605,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299623,-0.668208 0.66821,-0.668208 0.368583,0 0.668207,0.299624 0.668207,0.668208 0,0.368586 -0.299798,0.668565 -0.668207,0.668565 z m -4.583006,-2.58547 c -1.056852,0 -1.916862,0.85983 -1.916862,1.91686 0,1.0570293 0.859832,1.9172163 1.916862,1.9172163 1.05703,0 1.916862,-0.86001 1.916862,-1.9172163 0,-1.05685 -0.859832,-1.91686 -1.916862,-1.91686 z m 0,2.58547 c -0.368602,0 -0.66821,-0.299971 -0.66821,-0.668565 0,-0.368595 0.299626,-0.668208 0.66821,-0.668208 0.368603,0 0.668208,0.299624 0.668208,0.668208 0,0.368586 -0.299973,0.668565 -0.668208,0.668565 z"}),O("path",{className:"styled info",d:"m 21.414868,15.755151 h -2.697203 v -2.697715 c 0,-0.359844 -0.291508,-0.651352 -0.651352,-0.651352 -0.359845,0 -0.651353,0.291508 -0.651353,0.651352 v 2.697529 l -2.697202,1.85e-4 c -0.359844,0 -0.651352,0.291508 -0.651352,0.651352 0,0.359844 0.291508,0.651352 0.651352,0.651352 h 2.697202 v 2.697203 c 0,0.359844 0.291508,0.651352 0.651353,0.651352 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 v -2.697202 h 2.697389 c 0.359844,0 0.651352,-0.291508 0.651352,-0.651352 0,-0.359844 -0.291871,-0.651352 -0.651538,-0.651352 z"})]}),Bu=e=>L(ie,{...e,children:[O("path",{d:"M 20.755578,11.219159 V 4.2861685 c 0,-1.2559826 -1.021811,-2.2777936 -2.277795,-2.2777936 l -14.8013936,1.49e-4 c -1.255983,0 -2.277794,1.021811 -2.277794,2.2777946 V 16.38563 c 0,1.255984 1.021811,2.277795 2.277794,2.277795 h 8.8030186 c 0.953091,1.878573 2.89978,3.171949 5.146368,3.171949 3.183038,0 5.772503,-2.589585 5.772503,-5.772503 -1.49e-4,-2.029336 -1.055053,-3.814043 -2.64302,-4.843875 z M 3.6763104,17.632165 c -0.687314,0 -1.246287,-0.559013 -1.246287,-1.246286 V 4.2861685 c 0,-0.687313 0.559013,-1.2462856 1.246287,-1.2462856 H 18.477704 c 0.687313,0 1.246286,0.5590126 1.246286,1.2462856 v 6.4046255 c -0.651437,-0.255495 -1.357307,-0.400464 -2.098214,-0.400464 -0.339986,0 -0.671391,0.03539 -0.995633,0.09213 L 14.948914,9.0158145 c -0.0023,-0.0017 -0.0048,-0.0028 -0.0072,-0.0048 -0.0145,-0.01138 -0.02993,-0.02026 -0.04536,-0.02993 -0.01403,-0.0089 -0.02744,-0.01855 -0.04225,-0.02572 -0.01107,-0.0055 -0.02276,-0.0089 -0.03445,-0.01372 -0.01995,-0.0083 -0.03959,-0.01684 -0.06017,-0.02276 -0.0076,-0.002 -0.01574,-0.0023 -0.02369,-0.0045 -0.02401,-0.0055 -0.04879,-0.0106 -0.07326,-0.01232 -0.0097,-6.22e-4 -0.01995,3.2e-4 -0.02962,0 -0.02276,-3.19e-4 -0.04567,-0.0011 -0.06843,0.0017 -0.01231,0.0014 -0.02447,0.0051 -0.03679,0.0072 -0.02058,0.0037 -0.04084,0.0072 -0.06079,0.01372 -0.01138,0.0037 -0.02229,0.0094 -0.03398,0.01403 -0.02058,0.008 -0.04053,0.01621 -0.06017,0.02681 -0.002,0.0014 -0.0045,0.0017 -0.0065,0.0031 L 12.031074,10.310487 9.2550842,7.7240545 c -0.0028,-0.0028 -0.0069,-0.0034 -0.0097,-0.0058 -0.04677,-0.04193 -0.09899,-0.07326 -0.155105,-0.09524 -0.0069,-0.0028 -0.01341,-0.0055 -0.02027,-0.008 -0.05612,-0.01933 -0.113797,-0.02821 -0.172564,-0.02744 -0.0076,0 -0.01512,0 -0.02276,3.2e-4 -0.05737,0.0031 -0.114109,0.01652 -0.168514,0.03913 -0.0079,0.0031 -0.01543,0.0062 -0.02338,0.01 -0.03991,0.01886 -0.07841,0.04162 -0.113798,0.07155 L 3.3124834,12.178522 c -0.216993,0.184258 -0.243495,0.509888 -0.05877,0.726901 0.101794,0.120031 0.247234,0.181607 0.392989,0.181607 0.118316,0 0.236946,-0.04022 0.333908,-0.122681 L 8.8883352,8.7913065 13.000321,12.623426 c -0.717243,0.961951 -1.147636,2.150133 -1.147636,3.439479 0,0.544646 0.08075,1.06922 0.222448,1.569131 z m 10.0113926,-5.778091 -0.866734,-0.807631 1.752463,-1.006727 0.848815,0.689628 c -0.646767,0.268748 -1.230882,0.653472 -1.734544,1.12473 z m 3.937993,8.950275 c -2.614368,0 -4.740916,-2.127227 -4.740916,-4.740916 0,-2.614049 2.127227,-4.740916 4.740916,-4.740916 2.614048,0 4.740916,2.127227 4.740916,4.740916 0,2.613689 -2.126748,4.740916 -4.740916,4.740916 z"}),O("path",{className:"styled secondary_light",d:"m 5.2446666,7.807211 c 1.102784,0 1.999992,-0.897208 1.999992,-2 0,-1.102784 -0.897208,-2 -1.999992,-2 -1.102792,0 -2.000008,0.897216 -2.000008,2 0,1.102792 0.897216,2 2.000008,2 z m 0,-3.051888 c 0.579848,0 1.051592,0.471744 1.051592,1.0516 0,0.579848 -0.471744,1.051592 -1.051592,1.051592 -0.579856,0 -1.0516,-0.471744 -1.0516,-1.051592 0,-0.579856 0.471744,-1.0516 1.0516,-1.0516 z"}),O("path",{className:"styled info",d:"m 21.071857,15.532739 h -2.84657 v -2.84657 c 0,-0.31834 -0.25837,-0.57672 -0.57672,-0.57672 -0.31834,0 -0.57671,0.25837 -0.57671,0.57672 v 2.84657 h -2.84657 c -0.31834,0 -0.57672,0.25837 -0.57672,0.57671 0,0.31834 0.25837,0.57672 0.57672,0.57672 h 2.84657 v 2.84657 c 0,0.31834 0.25837,0.57671 0.57671,0.57671 0.31834,0 0.57672,-0.25837 0.57672,-0.57671 v -2.84657 h 2.84657 c 0.31834,0 0.57671,-0.25837 0.57671,-0.57672 0,-0.31834 -0.25801,-0.57671 -0.57671,-0.57671 z"})]}),$u=e=>O(ie,{...e,children:O("path",{d:"m 1.3300781,2.1191409 c -0.176367,0 -0.3183593,0.1524484 -0.3183593,0.3421836 v 11.0485395 4.074713 3.829097 c 0,0.189385 0.1418333,0.342185 0.3183593,0.342185 H 22.693359 c 0.1762,0 0.31836,-0.1528 0.31836,-0.342185 V 17.584577 13.509864 2.4613245 c 0,-0.1893847 -0.14216,-0.3421836 -0.31836,-0.3421836 z m 0.3203125,4.46728 H 8.1328125 V 9.6807681 H 1.6503906 Z m 7.1210938,0 H 15.251953 V 9.6807681 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 9.6807681 H 15.890625 Z M 1.6503906,10.367234 h 6.4824219 v 3.092247 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.092247 H 8.7714844 Z m 7.1191406,0 h 6.482422 V 13.46158 H 15.890625 Z M 1.6503906,14.196331 h 6.4824219 v 3.043964 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.043964 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.043964 H 15.890625 Z M 1.6503906,17.975044 h 6.4824219 v 3.094348 H 1.6503906 Z m 7.1210938,0 h 6.4804686 v 3.094348 H 8.7714844 Z m 7.1191406,0 h 6.482422 v 3.094348 h -6.482422 z"})}),ju=e=>L(ie,{...e,children:[O("path",{d:"m 15.432227,23.559503 v -7.799619 c -0.461329,0.313474 -1.017411,0.45628 -1.572473,0.40379 -0.555288,-0.05235 -1.074897,-0.296693 -1.469367,-0.690826 l -0.391181,-0.391185 -0.388951,0.391185 c -0.39481,0.394636 -0.915175,0.639009 -1.470955,0.691004 -0.555779,0.05197 -1.112239,-0.09169 -1.57338,-0.406209 v 7.80183 c 7.56e-4,0.255421 0.207497,0.462335 0.463031,0.463042 h 5.940473 c 0.122834,0 0.240378,-0.04872 0.327307,-0.135571 0.08693,-0.08685 0.135685,-0.204663 0.135685,-0.327458 z M 14.085052,5.6315691 c 0.480832,-0.00207 0.950929,0.1424882 1.347326,0.4144971 V 3.4948431 C 15.432529,3.3720462 15.383622,3.2542761 15.296693,3.1673848 15.210142,3.0805308 15.092221,3.0318131 14.969386,3.0318131 H 9.028951 c -0.122835,0 -0.240756,0.048718 -0.327308,0.1355717 -0.08693,0.086854 -0.135685,0.2046614 -0.135685,0.3274583 v 2.5534757 c 0.461141,-0.3144946 1.0176,-0.4581771 1.57338,-0.4062048 0.555931,0.051969 1.076145,0.2963528 1.470955,0.6910036 l 0.388951,0.3911849 0.391181,-0.3911849 C 12.838979,5.8823673 13.449109,5.6298645 14.085014,5.6315918 Z M 6.025019,16.2281 v 4.32147 c 0,0.255761 -0.255874,0.463042 -0.46303,0.463042 H 1.240515 c -0.255874,0 -0.46303,-0.207232 -0.46303,-0.463042 V 16.2281 c 0,-0.255799 0.255874,-0.463041 0.46303,-0.463041 h 4.321474 c 0.255875,0 0.46303,0.207231 0.46303,0.463041 z m 0,-7.8712416 v 4.3214666 c 0,0.255799 -0.207118,0.463046 -0.46303,0.463046 H 1.240515 c -0.255496,0 -0.46303,-0.207232 -0.46303,-0.463046 V 8.3568584 c 0,-0.2556095 0.207496,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2074205 0.46303,0.4630414 z m 0,-7.8712869 v 4.3214671 c 0,0.2557985 -0.255874,0.4630451 -0.46303,0.4630451 H 1.240515 c -0.255874,0 -0.46303,-0.2072315 -0.46303,-0.4630451 V 0.4855715 c 0,-0.2557985 0.255874,-0.4630414 0.46303,-0.4630414 h 4.321474 c 0.255875,0 0.46303,0.2072315 0.46303,0.4630414 z M 23.222477,16.2281 v 4.32147 c 0,0.122798 -0.04876,0.240416 -0.135685,0.327271 -0.08655,0.08685 -0.204472,0.13557 -0.327307,0.13557 H 18.43801 c -0.255874,0 -0.46303,-0.207231 -0.46303,-0.463041 v -4.321281 c 0,-0.255799 0.207118,-0.463045 0.46303,-0.463045 h 4.321475 c 0.122835,0 0.240378,0.04872 0.327307,0.135571 0.08693,0.08685 0.135685,0.204662 0.135685,0.327459 z m 0,-7.8712416 v 4.3214666 c -1.89e-4,0.255799 -0.207496,0.463046 -0.46303,0.463046 h -4.321475 c -0.255874,0 -0.463067,-0.207232 -0.463067,-0.463046 V 8.3568584 c 0,-0.1227969 0.04876,-0.240567 0.135685,-0.3272694 0.08693,-0.086854 0.204472,-0.1357606 0.327307,-0.1357606 h 4.321475 c 0.255496,0 0.46303,0.2074205 0.46303,0.4630451 z m 0,-7.8712869 v 4.3214671 c 0,0.1227969 -0.04876,0.240567 -0.135685,0.3272693 -0.08655,0.086854 -0.204472,0.1357607 -0.327307,0.1357607 H 18.43801 c -0.255874,0 -0.46303,-0.2074205 -0.46303,-0.4630414 V 0.4855563 c 0,-0.2557984 0.207118,-0.4630413 0.46303,-0.4630413 h 4.321475 c 0.255496,0 0.46303,0.2072315 0.46303,0.4630413 z"}),O("path",{className:"styled info",d:"m 14.471925,14.162913 0.787389,-0.787389 c 0.213543,-0.213468 0.213543,-0.559386 0,-0.772846 l -1.699276,-1.699283 1.699276,-1.6992836 v 1.776e-4 c 0.102425,-0.1025764 0.160252,-0.2414362 0.160252,-0.3863471 0,-0.1450583 -0.05745,-0.2839182 -0.160252,-0.386521 L 14.471925,7.6440318 C 14.369499,7.5416066 14.230413,7.483931 14.085581,7.483931 c -0.144756,0 -0.283842,0.057676 -0.386343,0.1601008 L 11.999962,9.3433152 10.300648,7.6440318 C 10.198223,7.5416066 10.059137,7.483931 9.914305,7.483931 c -0.144756,0 -0.283843,0.057676 -0.386343,0.1601008 l -0.78739,0.7873891 c -0.213543,0.2134677 -0.213543,0.5593853 0,0.7728455 l 1.699276,1.6992836 -1.699276,1.699283 v -1.77e-4 c -0.102425,0.102425 -0.160251,0.241436 -0.160251,0.386347 0,0.144907 0.05745,0.283918 0.160251,0.386521 l 0.78739,0.787389 c 0.213165,0.213279 0.559408,0.213279 0.772724,0 l 1.699276,-1.699284 1.699276,1.699284 c 0.102425,0.102425 0.241512,0.159912 0.386343,0.159912 0.144756,0 0.283843,-0.05752 0.386344,-0.159912 z"})]}),Wu=e=>L(ie,{...e,children:[O("path",{d:"M 3.3723286,7.8084837 V 22.040909 c 0,0.387119 0.3121683,0.701172 0.6953125,0.701172 h 6.2753909 v 0.002 h 2.378906 c 0.38314,0 0.695313,-0.314055 0.695313,-0.701172 v -1.353515 c -0.493979,-0.248274 -0.959889,-0.54857 -1.390625,-0.894532 v 1.548829 h -0.523438 v -0.002 H 4.7629536 v -3.705078 h 0.00781 V 2.6248897 h 5.5722654 v 0.002 h 1.68555 v 4.94141 c 0.431121,-0.345894 0.898047,-0.644438 1.392578,-0.892578 v -4.75 c 0,-0.387256 -0.311599,-0.6992189 -0.695313,-0.6992189 h -1.222656 v -0.002 H 4.0735004 c -0.3836857,0 -0.6953125,0.3120979 -0.6953125,0.6992189 v 5.884765 z"}),O("path",{d:"m 20.517526,9.6190337 c 0.756729,0.7307433 1.305205,1.6497763 1.589248,2.6626323 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 -1.01291,-0.284067 -1.931939,-0.832519 -2.662631,-1.589247 -0.756728,-0.730744 -1.305207,-1.649775 -1.589251,-2.662629 -0.284069,-1.012909 -0.29329,-2.083168 -0.027,-3.101028 0.266391,-1.017657 0.798895,-1.94614 1.542719,-2.6900653 0.743825,-0.743927 1.672305,-1.276325 2.690063,-1.542715 1.017759,-0.266288 2.088017,-0.257068 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589243 z m -7.544417,0.8355933 c -0.776082,0.775194 -1.259256,1.795442 -1.367408,2.886911 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044664 -1.640251,-2.741121 -0.847403,-0.6964013 -1.910018,-1.0775963 -3.006793,-1.0784853 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357471 -0.575756,0.238017 -1.098632,0.5878663 -1.538247,1.0293613 z"}),O("path",{className:"styled info",d:"m 19.432824,15.63695 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287675 -0.301889,-0.512485 -0.589572,-0.589573 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215833 l -1.76852,1.76852 -1.768518,-1.768519 c -0.2106,-0.210601 -0.517526,-0.292914 -0.805207,-0.215833 -0.287676,0.07708 -0.512486,0.30189 -0.589572,0.589573 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),Uu=e=>L(ie,{...e,children:[O("path",{d:"M 8.0214844,2.2460938 H 22.253906 c 0.387119,0 0.701172,0.3121683 0.701172,0.6953125 v 6.2753906 h 0.002 v 2.3789061 c 0,0.38314 -0.314055,0.695313 -0.701172,0.695313 h -1.353515 c -0.248274,-0.493979 -0.54857,-0.959889 -0.894532,-1.390625 h 1.548829 v -0.523438 h -0.002 V 3.6367188 h -3.705078 v 0.00781 H 2.8378906 v 5.5722656 h 0.00195 V 10.902344 H 7.78125 c -0.3458936,0.431121 -0.6444378,0.898047 -0.8925781,1.392578 h -4.75 c -0.3872555,0 -0.6992188,-0.311599 -0.6992188,-0.695313 V 10.376953 H 1.4375 V 2.9472656 c 0,-0.3836857 0.3120982,-0.6953125 0.6992188,-0.6953125 h 5.8847656 z"}),O("path",{d:"m 18.191717,11.748829 c 0.756729,0.730744 1.305205,1.649774 1.589248,2.66263 0.284068,1.012908 0.293288,2.083168 0.02699,3.101028 -0.26639,1.017656 -0.798891,1.946136 -1.542716,2.690061 -0.743825,0.743928 -1.672304,1.276326 -2.690063,1.542716 -1.017758,0.266289 -2.088015,0.257069 -3.101024,-0.02699 C 11.461242,21.434207 10.542213,20.885755 9.811521,20.129027 9.054793,19.398283 8.506316,18.479252 8.222273,17.466398 7.938205,16.453489 7.928985,15.38323 8.195273,14.36537 c 0.26639,-1.017657 0.798892,-1.946137 1.5427165,-2.690063 0.7438245,-0.743928 1.6723045,-1.276326 2.6900625,-1.542716 1.017759,-0.2662877 2.088017,-0.2570677 3.101026,0.02699 1.012914,0.284063 1.931945,0.832516 2.662638,1.589244 z M 10.6473,12.584423 c -0.7760815,0.775191 -1.259256,1.795439 -1.367408,2.886908 -0.108147,1.091595 0.165495,2.186847 0.774278,3.099248 0.608801,0.912403 1.515132,1.585489 2.56459,1.904559 1.049407,0.319066 2.177017,0.264409 3.190686,-0.154675 1.013593,-0.418989 1.850685,-1.176607 2.368403,-2.143591 0.517719,-0.96696 0.684213,-2.083549 0.470984,-3.159446 -0.213217,-1.075897 -0.792948,-2.044663 -1.640251,-2.741117 -0.847403,-0.696403 -1.910018,-1.077599 -3.006793,-1.078488 -0.623075,-0.002 -1.240308,0.119346 -1.816167,0.357472 -0.575756,0.238018 -1.098632,0.587868 -1.538247,1.029362 z"}),O("path",{className:"styled info",d:"m 17.107015,17.766743 -1.76852,-1.768521 1.768519,-1.768519 c 0.210601,-0.2106 0.292912,-0.517524 0.215833,-0.805207 -0.07708,-0.287674 -0.301889,-0.512483 -0.589572,-0.589571 -0.287678,-0.07709 -0.594604,0.0052 -0.805207,0.215832 l -1.76852,1.768519 -1.768518,-1.768518 c -0.2106,-0.2106 -0.517526,-0.292913 -0.805207,-0.215832 -0.287676,0.07708 -0.512486,0.301889 -0.589572,0.589571 -0.07708,0.287678 0.0052,0.594603 0.215833,0.805207 l 1.768518,1.768518 -1.76852,1.76852 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.292913 0.805207,0.215833 0.287676,-0.07708 0.512486,-0.301889 0.589571,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.215832,-0.805207 z"})]}),qu=e=>L(ie,{...e,children:[O("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),O("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),Zu=e=>L(ie,{...e,children:[O("path",{d:"M 3,21 H 21 V 19 H 3 Z M 3,3 V 5 H 21 V 3 Z m 8,6 H 21 V 7 H 11 Z m 0,4 H 21 V 11 H 11 Z m 0,4 H 21 V 15 H 11 Z"}),O("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),Gu=e=>L(ie,{...e,children:[O("path",{d:"m 19.880282,3.1253973 v 1.7167968 h 0.851563 c 0.06225,0 0.08398,0.027898 0.08398,0.080078 v 1.3261718 h 1.722656 V 4.9222723 c 0,-0.9900118 -0.81968,-1.7968751 -1.80664,-1.796875 z m 0.935547,4.1370057 v 2.11914 c 0,0.05217 -0.02171,0.08008 -0.08398,0.08008 h -7.222656 -1.541016 c -0.987185,0 -1.806641,0.8111 -1.806641,1.800782 v 0.458985 h 1.720703 v -0.458987 c 0,-0.04911 0.02442,-0.08008 0.08594,-0.08008 h 1.541016 7.222656 c 0.987178,0 1.806641,-0.811095 1.80664,-1.800782 V 7.262403 Z M 8.7679091,18.507575 v 2.998047 c 0,1.235762 1.014238,2.250001 2.2499999,2.25 1.235678,0 2.251962,-1.014894 2.251953,-2.25 v -2.998047 z m 1.3886819,-5.108896 v 2.923828 H 9.6272951 c -0.479448,-0.0018 -0.865107,0.384547 -0.863282,0.863281 v 2.714844 h 4.5019539 v -2.714844 c 0.0018,-0.480054 -0.386529,-0.865104 -0.865235,-0.863281 h -0.523437 v -2.923828 z m 2.5e-5,-2.051023 c 0.0011,0.0068 0.002,0.01353 0.002,0.02149 v 3.576171 h 1.722657 v -3.576171 c 0,-0.0072 8.7e-5,-0.01428 0,-0.02149 z M 20.814819,5.1347656 c 0.0011,0.0068 0.002,0.013534 0.002,0.021484 v 3.515625 h 1.722657 V 5.15625 c 0,-0.0072 8.7e-5,-0.014274 0,-0.021484 z"}),O("path",{className:"styled info",d:"m 17.404297,0.44921875 c -0.07081,8.138e-4 -0.143662,0.004376 -0.210938,0.0117188 H 5.4902344 C 4.1525203,0.4243701 3.0054304,1.6927542 3.1386719,3.0136719 c 0.021871,0.9461512 -0.050473,1.9039617 0.046875,2.8515625 0.2179595,1.1823832 1.417011,2.0074176 2.5917968,1.8789062 3.9411951,-0.00202 7.8840343,0.00319 11.8261723,-0.00391 1.312982,-0.03522 2.368675,-1.3065531 2.228515,-2.5917969 0.01172,-0.1312372 0.02662,-0.26053 0.03516,-0.3984375 V 3.296875 l -0.002,-0.00586 C 19.774361,3.0207819 19.896551,2.5516284 19.757812,2.2226563 19.506263,1.1645186 18.468764,0.4369752 17.404297,0.44921875 Z M 5.4882812,2.1816406 H 17.484375 c 0.583998,-0.018068 0.674958,0.6128217 0.626953,1.078125 -0.0082,0.7566135 0.0156,1.5145404 -0.01367,2.2636719 -0.09518,0.5462285 -0.699316,0.5126149 -1.152344,0.4980469 H 5.4863281 C 4.9024853,6.0371317 4.8115036,5.4054689 4.859375,4.9394531 4.8674807,4.1829001 4.8438683,3.425015 4.8730469,2.6757813 4.9219827,2.3881103 5.1972243,2.1732403 5.4882812,2.1816406 Z"})]}),Ku=e=>L(ie,{...e,children:[O("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),O("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),O("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),O("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),O("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),Xu=e=>L(ie,{...e,children:[O("path",{className:"styled info",d:"M 9.0065407,14.665821 H 6.0065367 V 4.6658205 h -2 V 14.665821 h -3 l 4,4 z"}),O("path",{d:"m 10.722257,6.8830305 v -1.50391 h 4.88082 v 1.50391 z m 0,3.5809205 V 8.9600505 h 7.099404 v 1.5039005 z m 0,3.58085 v -1.50391 h 9.317921 v 1.50391 z m 0,3.58092 v -1.50391 h 11.536489 v 1.50391 z"})]}),Yu=e=>L(ie,{...e,children:[O("path",{className:"styled info",d:"M 7.8167266,10.428041 A 2.7552276,2.7552276 0 0 1 5.061499,13.183269 2.7552276,2.7552276 0 0 1 2.3062715,10.428041 2.7552276,2.7552276 0 0 1 5.061499,7.6728163 2.7552276,2.7552276 0 0 1 7.8167266,10.428041 Z M 3.9394531,4.5996094 v 1.9121094 a 4.1082412,4.2066421 0 0 1 0.2578125,-0.056641 3.690037,3.7884378 0 0 1 0.3007813,-0.066406 4.1082412,4.2066421 0 0 1 0.1425781,-0.011719 3.690037,3.7884378 0 0 1 0.3789062,-0.03125 3.690037,3.7884378 0 0 1 0.023438,0.00195 4.1082412,4.2066421 0 0 1 0.048828,-0.00391 4.1082412,4.2066421 0 0 1 0.9648437,0.1269531 V 4.5996094 Z m 0,9.9882816 v 3.984375 H 6.0566406 V 14.638672 A 4.1082412,4.2066421 0 0 1 5.0917969,14.755859 4.1082412,4.2066421 0 0 1 3.9394531,14.587891 Z"}),O("path",{d:"m 10.722257,16.12182 v 1.503901 h 7.099404 V 16.12182 Z m 0,-2.076939 V 12.54097 h 11.536489 v 1.503911 z m 0,-3.580921 V 8.9600505 h 9.317921 V 10.46396 Z m 0,-3.5809295 v -1.50391 h 4.88082 v 1.50391 z"})]}),Ju=e=>L(ie,{...e,children:[O("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),O("path",{className:"styled info",d:"m 20,11 h 3 v 2 h -3 v 3 h -2 v -3 h -3 v -2 h 3 V 8 h 2 z"})]}),Qu=e=>L(ie,{...e,children:[O("path",{d:"M 6.4082031,5.2265625 H 8.5917969 L 13.681641,18.773437 H 11.751953 L 10.490234,15.193359 H 4.5195312 L 3.25,18.773437 H 1.3183594 Z M 7.2792969,7.3730469 5.0898437,13.617188 H 9.9101563 L 7.7207031,7.3730469 Z"}),O("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),eh=e=>L(ie,{...e,children:[O("path",{d:"m 12.793828,12.0675 c 1.055094,0.414425 1.787109,0.74604 1.787109,1.902344 0,1 -0.809297,1.669922 -2.279297,1.669922 C 10.76164,15.639766 9.37,15.1 9.37,13.13 H 6.40125 c 0,0.55 0.080234,1.130078 0.240234,1.580078 0.81,2.29 3.289922,3.300781 5.669922,3.300781 2.27,0 5.298828,-0.890781 5.298828,-4.050781 0,-0.293994 -0.0104,-1.125305 -0.453125,-1.892578 z M 6.85,7.08 C 6.85,4.37 9.45,3 12.24,3 c 1.64,0 3,0.49 3.9,1.28 0.77,0.65 1.46,1.73 1.46,3.24 h -3.01 c 0,-0.31 -0.05,-0.59 -0.15,-0.85 -0.29,-0.86 -1.2,-1.28 -2.25,-1.28 -1.86,0 -2.34,1.02 -2.34,1.7 0,0.48 0.25,0.88 0.74,1.21 C 10.97,8.55 11.36,8.78 12,9 H 7.39 C 7.18,8.66 6.85,8.11 6.85,7.08 Z"}),O("path",{className:"styled info",d:"m 2.985229,9.9941 v 2 H 12.60437 C 12.60977,11.9962 12.61465,11.9979 12.62,12 h 8.365229 v -0.0059 -2 z"})]}),th=e=>L(ie,{...e,children:[O("path",{d:"m 5.88,20 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,12.73 17.81,6 h -2.68 l -3.07,4.99 H 11.94 L 8.85,6 H 6.19 l 4.32,6.73 z"}),O("path",{className:"styled info",d:"m 22,7 h -2 v 1 h 3 V 9 H 19 V 7 c 0,-0.55 0.45,-1 1,-1 h 2 V 5 H 19 V 4 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),nh=e=>L(ie,{...e,children:[O("path",{d:"m 5.88,18 h 2.66 l 3.4,-5.42 h 0.12 l 3.4,5.42 h 2.66 L 13.47,10.73 17.81,4 H 15.13 L 12.06,8.99 H 11.94 L 8.85,4 H 6.19 l 4.32,6.73 z"}),O("path",{className:"styled info",d:"m 22,18 h -2 v 1 h 3 v 1 h -4 v -2 c 0,-0.55 0.45,-1 1,-1 h 2 v -1 h -3 v -1 h 3 c 0.55,0 1,0.45 1,1 v 1 c 0,0.55 -0.45,1 -1,1 z"})]}),oh=e=>L(ie,{...e,children:[O("path",{d:"m 12,17 c 3.31,0 6,-2.69 6,-6 V 3 h -2.5 v 8 c 0,1.93 -1.57,3.5 -3.5,3.5 -1.93,0 -3.5,-1.57 -3.5,-3.5 V 3 H 6 v 8 c 0,3.31 2.69,6 6,6 z"}),O("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),rh=e=>L(ie,{...e,children:[O("path",{d:"m 17.983101,9.6935009 q 0,3.6331771 -2.067499,5.4798741 Q 13.868177,17 10.154709,17 H 6.1000033 V 2.668021 H 10.59631 q 2.248154,0 3.894124,0.802912 1.666042,0.802912 2.569318,2.3685904 0.923349,1.5456056 0.923349,3.8539775 z m -3.15143,0.080291 q 0,-2.3886631 -1.043785,-3.4926671 Q 12.7441,5.1570482 10.756893,5.1570482 H 9.130996 V 14.4909 h 1.304732 q 4.395943,0 4.395943,-4.7171079 z"}),O("path",{className:"styled info",d:"m 5,21.242188 v 1.671875 H 19 V 21.242188 Z M 5,18.75 v 1.671875 H 19 V 18.75 Z"})]}),ih=e=>L(ie,{...e,children:[O("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),O("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),lh=e=>L(ie,{...e,children:[O("path",{d:"M 12.155968,8.827186 C 10.178637,8.3132539 9.5427554,7.7819008 9.5427554,6.9543836 c 0,-0.9494671 0.8797816,-1.6114808 2.3518906,-1.6114808 1.550506,0 2.125413,0.7404101 2.177677,1.8292485 h 1.925066 C 15.936415,5.6739096 15.02179,4.2976179 13.201252,3.8533718 V 1.9457269 H 10.58804 V 3.8272397 C 8.8981631,4.1930894 7.5392927,5.2906385 7.5392927,6.971805 c 0,2.012173 1.6637451,3.013905 4.0940323,3.597522 2.177677,0.522643 2.613212,1.289185 2.613212,2.099281 0,0.601038 -0.426824,1.559216 -2.351891,1.559216 -1.794405,0 -2.4999726,-0.801385 -2.5957904,-1.829248 H 7.3825 c 0.1045285,1.907645 1.5330845,2.979062 3.20554,3.336201 V 17.625 h 2.613212 V 15.752198 C 14.89984,15.429902 16.25,14.445592 16.25,12.659897 c 0,-2.473841 -2.116702,-3.31878 -4.094032,-3.832711 z"}),O("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z M 5,20.3125 v 1.094624 H 19 V 20.3125 Z"})]}),ah=e=>L(ie,{...e,children:[O("path",{d:"m 12.75,3 h -1.5 L 6.5,14 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z M 10.13,10 12,4.98 13.87,10 Z"}),O("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),sh=e=>L(ie,{...e,children:[O("path",{d:"M 19.4,4.91 18.34,3.85 7.2,8.27 l 1.48,1.48 2.19,-0.92 3.54,3.54 -0.92,2.19 1.48,1.48 z m -6.81,3.1 4.87,-2.23 -2.23,4.87 z"}),O("path",{className:"styled info",d:"M 14.27,21 V 16.76 L 12.86,18.17 4.02,9.33 2.6,10.75 11.44,19.59 10.03,21 Z"})]}),ch=e=>L(ie,{...e,children:[O("path",{d:"M 21,12 V 10.5 L 10,5.75 v 2.1 l 2.2,0.9 v 5 l -2.2,0.9 v 2.1 z M 14,9.38 19.02,11.25 14,13.12 Z"}),O("path",{className:"styled info",d:"m 6,19.75 3,-3 H 7 V 4.25 H 5 v 12.5 H 3 Z"})]}),dh=e=>L(ie,{...e,children:[O("path",{d:"m 10,13.4375 v -1.5 l 11,-4.75 v 2.1 l -2.2,0.9 v 5 l 2.2,0.9 v 2.1 z m 7,-2.62 -5.02,1.87 5.02,1.87 z"}),O("path",{className:"styled info",d:"m 6,4.25 3,3 H 7 v 12.5 H 5 V 7.25 H 3 Z"})]}),uh=e=>L(ie,{...e,children:[O("path",{d:"M 4.49,4.21 3.43,5.27 7.85,16.4 9.33,14.92 8.41,12.73 l 3.54,-3.54 2.19,0.92 1.48,-1.48 z m 3.09,6.8 -2.22,-4.87 4.87,2.23 z"}),O("path",{className:"styled info",d:"m 20.57,9.33 h -4.24 l 1.41,1.41 -8.84,8.84 1.42,1.42 8.84,-8.84 1.41,1.41 z"})]}),hh=e=>L(ie,{...e,children:[O("path",{d:"m 12.775,5.225 h -1.5 l -4.75,11 h 2.1 l 0.9,-2.2 h 5 l 0.9,2.2 h 2.1 z m -2.62,7 1.87,-5.02 1.87,5.02 z"}),O("path",{className:"styled info",d:"M 5.8342066,2.1057288 6.7489352,3.5142877 C 4.5119738,4.8935056 2.8102304,7.136837 2.2198413,9.9143995 1.1410154,14.989875 4.1186315,19.977298 8.953265,21.515989 L 9.3732789,19.53998 C 5.6220734,18.241799 3.3289986,14.310176 4.1750146,10.329983 4.6489709,8.1001948 6.0317389,6.2990363 7.8414141,5.1965572 L 8.7807545,6.6430144 9.5761234,2.9010978 Z M 15.045094,2.470135 14.625081,4.4461449 c 3.751204,1.2981805 6.04428,5.2298043 5.198264,9.2099961 -0.476939,2.243839 -1.873607,4.05475 -3.700087,5.155302 L 15.08,17.204971 l -0.795367,3.741917 3.741916,0.795368 -0.810813,-1.248542 c 2.253817,-1.377379 3.969387,-3.630283 4.562782,-6.42199 C 22.857344,8.9962479 19.879726,4.0088265 15.045094,2.470135 Z"})]}),ph=e=>L(ie,{...e,children:[O("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),O("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),fh=e=>L(ie,{...e,children:[O("path",{d:"m 4,11 v 2 h 16 v -2 z"}),O("path",{className:"styled info",d:"m 8,19 h 3 v 4 h 2 v -4 h 3 L 12,15 Z M 16,5 H 13 V 1 H 11 V 5 H 8 l 4,4 z"})]}),mh=e=>L(ie,{...e,children:[O("path",{d:"m 4,19 v 2 h 16 v -2 z"}),O("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),gh=e=>L(ie,{...e,children:[O("path",{d:"M 2.9414063,1.1894531 H 21.058594 c 0.956941,0 1.751953,0.7950113 1.751953,1.7519532 V 3.6503906 C 22.533056,3.5835353 22.245605,3.5503497 21.958984,3.5644531 21.714123,3.574937 21.478658,3.6106011 21.248047,3.65625 V 2.7519531 H 15.693359 V 7.1679687 C 15.384511,7.43193 15.080608,7.7009831 14.777344,7.9707031 v -5.21875 H 9.2226563 V 8.3066406 H 14.400391 C 14.066225,8.6087427 13.733481,8.9137148 13.40625,9.2226563 H 9.2226563 V 12.171875 C 8.9144,12.251628 8.6073686,12.359707 8.3066406,12.498047 V 9.2226563 H 2.7519531 v 5.5546877 h 2.6621094 c -0.2529233,0.292971 -0.4887468,0.600495 -0.7089844,0.916015 h -1.953125 v 5.554688 H 2.9140625 C 2.8210423,21.766482 2.6927179,22.284969 2.5195313,22.75 1.7631952,22.557231 1.1894531,21.87003 1.1894531,21.058594 V 2.9414063 c 0,-0.9569419 0.7950113,-1.7519532 1.7519532,-1.7519532 z m -0.1894532,1.5625 V 8.3066406 H 8.3066406 V 2.7519531 Z M 22.810547,11.259766 v 9.798828 c 0,0.956941 -0.795012,1.751953 -1.751953,1.751953 h -7.134766 c 0.550597,-0.44244 1.02425,-0.975141 1.371094,-1.63086 0.156933,-0.269785 0.285005,-0.553463 0.398437,-0.841796 v 0.910156 h 5.554688 v -5.554688 h -2.777344 c 0.33283,-0.303009 0.665729,-0.606191 0.992188,-0.916015 h 1.785156 v -1.78711 c 0.536806,-0.563086 1.06071,-1.137681 1.5625,-1.730468 z"}),O("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),yh=e=>L(ie,{...e,children:[O("path",{d:"M 2.9414062 1 C 1.8801751 1 1 1.8801751 1 2.9414062 L 1 21.058594 C 1 22.016977 1.7179462 22.826507 2.6386719 22.974609 C 2.8746068 22.392265 3.0352813 21.712461 3.140625 21.058594 L 2.9414062 21.058594 L 2.9414062 15.882812 L 4.8007812 15.882812 C 5.1118517 15.428446 5.4603359 14.99253 5.8378906 14.587891 L 2.9414062 14.587891 L 2.9414062 9.4121094 L 8.1171875 9.4121094 L 8.1171875 12.800781 C 8.5414237 12.58005 8.9761389 12.414501 9.4121094 12.316406 L 9.4121094 9.4121094 L 13.480469 9.4121094 C 14.261447 8.6729624 15.062312 7.9531127 15.882812 7.2539062 L 15.882812 2.9414062 L 21.058594 2.9414062 L 21.058594 3.8867188 C 21.351078 3.8150484 21.652926 3.7673448 21.966797 3.7539062 C 22.315888 3.7367325 22.667546 3.7904677 23 3.8984375 L 23 2.9414062 C 23 1.8801751 22.119825 1 21.058594 1 L 2.9414062 1 z M 2.9414062 2.9414062 L 8.1171875 2.9414062 L 8.1171875 8.1171875 L 2.9414062 8.1171875 L 2.9414062 2.9414062 z M 9.4121094 2.9414062 L 14.587891 2.9414062 L 14.587891 8.1171875 L 9.4121094 8.1171875 L 9.4121094 2.9414062 z M 23 10.738281 C 22.386197 11.489898 21.732626 12.210989 21.058594 12.916016 L 21.058594 14.587891 L 19.388672 14.587891 C 18.927998 15.026276 18.459668 15.457175 17.986328 15.882812 L 21.058594 15.882812 L 21.058594 21.058594 L 15.882812 21.058594 L 15.882812 18.917969 C 15.772781 19.675711 15.520363 20.414383 15.130859 21.083984 C 14.70264 21.89323 14.079246 22.511928 13.347656 23 L 21.058594 23 C 22.119825 23 23 22.119825 23 21.058594 L 23 10.738281 z "}),O("path",{className:"styled info",d:"m 12.505348,21.378275 c -1.610018,1.59344 -7.6916825,2.243027 -7.9528805,2.270244 -0.01156,0 -0.02722,0.0041 -0.03901,0.0041 -0.148099,0 -0.28458,-0.08497 -0.350824,-0.220565 -0.07024,-0.146921 -0.04284,-0.324809 0.07406,-0.440942 1.465922,-1.458031 1.949233,-3.380252 2.097326,-4.733861 0.120881,-1.125477 0.69383,-2.16582 1.574981,-2.858094 0.822528,-0.649637 1.836183,-0.935877 2.8576335,-0.815985 0.42887,0.05023 0.81093,0.158623 1.130507,0.321028 0.233946,0.112169 0.436671,0.259091 0.60816,0.429233 0.0078,0.0078 0.01561,0.01548 0.02341,0.02322 0.09746,0.09668 0.187118,0.197336 0.272972,0.301767 0.04683,0.05419 0.08964,0.11217 0.132495,0.170143 0.07405,0.10065 0.144288,0.204894 0.214338,0.313288 0.13649,0.228123 0.253361,0.471724 0.343021,0.719298 0.57317,1.519926 0.241747,3.299001 -0.986217,4.517202 z M 23.452243,5.2319105 c -0.350822,-0.344256 -0.982414,-0.262866 -2.947241,1.245416 -1.360466,1.044309 -3.048553,2.552567 -4.756228,4.2464595 -1.246632,1.233519 -2.404769,2.473618 -3.348148,3.579661 0.232611,0.129548 0.457421,0.286661 0.655576,0.482488 0.14048,0.139741 0.247839,0.259845 0.350633,0.385238 0.04569,0.0525 0.10165,0.126521 0.15647,0.200547 0.08337,0.113688 0.161801,0.230007 0.240607,0.351243 0.127733,0.213008 0.227665,0.420169 0.316562,0.627154 0.427914,-0.355587 0.875058,-0.742164 1.339903,-1.159462 0.787488,-0.707791 1.62181,-1.488824 2.455937,-2.3167 1.703678,-1.689927 3.224033,-3.3685435 4.280516,-4.7221515 1.516553,-1.949003 1.598422,-2.575579 1.255405,-2.919831 z"})]}),bh=e=>O(ie,{...e,children:O("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),wh=e=>O(ie,{...e,children:O("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),vh=e=>O(ie,{...e,children:O("path",{d:"m 1.6875,1.0761719 h 5.5 c 0.1623225,0 0.3189114,0.063052 0.4335937,0.1777343 C 7.7357798,1.3685879 7.7988281,1.5251759 7.7988281,1.6875 v 9.757813 L 14.699219,4.5449219 c 0.114721,-0.11458 0.271299,-0.1777344 0.433594,-0.1777344 0.162295,0 0.318906,0.063183 0.433593,0.1777344 l 3.888672,3.8886719 c 0.114587,0.1147184 0.177735,0.2712971 0.177734,0.4335937 0,0.1622964 -0.06318,0.3189061 -0.177734,0.4335938 l -6.90039,6.9003907 H 22.3125 c 0.162324,0 0.318911,0.06305 0.433594,0.177734 0.114685,0.114682 0.177734,0.27127 0.177734,0.433594 v 5.5 c 0,0.162322 -0.06305,0.31891 -0.177734,0.433594 -0.114681,0.114685 -0.271269,0.177734 -0.433594,0.177734 H 4.421875 C 3.5331871,22.918718 2.6814293,22.563525 2.0546875,21.933594 1.4277775,21.303864 1.0770706,20.451103 1.0761719,19.5625 V 1.6875 c 0,-0.1623225 0.063052,-0.3189103 0.1777343,-0.4335938 C 1.3685868,1.1392213 1.5251762,1.0761719 1.6875,1.0761719 Z M 2.2988281,2.2988281 V 5.2011719 H 6.5761719 V 2.2988281 Z M 15.130859,5.84375 13.080078,7.8945312 16.103516,10.917969 18.15625,8.8671875 Z M 2.2988281,6.4238281 V 9.3261719 H 6.5761719 V 6.4238281 Z M 12.214844,8.7597656 10.162109,10.8125 13.1875,13.835938 15.238281,11.785156 Z M 2.2988281,10.548828 v 2.902344 h 4.2773438 v -2.902344 z m 7,1.128906 -1.5,1.498047 v 1.103516 l 2.4707029,2.472656 0.373047,-0.373047 1.679688,-1.677734 z m -7,2.996094 V 19.5625 c 6.51e-4,0.566698 0.2261684,1.108818 0.6269532,1.509766 0.4008158,0.400706 0.9447472,0.62827 1.5117187,0.628906 C 5.0043265,21.700521 5.5466134,21.47308 5.9472656,21.072266 6.3481233,20.671618 6.5755363,20.12945 6.5761719,19.5625 v -4.888672 z m 5.5,1.337891 v 3.210937 L 9.40625,17.617187 Z m 3.5312499,1.412109 -0.78125,0.78125 v 3.496094 h 2.902344 v -4.277344 z m 3.34375,0 v 4.277344 h 2.902344 v -4.277344 z m 4.125,0 v 4.277344 h 2.902344 v -4.277344 z m -9.4726561,2.005859 -2.2714844,2.271485 h 2.2714844 z"})}),xh=e=>L(ie,{...e,children:[O("path",{d:"m 6.3819062,2.5159671 c -0.4338889,0 -0.7857055,0.3518167 -0.7857055,0.7857177 V 20.587402 c 0,0.433902 0.3518166,0.785718 0.7857055,0.785718 H 18.953342 c 0.433889,0 0.785705,-0.351816 0.785705,-0.785718 V 7.2302615 h -3.928564 c -0.433901,0 -0.785718,-0.3518167 -0.785718,-0.7857178 V 2.5159671 Z m -2.357141,0.7857177 c 0,-1.3018621 1.0552788,-2.35714102 2.357141,-2.35714102 h 9.4285768 c 0.208352,0 0.408296,0.0827447 0.555609,0.23010782 l 4.714283,4.7142821 c 0.147327,0.1473145 0.230107,0.3472578 0.230107,0.55561 V 20.587402 c 0,1.301863 -1.055278,2.357142 -2.35714,2.357142 H 6.3819062 c -1.3018622,0 -2.357141,-1.055279 -2.357141,-2.357142 z"}),O("path",{className:"styled info",d:"M 13.729115,7.5208126 H 11.903278 V 11.108007 H 8.3163096 v 1.825837 h 3.5869684 v 3.586969 h 1.825837 v -3.586969 h 3.587195 v -1.825837 h -3.587195 z"})]}),Sh=e=>O(ie,{...e,children:O("path",{d:"m 21.230627,10.984379 c -0.103549,0.265939 -0.204749,0.531861 -0.308302,0.80018 -0.244758,0.640136 -0.491882,1.277905 -0.736619,1.918041 -0.296532,0.77195 -0.595423,1.546223 -0.891972,2.31813 -0.256524,0.666043 -0.513056,1.332042 -0.769584,2.000408 -0.122381,0.320068 -0.244757,0.640136 -0.369488,0.960183 -0.0071,0.01647 -0.01412,0.03295 -0.01883,0.04942 0.0306,-0.07531 0.06355,-0.15062 0.09414,-0.22593 -0.05884,0.138855 -0.129439,0.273001 -0.218868,0.393024 0.04942,-0.06354 0.09885,-0.127085 0.148266,-0.190629 -0.05884,0.07531 -0.122381,0.141204 -0.197691,0.200041 0.06354,-0.04942 0.127084,-0.09885 0.190629,-0.148266 -0.05648,0.04001 -0.112965,0.07531 -0.17651,0.103549 0.07531,-0.0306 0.150621,-0.06355 0.225931,-0.09414 -0.08002,0.03295 -0.160037,0.05413 -0.244758,0.06825 0.08237,-0.01177 0.167093,-0.02353 0.249466,-0.03295 -0.17651,0.02354 -0.360077,0.01177 -0.536596,0.01177 H 16.596651 12.981767 8.5974282 4.7848441 c -0.6071714,0 -1.2143859,0.0047 -1.8239241,0 -0.037655,0 -0.07531,-0.0024 -0.115319,-0.0047 0.082372,0.01177 0.1670935,0.02353 0.2494657,0.03295 -0.070602,-0.0094 -0.1388548,-0.02824 -0.204749,-0.05177 0.07531,0.03059 0.1506203,0.06354 0.2259303,0.09414 -0.063545,-0.02824 -0.1247306,-0.06119 -0.1812132,-0.1012 0.063544,0.04942 0.1270848,0.09885 0.1906293,0.148266 -0.063544,-0.04942 -0.120027,-0.105903 -0.1694477,-0.169447 0.080018,0.138854 0.1623858,0.277705 0.2424039,0.416559 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023534,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063544,-0.216514 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.22593 0.1529742,-0.338895 0.2777048,-0.689539 0.4094974,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366189,-1.915717 0.2965322,-0.771949 0.593056,-1.546223 0.8919727,-2.31813 0.2565232,-0.670733 0.5154222,-1.3391 0.7719499,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765505,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094137,0.225931 0.058836,-0.131793 0.1270845,-0.256524 0.2141645,-0.371843 -0.049421,0.06354 -0.098846,0.127085 -0.1482661,0.190629 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223576 -0.063544,0.04942 -0.1270845,0.09885 -0.190629,0.148266 0.070602,-0.05413 0.1435581,-0.09649 0.2259303,-0.134146 -0.07531,0.03059 -0.1506203,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670939,0.02353 -0.2494658,0.03295 0.1718016,-0.02118 0.3506609,-0.0094 0.5224799,-0.0094 h 1.1014247 3.6642876 4.441143 3.777253 c 0.569517,0 1.139076,-0.0024 1.708592,0 0.09414,0 0.19063,0.0024 0.284768,0.01412 -0.08237,-0.01177 -0.167094,-0.02353 -0.249466,-0.03295 0.06119,0.0094 0.122381,0.02353 0.178859,0.04472 -0.07531,-0.03059 -0.15062,-0.06354 -0.22593,-0.09414 0.0353,0.01412 0.06589,0.03295 0.09649,0.05413 -0.06354,-0.04942 -0.127084,-0.09885 -0.190629,-0.148267 0.01883,0.01647 0.0353,0.03059 0.04942,0.04942 -0.04942,-0.06354 -0.09885,-0.127085 -0.148266,-0.190629 0.01412,0.01883 0.02589,0.04001 0.03765,0.06354 -0.03059,-0.07531 -0.06354,-0.15062 -0.09414,-0.22593 0.01177,0.03295 0.02118,0.06354 0.02589,0.09885 -0.01177,-0.08237 -0.02353,-0.167094 -0.03295,-0.249466 0.0024,0.04001 0.0024,0.08002 -0.0024,0.122381 0.01177,-0.08237 0.02353,-0.167094 0.03295,-0.249466 -0.01647,0.112965 -0.05177,0.221223 -0.09414,0.32713 0.03059,-0.07531 0.06354,-0.15062 0.09414,-0.22593 -0.0047,0.01412 -0.01177,0.02589 -0.01647,0.04001 -0.06825,0.108258 -0.105904,0.223577 -0.110612,0.350661 -0.02824,0.124731 -0.02353,0.249466 0.01647,0.376551 0.06119,0.218868 0.228284,0.454227 0.433011,0.562459 0.218868,0.115319 0.482458,0.174155 0.72487,0.09414 0.216515,-0.0706 0.468343,-0.214164 0.562459,-0.433011 0.07296,-0.171802 0.162386,-0.348312 0.197691,-0.534229 0.04707,-0.254169 0.05884,-0.449493 0.0071,-0.698963 C 23.085384,10.14653 22.838276,9.83117 22.534673,9.68055 22.233432,9.527576 21.908652,9.485213 21.572124,9.482859 h -0.400086 -2.167511 -3.348932 -3.68077 -3.2453915 -1.96512 c -0.1341464,0 -0.270647,-0.0047 -0.4047895,0.0094 -0.3341874,0.03765 -0.6542509,0.115319 -0.9366854,0.310656 -0.2918244,0.200041 -0.5295376,0.449494 -0.7083882,0.757792 -0.094138,0.160036 -0.1600361,0.336541 -0.2282842,0.508321 -0.2777051,0.724871 -0.5577682,1.449741 -0.8354688,2.172245 -0.4330112,1.127284 -0.866066,2.254612 -1.3014443,3.381896 -0.2894748,0.750734 -0.5789408,1.503835 -0.8660659,2.254612 -0.014121,0.03766 -0.028241,0.07531 -0.044717,0.112965 0.030595,-0.07531 0.063544,-0.15062 0.094138,-0.22593 -0.1200271,0.263585 -0.2000409,0.47071 -0.2118109,0.762525 -0.00471,0.120027 0.014121,0.24005 0.035302,0.355369 0.040009,0.195337 0.1412041,0.353015 0.2659393,0.508322 0.2165145,0.270647 0.5765741,0.491882 0.9178362,0.557768 0.1506203,0.02824 0.3012406,0.04707 0.4542277,0.04707 h 0.5106883 2.3134399 3.3748389 3.6501724 3.139484 1.840407 c 0.256523,0 0.513055,-0.0024 0.764849,-0.07531 0.30124,-0.08708 0.578941,-0.249466 0.800181,-0.473034 0.263585,-0.263585 0.418913,-0.578941 0.557768,-0.920203 0.01883,-0.04942 0.03765,-0.09885 0.05648,-0.148266 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.430688,-1.117903 0.859008,-2.235763 1.289696,-3.353666 0.284767,-0.738986 0.567193,-1.477971 0.851951,-2.216957 0.01412,-0.03766 0.02824,-0.07296 0.04236,-0.110611 0.08237,-0.214165 0.01647,-0.534228 -0.09414,-0.72487 -0.115319,-0.195338 -0.338895,-0.381259 -0.562458,-0.433012 -0.24005,-0.05413 -0.510689,-0.04236 -0.724871,0.09414 -0.209457,0.143558 -0.331833,0.32713 -0.425971,0.567192 z M 17.898048,6.835008 v 3.146542 0.437745 c 0.313006,-0.313006 0.628388,-0.628388 0.941376,-0.941376 H 17.872141 15.462219 12.379196 9.3644251 7.1686842 c -0.6048476,0 -1.2308681,-0.04472 -1.7556719,0.329479 -0.4259712,0.303595 -0.7036976,0.69664 -0.8942966,1.179055 -0.016474,0.04001 -0.030595,0.08237 -0.047071,0.124731 -0.08943,0.232992 -0.1788593,0.465976 -0.2682935,0.698963 -0.3247757,0.844894 -0.6495602,1.68742 -0.9743401,2.532313 -0.3647851,0.948434 -0.7295611,1.899235 -1.0943633,2.847668 -0.2212223,0.571884 -0.4401122,1.146134 -0.6613086,1.718017 -0.011767,0.02824 -0.021181,0.05648 -0.032948,0.08473 0.030595,-0.07531 0.063544,-0.15062 0.094137,-0.22593 -0.1176729,0.258877 -0.1835671,0.44717 -0.2094567,0.729561 -0.01412,0.157682 0.00471,0.329479 0.056483,0.480091 0.5742503,-0.242404 1.1461337,-0.482458 1.7203839,-0.72487 -0.035302,-0.04942 -0.065894,-0.1012 -0.091784,-0.157683 0.030595,0.07531 0.063545,0.150621 0.094137,0.225931 -0.028241,-0.0706 -0.049421,-0.138855 -0.06119,-0.214165 0.011767,0.08237 0.023534,0.167094 0.032948,0.249466 -0.018827,-0.160036 -0.00706,-0.32713 -0.00706,-0.489516 V 17.813782 14.311863 10.0639 6.4019361 c 0,-0.5813076 -0.00471,-1.1649394 0,-1.7462474 0,-0.037655 0.00235,-0.077664 0.00471,-0.115319 -0.011767,0.082372 -0.023535,0.1670938 -0.032948,0.2494657 0.00941,-0.072956 0.028241,-0.1435583 0.056483,-0.2118106 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.2259303 0.028241,-0.065894 0.063544,-0.1270848 0.108257,-0.1859212 -0.049421,0.063544 -0.098845,0.1270845 -0.1482661,0.190629 0.044717,-0.056483 0.094138,-0.1059032 0.1506203,-0.15062 -0.063544,0.049421 -0.1270848,0.098846 -0.1906293,0.1482661 0.058836,-0.042362 0.1200271,-0.077664 0.1859213,-0.1082571 -0.07531,0.030595 -0.1506203,0.063544 -0.2259303,0.094137 0.068248,-0.028241 0.1388545,-0.044717 0.2118106,-0.056483 -0.082372,0.011768 -0.1670935,0.023535 -0.2494658,0.032948 0.1929832,-0.018827 0.3906703,-0.00471 0.5836318,-0.00471 h 1.2473072 2.873532 0.6636754 C 7.9429095,4.60862 7.6722712,4.453292 7.401628,4.2979723 7.8887769,4.938108 8.3736017,5.578244 8.8607503,6.2183797 8.9289983,6.3101637 8.9996049,6.3995929 9.0678531,6.4913809 9.2184733,6.6890719 9.3785094,6.8726392 9.6350456,6.929126 9.7056476,6.9456 9.8186129,6.959721 9.891569,6.962074 h 0.049421 0.642503 2.704105 3.071232 c 0.548343,0 1.099053,-0.00471 1.647397,0 0.03765,0 0.07531,0.00235 0.115319,0.00471 -0.08237,-0.011767 -0.167094,-0.023534 -0.249466,-0.032948 0.07296,0.00941 0.143559,0.028241 0.211811,0.056483 -0.07531,-0.030595 -0.15062,-0.063545 -0.22593,-0.094137 0.06589,0.028241 0.127085,0.063544 0.185921,0.108257 -0.06354,-0.049421 -0.127085,-0.098845 -0.190629,-0.1482661 0.05648,0.044717 0.105903,0.094137 0.15062,0.15062 -0.04942,-0.063545 -0.09885,-0.1270845 -0.148266,-0.190629 0.04236,0.058836 0.07766,0.1200271 0.108257,0.1859213 -0.03059,-0.07531 -0.06354,-0.1506203 -0.09414,-0.2259303 0.02824,0.068248 0.04472,0.1388545 0.05648,0.2118106 -0.01177,-0.082372 -0.02354,-0.1670938 -0.03295,-0.2494658 0.0024,0.032948 0.0047,0.065894 0.0047,0.096492 0.0047,0.2447577 0.1012,0.4918825 0.275351,0.6660425 0.162386,0.1623858 0.430688,0.2871209 0.666043,0.2753509 0.501263,-0.023534 0.9508,-0.4142054 0.941376,-0.9413763 -0.01883,-0.9672827 -0.793123,-1.7415564 -1.760363,-1.7556716 -0.110611,-0.00235 -0.218868,0 -0.32948,0 h -1.795679 -2.525255 -2.311073 c -0.383613,0 -0.769583,-0.00941 -1.1531914,0 H 9.8892086 C 10.159856,5.2346612 10.430495,5.3899892 10.701138,5.5453089 10.183391,4.8651512 9.6679691,4.1850366 9.150223,3.5048786 9.117275,3.4601618 9.0819748,3.415449 9.0490234,3.3707322 9.0419632,3.3636719 9.0372561,3.354258 9.0301959,3.347198 8.8960493,3.1730422 8.7854381,3.0483116 8.5783352,2.9612316 8.4300691,2.8976871 8.4182991,2.8859213 8.2135504,2.8812136 c -0.070602,-0.00235 -0.1388545,0 -0.2094567,0 H 6.80619 3.5984533 c -0.2188681,0 -0.4353783,-0.00471 -0.6542509,0 -0.3271299,0.00471 -0.6731002,0.091784 -0.9460669,0.2800586 -0.3412493,0.2329922 -0.5671925,0.5318615 -0.715446,0.9178366 -0.072956,0.1859213 -0.094137,0.3930238 -0.094137,0.593056 -0.00235,0.4353786 0,0.8707569 0,1.3061785 v 2.6711407 3.372472 3.334817 2.635853 c 0,0.409498 -0.00235,0.818987 0,1.228502 0.00235,0.338895 0.091784,0.70133 0.2894748,0.979031 0.1388545,0.195337 0.3177138,0.37655 0.5624586,0.433011 0.2094567,0.04707 0.4142057,0.03766 0.6119054,-0.04707 0.4071434,-0.171801 0.6989637,-0.663675 0.5460196,-1.110802 -0.011767,-0.0353 -0.021181,-0.0706 -0.025888,-0.105903 0.011767,0.08237 0.023535,0.167094 0.032948,0.249466 -0.00235,-0.04236 -0.00235,-0.08237 0.00235,-0.122381 -0.011767,0.08237 -0.023535,0.167093 -0.032948,0.249465 0.011767,-0.07531 0.032948,-0.145912 0.063545,-0.216514 -0.030595,0.07531 -0.063545,0.15062 -0.094138,0.22593 0.1529742,-0.338895 0.2777051,-0.689539 0.4094977,-1.035492 0.2447577,-0.637769 0.4918825,-1.275581 0.7366186,-1.915717 0.2965325,-0.771949 0.5930563,-1.546223 0.8919727,-2.31813 0.2565235,-0.670733 0.5154225,-1.3391 0.7719502,-2.009833 0.1247306,-0.32713 0.2541693,-0.651884 0.3765502,-0.981398 0.00235,-0.0047 0.00471,-0.0094 0.00471,-0.01412 -0.030595,0.07531 -0.063544,0.15062 -0.094138,0.22593 0.058837,-0.131793 0.1270848,-0.256523 0.2141648,-0.371843 -0.049421,0.06354 -0.098845,0.127085 -0.1482661,0.19063 0.065894,-0.08237 0.1388545,-0.157682 0.2212222,-0.223577 -0.063544,0.04942 -0.1270848,0.09885 -0.1906293,0.148267 0.070602,-0.05413 0.1435584,-0.09649 0.2259303,-0.134147 -0.07531,0.03059 -0.15062,0.06354 -0.2259303,0.09414 0.08943,-0.03766 0.1788593,-0.06119 0.2730013,-0.07531 -0.082372,0.01177 -0.1670936,0.02354 -0.2494658,0.03295 0.1435584,-0.01647 0.2941786,-0.0094 0.4401122,-0.0094 h 0.8731262 2.9394612 3.574862 3.120678 c 0.503631,0 1.004938,0.0071 1.508569,0 h 0.02118 c 0.508321,0 0.941376,-0.430688 0.941376,-0.941376 V 7.2703743 6.8326289 c 0,-0.4918825 -0.433011,-0.9649159 -0.941376,-0.9413759 -0.508322,0.025888 -0.941376,0.4165592 -0.941376,0.9437427 z"})}),Ch=e=>L(ie,{...e,children:[O("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731423 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605952 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z "}),O("path",{className:"styled secondary_light",d:"m 7.7187557,5.6810989 h 3.9153913 c 0.116687,0 0.211776,0.096094 0.211776,0.2127813 v 0.8457422 c 0,0.1166881 -0.09489,0.2117769 -0.211776,0.2117769 H 7.7187557 c -0.116688,0 -0.2117768,-0.094892 -0.2117768,-0.2117769 V 5.8938802 c 0,-0.116688 0.094893,-0.2127813 0.2117768,-0.2127813 z M 8.7772903,9.7481656 V 12.094422 H 13.203582 V 9.7481656 Z m 0,3.6164134 v 2.346263 H 13.203582 V 13.364579 Z M 14.473445,12.094422 H 17.03249 V 9.7481656 h -2.559045 z m 2.559045,1.270157 h -2.559045 v 2.346263 h 2.559045 z m 1.270159,-3.8291948 v 7.2330098 c 0,0.116688 -0.09489,0.211766 -0.211767,0.211766 H 7.7185701 c -0.116688,0 -0.2117768,-0.09489 -0.2117768,-0.211766 V 8.6898058 c 0,-0.116688 0.094893,-0.2117769 0.2117768,-0.2117769 H 18.090882 c 0.116688,0 0.211767,0.094893 0.211767,0.2117769 z"}),O("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),kh=e=>L(ie,{...e,children:[O("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),O("path",{className:"styled secondary_light",d:"M 10.363689,16.028891 10.345659,15.996611 9.4734966,14.37091 8.5619879,16.028912 H 7.3633702 L 8.8418569,13.567063 7.3668314,10.90392 H 8.63729 l 0.018027,0.03581 0.872161,1.729842 0.907731,-1.765668 h 1.198618 l -1.478485,2.616296 1.482266,2.512154 z m 4.665607,0 h -2.953777 v -5.124987 h 1.137804 l -2.54e-4,4.102093 h 1.833979 z m 3.309014,-0.330196 h -2.55e-4 c -0.364996,0.290393 -0.822367,0.439348 -1.288281,0.419821 -0.483409,-0.01051 -0.964575,-0.07059 -1.43568,-0.179494 l -0.319438,-0.06109 0.118416,-0.907988 h 0.06109 c 0.496925,0.07435 0.997838,0.118671 1.500281,0.132932 0.484409,0 0.717711,-0.193763 0.717711,-0.585048 0.0084,-0.126168 -0.05033,-0.247587 -0.154462,-0.319436 -0.217293,-0.125426 -0.451866,-0.218549 -0.696178,-0.276375 -0.450111,-0.10039 -0.871457,-0.302915 -1.230924,-0.592056 -0.250844,-0.261105 -0.380767,-0.61484 -0.358989,-0.976048 -0.03205,-0.442856 0.145944,-0.875173 0.480903,-1.16658 0.372757,-0.27187 0.827876,-0.4063 1.288473,-0.380266 0.468637,0.0088 0.935799,0.05808 1.396139,0.147202 l 0.322941,0.06109 -0.09338,0.922278 h -0.0646 c -0.685413,-0.07536 -1.17709,-0.1149 -1.456957,-0.1149 -0.739246,0 -0.739246,0.35899 -0.739246,0.46663 v -2.53e-4 c -2.54e-4,0.124163 0.06334,0.239575 0.168479,0.305162 0.293896,0.149452 0.601566,0.269614 0.918754,0.35899 0.387778,0.100895 0.747253,0.288643 1.05167,0.548998 0.22756,0.265109 0.339963,0.610077 0.312175,0.958295 0.03504,0.464132 -0.141691,0.919267 -0.480905,1.238164 z m 3.631947,0.330195 v -0.03228 l -0.879468,-1.625958 -0.911511,1.658 -1.1951,2.55e-4 1.482273,-2.461843 -1.475286,-2.663143 h 1.270463 l 0.01803,0.0358 0.872162,1.729842 0.907988,-1.765667 h 1.184331 l -1.478492,2.616295 1.482272,2.512152 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),O("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),Eh=e=>L(ie,{...e,children:[O("path",{d:"M 6.7070312 0.16992188 C 5.4051693 0.16992188 4.3496094 1.2254824 4.3496094 2.5273438 L 4.3496094 7.8164062 L 5.921875 7.8164062 L 5.921875 2.5273438 C 5.921875 2.093443 6.2731425 1.7421875 6.7070312 1.7421875 L 15.349609 1.7421875 L 15.349609 5.6699219 C 15.349609 6.1038229 15.702818 6.4550781 16.136719 6.4550781 L 20.064453 6.4550781 L 20.064453 8.1074219 L 21.636719 8.1074219 L 21.636719 5.6699219 C 21.636719 5.4615699 21.553577 5.2605954 21.40625 5.1132812 L 16.691406 0.40039062 C 16.544093 0.25302252 16.345071 0.16992188 16.136719 0.16992188 L 6.7070312 0.16992188 z M 20.064453 18.873047 L 20.064453 19.8125 C 20.064453 20.246402 19.713186 20.597656 19.279297 20.597656 L 9.1601562 20.597656 L 7.5878906 22.169922 L 19.279297 22.169922 C 20.581159 22.169922 21.636719 21.114363 21.636719 19.8125 L 21.636719 18.873047 L 20.064453 18.873047 z "}),O("path",{className:"styled secondary_light",d:"m 22.499719,10.752378 -1.867399,5.486926 h -1.267987 l -1.859714,-5.486926 h 1.175769 l 1.02976,3.266027 q 0.03074,0.08453 0.08453,0.315076 0.06148,0.222858 0.122956,0.476455 0.06148,0.245913 0.08453,0.414978 0.02305,-0.169065 0.07685,-0.414978 0.06148,-0.253597 0.122956,-0.476455 0.06148,-0.230544 0.08453,-0.315076 l 1.037444,-3.266027 z m -5.302496,3.965341 q 0,0.730053 -0.530249,1.168085 -0.522565,0.430347 -1.490846,0.430347 -0.868379,0 -1.552323,-0.330445 v -1.083552 q 0.391923,0.169065 0.8069,0.315075 0.422663,0.138326 0.83764,0.138326 0.430348,0 0.607097,-0.16138 0.184435,-0.169065 0.184435,-0.422663 0,-0.207488 -0.146011,-0.353499 -0.138326,-0.146011 -0.376554,-0.268967 -0.238228,-0.130641 -0.545618,-0.276652 -0.19212,-0.09222 -0.414978,-0.215173 -0.222858,-0.130641 -0.430347,-0.315076 -0.199804,-0.192119 -0.330445,-0.461086 -0.130641,-0.268967 -0.130641,-0.645521 0,-0.737738 0.49951,-1.14503 0.49951,-0.414978 1.360204,-0.414978 0.430347,0 0.814586,0.0999 0.391923,0.0999 0.814585,0.284337 l -0.376553,0.906802 q -0.376554,-0.153695 -0.67626,-0.238227 -0.299706,-0.08453 -0.614782,-0.08453 -0.330445,0 -0.507195,0.153695 -0.176749,0.153696 -0.176749,0.399609 0,0.292021 0.261282,0.461086 0.261282,0.169065 0.776162,0.414977 0.422662,0.199804 0.714683,0.414978 0.299706,0.215173 0.461087,0.507195 0.16138,0.292021 0.16138,0.722368 z m -5.801995,-3.073908 q -0.668575,0 -1.022074,0.49951 -0.3535,0.49951 -0.3535,1.367889 0,0.876064 0.322761,1.360205 0.330445,0.476455 1.052813,0.476455 0.33813,0 0.668575,-0.07685 0.33813,-0.07685 0.730053,-0.215174 v 0.975966 q -0.361184,0.14601 -0.714683,0.215173 -0.3535,0.06916 -0.791532,0.06916 -0.845324,0 -1.3986278,-0.345814 -0.5456187,-0.3535 -0.8069009,-0.983651 -0.2612821,-0.637836 -0.2612821,-1.483161 0,-0.829955 0.299706,-1.467791 0.299706,-0.637836 0.868379,-0.99902 0.5763578,-0.361184 1.4063128,-0.361184 0.407293,0 0.814586,0.107587 0.414977,0.0999 0.791531,0.276652 l -0.376554,0.945226 q -0.30739,-0.14601 -0.622466,-0.253597 -0.307391,-0.107587 -0.607097,-0.107587 z M 23.139315,8.7167969 H 7.4504548 c -0.4289405,0 -0.7768148,0.347658 -0.7768148,0.776813 V 17.24011 c 0,0.206119 0.081937,0.403576 0.2275848,0.549445 0.145652,0.145651 0.3433235,0.227367 0.54923,0.227367 H 23.139315 c 0.205907,0 0.403578,-0.08172 0.54923,-0.227367 0.145653,-0.145869 0.227586,-0.343326 0.227586,-0.549445 V 9.4936099 c 0,-0.206121 -0.08194,-0.403577 -0.227586,-0.549446 -0.145652,-0.145652 -0.343323,-0.227367 -0.54923,-0.227367 z"}),O("path",{className:"styled info",d:"m 8.9270053,19.509881 h -3.3 V 8.5098782 H 3.4270047 V 19.509881 H 0.127005 l 4.3999997,4.4 z"})]}),_h=e=>L(ie,{...e,children:[O("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),O("path",{className:"styled info",d:"m 12,7.0668288 c -2.2088889,0 -4,1.7911111 -4,3.9999992 0,2.208889 1.7911111,4 4,4 2.208889,0 4,-1.791111 4,-4 0,-0.204445 -0.01778,-0.408889 -0.04445,-0.604445 C 15.52,11.071273 14.808889,11.466828 14,11.466828 c -1.324445,0 -2.4,-1.075555 -2.4,-2.3999992 0,-0.8044445 0.395555,-1.52 1.004445,-1.9555555 -0.195556,-0.026667 -0.4,-0.044444 -0.604445,-0.044444 z"})]}),Th=e=>L(ie,{...e,children:[O("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}),O("path",{className:"styled info",d:"m 12,9.015354 c -1.003636,0 -1.818182,0.8145452 -1.818182,1.818181 0,1.003636 0.814546,1.818182 1.818182,1.818182 1.003636,0 1.818182,-0.814546 1.818182,-1.818182 0,-1.0036358 -0.814546,-1.818181 -1.818182,-1.818181 z m -3.6363636,2.181817 h 0.7272727 c 0.2,0 0.3636364,-0.163636 0.3636364,-0.363636 0,-0.2 -0.1636364,-0.363636 -0.3636364,-0.363636 H 8.3636364 C 8.1636364,10.469899 8,10.633535 8,10.833535 c 0,0.2 0.1636364,0.363636 0.3636364,0.363636 z m 6.5454546,0 h 0.727273 c 0.2,0 0.363636,-0.163636 0.363636,-0.363636 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 h -0.727273 c -0.2,0 -0.363636,0.163636 -0.363636,0.363636 0,0.2 0.163636,0.363636 0.363636,0.363636 z M 11.636364,7.1971724 v 0.7272727 c 0,0.2 0.163636,0.3636364 0.363636,0.3636364 0.2,0 0.363636,-0.1636364 0.363636,-0.3636364 V 7.1971724 C 12.363636,6.9971724 12.2,6.833536 12,6.833536 c -0.2,0 -0.363636,0.1636364 -0.363636,0.3636364 z m 0,6.5454536 v 0.727273 c 0,0.2 0.163636,0.363636 0.363636,0.363636 0.2,0 0.363636,-0.163636 0.363636,-0.363636 v -0.727273 c 0,-0.2 -0.163636,-0.363636 -0.363636,-0.363636 -0.2,0 -0.363636,0.163636 -0.363636,0.363636 z M 9.8145455,8.1353542 C 9.6727273,7.993536 9.44,7.993536 9.3018182,8.1353542 9.16,8.2771724 9.16,8.5098996 9.3018182,8.6480815 L 9.6872727,9.033536 c 0.1418182,0.1418178 0.3745453,0.1418178 0.5127273,0 0.138182,-0.141818 0.141818,-0.3745455 0,-0.5127273 z m 4.4981815,4.4981808 c -0.141818,-0.141818 -0.374545,-0.141818 -0.512727,0 -0.141818,0.141818 -0.141818,0.374545 0,0.512727 l 0.385455,0.385455 c 0.141818,0.141818 0.374545,0.141818 0.512727,0 0.141818,-0.141818 0.141818,-0.374546 0,-0.512727 z m 0.385455,-3.9854535 c 0.141818,-0.1418182 0.141818,-0.3745455 0,-0.5127273 -0.141818,-0.1418182 -0.374546,-0.1418182 -0.512727,0 L 13.8,8.5208087 c -0.141818,0.1418182 -0.141818,0.3745453 0,0.5127273 0.141818,0.1381818 0.374545,0.1418178 0.512727,0 z M 10.2,13.146262 c 0.141818,-0.141818 0.141818,-0.374545 0,-0.512727 -0.141818,-0.141818 -0.3745455,-0.141818 -0.5127273,0 L 9.3018182,13.01899 c -0.1418182,0.141818 -0.1418182,0.374545 0,0.512727 0.1418182,0.138182 0.3745454,0.141818 0.5127273,0 z"})]}),Mh=e=>L(ie,{...e,children:[O("path",{d:"m 11.990234,4.5 c -1.4,0 -2.7404684,0.2492188 -3.9804684,0.6992188 L 10.169922,7.359375 C 10.739922,7.129375 11.35,7 12,7 c 2.76,0 5,2.24 5,5 0,0.65 -0.129375,1.260078 -0.359375,1.830078 L 19.560547,16.75 c 1.51,-1.26 2.699687,-2.89 3.429687,-4.75 -1.73,-4.39 -6,-7.5 -11,-7.5 z M 4.4667969,7.2363281 C 2.9391014,8.4988579 1.7360476,10.131572 1,12 c 1.73,4.39 6,7.5 11,7.5 1.421129,0 2.781865,-0.254758 4.039062,-0.712891 L 13.867188,16.619141 C 13.287518,16.858524 12.661535,17 12,17 9.24,17 7,14.76 7,12 7,11.342179 7.1400222,10.719516 7.3769531,10.142578 Z m 7.5429691,1.7734375 -0.169922,0.00977 3.15039,3.1503904 0.01953,-0.160156 c 0,-1.66 -1.34,-3 -3,-3 z M 9.0136719,11.777344 C 9.0071589,11.851577 9,11.925377 9,12 c 0,1.66 1.34,3 3,3 0.07662,0 0.152316,-0.0088 0.228516,-0.01563 z"}),O("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),Dh=e=>O(ie,{...e,children:O("path",{d:"m 12.014585,1.0145787 c -2.9173083,0 -5.7150653,1.1589573 -7.7781146,3.2218854 -2.0630492,2.0629281 -3.2218854,4.860625 -3.2218854,7.7781139 0,2.91749 1.1589576,5.715066 3.2218854,7.778115 2.0629284,2.063049 4.8606245,3.221885 7.7781146,3.221885 2.91749,0 5.715066,-1.158957 7.778115,-3.221885 2.063049,-2.062929 3.221885,-4.860625 3.221885,-7.778115 0,-2.9174889 -1.158957,-5.7150648 -3.221885,-7.7781139 -2.062929,-2.06305 -4.860625,-3.2218854 -7.778115,-3.2218854 z M 13.454319,18.933997 H 10.69791 v -2.711384 h 2.801514 z m 2.665954,-7.817276 c -0.393369,0.480362 -0.849436,0.905921 -1.355692,1.265237 l -0.677677,0.542148 c -0.340096,0.246802 -0.593209,0.594783 -0.723064,0.994116 -0.0933,0.353966 -0.139007,0.718651 -0.135539,1.084567 h -2.485365 c -0.004,-0.734733 0.102442,-1.465996 0.316147,-2.169219 0.298807,-0.564837 0.733789,-1.046159 1.265561,-1.400716 l 0.677675,-0.542147 c 0.208661,-0.150352 0.391797,-0.333481 0.542147,-0.542149 0.238289,-0.328436 0.365,-0.7243298 0.361537,-1.1296746 C 13.915784,8.7495526 13.773307,8.2896447 13.499392,7.9082991 13.22832,7.516817 12.731253,7.3207704 12.008222,7.3207704 v 3.208e-4 c -0.297234,-0.027745 -0.596672,0.024585 -0.866787,0.1519262 -0.270128,0.1270191 -0.501476,0.3243371 -0.669484,0.5708244 -0.290933,0.4434869 -0.4479,0.9610316 -0.451999,1.491171 H 7.3085687 C 7.3687712,7.7576298 7.9862449,6.5074836 9.1613173,5.7844902 9.9748465,5.2833264 10.91764,5.03211 11.8727,5.0617409 c 1.235866,-0.046327 2.454463,0.3019609 3.479482,0.9937921 0.944328,0.6906014 1.47229,1.8145812 1.400717,2.9824229 0.02302,0.743552 -0.199523,1.4739041 -0.632602,2.0787641 z"})}),Rh=e=>L(ie,{...e,children:[O("path",{d:"m 19.470429,3.2227425 c -0.973736,0.562118 -2.218716,0.228623 -2.780834,-0.7451281 -0.160461,-0.278328 -0.516282,-0.373468 -0.79462,-0.212804 L 1.7911267,10.407837 c -0.278327,0.160461 -0.373467,0.516283 -0.212803,0.79462 0.562118,0.973736 0.228622,2.218715 -0.74512891,2.780834 -0.278327,0.160461 -0.373468,0.516282 -0.212804,0.79462 l 3.19914991,5.541206 c 0.160462,0.278327 0.516282,0.373467 0.79462,0.212803 0.973736,-0.562118 2.218716,-0.228622 2.780834,0.74513 0.160461,0.278326 0.516282,0.373467 0.79462,0.212803 L 22.293462,13.346826 c 0.278328,-0.160461 0.373468,-0.516282 0.212805,-0.79462 -0.562118,-0.973736 -0.228623,-2.218715 0.745128,-2.7808335 0.278328,-0.160461 0.373468,-0.516282 0.212804,-0.79462 l -3.19915,-5.541205 c -0.160462,-0.278328 -0.516283,-0.373671 -0.79462,-0.212805 z m 0.72259,7.6496675 c 0.319099,0.552615 0.129223,1.261598 -0.423371,1.580724 L 8.6768517,18.857459 c -0.552615,0.319099 -1.261598,0.129224 -1.580724,-0.423369 l -3.205226,-5.552112 c -0.3191,-0.552615 -0.129224,-1.261598 0.423369,-1.580724 L 15.406549,4.8969295 c 0.552614,-0.3191 1.261598,-0.129223 1.580724,0.42337 z"}),O("path",{d:"M 15.843458,5.6521485 4.7506607,12.056473 c -0.136121,0.07851 -0.18298,0.252766 -0.104068,0.388887 l 3.205227,5.551592 c 0.07851,0.13612 0.252766,0.182979 0.388886,0.104067 L 19.332983,11.696695 c 0.136121,-0.07851 0.18298,-0.252766 0.104069,-0.388887 L 16.231825,5.7562165 c -0.07851,-0.136121 -0.252563,-0.182575 -0.388684,-0.104068 z"})]}),Oh=e=>O(ie,{...e,children:O("path",{d:"m 22.976945,4.1728234 c -1.33047,-1.27297 -3.05206,-2.0588 -4.88525,-2.230281 -2.10522,-0.135121 -4.18237,0.540501 -5.80555,1.888121 -0.0974,0.0747 -0.23291,0.0747 -0.33029,0 -1.61964,-1.35414 -3.6993694,-2.030529 -5.8055494,-1.888121 -1.8332,0.171461 -3.55478,0.957311 -4.88526,2.230281 -0.42017001,0.38403 -0.65641001,0.92924 -0.64892001,1.49857 V 18.651443 c -0.0109,0.69237 0.32021,1.34565 0.88499001,1.74627 0.53079,0.38896 1.21765,0.49464 1.84068,0.28328 0.92429,-0.32417 1.90016,-0.47628 2.87921,-0.44842 1.70242,0.0498 3.3491595,0.61792 4.7200894,1.62833 0.35874,0.25404 0.78759,0.39035 1.22716,0.39035 0.43956,0 0.8684,-0.13631 1.22715,-0.39035 1.37093,-1.01041 3.01767,-1.57857 4.7201,-1.62833 0.97389,-0.0247 1.9448,0.12306 2.86732,0.43656 0.59598,0.19241 1.24789,0.0917 1.75815,-0.27142 0.54677,-0.3935 0.87134,-1.02543 0.87316,-1.69908 V 5.7185734 c 0.0243,-0.58374 -0.20861,-1.14872 -0.63709,-1.54575 z M 6.2207656,18.462663 h -0.23587 c -1.10053,-1.9e-4 -2.19332,0.18332 -3.23321,0.54283 -0.0747,0.0359 -0.16159,0.0359 -0.23606,0 -0.084,-0.0593 -0.13275,-0.15685 -0.12979,-0.25957 V 5.7658734 c -0.002,-0.0814 0.0326,-0.15942 0.0944,-0.21236 1.02189,-1.03236 2.36733,-1.6823 3.81138,-1.84089 1.6475,-0.10963 3.2740695,0.4184 4.5428894,1.47506 0.12584,0.0881 0.26017,0.16317 0.40121,0.22421 V 19.961163 c -1.5097899,-0.93399 -3.2402794,-1.45113 -5.0150194,-1.49857 z m 15.6112594,0.23607 h 1.9e-4 c 0.005,0.10628 -0.0494,0.20643 -0.14164,0.25957 -0.0688,0.0427 -0.15566,0.0427 -0.22421,0 -1.13846,-0.38936 -2.33714,-0.57327 -3.53997,-0.54283 -1.76665,0.0516 -3.48839,0.56852 -4.99131,1.49857 V 5.4239434 c 0.16357,-0.0569 0.31844,-0.13631 0.46008,-0.23607 1.27019,-1.06376 2.90172,-1.59632 4.55473,-1.48668 1.43176,0.13274 2.77589,0.7485 3.81138,1.74626 0.0618,0.0531 0.0964,0.13097 0.0944,0.21236 z"})}),Lh=e=>O(ie,{...e,children:O("path",{d:"m 19.995193,4.1812078 a 19.013613,19.013613 0 0 0 -4.681888,-1.4532973 0.07187425,0.07187425 0 0 0 -0.07475,0.035937 c -0.202686,0.3593713 -0.426933,0.8294288 -0.583619,1.197425 a 17.522941,17.522941 0 0 0 -5.2583209,0 A 11.870751,11.870751 0 0 0 8.8043723,2.7638477 0.07331173,0.07331173 0 0 0 8.729623,2.7279105 C 7.1124525,3.0067826 5.5384065,3.4955275 4.0477346,4.1812078 a 0.05893688,0.05893688 0 0 0 -0.030187,0.025875 C 1.0362036,8.6618483 0.21827469,13.007365 0.61933299,17.298257 c 0.00144,0.02013 0.014375,0.04025 0.030187,0.05319 a 19.08405,19.08405 0 0 0 5.74275231,2.90372 0.07187425,0.07187425 0 0 0 0.080499,-0.02731 c 0.4427453,-0.603744 0.8366162,-1.24055 1.1758627,-1.910418 a 0.07187425,0.07187425 0 0 0 -0.014375,-0.08481 0.07331173,0.07331173 0 0 0 -0.025875,-0.01581 12.757679,12.757679 0 0 1 -1.7939812,-0.855303 0.07187425,0.07187425 0 0 1 -0.02875,-0.09487 0.07331173,0.07331173 0 0 1 0.021562,-0.02731 C 5.9279635,17.148776 6.0487122,17.0539 6.163711,16.959026 a 0.07187425,0.07187425 0 0 1 0.073312,-0.01006 c 3.764774,1.719232 7.840044,1.719232 11.558817,0 a 0.07474922,0.07474922 0 0 1 0.07619,0.01006 c 0.114999,0.09487 0.235748,0.189748 0.356496,0.28031 a 0.07331173,0.07331173 0 0 1 -0.0057,0.122186 11.865001,11.865001 0 0 1 -1.795418,0.853866 0.07187425,0.07187425 0 0 0 -0.04312,0.04312 0.07474922,0.07474922 0 0 0 0.0043,0.05894 c 0.344996,0.668431 0.740304,1.306674 1.174425,1.910418 a 0.07187425,0.07187425 0 0 0 0.0805,0.02731 19.025113,19.025113 0 0 0 5.751377,-2.90372 0.07043676,0.07043676 0 0 0 0.03019,-0.05319 C 23.905152,12.337497 22.621478,8.0279175 20.023943,4.20852 a 0.04887449,0.04887449 0 0 0 -0.02875,-0.027312 z M 8.210691,14.68491 c -1.1341756,0 -2.0671034,-1.040739 -2.0671034,-2.317225 0,-1.277925 0.9156779,-2.318664 2.0671034,-2.318664 1.1600503,0 2.084354,1.049364 2.067104,2.318664 0,1.276486 -0.9156786,2.317225 -2.067104,2.317225 z m 7.641671,0 c -1.132739,0 -2.067104,-1.040739 -2.067104,-2.317225 0,-1.277925 0.915678,-2.318664 2.067104,-2.318664 1.16005,0 2.08579,1.049364 2.067103,2.318664 0,1.276486 -0.907053,2.317225 -2.067103,2.317225 z"})}),Ih=e=>O(ie,{...e,children:O("path",{d:"m 11.994177,0.64138243 c -6.3495538,0 -11.49893642,5.14871627 -11.49893642,11.50038057 0,5.08024 3.29478962,9.390915 7.86457222,10.912246 0.5753806,0.105166 0.7850455,-0.249827 0.7850455,-0.554855 0,-0.273303 -0.00988,-0.996138 -0.015529,-1.955634 C 5.9305529,21.238279 5.2556377,19.001727 5.2556377,19.001727 4.7325067,17.67312 3.978535,17.319396 3.978535,17.319396 c -1.0441366,-0.713 0.079073,-0.698883 0.079073,-0.698883 1.154267,0.08121 1.7614035,1.185372 1.7614035,1.185372 1.0257841,1.757041 2.6918882,1.249456 3.3470392,0.955055 0.1044834,-0.742662 0.4016909,-1.249613 0.7299723,-1.536875 -2.5535238,-0.29091 -5.2383375,-1.277087 -5.2383375,-5.683792 0,-1.255943 0.4482938,-2.2817109 1.1839131,-3.0858226 C 5.7229977,8.1635877 5.3283653,6.9944739 5.9545522,5.4109636 c 0,0 0.965064,-0.3092311 3.1620715,1.1782662 0.9170653,-0.2548559 1.9011953,-0.3819269 2.8789643,-0.3868758 0.977072,0.00494 1.960505,0.1320199 2.878982,0.3868758 2.19558,-1.4874973 3.159201,-1.1782662 3.159201,-1.1782662 0.627662,1.5835103 0.233013,2.7526241 0.115159,3.0434868 0.736951,0.8041117 1.181723,1.8298796 1.181723,3.0858226 0,4.417998 -2.689096,5.390185 -5.250312,5.674591 0.412287,0.355152 0.780112,1.05689 0.780112,2.129959 0,1.536876 -0.01413,2.77729 -0.01413,3.154331 0,0.307725 0.207571,0.665731 0.790708,0.553428 4.566198,-1.524186 7.858211,-5.831372 7.858211,-10.910819 0,-6.3516643 -5.149461,-11.50038057 -11.501063,-11.50038057 z"})}),Ah=e=>O(ie,{...e,children:O("path",{d:"m 9.1445313,1.9277344 c 3.9843487,0 7.2167967,3.2324477 7.2167967,7.2167969 0,1.7875897 -0.654646,3.4321647 -1.742187,4.6972657 l -0.203125,0.236328 0.642578,0.615234 h 0.916015 l 5.464844,5.476563 -1.269531,1.269531 -5.476563,-5.464844 v -0.916015 l -0.615234,-0.642578 -0.234375,0.203125 c -1.265123,1.087569 -2.911633,1.742187 -4.6992187,1.742187 -3.9843492,0 -7.2167969,-3.232448 -7.2167969,-7.2167967 0,-3.9843492 3.2324477,-7.2167969 7.2167969,-7.2167969 z m 0,1.6660156 c -3.07113,0 -5.5507813,2.4796513 -5.5507813,5.5507813 0,3.0711297 2.4797193,5.5488277 5.5507813,5.5488277 3.0710627,0 5.5488277,-2.477765 5.5488277,-5.5488277 0,-3.071062 -2.477698,-5.5507813 -5.5488277,-5.5507813 z"})}),Ph=e=>L(ie,{...e,children:[O("path",{d:"m 10.48227,13.29653 h 1.7802 L 7.50778,0.81713998 H 5.7837 L 1.0312503,13.29653 h 1.7802 l 1.20102,-3.41449 H 9.20941 Z M 4.5198203,8.47224 6.38758,3.28429 C 6.46388,3.08 6.53125,2.79041 6.58962,2.41327 h 0.0404 c 0.0696,0.41306 0.13469,0.70489 0.19306,0.87102 l 1.88571,5.18795 z"}),O("path",{className:"styled info",d:"M 11.02105,18.09612 C 10.34084,17.97041 9.70105,17.68306 9.17798,17.22061 7.82207,16.02408 7.4786,14.08 8.34064,12.49286 l -1.21,-0.65776 c -1.16959,2.15286 -0.7049,4.79061 1.13592,6.41592 0.77449,0.68245 1.73755,1.09551 2.75224,1.23245 v 0.91816 l 2.40653,-1.67918 -2.40428,-1.67918 z"}),O("path",{d:"m 22.27023,17.16 c -0.50735,-0.54551 -1.18531,-0.86653 -2.03388,-0.96306 v -0.0314 c 0.68245,-0.22 1.21898,-0.5949 1.60735,-1.1202 0.38837,-0.52531 0.58367,-1.13368 0.58367,-1.82062 0,-0.86428 -0.32775,-1.5602 -0.98326,-2.08326 -0.65551,-0.52306 -1.53102,-0.78572 -2.62653,-0.78572 h -3.66592 v 12.47715 h 3.76245 c 1.20326,0 2.19102,-0.33225 2.96102,-0.99449 0.77,-0.66225 1.15612,-1.52878 1.15612,-2.60408 0,-0.83735 -0.25367,-1.52878 -0.76102,-2.07429 z m -5.50674,-5.39449 h 1.61184 c 1.56919,0 2.35265,0.58816 2.35265,1.76449 0,0.67122 -0.22224,1.19653 -0.66449,1.57592 -0.44224,0.37939 -1.0551,0.56796 -1.83183,0.56796 h -1.46592 z m 3.88817,9.07612 C 20.19145,21.23 19.54043,21.42531 18.6986,21.42531 h -1.93286 v -4.34837 h 1.66796 c 1.93959,0 2.90714,0.71612 2.90714,2.14388 0,0.69142 -0.23122,1.23245 -0.68918,1.62081 z"})]}),zh=e=>L(ie,{...e,children:[O("path",{d:"m 23.055315,20.559686 -4.63158,-4.63158 -0.33082,0.33083 -1.14286,-1.14286 c 2.70677,-3.57895 2.43609,-8.6917252 -0.81203,-11.9398452 -3.54887,-3.54886972 -9.3233066,-3.54886972 -12.9022566,0 -3.54886969,3.54887 -3.54886969,9.3233052 0,12.9022552 3.24812,3.24812 8.3909766,3.54887 11.9398466,0.81203 l 1.14286,1.14286 -0.33083,0.33082 4.63158,4.63158 c 0.66166,0.66166 1.74436,0.66166 2.43609,0 0.69173,-0.69173 0.69173,-1.77443 0,-2.43609 z m -8.66165,-6.25564 c -2.58647,2.58647 -6.7669166,2.58647 -9.3533766,0 -2.58647,-2.58646 -2.58647,-6.7669152 0,-9.3533752 2.58646,-2.58647 6.7669066,-2.58647 9.3533766,0 2.58647,2.58646 2.58647,6.7669152 0,9.3533752 z"}),O("path",{className:"styled info",d:"m 13.283605,7.5586508 0.57143,-0.81203 c 0.1203,-0.15037 0.0902,-0.3609 -0.0301,-0.4812 l -0.36091,-0.3609 -0.3609,-0.3609 c -0.1203,-0.1203 -0.33083,-0.15038 -0.4812,-0.0301 l -0.81203,0.57143 c -0.33083,-0.21053 -0.69173,-0.3609 -1.05263,-0.45113 l -0.15038,-0.99248 c -0.0301,-0.18045 -0.18045,-0.30075 -0.3609,-0.30075 H 9.7647762 9.283578 c -0.1804494,0 -0.3308296,0.1203 -0.3608996,0.30075 l -0.18045,0.99248 c -0.39098,0.0902 -0.75188,0.2406 -1.08271,0.45113 l -0.81203,-0.57143 c -0.15037,-0.1203 -0.3609,-0.0902 -0.4812,0.0301 l -0.3609,0.3609 -0.36091,0.3609 c -0.1203,0.1203 -0.15037,0.33083 -0.0301,0.4812 l 0.57143,0.81203 c -0.21053,0.33083 -0.33083,0.69173 -0.45113,1.05264 l -0.96241,0.15037 c -0.18045,0.0301 -0.30075,0.1804494 -0.30075,0.3608988 v 0.4812082 0.4811982 c 0,0.18045 0.1203,0.33083 0.30075,0.3609 l 0.99248,0.18045 c 0.0902,0.36091 0.24061,0.72181 0.45113,1.05264 l -0.57143,0.81203 c -0.1203,0.15037 -0.0902,0.3609 0.0301,0.4812 l 0.3609,0.3609 0.3609,0.3609 c 0.1203,0.1203 0.33083,0.15038 0.48121,0.0301 l 0.81203,-0.57143 c 0.33082,0.21053 0.69173,0.33083 1.05263,0.45113 l 0.15037,0.9624 c 0.0301,0.18045 0.1804605,0.30076 0.3609096,0.30076 h 0.4811982 0.4811988 c 0.18045,0 0.33083,-0.12031 0.3609,-0.30076 l 0.18046,-0.99248 c 0.3609,-0.0902 0.7218,-0.2406 1.02255,-0.42105 l 0.81203,0.57143 c 0.15038,0.1203 0.3609,0.0902 0.48121,-0.0301 l 0.3609,-0.3609 0.3609,-0.3609 c 0.1203,-0.1203 0.15038,-0.33083 0.0301,-0.4812 l -0.57143,-0.81203 c 0.21052,-0.33083 0.3609,-0.69173 0.45112,-1.05264 l 0.99249,-0.15037 c 0.18045,-0.0301 0.30075,-0.18045 0.30075,-0.3609 V 9.6338375 9.1526396 c 0,-0.1804494 -0.1203,-0.3308288 -0.30075,-0.3608988 l -0.99249,-0.18045 c -0.0601,-0.36091 -0.21052,-0.72181 -0.42105,-1.05264 z m -1.38346,3.4285752 c -0.75188,1.203 -2.3157882,1.56391 -3.5187866,0.81203 -1.20301,-0.75188 -1.56391,-2.3157879 -0.81203,-3.5187952 0.75188,-1.20301 2.3157872,-1.56391 3.5187866,-0.81203 1.20301,0.75188 1.56391,2.3458561 0.81203,3.5187952 z"})]}),Fh=e=>L(ie,{...e,children:[O("path",{d:"M 13.825079,18.501033 H 11.95551 L 10.427711,14.46047 H 4.3164615 L 2.8791069,18.501033 H 0.99950668 L 6.5277646,4.0874418 H 8.2767047 Z M 9.8748861,12.942702 7.6133175,6.8013238 C 7.5396037,6.6002808 7.4658898,6.2786458 7.3921947,5.8363818 h -0.040216 c -0.067014,0.408748 -0.1440592,0.730402 -0.2311721,0.964942 l -2.24147,6.1413782 z"}),O("path",{d:"M 22.999506,18.501033 H 21.35119 v -1.608081 h -0.04023 c -0.716927,1.232869 -1.772388,1.84949 -3.166196,1.84949 -1.025331,0 -1.829278,-0.271538 -2.412346,-0.81424 -0.576274,-0.542701 -0.864411,-1.263184 -0.864411,-2.161075 0,-1.923147 1.132525,-3.042198 3.397275,-3.357133 l 3.085913,-0.432215 c 0,-1.74894 -0.707009,-2.6234182 -2.12084,-2.6234182 -1.239793,0 -2.358694,0.422166 -3.357208,1.2664762 V 8.9322138 c 1.011801,-0.643289 2.177861,-0.964942 3.497936,-0.964942 2.418952,0 3.628428,1.279877 3.628428,3.8396302 z m -1.648316,-5.206529 -2.482766,0.341752 c -0.763899,0.107212 -1.340099,0.298187 -1.728785,0.572925 -0.388687,0.268038 -0.582937,0.74715 -0.582937,1.437429 0,0.502467 0.177595,0.914546 0.532596,1.236237 0.361926,0.314954 0.841001,0.472337 1.437411,0.472337 0.817421,0 1.490932,-0.284637 2.020347,-0.854287 0.535965,-0.576199 0.804134,-1.303326 0.804134,-2.181155 z"})]}),Nh=e=>L(ie,{...e,children:[O("path",{d:"M 10.479463,15.147182 H 9.2682944 v -1.181675 h -0.029549 c -0.5268175,0.905987 -1.3022625,1.358912 -2.3263488,1.358912 -0.7533075,0 -1.3441175,-0.199375 -1.7724712,-0.598262 -0.4234175,-0.39875 -0.6351263,-0.927988 -0.6351263,-1.587768 0,-1.413046 0.8320676,-2.235269 2.4962163,-2.466668 l 2.267279,-0.317569 c 0,-1.2850343 -0.5194338,-1.927558 -1.5583013,-1.927558 -0.9108412,0 -1.7330638,0.3101862 -2.4666675,0.930545 V 8.1164215 C 5.9867743,7.6437652 6.8434681,7.4074302 7.8133931,7.4074302 c 1.77738,0 2.6660699,0.94039 2.6660699,2.8211698 z M 9.2682944,11.321616 7.4441369,11.572718 c -0.5612888,0.07877 -0.9847063,0.219093 -1.2702663,0.420956 -0.2855737,0.196942 -0.4283538,0.548969 -0.4283538,1.056097 0,0.369256 0.1304738,0.672058 0.3914213,0.908448 0.26587,0.231275 0.6178975,0.34705 1.0560962,0.34705 0.6006688,0 1.0954763,-0.209275 1.4844363,-0.627756 0.3938825,-0.423417 0.5908238,-0.957619 0.5908238,-1.602604 z"}),O("path",{d:"m 13.926616,14.054194 h -0.02955 v 1.092988 H 12.685885 V 3.9511339 h 1.211182 v 4.9628976 h 0.02955 c 0.595732,-1.0043963 1.467262,-1.5066013 2.614425,-1.5066013 0.969924,0 1.7281,0.3397213 2.274662,1.0191638 0.551375,0.67452 0.827063,1.580453 0.827063,2.717784 0,1.26533 -0.307725,2.279571 -0.923175,3.042779 -0.61545,0.758175 -1.457363,1.137262 -2.525738,1.137262 -0.999487,0 -1.755201,-0.423362 -2.267238,-1.270225 z m -0.02955,-3.050135 v 1.056083 c 0,0.625295 0.201864,1.157021 0.605591,1.59522 0.408595,0.433207 0.925595,0.649907 1.550945,0.649907 0.733562,0 1.307212,-0.280637 1.720675,-0.841926 0.41855,-0.561275 0.627825,-1.341656 0.627825,-2.34113 0,-0.841913 -0.194563,-1.5016653 -0.583413,-1.9792441 -0.388987,-0.4775787 -0.915887,-0.716375 -1.580562,-0.716375 -0.704,0 -1.270225,0.24618 -1.698538,0.7385263 -0.428353,0.4874375 -0.642523,1.1004128 -0.642523,1.8389388 z"}),O("path",{d:"m 1.0738031,15.147182 h 1.375 v 2.75 H 21.698803 v -2.75 h 1.375 v 4.125 h -1.375 -19.2499999 -1.375 z"})]}),Vh=e=>L(ie,{...e,children:[O("path",{d:"m 16.2342,8.4780852 h 0.01571 c 0.287571,0.4887143 0.708714,0.7338572 1.266571,0.7338572 0.617572,0 1.109429,-0.264 1.477143,-0.7904286 0.370857,-0.5264286 0.554715,-1.2257143 0.554715,-2.0947143 0,-0.803 -0.157143,-1.4347143 -0.473,-1.8967143 -0.315858,-0.4635714 -0.766858,-0.6945714 -1.351429,-0.6945714 -0.636429,0 -1.128286,0.3048571 -1.474,0.913 H 16.2342 V 1.3547995 h -1.400147 v 7.7298571 h 1.398571 V 8.4780852 Z M 16.210628,6.8107995 V 6.2765138 c 0,-0.3897143 0.09114,-0.704 0.275,-0.9444286 a 0.84857143,0.84857143 0 0 1 0.699286,-0.3614286 0.77,0.77 0 0 1 0.685143,0.3661429 c 0.163428,0.242 0.243571,0.5782857 0.243571,1.0104286 0,0.5185714 -0.088,0.9224285 -0.265571,1.2068571 a 0.82342857,0.82342857 0 0 1 -0.738572,0.4242857 0.77785714,0.77785714 0 0 1 -0.645857,-0.3315714 1.3404286,1.3404286 0 0 1 -0.251428,-0.836 z"}),O("path",{className:"styled info",d:"m 5.7527709,5.6589424 3.5529999,3.5655714 3.4854282,-3.4948572 -1.1,-1.1 -1.590285,1.5824286 -0.01257,-2.5142857 A 0.82185714,0.82185714 0 0 1 10.874059,2.8712281 H 13.26263 V 1.3547995 H 10.874057 A 2.3288571,2.3288571 0 0 0 8.5483423,3.6946566 V 6.2262281 L 6.8621994,4.5495138 Z"}),O("path",{d:"m 14.834057,19.848943 c -0.402286,0.242 -0.982143,0.363 -1.741143,0.363 -0.884715,0 -1.602857,-0.279714 -2.151286,-0.837572 -0.548429,-0.557857 -0.821857,-1.277571 -0.821857,-2.159142 0,-1.018286 0.292286,-1.819715 0.88,-2.404286 0.587714,-0.590858 1.375,-0.884715 2.357143,-0.884715 0.680428,0 1.172285,0.09429 1.477143,0.281286 V 15.7758 a 1.98,1.98 0 0 0 -1.244572,-0.433714 c -0.510714,0 -0.916143,0.157143 -1.216286,0.468285 -0.298571,0.308 -0.444714,0.735429 -0.444714,1.282286 0,0.531143 0.141429,0.947572 0.427429,1.252429 0.286,0.300143 0.677285,0.451 1.177,0.451 0.443143,0 0.876857,-0.144572 1.301143,-0.433715 z M 6.9769137,10.783371 5.4054852,12.3548 v 9.428571 L 6.9769137,23.3548 H 17.976914 l 1.571429,-1.571429 V 12.3548 l -1.571429,-1.571429 z m 0,1.571429 H 17.976914 v 9.428571 H 6.9769137 Z"})]}),Hh=e=>L(ie,{...e,children:[O("path",{d:"m 17.055601,3.649384 c 0.231,-0.4871429 0.559428,-0.7307143 0.983714,-0.7307143 0.389714,0 0.691428,0.1854286 0.900428,0.5547143 0.210572,0.3708571 0.315858,0.8752857 0.315858,1.518 0,0.6961429 -0.122572,1.254 -0.369286,1.6767143 -0.245143,0.4211429 -0.573572,0.6317143 -0.985286,0.6317143 -0.372428,0 -0.653714,-0.1964286 -0.843857,-0.5877143 h -0.01257 V 7.1992412 H 16.112743 V 1.0140983 h 0.931858 V 3.649384 h 0.01257 z m -0.02514,1.7285714 a 1.2257143,1.2257143 0 0 0 0.168143,0.6694286 c 0.111568,0.1775714 0.256139,0.2655714 0.430568,0.2655714 0.213714,0 0.377143,-0.1131428 0.493429,-0.3394285 0.117857,-0.2278572 0.177571,-0.55 0.177571,-0.9664286 0,-0.3457143 -0.055,-0.6128572 -0.163429,-0.8077143 -0.105285,-0.1948572 -0.257714,-0.2938572 -0.455714,-0.2938572 -0.188571,0 -0.344143,0.097429 -0.466714,0.2907143 a 1.3922857,1.3922857 0 0 0 -0.183857,0.7542857 z m -3.501146,1.8118572 h 1.012 V 4.5026697 c 0,-1.276 -0.495,-1.9171428 -1.483428,-1.9171428 -0.212143,0 -0.447858,0.037714 -0.707143,0.1147143 a 2.2691429,2.2691429 0 0 0 -0.609715,0.2624285 v 1.045 c 0.372429,-0.319 0.765286,-0.4777143 1.178572,-0.4777143 0.410143,0 0.616,0.2451429 0.616,0.737 l -0.942857,0.1618572 c -0.795143,0.1351428 -1.194286,0.638 -1.194286,1.5101428 0,0.4132858 0.09586,0.7432858 0.287571,0.9915715 a 0.95857143,0.95857143 0 0 0 0.796715,0.3692857 c 0.455714,0 0.799857,-0.2514286 1.032428,-0.7542857 h 0.01414 z m 0.0063,-2.1292857 V 5.3638126 A 1.1785714,1.1785714 0 0 1 13.347029,6.0489554 0.57828571,0.57828571 0 0 1 12.855172,6.3160983 0.43371429,0.43371429 0 0 1 12.509458,6.1668126 0.59714286,0.59714286 0 0 1 12.383744,5.7770983 c 0,-0.3488571 0.172857,-0.5515714 0.521714,-0.6112857 l 0.628571,-0.1052857 z"}),O("path",{className:"styled info",d:"M 5.3013153,11.534813 1.9698867,8.192384 3.0101724,7.1520983 4.5910295,8.7235269 V 6.3506697 A 2.1842857,2.1842857 0 0 1 6.770601,4.1569554 h 3.685 v 1.4221429 h -3.685 A 0.77,0.77 0 0 0 6.0351724,6.3538126 l 0.011,2.3571428 1.4912857,-1.4834285 1.0308572,1.0308571 -3.2685715,3.276429 z"}),O("path",{d:"m 9.8270295,19.761241 h -1.012 V 19.116955 H 8.8008867 C 8.5683153,19.619812 8.2241724,19.871241 7.7684581,19.871241 A 0.95857143,0.95857143 0 0 1 6.9717438,19.501955 c -0.1917143,-0.248286 -0.2875714,-0.578286 -0.2875714,-0.99 0,-0.873714 0.3991429,-1.376571 1.1942857,-1.511714 l 0.9428572,-0.161857 c 0,-0.491857 -0.2042858,-0.738572 -0.616,-0.738572 -0.4132858,0 -0.8061429,0.160286 -1.1785715,0.479286 v -1.045 c 0.1492857,-0.099 0.352,-0.187 0.6097143,-0.262429 0.2592857,-0.077 0.495,-0.114714 0.7071429,-0.114714 0.99,0 1.4834285,0.639572 1.4834285,1.917143 z m -1.0057142,-1.826 v -0.303286 l -0.6285715,0.106857 c -0.3488571,0.05814 -0.5232857,0.260857 -0.5232857,0.609715 0,0.157142 0.042429,0.287571 0.1257143,0.389714 a 0.43371429,0.43371429 0 0 0 0.3457143,0.149286 0.57828571,0.57828571 0 0 0 0.4902857,-0.267143 c 0.1257143,-0.182286 0.1885714,-0.408572 0.1885714,-0.685143 z m 4.5602857,1.936 c 0.504428,0 0.892571,-0.09114 1.159714,-0.271857 v -1.115715 a 1.4142857,1.4142857 0 0 1 -0.867428,0.325286 0.97271429,0.97271429 0 0 1 -0.785715,-0.337857 c -0.188571,-0.227857 -0.284428,-0.542143 -0.284428,-0.939714 0,-0.408572 0.099,-0.729143 0.297,-0.961715 a 1.012,1.012 0 0 1 0.810857,-0.350428 c 0.304857,0 0.581428,0.108428 0.829714,0.325286 v -1.177 c -0.202714,-0.141429 -0.531143,-0.210572 -0.983714,-0.210572 -0.655286,0 -1.180143,0.22 -1.573,0.663143 -0.391286,0.44 -0.586143,1.040286 -0.586143,1.804 0,0.66 0.182286,1.200571 0.548429,1.618571 0.364571,0.419572 0.843857,0.628572 1.434714,0.628572 z M 1.9698867,13.585527 3.5413152,12.014098 H 17.684172 l 1.571429,1.571429 v 7.857142 l -1.571429,1.571429 H 3.5413152 L 1.9698867,21.442669 Z m 1.5714285,0 v 7.857142 H 17.684172 V 13.585527 Z M 8.255601,10.44267 9.8270295,8.8712412 H 20.827029 l 1.571429,1.5714288 v 7.857142 l -1.571429,1.571429 V 10.44267 Z"})]}),Bh=e=>O(ie,{...e,children:O("path",{d:"m 15.678266,1.1001645 h 1.784278 v 5.6910421 l 4.680073,-2.8464352 0.888483,1.617916 -4.687386,2.8500914 4.687386,2.8500922 -0.886654,1.617915 -4.681902,-2.846435 v 5.691042 h -1.784278 v -5.691042 l -4.680073,2.846435 -0.888484,-1.617915 4.687387,-2.8500922 -4.687387,-2.8500914 0.886656,-1.617916 4.681901,2.8464352 z M 1.0310983,15.725393 h 7.3126141 v 7.312614 H 1.0310983 Z"})}),$h=e=>O(ie,{...e,children:O("path",{className:"styled info",d:"m 2.350101,20.254318 c 0.550055,0 1.000101,-0.450045 1.000101,-1.000101 0,-6.065612 4.935498,-11.0011108 11.001111,-11.0011108 h 5.585564 l -2.295232,2.2952318 c -0.390039,0.390039 -0.390039,1.025103 0,1.415143 0.200021,0.190019 0.455046,0.290029 0.710072,0.290029 0.255026,0 0.510052,-0.10001 0.705071,-0.29503 l 4.000404,-4.0004038 c 0.015,-0.015 0.025,-0.03 0.04,-0.05001 0.015,-0.015 0.03,-0.035 0.04501,-0.055 0.05501,-0.07001 0.10001,-0.140014 0.130013,-0.220023 0,0 0,-0.005 0.005,-0.005 0,0 0,0 0,0 0.035,-0.08501 0.05501,-0.170017 0.06501,-0.255026 0.005,-0.02 0.005,-0.04 0.005,-0.06001 0.005,-0.08501 0.005,-0.175018 -0.015,-0.260026 0,0 0,-0.005 0,-0.005 -0.015,-0.08001 -0.045,-0.160016 -0.08501,-0.2350231 -0.01,-0.02 -0.02,-0.035 -0.03,-0.05501 -0.045,-0.07501 -0.09501,-0.1500149 -0.160017,-0.215022 l -4.00041,-4.0003969 c -0.390039,-0.390039 -1.025103,-0.390039 -1.415143,0 -0.390039,0.39004 -0.390039,1.0251039 0,1.4151429 l 2.300233,2.295232 H 14.351313 C 7.185589,6.2529042 1.35,12.083493 1.35,19.254217 c 0,0.550056 0.450045,1.000101 1.000101,1.000101 z"})}),jh=e=>O(ie,{...e,children:O("path",{className:"styled error_light",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}),Wh=e=>O(ie,{...e,children:O("path",{className:"styled success_light",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),Uh=e=>L(ie,{...e,children:[O("path",{d:"M 3 3 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 3 3 z"}),O("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),qh=e=>L(ie,{...e,children:[O("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),O("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),O("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),O("path",{className:"styled info",d:"M 9.7812231,5.9814554 H 7.5343168 V 3.7345497 c 0,-0.2675679 -0.1426852,-0.5148303 -0.3743998,-0.648616 -0.2317102,-0.1337804 -0.5173316,-0.1337804 -0.7490516,0 C 6.1791497,3.2197142 6.0364635,3.4669783 6.0364635,3.7345497 V 5.9814554 H 3.7895607 c -0.267568,0 -0.5148318,0.1426851 -0.6486164,0.3744009 -0.1337813,0.2317104 -0.1337813,0.5173316 0,0.7490509 0.1337792,0.2317158 0.3810441,0.3744001 0.6486164,0.3744001 h 2.2469028 v 2.2469063 c 0,0.2675679 0.1426862,0.5148294 0.3744019,0.6486154 0.2317104,0.133782 0.5173316,0.133782 0.7490516,0 C 7.3916316,10.24105 7.5343168,9.9937845 7.5343168,9.7262136 V 7.4793073 h 2.2469063 c 0.2675669,0 0.5148309,-0.1426843 0.6486159,-0.3744001 0.133782,-0.2317113 0.133782,-0.5173317 0,-0.7490509 C 10.296059,6.1241405 10.048794,5.9814554 9.7812231,5.9814554 Z"})]}),Zh=e=>L(ie,{...e,children:[O("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),O("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),O("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),O("path",{className:"styled info",d:"M 9.4260315,5.8230168 9.8837653,5.3652823 c 0.2615617,-0.2615626 0.2615617,-0.6539057 0,-0.9154683 L 9.4260315,3.9920795 c -0.2615623,-0.2615626 -0.6539063,-0.2615626 -0.9154686,0 L 8.0528281,4.449814 Z M 8.9682967,6.2807515 5.6987653,9.5502826 C 5.5679836,9.6810635 5.437202,9.7464544 5.2410305,9.7464544 h -0.784687 c -0.1961725,0 -0.3269531,-0.1307818 -0.3269531,-0.3269536 V 8.6348143 c 0,-0.1961717 0.065392,-0.3269536 0.1961715,-0.4577346 L 7.5950933,4.9075478 Z"})]}),Gh=e=>L(ie,{...e,children:[O("path",{d:"M 12.427734 3 C 12.908883 3.5977372 13.285446 4.2743797 13.541016 5 L 19 5 L 19 14.298828 L 21 14.298828 L 21 3 L 12.427734 3 z M 3 12.617188 L 3 21 L 14.587891 21 L 14.587891 19 L 5 19 L 5 13.683594 C 4.2764611 13.442198 3.6010853 13.081758 3 12.617188 z"}),O("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),O("path",{className:"styled",d:"M 10.978454,2.6309839 C 10.257756,1.884659 9.3513608,1.3437235 8.3524299,1.0635859 7.3534474,0.78342298 6.2979022,0.77432955 5.2940356,1.0369696 4.2903709,1.2996971 3.3746562,1.8248773 2.640959,2.5584758 1.9072594,3.2920743 1.3821803,4.2077881 1.1194529,5.2115549 0.85682509,6.2153204 0.8659182,7.270865 1.1460764,8.2699466 1.4262371,9.2689297 1.9671485,10.175323 2.7134729,10.895971 3.4341706,11.642296 4.3405665,12.183232 5.339495,12.46337 6.3384787,12.743532 7.3940228,12.752626 8.3978893,12.48999 9.401554,12.227265 10.31727,11.702085 11.050967,10.968487 11.784669,10.234893 12.309747,9.3191777 12.572473,8.3154124 12.835101,7.311646 12.826007,6.2561004 12.54585,5.2570187 12.265694,4.258031 11.724782,3.3516358 10.978457,2.6309889 Z M 10.154347,10.071678 C 9.3898131,10.837091 8.3835927,11.313623 7.3071294,11.420288 6.2305424,11.526948 5.1503479,11.257069 4.2504908,10.656654 3.3506326,10.056224 2.6868002,9.1623531 2.3721166,8.1273235 2.0574379,7.0923441 2.1113431,5.980235 2.5246658,4.9805025 2.9378935,3.9808449 3.6850958,3.1552616 4.6387859,2.6446611 5.5924508,2.1340603 6.6936884,1.9698554 7.7547937,2.180153 8.815899,2.3904382 9.771346,2.9621988 10.458225,3.7978524 c 0.686828,0.8357531 1.062784,1.8837586 1.06366,2.9654555 0.002,0.6145097 -0.117709,1.2232568 -0.352557,1.7911976 -0.234746,0.5678411 -0.579786,1.0835274 -1.01521,1.5170985 z"}),O("path",{className:"styled info",d:"m 9.8759095,8.5319992 -1.76852,-1.7685208 1.768519,-1.768519 C 10.086509,4.7843591 10.16882,4.4774348 10.091741,4.1897526 10.014661,3.902078 9.7898525,3.6772687 9.5021695,3.6001811 c -0.287678,-0.077085 -0.594604,0.00523 -0.805207,0.2158316 l -1.76852,1.7685197 -1.768518,-1.7685182 c -0.2106,-0.2106004 -0.517526,-0.2929129 -0.805207,-0.2158323 -0.287676,0.07708 -0.512486,0.3018891 -0.589572,0.5895714 -0.07708,0.2876781 0.0052,0.594603 0.215833,0.8052068 l 1.768518,1.7685183 -1.76852,1.7685198 c -0.210601,0.2106 -0.292912,0.517526 -0.215832,0.805208 0.07708,0.287677 0.301888,0.512487 0.589571,0.589572 0.287677,0.07708 0.594604,-0.0052 0.805207,-0.215833 l 1.768521,-1.768521 1.76852,1.768521 c 0.2106,0.210599 0.517525,0.2929128 0.805207,0.215833 0.287676,-0.07708 0.5124855,-0.301889 0.5895705,-0.589572 0.07708,-0.287677 -0.0052,-0.594605 -0.2158315,-0.805207 z"})]}),Kh=e=>L(ie,{...e,children:[O("path",{d:"M 19.818359 12.601562 L 17.876953 14.542969 L 17.876953 14.941406 L 17.876953 16.236328 L 17.876953 21.412109 L 13.181641 21.412109 L 8.875 21.412109 L 8.8164062 21.412109 L 8.8164062 21.416016 L 5.8417969 21.416016 L 5.8417969 16.240234 L 5.8417969 14.945312 L 5.8417969 14.634766 L 3.9003906 12.693359 L 3.9003906 21.416016 C 3.9003906 22.477247 4.7805669 23.357422 5.8417969 23.357422 L 13.181641 23.357422 L 13.181641 23.353516 L 17.876953 23.353516 C 18.93818 23.353516 19.818359 22.47334 19.818359 21.412109 L 19.818359 12.601562 z "}),O("path",{className:"styled info",d:"m 6.5400304,2.3536823 c 0.407733,-0.4077339 0.407733,-1.0682821 0,-1.47568634 -0.4074036,-0.40740418 -1.0682827,-0.40740418 -1.475687,0 z M 1.628074,5.7899809 0.89039543,5.0519753 c -0.40773302,0.4074008 -0.40773302,1.06828 0,1.4756843 z m 3.4363028,4.9118911 c 0.4074043,0.407734 1.0682826,0.407734 1.4756856,0 0.407734,-0.407405 0.407734,-1.0682838 0,-1.475687 z M 5.0643107,0.87796266 0.89023053,5.0520731 2.3659174,6.5277583 6.5399624,2.3536823 Z M 0.89023053,6.5277583 5.0643107,10.701806 6.5399964,9.2261186 2.3659509,5.0520413 Z M 17.377723,9.0938804 c -0.407402,0.4074032 -0.407402,1.0682816 0,1.4756866 0.407405,0.407734 1.068283,0.407734 1.475689,0 z M 22.28965,5.6575759 23.027656,6.395585 c 0.407734,-0.4074017 0.407734,-1.06828 0,-1.4756834 z M 18.853377,0.74565808 c -0.407733,-0.4077329 -1.068281,-0.4077329 -1.475686,0 -0.407403,0.40740532 -0.407403,1.06828332 0,1.47568742 z m 0,9.82384292 4.174049,-4.1740473 -1.475687,-1.4756852 -4.174081,4.1740791 z M 23.027426,4.9197685 18.853377,0.74565808 17.377691,2.2213455 21.551772,6.3954202 Z"}),O("path",{className:"styled info",d:"M 11.747147,15.560724 H 7.4303463 L 11.747147,9.0742171 V 13.39102 h 4.316803 l -4.316803,6.486504 z"})]}),Xh=e=>L(ie,{...e,children:[O("path",{d:"m 12.874943,4.312687 1.941407,1.941406 h 0.398437 1.294922 5.175781 v 4.695312 4.306641 0.05859 h 0.0039 v 2.974613 h -5.175775 -1.294922 -0.310546 l -1.941407,1.941406 h 8.722657 c 1.061231,0 1.941406,-0.880176 1.941406,-1.941406 v -7.339844 h -0.0039 V 6.254093 c 0,-1.061227 -0.880176,-1.941406 -1.941407,-1.941406 z"}),O("path",{className:"styled info",d:"m 2.6270626,17.591016 c -0.407734,-0.407733 -1.068282,-0.407733 -1.475686,0 -0.40740404,0.407403 -0.40740404,1.068282 0,1.475687 z m 3.436299,4.911956 -0.738006,0.737679 c 0.407401,0.407733 1.06828,0.407733 1.475685,0 z m 4.9118914,-3.436303 c 0.407734,-0.407404 0.407734,-1.068282 0,-1.475685 -0.407405,-0.407734 -1.0682841,-0.407734 -1.4756872,0 z m -9.8239094,6.6e-5 4.17411,4.17408 1.475685,-1.475686 -4.174076,-4.174045 z m 5.649795,4.17408 4.1740484,-4.17408 L 9.4994998,17.59105 5.3254216,21.765095 Z M 9.3672606,6.753323 c 0.4074043,0.407402 1.0682824,0.407402 1.4756874,0 0.407734,-0.407405 0.407734,-1.068283 0,-1.475689 z M 5.9309566,1.841396 6.6689656,1.1033901 c -0.407402,-0.40773402 -1.06828,-0.40773402 -1.475683,0 z m -4.911918,3.436273 c -0.40773308,0.407733 -0.40773308,1.068281 0,1.475686 0.407405,0.407403 1.068283,0.407403 1.475687,0 z m 9.8238434,0 L 6.6688346,1.1036201 5.1931496,2.579307 9.3672286,6.753388 Z M 5.1931486,1.1036201 1.0190386,5.277669 2.4947256,6.753355 6.6688006,2.579274 Z"}),O("path",{className:"styled info",d:"M 12.896987,13.468751 H 8.5801856 L 12.896987,6.982244 v 4.316803 h 4.316803 l -4.316803,6.486504 z"})]}),Yh=e=>L(ie,{...e,children:[O("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"}),O("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),Jh=e=>L(ie,{...e,children:[O("path",{className:"styled info",d:"M 11.845703 5.453125 L 11.845703 11.003906 C 11.845703 11.603796 11.357701 12.089844 10.757812 12.089844 L 5.3105469 12.089844 L 5.3105469 17.640625 C 5.3105469 18.173432 5.6950678 18.614569 6.2011719 18.707031 L 11.947266 18.707031 L 11.947266 13.175781 C 11.947266 12.575891 12.435268 12.089844 13.035156 12.089844 L 18.578125 12.089844 L 18.578125 6.4550781 C 18.534873 5.8982245 18.07655 5.4580759 17.509766 5.453125 L 11.845703 5.453125 z "}),O("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),O("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"})]}),Qh=e=>L(ie,{...e,children:[O("path",{d:"m 2.0692138,1.2281804 c -0.5998884,0 -1.08619471,0.4863059 -1.08619471,1.0861944 v 8.6895562 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 H 5.0788782 V 9.9177373 H 3.1554085 V 3.4005699 H 9.6725771 V 5.17365 H 11.844966 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861944 -1.086194,-1.0861944 z m 5.8896831,-3e-7 V 3.4005699 H 9.6725771 V 9.9177373 H 3.1554085 V 7.925909 H 0.98301909 v 3.078022 c 0,0.59989 0.48630631,1.086195 1.08619471,1.086195 h 8.6895582 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 V 2.3143748 c 0,-0.5998885 -0.486307,-1.0861947 -1.086194,-1.0861947 z"}),O("path",{d:"m 13.034312,12.089885 c -0.599888,0 -1.086194,0.486305 -1.086194,1.086195 v 8.689556 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 3.009665 v -2.172389 h -1.923471 v -6.517168 h 6.517169 v 1.773081 h 2.172389 V 13.17608 c 0,-0.59989 -0.486306,-1.086195 -1.086193,-1.086195 z m 5.889682,0 v 2.172389 h 1.713681 v 6.517168 h -6.517169 v -1.991829 h -2.172388 v 3.078023 c 0,0.59989 0.486306,1.086195 1.086194,1.086195 h 8.689559 c 0.599887,0 1.086194,-0.486305 1.086194,-1.086195 v -8.689557 c 0,-0.599889 -0.486307,-1.086194 -1.086194,-1.086194 z"}),O("path",{className:"styled info",d:"M 6.3870283,5.4529718 C 5.7915885,5.4581562 5.3102618,5.9415596 5.3102618,6.5382239 v 3.3792726 h -0.00895 v 2.1723885 h 0.00895 v 5.55166 c 0,0.532807 0.3839722,0.973936 0.8900763,1.066398 H 17.695427 c 0.478802,-0.08745 0.843595,-0.488296 0.88206,-0.982479 V 6.4543075 C 18.534235,5.8974539 18.075991,5.4579227 17.509207,5.4529718 Z"})]}),ep=e=>L(ie,{...e,children:[O("path",{d:"m 19.121621,6.5507223 v 2.638672 h 0.386719 0.701171 v 0.695313 2.6386707 4.582031 2.640625 0.693359 H 19.50834 16.869668 12.291543 9.6528698 8.9536488 v -0.693359 -0.636719 h -2.640625 v 2.650391 c 0,0.04555 0.00331,0.09041 0.00781,0.134765 0.0045,0.04436 0.010741,0.08791 0.019531,0.13086 0.01758,0.0859 0.042792,0.169117 0.076172,0.248047 0.06677,0.157862 0.163813,0.298578 0.283203,0.417968 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562532 6.90039 3.337891 c 0.728732,0 1.320312,-0.589625 1.320312,-1.318359 V 18.425721 14.677675 11.34369 11.203065 7.8690823 c 0,-0.728735 -0.59158,-1.31836 -1.320312,-1.31836 z"}),O("path",{className:"styled info",d:"m 2.7801023,1.3044689 c -0.752638,0.0065 -1.361038,0.617579 -1.361038,1.371768 v 4.271422 h -0.01138 v 2.745913 h 0.01138 v 7.0173311 c 0,0.673471 0.485343,1.23106 1.125061,1.347933 H 17.073983 c 0.605208,-0.110538 1.066309,-0.61721 1.114929,-1.241859 V 2.5701669 c -0.05467,-0.703869 -0.633894,-1.25944 -1.350312,-1.265698 z"})]}),tp=e=>L(ie,{...e,children:[O("path",{d:"m 7.7499822,5.7341962 c -0.728735,0 -1.320313,0.589625 -1.320313,1.31836 v 3.3339868 3.482422 3.333984 0.40625 3.333984 c 0,0.04555 0.0033,0.09041 0.0078,0.134766 0.0045,0.04436 0.01074,0.08791 0.01953,0.13086 0.01758,0.0859 0.04279,0.169116 0.07617,0.248046 0.06677,0.157862 0.163813,0.298579 0.283203,0.417969 0.02985,0.02985 0.06117,0.05905 0.09375,0.08594 0.06517,0.05378 0.136153,0.101952 0.210938,0.142578 0.03739,0.02031 0.07577,0.038 0.115234,0.05469 0.03947,0.01669 0.07978,0.03207 0.121094,0.04492 0.04132,0.01285 0.084,0.02441 0.126953,0.0332 0.0859,0.01758 0.174533,0.02539 0.265625,0.02539 h 3.6562498 6.900391 3.33789 c 0.728732,0 1.320313,-0.589626 1.320313,-1.31836 V 17.609198 13.861151 10.527167 10.386542 7.0525552 c 0,-0.728735 -0.591581,-1.31836 -1.320313,-1.31836 h -3.33789 z m 1.320313,2.638672 h 0.699218 2.6386718 4.578125 2.638672 0.701172 v 0.695312 2.6386748 4.582032 2.640625 0.693359 H 19.624982 16.98631 12.408185 9.7695132 9.0702952 v -0.693359 -2.640625 -2.419922 -2.16211 -2.6386748 z"}),O("path",{className:"styled info",d:"M 2.884418,1.1177875 C 2.13178,1.1242875 1.52309,1.7366454 1.52309,2.4908334 v 4.271485 H 1.51332 v 2.746094 h 0.00977 v 7.0175756 c 0,0.673471 0.487235,1.230784 1.126953,1.347656 h 2.603516 v -5.099609 h -0.00977 v -2.746092 h 0.00977 V 5.7564594 c 0,-0.75419 0.60869,-1.364594 1.361328,-1.371094 H 18.294575 V 2.3834124 C 18.239905,1.6795434 17.659431,1.1240455 16.943013,1.1177875 Z"})]}),np=e=>L(ie,{...e,children:[O("path",{d:"M 23.999882,4.3309515 C 23.997503,4.0907208 23.966582,3.8338404 23.883334,3.6055023 23.759651,3.2748878 23.626454,3.0441711 23.400494,2.7730196 23.115071,2.4305125 22.65126,2.1522254 22.213612,2.0642201 22.00668,2.0237852 21.799749,2 21.58806,2 21.326423,2 21.064785,2 20.803148,2 20.306037,2 19.811304,2 19.314193,2 18.64345,2 17.972707,2 17.301964,2 16.512294,2 15.722625,2 14.930577,2 14.076688,2 13.222798,2 12.368909,2 11.503127,2 10.637345,2 9.771563,2 8.9581085,2 8.144654,2 7.3311994,2 6.6223999,2 5.9136003,2 5.2024222,2 4.6529837,2 4.1035451,2 3.5541065,2 3.2211134,2 2.8881203,2 2.5551273,2 2.4861503,2 2.4195515,2 2.3505744,2 1.7250231,2.0023785 1.0947148,2.2473663 0.66182375,2.7040425 0.23368979,3.1535831 0.00297315,3.7386996 5.9463e-4,4.3594938 c 0,0.092762 0,0.1879032 0,0.2806656 0,0.4352695 0,0.8705391 0,1.3058086 0,0.6802573 0,1.3605146 0,2.0431504 0,0.8277256 0,1.6530726 0,2.4807986 0,0.863403 0,1.724428 0,2.587832 0,0.799183 0,1.598367 0,2.395171 0,0.632687 0,1.262996 0,1.895682 0,0.361536 0,0.723071 0,1.084606 0,0.06898 -0.00237852,0.140333 0.00237852,0.20931 0.03329931,0.587495 0.24498777,1.101256 0.6374439,1.536526 0.0451919,0.04995 0.0927624,0.09514 0.14508984,0.135575 0.12368314,0.0999 0.25212331,0.20931 0.39483461,0.287802 0.2045529,0.114169 0.4376481,0.211688 0.6707432,0.249744 0.3044509,0.04995 0.5708453,0.05471 0.8729176,0.05471 0.3900776,0 0.7801552,0 1.1678543,0 0.592252,0 1.184504,0 1.776756,0 0.7397203,0 1.4794406,0 2.2167825,0 0.8348612,0 1.6673439,0 2.5022049,0 0.865782,0 1.729186,0 2.594968,0 0.844375,0 1.68875,0 2.530747,0 0.765884,0 1.534147,0 2.300031,0 0.632687,0 1.267752,0 1.900439,0 0.447162,0 0.891946,0 1.339108,0 0.197417,0 0.397213,0 0.59463,0 0.176011,0 0.356779,-0.02854 0.528032,-0.05946 0.22596,-0.04044 0.454298,-0.137954 0.651715,-0.252123 0.135576,-0.07849 0.261638,-0.183146 0.380564,-0.280666 0.05471,-0.04519 0.109412,-0.09276 0.156982,-0.147468 0.404349,-0.461433 0.62793,-1.008493 0.630309,-1.626909 0,-0.278287 0,-0.558953 0,-0.83724 0,-0.575602 0,-1.148826 0,-1.724428 0,-0.770641 0,-1.541282 0,-2.311924 0,-0.856268 0,-1.712535 0,-2.568803 0,-0.841997 0,-1.683994 0,-2.528369 0,-0.7254495 0,-1.4508987 0,-2.1763479 0,-0.5066252 0,-1.0132504 0,-1.5198755 0.0048,-0.1807677 0.0048,-0.3615354 0.0048,-0.5423031 0,-0.3044508 -0.133198,-0.6255512 -0.347265,-0.8419967 -0.206931,-0.2069315 -0.544681,-0.3615354 -0.841996,-0.3472643 -0.30683,0.014271 -0.625552,0.1141691 -0.841997,0.3472643 -0.214067,0.2330951 -0.347264,0.5185177 -0.347264,0.8419967 0,0.4804615 0,0.9585444 0,1.4390059 0,1.1416905 0,2.2833806 0,3.4250716 0,1.379543 0,2.761464 0,4.141007 0,1.184504 0,2.369008 0,3.553512 0,0.556574 0.0024,1.115527 0,1.672101 0,0.05946 -0.0048,0.118926 -0.01189,0.178389 0.01427,-0.104655 0.02854,-0.211689 0.04281,-0.316344 -0.01427,0.09514 -0.04043,0.185525 -0.07611,0.27353 0.04044,-0.09514 0.08087,-0.190281 0.118926,-0.283044 -0.04044,0.09514 -0.09276,0.183146 -0.156983,0.266395 0.06184,-0.08087 0.123683,-0.159361 0.185525,-0.240231 -0.05946,0.07136 -0.123683,0.137954 -0.195039,0.195039 0.08087,-0.06184 0.159361,-0.123683 0.240231,-0.185525 -0.08325,0.06422 -0.171254,0.114169 -0.266394,0.156983 0.09514,-0.04043 0.190281,-0.08087 0.283044,-0.118927 -0.08801,0.03568 -0.180768,0.05946 -0.27353,0.07611 0.104655,-0.01427 0.211688,-0.02854 0.316343,-0.04281 -0.211688,0.02616 -0.432891,0.01189 -0.646958,0.01189 -0.463812,0 -0.927624,0 -1.393814,0 -0.694528,0 -1.389057,0 -2.083585,0 -0.85389,0 -1.710157,0 -2.564047,0 -0.934759,0 -1.86714,0 -2.801899,0 -0.941894,0 -1.886168,0 -2.8280624,0 -0.8776746,0 -1.7553493,0 -2.6330239,0 -0.7397203,0 -1.4794407,0 -2.219161,0 -0.5280319,0 -1.0560638,0 -1.5840956,0 -0.2426093,0 -0.4852185,0 -0.7254493,0 -0.061841,0 -0.1236831,-0.0048 -0.1855247,-0.01189 0.104655,0.01427 0.2116885,0.02854 0.3163435,0.04281 -0.095141,-0.01427 -0.1855248,-0.04043 -0.2735301,-0.07611 0.095141,0.04043 0.1902818,0.08087 0.2830441,0.118927 -0.095141,-0.04043 -0.1831462,-0.09276 -0.2663944,-0.156983 0.08087,0.06184 0.159361,0.123683 0.2402307,0.185525 -0.071356,-0.05946 -0.1379543,-0.123683 -0.1950388,-0.195039 0.061842,0.08087 0.1236831,0.159361 0.1855247,0.240231 -0.06422,-0.08325 -0.114169,-0.171254 -0.1569824,-0.266395 0.040435,0.09514 0.08087,0.190282 0.1189261,0.283044 -0.035678,-0.088 -0.059463,-0.180767 -0.076113,-0.27353 0.014271,0.104655 0.028542,0.211689 0.042813,0.316344 -0.021407,-0.168875 -0.011893,-0.342507 -0.011893,-0.513761 0,-0.342507 0,-0.687393 0,-1.0299 0,-1.139312 0,-2.278624 0,-3.417936 0,-1.386678 0,-2.775735 0,-4.162414 0,-1.194018 0,-2.3904142 0,-3.5844322 0,-0.5637097 -0.00238,-1.1250409 0,-1.6887506 0,-0.059463 0.00476,-0.1189261 0.011893,-0.1783892 -0.014271,0.104655 -0.028542,0.2116885 -0.042813,0.3163434 0.014271,-0.095141 0.040435,-0.1855247 0.076113,-0.27353 -0.040435,0.095141 -0.08087,0.1902818 -0.1189261,0.2830441 0.040435,-0.095141 0.092762,-0.1831462 0.1569824,-0.2663944 -0.061842,0.08087 -0.1236831,0.1593609 -0.1855247,0.2402307 0.059463,-0.071356 0.1236831,-0.1379543 0.1950388,-0.1950388 -0.08087,0.061841 -0.159361,0.1236831 -0.2402307,0.1855247 0.083248,-0.06422 0.1712536,-0.1141691 0.2663944,-0.1569825 -0.095141,0.040435 -0.1902817,0.08087 -0.2830441,0.1189261 0.088005,-0.035678 0.1807677,-0.059463 0.2735301,-0.076113 -0.104655,0.014271 -0.2116885,0.028542 -0.3163435,0.042813 0.2116885,-0.026164 0.432891,-0.011893 0.646958,-0.011893 0.4638118,0 0.9276236,0 1.3938139,0 0.6945284,0 1.3890569,0 2.0835853,0 0.8538894,0 1.7101573,0 2.5640467,0 0.9347591,0 1.86714,0 2.801899,0 0.941895,0 1.886168,0 2.828063,0 0.877674,0 1.755349,0 2.633023,0 0.739721,0 1.479441,0 2.219161,0 0.528032,0 1.056064,0 1.584096,0 0.242609,0 0.485219,0 0.725449,0 0.06184,0 0.123683,0.00476 0.185525,0.011893 -0.104655,-0.014271 -0.211688,-0.028542 -0.316343,-0.042813 0.09514,0.014271 0.185524,0.040435 0.27353,0.076113 -0.09514,-0.040435 -0.190282,-0.08087 -0.283044,-0.1189261 0.09514,0.040435 0.183146,0.092762 0.266394,0.1569825 -0.08087,-0.061842 -0.159361,-0.1236832 -0.240231,-0.1855247 0.07136,0.059463 0.137955,0.1236831 0.195039,0.1950388 -0.06184,-0.08087 -0.123683,-0.159361 -0.185525,-0.2402307 0.06422,0.083248 0.114169,0.1712535 0.156983,0.2663944 -0.04044,-0.095141 -0.08087,-0.1902817 -0.118926,-0.2830441 0.03568,0.088005 0.05946,0.1807677 0.07611,0.27353 -0.01427,-0.1046549 -0.02854,-0.2116884 -0.04281,-0.3163434 0.0071,0.054706 0.01189,0.1070335 0.01189,0.1617395 0.0048,0.3068293 0.130818,0.6231728 0.347264,0.8419968 0.206931,0.2069314 0.544681,0.3615353 0.841997,0.3472642 0.306829,-0.014271 0.625551,-0.1141691 0.841996,-0.3472642 0.211689,-0.2259596 0.352022,-0.5161393 0.347265,-0.8372398 z"}),O("path",{className:"styled info",d:"m 6.1847518,10.990813 c 0,-1.170233 0,-2.338087 0,-3.5083198 0,-0.1617395 0,-0.3258575 0,-0.487597 C 5.7875387,7.3921094 5.392704,7.786944 4.9954908,8.184157 c 1.1726114,0 2.3476012,0 3.5202126,0 0.1664965,0 0.3329931,0 0.4994896,0 0.3044508,0 0.6255513,-0.133197 0.8419968,-0.347264 C 10.064121,7.6299616 10.218725,7.2922114 10.204454,6.9948962 10.190183,6.6880668 10.090285,6.3693449 9.8571898,6.1528994 9.6240946,5.9388324 9.338672,5.8056352 9.015193,5.8056352 c -1.1726113,0 -2.3476012,0 -3.5202126,0 -0.1664965,0 -0.332993,0 -0.4994896,0 -0.6422009,0 -1.189261,0.5446815 -1.189261,1.189261 0,1.1702328 0,2.3380868 0,3.5083198 0,0.16174 0,0.325858 0,0.487597 0,0.304451 0.1331973,0.625551 0.3472642,0.841997 0.2069315,0.206931 0.5446816,0.361535 0.8419968,0.347264 0.3068294,-0.01427 0.6255513,-0.114169 0.8419968,-0.347264 0.2116885,-0.233095 0.3472642,-0.520896 0.3472642,-0.841997 z"}),O("path",{className:"styled info",d:"m 17.815724,11.918437 c 0,1.170233 0,2.338087 0,3.50832 0,0.161739 0,0.325857 0,0.487597 0.397214,-0.397213 0.792048,-0.792048 1.189261,-1.189261 -1.172611,0 -2.347601,0 -3.520212,0 -0.166497,0 -0.332993,0 -0.49949,0 -0.304451,0 -0.625551,0.133197 -0.841997,0.347264 -0.206931,0.206931 -0.361535,0.544681 -0.347264,0.841997 0.01427,0.306829 0.114169,0.625551 0.347264,0.841996 0.233096,0.214067 0.518518,0.347265 0.841997,0.347265 1.172612,0 2.347601,0 3.520213,0 0.166496,0 0.332993,0 0.499489,0 0.642201,0 1.189261,-0.544682 1.189261,-1.189261 0,-1.170233 0,-2.338087 0,-3.50832 0,-0.16174 0,-0.325858 0,-0.487597 0,-0.304451 -0.133197,-0.625552 -0.347264,-0.841997 -0.206931,-0.206931 -0.544681,-0.361535 -0.841997,-0.347264 -0.306829,0.01427 -0.625551,0.114169 -0.841996,0.347264 -0.211689,0.233095 -0.347265,0.520896 -0.347265,0.841997 z"})]}),op=e=>L(ie,{...e,children:[O("path",{d:"m 2.2645807,10.897934 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.74999998,-0.336 -0.74999998,-0.75 V 3.3979338 c 0,-1.519 1.23099998,-2.74999998 2.74999998,-2.74999998 H 20.514581 c 1.519,0 2.75,1.23099998 2.75,2.74999998 V 20.397934 c 0,1.519 -1.231,2.75 -2.75,2.75 h -7.5 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 7.5 c 0.69,0 1.25,-0.56 1.25,-1.25 V 3.3979338 c 0,-0.69 -0.56,-1.25 -1.25,-1.25 H 3.5145807 c -0.69,0 -1.25,0.56 -1.25,1.25 z"}),O("path",{d:"m 8.5145807,12.647934 c 0.729,0 1.429,0.29 1.9450003,0.805 0.515,0.516 0.805,1.216 0.805,1.945 v 5 c 0,0.729 -0.29,1.429 -0.805,1.945 -0.5160003,0.515 -1.2160003,0.805 -1.9450003,0.805 h -5 c -0.729,0 -1.429,-0.29 -1.945,-0.805 -0.515,-0.516 -0.80499998,-1.216 -0.80499998,-1.945 v -5 c 0,-0.729 0.28999998,-1.429 0.80499998,-1.945 0.516,-0.515 1.216,-0.805 1.945,-0.805 z m 0,1.5 h -5 c -0.332,0 -0.649,0.132 -0.884,0.366 -0.234,0.235 -0.366,0.552 -0.366,0.884 v 5 c 0,0.332 0.132,0.649 0.366,0.884 0.235,0.234 0.552,0.366 0.884,0.366 h 5 c 0.332,0 0.649,-0.132 0.884,-0.366 0.234,-0.235 0.366,-0.552 0.366,-0.884 v -5 c 0,-0.332 -0.132,-0.649 -0.366,-0.884 -0.235,-0.234 -0.552,-0.366 -0.884,-0.366 z"}),O("path",{className:"styled info",d:"m 12.544581,12.427934 c -0.292,0.293 -0.768,0.293 -1.06,0 -0.293,-0.292 -0.293,-0.768 0,-1.06 l 5,-5.0000002 c 0.292,-0.293 0.768,-0.293 1.06,0 0.293,0.292 0.293,0.768 0,1.06 z"}),O("path",{className:"styled info",d:"m 13.514581,7.1479338 c -0.414,0 -0.75,-0.336 -0.75,-0.75 0,-0.414 0.336,-0.75 0.75,-0.75 h 4 c 0.414,0 0.75,0.336 0.75,0.75 v 4.0000002 c 0,0.414 -0.336,0.75 -0.75,0.75 -0.414,0 -0.75,-0.336 -0.75,-0.75 V 7.1479338 Z"})]}),rp=e=>L(ie,{...e,children:[O("path",{d:"m 21.447994,4.4312275 c 0.607513,0 1.1,0.4924868 1.1,1.1 v 3.6666666 c 0,0.6075131 -0.492487,1.0999999 -1.1,1.0999999 H 6.5368835 c -0.6075131,0 -1.0999999,-0.4924868 -1.0999999,-1.0999999 V 5.5312275 c 0,-0.6075132 0.4924868,-1.1 1.0999999,-1.1 z"}),O("path",{d:"m 16.559105,13.964561 c 0.607513,0 1.1,0.492487 1.1,1.1 v 3.666666 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 6.5368835 c -0.6075131,0 -1.0999999,-0.492487 -1.0999999,-1.1 v -3.666666 c 0,-0.607513 0.4924868,-1.1 1.0999999,-1.1 z"}),O("path",{className:"styled info",d:"m 2.1145803,1.1312275 c 0.6075132,0 1.1,0.4924868 1.1,1.1 V 22.031227 c 0,0.607513 -0.4924868,1.1 -1.1,1.1 -0.6075132,0 -1.0999999,-0.492487 -1.0999999,-1.1 V 2.2312275 c 0,-0.6075132 0.4924867,-1.1 1.0999999,-1.1 z"})]}),ip=e=>L(ie,{...e,children:[O("path",{d:"m 2.12113,4.6308594 c -0.607513,0 -1.1015632,0.4920964 -1.1015632,1.0996094 v 3.6660156 c 0,0.6075126 0.4940502,1.0996096 1.1015632,1.0996096 H 6.529333 10.67972 V 4.6308594 H 6.529333 Z m 10.757808,0 v 5.8652346 h 4.152344 4.408203 c 0.607513,0 1.101563,-0.492097 1.101563,-1.0996096 V 5.7304688 c 0,-0.607513 -0.49405,-1.0996094 -1.101563,-1.0996094 h -4.408203 z"}),O("path",{d:"m 3.5654659,14.283049 c -0.607513,0 -1.101563,0.492097 -1.101563,1.09961 v 3.666015 c 0,0.607513 0.49405,1.101563 1.101563,1.101563 H 9.9736685 10.680695 V 14.283049 H 9.9736685 Z m 9.3144491,0 v 5.867188 h 0.707031 6.408204 c 0.607513,0 1.101562,-0.49405 1.101562,-1.101563 v -3.666015 c 0,-0.607513 -0.494049,-1.09961 -1.101562,-1.09961 h -6.408204 z"}),O("path",{className:"styled info",d:"m 11.780306,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),lp=e=>L(ie,{...e,children:[O("path",{d:"m 2.406197,4.3145814 c -0.607513,0 -1.1,0.492486 -1.1,1.099999 v 3.666667 c 0,0.607513 0.492487,1.0999996 1.1,1.0999996 h 14.911111 c 0.607513,0 1.099999,-0.4924866 1.099999,-1.0999996 v -3.666667 c 0,-0.607513 -0.492486,-1.099999 -1.099999,-1.099999 z"}),O("path",{d:"m 7.295086,13.847914 c -0.607513,0 -1.1,0.492487 -1.1,1.1 v 3.666666 c 0,0.607513 0.492487,1.1 1.1,1.1 h 10.022222 c 0.607513,0 1.099999,-0.492487 1.099999,-1.1 v -3.666666 c 0,-0.607513 -0.492486,-1.1 -1.099999,-1.1 z"}),O("path",{className:"styled info",d:"m 21.739611,1.0145804 c -0.607513,0 -1.1,0.492487 -1.1,1.1 V 21.91458 c 0,0.607513 0.492487,1.1 1.1,1.1 0.607513,0 1.1,-0.492487 1.1,-1.1 V 2.1145804 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 z"})]}),ap=e=>L(ie,{...e,children:[O("path",{d:"m 9.121447,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 17.091421 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 5.45478 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),O("path",{d:"m 18.65478,5.9691985 c 0.607513,0 1.1,0.492487 1.1,1.1 V 21.98031 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666667 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 7.0691985 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 z"}),O("path",{className:"styled info",d:"m 21.95478,1.0803095 c 0.607513,0 1.1,0.4924869 1.1,1.1 0,0.6075131 -0.492487,1.1 -1.1,1.1 h -19.8 c -0.607513,0 -1.1,-0.4924869 -1.1,-1.1 0,-0.6075131 0.492487,-1.1 1.1,-1.1 z"})]}),sp=e=>L(ie,{...e,children:[O("path",{d:"m 10.501613,3.8822204 c 0,-0.607513 -0.492094,-1.101563 -1.099607,-1.101563 H 5.735991 c -0.607513,0 -1.101563,0.49405 -1.101563,1.101563 v 6.4082026 0.707026 h 5.867185 v -0.707026 z m 0,9.3144486 H 4.634428 v 0.707031 6.408204 c 0,0.607513 0.49405,1.101562 1.101563,1.101562 h 3.666015 c 0.607513,0 1.099607,-0.494049 1.099607,-1.101562 V 13.9037 Z"}),O("path",{d:"m 19.32899,2.4378845 c 0,-0.607513 -0.492097,-1.1015632 -1.09961,-1.1015632 h -3.666015 c -0.607513,0 -1.09961,0.4940502 -1.09961,1.1015632 v 4.408203 4.1503865 H 19.32899 V 6.8460875 Z m 0,10.7578075 h -5.865235 v 4.152344 4.408203 c 0,0.607513 0.492097,1.101563 1.09961,1.101563 h 3.666015 c 0.607513,0 1.09961,-0.49405 1.09961,-1.101563 v -4.408203 z"}),O("path",{className:"styled info",d:"m 22.945269,12.09706 c 0,-0.607513 -0.492487,-1.1 -1.1,-1.1 H 2.04527 c -0.607513,0 -1.10000006,0.492487 -1.10000006,1.1 0,0.607513 0.49248706,1.1 1.10000006,1.1 h 19.799999 c 0.607513,0 1.1,-0.492487 1.1,-1.1 z"})]}),cp=e=>L(ie,{...e,children:[O("path",{d:"m 5.45478,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 2.18031 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 14.911112 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),O("path",{d:"m 14.988113,18.191421 c -0.607513,0 -1.1,-0.492487 -1.1,-1.099999 V 7.069199 c 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 3.666667 c 0.607513,0 1.1,0.492487 1.1,1.1 v 10.022223 c 0,0.607512 -0.492487,1.1 -1.1,1.1 z"}),O("path",{className:"styled info",d:"m 2.15478,23.080311 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607514 0.492487,-1.100001 1.1,-1.100001 h 19.8 c 0.607513,0 1.1,0.492487 1.1,1.100001 0,0.607513 -0.492487,1.1 -1.1,1.1 z"})]}),dp=e=>L(ie,{...e,children:[O("path",{d:"m 13.96456,3.575672 c 0.607513,0 1.1,0.492486 1.1,1.1 v 14.911112 c 0,0.607513 -0.492487,1.1 -1.1,1.1 h -3.666666 c -0.6075126,0 -1.0999994,-0.492487 -1.0999994,-1.1 V 4.675672 c 0,-0.607514 0.4924868,-1.1 1.0999994,-1.1 z"}),O("path",{className:"styled info",d:"m 2.2312276,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"}),O("path",{className:"styled info",d:"m 22.031227,1.1312271 c 0.607513,0 1.1,0.4924869 1.1,1.0999999 v 19.800001 c 0,0.607513 -0.492487,1.1 -1.1,1.1 -0.607513,0 -1.1,-0.492487 -1.1,-1.1 V 2.231227 c 0,-0.607513 0.492487,-1.0999999 1.1,-1.0999999 z"})]}),up=e=>L(ie,{...e,children:[O("path",{d:"m 20.686783,13.964561 c 0,0.607513 -0.492486,1.1 -1.1,1.1 H 4.675671 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 v -3.666666 c 0,-0.6075126 0.492487,-1.0999994 1.1,-1.0999994 h 14.911112 c 0.607514,0 1.1,0.4924868 1.1,1.0999994 z"}),O("path",{className:"styled info",d:"m 23.131228,2.2312286 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"}),O("path",{className:"styled info",d:"m 23.131228,22.031228 c 0,0.607513 -0.492487,1.1 -1.1,1.1 H 2.231227 c -0.607513,0 -1.1,-0.492487 -1.1,-1.1 0,-0.607513 0.492487,-1.1 1.1,-1.1 h 19.800001 c 0.607513,0 1.1,0.492487 1.1,1.1 z"})]}),hp=e=>L(ie,{...e,children:[O("path",{d:"M 7.4442836,6.1414523 C 7.1776305,5.8729824 6.7435071,5.8729824 6.4750135,6.1396336 L 1.3183252,11.276286 C 1.0553061,11.538395 1.0489458,11.9625 1.3037662,12.231902 l 5.1557571,5.4633 c 0.1346942,0.142885 0.3167219,0.214786 0.4987304,0.214786 0.1683697,0 0.3376442,-0.06189 0.4705169,-0.186572 0.274854,-0.260292 0.287598,-0.693507 0.028209,-0.968338 L 2.7590415,11.776889 7.4425348,7.1118018 c 0.26847,-0.266653 0.26847,-0.7007763 0.00182,-0.96927 z"}),O("path",{d:"M 22.858666,11.617566 17.702909,6.1542664 C 17.443525,5.8794126 17.0094,5.8666685 16.734571,6.1260574 c -0.274854,0.2602919 -0.287599,0.6935068 -0.02821,0.968338 l 4.697936,4.9782216 -4.683492,4.665087 c -0.26847,0.266653 -0.26847,0.700776 -0.0018,0.969269 0.133785,0.134694 0.309429,0.202045 0.485077,0.202045 0.175651,0 0.34948,-0.06644 0.483261,-0.200225 L 22.8431,12.572141 c 0.263018,-0.262108 0.269379,-0.686214 0.01455,-0.955617 z"}),O("path",{className:"styled info",d:"M 14.852552,2.3717794 C 14.489421,2.2643858 14.108091,2.4727992 14.001617,2.8359342 L 8.8677612,20.299897 c -0.1064841,0.363134 0.1010188,0.743553 0.4641546,0.850937 0.064624,0.01912 0.1292354,0.02821 0.193852,0.02821 0.2966855,0 0.5697212,-0.193851 0.6570922,-0.492371 L 15.316715,3.2227132 C 15.423197,2.85958 15.215694,2.4791604 14.85256,2.3717767 Z"})]}),pp=e=>L(ie,{...e,children:[O("path",{d:"m 2.7366908,1.2208053 c -1.0214438,0 -1.86861981,0.8084813 -1.86861981,1.7832708 V 19.645543 c 0,0.97479 0.84717601,1.78327 1.86861981,1.78327 H 12.76031 l -0.20303,-1.063862 -0.03384,0.0323 -0.142873,-0.751702 H 8.9647936 v -4.75419 h 2.5096614 l -0.227467,-1.18945 H 8.9647936 V 8.9477179 h 4.9817294 v 0.9741612 l 1.246373,0.2170779 V 8.9477179 h 4.981733 v 2.0559631 l 1.855461,0.32113 -0.04324,0.03947 0.0564,0.009 V 3.0041128 c 0,-0.9747894 -0.847176,-1.7832707 -1.86862,-1.7832707 z m 0,1.7832708 H 7.7184235 V 7.7582688 H 2.7366908 Z m 6.2281057,0 H 13.946527 V 7.7582688 H 8.9647965 Z m 6.2281035,0 h 4.981734 V 7.7582688 H 15.1929 Z M 2.7366908,8.9477142 H 7.7184235 V 13.701905 H 2.7366908 Z m 0,5.9436358 h 4.9817327 v 4.754193 H 2.7366908 Z"}),O("path",{className:"styled info",d:"m 17.863373,19.953554 -2.685067,2.867548 -1.790047,-10.175181 9.845251,1.850034 -2.774573,2.77505 2.774573,2.960054 -2.506066,2.590043 z"})]}),fp=e=>O(ie,{...e,children:O("path",{d:"m 16.470703,1.7597656 c -3.00595,-0.06715 -5.352602,2.1826885 -5.490234,2.3203125 L 2.4980469,12.5625 2.5,8.2636719 C 2.4966965,7.8058069 2.1302788,7.4388541 1.671875,7.4355469 1.2082006,7.4327101 0.83311655,7.8070636 0.8359375,8.2675781 l -0.001953,6.3066409 c 0.003309,0.457861 0.37046582,0.824808 0.83203122,0.828125 l 6.2949219,-0.002 c 0.2268179,0.0034 0.4431455,-0.08736 0.59375,-0.242188 0.157568,-0.156086 0.2474887,-0.369538 0.2460938,-0.59375 C 8.797478,14.106588 8.4303344,13.739644 7.96875,13.736328 l -4.2949219,0.002 8.4843749,-8.4824216 c 0.102653,-0.102653 3.908486,-3.9176862 7.560547,-0.265625 4.186678,4.1866776 0.329431,8.0260386 0.263672,8.0917966 l -7.84375,7.84375 c -0.781688,0.78286 0.396306,1.958381 1.177734,1.175781 l 7.84375,-7.843749 C 21.45568,13.962289 26.040293,8.958261 20.896484,3.8144531 19.426928,2.3448967 17.896128,1.7916082 16.470703,1.7597656 Z"})}),mp=e=>O(ie,{...e,children:O("path",{d:"m 7.6869782,1.7597656 c 3.0059498,-0.06715 5.3526018,2.1826885 5.4902338,2.3203125 l 8.482422,8.4824219 -0.002,-4.2988281 c 0.0033,-0.457865 0.369721,-0.8248178 0.828125,-0.828125 0.463675,-0.00284 0.838759,0.3715167 0.835938,0.8320312 l 0.002,6.3066409 c -0.0033,0.457861 -0.370466,0.824808 -0.832032,0.828125 l -6.294921,-0.002 c -0.226818,0.0034 -0.443146,-0.08736 -0.59375,-0.242188 -0.157568,-0.156086 -0.247489,-0.369538 -0.246094,-0.59375 0.0033,-0.457818 0.370447,-0.824762 0.832031,-0.828078 l 4.294922,0.002 -8.484375,-8.4824216 C 11.896825,5.1532534 8.0909922,1.3382202 4.4389312,4.9902814 0.25225321,9.176959 4.1095002,13.01632 4.1752592,13.082078 l 7.8437498,7.84375 c 0.781688,0.78286 -0.396306,1.958381 -1.177734,1.175781 L 2.9975252,14.25786 C 2.7020012,13.962289 -1.8826118,8.958261 3.2611972,3.8144531 4.7307532,2.3448967 6.2615532,1.7916082 7.6869782,1.7597656 Z"})}),gp=e=>L(ie,{...e,children:[O("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"}),O("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"})]}),yp=e=>L(ie,{...e,children:[O("path",{d:"m 12.867188,1.6601562 c 0.268232,-0.0099 0.532856,0.027161 0.787109,0.1210938 0.303937,0.1123746 0.570511,0.3115911 0.712891,0.5898438 0.08749,0.1712653 0.04893,0.3700013 -0.04297,0.5742187 -0.15546,0.3450701 -0.428892,0.5686288 -0.757813,0.7578125 -0.08042,0.04623 -0.155484,-0.00416 -0.251953,-0.1308594 C 13.035105,3.2054418 12.692907,2.8989531 12.269531,2.6933594 11.722626,2.4273439 11.250208,2.5683233 10.931641,3.0820313 10.639621,3.5525493 10.496228,4.0780104 10.365234,4.5839844 10.142637,5.442716 9.9974555,6.3174287 9.8457031,7.1835937 9.7907552,7.4979743 9.946054,7.5988786 10.205078,7.5957031 c 0.679622,-0.00771 1.361146,0.00162 2.042969,-0.00391 -0.0982,0.1729953 -0.154765,0.3484265 -0.261719,0.484375 -0.03547,0.045421 -0.0834,0.080352 -0.142578,0.1054687 -0.192898,0.081789 -0.424815,0.058827 -0.664062,0.076172 -0.286247,0.021121 -0.576223,0.036384 -0.865235,0.068359 -0.30666,0.033798 -0.7051075,0.00873 -0.7753905,0.5351562 -0.044397,0.3334766 -0.1026064,0.6745859 -0.171875,1.0039063 -0.085774,0.4074896 -0.1406716,0.8207126 -0.2070312,1.2265626 -0.1339129,0.819155 -0.2827094,1.638784 -0.4609375,2.447266 -0.130955,0.594887 -0.2850923,1.183996 -0.4277344,1.779296 -0.2952398,1.231409 -0.648992,2.445826 -1.21875,3.56836 -0.160516,0.31587 -0.3371768,0.623867 -0.5292969,0.921875 -0.2874564,0.44552 -0.6473592,0.821475 -1,1.230468 -0.4171445,0.483675 -0.9112147,0.892182 -1.4824219,1.181641 -0.4325073,0.219056 -0.8912993,0.382454 -1.3515625,0.3125 -0.660156,-0.100735 -1.2749333,-0.720347 -0.9101562,-1.371094 0.1291698,-0.230175 0.2801456,-0.452743 0.4882812,-0.572265 0.1704247,-0.09786 0.3413131,-0.01809 0.53125,0.136718 0.3395109,0.276371 0.7298685,0.42944 1.1328125,0.525391 0.4949665,0.116918 0.9051575,-0.07614 1.1699219,-0.505859 0.3351487,-0.544032 0.4611101,-1.164498 0.6015625,-1.742188 0.1694882,-0.697288 0.2686538,-1.406696 0.4257812,-2.097656 0.203537,-0.893107 0.321038,-1.797936 0.484375,-2.689453 0.1717492,-0.937131 0.329452,-1.876938 0.4882813,-2.814453 C 7.2157716,10.726316 7.3314387,10.046609 7.4316406,9.3671875 7.4604144,9.1726632 7.4975986,8.9858124 7.53125,8.7851563 7.5858629,8.4637191 7.4284516,8.3677749 7.171875,8.3730469 c -0.2607537,0.00567 -0.5260002,-0.00861 -0.7949219,0 -0.2100703,0.0068 -0.430734,0.052232 -0.5957031,-0.00977 C 5.7141096,8.3379277 5.7129165,8.3058354 5.7695312,8.2207031 5.867873,8.0734302 5.9909981,7.9154087 6.1074219,7.7792969 6.3209291,7.5294779 6.6134436,7.5947817 6.9980469,7.59375 c 0.15382,-4.499e-4 0.3554847,0.02528 0.53125,-0.00195 0.222675,-0.03439 0.2912558,-0.2268586 0.3125,-0.3671875 C 7.9369689,6.6041648 8.1257855,6.0091648 8.3652344,5.421875 8.6991095,4.6035376 9.1722556,3.8752184 9.8066406,3.2636719 9.9792522,3.0971381 10.163328,2.9397829 10.353516,2.7910156 c 0.51527,-0.4029987 1.10343,-0.7577896 1.714843,-0.9726562 0.260195,-0.09149 0.530313,-0.1482961 0.798829,-0.1582032 z"}),O("path",{className:"styled info",d:"m 20.593801,9.5925389 c 0.04254,-0.0019 0.08513,-0.0028 0.126953,0 0.108321,0.0073 0.20924,0.0313 0.298828,0.07422 0.114943,0.05505 0.232637,0.176683 0.332031,0.285157 0.09768,0.1067151 0.171576,0.2276851 0.210938,0.3593751 0.0819,0.273087 0.02046,0.571159 -0.144532,0.810547 -0.178348,0.260139 -0.459024,0.538504 -0.74414,0.515625 -0.07274,-0.0058 -0.165122,-0.05208 -0.222657,-0.107422 -0.448643,-0.431182 -0.839256,-0.455722 -1.328125,-0.06836 -0.603232,0.477816 -1.044426,1.104066 -1.490234,1.689453 -0.17329,0.227494 -0.290244,0.386345 -0.34375,0.529297 -0.09212,0.246127 -0.019,0.453303 0.111328,0.857422 0.295252,0.915828 0.536566,1.858628 0.888672,2.765625 0.08696,0.223138 0.193305,0.455995 0.355469,0.65625 0.222773,0.275445 0.471577,0.336803 0.785156,0.152344 0.373054,-0.21834 0.656305,-0.544414 0.917969,-0.851563 0.174275,-0.205111 0.234375,-0.253906 0.234375,-0.253906 0,0 0.06389,0.04658 0.248047,0.240235 0.09371,0.09865 0.09585,0.125809 0.01758,0.238281 -0.525383,0.754693 -1.069157,1.458282 -1.828125,1.96289 -0.16141,0.107212 -0.328472,0.195222 -0.50586,0.257813 -0.395643,0.140114 -0.80702,0.151607 -1.121093,-0.09961 -0.08791,-0.06982 -0.170063,-0.151346 -0.236328,-0.238282 -0.233299,-0.305521 -0.420476,-0.686062 -0.53711,-1.05664 -0.18099,-0.573096 -0.358218,-1.151376 -0.52539,-1.728516 -0.03527,-0.121618 -0.06609,-0.243086 -0.09961,-0.367187 -0.0072,-0.02672 -0.04071,-0.356431 -0.265625,-0.351563 -0.06665,0.0015 -0.119113,0.0413 -0.146484,0.06641 -0.195656,0.179449 -0.584031,0.970611 -0.785156,1.244141 -0.280118,0.381 -0.546304,0.770326 -0.830079,1.142578 -0.421568,0.552161 -0.908083,1.145866 -1.539062,1.392578 -0.164094,0.0634 -0.349163,0.106011 -0.517578,0.103516 -0.301449,-0.0046 -0.598849,-0.0984 -0.792969,-0.308594 -0.225815,-0.244421 -0.298796,-0.596613 -0.224609,-0.925781 0.08669,-0.3839 0.304096,-0.824313 0.675781,-0.908203 0.08147,-0.0183 0.201118,-0.018 0.259766,0.0059 0.0082,0.0035 0.01049,0.0034 0.01563,0.0059 0.187819,0.08679 0.343446,0.310851 0.611328,0.382813 0.28767,0.07671 0.554968,-0.03578 0.761718,-0.177734 0.448791,-0.306125 0.783232,-0.727866 1.103516,-1.128907 0.40814,-0.509983 0.775715,-1.050202 1.132813,-1.589843 0.05527,-0.08364 0.146588,-0.221098 0.08594,-0.408204 -0.300915,-0.921893 -0.557436,-1.867035 -0.894531,-2.785156 -0.05639,-0.153888 -0.128386,-0.303936 -0.212891,-0.445312 -0.205,-0.341984 -0.459971,-0.398652 -0.791015,-0.181641 -0.377901,0.24719 -0.653096,0.600423 -0.917969,0.923828 -0.03319,0.04037 -0.05515,0.06815 -0.07617,0.0918 -0.0232,-0.02266 -0.04675,-0.04995 -0.08398,-0.08984 -0.164777,-0.176119 -0.211195,-0.232299 -0.212891,-0.261718 -0.0017,-0.02942 0.03847,-0.08935 0.179687,-0.283204 0.37786,-0.518122 0.740184,-1.024838 1.228516,-1.417968 0.342718,-0.276113 0.67152,-0.5318791 1.076172,-0.6542971 0.380453,-0.115231 0.643965,-0.03004 0.888672,0.287109 0.24488,0.3168201 0.350398,0.6996891 0.537109,1.0761721 0.127589,0.257083 0.178498,0.53686 0.263672,0.828125 0.05873,0.200711 0.212809,0.98214 0.412109,1.101563 0.06971,0.04185 0.137378,0.02845 0.183594,0.0078 0.211308,-0.09438 0.552848,-0.74165 0.673828,-0.916016 0.286685,-0.412172 0.583054,-0.814464 0.910157,-1.189453 0.15466,-0.177339 0.324428,-0.342386 0.501953,-0.503906 0.182637,-0.166057 0.354754,-0.330495 0.546875,-0.4609381 0.233979,-0.158539 0.544018,-0.281462 0.841797,-0.294921 z"})]}),bp=e=>O(ie,{...e,children:O("path",{d:"M 18.389839,21.43332 H 4.5479552 A 0.76899357,0.62936313 0 0 1 3.9158424,20.445851 L 10.533799,12.622237 3.9158424,4.7986349 A 0.76899357,0.62936313 0 0 1 4.5479552,3.8111645 H 18.389839 a 0.76899357,0.62936313 0 0 1 0.768992,0.6293631 v 3.146816 a 0.76899381,0.62936332 0 0 1 -1.537987,0 V 5.0698908 H 6.0151952 l 6.0858138,7.1942382 a 0.76899357,0.62936313 0 0 1 0,0.716215 l -6.0858138,7.19425 H 17.620844 v -2.517453 a 0.76899381,0.62936332 0 0 1 1.537987,0 v 3.146817 a 0.76899357,0.62936313 0 0 1 -0.768992,0.629362 z"})}),wp=e=>L(ie,{...e,children:[O("path",{d:"M 4.6406587,2 H 18.692805 c 1.824112,0.00341 3.303782,1.4831539 3.307194,3.3071945 V 20.029798 c 4.66e-4,0.522189 -0.209529,1.021995 -0.580278,1.389924 C 21.050238,21.788204 20.551407,21.997765 20.029798,22 H 7.9851008 C 6.8975633,22 6.014899,21.117336 6.0148989,20.029798 V 11.298177 H 3.9702018 C 2.8826644,11.298177 2.0000002,10.415512 2,9.3279746 V 4.6406585 C 1.9999999,3.1823918 3.1823921,1.9999995 4.6406587,2 Z m -0.00196,1.2644579 c -0.6886073,0 -1.3765549,0.4616413 -1.3762008,1.3762006 v 4.681435 c 10e-8,0.3918024 0.3159019,0.7077035 0.7077044,0.7077035 H 6.0148989 V 4.6406585 C 6.0145449,3.7261175 5.3273054,3.2644579 4.6386987,3.2644579 Z m 2.2387766,0.00392 0.033327,0.056852 c 0.2364681,0.3988302 0.3641569,0.852036 0.3665942,1.3154241 v 15.389144 c 0,0.391803 0.3159014,0.707704 0.7077043,0.707704 H 20.029798 c 0.391803,1e-6 0.707704,-0.315901 0.707704,-0.707704 V 5.3130757 c 0,-1.1298234 -0.914874,-2.0446971 -2.044697,-2.044697 z"}),O("path",{className:"styled info",d:"m 11.783203,7.09375 c 0.368273,0 0.738495,0.096559 1.06836,0.2871094 l 4.666015,2.6894536 c 0.661171,0.382614 1.066406,1.087767 1.066406,1.849609 0,0.739654 -0.382377,1.425022 -1.009765,1.814453 l -4.72461,2.730469 c -0.657431,0.387116 -1.473068,0.385556 -2.132812,-0.002 -0.661063,-0.38095 -1.0664064,-1.083862 -1.0664064,-1.845703 V 9.2285156 c 0,-0.7619467 0.4053474,-1.46671 1.0664064,-1.8476562 C 11.047524,7.1902609 11.415058,7.09375 11.783203,7.09375 Z m 0.002,1.6152344 c -0.08997,0.00192 -0.17745,0.025161 -0.259765,0.068359 -0.161224,0.093237 -0.259766,0.2653146 -0.259766,0.4511718 v 5.3886724 c 0,0.184057 0.09697,0.356194 0.257813,0.447265 0.159466,0.09338 0.356243,0.09525 0.517578,0.0039 l 4.669921,-2.699218 c 0.158801,-0.09297 0.257813,-0.262683 0.257813,-0.447266 0,-0.184591 -0.100631,-0.356052 -0.259766,-0.447266 L 12.041016,8.7773438 c -0.07748,-0.04456 -0.164258,-0.068377 -0.25586,-0.068359 z"})]}),vp=e=>L(ie,{...e,children:[O("path",{d:"M 4.640625,2 C 3.1823599,1.9999995 1.9999999,3.1823598 2,4.640625 v 4.6875 c 2e-7,1.087536 0.8831668,1.970703 1.9707031,1.970703 H 6.015625 v 8.730469 C 6.0156251,21.116834 6.8968386,22 7.984375,22 h 3.810547 C 11.475372,21.762421 11.17322,21.501489 10.894531,21.212891 10.737985,21.06173 10.591026,20.901929 10.449219,20.738281 H 7.984375 c -0.3918025,0 -0.7070312,-0.317182 -0.7070312,-0.708984 V 4.640625 C 7.2749065,4.1772374 7.1466241,3.7250017 6.9101562,3.3261719 L 6.8769531,3.2675781 H 18.693359 c 1.129822,-1e-7 2.044922,0.9150996 2.044922,2.0449219 v 5.052734 c 0.1799,0.153336 0.354457,0.313431 0.519531,0.484375 0.27039,0.261087 0.516473,0.542689 0.742188,0.839844 V 5.3066406 C 21.996588,3.4826018 20.51747,2.00341 18.693359,2 Z m -0.00195,1.2636719 c 0.688606,0 1.3765991,0.462413 1.3769531,1.3769531 v 5.388672 H 3.9707031 c -0.3918021,0 -0.7089843,-0.3152294 -0.7089843,-0.7070314 V 4.640625 C 3.2613647,3.7260666 3.9500653,3.2636719 4.6386719,3.2636719 Z"}),O("path",{d:"m 20.482992,12.175071 c -0.720698,-0.746325 -1.627093,-1.287261 -2.626024,-1.567398 -0.998983,-0.280163 -2.054528,-0.289256 -3.058394,-0.02662 -1.003665,0.262727 -1.91938,0.787907 -2.653077,1.521506 -0.7337,0.733598 -1.258779,1.649312 -1.521506,2.653079 -0.262628,1.003765 -0.253535,2.05931 0.02662,3.058392 0.280161,0.998983 0.821072,1.905376 1.567397,2.626024 0.720698,0.746325 1.627094,1.287261 2.626022,1.567399 0.998984,0.280162 2.054528,0.289256 3.058394,0.02662 1.003665,-0.262725 1.919381,-0.787905 2.653078,-1.521503 0.733702,-0.733594 1.25878,-1.649309 1.521506,-2.653075 0.262628,-1.003766 0.253534,-2.059312 -0.02662,-3.058393 -0.280156,-0.998988 -0.821068,-1.905383 -1.567393,-2.62603 z m -0.824107,7.440694 c -0.764534,0.765413 -1.770754,1.241945 -2.847218,1.34861 -1.076587,0.10666 -2.156781,-0.163219 -3.056638,-0.763634 -0.899858,-0.60043 -1.563691,-1.494301 -1.878374,-2.529331 -0.314679,-1.034979 -0.260774,-2.147088 0.152549,-3.146821 0.413228,-0.999657 1.16043,-1.82524 2.11412,-2.335841 0.953665,-0.510601 2.054902,-0.674806 3.116008,-0.464508 1.061105,0.210285 2.016552,0.782046 2.703431,1.617699 0.686828,0.835753 1.062784,1.883759 1.06366,2.965456 0.002,0.61451 -0.117709,1.223257 -0.352557,1.791197 -0.234746,0.567842 -0.579786,1.083528 -1.01521,1.517099 z"}),O("path",{className:"styled info",d:"m 19.285761,15.525542 h -2.246906 v -2.246905 c 0,-0.267568 -0.142685,-0.514831 -0.3744,-0.648616 -0.23171,-0.133781 -0.517332,-0.133781 -0.749052,0 -0.231715,0.13378 -0.374402,0.381044 -0.374402,0.648616 v 2.246905 h -2.246902 c -0.267568,0 -0.514832,0.142685 -0.648617,0.374401 -0.133781,0.231711 -0.133781,0.517332 0,0.749051 0.133779,0.231716 0.381044,0.3744 0.648617,0.3744 h 2.246902 v 2.246907 c 0,0.267568 0.142687,0.514829 0.374402,0.648615 0.231711,0.133782 0.517332,0.133782 0.749052,0 0.231715,-0.133779 0.3744,-0.381044 0.3744,-0.648615 v -2.246907 h 2.246906 c 0.267567,0 0.514831,-0.142684 0.648616,-0.3744 0.133782,-0.231711 0.133782,-0.517332 0,-0.749051 -0.13378,-0.231716 -0.381045,-0.374401 -0.648616,-0.374401 z"})]}),xp=e=>L(ie,{...e,children:[O("path",{d:"M 4.3007812,1.4355469 H 16.400391 c 0.174994,0 0.343836,0.070399 0.46875,0.1953125 l 5.5,5.5 c 0.124808,0.1247939 0.195312,0.2939152 0.195312,0.46875 l -0.002,12.0996096 c 0,1.576487 -1.286795,2.863281 -2.863281,2.863281 H 4.3007812 c -1.5774391,0 -2.8652343,-1.286169 -2.8652343,-2.863281 V 4.3007812 c 0,-1.5757367 1.2894976,-2.8652343 2.8652343,-2.8652343 z m 0,1.328125 c -0.8504478,0 -1.5351563,0.6876384 -1.5351562,1.5371093 l -0.00195,15.3984378 c 0,0.850447 0.6876385,1.535156 1.5371093,1.535156 l 15.3984378,0.002 c 0.850443,0 1.535156,-0.687587 1.535156,-1.537109 V 7.8769531 L 16.125,2.765625 H 14.865234 L 14.867188,6.5 c 0,0.3638815 -0.301094,0.6640626 -0.666016,0.6640625 H 6.5019531 C 6.1370308,7.1640625 5.8359375,6.8638819 5.8359375,6.5 V 2.7636719 Z m 2.8632813,0.00195 V 5.8359375 H 13.535156 V 2.765625 Z"}),O("path",{className:"styled info",d:"m 12,10.140625 c 2.236203,0 4.060547,1.824344 4.060547,4.060547 0,2.236201 -1.824345,4.060547 -4.060547,4.060547 -2.2362018,0 -4.0605469,-1.824346 -4.0605469,-4.060547 0,-2.236203 1.824345,-4.060547 4.0605469,-4.060547 z m 0,1.521484 c -1.402733,0 -2.5390625,1.135235 -2.5390625,2.539063 0,1.402733 1.1352355,2.539062 2.5390625,2.539062 1.403806,0 2.539062,-1.136324 2.539063,-2.539062 0,-1.402734 -1.135235,-2.539063 -2.539063,-2.539063 z"})]}),Sp=e=>O(ie,{...e,children:O("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"})}),Cp=e=>L(ie,{...e,children:[O("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"}),O("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"})]}),kp=e=>(e=>{const{style:t,orientation:n=Zc.Vertical,...o}=e,r=n===Zc.Vertical;return O("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...t},className:`scrollbar-button ${r?"vertical":"horizontal"} edge`,...o,children:O("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:O("path",{style:{transition:"opacity 240ms ease 0s",opacity:e.disabled?0:1},d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})})})})({style:{cursor:"pointer"},...e}),Ep=(e,t,n,o)=>{const{style:r,...i}=e,l=O(oe,{component:"div",...i,style:{...r,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:t});return O(Gf,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?O("div",{style:{display:"flex"},children:l}):l})},_p=e=>Ep(e,O(Fe,{fontSize:"small"}),"Scroll "+(e.orientation===Zc.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Zc.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),Tp=e=>Ep(e,O(ze,{fontSize:"small"}),"Scroll "+(e.orientation===Zc.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Zc.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),Mp=z(j((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i="vertical"===n;return O(te,{ref:t,sx:{marginLeft:i?"1px":void 0,marginRight:i?"1px":void 0,backgroundColor:"transparent !important",borderColor:e=>e.palette.divider,...o},orientation:n,variant:"middle",flexItem:!0,...r})}));function Dp(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Rp=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=Dp(o,t),r="function"==typeof e;n.push(r?e:()=>Dp(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)Dp(n,t)}},Op=function(){},Lp="undefined"!=typeof window,Ip=Lp?U:V,Ap={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Pp=Lp&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(Ap),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return Ip(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[Op,Ap]};z(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return O(ne,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:e=>e.palette.grey[600],fill:"none"},...t},...r,children:L("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[O("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),O("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:O("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),O("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:O("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const zp=z(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return O(ne,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:e=>e.palette.grey[600]},"& .secondary":{stroke:e=>e.palette.grey[600],fill:"none",opacity:.5},...t},...r,children:L("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[O("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),O("path",{className:"primary",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50",children:O("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});z(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return O(ne,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,...t},...r,children:L("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[O("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:O("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),O("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:O("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),O("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:O("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),z(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return O(ne,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:e=>e.palette.grey[600],stroke:"none"},...t},...r,children:L("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[O("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:O("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),O("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:O("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),O("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:O("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),z(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return O(ne,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:e=>e.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:e=>e.palette.grey[600],opacity:.8,stroke:e=>e.palette.background.paper},...t},...r,children:L("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[O("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),O("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:O("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const Fp=z(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...l}=e;return L(ne,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:e=>e.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:si("_traverse-ellipsis_14l1h_1","animated-icon"),...l,children:[O("div",{className:"primary"}),O("div",{className:"primary"}),O("div",{className:"primary"}),O("div",{className:"primary"})]})}),Np=O(zp,{}),Vp=z(j((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:l="1200ms",panel:a=!1,transparentBackground:s=!0,icon:c=Np,label:d,...u}=e,h=$(()=>"string"==typeof d?O(se,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:d}):d,[d]),p=F(null),f=$(()=>{let e=L(ne,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[h,c]});return!0===a&&(e=O(ce,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:e=>e.palette.info.light,color:e=>e.palette.info.contrastText,paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2),paddingTop:e=>e.spacing(2),paddingBottom:e=>e.spacing(1),rowGap:e=>e.spacing(1),borderRadius:e=>`${e.shape.borderRadius}px`,boxShadow:e=>e.shadows[2],"& .primary":{background:e=>`${ut(e.palette.info.contrastText,.9)} !important`,boxShadow:e=>`0 0 0 1px ${"dark"===e.palette.mode?e.palette.text.secondary:e.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:e})),O(ne,{ref:Rp([p,t]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:s?.001:1,transitionProperty:"opacity",transitionDelay:l,transitionDuration:"320ms",transitionTimingFunction:"ease-in",overflow:"hidden",outline:"none",width:"100%",height:"100%",zIndex:99999,"&.animating":{opacity:1},"&.animating-exit":{opacity:0,transition:"opacity 210ms"},...n,...o},...u,children:L(ne,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[O(ne,{className:"backdrop",sx:{opacity:e=>s?1.5*e.palette.action.disabledOpacity:void 0,background:e=>s?void 0:e.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:e=>`${e.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),e]})})},[n,a]),m=F(!1),g=F(!1);return Ip(()=>{if(p.current&&!m.current&&!g.current){if(g.current=!0,p.current.classList.contains("animatable")&&!p.current.classList.contains("animating")){let e=!1;const t=()=>{g.current&&(m.current=!0,g.current=!1,e=!0,r?.())};p.current&&p.current.addEventListener("transitionrun",t,{once:!0,capture:!0,passive:!0}),g.current&&p.current&&(window.getComputedStyle(p.current,null).opacity,p.current.classList.add("animating")),setTimeout(()=>{!e&&g.current&&p.current&&(p.current?.removeEventListener("transitionrun",t),t())},100)}else m.current=!0,g.current=!1,r?.();return()=>{}}},[p.current]),V(()=>()=>{m.current&&(p.current?.classList.remove("animating"),m.current=!1,g.current=!1,i?.())},[]),f}));Vp.displayName="LoadingPanel";const Hp=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,Bp=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,$p=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},jp=z(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=N(null);if(!e?.stack)return null;const i=(e=>{const t=[],n=(e,o=0)=>{e&&(t.push({error:e,depth:o}),e.cause&&e.cause instanceof Error&&n(e.cause,o+1))};return n(e),t.reverse()})(e).reverse(),l=[];i.forEach(({error:e},t)=>{const n=(e.stack||"").split("\n").filter(Boolean).map(e=>{let t=e.match(Hp);if(t){const[,e="",n,o,r,i]=t;return{line:`at ${e?e+" ":""}${n}`,location:`${$p(o).split(/[\\/]/).pop()}:${r}:${i}`}}if(t=e.match(Bp),t){const[,e="",n,o,r]=t,i=$p(n),l=`${i.split(/[\\/]/).pop()}:${o}:${r}`;return{line:`at ${e?e+" ":""}${l}`,location:i!==l?`${i}:${o}:${r}`:void 0}}return{line:e.trim()}});n.length&&(l.push({line:t?`Caused by: ${n[0].line}`:n[0].line,isBoundary:!0}),l.push(...n.slice(1)))});const a=t?l.slice(0,t):l,s=t&&l.length>t;return L(ne,{sx:{width:"100%",mt:1},children:[L(ne,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[L(se,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),O(ne,{sx:{flex:1}}),o&&O(se,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),O(oe,{size:"small",onClick:async()=>{try{let e=0;const t=l.map(t=>{if(t.isBoundary)return e=0,t.line;e++;let n=t.location&&t.line!==t.location?`${t.line} (${t.location})`:t.line;return e>=1&&(n=` ${n}`),n}).join("\n");await navigator.clipboard.writeText(t),r("Copied!"),setTimeout(()=>r(null),2e3)}catch(e){r("Can't copy!"),console.warn("Failed to copy stack trace:",e)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:O(He,{sx:{fontSize:"0.875rem"}})}),O(oe,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:O(Be,{sx:{fontSize:"0.875rem"}})})]}),L(ne,{sx:{mt:1,backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:1,p:1,maxHeight:"300px",overflow:"auto",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.4},children:[a.map((e,t)=>e.isBoundary?O(ne,{sx:{py:1,mt:t>0?1:0,mb:.5,borderTop:t>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:O(se,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:t=>e.isBoundary?t.palette.text.primary:t.palette.text.secondary,display:"block"},children:e.line})},`error-${t}`):L(ne,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&O(se,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:t+1}),L(ne,{sx:{flex:1,overflow:"hidden"},children:[O(se,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:e.line}),e.location&&e.line!==e.location&&O(se,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:e.location})]})]},`stack-${t}`)),s&&L(se,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",l.length-t," more frames"]})]})]})});jp.displayName="StackTrace";const Wp=z(j((e,t)=>{const{sx:n,icon:o=O(Ne,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:l=!1,...a}=e,s=$(()=>((e,t=!1)=>{if(P.isValidElement(e))return e;if(e instanceof Error)return L(ne,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[O(se,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:e.message}),e.cause?L(se,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",e.cause instanceof Error?e.cause.message:String(e.cause)]}):null,!t&&O(jp,{error:e,hideLineNumbers:!0})]});const n="string"===e?e:`Unknown Error: ${String(e)}`;return O(se,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:n})})(r,i,l),[r,i,l]);return $(()=>O(ne,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...a,children:L(ne,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[O(ne,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:e=>`${e.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),O(ce,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:e=>e.palette.error.light,color:e=>e.palette.error.contrastText,paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2),paddingTop:e=>e.spacing(2),paddingBottom:e=>e.spacing(2),borderRadius:e=>`${e.shape.borderRadius}px`,boxShadow:e=>e.shadows[2],"& .primary":{background:e=>`${e.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:O(ne,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:e=>e.spacing(2),width:"100%",maxWidth:"600px"},children:L(ne,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e=>e.spacing(2)},children:[o,s]})})})]})}),[n])}));Wp.displayName="ErrorPanel";const Up=z(j((e,t)=>{const{chips:n,sx:o,...r}=e,i=P.useMemo(()=>{if(!n)return null;let e=null;e=Array.isArray(n)?n:[n];const t=[];for(let n=0;n<e.length;n++){const o=e[n];let r=null;"string"==typeof o?r=O(he,{label:o,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+n):P.cloneElement(o,{key:"chip-"+n}),t.push(r)}return t},[n]);return O(ne,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var qp="top",Zp="bottom",Gp="right",Kp="left",Xp=[qp,Zp,Gp,Kp],Yp="viewport",Jp="popper";function Qp(e){return e?(e.nodeName||"").toLowerCase():null}function ef(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tf(e){return e instanceof ef(e).Element||e instanceof Element}function nf(e){return e instanceof ef(e).HTMLElement||e instanceof HTMLElement}function of(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ef(e).ShadowRoot||e instanceof ShadowRoot)}var rf=Math.max,lf=Math.min,af=Math.round;function sf(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function cf(){return!/^((?!chrome|android).)*safari/i.test(sf())}function df(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&nf(e)&&(r=e.offsetWidth>0&&af(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&af(o.height)/e.offsetHeight||1);var l=(tf(e)?ef(e):window).visualViewport,a=!cf()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,c=(o.top+(a&&l?l.offsetTop:0))/i,d=o.width/r,u=o.height/i;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s,x:s,y:c}}function uf(e){return ef(e).getComputedStyle(e)}function hf(e){return["table","td","th"].indexOf(Qp(e))>=0}function pf(e){return((tf(e)?e.ownerDocument:e.document)||window.document).documentElement}function ff(e){return"html"===Qp(e)?e:e.assignedSlot||e.parentNode||(of(e)?e.host:null)||pf(e)}function mf(e){return nf(e)&&"fixed"!==uf(e).position?e.offsetParent:null}function gf(e){var t=ef(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yf(e){return df(pf(e)).left+gf(e).scrollLeft}function bf(e){var t=uf(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function wf(e){return["html","body","#document"].indexOf(Qp(e))>=0?e.ownerDocument.body:nf(e)&&bf(e)?e:wf(ff(e))}function vf(e,t){var n;void 0===t&&(t=[]);var o=wf(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ef(o),l=r?[i].concat(i.visualViewport||[],bf(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(vf(ff(l)))}function xf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sf(e,t,n){return t===Yp?xf(function(e,t){var n=ef(e),o=pf(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var c=cf();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+yf(e),y:s}}(e,n)):tf(t)?function(e,t){var n=df(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):xf(function(e){var t,n=pf(e),o=gf(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=rf(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=rf(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+yf(e),s=-o.scrollTop;return"rtl"===uf(r||n).direction&&(a+=rf(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(pf(e)))}function Cf(e){var t=vf(ff(e)),n=["absolute","fixed"].indexOf(uf(e).position)>=0&&nf(e)?function(e){for(var t=ef(e),n=mf(e);n&&hf(n)&&"static"===uf(n).position;)n=mf(n);return n&&("html"===Qp(n)||"body"===Qp(n)&&"static"===uf(n).position)?t:n||function(e){var t=/firefox/i.test(sf());if(/Trident/i.test(sf())&&nf(e)&&"fixed"===uf(e).position)return null;var n=ff(e);for(of(n)&&(n=n.host);nf(n)&&["html","body"].indexOf(Qp(n))<0;){var o=uf(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}(e):e;return tf(n)?t.filter(function(e){return tf(e)&&function(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&of(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}(e,n)&&"body"!==Qp(e)}):[]}const kf={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,o=function(e,t){void 0===t&&(t={});var n,o=t,r=o.placement,i=void 0===r?e.placement:r,l=o.strategy,a=void 0===l?e.strategy:l,s=o.boundary,c=void 0===s?"clippingParents":s,d=o.rootBoundary,u=void 0===d?Yp:d,h=o.elementContext,p=void 0===h?Jp:h,f=o.altBoundary,m=void 0!==f&&f,g=o.padding,y=void 0===g?0:g,b=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof y?y:(n=y,Xp.reduce(function(e,t){return e[t]=n,e},{}))),w=p===Jp?"reference":Jp,v=e.rects.popper,x=e.elements[m?w:p],S=function(e,t,n,o){var r="clippingParents"===t?Cf(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce(function(t,n){var r=Sf(e,n,o);return t.top=rf(r.top,t.top),t.right=lf(r.right,t.right),t.bottom=lf(r.bottom,t.bottom),t.left=rf(r.left,t.left),t},Sf(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(tf(x)?x:x.contextElement||pf(e.elements.popper),c,u,a),C=df(e.elements.reference),k=function(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?function(e){return e.split("-")[0]}(r):null,l=r?function(e){return e.split("-")[1]}(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case qp:t={x:a,y:n.y-o.height};break;case Zp:t={x:a,y:n.y+n.height};break;case Gp:t={x:n.x+n.width,y:s};break;case Kp:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(i):null;if(null!=c){var d="y"===c?"height":"width";switch(l){case"start":t[c]=t[c]-(n[d]/2-o[d]/2);break;case"end":t[c]=t[c]+(n[d]/2-o[d]/2)}}return t}({reference:C,element:v,placement:i}),E=xf(Object.assign({},v,k)),_=p===Jp?E:C,T={top:S.top-_.top+b.top,bottom:_.bottom-S.bottom+b.bottom,left:S.left-_.left+b.left,right:_.right-S.right+b.right},M=e.modifiersData.offset;if(p===Jp&&M){var D=M[i];Object.keys(T).forEach(function(e){var t=[Gp,Zp].indexOf(e)>=0?1:-1,n=[qp,Zp].indexOf(e)>=0?"y":"x";T[e]+=D[n]*t})}return T}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,l=r.y;let a=t.rects.popper,s=a.width,c=a.height,d=t.placement.split("-")[0],u="left"===d?"left":"right",h="top"===d?"top":"bottom";t.modifiersData[n]={width:s-o[u]-i,height:c-o[h]-l}}},Ef=[0,2],_f=z(j((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:l=Ef,anchorEl:a,anchorPosition:s,onMount:c,onOpening:d,onOpen:u,onClosing:h,onClose:p,resizeOnOverflow:f=!0,...m}=e;if(Array.isArray(r))throw new Error("children can not be an array");const g=cc(),y={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:e}){const{height:t}=e.modifiersData.maxSize;e.styles.popper.maxHeight=t-10+"px"}},b=$(()=>{const e=[{name:"offset",options:{offset:l}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return f&&e.unshift(kf,y),e},[f,l]),[w,v]=N(!1),x=P.useRef(null),S=td(()=>{c?.(D.current,x.current)},[d]),C=td(d,[d]),k=td(u,[u]),E=td(h,[h]),_=td(()=>{v(!1),p?.()},[p]),[T,M]=N(!1),D=P.useRef(null),R=P.useRef(!0),L=$(()=>({onFirstUpdate:()=>{R.current&&(M(!0),S?.(),R.current=!1)}}),[o,w]);V(()=>{o&&T?C?.():!o&&w&&E?.(),o&&v(o)},[o,T]);const I=$(()=>({getBoundingClientRect:()=>s?new DOMRect(s?.left||0,s?.top||0,0,0):a.getBoundingClientRect()}),[s,a]);W(t,()=>({instance:()=>x.current,element:()=>D.current}),[]);const{getPortalContainer:A}=$d(),z=$(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:w&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,w]);return O(pe,{ref:D,popperRef:x,container:A,anchorEl:I,open:w,role:void 0,popperOptions:L,transition:!0,sx:z,placement:"bottom-start",modifiers:b,...m,children:({TransitionProps:e,placement:t,...n})=>{const{in:i,onEnter:l,onExited:a,...s}=e??{};return O(fe,{...s,in:o,onEnter:()=>{l?.(),k()},onExited:()=>{a?.(),_()},timeout:{enter:g.transitions.duration.shorter,exit:0},style:{transformOrigin:"bottom-start"===t?"left top":"center bottom"},children:"function"==typeof r?r({TransitionProps:e,placement:t,...n}):r||{}})}})}));_f.displayName="ExhibitPopper";const Tf={Toolbar:"toolbar",Menuitem:"menuitem"},Mf=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:l,sx:a,...s}=e;return O(ne,{className:si("menu",l),sx:{display:"flex",flexDirection:"column",...a},...s,children:i})},Df=(e,t,n)=>O(Ve,{sx:{marginLeft:e?void 0:t?"-5px":"-3px",marginRight:e?void 0:t?"-5px":"-6px",transform:()=>{let e;return t&&(e=(e?e+" ":"")+"scale(0.8)"),n&&(e=(e?e+" ":"")+"rotate(180deg)"),e}},color:"inherit"}),Rf=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Of=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Lf=function(e,t=null){if(!e)return e;e=e.replace(Rf,function(e,t,n,o){return t+t+n+n+o+o});let n=Of.exec(e);return n?null===t?`rgb(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)})`:`rgb(${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)} / ${100*t}%)`:e},If=function(e,t=.2,n="light"){if(!e)return e;let o="dark"!==n;return t<0&&(o=!o,t*=-1),e=Lf(e),o?ht(e,Math.max(0,Math.min(1,1*t))):pt(e,Math.max(0,Math.min(1,1.5*t)))},Af=(e,t)=>{let n=ac({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:ut(n.palette.text.secondary,.75),icon:e?ut(n.palette.text.secondary,.7):ut(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},r=o;return t&&(r=Ct(o,t)),ac(r)};function Pf(e,t){t=Ct({track:If(e.palette.background.paper,.05,e?.palette.mode),thumb:If(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},t||{});const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:ut(t.track,.2),width:"13px",height:"13px"},"&::-webkit-scrollbar-button":{display:"none"},"& .scrollbar-button":{fill:t.thumb,backgroundColor:"transparent",transition:"fill opacity 260ms ease",width:"13px",height:"13px"},"& .scrollbar-button:hover:not([disabled])":{fill:t.active},"& .scrollbar-button:disabled":{opacity:.8},"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track":{},"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece":{},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t.thumb,minHeight:"24px",minWidth:"24px",border:`2px solid ${t.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:t.active,border:t.outline?t.outline:void 0},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:t.corner||t.thumb}};return il.getOS()===il.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const zf=z(j((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:l,createPopupPanel:a=Mf,popperProps:s,onMount:c,onClosing:d,onClose:u,onOpening:h,onOpen:p,children:f,sx:m,...g}=e,y=td(d,[d]),b=td(u,[u]),w=td(h,[h]),v=td(p,[p]),[x,S]=N(),C=F(null),k=td((e,t)=>{S(e),c?.(C.current,t)},[c]),E=$(()=>{const e={popupContainer:x,floatReference:l,children:f,...g},t=a(e);return O(ce,{elevation:8,ref:C,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":e=>Pf(e)},tabIndex:0,children:t})},[a,f,x,l]);return O(_f,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:k,onOpening:w,onOpen:v,onClosing:y,onClose:b,...s,children:E})}));zf.displayName="ExhibitFloatPanel";const Ff=new Map;let Nf=null;const Vf=new Map;let Hf=null;const Bf=(e=null,t,n,o)=>{if(Hf&&(Hf.fn.clear(),Hf=null),0===e)return t;null===e&&(e=120);const r=il.debounce(()=>t(),e);return Hf={fn:r,setReferences:n,isClose:o},Hf.fn},$f=(e,t)=>{if(null===t)return;e.add(t);const n=Ff.get(t.key);if(!n)return;const o=Vf.get(n);o&&$f(e,o)},jf=e=>{const t=new Set;return $f(t,e),t},Wf=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:l,createPopupPanel:a=Mf}=e??{},s=td(r,[r]),c=td(i,[i]),[d,u]=N(null),[h,p]=N(!1),[f,m]=N(!1),g=$(()=>null===o?(null===Nf&&(Nf={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:e=>null,closeChild:e=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>I(0),floatElement:()=>null,anchorElement:()=>null}),Nf):o,[]),y=$(()=>({label:n}),[]),b=P.useRef(null),w=P.useRef(t);V(()=>{w.current=t},[t]);const v=e=>{const t=Ff.get(e);let n=null;if(t){const e=Vf.get(t);n=e?.close(0)}return n},x=()=>v(F.key),[S,C]=N(),k=()=>{if(!d)return void M();const e=new Promise((e,t)=>{C(n=>({resolve:e,reject:t}))});return x(),Ff.delete(g.key),u(!1),e};V(()=>{S&&(S.resolve(),C(null))},[h,f,S]);const E=H(()=>{let e=g;for(;e.parent;)e=e.parent;return v(e.key)},[]),_=()=>{if(d)return void M();if(g){const e=Vf.get(g.key);e?.open(0)}const e=Ff.get(g.key);if(e&&e!==y){const t=Vf.get(e);t?.close(0)}requestAnimationFrame(()=>{Ff.set(g.key,F.key),u(!0)})},[T,M]=P.useReducer(e=>e+1,0),D=H(e=>null===a?null:a({closeFloat:I,closeFloatAll:z,...e}),[a]),R=null===a,L=td((e=120)=>Bf(e,_,new Set([F]),!1)(),[_]),I=td((e=60)=>Bf(e,k,jf(F),!0)(),[k]),A=td((e=360)=>Bf(e,x,jf((e=>{const t=Ff.get(e.key);return t&&Vf.get(t)||null})(F)),!0)(),[x]),z=td(E,[E]),F=$(()=>({key:y,isRoot:!1,label:n,parent:g,onChildVisible:()=>{m(!0)},onChildHidden:()=>{m(!1)},open:L,close:I,closeChild:A,closeAll:z,floatElement:()=>b.current,anchorElement:()=>w.current}),[]);V(()=>{Vf.set(y,F)},[F]),V(()=>()=>{Vf.delete(y),I(0)},[]),V(()=>{d&&!R&&(p(!0),g.onChildVisible())},[d,R]);const B=H(e=>{e.which===qc.Escape&&(e.preventDefault(),e.stopPropagation(),I(0))},[]),j=P.useRef(null),W=H(()=>{const e=j.current,t=b.current;e&&t&&(requestAnimationFrame(()=>{(t.contains(document.activeElement)||document.activeElement===document.body)&&e.focus()}),j.current=null),c?.()},[]),U=H(e=>{b.current=e,e.addEventListener("focus",e=>{j.current=e.relatedTarget},{once:!0,passive:!0});const t=document.activeElement;requestAnimationFrame(()=>{t===document.activeElement&&e.focus()})},[]),[q,Z]=N();V(()=>{R&&(d?s?.():!1===d&&c?.()),Z(h?O(zf,{floatReference:F,open:d,label:n,anchorEl:t,onOpening:()=>{s?.(),g.onChildVisible()},onClosing:W,onClose:()=>{p(!1),g.onChildHidden()},onMount:U,popperProps:{onKeyDown:B,onMouseEnter:e=>{d&&Hf?.isClose&&Hf.setReferences.has(F)&&(Hf.fn.clear(),Hf=null,F.closeChild())},...l},createPopupPanel:D}):null)},[h,d,n,R,l,D,T]);const G=td(e=>{if(0===Ff.size)return;let t=!1;Ff.forEach(n=>{const o=Vf.get(n);if(t)return;if(!o)return;const r=o.floatElement();r?.contains?.(e.target)&&(t=!0);const i=o.anchorElement();i?.contains?.(e.target)&&(t=!0)}),t||E()},[E]);return V(()=>{if(!d||!g.isRoot)return;const e=e=>{G(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focus",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focus",e)}},[d,g]),{component:q,reference:F}},Uf=z(j((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...l}=e,a=td(e=>{if(!n||0===n.length)return null;const{popupContainer:o,floatReference:r,ref:i,...l}=e,a=[];for(let e=0;e<n.length;e++){const t=n[e];t&&a.push(O(Uf,{parentFloat:r,...l,...t},e))}return L(ne,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",a,O(om,{parentFloat:r,children:"Close other children"})]})},[n]),s={disabled:r,createPopupPanel:a,...l};return O(o===Tf.Toolbar?im:am,{...s})})),qf={placement:"right-start"},Zf=z(j((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:l=qf,label:a,...s}=e;!function(e){if(!e)throw new Error("Invariant failed")}(P.isValidElement(n));const c=n,d=$(()=>({...c?.props,...s,onContextMenu:e=>{c?.props?.onContextMenu?.(e),e.isDefaultPrevented()||(s?.onContextMenu?.(e),e.isDefaultPrevented()||(p(e),e.preventDefault()))}}),[s,c?.props]),u=td(i,[i]),[h,p]=P.useState(null),{reference:f,component:m}=Wf({label:a??"contextMenu",popperProps:l,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(h?.clientX||0,h?.clientY||0)},onClose:()=>p(null),createPopupPanel:u});return V(()=>{h?f.open(0):f.close(0)},[h]),L(I,{children:[P.cloneElement(n,d),m]})})),Gf=j((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=$d();return O(de,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});Gf.displayName="SimpleTooltip";const Kf=z(e=>{const{modifier:t,sx:n,...o}=e;return O(ne,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:e=>ut(e.palette.background.paper,e.palette.action.disabledOpacity),borderLeftColor:e=>ut(e.palette.background.paper,e.palette.action.disabledOpacity),borderRightColor:e=>ut(e.palette.background.paper,e.palette.action.disabledOpacity),borderBottomColor:e=>ut(e.palette.background.paper,1-e.palette.action.disabledOpacity),backgroundColor:e=>ut(e.palette.action.hover,e.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...o,children:O(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),Xf=il.getOS()===il.OSType.MacOS||il.getOS()===il.OSType.IOS?"Cmd":"Ctrl",Yf=(e,t=!1,n=null)=>{if(Array.isArray(e)){let o=[],r=e;for(let e=0;e<r.length;e++)o.push(Yf(r[e],t,n??""+e));return O(ne,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:o},n)}if(!e?.key)return null;const o={};for(let t=0;e.modifiers&&t<e.modifiers.length;t++)o[e.modifiers[t]]=!0;const r=[];return o?.ctrl&&(r.push(O(Kf,{modifier:t?"^":O("div",{style:{paddingRight:"1px"},children:Xf})},"ctrl")),r.push("+")),o?.alt&&(r.push(O(Kf,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(O(Kf,{modifier:t?"⇧":O("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(O(Kf,{modifier:t?O("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(O(Kf,{modifier:Ad.toPrettyKeyCode(e.key)},"character")),O(ne,{sx:{display:"flex",alignItems:"center"},children:r},n)},Jf=z(j((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:l,maxWidth:a=280,useModifierSymbols:s=!1,children:c,simple:d,componentDisabled:u=!1,sx:h,...p}=e;let f=null;return r&&(f=Yf(r,s)),O(Gf,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...h},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?L(ne,{sx:{maxWidth:`${a}px`},ref:t,children:[L(ne,{sx:{display:"flex",flexDirection:"row",marginBottom:l?"4px":"0px"},children:[O(se,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?O(Up,{chips:i}):null,f?O(ne,{sx:{marginLeft:"8px"}},"leadingSpace"):O(I,{}),f]}),l?O(se,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:l}):O(I,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...p,children:O("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:c})})})),Qf=O(Dl,{}),em=kc(O(Rl,{})),tm=z(j((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:l,icon:a,tooltipProps:s,children:c,primary:d,sx:u,className:h,onFocus:p,onBlur:f,...m}=e,[g,y]=N(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:e=>`${e.shape.borderRadius}px`,color:e=>d?void 0:e.palette.text.icon??e.palette.action.active,border:e=>`solid ${o?e.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:e=>`${e.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:e=>ut(e.palette.text.primary,e.palette.action.selectedOpacity),border:e=>`solid ${o?e.palette.text?.primary:e.palette.divider} 1px`},"&.Mui-disabled":{border:e=>`solid ${o?e.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...u},w={"&:hover:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary,border:e=>`solid ${o?e.palette.text?.primary:e.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:e=>ut(e.palette.text.primary,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},"> .outline-hover":{outline:e=>`solid ${o?e.palette.text?.primary:e.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px`,border:e=>`1px solid ${e.palette?.primary?.main}`,zIndex:1}};let v=b;r||(v=il.mergeContentful(b,w));const x=$(()=>{let e="function"==typeof a?a():a;return null===e?e:e||(void 0===l?Qf:em)},[a,l]);let S=L(oe,{component:"div",ref:t,className:si({"Mui-focusVisible":g,"Mui-selected":l},h),onFocus:e=>{y(!0),p?.(e)},onBlur:e=>{y(!1),f?.(e)},size:"small",TouchRippleProps:{center:!1},sx:v,edge:"end",...m,children:[x,c]});if(s)if(s.simple&&s.label&&!s.disabled){const{label:e,description:t,maxWidth:n,shortcut:o,useModifierSymbols:r,componentDisabled:i,simple:l,chips:a,ref:c,...d}=s;S=O(Gf,{disableInteractive:!0,title:e??"",...d,children:O(ne,{sx:{display:"flex"},children:S})})}else S=O(Jf,{children:S,...s});return S})),nm=e=>e.icon,om=z(j((e,t)=>{const{icon:n=Qf,renderIcon:o=nm,parentFloat:r,className:i,onFocus:l,selected:a,onBlur:s,onMouseOver:c,onMouseOut:d,onMouseEnter:u,disabled:h,children:p,sx:f,tooltipProps:m,chips:g,primary:y,...b}=e,[w,v]=N(!1),[x,S]=N(!1),C=$(()=>{const e=o?.({icon:n,disabled:h,selected:a});return e?O(le,{className:si({"Mui-focusVisible":w,"Mui-hovered":x}),sx:{"& .MuiSvgIcon-root":{color:e=>y?void 0:e.palette.text.icon??e.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:e=>e.palette.text.primary}}},children:e}):null},[o,h,n,w,x,y,a]);let k=L(ae,{ref:t,disabled:h,onMouseOver:e=>{c?.(e),e.isDefaultPrevented()||S(!0)},onMouseOut:e=>{d?.(e),e.isDefaultPrevented()||S(!1)},onMouseEnter:e=>{u?.(e),e.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:si({"Mui-focusVisible":w,"Mui-hovered":x},i),onFocus:e=>{l?.(e),v(!0)},onBlur:e=>{s?.(e),v(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:e=>e.palette.text.primary},color:e=>e.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},...f},...b,children:[C,p,g?O(Up,{chips:g}):null]});return m&&(k=O(Jf,{children:k,placement:"right-start",...m})),k})),rm=z(j((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...l}=e;return O(I,{children:O(se,{ref:t,variant:i,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:"subtitle1"===i?"2px":void 0,paddingBottom:"subtitle1"===i?"2px":void 0,color:e=>r?void 0:e.palette.text.secondary,...o},...l,children:n})})})),im=z(j((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:l,parentFloat:a,createPopupPanel:s,popupProps:c,onPopupOpen:d,onPopupClose:u,quickButtonProps:h,createQuickButton:p,tooltip:f="",createTooltip:m,icon:g,disabled:y,buttonProps:b=il.EmptyObject,disableHover:w,touchRippleRef:v,primary:x,children:S,sx:C,className:k,...E}=e,_=cc(),T=$(()=>{const e=(e,t,n,r=n)=>{const i="boolean"==typeof o?null:o[e];return"function"==typeof i?i(t):i||(o?n:r)};return{outline:{color:t=>e("color",t,t.palette.divider,"transparent"),hoverColor:t=>e("hoverColor",t,t.palette.text?.primary,t.palette.divider),focusColor:t=>e("focusColor",t,t.palette?.primary?.main)},active:"dark"===_.palette.mode?_.palette.text.secondary:_.palette.text.primary,text:_.palette.text.icon??_.palette.action.active}},[o,_]),[M,D]=N(!1),[R,A]=N(!1),[P,z]=N(!1),V=F(null),H=F(null),B=Wf({anchor:V.current,label:r,createPopupPanel:s,parentFloat:a,popperProps:c?.popperProps,onClose:()=>{D(!1),u?.()},onOpen:()=>{D(!0),d?.()}}),j=td(e=>{l?.(e),B.reference.close(0)},[l,B]),W=td(()=>{M?B.reference.close(0):B.reference.open(0)},[M,B,a,r]),U=$(()=>{const e={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:e=>T.outline.color(e),"&.Mui-focusVisible":{border:e=>`1px solid ${T.outline.focusColor(e)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>w?"transparent":void 0,backgroundColor:()=>w?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:e=>T.outline.hoverColor(e)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:e=>T.outline.hoverColor(e)},"&.left":{borderTopLeftRadius:e=>`${e.shape.borderRadius}px`,borderBottomLeftRadius:e=>`${e.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:e=>T.outline.color(e)},"&.right":{borderTopRightRadius:e=>`${e.shape.borderRadius}px`,borderBottomRightRadius:e=>`${e.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:e=>`${e.shape.borderRadius}px !important`}},t={"&.Mui-selected":{backgroundColor:e=>ut(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:e=>ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e=>ut(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},o={maxHeight:"100%","&.Mui-selected":{backgroundColor:e=>ut(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:e=>ut(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e=>ut(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},backgroundColor:()=>w?"transparent":void 0,color:e=>e.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},r=il.mergeContentful(o,e),i=il.mergeContentful(r,t),l=il.mergeContentful(o,e);return{quickButtonStyling:r,openQuickButtonStyling:i,compoundStyling:l,openCompoundStyling:il.mergeContentful(l,t)}},[T,w]),q=td(e=>{const{children:t,ref:n,...o}=e;return O(Gf,{ref:n,...o,disableInteractive:!0,children:t})},[]),Z=l||p,G=Z&&(h?.tooltip||h?.createTooltip),K=e=>{const{tooltip:t,createTooltip:n,sx:o,...r}=e;let i=O(oe,{sx:{...o},component:"div",...r});return G?(i=(n??q)({title:M?"":t??f,children:O("div",{children:i})},M),i):i},X={onKeyDown:e=>{e.keyCode===qc.Space?W():e.keyCode===qc.F4||e.keyCode===qc.Down?B.reference.open(0):e.keyCode===qc.Up&&B.reference.close(0)}};let Y=O(I,{});const J=$(()=>"function"==typeof g?g():g,[g]);if(Z){let e=M?U.openQuickButtonStyling:U.quickButtonStyling;const t=(p||K)({tabIndex:-1,disabled:y,size:"small",edge:"end",onMouseEnter:()=>{B.reference.parent.closeChild()},onMouseDown:e=>{0===e.button&&(e.preventDefault(),j(e))},touchRippleRef:v,children:J,...h,className:si({"Mui-focusVisible":R||M,"Mui-selected":i,"Mui-hovered":P||M,"Mui-disabled":y,bordered:!0,left:!0,"hard-right":!0},h?.className),sx:{...U.quickButtonStyling,height:"100%",...h?.sx}});let o=Df(!0,n,M);G&&(o=(m??q)({title:M?"":f,children:o},M)),Y=L(I,{children:[t,O(oe,{ref:H,component:"div",className:si({"Mui-selected":M,"Mui-hovered":P||M,"Mui-disabled":y,"Mui-focusVisible":R||M,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...U.quickButtonStyling,...e},TouchRippleProps:{center:!1},tabIndex:-1,disabled:y,size:"small",edge:"end",onMouseDown:e=>{0===e.button&&(e.preventDefault(),W())},children:o})]})}else{let e=M?U.openCompoundStyling:U.compoundStyling;Y=O(tm,{ref:H,tabIndex:-1,disabled:y,size:"small",icon:J,className:si({"Mui-selected":M||i,"Mui-hovered":P,"Mui-disabled":y,"Mui-focusVisible":R||M,bordered:!0,left:!0,right:!0}),sx:{...U.quickButtonStyling,...e},onMouseDown:e=>{0===e.button&&(e.preventDefault(),W())},children:Df(!1,n,M)})}const{className:Q,sx:ee,...te}=b;let re=O(ne,{onFocus:()=>A(!0),onBlur:()=>A(!1),onMouseOver:()=>z(!0),onMouseOut:()=>z(!1),...X,"aria-label":"split button",ref:V,tabIndex:y?void 0:0,className:si(Q,"split-button-root",{"Mui-focusVisible":R||M,"Mui-selected":M||i,"Mui-hovered":P,"Mui-disabled":y}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:o?"1px":"0px",marginRight:o?"1px":"0px",borderRadius:e=>`${e.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px`,zIndex:2},...ee},...te,children:Y});return G||(re=(m??q)({title:M?"":f,children:re},M)),L(ne,{className:si(k,"popupIconButton"),ref:t,...E,sx:{zIndex:R||M?2:void 0,display:"flex",alignItems:"center",...C},children:[re,B.component]})}));im.displayName="ExhibitPopupIconButton";const lm={},am=z(j((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:l,popupProps:a=lm,onPopupOpen:s,onPopupClose:c,quickButtonProps:d,createQuickButton:u,tooltip:h="",createTooltip:p,icon:f,disabled:m,touchRippleRef:g,primary:y,children:b,sx:w,...v}=e,[x,S]=N(!1),[C,k]=N(!1),[E,_]=N(!1),[T,M]=N(!1),D=F(null),R=F(null),A=$(()=>{if(!a)return;const{popperProps:e}=a;return{placement:"right-start",offsets:[-4,-2],...e}},[a]),P=Wf({anchor:D.current,label:o,createPopupPanel:l,parentFloat:i,popperProps:A,onClose:()=>{S(!1),c?.()},onOpen:()=>{S(!0),s?.()}}),z=td(e=>{0===e.button&&(r?.(e),P.reference.close(0))},[r]),V=O(ze,{sx:{transform:()=>{}}}),B={"&.Mui-selected":{color:e=>e.palette.text.primary,"& svg * ":{color:e=>e.palette.text.primary}}},j=H(e=>{const{children:t,ref:n,...o}=e;return O(Gf,{ref:n,...o,disableInteractive:!0,children:t})},[]),W=r||u,U=e=>{const{tooltip:t,createTooltip:n,...r}=e;return O(om,{icon:f,className:si({"Mui-hovered":E}),sx:{flex:"1 1 100%",...B},...r,children:o})},q={onFocus:()=>{k(!0)},onBlur:()=>k(!1),onMouseOver:()=>{_(!0)},onMouseLeave:()=>{_(!1)},onMouseEnter:()=>{P.reference.open()},onMouseDown:e=>{0===e.button&&e.preventDefault()}};let Z=O(I,{});if(W){const e=(u||U)({tabIndex:-1,disabled:m,onMouseEnter:()=>{P.reference.parent.closeChild()},onMouseDown:e=>{0===e.button&&(e.preventDefault(),z(e))},className:si("quick-left",{},d?.className),...d});Z=L(I,{children:[e,O(te,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),O(ae,{ref:R,className:si({"Mui-selected":x,"Mui-hovered":E}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:e=>y?void 0:e.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:e=>e.palette.text.primary},...B},tabIndex:-1,disabled:m,...q,children:O(ne,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:e=>y?void 0:e.palette.text.icon??e.palette.action.active},onMouseOver:e=>{e.preventDefault(),M(!0)},onMouseLeave:()=>{M(!1)},onClick:e=>{e.preventDefault(),x?P.reference.close():P.reference.open()},children:V})})]})}else Z=L(om,{ref:R,tabIndex:-1,disabled:m,icon:f,className:si({"Mui-selected":x||n,"Mui-hovered":E}),sx:{flex:"1 1 100%",paddingRight:"0px",...B},onClick:e=>{e.preventDefault(),x?P.reference.close():P.reference.open()},...q,children:[O("div",{style:{flex:"1 1 100%"},children:o}),O(ne,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:e=>y?void 0:e.palette.text.icon??e.palette.action.active},children:V})]});let G=O(ne,{"aria-label":"split button",ref:D,tabIndex:m?void 0:0,className:si({"Mui-disabled":m,"Mui-selected":x,"Mui-focusVisible":C||x,"Mui-hovered":E}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},...w},...v,children:Z});return W&&!T&&(d?.tooltip||d?.createTooltip)&&(G=(d?.createTooltip??j)({title:x?"":G??d?.tooltip,children:G},x)),L(ne,{ref:t,sx:{zIndex:C||x?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[G,P.component]})})),sm=z(j((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:l=0,preventFocus:a=!1,...s}=e;return O(Jf,{label:r,shortcut:i,children:O(tm,{ref:t,outlined:!1,tabIndex:l,selected:o,onMouseDown:e=>{a&&e.preventDefault()},onClick:()=>{n?.(!o)},...s})})})),cm=z(j((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...l}=e,a={display:"flex",border:e=>o?`solid ${r?e.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:e=>`${e.shape.borderRadius}px`,backgroundColor:e=>{if(o)return ut(e.palette.text.icon??e.palette.action.active,e.palette.action.selectedOpacity)}};let s=n;return null===s&&(s=O(Dl,{})),s||(s=O(Rl,{})),s=kc(s),O(ne,{ref:t,sx:{...a,...i},...l,children:s})}));function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},dm.apply(null,arguments)}function um(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}var hm,pm={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},fm=G(void 0);!function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"}(hm||(hm={}));var mm={};function gm(e,t){switch(t.type){case hm.SHOW:var n,o=t.payload,r=o.id,i=o.component,l=o.props,a=o.options;return dm({},e,((n={})[r]={component:i,props:dm({},l,{open:!0}),options:a},n));case hm.HIDE:var s,c=t.payload.id;return e[c]?dm({},e,((s={})[c]=dm({},e[c],{props:dm({},e[c].props,{open:!1})}),s)):e;case hm.UPDATE:var d,u=t.payload,h=u.id,p=u.props;return e[h]?dm({},e,((d={})[h]=dm({},e[h],{props:dm({},e[h].props,p)}),d)):e;case hm.DESTROY:var f=t.payload.id,m=dm({},e);return delete m[f],m;case hm.DESTROY_BY_ROOT_ID:var g=t.payload.rootId;return Object.keys(e).filter(function(e){return e.split(".")[0]!==g}).reduce(function(t,n){var o;return dm({},t,((o={})[n]=e[n],o))},{});default:throw new Error("Unexpected action")}}var ym="[ERROR]: Modal ID is missing",bm=function(e){void 0===e&&(e=8);for(var t=[],n=0;n<e;n++)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t.join("")},wm=["open"];function vm(e){var t=e.children,n=e.legacy,o=void 0!==n&&n,r=e.suspense,i=void 0===r||r,l=e.fallback,a=void 0===l?null:l,s=P.useReducer(gm,mm),c=s[0],d=s[1],u=P.useCallback(function(e,t){var n=um(t,wm);e?d({type:hm.UPDATE,payload:{id:e,props:n}}):console.error(ym)},[d]),h=P.useCallback(function(e){e?d({type:hm.HIDE,payload:{id:e}}):console.error(ym)},[d]),p=P.useCallback(function(e){e?d({type:hm.DESTROY,payload:{id:e}}):console.error(ym)},[d]),f=P.useCallback(function(e){e?d({type:hm.DESTROY_BY_ROOT_ID,payload:{rootId:e}}):console.error("[ERROR]: Modal root ID is missing")},[d]),m=P.useCallback(function(e,t,n){var o=bm(8);return n&&n.rootId&&(o=n.rootId+"."+o),d({type:hm.SHOW,payload:{id:o,component:e,props:t,options:n}}),{id:o,hide:function(){return h(o)},destroy:function(){return p(o)},update:function(e){return u(o,e)}}},[d,h,p,u]),g=i?K:X;return P.createElement(fm.Provider,{value:{state:c,updateModal:u,hideModal:h,destroyModal:p,showModal:m,destroyModalsByRootId:f}},t,P.createElement(g,Object.assign({},i&&{fallback:a}),Object.keys(c).map(function(e){var t,n=c[e],r=n.component,i=n.props,l=n.options,a=function(){var t,n;null!=i&&i.onExited&&i.onExited.apply(i,arguments),null!=i&&null!=(t=i.TransitionProps)&&t.onExited&&(n=i.TransitionProps).onExited.apply(n,arguments),p(e)};return t=o?{onExited:a}:{TransitionProps:dm({},null==i?void 0:i.TransitionProps,{onExited:a})},P.createElement(r,Object.assign({},i,{key:e,onClose:function(){l&&l.hideOnClose&&h(e),l&&l.destroyOnClose&&l.hideOnClose&&p(e),i&&i.onClose&&i.onClose.apply(i,arguments)}},l&&!l.destroyOnClose&&t))})))}var xm=["showModal","destroyModalsByRootId"],Sm={disableAutoDestroy:!1};function Cm(e){void 0===e&&(e=Sm);var t=dm({},Sm,e).disableAutoDestroy,n=Y(fm)||pm,o=n.showModal,r=n.destroyModalsByRootId,i=um(n,xm),l=F(bm(6));return V(function(){return function(){!t&&r&&r(l.current)}},[t,r]),dm({showModal:H(function(e,t,n){return o(e,t,dm({rootId:l.current,hideOnClose:!0},n))},[o]),destroyModalsByRootId:r},i)}var km=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Em=km.join(","),_m="undefined"==typeof Element,Tm=_m?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Mm=!_m&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Dm=function e(t,n){var o;void 0===n&&(n=!0);var r=null==t||null===(o=t.getAttribute)||void 0===o?void 0:o.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},Rm=function(e,t,n){if(Dm(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Em));return t&&Tm.call(e,Em)&&o.unshift(e),o.filter(n)},Om=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var l=i.shift();if(!Dm(l,!1))if("SLOT"===l.tagName){var a=l.assignedElements(),s=e(a.length?a:l.children,!0,o);o.flatten?r.push.apply(r,s):r.push({scopeParent:l,candidates:s})}else{Tm.call(l,Em)&&o.filter(l)&&(n||!t.includes(l))&&r.push(l);var c=l.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(l),d=!Dm(c,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(c&&d){var u=e(!0===c?l.children:c.children,!0,o);o.flatten?r.push.apply(r,u):r.push({scopeParent:l,candidates:u})}else i.unshift.apply(i,l.children)}}return r},Lm=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Im=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Lm(e)?0:e.tabIndex},Am=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Pm=function(e){return"INPUT"===e.tagName},zm=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},Fm=function(e,t){return!(t.disabled||Dm(t)||function(e){return Pm(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=Tm.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Tm.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return zm(e)}else{if("function"==typeof o){for(var i=e;e;){var l=e.parentElement,a=Mm(e);if(l&&!l.shadowRoot&&!0===o(l))return zm(e);e=e.assignedSlot?e.assignedSlot:l||a===e.ownerDocument?l:a.host}e=i}if(function(e){var t,n,o,r,i=e&&Mm(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=e&&null!==(r=e.ownerDocument)&&void 0!==r&&r.contains(e));!a&&l;){var s,c,d;a=!(null===(c=l=null===(s=i=Mm(l))||void 0===s?void 0:s.host)||void 0===c||null===(d=c.ownerDocument)||void 0===d||!d.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!Tm.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},Nm=function(e,t){return!(function(e){return function(e){return Pm(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Mm(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)}(t)||Im(t)<0||!Fm(e,t))},Vm=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Hm=function e(t){var n=[],o=[];return t.forEach(function(t,r){var i=!!t.scopeParent,l=i?t.scopeParent:t,a=function(e,t){var n=Im(e);return n<0&&t&&!Lm(e)?0:n}(l,i),s=i?e(t.candidates):l;0===a?i?n.push.apply(n,s):n.push(l):o.push({documentOrder:r,tabIndex:a,item:t,isScope:i,content:s})}),o.sort(Am).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Bm=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Om([e],t.includeContainer,{filter:Nm.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Vm}):Rm(e,t.includeContainer,Nm.bind(null,t)),Hm(n)},$m=function(e,t){return(t=t||{}).getShadowRoot?Om([e],t.includeContainer,{filter:Fm.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Rm(e,t.includeContainer,Fm.bind(null,t))},jm=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Tm.call(e,Em)&&Nm(t,e)},Wm=km.concat("iframe").join(","),Um=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Tm.call(e,Wm)&&Fm(t,e)};const qm=Object.freeze(Object.defineProperty({__proto__:null,focusable:$m,getTabIndex:Im,isFocusable:Um,isTabbable:jm,tabbable:Bm},Symbol.toStringTag,{value:"Module"}));function Zm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Gm(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Km(Object(n),!0).forEach(function(t){Gm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ym=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Jm=function(e){return Ym(e)&&!e.shiftKey},Qm=function(e){return Ym(e)&&e.shiftKey},eg=function(e){return setTimeout(e,0)},tg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return"function"==typeof e?e.apply(void 0,n):e},ng=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},og=[];const rg=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=(null==t?void 0:t.document)||document,r=(null==t?void 0:t.trapStack)||og,i=Xm({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Jm,isKeyBackward:Qm},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return l.containerGroups.findIndex(function(t){var o=t.container,r=t.tabbableNodes;return o.contains(e)||(null==n?void 0:n.includes(o))||r.find(function(t){return t===e})})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,r=void 0!==n&&n,l=t.params,a=void 0===l?[]:l,s=i[e];if("function"==typeof s&&(s=s.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Zm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Zm(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a))),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=s;if("string"==typeof s){try{c=o.querySelector(s)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!r)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!Um(e,i.tabbableOptions))if(s(o.activeElement)>=0)e=o.activeElement;else{var t=l.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(l.containerGroups=l.containers.map(function(e){var t=Bm(e,i.tabbableOptions),n=$m(e,i.tabbableOptions),o=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,l=n.find(function(e){return jm(e)}),a=n.slice().reverse().find(function(e){return jm(e)}),s=!!t.find(function(e){return Im(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:o,lastTabbableNode:r,firstDomTabbableNode:l,lastDomTabbableNode:a,nextTabbableNode:function(e){var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t.indexOf(e);return r<0?o?n.slice(n.indexOf(e)+1).find(function(e){return jm(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return jm(e)}):t[r+(o?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(e){return e.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?h(t.shadowRoot):t},p=function(e){!1!==e&&e!==h(document)&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):p(d()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,o=e.isBackward,r=void 0!==o&&o;t=t||ng(n),u();var a=null;if(l.tabbableGroups.length>0){var d=s(t,n),h=d>=0?l.containerGroups[d]:void 0;if(d<0)a=r?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(r){var p=l.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(h.container===t||Um(t,i.tabbableOptions)&&!jm(t,i.tabbableOptions)&&!h.nextTabbableNode(t,!1))&&(p=d),p>=0){var f=0===p?l.tabbableGroups.length-1:p-1,m=l.tabbableGroups[f];a=Im(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else Ym(n)||(a=h.nextTabbableNode(t,!1))}else{var g=l.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(h.container===t||Um(t,i.tabbableOptions)&&!jm(t,i.tabbableOptions)&&!h.nextTabbableNode(t))&&(g=d),g>=0){var y=g===l.tabbableGroups.length-1?0:g+1,b=l.tabbableGroups[y];a=Im(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else Ym(n)||(a=h.nextTabbableNode(t))}}else a=c("fallbackFocus");return a},g=function(e){var t=ng(e);s(t,e)>=0||(tg(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):tg(i.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t=ng(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(l.mostRecentlyFocusedNode=t);else{var o;e.stopImmediatePropagation();var r=!0;if(l.mostRecentlyFocusedNode)if(Im(l.mostRecentlyFocusedNode)>0){var a=s(l.mostRecentlyFocusedNode),c=l.containerGroups[a].tabbableNodes;if(c.length>0){var u=c.findIndex(function(e){return e===l.mostRecentlyFocusedNode});u>=0&&(i.isKeyForward(l.recentNavEvent)?u+1<c.length&&(o=c[u+1],r=!1):u-1>=0&&(o=c[u-1],r=!1))}}else l.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return Im(e)>0})})||(r=!1);else r=!1;r&&(o=m({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),p(o||l.mostRecentlyFocusedNode||d())}l.recentNavEvent=void 0},b=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(Ym(e)&&e.preventDefault(),p(n))}(e,i.isKeyBackward(e))},w=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===tg(i.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},v=function(e){var t=ng(e);s(t,e)>=0||tg(i.clickOutsideDeactivates,e)||tg(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},x=function(){if(l.active)return function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)}(r,n),l.delayInitialFocusTimer=i.delayInitialFocus?eg(function(){p(d())}):p(d()),o.addEventListener("focusin",y,!0),o.addEventListener("mousedown",g,{capture:!0,passive:!1}),o.addEventListener("touchstart",g,{capture:!0,passive:!1}),o.addEventListener("click",v,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",w),n},S=function(){if(l.active)return o.removeEventListener("focusin",y,!0),o.removeEventListener("mousedown",g,!0),o.removeEventListener("touchstart",g,!0),o.removeEventListener("click",v,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",w),n},C="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===l.mostRecentlyFocusedNode})})&&p(d())}):void 0,k=function(){C&&(C.disconnect(),l.active&&!l.paused&&l.containers.map(function(e){C.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(e){if(l.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),r=a(e,"checkCanFocusTrap");r||u(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=h(o),null==t||t();var i=function(){r&&u(),x(),k(),null==n||n()};return r?(r(l.containers.concat()).then(i,i),this):(i(),this)},deactivate:function(e){if(!l.active)return this;var t=Xm({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,S(),l.active=!1,l.paused=!1,k(),function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}(r,n);var o=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),d=a(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var u=function(){eg(function(){d&&p(f(l.nodeFocusedBeforeActivation)),null==s||s()})};return d&&c?(c(f(l.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(e){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return l.containers=t.map(function(e){return"string"==typeof e?o.querySelector(e):e}),l.active&&u(),k(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(e,t){if(l.paused===e)return this;if(l.paused=e,e){var n=a(t,"onPause"),o=a(t,"onPostPause");null==n||n(),S(),k(),null==o||o()}else{var r=a(t,"onUnpause"),i=a(t,"onPostUnpause");null==r||r(),u(),x(),k(),null==i||i()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),ig=jl(rg),lg=jl(qm);var ag,sg,cg=function(){if(sg)return ag;function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(t,r,i){return r=o(r),function(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(t,n()?Reflect.construct(r,i||[],o(t).constructor):r.apply(t,i))}function n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(n=function(){return!!e})()}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n);if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(n)?n:n+""}sg=1;var l=P,a=Ma(),s=ig.createFocusTrap,c=lg.isFocusable,d=function(e){function n(e){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o=t(this,n,[e]),"getNodeForOption",function(e){var t,n=null!==(t=this.internalOptions[e])&&void 0!==t?t:this.originalOptions[e];if("function"==typeof n){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];n=n.apply(void 0,r)}if(!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l,a=n;if("string"==typeof n&&!(a=null===(l=this.getDocument())||void 0===l?void 0:l.querySelector(n)))throw new Error("`".concat(e,"` as selector refers to no known node"));return a}),o.handleDeactivate=o.handleDeactivate.bind(o),o.handlePostDeactivate=o.handlePostDeactivate.bind(o),o.handleClickOutsideDeactivates=o.handleClickOutsideDeactivates.bind(o),o.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:o.handleDeactivate,onPostDeactivate:o.handlePostDeactivate,clickOutsideDeactivates:o.handleClickOutsideDeactivates},o.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var r=e.focusTrapOptions;for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&("returnFocusOnDeactivate"!==l&&"onDeactivate"!==l&&"onPostDeactivate"!==l&&"checkCanReturnFocus"!==l&&"clickOutsideDeactivates"!==l?o.internalOptions[l]=r[l]:o.originalOptions[l]=r[l]);return o.outsideClick=null,o.focusTrapElements=e.containerElements||[],o.updatePreviousElement(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}(n,e),function(e,t){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return e||!1!==e&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(e){var t="function"==typeof this.originalOptions.clickOutsideDeactivates?this.originalOptions.clickOutsideDeactivates.call(null,e):this.originalOptions.clickOutsideDeactivates;return t&&(this.outsideClick={target:e.target,allowDeactivation:t}),t}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var e=this,t=function(){var t=e.getReturnFocusNode(),n=!(!e.originalOptions.returnFocusOnDeactivate||null==t||!t.focus||e.outsideClick&&(!e.outsideClick.allowDeactivation||c(e.outsideClick.target,e.internalOptions.tabbableOptions))),o=e.internalOptions.preventScroll,r=void 0!==o&&o;n&&t.focus({preventScroll:r}),e.originalOptions.onPostDeactivate&&e.originalOptions.onPostDeactivate.call(null),e.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(t,t):t()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,o=!e.paused&&this.props.paused,r=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();o&&this.focusTrap.pause(),r&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?l.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===l.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(t,{ref:function(n){var o=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=o||[n]}})}return null}}])}(l.Component),u="undefined"==typeof Element?Function:Element;return d.propTypes={active:a.bool,paused:a.bool,focusTrapOptions:a.shape({document:a.object,onActivate:a.func,onPostActivate:a.func,checkCanFocusTrap:a.func,onPause:a.func,onPostPause:a.func,onUnpause:a.func,onPostUnpause:a.func,onDeactivate:a.func,onPostDeactivate:a.func,checkCanReturnFocus:a.func,initialFocus:a.oneOfType([a.instanceOf(u),a.string,a.bool,a.func]),fallbackFocus:a.oneOfType([a.instanceOf(u),a.string,a.func]),escapeDeactivates:a.oneOfType([a.bool,a.func]),clickOutsideDeactivates:a.oneOfType([a.bool,a.func]),returnFocusOnDeactivate:a.bool,setReturnFocus:a.oneOfType([a.instanceOf(u),a.string,a.bool,a.func]),allowOutsideClick:a.oneOfType([a.bool,a.func]),preventScroll:a.bool,tabbableOptions:a.shape({displayCheck:a.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:a.oneOfType([a.bool,a.func])}),trapStack:a.array,isKeyForward:a.func,isKeyBackward:a.func}),containerElements:a.arrayOf(a.instanceOf(u)),children:a.oneOfType([a.element,a.instanceOf(u)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:s},ag=d}();const dg=$l(cg);var ug,hg,pg={exports:{}},fg={},mg={exports:{}},gg={},yg={};function bg(){return hg||(hg=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},yg.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},yg.int=function(e){return parseInt(e,10)},yg.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},yg.isNum=function(e){return"number"==typeof e&&!isNaN(e)}),yg}var wg,vg,xg={};function Sg(){if(vg)return gg;vg=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.addClassName=l,gg.addEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,r):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},gg.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&l(e.body,"react-draggable-transparent-selection")},gg.createCSSTransform=function(e,n){const o=r(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:o}},gg.createSVGTransform=function(e,t){return r(e,t,"")},gg.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,e=>n===e.identifier)||t.changedTouches&&(0,e.findInArray)(t.changedTouches,e=>n===e.identifier)},gg.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},gg.getTranslation=r,gg.innerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingTop),n-=(0,e.int)(o.paddingBottom),n},gg.innerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingLeft),n-=(0,e.int)(o.paddingRight),n},gg.matchesSelector=o,gg.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},gg.offsetXYFromParent=function(e,t,n){const o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-o.left)/n,y:(e.clientY+t.scrollTop-o.top)/n}},gg.outerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderTopWidth),n+=(0,e.int)(o.borderBottomWidth),n},gg.outerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderLeftWidth),n+=(0,e.int)(o.borderRightWidth),n},gg.removeClassName=a,gg.removeEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},gg.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(e)}):i(e)};var e=bg(),t=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(function(){if(wg)return xg;wg=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.browserPrefixToKey=n,xg.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},xg.default=void 0,xg.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(t in o)return"";for(let r=0;r<e.length;r++)if(n(t,e[r])in o)return e[r];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):"-"===e[o]?n=!0:t+=e[o];return t}(e)}`:e}return xg.default=t(),xg}());let n="";function o(t,o){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,e.isFunction)(t[n])})),!!(0,e.isFunction)(t[n])&&t[n](o)}function r(e,t,n){let{x:o,y:r}=e,i=`translate(${o}${n},${r}${n})`;return t&&(i=`translate(${"string"==typeof t.x?t.x:t.x+n}, ${"string"==typeof t.y?t.y:t.y+n})`+i),i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return gg}var Cg,kg={};function Eg(){if(Cg)return kg;Cg=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},kg.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},kg.createCoreData=function(t,o,r){const i=!(0,e.isNum)(t.lastX),l=n(t);return i?{node:l,deltaX:0,deltaY:0,lastX:o,lastY:r,x:o,y:r}:{node:l,deltaX:o-t.lastX,deltaY:r-t.lastY,lastX:t.lastX,lastY:t.lastY,x:o,y:r}},kg.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},kg.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=n(o);if("string"==typeof l){const{ownerDocument:n}=a,o=n.defaultView;let r;if(r="parent"===l?a.parentNode:a.getRootNode().querySelector(l),!(r instanceof o.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=r,s=o.getComputedStyle(a),c=o.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}return(0,e.isNum)(l.right)&&(r=Math.min(r,l.right)),(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom)),(0,e.isNum)(l.left)&&(r=Math.max(r,l.left)),(0,e.isNum)(l.top)&&(i=Math.max(i,l.top)),[r,i]},kg.getControlPosition=function(e,o,r){const i="number"==typeof o?(0,t.getTouch)(e,o):null;if("number"==typeof o&&!i)return null;const l=n(r),a=r.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,r.props.scale)},kg.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var e=bg(),t=Sg();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return kg}var _g,Tg,Mg,Dg,Rg={},Og={};function Lg(){return _g||(_g=1,Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=function(){}),Og}function Ig(){return Mg||(Mg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(P),n=d(Ma()),o=d(st),r=function(){if(ug)return mg.exports;function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function t(){for(var t,n,o=0,r="",i=arguments.length;o<i;o++)(t=arguments[o])&&(n=e(t))&&(r&&(r+=" "),r+=n);return r}return ug=1,mg.exports=t,mg.exports.clsx=t,mg.exports}(),i=Sg(),l=Eg(),a=bg(),s=d(function(){if(Tg)return Rg;Tg=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.default=void 0;var e=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var n,o,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(n=t){if(n.has(e))return n.get(e);n.set(e,r)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(o.get||o.set)?n(r,t,o):r[t]=e[t]);return r}(e)}(P),t=a(Ma()),n=a(st),o=Sg(),r=Eg(),i=bg(),l=a(Lg());function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),s(this,"dragging",!1),s(this,"lastX",NaN),s(this,"lastY",NaN),s(this,"touchIdentifier",null),s(this,"mounted",!1),s(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const i=(0,o.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,r.getControlPosition)(e,i,this);if(null==a)return;const{x:s,y:c}=a,d=(0,r.createCoreData)(this,s,c);(0,l.default)("DraggableCore: handleDragStart: %j",d),(0,l.default)("calling",this.props.onStart),!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,o.addEvent)(n,u.move,this.handleDrag),(0,o.addEvent)(n,u.stop,this.handleDragStop))}),s(this,"handleDrag",e=>{const t=(0,r.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=o-this.lastY;if([e,t]=(0,r.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,o=this.lastY+t}const i=(0,r.createCoreData)(this,n,o);if((0,l.default)("DraggableCore: handleDrag: %j",i),!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=n,this.lastY=o;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),s(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,r.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,r.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,r.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(s.ownerDocument,u.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,u.stop,this.handleDragStop))}),s(this,"onMouseDown",e=>(u=d,this.handleDragStart(e))),s(this,"onMouseUp",e=>(u=d,this.handleDragStop(e))),s(this,"onTouchStart",e=>(u=c,this.handleDragStart(e))),s(this,"onTouchEnd",e=>(u=c,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,d.move,this.handleDrag),(0,o.removeEvent)(t,c.move,this.handleDrag),(0,o.removeEvent)(t,d.stop,this.handleDragStop),(0,o.removeEvent)(t,c.stop,this.handleDragStop),(0,o.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Rg.default=h,s(h,"displayName","DraggableCore"),s(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),s(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Rg}()),c=d(Lg());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:o}=t;return!n||o&&n.x===o.x&&n.y===o.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:o}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",(e,t)=>{if((0,c.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),o={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;const[r,i]=(0,l.getBoundPosition)(this,o.x,o.y);o.x=r,o.y=i,o.slackX=this.state.slackX+(e-o.x),o.slackY=this.state.slackY+(t-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-this.state.x,n.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(o)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:o,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let y={},b=null;const w=!Boolean(p)||this.state.dragging,v=p||a,x={x:(0,l.canDragX)(this)&&w?this.state.x:v.x,y:(0,l.canDragY)(this)&&w?this.state.y:v.y};this.state.isElementSVG?b=(0,i.createSVGTransform)(x,f):y=(0,i.createCSSTransform)(x,f);const S=(0,r.clsx)(o.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(s.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:S,style:{...o.props.style,...y},transform:b}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(fg)),fg}var Ag=function(){if(Dg)return pg.exports;Dg=1;const{default:e,DraggableCore:t}=Ig();return pg.exports=e,pg.exports.default=e,pg.exports.DraggableCore=t,pg.exports}();const Pg=$l(Ag),zg={x:0,y:0},Fg=z(j((e,t)=>{const{defaultPosition:n=zg,PaperComponent:o=ce,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:l=".draggable-title",titleSize:a,rootSize:s,...c}=e,d=F(null),u=$(()=>a&&s?{left:0,top:0,right:s.width-a.width,bottom:s.height-a.height}:null,[a,s]),[h,p]=N(null),[f,m]=N(null),[g,y]=N(null);return U(()=>{!h&&n&&p(n??zg)},[n]),V(()=>{u&&h&&m({x:Math.max(0,Math.min(h.x,u.right)),y:Math.max(0,Math.min(h.y,u.bottom))})},[h,u]),O(Pg,{nodeRef:d,handle:l,cancel:'[class*="MuiDialogContent-root"]',position:f,bounds:u??".MuiModal-root",onStop:r,onStart:(e,t)=>{const n=e;y({x:(n.clientX??n.touches?.[0]?.clientX)-t.x,y:(n.clientY??n.touches?.[0]?.clientY)-t.y})},onDrag:(e,t)=>{const n=e,o=n.clientX??n.touches?.[0]?.clientX,r=n.clientY??n.touches?.[0]?.clientY;p({x:o-g.x,y:r-g.y})},children:O(o,{ref:Rp([d,t]),...c})})})),Ng={x:"50",y:"50"},Vg=z(j((e,t)=>{const n=function({props:e,name:t}){return uc({props:e,name:t,defaultTheme:sc,themeId:Bl})}({props:e,name:"MuiDialog"}),o=cc(),r={enter:.66*o.transitions.duration.enteringScreen,exit:.66*o.transitions.duration.leavingScreen},{title:i="SheetXL",key:l="draggable-window",onCancel:a,onDone:s,onShow:c,onShown:d,onHide:u,open:h,autoFocusSel:p,children:f,TransitionComponent:m=be,TransitionProps:g,transitionDuration:y=r,BackdropComponent:b=we,BackdropProps:w,PaperComponent:v=ce,PaperProps:x,onBackdropClick:S,sx:C,className:k,onMouseDown:E,initialPosition:_=Ng,isModal:T=!1,...M}=n,D=F(null),[R,I]=N(null),[A,P]=N(!1),[z,H]=N(!1),B=F(null),[$,j]=Pp(),W=F(null),[U,q]=Pp(),Z=F(null);V(()=>{R&&P(h)},[h,R]);const G=td(()=>{a?.(),P(!1)},[a]);V(()=>{if(0===j.width&&0===j.height||R)return;const e=Z.current?.getBoundingClientRect(),t=j.height-e.height,n=j.width-e.width;let o=.5*n,r=.5*t;"number"==typeof _?.x?o=_.x:"string"==typeof _?.x&&(o=n*(parseFloat(_.x)/100)),"number"==typeof _?.y?r=_.y:"string"==typeof _?.y&&(r=t*(parseFloat(_.y)/100)),I({x:o,y:r})},[j,q]);const[K,X]=N(!1),[Y,J]=N(null),[Q,ee]=N(null),te=td(e=>{if(Y)return Y.focus(e),!0;if(p){const t=W.current?.querySelectorAll?.(p);if(t&&t.length>0)return t[0]?.focus?.(e),!0}return W.current?.focus?.(e),!1},[Y,p]),re=zd(t,()=>({focus:e=>{te(e)}}),[]),ie={...g,onExited:e=>{s?.(null),g?.onExited?.(e)},onExit:e=>{const t=Q;t&&requestAnimationFrame(()=>{re.current?.contains(document.activeElement)&&t.focus()}),u?.(),H(!1),g?.onExit?.(e)},onEntered:(e,t)=>{c?.(),g?.onEntered?.(e,t)},onEntering:(e,t)=>{H(!0),d?.(re.current)}};V(()=>{z&&te()},[z]);const le=O(dg,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:D,active:z,children:O(m,{in:A,timeout:y,role:"presentation",...ie,children:O(ne,{className:"MuiDialog-container",ref:W,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:e=>{e.which===qc.Escape&&(G(),B.current?.start(e,{center:!1}),setTimeout(()=>B.current?.stop(e),180)),e.stopPropagation()},children:L(Fg,{ref:Rp([Z,t]),className:si({"Mui-focusVisible":K},k),sx:{"& *":e=>Pf(e),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:e=>`solid ${ut(e.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:e=>`solid ${ut(e.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...C},defaultPosition:R,titleSize:q,rootSize:j,PaperComponent:v,...M,...x,children:[i?O(ve,{className:si({"Mui-selected":K},"draggable-title"),sx:{cursor:"move",display:"flex",color:e=>e.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:e=>`${e.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:e=>e.transitions.duration.shortest/2+"ms"},backgroundColor:e=>ut(e.palette.action.hover,.03)},ref:U,children:L(ne,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(1),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},children:[O(ne,{sx:{flex:"1 1 100%",paddingLeft:e=>e.spacing(1)},children:i}),O(Jf,{label:"Close",children:O(oe,{"aria-label":"close",sx:{color:e=>e.palette.text.icon??e.palette.action.active},touchRippleRef:B,onPointerDown:e=>{B.current?.start(e,{center:!1}),e.stopPropagation(),e.preventDefault()},onPointerUp:G,children:O($e,{})})})]})}):null,f]})})})});let ae=null;T&&(ae=O(b,{...w,open:A,onMouseDown:e=>{G(),w?.onMouseDown?.(e)},onClick:e=>{S?.(e),w?.onClick?.(e)},sx:{pointerEvents:"auto",...w?.sx}}));const{getPortalContainer:se}=$d();return dt(L(ne,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:Rp([re,$]),onPointerDown:e=>{K&&(e.target===W.current||e.target.tabIndex<0)&&W.current?.contains(document.activeElement)},onContextMenu:e=>{e.isPropagationStopped()||e.preventDefault()},onFocus:e=>{!K&&(e.target===W.current||e.target.tabIndex<0)&&setTimeout(()=>{te()},100),D.current?.focusTrap?.unpause(),X(!0),W.current?.contains(e.target)&&e.target!==W.current&&J(e.target),e.relatedTarget&&!Q&&ee(e.relatedTarget)},onBlur:e=>{re?.current?.contains(e.relatedTarget)||(ee(null),D.current?.focusTrap?.pause(),X(!1))},children:[ae,le]}),se(),l+"")}));var Hg="undefined"!=typeof window?window:{screen:{},navigator:{}},Bg=(Hg.matchMedia||function(){return{matches:!1}}).bind(Hg),$g={get passive(){return!0}},jg=function(){};Hg.addEventListener&&Hg.addEventListener("p",jg,$g),Hg.removeEventListener&&Hg.removeEventListener("p",jg,!1);var Wg="ontouchstart"in Hg,Ug=Wg||"TouchEvent"in Hg&&Bg("(any-pointer: coarse)").matches,qg=(Hg.navigator.maxTouchPoints||0)>0||Ug,Zg=Hg.navigator.userAgent||"",Gg=Bg("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Zg)&&Math.min(Hg.screen.width||0,Hg.screen.height||0)>=768,Kg=(Bg("(pointer: coarse)").matches||!Bg("(pointer: fine)").matches&&Wg)&&!/Windows.*Firefox/.test(Zg),Xg=Bg("(any-pointer: fine)").matches||Bg("(any-hover: hover)").matches||Gg||!Wg,Yg=!qg||!Xg&&Kg?qg?"touchOnly":"mouseOnly":"hybrid",Jg="mouseOnly"===Yg?"mouse":"touchOnly"===Yg||Kg?"touch":"mouse",Qg=e=>"checkbox"===e.type,ey=e=>e instanceof Date,ty=e=>null==e;const ny=e=>"object"==typeof e;var oy=e=>!ty(e)&&!Array.isArray(e)&&ny(e)&&!ey(e),ry="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function iy(e){let t;const n=Array.isArray(e),o="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(ry&&(e instanceof Blob||o)||!n&&!oy(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return oy(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=iy(e[n]));else t=e}return t}var ly=e=>/^\w*$/.test(e),ay=e=>void 0===e,sy=e=>Array.isArray(e)?e.filter(Boolean):[],cy=e=>sy(e.replace(/["|']|\]/g,"").split(/\.|\[/)),dy=(e,t,n)=>{if(!t||!oy(e))return n;const o=(ly(t)?[t]:cy(t)).reduce((e,t)=>ty(e)?e:e[t],e);return ay(o)||o===e?ay(e[t])?n:e[t]:o},uy=e=>"boolean"==typeof e,hy=(e,t,n)=>{let o=-1;const r=ly(t)?[t]:cy(t),i=r.length,l=i-1;for(;++o<i;){const t=r[o];let i=n;if(o!==l){const n=e[t];i=oy(n)||Array.isArray(n)?n:isNaN(+r[o+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}};const py="onChange",fy="onSubmit",my="all",gy="pattern",yy="required",by=P.createContext(null);by.displayName="HookFormContext";const wy=e=>{const{children:t,...n}=e;return P.createElement(by.Provider,{value:n},t)},vy="undefined"!=typeof window?A.useLayoutEffect:A.useEffect;var xy=e=>"string"==typeof e,Sy=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},Cy=e=>Array.isArray(e)?e:[e],ky=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},Ey=e=>ty(e)||!ny(e);function _y(e,t){if(Ey(e)||Ey(t))return e===t;if(ey(e)&&ey(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n){const n=e[r];if(!o.includes(r))return!1;if("ref"!==r){const e=t[r];if(ey(n)&&ey(e)||oy(n)&&oy(e)||Array.isArray(n)&&Array.isArray(e)?!_y(n,e):n!==e)return!1}}return!0}var Ty=e=>oy(e)&&!Object.keys(e).length,My=e=>"file"===e.type,Dy=e=>"function"==typeof e,Ry=e=>{if(!ry)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Oy=e=>"select-multiple"===e.type,Ly=e=>"radio"===e.type,Iy=e=>Ry(e)&&e.isConnected;function Ay(e,t){const n=Array.isArray(t)?t:ly(t)?[t]:cy(t),o=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let o=0;for(;o<n;)e=ay(e)?o++:e[t[o++]];return e}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],0!==r&&(oy(o)&&Ty(o)||Array.isArray(o)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!ay(e[t]))return!1;return!0}(o))&&Ay(e,n.slice(0,-1)),e}var Py=e=>{for(const t in e)if(Dy(e[t]))return!0;return!1};function zy(e,t={}){const n=Array.isArray(e);if(oy(e)||n)for(const n in e)Array.isArray(e[n])||oy(e[n])&&!Py(e[n])?(t[n]=Array.isArray(e[n])?[]:{},zy(e[n],t[n])):ty(e[n])||(t[n]=!0);return t}function Fy(e,t,n){const o=Array.isArray(e);if(oy(e)||o)for(const o in e)Array.isArray(e[o])||oy(e[o])&&!Py(e[o])?ay(t)||Ey(n[o])?n[o]=Array.isArray(e[o])?zy(e[o],[]):{...zy(e[o])}:Fy(e[o],ty(t)?{}:t[o],n[o]):n[o]=!_y(e[o],t[o]);return n}var Ny=(e,t)=>Fy(e,t,zy(t));const Vy={value:!1,isValid:!1},Hy={value:!0,isValid:!0};var By=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ay(e[0].attributes.value)?ay(e[0].value)||""===e[0].value?Hy:{value:e[0].value,isValid:!0}:Hy:Vy}return Vy},$y=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>ay(e)?e:t?""===e?NaN:e?+e:e:n&&xy(e)?new Date(e):o?o(e):e;const jy={isValid:!1,value:null};var Wy=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,jy):jy;function Uy(e){const t=e.ref;return My(t)?t.files:Ly(t)?Wy(e.refs).value:Oy(t)?[...t.selectedOptions].map(({value:e})=>e):Qg(t)?By(e.refs).value:$y(ay(t.value)?e.ref.value:t.value,e)}var qy=e=>e instanceof RegExp,Zy=e=>ay(e)?e:qy(e)?e.source:oy(e)?qy(e.value)?e.value.source:e.value:e,Gy=e=>({isOnSubmit:!e||e===fy,isOnBlur:"onBlur"===e,isOnChange:e===py,isOnAll:e===my,isOnTouch:"onTouched"===e});const Ky="AsyncFunction";var Xy=e=>!!e&&!!e.validate&&!!(Dy(e.validate)&&e.validate.constructor.name===Ky||oy(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===Ky)),Yy=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const Jy=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const n=dy(e,r);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],r)&&!o)return!0;if(e.ref&&t(e.ref,e.name)&&!o)return!0;if(Jy(i,t))break}else if(oy(i)&&Jy(i,t))break}}};function Qy(e,t,n){const o=dy(e,n);if(o||ly(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const o=r.join("."),i=dy(t,o),l=dy(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};if(l&&l.root&&l.root.type)return{name:`${o}.root`,error:l.root};r.pop()}return{name:n}}var eb=(e,t,n)=>{const o=Cy(dy(e,n));return hy(o,"root",t[n]),hy(e,n,o),e},tb=e=>xy(e);function nb(e,t,n="validate"){if(tb(e)||Array.isArray(e)&&e.every(tb)||uy(e)&&!e)return{type:n,message:tb(e)?e:"",ref:t}}var ob=e=>oy(e)&&!qy(e)?e:{value:e,message:""},rb=async(e,t,n,o,r,i)=>{const{ref:l,refs:a,required:s,maxLength:c,minLength:d,min:u,max:h,pattern:p,validate:f,name:m,valueAsNumber:g,mount:y}=e._f,b=dy(n,m);if(!y||t.has(m))return{};const w=a?a[0]:l,v=e=>{r&&w.reportValidity&&(w.setCustomValidity(uy(e)?"":e||""),w.reportValidity())},x={},S=Ly(l),C=Qg(l),k=S||C,E=(g||My(l))&&ay(l.value)&&ay(b)||Ry(l)&&""===l.value||""===b||Array.isArray(b)&&!b.length,_=Sy.bind(null,m,o,x),T=(e,t,n,o="maxLength",r="minLength")=>{const i=e?t:n;x[m]={type:e?o:r,message:i,ref:l,..._(e?o:r,i)}};if(i?!Array.isArray(b)||!b.length:s&&(!k&&(E||ty(b))||uy(b)&&!b||C&&!By(a).isValid||S&&!Wy(a).isValid)){const{value:e,message:t}=tb(s)?{value:!!s,message:s}:ob(s);if(e&&(x[m]={type:yy,message:t,ref:w,..._(yy,t)},!o))return v(t),x}if(!(E||ty(u)&&ty(h))){let e,t;const n=ob(h),r=ob(u);if(ty(b)||isNaN(b)){const o=l.valueAsDate||new Date(b),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==l.type,s="week"==l.type;xy(n.value)&&b&&(e=a?i(b)>i(n.value):s?b>n.value:o>new Date(n.value)),xy(r.value)&&b&&(t=a?i(b)<i(r.value):s?b<r.value:o<new Date(r.value))}else{const o=l.valueAsNumber||(b?+b:b);ty(n.value)||(e=o>n.value),ty(r.value)||(t=o<r.value)}if((e||t)&&(T(!!e,n.message,r.message,"max","min"),!o))return v(x[m].message),x}if((c||d)&&!E&&(xy(b)||i&&Array.isArray(b))){const e=ob(c),t=ob(d),n=!ty(e.value)&&b.length>+e.value,r=!ty(t.value)&&b.length<+t.value;if((n||r)&&(T(n,e.message,t.message),!o))return v(x[m].message),x}if(p&&!E&&xy(b)){const{value:e,message:t}=ob(p);if(qy(e)&&!b.match(e)&&(x[m]={type:gy,message:t,ref:l,..._(gy,t)},!o))return v(t),x}if(f)if(Dy(f)){const e=nb(await f(b,n),w);if(e&&(x[m]={...e,..._("validate",e.message)},!o))return v(e.message),x}else if(oy(f)){let e={};for(const t in f){if(!Ty(e)&&!o)break;const r=nb(await f[t](b,n),w,t);r&&(e={...r,..._(t,r.message)},v(r.message),o&&(x[m]=e))}if(!Ty(e)&&(x[m]={ref:w,...e},!o))return x}return v(!0),x};const ib={mode:fy,reValidateMode:py,shouldFocusError:!0};function lb(e={}){const t=P.useRef(void 0),n=P.useRef(void 0),[o,r]=P.useState({isDirty:!1,isValidating:!1,isLoading:Dy(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Dy(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!Dy(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:n,...r}=function(e={}){let t={...ib,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Dy(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const o={};let r,i=(oy(t.defaultValues)||oy(t.values))&&iy(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:iy(i),a={action:!1,mount:!1,watch:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let u={...d};const h={array:ky(),state:ky()},p=t.criteriaMode===my,f=async e=>{if(!t.disabled&&(d.isValid||u.isValid||e)){const e=t.resolver?Ty((await w()).errors):await v(o,!0);e!==n.isValid&&h.state.next({isValid:e})}},m=(e,o)=>{!t.disabled&&(d.isValidating||d.validatingFields||u.isValidating||u.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(o?hy(n.validatingFields,e,o):Ay(n.validatingFields,e))}),h.state.next({validatingFields:n.validatingFields,isValidating:!Ty(n.validatingFields)}))},g=(e,t,n,r)=>{const s=dy(o,e);if(s){const o=dy(l,e,ay(n)?dy(i,e):n);ay(o)||r&&r.defaultChecked||t?hy(l,e,t?o:Uy(s._f)):C(e,o),a.mount&&f()}},y=(e,o,r,l,a)=>{let s=!1,c=!1;const p={name:e};if(!t.disabled){if(!r||l){(d.isDirty||u.isDirty)&&(c=n.isDirty,n.isDirty=p.isDirty=x(),s=c!==p.isDirty);const t=_y(dy(i,e),o);c=!!dy(n.dirtyFields,e),t?Ay(n.dirtyFields,e):hy(n.dirtyFields,e,!0),p.dirtyFields=n.dirtyFields,s=s||(d.dirtyFields||u.dirtyFields)&&c!==!t}if(r){const t=dy(n.touchedFields,e);t||(hy(n.touchedFields,e,r),p.touchedFields=n.touchedFields,s=s||(d.touchedFields||u.touchedFields)&&t!==r)}s&&a&&h.state.next(p)}return s?p:{}},b=(e,o,i,l)=>{const a=dy(n.errors,e),s=(d.isValid||u.isValid)&&uy(o)&&n.isValid!==o;var p;if(t.delayError&&i?(p=()=>((e,t)=>{hy(n.errors,e,t),h.state.next({errors:n.errors})})(e,i),r=e=>{clearTimeout(c),c=setTimeout(p,e)},r(t.delayError)):(clearTimeout(c),r=null,i?hy(n.errors,e,i):Ay(n.errors,e)),(i?!_y(a,i):a)||!Ty(l)||s){const t={...l,...s&&uy(o)?{isValid:o}:{},errors:n.errors,name:e};n={...n,...t},h.state.next(t)}},w=async e=>{m(e,!0);const n=await t.resolver(l,t.context,((e,t,n,o)=>{const r={};for(const n of e){const e=dy(t,n);e&&hy(r,n,e._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:o}})(e||s.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return m(e),n},v=async(e,o,r={valid:!0})=>{for(const i in e){const a=e[i];if(a){const{_f:e,...c}=a;if(e){const c=s.array.has(e.name),u=a._f&&Xy(a._f);u&&d.validatingFields&&m([i],!0);const h=await rb(a,s.disabled,l,p,t.shouldUseNativeValidation&&!o,c);if(u&&d.validatingFields&&m([i]),h[e.name]&&(r.valid=!1,o))break;!o&&(dy(h,e.name)?c?eb(n.errors,h,e.name):hy(n.errors,e.name,h[e.name]):Ay(n.errors,e.name))}!Ty(c)&&await v(c,o,r)}}return r.valid},x=(e,n)=>!t.disabled&&(e&&n&&hy(l,e,n),!_y(D(),i)),S=(e,t,n)=>((e,t,n,o,r)=>xy(e)?(o&&t.watch.add(e),dy(n,e,r)):Array.isArray(e)?e.map(e=>(o&&t.watch.add(e),dy(n,e))):(o&&(t.watchAll=!0),n))(e,s,{...a.mount?l:ay(t)?i:xy(e)?{[e]:t}:t},n,t),C=(e,t,n={})=>{const r=dy(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&hy(l,e,$y(t,n)),i=Ry(n.ref)&&ty(t)?"":t,Oy(n.ref)?[...n.ref.options].forEach(e=>e.selected=i.includes(e.value)):n.refs?Qg(n.ref)?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(i)?e.checked=!!i.find(t=>t===e.value):e.checked=i===e.value||!!i)}):n.refs.forEach(e=>e.checked=e.value===i):My(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||h.state.next({name:e,values:iy(l)})))}(n.shouldDirty||n.shouldTouch)&&y(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&M(e)},k=(e,t,n)=>{for(const r in t){if(!t.hasOwnProperty(r))return;const i=t[r],l=e+"."+r,a=dy(o,l);(s.array.has(e)||oy(i)||a&&!a._f)&&!ey(i)?k(l,i,n):C(l,i,n)}},E=(e,t,r={})=>{const c=dy(o,e),p=s.array.has(e),f=iy(t);hy(l,e,f),p?(h.array.next({name:e,values:iy(l)}),(d.isDirty||d.dirtyFields||u.isDirty||u.dirtyFields)&&r.shouldDirty&&h.state.next({name:e,dirtyFields:Ny(i,l),isDirty:x(e,f)})):!c||c._f||ty(f)?C(e,f,r):k(e,f,r),Yy(e,s)&&h.state.next({...n}),h.state.next({name:a.mount?e:void 0,values:iy(l)})},_=async e=>{a.mount=!0;const i=e.target;let c=i.name,g=!0;const x=dy(o,c),S=e=>{g=Number.isNaN(e)||ey(e)&&isNaN(e.getTime())||_y(e,dy(l,c,e))},C=Gy(t.mode),k=Gy(t.reValidateMode);if(x){let a,E;const _=i.type?Uy(x._f):(e=>oy(e)&&e.target?Qg(e.target)?e.target.checked:e.target.value:e)(e),T="blur"===e.type||"focusout"===e.type,D=!(e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate))(x._f)&&!t.resolver&&!dy(n.errors,c)&&!x._f.deps||((e,t,n,o,r)=>!r.isOnAll&&(!n&&r.isOnTouch?!(t||e):(n?o.isOnBlur:r.isOnBlur)?!e:!(n?o.isOnChange:r.isOnChange)||e))(T,dy(n.touchedFields,c),n.isSubmitted,k,C),R=Yy(c,s,T);hy(l,c,_),T?(x._f.onBlur&&x._f.onBlur(e),r&&r(0)):x._f.onChange&&x._f.onChange(e);const O=y(c,_,T),L=!Ty(O)||R;if(!T&&h.state.next({name:c,type:e.type,values:iy(l)}),D)return(d.isValid||u.isValid)&&("onBlur"===t.mode?T&&f():T||f()),L&&h.state.next({name:c,...R?{}:O});if(!T&&R&&h.state.next({...n}),t.resolver){const{errors:e}=await w([c]);if(S(_),g){const t=Qy(n.errors,o,c),r=Qy(e,o,t.name||c);a=r.error,c=r.name,E=Ty(e)}}else m([c],!0),a=(await rb(x,s.disabled,l,p,t.shouldUseNativeValidation))[c],m([c]),S(_),g&&(a?E=!1:(d.isValid||u.isValid)&&(E=await v(o,!0)));g&&(x._f.deps&&M(x._f.deps),b(c,E,a,O))}},T=(e,t)=>{if(dy(n.errors,t)&&e.focus)return e.focus(),1},M=async(e,r={})=>{let i,l;const a=Cy(e);if(t.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(e)for(const o of e){const e=dy(t,o);e?hy(n.errors,o,e):Ay(n.errors,o)}else n.errors=t;return t})(ay(e)?e:a);i=Ty(t),l=e?!a.some(e=>dy(t,e)):i}else e?(l=(await Promise.all(a.map(async e=>{const t=dy(o,e);return await v(t&&t._f?{[e]:t}:t)}))).every(Boolean),(l||n.isValid)&&f()):l=i=await v(o);return h.state.next({...!xy(e)||(d.isValid||u.isValid)&&i!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:i}:{},errors:n.errors}),r.shouldFocus&&!l&&Jy(o,T,e?a:s.mount),l},D=e=>{const t={...a.mount?l:i};return ay(e)?t:xy(e)?dy(t,e):e.map(e=>dy(t,e))},R=(e,t)=>({invalid:!!dy((t||n).errors,e),isDirty:!!dy((t||n).dirtyFields,e),error:dy((t||n).errors,e),isValidating:!!dy(n.validatingFields,e),isTouched:!!dy((t||n).touchedFields,e)}),O=(e,t,r)=>{const i=(dy(o,e,{_f:{}})._f||{}).ref,l=dy(n.errors,e)||{},{ref:a,message:s,type:c,...d}=l;hy(n.errors,e,{...d,...t,ref:i}),h.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},L=e=>h.state.subscribe({next:t=>{var o,r,i;o=e.name,r=t.name,i=e.exact,o&&r&&o!==r&&!Cy(o).some(e=>e&&(i?e===r:e.startsWith(r)||r.startsWith(e)))||!((e,t,n,o)=>{n(e);const{name:r,...i}=e;return Ty(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!o||my))})(t,e.formState||d,H,e.reRenderRoot)||e.callback({values:{...l},...n,...t})}}).unsubscribe,I=(e,r={})=>{for(const a of e?Cy(e):s.mount)s.mount.delete(a),s.array.delete(a),r.keepValue||(Ay(o,a),Ay(l,a)),!r.keepError&&Ay(n.errors,a),!r.keepDirty&&Ay(n.dirtyFields,a),!r.keepTouched&&Ay(n.touchedFields,a),!r.keepIsValidating&&Ay(n.validatingFields,a),!t.shouldUnregister&&!r.keepDefaultValue&&Ay(i,a);h.state.next({values:iy(l)}),h.state.next({...n,...r.keepDirty?{isDirty:x()}:{}}),!r.keepIsValid&&f()},A=({disabled:e,name:t})=>{(uy(e)&&a.mount||e||s.disabled.has(t))&&(e?s.disabled.add(t):s.disabled.delete(t))},P=(e,n={})=>{let r=dy(o,e);const l=uy(n.disabled)||uy(t.disabled);return hy(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),r?A({disabled:uy(n.disabled)?n.disabled:t.disabled,name:e}):g(e,!0,n.value),{...l?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Zy(n.min),max:Zy(n.max),minLength:Zy(n.minLength),maxLength:Zy(n.maxLength),pattern:Zy(n.pattern)}:{},name:e,onChange:_,onBlur:_,ref:l=>{if(l){P(e,n),r=dy(o,e);const t=ay(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,a=(e=>Ly(e)||Qg(e))(t),s=r._f.refs||[];if(a?s.find(e=>e===t):t===r._f.ref)return;hy(o,e,{_f:{...r._f,...a?{refs:[...s.filter(Iy),t,...Array.isArray(dy(i,e))?[{}]:[]],ref:{type:t.type,name:e}}:{ref:t}}}),g(e,!1,void 0,t)}else r=dy(o,e,{}),r._f&&(r._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&(!((e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)))(s.array,e)||!a.action)&&s.unMount.add(e)}}},z=()=>t.shouldFocusError&&Jy(o,T,s.mount),F=(e,r)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let c=iy(l);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:e,values:t}=await w();n.errors=e,c=t}else await v(o);if(s.disabled.size)for(const e of s.disabled)hy(c,e,void 0);if(Ay(n.errors,"root"),Ty(n.errors)){h.state.next({errors:{}});try{await e(c,i)}catch(e){a=e}}else r&&await r({...n.errors},i),z(),setTimeout(z);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ty(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},N=(e,r={})=>{const c=e?iy(e):i,u=iy(c),p=Ty(e),f=p?i:u;if(r.keepDefaultValues||(i=c),!r.keepValues){if(r.keepDirtyValues){const e=new Set([...s.mount,...Object.keys(Ny(i,l))]);for(const t of Array.from(e))dy(n.dirtyFields,t)?hy(f,t,dy(l,t)):E(t,dy(f,t))}else{if(ry&&ay(e))for(const e of s.mount){const t=dy(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Ry(e)){const t=e.closest("form");if(t){t.reset();break}}}}for(const e of s.mount)E(e,dy(f,e))}l=iy(f),h.array.next({values:{...f}}),h.state.next({values:{...f}})}s={mount:r.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!r.keepIsValid||!!r.keepDirtyValues,a.watch=!!t.shouldUnregister,h.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!p&&(r.keepDirty?n.isDirty:!(!r.keepDefaultValues||_y(e,i))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:p?{}:r.keepDirtyValues?r.keepDefaultValues&&l?Ny(i,l):n.dirtyFields:r.keepDefaultValues&&e?Ny(i,e):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},V=(e,t)=>N(Dy(e)?e(l):e,t),H=e=>{n={...n,...e}},B={control:{register:P,unregister:I,getFieldState:R,handleSubmit:F,setError:O,_subscribe:L,_runSchema:w,_focusError:z,_getWatch:S,_getDirty:x,_setValid:f,_setFieldArray:(e,r=[],s,c,p=!0,f=!0)=>{if(c&&s&&!t.disabled){if(a.action=!0,f&&Array.isArray(dy(o,e))){const t=s(dy(o,e),c.argA,c.argB);p&&hy(o,e,t)}if(f&&Array.isArray(dy(n.errors,e))){const t=s(dy(n.errors,e),c.argA,c.argB);p&&hy(n.errors,e,t),((e,t)=>{!sy(dy(e,t)).length&&Ay(e,t)})(n.errors,e)}if((d.touchedFields||u.touchedFields)&&f&&Array.isArray(dy(n.touchedFields,e))){const t=s(dy(n.touchedFields,e),c.argA,c.argB);p&&hy(n.touchedFields,e,t)}(d.dirtyFields||u.dirtyFields)&&(n.dirtyFields=Ny(i,l)),h.state.next({name:e,isDirty:x(e,r),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else hy(l,e,r)},_setDisabledField:A,_setErrors:e=>{n.errors=e,h.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>sy(dy(a.mount?l:i,e,t.shouldUnregister?dy(i,e,[]):[])),_reset:N,_resetDefaultValues:()=>Dy(t.defaultValues)&&t.defaultValues().then(e=>{V(e,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const e of s.unMount){const t=dy(o,e);t&&(t._f.refs?t._f.refs.every(e=>!Iy(e)):!Iy(t._f.ref))&&I(e)}s.unMount=new Set},_disableForm:e=>{uy(e)&&(h.state.next({disabled:e}),Jy(o,(t,n)=>{const r=dy(o,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:h,_proxyFormState:d,get _fields(){return o},get _formValues(){return l},get _state(){return a},set _state(e){a=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e}}},subscribe:e=>(a.mount=!0,u={...u,...e.formState},L({...e,formState:u})),trigger:M,register:P,handleSubmit:F,watch:(e,t)=>Dy(e)?h.state.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:E,getValues:D,reset:V,resetField:(e,t={})=>{dy(o,e)&&(ay(t.defaultValue)?E(e,iy(dy(i,e))):(E(e,t.defaultValue),hy(i,e,iy(t.defaultValue))),t.keepTouched||Ay(n.touchedFields,e),t.keepDirty||(Ay(n.dirtyFields,e),n.isDirty=t.defaultValue?x(e,iy(dy(i,e))):x()),t.keepError||(Ay(n.errors,e),d.isValid&&f()),h.state.next({...n}))},clearErrors:e=>{e&&Cy(e).forEach(e=>Ay(n.errors,e)),h.state.next({errors:e?n.errors:{}})},unregister:I,setError:O,setFocus:(e,t={})=>{const n=dy(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&Dy(e.select)&&e.select())}},getFieldState:R};return{...B,formControl:B}}(e);t.current={...r,formState:o}}const i=t.current.control;return i._options=e,vy(()=>{const e=i._subscribe({formState:i._proxyFormState,callback:()=>r({...i._formState}),reRenderRoot:!0});return r(e=>({...e,isReady:!0})),i._formState.isReady=!0,e},[i]),P.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),P.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),P.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),P.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),P.useEffect(()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==o.isDirty&&i._subjects.state.next({isDirty:e})}},[i,o.isDirty]),P.useEffect(()=>{e.values&&!_y(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(e=>({...e}))):i._resetDefaultValues()},[i,e.values]),P.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=((e,t,n,o=!0)=>{const r={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(r,n,{get:()=>{const r=n;return t._proxyFormState[r]!==my&&(t._proxyFormState[r]=!o||my),e[r]}});return r})(o,i),t.current}const ab=["Ok","Cancel"],sb=z(j((e,t)=>{const{description:n,icon:o,onCancel:r,onOption:i,onDone:l,onValidateOption:a,createOptionsButton:s,options:c=ab,autoFocusSel:d=".defaultOption",defaultOption:u=c[0],cancelOption:h="Cancel",children:p,...f}=e,m=lb({shouldUseNativeValidation:!1}),{handleSubmit:g,formState:y}=m,b=F(null),w=F(null),v=F(null),x=td(async e=>{let t;try{if(t=await Promise.resolve(a?.(e))??!0,!0!==t)return;await Promise.resolve(i?.(e,e===h,e===u)),l?.(e)}catch(e){}},[i,l,a,h,u]),S=td((e,t)=>{setTimeout(()=>{x(u)},180)},[x]),C=td(()=>{i?.(h,!0,!1),r?.(),l?.(null)},[i,h,r,l]),k=y&&(Object.keys(y.errors).length>0||y.disabled||y.isSubmitted),E=td((e,t)=>{const n=e===h,o={className:t?"defaultOption":"action",type:t?"submit":"button",style:{minWidth:"75px"},onClick:()=>{n?C():t||x(e)}};if(s)return s(e,o,t);const r={className:t?"defaultOption":"action",variant:t?"contained":"outlined",size:"small",disabled:!n&&k,color:"primary",...o};if(t||n){const e=t?b:w;r.touchRippleRef=e,r.onPointerDown=t=>{e.current?.start(t,{center:!1}),t.stopPropagation(),t.preventDefault()}}return O(me,{...r,children:O("div",{style:{paddingTop:"3px"},children:e})},`action:${e}`)},[c,u,h,s,y]),_=$(()=>{const e=[];for(let t=0;t<c.length;t++){const n=c[t],o=u?n===u:0===t;e.push(E(n,o))}return e},[c,u,y]);return O(Vg,{onCancel:C,initialPosition:{y:"touch"===Jg?"15":"35"},onDone:l,autoFocusSel:d,isModal:!0,ref:t,PaperProps:{},...f,children:O(wy,{...m,children:L("form",{ref:v,onSubmit:g(S),children:[O(ge,{dividers:!0,onKeyDown:e=>{if(e.isDefaultPrevented())return;e.stopPropagation();let t=null,n=null;const o=e.which===qc.Escape&&h;if(o)t=h,n=w;else{if(k)return;e.which===qc.Enter&&(t=u??c[0],n=b)}t&&(n.current?.start(e,{center:!1}),setTimeout(()=>{n.current?.stop(e),o&&x(t)},180))},children:L(ne,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:e=>e.spacing(o||n?1.5:0)},children:[L(ne,{sx:{display:"flex",flexDirection:"column"},children:[o,n]}),p]})}),O(ye,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(1),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1),backgroundColor:e=>ut(e.palette.action.hover,.03)},children:_})]})})})})),cb=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:sb,default:sb},Symbol.toStringTag,{value:"Module"})),db=P.lazy(()=>Promise.resolve().then(()=>cb)),ub=P.lazy(()=>import("./Dr6QLJSwckbF9K_u.mjs")),hb=z(j((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...l}=e;return fu(n),O(Jf,{ref:t,label:void 0!==o?n?.label():"",shortcut:void 0!==r?r:Array.isArray(n?.shortcut())?n?.shortcut()[0]:n?.shortcut(),description:n?.description(),disabled:o,chips:n?.tags(),componentDisabled:n?.disabled(),...l,children:O("div",{style:{display:"flex",flex:"1 1 0%"},children:i})})})),pb=z(j((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:l,label:a,disabled:s=!1,variant:c=yu.Toolbar,shortcut:d,commandState:u,tooltipProps:h,...p}=e,f=F(null),m=F(!1),g=$(()=>{const e={onExecute(e,t){o?.onExecute?.(e,t),m.current||(f.current?.start({center:!1}),setTimeout(()=>f.current?.stop({}),180)),m.current=!1},onError(e,t,n){o?.onError(e,t,n)}};return o?.beforeExecute&&(e.beforeExecute=o.beforeExecute),e},[o]),y=fu(n,g),b=H(e=>{0===e.button&&e.preventDefault()},[]),w=H(e=>{0===e.button&&n?.execute(u,o)},[y,o,u]),v=H(e=>{e.keyCode!==qc.Enter&&e.keyCode!==qc.Space||n?.execute(u,o)},[y,o,u]),x=$(()=>l||c===yu.Toolbar||n?.state()?"function"==typeof l?l(n):l:Qf,[y,l]),S=$(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:c===yu.Toolbar?x:O(cm,{selected:n?.state()??!1,children:x}),touchRippleRef:f,disabled:s||!n||n.disabled(),onMouseDown:b,onMouseUp:w,onKeyDown:v}),[y,o,s,x]);let C;return C=c===yu.Menuitem?O(om,{...p,chips:n?.tags(),...S,children:a??n?.label(r,i)}):O(tm,{...p,...S}),a||n?.label()?((n.disabled()||s)&&(C=O("div",{children:C})),C=O(hb,{command:n,placement:c===yu.Toolbar?"bottom-start":"right-start",shortcut:d,...h,children:C}),C):C})),fb=z(j((e,t)=>{const{command:n,scope:o,icon:r=Qf,label:i,variant:l=yu.Toolbar,disabled:a=!1,commandHook:s,...c}=e,d=F(null),u=F(!1),h=$(()=>{const e={onExecute(e,t){s?.onExecute?.(e,t),u.current||(d.current?.start({center:!1}),setTimeout(()=>d.current?.stop({}),180)),u.current=!1},onError(e,t,n){s?.onError(e,t,n)}};return s?.beforeExecute&&(e.beforeExecute=s.beforeExecute),e},[s]),p=fu(n,h),f=()=>n?.state()?.toString()||"0",[m,g]=N(f),y=td(()=>{const e=parseFloat(m);isNaN(e)?g(f()):parseFloat(f())!==e&&n.execute(e,s)},[f,n,m,s]);V(()=>{g(f())},[n?.state()]);const b=$(()=>"function"==typeof r?r(n):r,[p,r]),w=$(()=>void 0===i?n?.label(o):"function"==typeof i?i():i,[p]),v=$(()=>O(oe,{...c,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:e=>e.stopPropagation(),onMouseDown:e=>{0===e.button&&e.stopPropagation()},onMouseUp:e=>{0===e.button&&e.stopPropagation()},children:O(re,{inputMode:"numeric",disabled:a||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.key()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,width:e=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:m,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===qc.Enter)f()!==m&&(e.stopPropagation(),e.preventDefault(),y());else if(e.which===qc.Escape)f()!==m&&(g(f()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault());else{if(e.key.match("[-]"))return e.stopPropagation(),void e.preventDefault();if(e.key.match("[0-9.]")&&(m+e.key).length>4)return e.stopPropagation(),void e.preventDefault();if(e.which===qc.Space)return void e.preventDefault()}},onBlur:()=>{y()},onChange:e=>{if(e.target.value.length>4)return e.stopPropagation(),void e.preventDefault();g(e.target.value)}})}),[m,a,n]),x={tabIndex:0,ref:t,icon:b,touchRippleRef:d,disabled:a||!n||n.disabled(),onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0!==e.button||e.isPropagationStopped()||e.isDefaultPrevented()||e.isDefaultPrevented()||(e.preventDefault(),n?.execute(!n?.state?.(),h))},onKeyDown:e=>{e.keyCode!==qc.Enter&&e.keyCode!==qc.Space||n?.execute(!n?.state?.(),h)}};let S;return S=l===yu.Menuitem?L(om,{...c,chips:n?.tags(),...x,children:[w,v]}):O(tm,{...c,...x}),n?.label()?((n.disabled()||a)&&(S=O("div",{children:S})),S=O(hb,{command:n,placement:l===yu.Toolbar?"bottom-start":"right-start",children:S}),S):S})),mb=z(j((e,t)=>{const{variant:n=yu.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:l,commandHook:a,disabled:s,label:c,icon:d,createPopupPanel:u,tooltip:h,selected:p,scope:f,...m}=e,g=F(null),y=F(!1),b=$(()=>{const e={onExecute(e,t){a?.onExecute?.(e,t),y.current||(g.current?.start({center:!1}),setTimeout(()=>g.current?.stop({}),180)),y.current=!1},onError(e,t,n){a?.onError(e,t,n)}};return a?.beforeExecute&&(e.beforeExecute=a.beforeExecute),e},[a]),w=gu(i,[o],null,[o]),v=w[0],{label:x,icon:S}=$(()=>{let e=null;c&&(e="function"==typeof c?c(v):c),e||(e=v?.label?.(f));let t=null;return d&&(t="function"==typeof d?d(v):d),t||(t=v?.icon?.()),{label:e,icon:t}},[w,c,d]),C={disabled:s,scope:f,touchRippleRef:g,onQuickClick:r,tooltip:h,label:x,icon:S};(x||h)&&(C.createTooltip=({children:e},t)=>O(Jf,{label:x,description:h,disabled:t,children:e}));const k=td(e=>u?.(e,i),[u,w]),E=td(e=>v?.execute(l,b),[v]);return v?(C.quickButtonProps={},C.quickButtonProps.createTooltip=({children:e,placement:t},o)=>O(hb,{command:v,placement:t??n===yu.Toolbar?"bottom-start":"right-start",disabled:o,children:e}),C.disabled=C.disabled??v?.disabled(),r||(C.onQuickClick=E)):o&&(C.onQuickClick=()=>{}),C.selected=p??v?.state(),C.createPopupPanel=k,n===yu.Toolbar?O(im,{...m,...C,ref:t}):O(am,{...m,...C,ref:t})}));mb.displayName="CommandPopupButton";const gb=e=>{const{command:t,label:n,scope:o,icon:r=O(Rl,{}),sx:i,...l}=e;return L(ne,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:e=>e.typography.subtitle2.fontSize,...i},...l,children:[r?kc(r):null,O(se,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:e=>e.spacing(.25),paddingRight:e=>e.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},yb=z(j((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:l,children:a,...s}=e,c=zd(t,()=>({}),[]),[d,u]=N(null),{reference:h}=Wf({label:"toolbar",anchor:c.current,parentFloat:i,createPopupPanel:null}),p=H(()=>{const e=d;e&&requestAnimationFrame(()=>{c.current?.contains(document.activeElement)&&e.focus()})},[]),f=$(()=>({dense:!0,outlined:!1}),[]),m=$(()=>{const{commandHook:e,...t}=r||{};return{commandHook:{beforeExecute:(t,n)=>{const o=e?.beforeExecute?.(t,n);return!1!==o&&h.closeAll()},onExecute(t,n){e?.onExecute?.(t,n),p()},onError(t,n,o){e?.onError?.(t,n,o)}},...t}},[h,r]),g=$(()=>({...f,...m}),[f,m]),[y,b]=B(e=>e+1,0);gu(o,[],{onChange:()=>{b()}});const w=$(()=>({commands:o,parentFloat:h,...m}),[y,g,h,r]);let v=0;f.dense||(v+=2),f.outlined&&v++;let x=2;f.dense||(x=4);const S=$(()=>l({commands:o,commandButtonProps:g,commandPopupProps:{commands:o,...w,...r}}),[y,g,w,l]);return O(ue,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${x}px`,paddingBottom:`${x}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:c,onFocus:e=>{e.relatedTarget&&!d&&u(e.relatedTarget)},onBlur:e=>{d&&!c?.current?.contains(e.relatedTarget)&&u(null)},onKeyDown:e=>{d&&e.which===qc.Escape&&d.focus()},...s,children:O("div",{ref:c,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${x}px`,columnGap:`${v}px`,alignItems:"center",maxWidth:"100%"},children:S})})}));yb.displayName="CommandToolbar";const bb=e=>{const{key:t,...n}=e;return O(pb,{...n},t)},wb=z(j((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o=bb,scope:r,commands:i,icon:l,quickCommand:a,popupScope:s=a,commandState:c,commandHook:d,disabled:u=!1,...h}=e,p=gu(i,n?[a,...n]:[a]),f=H((e,t)=>{const r={variant:yu.Menuitem,commandHook:d,commandState:c,icon:l,scope:s,disabled:u},i=[];for(let e=0;e<n?.length;e++){const l=n[e];if(null===l||"-"===l){i.push(O(Mp,{orientation:"horizontal"},`element-${i.length}`));continue}const a=t.getCommand(l),s={key:`${l}-${i.length}`,command:a,...r},c=o(s);c&&i.push(c)}return Mf({...e,children:i})},[u,d,c,s,n,l,o]);return n?O(mb,{ref:t,commands:i,disabled:u,commandHook:d,commandState:c,scope:r,quickCommand:a,icon:l,createPopupPanel:f,...h}):o({ref:t,disabled:u,commandHook:d,commandState:c,scope:r,command:p[0],icon:l,...h})})),vb=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...a}=e,s=ei(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),c=$(()=>{for(let e=0;e<s.length;e++)if(s[e]?.state())return s[e].key();return s[0]?.key()},[s]),d=$(()=>{const e=new Map;return e.set("formatAlignLeftToggle",kc(O(je,{}))),e.set("formatAlignCenterToggle",kc(O(We,{}))),e.set("formatAlignRightToggle",kc(O(Ue,{}))),e.set("formatAlignJustifyToggle",kc(O(qe,{}))),e.set("formatAlignCenterContinuousToggle",kc(O(We,{}))),e.set("formatAlignFillToggle",kc(O(qe,{}))),e.set("formatAlignDistributedHorizontalToggle",kc(O(qe,{}))),e},[]),u=$(()=>{if(!o)return null;const e={...o};return delete e.beforeExecute,e},[o]),h=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("formatAlignLeftToggle"),icon:d.get("formatAlignLeftToggle")}),O(pb,{...n,command:t.getCommand("formatAlignCenterToggle"),icon:d.get("formatAlignCenterToggle")}),O(pb,{...n,command:t.getCommand("formatAlignRightToggle"),icon:d.get("formatAlignRightToggle")}),O(pb,{...n,command:t.getCommand("formatAlignJustifyToggle"),icon:d.get("formatAlignJustifyToggle")}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("formatAlignCenterContinuousToggle"),icon:d.get("formatAlignCenterContinuousToggle")}),O(pb,{...n,command:t.getCommand("formatAlignFillToggle"),icon:d.get("formatAlignFillToggle")}),O(pb,{...n,command:t.getCommand("formatAlignDistributedHorizontalToggle"),icon:d.get("formatAlignDistributedHorizontalToggle")})]}),s=L(ne,{sx:{className:Et("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[O(pb,{command:t.getCommand("formatIndentDecrease"),commandHook:u,scope:r,disabled:i,icon:kc(O(Zu,{}))}),O(pb,{command:t.getCommand("formatIndentIncrease"),commandHook:u,scope:r,disabled:i,icon:kc(O(qu,{}))})]}),c=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...a,children:[s,O(Mp,{orientation:"horizontal"}),O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:l})]});return Mf({...e,children:c})},[i,o]);return O(mb,{ref:t,parentFloat:l,commands:n,commandHook:o,scope:r,createPopupPanel:h,label:"Horizontal Alignment",tooltip:"Configure how text is placed in the horizontal direction of the cell.",quickCommand:c,icon:d.get(c)??O(je,{}),...a})})),xb=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),s=$(()=>{for(let e=0;e<a.length;e++)if(a[e]?.state())return a[e].key();return a[0]?.key()},[a]),c=$(()=>{const e=new Map;return e.set("formatAlignTopToggle",kc(O(ph,{}))),e.set("formatAlignMiddleToggle",kc(O(fh,{}))),e.set("formatAlignBottomToggle",kc(O(mh,{}))),e.set("formatAlignJustifyVerticalToggle",kc(O(qe,{}))),e.set("formatAlignDistributedVerticalToggle",kc(O(qe,{}))),e},[]),d=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("formatAlignTopToggle"),icon:c.get("formatAlignTopToggle")}),O(pb,{...n,command:t.getCommand("formatAlignMiddleToggle"),icon:c.get("formatAlignMiddleToggle")}),O(pb,{...n,command:t.getCommand("formatAlignBottomToggle"),icon:c.get("formatAlignBottomToggle")}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("formatAlignJustifyVerticalToggle"),icon:c.get("formatAlignJustifyVerticalToggle")}),O(pb,{...n,command:t.getCommand("formatAlignDistributedVerticalToggle"),icon:c.get("formatAlignDistributedVerticalToggle")})]});return Mf({...e,children:l})},[i,o,c]);return O(mb,{ref:t,commands:n,commandHook:o,createPopupPanel:d,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:c.get(s)??kc(O(mh,{})),...l})})),Sb=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),s=$(()=>{for(let e=0;e<a.length;e++)if(a[e]?.state())return a[e].key();return a[0]?.key()},[a]),c=$(()=>{const e=new Map;return e.set("formatTextOverflowVisibleToggle",kc(O(Ol,{}))),e.set("formatTextOverflowWrapToggle",kc(O(Ll,{}))),e.set("formatTextOverflowClipToggle",kc(O(Il,{}))),e.set("formatTextOverflowShrinkToggle",kc(O(Al,{}))),e},[]),d=go((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("formatTextOverflowVisibleToggle"),icon:c.get("formatTextOverflowVisibleToggle")}),O(pb,{...n,command:t.getCommand("formatTextOverflowWrapToggle"),icon:c.get("formatTextOverflowWrapToggle")}),O(pb,{...n,command:t.getCommand("formatTextOverflowClipToggle"),icon:c.get("formatTextOverflowClipToggle")}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("formatTextOverflowShrinkToggle"),icon:c.get("formatTextOverflowShrinkToggle")})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,scope:r,label:"Text Overflow",tooltip:"Configure how text behaves when it doesn't fit within a cell.",createPopupPanel:d,icon:c.get(s)??kc(O(Ol,{})),...l})})),Cb=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),s=$(()=>{const e=a.length;for(let t=0;t<e;t++){const e=a[t];if(e?.state())return e.key()}return a[1]?.key()},[a]),c=$(()=>{const e=new Map;return e.set("formatTextRotate0",kc(O(uh,{}))),e.set("formatTextRotate315",kc(O(uh,{}))),e.set("formatTextRotate45",kc(O(sh,{}))),e.set("formatTextRotate90",kc(O(ch,{}))),e.set("formatTextRotate270",kc(O(dh,{}))),e.set("formatTextRotateCustom",kc(O(hh,{}))),e},[]),d=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("formatTextRotate0"),icon:kc(O(ah,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("formatTextRotate315"),icon:kc(O(uh,{}))}),O(pb,{...n,command:t.getCommand("formatTextRotate45"),icon:kc(O(sh,{}))}),O(pb,{...n,command:t.getCommand("formatTextRotate90"),icon:kc(O(ch,{}))}),O(pb,{...n,command:t.getCommand("formatTextRotate270"),icon:kc(O(dh,{}))}),O(Mp,{orientation:"horizontal"}),O(fb,{...n,command:t.getCommand("formatTextRotateCustom"),icon:kc(O(hh,{})),label:"Custom"})]});return Mf({...e,children:l})},[i,o,r,n]),u=$(()=>0!==(n.getCommand("formatTextRotateCustom")?.state()??0),[a]);return O(mb,{ref:t,commands:n,commandHook:o,scope:r,selected:u,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:d,quickCommand:u?"formatTextRotate0":"formatTextRotate315",icon:kc(c.get(s)??O(uh,{})),...l})}));function kb(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append("args[]",e)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Eb="$$material";function _b(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})})(t),l=Object.keys(i);function a(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-o/100}${n})`}function c(e,r){const i=l.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[l[i]]?t[l[i]]:r)-o/100}${n})`}return{keys:l,values:i,up:a,down:s,between:c,only:function(e){return l.indexOf(e)+1<l.length?c(e,l[l.indexOf(e)+1]):a(e)},not:function(e){const t=l.indexOf(e);return 0===t?a(l[1]):t===l.length-1?s(l[t]):c(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...r}}var Tb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Mb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Db,Rb,Ob={exports:{}},Lb={};function Ib(){if(Db)return Lb;Db=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function f(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case r:case o:case s:case c:case h:return p;default:switch(p=p&&p.$$typeof){case l:case a:case u:case d:case i:return p;default:return f}}case t:return f}}}return Lb.ContextConsumer=i,Lb.ContextProvider=l,Lb.Element=e,Lb.ForwardRef=a,Lb.Fragment=n,Lb.Lazy=u,Lb.Memo=d,Lb.Portal=t,Lb.Profiler=r,Lb.StrictMode=o,Lb.Suspense=s,Lb.SuspenseList=c,Lb.isContextConsumer=function(e){return f(e)===i},Lb.isContextProvider=function(e){return f(e)===l},Lb.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Lb.isForwardRef=function(e){return f(e)===a},Lb.isFragment=function(e){return f(e)===n},Lb.isLazy=function(e){return f(e)===u},Lb.isMemo=function(e){return f(e)===d},Lb.isPortal=function(e){return f(e)===t},Lb.isProfiler=function(e){return f(e)===r},Lb.isStrictMode=function(e){return f(e)===o},Lb.isSuspense=function(e){return f(e)===s},Lb.isSuspenseList=function(e){return f(e)===c},Lb.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===r||e===o||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===d||e.$$typeof===l||e.$$typeof===i||e.$$typeof===a||e.$$typeof===p||void 0!==e.getModuleId)},Lb.typeOf=f,Lb}function Ab(){return Rb||(Rb=1,Ob.exports=Ib()),Ob.exports}var Pb=Ab();function zb(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Fb(e){if(A.isValidElement(e)||Pb.isValidElementType(e)||!zb(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Fb(e[n])}),t}function Nb(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return zb(e)&&zb(t)&&Object.keys(t).forEach(r=>{A.isValidElement(t[r])||Pb.isValidElementType(t[r])?o[r]=t[r]:zb(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&zb(e[r])?o[r]=Nb(e[r],t[r],n):n.clone?o[r]=zb(t[r])?Fb(t[r]):t[r]:o[r]=t[r]}),o}function Vb(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Hb(e){if(e.type)return e;if("#"===e.charAt(0))return Hb(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map(e=>e+e)),n?`rgb${4===n.length?"a":""}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(kb(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(kb(10,o))}else r=r.split(",");return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:o}}const Bb=(e,t)=>{try{return(e=>{const t=Hb(e);return t.values.slice(0,3).map((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e).join(" ")})(e)}catch(t){return e}};function $b(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((e,t)=>t<3?parseInt(e,10):e):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function jb(e){e=Hb(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),$b({type:a,values:s})}function Wb(e){let t="hsl"===(e=Hb(e)).type||"hsla"===e.type?Hb(jb(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ub(e,t,n){try{return function(e,t){return e=Hb(e),t=Vb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,$b(e)}(e,t)}catch(t){return e}}function qb(e,t){if(e=Hb(e),t=Vb(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return $b(e)}function Zb(e,t,n){try{return qb(e,t)}catch(t){return e}}function Gb(e,t){if(e=Hb(e),t=Vb(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return $b(e)}function Kb(e,t,n){try{return Gb(e,t)}catch(t){return e}}function Xb(e,t,n){try{return function(e,t=.15){return Wb(e)>.5?qb(e,t):Gb(e,t)}(e,t)}catch(t){return e}}const Yb={black:"#000",white:"#fff"},Jb={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qb="#f3e5f5",ew="#ce93d8",tw="#ba68c8",nw="#ab47bc",ow="#9c27b0",rw="#7b1fa2",iw="#e57373",lw="#ef5350",aw="#f44336",sw="#d32f2f",cw="#c62828",dw="#ffb74d",uw="#ffa726",hw="#ff9800",pw="#f57c00",fw="#e65100",mw="#e3f2fd",gw="#90caf9",yw="#42a5f5",bw="#1976d2",ww="#1565c0",vw="#4fc3f7",xw="#29b6f6",Sw="#03a9f4",Cw="#0288d1",kw="#01579b",Ew="#81c784",_w="#66bb6a",Tw="#4caf50",Mw="#388e3c",Dw="#2e7d32",Rw="#1b5e20";function Ow(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yb.white,default:Yb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Lw=Ow();function Iw(){return{text:{primary:Yb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Aw=Iw();function Pw(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Gb(e.main,r):"dark"===t&&(e.dark=qb(e.main,i)))}function zw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(e="light"){return"dark"===e?{main:gw,light:mw,dark:yw}:{main:bw,light:yw,dark:ww}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:ew,light:Qb,dark:nw}:{main:ow,light:tw,dark:rw}}(t),a=e.error||function(e="light"){return"dark"===e?{main:aw,light:iw,dark:sw}:{main:sw,light:lw,dark:cw}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xw,light:vw,dark:Cw}:{main:Cw,light:Sw,dark:kw}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_w,light:Ew,dark:Mw}:{main:Dw,light:Tw,dark:Rw}}(t),d=e.warning||function(e="light"){return"dark"===e?{main:uw,light:dw,dark:pw}:{main:"#ed6c02",light:hw,dark:fw}}(t);function u(e){const t=function(e,t){const n=Wb(e),o=Wb(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}(e,Aw.text.primary)>=n?Aw.text.primary:Lw.text.primary;return t}const h=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(kb(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(kb(12,t?` (${t})`:"",JSON.stringify(e.main)));return Pw(e,"light",r,o),Pw(e,"dark",i,o),e.contrastText||(e.contrastText=u(e.main)),e};let p;"light"===t?p=Ow():"dark"===t&&(p=Iw());return Nb({common:{...Yb},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:s,name:"info"}),success:h({color:c,name:"success"}),grey:Jb,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:o,...p},r)}var Fw,Nw,Vw,Hw,Bw,$w={exports:{}};function jw(){if(Nw)return Fw;Nw=1;return Fw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ww(){if(Hw)return Vw;Hw=1;var e=jw();function t(){}function n(){}return n.resetWarningCache=t,Vw=function(){function o(t,n,o,r,i,l){if(l!==e){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function r(){return o}o.isRequired=o;var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Vw}function Uw(){return Bw||(Bw=1,$w.exports=Ww()()),$w.exports}function qw(e,t){return t?Nb(e,t,{clone:!1}):e}function Zw(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(e=>e.startsWith("@container")).sort((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{const o=t[n];return delete e[n],e[n]=o,e},{...t}):t}const Gw={xs:0,sm:600,md:900,lg:1200,xl:1536},Kw={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gw[e]}px)`},Xw={containerQueries:e=>({up:t=>{let n="number"==typeof t?t:Gw[t]||t;return"number"==typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Yw(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const e=o.breakpoints||Kw;return t.reduce((o,r,i)=>(o[e.up(e.keys[i])]=n(t[i]),o),{})}if("object"==typeof t){const e=o.breakpoints||Kw;return Object.keys(t).reduce((r,i)=>{if(l=e.keys,"@"===(a=i)||a.startsWith("@")&&(l.some(e=>a.startsWith(`@${e}`))||a.match(/^@\d/))){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}(o.containerQueries?o:Xw,i);e&&(r[e]=n(t[i],i))}else if(Object.keys(e.values||Gw).includes(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}var l,a;return r},{})}return n(t)}function Jw(e,t){return e.reduce((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e},t)}function Qw(e){if("string"!=typeof e)throw new Error(kb(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ev(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=n)return n}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function tv(e,t,n,o=n){let r;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||o:ev(e,n)||o,t&&(r=t(r,o,e)),r}function nv(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=e=>{if(null==e[t])return null;const i=e[t],l=ev(e.theme,o)||{};return Yw(e,i,e=>{let o=tv(l,r,e);return e===o&&"string"==typeof e&&(o=tv(l,r,`${t}${"default"===e?"":Qw(e)}`,e)),!1===n?o:{[n]:o}})};return i.propTypes={},i.filterProps=[t],i}const ov={m:"margin",p:"padding"},rv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},iv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!iv[e])return[e];e=iv[e]}const[t,n]=e.split(""),o=ov[t],r=rv[n]||"";return Array.isArray(r)?r.map(e=>o+e):[o+r]}),av=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function cv(e,t,n,o){const r=ev(e,t,!0)??n;return"number"==typeof r||"string"==typeof r?e=>"string"==typeof e?e:"string"==typeof r?`calc(${e} * ${r})`:r*e:Array.isArray(r)?e=>{if("string"==typeof e)return e;const t=Math.abs(e),n=r[t];return e>=0?n:"number"==typeof n?-n:`-${n}`}:"function"==typeof r?r:()=>{}}function dv(e){return cv(e,"spacing",8)}function uv(e,t){return"string"==typeof t||null==t?t:e(t)}function hv(e,t,n,o){if(!t.includes(n))return null;const r=function(e,t){return n=>e.reduce((e,o)=>(e[o]=uv(t,n),e),{})}(lv(n),o);return Yw(e,e[n],r)}function pv(e,t){const n=dv(e.theme);return Object.keys(e).map(o=>hv(e,t,o,n)).reduce(qw,{})}function fv(e){return pv(e,av)}function mv(e){return pv(e,sv)}fv.propTypes={},fv.filterProps=av,mv.propTypes={},mv.filterProps=sv;const gv={borderRadius:4};function yv(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,o)=>t[o]?qw(n,t[o](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function bv(e){return"number"!=typeof e?e:`${e}px solid`}function wv(e,t){return nv({prop:e,themeKey:"borders",transform:t})}const vv=wv("border",bv),xv=wv("borderTop",bv),Sv=wv("borderRight",bv),Cv=wv("borderBottom",bv),kv=wv("borderLeft",bv),Ev=wv("borderColor"),_v=wv("borderTopColor"),Tv=wv("borderRightColor"),Mv=wv("borderBottomColor"),Dv=wv("borderLeftColor"),Rv=wv("outline",bv),Ov=wv("outlineColor"),Lv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=cv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:uv(t,e)});return Yw(e,e.borderRadius,n)}return null};Lv.propTypes={},Lv.filterProps=["borderRadius"],yv(vv,xv,Sv,Cv,kv,Ev,_v,Tv,Mv,Dv,Lv,Rv,Ov);const Iv=e=>{if(void 0!==e.gap&&null!==e.gap){const t=cv(e.theme,"spacing",8),n=e=>({gap:uv(t,e)});return Yw(e,e.gap,n)}return null};Iv.propTypes={},Iv.filterProps=["gap"];const Av=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=cv(e.theme,"spacing",8),n=e=>({columnGap:uv(t,e)});return Yw(e,e.columnGap,n)}return null};Av.propTypes={},Av.filterProps=["columnGap"];const Pv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=cv(e.theme,"spacing",8),n=e=>({rowGap:uv(t,e)});return Yw(e,e.rowGap,n)}return null};Pv.propTypes={},Pv.filterProps=["rowGap"];function zv(e,t){return"grey"===t?t:e}yv(Iv,Av,Pv,nv({prop:"gridColumn"}),nv({prop:"gridRow"}),nv({prop:"gridAutoFlow"}),nv({prop:"gridAutoColumns"}),nv({prop:"gridAutoRows"}),nv({prop:"gridTemplateColumns"}),nv({prop:"gridTemplateRows"}),nv({prop:"gridTemplateAreas"}),nv({prop:"gridArea"}));function Fv(e){return e<=1&&0!==e?100*e+"%":e}yv(nv({prop:"color",themeKey:"palette",transform:zv}),nv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zv}),nv({prop:"backgroundColor",themeKey:"palette",transform:zv}));const Nv=nv({prop:"width",transform:Fv}),Vv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||Gw[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Fv(t)}};return Yw(e,e.maxWidth,t)}return null};Vv.filterProps=["maxWidth"];const Hv=nv({prop:"minWidth",transform:Fv}),Bv=nv({prop:"height",transform:Fv}),$v=nv({prop:"maxHeight",transform:Fv}),jv=nv({prop:"minHeight",transform:Fv});nv({prop:"size",cssProperty:"width",transform:Fv}),nv({prop:"size",cssProperty:"height",transform:Fv});yv(Nv,Vv,Hv,Bv,$v,jv,nv({prop:"boxSizing"}));const Wv={border:{themeKey:"borders",transform:bv},borderTop:{themeKey:"borders",transform:bv},borderRight:{themeKey:"borders",transform:bv},borderBottom:{themeKey:"borders",transform:bv},borderLeft:{themeKey:"borders",transform:bv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Lv},color:{themeKey:"palette",transform:zv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zv},backgroundColor:{themeKey:"palette",transform:zv},p:{style:mv},pt:{style:mv},pr:{style:mv},pb:{style:mv},pl:{style:mv},px:{style:mv},py:{style:mv},padding:{style:mv},paddingTop:{style:mv},paddingRight:{style:mv},paddingBottom:{style:mv},paddingLeft:{style:mv},paddingX:{style:mv},paddingY:{style:mv},paddingInline:{style:mv},paddingInlineStart:{style:mv},paddingInlineEnd:{style:mv},paddingBlock:{style:mv},paddingBlockStart:{style:mv},paddingBlockEnd:{style:mv},m:{style:fv},mt:{style:fv},mr:{style:fv},mb:{style:fv},ml:{style:fv},mx:{style:fv},my:{style:fv},margin:{style:fv},marginTop:{style:fv},marginRight:{style:fv},marginBottom:{style:fv},marginLeft:{style:fv},marginX:{style:fv},marginY:{style:fv},marginInline:{style:fv},marginInlineStart:{style:fv},marginInlineEnd:{style:fv},marginBlock:{style:fv},marginBlockStart:{style:fv},marginBlockEnd:{style:fv},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Iv},rowGap:{style:Pv},columnGap:{style:Av},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fv},maxWidth:{style:Vv},minWidth:{transform:Fv},height:{transform:Fv},maxHeight:{transform:Fv},minHeight:{transform:Fv},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Uv=function(){function e(e,t,n,o){const r={[e]:t,theme:n},i=o[e];if(!i)return{[e]:t};const{cssProperty:l=e,themeKey:a,transform:s,style:c}=i;if(null==t)return null;if("typography"===a&&"inherit"===t)return{[e]:t};const d=ev(n,a)||{};if(c)return c(r);return Yw(r,t,t=>{let n=tv(d,s,t);return t===n&&"string"==typeof t&&(n=tv(d,s,`${e}${"default"===t?"":Qw(t)}`,t)),!1===l?n:{[l]:n}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??Wv;function a(n){let o=n;if("function"==typeof n)o=n(r);else if("object"!=typeof n)return n;if(!o)return null;const a=function(e={}){const t=e.keys?.reduce((t,n)=>(t[e.up(n)]={},t),{});return t||{}}(r.breakpoints),s=Object.keys(a);let c=a;return Object.keys(o).forEach(n=>{const i=(a=o[n],s=r,"function"==typeof a?a(s):a);var a,s;if(null!=i)if("object"==typeof i)if(l[n])c=qw(c,e(n,i,r,l));else{const e=Yw({theme:r},i,e=>({[n]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}(e,i)?c=qw(c,e):c[n]=t({sx:i,theme:r,nested:!0})}else c=qw(c,e(n,i,r,l))}),!i&&r.modularCssLayers?{"@layer sx":Zw(r,Jw(s,c))}:Zw(r,Jw(s,c))}return Array.isArray(o)?o.map(a):a(o)}}();function qv(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!=typeof n.getColorSchemeSelector)return{};let o=n.getColorSchemeSelector(e);return"&"===o?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Zv(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,a=_b(n),s=function(e=8,t=dv({spacing:e})){if(e.mui)return e;const n=(...e)=>(0===e.length?[1]:e).map(e=>{const n=t(e);return"number"==typeof n?`${n}px`:n}).join(" ");return n.mui=!0,n}(r);let c=Nb({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:s,shape:{...gv,...i}},l);return c=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,o){n.up=(...n)=>t(e.breakpoints.up(...n),o),n.down=(...n)=>t(e.breakpoints.down(...n),o),n.between=(...n)=>t(e.breakpoints.between(...n),o),n.only=(...n)=>t(e.breakpoints.only(...n),o),n.not=(...n)=>{const r=t(e.breakpoints.not(...n),o);return r.includes("not all and")?r.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):r}}const o={},r=e=>(n(o,e),o);return n(r),{...e,containerQueries:r}}(c),c.applyStyles=qv,c=t.reduce((e,t)=>Nb(e,t),c),c.unstable_sxConfig={...Wv,...l?.unstable_sxConfig},c.unstable_sx=function(e){return Uv({sx:e,theme:this})},c}Uv.filterProps=["sx"];const Gv=(e,t,n,o=[])=>{let r=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(r)?r[Number(e)]=n:r&&"object"==typeof r&&(r[e]=n):r&&"object"==typeof r&&(r[e]||(r[e]=o.includes(e)?[]:{}),r=r[e])})};function Kv(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var a,s;return a=(e,t,a)=>{if(!("string"!=typeof t&&"number"!=typeof t||o&&o(e,t))){const o=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(r,{[o]:s}),Gv(i,e,`var(${o})`,a),Gv(l,e,`var(${o}, ${s})`,a)}},s=e=>"vars"===e[0],function e(t,n=[],o=[]){Object.entries(t).forEach(([t,r])=>{(!s||s&&!s([...n,t]))&&null!=r&&("object"==typeof r&&Object.keys(r).length>0?e(r,[...n,t],Array.isArray(r)?[...o,t]:o):a([...n,t],r,o))})}(e),{css:r,vars:i,varsWithDefaults:l}}function Xv(e){const t={};return Object.entries(e).forEach(e=>{const[n,o]=e;"object"==typeof o&&(t[n]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function Yv(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}const Jv={textTransform:"uppercase"},Qv='"Roboto", "Helvetica", "Arial", sans-serif';function ex(e,t){const{fontFamily:n=Qv,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:s=16,allVariants:c,pxToRem:d,...u}="function"==typeof t?t(e):t,h=o/14,p=d||(e=>e/s*h+"rem"),f=(e,t,o,r,i)=>{return{fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:o,...n===Qv?{letterSpacing:(l=r/t,Math.round(1e5*l)/1e5)+"em"}:{},...i,...c};var l},m={h1:f(r,96,1.167,-1.5),h2:f(r,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(l,14,1.75,.4,Jv),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Nb({htmlFontSize:s,pxToRem:p,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:a,...m},u,{clone:!1})}function tx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const nx=["none",tx(0,2,1,-1,0,1,1,0,0,1,3,0),tx(0,3,1,-2,0,2,2,0,0,1,5,0),tx(0,3,3,-2,0,3,4,0,0,1,8,0),tx(0,2,4,-1,0,4,5,0,0,1,10,0),tx(0,3,5,-1,0,5,8,0,0,1,14,0),tx(0,3,5,-1,0,6,10,0,0,1,18,0),tx(0,4,5,-2,0,7,10,1,0,2,16,1),tx(0,5,5,-3,0,8,10,1,0,3,14,2),tx(0,5,6,-3,0,9,12,1,0,3,16,2),tx(0,6,6,-3,0,10,14,1,0,4,18,3),tx(0,6,7,-4,0,11,15,1,0,4,20,3),tx(0,7,8,-4,0,12,17,2,0,5,22,4),tx(0,7,8,-4,0,13,19,2,0,5,24,4),tx(0,7,9,-4,0,14,21,2,0,5,26,4),tx(0,8,9,-5,0,15,22,2,0,6,28,5),tx(0,8,10,-5,0,16,24,2,0,6,30,5),tx(0,8,11,-5,0,17,26,2,0,6,32,5),tx(0,9,11,-5,0,18,28,2,0,7,34,6),tx(0,9,12,-6,0,19,29,2,0,7,36,6),tx(0,10,13,-6,0,20,31,3,0,8,38,7),tx(0,10,13,-6,0,21,33,3,0,8,40,7),tx(0,10,14,-6,0,22,35,3,0,8,42,7),tx(0,11,14,-7,0,23,36,3,0,9,44,8),tx(0,11,15,-7,0,24,38,3,0,9,46,8)],ox={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},rx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ix(e){return`${Math.round(e)}ms`}function lx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function ax(e){const t={...ox,...e.easing},n={...rx,...e.duration};return{getAutoHeightDuration:lx,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0,...a}=o;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof r?r:ix(r)} ${i} ${"string"==typeof l?l:ix(l)}`).join(",")},...e,easing:t,duration:n}}const sx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function cx(e){return zb(e)||void 0===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||Array.isArray(e)}function dx(e={}){const t={...e};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[r,i]=n[o];!cx(i)||r.startsWith("unstable_")?delete t[r]:zb(i)&&(t[r]={...i},e(t[r]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(t,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function ux(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:a={},shape:s,...c}=e;if(e.vars&&void 0===e.generateThemeVars)throw new Error(kb(20));const d=zw(i),u=Zv(e);let h=Nb(u,{mixins:Yv(u.breakpoints,o),palette:d,shadows:nx.slice(),typography:ex(d,a),transitions:ax(l),zIndex:{...sx}});return h=Nb(h,c),h=t.reduce((e,t)=>Nb(e,t),h),h.unstable_sxConfig={...Wv,...c?.unstable_sxConfig},h.unstable_sx=function(e){return Uv({sx:e,theme:this})},h.toRuntimeSource=dx,h}function hx(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const px=[...Array(25)].map((e,t)=>{if(0===t)return"none";const n=hx(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fx(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function mx(e){return"dark"===e?px:[]}function gx(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const yx=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if("class"===r&&(i=".%s"),"data"===r&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const r={};return(l=e.cssVarPrefix,[...[...Array(25)].map((e,t)=>`--${l?`${l}-`:""}overlays-${t}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(e=>{r[e]=n[e],delete n[e]}),"media"===i?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:r}}:i?{[i.replace("%s",t)]:r,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...r}}}if(i&&"media"!==i)return`${o}, ${i.replace("%s",String(t))}`}else if(t){if("media"===i)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function bx(e,t,n){!e[t]&&n&&(e[t]=n)}function wx(e){return"string"==typeof e&&e.startsWith("hsl")?jb(e):e}function vx(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Bb(wx(e[t])))}const xx=e=>{try{return e()}catch(e){}};function Sx(e,t,n,o){if(!t)return;t=!0===t?{}:t;const r="dark"===o?"dark":"light";if(!n)return void(e[o]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=zw(t);return{palette:i,opacity:{...fx(i.mode),...n},overlays:o||mx(i.mode),...r}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=ux({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...fx(r),...t?.opacity},overlays:t?.overlays||mx(r)},l}function Cx(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=gx,colorSchemeSelector:a=(n.light&&n.dark?"media":void 0),rootSelector:s=":root",...c}=e,d=Object.keys(n)[0],u=o||(n.light&&"light"!==d?"light":d),h=((e="mui")=>mt(e))(i),{[u]:p,light:f,dark:m,...g}=n,y={...g};let b=p;if(("dark"===u&&!("dark"in n)||"light"===u&&!("light"in n))&&(b=!0),!b)throw new Error(kb(21,u));const w=Sx(y,b,c,u);f&&!y.light&&Sx(y,f,void 0,"light"),m&&!y.dark&&Sx(y,m,void 0,"dark");let v={defaultColorScheme:u,...w,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:s,getCssVar:h,colorSchemes:y,font:{...Xv(w.typography),...w.font},spacing:(x=c.spacing,"number"==typeof x?`${x}px`:"string"==typeof x||"function"==typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(v.colorSchemes).forEach(e=>{const t=v.colorSchemes[e].palette,n=e=>{const n=e.split("-"),o=n[1],r=n[2];return h(e,t[o][r])};var o;if("light"===t.mode&&(bx(t.common,"background","#fff"),bx(t.common,"onBackground","#000")),"dark"===t.mode&&(bx(t.common,"background","#000"),bx(t.common,"onBackground","#fff")),o=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(e=>{o[e]||(o[e]={})}),"light"===t.mode){bx(t.Alert,"errorColor",Zb(t.error.light,.6)),bx(t.Alert,"infoColor",Zb(t.info.light,.6)),bx(t.Alert,"successColor",Zb(t.success.light,.6)),bx(t.Alert,"warningColor",Zb(t.warning.light,.6)),bx(t.Alert,"errorFilledBg",n("palette-error-main")),bx(t.Alert,"infoFilledBg",n("palette-info-main")),bx(t.Alert,"successFilledBg",n("palette-success-main")),bx(t.Alert,"warningFilledBg",n("palette-warning-main")),bx(t.Alert,"errorFilledColor",xx(()=>t.getContrastText(t.error.main))),bx(t.Alert,"infoFilledColor",xx(()=>t.getContrastText(t.info.main))),bx(t.Alert,"successFilledColor",xx(()=>t.getContrastText(t.success.main))),bx(t.Alert,"warningFilledColor",xx(()=>t.getContrastText(t.warning.main))),bx(t.Alert,"errorStandardBg",Kb(t.error.light,.9)),bx(t.Alert,"infoStandardBg",Kb(t.info.light,.9)),bx(t.Alert,"successStandardBg",Kb(t.success.light,.9)),bx(t.Alert,"warningStandardBg",Kb(t.warning.light,.9)),bx(t.Alert,"errorIconColor",n("palette-error-main")),bx(t.Alert,"infoIconColor",n("palette-info-main")),bx(t.Alert,"successIconColor",n("palette-success-main")),bx(t.Alert,"warningIconColor",n("palette-warning-main")),bx(t.AppBar,"defaultBg",n("palette-grey-100")),bx(t.Avatar,"defaultBg",n("palette-grey-400")),bx(t.Button,"inheritContainedBg",n("palette-grey-300")),bx(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),bx(t.Chip,"defaultBorder",n("palette-grey-400")),bx(t.Chip,"defaultAvatarColor",n("palette-grey-700")),bx(t.Chip,"defaultIconColor",n("palette-grey-700")),bx(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),bx(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),bx(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),bx(t.LinearProgress,"primaryBg",Kb(t.primary.main,.62)),bx(t.LinearProgress,"secondaryBg",Kb(t.secondary.main,.62)),bx(t.LinearProgress,"errorBg",Kb(t.error.main,.62)),bx(t.LinearProgress,"infoBg",Kb(t.info.main,.62)),bx(t.LinearProgress,"successBg",Kb(t.success.main,.62)),bx(t.LinearProgress,"warningBg",Kb(t.warning.main,.62)),bx(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),bx(t.Slider,"primaryTrack",Kb(t.primary.main,.62)),bx(t.Slider,"secondaryTrack",Kb(t.secondary.main,.62)),bx(t.Slider,"errorTrack",Kb(t.error.main,.62)),bx(t.Slider,"infoTrack",Kb(t.info.main,.62)),bx(t.Slider,"successTrack",Kb(t.success.main,.62)),bx(t.Slider,"warningTrack",Kb(t.warning.main,.62));const e=Xb(t.background.default,.8);bx(t.SnackbarContent,"bg",e),bx(t.SnackbarContent,"color",xx(()=>t.getContrastText(e))),bx(t.SpeedDialAction,"fabHoverBg",Xb(t.background.paper,.15)),bx(t.StepConnector,"border",n("palette-grey-400")),bx(t.StepContent,"border",n("palette-grey-400")),bx(t.Switch,"defaultColor",n("palette-common-white")),bx(t.Switch,"defaultDisabledColor",n("palette-grey-100")),bx(t.Switch,"primaryDisabledColor",Kb(t.primary.main,.62)),bx(t.Switch,"secondaryDisabledColor",Kb(t.secondary.main,.62)),bx(t.Switch,"errorDisabledColor",Kb(t.error.main,.62)),bx(t.Switch,"infoDisabledColor",Kb(t.info.main,.62)),bx(t.Switch,"successDisabledColor",Kb(t.success.main,.62)),bx(t.Switch,"warningDisabledColor",Kb(t.warning.main,.62)),bx(t.TableCell,"border",Kb(Ub(t.divider,1),.88)),bx(t.Tooltip,"bg",Ub(t.grey[700],.92))}if("dark"===t.mode){bx(t.Alert,"errorColor",Kb(t.error.light,.6)),bx(t.Alert,"infoColor",Kb(t.info.light,.6)),bx(t.Alert,"successColor",Kb(t.success.light,.6)),bx(t.Alert,"warningColor",Kb(t.warning.light,.6)),bx(t.Alert,"errorFilledBg",n("palette-error-dark")),bx(t.Alert,"infoFilledBg",n("palette-info-dark")),bx(t.Alert,"successFilledBg",n("palette-success-dark")),bx(t.Alert,"warningFilledBg",n("palette-warning-dark")),bx(t.Alert,"errorFilledColor",xx(()=>t.getContrastText(t.error.dark))),bx(t.Alert,"infoFilledColor",xx(()=>t.getContrastText(t.info.dark))),bx(t.Alert,"successFilledColor",xx(()=>t.getContrastText(t.success.dark))),bx(t.Alert,"warningFilledColor",xx(()=>t.getContrastText(t.warning.dark))),bx(t.Alert,"errorStandardBg",Zb(t.error.light,.9)),bx(t.Alert,"infoStandardBg",Zb(t.info.light,.9)),bx(t.Alert,"successStandardBg",Zb(t.success.light,.9)),bx(t.Alert,"warningStandardBg",Zb(t.warning.light,.9)),bx(t.Alert,"errorIconColor",n("palette-error-main")),bx(t.Alert,"infoIconColor",n("palette-info-main")),bx(t.Alert,"successIconColor",n("palette-success-main")),bx(t.Alert,"warningIconColor",n("palette-warning-main")),bx(t.AppBar,"defaultBg",n("palette-grey-900")),bx(t.AppBar,"darkBg",n("palette-background-paper")),bx(t.AppBar,"darkColor",n("palette-text-primary")),bx(t.Avatar,"defaultBg",n("palette-grey-600")),bx(t.Button,"inheritContainedBg",n("palette-grey-800")),bx(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),bx(t.Chip,"defaultBorder",n("palette-grey-700")),bx(t.Chip,"defaultAvatarColor",n("palette-grey-300")),bx(t.Chip,"defaultIconColor",n("palette-grey-300")),bx(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),bx(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),bx(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),bx(t.LinearProgress,"primaryBg",Zb(t.primary.main,.5)),bx(t.LinearProgress,"secondaryBg",Zb(t.secondary.main,.5)),bx(t.LinearProgress,"errorBg",Zb(t.error.main,.5)),bx(t.LinearProgress,"infoBg",Zb(t.info.main,.5)),bx(t.LinearProgress,"successBg",Zb(t.success.main,.5)),bx(t.LinearProgress,"warningBg",Zb(t.warning.main,.5)),bx(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),bx(t.Slider,"primaryTrack",Zb(t.primary.main,.5)),bx(t.Slider,"secondaryTrack",Zb(t.secondary.main,.5)),bx(t.Slider,"errorTrack",Zb(t.error.main,.5)),bx(t.Slider,"infoTrack",Zb(t.info.main,.5)),bx(t.Slider,"successTrack",Zb(t.success.main,.5)),bx(t.Slider,"warningTrack",Zb(t.warning.main,.5));const e=Xb(t.background.default,.98);bx(t.SnackbarContent,"bg",e),bx(t.SnackbarContent,"color",xx(()=>t.getContrastText(e))),bx(t.SpeedDialAction,"fabHoverBg",Xb(t.background.paper,.15)),bx(t.StepConnector,"border",n("palette-grey-600")),bx(t.StepContent,"border",n("palette-grey-600")),bx(t.Switch,"defaultColor",n("palette-grey-300")),bx(t.Switch,"defaultDisabledColor",n("palette-grey-600")),bx(t.Switch,"primaryDisabledColor",Zb(t.primary.main,.55)),bx(t.Switch,"secondaryDisabledColor",Zb(t.secondary.main,.55)),bx(t.Switch,"errorDisabledColor",Zb(t.error.main,.55)),bx(t.Switch,"infoDisabledColor",Zb(t.info.main,.55)),bx(t.Switch,"successDisabledColor",Zb(t.success.main,.55)),bx(t.Switch,"warningDisabledColor",Zb(t.warning.main,.55)),bx(t.TableCell,"border",Zb(Ub(t.divider,1),.68)),bx(t.Tooltip,"bg",Ub(t.grey[700],.92))}vx(t.background,"default"),vx(t.background,"paper"),vx(t.common,"background"),vx(t.common,"onBackground"),vx(t,"divider"),Object.keys(t).forEach(e=>{const n=t[e];"tonalOffset"!==e&&n&&"object"==typeof n&&(n.main&&bx(t[e],"mainChannel",Bb(wx(n.main))),n.light&&bx(t[e],"lightChannel",Bb(wx(n.light))),n.dark&&bx(t[e],"darkChannel",Bb(wx(n.dark))),n.contrastText&&bx(t[e],"contrastTextChannel",Bb(wx(n.contrastText))),"text"===e&&(vx(t[e],"primary"),vx(t[e],"secondary")),"action"===e&&(n.active&&vx(t[e],"active"),n.selected&&vx(t[e],"selected")))})}),v=t.reduce((e,t)=>Nb(e,t),v);const S={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:yx(v)},{vars:C,generateThemeVars:k,generateStyleSheets:E}=function(e,t={}){const{getSelector:n=g,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:l,defaultColorScheme:a="light",...s}=e,{vars:c,css:d,varsWithDefaults:u}=Kv(s,t);let h=u;const p={},{[a]:f,...m}=i;if(Object.entries(m||{}).forEach(([e,n])=>{const{vars:o,css:r,varsWithDefaults:i}=Kv(n,t);h=Nb(h,i),p[e]={css:r,vars:o}}),f){const{css:e,vars:n,varsWithDefaults:o}=Kv(f,t);h=Nb(h,o),p[a]={css:e,vars:n}}function g(t,n){let o=r;if("class"===r&&(o=".%s"),"data"===r&&(o="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),t){if("media"===o){if(e.defaultColorScheme===t)return":root";const o=i[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${o})`]:{":root":n}}}if(o)return e.defaultColorScheme===t?`:root, ${o.replace("%s",String(t))}`:o.replace("%s",String(t))}return":root"}return{vars:h,generateThemeVars:()=>{let e={...c};return Object.entries(p).forEach(([,{vars:t}])=>{e=Nb(e,t)}),e},generateStyleSheets:()=>{const t=[],r=e.defaultColorScheme||"light";function l(e,n){Object.keys(n).length&&t.push("string"==typeof e?{[e]:{...n}}:e)}l(n(void 0,{...d}),d);const{[r]:a,...s}=p;if(a){const{css:e}=a,t=i[r]?.palette?.mode,s=!o&&t?{colorScheme:t,...e}:{...e};l(n(r,{...s}),s)}return Object.entries(s).forEach(([e,{css:t}])=>{const r=i[e]?.palette?.mode,a=!o&&r?{colorScheme:r,...t}:{...t};l(n(e,{...a}),a)}),t}}}(v,S);return v.vars=C,Object.entries(v.colorSchemes[v.defaultColorScheme]).forEach(([e,t])=>{v[e]=t}),v.generateThemeVars=k,v.generateStyleSheets=E,v.generateSpacing=function(){return gt(c.spacing,dv(this))},v.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(a),v.spacing=v.generateSpacing(),v.shouldSkipGeneratingVar=l,v.unstable_sxConfig={...Wv,...c?.unstable_sxConfig},v.unstable_sx=function(e){return Uv({sx:e,theme:this})},v.toRuntimeSource=dx,v}function kx(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:zw({...!0===n?{}:n.palette,mode:t})})}function Ex(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=(n?void 0:{light:!0}),defaultColorScheme:i=n?.mode,...l}=e,a=i||"light",s=r?.[a],c={...r,...n?{[a]:{..."boolean"!=typeof s&&s,palette:n}}:void 0};if(!1===o){if(!("colorSchemes"in e))return ux(e,...t);let o=n;"palette"in e||c[a]&&(!0!==c[a]?o=c[a].palette:"dark"===a&&(o={mode:"dark"}));const r=ux({...e,palette:o},...t);return r.defaultColorScheme=a,r.colorSchemes=c,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==c.light&&c.light,palette:r.palette},kx(r,"dark",c.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:r.palette},kx(r,"light",c.light)),r}return n||"light"in c||"light"!==a||(c.light=!0),Cx({...l,colorSchemes:c,defaultColorScheme:a,..."boolean"!=typeof o&&o},...t)}const _x=Ex();function Tx(){const e=ft(_x);return e[Eb]||e}function Mx({theme:e,...t}){const n=Eb in e?e[Eb]:void 0;return O(yt,{...t,themeId:n?Eb:void 0,theme:n||e})}const Dx="mui-color-scheme",Rx="light",Ox="dark",Lx="mui-mode",{CssVarsProvider:Ix,useColorScheme:Ax,getInitColorSchemeScript:Px}=bt({themeId:Eb,theme:()=>Ex({cssVariables:!0}),colorSchemeStorageKey:Dx,modeStorageKey:Lx,defaultColorScheme:{light:Rx,dark:Ox},resolveTheme:e=>{const t={...e,typography:ex(e.palette,e.typography)};return t.unstable_sx=function(e){return Uv({sx:e,theme:this})},t}}),zx=Ix;function Fx({theme:e,...t}){const n=A.useMemo(()=>{if("function"==typeof e)return e;const t=Eb in e?e[Eb]:e;return"colorSchemes"in t?null:"vars"in t?e:{...e,vars:null}},[e]);return n?O(Mx,{theme:n,...t}):O(zx,{theme:e,...t})}!function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n\n._sheetxl-grid_h9wwa_7 {\n position: relative;\n box-sizing: border-box;\n user-select: none;\n}\n\n._sheetxl-grid_h9wwa_7 * {\n box-sizing: border-box !important;\n}\n\n._sheetxl-grid_h9wwa_7 *:focus {\n outline: none;\n}\n\n/*\n.sheetxl-grid :global(.view) > * {\n pointer-events: auto;\n}\n*/\n\n._sheetxl-grid_h9wwa_7 .cell-container {\n position: absolute;\n overflow: visible;\n white-space: pre;\n /* overflow: hidden; */\n /* This is supposed to make rendering faster but instead it is making it blurry */\n /* will-change: transform; */\n}\n\n._sheetxl-grid_h9wwa_7 .cell-container > * {\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n position: absolute;\n}\n\n\n._sheetxl-grid_h9wwa_7 .sheetxl-stage {\n contain: strict;\n}\n._sheetxl-grid_h9wwa_7 .sheetxl-stage > * {\n contain: strict;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const Nx="up",Vx="down",Hx="left",Bx="right",$x="tl",jx="t",Wx="l",Ux="c",qx="text/html",Zx="text/plain",Gx="image/png",Kx=Object.freeze({left:0,top:0}),Xx=Object.freeze({left:0,top:0,bottom:0,right:0}),Yx=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Yx,EmptyRect:Xx,EmptyTopLeft:Kx},Symbol.toStringTag,{value:"Module"}));const Jx="column",Qx="row",eS=Object.freeze({colIndex:0,rowIndex:0}),tS=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),nS=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,oS=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,rS=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,iS=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,lS=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,aS=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,sS=(e=Qx,t=!1)=>t?e!==Jx?rS:iS:e!==Jx?oS:nS,cS=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,dS=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,uS=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),hS=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!dS(e[n],t[n]))return!1;return!0},pS=(e,t,n)=>{if(!e&&!t)return null;if(!e)return n?t:{...t};if(!t)return n?e:{...e};const o=Math.min(e.colStart,t.colStart),r=Math.min(e.rowStart,t.rowStart),i=Math.max(e.colEnd,t.colEnd),l=Math.max(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},fS=(e,t)=>{if(!t||0===t.length)return e;const n={...e};for(let e=0;e<t.length;e++){const o=t[e];uS(n,o)&&(n.rowStart=Math.min(n.rowStart,o.rowStart),n.colStart=Math.min(n.colStart,o.colStart),n.rowEnd=Math.max(n.rowEnd,o.rowEnd),n.colEnd=Math.max(n.colEnd,o.colEnd))}return n},mS=[null,null],gS=(e,t,n)=>{if(e[0].value===e[1].value)return t};function yS(e,t=2,n,o=Qx,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===Jx,a=0,s=!1;do{const e=i.sort(sS(l?Qx:Jx));i=[],i.push(e[0]);const t=e.length;let c=0,d=e[0],u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;for(let a=1;a<t;a++){const t=e[a];let m=!1;if(m=l?d&&h===t.rowStart&&f===t.rowEnd&&p+1===t.colStart:d&&u===t.colStart&&p===t.colEnd&&f+1===t.rowStart,m){let e={colStart:u,rowStart:h,colEnd:l?t.colEnd:p,rowEnd:l?f:t.rowEnd};if(void 0!==d.value&&(e.value=d.value),n){const i=r??[null,null];i[0]=d,i[1]=t,e=n(i,e,o)}if(e){i[c]=e,s=!0,d=e,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd;continue}}i[++c]=t,d=t,u=d.colStart,h=d.rowStart,p=d.colEnd,f=d.rowEnd}a++,l=!l,1===a&&(s=!0)}while(a<t&&s&&i.length>1);return i}const bS=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:eS,EmptyRange:tS,cellToRange:(e,t)=>{if(!e)return null;let n=t;return n||(n={...e},delete n.colIndex,delete n.rowIndex),n.colStart=e.colIndex??0,n.rowStart=e.rowIndex??0,n.colEnd=e.colIndex??0,n.rowEnd=e.rowIndex??0,n},columnFirstCellComparator:lS,columnFirstRangeComparator:nS,createCellComparator:(e=Qx,t=!1)=>t?e!==Jx?(e,t)=>e.rowIndex===t.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex:(e,t)=>e.colIndex===t.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex:e!==Jx?aS:lS,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(a,s,c)=>{let d=!0;const u=void 0!==c;if(u){const n=e?e(r,c,t):r===c?c:void 0;void 0===n?d=!1:c=n}if(d&&s===l+1&&a===i)return t?o.rowEnd=s:o.colEnd=s,l=s,void(r=c);o&&n.push(o);const h=t?a:s,p=t?s:a;o={colStart:h,rowStart:p,colEnd:h,rowEnd:p},u&&(o.value=c),i=a,l=s,r=c},done:e=>(o&&(n.push(o),o=null),e?yS(n,3,!0===e?gS:e,t?Jx:Qx,mS):n)}},createRangeComparator:sS,defaultRange:(e,t,n)=>e?n?(n.colStart=e.colStart??t.colStart,n.rowStart=e.rowStart??t.rowStart,n.colEnd=e.colEnd??t.colEnd,n.rowEnd=e.rowEnd??t.rowEnd,n):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:fS,extendRangeToUnionRanges:(e,t)=>{if(!t||0===t.length)return e;let n=e,o=null;for(;!dS(n,o);)o=n,n=fS(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let e=t.length-1;e>=0;e--)if(uS(n,t[e]))return e;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t)return null;if(e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const o=Math.max(e.colStart,t.colStart),r=Math.max(e.rowStart,t.rowStart),i=Math.min(e.colEnd,t.colEnd),l=Math.min(e.rowEnd,t.rowEnd);let a=n;return a?(a.colStart=o,a.rowStart=r,a.colEnd=i,a.rowEnd=l):a={colStart:o,rowStart:r,colEnd:i,rowEnd:l},a},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:cS,isEqualRanges:dS,isEqualRangesArrays:hS,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!cS(e.cell,t.cell)&&hS(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:uS,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||"number"!=typeof e.colStart||e.colStart<0||"number"!=typeof e.colEnd||e.colEnd<e.colStart||"number"!=typeof e.rowStart||e.rowStart<0||"number"!=typeof e.rowEnd||e.rowEnd<e.rowStart),mergeRangedValues:yS,rowFirstCellComparator:aS,rowFirstRangeComparator:oS,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,n=-e.colStart,o)=>o?(o.colStart=e.colStart+n,o.rowStart=e.rowStart+t,o.colEnd=e.colEnd+n,o.rowEnd=e.rowEnd+t,o):{colStart:e.colStart+n,rowStart:e.rowStart+t,colEnd:e.colEnd+n,rowEnd:e.rowEnd+t},unionRanges:pS,unionRangesArrays:(e,t,n)=>{if(!e||0===e.length)return null;if(1===e.length&&!t)return e[0];let o=e[0];for(let t=1;t<e.length;t++)o=pS(o,e[t],n);return t&&(o=pS(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),wS="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function vS(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){const t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===wS}(e)}(e)}function xS(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ES((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function SS(e,t,n){return e.concat(t).map(function(e){return xS(e,n)})}function CS(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function kS(e,t){try{return t in e}catch(e){return!1}}function ES(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||SS,n.isMergeableObject=n.isMergeableObject||vS,n.cloneUnlessOtherwiseSpecified=xS;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(e,t,n){const o={};return n.isMergeableObject(e)&&CS(e).forEach(function(t){o[t]=xS(e[t],n)}),CS(t).forEach(function(r){(function(e,t){return kS(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(kS(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return ES;const n=t.customMerge(e);return"function"==typeof n?n:ES}(r,n)(e[r],t[r],n):o[r]=xS(t[r],n))}),o}(e,t,n):xS(t,n)}ES.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return ES(e,n,t)},{})};const _S=Object.freeze([]),TS=Object.freeze({}),MS=e=>e,DS=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),RS=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((e,n)=>e===t[n]),OS=e=>"object"==typeof e&&!Array.isArray(e)&&null!==e,LS=e=>"object"!=typeof e||Array.isArray(e)||null===e?e:(Object.keys(e).forEach(function(t){e[t]&&"object"==typeof e[t]?LS(e[t]):null!==e[t]&&void 0!==e[t]||delete e[t],"object"==typeof e[t]&&0===Object.keys(e[t]).length&&delete e[t]}),0===Object.keys(e).length?null:e),IS=(e,t)=>!(e!==t&&!RS(e,t)&&!e.isEqual?.(t)),AS=(e,t,n=IS)=>{if(null==e||e===t)return null;if(!e||"object"!=typeof e||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(0===o.length)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];null===AS(e[l],t?.[l],n)&&(r=!0,delete e[l])}return r&&0===Object.keys(e).length?null:void 0},PS="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),zS=e=>null==e,FS=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),NS=!("undefined"==typeof window||!window.document||!window.document.createElement),VS={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},HS=()=>{if(BS())return VS.Node;const e=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?VS.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?VS.MacOS:/(iphone|ipad|ipod)/i.test(e)?VS.IOS:/android/.test(e)?VS.Android:/linux/.test(e)?VS.Linux:/^((?!chrome|android|).)*safari/i.test(e)?VS.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?VS.Firefox:VS.Unknown:VS.Unknown};function BS(){return"undefined"!=typeof process&&"node"===process.release?.name||("undefined"!=typeof process&&process.browser,!1)}const $S=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),jS=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:_S,EmptyObject:TS,OSType:VS,arrayMove:function(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o},asNumber:e=>{const t=(e=>1*e)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>1===e.length?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()}).trim(),canUseDOM:NS,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>null==e||void 0===e?"":"string"!=typeof e?""+e:e,cloneObject:e=>zS(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,n=!1){let o,r,i,l,a=0;function s(){let c=Date.now()-a;c<t&&c>=0?o=setTimeout(s,t-c):(o=null,n||(l=e.apply(i,r),i=r=null))}null==t&&(t=100);const c=function(){i=globalThis,r=arguments,a=Date.now();var c=n&&!o;return o||(o=setTimeout(s,t)),c&&(l=e.apply(i,r),i=r=null),l};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},c},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;let o,r,i;if(Array.isArray(t)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(o=t.length,o!=n.length)return!1;for(r=o;0!==r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!==r--;){let o=i[r];if(!("_owner"===o&&t.$$typeof||e(t[o],n[o])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{"object"!=typeof t[n]||null===t[n]||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:ES,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const r=o[i];e[r]!==t[r]&&(void 0===e[r]?n[r]=t[r]:n[r]=e[r])}return 0===Object.keys(n).length?null:n},findEqualOrGreater:function(e,t,n=MS){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=MS){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),l=n(e[i]);if(l===t)return i;l>t?o=i-1:r=i+1}return o},findNextStep:(e,t=!0,n=15,o=10,r=400)=>{const i=Math.max(e-o,0)+(t?1:-1);return Math.min(r,Math[t?"ceil":"floor"](i/n)*n+o)},getDPI:()=>{let e=1;return"object"==typeof window&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let e=0;e<n.length;e++){const t=n[e];if(!o)return null;let r=o[t];if("function"==typeof r&&(r=r.bind(o)()),!r||!OS(r))return r;o=r}return o??null},getOS:HS,hasFocus:$S,isDefined:e=>!(null==e),isEmpty:e=>null==e||""===e,isEqualArrays:RS,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let o=0;o<n.length;o++)if(e[n[o]]!==t[n[o]])return!1;return!0},isNode:BS,isNullOrUndefined:zS,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&"number"==typeof t},isObject:OS,isPromiseLike:e=>!!e&&"function"==typeof e.then,isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:FS,mergeContentful:(...e)=>{const t=e.length;if(t>0&&void 0!==e[t-1]&&!OS(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=ES(n,e[o]||{},{arrayMerge:(e,t)=>[...t]});return n},nextTick:e=>{"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{e()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!NS)return void n("Unable to open dialog with no dom.");const o=document.createElement("input");o.type="file",o.accept=e;let r=null,i=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{r||i||(i=!0,t(null))},1e3)},{once:!0,passive:!0}),o.onchange=()=>{if(r=o.files[0],r){if(i)return void console.warn("File open detected after faux cancel.",r);t(r)}},o.autofocus=!0,o.click()}),rafThrottle:e=>{let t,n=!1,o=function(){n=!1,e(t)};return function(e){t=e,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:LS,removeEqualValues:AS,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=PS(),o={id:requestAnimationFrame(function r(){PS()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(null==e||!isFinite(e))return null;const n=10**t;return Number(Math.round(e*n)/n)},setToPath:(e,t,n)=>{const o=t.split(".");let r=e;if(!r)throw new Error("Can not set path to a null path.");for(let e=0;r&&e<o.length-1;e++){const t=o[e];let n=r[t];if(null==n&&(n={},r[t]=n),!OS(n))throw new Error("Can not set path to a non object path.");r=n}if("number"!=typeof n&&"boolean"!=typeof n&&"string"!=typeof n&&!OS(n))throw new Error(`Can not set path to ${n} that is not a a supported primitive.`);return r[o[o.length-1]]=n,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let n=0|t,o=t-n,r=0,i=0,l=1;if(o>5e-8)for(;i<8&&Math.abs(r/l-o)>5e-8;)i++,l*=10,r=Math.round(o*l);return{ip:Math.trunc(e),fp:r,ipLength:Math.ceil(Math.log10(n+1)),fpLength:i}},subtractRect:(e,t,n=!1)=>{if(!t)return[e];if(!FS(e,t))return[];const o=[];let r=e;const i=()=>{t.top>r.top&&t.top<r.bottom&&(o.push({...r,bottom:t.top}),r={...r,top:t.top})},l=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},a=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},s=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(s(),a(),i(),l()):(i(),l(),a(),s()),o},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let n=null;return(...o)=>{const r=Date.now();(!n||r-n>=t)&&(n=r,e(...o))}},toSafeJSON:function e(t){if(null===t||"object"!=typeof t)return t;if("function"==typeof t.toJSON)return t.toJSON();if(Array.isArray(t))return t.map(t=>e(t));if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString();const n={};for(const o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o]));return n},transpose:e=>{if(!e)return e;const t=e.length,n=e[0].length,o=[];for(let e=0;e<n;e++)o[e]=Array(t);for(let r=0;r<t;r++)for(let t=0;t<n;t++)o[t][r]=e[r][t];return o},uuidV4:DS,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(n=>{$S(e,t)?n(!0):e.addEventListener("focusin",()=>{n(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const WS=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let e=0;e<n;e++)o+=String.fromCharCode(t[e]);if("undefined"!=typeof window&&"function"==typeof globalThis.btoa)return globalThis.btoa(o);if("undefined"!=typeof Buffer)return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},US=e=>new Promise((t,n)=>{if(e)if("undefined"!=typeof FileReader){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if("undefined"!=typeof Buffer){const o=e=>Buffer.from(e).toString("utf-8");e.arrayBuffer().then(e=>{t(o(e))}).catch(e=>{n(e)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:WS,base64ToArrayBuffer:e=>{const t="undefined"!=typeof window&&"function"==typeof globalThis.atob?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let e=0;e<n;e++)o[e]=t.charCodeAt(e);return o.buffer},blobToString:US},Symbol.toStringTag,{value:"Module"}));const qS="data:image/png;base64,",ZS="Unable to resolve image.",GS=e=>new Promise(async(t,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){t({width:o.naturalWidth,height:o.naturalHeight})},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch(e){o?.src&&URL.revokeObjectURL(o.src)}o||n(ZS)}),KS="image/svg+xml";var XS,YS;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:qS,getImageDataUrl:(e,t=1)=>new Promise(async(n,o)=>{let r=null;try{r=new Image,r.src=e,r.addEventListener("load",function(){try{const e=document.createElement("canvas");e.width=r.naturalWidth,e.height=r.naturalHeight,e.getContext("2d").drawImage(r,0,0);const o=e.toDataURL("image/png",t);n({elemImg:r,dataUrl:o})}catch(t){URL.revokeObjectURL(e),o(t)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch(e){r?.src&&URL.revokeObjectURL(r.src)}r||o(ZS)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const o=t??"image/*",r=URL.createObjectURL(new Blob([e],{type:o})),i=await GS(r);n={mimeType:o,naturalDimensions:i,asUrl:r}}catch(e){}},r=async()=>{try{const o=(new TextDecoder).decode(e),r=URL.createObjectURL(new Blob([o],{type:KS})),i=await GS(r);n={mimeType:t??KS,naturalDimensions:i,asUrl:r,asSVGText:o}}catch(e){}};if(t===KS?await r():t.startsWith("image/")?await o():(await o(),n||await r()),!n)throw new Error("Failed to load image");return n}},Symbol.toStringTag,{value:"Module"})),(YS=XS||(XS={})).resolveTypedUpdates=(e,t,n,o)=>{if(null===e)return e;if(void 0===e)return o;let r=e;if(t?.shorthand){const o=t?.shorthand(e,n);void 0!==o&&(r=o)}if(null!==r&&t?.getSubType){const e=t.getSubType(r);e&&(t=e)}const i=t?.properties,l=t?.arrayType??!1;let a=r;if(t&&t.merge&&a&&o)a=t.merge(a,o,n);else if(l);else if(i){const e=Object.keys({...r,...o});a=null;for(let t=0;t<e.length;t++){const l=e[t];let s,c=r[l];if(void 0!==c){const e=i[l];s=e?(0,YS.resolveTypedUpdates)(c,e,n,o?.[l]):c}else s=o?.[l];null!=s&&(a=a??{},a[l]=s)}}return a};const JS="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",QS="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",eC={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:QS,PermsWrite:HS()===VS.Safari?JS:QS,PermsRead:HS()===VS.Safari?JS:QS},tC=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),nC=async(e,t,n)=>{if(HS()===VS.Safari)return await n(new Error(eC.Safari));try{const o=async e=>{try{return await e()}catch(e){if(e.message?.includes("Document is not focused"))return!1;throw e}},r=await(globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let i=!1;if("prompt"===r.state&&(i=await o(t)),i||"granted"!==r.state||(i=await t()),!i)return await n(new Error(r.state))}catch(e){if("No valid data on clipboard"===e.message||"DataError"===e.name)return;return await n(e)}},oC=async e=>{try{return await e.read({unsanitized:[qx]})}catch(e){}return await e.read()};if(!globalThis.ClipboardItem){const e=(e,t)=>new Blob([t],{type:e});class t{constructor(t,n){this._items={},this._types=Object.keys(t);const o={},r=Object.keys(t);for(let n=0;n<r.length;n++){const i=r[n];let l=t[i];o[i]="string"==typeof l?e(i,l):l}this._items=o,this._presentationStyle=n?.presentationStyle??"unspecified"}get types(){return this._types}getType(e){return Promise.resolve(this._items[e])}supports(e){return!0}}globalThis.ClipboardItem=t}const rC=async(e,t=qx)=>new Promise(async(n,o)=>{try{const o=await(async(e,t)=>{if(!e)return null;const n=await oC(e);let o=!1;for(let e=0;!o&&n&&e<n.length;e++)if(o=n[e].types.includes(t),o)return await n[e].getType(t);return o?void 0:null})(e,t);if(o){const e=new FileReader;e.onload=()=>{n(e.result)},e.onerror=()=>{n("")},e.readAsText(o)}else n("")}catch(e){o(e)}}),iC=async(e,t=qx)=>{const n=await rC(e,t);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,qx)}catch(e){console.warn("Can't parse html from clipboard.")}return o},lC="clipboard-uuid",aC="web text/uuid",sC=e=>`<div style="display:none" ${lC}="${e}"/>`,cC=(e,t)=>{let n=null;try{const o=(new DOMParser).parseFromString(t,qx);o.body.firstElementChild.setAttribute(lC,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(e){console.warn("Can't embed uuid.",e)}return n},dC=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${lC}="${e}"]`);if(n&&1===n.length)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch(e){return!1}};let uC=class{constructor(e){if(void 0===e?.nativeClipboard||!0===e?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch(t){!0===e?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===e?.nativeClipboard?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await nC("clipboard-read",async()=>{await tC();const e=await rC(this._nativeClipboard,aC);if(!this._state)return!0;if(e&&e===this._state.uuid)return!0;const t=await iC(this._nativeClipboard,qx);return!this._state||(dC(this._state.uuid,t)||this.clear(),!0)},async e=>{"denied"===e?.message||e.message?.includes("Document is not focused")||HS()===VS.Safari||console.warn("Unable to detect clipboard changes: ",e)})}_init(){const e=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{e._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",e._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",t=>{e._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await nC("clipboard-read",async()=>{if(await tC(),this._state?.uuid){const t=await rC(this._nativeClipboard,aC);if(t&&t===e._state.uuid)return!0;const n=await iC(this._nativeClipboard,qx);if(dC(e._state?.uuid,n))return!0}return e._state={items:await oC(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:DS(),items:e,ref:null})}async _write(e){if(!this._nativeClipboard)return this._state=e,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const t=this,n=[],o=e.uuid;let r=e.items??[];const i=()=>{t._state={uuid:o,ref:e.ref,items:n},t.dispatchEvent(new Event("clipboardwrite")),t.dispatchEvent(new Event("clipboardchange"))};await nC("clipboard-write",async()=>{await tC(),o&&0===r.length&&(r.push(new ClipboardItem({[aC]:new Blob([o],{type:aC})})),r.push(new ClipboardItem({[qx]:new Blob([sC(o)],{type:qx})})));for(let e=0;e<Math.min(1,r.length);e++){const t=r[e];let i=t.types.indexOf(qx),l=null;if(-1!==i){const e=await t.getType(qx);l=await US(e),l&&(l=cC(o,l))}if(!l&&t.types.includes(Zx)){const e=await t.getType(Zx);if(e){let t=null;"string"==typeof e?(console.warn("text as string",e),t=e):t=await US(e),t&&(l=`<div ${lC}="${o}">${t}</div>`)}}if(!l&&t.types.includes(Gx)){const e=await t.getType(Gx),n=WS(await e.arrayBuffer());l=`<div ${lC}="${o}"><img src="${qS+n}"/></div>`}!l&&o&&(l=sC(o));const a=new Blob([l??""],{type:qx}),s={};for(let e=0;e<t.types.length;e++){const n=t.types[e];s[n]=e===i?a:t.getType(n)}l&&-1===i&&(s[qx]=a),o&&(s[aC]=new Blob([o],{type:aC})),n.push(new ClipboardItem(s))}try{n&&0!==n.length?await this._nativeClipboard.write(n):await(async e=>{e&&await e.writeText("")})(this._nativeClipboard)}catch(e){e.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",e)}return i(),!0},async e=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const t=await(e.toText?.())??null;t&&(n[Zx]=new Blob([t??""],{type:Zx}))}catch(e){t=e}try{const t=await(e.toHtml?.())??null;t&&(n[qx]=new Blob([t],{type:qx}))}catch(e){t=e,console.warn("export to html",e)}try{const t=await(e.toImage?.())??null;t&&(n[Gx]=t)}catch(e){t=e,console.warn("export to png",e)}const o=this._write({uuid:DS(),ref:e,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(t)throw t;return o}clear(e=!1){this._state&&(this._state=null,e&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(e,t)=>{const n=await this.read();let o=null;for(let e=0;!o&&n&&e<n.length;e++)n[e].types.includes(Zx)&&(o=await n[e].getType(Zx));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=e=>{t(e)}})}async writeText(e){const t=[new ClipboardItem({[Zx]:new Blob([e],{type:Zx})})];return this._write({uuid:DS(),items:t,ref:null})}addEventListener(e,t,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let r=o.get(e);r||(r=new Map,o.set(e,r)),r.set(t,"boolean"==typeof n?{}:n)}dispatchEvent(e){if(!e)return;const t=t=>{const n=t.get(e.type);n&&n.forEach((t,o)=>{try{"function"==typeof o?o(e):o.handleEvent&&o.handleEvent(e),t.once&&n.delete(o)}catch(e){console.warn(e)}})};return t(this._listenersCapture),t(this._listeners),!0}removeEventListener(e,t,n){const o=n?.capture?this._listenersCapture:this._listeners,r=o.get(e);r&&(r.delete(t),0===r.size&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var hC;(hC=uC||(uC={})).ErrorMessages=eC,hC.Global=new hC,function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode("/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n Note - this isn't working but was meant to enabled default scroll buttons to play nicely with rounded corners\n */\n/* & ::-webkit-scrollbar {\n background: gre;\n } */\n._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button {\n background: transparent;\n }/**\n * Used for fullscreen portals.\n */\n._fullscreen-portal-root_1mjsr_4 {\n pointer-events: none;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n z-index: 1200;\n}\n\n._fullscreen-portal-root_1mjsr_4 > * {\n pointer-events: auto;\n}")),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const pC={Left:"left",Right:"right",Center:"center"},fC="shift",mC="alt",gC="ctrl",yC={Horizontal:"horizontal",Vertical:"vertical"};function bC(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=bC(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function wC(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=bC(e))&&(o&&(o+=" "),o+=t);return o}var vC=function(){},xC="undefined"!=typeof window,SC=xC?U:V,CC={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const kC=xC&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(CC),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return SC(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[vC,CC]},EC=(e,t)=>{const n=H((...t)=>e?.(...t),t),o=F(null);o.current=n;const r=H((...e)=>o.current?.(...e),[]);if(o.current)return r},_C=e=>{const{style:t,orientation:n=yC.Vertical,...o}=e,r=n===yC.Vertical;return O("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"m 3.7274761,0.68060577 1.11969,1.93863003 1.12075,1.93912 c 0.0895,0.155 0.12152,0.33658 0.0904,0.51283 -0.0311,0.17625 -0.12336,0.33591 -0.26054,0.45091 -0.13715,0.11495 -0.31044,0.17793 -0.4894,0.17781 H 0.83095614 c -0.20186,0 -0.39542,-0.0802 -0.53814,-0.2229 -0.14272,-0.14272 -0.22291,-0.33629 -0.22291,-0.53814 -3e-4,-0.13308 0.0347,-0.26385 0.10147,-0.379 l 1.11872996,-1.94066 1.11921,-1.93864003 c 0.13594,-0.23541 0.38717,-0.38047 0.65905,-0.38047 0.27188,0 0.52311,0.14506 0.65905,0.38047 z":"m 0.75051,2.3424298 1.93863,-1.11969 1.93912,-1.12075 c 0.155,-0.0895 0.33658,-0.12152 0.51283,-0.0904 0.17625,0.0311 0.33591,0.12336 0.45091,0.26054 0.11495,0.13715 0.17793,0.31044 0.17781,0.4894 v 4.47742 c 0,0.20186 -0.0802,0.39542 -0.2229,0.53814 -0.14272,0.14272 -0.33629,0.22291 -0.53814,0.22291 -0.13308,3e-4 -0.26385,-0.0347 -0.379,-0.10147 L 2.68911,4.7797998 0.75047,3.6605898 C 0.51506,3.5246498 0.37,3.2734198 0.37,3.0015398 c 0,-0.27188 0.14506,-0.52311 0.38047,-0.65905 z"})})})})},TC=e=>{const{style:t,orientation:n=yC.Vertical,...o}=e,r=n===yC.Vertical;return O("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:O("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:O("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:O("path",{d:r?"M 2.412334,5.319396 1.292644,3.3807659 0.17189405,1.4416459 c -0.0895,-0.155 -0.12152,-0.33658 -0.0904,-0.51282998 0.0311,-0.17625 0.12336,-0.33591 0.26054,-0.45091 0.13715,-0.11495 0.31044,-0.17793 0.4894,-0.17781 H 5.308854 c 0.20186,0 0.39542,0.0802 0.53814,0.2229 0.14272,0.14272 0.22291,0.33629 0.22291,0.53813998 3e-4,0.13308 -0.0347,0.26385 -0.10147,0.379 l -1.11873,1.94066 -1.11921,1.9386401 c -0.13594,0.23541 -0.38717,0.38047 -0.65905,0.38047 -0.27188,0 -0.52311,-0.14506 -0.65905,-0.38047 z":"m 5.3893002,3.6575719 -1.9386301,1.11969 -1.93912,1.12075 c -0.155,0.0895 -0.33658,0.12152 -0.51282997,0.0904 -0.17625,-0.0311 -0.33591,-0.12336 -0.45091,-0.26054 -0.11495,-0.13715 -0.17793,-0.31044 -0.17781,-0.4894 V 0.76105195 c 0,-0.20186 0.0802,-0.39542 0.2229,-0.53814 C 0.73562013,0.08019195 0.92919013,1.9467784e-6 1.1310401,1.9467784e-6 1.2641201,-2.9805322e-4 1.3948901,0.03470195 1.5100401,0.10147195 l 1.94066,1.11872995 1.9386401,1.11921 c 0.23541,0.13594 0.38047,0.38717 0.38047,0.65905 0,0.27188 -0.14506,0.52311 -0.38047,0.65905 z"})})})})},MC=(e,t,n,o,r=0)=>{for(let r=0;r<n.length;r++){const i=n[r].getBoundingClientRect();let l=i.left-t,a=l+i.width;if(o){if(l<e&&a>=e)return l}else if(Math.ceil(a)>Math.ceil(e)+2)return a}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:MC},Symbol.toStringTag,{value:"Module"}));const DC=z(j((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:a=yC.Vertical,onScrollOffset:s,onScroll:c,showCustomScrollButtons:d=!1,scrollButtonIncrement:u=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:p=120,createScrollStartButton:f=_C,createScrollEndButton:m=TC,...g}=e,y=EC(c,[c]),b=F(null),[w,{width:v,height:x}]=kC(),[S,{width:C,height:k}]=kC(),E=a===yC.Vertical,_=E?"top":"left",T=E?"scrollTop":"scrollLeft",M=E?x:v,D=E?k:C,[R,I]=N(null);V(()=>{null!==R&&b.current&&b.current.scrollTo({behavior:"smooth",[_]:R})},[R,E]);const A=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=t?0:MC(e,o[_],r,!0,Math.max(0,e-u));return I(i),Math.max(0,i)},[]),P=H((e,t=!1)=>{if(!b.current)return 0;const n=b.current.querySelector(".scrollbar-viewport"),o=n.getBoundingClientRect(),r=n.children,i=Math.ceil(D-M),l=t?i:MC(e,o[_],r,!1,Math.max(0,e+u));return I(l),Math.min(i,l)},[D,M]),z=F(null),B=H(e=>{z.current=n;const t=e.target[T];s(t,r,o),y?.(e)},[s,r,o,n]);V(()=>{const e=z.current;z.current=null,n!==e&&(b.current[T]=n)},[n,T]);const j=F(null),W=F(null),U=H(()=>{j.current&&(clearTimeout(j.current),j.current=null,W.current=null)},[]),q=H((e,t,n,o=h)=>{W.current=e,j.current=setTimeout(()=>{const t=n?A(W.current||e):P(W.current||e);t!==W.current?q(t,!1,n,p):U()},t?0:o)},[A,P,U]);V(()=>()=>U(),[U]);const Z=n,G=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(Z)<=0||0===Math.floor(D-M),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!0)};return f?.(e)},[d,a,Z,R,D,M]),K=$(()=>{if(!d)return null;const e={orientation:a,disabled:Math.floor(D-M)<=Math.ceil(Z),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>q(Z,!0,!1)};return m?.(e)},[d,a,Z,R,D,M]);return L("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:E?"column":"row",padding:"0",...i},className:wC("_sheetxl-scrollbar_eblx4_6",l),...g,children:[G,O("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:E?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:O("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:E?"scroll":"hidden",overflowX:E?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:B,ref:b,children:O("div",{ref:S,style:{position:"absolute",height:E?o-r+(x??0):1,width:E?1:o-r+(v??0)},className:"scrollbar-viewport"})})}),K]})}));DC.displayName="Scrollbar";let RC=Date.now,OC={},LC=1;const IC=e=>{let t=null!==OC[e];return t&&(OC[e]=null),t},AC=(e,t,n,o=0,r)=>{let i=RC(),l=i,a=0,s=0,c=0,d=LC++;if(d%20==0){const e={};for(let t in OC)e[t]=!0;OC=e}const u=function(h){let p=!0!==h,f=RC(),m=!0;try{m=(!t||t(d))??!0}catch(e){m=!1}if(!OC[d]||!m)return OC[d]=null,void n?.(60-s/((f-i)/1e3),d,!1);if(p){c=Math.round((f-l)/16.666666666666668)-1;for(let e=0;e<Math.min(c,4);e++)u(!0),s++}o&&(a=(f-i)/o,a>1&&(a=1));let g=r?r(a):a,y=!1;try{y=e(g,f,p)}catch(e){y=!1}!1!==y&&1!==a||!p?p&&(l=f,requestAnimationFrame(u)):(OC[d]=null,n?.(60-s/((f-i)/1e3),d,1===a||null==o))};return OC[d]=!0,requestAnimationFrame(u),d},PC=function(e){return Math.pow(e-1,3)+1},zC=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let FC=class{constructor(e,t){this.__isSingleTouch=!1,this.__isTracking=!1,this.__didDecelerationComplete=!1,this.__isGesturing=!1,this.__isDragging=!1,this.__isDecelerating=0,this.__isAnimating=0,this.__interruptedAnimation=!1,this.__lastScale=1,this.__enableScrollX=!0,this.__enableScrollY=!0,this.__clientLeft=0,this.__clientTop=0,this.__clientWidth=0,this.__clientHeight=0,this.__contentWidth=0,this.__contentHeight=0,this.__snapWidth=100,this.__snapHeight=100,this.__zoomLevel=1,this.__scrollLeft=0,this.__scrollTop=0,this.__maxScrollLeft=0,this.__maxScrollTop=0,this.__scheduledLeft=0,this.__scheduledTop=0,this.__scheduledZoom=0,this.__lastTouchLeft=0,this.__lastTouchTop=0,this.__lastTouchMove=0,this.__positions=[],this.__initialTouchLeft=0,this.__initialTouchTop=0,this.__zoomLevelStart=1,this.__minDecelerationScrollLeft=null,this.__minDecelerationScrollTop=null,this.__maxDecelerationScrollLeft=null,this.__maxDecelerationScrollTop=null,this.__decelerationVelocityX=null,this.__decelerationVelocityY=0,this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:void 0,penetrationDeceleration:.03,penetrationAcceleration:.08,...t}}setDimensions(e,t,n,o){null!==e&&(this.__clientWidth=e),null!==t&&(this.__clientHeight=t),null!==n&&(this.__contentWidth=n),null!==o&&(this.__contentHeight=o),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(e,t){this.__clientLeft=e||0,this.__clientTop=t||0}setSnapSize(e,t){this.__snapWidth=e,this.__snapHeight=t}getValues(){return{left:this.__scrollLeft,top:this.__scrollTop,right:this.__scrollLeft+this.__clientWidth/this.__zoomLevel,bottom:this.__scrollTop+this.__clientHeight/this.__zoomLevel,zoom:this.__zoomLevel}}getPoint(e,t){const n=this.getValues();return{left:e/n.zoom,top:t/n.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(e,t=!1,n,o,r){if(!this.options.zooming)throw new Error("Zooming is not enabled!");r&&(this.__zoomComplete=r),this.__isDecelerating&&(IC(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;void 0===n&&(n=this.__clientWidth/2),void 0===o&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let a=l*(this.__scrollLeft+n)-n,s=l*(this.__scrollTop+o)-o;a>this.__maxScrollLeft?a=this.__maxScrollLeft:a<0&&(a=0),s>this.__maxScrollTop?s=this.__maxScrollTop:s<0&&(s=0),this.__publish(a,s,e,t)}zoomBy(e,t=!1,n=0,o=0,r){this.zoomTo(this.__zoomLevel*e,t,n,o,r)}scrollTo(e,t,n=!1,o=1){if(this.__isDecelerating&&(IC(this.__isDecelerating),this.__isDecelerating=0),void 0!==o&&o!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");e*=o,t*=o,this.__computeScrollMax(o)}else o=this.__zoomLevel;this.options.scrollingX?this.options.paging?e=Math.round(e/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(e=Math.round(e/this.__snapWidth)*this.__snapWidth):e=this.__scrollLeft,this.options.scrollingY?this.options.paging?t=Math.round(t/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(t=Math.round(t/this.__snapHeight)*this.__snapHeight):t=this.__scrollTop,e=Math.max(Math.min(this.__maxScrollLeft,e),0),t=Math.max(Math.min(this.__maxScrollTop,t),0),e===this.__scrollLeft&&t===this.__scrollTop&&(n=!1),this.__publish(e,t,o,n)}scrollBy(e=0,t=0,n=!1){const o=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,r=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(o+(e||0),r+(t||0),n)}doMouseZoom(e,t,n,o){const r=e>0?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,n-this.__clientLeft,o-this.__clientTop)}doTouchStart(e,t){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(IC(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(IC(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=1===e.length;r?(n=e[0].pageX,o=e[0].pageY):(n=Math.abs(e[0].pageX+e[1].pageX)/2,o=Math.abs(e[0].pageY+e[1].pageY)/2),this.__initialTouchLeft=n,this.__initialTouchTop=o,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=n,this.__lastTouchTop=o,this.__lastTouchMove=t,this.__lastScale=1,this.__enableScrollX=!r&&this.options.scrollingX,this.__enableScrollY=!r&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!r,this.__isSingleTouch=r,this.__positions=[]}doTouchMove(e,t,n=1){if(void 0===e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;2===e.length?(o=Math.abs(e[0].pageX+e[1].pageX)/2,r=Math.abs(e[0].pageY+e[1].pageY)/2):(o=e[0].pageX,r=e[0].pageY);let i=this.__positions;if(this.__isDragging){let e=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,a=this.__scrollLeft,s=this.__scrollTop,c=this.__zoomLevel;if(void 0!==n&&this.options.zooming){let e=c;if(c=c/this.__lastScale*n,c=Math.max(Math.min(c,this.options.maxZoom),this.options.minZoom),e!==c){let t=o-this.__clientLeft,n=r-this.__clientTop;a=(t+a)*c/e-t,s=(n+s)*c/e-n,this.__computeScrollMax(c)}}if(this.__enableScrollX){a-=e*this.options.speedMultiplier;let t=this.__maxScrollLeft;(a>t||a<0)&&(this.options.bouncing?a+=e/2*this.options.speedMultiplier:a=a>t?t:0)}if(this.__enableScrollY){s-=l*this.options.speedMultiplier;const e=this.__maxScrollTop;(s>e||s<0)&&(this.options.bouncing?s+=l/2*this.options.speedMultiplier:s=s>e?e:0)}i.length>60&&i.splice(0,30),i.push(a,s,t),this.__publish(a,s,c)}else{let e=this.options.locking?3:0,n=5,l=Math.abs(o-this.__initialTouchLeft),a=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&l>=e,this.__enableScrollY=this.options.scrollingY&&a>=e,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(l>=n||a>=n),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=t,this.__lastScale=n}doTouchEnd(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&e-this.__lastTouchMove<=100){let t=this.__positions,n=t.length-1,o=n;for(let e=n;e>0&&t[e]>this.__lastTouchMove-100;e-=3)o=e;if(o!==n){const r=t[n]-t[o],i=this.__scrollLeft-t[o-2],l=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=l/r*(1e3/60);const a=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>a||Math.abs(this.__decelerationVelocityY)>a)&&this.__startDeceleration(e)}else this.options.scrollingComplete?.()}else e-this.__lastTouchMove>100&&this.options.scrollingComplete?.();this.__isDecelerating||((this.__interruptedAnimation||this.__isDragging)&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel)),this.__positions.length=0}}__publish(e,t,n,o=!1){const r=this.__isAnimating;if(r&&(IC(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const o=this.__scrollLeft,i=this.__scrollTop,l=this.__zoomLevel,a=e-o,s=t-i,c=n-l,d=function(e,t,n){n&&(this.__scrollLeft=o+a*e,this.__scrollTop=i+s*e,this.__zoomLevel=l+c*e,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),u=function(e){return this.__isAnimating===e}.bind(this),h=function(e,t,n){t===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||n)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=AC(d,u,h,this.options.animationDuration,r?PC:zC)}else this.__scheduledLeft=this.__scrollLeft=e,this.__scheduledTop=this.__scrollTop=t,this.__scheduledZoom=this.__zoomLevel=n,this.__callback&&this.__callback(e,t,n),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(e=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*e-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*e-this.__clientHeight,0)}__startDeceleration(e){if(this.options.paging){const e=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),t=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),n=this.__clientWidth,o=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(e/n)*n,this.__minDecelerationScrollTop=Math.floor(t/o)*o,this.__maxDecelerationScrollLeft=Math.ceil(e/n)*n,this.__maxDecelerationScrollTop=Math.ceil(t/o)*o}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(e,t,n){this.__stepThroughDeceleration(n)}.bind(this),n=this.options.snapping?4:.1,o=function(){const e=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return e||(this.__didDecelerationComplete=!0),e}.bind(this),r=function(e,t,n){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=AC(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const e=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);e!==t&&(t=e,this.__decelerationVelocityX=0);const o=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);o!==n&&(n=o,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging){const e=.95;this.__decelerationVelocityX*=e,this.__decelerationVelocityY*=e}if(this.options.bouncing){let e=0,o=0,r=this.options.penetrationDeceleration,i=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?e=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(e=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?o=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(o=this.__maxDecelerationScrollTop-n),0!==e&&(e*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=e*r:this.__decelerationVelocityX=e*i),0!==o&&(o*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=o*r:this.__decelerationVelocityY=o*i)}}};var NC="undefined"!=typeof window?window:{screen:{},navigator:{}},VC=(NC.matchMedia||function(){return{matches:!1}}).bind(NC),HC=!1,BC={get passive(){return HC=!0}},$C=function(){};NC.addEventListener&&NC.addEventListener("p",$C,BC),NC.removeEventListener&&NC.removeEventListener("p",$C,!1);var jC=HC,WC="PointerEvent"in NC,UC="ontouchstart"in NC,qC=UC||"TouchEvent"in NC&&VC("(any-pointer: coarse)").matches,ZC=(NC.navigator.maxTouchPoints||0)>0||qC,GC=NC.navigator.userAgent||"",KC=VC("(pointer: coarse)").matches&&/iPad|Macintosh/.test(GC)&&Math.min(NC.screen.width||0,NC.screen.height||0)>=768,XC=(VC("(pointer: coarse)").matches||!VC("(pointer: fine)").matches&&UC)&&!/Windows.*Firefox/.test(GC),YC=VC("(any-pointer: fine)").matches||VC("(any-hover: hover)").matches||KC||!UC,JC=!ZC||!YC&&XC?ZC?"touchOnly":"mouseOnly":"hybrid",QC="mouseOnly"===JC?"mouse":"touchOnly"===JC||XC?"touch":"mouse";const ek=Object.freeze(Object.defineProperty({__proto__:null,deviceType:JC,primaryInput:QC,supportsPassiveEvents:jC,supportsPointerEvents:WC,supportsTouchEvents:qC},Symbol.toStringTag,{value:"Module"})),tk=new Set(["INPUT","TEXTAREA","SELECT"]),nk={};function ok(){return ek}const rk=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:nk,boundPixel:function(e,t=!1,n=0){return e},createSyntheticEvent:e=>{let t=!1,n=!1;return{nativeEvent:e,currentTarget:e.currentTarget,target:e.target,bubbles:e.bubbles,cancelable:e.cancelable,defaultPrevented:e.defaultPrevented,eventPhase:e.eventPhase,isTrusted:e.isTrusted,preventDefault:()=>{t=!0,e.preventDefault()},isDefaultPrevented:()=>t,stopPropagation:()=>{n=!0,e.stopPropagation()},isPropagationStopped:()=>n,persist:()=>{},timeStamp:e.timeStamp,type:e.type}},detectIt:ok,focusableNodeNames:tk,toPrettyKeyCode:e=>"BracketLeft"===e?"[":"BracketRight"===e?"]":jS.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),ik=[];function lk(e,t,n=ik){const o=F(null);return W(e,()=>{if(!o.current)return;const e=o.current,n=t?.();if(!n||"object"!=typeof n)throw new Error("attributes must return a plain object of values");const r=Object.keys(n),i=r.length;for(let t=0;t<i;t++){const o=r[t],i=n[o];Object.defineProperty(e,o,{value:i,writable:!0,configurable:!0,enumerable:!0})}return e},n),o}const ak=e=>O(DC,{...e}),sk=({width:e,height:t})=>O("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),ck=z(j((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:a=sk,createHorizontalScrollbar:s=ak,createVerticalScrollbar:c=ak,style:d,touchElement:u,disableTouch:h,...p}=e,f=EC(r,[r]),m=lk(t,()=>({isScrollPane:()=>!0}),[]),g=F(null);V(()=>{g.current&&(g.current.__scrollTop===o?.top&&g.current.__scrollLeft===o?.left||g.current.__isDecelerating||g.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,u]);const y=H((e,t)=>{f?.({left:e,top:t})},[]),b=H(e=>{g.current?.doTouchStart(e.touches,e.timeStamp)},[]),w=H(e=>{e.preventDefault(),g.current?.doTouchMove(e.touches,e.timeStamp)},[]),v=H(e=>{g.current?.doTouchEnd(e.timeStamp)},[]),x=H(({containerWidth:e,containerHeight:t,totalWidth:n,totalHeight:o})=>{g.current.setDimensions(e,t,n,o)},[]);V(()=>{const e=u??m.current;if(!h&&ok().supportsTouchEvents&&e&&o){if(!g.current){const e={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};g.current=new FC(y,e)}ok().supportsTouchEvents&&(e.addEventListener("touchstart",b),e.addEventListener("touchend",v),e.addEventListener("touchmove",w)),x({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{e?.removeEventListener("touchstart",b),e?.removeEventListener("touchend",v),e?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,u]);const[S,{width:C}]=kC(),[k,{height:E}]=kC(),_=$(()=>{const e=c({orientation:yC.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:e=>{f?.({top:e})}});return O("div",{style:{display:"flex",flex:"0"},ref:S,children:e})},[c,o?.top,o?.height,o?.totalHeight]),T=$(()=>{const e=s({orientation:yC.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:e=>f?.({left:e})});return L("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${C}px)`},children:O("div",{ref:k,className:"sizer",children:e})}),l?a({width:C,height:E}):O(I,{})]})},[s,o?.left,o?.width,o?.totalWidth,l,a,C,E]);return O("div",{style:{position:"relative",display:"flex",minWidth:l?`${C}px`:void 0,minHeight:i?`${E}px`:void 0,...d},...p,ref:m,children:L("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[L("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[O("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?_:O(I,{})]}),i?T:O(I,{})]})})}));ck.displayName="ScrollPane";const dk=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let uk=0;function hk(){return V(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return uk++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),uk--,uk<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),uk=0)}},[]),{getPortalContainer:dk}}const pk=100,fk=100,mk=1e6,gk=100,yk=50,bk=z(j((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=pk,endScrollIncrement:a=fk,style:s=nk,onMouseDown:c,onScrollOffset:d,onScroll:u,scaleLimit:h=mk,scaleFactor:p=gk,precisionFactor:f=yk,...m}=e;u&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const g=EC(c,[c]),y=()=>({offset:n,totalSize:0===h?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,w]=N(y),v=0!==h&&b.totalSize>h?p:1,x=v/f,S=Math.ceil(b.totalSize/v),C=Math.ceil(b.offset/v),k=Math.ceil(o/v),E=H(e=>{},[]),[_,T]=N(!1),M=F(null);U(()=>{if(!_){M.current={propTotalSize:r,propViewportSize:o,propOffset:n};const e=y();w(e)}},[r,o,n,_,i,l,a]);const D=EC((e,t,i)=>{const l=M.current;M.current=null,l&&l.propTotalSize===r&&l.propViewportSize===o&&l.propOffset===n||(Math.abs(e-C)<x&&(e=C),d?.(e*v,C,k))},[d,v,x,C,k]),R=H(e=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",R),T(!1)},[]),L=H(e=>{g?.(e),T(!0),document.addEventListener("mousemove",E,{passive:!0}),document.addEventListener("mouseup",R,{passive:!0})},[E,R]);return O(DC,{ref:t,style:{...s},...m,offset:C,totalSize:S,viewportSize:k,onMouseDown:L,onScrollOffset:D})}));function wk(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}bk.displayName="VirtualScrollbar";var vk=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=wk(o,t),r="function"==typeof e;n.push(r?e:()=>wk(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)wk(n,t)}};z(j((e,t)=>{const{refFocusStart:n,...o}=e,r=F(null),i=H(()=>{if(n)return void n?.current?.focus();const e=r.current.parentElement.children;let t=[];for(let n=0;n<e.length&&e[n]!==r.current;n++){const o=e[n].getAttribute("tabindex");if(null==o||"-1"===o)continue;if("true"===e[n].getAttribute("disabled"))continue;const r=e[n];r.focus&&t.push({tabindex:parseInt(o),child:r})}0!==t.length&&(t.sort(function(e,t){return e.tabindex-t.tabindex}),t[0].child.focus())},[n]);return O("div",{tabIndex:0,ref:vk([r,t]),onFocus:i,...o})})),z(j((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:a="grey",...s}=e,[c,{width:d,height:u}]=kC(),h=F(null),p=(e,t=0)=>{const n=e/2,o=u-n+t;return function(e,t,n=!1){if(0===t)return e;function o(e,t,n){let o=t.x-e.x,i=t.y-e.y,l=Math.sqrt(o*o+i*i);return r(e,t,Math.min(1,n/l))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function l(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}let a=e.split(/[,\s]/).reduce(function(e,t){let n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(a.length>1){let e=l(a[0]),c=null;"Z"===a[a.length-1][0]&&a[0].length>2&&(c=["L",e.x,e.y],a[a.length-1]=c),s.push(a[0]);for(let e=1;e<a.length;e++){let d=s[s.length-1],u=a[e],h=u===c?a[1]:a[e+1];if(h&&d&&d.length>2&&"L"===u[0]&&h.length>2&&"L"===h[0]){let e,a,c=l(d),p=l(u),f=l(h);n?(e=r(p,d.origPoint||c,t),a=r(p,h.origPoint||f,t)):(e=o(p,c,t),a=o(p,f,t)),i(u,e),u.origPoint=p,s.push(u);let m=r(e,p,.5),g=r(p,a,.5),y=["C",m.x,m.y,g.x,g.y,a.x,a.y];y.origPoint=p,s.push(y)}else s.push(u)}if(c){let e=l(s[s.length-1]);s.push(["Z"]),i(s[0],e)}}else s=a;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}(`M 0 ${n} L ${i-.5} ${n} L ${i-.5} ${o} L ${2*i} ${o} L ${d-2*i} ${o} M ${d-2*i} ${o} L ${d-i} ${o} L ${d-i} ${n} L ${d} ${n}`,i)},f=$(()=>p(l),[d,u,i,l]),m=$(()=>{if(0===i)return;const e=i/2;return p(i)+`L ${d} 0 L 0 0 L 0 ${e}`},[f,i,l]),g=$(()=>({style:{clipPath:`path('${m}')`}}),[m]);return L("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...s,ref:vk([h,c,t]),children:[P.isValidElement(r)?P.cloneElement(r,g):O(I,{}),O("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:d,height:u,viewBox:`0 0 ${d} ${u}`,children:O("path",{d:f,stroke:a,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const xk={},Sk=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:a,hitAreaProps:s=xk,...c}=e,d="row"===o,{style:u,className:h,...p}=s;return O("div",{style:{...n,position:"relative"},...c,children:O("div",{className:wC("hit-box",h),style:{left:(d?-r:0)+"px",width:`calc(100% + ${d?r+i:0}px)`,top:(d?0:-r)+"px",height:`calc(100% + ${d?0:r+i}px)`,position:"absolute",...u},onPointerDown:l?void 0:t,...p})},a)},Ck={},kk=(e,t,n=!0)=>null===e?null:null!==e.pixels?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,Ek=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,_k=(e,t)=>{if(null==e)return null;const n={percent:null,pixels:null};let o=t;return"string"==typeof e&&((e=e.trim().toLowerCase()).endsWith("px")?(e=e.substring(0,e.length-2),o=!1):e.endsWith("%")&&(e=e.substring(0,e.length-1),o=!0),e=parseFloat(e)),o?n.percent=e:n.pixels=e,Object.freeze(n)};function Tk(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:n,onPointerMoveOrWait:o,processTouch:r=!1,consumeTouch:i=!0}=e,l=EC(t,[t]),a=EC(n,[n]),s=EC(o,[o]),c=F(!1),d=e?.timerInitial??230,u=e?.timerContinuous??d/2,h=F(null),p=F(null),f=F(null),m=F(null),g=H(()=>{m.current&&(clearTimeout(m.current),m.current=null)},[]),y=H(e=>{m.current=setTimeout(()=>{window.requestAnimationFrame(()=>{!1!==c.current&&s?.(p.current,f.current,h.current)}),y(u)},e??d)},[]);V(()=>()=>g(),[]);const b=r?"pointer":"mouse",w=H(e=>{e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault()},[]),v=EC(e=>{document.removeEventListener(`${b}move`,C),document.removeEventListener(`${b}up`,v),document.removeEventListener("keydown",k),document.removeEventListener("keyup",E),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",x),g(),window.requestAnimationFrame(()=>{!1!==c.current&&(c.current=!1,a?.(e,f.current,h.current),f.current=null)})},[]),x=H(()=>{!1!==c.current&&(c.current=!1,v(p.current))},[]),S=EC(()=>{g(),y(u),window.requestAnimationFrame(()=>{!1!==c.current&&s?.(p.current,f.current,h.current)})},[u]),C=EC(e=>{p.current=e,S()},[]),k=EC(e=>{f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},S()},[]),E=EC(e=>{f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},S()},[u]);return EC(e=>{e.isDefaultPrevented()||(f.current={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey},!1!==l(e,f.current)&&(h.current=e,p.current=e.nativeEvent,document.addEventListener(`${b}up`,v,{passive:!1}),document.addEventListener(`${b}move`,C,{passive:!1}),document.addEventListener("keydown",k,{passive:!1}),document.addEventListener("keyup",E,{passive:!1}),window.addEventListener("blur",x,{passive:!0}),r&&i&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),c.current=!0,y(d)))},[d,r])}z(j((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:a,minBefore:s,maxBefore:c,minAfter:d,maxAfter:u,children:h,className:p,style:f,disabled:m=!1,onDragStart:g,onDragResize:y,onDragFinish:b,resizerProps:w=Ck,paneProps:v=Ck,paneBeforeProps:x=Ck,paneAfterProps:S=Ck,createResizer:C=Sk}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const k=$(()=>P.isValidElement(o)&&P.isValidElement(n),[o,n]),E=$(()=>{let e=null;i&&("before"===i?e=0:"after"===i&&(e=1));const t=null===e;return{fixedPaneOffset:e,isPercent:t,minBefore:_k(s,t),maxBefore:_k(c,t),minAfter:_k(d,t),maxAfter:_k(u,t)}},[s,c,d,u]),_=EC(a,[a]),[T,M]=N(()=>_k(l,null===i));V(()=>{M(_k(l,null===i))},[l,i]);const[D,{width:R,height:I}]=kC(),[A,{width:z,height:H}]=kC(),B="row"===r?z:H,j="row"===r?R:I,W=$(()=>((e,t,n,o)=>{const r=[null,null],i=[null,null];if(e||(e={percent:null===o.fixedPaneOffset?50:null,pixels:null===o.fixedPaneOffset?null:0}),0===t)return null!=e?.pixels?1!==o.fixedPaneOffset?(r[0]=e?.pixels,i[1]=100):(r[1]=e?.pixels-n,i[0]=100):null!=e?.percent&&(1!==o.fixedPaneOffset?(i[0]=e?.percent,i[1]=100-e?.percent):(i[1]=e?.percent,i[0]=100-e?.percent)),{percents:i,pixels:r,minBefore:Ek(o.minBefore,!0),maxBefore:Ek(o.maxBefore,!0),minAfter:Ek(o.minAfter),maxAfter:Ek(o.maxAfter)};let l=kk(e,t,1!==o.fixedPaneOffset),a=t-n,s=kk(o.minBefore,a,!0)??0,c=kk(o.maxBefore,a,!0)??a,d=0,u=0,h=0,p=a;d=(kk(o.maxAfter,t,!1)??n)-n,u=kk(o.minAfter,t,!1)??t,h=Math.max(s,d),p=Math.min(c,u),l=Math.max(h,Math.min(l,p)),u=Math.min(a-l,kk(o.maxAfter,a-l,!0)??a),d=Math.min(a-l,kk(o.minAfter,a-l,!0)??a),r[0]=l,r[1]=a-r[0];const f=Math.max(0,Math.min(100,l/a*100));return i[0]=f,i[1]=100-i[0],{percents:i,pixels:r,minBefore:`${s}px`,minAfter:`${d}px`,maxBefore:`${r[0]}px`,maxAfter:`${r[1]}px`}})(T,j,B,E),[E,T,j,B,r]),[U,q]=N(!1),Z=EC(g,[g]),G=EC(y,[y]),K=EC(b,[b]),X=F(null),Y=F(null),J=F(null),{style:Q,className:ee,...te}=v,ne={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:oe,style:re,...ie}=x,{className:le,style:ae,...se}=S,ce={flex:"1 1 100%",width:"100%",...f,flexDirection:r,display:"flex"},{className:de,style:ue,onPointerDown:he,...pe}=w,fe=EC(e=>{const t=_k(e,null===i);M(t)},[i]),me=EC(e=>{if(m||!U)return;const t=be.current?.getBoundingClientRect();let n=0;n="row"===r?(e.clientX??e.touches?.[0]?.clientX)-t.x:(e.clientY??e.touches?.[0]?.clientY)-t.y,n=Math.max(0,Math.min(j,n)),1===E.fixedPaneOffset&&(n=j-n),l&&T.pixels===n||M({pixels:n,percent:null}),G?.(n),e.stopPropagation(),e.preventDefault()},[E,r,m,U,T,j]),ge=EC(e=>{if(document.removeEventListener("pointermove",me),document.removeEventListener("touchmove",me),document.removeEventListener("pointerup",ge),U&&(q(!1),T)){if(K(T.pixels),!_k(l,null===i)||T.pixels!==l){const e={...T};null===e.percent&&(e.percent=e.pixels/j*100),_(e)}e.stopPropagation(),e.preventDefault()}},[T,U,l,i,j]),ye=EC(e=>{he?.(e),e.defaultPrevented||m||U||(q(!0),Z(),document.addEventListener("pointermove",me,{passive:!1}),document.addEventListener("touchmove",me,{passive:!1}),document.addEventListener("pointerup",ge,{passive:!1}))},[he]),be=lk(t,()=>({setPosition:fe,isSplitPane:()=>!0}),[]),we=$(()=>k?C?.({key:"resizer",ref:vk([A,Y]),className:wC("resizer",de),onPointerDownCapture:ye,style:{cursor:m?void 0:"row"===r?"ew-resize":"ns-resize",minWidth:"row"===r?"2px":void 0,minHeight:"row"!==r?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ue},splitDirection:r,disabled:m,...pe}):null,[k,de,pe,r,ue,m]),ve="row"===r?"Width":"Height",xe={...ne,...re,flex:0===E.fixedPaneOffset&&null!==W?.pixels[0]?`0 0 ${Math.round(W?.pixels[0])}px`:`1 1 ${Math.round(W?.percents[0]??100)}%`,[`min${ve}`]:W?.minBefore,[`max${ve}`]:o?W?.maxBefore:"100%"},Se={...ne,...ae,flex:1===E.fixedPaneOffset&&null!==W?.pixels[1]?`0 0 ${Math.round(W?.pixels[1])}px`:`1 1 ${Math.round(W?.percents[1]??100)}%`,[`min${ve}`]:W?.minAfter,[`max${ve}`]:n?W?.maxAfter:"100%"},Ce=$(()=>n?O("div",{ref:X,className:wC("before",ee,oe),style:xe,...te,...ie,children:n},"before"):null,[n,v,x,E,W]),ke=$(()=>o?O("div",{ref:J,className:wC("after",ee,le),style:Se,...te,...se,children:o},"after"):null,[o,v,S,E,W]);return L("div",{ref:vk([D,be]),className:wC("splitPane","row"===r?"vertical":"horizontal",{dragging:U},p),style:ce,children:[Ce,we,ke]})}));const Mk=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=F(e);if("function"!=typeof t)throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return U(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},Dk=e=>{console&&console.warn&&console.warn(e)},Rk="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0;let Ok=1,Lk=!1,Ik=!1;const Ak=[],Pk=[],zk=()=>{Pk.forEach(e=>e())},Fk=({automaticContainerInternalUseOnly:e})=>{const[t,n]=N([]),o=F([]);return o.current=t,e||!1!==Lk||(Ik=!0),V(()=>{let t=!0;function r(){if(t)return Pk[0]!==r?(e||!0!==Lk||Dk("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(e=>[])):void n([...Ak])}return Pk.push(r),zk(),()=>{t=!1,o.current?.length>0&&Dk("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Pk.splice(Pk.indexOf(r),1),zk()}},[e]),O(I,{children:t.map(({hook:e,key:t})=>Z(Mk,{...e,key:t}))})},Nk=(e,t,n={})=>{let o,r,i=!1,l=!1,a=[],{unmountIfNoConsumers:s=!1}=n;const c=e=>{r=e,ct(()=>a.forEach(t=>t(e)))},d=()=>(l||(r="function"==typeof e?e():e,l=!0),r);return()=>{const[n,l]=N(d);return V(()=>(i||(i=!0,o=(e=>{const t=Ok++;return Ak.push({hook:e,key:t}),0===Pk.length&&!1===Ik&&(Lk=!0,(e=>{if(Rk.document&&Rk.document.createElement){const t=Rk.document.createElement("div");at(t).render(O(e,{automaticContainerInternalUseOnly:!0}))}else Dk("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(Fk)),zk(),()=>{Ak.splice(Ak.findIndex(e=>e.key===t),1),zk()}})({initValue:e,useHookBody:t,applyStateChange:c})),a.push(l),r!==n&&l(r),()=>{a.splice(a.indexOf(l),1),0===a.length&&s&&(o(),i=!1)}),[]),n}};Nk(null,()=>{const[e,t]=N(null);return e});let Vk=class{constructor(e,t,n,o){this._listenersProperties=new Set,this._listenersExecute=new Set,this._key=e,this._target=t,this._applyProps(n||{}),this._callback=o,void 0===o&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if("function"==typeof e){const n=t??this._context;return e("function"==typeof n?n():n)}return e}target(){return"function"==typeof this._target?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if("function"==typeof n){const e=t??this._context;o=n("function"==typeof e?e():e)}else o=n;return o}description(e){return this._resolve(this._description,e)}tags(e){return this._resolve(this._tags,e)}icon(e){return this._resolve(this._icon,e)}shortcut(){return this._resolve(this._shortcut)}disabled(){return this._resolve(this._disabled)||!this._callback}state(){return this._resolve(this._state)}context(){return"function"==typeof this._context?this._context():this._context}async execute(e,t){if(!this.disabled()&&this._callback){try{let n=!0;if(t?.beforeExecute&&(n=t?.beforeExecute(this,e)),!1===await Promise.resolve(n))return!1;const o=this._callback.bind(this)(e,this);if(!1===await Promise.resolve(o))return!1;t?.onExecute?.(this,e),this._notifyExecute(e)}catch(n){return console.warn(n),t?.onError(this,n,e),this._notifyError(e,n),!1}return!0}}addPropertyListener(e,t=!1){if(!e)throw new Error("listener must be specified");const n=this._listenersProperties;return n.add(e),t&&e({},this),()=>{n.delete(e)}}addExecuteListener(e){if(!e)throw new Error("listener must be specified");const t=this._listenersExecute;return t.add(e),function(){t.delete(e)}}_notifyExecute(e){const t=this;this._listenersExecute.forEach(n=>{n.onExecute(t,e)})}_notifyError(e,t){const n=this;this._listenersExecute.forEach(o=>{o.onError?.(n,e,t)})}updateCallback(e){return this._callback=e||null,this}update(e){if(!e)return;const t=this._applyProps(e);return Object.keys(t).length>0&&this._notifyPropertyChange(t),this}_notifyPropertyChange(e){const t=this;this._listenersProperties.forEach(n=>{n(e,t)})}_applyProps(e){let t={},n=this;return Object.keys(e).forEach(o=>{let r=e[o];n["_"+o]!==r&&(n["_"+o]=t[o]=r)}),t}},Hk=class extends Vk{};jS.getOS()===jS.OSType.MacOS||(jS.getOS(),jS.OSType.IOS),jS.getOS()===jS.OSType.MacOS||(jS.getOS(),jS.OSType.IOS),Nk({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>uC.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=N(uC.Global);return{setClipboard:e=>t(e),getClipboard:()=>e,refNativeCopy:F(null),refNativeLastKey:F(null)}});let Bk=!1,$k=0;var jk="undefined"!=typeof document?U:V;const Wk=()=>"sheetxl-ui-"+$k++,Uk=P["useId".toString()],qk=null!=Uk?Uk:function(){const[e,t]=P.useState(()=>Bk?Wk():void 0);return jk(()=>{null==e&&t(Wk())},[]),P.useEffect(()=>{Bk||(Bk=!0)},[]),e},Zk=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,l,a;"column"===e?(i=o.columnMetadataMap,l=o.lastMeasuredColumnIndex,a=o.recalcColumnIndices):(i=o.rowMetadataMap,l=o.lastMeasuredRowIndex,a=o.recalcRowIndices);const s=a.length>0;if(t>l){let c=0;if(l>=0){const e=i[l];c=e.offset+e.size}for(let e=l+1;e<=t;e++){let t=s?a.includes(e)?n(e)*r:i[e]?.size||n(e)*r:n(e)*r;i[e]={offset:c,size:t},c+=t}"column"===e?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},Gk=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let l,a;"column"===e?(l=o.columnMetadataMap,a=o.lastMeasuredColumnIndex):(l=o.rowMetadataMap,a=o.lastMeasuredRowIndex);let s=0;return s=(a>0?l[a].offset:0)>=r?Kk({itemType:e,itemSize:t,instanceProps:o,high:a,low:0,offset:r,scale:i}):Xk({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,a),offset:r,scale:i}),s=Math.min(s,n),s},Kk=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:l})=>{for(;r<=o;){const a=r+Math.floor((o-r)/2),s=Zk({itemType:e,itemSize:t,index:a,instanceProps:n,scale:l}).offset;if(s===i)return a;s<i?r=a+1:s>i&&(o=a-1)}return r>0?r-1:0},Xk=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:l})=>{let a=1;for(;r<n&&Zk({itemType:e,itemSize:t,index:r,instanceProps:o,scale:l}).offset<i;)r+=a,a*=2;return Kk({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:l})},Yk="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",Jk=e=>{if(!e)return null;if("start"===e.eventType)return{type:e.eventType};if("submit"===e.eventType)return{type:e.eventType};if("cancel"===e.eventType)return{type:e.eventType};if("keyboard"===e.eventType)return{type:e.eventType,key:e.event.key};if("pointer"===e.eventType)return{type:e.eventType};if("coordsChange"===e.eventType){const t={type:e.eventType};return e.activeCoords&&(t.activeCoords=e.activeCoords),t}return{type:e.eventType??"unknown"}},Qk=e=>!0,eE=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||"F2"!==e.key&&" "!==e.key&&"Backspace"!==e.key)&&(e.shiftKey&&" "===e.key||-1===Yk.indexOf(e.key))),tE=e=>!!e&&"dblclick"===e.type&&{editMode:!0},nE=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:l,getCellEditor:a,propsEditor:s,borderStrokeFill:c="rgb(33, 115, 70)",borderStrokeWidth:d=2,alignment:u=pC.Left,style:h,...p}=e,f=F(null),m=F(null),[g,y]=N(!1),b=t.coords,w=H(async e=>{const t=f.current?.getBoundingClientRect();if(t){if("keyboard"===e.eventType){const t=e.event,n=new KeyboardEvent(t.type,{bubbles:!0,cancelable:!0,view:window,key:t.key,code:t.code,location:t.location,repeat:t.repeat,isComposing:t.isComposing,charCode:t.charCode,keyCode:t.keyCode,which:t.which,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey});n.isSynthetic=!0,n.key,m.current?.dispatchEvent(n)}else"pointer"===e.eventType||console.warn("unsupported event type",e);await new Promise(e=>requestAnimationFrame(e))}},[]);V(()=>{const e=m.current;return y(!0),m.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(e),t.editorRefsDispatchEditorEvent.push(w);const n=[...t.events];for(let e=0;e<n.length;e++)await w(n[e]);t.onMount(e)})(),()=>{const n=t.editorRefs.indexOf(e);-1!==n&&t.editorRefs.splice(n,1),t.onUnmount(e)}},[]);const v=H(()=>o(t),[]),x=H(()=>{r(t)},[]),S=n.current&&bS.isEqualCells(n.current,b),C=l&&S&&g,k=a({autoFocus:!!t.startEvent?.autoFocus,...s,onSubmitEdit:v,onCancelEdit:x,ref:m},b),E=i.x+rk.boundPixel(-d/2),_=rk.boundPixel(i.width+d/2,!0);return O("div",{tabIndex:0,ref:f,style:{background:void 0,...h,opacity:C?h?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+rk.boundPixel(-d/2)}px`,height:rk.boundPixel(i.height+d/2,!0),left:`${E}px`,width:_},...p,children:O("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${rk.boundPixel(1)}px`,top:`${rk.boundPixel(1)}px`,width:rk.boundPixel(i.width-2,!0),height:rk.boundPixel(i.height-2,!0),outline:`${d}px ${c} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:k})})},oE=({gridRef:e,gridMainRef:t,orientation:n=Qx,headerCount:o,selectionPolicy:r="multiple",newSelectionMode:i="clear",alwaysScrollToActiveCoords:l=!0,onDragStart:a,onDragEnd:s,pointerDownInterceptor:c,pointerMoveInterceptor:d,onPointerUp:u,newSelection:h,modifySelection:p,appendSelection:f,clearSelections:m})=>{const g=o??((n===Qx?e.current?.rowCount:e.current?.columnCount)||0),y=F(null),b=F(null),w=F(!1),v=F(null),x=H(e=>n===Jx?{rowIndex:0,colIndex:e.colIndex}:{rowIndex:e.rowIndex,colIndex:0},[n]),S=H(e=>n===Jx?{rowIndex:t.current?t.current.rowCount-1:0,colIndex:e.colIndex}:{rowIndex:e.rowIndex,colIndex:t.current?t.current.columnCount-1:0},[n]),C=e=>{b.current=S(e),p(b.current,y.current)},k=H((o,r)=>{if(!e.current)return;const i=e.current.getViewFromClient(o,r)?.getCellCoordsFromClient(o,r);return i?(n===Jx?i.rowIndex=t.current.getViewport().rowStart:i.colIndex=t.current.getViewport().colStart,i):void 0},[]),E=H((e,o=!1)=>{let r=e;return o||(r={...e},n===Qx?delete r.colIndex:delete r.rowIndex),t.current?.scrollCellCoordsIntoView(r)},[n]),_=EC(s,[s]),T=EC(a,[a]),M=$(()=>({onPointerDown:o=>{if(!e||!e.current)return;if(o.nativeEvent.defaultPrevented)return;const r=k(o.nativeEvent.clientX,o.nativeEvent.clientY);if(!r)return;o.nativeEvent.which;const i=o.nativeEvent.shiftKey,a=o.nativeEvent.ctrlKey||o.nativeEvent.metaKey;if(!1===c?.(o,r))return;T?.(),w.current=!0;const s=t.current?.getViewFromClient(o.nativeEvent.clientX,o.nativeEvent.clientY),d=((e,t)=>n===Jx?{...e,rowIndex:t.rowStart}:{...e,colIndex:t.colStart})(r,s.getVisibleRangeCoords());if(i)C(r);else{if(a)return((e,t=e,n)=>{y.current=x(e),b.current=S(t),f(y.current,b.current,n)})(r,r,d),void(l&&E(d,!0));((e,t=e,n)=>{y.current=x(e),b.current=S(t),h(y.current,b.current,n)})(r,r,d),C(r),l&&E(d,!0)}},onPointerMoveOrWait:jS.throttle(t=>{if(!w.current||!e?.current)return;const n=k(t.clientX,t.clientY);if(n&&!1!==d?.(t,n)){if(bS.isEqualCells(v.current,n))return m();C(n),E(n)}},60),onPointerUp:e=>{w.current=!1,_?.(),u?.(e)},processTouch:!0,consumeTouch:!0}),[r,l,g,i,m,c,u]);return{onPointerDown:EC(Tk(M),[]),getCellCoordsFromClient:k}},rE=(e,t,n)=>{if(!e)return t;let o=t;const r=n===Bx||n===Vx;for(;;){const t=e(o,!r);if(0===t)return o;r?o+=t:o-=t}},iE=(e,t,n)=>{const o=[];let r=t;for(;r<=n;){const t=Math.max(0,e(r));0===t?(o.push(r),r++):r+=t}return o},lE=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:l,colIndex:a}=e;switch(o){case Vx:{l=rE(n,Math.min(l+1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&l<i;)l=rE(n,Math.min(++l,i),o),e=t({rowIndex:l,colIndex:a});return l}case Nx:{l=rE(n,Math.max(l-1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&l>i;)l=rE(n,Math.max(--l,i),o),e=t({rowIndex:l,colIndex:a});return l}case Bx:{a=rE(n,Math.min(a+1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&a<i;)a=rE(n,Math.min(++a,i),o),e=t({rowIndex:l,colIndex:a});return a}case Hx:{a=rE(n,Math.max(a-1,i),o);let e=t({rowIndex:l,colIndex:a});for(;!e&&a>i;)a=rE(n,Math.max(--a,i),o),e=t({rowIndex:l,colIndex:a});return a}default:return i}},aE=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:l,colIndex:a}=e;switch(o){case Vx:{l=rE(n,Math.min(l+1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&l<i;)l=rE(n,Math.min(++l,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?l:l-1}case Nx:{l=rE(n,Math.max(l-1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&l>i;)l=rE(n,Math.max(--l,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?l:l+1}case Bx:{a=rE(n,Math.min(a+1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&a<i;)a=rE(n,Math.min(++a,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?a:a-1}case Hx:{a=rE(n,Math.max(a-1,i),o);let e=t?.({rowIndex:l,colIndex:a});for(;e&&a>i;)a=rE(n,Math.max(--a,i),o),e=t?.({rowIndex:l,colIndex:a});return t?.({rowIndex:l,colIndex:a})?a:a+1}default:return null}},sE=(e,t,n,o,r,i)=>{if(!t)return i;let l,{rowIndex:a,colIndex:s}=e;o===Vx?l={rowIndex:a+1,colIndex:s}:o===Nx?l={rowIndex:a-1,colIndex:s}:o===Bx?l={rowIndex:a,colIndex:s+1}:o===Hx&&(l={rowIndex:a,colIndex:s-1});const c=t(e);var d,u;return(u=t(l),!(d=c)&&!u||!d&&u||d&&!u?lE:aE)(e,t,n,o,!1,i)??i},cE=(e,t)=>`${e}:${t}`,dE=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let l=o;return"nearest"===e&&(o-t>0?e="start":n-r>0&&(e="end")),"start"===e?l=t:"end"===e?l=n-(r-o):"center"===e&&(l=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(l,i-(r-o)))},uE=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),hE=(e,t=Bx,n,o,r,i=null)=>{if(i&&bS.isEqualSelectionCoords(i,e))return e;const l=e.ranges[e.rangeIndex];if(!bS.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},l))return e;let a={...e.cell},s=e.rangeIndex;switch(t){case Bx:a.colIndex=rE(r,a.colIndex+1,t);break;case Hx:a.colIndex=rE(r,a.colIndex-1,t);break;case Vx:a.rowIndex=rE(o,a.rowIndex+1,t);break;case Nx:a.rowIndex=rE(o,a.rowIndex-1,t)}const c=t=>{if(t){s=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const t=e.ranges[s];a={colIndex:t.colStart,rowIndex:t.rowStart}}else{s=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const t=e.ranges[s];a={colIndex:t.colEnd,rowIndex:t.rowEnd}}};if(t===Bx&&a.colIndex>l.colEnd&&a.rowIndex===l.rowEnd)c(!0);else if(t===Hx&&a.colIndex<l.colStart&&a.rowIndex===l.rowStart)c(!1);else if(t===Vx&&a.colIndex===l.colEnd&&a.rowIndex>l.rowEnd)c(!0);else if(t===Nx&&a.colIndex===l.colStart&&a.rowIndex<l.rowStart)c(!1);else{let e=a.rowIndex,n=a.colIndex;switch(t){case Bx:n>l.colEnd&&(e=rE(o,e+1,t),n=l.colStart,e>l.rowEnd&&(e=l.rowStart));break;case Hx:n<l.colStart&&(e=rE(o,e-1,t),n=l.colEnd,e<l.rowStart&&(e=l.rowEnd));break;case Vx:e>l.rowEnd&&(n=rE(r,n+1,t),e=l.rowStart,n>l.colEnd&&(n=l.colStart));break;case Nx:e<l.rowStart&&(n=rE(r,n-1,t),e=l.rowEnd,n<l.colStart&&(n=l.colEnd))}a={rowIndex:e,colIndex:n}}let d=n(a);if(!bS.isRangeWithinRange(d,l)){const e=bS.intersectRanges(d,l);e&&(d=e)}let u={rowStart:rE(o,d.rowStart,Vx),colStart:rE(r,d.colStart,Bx),rowEnd:rE(o,d.rowEnd,Nx),colEnd:rE(r,d.colEnd,Hx)};if(u.rowStart!==a.rowIndex||u.colStart!==a.colIndex){switch(t){case Bx:e.ranges[s].colStart===u.colStart&&e.ranges[s].colEnd===u.colEnd&&(a.rowIndex=u.rowEnd),a.colIndex=u.colEnd;break;case Hx:e.ranges[s].colStart===u.colStart&&e.ranges[s].colEnd===u.colEnd&&(a.rowIndex=u.rowStart),a.rowIndex===u.rowStart?a.colIndex=u.colStart+1:a.colIndex=u.colStart;break;case Vx:e.ranges[s].rowStart===u.rowStart&&e.ranges[s].rowEnd===u.rowEnd&&(a.colIndex=u.colEnd),a.rowIndex=u.rowEnd;break;case Nx:e.ranges[s].rowStart===u.rowStart&&e.ranges[s].rowEnd===u.rowEnd&&(a.colIndex=u.colStart),a.colIndex===u.colStart?a.rowIndex=u.rowStart+1:a.rowIndex=u.rowStart}return hE({cell:a,ranges:e.ranges,rangeIndex:s},t,n,o,r,i??e)}return{ranges:e.ranges,cell:a,rangeIndex:s}},pE=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=Hx,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=Bx,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=Nx,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=Vx,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},fE=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let l=n(r?e:e+1),a=n(r?e+1:e),s=e+(r?2:-1),c=0;for(;(a-l)*i<=0;){if(r&&s-1>o+1||!r&&s+1<o)return c;l=a,a=n(s),s+=i,c++}return c},mE=(e,t,n,o,r)=>{const i={};let l=null,a=null;for(let s=0;s<=n.length&&n[s]<=r;s++){const r=n[s];if(r<o)continue;const c=l===r?a:t?e.getColOffset(r):e.getRowOffset(r),d=t?e.getColOffset(r+1):e.getRowOffset(r+1);l=r+1,a=d,i[r]=Object.freeze({offset:c,size:d-c,spanIndex:s})}return Object.freeze(i)},gE=(e,t,n)=>{const o=e.getColOffset(t.colStart)+(n?.left??0),r=e.getRowOffset(t.rowStart)+(n?.top??0);return{x:o,y:r,width:e.getColOffset(t.colEnd+1)+(n?.right??0)-(n?.left??0)-o,height:e.getRowOffset(t.rowEnd+1)+(n?.bottom??0)-(n?.top??0)-r}},yE=(e,t,n)=>!(!n||e<n.x||e>n.x+n.width||t<n.y||t>n.y+n.height),bE=(e,t=!0)=>`M ${rk.boundPixel(e.left)} ${rk.boundPixel(e.top)} L ${rk.boundPixel(e.right,!0)} ${rk.boundPixel(e.top)} L ${rk.boundPixel(e.right,!0)} ${rk.boundPixel(e.bottom,!0)} L ${rk.boundPixel(e.left)} ${rk.boundPixel(e.bottom,!0)} L ${rk.boundPixel(e.left)} ${rk.boundPixel(e.top)} ${t?"Z":""}`,wE=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return O("svg",{width:`${rk.boundPixel(n.width,!0)}`,height:`${rk.boundPixel(n.height,!0)}`,viewBox:`0 0 ${rk.boundPixel(n.width,!0)} ${rk.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${rk.boundPixel(n.x)}px`,top:`${rk.boundPixel(n.y)}px`,width:`${rk.boundPixel(n.width,!0)}px`,height:`${rk.boundPixel(n.height,!0)}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",...r},...i,children:O("path",{d:`M ${rk.boundPixel(t[0])} ${rk.boundPixel(t[1])} L ${rk.boundPixel(t[2])} ${rk.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},vE=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:l,strokeWidth:a=0,strokeDasharray:s,strokeDashoffset:c,clipPath:d,pathBounds:u,pathProps:h,style:p,...f}=e,m=n,g=t,y=o,b=r;let w=null;if(i){let e=bE({top:0,left:0,bottom:b,right:y});u&&(e=e+" "+bE({top:u.y-m,left:u.x-g,bottom:u.height+u.y-m,right:u.width+u.x-g})),w=[O("path",{d:e,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return L("svg",{width:`${rk.boundPixel(o,!0)}`,height:`${rk.boundPixel(r,!0)}`,viewBox:`0 0 ${rk.boundPixel(o,!0)} ${rk.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${rk.boundPixel(t)}px`,top:`${rk.boundPixel(n)}px`,pointerEvents:"none",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",boxShadow:"rgb(60 64 67 / 5%) 0px 1px 4px 2px, rgb(255 255 255 / 15%) 0px 0px 2px 1px",overflow:"visible",...p},...f,children:[w,O("path",{d:bE({top:0,left:0,right:y,bottom:b}),fill:"none",strokeDasharray:s,strokeDashoffset:c,stroke:l,vectorEffect:"non-scaling-stroke",strokeWidth:a,...h})]})},xE=e=>{const{key:t,...n}=e;return O(SE,{...n},t)},SE=z(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:l=0,style:a,isAnimatedStroke:s,animatedStrokeProps:c,range:d,cell:u,...h}=e,p=s||!!c,f={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...c};let m=f.dashGap+f.dashLength;const g=f.speed*m,y=qk().replaceAll(":",""),b=`${f.name}-${y}`;let w;return V(()=>{if(!p)return;const e=`@keyframes ${b} {\n to {\n stroke-dashoffset: 0px;\n }\n }`,t=document.createElement("style");return t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t.sheet.insertRule(e,0),()=>{document.head.removeChild(t)}},[p]),p&&(w={strokeDasharray:`${f.dashLength}px ${f.dashGap}px`,strokeDashoffset:`${m}px`,animation:`${b} ${g}ms linear infinite`,willChange:"stroke-dashoffset"}),O(vE,{x:o,y:r,width:i,height:l,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...w,...a},...h})});function CE(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=CE(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function kE(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=CE(e))&&(o&&(o+=" "),o+=t);return o}SE.displayName="Selection";const EE=z(j((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:l,corner:a,style:s,className:c,background:d,...u}=e;if(0===n||0===o)return null;let h=!0,p=!0,f=!0,m=!0;switch(a){case"tl":h=!1,p=!1;break;case"bl":h=!1,m=!1;break;case"br":f=!1,m=!1;break;case"tr":p=!1,f=!1}return O("div",{className:kE("fill-handle",c),style:{position:"absolute",left:n-(i+(h?r:0))/2,top:o-(i+(p?r:0))/2,width:i,height:i,borderLeft:h?`${r}px ${l}`:void 0,borderTop:p?`${r}px ${l}`:void 0,borderRight:f?`${r}px ${l}`:void 0,borderBottom:m?`${r}px ${l}`:void 0,background:d,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...s},tabIndex:-1,...u})}));EE.displayName="FillHandle";var _E=function(){},TE="undefined"!=typeof window,ME=TE?U:V,DE={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const RE=TE&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(DE),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return ME(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[_E,DE]};function OE(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var LE=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=OE(o,t),r="function"==typeof e;n.push(r?e:()=>OE(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)OE(n,t)}};const IE=z(j((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:l="white",borderWidth:a=1.5,size:s=22,style:c,className:d,selectionTouchPointerHandler:u,onTouchSelectStart:h,onTouchSelectEnd:p,currentTouchAnchor:f,scrollableElement:m,scrollableRoot:g=document.body,...y}=e,b=EC(h,[h]),w=EC(p,[p]),{bounds:v,coordsPivot:x,key:S}=$(()=>{if(!n||!o)return null;let e=null,t=null;switch(r){case"tl":e={colIndex:n.colEnd,rowIndex:n.rowEnd},t={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":e={colIndex:n.colStart,rowIndex:n.rowStart},t={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"t":case"l":e={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"b":e={colIndex:n.colStart,rowIndex:n.rowStart};break;case"r":e={colIndex:n.colStart,rowIndex:n.rowEnd}}let i=o.getRangeCoordsBounds(t?{rowStart:t.rowIndex,colStart:t.colIndex,rowEnd:t.rowIndex,colEnd:t.colIndex}:n);const l=o.getBounds(),a=o.getViewportSize(),s=l.x,c=l.y,d=a.width,u=a.height;switch(r){case"tl":break;case"br":i.x=i.x+i.width,i.y=i.y+i.height;break;case"t":i.x=d/2-s;break;case"b":i.x=d/2-s,i.y=i.y+i.height;break;case"l":i.y=u/2-c;break;case"r":i.x=i.x+i.width,i.y=u/2-c}const h=o.toClipBounds(i,0);return!h||h.width<=0||h.height<=0||i.x<0||i.y<0||i.x>d||i.y>u?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:i,coordsAnchor:null,coordsPivot:e,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),C=F(null),k=Tk($(()=>{const e=e=>"t"===r||"b"===r?{...e,colIndex:void 0}:"l"===r||"r"===r?{...e,rowIndex:void 0}:e;return{processTouch:!0,consumeTouch:!0,onPointerDown:(t,n)=>{const i=e(o.getCellCoordsFromClient(t.clientX,t.clientY));return C.current={coordsPivot:x},b?.(r),u.onSelectionPointerDown(t,n,o,i,x,!1,!0)},onPointerMoveOrWait:(t,n,r)=>{const i=e(o.getCellCoordsFromClient(t.clientX,t.clientY));return u.onSelectionPointerMoveOrWait(t,n,r,o,i,C.current?.coordsPivot,!0,!0)},onPointerUp:(e,t,n)=>(C.current=null,w?.(r),u.onPointerUp(e,t,n))}},[u,n,o,r])),[E,{y:_,x:T}]=RE(),M=F(null),{getPortalContainer:D}=hk(),[R,A]=N(null);return V(()=>{const e=M.current?.getBoundingClientRect();if(!e||!v)return void A(null);let n=0,o=0,r=m;for(;r;)n+=r.scrollLeft,o+=r.scrollTop,r=g&&r===g.parentElement?null:r.parentElement;A(dt(O("div",{className:kE("touch-select-handle",d),ref:t,style:{position:"absolute",left:n+(e?.x??0)-(s+a)/2,top:o+(e?.y??0)-(s+a)/2,width:s,height:s,borderWidth:`${a}px`,border:i,borderRadius:"50%",background:l,boxShadow:`0 0 0 1.5px ${l}`,cursor:"grab",pointerEvents:"all",opacity:f?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...c},tabIndex:-1,onPointerDown:k,...y}),g??D(),S))},[_,T,v?.x,v?.y,v?.width,v?.height,d,f,l,s,a,i,m]),v?L(I,{children:[O("div",{ref:LE([E,M]),style:{position:"absolute",left:v.x,top:v.y,opacity:0}}),R]}):null}));IE.displayName="TouchSelectHandle";const AE=-10,PE=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),zE=Object.freeze({colIndex:0,rowIndex:0}),FE=Object.freeze([]),NE=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??FE};return t.rangeIndex=e?.rangeIndex??t.ranges.length-1,t.cell=e?.cell,!t.cell&&t.ranges.length>0&&(t.cell={rowIndex:t.ranges[t.rangeIndex].rowStart,colIndex:t.ranges[t.rangeIndex].colStart}),t.cell||(t.cell=zE),bS.isEqualSelectionCoords(t,e)?e:t},VE=(e,t,n)=>{const o=e.getVisibleRangeCoords(),r=e.getScrollOrientation();!r.horizontal&&(t.colIndex>o.colEnd||t.colIndex<o.colStart)&&(t={...t,colIndex:t.colIndex>o.colEnd?o.colEnd+1:o.colEnd-1},e=n.current.getViewFromLocation(Ux)),!r.vertical&&(t.rowIndex>o.rowEnd||t.rowIndex<o.rowStart)&&(t={...t,rowIndex:t.rowIndex>o.rowEnd?o.rowEnd+1:o.rowEnd-1},e=n.current.getViewFromLocation(Ux)),e.scrollCellCoordsIntoView(t)},HE=()=>!1,BE=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:l,selectionPolicy:a="multiple",newSelectionMode:s="clear",allowDeselectSelection:c=!0,onFillPreview:d,onFillCancel:u,onFillDone:h,onFill:p,disableFillDrag:f=!p,fillHandleBorderColor:m="white",hiddenRowsAt:g,hiddenColumnsAt:y,isContentfulCell:b,contentfulCellFinder:w=sE,getDataCoords:v,alwaysScrollToActiveCoords:x=!1,selectionBounds:S,pointerDownInterceptor:C,pointerMoveInterceptor:k,mergedRanges:E,canSelectionSpanMergedCells:_=HE,onMoveDragStart:T,onMoveDragUpdate:M,onMoveDragEnd:D,onMoveDragDone:R,selectionRenderer:L=xE,disableMoveDrag:I=!D,getCellCoordsAsRangeCoords:A=bS.cellToRange,moveDragHitSize:P=6,moveDragOutlineSize:z=4,selectionBackgroundColor:B="rgba(16, 124, 65, 0.1)",selectionBorderColor:j="rgb(33, 115, 70)",selectionRemoveBorderColor:W="rgb(255, 0, 0)",selectionRemoveBackgroundColor:q="rgba(250, 10, 10, 0.1)",disableTouchSelection:G=!1,touchSelectHandleProps:K})=>{const X=H(()=>({top:S?.top??0,left:S?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),Y=EC(p,[p]),J=EC(d,[d]),Q=EC(u,[u]),ee=EC(h,[h]),te=EC(b,[b]),ne=EC(L,[L]),oe=EC((e,t=!1)=>fE(e,t,n.getRowOffset,t?X().bottom:X().top),[n?.getRowOffset]),re=EC(g??oe,[g]),ie=EC((e,t=!1)=>fE(e,t,n.getColOffset,t?X().right:X().left),[n?.getColOffset]),le=EC(y??ie,[y]),[ae,se]=N(()=>NE(o)),ce=$(()=>NE(ae),[ae]),de=F(ce),ue=F(!0);U(jS.throttle(()=>{se(e=>{ue.current=!0;const t=NE(o);return bS.isEqualSelectionCoords(t,e)?e:t})},0),[o]),U(()=>{de.current=ce},[ce]),V(()=>{ue.current||!r||bS.isEqualSelectionCoords(o,ce)||r(ce)},[ce]);const he=H(e=>{se(t=>{ue.current=!1,t=NE(t);let n="function"==typeof e?e(t.ranges):e??FE;if(bS.isEqualRangesArrays(n,t.ranges))return t;let o=Math.max(n.length?0:-1,Math.min(t.rangeIndex,n.length-1)),r=t.cell;-1===o||bS.isCellWithinRange(r,n[o])||(r={rowIndex:n[o].rowStart,colIndex:n[o].colStart}),1===n.length&&bS.isSingleCell(n[0])&&bS.isCellWithinRange(r,n[0])&&(n=[],o=-1);const i={cell:r,ranges:n,rangeIndex:o};return bS.isEqualSelectionCoords(i,t)?t:i})},[]),pe=EC(e=>{se(t=>{ue.current=!1,t=NE(t);const n=e??zE,o=A(n);if(!bS.isSingleCell(o)&&0===t.ranges.length)return{ranges:[o],rangeIndex:0,cell:n};if(bS.isEqualCells(n,t.cell))return t;let r=t.ranges,i=t.rangeIndex;1===t.ranges.length&&(bS.isSingleCell(t.ranges[0])&&bS.isCellWithinRange(n,t.ranges[0])||!bS.isCellWithinRange(n,t.ranges[0]))&&(r=[],i=-1);const l={ranges:r,rangeIndex:i,cell:n};return bS.isEqualSelectionCoords(l,t)?t:l})},[A]),[fe,me]=N(null),[ge,ye]=N(null),be=F(null),[we,ve]=N(null),xe=F(null),Se=F(null),[Ce,ke]=N(null),Ee=F(null),_e=F(null),Te=F(E);V(()=>{Te.current=E},[E]);const Me=EC((t,n={inline:"nearest",block:"nearest"})=>{let{rowIndex:o,colIndex:r}=t;void 0===o&&ce?.cell&&(o=ce.cell.rowIndex),void 0===r&&ce?.cell&&(r=ce.cell.colIndex),void 0!==o&&void 0!==r&&e.current?.scrollCellCoordsIntoView({rowIndex:o,colIndex:r},n)},[ce]),De=H(e=>{const t=X();return e.rowIndex<t.top||e.colIndex<t.left||e.colIndex>t.right||e.rowIndex>t.bottom},[]),Re=EC((t,n)=>{if(!e?.current)return null;const o={rowStart:Math.min(t.rowIndex,n.rowIndex),colStart:Math.min(t.colIndex,n.colIndex),rowEnd:Math.max(t.rowIndex,n.rowIndex),colEnd:Math.max(t.colIndex,n.colIndex)},r=_?.(o);if(r)return o;const i=A(t),l=A(n),a={rowStart:Math.min(i.rowStart,l.rowStart),colStart:Math.min(i.colStart,l.colStart),rowEnd:Math.max(i.rowEnd,l.rowEnd),colEnd:Math.max(i.colEnd,l.colEnd)};let s;return"function"==typeof Te.current?s=Te.current(a):E&&(s=E),s?bS.extendRangeToUnionRanges(a,s):a},[_,A]),Oe=EC((e,t,n)=>{const o=e.ranges.length>0?e.ranges[e.rangeIndex]:{rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},r={rowStart:Math.min(t.rowIndex??o.rowStart,n.rowIndex??o.rowStart),colStart:Math.min(t.colIndex??o.colStart,n.colIndex??o.colStart),rowEnd:Math.max(t.rowIndex??o.rowEnd,n.rowIndex??o.rowEnd),colEnd:Math.max(t.colIndex??o.colEnd,n.colIndex??o.colEnd)},i={rowIndex:r.rowStart,colIndex:r.colStart},l={rowIndex:r.rowEnd,colIndex:r.colEnd};if(!De(i)&&!De(l))return Re(i,l)},[Re]),Le=EC((e,t,n)=>{if("single"===a)return;if(!de.current)return;const o=Oe(de.current,e,t??de.current.cell);if(!o)return;const r=de.current.rangeIndex;he(e=>e.length?e.map((e,t)=>r===t?o:e):[o]),n&&o&&pe({colIndex:o.colStart,rowIndex:o.rowStart})},[]),Ie=H((e,t,n)=>{if(!de.current)return;e={...de.current?.cell,...e},t=t??e;const o=Oe(de.current,e,t);if(!o)return;const r={rowIndex:o.rowStart,colIndex:o.colStart},i={...r,...n};"clear"===s?(Ee.current=i,Pe()):"modify"===s?Le(r):Ae(r),pe(i)},[]),Ae=H((e,t=e,n)=>{"multiple"!==a||!e||De(e)||De(t)||se(o=>{ue.current=!1,o=NE(o);const r=Re(e,t);if(!r)return o;let i=o.ranges.length>0?[...o.ranges]:[Re(o.cell,o.cell)];i.push(r);const l={ranges:i,cell:{rowIndex:r.rowStart,colIndex:r.colStart,...n},rangeIndex:i.length-1};return bS.isEqualSelectionCoords(l,o)?o:l})},[]),Pe=()=>{he(FE)},ze="touch"===rk.detectIt().primaryInput,Fe=F(null),Ne=F(null),Ve=F(null),He=$(()=>({onPointerDown:t=>{if(!e||!e.current)return!1;const n=t.nativeEvent,o=e.current.getViewFromClient(n.clientX,n.clientY);if("touch"===n.pointerType||"touchstart"===n.type)return Ne.current={topLeft:o.getScrollTopLeft(),point:{x:n.clientX,y:n.clientY}},!0;const r=o.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!r)return!1;Fe.current={anchor:o.getAnchor(),coords:r},_e.current=null;const l=3===t.nativeEvent.which;if(l&&-1!==bS.indexOfCoords(r,ce.ranges))return!1;const s=t.nativeEvent.shiftKey,d=t.nativeEvent.ctrlKey||t.nativeEvent.metaKey,u=d,h=c,p=ce.ranges.length>0,f=d&&h;if(!1===C?.(t,r,ce))return!1;i?.(de.current,t.nativeEvent);const m=!l&&"single"!==a;if(s)return Le(r),m;const g=bS.isEqualCells(r,ce.cell);if(u){if(g&&(!f||!p))return m;if(d&&-1!==bS.indexOfCoords(r,ce.ranges)&&h){xe.current=r;const e=Re(r,r);return Se.current=e,ve(e),m}return Ae(r),m}x&&Me(r),g&&0===ce.ranges.length||Ie(r)},onPointerMoveOrWait:jS.throttle((t,n)=>{if(!e?.current)return;if("touch"===t.pointerType||"touchmove"===t.type)return;if(!Fe.current)return;const o=Fe.current.anchor;let r=e.current.getViewFromLocation(o),i=r.getCellCoordsFromClient(t.clientX,t.clientY);if(!bS.isEqualCells(i,Fe.current?.coords)&&(Fe.current={anchor:o,coords:i},i&&!1!==k?.(t,i,de.current))){if(xe.current){const e={rowStart:Math.min(i.rowIndex,xe.current.rowIndex),colStart:Math.min(i.colIndex,xe.current.colIndex),rowEnd:Math.max(i.rowIndex,xe.current.rowIndex),colEnd:Math.max(i.colIndex,xe.current.colIndex)},t={rowIndex:e.rowStart,colIndex:e.colStart},n={rowIndex:e.rowEnd,colIndex:e.colEnd};if(De(t)||De(n))return;const o=Re(t,n);Se.current=o,ve(o)}else Le(i);Ve.current=n,VE(r,i,e)}},60),onPointerUp:t=>{if(Fe.current=null,"touch"===t.pointerType||"touchend"===t.type){if(Ne.current){const t=e.current.getViewFromClient(Ne.current.point.x,Ne.current.point.y),n=t.getScrollTopLeft();if(n.left===Ne.current.topLeft.left&&n.top===Ne.current.topLeft.top){const e=t.getCellCoordsFromClient(Ne.current.point.x,Ne.current.point.y);Ie(e)}}return Ne.current=null,void(Fe.current=null)}try{l?.(de.current,t)}catch(t){console.warn(t)}if(!xe.current)return;const n=Se.current;xe.current=null,Se.current=null,ve(null),se(e=>{if(ue.current=!1,0===(e=NE(e)).ranges.length)return e;let t=[],o=-1,r=e.cell;for(let i=0;i<e.ranges.length;i++){const l=e.ranges[i];if(bS.isRangesIntersect(l,n)){const r=jS.subtractRect({top:l.rowStart,left:l.colStart,bottom:l.rowEnd+1,right:l.colEnd+1},{top:n.rowStart,left:n.colStart,bottom:n.rowEnd+1,right:n.colEnd+1});for(let n=0;n<r.length;n++){const i={rowStart:r[n].top,colStart:r[n].left,rowEnd:r[n].bottom-1,colEnd:r[n].right-1};t.push(i),bS.isCellWithinRange(e.cell,i)&&(o=t.length-1)}}else t.push(l);t.length>0&&-1===o&&bS.isCellWithinRange(e.cell,l)&&(o=t.length-1,r={rowIndex:t[t.length-1].rowStart,colIndex:t[t.length-1].colStart})}const i={cell:r,rangeIndex:o,ranges:t};return bS.isEqualSelectionCoords(i,e)?e:i})},processTouch:!0,consumeTouch:!1}),[ce,a,c,x,s]),Be=EC(Tk(He),[]),$e=$(()=>({onSelectionPointerDown:(t,n,o,r,l=ce.cell,s=x,d=t.nativeEvent.shiftKey,u=!1)=>{if(!e||!e.current)return!1;t.stopPropagation(),t.preventDefault(),t.nativeEvent.stopImmediatePropagation();const h=o??e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),p=r??h.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!p)return!1;Fe.current={anchor:h.getAnchor(),coords:p},_e.current=null;const f=3===t.nativeEvent.which;if(f&&-1!==bS.indexOfCoords(p,ce.ranges))return!1;const m=t.nativeEvent.ctrlKey||t.nativeEvent.metaKey,g=m,y=c,b=ce.ranges.length>0,w=m&&y;if(!1===C?.(t,p,ce))return!1;i?.(de.current,t.nativeEvent);const v=!f&&"single"!==a;if(d)return Le(p,l,u),v;const S=bS.isEqualCells(p,l);if(g){if(S&&(!w||!b))return v;if(w&&-1!==bS.indexOfCoords(p,ce.ranges)&&y){xe.current=p;const e=Re(p,p);return Se.current=e,ve(e),v}return Ae(p),v}s&&Me(p),S&&0===ce.ranges.length||Ie(p)},onSelectionPointerMoveOrWait:(t,n,o,r,i,l=ce.cell,a=!0,s=!1)=>{if(!e?.current)return;if(t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation(),!Fe.current)return;const c=Fe.current.anchor;let d=r??e.current.getViewFromLocation(c),u=i??d.getCellCoordsFromClient(t.clientX,t.clientY);if(!bS.isEqualCells(u,Fe.current?.coords)&&(Fe.current={anchor:c,coords:u},u&&!1!==k?.(t,u,de.current))){if(xe.current){const e={rowStart:Math.min(u.rowIndex,xe.current.rowIndex),colStart:Math.min(u.colIndex,xe.current.colIndex),rowEnd:Math.max(u.rowIndex,xe.current.rowIndex),colEnd:Math.max(u.colIndex,xe.current.colIndex)},t={rowIndex:e.rowStart,colIndex:e.colStart},n={rowIndex:e.rowEnd,colIndex:e.colEnd};if(De(t)||De(n))return;const o=Re(t,n);Se.current=o,ve(o)}else Le(u,l,s);a&&VE(d,u,e)}},onPointerUp:e=>{Fe.current=null,e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation();try{l?.(de.current,e)}catch(e){console.warn(e)}if(!xe.current)return;const t=Se.current;xe.current=null,Se.current=null,ve(null),se(e=>{if(ue.current=!1,0===(e=NE(e)).ranges.length)return e;let n=[],o=-1,r=e.cell;for(let i=0;i<e.ranges.length;i++){const l=e.ranges[i];if(bS.isRangesIntersect(l,t)){const r=jS.subtractRect({top:l.rowStart,left:l.colStart,bottom:l.rowEnd+1,right:l.colEnd+1},{top:t.rowStart,left:t.colStart,bottom:t.rowEnd+1,right:t.colEnd+1});for(let t=0;t<r.length;t++){const i={rowStart:r[t].top,colStart:r[t].left,rowEnd:r[t].bottom-1,colEnd:r[t].right-1};n.push(i),bS.isCellWithinRange(e.cell,i)&&(o=n.length-1)}}else n.push(l);n.length>0&&-1===o&&bS.isCellWithinRange(e.cell,l)&&(o=n.length-1,r={rowIndex:n[n.length-1].rowStart,colIndex:n[n.length-1].colStart})}const i={cell:r,rangeIndex:o,ranges:n};return bS.isEqualSelectionCoords(i,e)?e:i})}}),[ce,a,c,x,s]),je=EC((t,o=!1,r=!1,i=0)=>{if(!e.current||!ce.cell)return;let l=ce.cell,a=ce.cell;if(o&&ce.ranges.length>0){const e=ce.ranges[ce.rangeIndex],n=ce.cell;switch(t){case Nx:a={rowIndex:n.rowIndex===e.rowStart?e.rowEnd:e.rowStart,colIndex:e.colEnd},l={rowIndex:n.rowIndex===e.rowStart?e.rowStart:e.rowEnd,colIndex:e.colStart};break;case Vx:a={rowIndex:n.rowIndex===e.rowEnd?e.rowStart:e.rowEnd,colIndex:e.colEnd},l={rowIndex:n.rowIndex===e.rowEnd?e.rowEnd:e.rowStart,colIndex:e.colStart};break;case Hx:a={rowIndex:e.rowEnd,colIndex:n.colIndex===e.colStart?e.colEnd:e.colStart},l={rowIndex:e.rowStart,colIndex:n.colIndex===e.colStart?e.colStart:e.colEnd};break;case Bx:a={rowIndex:e.rowEnd,colIndex:n.colIndex===e.colEnd?e.colStart:e.colEnd},l={rowIndex:e.rowStart,colIndex:n.colIndex===e.colEnd?e.colEnd:e.colStart}}}const s=A(a);let{rowStart:c,colStart:d}=s;const u=X();if(_e.current)switch(t){case Nx:case Vx:_e.current.colIndex>=s.colStart&&_e.current.colIndex<=s.colEnd&&(d=_e.current.colIndex);break;case Hx:case Bx:_e.current.rowIndex>=s.rowStart&&_e.current.rowIndex<=s.rowEnd&&(c=_e.current.rowIndex)}if(!i){switch(t){case Nx:c=rE(re,Math.max(s.rowStart-1,u.top),t);break;case Vx:c=rE(re,Math.min(s.rowEnd+1,u.bottom),t);break;case Hx:d=rE(le,Math.max(s.colStart-1,u.left),t);break;case Bx:d=rE(le,Math.min(s.colEnd+1,u.right),t)}if(r)switch(t){case Nx:c=w({...a,colIndex:ce.cell.colIndex},te,re,t,!1,Math.max(u.top,re(u.top,!1)));break;case Vx:c=w({...a,colIndex:ce.cell.colIndex},te,re,t,!1,Math.min(u.bottom,u.bottom-re(u.bottom,!0)));break;case Hx:d=w({...a,rowIndex:ce.cell.rowIndex},te,le,t,!1,Math.max(u.left,le(u.left,!1)));break;case Bx:d=w({...a,rowIndex:ce.cell.rowIndex},te,le,t,!1,Math.min(u.right,u.right-le(u.right,!0)))}}let h=null;if(i){let o=0;switch(t){case Nx:o=n.getRowOffset(c+1),c=Math.max(u.top,n.getRowIndex(o-i)),h={top:n.getRowOffset(c+1)-(o-e.current.getScrollPosition().top)};break;case Vx:o=n.getRowOffset(c),c=Math.min(u.bottom,n.getRowIndex(o+i)),h={top:n.getRowOffset(c)-(o-e.current.getScrollPosition().top)};break;case Hx:o=n.getColOffset(d+1),d=Math.max(u.left,n.getColIndex(o-i)),h={left:n.getColOffset(d+1)-(o-e.current.getScrollPosition().left)};break;case Bx:o=n.getColOffset(d),d=Math.min(u.right,n.getColIndex(o+i)),h={left:n.getColOffset(d)-(o-e.current.getScrollPosition().left)}}}const p={rowIndex:c,colIndex:d},f=A(p),m={rowIndex:f.rowStart,colIndex:f.colStart};o||(_e.current=p);const g=bS.isEqualCells(Ee.current,m)&&bS.isEqualCells(Ee.current,l);if(o&&!g?Le(m,l):Ie(m),h)e.current.scrollTo(h);else{if(o&&Ee.current){const e=X();if(t===Bx&&Ee.current.colIndex===e.left||t===Hx&&Ee.current.colIndex===e.right||t===Nx&&Ee.current.rowIndex===e.bottom||t===Vx&&Ee.current.rowIndex===e.top)return}t===Hx||t===Bx?Me({colIndex:p.colIndex}):t!==Nx&&t!==Vx||Me({rowIndex:p.rowIndex})}},[ce,A]),We=EC(t=>{if(!e.current)return;if(0===ce.ranges.length)return void je(t);const n=A(ce.cell);if(bS.isEqualRangesArrays([n],ce.ranges))return void je(t);const o=hE(ce,t,A,re,le);se(e=>{ue.current=!1,e=NE(e);const t={...e,cell:o.cell,rangeIndex:o.rangeIndex};return bS.isEqualSelectionCoords(t,e)?e:t}),o.cell&&Me(o.cell)},[ce,A]),Ue=H(()=>{const e=X();Le({rowIndex:e.top},{rowIndex:e.bottom})},[]),qe=H(()=>{const e=X();Le({colIndex:e.left},{colIndex:e.right})},[]),Ze=EC(()=>{ce.cell&&e?.current&&Me(ce.cell)},[ce.cell]),Ge=H((e=!1)=>{const t={rowIndex:X().top};e?Le(t):Ie(t),Me(t)},[]),Ke=H((e=!1)=>{const t={rowIndex:X().bottom};e?Le(t):Ie(t),Me(t)},[]),Xe=H((e=!1)=>{const t={colIndex:X().left};e?Le(t):Ie(t),Me(t)},[]),Ye=H((e=!1)=>{const t=X(),n={rowIndex:t.top,colIndex:t.left};e?Le(n):Ie(n),Me(n)},[]),Je=H((e=!1)=>{const t=X(),n={colIndex:v?.()?.colEnd??t.right};e?Le(n):Ie(n),Me(n)},[v]),Qe=H((e=!1)=>{const t=X(),n={rowIndex:v?.()?.rowEnd??t.bottom,colIndex:v?.()?.colEnd??t.right};e?Le(n):Ie(n),Me(n)},[v]),et=EC(t=>{if(!e.current)return;if(ce.ranges.length<=1)return;const n=t===Hx||t===Nx;let o=ce.rangeIndex+(n?-1:1);o<0?o=ce.ranges.length-1:o>ce.ranges.length-1&&(o=0);const r=ce.ranges[o],i=hE({cell:{rowIndex:r.rowEnd,colIndex:r.colEnd},rangeIndex:0,ranges:[r]},Bx,A,re,le);se(e=>{ue.current=!1,e=NE(e);const t={...e,cell:i.cell,rangeIndex:o};return bS.isEqualSelectionCoords(t,e)?e:t}),i.cell&&Me(i.cell)},[ce,A]),tt=EC(()=>{const e=uE(ce);se(t=>{ue.current=!1,t=NE(t);const n={...t,visibleSelection:e};return bS.isEqualSelectionCoords(n,t)?t:n}),e.cell&&Me(e.cell)},[ce,A]),nt=EC(()=>{if(!e.current)return;if(0===ce.ranges.length)return;const t=ce.cell,n=ce.ranges[ce.rangeIndex],o=uE({cell:t,rangeIndex:0,ranges:[n]}),r=o.ranges[o.rangeIndex];let i;i=r.rowStart===t.rowIndex&&r.colStart===t.colIndex?{rowIndex:r.rowStart,colIndex:r.colEnd}:r.rowStart===t.rowIndex&&r.colEnd===t.colIndex?{rowIndex:r.rowEnd,colIndex:r.colStart}:r.rowEnd===t.rowIndex&&r.colStart===t.colIndex?{rowIndex:r.rowEnd,colIndex:r.colEnd}:{rowIndex:r.rowStart,colIndex:r.colStart},se(e=>{e=NE(e);const t={...e,cell:i};return bS.isEqualSelectionCoords(t,e)?e:t}),i&&Me(i)},[ce,A]),ot=H((t=!1)=>{je(Vx,t,!1,e.current.getDimensions().containerHeight)},[]),rt=H((t=!1)=>{je(Nx,t,!1,e.current.getDimensions().containerHeight)},[]),it=H((t=!1)=>{je(Bx,t,!1,e.current.getDimensions().containerWidth)},[]),lt=H((t=!1)=>{je(Hx,t,!1,e.current.getDimensions().containerWidth)},[]),at=H(()=>{We(Hx)},[]),st=H(()=>{We(Bx)},[]),ct=H(()=>{We(Nx)},[]),dt=H(()=>{We(Vx)},[]),ut=H(()=>{et(Hx)},[]),ht=H(()=>{et(Bx)},[]),pt=H(()=>{nt()},[]),ft=H(()=>{je(Hx,!1,!1)},[]),mt=H(()=>{je(Hx,!0,!1)},[]),gt=H(()=>{je(Hx,!1,!0)},[]),yt=H(()=>{je(Hx,!0,!0)},[]),bt=H(()=>{je(Bx,!1,!1)},[]),wt=H(()=>{je(Bx,!0,!1)},[]),vt=H(()=>{je(Bx,!1,!0)},[]),xt=H(()=>{je(Bx,!0,!0)},[]),St=H(()=>{je(Nx,!1,!1)},[]),Ct=H(()=>{je(Nx,!0,!1)},[]),kt=H(()=>{je(Nx,!1,!0)},[]),Et=H(()=>{je(Nx,!0,!0)},[]),_t=H(()=>{je(Vx,!1,!1)},[]),Tt=H(()=>{je(Vx,!0,!1)},[]),Mt=H(()=>{je(Vx,!1,!0)},[]),Dt=H(()=>{je(Vx,!0,!0)},[]),Rt=H(()=>{he(e=>e.slice(0,-1))},[]),Ot=$(()=>{const e=X();return((e,t,n,o,r)=>{for(let i=0;i<e.length;i++){const l=e[i];if(l.rowStart===t&&l.colStart===n&&l.rowEnd===o&&l.colEnd===r)return!0}return!1})(ce.ranges,e.top,e.left,e.bottom,e.right)},[S,ce.ranges]),Lt=H((t,n=!0)=>{Ee.current=t,pe(t),n&&t&&e?.current&&Me(t)},[]),It=EC((e=!0)=>{const t=be.current;if(!de.current?.cell)return;const n=de.current?.ranges,o=de.current?.cell;if(!o||!t)return;if(!t)return;let r=null;if(r=n.length>0?n[n.length-1]:A(o),r.colEnd>=r.colStart&&r.rowEnd>=r.rowStart){const n=pE(r,t);let o=e?Y:J;try{o?.(r,t,n.direction)}catch(e){console.warn(e)}finally{e&&ee?.()}}},[A]),At=F(null),Pt=$(()=>({onPointerDown:(t,n)=>{if(Ve.current=n,!e||!e.current)return!1;const o=e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),r=o?.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);r&&(t.stopPropagation(),me("crosshair"),At.current={anchor:o.getAnchor(),coords:r})},onPointerMoveOrWait:(t,n)=>{if(f||!e?.current||!de.current||!At.current)return;const o=At.current.anchor;let r=e.current.getViewFromLocation(o),i=r.getCellCoordsFromClient(t.clientX,t.clientY);if(!i)return;At.current={anchor:o,coords:i};const l=de.current.ranges;let a=Re(de.current.cell,i);if(!a)return;const s=l.length>0,c=s?l[l.length-1]:A(de.current.cell);if(!a)return;const d=a.rowStart<c.rowStart?Nx:a.rowEnd>c.rowEnd?Vx:a.colEnd>c.colEnd?Bx:Hx,u=X();d===Hx&&(a={...c,colStart:Math.max(u.left,a.colStart)}),d===Nx&&(a={...c,rowStart:Math.max(u.top,a.rowStart)}),d===Bx&&(a={...c,colEnd:Math.min(u.right,a.colEnd)}),d===Vx&&(a={...c,rowEnd:Math.min(u.bottom,a.rowEnd)});const h=pE(c,a);if(!_?.(c)){let e;"function"==typeof Te.current?e=Te.current(c):E&&(e=E),a=((e,t,n,o,r,i)=>{const l={...t};if(0===n.length)return l;if(r===Hx){const t=e.colEnd+1-e.colStart;l.colStart=e.colStart-Math.ceil(i/t)*t,l.colStart<o.left&&(l.colStart=l.colStart+Math.ceil((o.left-l.colStart)/t)*t)}else if(r===Bx){const t=e.colEnd+1-e.colStart;l.colEnd=e.colEnd+Math.ceil(i/t)*t,l.colEnd>o.right&&(l.colEnd=l.colEnd-Math.ceil((o.right-l.colEnd)/t)*t)}else if(r===Nx){const t=e.rowEnd+1-e.rowStart;l.rowStart=e.rowStart-Math.ceil(i/t)*t,l.rowStart<o.top&&(l.rowStart=l.rowStart+Math.ceil((o.top-l.rowStart)/t)*t)}else if(r===Vx){const t=e.rowEnd+1-e.rowStart;l.rowEnd=e.rowEnd+Math.ceil(i/t)*t,l.rowEnd>o.bottom&&(l.rowEnd=l.rowEnd-Math.ceil((o.bottom-l.rowEnd)/t)*t)}return l})(c,a,e,u,h.direction,h.amount)}if(s&&bS.isRangeWithinRange(a,c)&&(a=null),!bS.isEqualRanges(a,be.current)){if(ye(a),be.current=a,!a){try{Q?.()}catch(t){}return void ee?.()}It(!1)}Ve.current=n,VE(r,i,e)},onPointerUp:(t,n)=>{Ve.current=n,Promise.resolve(It(!0)).finally(()=>{ee?.(),ye(null),be.current=null,At.current=null,me(null),e.current?.focus()})}}),[A]),zt=Tk(Pt),Ft=$(()=>({onPointerDown:zt}),[zt]),[Nt,Vt]=N(null),Ht=F(null),Bt=$(()=>({onPointerDown:(t,n)=>{if(Ve.current=n,!e||!e.current)return!1;const o=e.current.getViewFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY),r=o?.getCellCoordsFromClient(t.nativeEvent.clientX,t.nativeEvent.clientY);if(!r)return;if(!1===C?.(t,r,ce))return!1;t.stopPropagation(),me("default");const i=o.getRelativePointFromClient(0,0),l=de.current?.ranges[de.current?.ranges.length-1]??bS.cellToRange(de.current?.cell),a=o.toClipBounds(o.getRangeCoordsBounds(l)),s={x:0,y:0};a.x-i.x>t.nativeEvent.clientX?s.x=t.nativeEvent.clientX-(a.x-i.x):t.nativeEvent.clientX>=a.x-i.x+a.width&&(s.x=Math.max(0,t.nativeEvent.clientX-(a.x-i.x+a.width))+1),a.y-i.y>t.nativeEvent.clientY?s.y=t.nativeEvent.clientY-(a.y-i.y):t.nativeEvent.clientY>=a.y-i.y+a.height&&(s.y=Math.max(0,t.nativeEvent.clientY-(a.y-i.y+a.height))+1),T?.(l,t.nativeEvent,n),Ht.current={range:l,anchor:o.getAnchor(),cell:r,isMoving:!1,extrusion:s}},onPointerMoveOrWait:(t,n,o)=>{if(I||!e?.current||!de.current||!Ht.current)return;const r=t.clientX-o.clientX,i=t.clientY-o.clientY;if(Ht.current.isMoving=Ht.current.isMoving||Math.abs(r)>Math.max(1,2)||Math.abs(i)>Math.max(1,2)||performance.now()-o.timeStamp>500,!Ht.current.isMoving)return;const l=Ht.current.anchor,a=Ht.current.extrusion;let s=e.current.getViewFromLocation(l),c=s.getCellCoordsFromClient(t.clientX-a.x,t.clientY-a.y,!0);if(!c)return;const d=Ht.current.cell,u=Ht.current.range,h=X(),p=u.colEnd-u.colStart+1,f=Math.min(Math.max(0,d.colIndex-u.colStart),p-1),m=Math.min(h.right-p+1,Math.max(h.left,c.colIndex-f)),g=u.rowEnd-u.rowStart+1,y=Math.min(Math.max(0,d.rowIndex-u.rowStart),g-1),b=Math.min(h.bottom-g+1,Math.max(h.top,c.rowIndex-y)),w={colStart:m,colEnd:m+p-1,rowStart:b,rowEnd:b+g-1};bS.isEqualRanges(Nt,w)&&!(e=>!e||!Ve.current||Ve.current.ctrlKey!==e.ctrlKey||Ve.current.shiftKey!==e.shiftKey||Ve.current.altKey!==e.altKey||Ve.current.metaKey!==e.metaKey)(t)||(Vt(w),M?.(w,t,n)),Ve.current=n,VE(s,c,e)},onPointerUp:(t,n)=>{Ve.current=n;const o=()=>{Vt(null),Ht.current=null,me(null),e.current?.focus()};if(!Ht.current)return void o();const r=Ht.current.range,i=Nt;D?.(r,t,n),Promise.resolve(r&&i&&R?.(r,i,t,n)).finally(()=>{o()})}}),[Nt]),$t=Tk(Bt),jt=$(()=>({onPointerDown:$t}),[$t]),Wt=F(null),Ut=$(()=>{const e=bS.isEqualSelectionCoords(ce,Wt.current)?Wt.current:ce;return Wt.current=e,e},[ce]),qt=H(t=>{let n=null,o="br";const r=[],i={stroke:m,fill:B,strokeWidth:.5},l=(e,n,o)=>{const r=t.toClipBounds(t.getRangeCoordsBounds(e),AE);if(!r)return;r.x=r.width>0?r.x:r.x-i.strokeWidth/2,r.y=r.height>0?r.y:r.y-i.strokeWidth/2,r.width=Math.max(r.width,i.strokeWidth),r.height=Math.max(r.height,i.strokeWidth);const l={key:`selection-fill-${n}`,range:e,...r,...i};if(o){const e=t.getCellCoordsAsRangeCoords(o);l.cell=o,l.pathBounds=t.toClipBounds(t.getRangeCoordsBounds(e),AE),l.pathBounds&&(l.pathBounds.width<=0||l.pathBounds.height<=0)&&(delete l.pathBounds,delete l.cell)}return ne(l)};let a=ce?NE(ce):null;const s=a?.cell?t.getCellCoordsAsRangeCoords(a?.cell):PE;!a||a.ranges&&0!==a.ranges.length||(a={ranges:[s],rangeIndex:0,cell:a.cell});for(let e=0;a&&e<a.ranges.length;e++){const i=a.ranges[e],s=l(i,e,e===a.rangeIndex?a.cell:null);s&&r.push(s);const c=2,d=.5,u=t.toClipBounds(t.getRangeCoordsBounds(i,{top:0,left:0,right:0,bottom:0}),AE);if(u){const t=(a.ranges.length,4);r.push(ne({range:i,key:`selection-inside-edge-${e}`,x:u.x-1,y:u.y-1,width:Math.max(u.width+1,0),height:Math.max(u.height+1,0),style:{overflow:"hidden"},stroke:m,strokeWidth:t}))}if(1===a.ranges.length){const n=t.toClipBounds(t.getRangeCoordsBounds(i),AE);if(n){I||r.push(ne({range:i,key:`move-selection-hit-box-${e}`,x:n.width>1?n.x:n.x-(P/2+1),y:n.height>1?n.y:n.y-(P/2+1),width:Math.max(n.width+2,1),height:Math.max(n.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:Nt?void 0:"move",pointerEvents:"stroke"},strokeWidth:P,...jt}));const t=c;r.push(ne({range:i,key:`selection-single-${e}`,x:n.x-t/2,y:n.y-t/2,width:Math.max(n.width+t/2,1),height:Math.max(n.height+t/2,1),stroke:j,strokeWidth:t}))}}else{const n=t.toClipBounds(t.getRangeCoordsBounds(i,{top:-1,left:-1,right:-2,bottom:-2}),AE);n&&r.push(ne({range:i,key:`selection-multi-${e}`,x:n.width>1?n.x:n.x-d/2,y:n.height>1?n.y:n.y-d/2,width:Math.max(n.width,d)+1,height:Math.max(n.height,d)+1,stroke:j,style:{overflow:"hidden"},strokeWidth:2}))}if(a.ranges.length>1&&e===a.rangeIndex){const n=t.getCellCoordsAsRangeCoords(a.cell),o=t.toClipBounds(t.getRangeCoordsBounds(n,{top:1,left:1,right:-1,bottom:-1}),AE);o&&r.push(ne({range:i,key:`selection-anchor-${e}`,x:o.x,y:o.y,width:Math.max(o.width,d),height:Math.max(o.height,d),stroke:j,style:{overflow:"hidden"},strokeWidth:2}))}if(e===a.ranges.length-1){n=null,o=null;const e=i.rowStart===X().top&&i.rowEnd===X().bottom,r=i.colStart===X().left&&i.colEnd===X().right,l=t.getRangeCoordsBounds(i);let a=null;if(e||r){if(a=t.toClipBounds(l,AE),Object.keys(t.allViews()).length>1){const n=t.getVisibleRangeCoords(),o=t.allViews()[$x],l=t.allViews()[jx],s=t.allViews()[Wx],c=t.getAnchor();(r&&(c===jx&&o||c===Ux&&s||!bS.isCellWithinRange({colIndex:i.colStart,rowIndex:i.rowEnd},n)&&!bS.isCellWithinRange({colIndex:i.colStart,rowIndex:i.rowEnd+1},n))||e&&(c===Wx&&o||c===Ux&&l||!bS.isCellWithinRange({colIndex:i.colEnd,rowIndex:i.rowStart},n)&&!bS.isCellWithinRange({colIndex:i.colEnd+1,rowIndex:i.rowStart},n)))&&(a=null)}}else a=t.toClipBounds(l,AE);if(!a||0===a.width||0===a.height)continue;n={x:a.x+a.width+1,y:a.y+a.height+1},0===a.width||0===a.height||i.rowStart===X().top&&i.colStart===X().left&&i.rowEnd===X().bottom&&i.colEnd===X().right||(e?(n.y=c,o="tr"):r&&(n.x=c,o="bl"))}}let c=null;if(we){const e=t.toClipBounds(t.getRangeCoordsBounds(we,{top:0,left:0,right:0,bottom:0}),AE);if(e){const t=2;c=ne({...i,range:we,key:"remove-selection",x:e.x,y:e.y,width:e.width,height:e.height,strokeWidth:t,stroke:W,fill:q})}}let d=null;if(ge){const e=t.toClipBounds(t.getRangeCoordsBounds(ge,{top:0,left:0,right:0,bottom:0}),AE);if(e){const t=2;d=ne({range:ge,key:"selection-fill-outline",x:e.x-t/2,y:e.y-t/2,width:e.width+t/2,height:e.height+t/2,strokeWidth:t,stroke:j,strokeDasharray:"3 2"})}}let u=null;!f&&n&&!Nt&&(u=Z(EE,{...n,corner:o,size:7.5,borderStroke:`${m} solid`,style:{borderRadius:1},background:j,...Ft,key:"fillHandle"}));const h=[...r];if(c&&h.push(c),d&&h.push(d),u&&h.push(u),!G&&ze&&1===a?.ranges.length&&a.ranges[a.ranges.length-1]){const n=a.ranges[a.ranges.length-1],o=n.rowStart===X().top&&n.rowEnd===X().bottom,r=n.colStart===X().left&&n.colEnd===X().right,i={view:t,range:n,borderStroke:`${j} solid`,background:m,selectionTouchPointerHandler:$e,...K,onTouchSelectStart:e=>ke(e),onTouchSelectEnd:()=>ke(null),currentTouchAnchor:Ce};h.push(O(IE,{anchor:r?"b":o?"r":"br",scrollableElement:e.current,...i},"touch-select-handle-after")),h.push(O(IE,{anchor:r?"t":o?"l":"tl",scrollableElement:e.current,...i},"touch-select-handle-before"))}if(Nt){const e=t.toClipBounds(t.getRangeCoordsBounds(Nt,{top:1,left:1,right:1,bottom:1}),AE);e&&h.push(ne({range:Nt,key:"selection-move-outline",x:e.x-z/2,y:e.y-z/2,width:Math.max(e.width+z/2,1),height:Math.max(e.height+z/2,1),stroke:j,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:z}))}return O("div",{children:h},"selection")},[Ut,we,f,ge,I,Nt,X,m,j,B,W,q,G,K,Ce]),Zt=$(()=>{const t=()=>e.current;return[new Hk("moveToPageDown",t,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>ot(!1)),new Hk("selectToPageDown",t,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[fC]}]},()=>ot(!0)),new Hk("moveToPageRight",t,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[mC]}]},()=>it(!1)),new Hk("selectToPageRight",t,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[mC,fC]}]},()=>it(!0)),new Hk("moveToPageUp",t,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>rt(!1)),new Hk("selectToPageUp",t,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[fC]}]},()=>rt(!0)),new Hk("moveToPageLeft",t,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[mC]}]},()=>lt(!1)),new Hk("selectToPageLeft",t,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[mC,fC]}]},()=>lt(!0)),new Hk("selectColumn",t,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[gC]}},Ue),new Hk("selectRow",t,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[fC]}},qe),new Hk("selectToColumnStart",t,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>Ge(!0)),new Hk("selectToColumnEnd",t,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Ke(!0)),new Hk("moveToRowStart",t,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>Xe(!1)),new Hk("selectToRowStart",t,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[fC]}]},()=>Xe(!0)),new Hk("moveToSheetStart",t,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[gC]}]},()=>Ye(!1)),new Hk("selectToSheetStart",t,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[gC,fC]}]},()=>Ye(!0)),new Hk("moveToRowEnd",t,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>Je(!1)),new Hk("selectToRowEnd",t,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[fC]}]},()=>Je(!0)),new Hk("moveToSheetEnd",t,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[gC]}]},()=>Qe(!1)),new Hk("selectToSheetEnd",t,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[gC,fC]}]},()=>Qe(!0)),new Hk("scrollToActiveCoords",t,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[gC]}},Ze),new Hk("scrollToActiveCoordsClearSelection",t,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[fC]}},()=>{Pe(),Lt(ce.cell,!0)}),new Hk("traverseSelectionRight",t,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},st),new Hk("traverseSelectionLeft",t,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[fC]}},at),new Hk("traverseSelectionDown",t,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},dt),new Hk("traverseSelectionUp",t,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[fC]},{key:"NumpadEnter",modifiers:[fC]}]},ct),new Hk("moveLeft",t,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},ft),new Hk("selectLeft",t,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[fC]}]},mt),new Hk("moveContentfulLeft",t,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[gC]}]},gt),new Hk("selectContentfulLeft",t,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[gC,fC]}]},yt),new Hk("moveRight",t,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},bt),new Hk("selectRight",t,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[fC]}]},wt),new Hk("moveContentfulRight",t,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[gC]}]},vt),new Hk("selectContentfulRight",t,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[gC,fC]}]},xt),new Hk("moveUp",t,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},St),new Hk("selectUp",t,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[fC]}]},Ct),new Hk("moveContentfulUp",t,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[gC]}]},kt),new Hk("selectContentfulUp",t,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[gC,fC]}]},Et),new Hk("moveDown",t,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},_t),new Hk("selectDown",t,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[fC]}]},Tt),new Hk("moveContentfulDown",t,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[gC]}]},Mt),new Hk("selectContentfulDown",t,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[gC,fC]}]},Dt),new Hk("selectVisible",t,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[mC]}},tt),new Hk("traverseSelectionPreviousRange",t,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[gC,mC]}},ut),new Hk("traverseSelectionNextRange",t,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[gC,mC]}},ht),new Hk("traverseSelectionCorners",t,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[gC]}},pt)]},[]);return $(()=>{t?.addCommands(Zt,!0)},[t]),{selection:Ut,setSelectionCell:Lt,setSelectionRanges:he,overlay:qt,cursor:fe,onPointerDown:Be,clearLastSelection:Rt,newSelection:Ie,modifySelection:Le,appendSelection:Ae,clearSelections:Pe,isEntire:Ot,navigate:je,navigateSelection:We}};function $E(e,t){if(!e)throw new Error("Invariant failed")}const jE={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},WE=Object.freeze({top:0,left:0}),UE=Object.freeze({bottom:-4,right:-4}),qE=Object.freeze({horizontal:!0,vertical:!0}),ZE=[$x,jx,Wx,Ux],GE=3e3,KE={},XE=z(j((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:l,defaultColumnWidth:a,getRowHeight:s,getColumnWidth:c,layout:d,onViewportScroll:u,onImmediateScroll:h,showGridLines:p=!0,gridLineColor:f="rgb(224, 224, 224)",gridLineRowsProps:m,gridLineColumnsProps:g,clipCells:y=!0,cursor:b,freezeLeft:w=0,freezeTop:v=0,freezeLeftProps:x,freezeTopProps:S,cellRenderer:C,onViewportChange:k,onFirstRender:E,overlayRenderer:_,overlayProps:T,overlays:M,overlaysProps:D,allowOverlaysOverflow:R=!1,stageProps:A,stageWrapper:P=null,hiddenRowsAt:z,hiddenColumnsAt:j,hiddenCellAt:W,getVisibleCells:q,zoom:G=1,enableMouseWheel:K=!0,onWheelScroll:X,getCellCoordsAsRangeCoords:Y=bS.cellToRange,scrollPoint:J=WE,style:Q={},...ee}=e;$E(C),$E(!e?.children);const te=EC(h,[h]),ne=EC(k,[k]),oe=EC(u,[u]),re=EC(X,[X]),ie=EC(E,[E]),le=F(null),ae=F(null),se=F(null),[ce,de]=B(e=>e+1,0),[ue,he]=N({left:J?.left??0,top:J?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),pe=F(null),fe=F(ue),{top:me,left:ge,verticalScrollDirection:ye,horizontalScrollDirection:be}=ue,we=F(!1),ve=(e=>{const{rowCount:t,columnCount:n,defaultRowHeight:o,getRowHeight:r,defaultColumnWidth:i,getColumnWidth:l}=e||{},a=F({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),s=EC(e=>Gk({itemType:"row",itemCount:t,itemSize:r??(()=>o??20),instanceProps:a.current,offset:e}),[t,r,o]),c=EC(e=>-1===e?0:Zk({itemType:"row",index:e,itemSize:r??(()=>o??20),instanceProps:a.current}).offset,[r,o]),d=EC(e=>Zk({itemType:"row",index:e,itemSize:r??(()=>o??20),instanceProps:a.current}).size,[r,o]),u=EC(e=>Gk({itemType:"column",itemCount:n,itemSize:l??(()=>i??75),instanceProps:a.current,offset:e}),[n,l,i]),h=EC(e=>-1===e?0:Zk({itemType:"column",index:e,itemSize:l??(()=>i??75),instanceProps:a.current}).offset,[l,i]),p=EC(e=>Zk({itemType:"column",index:e,itemSize:l??(()=>i??75),instanceProps:a.current}).size,[l,i]),[f,m]=B(e=>e+1,0),g=()=>({getRowOffset:c,getColOffset:h,getRowIndex:s,getColIndex:u}),[y,b]=N(()=>e?g():null);return V(()=>{b(e?g():null)},[f,t,n,i,o,d,p]),y})({rowCount:r,columnCount:i,defaultRowHeight:l,defaultColumnWidth:a,getRowHeight:s,getColumnWidth:c}),xe=F(null),Se=$(()=>{const e=d||ve;return xe.current=null,{getColOffset:t=>e.getColOffset(t)*G,getColIndex:t=>e.getColIndex(t/G),getRowOffset:t=>e.getRowOffset(t)*G,getRowIndex:t=>e.getRowIndex(t/G)}},[ve,d,G]),Ce=(e,t,n)=>{const o=(t?.left??0)+0,r=(t?.top??0)+0;return{getColOffset:t=>e.getColOffset(t)-o,getColIndex:t=>e.getColIndex(t+o),getRowOffset:t=>e.getRowOffset(t)-r,getRowIndex:t=>e.getRowIndex(t+r)}},ke=H((e,t=!1)=>fE(e,t,Se.getRowOffset,t?0:r),[r,Se?.getRowOffset]),Ee=EC(z??ke,[z]),_e=H((e,t=!1)=>fE(e,t,Se.getColOffset,t?i:0),[i,Se?.getColOffset]),Te=EC(j??_e,[j]),Me=$(()=>Math.min(n??800,Se.getColOffset(i)),[Se.getColOffset,i,n]),De=$(()=>Math.min(o??600,Se.getRowOffset(r)),[Se.getRowOffset,r,o]),Re=H(e=>{jS.canUseDOM&&setTimeout(()=>{le.current?.focus({preventScroll:!0,...e})},0)},[]),Oe=H(e=>le.current?.contains(e)||ae.current?.contains(e),[]);V(()=>{we.current&&(pe.current&&pe.current.left!==fe.current?.left&&pe.current.top!==fe.current?.top||(pe.current=null,oe?.({left:ge,top:me})))},[ge,me]);const Le=EC(()=>({top:me,left:ge}),[me,ge]),Ie=$(()=>{const e=[];let t=0,n=0;"number"==typeof v?t=v:(t=v.index??0,n=(v.scrollOffset??0)*G);const o=n,i=Se.getRowOffset(t),l=i-o;if(t>0){const r=Ce(Se,{top:n+Se.getRowOffset(0)}),a=Se.getRowIndex(o),s=Se.getRowIndex(i-1);let c;e[1]={minIndex:a,maxIndex:s,minCoord:0,maxCoord:t-1,minBounds:0,maxBounds:l,visibleIndices:()=>c||(c=Object.freeze(iE(Ee,a,s)),c),layout:r,maxVirtualBounds:i,scrollOffset:n,freezeOffset:n}}const a=Math.max(0,De-l),s=Ce(Se,{top:me+l}),c=s.getRowIndex(0),d=s.getRowIndex(a);let u;return e[0]={minIndex:c,maxIndex:d,minCoord:t,maxCoord:r-1,minBounds:l,maxBounds:a,visibleIndices:()=>u||(u=Object.freeze(iE(Ee,c,d)),u),layout:s,maxVirtualBounds:Se.getRowOffset(r),scrollOffset:me,freezeOffset:(t>0?Se.getRowOffset(t):0)-n},e},[Se.getRowIndex,Se.getRowOffset,Ee,De,r,v,me,G]),Ae=$(()=>{const e=[];let t=0,n=0;"number"==typeof w?t=w:(t=w.index??0,n=(w.scrollOffset??0)*G);const o=n,r=Se.getColOffset(t),l=r-o;if(t>0){const i=Ce(Se,{left:n+Se.getColOffset(0)}),a=Se.getColIndex(o),s=Se.getColIndex(r-1);let c;e[1]={minIndex:a,maxIndex:s,minCoord:0,maxCoord:t-1,minBounds:0,maxBounds:l,visibleIndices:()=>c||(c=Object.freeze(iE(Te,a,s)),c),layout:i,maxVirtualBounds:r,scrollOffset:n,freezeOffset:n}}const a=Math.max(0,Me-l),s=Ce(Se,{left:ge+l}),c=s.getColIndex(0),d=s.getColIndex(a);let u;return e[0]={minIndex:c,maxIndex:d,minCoord:t,maxCoord:i-1,minBounds:l,maxBounds:a,visibleIndices:()=>u||(u=Object.freeze(iE(Te,c,d)),u),layout:s,maxVirtualBounds:Se.getColOffset(i),scrollOffset:ge,freezeOffset:(t>0?Se.getColOffset(t):0)-n},e},[Se.getColIndex,Se.getColOffset,Te,Me,i,w,ge,G]),Pe=F({}),ze=F([]),Fe=$(()=>{let e={};const t=(t,n,o,r,i)=>{const l={vertical:r?.vertical||!1,horizontal:r?.horizontal||!1};if(t>=Ae.length||n>=Ie.length)return null;const a={rowStart:Ie[n].minIndex,colStart:Ae[t].minIndex,rowEnd:Ie[n].maxIndex,colEnd:Ae[t].maxIndex};if(a.rowStart>a.rowEnd||a.colStart>a.colEnd)return null;const s={getColIndex:e=>Ae[t].layout.getColIndex(e),getColOffset:e=>Ae[t].layout.getColOffset(e),getRowIndex:e=>Ie[n].layout.getRowIndex(e),getRowOffset:e=>Ie[n].layout.getRowOffset(e)},c=Object.freeze({left:i?.left??0,top:i?.top??0,right:i?.right??0,bottom:i?.bottom??0}),d=Object.freeze({x:Ae[t].minBounds,y:Ie[n].minBounds,width:Ae[t].maxBounds,height:Ie[n].maxBounds}),u=(e,t)=>gE(s,e??a,t),h={width:Ae[t].maxVirtualBounds,height:Ie[n].maxVirtualBounds},p={left:Ae[t].scrollOffset,top:Ie[n].scrollOffset},f={left:Ae[t].freezeOffset,top:Ie[n].freezeOffset},m={width:Me,height:De};let g=null,y=null;const b=(f.top+(r.vertical?p.top:0))/G,w=(f.left+(r.horizontal?p.left:0))/G;return{getStage:()=>le.current??null,getVisibleRangeCoords:()=>a,toClipBounds:(e,t)=>{let n,o=0;return void 0===t||"number"==typeof t?(n=u(a),o=t):n=t,((e,t,n=0)=>{if(e.x>t.width||e.y>t.height)return null;const o={left:e.x,top:e.y,bottom:e.height+e.y,right:e.width+e.x},r={left:t.x+n,top:t.y+n,bottom:t.height-2*n+t.y,right:t.width-2*n+t.x},i={left:Math.max(o.left,r.left),top:Math.max(o.top,r.top),bottom:Math.min(o.bottom,r.bottom),right:Math.min(o.right,r.right)},l={x:i.left,y:i.top,width:i.right-i.left,height:i.bottom-i.top};return l.height<0||l.width<0?null:l})(e??{x:0,y:0,width:d.width,height:d.height},n,o)},toViewBounds:e=>0===w&&0===b&&1===G?e:{x:(e.x-w)*G,y:(e.y-b)*G,width:e.width*G,height:e.height*G},toAbsoluteBounds:e=>0===w&&0===b&&1===G?e:{x:e.x/G+w,y:e.y/G+b,width:e.width/G,height:e.height/G},getRelativePointFromClient:(e,t)=>{const n=je(e,t);return{x:n.x-d.x,y:n.y-d.y}},getLayout:()=>s,getCellCoordsAsRangeCoords:Y,getVisibleColumns:()=>Ae[t].visibleIndices(),getVisibleRows:()=>Ie[n].visibleIndices(),getVisibleColumnOffsets:()=>(g||(g=mE(Ae[t].layout,!0,Ae[t].visibleIndices(),a.colStart,a.colEnd)),g),getVisibleRowOffsets:()=>(y||(y=mE(Ie[n].layout,!1,Ie[n].visibleIndices(),a.rowStart,a.rowEnd)),y),getTotalRangeCoords:()=>({colStart:Ae[t].minCoord,colEnd:Ae[t].maxCoord,rowStart:Ie[n].minCoord,rowEnd:Ie[n].maxCoord}),getRangeCoordsBounds:u,scrollCellCoordsIntoView:(e,t)=>Qe(e,t,o),getCellCoordsFromClient:(e,t,n=!1)=>{const o=je(e,t);if(!o)return null;const r=s.getColIndex(o.x-d.x),i={rowIndex:s.getRowIndex(o.y-d.y),colIndex:r};if(n)return i;const l=Y(i);return{rowIndex:l.rowStart,colIndex:l.colStart}},getZoom:()=>G,getAnchor:()=>o,getBounds:()=>d,getInsets:()=>c,getTotalSize:()=>h,getViewportSize:()=>m,getScrollTopLeft:()=>p,getFreezeTopLeft:()=>f,getScrollOrientation:()=>l,allViews:()=>e}};let n=e[Ux]=t(0,0,Ux,qE,UE);return n&&(e[Ux]=n),n=t(0,1,jx,{horizontal:!0}),n&&(e[jx]=n),n=t(1,0,Wx,{vertical:!0}),n&&(e[Wx]=n),n=t(1,1,$x,{}),n&&(e[$x]=n),Pe.current=null,e=Object.freeze(e)},[Ie,Ae,Y]),Ne=Object.keys(Fe),Ve=Ae[0]?.maxVirtualBounds??0,He=Ie[0]?.maxVirtualBounds??0,Be=$(()=>({left:Ae[1]?Ae[1].layout.getColOffset(Ae[1].maxIndex+1):0,top:Ie[1]?Ie[1].layout.getRowOffset(Ie[1].maxIndex+1):0}),[Fe]);V(()=>{if(ze.current.length>0){for(let e=0;e<ze.current.length;e++)ze.current[e]();ze.current=[]}},[Fe]);const $e=EC(()=>({containerWidth:Me,containerHeight:De,totalWidth:Ve,totalHeight:He}),[Me,De,Se]);V(()=>{!pe.current&&we.current&&ne({top:me,left:ge,width:Me,height:De,totalWidth:Ve,totalHeight:He})},[me,ge,Ve,He]),V(()=>{we.current&&ne({top:me,left:ge,width:Me,height:De,totalWidth:Ve,totalHeight:He})},[Me,De]);const je=H((e,t)=>{$E("number"==typeof e&&"number"==typeof t);const n=le.current?.getBoundingClientRect();return n?{x:e-n.x,y:t-n.y}:{x:e,y:t}},[]),We=EC(e=>Fe[e]||null,[Fe]),Ue=EC((e,t)=>{if(1===Object.keys(Fe).length)return Fe[Ux];const n=je(e,t);if(!n)return null;const{x:o,y:r}=n;let i=null;const l=ZE;for(let e=0;!i&&e<l.length;e++){const t=Fe[l[e]];t&&yE(o,r,t.getBounds())&&(i=t)}return i||(i=Fe[Ux]),i},[Fe,Y]),qe=EC(()=>Fe[Ux].getVisibleRangeCoords(),[Fe[Ux]]),Ze=F(null),Ge=H(()=>{null!==Ze.current&&jS.cancelTimeout(Ze.current),Ze.current=jS.requestTimeout(Ke,150)},[]),Ke=H(()=>{Ze.current=null,he(e=>{const t={...e,verticalScrollDirection:null,horizontalScrollDirection:null};return fe.current=t,t})},[]),Xe=EC(e=>{const t=e?.left??e?.[0],n=e?.top??e?.[1],o=void 0!==t?Math.min(Ve-Me,Math.max(Ae?.[1]?.scrollOffset??0,t)):fe.current.left,r=void 0!==n?Math.min(He-De,Math.max(Ie?.[1]?.scrollOffset??0,n)):fe.current.top;if(fe.current.left===o&&fe.current.top===r)return;let i=null,l=null;fe.current.left>o?i=Hx:fe.current.left<o&&(i=Bx),fe.current.top>r?l=Nx:fe.current.top<r&&(l=Vx),jS.throttle(()=>{he(e=>{const t={...e,left:o,top:r,horizontalScrollDirection:i,verticalScrollDirection:l};return fe.current=t,t})},17)(),pe.current?.top===r&&pe.current?.left===o||(pe.current={left:o,top:r},te({left:o,top:r}),ne({left:o,top:r,width:Me,height:De,totalWidth:Ve,totalHeight:He})),Ge()},[Ve,He,Ie,Ae]);V(()=>{pe.current||Xe({left:ge,top:me})},[Ve,Me,He,De]),U(()=>{pe.current={left:J?.left,top:J?.top},Xe(pe.current)},[J?.left,J?.top]);const Ye=EC(e=>{const t=e?.left??e?.[0],n=e?.top??e?.[1],o=e?.behavior??"auto",r={left:fe.current.left+(t??0),top:fe.current.top+(n??0)};o&&(r.behavior=o),Xe(r)},[Ve,Me,He,De]),Je=H(e=>{let t=null;if(Object.keys(Fe).length>1){const n=ZE;for(let o=0;!t&&o<n.length;o++){const r=Fe[n[o]];r&&bS.isCellWithinRange(e,r.getVisibleRangeCoords())&&(t=r)}}return t||(t=Fe[Ux]),t},[Fe]),Qe=EC((e,t={inline:"nearest",block:"nearest"},n=null)=>{const o={rowIndex:0,colIndex:0,...e};let r=null;if(null!==n){if(r=Fe[n],null===r)return new Promise((e,t)=>{t("Invalid view")})}else r=Je(o);const i=Y(o),l=r.getLayout(),a=l.getColOffset(i.colStart),s=l.getRowOffset(i.rowStart),c=l.getColOffset(i.colEnd+1),d=l.getRowOffset(i.rowEnd+1),u=r.getBounds(),h=r.getTotalSize(),p=r.getScrollTopLeft(),f=((e,t,n=!0)=>(n=!0===n?{block:"start",inline:"end"}:!1===n?{block:"end",inline:"end"}:{block:"end",inline:"end",...n},{left:dE(n.inline,e.x,e.x+e.width,t.left,t.left+t.width,t.totalWidth),top:dE(n.block,e.y,e.y+e.height,t.top,t.top+t.height,t.totalHeight)}))({x:a+p.left,y:s+p.top,width:c-a,height:d-s},{left:p.left,top:p.top,width:u.width,height:u.height,totalWidth:h.width,totalHeight:h.height},t),m={...f};m.left>ge?m.left+=20:m.left<ge&&(m.left-=0),m.top>me?m.top+=20:m.top<me&&(m.top-=0);const g=r.getScrollOrientation();return g.horizontal&&void 0!==e.colIndex||delete m.left,g.vertical&&void 0!==e.rowIndex||delete m.top,new Promise((e,t)=>{try{Xe(m),e(m)}catch(e){t(e)}})},[Ve,He,Fe,Y]),et=EC(e=>{const t=e.shiftKey;e.preventDefault();const{deltaX:n,deltaY:o,deltaMode:r}=e;if(se.current)return;let i=re?.(e);if(!1===i)return;let l=t?o:n,a=o;const s=t||Math.abs(l)>Math.abs(a);1===r&&(a*=0),se.current=window.requestAnimationFrame(()=>{se.current=null,Ye(s?{left:l}:{top:a})})},[Ve,Me,He,De,re]),tt=H((e=null)=>{xe.current=null,Pe.current=null,de()},[]);U(()=>{tt()},[C]);const nt=lk(t,()=>({stage:le.current,focus:Re,contains:Oe,invalidate:tt,scrollTo:Xe,scrollBy:Ye,scrollCellCoordsIntoView:Qe,getScrollPosition:Le,getDimensions:$e,getViewport:qe,handleWheel:et,rowCount:r,columnCount:i,getLayout:()=>Se,getRelativePointFromClient:je,getViewFromClient:Ue,getViewFromCellCoords:Je,getViewFromLocation:We,onViewChangeOnce:e=>{ze.current.push(e)}}),[r,i,Fe]);V(()=>(K&&nt.current?.addEventListener("wheel",et,{passive:!1}),we.current=!0,pe.current=null,()=>{nt.current?.removeEventListener("wheel",et)}),[K]);const ot=F([]),rt=(e,t)=>{e&&_&&(ot.current=[],t.push((e=>{const n=`view:${e.getAnchor()}:overlay:${t.length}`,o=_?.({key:n,view:e},e=>ot.current[0]=e);if(!o)return null;const r=e.getBounds();return O("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${r.width}px`,height:`${r.height}px`,overflow:"hidden"},children:o},`overlay-${e.getAnchor()}-0`)})(e)))},it=$(()=>{const e={},t=Object.keys(Fe);for(let n=0;n<t.length;n++){const o=t[n],r=[];rt(Fe[o],r),e[o]={overlays:r}}return e},[ce,_,r,i,Ie,Ae]),lt=(e,t,n,o,r,i,l)=>{if(!e)return;const a=e.getVisibleColumns(),s=e.getVisibleRows();if(0===a.length||0===s.length)return;let c=null;if(q)c=q(e);else{c=[];for(let e=0;e<s.length;e++)for(let t=0;t<a.length;t++){const n={rowIndex:s[e],colIndex:a[t]};if(W?.(n))continue;const o={coords:n,range:Y(n)};c.push(o)}}const d=e.getVisibleColumnOffsets(),u=e.getVisibleRowOffsets(),h=e.getScrollTopLeft(),p=e.getFreezeTopLeft(),f=h.left+p.left,m=h.top+p.top,g=Math.trunc(f/GE),y=Math.trunc(m/GE),b={},w=(e,t,n,o,r)=>{const a=`view:${e.getAnchor()}:cell:${cE(t.rowIndex,t.colIndex)}`,s=o.x,c=o.y,d=Math.trunc((f+s)/GE)-g,u=Math.trunc((m+c)/GE)-y;b[u]||(b[u]={});let h=b[u][d];h||(h=b[u][d]=[]);let p=i?.get(a);if(!p){const i=(f+s)%GE,l=(m+c)%GE;p=C({key:a,coords:t,bounds:o,zoom:G,range:n,view:e,value:r,style:{left:rk.boundPixel(i),top:rk.boundPixel(l),width:rk.boundPixel(o.width,!0),height:rk.boundPixel(o.height,!0)}})}l?.set(a,p),h.push(p)};for(let t=0;c&&t<c.length;t++){const i=c[t],l=i?.coords??i;if(!l)continue;const a=i?.range??{rowStart:l.rowIndex,colStart:l.colIndex,rowEnd:l.rowIndex,colEnd:l.colIndex},s=e.getVisibleRangeCoords();if(!bS.isRangesIntersect(a,s)&&!bS.isRangeWithinRange(a,s))continue;const h=a&&!bS.isSingleCell(a);if(!h&&W?.(l))continue;const p=l.rowIndex,f=l.colIndex,m=u[p],g=d[f];let y=null;m&&g&&(y={x:g.offset,y:m.offset,width:g.size,height:m.size});const b=cE(a.rowStart,a.colStart);if(h){if(r.has(b))continue;r.add(b),a.rowEnd-a.rowStart>0&&n.push(a),a.colEnd-a.colStart>0&&o.push(a)}if(h&&(y=gE(e.getLayout(),a)),!y){console.warn("no bounds for cell",b);continue}const v=i?.value;w(e,l,a,y,v)}const v=f%GE,x=m%GE,S=Object.keys(b);for(let n=0;n<S.length;n++){const o=b[S[n]];if(!o)continue;const r=Object.keys(o);for(let i=0;i<r.length;i++){const l=o[r[i]];if(!l)continue;const a=parseInt(S[n]),s=parseInt(r[i]),c=a+y,d=s+g,u=`view:${e.getAnchor()}:segment:${d}:${c}`;t.push(O("div",{className:"cell-container",style:{transform:`translate(${rk.boundPixel(s*GE-v,!0)}px, ${rk.boundPixel(a*GE-x,!0)}px)`,willChange:"transform"},children:l},u))}}},at=$(()=>{const e=xe.current,t=new Map,n={},o=Object.keys(Fe);for(let r=0;r<o.length;r++){const i=o[r],l=[],a=[],s=[];lt(Fe[i],s,l,a,new Set,e,t),n[i]={cells:s,rangesH:l,rangesV:a}}return xe.current=t,n},[ce,r,i,Ie,Ae,p,Q,y,W,q,Y]),st=(e,t,n,o,r)=>{if(e)if(t){const t=`view:${e.getAnchor()}:hl:`,i=e.getVisibleRows();if(!i||0===i.length)return;const l=0,a=e.getBounds().width;let s=[];const c=r.sort(bS.rowFirstRangeComparator),d=e.getVisibleRangeCoords();for(let r=0;r<i.length&&i[r]<=d.rowEnd;r++){const u=i[r];if(u<d.rowStart)continue;let h=!1;for(;c.length>0&&c[0].rowStart<=u;){const e=c.shift();e.rowEnd>u&&(s.push(e),h=!0)}h&&(s=s.sort(bS.columnFirstRangeComparator));const p=e.getLayout(),g=p.getRowOffset(u+1);let y=l;for(let e=0;e<s.length+1;e++){let r=y,i=a;const l=s[e];e<s.length&&(i=Math.min(a,p.getColOffset(l.colStart)),y=Math.min(a,p.getColOffset(l.colEnd+1))),o.push(Z("path",{d:`M ${rk.boundPixel(r)} ${rk.boundPixel(g,!1,n)} L ${rk.boundPixel(i)} ${rk.boundPixel(g,!1,n)}`,stroke:f,strokeWidth:1,vectorEffect:"non-scaling-stroke",...m,key:t+u+":"+e}))}for(let e=s.length-1;e>=0;e--)s[e].rowEnd<=i[r+1]&&s.splice(e,1)}}else{const t=`view:${e.getAnchor()}:vl:`,i=e.getVisibleColumns();if(!i||0===i.length)return;const l=0,a=e.getBounds().height;let s=[];const c=r.sort(bS.columnFirstRangeComparator),d=e.getVisibleRangeCoords();for(let r=0;r<i.length&&i[r]<=d.colEnd;r++){const u=i[r];if(u<d.colStart)continue;let h=!1;for(;c.length>0&&c[0].colStart<=u;){const e=c.shift();e.colEnd>u&&(s.push(e),h=!0)}h&&(s=s.sort(bS.rowFirstRangeComparator));const p=e.getLayout(),m=p.getColOffset(u+1);let y=l;for(let e=0;e<s.length+1;e++){let r=y,i=a;const l=s[e];e<s.length&&(i=Math.min(a,p.getRowOffset(l.rowStart)),y=Math.min(a,p.getRowOffset(l.rowEnd+1)));let c=f;o.push(O("path",{d:`M ${rk.boundPixel(m,!1,n)} ${rk.boundPixel(r)} L ${rk.boundPixel(m,!1,n)} ${rk.boundPixel(i)}`,stroke:c,strokeWidth:1,vectorEffect:"non-scaling-stroke",...g},t+u+":"+e))}for(let e=s.length-1;e>=0;e--)s[e].colEnd<=i[r+1]&&s.splice(e,1)}}},ct=e=>{if(!at)return;const t={};for(let n=0;n<Ne.length;n++){const o=Ne[n],r=Fe[o],i=[];st(r,e,0,i,e?at[o].rangesH:at[o].rangesV);const l=r.getRangeCoordsBounds(),a=Math.ceil(l.width),s=Math.ceil(l.height);t[o]=O("svg",{width:`${a}`,height:`${s}`,viewBox:`0 0 ${a} ${s}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:i})}return t},dt=$(()=>!0===p||!0===p?.horizontal?ct(!0):null,[ce,p,Ie,v,w,f,m,r,i,Me,Ve,at]),ut=$(()=>!0===p||!0===p?.vertical?ct(!1):null,[ce,p,Ae,v,w,f,g,r,i,De,He,at]),ht=$(()=>0===Be.left?null:O(wE,{linePoints:[0,0,0,De+1],bounds:{x:Be.left,y:0,width:1,height:De+1},...x}),[ce,Be.left,De,x]),pt=$(()=>0===Be.top?null:O(wE,{linePoints:[0,0,Me+1,0],bounds:{x:0,y:Be.top,width:Me+1,height:1},...S}),[ce,Be.top,Me,S]),ft=$(()=>{const e=[],t=e=>{if(!e||!Fe[e])return;const t=Fe[e].getBounds();return L("div",{style:{position:"absolute",pointerEvents:"none",left:t.x,top:t.y,width:t.width,height:t.height,clip:`rect(0, ${t.width+1}px, ${t.height+1}px, 0)`},className:`view view-${e}`,children:[dt?.[e],ut?.[e],at?.[e].cells]},`view:${e}`)};for(let n=0;n<Ne.length;n++)e.push(t(Ne[n]));return O(I,{children:e})},[Fe,dt,ut,at]),mt=$(()=>{if(!t)return;const e=(e,t,n,o)=>{if(!o||0===o.length)return;const r=[];for(let i=0;i<o.length;i++){const l=o[i];let a=e?.get(l);a!==KE&&(a=l(n)??KE),t.set(l,a),a&&a!==KE&&r.push(a)}return r},n=(t,n,o)=>{if(!o)return;const r=o.getBounds(),i=o.getInsets(),l=o.getAnchor();return L("div",{className:kE("view",`view-${l}`,jE.view),style:{position:"absolute",pointerEvents:"none",left:r.x-i.left,top:r.y-i.top,width:r.width-(i.left+i.right),height:r.height-(i.top+i.bottom),clipPath:R?"inset(-2px)":"inset(0px)"},children:[e(t,n,o,M),it?.[l].overlays]},`view:${l}`)},o=Pe.current,r={},i=[],l=Object.keys(Fe);for(let e=0;e<l.length;e++){const t=l[e],a=o?.[t],s=r[t]=new Map;i.push(n(a,s,Fe[t]))}return Pe.current=r,i},[ce,Fe,R,M]),gt=$(()=>{const{style:e,...t}=A??{};return O("div",{style:{width:Me,height:De,...e},className:"sheetxl-stage",tabIndex:0,ref:le,...t,...ee,children:P?P(ft):ft})},[Me,De,ft,A,P]),yt=F(!1);return V(()=>{!yt.current&&at&&(yt.current=!0,ie?.(nt.current))},[at]),L("div",{className:kE("sheetxl-grid",jE["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Me,maxHeight:De,width:Me,height:De,...Q},ref:nt,children:[gt,L("div",{className:kE("sheetxl-overlays"),ref:ae,...D,children:[mt,ht,pt]})]})}));XE.displayName="BaseGrid";const YE=z(j((e,t)=>{const{width:n,height:o,style:r={},className:i,...l}=e,[a,{width:s,height:c}]=RE();return O("div",{className:i,style:{...r},children:O("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:a,children:O(XE,{ref:t,width:n??s,height:o??c,...l})})})}));YE.displayName="Grid";const JE=z(j((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:a,onScrollViewport:s,style:c={},className:d,onScroll:u,...h}=e,[p,f]=N(null),m=F(null),g=F(null);$E(!a),W(t,()=>g.current&&m.current?Object.assign(g.current,m.current):null);const y=H(e=>{g.current?.scrollTo(e),s?.(e)},[]);return O(ck,{className:d,style:c,ref:m,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:p,onScrollViewport:y,children:O(YE,{style:{width:"100%",height:"100%"},...h,onViewportChange:e=>f(e),ref:g})})}));JE.displayName="ScrollableGrid";const QE=()=>!1,e_=z(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=e=>`${e}`,headerStyle:l,headerStyleSelect:a=l,headerStyleSelectAll:s=a,headerStyleHover:c=s,verticalPadding:d=0,horizontalPadding:u=0,isSelected:h=QE,isSelectedAll:p=QE,coords:f,bounds:m,range:g,orientation:y,view:b,style:w,...v}=e,x=r/100,S=F(null),[C,k]=N(!1),E=h?.(t)||!1,_=p?.(t)?s:E?a:l;let T=_;if(C){let e=c;"function"==typeof c&&(e=c(_)),T=jS.mergeContentful(_,e)}return O("div",{ref:S,style:{background:T.fill,color:T.text?.fill,fontFamily:T.text?.fontFamily??l.text?.fontFamily,fontSize:96*(T.text?.fontSize??11)/72*x,fontStyle:T.text?.fontStyle,fontWeight:T.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${x}px`,...w,left:w.left-(y===Jx?1:0),top:w.top-(y===Qx?1:0),width:w.width+1,height:w.height+1,overflow:"hidden"},...v,onMouseMove:e=>{"touch"!==rk.detectIt().primaryInput&&0===e.buttons&&k(!0)},onMouseOut:e=>{k(!1)},children:i(t)})});e_.displayName="HeaderRenderer";const t_="ew-resize",n_="ns-resize",o_=z(j((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:l,disabled:a=!1,disabledResize:s=!1,isNextHidden:c,isHidden:d,isSelected:u,isSelectedAll:h,showTouchDivider:p,headerStyle:f,headerStyleSelect:m,headerStyleSelectAll:g,headerStyleHover:y,bounds:b,onPointerDown:w,onAutoFit:v,...x}=e,S=n===Jx;let C=f;u&&m&&(C=m),h&&g&&(C=g);const k="touch"===rk.detectIt().primaryInput;let E=S?14:8,_=E/2,T=0;c&&(T=-2),d&&(T=2),d&&(E=E/2+T,_=2*T);let M=C.dividerStrokeFill??C.strokeFill;return!(u||h)&&0===T&&(M=`linear-gradient(${S?180:90}deg, ${C.fill}, ${M} 55%, ${M} 100%)`),L("div",{className:kE("header-divider",{disabled:a},i,`index-${r}`),ref:t,onPointerDown:k?void 0:w,onDoubleClick:k?void 0:()=>v?.(),style:{top:(S?0:-E/2+(T-1))+"px",left:(S?-E/2+(T-1):0)+"px",width:S?E:"calc(100% + 1px)",height:S?"calc(100% + 1px)":E,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:a||s||k?void 0:S?t_:n_,...l},...x,children:[O("div",{style:{position:"relative",top:`${S?0:_}px`,left:`${S?_:0}px`,width:S?1:"100%",height:S?"100%":1,background:M},onDoubleClick:()=>v?.()}),p&&k?O("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:S?"-6px":"2px",bottom:S?"2px":"-9px",height:"24px",width:S?"24px":"18px",maxHeight:S?"calc(100% - 4px)":void 0,maxWidth:S?void 0:"calc(100% - 4px)",background:C.fill,border:`${g.edgeStrokeFill} solid 1px`,boxShadow:`0.5px 0.5px 0px 0px ${f.text.fill}`,display:"flex",alignItems:"center",justifyContent:"center"},onPointerDown:w,children:O("div",{style:{width:"6.4px",height:"12px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${encodeURIComponent(m.text.fill)}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",transform:S?void 0:"rotate(90deg)"}})}):null]})})),r_=(e,t)=>O(o_,{...e,ref:t}),i_=z(j((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:l=!1,resizeThreshold:a=1,dividerRenderer:s=r_,onDividerMouseDown:c,onDividerResizeStart:d,onDividerResize:u,onDividerResizeEnd:h,onDividerMouseUp:p,onDividerAutoFit:f,onPointerDown:m,...g}=e,y=EC(m,[m]),b=EC(f,[f]),w=n===Jx;let v=w?o.getVisibleColumns():o.getVisibleRows(),x=null;v.length>0&&(w?x=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:v[0],colEnd:v[v.length-1]}):o.getRangeCoordsBounds({rowStart:v[0],rowEnd:v[v.length-1],colStart:0,colEnd:0}),x=o.toClipBounds(x,AE));const S=F(null),[C,k]=N(null),E=(e,t)=>w?e.clientX-t.clientX:e.clientY-t.clientY,_=o.getLayout(),T=w?_.getColOffset(r+1):_.getRowOffset(r+1),M=Tk({processTouch:!0,onPointerDown:e=>{if(y?.(e),!i&&!l){const e=w?_.getColOffset(r):_.getRowOffset(r),t=T-e;S.current={isResizing:!1,startSize:t,index:r,view:o,orientation:n,onDividerMouseDown:c,onDividerResizeStart:d,onDividerResize:u,onDividerResizeEnd:h,onDividerMouseUp:p},k(S.current),c?.(r,t)}e.stopPropagation(),e.preventDefault()},onPointerUp:(e,t,n)=>{if(!S.current)return;S.current.isResizing&&S.current.onDividerResizeEnd?.(S.current.index,Math.max(0,S.current.startSize+E(e,n)),S.current.startSize);const o=S.current;S.current=null,k(S.current),o.onDividerMouseUp?.(o.index)},onPointerMoveOrWait:(e,t,n)=>{if(!S.current)return;const o=E(e,n);S.current.isResizing?S.current.onDividerResize?.(S.current.index,Math.max(0,S.current.startSize+o),S.current.startSize):Math.abs(o)>Math.max(1,a)&&(S.current={...S.current,isResizing:!0},k(S.current),S.current.onDividerResizeStart?.(S.current.index,Math.max(0,S.current.startSize+o))),e.stopPropagation(),e.preventDefault()}}),D=EC(()=>{b?.(r)},[r]);if(!x)return;const R=s({bounds:x,orientation:n,view:o,index:r,disabled:i,disabledResize:l,onAutoFit:D,onPointerDown:M,...g},t);if(!R)return;const{getPortalContainer:A}=hk();let P=null;return C&&C.isResizing&&C.index===r&&(P=dt(O("div",{style:{position:"absolute",cursor:w?t_:n_,left:0,top:0,width:"100%",height:"100%"}}),A(),"divider:"+r)),L(I,{children:[P,O("div",{className:kE("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${w?x.y:T}px`,left:`${w?T:x.x}px`,width:(w?0:x.width-1)+"px",height:(w?x.height-1:0)+"px",display:"flex"},tabIndex:-1,children:R})]})}));let l_=class{naturalDimensions(e,t={}){const n=document.createElement("div");let o=t?.lineHeight??"1";!t?.lineHeight&&t.paintableText?.fontSize&&(o=Math.ceil(1.2*t.paintableText.fontSize)+"px");const r=document.createElement("div");r.style.visibility="hidden",r.style.position="absolute",r.style.textRendering="geometricprecision",r.style.display="inline-grid",r.style.overflowWrap="break-word",r.style.maxWidth=t.maxWidth?t.maxWidth+"px":"100%",r.style.lineHeight=o,r.style.letterSpacing=(t.paintableText?.letterSpacing??0)+"px",r.style.fontSize=t.paintableText?.fontSize?t.paintableText.fontSize+"px":"unset",r.style.fontFamily=t.paintableText?.fontSize?t.paintableText.fontFamily:"unset",r.style.fontWeight=t.paintableText?.fontWeight?""+t.paintableText.fontWeight:"400",r.style.fontStyle=t.paintableText?.fontStyle?t.paintableText.fontStyle:"normal",r.style.whiteSpace="wrap"===t.paintableText?.wrap?"break-spaces":"pre",n.appendChild(r);const i=e.split("\n");for(let e=0;e<i.length;e++){let t=document.createElement("span");r.appendChild(t),t.textContent=i[e]}0!==i.length&&0!==i[i.length-1].length||r.appendChild(document.createElement("br")),document.body.appendChild(r);let l=r.getBoundingClientRect();return r.remove(),{width:l.width,height:l.height,maxLineHeight:1.2*(t.paintableText?.fontSize||1056/72)}}};const a_=((e=void 0)=>Object.freeze({clean:e,dirty:void 0,editMode:!1}))();z(j((e,t)=>{const{editState:n=a_,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:l,onCancelEdit:a,onDoneEdit:s,containerBounds:c,setNaturalDimensions:d,onNavigate:u,textProperties:h,style:p,autoFocus:f,...m}=e,g=F(null),{width:y=0}=c??{},[b,w]=N(()=>n);V(()=>{w(n)},[n]);const v=h?.align||"left",x=h?.vAlign||"middle",S=h?.fill||"#040404",C=h?.wrap||"wrap",k=h?.fontFamily||"Calibri",E=h?.fontSize||11,_=h?.fontWeight||400,T=h?.fontStyle||"normal",M=b.dirty??b.clean??"";let D=2;const R=96*E/72,L=1.2*R;"right"===x&&(D+=1);const I=$(()=>(new l_).naturalDimensions(M,{maxWidth:"wrap"===C?y-D:void 0,lineHeight:`${L}px`,paintableText:{fontStyle:T,wrap:C,letterSpacing:-.25}}),[M,C,D,R,k,_,T,d,y]),A=H(()=>I.maxLineHeight?I.maxLineHeight+"px":"1.2",[I]),[P,z]=N(A);U(()=>{z(A())},[c,I]),U(()=>{d?.({width:"wrap"===C?void 0:I.width+D,height:I.height})},[I,d]);const B=EC(i,[i]),j=EC(e=>{if(b.dirty===e)return;const t={...b};t.dirty=e,g.current,w(t),B?.(t)},[b]),W=EC(e=>{if(b.editMode===e)return;const t={...b};t.editMode=e,w(t),B?.(t)},[b]),q=EC(()=>{try{return l?.(b),s?.(),!0}catch(e){return!1}},[l,b]),Z=EC(()=>{w(n),a?.(),s?.()},[a,n]),G=EC(e=>{if(!g.current)return;if(e.isDefaultPrevented(),!(e.isTrusted||e.nativeEvent.ctrlKey||e.nativeEvent.metaKey||e.nativeEvent.altKey||e.nativeEvent.isComposing)&&-1!==Yk.indexOf(e.nativeEvent.key)){const t={...b};return t.dirty="Backspace"===e.nativeEvent.key?"":(t.dirty??"")+e.key,w(t),B?.(t),void e.preventDefault()}const t=e.nativeEvent.shiftKey;if(27===e.which)return e.preventDefault(),void Z();if(113===e.which)return W(!0),void e.preventDefault();if(13===e.which&&(e.preventDefault(),q()&&u?.(t?Nx:Vx)),9===e.which)return e.preventDefault(),void(q()&&u?.(t?Hx:Bx));if(!b.editMode){let t=null;switch(e.which){case 37:t=Hx;break;case 39:t=Bx;break;case 38:t=Nx;break;case 40:t=Vx}if(t)return void q()}},[b,u]),[K,X]=N(!f);V(()=>{X(!1)},[]);const Y=lk(t,()=>({startEdit(e){let t=e?.initialSelection;if(!t){const e=g.current.value.length??0;t={start:e,end:e,direction:"forward"}}g.current?.setSelectionRange(t.start,t.end,t.direction);const o={...n,editMode:e?.editMode??!1};void 0!==e?.text&&(o.dirty=e.text),o.editMode===n.editMode&&o.dirty===n.dirty||(w(o),B?.(o))},submitEdit:()=>q(),cancelEdit(){Z()},autoFocus(){g.current?.focus()},getLineHeight:()=>I?.maxLineHeight??L,dispatchEvent:e=>g.current.dispatchEvent(e)}),[n,r]);return O("div",{ref:Y,...m,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:I.height,maxWidth:"100%",maxHeight:"100%",...p},children:O("textarea",{spellCheck:"false",ref:g,value:M,autoFocus:!1,disabled:K,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${R}px`,fontFamily:`${k}`,fontWeight:`${_}`,fontStyle:`${T}`,padding:"0px",marginRight:"right"===v?"3px":"0px",marginLeft:"left"===v?"2px":"0px",lineHeight:P,height:I.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:v,background:"transparent",color:S,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:"wrap"===C?"break-spaces":"pre",wordWrap:"break-word"},onChange:e=>{j(e.target.value)},onDoubleClick:e=>{e.isTrusted},onMouseDown:e=>{W(!0)},onKeyDown:G})})})),z(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:l,style:a,...s}=e;return O("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:a?.fontSize||1056/72,...a},...s,children:t})}),function(){try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 {\n pointer-events: none;\n }\n._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 * {\n pointer-events: initial;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container {\n /* inspired by - https://codepen.io/shalimano/pen/wBmNGJ */\n /* :global(.dec) {\n animation: decrease 4s 0.5s infinite;\n } */\n\n /* @keyframes decrease {\n 0% { left: -80%; width: 80%; animation-timing-function: ease; }\n 80% { left: 110%; width: 10%; animation-timing-function: steps(1, end); }\n 100% { left: 110%; width: 10%; }\n } */\n\n /* from { left: -80%; width: 80%; }\n to { left: 110%; width: 10%;} */\n\n }\n._sheetxl-sheet_1qeq6_5 .cell-container > * {\n /* position: absolute; Inherited from grid not needed*/\n overflow: hidden;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-box {\n position: absolute;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-line {\n text-rendering: optimizespeed;\n position: absolute;\n vertical-align: baseline;\n white-space: pre;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .filter-button {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n margin-bottom: 4px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds {\n position: absolute;\n background: green;\n pointer-events: none;\n /* border: solid 2px red */\n opacity: 0.2;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .fill {\n position: absolute;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .pending {\n width: 6px; /* Adjust size as needed */\n height: 6px;\n top: 5px;\n left: 4px;\n position: absolute;\n border: var(--sxl-app-color-primary-dark, grey) 0.5px;\n border-style: double;\n border-radius: 50%; /* Creates a circle */\n background-color: var(--sxl-app-color-button-surface, grey); /* A color of your choice */\n opacity: 1; /* Initial opacity */\n animation: _pulse_1qeq6_1 1.5s infinite alternate; /* Animation settings */\n }\n@keyframes _pulse_1qeq6_1 {\n 0% {\n transform: scale(1); /* Initial size */\n opacity: 1;\n }\n 50% {\n transform: scale(1.2); /* Slightly larger size */\n opacity: 0.8; /* Slightly less opaque */\n }\n 100% {\n transform: scale(1); /* Back to initial size */\n opacity: 1;\n }\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .slider {\n position: absolute;\n width: 130%;\n /* height: 100%; */\n height: 2px;\n bottom: 1px;\n opacity: 0; /* Start with opacity 0 */\n animation: _fadeIn_1qeq6_1 0.0s 0.5s forwards;\n overflow-x: hidden;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .line {\n position: absolute;\n opacity: 0.3;\n background: var(--sxl-app-color-primary-light, rgb(173, 173, 173)) 0.5px;\n width: 100%;\n /* height: 100%; */\n height: 2px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .subline {\n position: absolute;\n background: var(--sxl-app-color-primary, rgb(77, 77, 77)) 0.5px;\n opacity: 0.9;\n /* height: 100%; */\n height: 3px;\n }\n._sheetxl-sheet_1qeq6_5 .cell-container .inc {\n animation-delay: 0s;\n animation: _increase_1qeq6_1 3s infinite;\n }\n@keyframes _fadeIn_1qeq6_1 {\n 0% { opacity: 0; height: 0px; }\n 100% { opacity: 1; height: 2px }\n }\n/* @keyframes increase {\n from { left: -5%; width: 5%; }\n to { left: 130%; width: 100%;}\n } */\n@keyframes _increase_1qeq6_1 {\n /* from { left: -5%; width: 5%; }\n to { left: 130%; width: 100%;} */\n 0% { left: -150%; width: 30%; animation-timing-function: ease; }\n 100% { left: 100%; width: 30%; }\n }\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._sheet-selection_12wyx_5 .fill-handle .dragging {\n opacity: 0;\n }\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._movable-area_314c6_5 .moveable-control-box .dragging {\n opacity: 0;\n }\n._movable-area_314c6_5 .moveable-control-box .moveable-control {\n width: 11px;\n height: 11px;\n margin-top: -5.5px;\n margin-left: -5.5px;\n background-color: var(--sxl-app-color-background, white);\n background-image: var(--sxl-app-image-background);\n border: 2px solid var(--sxl-app-color-primary-dark, grey);\n }\n._movable-area_314c6_5 .moveable-control-box .moveable-line {\n background: var(--sxl-app-color-grey, grey);\n }\n\n@media (pointer: coarse) {\n ._movable-area_314c6_5 .moveable-control-box .moveable-control {\n width: 22px;\n height: 22px;\n margin-top: -11px;\n margin-left: -11px;\n }\n}\n/*\n.EditableLabel {\n}\n*/\n\n._editable-input_1bqx6_6 {\n position: absolute;\n left: 0px;\n top: 0px;\n width: 100%;\n min-height: calc(100% + 1px); /* hack for padding */\n border: none;\n padding: 0 0;\n outline: none;\n color: inherit;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n line-height: 1.2;\n letter-spacing: inherit;\n text-transform: inherit;\n background: transparent;\n}@keyframes _pop_1wyun_1 {\n 0% {\n transform: scale(1);\n /* box-shadow: var(--box-shadow); */\n }\n 100% {\n transform: scale(var(--scale));\n /* box-shadow: var(--box-shadow-picked-up); */\n }\n}\n\n@keyframes _fadeIn_1wyun_33 {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n\n._Wrapper_1wyun_25 {\n display: flex;\n box-sizing: border-box;\n transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)\n scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));\n transform-origin: 0 0;\n touch-action: manipulation;\n}\n\n._Wrapper_1wyun_25._fadeIn_1wyun_33 {\n /* animation: fadeIn 500ms ease; */\n }\n\n._Wrapper_1wyun_25._dragOverlay_1wyun_37 {\n /* --scale: 1.05; */\n /* --box-shadow: $box-shadow;\n --box-shadow-picked-up: $box-shadow-border,\n -1px 0 15px 0 rgba(34, 33, 81, 0.01),\n 0px 15px 15px 0 rgba(34, 33, 81, 0.25); */\n z-index: 999;\n }\n\n._Item_1wyun_47 {\n position: relative;\n display: flex;\n align-items: center;\n\n /* box-shadow: $box-shadow; */\n outline: none;\n box-sizing: border-box;\n transform-origin: 50% 50%;\n\n -webkit-tap-highlight-color: transparent;\n\n transform: scale(var(--scale, 1));\n\n}\n\n._Item_1wyun_47:not(._withHandle_1wyun_61) {\n touch-action: manipulation;\n /* cursor: grab; */\n }\n\n._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37) {\n /* opacity: var(--dragging-opacity, 1); */\n z-index: 999;\n /* &:focus {\n box-shadow: $box-shadow;\n } */\n }\n\n._Item_1wyun_47._disabled_1wyun_74 {\n /* &:focus {\n box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), $box-shadow;\n } */\n /* cursor: not-allowed; */\n }\n\n._Item_1wyun_47._dragOverlay_1wyun_37 {\n cursor: inherit;\n animation: _pop_1wyun_1 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);\n transform: scale(var(--scale));\n /* box-shadow: var(--box-shadow-picked-up); */\n opacity: 1;\n }._Row_1kr10_1 {\n display: flex;\n box-sizing: border-box;\n /* padding: 0px;\n margin: 0px; */\n /* transition: background-color 350ms ease; */\n /* overflow: hidden; */\n /* &::-webkit-scrollbar {\n display: none;\n width: 0px;\n height: 0px;\n } */\n}\n/*\n To support Autoscrolling\n * dnd-kit checks for the container element to have an overflow property. So we do a few hacks.\n * the better answer is to fork dnd-kit and add to dndcontext scrollableAncestors as a property.\n\n * It seems we are one of the few/only libraries that don\'t include the scrollbar within the container; Even the virtualized examples show a scrollbar\n * see - dndkit-isScrollable\n */\n ._TabStrip_3x0dp_1::-webkit-scrollbar {\n display: none;\n height: 0px;\n }\n ._TabStrip_3x0dp_1 {\n overflow-y: auto;\n overflow-x: hidden;\n position: relative;\n}\n\n\n/**\n * CSS files with the .module.css suffix will be treated as CSS modules\n * and scoped locally.\n */\n._script-editor_iy654_5 .monaco-editor {\n position: absolute;\n }\n._script-editor_iy654_5 .monaco-editor .margin-icon {\n display: block;\n width: 16px; /* Adjust size */\n height: 16px; /* Adjust size */\n background-size: 16px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n }\n._script-editor_iy654_5 .monaco-editor .formula {\n 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>\');\n cursor: pointer;\n }\n._script-editor_iy654_5 .monaco-editor .macro {\n 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>\');\n cursor: pointer;\n }\n._script-editor_iy654_5 .monaco-editor .autorun {\n 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>\');\n cursor: pointer;\n }\n\n/*\n:global .mtk11.jsdoc-tag {\n color: #569CD6 !important;\n font-weight: bold;\n}\n\n:global .mtk11.jsdoc-type {\n color: #4EC9B0 !important;\n}\n\n:global .mtk11.jsdoc-param {\n color: #9CDCFE !important;\n}\n*/')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const s_=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:s_},Symbol.toStringTag,{value:"Module"}));const c_=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),d_=(e,t=!0,n=c_)=>{if(!n||0===n.length)return e;if(void 0===e)return n[0];if(t&&e>=n[n.length-1])return e;if(!t&&e<=n[0])return e;let o=_n.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},u_=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:c_,findNextFontSize:d_},Symbol.toStringTag,{value:"Module"})),h_=z(e=>{const{anchorLocation:t=_t.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:l,fill:a,pathProps:s,style:c,...d}=e,u=r,h=i;let p="red",f=[],m=[];return t===_t.TopLeft?(p=l?"rgb(255, 198, 246)":"green",f.push(h),m.push(h),f.push(h+u),m.push(h),f.push(h),m.push(h+u)):t===_t.TopRight?(p=l?"rgb(0, 255, 255)":"red",f.push(n-h),m.push(h),f.push(n-(h+u)),m.push(h),f.push(n-h),m.push(h+u)):t===_t.BottomRight?(p=l?"rgb(236, 252, 211)":"purple",f.push(n-h),m.push(o-h),f.push(n-(h+u)),m.push(o-h),f.push(n-h),m.push(o-(h+u))):t===_t.BottomLeft&&(p=l?"rgb(255, 236, 183)":"blue",f.push(h),m.push(o-h),f.push(h+u),m.push(o-h),f.push(h),m.push(o-(h+u))),O("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...c},...d,children:O("path",{d:`M ${f[0]} ${m[0]} L ${f[1]} ${m[1]} L ${f[2]} ${m[2]} L ${f[0]} ${m[0]} Z`,fill:a??p,...s})})}),p_=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:l,style:a,...s}=e,c=$(()=>{let e=null;const t=i.getSortField();t&&(e=t.reverse);const n=i.getField(),o=n&&n.criteria&&n.criteria.length>0;return!0===e?o?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,9.452298 H 4.24187 V 2.0761788 H 3.170122 V 9.452298 H 1.5625 l 2.143496,2.950446 z":"m 13.109228,9.865914 h -1.607622 v -7.37612 h -1.071748 v 7.37612 H 8.822236 l 2.143496,2.950446 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":!1===e?o?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 5.849492,5.0266248 H 4.24187 V 12.402744 H 3.170122 V 5.0266248 H 1.5625 l 2.143496,-2.950446 z":"m 13.109228,5.44024 h -1.607622 v 7.37612 H 10.429858 V 5.44024 H 8.822236 L 10.965732,2.489794 Z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":o?"m 9.429858,10.25386 2,-1 v -3 l 3,-4 h -8 l 3,4 z M 0.75000004,9.15 4.3000002,13.094444 7.8500003,9.15 Z":"m 3,5.025 4.5,5 4.5,-5 z"},[i]),[d,u]=N(!1),h=Math.min(Math.min(18,t.height-8),t.width);return O("div",{style:{width:`${h}px`,height:`${h}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${d&&!r?"--sxl-app-color-primary-light, rgba(0,0,0,.55)":"--sxl-app-color-border-button, grey"})`,backgroundColor:"var(--sxl-app-color-button-fill, white)",backgroundImage:"var(--sxl-app-image-background)",borderRadius:(h>12?1:0)+"px",marginRight:"2px",display:"flex",alignItems:"center",justifyContent:"center",cursor:r?void 0:"pointer",...a},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),onMouseDown:e=>{l?.(e,i)},...s,children:O("svg",{width:""+15*o,height:""+15*o,viewBox:"0 0 15 15",style:{fill:`var(${d&&!r?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:r?.6:1},children:O("path",{d:c})})})},f_=n=>{const{value:r,coords:i,bounds:a,children:s,style:c,range:d,zoom:p=1,view:g,bodyStyle:y,normalStyle:b,showFormulas:w,showZeros:v,docTheme:x,onLinkMouseDown:S,onFilterButtonMouseDown:C,filterButtonProps:k,createFilterButton:E=p_,..._}=n,T=a.height/p,M=a.width/p,D=r,R=D.getValue(),I=r.getStyle(),A=y?.darkMode??!1;let P,z;const F=R&&R.isFormulaError,N=F&&R instanceof f.Parse;let V,H=w||N;if(H)if(D.isSpillOverflow())z="";else{const e=D.getFormulaText();e?z=e:P=D.getNumberFormat(u.Type.General)}else P=D.getNumberFormat();H||(V=D.getTextOverflow());const B=V?V.colBounds.width+V.leftOffset+V.rightOffset:M,$=V?V.anchorBounds.x-V.leftOffset:0,j=V?V.anchorBounds.width:M,W=V?V.anchorBounds.x:0;let U,q=D.getRenderHorizontalAlignment();P&&(U=P?.formattedRuns,z=U?.runs[0]?.text??P.displayText);const Z=D.getCalcStatus()===h.CalcStatus.Pending;let G=null,K=I.getFill().toCSS(A,a),X=0,Y=0;if(!I.getBorder().isEmpty()){const e=I.getBorder().getRight();!e.isNone()&&l.BuiltInDefinitions.get(e.getStyle()).width>1&&(X=1);const t=I.getBorder().getBottom();!t.isNone()&&l.BuiltInDefinitions.get(t.getStyle()).width>1&&(Y=1)}let J=null;if(M!==j||X||Y||"number"==typeof K?.backgroundPosition){const{backgroundPosition:e,...t}=K,n=e??0,o=g?.getScrollTopLeft(),r=n?-(a.x+(o.left??0))%n:0,i=n?-(a.y+(o.top??0))%n:0;(void 0!==e||X||Y||M!==j)&&(1===Object.keys(t).length&&"none"===t.background||(K=null,J=O("div",{className:"fill",style:{marginLeft:`${r}px`,marginTop:`${i}px`,left:W*p,width:Jo.boundPixel(j*p-r+1+X),height:Jo.boundPixel(a.height-i+1+Y),...t}},"background")))}let Q=null;const ee=D.getComments(),te=D.getWarnings(),ne=D.getErrors();if(ee||F||ne.length>0||te.length>0){const e={size:7*p,darkMode:A,cellWidth:j*p+2,cellHeight:T*p+2,style:{top:-1,left:W*p-1}};Q=Q??[],(te.length>0||ne.length>0||F)&&Q.push(O(h_,{anchorLocation:_t.TopLeft,...e},`indicator-${Q.length}`)),ee&&Q.push(O(h_,{anchorLocation:_t.TopRight,...e},`indicator-${Q.length}`))}const oe=I.getFont();let re=P?.conditionalColor;const ie=I.getAlignment(),le=ie.getHorizontal()===e.HorizontalAlignment.Fill,ae=ie.getHorizontal()===e.HorizontalAlignment.CenterContinuous||le,se=ae||H?0:ie.getRotation(),ce=D.getInsets(),de=ce.top+ce.bottom;let ue=ce.left,he=ce.right;const pe={...c,left:c.left-1,top:c.top-1,width:c.width+1+X,height:c.height+1+Y},fe=D.getColumnFilter(),me=fe&&!fe?.hasHiddenButton();let ge=null;Z&&(ge=L("div",{className:"slider",children:[O("div",{className:"line"}),O("div",{className:"subline inc"})]},"pending"));const ye=!(Z||me||J||s||Q||U?.runs.length>1||V||se%360!=0);"none"===K?.background&&(K=null);let be=ae||!(!V||!(V.rightIndex>0||V.leftIndex>0||V.colSpan>1));if(!be){const e=D.getSpans();(e.width>1||e.height>1)&&(be=!0)}const we={...K,...pe,pointerEvents:S?"auto":void 0};if(!_n.isEmpty(z)||!_n.isEmpty(P?.repeatPlaceholder)){const n=P?.canWrap??!1;let r=null,i=null,l=null,a=[],s=!0;v||H||0!==R||(s=!1);const d=D.getTextFrame(H);if(s&&d){let s=B-1-(ue+he);if(se){const e=d.layout();r=e.bounds;const t={x:0,y:0,width:B-1,height:T};if(U){let e=U.width;if(P.repeatPlaceholder||P.repeatChars.length>0){const n=m.boundsToPoints(t),o=m.rotatePoints(n,-se);e=m.minBoundingRect(o).width}r={...r,width:e}}l=m.clipToOuterRect({...r,width:r.width+1+ue+he},t,se),s=l.width-1-(ue+he)+.01}let h=null;n&&(h={width:s});let f=null,g=P?.repeatPlaceholder;const y=d.layout(h);if(r=y.bounds,H?r={...r,width:0}:U&&(r={...r,width:P.repeatPlaceholder||P.repeatChars.length>0?s:U.width}),se&&n){let e=null;y.visitLines({visitTextLine:(t,n)=>{let o=t.bounds;const r=m.boundsToPoints(o),i=m.rotatePoints(r,se),l=m.minBoundingRect(i);o={...o,x:(l.width-o.width)/2,y:(l.height-o.height)/2},e=e?m.unionBounds(e,o):o}}),r={...e,width:e.width+ue+he}}if(!g&&D.getType()!==t.String&&Math.floor(r.width)>s){if("General"===I.getNumberFormat()&&D.getType()===t.Number){const e=I.measureText("0"),t=Math.floor(s/e.width),n=R,o=_n.splitNumber(n),r=Math.min(10,t-(Math.max(1,o.ipLength)+1)-(n<0?1:0));if(r>=-1){const e=`0${r>0?".":""}${"#".repeat(Math.max(0,r))}`;f=D.getNumberFormat(e).displayText,"0"===f&&n<0&&(f="-0")}else if(Math.abs(n)>=Math.pow(10,5)||Math.abs(n)<=Math.pow(10,-5)){const e=t-5-(n<0?1:0);if(e>=0){const t=`0.${"0".repeat(Math.max(0,e-1))}E+00`;f=D.getNumberFormat(t).displayText}}}f||(g="#")}if(!g&&U?.lastRepeatIndex>=0&&U?.width>s&&(g="#"),g&&s>0){const e=I.measureText(g),t=Math.floor((s||1)/(e?.width||1));f=t>0?g.repeat(t):""}if(H&&(q=e.HorizontalAlignment.Left),f){const e=I.measureText(f).width;e&&(r={...r,width:e})}if(i={...r,width:r.width+ue+he,height:r.height},se&&!n){const e=m.boundsToPoints(i),t=m.rotatePoints(e,se),n=m.minBoundingRect(t);i.width=n.width,i.height=n.height}q===e.HorizontalAlignment.Center||q===e.HorizontalAlignment.CenterContinuous?i.x=(B-i.width)/2:q===e.HorizontalAlignment.Right?i.x=B-i.width-.5:i.x=.5,ie.getVertical()===e.VerticalAlignment.Center?i.y=(T-i.height)/2:ie.getVertical()===e.VerticalAlignment.Bottom?i.y=T-i.height-de:i.y=de;const b=ye?{..._}:void 0,w={style:{left:c.left-1,top:c.top-1,width:c.width+1,height:c.height+1,transform:se?`rotate(${se}deg)`:void 0,cursor:S?"pointer":void 0,pointerEvents:S?"auto":void 0,zIndex:be?1:void 0,...K},onMouseDown:S,onDoubleClick:S?e=>{e.stopPropagation(),e.preventDefault()}:null,...b};N&&(w.style.textDecorationStyle="wavy",w.style.textDecorationColor=A?"rgb(0, 255, 255)":"red",w.style.textDecorationLine="underline");const v=oe.getSize(),x=(t,l,c,d,h,f,g,y=null)=>{let b=v*p,w=c,x=g?.runs?g.runs:[{type:u.ParseRunType.Text,text:t,width:I.measureText(t,b).width}];g&&g?.width!==r.width&&(r={...r,width:g?.width});let S=ue;if(g?.lastRepeatIndex>=0&&s>g?.width){const e=g.runs[g.lastRepeatIndex];if(e){const t=[...x],n=Math.max(0,s-1-g.width);let o=0,i="";if(n>0){const t=Math.floor(n/e.width);i=t>0?e.text.repeat(t):"",o=n}t[g.lastRepeatIndex]={type:u.ParseRunType.Repeat,text:i,width:o},x=t,r={...r,width:g.width+o}}}const C=(t,r,i,l,s,c,d,u,g,y=null)=>{let v,x=w.width;h===e.HorizontalAlignment.Justify?(x=s,f||(v="justify")):h===e.HorizontalAlignment.Distributed&&(x=s,v=f||t.text.split(" ").length-1==0?"center":"justify");const{style:C,className:k,...E}=y;let _=t.text;if(h===e.HorizontalAlignment.Fill&&0===P?.repeatChars.length){const e=Math.max(1,Math.floor((w?.width??0)/(d?.width??1)));_=_.repeat(e)}let T=w.height;const M=oe.getVerticalAlignment(),D=M===o.VerticalAlignment.Sub,R=M===o.VerticalAlignment.Super;if(D||R){const e=oe.getSuperSubScale();b*=e,T*=e}const L={textAlign:v,textAlignLast:v,background:void 0,...C,...oe.toCSS(A,p,!0),fontSize:b*o.getDeviceScale()};re&&(L.color=re.toCSS(A));const I=S+r;let z=ce.top+w.y+0;if(D&&(z+=g-b),c){const e=(d.x+I)*p+1,t=(d.y+z)*p+1;t<0?L.marginTop=t:L.paddingTop=t,e<0?(L.width=(C?.width??0)-e,L.left=(C?.left??0)+e):L.paddingLeft=e,L.paddingRight=Math.max(0,(C?.width??0)-x*p-e),L.paddingBottom=Math.max(0,(C?.height??0)-w.height*p-t),L.height=(C?.height??0)+(t<0?-t:0),(t<0||e<0)&&(L.clipPath=`inset(${t<0?-t:0}px 0px 0px ${e<0?1-e:0}px)`)}else if(L.left=(d.x+I)*p+1,L.top=(d.y+z)*p+1,L.width=d.width*p,L.height=d.height*p,se&&!n){L.left=(d.x+r)*p+1,L.top=(d.y+(w.y+0))*p+1;const e=m.centerPoint({x:S+r,y:0,width:t.width,height:w.height}),n=m.centerPoint({x:S,y:0,width:s,height:w.height}),o=m.rotatePoints([e],se,n),i={x:o[0].x-e.x,y:o[0].y-e.y};L.left=L.left+i.x*p,L.top=L.top+i.y*p;const l={...w,x:S,y:ce.top,width:w.width+(ue+he)},a=m.boundsToPoints(l),c=m.rotatePoints(a,se),u=m.minBoundingRect(c);l.width=u.width,l.height=u.height;const h=m.centerPoint(l),f={x:h.x-n.x,y:h.y-n.y};L.left=L.left+f.x*p,L.top=L.top+f.y*p}L.lineHeight=T*p+"px";const F=ye?void 0:"text-line";a.push(O("div",{className:k?`${k} ${F}`:F,style:L,...E,children:_},`text-${w.y}-${l}-${i}`))};if(ie.getOverflow()===e.Overflow.Shrink&&s>0){let e=r?.width??0,n=0;for(;e>1&&e>s&&b>2&&n<100;)b*=s/e,e=I.measureText(t,b).width,n++;r={...r,width:e}}let k=w.x;h===e.HorizontalAlignment.Right?k+=r.width-w.width:h!==e.HorizontalAlignment.Center&&h!==e.HorizontalAlignment.CenterContinuous||(k+=(r.width-w.width)/2),g?.lastRepeatIndex>=0&&(k=w.x);const E=x.length;for(let t=0;t<E;t++){const n=x[t];n.type!==u.ParseRunType.Text&&n.type!==u.ParseRunType.Repeat||(n.type,u.ParseRunType.Repeat,C(n,k,t,l,h===e.HorizontalAlignment.Justify||h===e.HorizontalAlignment.Distributed||g?.lastRepeatIndex>=0?s:w.width,ye,{x:i.x+$,y:i.y,width:n.width,height:r.height},0,d,y)),k+=n.width}};f?x(f,0,{x:0,y:0,...r},y.lines[0].baseline,q,!0,null,w):y.visitLines({visitTextLine:(t,n,o)=>{const i=t.runs[0].text.replace(/\s+$/,""),l=n===o-1;let a=q===e.HorizontalAlignment.Justify&&(l||t.runs[0].text.endsWith("\n"))?e.HorizontalAlignment.Left:q,c=0;n>0&&(ie.getVertical()===e.VerticalAlignment.Distributed||ie.getVertical()===e.VerticalAlignment.Justify)&&(c=Math.max(0,(T-(de+3)-t.bounds.height*o)/(o-1)*n)),ie.getVertical()===e.VerticalAlignment.Distributed&&se&&se%90==0&&se%180!=0&&(a=e.HorizontalAlignment.Distributed),a!==e.HorizontalAlignment.Justify&&a!==e.HorizontalAlignment.Distributed&&a!==e.HorizontalAlignment.Fill||(r={...r,width:s});const u={...t.bounds,y:t.bounds.y+c+0,width:le||P&&(P.repeatChars.length>0||P.spacingChars.length>0)?r.width:t.bounds.width};x(i,n,u,d.lines[0].baseline,a,l,1===o?U:null,ye&&n>0?{...w,style:{...w.style,background:void 0}}:w)}})}a.length>0&&(G=a)}if(ye)return G&&G.length>0?G:O("div",{style:we,..._});let ve=S?"auto":pe.pointerEvents,xe=null;if(me){const e={x:W*p-1,y:-1,width:j*p+1,height:T*p+1};ve="auto",xe=E({renderBounds:e,darkMode:A,className:"filter-button",disabled:!D.isEditAllowed(),zoom:p,filter:D.getColumnFilter(),onFilterButtonMouseDown:C,...k}),xe&&(xe=O("div",{style:{...e,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:e=>{e.stopPropagation(),e.preventDefault()},children:xe},"filterButton"))}Z&&!G&&(G=O("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:"..."},"pending-ellipsis"));const Se=[J,G,s,Q,ge,xe];return O("div",{style:{...K,...pe,pointerEvents:ve},..._,children:Se})},m_={text:"",placeholder:""},g_=(e,t)=>{if(!e.clean().getStyle().getNumberFormat().endsWith("%"))return!1;const n=t??e.dirty??"";return 0===n.length||n.endsWith("%")&&!isNaN(parseFloat(n.substring(0,n.length-1)))},y_=Object.freeze([io.Delete,io.Home,io.End]),b_=z(j((r,i)=>{const{editState:l,onStartEdit:a,onChangeEdit:s,onSubmitEdit:c,onCancelEdit:d,onDoneEdit:u,defaultTextStyle:h,useRichStyling:p=!0,bodyStyle:f,activeCoords:m,sheet:g,commands:y,containerBounds:b,setNaturalDimensions:w,onFocus:v,disabled:x,style:S,zoom:C=1,linesVisible:k,autoFocus:E=!1,..._}=r,{height:T=0,width:M=0}=b??{},D=f?.darkMode??!1,R=F(null),[L,I]=N(!1),[A,P]=N(null),[z,B]=N(()=>l);V(()=>{J.current=!1,B(l)},[l]);const j=$(()=>{const n=z.clean();let o=n.getStyle();p||(o=o.createTemporaryStyle({font:{size:h?.fontSize}}));const r=n.getFormula(),i=o.getAlignment(),l=r?e.HorizontalAlignment.Left:i.getHorizontal(),a=i.getVertical(),s=i.getOverflow()===e.Overflow.Wrap||n.getType()===t.String&&(l===e.HorizontalAlignment.Justify||l===e.HorizontalAlignment.Distributed||a===e.VerticalAlignment.Justify||a===e.VerticalAlignment.Distributed),c=(e=>{if(!e)return m_;const t=e.clean();if(!t)return m_;let n=t.getStyle()?.getQuotePrefix();if(void 0===e.dirty||null===e.dirty){let o="",r=t.getFormulaText();r&&(o=r,n=!1),o||(o=t.toTextUnformatted(!0)??"");let i="";if(!e.editMode&&t.isSpillOverflow()){const e=t.getSpill();if(e){const n=e.getCell(),o=n.getFormulaText();n.isEqual(t)||(i=o)}}return n&&(o="'"+o),{text:o,placeholder:i}}return{text:e.dirty??"",placeholder:""}})(z),d=c.text,u=e.toCSSHorizontalTextAlign(p&&!r?z.clean()?.getRenderHorizontalAlignment():e.HorizontalAlignment.Left);return{style:o,isWrapped:s,textValue:d,formula:r,frameVertAlign:a,placeholder:c.placeholder,insets:p?n.getInsets():It.EmptyRect,textAlign:u}},[z,h,D,C,p]),W=F(null),q=er(i,()=>({startEdit:e=>{R.current=e?.initialSelection;const t={...l,editMode:e?.editMode??!1};void 0!==e?.text&&(t.dirty=e.text),t.editMode===l.editMode&&t.dirty===l.dirty||(B(t),K?.(t))},submitEdit:()=>Q(),cancelEdit(){ee()},autoFocus(){W.current.focus()},dispatchEvent:e=>W.current.dispatchEvent(e),focus(){W.current.focus()},getLineHeight:G}),[a,l]);U(()=>{if(!A||!L)return;const e=W.current;j.textValue,e&&e.setSelectionRange(A.start,A.end,A.direction)},[W.current,A,j.textValue]);const Z=$(()=>{const e=z?.clean(),n=j.style.createTemporaryTextFrame(j.textValue,e?.getType()===t.String),o=p?e.getInsets().right+e.getInsets().left:0;let r=null;return j.isWrapped&&(r={width:M-o}),n.layout(r)},[j,M,z,p]),G=go(()=>Math.ceil(Z?.lines[0]?.bounds.height),[Z]);U(()=>{if(!Z)return;const e=j.style,t=e.getInsets()??It.EmptyRect,n=p?t.left+t.right:0,o=p?.04*e.getFont().getSize():1,r=Math.round(j.isWrapped?void 0:Z.bounds.width+n+o),i=Math.round(Z.bounds.height);w?.({width:r,height:i})},[Z,w,j,p,z]);const K=go(s,[s]),X=go(e=>{if(z.dirty===e)return;const t={...z};t.dirty=e,W.current,B(t),K?.(t)},[z]),Y=go(e=>{if(z.editMode===e)return;const t={...z};t.editMode=e,B(t),K?.(t)},[z]),J=F(!1),Q=go(()=>{if(J.current)return!1;try{c?.(z),u?.(),J.current=!0}catch(e){return!1}return!0},[c,z]),ee=go(()=>{J.current=!0,B(l),d?.(),u?.()},[d,l]),te=go(e=>{if(!W.current)return;if(e.key,e.isDefaultPrevented(),!(e.isTrusted||e.nativeEvent.ctrlKey||e.nativeEvent.metaKey||e.nativeEvent.altKey||e.nativeEvent.isComposing||-1===Yk.indexOf(e.nativeEvent.key)&&"Backspace"!==e.nativeEvent.key)){const t={...z};let n=0;return g_(t,t.dirty)&&!isNaN(parseFloat(e.key))?(t.dirty?.endsWith("%")?t.dirty=(t.dirty.substring(0,t.dirty.length-1)??"")+e.key+"%":t.dirty=(t.dirty??"")+e.key+"%",n=t.dirty.length-1):"Backspace"===e.nativeEvent.key?(t.dirty="",n=t.dirty.length):(t.dirty=(t.dirty??"")+e.key,n=t.dirty.length),W.current.value=t?.dirty,R.current={start:n,end:n,direction:"forward"},W.current?.setSelectionRange(n,n,"forward"),B(t),K?.(t),void e.preventDefault()}const t=e.nativeEvent.ctrlKey,o=e.nativeEvent.shiftKey,r=e.nativeEvent.altKey,i=e.nativeEvent.metaKey;if(t&&"z"===e.key&&e.stopPropagation(),e.which===io.Escape)return e.preventDefault(),void ee();if(e.which===io.F2)return Y(!0),void e.preventDefault();const l=e.target;if("%"===e.key&&l.selectionStart===l.selectionEnd&&"%"===l.value[l.selectionStart]&&z?.clean().getStyle().numberFormat.includes("%"))return P({start:l.selectionStart+1,end:l.selectionEnd+1,direction:l.selectionDirection}),void e.preventDefault();if(e.which===io.Enter){if(e.preventDefault(),i||r){const e=j.textValue.substring(0,l.selectionStart)+"\n"+j.textValue.substring(l.selectionEnd);return X(e),void P({start:l.selectionStart+1,end:l.selectionStart+1,direction:l.selectionDirection})}return void(Q()&&g.getSelection().traverse(n.Orientation.Column,o))}if(e.which===io.Tab)return e.preventDefault(),void(Q()&&g.getSelection().traverse(n.Orientation.Row,o));let a=null;switch(e.which){case io.Left:a=n.Direction.Left;break;case io.Right:a=n.Direction.Right;break;case io.Up:a=n.Direction.Up;break;case io.Down:a=n.Direction.Down}!a||t||o||r||i||z.editMode?z.editMode&&(a||y_.includes(e.which))&&e.stopPropagation():Q()},[z,g,j]),ne=H(()=>{W.current?.focus(),setTimeout(()=>{W.current?.select()},0)},[]),oe=H(()=>{W.current?.focus(),console.log("implement toggleRelativeReferences")},[]),re=go(()=>{const e=W.current?.value;let t="";if(m.rowIndex>0){const e=g.getRange({rowIndex:m.rowIndex-1,colIndex:m.colIndex}).getCell();e&&(t=e.toTextUnformatted(!0))}X(e+t)},[m,g]);V(()=>g.getRange(m).addListener(()=>{const e={...z,clean:()=>g.getRange(m).getCell()};B(e),K?.(e)}),[m,g]);const ie=H(()=>{const e=z.clean().createTemporaryCell({value:s_(),style:{numberFormat:"Medium Time"}}).toText();X((W.current?.value??"")+e)},[g]),le=H(()=>{const e=z.clean().createTemporaryCell({value:s_(),style:{numberFormat:"Short Date"}}).toText();X((W.current?.value??"")+e)},[g]),ae=$(()=>({element:()=>W.current,doCopy:e=>{const t=W.current.value.substring(W.current.selectionStart,W.current.selectionEnd);if(e?.isCut){const e=W.current.value.substring(0,W.current.selectionStart)+W.current.value.substring(W.current.selectionEnd,W.current.value.length);X(e)}return t}}),[W.current]),se=$(()=>({element:()=>W.current,doPaste:async(e,t)=>{const n=await(e.toText?.());if(!n)return!0;const o=W.current.value.substring(0,W.current.selectionStart)+n+W.current.value.substring(W.current.selectionEnd,W.current.value.length);return X(o),P({start:W.current.selectionStart+n.length,end:W.current.selectionStart+n.length,direction:"forward"}),!0}}),[W.current]),ce=$(()=>({contains:e=>W.current?.contains(e)||!1,focus(){W.current.focus()}}),[]),de=$(()=>[new Zr("selectAll",ce,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[ro.Ctrl]}},ne),new Zr("startEditValueAbove",ce,{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:[ro.Ctrl]},{key:'"',modifiers:[ro.Ctrl,ro.Shift]}]},re),new Zr("startEditCurrentTime",ce,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[ro.Ctrl,ro.Shift]}},ie),new Zr("startEditCurrentDate",ce,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[ro.Ctrl]}},le),new qr("relativeReferencesToggle",ce,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},oe),new qr("toggleEditorFocus",ce,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[ro.Ctrl]}})],[]),ue=$(()=>{let e=null;const t=()=>({contains:e=>W.current?.contains(e)||!1,focus(){W.current.focus()}});return e=y?y.createChildGroup(t,"editor",!1):new Gr(t,"editor"),e.addCommands(de,!0),e},[y,de]),he=$(()=>({notifier:null,source:ae,target:se,commands:ue}),[ae,se,ue]);oi(he);const[pe,fe]=N(!E);V(()=>{fe(!1)},[]);const me=go(e=>{I(!0),ue?.activate();const t=R.current;if(!1!==t){let e,n;const o=W.current.value;g_(z,o)&&(e=o.length-1,n=o.length-1),e=t?.start??e??o.length,n=t?.end??n??o.length,R.current=!1,P({start:e,end:n,direction:"forward"})}v?.(e)},[v,z]),ge=j.insets;let ye=ge.left+1;const be=ge.left+ge.right+2-1,we=Z?.bounds.height??0;let ve,xe=ge.top;j.frameVertAlign===e.VerticalAlignment.Center?xe=Math.max(0,(T-(ge.top+ge.bottom)-we)/2):j.frameVertAlign===e.VerticalAlignment.Bottom&&(xe=Math.max(0,T-(ge.top+ge.bottom)-we)),void 0!==k&&Z?.lines[0]?.bounds&&(ve=Z?.lines[0]?.bounds.height*k);const Se=j.style.getFont();let Ce=Se.getSize();Se.isSuperSub()&&(Ce*=Se.getSuperSubScale()),Ce*=o.getDeviceScale()*C;const ke=p?Se.toCSS(D,C):null;return O("div",{className:"sheet-cell-editor",onMouseDown:e=>{W.current&&document.activeElement!==W.current&&requestAnimationFrame(()=>{W.current.focus()})},ref:q,..._,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...S},children:O("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:xe*C+1,left:ye*C,width:`calc(100% - ${be*C}px)`,maxWidth:`calc(100% - ${be*C}px)`,height:(ve??we)*C,maxHeight:(ve??we)*C},children:O("textarea",{spellCheck:"false",placeholder:j.placeholder,ref:W,value:j.textValue,disabled:pe,readOnly:x||g.getProtection().isReadOnly(),name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...ke,fontSize:Ce?`${Ce}px`:"inherit",textAlign:j.textAlign,lineHeight:(Z?.lines[0]?.bounds.height??0)*C+"px",height:(Z?.bounds.height??0)*C,boxSizing:"border-box",padding:"0px",margin:"0px",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",background:"transparent",maxHeight:"100%",maxWidth:"100%",width:"100%",userSelect:"text",position:"absolute",whiteSpace:j.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:me,onBlur:()=>{I(!1)},onSelect:e=>{},onChange:e=>{W.current&&!J.current&&(R.current=!1,X(e.target.value),j.textValue,e.target.value,e.target.selectionStart,e.target.selectionEnd,e.target.selectionDirection,P({start:e.target.selectionStart,end:e.target.selectionEnd,direction:e.target.selectionDirection}))},onMouseDown:e=>{L&&Y(!0)},onKeyDown:te})})})})),w_=(e,t)=>({clean:e,dirty:t,editMode:!1}),v_=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:l=!1,offsetX:a=0,offsetY:s=0,isVertical:c=!1,...d}=e,u=e=>{let t=null;if(e&&n>0){t="";for(let n=0;n<e.length;n++)t+=e[n],n<e.length-1&&(t+=",")}return t},h=u(o);let p=h;r&&(p=u(r));let f=n,m=t,g=null;if(i){f=Math.floor(n/2);const e=f+f/2+1;let t=null;t=c?`M ${Jo.boundPixel(a+e)} ${Jo.boundPixel(s)} L ${Jo.boundPixel(a+e)} ${Jo.boundPixel(s+m)}`:`M ${Jo.boundPixel(a)} ${Jo.boundPixel(s+e)} L ${Jo.boundPixel(a+m)} ${Jo.boundPixel(s+e)}`,g=O("path",{strokeWidth:f,strokeDasharray:p,d:t,...d})}if(l){f=n/2;const e=f+f/2;let t=p,o=null;o=c?`M ${Jo.boundPixel(a+e)} ${Jo.boundPixel(s)} L ${Jo.boundPixel(a+e)} ${Jo.boundPixel(s+m)}`:`M ${Jo.boundPixel(a)} ${Jo.boundPixel(s+e)} L ${Jo.boundPixel(a+m)} ${Jo.boundPixel(s+e)}`,g=O("path",{strokeWidth:f,strokeDasharray:t,strokeDashoffset:"1",shapeRendering:"crispEdges",d:o,...d})}let y=null;return y=c?`M ${Jo.boundPixel(a+f/2)} ${Jo.boundPixel(s)} L ${Jo.boundPixel(a+f/2)} ${Jo.boundPixel(s+m)}`:`M ${Jo.boundPixel(a)} ${Jo.boundPixel(s+f/2)} L ${Jo.boundPixel(a+m)} ${Jo.boundPixel(s+f/2)}`,L(I,{children:[O("path",{strokeWidth:f,strokeDasharray:h,d:y,...d}),g]})};function x_(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var S_=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=x_(o,t),r="function"==typeof e;n.push(r?e:()=>x_(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)x_(n,t)}},C_=function(){},k_="undefined"!=typeof window,E_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},__=k_?U:V,T_={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const M_=k_&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(T_),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return __(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[C_,T_]},D_=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,R_=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,O_=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:a=!1,shiftIfWide:s=!1,isVertical:c=!1,intersections:d,layout:u}=e,h=l.BuiltInDefinitions.get(a?l.StrokeStyle.Thin:r.getStyle());if(!h)return null;const p=n[0],f=n[1],m=n[2],g=n[3];let y=1+(c?g-f:m-p),b=0;const w=r.getColor().toRGBA(i).toString(),v=h.description.toLowerCase().includes("double");let x,S;const C=c?"rowStart":"colStart",k=c?"rowEnd":"colEnd",E=c?f:p;if(d?.length>0){const e=d[0];if(e?.range[C]===o[C]){const t=l.BuiltInDefinitions.get(e.stroke.getStyle());b=Math.floor(t.width/2)}const t=d[d.length-1];if(t?.range[k]===o[k]){const e=l.BuiltInDefinitions.get(d[d.length-1].stroke.getStyle());y=Math.floor(y+(2===e.width?0:e.width/2))}if(v){const e=c?"colStart":"rowStart",t=c?"colEnd":"rowEnd",n=c?u?.getRowOffset:u?.getColOffset;let r=0,i=0;x=[],S=[];for(let a=0;a<d.length;a++){const s=d[a];if(s.stroke.getStyle()===l.StrokeStyle.Double&&n){const l=n(s.range[C])-(E-b);s.range[e]<o[e]&&(x.push(l-r),r=l,x.push(1),r++),s.range[t]>o[t]&&(S.push(l-i),i=l,S.push(1),i++)}}x.length>0&&r<y&&x.push(y-r),S.length>0&&i<y&&S.push(y-i)}}let _=c?-Math.floor(h.width/2):-b,T=c?-b:-Math.floor(h.width/2);const M=s&&h.width>2?-1:0;return O(v_,{offsetX:p+_+M,offsetY:f+T+M,length:y+b,isVertical:c,stroke:w,width:h.width,dashArray:x??h.pattern,dashArrayAdditional:S,isDouble:v,isAngled:h.description.toLowerCase().includes("slant")},t)},L_=({getBorderAt:e,borderRenderer:t=O_,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:a=!1})=>{const s=go(n,[n]),c=$(()=>n=>{const c=n.toClipBounds(n.getRangeCoordsBounds(),-3);if(!c)return;const d=s(n);if(0===d.length)return;const u=n.getVisibleColumnOffsets(),h=n.getVisibleRowOffsets();let p=[],f=[];const m=n.getVisibleColumns(),g=n.getVisibleRows(),y=[],b=[],w=[],v=(e,t,n,o,r,i,l)=>{const a={index:o,stroke:r,visibleIndex:n,edge:i,length:l};e[t]||(e[t]=[]),e[t].length>0&&e[t][e[t].length-1]?.index===o?e[t][e[t].length-1]=a:e[t].push(a)};for(let t=0;t<d.length;t++){const o=d[t],r=o.coords;if(!r)continue;const i=o?.range??{rowStart:r.rowIndex,colStart:r.colIndex,rowEnd:r.rowIndex,colEnd:r.colIndex},a=n.getVisibleRangeCoords();if(!en.isRangesIntersect(i,a)&&!en.isRangeWithinRange(i,a))continue;const s=r.colIndex,c=r.rowIndex,w=u[s],x=h[c];if(i.rowEnd!==i.rowStart){const e=h[i.rowStart]?.spanIndex??-1,t=h[i.rowEnd]?.spanIndex??h[g[g.length-1]].spanIndex+1;p.push({...i,rowStart:e,rowEnd:t})}if(i.colEnd!==i.colStart){const e=u[i.colStart]?.spanIndex??-1,t=u[i.colEnd]?.spanIndex??u[m[m.length-1]].spanIndex+1;f.push({...i,colStart:e,colEnd:t})}const S=o.value,C=e(S,t);if(!C||C.isEmpty())continue;const k=C.getLeft(),E=C.getTop(),_=C.getRight(),T=C.getBottom();let M=1,D=1;if(!w||!x)continue;const R=w.spanIndex,O=x.spanIndex;k.isNone()||v(y,R,O,c,k,l.Edge.Left,M),E.isNone()||v(b,O,R,s,E,l.Edge.Top,D),_.isNone()||v(y,R+D,O,c,_,l.Edge.Right,M),T.isNone()||v(b,O+M,R,s,T,l.Edge.Bottom,D)}const x=(e,t,n)=>{const o=[];return e.forEach((e,r)=>{let l=null;e.sort((e,t)=>e.visibleIndex-t.visibleIndex);for(let a=0;a<e.length;a++){const s=e[a];if(!s?.stroke)continue;if(void 0===t[r]&&void 0===t[r-1])continue;let c=!1;if(n)for(let e=0;!c&&e<p.length;e++){let t=p[e];t.colStart<=s.index&&t.colEnd>=s.index&&t.rowStart<r&&t.rowEnd>=r&&(c=!0)}else for(let e=0;!c&&e<f.length;e++){let t=f[e];t.rowStart<=s.index&&t.rowEnd>=s.index&&t.colStart<r&&t.colEnd>=r&&(c=!0)}if(c)continue;const d=s.stroke?.getColor(),u=d?d.toRGBA().toString():i,h=s.stroke.getStyle()+":"+u;(h!==l?.key||l&&l.visibleIndex+1<s.visibleIndex)&&(l&&o.push(l),l={key:h,index:t[r]??t[r-1]+1,visibleIndex:s.visibleIndex,edge:s.edge,stroke:s.stroke,from:s.index,to:s.index+s.length-1,intersections:[],length:1}),l.to=s.index+s.length-1,l.visibleIndex=s.visibleIndex}l&&o.push(l)}),o};p=p.sort(R_),f=f.sort(D_);const S=x(y,m,!1),C=x(b,g,!0);if(0===S.length&&0===C.length)return null;for(let e=0;e<C.length;e++){const t=C[e];let n=_n.findEqualOrGreater(S,t.from,e=>e.index),o=!1;for(;!o;){const e=S[n++];e&&e.index>=t.from&&e.index<=t.to+1&&e.from<=t.index&&e.to+1>=t.index&&(t.intersections.push({stroke:e.stroke,range:{rowStart:e.from,rowEnd:e.to+1,colStart:e.index,colEnd:e.index}}),e.intersections.push({stroke:t.stroke,range:{rowStart:t.index,rowEnd:t.index,colStart:t.from,colEnd:t.to+1}})),o=!e||e.index>t.to+1}}for(let e=0;e<C.length;e++){const i=C[e];let l=i.stroke;const s=`rBorder:${i.index}:${i.from}:${i.to}:${i.edge}`,c={rowStart:i.index,rowEnd:i.index,colStart:i.from,colEnd:i.to+1},d=n.getLayout(),u=!1,h=d.getColOffset(c.colStart),p=d.getRowOffset(c.rowStart),f=[h,p,d.getColOffset(c.colEnd),p];w.push(t({key:s,points:f,stroke:l,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:c,intersections:i.intersections,layout:d,isVertical:u}))}for(let e=0;e<S.length;e++){const i=S[e];let l=i.stroke;const s=`cBorder:${i.index}:${i.from}:${i.to}:${i.edge}`,c={rowStart:i.from,rowEnd:i.to+1,colStart:i.index,colEnd:i.index},d=n.getLayout(),u=!0,h=d.getColOffset(c.colStart),p=[h,d.getRowOffset(c.rowStart),h,d.getRowOffset(c.rowEnd)];w.push(t({key:s,stroke:l,points:p,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:c,intersections:i.intersections,layout:d,isVertical:u}))}return O("svg",{width:`${c.width}`,height:`${c.height}`,viewBox:`0 0 ${c.width} ${c.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${c.width}px`,height:`${c.height}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",overflow:"visible"},children:w},"borders")},[e,o]);return{overlay:c}},I_=_t.Center,A_=Object.freeze({horizontal:!1,vertical:!1}),P_=It.EmptyTopLeft,z_=(e,t)=>en.EmptyCell,F_=(e,t)=>new Promise((e,t)=>{t("StaticBorderRenderer does not support scrolling")}),N_=z(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:l=2,darkMode:a,forceThinBorder:s,children:c,...d}=e,u=F(null),[h,{width:p,height:f}]=M_(),m=n??p,g=o??f,y=$(()=>{const e=[];for(let t=0;t<i;t++)for(let n=0;n<l;n++){const o={colIndex:n,rowIndex:t};e.push({coords:o,value:o})}return e},[]),b=H(e=>y,[y]),{overlay:w}=L_({getVisibleCells:b,getBorderAt:t,darkMode:a,forceThinBorder:s}),v=Math.floor(m/l),x=Math.floor(g/i),S={getColOffset:e=>Math.ceil(e*v)+0,getRowOffset:e=>Math.ceil(e*x)+0,getColIndex:e=>Math.floor((e-0)/v)-1,getRowIndex:e=>Math.floor((e-0)/x)-1},C={rowStart:0,colStart:0,rowEnd:i,colEnd:l},k={x:0,y:0,width:Math.max(0,m)+0,height:Math.max(0,g)+0},E=$(()=>{const e={},t=Math.floor(m/l);for(let n=0;n<l;n++)e[n]={offset:n*t,size:t,spanIndex:n};return e},[m,g]),_=$(()=>{const e={},t=Math.floor(g/i);for(let n=0;n<i;n++)e[n]={offset:n*t,size:t,spanIndex:n};return e},[m,g]);if(!w)return null;const T={width:m,height:g},M={width:m,height:g},D={getStage:()=>u.current,getTotalSize:()=>T,getViewportSize:()=>M,getLayout:()=>S,getCellCoordsAsRangeCoords:en.cellToRange,getVisibleRangeCoords:()=>C,getVisibleRows:()=>{const e=[];for(let t=0;t<i;t++)e.push(t);return e},getTotalRangeCoords:()=>C,getRelativePointFromClient:(e,t)=>({x:e,y:t}),getVisibleColumns:()=>{const e=[];for(let t=0;t<l;t++)e.push(t);return e},toClipBounds:(e,t)=>k,toViewBounds:e=>e,toAbsoluteBounds:e=>e,getBounds:()=>k,getInsets:()=>null,getRangeCoordsBounds:(e,t)=>null,getVisibleColumnOffsets:()=>E,getVisibleRowOffsets:()=>_,allViews:()=>({[I_]:D}),getAnchor:()=>I_,getZoom:()=>1,scrollCellCoordsIntoView:F_,getCellCoordsFromClient:z_,getScrollOrientation:()=>A_,getScrollTopLeft:()=>P_,getFreezeTopLeft:()=>P_},R=w(D);return L("div",{style:{...r,position:"relative",display:"flex"},...d,children:[O("div",{ref:S_([u,h]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:c}),R]})});function V_(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=V_(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function H_(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=V_(e))&&(o&&(o+=" "),o+=t);return o}const B_=e=>{const{style:t,...n}=e??{};return L("svg",{style:{width:"135px",height:"37px",...t},viewBox:"0 0 135 37",...n,children:[O("path",{d:"M 1.0984,0 C 0.4978,0 0.01,0.40548 0.01,0.90302 v 19.5766 H 0 v 15.61762 c 0,0.30574 0.185,0.57535 0.466,0.73886 v 0.1426 H 0.8565 C 0.9315,36.992 1.0086,37 1.0883,37 H 13.063 25.9706 v 0 h 8.7553 c 0.08,0 0.1563,-0.008 0.2308,-0.0213 h 0.054 v -0.0141 c 0.4621,-0.10457 0.8035,-0.45175 0.8035,-0.86739 v -15.312 c 0,-0.0328 0.01,-0.0658 0.01,-0.0995 V 0.90304 C 35.8242,0.4052 35.3363,6e-5 34.7358,6e-5 H 22.5969 V 1.7e-4 H 21.0014 V 6e-5 Z",fill:"#547dbe",fillRule:"evenodd"}),O("path",{d:"M 1.4849,2.09543 V 9.06408 H 8.1947 V 2.09543 Z m 8.6592,0 V 9.06408 H 16.854 V 2.09543 Z m 8.685,0 v 6.96865 h 6.7098 V 2.09543 Z m 8.7355,0 v 6.96865 h 6.7099 V 2.09543 Z M 1.4849,11.04391 v 6.81444 h 6.7098 v -6.81444 z m 8.6592,0 v 6.81444 h 6.7099 v -6.81444 z m 8.685,0 v 6.81444 h 6.7098 v -6.81444 z m 8.7355,0 v 6.81444 h 6.7099 V 11.04391 Z M 1.4849,19.83872 v 6.68584 h 6.7098 v -6.68584 z m 8.6592,0 v 6.68584 h 6.7351 v -6.68584 z m 8.685,0 v 6.68584 h 6.7098 v -6.68584 z m 8.7355,0 v 6.68584 h 6.7099 v -6.68584 z m -26.052,8.38811 v 6.68588 h 6.7098 v -6.68588 z m 8.6592,0 v 6.68588 h 6.7355 v -6.68588 z m 8.685,0 v 6.68588 h 6.7099 v -6.68588 z m 8.7356,0 v 6.68588 h 6.7098 v -6.68588 z",fill:"#ffffff",fillRule:"evenodd"}),O("path",{d:"m 1.4785,2.09737 v 6.96865 h 6.741 V 2.09737 Z m 0,8.94851 v 6.81449 h 6.741 v -6.81449 z m 0,8.79485 v 6.6858 h 6.741 v -6.6858 z m 0.028,8.388 v 6.68588 h 6.741 v -6.68588 z",fill:"#547dbe",fillRule:"evenodd",strokeWidth:"0.4"}),O("path",{d:"M 120.9895,32.82218 V 10.13469 h 4.7986 v 18.71559 h 9.2153 v 3.9719 z m 0.4853,0 h -5.4976 l -5.275,-8.57923 -5.2751,8.57923 h -5.1481 l 7.5314,-11.69325 -7.0545,-10.99424 h 5.3067 l 4.8936,8.16618 4.7986,-8.16618 h 5.1796 l -7.118,11.24826 z M 95.9361,29.04099 c 0.5297,0 1.0381,-0.053 1.5254,-0.15888 0.4872,-0.10591 0.9745,-0.23299 1.4617,-0.3813 v 3.52703 c -0.5084,0.21183 -1.144,0.39189 -1.9066,0.54018 -0.7415,0.16946 -1.5571,0.2542 -2.4469,0.2542 -1.038,0 -1.9701,-0.16947 -2.7964,-0.5084 -0.805,-0.33894 -1.4511,-0.92148 -1.9384,-1.74763 -0.466,-0.84734 -0.6991,-2.01241 -0.6991,-3.49526 v -8.35686 h -2.2562 v -2.00181 l 2.6058,-1.58876 1.3664,-3.65411 h 3.0189 v 3.6859 h 4.8619 v 3.55878 h -4.8619 v 8.35686 c 0,0.65668 0.1906,1.15449 0.5719,1.49342 0.3814,0.31776 0.8792,0.47664 1.4935,0.47664 z M 79.1445,14.83743 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3983,1.35581 2.0972,3.29411 2.0972,5.81491 v 2.28769 H 75.7444 c 0.042,1.33475 0.4342,2.38315 1.1758,3.14596 0.7626,0.76244 1.8113,1.14385 3.1459,1.14385 1.1227,0 2.1396,-0.10609 3.0506,-0.3179 0.9109,-0.23311 1.8536,-0.58257 2.8283,-1.0484 v 3.654 c -0.8476,0.42362 -1.7479,0.73087 -2.7012,0.92139 -0.9322,0.21181 -2.0655,0.3179 -3.4001,0.3179 -1.7373,0 -3.2731,-0.3179 -4.6078,-0.95333 -1.3346,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0169,-5.05235 0.6991,-1.35578 1.6629,-2.37258 2.8917,-3.0504 1.2286,-0.67783 2.6586,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.2879,0.88967 -0.5933,0.59322 -0.9428,1.51461 -1.0487,2.76455 h 6.6415 c -0.021,-1.05904 -0.2967,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3559,-1.04855 -2.4787,-1.04855 z m -17.011,-3.36815 c 2.3939,0 4.29,0.68847 5.6882,2.06535 1.3982,1.35581 2.0973,3.29411 2.0973,5.81491 v 2.28769 H 58.7653 c 0.042,1.33475 0.4343,2.38315 1.1758,3.14596 0.7627,0.76244 1.8113,1.14385 3.1459,1.14385 1.1228,0 2.1397,-0.10609 3.0507,-0.3179 0.911,-0.23311 1.8536,-0.58257 2.8282,-1.0484 v 3.654 c -0.8475,0.42362 -1.7478,0.73087 -2.7011,0.92139 -0.9321,0.21181 -2.0655,0.3179 -3.4002,0.3179 -1.7372,0 -3.273,-0.3179 -4.6077,-0.95333 -1.3347,-0.65673 -2.3833,-1.64162 -3.1459,-2.95507 -0.7627,-1.31344 -1.144,-2.96571 -1.144,-4.9568 0,-2.03367 0.3389,-3.71788 1.0168,-5.05235 0.6991,-1.35578 1.6631,-2.37258 2.8918,-3.0504 1.2287,-0.67783 2.6587,-1.0168 4.2899,-1.0168 z m 0.032,3.36815 c -0.911,0 -1.6736,0.29653 -2.288,0.88967 -0.5931,0.59322 -0.9427,1.51461 -1.0486,2.76455 h 6.6414 c -0.021,-1.05904 -0.2965,-1.92796 -0.8262,-2.60567 -0.5297,-0.69905 -1.3558,-1.04855 -2.4786,-1.04855 z M 41.7033,13.59817 c 0,0.84739 -0.032,1.66288 -0.095,2.44668 -0.042,0.78385 -0.085,1.33456 -0.1271,1.65231 h 0.2542 c 0.5508,-0.88968 1.2605,-1.53575 2.1291,-1.93827 0.8686,-0.40251 1.8325,-0.60371 2.8917,-0.60371 1.8855,0 3.3896,0.50838 4.5124,1.52518 1.144,0.99558 1.716,2.60556 1.716,4.82998 V 32.82218 H 48.2498 V 22.68575 c 0,-2.49951 -0.9322,-3.74937 -2.7964,-3.74937 -1.4194,0 -2.4045,0.49788 -2.9553,1.49362 -0.5297,0.97424 -0.7945,2.38314 -0.7945,4.22592 v 8.16626 H 36.9688 V 8.67305 h 4.7348 z",fill:"#eb594d"}),O("path",{d:"m 23.345,4.88926 c 1.4307,0 2.8282,0.229 4.1916,0.68692 1.3636,0.45803 2.6999,1.15712 4.0084,2.09748 l -1.8344,2.50966 C 28.6222,9.40175 27.5522,8.82162 26.5004,8.44306 25.4486,8.0645 24.3968,7.87524 23.345,7.87524 c -1.9935,0 -3.5435,0.40902 -4.6503,1.22728 -1.1068,0.81819 -1.6601,1.97842 -1.6601,3.48048 v 0.0183 c 0,1.05019 0.3179,1.8502 0.9538,2.39973 0.636,0.54952 1.4615,0.95869 2.4765,1.22731 1.015,0.26862 2.0975,0.51907 3.2468,0.75111 1.003,0.20755 1.9996,0.44872 2.9905,0.7235 0.9905,0.27478 1.8922,0.66562 2.7057,1.1724 0.813,0.50679 1.4615,1.1937 1.9444,2.06075 0.4832,0.86705 0.7247,1.99672 0.7247,3.38884 v 0.0367 c 0,2.45464 -0.8561,4.35355 -2.5682,5.69703 -1.7122,1.34311 -4.1216,2.01505 -7.2278,2.01505 -1.2963,0 -2.5162,-0.12207 -3.6598,-0.36658 -1.1434,-0.24413 -2.2134,-0.61071 -3.2102,-1.09898 -0.9968,-0.48864 -1.9292,-1.09897 -2.7975,-1.83175 l 1.9628,-2.47308 c 1.0763,0.92809 2.2534,1.62428 3.5314,2.08825 1.2779,0.46431 2.669,0.69627 4.1733,0.69627 2.1158,0 3.7513,-0.40613 4.9071,-1.21827 1.1558,-0.81214 1.7335,-1.95096 1.7335,-3.4164 v -0.0183 c 0,-1.06247 -0.2872,-1.87762 -0.8622,-2.44543 -0.5746,-0.56786 -1.3267,-0.99528 -2.2563,-1.28234 -0.9292,-0.28695 -1.9383,-0.52812 -3.0267,-0.72354 -1.0397,-0.18314 -2.0822,-0.39685 -3.1278,-0.64117 -1.0457,-0.24417 -2.0026,-0.60444 -2.8709,-1.08076 -0.8683,-0.47621 -1.5685,-1.15396 -2.1005,-2.0333 -0.532,-0.87933 -0.798,-2.05162 -0.798,-3.5171 v -0.0183 c 0,-2.4792 0.8255,-4.39955 2.4766,-5.7611 1.651,-1.36167 3.9807,-2.04258 6.9892,-2.04258 z",stroke:"#eb594d",strokeWidth:"2",fill:"#f9cecb"})]})},$_=z(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:l,...s}=e??{},[c,d]=N(null);P.useEffect(()=>{(async()=>{const e=await a.getDetails();d(e)})()},[]);const[u,h]=P.useState(!1),p={opacity:.65},f=P.useMemo(()=>{const e=c?.exceptions(),t=e?.length??0;if(0===t)return null;const o=[];for(let r=0;r<t;r++){const t=e[r];o.push(O("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:t},r))}return o},[c,n]);if(null===c)return null;if(c.isValidFor(i))return null;const m=c.type(),g=!f&&m.endsWith("ity"),y=c.licensee(),b=g?1.6:1,w=135/b,v=37/b;let x=null;return!m&&y?.length>0&&(x=O("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:t},children:y})),O("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...l},...s,children:L("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[u?O(B_,{style:p}):O("svg",{width:w,height:v,style:p,children:O("image",{style:{width:w,height:v},href:"https://www.sheetxl.com/watermark.svg",onError:()=>h(!0)})}),L("div",{children:[x,f,O("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),j_=(e,t,n)=>{const o=F(t);o.current=t;const r=n?.fireOnModelChange??!0;V(()=>{if(!e||!o.current)return;const t=Object.keys(o.current),i={},l=t.length;for(let e=0;e<l;e++){const n=t[e];i[n]=(e,t)=>{o.current[n]?.(e,t)}}const a=e.addListeners(i,n);if(r)for(let n=0;n<l;n++)i[t[n]](e);return()=>{a?.()}},[e])},W_=new i("transparent");function U_(t){const{sheet:r,onRepeatCommandChange:i,bodyStyle:a,commands:f,target:m,notifier:g,onStartEdit:y,getViewport:b}=t,[w,v]=N(null),[x,S]=N(null),C=F(null),k=go(y,[y]),E=go(b,[b]),[_,T]=N(),[M,D]=N(()=>r?.getStyles().parseColor(c.Scheme.Bg2)),[R,I]=N(()=>r?.getStyles().getNormal().getFont().getFill()),A=Ur();F(A.getMode()).current=A.getMode();const P=ni(),[z,j]=N(_n.EmptyArray),W=H(()=>{if(C.current!==r)return;const e=r.getSelectedRanges();let t=null;z.length>0&&en.isCellWithinRange(w,z[0].getRange().getCoords())&&(t=z[0]);const n=r?.getSelectedCell(),o=n?.getCoords()??null;ct(()=>{ee(t),v(o),S(e)})},[r,z,x,w]),U=H(_n.debounce(W,210),[W]);V(()=>{C.current=r,W()},[r]);const q=go(()=>r.getRange(w).getCell(),[r,w]),Z=go(async(e,t,n=null,o=!1,l=!0)=>{const a=e?.label?.(),s=async()=>{const e=await Promise.resolve(l&&g?.showBusy?.(a??"Busy..."));try{await r.doBatch(async()=>t(r),a),o&&A.setMode(null),e&&e()}catch(t){if(e&&e(),!t)return;g?.showError?.(t)}},c=[];let d=!1;const u=async()=>(c.push(s),(async()=>{if(!d){for(d=!0;c.length>0;){const e=c.shift();e&&await e()}d=!1}})());if(i){let t=null;if(!1!==n&&e){const o=n??a;t=new Zr(e.key(),m,{label:o,description:o},u)}i(t)}return u()},[r,i,g]),G=go((e,t,o=!1,r)=>Z(e,e=>{const i=e.getSelectedRanges();o&&i.updateStyle(null,r),i.updateStyle(t,r),i.autoFit({expandOnly:n.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[r]),K=go((e,t,n)=>{Z(e,e=>{let o=t;(n||t?.address)&&(o=o??{},!n&&t?.address?.startsWith("#")?n=t?.address.substring(1):n&&(o.displayText=n)),e.getSelectedRange().setHyperlink(o)})},[r]),X=go((e,t)=>{Z(e,e=>{e.getSelectedRange().setComments(t)})},[r]),Y=go((e,t)=>{Z(e,e=>{e.getSelectedRanges().clear(t)})},[r]),J=go(async(e,t,o=!1,r=!1)=>Z(e,async e=>{let i=e.getSelectedRanges();o&&(t===n.Orientation.Row?i=i.getEntireRows(r):t===n.Orientation.Column&&(i=i.getEntireColumns(r)));let l=null;const a=A.getMode()?.key;if("copy"===a||"cut"===a){const e=await P.getClipboard().readReference();e&&"range"===e.getItemType()&&(l=e.getItem(),l.getCoords()||(l=null))}if(l){const e=await i.insertFrom(l,{...l.getMarkOptions(),orientation:t,autoSelect:!0});!e||e.isEntireRows()||e.isEntireColumns()||e.autoFit({orientations:n.Orientations.Row,minContent:!0}),A.setMode(null)}else i.insert(t,{autoSelect:!0})},"Insert Cells",!1),[A]),[Q,ee]=N(null),te=go(e=>r.getStyles().setDefaultTableStyle(e),[r]),ne=go(e=>{r.getStyles().getTableStyle(e)?.delete()},[r]),oe=go((e,t)=>{Z(e,async e=>{const o=e.getSelectedRange(),r=e.getSelectedCell().getCoords();let i=null,l=0;const a=r.rowIndex>0?e.getRange({rowIndex:r.rowIndex,colIndex:r.colIndex}).getExtended(n.Direction.Up):null;a&&e.getRange({colStart:r.colIndex,rowStart:a.getCoords().rowStart,colEnd:r.colIndex,rowEnd:a.getCoords().rowStart}).isContentful()&&(i=n.Direction.Up,l=r.rowIndex-a.getCoords().rowEnd);const s=r.colIndex>0?e.getRange({rowIndex:r.rowIndex,colIndex:r.colIndex-1}).getExtended(n.Direction.Left):null;if(s&&e.getRange({colStart:s.getCoords().colStart,rowStart:r.rowIndex,colEnd:s.getCoords().colStart,rowEnd:r.rowIndex}).isContentful()){const e=r.colIndex-s.getCoords().colEnd;(e<l||!i)&&(i=n.Direction.Left,l=e)}let c=null;if(i===n.Direction.Up){if(c={...a.getCoords()},(c.rowEnd===r.rowIndex||!e.getRange({colIndex:r.colIndex,rowIndex:r.rowIndex-1}).isContentful())&&c.rowStart>0&&e.getRange({colIndex:r.colIndex,rowIndex:c.rowStart-1}).isContentful()){const e=a.getExtended(n.Direction.Up);c={colStart:r.colIndex,rowStart:e.getCoords().rowStart,colEnd:r.colIndex,rowEnd:a.getCoords().rowEnd}}c.rowEnd=r.rowIndex-1}else if(i===n.Direction.Left){if(c={...s.getCoords()},(c.colEnd===r.colIndex||!e.getRange({colIndex:r.colIndex-1,rowIndex:r.rowIndex}).isContentful())&&c.colStart>0&&e.getRange({colIndex:c.colStart-1,rowIndex:r.rowIndex}).isContentful()){const e=s.getExtended(n.Direction.Left);c={colStart:e.getCoords().colStart,rowStart:r.rowIndex,colEnd:e.getCoords().colEnd,rowEnd:r.rowIndex}}c.colEnd=r.colIndex-1}if(1!==o.size&&i){const r=o.getCoords(),l=o.startIncrementalUpdates({orientation:n.Orientation.Column}),a={...c},s=r.rowStart,d=r.rowEnd,u=r.colStart,h=r.colEnd,p=i===n.Direction.Up;for(let n=u;n<=h;n++){a.colStart=p?n:c.colStart+(n-u),a.colEnd=p?n:c.colEnd+(n-u);for(let o=s;o<=d;o++){a.rowStart=p?c.rowStart+(o-s):o,a.rowEnd=p?c.rowEnd+(o-s):o;const r=e.getRange(a).toString();l.pushAt(o,n,`=${t}(${r})`)}}l.apply()}else{const n=c?e.getRange(c).toString():"",o=`=${t}(`;k?.({text:`${o}${n})`,editMode:!0,initialSelection:{start:o.length,end:o.length+n.length}})}},!1)},[r]),re=go((e,t,n=!1,o=!0)=>{Z(e,async r=>{let i=null;if(Q)return void Q.updateStyleOptions(t);{const e=r.getSelectedRanges().getFixed(!0),t=r.getSelectedRange().getDefaultSortCriteria();let n={ranges:e,hasHeader:t?.options?.hasHeader??!1};i=o?new Promise((e,t)=>{const o={tableOptions:n,onCancel:()=>{t()},onDone:t=>{e(t)},context:{getNames:()=>r.getNames()}};g.showWindow?.("tableNew",o)}):{option:"Ok",tableOptions:n}}const l=await Promise.resolve(i);if("Ok"!==l?.option)throw null;const a=await Promise.resolve(g?.showBusy?.(e.label()));try{const e=r.getTables().add(l.tableOptions.ranges.at(0),{styleName:t?.name,clearFormatting:n,hasHeader:l.tableOptions.hasHeader});await e.getRange().select()}catch(e){a(),g?.showError?.(e)}a()},!1,!0,!1)},[Q]),ie=go(()=>a,[a]),le=go(e=>({styles:()=>r.getStyles(),table:()=>e,bodyStyle:ie,getNames:()=>r.getNames()}),[r]),ae=go(async(e,t,n,o=!0)=>{let i=null;if(!t){let e=r.getSelectedRange();1===e.size&&(e=e.getSurrounding());let n=r.getTables().search({address:r.getSelectedRange()});n.length>0&&(t=n[0]),await e.select()}if(t){if(o){try{n&&await t.select()}catch(e){}i=new Promise(async(n,o)=>{e.update({context:le(t)});const r={command:e,commands:Se,notifier:g,onDone:e=>{n(e)}},i=await(g.showWindow?.("tableDetails",r,{disableAutoDestroy:!0}));setTimeout(()=>{i.focus()},180)})}Promise.resolve(i).then(e=>{},e=>{g?.showError?.(e)})}},[g]),se=go(async(e,t,n=!1)=>{let o=null;if(t)t.isITable?o=t:t.getValue()&&(o=t.getValue());else{const e=r.getTables().search({address:r.getSelectedRange()});e.length>0&&(o=e[0])}if(o){if(!n){const e=o.getRange().getCoords(),t=(e.colEnd-e.colStart+1)*(e.rowEnd-e.rowStart+1);if(t>1e4&&"Convert"!==await(g?.showOptions({title:"Confirm",description:`Converting a table to range with '${t}' cells will set a large number of cell styles and may affect performance.\nContinue?`,options:["Convert","Cancel"],defaultOption:"Convert"})))return}Z(e,async()=>{n?o.delete():o.convertToRange()},!1,!0)}},[g]),ce=go((e,t,o)=>{Z(e,async r=>{let i=r.getSelectedRanges();if(i.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let l=i.at(0);1===l.size&&(l=l.getSurrounding());const a=r.getSelection().getCoords().cell;let s=l.getDefaultSortCriteria(n.Orientation.Row,a);if(!s){if(o)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let c=s.options;if(o&&(c=new Promise((e,t)=>{const n={range:l,options:s.options,cell:a,onCancel:()=>{t()},onDone:n=>{n?e(n.options):t()}};g.showWindow?.("sort",n)})),c=await Promise.resolve(c),!c)return;const d=await Promise.resolve(g?.showBusy?.(e.label()));try{l.doBatch(()=>{const e={...c,...t};l.sort(e),l.autoFit({orientations:e?.orientation===n.Orientation.Column?n.Orientations.Column:n.Orientations.Row,skipCustomSize:!0,minContent:!0})},e?.label?.())}catch(e){d(),g?.showError?.(e)}d()},!1,!1,!1)},[g]),de=go(()=>{console.log("compactedSelection");const e=r.getSelection().getCoords(),t=r.getSelectedRanges().getFlattened().getCoords(),n=(()=>{const e=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);return URL.revokeObjectURL(t),n})();setTimeout(()=>{n.terminate(),console.log("Worker terminated")},5e3);let o=-1;for(let n=0;-1===o&&n<t.length;n++)en.isCellWithinRange(e.cell,t[n])&&(o=n);if(en.isEqualRangesArrays(e.ranges,t))return;const i={cell:e.cell,ranges:t,rangeIndex:o};r.getSelection().updateCoords(i)},[r]),ue=go(()=>{console.log("selectComments")},[r]),he=go(async(e=!1,t=!1)=>{let n=null;if(t)n=r.getEntireRange();else{const t=r.getSelectedRange();if(t.isEntireRange()){const e=r.getSelection().getCoords().cell,t=r.getRange(e);n=t.getSurrounding(),n.isEntireRange()&&(n=t)}else n=t.getSurrounding({contentOnly:e})}n&&await n.select()},[r]),pe=go((e,t,o)=>{Z(e,async e=>{let r=e.getSelectedRanges();o&&(t===n.Orientation.Row?r=r.getEntireRows():t===n.Orientation.Column&&(r=r.getEntireColumns())),r.delete(t)},"Delete Cells")},[r]);go(async e=>{let t=null;const n=E(),o=Math.min(n.width-8,480),i=Math.min(n.height-8,288);try{r.getSelectedRanges(),t=await r.getMovables().add({bounds:{x:n.left+(n.width-o)/2,y:n.top+(n.height-i)/2,width:o,height:i},type:"chart",json:e.template}),t.select(),A.setMode(null)}catch(e){g?.showError?.(e)}return t},[r,g]);const fe=go(async(e,t,n)=>{const o=await(g?.showBusy?.(e.label()));try{const e=await r.getMovables().addImage(t,{autoSelect:!0,...n});return o(),A.setMode(null),e}catch(e){o();let t=e;"string"!=typeof t&&(console.warn(e),t="Unable to resolve image."),g?.showMessage?.(t,{type:rr})}},[r,g]),me=go((e,t)=>{Z(e,async o=>{const r=o.getSelectedRanges();r.doBatch(()=>{const e=t===n.Direction.Up||t===n.Direction.Down,i=r.getCoords().slice().sort(en.createRangeComparator(e?n.Orientation.Row:n.Orientation.Column));for(let e=0;e<i.length;e++){const r=i[e];let l=r;const a=o.getRange(l).getMerges();let s=0,c=0;if(a.length>0){const e=a[0];s=e.rowEnd-e.rowStart,c=e.colEnd-e.colStart}t===n.Direction.Left?l={...r,colStart:r.colEnd+c}:t===n.Direction.Right?l={...r,colEnd:r.colStart+c}:t===n.Direction.Up?l={...r,rowStart:r.rowEnd+s}:t===n.Direction.Down&&(l={...r,rowEnd:r.rowStart+s}),o.getRange(l).autoFill(r,{filler:d.Types.Copy}),o.getRange(r).autoFit({orientations:n.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:e.label()})})},[g]),ge=go(()=>{let e=null;const t=r.getSelectedCell().getCoords();if(t?.rowIndex>0){const n=r.getRange({rowIndex:t.rowIndex-1,colIndex:t.colIndex}).getCell();n&&(e=n.toTextUnformatted(!0))}k?.({text:e})},[r]),[ye,be]=B(e=>e+1,0),[we,ve]=B(e=>e+1,0),xe=$(()=>[new qr("gridlinesToggle",m,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new qr("sheetViewToggleGridlinesRows",m,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new qr("sheetViewToggleGridlinesColumns",m,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new qr("sheetViewFormatGridlinesColor",m,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new qr("sheetViewToggleShowHeadings",m,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new qr("sheetViewToggleShowHeadingRows",m,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new qr("sheetViewToggleShowHeadingColumns",m,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new qr("sheetViewToggleShowHeadingsNumeric",m,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[ro.Ctrl,ro.Shift]}}),new qr("sheetViewToggleFormulaView",m,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[ro.Ctrl]},{key:"`",modifiers:[ro.Ctrl,ro.Shift]}]}),new qr("sheetViewToggleShowZeros",m,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new Zr("selectComments",m,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[ro.Ctrl,ro.Shift]}},()=>ue()),new qr("selectAll",m,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[ro.Ctrl]},{key:"Space",modifiers:[ro.Ctrl,ro.Shift]}]},(e=!1)=>he(!1,e)),new Zr("selectRegion",m,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[ro.Ctrl,ro.Shift]}},()=>he(!0,!1)),new Zr("breakSelection",m,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[ro.Ctrl,ro.Alt]}},()=>de()),new Zr("formatTextRotate0",m,{label:"No Text Rotation",description:"Remove all text rotation."}),new Zr("formatTextRotate45",m,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new Zr("formatTextRotate90",m,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new Zr("formatTextRotate270",m,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new Zr("formatTextRotate315",m,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new qr("formatTextRotateCustom",m,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new Zr("formatTextRotateVertical",m,{label:"Vertical Text",description:"Stack text vertically."}),new Zr("sortAscending",m,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){ce(this,{reverse:!1},!1)}),new Zr("sortDescending",m,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){ce(this,{reverse:!0},!1)}),new Zr("sortCustom",m,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){ce(this,{},!0)}),new qr("protectionSheetToggle",m,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:"Prevent unwanted changes from others by limiting their ability to edit.\nFor example, you can prevent people from editing locked cells or making formatting changes."}),new qr("formatSheetTabColor",m,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new qr("formatCellStyle",m,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(e){G(this,{named:e.getName()},!0)}),new qr("formatTableStyle",m,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(e){re(this,e)}),new qr("formatTableStyleClearCellStyles",m,{label:"Format as Table (Clear Styles)",scopedLabels:{table:"Apply (Clear Styles)"},description:"Create a table or apply style to the current table and clears all cell styles."},function(e){re(this,e,!0)}),new qr("formatTableStyleClearTableStyle",m,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){re(this,{name:null},!0)}),new qr("setDefaultTableStyle",m,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},te),new qr("deleteTableStyle",m,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},ne),new qr("formatBorder",m,{label:"Border",description:"Create an outline border."},function(e){G(this,{border:e})}),new qr("formatFillColor",m,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(e){G(this,{fill:e})}),new qr("formatFontColor",m,{label:"Font Color",description:"Change the color of your text."},function(e){G(this,{font:{fill:e}})}),new qr("formatBoldToggle",m,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[ro.Ctrl]},{key:"2",modifiers:[ro.Ctrl]}]}),new qr("formatItalicToggle",m,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[ro.Ctrl]},{key:"3",modifiers:[ro.Ctrl]}]}),new qr("formatUnderlinedToggle",m,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[ro.Ctrl]},{key:"4",modifiers:[ro.Ctrl]}]}),new qr("formatUnderlinedDoubleToggle",m,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new qr("formatUnderlinedAccountingToggle",m,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new qr("formatUnderlinedAccountingDoubleToggle",m,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new qr("formatStrikeThroughToggle",m,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[ro.Ctrl]}}),new qr("formatSuperscriptToggle",m,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new qr("formatSubscriptToggle",m,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new qr("formatAlignTopToggle",m,{label:"Align Top",description:"Align text to the top."}),new qr("formatTextOverflowVisibleToggle",m,{label:"Overflow Text",description:"Overflow text to the next cells."}),new qr("formatTextOverflowWrapToggle",m,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new qr("formatTextOverflowClipToggle",m,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new qr("formatTextOverflowShrinkToggle",m,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new qr("formatTextOverflowEllipsisToggle",m,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new qr("formatAlignMiddleToggle",m,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new qr("formatAlignBottomToggle",m,{label:"Align Bottom",description:"Align text to the bottom."}),new qr("formatAlignJustifyVerticalToggle",m,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new qr("formatAlignDistributedVerticalToggle",m,{label:"Distribute Vertically",description:"Justify your content vertically."}),new qr("formatAlignLeftToggle",m,{label:"Align Left",description:"Align your content to the left."}),new qr("formatAlignCenterToggle",m,{label:"Align Center",description:"Center your content."}),new qr("formatAlignRightToggle",m,{label:"Align Right",description:"Align your content to the right."}),new qr("formatAlignJustifyToggle",m,{label:"Align Justify",description:"Justify your content."}),new qr("formatAlignCenterContinuousToggle",m,{label:"Center Across",description:"Center your content across multiple cells."}),new qr("formatAlignFillToggle",m,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new qr("formatAlignDistributedHorizontalToggle",m,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new Zr("formatFontSizeIncrease",m,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,e=>({font:{size:d_(e.getFont().getSize(),!0)}}))}),new Zr("formatFontSizeDecrease",m,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,e=>({font:{size:d_(e.getFont().getSize(),!1)}}))}),new qr("formatFontFamily",m,{label:"Font",description:"Select the font your text."},function(e){G(this,{font:{family:e}})}),new qr("formatFontSize",m,{label:"Font Size",description:"Change the size of your text."},function(e){G(this,{font:{size:e}})}),new qr("formatNumberDialog",m,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[ro.Ctrl]},{key:"1",modifiers:[ro.Ctrl,ro.Alt]}]},function(e,t){const n=this,o={initialValue:e??t.state(),context:t.context(),onInputOption:(e,t)=>{G(n,{numberFormat:e})}};g.showWindow?.("numberFormat",o)}),new qr("formatNumberFormat",m,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(e){G(this,{numberFormat:e})}),new qr("formatNumberFormatGeneralStyle",m,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:u.Type.General})}),new qr("formatNumberFormatNumberStyle",m,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:"#,##0.00"})}),new qr("formatNumberFormatTimeStyle",m,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:"h:mm AM/PM"})}),new qr("formatNumberFormatDateStyle",m,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:"d-mmm-yy"})}),new qr("formatNumberFormatAccountingStyle",m,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[ro.Ctrl,ro.Shift]}},function(e){G(this,{numberFormat:e??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new qr("formatNumberFormatPercentStyle",m,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:"0%"})}),new qr("formatNumberFormatScientificStyle",m,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[ro.Ctrl,ro.Shift]}},function(){G(this,{numberFormat:"0.00E+00"})}),new qr("formatNumberFormatCommaStyle",m,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[ro.Ctrl]}},function(){G(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new qr("formatNumberFormatIncreaseDecimal",m,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){G(this,e=>({numberFormat:u.Parser.adjustDecimalPlaces(e.getNumberFormat(),1)}))}),new qr("formatNumberFormatDecreaseDecimal",m,{label:"Decrease Decimal",description:"Show few decimal places."},function(){G(this,e=>({numberFormat:u.Parser.adjustDecimalPlaces(e.getNumberFormat(),-1)}))}),new qr("displayPlaceholdersToggle",m,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[ro.Ctrl]}}),new Zr("noOp",m,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[ro.Ctrl]}},function(){}),new qr("displayOutlineSymbolsToggle",m,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[ro.Ctrl]}}),new qr("hideRows",m,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[ro.Ctrl]}}),new qr("unhideRows",m,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[ro.Ctrl,ro.Shift]}}),new qr("hideColumns",m,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[ro.Ctrl]},{key:"0",modifiers:[ro.Ctrl,ro.Alt]}]}),new qr("unhideColumns",m,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[ro.Ctrl,ro.Shift]}}),new qr("quickFormulaSum",m,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[ro.Alt]}},function(){oe(this,"SUM")}),new qr("quickFormulaAverage",m,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){oe(this,"AVERAGE")}),new qr("quickFormulaCount",m,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){oe(this,"COUNT")}),new qr("quickFormulaMax",m,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){oe(this,"MAX")}),new qr("quickFormulaMin",m,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){oe(this,"MIN")}),new qr("startEditCurrentTime",m,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[ro.Ctrl,ro.Shift]}},function(){k?.({text:r.createTemporaryCell({value:s_(),style:{numberFormat:"Medium Time"}}).toText()})}),new qr("startEditCurrentDate",m,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[ro.Ctrl]}},function(){k?.({text:r.createTemporaryCell({value:s_(),style:{numberFormat:"Short Date"}}).toText()})}),new Zr("sheetZoomOut",m,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[ro.Ctrl,ro.Alt]},{key:"NumpadSubtract",modifiers:[ro.Ctrl,ro.Alt]}]}),new Zr("sheetZoomIn",m,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[ro.Ctrl,ro.Alt]},{key:"NumpadAdd",modifiers:[ro.Ctrl,ro.Alt]}]}),new Zr("sheetZoom100",m,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[ro.Ctrl,ro.Alt]}}),new qr("insertFunction",m,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[ro.Shift]}},function(e,t){console.log("insertFunction")}),new qr("updateHyperlink",m,{label:"Link",scopedLabels:{contextMenu:"Insert Link…",insert:"Link…",hyperlink:"Edit"},description:"Create a hyperlink to either another webpage or another location within this document.",context:()=>q,shortcut:[{key:"K",modifiers:[ro.Ctrl]},{key:"K",modifiers:[ro.Ctrl,ro.Alt]}]},async function(e,t){const n=this,o={context:t.context(),onUpdateHyperlink:(e,t)=>{K(n,e,t)}};g.showWindow?.("hyperlink",o)}),new qr("openHyperlink",m,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[ro.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>q},async(e,t)=>{const n=t.context()();if(!n)return;const o=n.getHyperlink();if(o)try{await o.open()}catch(e){g?.showError?.(e)}}),new qr("deleteHyperlink",m,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>q},function(e,t){K(this,null,null)}),new Zr("insertNote",m,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[ro.Shift]},description:"Add a note to the cell."},(e,t)=>{((e,t)=>{e?.showMessage?.(L("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[t," is not yet implemented.",O("br",{}),O("br",{}),"Please see the ",O("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))})(g,t.label())}),new qr("updateComments",m,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[ro.Ctrl,ro.Alt]},description:"Add a comment to the current cell.",context:()=>q},async function(e,t){const n=this,o={context:t.context(),onUpdateComments:e=>{X(n,e)}};g.showWindow?.("comments",o)}),new qr("deleteComments",m,{label:"Delete Comments",description:"Remove any comments.",context:()=>q},function(e,t){X(this,null)}),new qr("insertImageFromFile",m,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(e=null){let t=null,n=null;"string"==typeof e?n=e:t=e?.file?e.file:e,(t||(t=await _n.openFileDialog(n??"image/*"),t))&&await fe(this,{file:t},e?.options)}),new qr("insertImageFromURL",m,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(e){if(!e){const t=await(g?.showInputOptions?.({title:"Insert Image from Web",description:"Enter the web address for the image to insert.",inputLabel:"Address",initialValue:"https://picsum.photos/360",inputProps:{style:{minWidth:"440px"}},options:["Insert"]}));if("Insert"!==t.option)return;e=t.input}e&&fe(this,{fetch:e})}),new Zr("insertTable",m,{label:"Insert Table",scopedLabels:{contextMenu:"Insert Table…",insert:"Table"},description:"Create a table. Tables enable auto formatting, sorting, filtering, and other advanced features.",shortcut:[{key:"L",modifiers:[ro.Ctrl]},{key:"T",modifiers:[ro.Alt,ro.Ctrl]}]},function(){re(this)}),new qr("editTable",m,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(e){let t=null,n=!1;e.isITable?t=e:e.getValue()&&(t=e.getValue(),n=!0),ae(this,t,n)}),new qr("deleteTable",m,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:"Remove the table.\n\nThe table and table specific styling will be removed but the values will be preserved."},function(e){se(this,e,!0)}),new qr("convertTableToRange",m,{label:"Convert To Range",description:"Convert the table into a normal range of cells.\n\nThe values and the formatting are preserved."},function(e){se(this,e,!1)}),new qr("tableTotalRowToggle",m,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[ro.Ctrl,ro.Alt]}},function(){const e=this.context().table();e&&e.setShowTotals(!e.getShowTotals())}),new qr("tableHeaderRowToggle",m,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const e=this.context().table();e&&e.setShowHeaders(!e.getShowHeaders())}),new qr("autoFilterToggle",m,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[ro.Ctrl,ro.Shift]}},function(){const e=this.context().table();e&&e.setShowFilterButton(!e.getShowFilterButton())}),new qr("autoFilterReapply",m,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[ro.Ctrl,ro.Alt]}}),new qr("autoFilterClear",m,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new Zr("startEditValueAbove",m,{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:[ro.Ctrl]},{key:'"',modifiers:[ro.Ctrl,ro.Shift]}]},ge),new qr("formatPainterToggle",m,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new Zr("insertCells",m,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[ro.Ctrl,ro.Shift]}},function(){J(this)}),new Zr("insertCellsShiftRight",m,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){J(this,n.Orientation.Column)}),new Zr("insertCellsShiftDown",m,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return J(this,n.Orientation.Row)}),new Zr("insertRows",m,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return J(this,n.Orientation.Row,!0)}),new Zr("insertColumns",m,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return J(this,n.Orientation.Column,!0)}),new Zr("insertRowsAfter",m,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return J(this,n.Orientation.Row,!0,!0)}),new Zr("insertColumnsAfter",m,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return J(this,n.Orientation.Column,!0,!0)}),new Zr("deleteCells",m,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[ro.Ctrl]}},function(){return pe(this)}),new Zr("deleteCellsShiftUp",m,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return pe(this,n.Orientation.Row)}),new Zr("deleteCellsShiftLeft",m,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return pe(this,n.Orientation.Column)}),new Zr("deleteRows",m,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return pe(this,n.Orientation.Row,!0)}),new Zr("deleteColumns",m,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return pe(this,n.Orientation.Column,!0)}),new Zr("flashFill",m,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[ro.Ctrl]},{key:"e",modifiers:[ro.Ctrl,ro.Alt]}]}),new Zr("fillDown",m,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[ro.Ctrl]}},function(){return me(this,n.Direction.Down)}),new Zr("fillRight",m,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[ro.Ctrl]}]},function(){return me(this,n.Direction.Right)}),new Zr("fillUp",m,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return me(this,n.Direction.Up)}),new Zr("fillLeft",m,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return me(this,n.Direction.Left)}),new Zr("formatBorderAddOutline",m,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[ro.Ctrl,ro.Shift]}},function(){return G(this,{border:{left:{style:l.StrokeStyle.Thin,color:null},top:{style:l.StrokeStyle.Thin,color:null},right:{style:l.StrokeStyle.Thin,color:null},bottom:{style:l.StrokeStyle.Thin,color:null}}})}),new Zr("formatBorderClearOutline",m,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[ro.Ctrl,ro.Shift]}},function(){return G(this,{border:null})}),new Zr("formatIndentDecrease",m,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return G(this,e=>{const t=e.getAlignment().getIndent()-1;return{alignment:{indent:t>0?t:0}}})}),new Zr("formatIndentIncrease",m,{label:"Increase Indent",description:"Move your content further from the border."},function(){return G(this,t=>{const n={alignment:{indent:t.getAlignment().getIndent()+1}};return t.getAlignment().getHorizontal()===e.HorizontalAlignment.General&&(n.alignment.horizontal=e.HorizontalAlignment.Left),n})}),new qr("mergeToggle",m,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[ro.Ctrl]}}),new Zr("mergeHorizontal",m,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new Zr("mergeVertical",m,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new Zr("unmerge",m,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new Zr("clearContents",m,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:"Clear only the contents in the cells.\n\nThe formatting is not cleared.",shortcut:{key:"Delete"}},function(){Y(this,h.Content.Values)}),new Zr("clearFormats",m,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){Y(this,h.Content.Formats)}),new Zr("clearHyperlinks",m,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){Y(this,h.Content.Hyperlinks)}),new Zr("clearComments",m,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){Y(this,h.Content.Comments)}),new Zr("clearAll",m,{label:"Clear All",scopedLabels:{clear:"All"},description:"Clears everything from the cells.\n\nAll contents and formatting are removed.",shortcut:{key:"Delete",modifiers:[ro.Ctrl,ro.Shift]}},function(){Y(this)}),new qr("freezeToggle",m,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new qr("freezeToggleHorizontal",m,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new qr("freezeToggleVertical",m,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new Zr("unfreeze",m,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new Zr("autoFitRows",m,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new Zr("autoFitColumns",m,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),Se=$(()=>{let e=null;return e=f?f.createChildGroup(m,"sheet",!1):new Gr(m,"sheet"),e.addCommands(xe,!0),e},[f,xe]),[Ce,ke]=N(!1),[Ee,_e]=N(!1);V(()=>{if(C.current!==r||!x)return;const e=x.getCoords(),t=r.getTables().search({address:e[0]});j(e=>_n.isEqualArrays(e,t)?e:t),w&&t[0]&&en.isCellWithinRange(w,t[0].getRange().getCoords())?ee(t[0]??null):ee(null);const n=r.getSelectedRanges(),o=n.getMerges().length>0,i=n.isOverlapping();let l=!0;for(let t=0;l&&t<e.length;t++)l=en.isSingleCell(e[t]);_e(i),ke(0===t.length&&!i&&(o||!l))},[we,x,r]),ei(f,null,{onChange:()=>{const e=!r.getProtection().isFormatCellsAllowed(),t="formatPainter"===A.getMode()?.key;Se.getCommand("formatPainterToggle").update({disabled:e||!f?.getCommand("copy"),state:()=>t}).updateCallback(()=>{if(!t)return Se.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"}});A.setMode(null)})}},[A,ye,f]),j_(r.getView(),{onFreezeSplitChange:()=>{ve()}}),j_(r.getSelection(),{onChange:()=>{U()}});const Te=()=>{Se.getCommand("sheetViewFormatGridlinesColor").update({state:()=>r.getView().getGridLineColor(),context:()=>({onColorSelect:e=>{},darkMode:a.darkMode,autoColor:r.getStyles().parseColor(a.strokeFill),schemeLookup:r.getStyles().schemeLookup(),recentColors:()=>r.getStyles().recentColors(),addRecentColor:e=>r.getStyles().addRecentColor(e),clearRecentColors:()=>r.getStyles().clearRecentColors()})}),Se.getCommand("formatSheetTabColor").updateCallback(e=>{r.setTabColor(e)}).update({state:()=>r?.getTabColor()??W_,context:()=>({onColorSelect:e=>{},darkMode:a.darkMode,autoColor:W_,schemeLookup:r.getStyles().schemeLookup(),recentColors:()=>r.getStyles().recentColors(),addRecentColor:e=>r.getStyles().addRecentColor(e),clearRecentColors:()=>r.getStyles().clearRecentColors()})})},Me=()=>{Se.getCommand("formatBorder").update({context:()=>({onBorderSelect:e=>{T(e)},darkMode:a.darkMode,quickBorder:_,autoColor:r.getStyles().getNormal().getFont().getFill(),autoStyle:l.StrokeStyle.Thin,createTemporaryBorder:e=>r.getStyles().getNormal().createTemporaryStyle({border:e}).getBorder(),schemeLookup:r.getStyles().schemeLookup()})})};V(()=>{Me()},[_]),V(()=>{const e=!r.getProtection().isInsertHyperlinksAllowed();Se.getCommand("openHyperlink").update({disabled:!q().getHyperlink()}),Se.getCommand("deleteHyperlink").update({disabled:e||!q().getHyperlink()});const t=q().getHyperlink()?"Edit":"Insert",n="Link";Se.getCommand("updateHyperlink").update({label:()=>(q().getHyperlink(),`${t} ${n}`),scopedLabels:{contextMenu:`${t} ${n}…`,insert:`${n}…`,hyperlink:`${t}…`},disabled:e})},[q()?.getHyperlink(),ye]),V(()=>{const e=q().getComments(),t=()=>e?"Edit":"Insert",n=()=>e?"Comments":"Comment";Se.getCommand("updateComments").update({label:()=>`${t()} ${n()}`,scopedLabels:{contextMenu:`${t()} ${n()}…`,insert:`${n()}…`}})},[q()?.getComments(),ye]),j_(r,{onViewChange:()=>{const e=r.getView();Se.getCommand("sheetViewToggleFormulaView").update({state:e.isShowFormulas()}),Se.getCommand("sheetViewToggleShowZeros").update({state:e.isShowZeros()}),Se.getCommand("gridlinesToggle").update({state:e.isShowColumnGridlines()||e.isShowRowGridlines()}),Se.getCommand("sheetViewToggleGridlinesColumns").update({state:e.isShowColumnGridlines()}),Se.getCommand("sheetViewToggleGridlinesRows").update({state:e.isShowRowGridlines()}),Se.getCommand("sheetViewToggleShowHeadings").update({state:e.isShowColumnHeaders()||e.isShowRowHeaders()}),Se.getCommand("sheetViewToggleShowHeadingColumns").update({state:e.isShowColumnHeaders()}),Se.getCommand("sheetViewToggleShowHeadingRows").update({state:e.isShowRowHeaders()}),Se.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>r.getView().getColumnHeaderStyle()===p.HeaderTextStyle.Zero&&r.getView().getRowHeaderStyle()===p.HeaderTextStyle.Zero}),Te()},onTabColorChange:()=>{Te()},onMergesChange:()=>{ve()},onMovablesChange:()=>{ve()},onTablesChange:()=>{ve()},onProtectionChange:()=>{ve(),be()},onStyleChange:()=>{Te(),Me(),ve()}}),V(()=>{Te(),Me()},[a]),V(()=>{const e=!r.getProtection().isFormatCellsAllowed(),t=z.length>0&&!Q||e,n=le(Q),o={context:n};Se.getCommand("editTable").update(o),Se.getCommand("deleteTable").update(o),Se.getCommand("convertTableToRange").update(o);const i={context:n,disabled:t};Se.getCommand("formatTableStyle").update({label:Q?"Apply Table Style":"Format As Table",...i}),Se.getCommand("formatTableStyleClearCellStyles").update(i),Se.getCommand("deleteTableStyle").update(i),Se.getCommand("convertTableToRange").update(i),Se.getCommand("insertTable").update({disabled:t||z.length>0});const l={context:n,disabled:t||0===z.length};Se.getCommand("tableHeaderRowToggle").update(l),Se.getCommand("tableTotalRowToggle").update(l),Se.getCommand("autoFilterToggle").update(l),Se.getCommand("formatTableStyleClearTableStyle").update({...l,disabled:l.disabled||!Q||null===Q.getStyleOptions().name})},[Q,z,ye]),V(()=>{Se.getCommand("sheetZoomOut").updateCallback(()=>{r.getView().update({zoomScale:_n.findNextStep(r.getView().getZoomScale(),!1)})}),Se.getCommand("sheetZoomIn").updateCallback(()=>{r.getView().update({zoomScale:_n.findNextStep(r.getView().getZoomScale())})}),Se.getCommand("sheetZoom100").updateCallback(()=>{r.getView().update({zoomScale:100})}),Se.getCommand("gridlinesToggle").updateCallback(()=>{const e=r.getView().isShowColumnGridlines()&&r.getView().isShowRowGridlines();r.getView().update({showColumnGridlines:!e,showRowGridlines:!e})}),Se.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{r.getView().update({showRowGridlines:!r.getView().isShowRowGridlines()})}),Se.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{r.getView().update({showColumnGridlines:!r.getView().isShowColumnGridlines()})}),Se.getCommand("sheetViewFormatGridlinesColor").updateCallback(e=>{r.getView().update({gridLineColor:e})}),Se.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const e=r.getView().isShowColumnHeaders()&&r.getView().isShowRowHeaders();r.getView().update({showColumnHeaders:!e,showRowHeaders:!e})}),Se.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{r.getView().update({showColumnHeaders:!r.getView().isShowColumnHeaders()})}),Se.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{r.getView().update({showRowHeaders:!r.getView().isShowRowHeaders()})}),Se.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const e=r.getView().getColumnHeaderStyle()===p.HeaderTextStyle.Zero&&r.getView().getRowHeaderStyle()===p.HeaderTextStyle.Zero;r.getView().update({columnHeaderStyle:e?p.HeaderTextStyle.A1:p.HeaderTextStyle.Zero,rowHeaderStyle:e?p.HeaderTextStyle.One:p.HeaderTextStyle.Zero})}),Se.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{r.getView().update({showFormulas:!r.getView().isShowFormulas()})}),Se.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{r.getView().update({showZeros:!r.getView().isShowZeros()})})},[r]),V(()=>{const e=r.getView().getFreezePanes(),t=()=>0!==e.coords.rowIndex,n=()=>0!==e.coords.colIndex,o=()=>0!==e.coords.rowIndex||0!==e.coords.colIndex;Se.getCommand("freezeToggle").updateCallback(()=>{o()?r.getView().setFreezePanes(null):o()?n()?r.getView().setFreezePanes({coords:{rowIndex:w.rowIndex}}):t()&&r.getView().setFreezePanes({coords:{colIndex:w.colIndex}}):r.getView().setFreezePanes({coords:w})}).update({state:o,disabled:()=>!w||!o()&&0===w.rowIndex&&0===w.colIndex}),Se.getCommand("freezeToggleHorizontal").updateCallback(()=>{r.getView().setFreezePanes({coords:{rowIndex:t()?0:w.rowIndex}})}).update({state:t,disabled:()=>!w||!t()&&0===w.rowIndex}),Se.getCommand("freezeToggleVertical").updateCallback(()=>{r.getView().setFreezePanes({coords:{colIndex:n()?0:w.colIndex}})}).update({state:n,disabled:()=>!w||!n()&&0===w.colIndex}),Se.getCommand("unfreeze").updateCallback(()=>{r.getView().setFreezePanes(null)}).update({disabled:()=>!o()})},[we,w,r,a]);const De=q().getStyle(),Re=De.getFont(),Oe=De.getAlignment(),Le=Oe.getHorizontal(),Ie=Oe.getVertical(),Ae=Oe.getOverflow(),Pe=Oe.getRotation();return V(()=>{Se.getCommand("formatCellStyle").update({context:()=>({styles:()=>r.getStyles(),named:()=>q().getStyle(!0).getNamed(),bodyStyle:ie,createTemporaryCell:e=>r.createTemporaryCell(e)})}),Se.getCommand("formatFillColor").update({state:()=>{let e=null;const t=De.getFill();return t?.getType()===s.Type.Solid?e=t.getColor():t?.getType()===s.Type.Gradient?e=t.getStops()?.[0]?.getColor():t?.getType()===s.Type.Pattern&&(e=t.getBackground()),e},context:()=>{const e=r.getStyles();return{onColorSelect:e=>{D(e??W_)},darkMode:a.darkMode,quickColor:M,autoColor:W_,schemeLookup:e.schemeLookup(),recentColors:e.recentColors(),addRecentColor:t=>e.addRecentColor(t),clearRecentColors:()=>e.clearRecentColors()}}}),Se.getCommand("formatFontColor").update({state:()=>Re.toJSON()?.fill?Re.getFill():null,context:()=>{const e=r.getStyles();return{onColorSelect:e=>{I(e)},darkMode:a.darkMode,quickColor:R,autoColor:e.getNormal().getFont().getFill(),schemeLookup:e.schemeLookup(),recentColors:e.recentColors(),addRecentColor:t=>e.addRecentColor(t),clearRecentColors:()=>e.clearRecentColors()}}}),Se.getCommand("formatNumberFormat").update({state:()=>De.getNumberFormat(),context:()=>q}),Se.getCommand("formatNumberDialog").update({state:()=>De.getNumberFormat(),context:()=>q}),Se.getCommand("formatFontFamily").update({state:()=>Re.getFamily()}),Se.getCommand("formatFontSize").update({state:()=>Re.getSize()});const t=function(){const e=Re.getWeight()||0;return!isNaN(e)&&e>500};Se.getCommand("formatBoldToggle").updateCallback(function(){G(this,{font:{weight:t()?400:700}})}).update({state:t});const n=function(){return Re.getStyle()===o.Style.Italic};Se.getCommand("formatItalicToggle").updateCallback(function(){G(this,{font:{style:n()?o.Style.Normal:o.Style.Italic}})}).update({state:n}),Se.getCommand("formatStrikeThroughToggle").updateCallback(function(){G(this,{font:{strike:!Re.getStrike()}})}).update({state:Re.getStrike()}),Se.getCommand("formatUnderlinedToggle").updateCallback(function(){G(this,{font:{underline:Re.getUnderline()!==o.UnderlineStyle.Single?o.UnderlineStyle.Single:o.UnderlineStyle.None}})}).update({state:Re.getUnderline()===o.UnderlineStyle.Single}),Se.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){G(this,{font:{underline:Re.getUnderline()!==o.UnderlineStyle.Double?o.UnderlineStyle.Double:o.UnderlineStyle.None}})}).update({state:Re.getUnderline()===o.UnderlineStyle.Double}),Se.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){G(this,{font:{underline:Re.getUnderline()!==o.UnderlineStyle.SingleAccounting?o.UnderlineStyle.SingleAccounting:o.UnderlineStyle.None}})}).update({state:Re.getUnderline()===o.UnderlineStyle.SingleAccounting}),Se.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){G(this,{font:{underline:Re.getUnderline()!==o.UnderlineStyle.DoubleAccounting?o.UnderlineStyle.DoubleAccounting:o.UnderlineStyle.None}})}).update({state:Re.getUnderline()===o.UnderlineStyle.DoubleAccounting}),Se.getCommand("formatSuperscriptToggle").updateCallback(function(){G(this,{font:{verticalAlign:Re.getVerticalAlignment()!==o.VerticalAlignment.Super?o.VerticalAlignment.Super:o.VerticalAlignment.Baseline}})}).update({state:Re.getVerticalAlignment()===o.VerticalAlignment.Super}),Se.getCommand("formatSubscriptToggle").updateCallback(function(){G(this,{font:{verticalAlign:Re.getVerticalAlignment()!==o.VerticalAlignment.Sub?o.VerticalAlignment.Sub:o.VerticalAlignment.Baseline}})}).update({state:Re.getVerticalAlignment()===o.VerticalAlignment.Sub});const i=()=>Ae===e.Overflow.Visible;Se.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){G(this,{alignment:{overflow:(i(),e.Overflow.Visible)}})}).update({state:i});const l=()=>Ae===e.Overflow.Wrap;Se.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){G(this,{alignment:{overflow:l()?e.Overflow.Visible:e.Overflow.Wrap}})}).update({state:l});const c=function(){return Ae===e.Overflow.Clip};Se.getCommand("formatTextOverflowClipToggle").updateCallback(function(){G(this,{alignment:{overflow:c()?e.Overflow.Visible:e.Overflow.Clip}})}).update({state:c});const d=function(){return Ae===e.Overflow.Shrink};Se.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){G(this,{alignment:{overflow:d()?e.Overflow.Visible:e.Overflow.Shrink}})}).update({state:d});const u=function(){return Ae===e.Overflow.Shrink};Se.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){G(this,{alignment:{overflow:u()?e.Overflow.Visible:e.Overflow.Ellipsis}})}).update({state:u,disabled:!0});const h=function(){return Ie===e.VerticalAlignment.Top};Se.getCommand("formatAlignTopToggle").updateCallback(function(){G(this,{alignment:{vertical:h()?e.VerticalAlignment.Bottom:e.VerticalAlignment.Top}})}).update({state:h});const p=function(){return Ie===e.VerticalAlignment.Center};Se.getCommand("formatAlignMiddleToggle").updateCallback(function(){G(this,{alignment:{vertical:p()?e.VerticalAlignment.Bottom:e.VerticalAlignment.Center}})}).update({state:p});const f=function(){return Ie===e.VerticalAlignment.Bottom};Se.getCommand("formatAlignBottomToggle").updateCallback(function(){G(this,{alignment:{vertical:(f(),e.VerticalAlignment.Bottom)}})}).update({state:f});const m=function(){return Ie===e.VerticalAlignment.Justify};Se.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){G(this,{alignment:{vertical:m()?e.VerticalAlignment.Bottom:e.VerticalAlignment.Justify}})}).update({state:m});const g=function(){return Ie===e.VerticalAlignment.Distributed};Se.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){G(this,{alignment:{vertical:g()?e.VerticalAlignment.Bottom:e.VerticalAlignment.Distributed}})}).update({state:g});const y=function(){return Le===e.HorizontalAlignment.Left};Se.getCommand("formatAlignLeftToggle").updateCallback(function(){G(this,{alignment:{horizontal:y()?e.HorizontalAlignment.General:e.HorizontalAlignment.Left}})}).update({state:y});const b=function(){return Le===e.HorizontalAlignment.Center};Se.getCommand("formatAlignCenterToggle").updateCallback(function(){G(this,{alignment:{horizontal:b()?e.HorizontalAlignment.General:e.HorizontalAlignment.Center}})}).update({state:b});const w=function(){return Le===e.HorizontalAlignment.CenterContinuous};Se.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const t={alignment:{horizontal:w()?e.HorizontalAlignment.General:e.HorizontalAlignment.CenterContinuous,rotation:null}};G(this,t)}).update({state:w});const v=function(){return Le===e.HorizontalAlignment.Fill};Se.getCommand("formatAlignFillToggle").updateCallback(function(){const t={alignment:{horizontal:v()?e.HorizontalAlignment.General:e.HorizontalAlignment.Fill,rotation:null}};G(this,t)}).update({state:v});const x=function(){return Le===e.HorizontalAlignment.Distributed};Se.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){G(this,{alignment:{horizontal:x()?e.HorizontalAlignment.General:e.HorizontalAlignment.Distributed}})}).update({state:x});const S=function(){return Le===e.HorizontalAlignment.Right};Se.getCommand("formatAlignRightToggle").updateCallback(function(){G(this,{alignment:{horizontal:S()?e.HorizontalAlignment.General:e.HorizontalAlignment.Right}})}).update({state:S});const C=function(){return Le===e.HorizontalAlignment.Justify};Se.getCommand("formatAlignJustifyToggle").updateCallback(function(){G(this,{alignment:{horizontal:C()?e.HorizontalAlignment.General:e.HorizontalAlignment.Justify}})}).update({state:C});const k=!r.getProtection().isFormatCellsAllowed(),E=Le===e.HorizontalAlignment.CenterContinuous||Le===e.HorizontalAlignment.Fill;Se.getCommand("formatTextRotate0").updateCallback(function(e){G(this,{alignment:{rotation:0}})}).update({disabled:k||E,state:0===Pe}),Se.getCommand("formatTextRotate45").updateCallback(function(e){G(this,{alignment:{rotation:e??1?45:0}})}).update({disabled:k||E,state:45===Pe}),Se.getCommand("formatTextRotate90").updateCallback(function(e){G(this,{alignment:{rotation:e??1?90:0}})}).update({disabled:k||E,state:90===Pe}),Se.getCommand("formatTextRotate270").updateCallback(function(e){G(this,{alignment:{rotation:e??1?270:0}})}).update({disabled:k||E,state:270===Pe}),Se.getCommand("formatTextRotate315").updateCallback(function(e){G(this,{alignment:{rotation:e??1?315:0}})}).update({disabled:k||E,state:315===Pe}),Se.getCommand("formatTextRotateCustom").updateCallback(function(e){G(this,{alignment:{rotation:e}})}).update({disabled:k||E,state:Pe??0})},[De,r,a,M,R]),V(()=>{const t=!r.getProtection().isFormatCellsAllowed(),o=r.getSelectedRanges().getMerges().length>0,i=async(t,o)=>{Z(o,async r=>{const i=async(i=!1)=>{const l=await Promise.resolve(g?.showBusy?.(o.label()));try{const o=r.getSelectedRanges();if(o.merge({orientations:t,discardMultipleValues:i}),t===n.Orientations.Both){const t={alignment:{horizontal:e.HorizontalAlignment.Center}};o.updateStyle(t)}}catch(e){throw e}finally{l?.()}};let l;try{await i()}catch(e){if("discardMultipleValues"!==e.type)throw e;l=!0}if(l&&g?.showOptions){if("Merge"!==await(g?.showOptions({title:"Confirm",description:"Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",options:["Merge","Cancel"],defaultOption:"Merge"})))return;await i(!0)}},void 0,void 0,!1)},l=e=>{Z(e,async e=>{try{const t=e.getSelectedRanges();t.unmerge();const n={alignment:{horizontal:null}};t.updateStyle(n)}catch(e){throw e}})};Se.getCommand("mergeToggle").updateCallback(function(){en.isSingleCell(r.getSelectedRange().getCoords())||(o?l(this):i(n.Orientations.Both,this))}).update({state:o,disabled:!Ce||t}),Se.getCommand("mergeHorizontal").updateCallback(function(){i(n.Orientations.Column,this)}).update({disabled:!Ce||t}),Se.getCommand("mergeVertical").updateCallback(function(){i(n.Orientations.Row,this)}).update({disabled:!Ce}),Se.getCommand("unmerge").updateCallback(function(){l(this)}).update({disabled:!o||!Ce||t});const a={disabled:t};Se.getCommand("hideRows").updateCallback(function(){Z(this,e=>{e.getRowHeaders().setHidden(e.getSelectedRanges().getCoords(),!0)})}).update(a),Se.getCommand("hideColumns").updateCallback(function(){Z(this,e=>{e.getColumnHeaders().setHidden(e.getSelectedRanges().getCoords(),!0)})}).update(a),Se.getCommand("unhideRows").updateCallback(function(){Z(this,e=>{e.getRowHeaders().setHidden(e.getSelectedRanges().getCoords(),!1)})}).update(a),Se.getCommand("unhideColumns").updateCallback(function(){Z(this,e=>{e.getColumnHeaders().setHidden(e.getSelectedRanges().getCoords(),!1)})}).update(a),Se.getCommand("autoFitRows").updateCallback(function(){Z(this,e=>{e.getSelectedRanges().autoFit({orientations:n.Orientations.Row})})}).update(a),Se.getCommand("autoFitColumns").updateCallback(function(){Z(this,e=>{e.getSelectedRanges().autoFit({orientations:n.Orientations.Column})})}).update(a);let s=!1,c=0,d=!1,u=!1,h=0,p=!1;!x||t||Ee||(s=x.isEntireColumnsAny(),s&&!x.isEntireColumns()?d=!0:c=x.getColumnCount(),u=x.isEntireRowsAny(),u&&!x.isEntireRows()?p=!0:h=x.getRowCount());const f={disabled:t||x&&1!==x.getCount()};Se.getCommand("sortAscending").update(f),Se.getCommand("sortDescending").update(f);const m={disabled:s||u||t||Ee},y=s||t||Ee||p;y&&(c=1);const b=u||t||Ee||d;b&&(h=1);let w="",v="",S="",C="",k="",E="",_="",T="",M="";c>1&&(E=v=c+" ",_=S="s"),h>1&&(T=C=h+" ",M=k="s"),"copy"===A.getMode()?.key?(w=C=v="Copied ",S=k="s"):"cut"===A.getMode()?.key&&(w=C=v="Cut ",S=k="s");let D="",R="";if(x){const e=x.getDefaultShiftOrientation()===n.Orientation.Column;D=` (${e?"Shift Right":"Shift Down"})`,R=` (${e?"Shift Left":"Shift up"})`,Se.getCommand("deleteCells").update({label:`Delete Cells${R}`})}Se.getCommand("insertCells").update({label:`Insert ${w}Cells${D}`,scopedLabels:{insertCells:`${w}At Selection`}}),Se.getCommand("insertCellsShiftRight").update(m),Se.getCommand("insertCellsShiftDown").update(m),Se.getCommand("deleteCellsShiftUp").update(m),Se.getCommand("deleteCellsShiftLeft").update(m),Se.getCommand("insertRows").update({label:`Insert ${C}Row${k}`,scopedLabels:{insertCells:`${C}Row${k}`},disabled:b}),Se.getCommand("insertRowsAfter").update({label:`Insert ${C}Row${k} Below`,disabled:b}),Se.getCommand("insertColumns").update({label:`Insert ${v}Column${S}`,scopedLabels:{insertCells:`${v}Column${S}`},disabled:y}),Se.getCommand("insertColumnsAfter").update({label:`Insert ${v}Column${S} After`,disabled:y}),Se.getCommand("deleteRows").update({label:`Delete ${T}Row${M}`,scopedLabels:{deleteCells:`${T}Row${M}`},disabled:b}),Se.getCommand("deleteColumns").update({label:`Delete ${E}Column${_}`,scopedLabels:{deleteCells:`${E}Column${_}`},disabled:y})},[we,Ce,Ee,x,A,g,ye]),V(()=>{const t=r.getProtection(),n=r.getProtection().isLocked(),o=!t.isFormatCellsAllowed(),i={disabled:o};Se.getCommand("protectionSheetToggle").updateCallback(async(e,o)=>{let r=null;try{if(n){let e=null;if(t.hasPassword()){const t=await(g?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"}));if("Unprotect"!==t.option)return;e=t.input}r=await Promise.resolve(g?.showBusy?.(o.label())),await t.unlock(e)}else r=await Promise.resolve(g?.showBusy?.(o.label())),await t.lock();r?.()}catch(e){r?.(),g?.showError?.(e)}}).update({state:n,label:()=>n?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:n?"Unprotect":"Protect"}}),Se.getCommand("deleteTable").update(i),Se.getCommand("sortAscending").update(i),Se.getCommand("sortDescending").update(i),Se.getCommand("sortCustom")?.update(i),Se.getCommand("updateComments").update(i),Se.getCommand("deleteComments").update(i),Se.getCommand("insertChart")?.update(i),Se.getCommand("insertImageFromFile").update(i),Se.getCommand("insertImageFromURL").update(i),Se.getCommand("formatBorder").update(i),Se.getCommand("formatFillColor").update(i),Se.getCommand("formatFontColor").update(i),Se.getCommand("formatBoldToggle").update(i),Se.getCommand("formatItalicToggle").update(i),Se.getCommand("formatUnderlinedToggle").update(i),Se.getCommand("formatStrikeThroughToggle").update(i),Se.getCommand("formatSuperscriptToggle").update(i),Se.getCommand("formatSubscriptToggle").update(i),Se.getCommand("formatAlignTopToggle").update(i),Se.getCommand("formatTextOverflowVisibleToggle").update(i),Se.getCommand("formatTextOverflowWrapToggle").update(i),Se.getCommand("formatTextOverflowClipToggle").update(i),Se.getCommand("formatTextOverflowShrinkToggle").update(i),Se.getCommand("formatAlignMiddleToggle").update(i),Se.getCommand("formatAlignBottomToggle").update(i),Se.getCommand("formatAlignDistributedVerticalToggle").update(i),Se.getCommand("formatAlignJustifyVerticalToggle").update(i),Se.getCommand("formatAlignLeftToggle").update(i),Se.getCommand("formatAlignCenterToggle").update(i),Se.getCommand("formatAlignRightToggle").update(i),Se.getCommand("formatAlignJustifyToggle").update(i),Se.getCommand("formatAlignCenterContinuousToggle").update(i),Se.getCommand("formatAlignDistributedHorizontalToggle").update(i),Se.getCommand("formatAlignFillToggle").update(i),Se.getCommand("formatFontSizeIncrease").update(i),Se.getCommand("formatFontSizeDecrease").update(i),Se.getCommand("formatFontFamily").update(i),Se.getCommand("formatFontSize").update(i),Se.getCommand("formatNumberFormat").update(i),Se.getCommand("formatNumberFormatGeneralStyle").update(i),Se.getCommand("formatNumberFormatNumberStyle").update(i),Se.getCommand("formatNumberFormatTimeStyle").update(i),Se.getCommand("formatNumberFormatDateStyle").update(i),Se.getCommand("formatNumberFormatAccountingStyle").update(i),Se.getCommand("formatNumberFormatPercentStyle").update(i),Se.getCommand("formatNumberFormatScientificStyle").update(i),Se.getCommand("formatNumberFormatCommaStyle").update(i),Se.getCommand("formatNumberFormatIncreaseDecimal").update(i),Se.getCommand("formatNumberFormatDecreaseDecimal").update(i),Se.getCommand("hideColumns").update(i),Se.getCommand("unhideColumns").update(i),Se.getCommand("hideRows").update(i),Se.getCommand("unhideRows").update(i),Se.getCommand("quickFormulaSum").update(i),Se.getCommand("quickFormulaAverage").update(i),Se.getCommand("quickFormulaCount").update(i),Se.getCommand("quickFormulaMax").update(i),Se.getCommand("quickFormulaMin").update(i),Se.getCommand("startEditCurrentTime").update(i),Se.getCommand("startEditCurrentDate").update(i),Se.getCommand("startEditValueAbove").update(i),Se.getCommand("fillDown").update(i),Se.getCommand("fillRight").update(i),Se.getCommand("fillUp").update(i),Se.getCommand("fillLeft").update(i),Se.getCommand("formatCellStyle").update(i),Se.getCommand("formatTableStyle").update(i),Se.getCommand("formatPainterToggle").update(i),Se.getCommand("formatBorderAddOutline").update(i),Se.getCommand("formatBorderClearOutline").update(i),Se.getCommand("formatIndentDecrease").update(i),Se.getCommand("formatIndentIncrease").update(i),Se.getCommand("clearContents").update(i),Se.getCommand("clearFormats").update(i),Se.getCommand("clearAll").update(i),Se.getCommand("clearComments").update(i),Se.getCommand("clearHyperlinks").update(i),Se.getCommand("autoFilterClear").update(i),Se.getCommand("autoFilterReapply").update(i);const l=Le===e.HorizontalAlignment.CenterContinuous||Le===e.HorizontalAlignment.Fill,a={disabled:o||l};Se.getCommand("formatTextRotate0").update(a),Se.getCommand("formatTextRotate45").update(a),Se.getCommand("formatTextRotate90").update(a),Se.getCommand("formatTextRotate270").update(a),Se.getCommand("formatTextRotate315").update(a),Se.getCommand("formatTextRotateCustom").update(a),Se.getCommand("formatTextRotateVertical").update(a)},[we]),Se}var q_,Z_;!function(){if(Z_)return q_;Z_=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i="object"==typeof E_&&E_&&E_.Object===Object&&E_,l="object"==typeof self&&self&&self.Object===Object&&self,a=i||l||Function("return this")(),s=Object.prototype.toString,c=Math.max,d=Math.min,u=function(){return a.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(i))return NaN;if(h(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=h(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var a=n.test(i);return a||o.test(i)?r(i.slice(2),a?2:8):t.test(i)?NaN:+i}q_=function(e,t,n){var o,r,i,l,a,s,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,i=r;return o=r=void 0,f=t,l=e.apply(i,n)}function w(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-f>=i}function v(){var e=u();if(w(e))return x(e);a=setTimeout(v,function(e){var n=t-(e-s);return g?d(n,i-(e-f)):n}(e))}function x(e){return a=void 0,y&&o?b(e):(o=r=void 0,l)}function S(){var e=u(),n=w(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(v,t),m?b(e):l}(s);if(g)return a=setTimeout(v,t),b(s)}return void 0===a&&(a=setTimeout(v,t)),l}return t=p(t)||0,h(n)&&(m=!!n.leading,i=(g="maxWait"in n)?c(p(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),f=0,o=s=r=a=void 0},S.flush=function(){return void 0===a?l:x(u())},S}}();var G_,K_,X_={};K_||(K_=1,function(){if(G_)return X_;G_=1;var e=P,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),s=n({inst:{value:a,getSnapshot:t}}),c=s[0].inst,d=s[1];return r(function(){c.value=a,c.getSnapshot=t,l(c)&&d({inst:c})},[e,a,t]),o(function(){return l(c)&&d({inst:c}),e(function(){l(c)&&d({inst:c})})},[e]),i(a),a};X_.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:a}());var Y_,J_,Q_={exports:{}},eT={exports:{}},tT=eT.exports;function nT(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}!function(){if(J_)return Q_.exports;J_=1;for(var e=(Y_||(Y_=1,function(){var e,t,n,o,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?eT.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(eT.exports=function(){return(e()-r)/1e6},t=process.hrtime,o=(e=function(){var e;return 1e9*(e=t())[0]+e[1]})(),i=1e9*process.uptime(),r=o-i):Date.now?(eT.exports=function(){return Date.now()-n},n=Date.now()):(eT.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}.call(tT)),eT.exports),t="undefined"==typeof window?E_:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var a=0,s=0,c=[],d=1e3/60;r=function(t){if(0===c.length){var n=e(),o=Math.max(0,d-(n-a));a=o+n,setTimeout(function(){var e=c.slice(0);c.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(a)}catch(e){setTimeout(function(){throw e},0)}},Math.round(o))}return c.push({handle:++s,callback:t,cancelled:!1}),s},i=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}Q_.exports=function(e){return r.call(t,e)},Q_.exports.cancel=function(){i.apply(t,arguments)},Q_.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=r,e.cancelAnimationFrame=i}}();const oT=z(j((e,t)=>{const{style:n=Jo.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:l,onScrollOffset:a,showCustomScrollButtons:s=!1,offset:c=0,totalSize:d=0,viewportSize:u=0,...h}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[p]=M_(),f=go(i,[i]),m=go(l,[l]),g=$(()=>null===y&&null===b?null:e=>{nT(y,e),nT(b,e)},[y=p,b=t]);var y,b;const[w,v]=N(()=>{const e=r.getView().getTopLeft();return o===ao.Vertical?e.top:e.left}),x=()=>{const e=r.getView().getFreezePanes();return o===ao.Vertical?0===e.coords.rowIndex?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(e.coords.rowIndex)-e.topLeft.top,scroll:e.topLeft.top}:0===e.coords.colIndex?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(e.coords.colIndex)-e.topLeft.left,scroll:e.topLeft.left}},[S,C]=N(x),[k,E]=N(null),[_,T]=N(!1),M=o===ao.Vertical?r.getRowHeaders():r.getColumnHeaders(),D=()=>{const e=r.getUsedRange()?.getCoords()??en.EmptyRange,t=r.getSelection().getCoords().cell;return{colIndex:Math.max(e.colEnd,t.colIndex),rowIndex:Math.max(e.rowEnd,t.rowIndex)}},[R,L]=N(D),I=R?(o===ao.Vertical?R.rowIndex:R.colIndex)+1:0,A=()=>{const e=D();en.isEqualCells(R,e)||L(e)};j_(r.getView(),{onFreezeSplitChange:()=>{C(x)}}),j_(r.getSelection(),{onChange:A}),j_(r,{onUsedRangeChange:A}),V(()=>{L(D())},[r]),V(()=>{if(!k)return _&&m?.(),void T(!1);const e=M.getTextAt(M.findIndex(w/(r.getView().getZoomScale()/100)+S.scroll+S.shift));T(!0),f?.({...k,display:(o===ao.Vertical?"Row":"Column")+": "+e})},[c,w,S,o,k,M,_,r]);const P=go((e,t,n)=>{v(e);const o=e+S.scroll,r=t+S.shift,i=n+S.shift+S.scroll;a?.(o,r,i)},[a,S]),z=c-S.scroll,F=u-S.shift,H=d-(S.shift+S.scroll),B=M.findOffset(I)*(r.getView().getZoomScale()/100)-(S.scroll+S.shift);return O(gr,{ref:g,style:n,offset:z,viewportSize:F,totalSize:H,orientation:o,showCustomScrollButtons:s,onMouseDown:e=>{E({anchor:{x:e.clientX,y:e.clientY}}),e.preventDefault()},onScrollOffset:P,onMouseOut:()=>{E(null)},onMouseUp:()=>{E(null)},minSize:B,...h})}));oT.displayName="SheetScrollbar";const rT=(e,t,n=null)=>{const o=[];for(let r=0;r<e.length;r++)if(e[r].value.isSelectedAll){if(e[r].min===e[r].max&&e[r].min===n)continue;o.push({address:{min:e[r].min,max:e[r].max},update:t})}return o},iT=z(j((e,t)=>{const{sheetHeader:o,gridRef:r,sheetElement:i,commands:l,oppositeSize:a=30,containerWidth:s,containerHeight:c,headerText:d,freezeStart:u,gridStyle:h,verticalPadding:p,horizontalPadding:f,onSheetContextMenu:m,onResizeHeadersStart:g,onResizeHeaders:y,onResizeHeadersEnd:b,onResizeHeadersDown:w,onResizeHeadersUp:v,scrollPoint:x,onSelectionStart:S,onSelectionEnd:C}=e,k=$(()=>o.getOrientation(),[o]),E=F(null),[_,T]=B(e=>e+1,0),[M,D]=B(e=>e+1,0),R=o?.getSheet(),L=F(!1);U(()=>{L.current=!0},[o]);const I=$(()=>o.getEntireRange().getCoords().max+1,[o]),A=$(()=>{const e=k===n.Orientation.Column;return{left:e?x.left:0,top:e?0:x.top}},[x]),[P,z]=N(R?.getView().getZoomScale()/100),[j,W]=N(null);j_(o,{onSizesChange:e=>{z(R?.getView().getZoomScale()/100),se(le())}});const q=H(()=>{E.current?.invalidate(),D()},[]),Z=H(_n.debounce(()=>{q()},10),[]),[G,K]=N(null);j_(o.getSheet(),{onSelectionChange(){K(R?.getSelection().getCoords()),Z()},onProtectionChange(){q()},onViewChange(){Z()}}),U(()=>{se(le())},[k,P,a]),U(()=>{W(null),z(o?.getSheet().getView().getZoomScale()/100),se(le())},[o]);const X=H(e=>o.at(e)?.isHidden()||0===o.at(e)?.getSize(),[o]),Y=H((e,t)=>o.hiddenHeadersAt(e,t),[X]),J=go(e=>o.isSelected(e),[o]),Q=go(e=>o.isSelectedAll(e),[o]),ee=H(()=>o.getMinSize(),[o]),te=H(()=>o.getMaxSize(),[o]),ne=go((e,t,r)=>{t/=P;const i={size:t=Math.max(ee(),Math.min(_n.roundAccurately(t,ee()),te())),hidden:!1},l=[];if(t<=0&&(i.hidden=!0,i.size=r),l.push({address:{min:e,max:e},update:i}),t<0){const o=k===n.Orientation.Column,r=o?ae.getColOffset:ae.getRowOffset,i=o?ae.getColIndex:ae.getRowIndex,a=r(e);let s=i(a+t);const c=r(s);c===a+t?s--:l.push({address:{min:s,max:s},update:{size:a-c+t}}),e-s>1&&l.push({address:{min:s+1,max:e-1},update:{hidden:!0}})}o.updateHeaderPairs(l),y?.(e,t,r)},[_,o,P,y]),oe=go((e,t,r)=>{const i=k===n.Orientation.Column;let l=null,a={min:e,max:e};if(o.isSelectedAll(e)){const n=o.getSelectedRuns();n.length>1?l="Resize "+(i?"Columns":"Rows"):a=n[0];const s={hidden:t<=0,size:(t<=0?r:t)/P};o.updateHeaderPairs(rT(n,s,e))}if(a){const e=a.max-a.min+1;let t;t=1===e?o.getRange(a).at(0).getDisplayText():o.getRange(a).toString(),l=`Resize ${i?"Column":"Row"}${e>1?"s":""} '${t}'`}b?.(e,t,l)},[_,o,b]),re=go((e,t)=>{const o=k===n.Orientation.Column;g(e,t,`Resize ${o?"Column":"Row"}(s)`)},[g]),ie=go(e=>{let t=!1;const r=k===n.Orientation.Column,i=o.getSheet().getEntireRange().getCoords(),l=[],a=o.getSelectedRuns(),s=e=>{let t;t=r?{colStart:e.min,rowStart:i.rowStart,colEnd:e.max,rowEnd:i.rowEnd}:{colStart:i.colStart,rowStart:e.min,colEnd:i.colEnd,rowEnd:e.max},l.push(t)};for(let n=0;n<a.length;n++){const o=a[n];o.value.isSelectedAll&&(o.min<=e&&o.max>=e&&(t=!0),s(o))}if(t||s({min:e,max:e}),o.getSheet().getRanges(l).autoFit({orientations:r?n.Orientations.Column:n.Orientations.Row}),X(e)){const n={hidden:null},r=rT(a,n);t||r.push({address:e,update:n}),o.updateHeaderPairs(r)}b?.(e,null,"Resize Column(s)")},[_,o,b,X]),le=()=>{const e=k===n.Orientation.Column;return{getColOffset:t=>e?o.findOffset(t):0===t?0:a/P,getColIndex:t=>e?o.findIndex(t):0,getRowOffset:t=>e?0===t?0:a/P:o.findOffset(t),getRowIndex:t=>e?0:o.findIndex(t)}},[ae,se]=N(()=>le()),ce=H((e,t)=>!(e.nativeEvent.which===lo&&Q(k===n.Orientation.Column?t.colIndex:t.rowIndex)),[k,Q]),de=go(e=>{i.focusSheet()},[i]),ue=go(e=>{R?.getSelection().updateCoords(e)},[R]),{...he}=BE({gridRef:r,commands:null,layout:ae,selection:G,fillHandleBorderColor:h.body.fill,selectionBackgroundColor:h.selection.fill,selectionBorderColor:h.selection.strokeFill,selectionRemoveBackgroundColor:h.selectionRemove.fill,selectionRemoveBorderColor:h.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:ue,canSelectionSpanMergedCells:e=>{const t=R.getRange(e);return t.isEntireColumns()||t.isEntireRows()}}),pe=go(()=>{S?.();const e=R?.getSelection();e&&e.setAdjusting(e.getCoords())},[R,S]),fe=go(async()=>{R?.getSelection().setAdjusting(null),C?.()},[R,C]),{...me}=oE({orientation:k,headerCount:I,gridRef:E,gridMainRef:r,newSelection:he?.newSelection,modifySelection:he?.modifySelection,appendSelection:he?.appendSelection,clearSelections:he?.clearSelections,pointerDownInterceptor:ce,onPointerUp:de,onDragStart:pe,onDragEnd:fe}),ge=h.selection?.strokeFill;V(()=>{if(!E.current)return void W(null);const e=k===n.Orientation.Column,t=o.getSelectedRuns(),r=o.isProtected()?null:ne,i=(t,n,o)=>{if(o)return O("div",e?{style:{position:"absolute",borderBottom:`${h.headerSelection.strokeWidth}px solid ${ge}`,pointerEvents:"none",top:`${Jo.boundPixel(-h.headerSelection.strokeWidth/2)}px`,left:`${Jo.boundPixel(o.x-h.headerSelection.strokeWidth)}px`,width:`${Jo.boundPixel(o.width+h.headerSelection.strokeWidth+1,!0)}px`,height:a+h.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${h.headerSelection.strokeWidth}px solid ${ge}`,pointerEvents:"none",top:`${Jo.boundPixel(o.y-h.headerSelection.strokeWidth)}px`,left:`${Jo.boundPixel(-h.headerSelection.strokeWidth/2)}px`,width:a+h.headerSelection.strokeWidth-.5+"px",height:`${Jo.boundPixel(o.height+h.headerSelection.strokeWidth+1,!0)}px`}},t)},l=(t,n,o)=>{const r={x:0,y:0,width:0,height:0};if(e){const e=o.toClipBounds(o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:t,colEnd:Math.min(I,n)}),AE);if(!e)return;r.x=e.x,r.width=e.width}else{const e=o.toClipBounds(o.getRangeCoordsBounds({rowStart:t,rowEnd:Math.min(I,n),colStart:0,colEnd:0}),AE);if(!e)return;r.y=e.y,r.height=e.height}return{x:r.x,y:r.y,width:r.width,height:r.height}};W([n=>{const i=[];let l=null,a=e?n.getVisibleColumns():n.getVisibleRows();const s=e?n.getTotalRangeCoords().colStart:n.getTotalRangeCoords().rowStart;a.length>0&&a[0]>s&&(a=[a[0]-1,...a]);let c=[];const d=[];for(let e=0;e<a.length;e++){const n=a[e],o=e<a.length-1?a[e+1]:n+Y(n+1,!1)+1,i=n+1!==o;if(!l||l.max<n)if(t.length>0&&t[t.length-1].max>=n){const e=_n.findEqualOrGreater(t,n,e=>e.max);l=t[e]}else l=null;let u=!1,h=!1;if(l?.value&&(l.min<=n||l.min<=o&&!i)&&(u=!0,h=l.value.isSelectedAll),n===s){let e=!1,t=!1;l?.value&&l.min<=n&&(e=!0,t=l.value.isSelectedAll),n>0&&d.push({index:n-1,isNextHidden:i,isSelected:e,isSelectedAll:t,disabledResize:!0})}if(h&&c.push(d.length),d.push({index:n,isHidden:0===e&&Y(n,!1)>0,isNextHidden:i,isSelected:u,isSelectedAll:h,onDividerMouseDown:w,onDividerResizeStart:re,onDividerResize:r,onDividerMouseUp:v,onDividerResizeEnd:oe,onDividerAutoFit:ie}),i){let e=!1,i=!1;if(l&&l.min>=n&&l.max<=o-1&&l.value.isSelectedAll&&c.push(d.length),l?.value&&l.max>=o);else if(t.length>0&&t[t.length-1].max>=o){const e=_n.findEqualOrGreater(t,o,e=>e.max);l=t[e]}else l=null;l?.value&&l.min<=o&&(e=l.value.isSelected,i=l.value.isSelectedAll),o>0&&d.push({index:o-1,isHidden:!0,isSelected:e,isSelectedAll:i,onDividerMouseDown:w,onDividerResizeStart:re,onDividerResize:r,onDividerMouseUp:v,onDividerResizeEnd:oe,onDividerAutoFit:ie})}}if(c.length>0){let o=c.length-1;if(c.length>0){const t=d[c[o]].index;let r=null;e?(r=n.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:t,colEnd:t}),r.x+r.width>n.getBounds().width&&(o-=1,0===o&&(o=-1))):(r=n.getRangeCoordsBounds({rowStart:t,rowEnd:t,colStart:0,colEnd:0}),r.y+r.height>n.getBounds().height&&(o-=1,0===o&&(o=-1)))}const r=t?.[t.length-1],i=n.getAnchor();if("t"===i||"l"===i){const e=d[c[Math.max(0,c.length-1)]];e.showTouchDivider=r&&r.max<=e.index}else o>=0&&(d[c[o]].showTouchDivider=!0)}const{header:u,headerSelect:p,headerSelectAll:f,headerHover:m}=h??{};for(let e=0;e<d.length;e++)i.push(O(i_,{orientation:k,view:n,headerStyle:u,headerStyleSelect:p,headerStyleSelectAll:f,headerStyleHover:m,disabled:o.isProtected(),...d[e]},`divider${e}`));return i},e=>{const n=[];for(let o=0;t&&o<t.length;o++)n.push(i(`selection:${e.getAnchor()}:${o}`,0,l(t[o].min,t[o].max,e)));return n}])},[M,!0,ge,h,ae,I,u,_,P]),V(()=>{E.current?.invalidate()},[_]);const ye=go(e=>d?d(e):o.getTextAt(e),[d,o]),be=go(e=>{const{header:t,headerSelect:o,headerSelectAll:r,headerHover:i}=h??{},{range:l,key:a,...s}=e;return O(e_,{orientation:k,index:k===n.Orientation.Column?l.colStart:l.rowStart,isSelected:J,isSelectedAll:Q,zoomScale:100*P,headerText:ye,headerStyle:t,headerStyleSelect:o,headerStyleSelectAll:r,headerStyleHover:i,verticalPadding:p,horizontalPadding:f,...s},a)},[_,I,h,P,o]),we=Ur(),ve=$(()=>{const e="white",t="black",o={};if("touch"!==Jo.detectIt().primaryInput){let r=k===n.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='${t}' fill='${e}'/%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='${t}' fill='${e}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;const i=we.getMode();if("formatPainter"===i?.key){const n=30,o=22;r=`url("data:image/svg+xml,%3Csvg width='${n}' height='${o}' viewBox='0 0 ${n} ${o}' 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='${t}' fill='${e}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`}o.cursor=r}return o.backgroundColor=h?.header?.fill||"transparent",o},[k,_,we,h]),xe=er(t,()=>({scrollTo:e=>{E.current?.scrollTo(e)},forceRender:()=>{T()},getGridElement:()=>E.current}),[]),Se=H(e=>{me.onPointerDown(e)},[me]),Ce=H(e=>{const t=me.getCellCoordsFromClient(e.clientX,e.clientY);if(!t)return;if(!m)return;const o=k===n.Orientation.Column;m({originalEvent:e,clientX:e.clientX,clientY:e.clientY,rowIndex:o?-1:t.rowIndex,colIndex:o?t.colIndex:-1}),e.stopPropagation(),e.preventDefault()},[me,m]),ke=$(()=>{const e=k===n.Orientation.Column;return O("div",{ref:xe,children:O(YE,{className:"sheet-header",style:ve,ref:E,scrollPoint:A,columnCount:e?I:1,rowCount:e?1:I,width:e?s:a,height:e?a:c,freezeLeft:e?u:void 0,freezeTop:e?void 0:u,hiddenColumnsAt:e?Y:void 0,hiddenRowsAt:e?void 0:Y,showGridLines:!1,layout:ae,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:Ce,onPointerDown:Se,zoom:P,cellRenderer:be,overlays:j})})},[j,ae,s,c,A,ve,M]);return V(()=>{L.current=!1,E.current?.invalidate(),D()},[o,h]),ke})),lT=z(j((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,l=go((e,t)=>e.getStyle().getBorder(),[]),{overlay:a}=L_({getVisibleCells:r,getBorderAt:l,darkMode:i.body.darkMode,shiftIfWide:!0}),s=a(n);return s&&n?s:null})),aT={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},sT={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},cT={type:h.Content.Values},dT={fitDestination:!0,type:h.Content.Formats},uT={fitDestination:!0,type:h.Content.Formulas},hT={transpose:!0},pT={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},fT=z(j((e,t)=>{const{view:o,element:r,sheet:i,gridStyle:l,commands:a,notifier:s}=e,c=l.body??{},d=i.getView(),{overlays:u}=(({element:e,sheet:t,sheetView:o,commands:r,onClipboardUpdate:i,onPaste:l,selectionRenderer:a=xE,copyForegroundColor:s="rgb(33, 115, 70)",cutForegroundColor:c="rgb(33, 115, 70)",copyBackgroundColor:d="white",cutBackgroundColor:u="white",notifier:p,...f})=>{const m=go(a,[a]),g=F(null),y=Ur(),v=y.getMode(),x=$(()=>({element:e,doCopy:e=>{const n=t.getSelectedRanges().getSnapshot(e);return new b(n)}}),[t,o,e]),S=$(()=>({element:e,importFromExternal:async(e,n)=>{const o=new w(e,n,t.getStyles(),t.isDate1904());return await o.parse()?o:null},doPaste:async(e,o)=>{if("range"!==e?.getItemType())return;o?.contentsOnly&&delete(o={...o,type:h.Content.Values}).contentsOnly;const r=t.getSelectedRange(),i=e.getItem(),l=i.getName();return await r.doBatch(async()=>{const e=await r.copyFrom(i,o);!e||e.isEntireRows()||e.isEntireColumns()||e.autoFit({orientations:n.Orientations.Row,minContent:!0})},{description:"Paste"+(l?` ${l}`:""),autoSelect:!0}),!0}}),[t,o,p,e]),{clipboard:C,...k}=oi({...f,source:x,commands:r,target:S,notifier:p,onClipboardUpdate:e=>{const t="range"===e?.getItemType()?e:null;if(t){const t=e.editMode?.(),n={...e?.isCut?.()?sT:aT,...t,args:{isClipboard:!0,...t?.args},onModeChange:e=>{e?.args?.isClipboard||C.clear(!0),t?.onModeChange?.(e)}};y.setMode(n)}g.current=t,i?.(t)},onPaste:(n,o)=>{if("range"!==n?.getItemType())return;let r="cut"===y.getMode()?.key||n.isCut?.();if(!r&&"copy"===y.getMode()?.key){const e=n.getItem().getCoords(),o=t.getSelectedRanges().getCoords();let i=!1;if(!i&&e&&o&&n.getItem().getSource?.()===t)for(let t=0;!i&&t<o.length;t++)i=en.isRangesIntersect(e,o[t]);r=i}r&&y.setMode(null),e?.()?.focus(),l?.(n,o)}});$(()=>{const t=e;if(!r)return;const n=[new qr("pasteValues",t,{label:"Paste Values",scopedLabels:{paste:"Values"},description:"Paste only the values of the selected cells.\n\nThe formatting is not applied.",shortcut:{key:"V",modifiers:[ro.Ctrl,ro.Shift]}}),new qr("pasteFormats",t,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:"Paste only the formats of the selected cells.\n\nThe content is not applied."}),new qr("pasteFormulas",t,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new qr("pasteTranspose",t,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new qr("pasteLinks",t,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];r.addCommands(n,!0)},[r,e]),V(()=>{if(!r)return;const e={disabled:!t.getProtection().isFormatCellsAllowed()};r.getCommand("pasteValues").updateCallback(e=>k.paste({...cT,...e})).update(e),r.getCommand("pasteFormats").updateCallback((e,t)=>k.paste({...dT,description:t.label(),...e})).update(e),r.getCommand("pasteFormulas").updateCallback((e,t)=>k.paste({...uT,description:t.label(),...e})).update(e),r.getCommand("pasteTranspose").updateCallback((e,t)=>k.paste({...hT,description:t.label(),...e})).update(e),r.getCommand("pasteLinks").updateCallback((e,t)=>k.paste({...pT,description:t.label(),...e})).update(e),r.getCommand("cut").update(e),r.getCommand("paste").update(e)},[t,r]);const E=$(()=>{if(!v||!g.current)return;const e=v.key;if("copy"!==e&&"cut"!==e&&"formatPainter"!==e)return;const n=g.current.getItem();if(n.getSource()!==t)return;const o=g.current.isCut?.(),r=o?u:d,i=o?c:s,l=n.getCoords(),a=l?[l]:null;return a&&0!==a.length?e=>{const t=[];for(let n=0;n<a.length;n++){const o=a[n],l=e.toClipBounds(e.getRangeCoordsBounds(o,{top:0,left:0,right:1,bottom:1}),AE);l&&(t.push(m({range:o,key:`copy-selection-background-${n}`,x:l.x,y:l.y,width:Math.max(l.width,0),height:Math.max(l.height,0),stroke:r,strokeWidth:2})),t.push(m({range:o,key:`copy-selection-foreground-${n}`,x:l.x+(l.width<=2?-1:0),y:l.y,width:Math.max(l.width,3),height:Math.max(l.height,3),stroke:i,strokeWidth:2,isAnimatedStroke:!0})))}return t}:null},[v,t,o,s,d,c,u]);return{...k,clipboard:C,overlays:E}})({element:r,sheet:i,sheetView:d,commands:a,copyForegroundColor:l.selection.strokeFill,copyBackgroundColor:c.fill,cutForegroundColor:l.selectionRemove.strokeFill,cutBackgroundColor:c.fill,notifier:s});return j_(i?.getSelection(),{onChange(e){}}),V(()=>{o?.getStage()},[o?.getStage()]),u&&o?u(o):null})),mT={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},gT={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},yT={key:"dragCopy",description:"Drag selection to copy cell contents."},bT={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},wT=(e,t)=>t.ctrlKey&&t.shiftKey?bT:t.ctrlKey?yT:t.shiftKey?gT:mT,vT={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},xT=z(j((e,t)=>{const{view:o,commands:r,className:i,onFirstRender:l,notifier:a,onShowTooltip:s,onCloseTooltip:c,sheet:d,gridRef:u,gridStyle:h,isActive:p,editingCoords:f,...m}=e,g=o?.getBounds(),y=go(s,[s]),b=go(c,[c]),[w,v]=N(()=>d?.getSelection().getCoords()),x=go(e=>{en.isEqualSelectionCoords(e,w)||d&&d.getSelection().updateCoords(e)},[d,w]),S=Ur(),C=F(null),[k,E]=N(d?.getProtection().isLocked()),[_,T]=N(d?.getView().getMovableSelection().length>0),M="touch"===Jo.detectIt().primaryInput,D=!M&&p,R=null!==f||_,L=go(e=>{const t=en.cellToRange(e);if(d.isClosed())return t;const n=d.getRange(t,{excludeHidden:!0}).getMerges();return 0===n.length?t:n[0]},[d]),I=go((e,t,o,r,i,l)=>{const a=d.getSelectedRange().getExtended(r,e).getCoords();switch(r){case n.Direction.Up:return a.rowStart;case n.Direction.Down:return a.rowEnd;case n.Direction.Left:return a.colStart;case n.Direction.Right:return a.colEnd}},[d]),A=go(()=>{const e=d.getUsedRange()?.getCoords(),t=d.getRowHeaders().getUsedRange()?.getCoords(),n=d.getColumnHeaders().getUsedRange()?.getCoords();return{...e,colEnd:Math.max(e?.colEnd??0,n?.max??0),rowEnd:Math.max(e?.rowEnd??0,t?.max??0)}},[d]),P=go((e,t)=>d.getRowHeaders().hiddenHeadersAt(e,t),[d]),z=go((e,t)=>d.getColumnHeaders().hiddenHeadersAt(e,t),[d]),H=go(e=>d.getRange(e,{excludeHidden:!0}).getMerges(),[d]),B=go(e=>{d?.getSelection().setAdjusting(e)},[d]),j=go(async()=>{d?.getSelection().setAdjusting(null);const e=S.getMode();"formatPainter"===e?.key&&(await(r?.getCommand("pasteFormats")?.execute({})),S.setMode(null))},[S,w,d,r]),W=$(()=>{const e=S.getMode();return"cut"===e?.key||"copy"===e?.key},[S]);j_(d?.getView(),{onMovableSelectionChange:()=>{T(d.getView().getMovableSelection().length>0)}}),j_(d?.getSelection(),{onChange(e){const t=d.getSelection().getCoords();v(t)}}),j_(d,{onProtectionChange:()=>{E(d.getProtection().isLocked())}});const{body:U={}}=h||{},q=o.getLayout(),Z=!(D&&w.ranges.length<=1&&null===f&&!k&&(!S.getMode()||W)),{overlay:G,onPointerDown:K}=BE({gridRef:u,commands:r,layout:q,getCellCoordsAsRangeCoords:L,selection:w,fillHandleBorderColor:U.fill,selectionBackgroundColor:p?h.selection.fill:h.selectionInactive.fill,selectionBorderColor:p?h.selection.strokeFill:h.selectionInactive.strokeFill,selectionRemoveBackgroundColor:p?h.selectionRemove.fill:h.selectionInactive.fill,selectionRemoveBorderColor:p?h.selectionRemove.strokeFill:h.selectionInactive.strokeFill,disableFillDrag:Z,disableMoveDrag:M||!(p&&w.ranges.length<=1&&null===f&&!k),disableTouchSelection:R,onSelectionChange:x,onSelectionDragStart:B,onSelectionDragEnd:j,onMoveDragStart:(e,t,n)=>{S.setMode(wT(0,n))},onMoveDragUpdate:(e,t,n)=>{S.setMode(wT(0,n))},onMoveDragEnd:(e,t)=>{S.setMode(null)},onMoveDragDone:async(e,t,o)=>{if(en.isEqualRanges(e,t))return;const r=d.getRange(t);if(a?.showOptions){const t=r.getDifferences(e);let n=!1;for(let e=0;!n&&e<t.getCount();e++)n=t.at(e).isContentful();if(n&&"Replace"!==await(a?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})))return}const i=!o.ctrlKey,l=o.shiftKey,s=l?i?"Insert Moved Cells":"Insert Copied Cells":i?"Move Cells":"Copy Cells",c=await(a?.showBusy?.(s));try{const t=d.getRange(e);await r.doBatch(async()=>{l?await r.insertFrom(e,{isCut:i,undoRange:t}):await r.copyFrom(e,{isCut:i,undoRange:t}),t.autoFit({skipCustomSize:!0,orientations:n.Orientations.Row,minContent:!0}),r.autoFit({skipCustomSize:!0,orientations:n.Orientations.Row,minContent:!0})},{description:s,autoSelect:!0})}catch(e){a?.showError?.(e)}finally{c?.()}},contentfulCellFinder:I,hiddenRowsAt:P,hiddenColumnsAt:z,mergedRanges:H,getDataCoords:A,canSelectionSpanMergedCells:e=>{const t=d.getRange(e);return t.isEntireColumns()||t.isEntireRows()},onFill:async(e,t)=>{const o="Auto Fill",r=await(a?.showBusy?.(o));try{await d.doBatch(()=>{d.getRange(e).autoFill(t),d.getRange(t).autoFit({orientations:n.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:o,autoSelect:!0})}catch(e){a?.showError?.(e)}finally{C.current=null,r?.()}},onFillPreview:(e,t,r)=>{if(u.current&&y){S.setMode(vT);try{C.current?.direction!==r&&(C.current=null,d.getRange(e).autoFill(t,{previewOnly:e=>{C.current={callback:e,direction:r}}}));const i=C.current?.callback?.(t);if(!i||i.isEmpty())return;const l=i.toText();if(!l)return;const a=en.cellToRange(i.getCoords()),s=o.getRelativePointFromClient(0,0);let c=0,u=0,h=yr;if(r===n.Direction.Down){c=q.getColOffset(a.colEnd+1)-s.x;const e=q.getRowOffset(a.rowEnd),t=q.getRowOffset(a.rowEnd+1);u=t-(t-e)/2-s.y,h=wr}else if(r===n.Direction.Right){u=q.getRowOffset(a.rowEnd+1)-s.y;const e=q.getColOffset(a.colEnd),t=q.getColOffset(a.colEnd+1);c=t-(t-e)/2-s.x,h=yr}else if(r===n.Direction.Up){c=q.getColOffset(a.colEnd+1)-s.x;const e=q.getRowOffset(a.rowStart),t=q.getRowOffset(a.rowStart+1);u=t-(t-e)/2-s.y,h=wr}else if(r===n.Direction.Left){u=q.getRowOffset(a.rowEnd+1)-s.y;const e=q.getColOffset(a.colStart),t=q.getColOffset(a.colStart+1);c=t-(t-e)/2-s.x,h=yr}y({anchor:{x:c,y:u},display:l,placement:h})}catch(e){a?.showError?.(e)}}},onFillDone:()=>{C.current=null,S.setMode(null),b?.()}}),X=go(e=>{K(Jo.createSyntheticEvent(e))},[K,f]);V(()=>{const e=o?.getStage();if(e)return e.addEventListener("pointerdown",X),()=>{e.removeEventListener("pointerdown",X)}},[o?.getStage()]);const Y=er(t,()=>({}),[]),J=F(null);return O("div",{className:H_(i,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:g?.width,height:g?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:S_([Y,J]),...m,children:G(o)})})),ST=Object.freeze({x:0,y:0,width:0,height:0}),CT={fireOnModelChange:!1},kT=z(j((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:l,onHide:a,onShow:s,onUnFocus:c,isDragging:d,updateFrameBounds:u,dragStart:h,style:p,disabled:f,renderMovable:m,...g}=e,[y,b]=N(ST),[w,v]=N(null),[x,S]=N(!1),C=F(null);U(()=>{if(r.isClosed())return;const e=r.getBounds();if(!e)return;const t=o.toViewBounds(e);b(t??ST),u(t??ST)},[o?.getBounds()]),j_(r,{onBoundsChange:e=>{const t=e.getBounds();if(!t)return;const n=o.toViewBounds(t);b(n??ST),u(n)},onSelectionChange:()=>{const e=_n.hasFocus(C.current,!0);!x&&!e||r.isSelected()||c()}}),j_(r,{onRequestFocus:()=>_n.whenFocus(C.current,!0)},CT),V(()=>{const e=C.current;return i(e),()=>{l(e)}},[]);const k=$(()=>{if(!y)return null;let{width:e,height:t}=y;return m({view:o,movable:r,disabled:f,isDragging:d,style:{position:"relative",left:0,top:0,width:e,height:t},onHide:a,onShow:s})},[o,r,y.width,y.height,f,d]);return O("div",{className:"movable",tabIndex:0,ref:S_([C,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:y.x,top:y.y,width:y.width,height:y.height,...p},onMouseDown:async e=>{const t=e.shiftKey||e.ctrlKey,n=r.isSelected(),o=e.currentTarget;t&&n?r.unselect():(n&&!t||await r.select({addToSelection:t}),h(e.nativeEvent,o),o.focus())},onFocus:e=>{e.relatedTarget&&!w&&v(e.relatedTarget),S(!0)},onBlur:e=>{w&&!C?.current?.contains(e.relatedTarget)&&v(null),e.relatedTarget&&S(!1)},...g,children:k})})),ET=z(j((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:l,onUnFocus:a,onFocus:s,disabled:c=!1,disableDrag:d=!1,disableResize:u=!1,className:h,style:p,renderDirections:f=["nw","n","ne","w","e","sw","s","se"],onFirstRender:m,...g}=e,b=n.getBounds(),w=go(m,[m]),v=go(a,[a]),x=go(s,[s]),[S,C]=N([]),[k,E]=N(!1),[_,T]=N(!1),M=F(!0),D=F(new Map),R=F(new Map),I=F(new Map),A=F(new Map),z=F(new Map),j=F({onRequestFocus:e=>(ae(e),null)}),W=F(null),q=F(null),Z=F(null),[G,X]=B(e=>e+1,0);U(()=>{X()},[n,o]),j_(o,{onCollectionChange:()=>{const e=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),t=z.current;t.forEach(e=>{e()}),t.clear();const r=j.current;for(let n=0;n<e.length;n++){const o=e[n];if(o.isClosed())continue;const i=o.addListeners(r);t.set(o,i)}X()},onInvalidated:()=>{X()}}),j_(r,{onMovableSelectionChange(e){J(),X()}});const Y=H((e,t)=>{const n=I.current.get(e);Z.current&&(Z.current.getTargets().forEach(e=>{if(e===n)return e.style.left=t.x+"px",e.style.top=t.y+"px",e.style.width=t.width+"px",void(e.style.height=t.height+"px")}),Z.current.updateRect())},[]),J=()=>{const e=[],t=r.getMovableSelection();t.forEach(n=>{const o=I.current.get(n);o&&-1!==t.indexOf(n)&&e.push(o)}),C(t=>_n.isEqualArrays(t,e)?t:e)},Q=F(null),ee=$(()=>new Promise(e=>{Q.current=e}),[]),te=F(null),ne=go(async(e,t)=>{te.current=t,await(async()=>!(!await ee.then()||!Z.current))()&&te.current===t&&Z.current.dragStart(e,t)},[S]),[oe,re]=N(!1),ie=F(null),le=F(null),ae=go(async(e=null)=>{if(e||(e=r.getMovableSelection()[0]),!e)return v?.(),!1;const t=I.current.get(e);t?(await _n.whenFocus(t),t.focus(),le.current=t,ie.current=null):ie.current=e},[r]);V(()=>{oe&&S.length>0&&le.current!==S[0]&&ae(),M.current&&(w?.(),M.current=!1)},[S]);const se=$(()=>{const e=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(0===e.length&&0===D.current.size)return null;const t=(t,o,r,l=!0)=>{const a=t.isSelected(),s={tabIndex:r,view:n,movable:t,onRefLoad:e=>{ie.current===t&&(e.focus(),le.current=e,ie.current=null),I.current.set(t,e),R.current.set(e,t),o.rendered=!0,J()},onRefUnload:e=>{I.current.delete(t),R.current.delete(e),o.rendered=!1,J()},onUnFocus:v,onHide:e=>{o.onHide=e},onShow:e=>{o.onShow=e},isDragging:a&&(_||k),disabled:c,renderMovable:i,updateFrameBounds:e=>{Y(t,e)},dragStart:ne,onMouseUp:()=>{if(te.current=null,q.current){E(!1),T(!1);let e=!1;A.current?.forEach(t=>{_n.isEqualBounds(t.movable.getBounds(),t.startBounds)||(e=!0)}),e?de():ue()}},style:{opacity:l?k&&a?.7:void 0:0,zIndex:k&&a?t.getZIndex()+e.length:void 0,pointerEvents:l?void 0:"none",cursor:_&&a?"grabbing":c||d?"initial":"move",boxShadow:!a||_&&!k?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return O(kT,{...s},`movable-${t.getUUID()}`)},l=D.current,a=new Map,s=[];for(let n=0;n<e.length;n++){const o=e[n];if(o.isClosed())continue;let r=l.get(o);r||(r={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(e,t)=>{if(!t||!0===t.shown)return;t.shown=!0;const n=++t.visibilityRequestId;requestAnimationFrame(()=>{const o=D.current.get(e);o&&n===t.visibilityRequestId&&(t.onShow?.(e),o.shown=!0)})},doHide:async(e,t)=>{if(!t||!1===t?.shown)return;t.shown=!1;const n=++t.visibilityRequestId,o=await Promise.resolve(t.onHide?.(e));n===t.visibilityRequestId&&!1!==o&&(t.shown=!1,D.current.delete(e),X())},visibilityRequestId:0}),r.frame=t(o,r,n,!0),s.push(r.frame),r.doShow(o,r),l.delete(o),a.set(o,r)}const u=[];return r.getMovableSelection().forEach(e=>{const n=l.get(e);n&&(n.frame=t(e,n,-1,!1),u.push(n.frame),l.delete(e),a.set(e,n))}),l.forEach((e,n)=>{e.frame=t(n,e,-1,!1),u.push(e.frame),e.doHide(n,e),l.delete(n),a.set(n,e)}),D.current=a,J(),[...u,...s]},[G,n,i,c,d,u,k,_]),ce=go((e,t)=>{const o=`${t} ${1===S.length?y.capitalize(R.current?.get(S[0]).getContent().getType()):"Drawings"}`;q.current&&(console.warn(`Transaction ${q.current.getDescription()} is being replaced by ${o}`),q.current.rollback(),q.current=null),q.current=l.beginCommit({description:o}),A.current.clear();for(let e=0;e<S.length;e++){const t=S[e],o=R.current?.get(t);o?A.current.set(t,{movable:o,startBounds:n.toViewBounds(o.getBounds())}):console.warn("invalid element",o)}},[l,n,S]),de=H(()=>{if(!q.current)return;const e=[];A.current?.forEach(t=>{e.push(t.movable)}),q.current.commit({viewAfter:{view:r,movableSelection:e}}),A.current.clear(),q.current=null},[]),ue=H(()=>{q.current&&(q.current.rollback(),q.current=null)},[]),he=F(null);V(()=>{he.current&&(he.current.onscroll=e=>{e.preventDefault(),e.srcElement.scrollTop=0,e.srcElement.scrollLeft=0})},[he.current]);const pe=er(t,()=>({isMovableArea:()=>!0,focusMovable:ae,focus:()=>{ae()}}),[r]),[fe,me]=N(null),ge=F(!1),ye=F(!1),be=F(!1);V(()=>{if(c||0===S.length)return;if(be.current)return;if(ge.current)return;if(ye.current)return void requestAnimationFrame(()=>{Z.current&&W.current&&Z.current.refTargets.length>0&&(be.current=!0,Q.current?.(!0)),C([...S])});ge.current=!0;const e=P.lazy(async()=>{try{const e=await import("./BXartMrqQuAXu0Qz.mjs");return ge.current=!1,ye.current=!0,C([...S]),e}catch(e){return console.warn(e),Q.current?.(!1),null}});me(e)},[S,c,d,u]);const we=$(()=>!fe||c?null:O(K,{children:O(fe,{className:H_({dragging:k||_,resizing:k,moving:_}),container:null,ref:Z,target:Z.current?S:[],draggable:!c&&!d,resizable:!c&&!u,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:f,onResizeStart:e=>{ce(e.target,"Resize")},onResize:e=>{if(!q.current)return e.stopDrag(),void X();E(!0);const t=0!==e.direction[0]&&0!==e.direction[1];let o=0,r=0;for(let i=0;i<S.length;i++){const l=S[i],a=A.current.get(l),s=R.current.get(l);if(!a||!s){console.warn("invalid element");continue}let c=e.dist[0],d=e.dist[1],u=e.drag.dist[0],h=e.drag.dist[1],p=a.startBounds.width,f=a.startBounds.height;0===i?(o=p,r=f):(c*=p/o,u*=p/o,d*=f/r,h*=f/r);const m={...a.startBounds};if(m.width=Math.max(0,p+c),m.height=Math.max(0,f+d),-1===e.direction[0]&&(m.width=Math.max(0,Math.min(a.startBounds.x+p,p-u))),-1===e.direction[1]&&(m.height=Math.max(0,Math.min(a.startBounds.y+f,f-h))),t&&(s.isLockAspectRatio()||e.inputEvent?.shiftKey)){const e=p/f,t=m.width/m.height;t>e?m.height=m.width/e:t<e&&(m.width=m.height*e)}-1===e.direction[0]&&(m.x=Math.max(0,Math.min(a.startBounds.x+p,a.startBounds.x+p-m.width))),-1===e.direction[1]&&(m.y=Math.min(a.startBounds.y+f,a.startBounds.y+f-m.height)),a.movable.setBounds(n.toAbsoluteBounds(m))}},onResizeEnd:e=>{E(!1),de()},onDragStart:e=>{ce(e.target,"Move")},onDrag:e=>{if(!q.current)return e.stopDrag(),void X();T(!0);for(let t=0;t<S.length;t++){const o=S[t],r=A.current.get(o);r?r.movable.setBounds(n.toAbsoluteBounds({...r.startBounds,x:r.startBounds.x+e.translate[0],y:r.startBounds.y+e.translate[1]})):console.warn("invalid element")}},onDragEnd:e=>{},onMouseUp:e=>{}})}),[G,fe,S,n,c,d,u,k,_]);return O("div",{className:H_(h,"movable-area","_movable-area_314c6_5"),style:{width:b.width,height:b.height,...p,position:"absolute",overflow:"hidden",willChange:"transform"},ref:S_([pe,he]),...g,children:O("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:b.width,height:b.height},...g,children:L("div",{ref:W,style:{position:"absolute",pointerEvents:"auto"},onFocus:e=>{x?.(),re(!0)},onBlur:e=>{re(!1)},onKeyDownCapture:e=>{if(e.isDefaultPrevented())return;const t=e.nativeEvent.ctrlKey,n=e.nativeEvent.altKey,i=e.nativeEvent.shiftKey;if(e.which===io.Escape){const t=r.getMovableSelection();let n=[...t];return S.forEach(e=>{if(0===n.length)return;const t=R.current.get(e);let o=n.indexOf(t);n.splice(o,1)}),n.length!==t.length&&r.selectMovables(n),0===n.length&&v?.(),void e.preventDefault()}const l=.1,a=e=>{o.updateSelected(t=>{t.setRotation(t.getRotation()+e)},"Rotate")},s=(e,t=!0)=>{o.updateSelected(n=>{const o=n.getBounds();let r=1+e;t||(r=1/r);const i=Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2)),l=Math.atan2(o.height,o.width),a=r*i;if(a<10)return;const s=a*Math.cos(l),c=a*Math.sin(l),d={x:o.x+(o.width-s)/2,y:o.y+(o.height-c)/2,width:s,height:c};n.setBounds(d)},"Resize")},c=e=>{o.updateSelected(t=>{const n=t.getBounds(),o={x:n.x+(e.x??0),y:n.y+(e.y??0),width:n.width+(e.width??0),height:n.height+(e.height??0)};t.setBounds(o)},"Nudge")};if(e.which===io.Delete)o.updateSelected(e=>{e.delete()},"Delete"),e.preventDefault();else if("a"===e.key&&t){const t=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(t,!0),e.preventDefault()}else"ArrowLeft"===e.key?(i?s(l,!1):n?a(-10):c({x:t?-10:-1}),e.preventDefault()):"ArrowRight"===e.key?(i?s(l,!0):n?a(10):c({x:t?10:1}),e.preventDefault()):"ArrowUp"===e.key?(i?s(l,!0):c({y:t?-10:-1}),e.preventDefault()):"ArrowDown"===e.key&&(i?s(l,!1):c({y:t?10:1}),e.preventDefault())},children:[se,we]})})})})),_T=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,o=0,r=0;for(let i=0;i<e.length;i++){const l=e[i].getBounds();t=Math.min(l.x,t),n=Math.min(l.y,n),o=Math.max(l.x+l.width,o),r=Math.max(l.y+l.height,r)}return{x:t,y:n,width:o-t,height:r-n}},TT=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let l=0,a=Number.MAX_SAFE_INTEGER,s=0;for(let t=0;t<e.length;t++){const r=e[t],c=r.getBounds();l+=c[i],a=Math.min(c[o],a),s=Math.max(c[o]+c[i],s),n.push({bounds:c,movable:r})}const c=(s-a-l)/(e.length-1);n.sort((e,t)=>{const n=e.bounds[o],i=t.bounds[o];return n!==i?n-i:e.bounds[r]-t.bounds[r]});const d=new Map;d.set(n[0].movable,n[0].bounds);for(let e=1;e<n.length-1;e++){const t=n[e-1].bounds,r={...n[e].bounds};r[o]=t[o]+t[i]+c,n[e].bounds=r,d.set(n[e].movable,r)}return d.set(n[n.length-1].movable,n[n.length-1].bounds),d};const MT=z(j((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:l,onHide:a,onShow:s,...c}=e;V(()=>{},[r]);const d=er(t,()=>({isEmptyFrame:()=>!0}),[]),[u,{height:h,width:p}]=M_();return O("div",{...c,ref:S_([d,u]),children:O("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:i.getZoom(),display:"flex",position:"relative",filter:o?"blur(1px)":void 0,boxShadow:l?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:O("div",{style:{textAlign:"center"},children:r})})})})),DT=z(j((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:l,target:a,notifier:s,onRepeatCommandChange:c}=e,d=function(e){const{movables:t,movablesView:n,transactional:o,commands:r,target:i,onRepeatCommandChange:l,notifier:a}=e,s=Ur();F(s.getMode()).current=s.getMode();const c=go(async(e,t,n=null,o=!0)=>{const r=async()=>{const c=await Promise.resolve(a?.showBusy?.(e.label()));try{await t();const a=n??e?.label?.();if(l){let t=null;e&&!1!==a&&(t=new Zr(e.key(),i,{label:a,description:a},r)),l(t)}c?.(),o&&s.setMode(null)}catch(e){c?.(),a?.showError?.(e)}};await r()},[l,a]),[d,u]=B(e=>e+1,0),h=go((e,t,r)=>{if(!n)return;const i=n.getMovableSelection();if(0===i.length)return;let l="Drawings";if(1===i.length){const e=i[0];l=y.capitalize(e.getContent().getType())??"Drawing"}const a=`${e.label()} ${l}`;c(e,()=>{let e=null;o&&(e=o.beginCommit(a));const i=n.getMovableSelection();if(0===i.length)return;const l=r?.(i);for(let e=0;e<i.length;e++){const n=i[e];t(n,l)}e?.commit()})},[n,o]),[p,f]=N(n.getMovableSelection()[0]??null),[m,g]=N(!p||p?.isProtected()),b=$(()=>[new qr("moveToFront",i,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[ro.Ctrl,ro.Shift]}},function(){h(this,e=>{e.moveToFront()})}),new qr("moveForward",i,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[ro.Ctrl]}},function(){h(this,e=>{e.moveForward()})}),new qr("moveToBack",i,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[ro.Ctrl,ro.Shift]}},function(){h(this,e=>{e.moveToBack()})}),new qr("moveBackward",i,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[ro.Ctrl]}},function(){h(this,e=>{e.moveBackward()})}),new qr("toggleLockAspectRatio",i,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){h(this,e=>{e.setLockAspectRatio(!e.isLockAspectRatio())})}),new qr("formatAnchorTypeTwoCell",i,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){h(this,e=>{e.setAnchorType(v.Type.TwoCell)})}),new qr("formatAnchorTypeOneCell",i,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){h(this,e=>{e.setAnchorType(v.Type.OneCell)})}),new qr("formatAnchorTypeAbsolute",i,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){h(this,e=>{e.setAnchorType(v.Type.Absolute)})}),new qr("formatDrawAlignLeft",i,{label:"Align Left",description:"Align the selected drawings to the left."},function(){h(this,(e,t)=>{e.setBounds({x:t.x})},_T)}),new qr("formatDrawAlignCenter",i,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){h(this,(e,t)=>{e.setBounds({x:(t.width-e.getBounds().width)/2+t.x})},_T)}),new qr("formatDrawAlignRight",i,{label:"Align Right",description:"Align the selected drawings to the right."},function(){h(this,(e,t)=>{e.setBounds({x:t.width-e.getBounds().width+t.x})},_T)}),new qr("formatDrawAlignTop",i,{label:"Align Top",description:"Align the selected drawings to the top."},function(){h(this,(e,t)=>{e.setBounds({y:t.y})},_T)}),new qr("formatDrawAlignMiddle",i,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){h(this,(e,t)=>{e.setBounds({y:(t.height-e.getBounds().height)/2+t.y})},_T)}),new qr("formatDrawAlignBottom",i,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){h(this,(e,t)=>{e.setBounds({y:t.height-e.getBounds().height+t.y})},_T)}),new qr("formatDrawDistributeHorz",i,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){h(this,(e,t)=>{e.setBounds(t.get(e))},e=>TT(e))}),new qr("formatDrawDistributeVert",i,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){h(this,(e,t)=>{e.setBounds(t.get(e))},e=>TT(e,!1))}),new qr("formatDrawFlipHorz",i,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new qr("formatDrawFlipVert",i,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new qr("formatDrawGroup",i,{label:"Group",description:"Group the selected drawings into a single drawing."}),new qr("formatDrawUngroup",i,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new qr("formatDrawSwapShapes",i,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new qr("formatDrawSwapShapesHorz",i,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new qr("formatDrawSwapShapesVert",i,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[n,p]);V(()=>{},[s]);const w=$(()=>{let e=null;return e=r?r.createChildGroup(i,"movable",!1):new Gr(i,"movable"),e.addCommands(b,!0),e},[r,b]);return j_(p,{onAnyChange:()=>{w.getCommand("formatAnchorTypeTwoCell").update({state:p?.getAnchorType()===v.Type.TwoCell}),w.getCommand("formatAnchorTypeOneCell").update({state:p?.getAnchorType()===v.Type.OneCell}),w.getCommand("formatAnchorTypeAbsolute").update({state:p?.getAnchorType()===v.Type.Absolute}),w.getCommand("formatAnchorTypeAbsolute").update({state:p?.getAnchorType()===v.Type.Absolute}),w.getCommand("toggleLockAspectRatio").update({state:p?.isLockAspectRatio()})},onProtectedChange:e=>{g(e.isProtected())},onDelete:()=>{}}),j_(n,{onMovableSelectionChange:()=>{const e=n.getMovableSelection()[0]??null;f(e),g(!e||e.isProtected()),u()}}),j_(t,{onCollectionChange:()=>{u()}}),V(()=>{const e={disabled:m};w.getCommand("formatAnchorTypeTwoCell").update(e),w.getCommand("formatAnchorTypeOneCell").update(e),w.getCommand("formatAnchorTypeAbsolute").update(e),w.getCommand("toggleLockAspectRatio").update(e);const o=t.getCount(),r=n.getMovableSelection(),i=m||o<=1||0===r.length;let l={disabled:i},a=l;if(!i&&1===r.length){const e=r[0];0===e.getZIndex()&&(l={disabled:!0}),e.getZIndex()===o-1&&(a={disabled:!0})}w.getCommand("moveToFront").update(a),w.getCommand("moveForward").update(a),w.getCommand("moveToBack").update(l),w.getCommand("moveBackward").update(l);const s={disabled:m||r.length<=1};w.getCommand("formatDrawAlignLeft").update(s),w.getCommand("formatDrawAlignCenter").update(s),w.getCommand("formatDrawAlignRight").update(s),w.getCommand("formatDrawAlignTop").update(s),w.getCommand("formatDrawAlignMiddle").update(s),w.getCommand("formatDrawAlignBottom").update(s),w.getCommand("formatDrawFlipHorz").update(s),w.getCommand("formatDrawFlipVert").update(s),w.getCommand("formatDrawGroup").update(s),w.getCommand("formatDrawUngroup").update(s),w.getCommand("formatDrawSwapShapes").update(s),w.getCommand("formatDrawSwapShapesHorz").update(s),w.getCommand("formatDrawSwapShapesVert").update(s);const c={disabled:m||r.length<=2};w.getCommand("formatDrawDistributeHorz").update(c),w.getCommand("formatDrawDistributeVert").update(c)},[d,m,d]),w}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:c,commands:l,target:a,notifier:s});V(()=>{n?.getStage()},[n?.getStage()]);const u=$(()=>O(ET,{ref:t,view:n,movables:o.getMovables(),disableResize:!o.getProtection().isObjectsAllowed(),disableDrag:!o.getProtection().isObjectsAllowed(),movablesView:o.getView(),transactional:o,renderMovable:i,...r,onFocus:()=>{d.activate(),r?.onFocus?.()}},"movable-area"),[o,r,l,d]);return u&&n?u:null})),RT=z(j((e,t)=>{const{view:o,sheet:r,gridStyle:i,getCellEditor:l,showProtectedError:a,setEditingCoords:s,commands:c,notifier:d=sr}=e,u=Ur(),[h,p]=N(null),[f,m]=N(null),[g,b]=N(null),[w,v]=N(null),[x,S]=N(null);U(()=>{if(null===g)return v(null),void S(null);const e=()=>{const e=r.getRange(g).getCell(),t=e.getStyle();let n,o=t.getFill()?.toCSS(i.body.darkMode);"none"!==o.background&&"transparent"!==o.background||(o=r.getStyles().getNormal().getFill().toCSS(i.body.darkMode)),"none"!==o.background&&"transparent"!==o.background||(o={background:i.body.fill}),v({style:o}),e&&!e.getFormula()&&(n=e?.getRenderHorizontalAlignment()),S(n??oo)};return e(),r.getRange(g).addListener(()=>{e()})},[r,g,i?.body]);const C=go(()=>{let e=f.editState.dirty??"";if(void 0!==f.editState.dirty){const t=y.clampString(e);try{const n=f.sheet.getRange(f.coords),o=`Typing '${t}' into ${n.toString()}`;return n.setValue(e,{description:o,autoFit:!0}),b(null),m(null),u.setMode(null),s(null),!0}catch(e){throw d.showError(new Error(`Unable to enter '${t}'.`,{cause:e})),e}}},[r,f,d]),k=go(e=>r.getRange(e).getCell().getExtrusions()??en.cellToRange(e),[r]);go(e=>{let t=n.Orientation.Row,o=!1;e!==n.Direction.Up&&e!==n.Direction.Down||(t=n.Orientation.Column),e!==n.Direction.Left&&e!==n.Direction.Up||(o=!0),r.getSelection().traverse(t,o)},[r]);const E=H((e,t)=>{if(l)return l(e,t);if(!r)return null;const{ref:n,...o}=e;return O(b_,{ref:n,...o,sheet:r,bodyStyle:i?.body,activeCoords:t,commands:c,onChangeEdit:e=>{const n={sheet:r,coords:t,editState:e};u.setMode(e=>({...e,description:n.editState.editMode?"Edit":"Enter",args:{...e?.args,stateAndCoords:n}}))},editState:f.editState})},[r,w,l,f,g]),{overlay:_,startEdit:T,submitEdit:M,cancelEdit:D,onKeyboardEventNative:R,onPointerEventNative:L}=(e=>{const{view:t,canEdit:n=Qk,getCellEditor:o,onBeforeStartEdit:r,onStartEdit:i,onSubmitEdit:l,onCancelEdit:a,onDoneEdit:s,isEditorStartKeyEvent:c=eE,isEditorStartPointerEvent:d=tE,containerProps:u,borderStrokeFill:h,borderStrokeWidth:p=2,getRangeCoords:f=null,activeCoords:m,alignment:g=pC.Left}=e,[y,b]=N(!1),[w,v]=N(void 0),x=EC((e,t,n,o,r,i)=>{if(!t)return null;const l=r?.(t,e),a=e.getRangeCoordsBounds(l),s=e.toClipBounds(a),c=a,d=e.getZoom();if(!s)return null;n&&(n*=d),o&&(o*=d);let u=c,h=!1;if(void 0!==n){let t={...l},o=0;for(;!h&&u.width<=n&&o<20;){o++,o>19&&console.warn("max width reached");const r=e.getTotalRangeCoords(),l=e.getLayout();i===pC.Left?t.colEnd+1<r.colEnd?t.colEnd=l.getColIndex(u.x+n):h=!0:i===pC.Right?t.colStart-1>=0?t.colStart=l.getColIndex(u.x-(n-u.width)):h=!0:i===pC.Center&&t.colEnd+1<r.colEnd&&t.colStart-1>=0?(t.colStart=l.getColIndex(u.x-(n-u.width)/2),t.colEnd=l.getColIndex(u.x+u.width+(n-u.width)/2)):h=!0,h||(u=e.getRangeCoordsBounds(t))}}u.height=c.height,void 0!==o&&(u.height=Math.max(o+1,c.height));const{width:p,height:f}=e.getViewportSize();return{x:u.x??0,y:u.y??0,height:Math.min(f-u.y,u.height)+1,width:Math.min(p-u.x,u.width)+1}},[g]),S=EC(n,[n]),C=H(()=>{t?.getStage()?.focus()},[t]),k=F(null),E=EC(e=>{r?.(e),$(),b(!0),k.current=null},[r]),_=EC(e=>{i?.(e.coords)},[i]),T=EC(e=>{e.isSubmitted||e.isCancelled||(R.current.isEditorClosed=!0,C(),e.isCancelled=!0,a?.(e.coords),$())},[a]),M=EC(e=>{if(e.isSubmitted||e.isCancelled)return!1;try{return k.current=e.coords,e.isEditorClosing=!0,e.isSubmitted=!0,e.isEditorSubmitted||(e.isEditorSubmitted=!0,e.editorRefs[0]?.submitEdit?.()),e.coords,l?.(e.coords),e.isEditorClosed=!0,C(),$(),!0}catch(t){throw e.isEditorClosing=!1,e.isSubmitted=!1,t}},[l]),D=EC(e=>{b(!1),s?.(e.coords),$()},[s]),R=F(null),L=F(null),I=F(null),A=F([]),[P,z]=B(e=>e+1,0),$=H(e=>{e&&A.current.push(e),z()},[]),j=EC(e=>{if(e.defaultPrevented||e.isSynthetic)return;if(!t)return;const n=t?.getCellCoordsFromClient(e.clientX,e.clientY);n&&$({eventType:"pointer",event:e,coords:n})},[t]),W=EC(e=>{const t=e.nativeEvent;j(t)},[t]),q=EC(e=>{if(e.defaultPrevented||e.isSynthetic)return;if(!t?.getStage())return;const n=L.current;c(e,n)&&(e.stopPropagation(),e.preventDefault()),e.key,$({eventType:"keyboard",event:e,coords:n})},[t]);U(()=>{const e=(e,n)=>{const o=n?.cell??e;if(!o)return null;const r=o;if(!S(o))return null;E?.(o);const i=jS.uuidV4();n=Object.freeze({autoFocus:!0,...n}),I.current=o;const l={coords:r,startEvent:n,uuid:i,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:e=>{l.isMounted||(l.isMounted=!0,$())},onUnmount:e=>{if(0===l.editorRefs.length){const e=()=>{l.isMounted=!1,$()};if(document.activeElement!==document.body)e();else{const n=e=>{e.defaultPrevented||e.target!==document.body||q(e)};window.addEventListener("keydown",n,!0),t.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",n),e()},{once:!0}),C()}}}};return l};if(A.current.length<=0&&!R.current)return;const n=A.current[0];Jk(n),(e=>{const t=[],n=e?.length??0;for(let o=0;o<n;o++){const n=e[o];t.push(Jk(n))}})(A.current),R.current,R.current;let o=R.current;if(R.current)if(R.current.isDone)R.current=null;else if(R.current.isSubmitted||R.current.isCancelled){if(R.current.isMounted)return;R.current.isDone||(D(R.current),R.current.isDone=!0)}if(n)if("start"===n.eventType){const t=n,o=t.startEvent?.cell??L.current;R.current&&bS.isEqualCells(R.current.coords,o)||(R.current=e(o,t.startEvent))}else if("keyboard"===n.eventType){const t=n.event;if(R.current){let e=!1;switch(t.which){case 37:case 39:case 38:case 40:case 13:case 9:e=!0}if(!e){R.current.events.push(n);for(let e=0;e<R.current.editorRefsDispatchEditorEvent.length;e++)R.current.editorRefsDispatchEditorEvent[e](n)}}else if(c(t,n.coords)){let t;const o=e(L.current,t);o&&o.events.push(n),R.current=o}}else if("pointer"===n.eventType){const t=n.event;if(R.current){R.current.events.push(n);for(let e=0;e<R.current.editorRefsDispatchEditorEvent.length;e++)R.current.editorRefsDispatchEditorEvent[e](n)}else{const o=n?.coords??L.current,r=d(t,o);if(r){let t;"boolean"!=typeof t&&(t=r);const i=e(o,t);i&&i.events.push(n),R.current=i}}}else if("submit"===n.eventType){if(R.current&&!R.current.isSubmitted&&!R.current.isCancelled){if(!R.current.isMounted)return;M(R.current)}}else if("cancel"===n.eventType){if(R.current&&!R.current.isSubmitted&&!R.current.isCancelled){if(!R.current.isMounted)return;T(R.current)}}else if("coordsChange"===n.eventType){const t=n;if(L.current=t.activeCoords,R.current,R.current&&!R.current.isSubmitted&&!R.current.isCancelled){if(!R.current.isMounted)return;try{M(R.current)}catch(e){}}}A.current.length>0&&(A.current.shift(),$()),0===A.current.length&&(!R.current||R.current.isEditorClosing||R.current.isEditorClosed?!R.current&&o&&C():R.current.isMounted&&!R.current.isStarted&&(R.current.isStarted=!0,R.current.startEvent.autoFocus&&("string"==typeof R.current.startEvent.autoFocus?R.current.editorRefs[0]?.autoFocus(R.current.startEvent.autoFocus):R.current.editorRefs[0]?.autoFocus()),_?.(R.current),requestAnimationFrame(()=>{t&&R.current?.coords&&t.scrollCellCoordsIntoView(R.current.coords)})))},[P]),V(()=>{I.current=m;const e=R.current?.coords;bS.isEqualCells(e,m)||(R.current&&(R.current.isEditorClosing=!0),$({eventType:"coordsChange",activeCoords:m}))},[m]);const Z=H(e=>{q(e.nativeEvent)},[]),{width:G=0,height:K=0}=w??{width:0,height:0},X=EC(o,[o]);return{overlay:EC(e=>{if(!R.current||R.current.isEditorClosed)return R.current,null;R.current.coords;let t=x(e,R.current.coords,G,K,f,g),n=!0;t&&0!==t.width&&0!==t.height||(t={x:0,y:0,width:G,height:G},n=!1);const o=e.getZoom(),r={containerBounds:{x:0,y:0,width:t.width/o,height:t.height/o},setNaturalDimensions:v,zoom:o};return O(nE,{session:R.current,refLatestCoords:I,handleSubmitEdit:M,handleCancelEdit:T,cellBounds:t,borderStrokeWidth:p,borderStrokeFill:h,isInBounds:n,getCellEditor:X,propsEditor:r,alignment:g,...u},"editor:"+R.current.uuid)},[o,f,P,G,K,g,p,h]),startEdit:H(e=>{$({eventType:"start",startEvent:e})},[]),submitEdit:H(()=>{$({eventType:"submit"})},[]),cancelEdit:H(()=>{$({eventType:"cancel"})},[]),onKeyboardEvent:Z,onPointerEvent:W,onKeyboardEventNative:q,onPointerEventNative:j,isEditing:y}})({view:o,activeCoords:h,getCellEditor:E,canEdit:()=>{const e=r.getProtection();if(e.isReadOnly())return!1;const t=e.isLocked();return t&&a(),!t},onBeforeStartEdit:e=>{const t=w_(()=>r.getRange(e).getCell()),n={sheet:r,coords:e,editState:Object.freeze(t)};u.setMode({key:"edit",args:{stateAndCoords:n}}),m(n)},onStartEdit:e=>{b(e),s(e)},onSubmitEdit:C,onCancelEdit:e=>{b(null),m(null),u.setMode(null),s(null)},onDoneEdit:e=>{u.setMode(null)},containerProps:w,borderStrokeFill:i.selection?.strokeFill,borderStrokeWidth:r?.getSelection().getCoords().ranges?.length>1?1:2,alignment:x,getRangeCoords:k});j_(r.getSelection(),{onChange(e){p(r.getSelection().getCoords().cell)}});const I=go(e=>{L(e),g&&M()},[L,D,g]),A=H(e=>{L(e)},[L]),P=H(e=>{R(e)},[R]);return V(()=>{const e=o?.getStage();if(e)return e.addEventListener("pointerdown",I),e.addEventListener("dblclick",A),e.addEventListener("keydown",P),()=>{e.removeEventListener("pointerdown",I),e.removeEventListener("dblclick",A),e.removeEventListener("keydown",P)}},[o?.getStage()]),V(()=>{const e=u.getMode(),t=e?.key;"edit"===t||"enter"===t?f?e.args?.cancel?D():e.args?.submit?M():m(e.args?.stateAndCoords):T(e.args?.start):g&&D()},[u]),_(o,t)})),OT="white",LT="black",IT=`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='${LT}' fill='${OT}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,AT=`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 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${LT}' fill='${OT}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,PT=z(j((e,t)=>{const{view:n,sheet:o}=e,[r,i]=P.useState(o.getTables().getCount()>0),[l,a]=P.useState(null),[s,c]=P.useState(null),[d,u]=P.useState(null),[h,p]=P.useState(null),f=go(()=>{if(o.getTables().getCount()>0){i(!0);const e=o.getTables().search({address:n.getVisibleRangeCoords()});a(e.length>0?e:null)}else i(!1),a(null)},[o,n]),m=go(e=>{e.preventDefault(),e.stopPropagation();const t=n.getCellCoordsFromClient(e.clientX,e.clientY),r=o.getTables().search({address:t});1===r.length&&r[0].select()},[n,o]),y=go(e=>{e.preventDefault(),e.stopPropagation();const t=n.getCellCoordsFromClient(e.clientX,e.clientY),r=o.getTables().search({address:t});if(1===r.length){const e=r[0].getRange().getCoords(),n={colStart:e.colStart,rowStart:t.rowIndex,colEnd:e.colEnd,rowEnd:t.rowIndex};o.getRange(n).select()}},[n,o]),b=go(()=>{if(!r)return;const e=o.getTables().search({address:n.getVisibleRangeCoords()});a(e.length>0?e:null)},[o,r,n]);j_(o?.getSelection(),{onChange(e){c(o.getSelection().getCoords().cell)}}),j_(d,{onAnyChange(e){f(),b()}}),j_(h,{onAnyChange(e){b()}}),j_(o,{onTablesChange(e){f(),b()},onInvalidated(e){f(),b()}});const w=P.useMemo(()=>_n.debounce(_n.throttle(b,300),300),[]);V(()=>{w()},[n]),V(()=>{let e=null;if(l)for(let t=0;t<l.length&&!e;t++){const n=l[t],o=n.getRange().getCoords();g.isCellWithinRange(s,o)&&(e=n)}u(e)},[s,l]);const v=go(e=>{let t=null;if(l)for(let o=0;o<l.length;o++){const r=l[o],i=r.getRange().getCoords();let a=n.getRangeCoordsBounds(i);const s=n.getRelativePointFromClient(e.clientX,e.clientY),c=s.x,d=s.y;if(c>=a.x&&c<=a.x+a.width&&d>=a.y&&d<=a.y+a.height){const e=n.getViewportSize();c<=0||d<=0||c>=e.width||d>=e.height||(t=r)}}p(t)},[n,l]);if(V(()=>{const e=n?.getStage();if(e&&l)return e.addEventListener("mousemove",v),e.addEventListener("mouseleave",v),()=>{e.removeEventListener("mousemove",v),e.removeEventListener("mouseleave",v)}},[l,n?.getStage()]),!n)return null;if(!l||0===l.length)return null;const x=[];for(let e=0;e<l.length;e++){const t=l[e];if(t.isClosed())continue;const r=t===h,i=t===d,a=t.getRange().getCoords(),s=n.getRangeCoordsBounds(a);let c;if(r||i){const e=t.getStyle().getProperties(),n=e.headerRow?.fill?.background??e.wholeTable?.border?.top?.color?.toString();if(n&&o){const e=o.getStyles().parseColor(n);e&&(c=e.toCSS())}c||(c="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}x.push(O("div",{style:{position:"absolute",left:s.x,top:s.y,width:Math.min(16,s.width),height:s.height,pointerEvents:"all",cursor:IT},onMouseDown:y},`table-select-row-${t.getName()}`)),x.push(O("div",{style:{position:"absolute",left:s.x,top:s.y,width:Math.min(16,s.width),height:Math.min(16,s.height),pointerEvents:"all",cursor:AT},onMouseDown:m},`table-select-${t.getName()}`)),x.push(O(SE,{x:s.x,y:s.y,width:s.width,height:s.height,range:a,strokeWidth:i?.5:0,stroke:c??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:r?`${c} 0px 0px 1px 1px`:void 0}},`table-outline-${t.getName()}`))}return x})),zT=z(j((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,l]=P.useState(null),[a,s]=P.useState(null),c=P.useRef(null),d=go(()=>{const e=o.getSelectedCell(),t=e.getSpill()?.getCoords()??null;en.isEqualRanges(t,i)||(s(t?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(t),coords:t}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),l(t))},[o,n,i]);P.useEffect(()=>(c.current&&(clearTimeout(c.current),c.current=null),a&&(c.current=setTimeout(()=>{s(null),c.current=null},r)),()=>{c.current&&(clearTimeout(c.current),c.current=null)}),[a,r]);const u=P.useMemo(()=>_n.debounce(_n.throttle(d,80),80),[]);if(j_(o?.getSelection(),{onChange(e){u()}}),j_(o,{onSpillsChange(e){d()},onInvalidated(e){d()}}),!n)return null;if(!i&&!a)return null;const h=o.getRange(i).getValue()instanceof f.Spill,p=[];let m=a?.bounds??n.getRangeCoordsBounds(i);if(a&&!_n.isEqualBounds(a.bounds,n.getRangeCoordsBounds(a.coords))&&s(null),m=n.toClipBounds(m,-10),!m)return;const g="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return p.push(O(SE,{x:m.x,y:m.y,width:m.width,height:m.height,range:i,strokeWidth:1,stroke:g,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:h?"6 3":void 0,opacity:"out"===a?.transition?0:1,transition:a?.transition?"in"===a.transition||"out"===a.transition?`opacity ${1.5*r}ms ease-in-out`:`left ${r}ms ease-out, top ${r}ms ease-out, width ${r}ms ease-out, height ${r}ms ease-out`:"none",boxShadow:`${g} 0px 0px 4px 0px`}},"spill-outline}")),p})),FT={position:"absolute",top:0,left:0,bottom:0,right:0},NT=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},l=n.body=_n.mergeContentful(e.body,i);return n.body=_n.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},l),n.buttonSurface=_n.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=_n.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=_n.mergeContentful(n.header,i),n.headerSelect=_n.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=_n.mergeContentful(n.headerSelect,i),n.headerSelectAll=_n.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=_n.mergeContentful(n.headerSelectAll,i),n},VT={fireOnModelChange:!1},HT={},BT=z(j((e,n)=>{const{sheet:r,gridStyle:i=HT,headersStyle:l=HT,onSheetContextMenu:c,showColumnHeaders:d,columnHeaderProps:u,showRowHeaders:h,rowHeaderProps:p,showScrollbars:f=!0,scrollPaneProps:m,onViewportChange:g,commands:y,onRepeatCommandChange:b,onMoveCell:w,overlays:v,renderMovable:x,viewportComponent:S,onElementLoad:C,getCellEditor:k,onFocus:E,onBlur:_,style:T=Jo.EmptyCssProperties,notifier:M,onShowTooltip:D,onShowColumnTooltip:R,onShowRowTooltip:A,onCloseTooltip:z,gridProps:B,cellRenderProps:j,...W}=e;if(P.useEffect(()=>{a._validate(!0)},[]),!r)throw new Error("ISheet must be provided.");const[q,G]=P.useReducer(e=>e+1,0),[K,{width:X,height:Y}]=M_(),J=go(D,[D]),Q=go(R,[R]),ee=go(A,[A]),te=go(z,[z]),ne=F(!1);U(()=>{ne.current=!0},[r]);const oe=r?.getStyles(),re=$(()=>NT(i,oe),[i,oe]),ie=$(()=>NT(l,oe),[l,oe]),{body:le={},buttonSurface:ae={}}=re,{header:se={},headerSelect:ce={},headerSelectAll:de={}}=ie,ue=F(null),[he,pe]=N(()=>r?.getView()),fe=(he?.getZoomScale()??100)/100,me=$(()=>({vertical:he.isShowColumnGridlines()&&fe>=.4,horizontal:he.isShowRowGridlines()&&fe>=.4}),[he?.isShowColumnGridlines(),he?.isShowRowGridlines(),fe]),ge=$(()=>{if(he?.getGridLineColor())return{strokeDasharray:"1,1"}},[he?.getGridLineColor(),re]),ye=d??he?.isShowColumnHeaders(),be=h??he?.isShowRowHeaders(),[we,ve]=N({width:0,height:0}),xe=$(()=>{let e=40,t=20;const n=r?.getStyles().getNormal().getFont();if(we.width>0&&we.height>0){const r=n?.toCSS()?.fontFamily??re.header.text.fontFamily,i=n?.getSize()??re.header.text.fontSize,l=o.getSharedMeasurer()(""+we.height,Math.ceil(i*o.getDeviceScale()),r);e=l.width,t=l.lineHeight}return{width:Math.round(e+5),height:Math.round(t+3)}},[we,re?.header.text,r]),Se=be?fe*xe.width:se.edgeStrokeWidth,Ce=ye?fe*xe.height:se.edgeStrokeWidth,ke=Math.max(X,(r?.getColumnHeaders().getDefaultSize()??xe.width)+Se+1),Ee=Math.max(Y,(r?.getRowHeaders().getDefaultSize()??xe.height)+Ce+1),_e=F(new Map),Te=F(null),Me=()=>({getColOffset:e=>r.getColumnHeaders().findOffset(e),getColIndex:e=>r.getColumnHeaders().findIndex(e),getRowOffset:e=>r.getRowHeaders().findOffset(e),getRowIndex:e=>r.getRowHeaders().findIndex(e)}),[De,Re]=N(()=>Me()),[Oe,Le]=N(!1),[Ie,Ae]=N(null),Pe=!0,ze=re.selection?.strokeFill,Fe=H(()=>xt.current,[]),[Ne,Ve]=N(),He=go(e=>{Ve(e),r&&r.getView()&&r.getView().setTopLeft(e?{left:e.left,top:e.top}:null),g?.(e)},[r,g]),Be=F(null);V(()=>{if(!Ne||!r)return;const e=r.getRangeAtBounds({x:Ne.left,y:Ne.top,width:Ne.width,height:Ne.height});Be.current?.(),Be.current=e.addListener(()=>{const t=e.getCoords();ue?.current?.invalidate(t)})},[Ne,r]);const[$e,je]=N(()=>r?.getView().getTopLeft()),We=go(e=>{const t=en.cellToRange(e);if(r.isClosed())return t;const n=r.getRange(t,{excludeHidden:!0}).getMerges();return 0===n.length?t:n[0]},[r]),Ue=e=>{if(!e||0===e.coords.colIndex&&0===e.coords.rowIndex)return null;const t={};return e.coords.colIndex>0&&(t[_t.Left]={index:e.coords.colIndex,scrollOffset:e.topLeft.left}),e.coords.rowIndex>0&&(t[_t.Top]={index:e.coords.rowIndex,scrollOffset:e.topLeft.top}),t},[qe,Ze]=N(()=>Ue(r.getView().getFreezePanes())),Ge=Ur(),Ke=H(()=>ue.current,[]),Xe=go(e=>{Ge.setMode(t=>"edit"===t?.key?{...t,args:{...t.args}}:{key:"edit",args:{stateAndCoords:null,start:e}})},[]),Ye=go(()=>Ne,[Ne]),Je=U_({sheet:r,commands:y,target:Ke,onRepeatCommandChange:b,bodyStyle:le,notifier:M,onStartEdit:Xe,getViewport:Ye}),[Qe,et]=N(r.getSelection().isEntire()),[tt,nt]=N(he?.getMovableSelection().length>0),ot=null!==Ie||tt,rt=null,[it,lt]=N(!1);V(()=>{lt(!1)},[r.getProtection()]);const at=go(()=>{it||(lt(!0),M.showMessage?.(L("span",{children:["This sheet is protected.",O("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:rr}))},[M,it]),st=$(()=>{const e=Ge.getMode();return e?.cursor?e.cursor:null},[rt,Ge]),[ct,dt]=N(null),ut=F(!1),[ht,pt]=N([]),ft=F(null),[mt,gt]=N(It.EmptyTopLeft),[yt,bt]=N(It.EmptyTopLeft);V(()=>{gt({left:$e?.left,top:0})},[$e?.left]),V(()=>{bt({left:0,top:$e?.top})},[$e?.top]),j_(r?.getView(),{onFreezeSplitChange:()=>{Ze(Ue(r.getView().getFreezePanes()))},onTopLeftChange:()=>{je(r.getView().getTopLeft())},onMovableSelectionChange:()=>{nt(r.getView().getMovableSelection().length>0)}}),j_(r?.getSelection(),{onChange:()=>{et(r.getSelection().isEntire())}}),j_(r,{onViewChange(){pe(r.getView()),Re(Me())},onLayoutChange:()=>{const e=r.getEntireRange();ve({height:e.getRowCount(),width:e.getColumnCount()}),Re(Me())},onStyleChange:()=>{St()},onMovablesChange:()=>{},onInvalidated:()=>{St()}}),j_(r,{onRequestScrollIntoView:async(e,t)=>{if(!t)return;const n={colIndex:t?.coords.colStart,rowIndex:t?.coords.rowStart};return await(ue.current?.scrollCellCoordsIntoView(n,t?.scroll)),!0},onRequestFocus:()=>_n.whenFocus(xt.current)},VT);const wt=$(()=>{const e=(e,t)=>{ut.current=!0,dt([n=>{if(!n.toClipBounds(n.getRangeCoordsBounds({rowStart:0,rowEnd:we.height,colStart:e,colEnd:e})))return;const o=n.getLayout(),l=Math.max(0,o.getColOffset(e)),a=n.getBounds(),s=Math.min(a.x+a.width,o.getColOffset(e+1)),c=n.getAnchor();if(null!==t&&(c===_t.Left||c===_t.Center||c===_t.Right)){const e=_n.roundAccurately(t*_n.getDPI(),0),n=_n.roundAccurately(r?.getColumnWidthAsFontUnit(t/fe),2).toFixed(2),o="Width: "+(t?n+" ("+e+" pixels)":"Hidden"),i=Vt.current.getGridElement().getRelativePointFromClient(0,0),c=0-i.y,d=0-i.y+Ce,u={x:l-(i.x-a.x),y:c,width:s-l,height:d-c};requestAnimationFrame(()=>{ut.current&&Q?.({anchor:u,display:o})})}const d=[0,0,0,a.height],u={style:{boxShadow:`0.5px 0px 0px 0px ${i?.body?.fill}`},pathProps:{stroke:ze}},h={x:l-1,y:0,width:1,height:a.height},p={style:{boxShadow:`-0.5px 0px 0px 0px ${i?.body?.fill}`},pathProps:{stroke:ze}},f={x:s-1,y:0,width:1,height:a.height};return L(P.Fragment,{children:[O(wE,{linePoints:d,bounds:h,...u}),O(wE,{linePoints:d,bounds:f,...p})]},"resize-dividers")}])};let t=null;return{onResizeHeadersStart:(n,o,i)=>{t=r.beginCommit(i),e(n,o)},onResizeHeaders:(t,n,o)=>{e(t,n)},onResizeHeadersDown:(t,n)=>{e(t,n)},onResizeHeadersEnd:(e,n,o)=>{t?.commit({description:o}),t=null,requestAnimationFrame(()=>te?.()),ut.current=!1,dt(null)},onResizeHeadersUp:e=>{requestAnimationFrame(()=>te?.()),ut.current=!1,dt(null)},...u}},[r,u,Ce,ct]),vt=$(()=>{const e=(e,t)=>{ut.current=!0,dt([n=>{if(!n.toClipBounds(n.getRangeCoordsBounds({rowStart:e,rowEnd:e,colStart:0,colEnd:we.width})))return;const o=n.getLayout(),l=Math.max(0,o.getRowOffset(e)),a=n.getBounds(),s=Math.min(a.y+a.height,o.getRowOffset(e+1)),c=n.getAnchor();if(null!==t&&(c===_t.Top||c===_t.Center||c===_t.Bottom)){const e=Math.floor(10*_n.getDPI())/10,n=_n.roundAccurately(t*e,0),o=_n.roundAccurately(n/fe/(r?.getRowHeaders().getScaleFactor()*_n.getDPI()),2).toFixed(2),i="Height: "+(t?o+" ("+n+" pixels)":"Hidden"),c=Ft.current.getGridElement().getRelativePointFromClient(0,0),d=0-c.x,u=0-c.x+Se,h={x:d,y:l-(c.y-a.y),width:u-d,height:s-l};requestAnimationFrame(()=>{ut.current&&ee?.({anchor:h,display:i})})}const d=[0,0,a.width,0],u={style:{boxShadow:`0px 0.5px 0px 0px ${i?.body?.fill}`},pathProps:{stroke:ze}},h={x:0,y:l-1,width:a.width,height:1},p={style:{boxShadow:`0px -0.5px 0px 0px ${i?.body?.fill}`},pathProps:{stroke:ze}},f={x:0,y:s-1,width:a.width,height:1};return L(P.Fragment,{children:[O(wE,{linePoints:d,bounds:h,...u}),O(wE,{linePoints:d,bounds:f,...p})]},"resize-dividers")}])};let t=null;return{onResizeHeadersStart:(n,o,i)=>{t=r.beginCommit(i),e(n,o)},onResizeHeaders:(t,n,o)=>{e(t,n)},onResizeHeadersDown:(t,n)=>{e(t,n)},onResizeHeadersEnd:(e,n,o)=>{t?.commit({description:o}),t=null,requestAnimationFrame(()=>te?.()),ut.current=!1,dt(null)},onResizeHeadersUp:e=>{requestAnimationFrame(()=>te?.()),ut.current=!1,dt(null)},...p}},[r,p,Se]),xt=er(n,()=>{const e=e=>{r?.getView()&&r.getView().selectMovables([]),Te.current=null,ue?.current?.focus(e)},t=async(e=null)=>{if(e||(e=r?.getView().getMovableSelection()[0]),!e)return!1;const t=e.getAnchorCoords();if(!t)return!1;const n=ue.current?.getViewFromCellCoords({colIndex:t.colStart,rowIndex:t.rowStart});if(!n)return!1;const o=n.getAnchor();-1===r?.getView().getMovableSelection().indexOf(e)&&r?.getView().selectMovables([e]);let i=_e.current?.get(o);return i?.current?(await i.current.focusMovable(e),!0):(Te.current={movable:e,anchor:o},!0)};return{getGridElement:()=>ue.current,getRowHeaderElement:()=>Ft.current,getColumnHeaderElement:()=>Vt.current,rowHeaderHeight:()=>Ce,colHeaderWidth:()=>Se,startEdit:Xe,submitEdit:()=>{Ge.setMode(e=>"edit"!==e?.key?e:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{Ge.setMode(e=>"edit"!==e?.key?e:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:null!==Ie,focus:n=>{r?.getView().getMovableSelection().length>0&&t()||e(n)},focusSheet:e,focusMovable:t,contains:e=>ue?.current?.contains?.(e),invalidate:St,isSheetElement:()=>!0,getSheet:()=>r}},[r]),St=H(e=>{ne.current||(ue?.current?.invalidate(e),G?.())},[]);V(()=>{St()},[re]);const Ct=Qe?de.edgeStrokeFill:se.fill,kt=Qe?ce.fill:"function"==typeof re.headerHover?re.headerHover(se)?.fill:se.fill,Et=$(()=>S?O("div",{className:H_("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:S}):O(I,{}),[S]);let Tt=null;ye&&be&&(Tt=L("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${Ce}px`,width:`${Se}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:e=>{let t=!e.ctrlKey;Je?.getCommand("selectAll")?.execute(!t||0!==e.button),e.nativeEvent.which===lo?c?.({originalEvent:e,clientX:e.clientX,clientY:e.clientY,rowIndex:-1,colIndex:-1}):ue.current?.focus()},children:[O("div",{style:{height:Ce-5+"px",width:Ce-5+"px",clipPath:`path('M${Ce-5} 0 L0 ${Ce-5} L${Ce-5} ${Ce-5} L${Ce-5} 0 Z')`,borderRight:`2px solid ${Ct}`,borderBottom:`2px solid ${Ct}`,background:`${kt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),O("div",{style:{position:"absolute",height:`${Ce}px`,width:`${Se}px`,boxSizing:"border-box",borderRight:`solid 1px ${se.strokeFill}`,borderBottom:`solid 1px ${se.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const Mt=go(({_left:e,_top:t})=>{},[]),Dt=go(e=>{if(!c)return;const t=ue.current.getViewFromClient(e.clientX,e.clientY)?.getCellCoordsFromClient(e.clientX,e.clientY);t&&(c({originalEvent:e,clientX:e.clientX,clientY:e.clientY,rowIndex:t.rowIndex,colIndex:t.colIndex}),e.stopPropagation(),e.preventDefault())},[c]),Rt=go(e=>{if(e.shiftKey||!e.ctrlKey&&!e.metaKey)return;const{deltaY:t}=e;return t>0?Je.getCommand("sheetZoomOut")?.execute():t<0&&Je.getCommand("sheetZoomIn")?.execute(),0===t},[Je]);V(()=>{pt(null),ft.current=null,ut.current=!1,dt(null);const e=r?.getView().getTopLeft();Mt(e),ue.current?.scrollTo(e),je(e),pe(r.getView()),Ze(Ue(r.getView().getFreezePanes())),Re(Me()),G()},[r?.getView()]);const Ot=go(e=>{const n=e.getVisibleRangeCoords();if(!n)return null;const o=[];return r.getRange(n).forEach((e,n)=>{const r=n.getCoords(),i=n.getCell();(e=>{if(e.isEmpty())return!1;const n=e.getSpans();if(n.width>1||n.height>1)return!0;if(e.getStyle().hasVisibleStyling())return!0;if(he.isShowFormulas()&&null!==e.getFormula())return!0;const o=e.getValue();return null!==o&&!(!he.isShowZeros()&&0===o&&e.getType()===t.Number)})(i)&&o.push({coords:r,value:i,range:he.isShowFormulas()?null:i.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),o},[r,he.isShowZeros(),he.isShowFormulas(),Ie]);V(()=>{const e=[];v&&e.push(...v),ct&&e.push(...ct),_n.isEqualArrays(e,ft.current)||(ft.current=e,pt(e))},[v,ct,re]);const Lt=$(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${i?.body?.fill}`},pathProps:{stroke:i?.body?.text?.fill??"black"}}),[re?.header?.edgeStrokeFill]),At=go(e=>{e.isDefaultPrevented()||e.isPropagationStopped()||(Te.current=null,r?.getView().getMovableSelection().length>0&&r.getView().selectMovables([]))},[r]),Pt=$(()=>{const e=Ge.getMode();return"cut"===e?.key||"copy"===e?.key},[Ge]),zt=go(async e=>{const t=Ge.getMode();return e.keyCode===io.Escape&&t?(e.preventDefault(),void Ge.setMode(null)):e.keyCode===io.Enter&&Pt?(e.preventDefault(),await(Je?.getCommand("paste")?.execute()),void Ge.setMode(null)):void Je?.dispatchToFocusedCommand(e)},[Je,Ge]),Ft=F(null),Nt=$(()=>O("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ce+1}px`,width:`${Se+se.edgeStrokeWidth}px`,minWidth:`${Se+se.edgeStrokeWidth}px`,borderRight:`solid ${se.edgeStrokeWidth}px ${se.edgeStrokeFill}`,height:`calc(100% - ${Ce}px)`,boxSizing:"border-box",zIndex:"2"},children:O(iT,{ref:Ft,sheetElement:xt.current,gridRef:ue,freezeStart:qe?.[_t.Top],oppositeSize:Se,containerWidth:Se,containerHeight:Ee,sheetHeader:r.getRowHeaders(),gridStyle:ie,verticalPadding:Math.max(0,Math.floor(r.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:yt,onSheetContextMenu:c,tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ce+1}px`,width:`${Se+se.edgeStrokeWidth}px`,minWidth:`${Se+se.edgeStrokeWidth}px`,borderRight:`solid ${se.edgeStrokeWidth}px ${se.edgeStrokeFill}`,height:`calc(100% - ${Ce}px)`,boxSizing:"border-box",zIndex:"2",...vt?.style},...vt})}),[Se,Ce,Ee,r,yt,qe?.[_t.Top],re,Pe,c,se.fill,p]),Vt=F(null),Ht=$(()=>O("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${Ce+se.edgeStrokeWidth}px`,minHeight:`${Ce+se.edgeStrokeWidth}px`,borderBottom:`solid ${se.edgeStrokeWidth}px ${se.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:O(iT,{ref:Vt,sheetElement:xt.current,gridRef:ue,freezeStart:qe?.[_t.Left],oppositeSize:Ce,containerWidth:ke,containerHeight:Ce,sheetHeader:r.getColumnHeaders(),gridStyle:ie,scrollPoint:mt,onSheetContextMenu:c,...wt,style:{...wt?.style,position:"relative",left:"0px",width:"100%",height:`${Ce+se.edgeStrokeWidth}px`,minHeight:`${Ce+se.edgeStrokeWidth}px`,borderBottom:`solid ${se.edgeStrokeWidth}px ${se.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[Ce,ke,r,mt,qe?.[_t.Left],re,se.fill,Pe,c,u]),Bt=go(e=>{const{value:t,key:n,...o}=e;let i=t,l=Ie;if(!l||l.colIndex===e.coords.colIndex&&l.rowIndex===e.coords.rowIndex||(l=null),!i){const t=e.range;if(i=r.getRange({rowIndex:t.rowStart,colIndex:t.colStart}).getCell(),i.isEmpty())return null}let a=null;i.getHyperlink()&&(a=async e=>{if(j?.onLinkMouseDown?.(e),0===e.button&&!e.isDefaultPrevented()){e.stopPropagation(),e.preventDefault();try{await(i.getHyperlink()?.open())}catch(e){M?.showError?.(e)}}}),l&&l.colIndex===e.range.colStart&&l.rowIndex===e.range.rowStart&&(i=i.createTemporaryCell({value:null}));const s=r.getStyles();return Z(f_,{...o,key:n,bodyStyle:le,docTheme:s.getTheme(),normalStyle:s.getNormal(),showFormulas:he.isShowFormulas(),showZeros:he.isShowZeros(),onLinkMouseDown:a,...j,value:i})},[r,De,le,Ie,he?.isShowFormulas(),he.isShowZeros()]),$t=H((e,t)=>{const{key:n,...o}=e;return[O(lT,{ref:t,getVisibleCells:Ot,sheet:r,gridStyle:re,...o},`border-${n}`),O(PT,{ref:t,sheet:r,commands:Je,...o},`table-${n}`),O(zT,{ref:t,sheet:r,...o},`spill-${n}`),O(xT,{ref:t,sheet:r,commands:Je,notifier:M,onShowTooltip:J,onCloseTooltip:te,gridStyle:re,gridRef:ue,editingCoords:Ie,isActive:Pe,...o},`selection-${n}`),O(fT,{ref:t,sheet:r,commands:Je,gridStyle:re,element:Fe,notifier:M,...o},`copy-paste-${n}`),O(DT,{ref:t,sheet:r,commands:Je,target:Ke,notifier:M,renderMovable:x,movableProps:{onUnFocus:()=>{xt.current.focus()}},...o},`movable-${n}`),O(RT,{ref:t,sheet:r,commands:Je,notifier:M,gridStyle:re,getCellEditor:k,showProtectedError:at,setEditingCoords:Ae,...o},`editor-${n}`)]},[r,ue.current,re,k,Je,M]),[jt,Wt]=N(!1),Ut=$(()=>{if(0===ke||0===Ee)return null;const e=r.getStyles().getNormal(),t=e.getFont(),n=e.getFill(),o=e.getBorder(),i=e.getFill().getType()===s.Type.None;let l=ge,a=ge;const c=(e,t,n)=>n?{stroke:o.getBottom().isNone()?"none":e.getColor().toRGBA(le.darkMode).toString(),...t}:t;a=c(o.getBottom(),a,!o.getBottom().isNone()),a=c(o.getTop(),a,!o.getTop().isNone()),l=c(o.getRight(),l,!o.getRight().isNone()),l=c(o.getLeft(),l,!o.getLeft().isNone());let d=he?.getGridLineColor()?.toRGBA(le.darkMode).toString()??le.strokeFill;return i||(a=c(o.getBottom(),a,!0),a=c(o.getTop(),a,!0),l=c(o.getRight(),l,!0),l=c(o.getLeft(),l,!0)),O(YE,{className:"sheetxl-sheet-primary",style:{...FT,...n.toCSS(le.darkMode),...t.toCSS(le.darkMode,fe),"--sxl-app-color-background":le.fill,"--sxl-app-color-shadow":re.colorShadow,"--sxl-app-color-grey":re.colorGrey,"--sxl-app-color-button-fill":ae.fill,"--sxl-app-color-button-text":ae.text?.fill,"--sxl-app-color-button-border":ae.edgeStrokeFill,"--sxl-app-color-primary-dark":re.selection.strokeFill},ref:ue,zoom:fe,...B,onFirstRender:e=>{Wt(!0),B?.onFirstRender?.(e),Je?.activate()},showGridLines:me,gridLineColor:d,gridLineColumnsProps:l,gridLineRowsProps:a,freezeLeft:qe?.[_t.Left],freezeLeftProps:Lt,freezeTop:qe?.[_t.Top],freezeTopProps:Lt,width:ke,height:Ee,columnCount:we.width,rowCount:we.height,cursor:st??rt??"cell",clipCells:!0,layout:De,cellRenderer:Bt,overlayRenderer:$t,getCellCoordsAsRangeCoords:We,getVisibleCells:Ot,onWheelScroll:Rt,onPointerDown:At,onKeyDown:zt,onViewportChange:He,onImmediateScroll:Mt,scrollPoint:$e,stageProps:{onFocus:()=>{Je?.activate()}},overlays:ht})},[q]);V(()=>{ne.current||G()},[De,qe,fe,Je,$e?.left,$e?.top,le,B,ke,Ee,st,ht,Pe,rt]);let qt={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};f||(qt={...qt,...T});const Zt=$(()=>{const e=r.getStyles().getTheme(),t=e.getColorScheme(),n=e.getFontScheme();return{"--sxl-doc-color-dk1":t.getDk1().toCSS(le.darkMode),"--sxl-doc-color-dk2":t.getDk2().toCSS(le.darkMode),"--sxl-doc-color-lt1":t.getLt1().toCSS(le.darkMode),"--sxl-doc-color-lt2":t.getLt2().toCSS(le.darkMode),"--sxl-doc-color-accent1":t.getAccent1().toCSS(le.darkMode),"--sxl-doc-color-accent2":t.getAccent2().toCSS(le.darkMode),"--sxl-doc-color-accent3":t.getAccent3().toCSS(le.darkMode),"--sxl-doc-color-accent4":t.getAccent4().toCSS(le.darkMode),"--sxl-doc-color-accent5":t.getAccent5().toCSS(le.darkMode),"--sxl-doc-color-accent6":t.getAccent6().toCSS(le.darkMode),"--sxl-doc-color-hlink":t.getHlink().toCSS(le.darkMode),"--sxl-doc-color-fol-hlink":t.getFolHlink().toCSS(le.darkMode),"--sxl-doc-font-major":n.getMajorFont(),"--sxl-doc-font-minor":n.getMinorFont()}},[r.getStyles().getTheme()]);let Gt=O("div",{style:qt,onTouchStart:()=>{Yt()},onFocus:e=>{Le(!0),E?.(e)},onBlur:e=>{Le(!1),_?.(e)},ref:xt,...W,children:O("div",{className:H_("sheetxl-sheet","_sheetxl-sheet_1qeq6_5"),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...Zt},children:L("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Tt,Nt,L("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[Ht,L("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${se.edgeStrokeWidth}px ${se.edgeStrokeFill}`,backgroundColor:le.fill},ref:K,onContextMenu:Dt,children:[Ut,Et,O($_,{style:{position:"absolute",right:24,bottom:4},colorLicensee:re?.selection?.strokeFill,colorCredits:re?.body?.text?.fill})]})]})]})})});if(f){const e=e=>O(oT,{...e,sheet:r});Gt=O(or,{style:{flex:"1 1 100%",overflow:"hidden",background:`${se.fill}`,minHeight:2*xe.height,minWidth:2*xe.width,...T},viewport:Ne,touchElement:ue.current?.stage,disableTouch:ot,onScrollViewport:e=>{ue.current?.scrollTo(e)},createHorizontalScrollbar:e,createVerticalScrollbar:e,...m,children:Gt})}V(()=>{ne.current=!1,G?.(),Oe&&xt.current?.focus()},[r]);const[Kt,Xt]=N(!1),Yt=go(()=>{Kt||Xt(!0)},[Kt]);return V(()=>{if(jt)return"function"==typeof C&&C(),"touch"===Jo.detectIt().primaryInput&&Yt(),()=>{}},[C,jt,Kt]),Gt}));BT.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const $T="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=",jT=z(j((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:l,isDragging:a,view:s,onHide:c,onShow:d,onKeyDownCapture:u,onFocus:h,onBlur:p,loadingPanel:f,...m}=e,[g,y]=N(!1),[b,w]=N(null),[v,x]=N(null),[S,C]=N(null);V(()=>{x(null),i.getDetails().then(e=>{y(!1),x(e.asUrl()),e.asSVGText?.()&&C(e.asSVGText())}).catch(e=>{console.warn(e),y(!0),x($T),C(null)})},[i]);const k=er(t,()=>({isPictureEditor:()=>!0}),[]),E=$(()=>{if(v||S)return O("img",{style:{flex:"1",width:"100%",height:"100%",border:g?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:g?"var(--sxl-app-color-background, white)":void 0,boxShadow:g?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:g?"contain":void 0,opacity:b?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:v,onLoad:()=>{w(!0)},onError:({currentTarget:e})=>{console.log("error"),e.onerror=null,x($T),y(!0)},alt:l??`${i.getType()}`})},[b,i,v,S,a]);if(!i.isClosed())return L("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:a?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...r,width:"100%",height:"100%"},tabIndex:0,...m,onKeyDownCapture:e=>{u?.(e)},ref:k,children:[b||g?void 0:f,E]})}));jT.displayName="PictureEditor";const WT=z(j((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:l,onHide:a,onShow:s,...c}=e;V(()=>{},[r]);const d=er(t,()=>({isChartEditor:()=>!0}),[]),[u,{height:h,width:p}]=M_();if(!r.isClosed())return O("div",{...c,ref:S_([d,u]),children:O("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:i.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:o?"blur(1px)":void 0,boxShadow:l?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:O("div",{style:{textAlign:"center"},children:r.getDescription()})})})})),UT=e=>O("input",{...e}),qT=z(j((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:l,onCancel:a,createInput:s=UT,notifier:c,styleHover:d={},dragging:u,maxLength:h,disabled:p=!1,readOnly:f=!1,...m}=e,[g,y]=N(!1),[b,w]=N(!1),[v,x]=N(r);V(()=>{x(r)},[r]);const S=F(null),[C,k]=N(null),E=H(function(e){const t=e.message;C!==t&&(c?.showMessage?.(t,{type:rr}),k(t))},[c,C]),_=H(e=>{let t=!1;try{t=i?.(e)??!0}catch(e){E(e)}return t?(S.current=null,w(!1),x(e),t):(setTimeout(()=>{S.current?.focus()},0),t)},[i]),T=go(()=>{x(r),S.current=null,w(!1),a?.()},[a,r]),M=$(()=>{if(!b)return null;const e={className:H_("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:h,type:"text",value:v,onFocus:e=>{S.current||(S.current=e.target,setTimeout(()=>{e.target?.select()},0))},onBlur:e=>{S.current&&_(v)},onChange:e=>{b&&x(e.target.value)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>"Escape"===e.code?(e.preventDefault(),void T()):"Enter"===e.code?(e.preventDefault(),void _(e.target.value)):void("Tab"!==e.code?e.stopPropagation():_(e.target.value))};return O(I,{children:s(e)})},[b,v,_,T,s,p]),[D,R]=N();U(()=>{let e=Object.assign({},n);(u||g)&&(e=Object.assign(e,d)),R(e)},[u,g,d,n]),V(()=>{M&&l?.(v)},[M,l,v]);const A=er(t,()=>({startEdit(){p||f||w(!0)},cancel(){T()}}),[]);return L("div",{...m,ref:A,style:{flexDirection:"column",display:"flex",...D},className:H_(o),children:[L("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{p||f||w(!0)},onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[O("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:v}),M]}),O("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...d},children:v})]})})),ZT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function GT(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function KT(e){return"nodeType"in e}function XT(e){var t,n;return e?GT(e)?e:KT(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function YT(e){const{Document:t}=XT(e);return e instanceof t}function JT(e){return!GT(e)&&e instanceof XT(e).HTMLElement}function QT(e){return e instanceof XT(e).SVGElement}function eM(e){return e?GT(e)?e.document:KT(e)?YT(e)?e:JT(e)||QT(e)?e.ownerDocument:document:document:document}const tM=ZT?U:V;function nM(e){const t=F(e);return tM(()=>{t.current=e}),H(function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)},[])}function oM(e,t){void 0===t&&(t=[e]);const n=F(e);return tM(()=>{n.current!==e&&(n.current=e)},t),n}function rM(e,t){const n=F();return $(()=>{const t=e(n.current);return n.current=t,t},[...t])}function iM(e){const t=nM(e),n=F(null),o=H(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,o]}function lM(e){const t=F();return V(()=>{t.current=e},[e]),t.current}let aM={};function sM(e,t){return $(()=>{if(t)return t;const n=null==aM[e]?0:aM[e]+1;return aM[e]=n,e+"-"+n},[e,t])}function cM(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t},{...t})}}const dM=cM(1),uM=cM(-1);function hM(e){if(!e)return!1;const{KeyboardEvent:t}=XT(e.target);return t&&e instanceof t}function pM(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=XT(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const fM=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[fM.Translate.toString(e),fM.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),mM="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function gM(e){return e.matches(mM)?e:e.querySelector(mM)}const yM={display:"none"};function bM(e){let{id:t,value:n}=e;return P.createElement("div",{id:t,style:yM},n)}function wM(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return P.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":o,"aria-atomic":!0},n)}const vM=G(null),xM={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},SM={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function CM(e){let{announcements:t=SM,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=xM}=e;const{announce:i,announcement:l}=function(){const[e,t]=N("");return{announce:H(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=sM("DndLiveRegion"),[s,c]=N(!1);if(V(()=>{c(!0)},[]),function(e){const t=Y(vM);V(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}($(()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&i(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;i(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;i(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;i(t.onDragCancel({active:n,over:o}))}}),[i,t])),!s)return null;const d=P.createElement(P.Fragment,null,P.createElement(bM,{id:o,value:r.draggable}),P.createElement(wM,{id:a,announcement:l}));return n?dt(d,n):d}var kM;function EM(){}function _M(e,t){return $(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(kM||(kM={}));const TM=Object.freeze({x:0,y:0});function MM(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function DM(e,t){const n=pM(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function RM(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function OM(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function LM(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function IM(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}function AM(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const PM=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=AM(t,t.left,t.top),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=MM(AM(o),r);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(RM)};function zM(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=r-o,a=i-n;if(o<r&&n<i){const n=t.width*t.height,o=e.width*e.height,r=l*a;return Number((r/(n+o-r)).toFixed(4))}return 0}const FM=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,i=n.get(o);if(i){const n=zM(i,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(OM)};function NM(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:TM}const VM=function(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}(1);function HM(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const BM={ignoreTransform:!1};function $M(e,t){void 0===t&&(t=BM);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=XT(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=HM(t);if(!o)return e;const{scaleX:r,scaleY:i,x:l,y:a}=o,s=e.left-l-(1-r)*parseFloat(n),c=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:c,right:s+d,bottom:c+u,left:s}}(n,t,o))}const{top:o,left:r,width:i,height:l,bottom:a,right:s}=n;return{top:o,left:r,width:i,height:l,bottom:a,right:s}}function jM(e){return $M(e,{ignoreTransform:!0})}function WM(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(YT(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!JT(r)||QT(r))return n;if(n.includes(r))return n;const i=XT(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=XT(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const o=t[e];return"string"==typeof o&&n.test(o)})}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=XT(e).getComputedStyle(e)),"fixed"===t.position}(r,i)?n:o(r.parentNode)}(e):n}function UM(e){const[t]=WM(e,1);return null!=t?t:null}function qM(e){return ZT&&e?GT(e)?e:KT(e)?YT(e)||e===eM(e).scrollingElement?window:JT(e)?e:null:null:null}function ZM(e){return GT(e)?e.scrollX:e.scrollLeft}function GM(e){return GT(e)?e.scrollY:e.scrollTop}function KM(e){return{x:ZM(e),y:GM(e)}}var XM;function YM(e){return!(!ZT||!e)&&e===document.scrollingElement}function JM(e){const t={x:0,y:0},n=YM(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(XM||(XM={}));const QM={x:.2,y:.2};function eD(e,t,n,o,r){let{top:i,left:l,right:a,bottom:s}=n;void 0===o&&(o=10),void 0===r&&(r=QM);const{isTop:c,isBottom:d,isLeft:u,isRight:h}=JM(e),p={x:0,y:0},f={x:0,y:0},m=t.height*r.y,g=t.width*r.x;return!c&&i<=t.top+m?(p.y=XM.Backward,f.y=o*Math.abs((t.top+m-i)/m)):!d&&s>=t.bottom-m&&(p.y=XM.Forward,f.y=o*Math.abs((t.bottom-m-s)/m)),!h&&a>=t.right-g?(p.x=XM.Forward,f.x=o*Math.abs((t.right-g-a)/g)):!u&&l<=t.left+g&&(p.x=XM.Backward,f.x=o*Math.abs((t.left+g-l)/g)),{direction:p,speed:f}}function tD(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function nD(e){return e.reduce((e,t)=>dM(e,KM(t)),TM)}function oD(e,t){if(void 0===t&&(t=$M),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);UM(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const rD=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+ZM(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+GM(t),0)}]];class iD{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=WM(t),o=nD(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of rD)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=r(n),l=o[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class lD{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function aD(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var sD,cD;function dD(e){e.preventDefault()}function uD(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(sD||(sD={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(cD||(cD={}));const hD={start:[cD.Space,cD.Enter],cancel:[cD.Esc],end:[cD.Space,cD.Enter,cD.Tab]},pD=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case cD.Right:return{...n,x:n.x+25};case cD.Left:return{...n,x:n.x-25};case cD.Down:return{...n,y:n.y+25};case cD.Up:return{...n,y:n.y-25}}};class fD{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new lD(eM(t)),this.windowListeners=new lD(XT(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(sD.Resize,this.handleCancel),this.windowListeners.add(sD.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(sD.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&oD(n),t(TM)}handleKeyDown(e){if(hM(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=hD,coordinateGetter:i=pD,scrollBehavior:l="smooth"}=o,{code:a}=e;if(r.end.includes(a))return void this.handleEnd(e);if(r.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:TM;this.referenceCoordinates||(this.referenceCoordinates=c);const d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=uM(d,c),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:h}=JM(n),p=tD(n),f={x:Math.min(r===cD.Right?p.right-p.width/2:p.right,Math.max(r===cD.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(r===cD.Down?p.bottom-p.height/2:p.bottom,Math.max(r===cD.Down?p.top:p.top+p.height/2,d.y))},m=r===cD.Right&&!a||r===cD.Left&&!s,g=r===cD.Down&&!c||r===cD.Up&&!i;if(m&&f.x!==d.x){const e=n.scrollLeft+t.x,i=r===cD.Right&&e<=u.x||r===cD.Left&&e>=h.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});o.x=i?n.scrollLeft-e:r===cD.Right?n.scrollLeft-u.x:n.scrollLeft-h.x,o.x&&n.scrollBy({left:-o.x,behavior:l});break}if(g&&f.y!==d.y){const e=n.scrollTop+t.y,i=r===cD.Down&&e<=u.y||r===cD.Up&&e>=h.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});o.y=i?n.scrollTop-e:r===cD.Down?n.scrollTop-u.y:n.scrollTop-h.y,o.y&&n.scrollBy({top:-o.y,behavior:l});break}}this.handleMove(e,dM(uM(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function mD(e){return Boolean(e&&"distance"in e)}function gD(e){return Boolean(e&&"delay"in e)}fD.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=hD,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==r||r({event:e.nativeEvent}),0))}return!1}}];class yD{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=XT(e);return e instanceof t?e:eM(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=eM(i),this.documentListeners=new lD(this.document),this.listeners=new lD(n),this.windowListeners=new lD(XT(i)),this.initialCoordinates=null!=(o=pM(r))?o:TM,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(sD.Resize,this.handleCancel),this.windowListeners.add(sD.DragStart,dD),this.windowListeners.add(sD.VisibilityChange,this.handleCancel),this.windowListeners.add(sD.ContextMenu,dD),this.documentListeners.add(sD.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gD(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(mD(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:o}=this.props;o(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(sD.Click,uD,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(sD.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:i,options:{activationConstraint:l}}=r;if(!o)return;const a=null!=(t=pM(e))?t:TM,s=uM(o,a);if(!n&&l){if(mD(l)){if(null!=l.tolerance&&aD(s,l.tolerance))return this.handleCancel();if(aD(s,l.distance))return this.handleStart()}return gD(l)&&aD(s,l.tolerance)?this.handleCancel():void this.handlePending(l,s)}e.cancelable&&e.preventDefault(),i(a)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===cD.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const bD={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class wD extends yD{constructor(e){const{event:t}=e,n=eM(t.target);super(e,bD,n)}}wD.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button||(null==o||o({event:n}),0))}}];const vD={move:{name:"mousemove"},end:{name:"mouseup"}};var xD;!function(e){e[e.RightClick=2]="RightClick"}(xD||(xD={}));class SD extends yD{constructor(e){super(e,vD,eM(e.event.target))}}SD.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==xD.RightClick&&(null==o||o({event:n}),!0)}}];const CD={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class kD extends yD{constructor(e){super(e,CD)}static setup(){return window.addEventListener(CD.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(CD.move.name,e)};function e(){}}}var ED,_D;kD.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1||(null==o||o({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ED||(ED={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(_D||(_D={}));const TD={x:{[XM.Backward]:!1,[XM.Forward]:!1},y:{[XM.Backward]:!1,[XM.Forward]:!1}};var MD,DD;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(MD||(MD={})),(DD||(DD={})).Optimized="optimized";const RD=new Map;function OD(e,t){return rM(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function LD(e){let{callback:t,disabled:n}=e;const o=nM(t),r=$(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)},[n]);return V(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function ID(e){return new iD($M(e),e)}function AD(e,t,n){void 0===t&&(t=ID);const[o,r]=N(null);function i(){r(o=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=o?o:n)?r:null;const i=t(e);return JSON.stringify(o)===JSON.stringify(i)?o:i})}const l=function(e){let{callback:t,disabled:n}=e;const o=nM(t),r=$(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)},[o,n]);return V(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){i();break}}}}),a=LD({callback:i});return tM(()=>{i(),e?(null==a||a.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==l||l.disconnect())},[e]),o}const PD=[];function zD(e,t){void 0===t&&(t=[]);const n=F(null);return V(()=>{n.current=null},t),V(()=>{const t=e!==TM;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?uM(e,n.current):TM}function FD(e){return $(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const ND=[];function VD(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return JT(t)?t:e}const HD=[{sensor:wD,options:{}},{sensor:fD,options:{}}],BD={current:{}},$D={draggable:{measure:jM},droppable:{measure:jM,strategy:MD.WhileDragging,frequency:DD.Optimized},dragOverlay:{measure:$M}};class jD extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const WD={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new jD,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:EM},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$D,measureDroppableContainers:EM,windowRect:null,measuringScheduled:!1},UD={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:EM,draggableNodes:new Map,over:null,measureDroppableContainers:EM},qD=G(UD),ZD=G(WD);function GD(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new jD}}}function KD(e,t){switch(t.type){case kM.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case kM.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case kM.DragEnd:case kM.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case kM.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new jD(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case kM.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const l=new jD(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case kM.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new jD(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function XD(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=Y(qD),i=lM(o),l=lM(null==n?void 0:n.id);return V(()=>{if(!t&&!o&&i&&null!=l){if(!hM(i))return;if(document.activeElement===i.target)return;const e=r.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=gM(e);if(t){t.focus();break}}})}},[o,t,r,l,i]),null}function YD(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...o}),n):n}const JD=G({...TM,scaleX:1,scaleY:1});var QD;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(QD||(QD={}));const eR=z(function(e){var t,n,o,r;let{id:i,accessibility:l,autoScroll:a=!0,children:s,sensors:c=HD,collisionDetection:d=FM,measuring:u,modifiers:h,...p}=e;const f=B(KD,void 0,GD),[m,g]=f,[y,b]=function(){const[e]=N(()=>new Set),t=H(t=>(e.add(t),()=>e.delete(t)),[e]);return[H(t=>{let{type:n,event:o}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)})},[e]),t]}(),[w,v]=N(QD.Uninitialized),x=w===QD.Initialized,{draggable:{active:S,nodes:C,translate:k},droppable:{containers:E}}=m,_=null!=S?C.get(S):null,T=F({initial:null,translated:null}),M=$(()=>{var e;return null!=S?{id:S,data:null!=(e=null==_?void 0:_.data)?e:BD,rect:T}:null},[S,_]),D=F(null),[R,O]=N(null),[L,I]=N(null),A=oM(p,Object.values(p)),z=sM("DndDescribedBy",i),j=$(()=>E.getEnabled(),[E]),W=$(()=>({draggable:{...$D.draggable,...null==U?void 0:U.draggable},droppable:{...$D.droppable,...null==U?void 0:U.droppable},dragOverlay:{...$D.dragOverlay,...null==U?void 0:U.dragOverlay}}),[null==(U=u)?void 0:U.draggable,null==U?void 0:U.droppable,null==U?void 0:U.dragOverlay]);var U;const{droppableRects:q,measureDroppableContainers:Z,measuringScheduled:G}=function(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,l]=N(null),{frequency:a,measure:s,strategy:c}=r,d=F(e),u=function(){switch(c){case MD.Always:return!1;case MD.BeforeDragging:return n;default:return!n}}(),h=oM(u),p=H(function(e){void 0===e&&(e=[]),h.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),f=F(null),m=rM(t=>{if(u&&!n)return RD;if(!t||t===RD||d.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new iD(s(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t},[e,i,n,u,s]);return V(()=>{d.current=e},[e]),V(()=>{u||p()},[n,u]),V(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),V(()=>{u||"number"!=typeof a||null!==f.current||(f.current=setTimeout(()=>{p(),f.current=null},a))},[a,u,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:null!=i}}(j,{dragging:x,dependencies:[k.x,k.y],config:W.droppable}),K=function(e,t){const n=null!=t?e.get(t):void 0,o=n?n.node.current:null;return rM(e=>{var n;return null==t?null:null!=(n=null!=o?o:e)?n:null},[o,t])}(C,S),X=$(()=>L?pM(L):null,[L]),Y=function(){const e=!1===(null==R?void 0:R.autoScrollEnabled),t="object"==typeof a?!1===a.enabled:!1===a,n=x&&!e&&!t;return"object"==typeof a?{...a,enabled:n}:{enabled:n}}(),J=function(e,t){return OD(e,t)}(K,W.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=F(!1),{x:l,y:a}="boolean"==typeof r?{x:r,y:r}:r;tM(()=>{if(!l&&!a||!t)return void(i.current=!1);if(i.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=NM(n(e),o);if(l||(r.x=0),a||(r.y=0),i.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=UM(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,l,a,o,n])}({activeNode:null!=S?C.get(S):null,config:Y.layoutShiftCompensation,initialRect:J,measure:W.draggable.measure});const Q=AD(K,W.draggable.measure,J),ee=AD(K?K.parentElement:null),te=F({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:q,draggableNodes:C,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ne=E.getNodeFor(null==(t=te.current.over)?void 0:t.id),oe=function(e){let{measure:t}=e;const[n,o]=N(null),r=LD({callback:H(e=>{for(const{target:n}of e)if(JT(n)){o(e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o});break}},[t])}),i=H(e=>{const n=VD(e);null==r||r.disconnect(),n&&(null==r||r.observe(n)),o(n?t(n):null)},[t,r]),[l,a]=iM(i);return $(()=>({nodeRef:l,rect:n,setRef:a}),[n,l,a])}({measure:W.dragOverlay.measure}),re=null!=(n=oe.nodeRef.current)?n:K,ie=x?null!=(o=oe.rect)?o:Q:null,le=Boolean(oe.nodeRef.current&&oe.rect),ae=NM(se=le?null:Q,OD(se));var se;const ce=FD(re?XT(re):null),de=function(e){const t=F(e),n=rM(n=>e?n&&n!==PD&&e&&t.current&&e.parentNode===t.current.parentNode?n:WM(e):PD,[e]);return V(()=>{t.current=e},[e]),n}(x?null!=ne?ne:K:null),ue=function(e,t){void 0===t&&(t=$M);const[n]=e,o=FD(n?XT(n):null),[r,i]=N(ND);function l(){i(()=>e.length?e.map(e=>YM(e)?o:new iD(t(e),e)):ND)}const a=LD({callback:l});return tM(()=>{null==a||a.disconnect(),l(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),r}(de),he=YD(h,{transform:{x:k.x-ae.x,y:k.y-ae.y,scaleX:1,scaleY:1},activatorEvent:L,active:M,activeNodeRect:Q,containerNodeRect:ee,draggingNodeRect:ie,over:te.current.over,overlayNodeRect:oe.rect,scrollableAncestors:de,scrollableAncestorRects:ue,windowRect:ce}),pe=X?dM(X,k):null,fe=function(e){const[t,n]=N(null),o=F(e),r=H(e=>{const t=qM(e.target);t&&n(e=>e?(e.set(t,KM(t)),new Map(e)):null)},[]);return V(()=>{const t=o.current;if(e!==t){i(t);const l=e.map(e=>{const t=qM(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,KM(t)]):null}).filter(e=>null!=e);n(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=qM(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),$(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>dM(e,t),TM):nD(e):TM,[e,t])}(de),me=zD(fe),ge=zD(fe,[Q]),ye=dM(he,me),be=ie?VM(ie,he):null,we=M&&be?d({active:M,collisionRect:be,droppableRects:q,droppableContainers:j,pointerCoordinates:pe}):null,ve=IM(we,"id"),[xe,Se]=N(null),Ce=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(le?he:dM(he,ge),null!=(r=null==xe?void 0:xe.rect)?r:null,Q),ke=F(null),Ee=H((e,t)=>{let{sensor:n,options:o}=t;if(null==D.current)return;const r=C.get(D.current);if(!r)return;const i=e.nativeEvent,l=new n({active:D.current,activeNode:r,event:i,options:o,context:te,onAbort(e){if(!C.get(e))return;const{onDragAbort:t}=A.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,o){if(!C.get(e))return;const{onDragPending:r}=A.current,i={id:e,constraint:t,initialCoordinates:n,offset:o};null==r||r(i),y({type:"onDragPending",event:i})},onStart(e){const t=D.current;if(null==t)return;const n=C.get(t);if(!n)return;const{onDragStart:o}=A.current,r={activatorEvent:i,active:{id:t,data:n.data,rect:T}};ct(()=>{null==o||o(r),v(QD.Initializing),g({type:kM.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:r}),O(ke.current),I(i)})},onMove(e){g({type:kM.DragMove,coordinates:e})},onEnd:a(kM.DragEnd),onCancel:a(kM.DragCancel)});function a(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=te.current;let l=null;if(t&&r){const{cancelDrop:a}=A.current;l={activatorEvent:i,active:t,collisions:n,delta:r,over:o},e===kM.DragEnd&&"function"==typeof a&&await Promise.resolve(a(l))&&(e=kM.DragCancel)}D.current=null,ct(()=>{g({type:e}),v(QD.Uninitialized),Se(null),O(null),I(null),ke.current=null;const t=e===kM.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=A.current[t];null==e||e(l),y({type:t,event:l})}})}}ke.current=l},[C]),_e=H((e,t)=>(n,o)=>{const r=n.nativeEvent,i=C.get(o);if(null!==D.current||!i||r.dndKit||r.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(r.dndKit={capturedBy:t.sensor},D.current=o,Ee(n,t))},[C,Ee]),Te=function(e,t){return $(()=>e.reduce((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(c,_e);!function(e){V(()=>{if(!ZT)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(c),tM(()=>{Q&&w===QD.Initializing&&v(QD.Initialized)},[Q,w]),V(()=>{const{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:o,over:r}=te.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:o,delta:{x:ye.x,y:ye.y},over:r};ct(()=>{null==e||e(i),y({type:"onDragMove",event:i})})},[ye.x,ye.y]),V(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=te.current;if(!e||null==D.current||!t||!r)return;const{onDragOver:i}=A.current,l=o.get(ve),a=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:a};ct(()=>{Se(a),null==i||i(s),y({type:"onDragOver",event:s})})},[ve]),tM(()=>{te.current={activatorEvent:L,active:M,activeNode:K,collisionRect:be,collisions:we,droppableRects:q,draggableNodes:C,draggingNode:re,draggingNodeRect:ie,droppableContainers:E,over:xe,scrollableAncestors:de,scrollAdjustedTranslate:ye},T.current={initial:ie,translated:be}},[M,K,we,be,C,re,ie,q,E,xe,de,ye]),function(e){let{acceleration:t,activator:n=ED.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:l=5,order:a=_D.TreeOrder,pointerCoordinates:s,scrollableAncestors:c,scrollableAncestorRects:d,delta:u,threshold:h}=e;const p=function(e){let{delta:t,disabled:n}=e;const o=lM(t);return rM(e=>{if(n||!o||!e)return TD;const r=Math.sign(t.x-o.x),i=Math.sign(t.y-o.y);return{x:{[XM.Backward]:e.x[XM.Backward]||-1===r,[XM.Forward]:e.x[XM.Forward]||1===r},y:{[XM.Backward]:e.y[XM.Backward]||-1===i,[XM.Forward]:e.y[XM.Forward]||1===i}}},[n,t,o])}({delta:u,disabled:!i}),[f,m]=function(){const e=F(null);return[H((t,n)=>{e.current=setInterval(t,n)},[]),H(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),g=F({x:0,y:0}),y=F({x:0,y:0}),b=$(()=>{switch(n){case ED.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ED.DraggableRect:return r}},[n,r,s]),w=F(null),v=H(()=>{const e=w.current;if(!e)return;const t=g.current.x*y.current.x,n=g.current.y*y.current.y;e.scrollBy(t,n)},[]),x=$(()=>a===_D.TreeOrder?[...c].reverse():c,[a,c]);V(()=>{if(i&&c.length&&b){for(const e of x){if(!1===(null==o?void 0:o(e)))continue;const n=c.indexOf(e),r=d[n];if(!r)continue;const{direction:i,speed:a}=eD(e,r,b,t,h);for(const e of["x","y"])p[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),w.current=e,f(v,l),g.current=a,void(y.current=i)}g.current={x:0,y:0},y.current={x:0,y:0},m()}else m()},[t,v,o,m,i,l,JSON.stringify(b),JSON.stringify(p),f,c,x,d,JSON.stringify(h)])}({...Y,delta:k,draggingRect:be,pointerCoordinates:pe,scrollableAncestors:de,scrollableAncestorRects:ue});const Me=$(()=>({active:M,activeNode:K,activeNodeRect:Q,activatorEvent:L,collisions:we,containerNodeRect:ee,dragOverlay:oe,draggableNodes:C,droppableContainers:E,droppableRects:q,over:xe,measureDroppableContainers:Z,scrollableAncestors:de,scrollableAncestorRects:ue,measuringConfiguration:W,measuringScheduled:G,windowRect:ce}),[M,K,Q,L,we,ee,oe,C,E,q,xe,Z,de,ue,W,G,ce]),De=$(()=>({activatorEvent:L,activators:Te,active:M,activeNodeRect:Q,ariaDescribedById:{draggable:z},dispatch:g,draggableNodes:C,over:xe,measureDroppableContainers:Z}),[L,Te,M,Q,g,z,C,xe,Z]);return P.createElement(vM.Provider,{value:b},P.createElement(qD.Provider,{value:De},P.createElement(ZD.Provider,{value:Me},P.createElement(JD.Provider,{value:Ce},s)),P.createElement(XD,{disabled:!1===(null==l?void 0:l.restoreFocus)})),P.createElement(CM,{...l,hiddenTextDescribedById:z}))}),tR=G(null),nR="button";function oR(){return Y(ZD)}const rR={timeout:25};function iR(e){let{animation:t,children:n}=e;const[o,r]=N(null),[i,l]=N(null),a=lM(n);return n||o||!a||r(a),tM(()=>{if(!i)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,i)).then(()=>{r(null)}):r(null)},[t,o,i]),P.createElement(P.Fragment,null,n,o?J(o,{ref:l}):null)}const lR={x:0,y:0,scaleX:1,scaleY:1};function aR(e){let{children:t}=e;return P.createElement(qD.Provider,{value:UD},P.createElement(JD.Provider,{value:lR},t))}const sR={position:"fixed",touchAction:"none"},cR=e=>hM(e)?"transform 250ms ease":void 0,dR=j((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:l,rect:a,style:s,transform:c,transition:d=cR}=e;if(!a)return null;const u=r?c:{...c,scaleX:1,scaleY:1},h={...sR,width:a.width,height:a.height,top:a.top,left:a.left,transform:fM.Transform.toString(u),transformOrigin:r&&o?DM(o,a):void 0,transition:"function"==typeof d?d(o):d,...s};return P.createElement(n,{className:l,style:h,ref:t},i)}),uR={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:fM.Transform.toString(t)},{transform:fM.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:l}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(r[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&o.node.style.setProperty(e,t);return null!=l&&l.active&&n.node.classList.add(l.active),null!=l&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[e,t]of Object.entries(r))n.node.style.setProperty(e,t);null!=l&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};let hR=0;const pR=P.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:l,wrapperElement:a="div",className:s,zIndex:c=999}=e;const{activatorEvent:d,active:u,activeNodeRect:h,containerNodeRect:p,draggableNodes:f,droppableContainers:m,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:v,windowRect:x}=oR(),S=Y(JD),C=function(e){return $(()=>{if(null!=e)return hR++,hR},[e])}(null==u?void 0:u.id),k=YD(l,{activatorEvent:d,active:u,activeNodeRect:h,containerNodeRect:p,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:w,scrollableAncestorRects:v,transform:S,windowRect:x}),E=OD(h),_=function(e){let{config:t,draggableNodes:n,droppableContainers:o,measuringConfiguration:r}=e;return nM((e,i)=>{if(null===t)return;const l=n.get(e);if(!l)return;const a=l.node.current;if(!a)return;const s=VD(i);if(!s)return;const{transform:c}=XT(i).getComputedStyle(i),d=HM(c);if(!d)return;const u="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:o,keyframes:r}={...uR,...e};return e=>{let{active:i,dragOverlay:l,transform:a,...s}=e;if(!t)return;const c=l.rect.left-i.rect.left,d=l.rect.top-i.rect.top,u={scaleX:1!==a.scaleX?i.rect.width*a.scaleX/l.rect.width:1,scaleY:1!==a.scaleY?i.rect.height*a.scaleY/l.rect.height:1},h={x:a.x-c,y:a.y-d,...u},p=r({...s,active:i,dragOverlay:l,transform:{initial:a,final:h}}),[f]=p,m=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(m))return;const g=null==o?void 0:o({active:i,dragOverlay:l,...s}),y=l.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{y.onfinish=()=>{null==g||g(),e()}})}}(t);return oD(a,r.draggable.measure),u({active:{id:e,data:l.data,node:a,rect:r.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:i,rect:r.dragOverlay.measure(s)},droppableContainers:o,measuringConfiguration:r,transform:d})})}({config:o,draggableNodes:f,droppableContainers:m,measuringConfiguration:b}),T=E?g.setRef:void 0;return P.createElement(aR,null,P.createElement(iR,{animation:_},u&&C?P.createElement(dR,{key:C,id:u.id,ref:T,as:a,activatorEvent:d,adjustScale:t,className:s,transition:i,rect:E,style:{zIndex:c,...r},transform:k},n):null))});function fR(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function mR(e,t){return e.reduce((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e},Array(e.length))}function gR(e){return null!==e&&e>=0}const yR={scaleX:1,scaleY:1},bR=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:l}=e;const a=null!=(t=n[r])?t:o;if(!a)return null;const s=function(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];return o&&(r||i)?n<t?r?o.left-(r.left+r.width):i.left-(o.left+o.width):i?i.left-(o.left+o.width):o.left-(r.left+r.width):0}(n,l,r);if(l===r){const e=n[i];return e?{x:r<i?e.left+e.width-(a.left+a.width):e.left-a.left,y:0,...yR}:null}return l>r&&l<=i?{x:-a.width-s,y:0,...yR}:l<r&&l>=i?{x:a.width+s,y:0,...yR}:{x:0,y:0,...yR}},wR=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=fR(t,o,n),l=t[r],a=i[r];return a&&l?{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}:null},vR="Sortable",xR=P.createContext({activeIndex:-1,containerId:vR,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wR,disabled:{draggable:!1,droppable:!1}});function SR(e){let{children:t,id:n,items:o,strategy:r=wR,disabled:i=!1}=e;const{active:l,dragOverlay:a,droppableRects:s,over:c,measureDroppableContainers:d}=oR(),u=sM(vR,n),h=Boolean(null!==a.rect),p=$(()=>o.map(e=>"object"==typeof e&&"id"in e?e.id:e),[o]),f=null!=l,m=l?p.indexOf(l.id):-1,g=c?p.indexOf(c.id):-1,y=F(p),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(p,y.current),w=-1!==g&&-1===m||b,v=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(i);tM(()=>{b&&f&&d(p)},[b,p,f,d]),V(()=>{y.current=p},[p]);const x=$(()=>({activeIndex:m,containerId:u,disabled:v,disableTransforms:w,items:p,overIndex:g,useDragOverlay:h,sortedRects:mR(p,s),strategy:r}),[m,u,v.draggable,v.droppable,w,p,g,s,h,r]);return P.createElement(xR.Provider,{value:x},t)}const CR=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return fR(n,o,r).indexOf(t)},kR=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:a,previousContainerId:s,transition:c}=e;return!(!c||!o||a!==i&&r===l||!n&&(l===r||t!==s))},ER={duration:200,easing:"ease"},_R="transform",TR=fM.Transition.toString({property:_R,duration:0,easing:"linear"}),MR={roleDescription:"sortable"};function DR(e){let{animateLayoutChanges:t=kR,attributes:n,disabled:o,data:r,getNewIndex:i=CR,id:l,strategy:a,resizeObserverConfig:s,transition:c=ER}=e;const{items:d,containerId:u,activeIndex:h,disabled:p,disableTransforms:f,sortedRects:m,overIndex:g,useDragOverlay:y,strategy:b}=Y(xR),w=function(e,t){var n,o;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(o,p),v=d.indexOf(l),x=$(()=>({sortable:{containerId:u,index:v,items:d},...r}),[u,r,v,d]),S=$(()=>d.slice(d.indexOf(l)),[d,l]),{rect:C,node:k,isOver:E,setNodeRef:_}=function(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=sM("Droppable"),{active:l,dispatch:a,over:s,measureDroppableContainers:c}=Y(qD),d=F({disabled:n}),u=F(!1),h=F(null),p=F(null),{disabled:f,updateMeasurementsFor:m,timeout:g}={...rR,...r},y=oM(null!=m?m:o),b=LD({callback:H(()=>{u.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),p.current=null},g)):u.current=!0},[g]),disabled:f||!l}),w=H((e,t)=>{b&&(t&&(b.unobserve(t),u.current=!1),e&&b.observe(e))},[b]),[v,x]=iM(w),S=oM(t);return V(()=>{b&&v.current&&(b.disconnect(),u.current=!1,b.observe(v.current))},[v,b]),V(()=>(a({type:kM.RegisterDroppable,element:{id:o,key:i,disabled:n,node:v,rect:h,data:S}}),()=>a({type:kM.UnregisterDroppable,key:i,id:o})),[o]),V(()=>{n!==d.current.disabled&&(a({type:kM.SetDroppableDisabled,id:o,key:i,disabled:n}),d.current.disabled=n)},[o,i,n,a]),{active:l,rect:h,isOver:(null==s?void 0:s.id)===o,node:v,over:s,setNodeRef:x}}({id:l,data:x,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...s}}),{active:T,activatorEvent:M,activeNodeRect:D,attributes:R,setNodeRef:O,listeners:L,isDragging:I,over:A,setActivatorNodeRef:P,transform:z}=function(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=sM("Draggable"),{activators:l,activatorEvent:a,active:s,activeNodeRect:c,ariaDescribedById:d,draggableNodes:u,over:h}=Y(qD),{role:p=nR,roleDescription:f="draggable",tabIndex:m=0}=null!=r?r:{},g=(null==s?void 0:s.id)===t,y=Y(g?JD:tR),[b,w]=iM(),[v,x]=iM(),S=function(e,t){return $(()=>e.reduce((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e},{}),[e,t])}(l,t),C=oM(n);return tM(()=>(u.set(t,{id:t,key:i,node:b,activatorNode:v,data:C}),()=>{const e=u.get(t);e&&e.key===i&&u.delete(t)}),[u,t]),{active:s,activatorEvent:a,activeNodeRect:c,attributes:$(()=>({role:p,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!g||p!==nR)||void 0,"aria-roledescription":f,"aria-describedby":d.draggable}),[o,p,m,g,f,d.draggable]),isDragging:g,listeners:o?void 0:S,node:b,over:h,setNodeRef:w,setActivatorNodeRef:x,transform:y}}({id:l,data:x,attributes:{...MR,...n},disabled:w.draggable}),B=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(()=>e=>{t.forEach(t=>t(e))},t)}(_,O),j=Boolean(T),W=j&&!f&&gR(h)&&gR(g),U=!y&&I,q=U&&W?z:null,Z=W?null!=q?q:(null!=a?a:b)({rects:m,activeNodeRect:D,activeIndex:h,overIndex:g,index:v}):null,G=gR(h)&&gR(g)?i({id:l,items:d,activeIndex:h,overIndex:g}):v,K=null==T?void 0:T.id,X=F({activeId:K,items:d,newIndex:G,containerId:u}),J=d!==X.current.items,Q=t({active:T,containerId:u,isDragging:I,isSorting:j,id:l,index:v,items:d,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:c,wasDragging:null!=X.current.activeId}),ee=function(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,l]=N(null),a=F(n);return tM(()=>{if(!t&&n!==a.current&&o.current){const e=r.current;if(e){const t=$M(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==a.current&&(a.current=n)},[t,n,o,r]),V(()=>{i&&l(null)},[i]),i}({disabled:!Q,index:v,node:k,rect:C});return V(()=>{j&&X.current.newIndex!==G&&(X.current.newIndex=G),u!==X.current.containerId&&(X.current.containerId=u),d!==X.current.items&&(X.current.items=d)},[j,G,u,d]),V(()=>{if(K===X.current.activeId)return;if(null!=K&&null==X.current.activeId)return void(X.current.activeId=K);const e=setTimeout(()=>{X.current.activeId=K},50);return()=>clearTimeout(e)},[K]),{active:T,activeIndex:h,attributes:R,data:x,rect:C,index:v,newIndex:G,items:d,isOver:E,isSorting:j,isDragging:I,listeners:L,node:k,overIndex:g,over:A,setNodeRef:B,setActivatorNodeRef:P,setDroppableNodeRef:_,setDraggableNodeRef:O,transform:null!=ee?ee:Z,transition:ee||J&&X.current.newIndex===v?TR:U&&!hM(M)||!c?void 0:j||Q?fM.Transition.toString({...c,property:_R}):void 0}}function RR(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const OR=[cD.Down,cD.Right,cD.Up,cD.Left],LR=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:a}}=t;if(OR.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];i.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const i=r.get(n.id);if(i)switch(e.code){case cD.Down:o.top<i.top&&t.push(n);break;case cD.Up:o.top>i.top&&t.push(n);break;case cD.Left:o.left>i.left&&t.push(n);break;case cD.Right:o.left<i.left&&t.push(n)}});const s=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=LM(t),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=LM(o),l=r.reduce((e,t,o)=>e+MM(n[o],t),0),a=Number((l/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:a}})}}return i.sort(RM)})({collisionRect:o,droppableRects:r,droppableContainers:t});let c=IM(s,"id");if(c===(null==l?void 0:l.id)&&s.length>1&&(c=s[1].id),null!=c){const e=i.get(n.id),t=i.get(c),l=t?r.get(t.id):null,s=null==t?void 0:t.node.current;if(s&&l&&e&&t){const n=WM(s).some((e,t)=>a[t]!==e),r=IR(e,t),i=function(e,t){return!(!RR(e)||!RR(t))&&(!!IR(e,t)&&e.data.current.sortable.index<t.data.current.sortable.index)}(e,t),c=n||!r?{x:0,y:0}:{x:i?o.width-l.width:0,y:i?o.height-l.height:0},d={x:l.left,y:l.top};return c.x&&c.y?d:uM(d,c)}}}};function IR(e,t){return!(!RR(e)||!RR(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const AR=e=>{let{transform:t}=e;return{...t,y:0}},PR=z(j((e,t)=>{const{children:n,style:o,className:r,index:i,editing:l,editable:a,selectedIndex:s,background:c,activeColor:d,borderColor:u,borderWidth:h,dragging:p,...f}=e;return L("div",{ref:t,className:H_(r),style:{...o,display:"flex",flexDirection:"column",background:s===i?"white":c,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:s===i?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...f,children:[L("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[O("div",{style:{marginLeft:s===i?"0px":"-1px",marginTop:s===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,s===i?O("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):O(I,{})]}),O("div",{style:{flex:"1 1 100%",background:s===i&&d?d?.toCSS():"none",minHeight:"2px"}})]})})),zR={Wrapper:"_Wrapper_1wyun_25",fadeIn:"_fadeIn_1wyun_33",dragOverlay:"_dragOverlay_1wyun_37",Item:"_Item_1wyun_47",withHandle:"_withHandle_1wyun_61",dragging:"_dragging_1wyun_66",disabled:"_disabled_1wyun_74"},FR=P.memo(P.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:l,index:a,listeners:s,onRemove:c,renderItem:d,sorting:u,style:h,transition:p,transform:f,value:m,wrapperStyle:g,...y},b)=>{V(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=d?d({dragOverlay:Boolean(t),dragging:Boolean(n),sorting:Boolean(u),index:a,fadeIn:Boolean(r),listeners:s,ref:b,style:h,transform:f,transition:p,value:m}):O(I,{children:m});return O("div",{className:H_("tab-item",zR.Wrapper,r&&zR.fadeIn,u&&zR.sorting,t&&zR.dragOverlay),style:{...g,transition:[p,g?.transition].filter(Boolean).join(", "),"--translate-x":f?`${Math.round(f.x)}px`:void 0,"--translate-y":f?`${Math.round(f.y)}px`:void 0,"--scale-x":f?.scaleX?`${f.scaleX}`:void 0,"--scale-y":f?.scaleY?`${f.scaleY}`:void 0,"--index":a},ref:b,children:O("div",{className:H_(zR.Item,n&&zR.dragging,i&&zR.withHandle,t&&zR.dragOverlay,o&&zR.disabled,e&&zR.color,"dragging"),style:h,"data-cypress":"draggable-item",...i?void 0:s,...y,tabIndex:i?void 0:-1,children:w})})})),NR={Row:"_Row_1kr10_1"},VR=z(j(({children:e,horizontal:t,style:n},o)=>O("div",{ref:o,style:{...n},className:H_(NR.Row,t&&NR.horizontal),children:e}))),HR={...uR},BR=z(j((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:l=PM,coordinateGetter:a=LR,dropAnimation:s=HR,getItemStyles:c=()=>({}),getNewIndex:d,handle:u=!1,items:h,onMove:p,isDisabled:f=()=>!1,measuring:m,modifiers:g,renderItem:y,renderDivider:b,reorderItems:w=fR,strategy:v=wR,style:x,useDragOverlay:S=!0,onDragStart:C,wrapperStyle:k=()=>({})}=e,[E,_]=N(()=>h);V(()=>{_(h)},[h]);const[T,M]=N(null),D=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $(()=>[...t].filter(e=>null!=e),[...t])}(_M(SD,{activationConstraint:o}),_M(kD,{activationConstraint:o}),_M(fD,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:a})),R=E.indexOf.bind(E),I=T?R(T):-1,A=[];E.map((e,t)=>{A.push(O($R,{id:e,handle:u,index:t,style:c,wrapperStyle:k,disabled:f(e),renderItem:y,animateLayoutChanges:r,useDragOverlay:S,getNewIndex:d},e+"-"+t));const n=b?.({key:"divider-"+t});n&&A.push(n)});const{getPortalContainer:P}=(V(()=>{function e(){const e=document.fullscreenElement;if(!e)return;let t=e.querySelector(".fullscreen-portal-root");t||(t=document.createElement("div"),t.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",e.appendChild(t))}return dr++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),dr--,dr<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),dr=0)}},[]),{getPortalContainer:cr});return L(eR,{sensors:D,collisionDetection:l,onDragStart:e=>{const{active:t}=e;t&&(C?.(e),M(t.id))},autoScroll:{canScroll:e=>!0},onDragEnd:e=>{if(M(null),e.over){const t=R(e.over.id);I!==t&&(_(e=>w(e,I,t)),p?.(I,t))}},onDragCancel:()=>{M(null)},measuring:m,modifiers:g,children:[O("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...x},className:H_(n,zR.Wrapper),children:O(SR,{items:E,strategy:v,children:O(VR,{ref:t,children:A})})}),S?dt(O(pR,{adjustScale:i,dropAnimation:s,children:T?O(FR,{value:E[I],handle:u,renderItem:y,wrapperStyle:k({index:I,isDragging:!0,id:E[I]}),index:I,dragging:!0,style:c({id:E[I],index:I,isSorting:null!==T,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),P()):null]})}));function $R({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:l,style:a,renderItem:s,useDragOverlay:c,wrapperStyle:d}){const{attributes:u,isDragging:h,isSorting:p,listeners:f,overIndex:m,setNodeRef:g,transform:y,transition:b}=DR({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return O(FR,{ref:g,value:r,disabled:e,dragging:h,sorting:p,handle:o,renderItem:s,index:i,style:a({index:i,id:r,isDragging:h,isSorting:p,overIndex:m}),onRemove:l?()=>l(r):void 0,transform:y,transition:b,wrapperStyle:d({index:i,isDragging:h,id:r}),listeners:f,"data-index":i,"data-id":r,dragOverlay:!c&&h,...u})}const jR=new i("rgb(33, 115, 70)"),WR="#eee",UR=e=>O(PR,{...e}),qR=z(j((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:l=[],onSelectedTabIndexChange:a,onTabNameChange:s,onTabMove:c,createScrollStartButton:d=yo,createScrollEndButton:u=bo,createScrollEdgeButton:h=wo,createTabButton:p=UR,createTabDivider:f,editLabelProps:m,disabled:g=!1,disableDrag:y=!1,background:b="white",activeColor:w=jR,borderColor:v=WR,borderWidth:x=1}=e,[S,C]=N(i),[k,E]=N(l),_=H(e=>{const t=z.current?.[e]?.closest(".tab-item")??z.current?.[e];t&&X.current?.scrollTo({top:t.offsetTop,left:t.offsetLeft,behavior:"smooth"})},[]);V(()=>{_(i)},[i]);const T=H((e,t)=>{t!==S&&(C(t),a?.(t)),_(t)},[a,S]),M=H((e,t)=>{c?.(e,t)},[c]),D=F(null),[R,A]=N(-1),P=H((e,t)=>{s?.(e,t)},[s]);U(()=>{C(i)},[i]),U(()=>{E(l)},[l]);const z=F([]),B=F(null);W(t,()=>Object.assign({startEdit(e){z.current?.[e]?.startEdit()},cancel(e){z.current?.[e]?.cancel()}},B.current),[S,R]);const j=H(({value:e,index:t,dragging:n})=>{const{style:o,maxLength:r,...i}=m||{},l=O(qT,{ref:e=>{z.current[t]=e},value:e,disabled:g,maxLength:r,style:{color:S===t&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...o},styleHover:{},onSubmit:e=>(D.current=!1,A(-1),P(t,e)),onCancel:()=>{D.current=!1,A(-1)},onChange:e=>{D.current=!0,A(t)},...i});return p({onClick:e=>T(e,t),value:e,index:t,editing:R===t&&D.current,editable:!0,disabled:g,selectedIndex:S,background:b,activeColor:w,borderColor:v,borderWidth:x,dragging:n,children:l})},[S,P,T,m,g,R,p]),[q,{width:Z}]=M_(),[G,{width:K}]=M_(),X=F(null),[Y,J]=N({left:0,top:0,width:0,height:0}),[Q,ee]=N(null);V(()=>{null!==Q&&X.current&&X.current.scrollTo({left:Q,behavior:"smooth"})},[Q]);const te=H((e,t=!1)=>{if(!X.current)return 0;let n=X.current.firstChild.getBoundingClientRect(),o=X.current.firstChild.firstChild.children,r=0;return r=t?0:xo.getScrollTo(e,n.left,o,!0,Math.max(0,e-200)),ee(r),Math.max(0,r)},[]),ne=H((e,t=!1)=>{if(!X.current)return 0;let n=X.current.firstChild.getBoundingClientRect(),o=X.current.firstChild.firstChild.children,r=0;const i=Math.ceil(K-Z);return r=t?i:xo.getScrollTo(e,n.left,o,!1,Math.max(0,e+200)),ee(r),Math.min(i,r)},[K,Z]),oe=F(null),re=F(null),ie=H(()=>{re.current&&(clearTimeout(re.current),re.current=null,oe.current=null)},[]),le=H((e,t,n=260)=>{oe.current=e,re.current=setTimeout(()=>{const n=t?te(oe.current||e):ne(oe.current||e);n!==oe.current?le(n,t,120):ie()},n)},[te,ne,ie]);V(()=>()=>ie(),[ie]);const ae=$(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(Y.left)<=0||0===Math.floor(K-Z),orientation:ao.Horizontal,onMouseUp:ie,onMouseLeave:ie,onMouseDown:()=>le(X.current.scrollLeft,!0),onClick:e=>te(Math.min(X.current.scrollLeft,Q??Number.MAX_SAFE_INTEGER),e.ctrlKey)}),[Y,Q,K,Z]),se=$(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(K-Z)<=Math.ceil(Y.left),orientation:ao.Horizontal,onMouseUp:ie,onMouseLeave:ie,onMouseDown:()=>le(X.current.scrollLeft,!1),onClick:e=>ne(Math.max(X.current.scrollLeft,Q??0),e.ctrlKey)}),[Y,Q,K,Z]),ce=$(()=>L(I,{children:[O("div",{style:{minWidth:"16px"}}),n,h?.(ae)]}),[ae,se,d,u,n,h]);return L("div",{style:{...o,display:"flex",alignItems:"stretch"},className:H_("_TabStrip_3x0dp_1",r),ref:B,children:[O("div",{style:{borderTop:`solid ${v} ${x}px`,position:"absolute",width:"100%"}}),O("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:ce}),O("div",{className:"Tabs",ref:q,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:O("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:X,onScroll:e=>{J({left:e.target.scrollLeft,top:e.target.scrollTop,width:e.target.scrollWidth,height:e.target.scrollHeight})},children:O(BR,{isDisabled:e=>g||y,items:k,strategy:bR,modifiers:[AR],ref:G,renderItem:j,renderDivider:f,onMove:M,activationConstraint:{distance:15}})})}),O("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:h(se)})]})}));qR.displayName="TabStrip";const ZR=e=>L("svg",{...e,viewBox:"0 0 48 48",children:[O("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"}),O("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"}),O("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"}),O("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"})]}),GR=G(null),KR=()=>{const e=Y(GR),[t]=N(()=>new r);return $(()=>e||t,[e])},XR=P.lazy(()=>import("./CQgUOqCEwTc61uuT.mjs")),YR={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:"\t})]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},JR=async(e,t,n)=>{const o=e.getModel();if(!o)return;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),l=await i.getNavigationTree(o.uri.toString()),a=e.getPosition();let s={...a};s.lineNumber=1,s.column=1;let c=!1;for(let e=a.lineNumber;e>=1;e--)if(""===o.getLineContent(e).trim()){const t=tO(l,o.getOffsetAt({lineNumber:e,column:1}),"function");if(!t||nO(t)){c=!0,s.lineNumber=e+1;break}{const n=t.spans[0].start;e=o.getPositionAt(n).lineNumber,s.lineNumber=e}}let d=n,u=!1;!c&&!d.startsWith("\n")&&s.lineNumber>1&&(d="\n"+d,u=!0);let h=!1;o.getLineCount()>1&&(d.endsWith("\n\n")||(d+="\n\n",h=!0));const p=[{range:new t.Range(s.lineNumber,s.column,s.lineNumber,s.column),text:`${d}`}];let f=null;o.pushEditOperations([],p,e=>(f=e[0].range,u&&f.startLineNumber++,h&&f.endLineNumber--,[new t.Selection(f.startLineNumber,f.startColumn,f.endLineNumber,f.endColumn)])),e.setSelection({startLineNumber:f.endLineNumber,startColumn:f.endColumn,endLineNumber:f.startLineNumber,endColumn:f.startColumn})};function QR(e,t){let n=null;for(let o=0;!n&&o<e.length;o++){const r=e[o];r.getName()===t.text&&(n=r)}return n?n.getContext():"formula"}function eO(e,t,n,o,r=[]){if("function"===o.kind&&"export"===o.kindModifiers){const t=o.spans[0].start,i=e.getPositionAt(t);r.push({name:o.text,type:QR(n,o),lineNumber:i.lineNumber})}if(o.childItems)for(const i of o.childItems)eO(e,t,n,i,r);return r}function tO(e,t,n="function",o){const r=e.spans;for(let i=0;i<r.length;i++){const l=r[i];if(l.start<=t&&t<l.start+l.length){if(e.kind===n&&(!o||e.kindModifiers===o))return e;for(const r of e.childItems||[]){const e=tO(r,t,n,o);if(e)return e}}return null}}function nO(e){return"comment"===e.kind}const oO=z(j((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:l,darkMode:a,loadingPanel:s,autoFocus:c=!0,onStatusChange:d,...u}=e,h=F(null),p=go(l,[l]),f=F(!1),m=$(()=>({contains(e){if(!h.current)return;const t=h.current.editor;return t&&t.getDomNode()?.contains(e)},focus(){if(!h.current)return;const e=h.current.editor;return e&&e.getDomNode()?.focus()}}),[]),g=$(()=>[new qr("help",m,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),y=$(()=>{let e=null;const t=()=>m;return e=r?r.createChildGroup(t,"scriptEditor",!1):new Gr(t,"scriptEditor"),e.addCommands(g,!0),e},[r,g]),b=ei(y,["executeSelectedScript"])[0],w=b?.context(),v=go(e=>{b?.execute(e)},[b]),x=F(""),[S,C]=N(!1),k=go(async()=>{if(!h.current)return null;const e=h.current,t=e.editor;if(!t)return null;const n=e.monaco,o=await(async(e,t,n="export")=>{const o=e.getModel();if(!o)return null;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),l=await i.getNavigationTree(o.uri.toString());let a=null,s=e.getSelection();const c=s.startLineNumber===s.endLineNumber&&s.startColumn===s.endColumn?o.getLineCount():Math.min(s.endLineNumber,o.getLineCount());for(let e=s.startLineNumber;!a&&e<=c;e++){const t=tO(l,o.getOffsetAt({lineNumber:e,column:1}),"function",n);t&&(a=t.text)}return a})(t,n);return d?.({message:(o??"").toUpperCase()}),o?{source:t.getValue(),name:o}:null},[d]),E=go(async(e,t,n)=>{const o=await w.getScripts().createModule({source:n?.getValue(),declarationsOnly:!0}),r=o?o.getFunctions().search():_n.EmptyArray;o&&(async function(e,t){const n=[];for(let o=1;o<e.getLineCount()+1;o++){const r={startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:e.getLineLength(o)+1},i=e.getValueInRange(r).indexOf("modelt");-1!==i&&n.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:t.MarkerSeverity.Hint,startLineNumber:r.startLineNumber,startColumn:i+1,endLineNumber:r.startLineNumber,endColumn:i+5})}t.editor.setModelMarkers(e,"owner",n)}(e,t),async function(e,t,n,o){const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(e.uri),l=await i.getNavigationTree(e.uri.toString()),a=eO(e,t,o,l).map(e=>{let n=null,o=null;return"formula"===e.type?(n="formula.margin-icon",o="Formula"):"macro"===e.type?(n="macro.margin-icon",o="Macro"):"autoRun"===e.type&&(n="autorun.margin-icon",o="Auto Run"),{range:new t.Range(e.lineNumber,1,e.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:n,glyphMarginHoverMessage:o,stickiness:t.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});D.current&&D.current.clear(),D.current=n.createDecorationsCollection(a)}(e,t,n,r))},[w]),_=go(_n.debounce(E,580),[]),T=go(async(e=void 0)=>{if(!h.current||!w)return;const t=h.current.editor.getPosition(),n={cursor:t?t.toString():""};void 0!==e&&(n.message=e),d?.(n);const o=k();w.setSelectedFunction(o)},[w,d]);V(()=>{if(!w)return;const e={insertSnippet:e=>{h.current?.editor&&(S?JR(h.current.editor,h.current.monaco,e):x.current=e)}};w.setEditor(e),w.setSelectedFunction(k());const t=w.addContainerListener({onBeforeSave:async()=>{if(!h.current?.editor||!w)return;const e=h.current.editor,t=w?.getScripts().getModules().getByName("scripting"),n=t?.getSource(),o=e.getValue();if((n?.length??0)===o.length&&n===o)return;await w.saveSource(e.getValue());const r=(n?.length??0)!==o.length||n!==o;d?.({dirty:r})},onReadonlyChange(){},onScriptChange:async()=>{if(!h.current?.editor||!w)return;const e=h.current.editor,t=w.getScripts().getModules().search()[0]?.getSource()??"";e.setValue(t)}});return()=>{t(),w.setSelectedFunction(null),w.setEditor(null)}},[w,S]),V(()=>()=>{if(!h.current?.editor)return;const e=h.current.editor;w?.saveSource(e.getValue())},[]);const M=go(e=>{const t=h.current;if(!t)return!1;const n=t.editor;return!!n&&(n.focus(),!0)},[]),D=F(null),R=go((e,t)=>{h.current={monaco:t,editor:e},C(!0),T("Loading Types");const n=w.getScripts().getModules().search()[0]?.getSource()??"";e.setValue(n),import("./DRRzJ8Ep6_Tyd6ne.mjs").then(e=>e.c).then(n=>{T(""),n.AutoTypings.create(e,{shareCache:!0,monaco:t,onError:e=>{"Not implemented yet"===e&&(e="Compile Errors"),console.warn("Error compiling types",e)}}).then(async n=>{const o=e.getModel();_(o,t,e)})}),e.addCommand("executeScript",function(e,...t){t?.[0]&&v({functionName:t?.[0]})},""),e.addAction({id:"executeScript",label:"Execute",keybindings:[t.KeyCode.F8],run:async e=>{const t=k();w.setSelectedFunction(t);const n=await t;v(n)}}),e.addAction({id:"saveScript",label:"Save Script",keybindings:[t.KeyMod.CtrlCmd|t.KeyCode.KeyS],run:t=>{w?.saveSource(e.getValue()).then(()=>{const t=w?.getScripts().getModules().getByName("scripting"),n=t?.getSource(),o=e.getValue(),r=(n?.length??0)!==o.length||n!==o;d?.({dirty:r})})}}),e.onMouseDown(async n=>{if(n.target.type===t.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const r=n.target.position.lineNumber,i=await t.languages.typescript.getTypeScriptWorker(),l=await i(o.uri),a=await l.getNavigationTree(o.uri.toString()),s=e?.getValue(),c=(await(w?.saveSource(s))).getFunctions().search(),d=eO(o,t,c,a).find(e=>e.lineNumber===r);if(d){const e=n.event.browserEvent.button;0===e?"macro"===d.type||"autoRun"===d.type?v({functionName:d.name}):"formula"===d.type&&w.quickInsertFunction?.(d.name):2===e&&(console.log("Context menu for function:",d.name),n.event.browserEvent.preventDefault())}}}),e.onDidChangeModelContent(()=>{const n=e.getModel();_(n,t,e)});const o=e.getModel();!function(e,t){t.languages.registerInlayHintsProvider("typescript",{provideInlayHints(e,n,o){const r=[];for(let n=1;n<e.getLineCount()+1;n++){const o={startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:e.getLineLength(n)+1},i="hint",l=e.getValueInRange(o).indexOf("hint");-1!==l&&r.push({kind:t.languages.InlayHintKind.Type,position:{lineNumber:o.startLineNumber,column:l+i.length+1},label:"[hint]"})}return{hints:r,dispose:()=>{}}}})}(0,t),o.onDidChangeContent(t=>{const n=w?.getScripts().getModules().getByName("scripting"),o=n?.getSource(),r=e.getValue(),i=(o?.length??0)!==r.length||o!==r;d?.({dirty:i})}),e.onDidChangeCursorPosition(e=>{T()})},[w,d]),I=$(()=>S?null:s||O("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[S,s]),A=$(()=>{const e=w?.getScripts().getModules().getByName("scripting")?.getSource()??"";return L("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[O(K,{children:O(XR,{theme:a?"extended-dark":"extended",options:{...YR,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:e,onValidate:e=>{let t=!1;for(let n=0;!t&&n<e?.length;n++)8===e[n].severity&&(t=!0)},beforeMount:e=>{e.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),e.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),e.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let t=!1;try{const n=await(async()=>{const e=await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts");return await e.text()})(),o=e.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),r=e.editor.createModel(n,"typescript",o);e.editor.setModelMarkers(r,"default",[]),t=!0}catch(e){console.warn("cant load types",e)}e.languages.registerLinkProvider("*",{provideLinks:(t,n)=>{const o=[],r={links:o},i=t.getLinesContent();for(let n=1;n<=i.length;n++){const r=i[n-1],l=e.editor.tokenize(r,"typescript");for(let i=0;i<l[0].length;i++){const a=l[0]?.[i];if(a&&a.type.startsWith("string")){let s=a.offset,c=l[0]?.[i+1]?.offset??r.length,d=new e.Range(n,s+1,n,c+1),u=t.getValueInRange(d);const h=u[0];"`"!==h&&"'"!==h&&'"'!==h||(s++,u=u.substring(1));const p=u[u.length-1];"`"!==p&&"'"!==p&&'"'!==p||(s++,u=u.substring(0,u.length-1));try{w.getRanges(u)&&o.push({range:{endColumn:c,endLineNumber:n,startColumn:s,startLineNumber:n},tooltip:`Goto range '${u}'`,url:`/range/${u}`})}catch(e){console.warn(e)}}}}return r}}),e.editor.registerLinkOpener({open(e){if(e?.path?.startsWith("/range/")){try{w.getRanges(e.path.substring(7))?.select()}catch(e){console.warn("invalid range",e)}return!0}return!1}});const n=e.languages.typescript.typescriptDefaults.getCompilerOptions();e.languages.typescript.typescriptDefaults.setCompilerOptions({...n,target:e.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:e.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),x.current&&(await JR(h.current.editor,h.current.monaco,x.current),x.current=null),f.current&&requestAnimationFrame(async()=>{f.current&&e.editor.focus()}),e.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),C(!0)})()},onMount:R})}),I]})},[w,y,i,I,a]),P=er(t,()=>({isScriptEditorElement:()=>!0,focus:e=>{M(e)},close:()=>{p?.()},getEditor:()=>w?.getEditor()}),[w]);return V(()=>(c&&requestAnimationFrame(()=>{M()}),()=>{h.current?.editor&&requestAnimationFrame(()=>{P.current?.contains(document.activeElement)&&M()})}),[]),O("div",{className:H_("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:P,...u,children:A})})),rO={Preset:"preset",Custom:"custom"},iO={Start:"start",End:"end"},lO={},aO=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(lO[r])return lO[r];const i=((e,t,n,o)=>{if("undefined"==typeof document&&!o)return null;const r=o?new o:document.createElement("canvas");r.width=2*n,r.height=2*n;const i=r.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,r.width,r.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),r.toDataURL()):null})(e,t,n,o);return lO[r]=i,i},sO={},cO=z(e=>{const{className:t,style:n=Jo.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:l,boxShadow:a,renderers:s=sO,children:c,...d}=e,u=c,h=$(()=>Object.assign({borderRadius:l,boxShadow:a,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${aO(o,r,i,s?.canvas)}) center left`},n),[o,r,i,s]);return Q(c)?P.cloneElement(c,{...u.props}):O("div",{style:h,...d})}),dO=z(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:l,onMouseLeave:a,onFocus:s,style:c=Jo.EmptyCssProperties,children:d,alphaWhite:u,alphaGrey:h,darkMode:p,alphaCheckSize:f=7,...m}=e;if(!t)throw new Error("a selectedColor is required");const g=H(e=>{r?.(e),e.isDefaultPrevented()||(e.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),y=H(e=>{l?.(e),e.isDefaultPrevented()||o?.(t.toRGBA())},[o,l,t]),b=H(e=>{a?.(e),e.isDefaultPrevented()},[o,a]),w=H(e=>{s?.(e),e.isDefaultPrevented()||o?.(t.toRGBA())},[o,s,t]),v=H(e=>{i?.(e),e.isDefaultPrevented()||e.keyCode===io.Enter&&n?.(t.toRGBA())},[n,i,t]),x=$(()=>1===t.toRGBA().alpha?null:O(cO,{size:f,white:u,grey:h,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[u,h,t]);return L("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...c},tabIndex:0,...m,onClick:g,onKeyDown:v,onMouseOver:y,onMouseLeave:b,onFocus:w,children:[x,O("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(p)},children:d})]})}),uO=z(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:l,onPreviewColorDef:a,swatchProps:s,defaultButtonSize:d=24,isLarge:u=!1,compareRGB:h=!1,darkMode:p=!1,...f}=e,m=new i({val:r.definition.val,adjs:r.definition.adjs},e=>t(e)),g=h?m.toRGBA().toString():m.toString(),y=n&&(h?n.toRGBA().toString():n.toString())===g,b=o&&(h?o.toRGBA().toString():o.toString())===g,w=[];w.push({[c.AdjustmentType.Inv]:!0}),w.push({[c.AdjustmentType.Alpha]:100});const v=m.adjust(w),x=H(()=>{l?.(r)},[l,r]),S=H(e=>{a?.(e?r:null)},[a,r]);return O(Gf,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:r.description,placement:"bottom-start",children:O("div",{style:{width:d*(u?1.2:1)+"px",height:d*(u?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...f,children:L(dO,{selectedColor:m,title:null,onSelectColor:x,onPreviewColor:S,alphaCheckSize:u?9:void 0,darkMode:p,...s,children:[O("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:v.toRGBA(p).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:y?"1":"0"}}),O("div",{style:{position:"absolute",width:.33*d*(u?1.2:1)+"px",height:.33*d*(u?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:v.toRGBA(p).toString(),borderRadius:"50%",opacity:b?"1":"0"}})]})})})}),hO=z(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:l,onPreviewColorDef:a,style:s=Jo.EmptyCssProperties,compareRGB:c=!1,darkMode:d,swatchProps:u,...h}=e;let p;if(Array.isArray(o[0]))p=o;else{p=[];for(let e=0;e<o.length;e++)p.push([o[e]])}const f=H(e=>{l?.(e)},[l]),m=H(e=>{a?.(e)},[a]),g=$(()=>{let e=[];for(let t=0;t<p.length;t++){let o=[],l=p[t];for(let e=0;e<l.length;e++){let a=l[e];o.push(O(uO,{schemeColorLookup:n,colorDef:a,selectedColor:r,previewColor:i,onSelectColorDef:f,onPreviewColorDef:m,swatchProps:u,compareRGB:c,darkMode:d},t+" "+e))}let a=O(ne,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:e=>e.shadows[2],borderRadius:"2px",overflow:"hidden"},children:o},""+t);e.push(a)}return e},[p,r,i,f,m]),y=$(()=>t?O(se,{noWrap:!0,component:"div",sx:{display:"flex",flexShrink:"0",paddingLeft:"6px",paddingBottom:"4px",paddingTop:"0px",userSelect:"none",color:e=>e.palette.text.secondary},children:t}):null,[t]);return L(ne,{style:{...s},children:[y,O(ne,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...h,children:g})]})}),pO=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),fO=(e,t,n,o,r,l)=>{const a=pO(e,t);o?.push(a);const s=new i({val:a.definition.val,adjs:a.definition.adjs},n),c=s.toString();r?.set(c,s);const d=s.toRGBA().toString();l?.set(d,s)},mO=P.lazy(()=>import("./Bc8N72T3wtTApPEG.mjs")),gO=z(j((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:l,disableAlpha:a=!1,previewDebounceTime:s=100,initialPanelType:c,defaultButtonSize:d=24,width:u,onElementLoad:h,onDone:p,onEyeDropStart:f,onEyeDropStop:m,onPreviewColor:g,onPreviewColorImmediate:y,onSelectColor:b,autoColor:w,autoColorLabel:v="Automatic",autoColorPosition:C=iO.Start,compareRGB:k=!1,darkMode:E=!1,..._}=e,T=o||n,M=go(g,[g]),D=go(y,[y]),R=go(b,[b]),A=go(f,[f]),P=go(m,[m]),[z,F]=N(!1),B=Tx(),j=$(()=>l||i.getDefaultSchemeLookup(),[l]),W=$(()=>{const e=new Map,t=new Map,n=[];fO("Primary Background","bg1",j,n,e,t),fO("Primary Text","tx1",j,n,e,t),fO("Secondary Background","bg2",j,n,e,t),fO("Secondary Text","tx2",j,n,e,t),fO("Accent 1","accent1",j,n,e,t),fO("Accent 2","accent2",j,n,e,t),fO("Accent 3","accent3",j,n,e,t),fO("Accent 4","accent4",j,n,e,t),fO("Accent 5","accent5",j,n,e,t),fO("Accent 6","accent6",j,n,e,t);const o=x.buildPalette(n,j,e,t),i=[];if(fO("Dark Red","C00000",j,i,e,t),fO("Red","FF0000",j,i,e,t),fO("Orange","FFC000",j,i,e,t),fO("Yellow","FFFF00",j,i,e,t),fO("Light Green","92D050",j,i,e,t),fO("Green","00B050",j,i,e,t),fO("Light Blue","00B0F0",j,i,e,t),fO("Blue","0070C0",j,i,e,t),fO("Dark Blue","002060",j,i,e,t),a?fO("Purple Is A Fruit","7030A0",j,i,e,t):fO("Transparent","00000000",j,i,e,t),w){const t=w.toString();e.set(t,w)}const l=new Map,s="function"==typeof r?r():r,c=[];for(let e=0;s&&e<s.length;e++){const t=s[e].toString();l.set(t,s[e]),c.push({description:"Recent "+(e+1),definition:{val:s[e].toString()}})}return{primaryColors:n,modifiedPresets:o,standardColors:i,recentColorsLimited:c,mapAllPresets:e,mapAllPresetsRGB:t,mapRecent:l}},[j,r,a,w]);V(()=>{h?.()},[]);const[U,q]=N(!1),Z=H(()=>{q(e=>!e)},[]);V(()=>{if(c)q(c===rO.Custom);else if(n){let e=n.toString(),t=W.mapAllPresets.get(e);t||(e=n.toRGBA().toString(),t=W.mapAllPresetsRGB.get(e));const o=W.mapRecent.get(e);q(!t&&!o)}},[n,c]);const G=H(S.debounce(e=>{M?.(e)},s),[M,s]),[X,Y]=N();V(()=>{Y(o||n)},[o,n]);const J=go(e=>{D&&(D(e),G(e))},[D]),Q=go(e=>{J(e?new i({val:e.definition.val,adjs:e.definition.adjs},j):null)},[j]),ee=H(e=>{e.ctrlKey&&q(!0)},[]),re=go(e=>{let t=!1;if(e){const n=e.toString();t=!W.mapAllPresets.has(n)}R?.(e,t)},[R,W]),ie=go(e=>{const t=e?new i({val:e.definition.val,adjs:e.definition.adjs},j):null;Promise.resolve(p?.()).then(()=>{re(t)})},[j,p]),le=go(e=>{J(e?new i(e,j):null)},[j]),ce=$(()=>{if(void 0===window.EyeDropper)return O(I,{});return O(oe,{"aria-label":"eye dropper",size:"small",sx:{color:e=>e.palette.text.icon??e.palette.action.active},onClick:async()=>{F(!0),A?.(),await(new EyeDropper).open().then(e=>{F(!1),P?.();let t=new i(e.sRGBHex),n=t.toString(),o=W.mapAllPresets.get(n);if(o||(n=t.toRGBA().toString(),o=W.mapAllPresetsRGB.get(n)),!o){const e=t.toRGBA(),n=3;let r=255;W.mapAllPresetsRGB.forEach((t,i)=>{const l=t.toRGBA(),a=Math.abs(l.red-e.red)+Math.abs(l.blue-e.blue)+Math.abs(l.green-e.green);a<n&&a<r&&(o=t)})}q(!o),J(o||t)}).catch(e=>{F(!1),"AbortError"!==e?.name&&console.error(e)})},children:O(Ze,{})})},[W,E]),de=$(()=>{if(!U)return;const e={opacity:U?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return O(K,{fallback:O("div",{style:e,children:O(Vp,{})}),children:O(mO,{style:e,selectedColor:T?T.toRGBA().toString():"transparent",onColorChange:le,disableAlpha:a})})},[U,T]),ue=$(()=>({onClick:ee,alphaGrey:B.palette.text.icon??B.palette.action.active}),[ee,B]),he=$(()=>{if(!w)return null;const e={description:v,definition:{val:w.getVal(),adjs:w.getAdjustments()}};return O(I,{children:L(ae,{sx:{display:"flex",color:e=>e.palette.text.secondary},onMouseOver:()=>{Q(null)},onClick:()=>{ie(null)},children:[O(ne,{sx:{flex:"none",boxShadow:e=>e.shadows[2],borderRadius:e=>e.spacing(.5),overflow:"hidden"},children:O(uO,{schemeColorLookup:j,colorDef:e,selectedColor:null===n?w:n,previewColor:null===o?w:o,defaultButtonSize:d,isLarge:!0,darkMode:E,compareRGB:k,swatchProps:ue})}),O(se,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:v})]})})},[w,v,j,n,o]);return L(ne,{ref:t,sx:{width:u,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},..._,children:[L("div",{style:{position:"relative",display:"flex"},children:[L("div",{style:{opacity:U?"0":1},children:[he&&C===iO.Start?L(I,{children:[he,O(te,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,O(hO,{title:"Theme Colors",schemeColorLookup:j,colorDefs:W.primaryColors,selectedColor:n,previewColor:void 0===o?n:o,swatchProps:ue,onPreviewColorDef:Q,onSelectColorDef:ie,compareRGB:k,darkMode:E}),O(hO,{schemeColorLookup:j,colorDefs:W.modifiedPresets,selectedColor:n,previewColor:void 0===o?n:o,swatchProps:ue,onPreviewColorDef:Q,onSelectColorDef:ie,compareRGB:k,darkMode:E}),O(te,{light:!0,style:{marginBottom:"10px"}}),O(hO,{title:"Standard Colors",schemeColorLookup:j,colorDefs:W.standardColors,selectedColor:n,previewColor:void 0===o?n:o,swatchProps:ue,onPreviewColorDef:Q,onSelectColorDef:ie,compareRGB:k,darkMode:E}),L("div",{style:{opacity:0===W.recentColorsLimited.length?"0":void 0,display:0===W.recentColorsLimited.length?"none":void 0},children:[O(te,{light:!0,style:{marginBottom:"10px"}}),O(hO,{title:"Recent Colors",schemeColorLookup:j,colorDefs:W.recentColorsLimited,selectedColor:n,previewColor:void 0===o?n:o,swatchProps:ue,onPreviewColorDef:Q,onSelectColorDef:ie,compareRGB:k,darkMode:E})]}),he&&C===iO.End?L(I,{children:[O(te,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),he,O("div",{style:{marginBottom:"2px"}})]}):null]}),de]}),O(te,{light:!0,style:{marginBottom:"10px"}}),L("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[ce,O("div",{style:{flex:"1 1 100%",background:"pink"}}),O(me,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{Z()},children:O("div",U?{children:"Preset"}:{children:"Custom"})}),O(me,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(p?.()).then(()=>{re(X)})},children:"Done"})]})]})})),yO=O(Mc,{}),bO=z(j((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=yO,tooltip:i,label:l,onPreviewColor:a,onPreviewColorImmediate:s,onSelectColor:c,variant:d=Tf.Toolbar,panelProps:u,shouldCloseFloatAll:h=!0,compareRGB:p=!1,darkMode:f=!1,...m}=e,g=go(a,[a]),y=go(s,[s]),b=go(c,[c]),[w,v]=N(()=>{}),x=o||(w||n)||u?.autoColor,S=F(!1),C=H(()=>{},[]),k=go(()=>{v(n)},[n]),E=go(e=>{S.current||(v(e),g?.(e))},[g]),_=go(e=>{S.current||(v(e),y?.(e))},[y]),T=go((e,t)=>{S.current||(v(void 0),b?.(e,t))},[b]),M=$(()=>O(ne,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${x?.toCSS(f)??"transparent"}`,"& .activeColor":{fill:`${x?.toCSS(f)??"transparent"}`},"& .style_grey":{fill:e=>e.palette.text.icon??e.palette.action.active}},children:"function"==typeof r?r():r}),[x,r,f]),D=go(e=>{b?.(o,!1)},[b,o]),[R,L]=N(!1),I=H(e=>{const{closeFloat:t,closeFloatAll:o}=e;return O(gO,{...u,selectedColor:n,previewColor:w,onDone:h?o:t,onKeyDown:e=>{e.which===io.Enter&&(h?o():t())},onPreviewColorImmediate:_,onPreviewColor:E,onSelectColor:T,onEyeDropStart:()=>L(!0),onEyeDropStop:()=>L(!1),compareRGB:p,darkMode:f})},[n,w,h,x,u?.autoColor,f]),A={onQuickClick:o?D:void 0,createPopupPanel:I,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:k,onPopupClose:C,tooltip:i||l||"Color",label:l,icon:M,...m};return d===Tf.Toolbar?O(im,{ref:t,...A}):O(am,{ref:t,...A})})),wO=82,vO=e=>{const{styleColor:t,length:n=wO,width:o=1,dashArray:r=null,sx:i,isDouble:l=!1,isAngled:a=!1,darkMode:s=!1,...c}=e;return O(ie,{sx:{width:`${n}px`,height:`${o}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:e=>`${t?t.toRGBA(s).toString():e.palette.text.icon??e.palette.action.active}`},"& .style_grey":{stroke:e=>e.palette.text.icon??e.palette.action.active},...i},height:o,width:n,viewBox:`0 0 ${n} ${o}`,...c,children:O(v_,{length:n,width:o,dashArray:r,isDouble:l,isAngled:a,className:"activeColor"})})},xO=z(j((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:a,selectedStyle:s,onSelectStyle:c,showNone:d=!0,darkMode:u,sx:h,...p}=e,f=go(c,[]),m=H(e=>{const{popupContainer:t,floatReference:n,closeFloat:i,...c}=e,h=[],p=l.BuiltInDefinitionsArray;for(let e=0;e<p.length;e++){const t=p[e];if("None"===t.description&&!d)continue;const l=O(vO,{styleColor:a,length:wO,width:t.width,darkMode:u,dashArray:t.pattern,isDouble:t.description.toLowerCase().includes("double"),isAngled:t.description.toLowerCase().includes("slant")});let c=null;c=o?L(I,{children:[O(ne,{sx:{marginRight:"6px"},children:t.description}),L(ne,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[O("div",{style:{flex:"1 1 100%"}}),l]})]}):"None"===t.description?"None":l,h.push(O(om,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:xc(4)},paddingLeft:"16px",background:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},tooltipProps:{description:o?"":t.description},icon:null,disabled:r,onMouseDown:e=>e.preventDefault(),onMouseUp:()=>{i(),f(t.style)},onKeyDown:e=>{e.which===io.Enter&&i()},selected:t.style===s,parentFloat:n,children:c},e))}return O(ne,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:h})},[r,d,a,s,u]),g=$(()=>{const e=l.BuiltInDefinitions.get(s);let t;return t="None"===e.description?O(ne,{sx:{minWidth:`${wO}px`},children:"None"}):O(vO,{styleColor:a,length:wO,width:e.width,dashArray:e.pattern,darkMode:u,isDouble:e.description.toLowerCase().includes("double"),isAngled:e.description.toLowerCase().includes("slant")}),O(ne,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:xc()}},children:t})},[s,a]),y=$(()=>l.BuiltInDefinitions.get(s),[s]),b={disabled:r,icon:g,tooltip:"Border Style: "+y.description,sx:{background:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,...h},createPopupPanel:m,...p};return n===Tf.Toolbar?O(im,{...b}):O(am,{...b})})),SO=z(j((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=l.StrokeStyle.Thin,disabled:a=!1,darkMode:s=!1,showStylingBefore:c=!0,onSelectBorder:d,onPreviewBorder:u,selectedBorder:h,createTemporaryBorder:p,...f}=e,m=go(d,[d]),g=go(u,[u]),[y,b]=N(),[w,v]=N(),x=y??r,S=w??n,C=h||{bottom:{style:r,color:n?.toString()}},k=go(e=>{const t={},n=e?Object.keys(e):[];let o=!1;for(let r=0;r<n.length;r++)e[n[r]]?.style&&(t[n[r]]={style:e[n[r]].style,color:e[n[r]].color},o||t[n[r]].style===l.StrokeStyle.None||(o=!0));n.length<6&&(o=!0);const r=o?t.left:null,i=o?t.top:null,a=o?t.right:null,c=o?t.bottom:null,d=o?t.vertical:null,u=o?t.horizontal:null;let h="";return i||r||(h+="M 3,5 H 5 V 3 H 3 "),i||(h+="M 7,5 H 9 V 3 H 7 "),i||d||(h+="M 11,5 h 2 V 3 h -2 "),i||(h+="M 15,5 h 2 V 3 h -2 "),i||a||(h+="M 19,5 h 2 V 3 h -2 "),r||(h+="M 3,9 H 5 V 7 H 3 "),d||(h+="M 11,9 h 2 V 7 h -2 "),a||(h+="M 19,9 h 2 V 7 h -2 "),u||r||(h+="M 3,13 H 5 V 11 H 3 "),u||(h+="M 7,13 H 9 V 11 H 7 "),u||d||(h+="M 11,13 h 2 v -2 h -2 "),u||a||(h+="M 19,13 h 2 v -2 h -2 "),u||(h+="M 15,13 h 2 v -2 h -2 "),r||(h+="M 3,17 H 5 V 15 H 3 "),d||(h+="M 11,17 h 2 v -2 h -2 "),a||(h+="M 19,17 h 2 v -2 h -2 "),c||r||(h+="M 3,21 H 5 V 19 H 3 "),c||(h+="M 7,21 H 9 V 19 H 7 "),c||d||(h+="M 11,21 h 2 v -2 h -2 "),c||(h+="M 15,21 h 2 v -2 h -2 "),c||a||(h+="M 19,21 h 2 v -2 h -2 "),L("div",{style:{width:"24px",height:"24px",position:"relative"},children:[O(ie,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:O("path",{d:h})}),O(ne,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:vc}},children:O(N_,{getBorderAt:(e,o)=>{if(!p||0===n.length)return null;const r=e.rowIndex,i=e.colIndex,l={};return 0===r?(l.top=t.top,l.bottom=t.horizontal):(l.top=t.horizontal,l.bottom=t.bottom),0===i?(l.left=t.left,l.right=t.vertical):(l.left=t.vertical,l.right=t.right),p?.(l)},width:18,height:18,darkMode:s,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[S,x,s]),E=H((e,t,n)=>{let o=null;if(e&&e.length>0){let r=null;(t||n)&&(r={style:n,color:t?.toString()??null}),o={};for(let t=0;t<e.length;t++)o[e[t]]=r}return o},[]),_=H(e=>{m?.(e)},[]),T=H(e=>{g?.(e)},[]),M=H(e=>{const{closeFloatAll:t,floatReference:r}=e,d=(e,n,o="bottom",r=!1)=>{const i=E(e,S??null,r?l.StrokeStyle.None:x??null),a=r?E([],S??null,x??null):i;return O(tm,{icon:k(a),sx:{background:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},tooltipProps:{label:n,simple:!0,placement:o},onClick:()=>{t(),T(i),_(i)}})},u=L(I,{children:[L(ne,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[d([l.Edge.Left,l.Edge.Top,l.Edge.Right,l.Edge.Bottom,l.Edge.Horizontal,l.Edge.Vertical],"All Borders","top"),d([l.Edge.Horizontal,l.Edge.Vertical],"Inner Borders","top"),d([l.Edge.Horizontal],"Inside Horizontal Borders","top"),d([l.Edge.Vertical],"Inside Vertical Borders","top"),d([l.Edge.Left,l.Edge.Top,l.Edge.Right,l.Edge.Bottom],"Outside Borders","top")]}),L(ne,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[d([l.Edge.Left],"Left Borders"),d([l.Edge.Top],"Top Borders"),d([l.Edge.Right],"Right Borders"),d([l.Edge.Bottom],"Bottom Borders"),d([l.Edge.Left,l.Edge.Top,l.Edge.Right,l.Edge.Bottom,l.Edge.Horizontal,l.Edge.Vertical,l.Edge.DiagonalUp,l.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),h=O(I,{children:L(ne,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[O(bO,{variant:Tf.Toolbar,icon:O(_c,{}),selectedColor:x===l.StrokeStyle.None?new i("transparent"):S,onPreviewColor:e=>{v(e)},onSelectColor:(e,t)=>{v(e)},darkMode:s,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:a||x===l.StrokeStyle.None,parentFloat:r,shouldCloseFloatAll:!1}),O(xO,{selectedStyle:x,onSelectStyle:b,styleColor:S,darkMode:s,variant:Tf.Toolbar,parentFloat:r})]})});return L(ne,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:e=>e.stopPropagation(),children:[c?h:u,O(Mp,{orientation:"horizontal"}),c?u:h]})},[x,S,n,o,s]),D=$(()=>k(C),[C,s]);return O(im,{ref:t,createPopupPanel:M,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:e},t)=>O(Jf,{label:"Borders",description:"Set the borders.",disabled:t,children:e}),onQuickClick:()=>{m?.(C)},quickButtonProps:{sx:{}},disabled:a,icon:D,...f})})),CO=z(j((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=ti.Toolbar,disabled:l=!1,autoColor:a,autoStrokeStyle:s,schemeLookup:c,createTemporaryBorder:d,selectedBorder:u,onSelectBorder:h,darkMode:p,icon:f,label:m,...g}=e,y=ei(n,["formatBorder"]),b=o??y[0],w=b?.context()??null,v=w?.autoColor??a,x=w?.autoStyle??s,S=u??w?.quickBorder,C=p??w?.darkMode,k=d??w?.createTemporaryBorder,E=c??w?.schemeLookup,_=go(e=>{w?.onBorderSelect&&w.onBorderSelect(e),h?.(e),b?.execute(e,r)},[b,h,r]),T=H((e,t)=>{const{children:n,title:o,...r}=e;let a=e.children;return(b?.disabled()||l)&&(a=O("div",{children:a})),O(hb,{command:b,placement:i===ti.Toolbar?"bottom-start":"right-start",disabled:t,...r,children:a})},[b,l]);return O(SO,{ref:t,autoColor:v,darkMode:C,autoStrokeStyle:x,createTemporaryBorder:k,schemeLookup:E,selectedBorder:S,onSelectBorder:_,createTooltip:T,disabled:l||!b||b.disabled(),...g})})),kO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("mergeToggle"),icon:kc(O(Dc,{}))}),O(pb,{...n,command:t.getCommand("mergeHorizontal"),icon:kc(O(Rc,{}))}),O(pb,{...n,command:t.getCommand("mergeVertical"),icon:kc(O(Oc,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("unmerge"),icon:kc(O(Lc,{}))})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:a,icon:kc(O(Dc,{})),...l})})),EO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("freezeToggle"),icon:kc(O(zc,{}))}),O(pb,{...n,command:t.getCommand("freezeToggleHorizontal"),icon:kc(O(Ac,{}))}),O(pb,{...n,command:t.getCommand("freezeToggleVertical"),icon:kc(O(Pc,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("unfreeze"),icon:O(Lc,{})})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,createPopupPanel:a,quickCommand:"freezeToggle",label:"Freeze Panes",tooltip:"Freeze a portion of the sheet to keep it visible while you scroll through the rest of the sheet.\\n\\nUseful for viewing data in other parts of your worksheet without losing your headers or labels.",icon:O(Ic,{}),...l})})),_O=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("find"),icon:kc(O(Ah,{}))}),O(pb,{...n,command:t.getCommand("findReplace"),icon:kc(O(Vh,{}))}),O(pb,{...n,command:t.getCommand("goto"),icon:kc(O($h,{}))})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,createPopupPanel:a,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:kc(O(Ah,{})),...l})})),TO=z(j((e,t)=>{const{command:n,commandHook:r,showQuickButtons:i=!!e.commands,commands:l,fontSizes:a=u_.DefaultFontSizes,disabled:s=!1,parentFloat:c,icon:d,label:u,sx:h,...p}=e;Jr(n);const f=()=>n?.state()?.toString()||"11",[m,g]=N(f),y=go(()=>{const e=parseFloat(m);isNaN(e)?g(f()):parseFloat(f())!==e&&n.execute(e,r)},[f,n,m,r]);V(()=>{g(f())},[n?.state()]);const b=$(()=>{if(!r)return null;const e={...r};return delete e.beforeExecute,e},[r]),w=ei(l,["formatFontSizeIncrease","formatFontSizeDecrease"]),v=$(()=>w?L(ne,{className:Et("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[O(pb,{command:w[0],commandHook:b,icon:kc(O(Ju,{}))}),O(pb,{command:w[1],icon:kc(O(Qu,{}))})]}):null,[w]),x=Tx(),S=$(()=>`${o.getSharedMeasurer()("12.3",Math.round(x.typography.fontSize),x.typography.fontFamily).width}px`,[x]),C=H(e=>{const{onMouseDown:t,onMouseUp:o,...r}=e;return O(oe,{component:"div",...r,disableRipple:!0,children:O(re,{inputMode:"numeric",disabled:s||!n||n.disabled(),inputProps:{name:"font-input",autoComplete:"off",tabIndex:0,type:"number",maxLength:4,max:409,min:2},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.text.icon??e.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.error.main}`},"::after":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,width:S,color:e=>e.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:m,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===io.Enter)f()!==m&&(e.stopPropagation(),e.preventDefault(),y());else if(e.which===io.Escape)f()!==m&&(g(f()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault());else{if(e.key.match("[-]"))return e.stopPropagation(),void e.preventDefault();if(e.key.match("[0-9.]")&&(m+e.key).length>4)return e.stopPropagation(),void e.preventDefault();if(e.which===io.Space)return void e.preventDefault()}},onBlur:()=>{y()},onChange:e=>{if(e.target.value.length>4)return e.stopPropagation(),void e.preventDefault();g(e.target.value)}})})},[m,s,n]),k=H(e=>{const t=e=>{n?.execute(e,r)},o=n?.state(),i=[];for(let e=0;e<a.length;e++){const r=a[e]===o;i.push(O(om,{selected:r,icon:r?O(cm,{}):void 0,disabled:s||!n||n.disabled(),onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:n=>{0===n.button&&t(a[e])},onKeyDown:n=>{n.keyCode!==io.Enter&&n.keyCode!==io.Space||t(a[e])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:O(ne,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:a[e]})},"fontSize-"+e))}const l=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[v,O(Mp,{orientation:"horizontal"}),O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})]});return Mf({...e,children:l})},[s,n?.state(),r]);return O(im,{ref:t,sx:{...h},tabIndex:-1,outlined:!0,disabled:s,parentFloat:c,createPopupPanel:k,createTooltip:({children:e},t)=>O(Jf,{label:n?.label(),description:n?.description(),disabled:t||n?.disabled(),children:e}),createQuickButton:C,...p})})),MO=z(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:l,...a}=e;return O(om,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...l},disabled:n,selected:t,icon:t?O(cm,{}):void 0,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&r(i.numberFormat)},onKeyDown:e=>{e.keyCode!==io.Enter&&e.keyCode!==io.Space||r(i.numberFormat)},...a,children:L(ne,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[L(se,{component:"div",children:[i.formatType,i.formatType===u.Type.Custom?"…":""]}),O(se,{variant:"caption",component:"div",sx:{color:e=>ut(e.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),DO=z(j((e,t)=>{const{commands:n,commandHook:r,scope:i,sx:l,disabled:a=!1,parentFloat:s,...c}=e,d=ei(n,["formatNumberFormat"])[0],h=d?.state()?u.Styles.lookupStyle(d?.state()).formatType:u.Type.General,p=$(()=>{if(!r)return null;const e={...r};return delete e.beforeExecute,e},[r]),f=H((e,t)=>{const n=e=>{r?.beforeExecute?.(d,d?.state()),d.execute(e,r),r?.onExecute?.(d,d?.state())},o=d?.context()(),l=u.Styles.lookupPrimary(),s=[];for(let e=0;e<l.length;e++){let t="";if(o&&!o.isEmpty())try{t=o.getNumberFormat(l[e].numberFormat).displayText}catch(e){console.warn(e)}""===t&&l[e].formatType===u.Type.General&&(t="No specific format");const r=l[e].formatType===h;s.push(O(MO,{selected:r,disabled:a||!d||d.disabled(),formattedValue:t,handleSetFormat:n,format:l[e]},l[e].formatType))}const f={numberFormat:"",formatType:u.Type.Custom},m=h===u.Type.Custom,g=O(MO,{selected:m,disabled:a||!d||d.disabled(),formattedValue:m?o.getNumberFormat().displayText:"",handleSetFormat:()=>{r?.beforeExecute?.(d,d?.state()),t.getCommand("formatNumberDialog")?.execute(d?.state()),r?.onExecute?.(d,d?.state())},format:f,sx:{flex:"0",width:"100%"}},u.Type.Custom),y=L(ne,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:e=>e.stopPropagation(),children:[O(pb,{command:t.getCommand("formatNumberFormatAccountingStyle"),commandHook:p,scope:i,icon:O(Wc,{})}),O(pb,{command:t.getCommand("formatNumberFormatPercentStyle"),commandHook:p,scope:i,icon:O(Bc,{})}),O(pb,{command:t.getCommand("formatNumberFormatCommaStyle"),commandHook:p,scope:i,icon:O(Hc,{})}),O(pb,{command:t.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:p,scope:i,icon:kc(O($c,{}))}),O(pb,{command:t.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:p,scope:i,icon:kc(O(jc,{}))})]}),b=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[y,O(Mp,{orientation:"horizontal"}),O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:s}),O(Mp,{orientation:"horizontal"}),g]});return Mf({...e,children:b})},[d?.context(),d?.state(),r,i]),m=Tx(),g=$(()=>{const e=u.Type.MediumTime;return`${o.getSharedMeasurer()(e,Math.round(m.typography.fontSize),m.typography.fontFamily).width}px`},[m]);return O(mb,{ref:t,commands:n,sx:l,outlined:!0,disabled:a,parentFloat:s,createPopupPanel:f,createTooltip:({children:e},t)=>O(Jf,{label:d?.label(),description:d?.description(),disabled:t,children:e}),icon:O(ne,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,color:e=>e.palette.text.secondary,fontFamily:e=>e.typography.fontFamily,width:g},children:O(ne,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:h})}),...c})})),RO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"clear",disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("clearAll"),icon:O(Nl,{})}),O(pb,{...n,command:t.getCommand("clearFormats"),icon:kc(O(Vl,{}))}),O(pb,{...n,command:t.getCommand("clearContents"),icon:kc(O(Fl,{}))}),O(pb,{...n,command:t.getCommand("clearComments")}),O(pb,{...n,command:t.getCommand("clearHyperlinks")})]});return Mf({...e,children:r})},[i,o,r]);return O(mb,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Clear",tooltip:"Clear everything in the cell, or remove just the formatting or contents.",createPopupPanel:a,icon:O(Nl,{}),...l})})),OO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"fill",disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("fillDown"),icon:kc(O(Pu,{}))}),O(pb,{...n,command:t.getCommand("fillRight"),icon:kc(O(Pu,{sx:{transform:"rotate(270deg)"}}))}),O(pb,{...n,command:t.getCommand("fillUp"),icon:kc(O(Pu,{sx:{transform:"rotate(180deg)"}}))}),O(pb,{...n,command:t.getCommand("fillLeft"),icon:kc(O(Pu,{sx:{transform:"rotate(90deg)"}}))})]});return Mf({...e,children:r})},[i,o,r]);return O(mb,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:a,icon:kc(O(Pu,{})),...l})})),LO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:a=!0,showQuickButton:s=!0,variant:c=ti.Toolbar,...d}=e,u=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],h=ei(n,u),{singleCommand:p,allDisabled:f}=$(()=>{let e=null,t=0;for(let n=0;n<h.length;n++)h[n]&&!h[n]?.disabled()&&(a&&c===ti.Menuitem&&(e=0===t?h[n]:null),t++);return{singleCommand:e,allDisabled:0===t}},[h]),m=$(()=>{const e=new Map;return e.set("insertCellsShiftDown",kc(O(zu,{}))),e.set("insertCellsShiftRight",kc(O(zu,{sx:{transform:"rotate(270deg)"}}))),e.set("insertRows",kc(O(Nu,{}))),e.set("insertColumns",kc(O(Fu,{}))),e},[]),g=H((e,t)=>{let n=null;const r={variant:ti.Menuitem,commandHook:o,scope:"insertCells",disabled:i};l||(n=L(I,{children:[O(Mp,{orientation:"horizontal"}),O(pb,{...r,command:t.getCommand("addSheet"),icon:kc(O(Dl,{}))})]}));const a=L(I,{children:[O(pb,{...r,command:h[0],icon:m.get(u[0])}),O(pb,{...r,command:h[1],icon:m.get(u[1])}),O(Mp,{orientation:"horizontal"}),O(pb,{...r,command:h[2],icon:m.get(u[2])}),O(pb,{...r,command:h[3],icon:m.get(u[3])}),n]});return Mf({...e,children:a})},[i,h,o,r,m]);return p?O(pb,{ref:t,variant:c,commandHook:o,disabled:i,command:p,icon:m.get(p.key()),...d}):O(mb,{ref:t,variant:c,quickCommand:"insertCells",commands:n,commandHook:o,scope:r,disabled:i||f,tooltip:L(I,{children:[O("span",{children:"Insert new cells, rows or columns to your workbook."}),O("br",{}),O("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:g,icon:kc(O(Fu,{})),...d})})),IO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:a=!0,showQuickButton:s=!0,variant:c=ti.Toolbar,...d}=e,u=ei(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:h,allDisabled:p}=$(()=>{let e=null,t=0;for(let n=0;n<u.length;n++)u[n]&&!u[n]?.disabled()&&(a&&c===ti.Menuitem&&(e=0===t?u[n]:null),t++);return{singleCommand:e,allDisabled:0===t}},[u]),f=$(()=>{const e=new Map;return e.set("deleteCellsShiftUp",kc(O(ju,{sx:{transform:"rotate(0deg)"}}))),e.set("deleteCellsShiftLeft",kc(O(ju,{sx:{transform:"rotate(270deg)"}}))),e.set("deleteRows",kc(O(Uu,{}))),e.set("deleteColumns",kc(O(Wu,{}))),e},[]),m=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let r=null;l||(r=L(I,{children:[O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("deleteSheet"),icon:kc(O(Dl,{}))})]}));const a=L(I,{children:[O(pb,{...n,command:t.getCommand("deleteCellsShiftUp"),icon:f.get("deleteCellsShiftUp")}),O(pb,{...n,command:t.getCommand("deleteCellsShiftLeft"),icon:f.get("deleteCellsShiftLeft")}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("deleteRows"),icon:f.get("deleteRows")}),O(pb,{...n,command:t.getCommand("deleteColumns"),icon:f.get("deleteColumns")}),r]});return Mf({...e,children:a})},[i,o,r,f]);return h?O(pb,{ref:t,variant:c,commandHook:o,disabled:i,command:h,icon:f.get(h.key()),...d}):O(mb,{ref:t,variant:c,quickCommand:"deleteCells",commands:n,commandHook:o,scope:r,disabled:i||p,tooltip:L(I,{children:[O("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),O("br",{}),O("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:m,icon:kc(O(Wu,{})),...d})})),AO=z(j((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:l=!1,variant:a=ti.Toolbar,quickColor:s,panelProps:c,isSplit:d=!1,darkMode:u,icon:h,...p}=e,{autoColor:f,schemeLookup:m,recentColors:g,...y}=c;if(p.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");Jr(n);const b=n?.context();let w=s??b?.quickColor;d&&!w&&(w=new i("transparent"));const v=f??b?.autoColor,x=m??b?.schemeLookup,S=g??b?.recentColors,C=u??b?.darkMode,k=$(()=>({autoColor:v,schemeLookup:x,recentColors:S,darkMode:C,...y}),[v,x,S,C]),E=go((e,t)=>{e&&t&&b?.addRecentColor&&b.addRecentColor(e),b?.onColorSelect&&b.onColorSelect(e),r?.(e,t),n?.execute(e,o)},[n,r,o,b]),_=H((e,t)=>{const{children:o,title:r,...i}=e;let s=e.children;return(n?.disabled()||l)&&(s=O("div",{children:s})),O(hb,{command:n,placement:a===ti.Toolbar?"bottom-start":"right-start",disabled:t,...i,children:s})},[n,l]);return O(bO,{ref:t,panelProps:k,icon:h,quickColor:w,selectedColor:n?.state(),onSelectColor:E,variant:a===ti.Menuitem?Tf.Menuitem:Tf.Toolbar,createTooltip:_,label:n?.label(),disabled:l||!n||n.disabled(),compareRGB:!0,darkMode:C,...p})}));AO.displayName="ColorCommandButton";const PO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...a}=e,s=ei(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),c=H((e,t)=>{const n={variant:ti.Menuitem,parentFloat:e.floatReference,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("gridlinesToggle")}),O(AO,{...n,command:t.getCommand("sheetViewFormatGridlinesColor"),icon:O(_c,{}),panelProps:{disableAlpha:!0}}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("sheetViewToggleGridlinesColumns")}),O(pb,{...n,command:t.getCommand("sheetViewToggleGridlinesRows")})]});return Mf({...e,children:l})},[i,o]);return O(mb,{ref:t,parentFloat:l,quickCommand:s[0]?.key(),commands:n,commandHook:o,createPopupPanel:c,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:O(gb,{command:s[0],scope:"view"}),...a})})),zO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"sort",disabled:i},r=t.getCommand("sortCustom"),l=L(I,{children:[O(pb,{...n,command:t.getCommand("sortAscending"),icon:kc(O(Xu,{}))}),O(pb,{...n,command:t.getCommand("sortDescending"),icon:kc(O(Ku,{}))}),r?O(pb,{...n,command:r,icon:kc(O(Yu,{}))}):null,O(Mp,{orientation:"horizontal"}),O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterToggle"),icon:kc(O(Fc,{}))}),O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterClear"),icon:kc(O(Nc,{}))}),O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterReapply"),icon:kc(O(Vc,{}))})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Sort",tooltip:L(I,{children:[O("span",{children:"Organize your data so it's easier to analyze."}),O("br",{}),O("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:a,icon:kc(O(Xu,{})),...l})})),FO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"sort",disabled:i},r=L(I,{children:[O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterToggle"),icon:kc(O(Fc,{}))}),O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterClear"),icon:kc(O(Nc,{}))}),O(pb,{...n,scope:"filter",command:t.getCommand("autoFilterReapply"),icon:kc(O(Vc,{}))})]});return Mf({...e,children:r})},[i,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Filter",tooltip:L(I,{children:[O("span",{children:"Organize your data so it's easier to analyze."}),O("br",{}),O("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:a,icon:kc(O(Fc,{})),...l})})),NO=z(j((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:l,scope:a,sx:s,disabled:c,commands:d,...u}=e,h=[n];!r&&i&&h.push("redo");const p=ei(d,h),f=p[0],m=p[1],g=l??f?.context?.()?.undoManager;let y=c;c||(y=!f||f.disabled(),m&&!m.disabled()&&(y=!1));const[b,w]=N(0),v=H((e,t)=>{let n=0===b?"Cancel":`${f.label()} ${b} Action${1===b?"":"s"}`,o=!1;g||(o=!0),o||(o=i?!g.hasRedo()&&!g.hasUndo():!g.hasRedo());const l=e=>{f.execute(e)},a=O(om,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:o?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{w(0)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&l(b)},onKeyDown:e=>{e.isDefaultPrevented()||e.keyCode!==io.Enter&&e.keyCode!==io.Space||l(b)},children:O(se,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:n})});if(o)return a;const s=r?g?.getRedoDescriptions():g?.getUndoDescriptions(),c=[];for(let e=0;e<s.length;e++){const t=s[e];c.push(O(om,{sx:{maxWidth:"360px",display:"flex"},icon:O(Dl,{}),disabled:y,selected:e<b,onMouseEnter:()=>{w(e+1)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:t=>{0===t.button&&l(e+1)},onKeyDown:t=>{t.isDefaultPrevented()||t.keyCode!==io.Enter&&t.keyCode!==io.Space||l(e+1)},children:L(ne,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[O(se,{component:"div",children:t}),O(Dl,{})]})},`action:${e}`))}let d=null;if(!r&&i){const n={scope:"undo",commands:t,variant:ti.Menuitem,parentFloat:e.floatReference};d=[],d.push(O(NO,{...n,quickCommand:"redo",isRedo:!0},"nested:redo")),g.hasRedo()&&g.hasUndo()&&d.push(O(Mp,{orientation:"horizontal"},"action:redo-div"))}const u=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{e.closeFloatAll()},onMouseLeave:()=>{w(0)},children:[d,O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:c}),O(Mp,{orientation:"horizontal"}),a]});return Mf({...e,children:u})},[f?.context(),f?.state(),a,g,b,y]);return O(mb,{ref:t,commands:d,quickCommand:n,scope:a,disabled:y,label:f?.label()??(r?"Redo":"Undo"),tooltip:O(I,{children:O("span",{children:`${f?.label()??"No"} last actions.`})}),createPopupPanel:v,icon:o??kc(O(r?mp:fp,{})),selected:!1,...u})})),VO=C.getFontList(),HO=new Map;for(let e=0;e<VO.length;e++)HO.set(VO[e].fontRef.getFamily(),VO[e]);const BO=z(j((e,t)=>{const{command:n,commandHook:r,sx:i,disabled:l=!1,parentFloat:a,icon:s,label:c,...d}=e;Jr(n);const u=n?.state(),h=Tx(),p=$(()=>`${o.getSharedMeasurer()("Times New Roman",Math.round(h.typography.fontSize),h.typography.fontFamily).width}px`,[h]),f=H(e=>{const t=e=>{n?.execute(e,r)},o=[];for(let e=0;e<VO.length;e++)o.push({key:VO[e].fontRef.getFamily(),description:VO[e].fontRef.getFamily()});HO.get(u)||o.unshift({key:u,description:u});const i=[];for(let e=0;e<o.length;e++){const r=o[e].key===u;i.push(O(om,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:r,disabled:l||!n||n.disabled(),icon:r?O(cm,{}):void 0,onMouseUp:n=>{0===n.button&&t(o[e].key)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onKeyDown:n=>{n.keyCode!==io.Enter&&n.keyCode!==io.Space||t(o[e].key)},children:O(ne,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:O(se,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>o[e]?.key},children:o[e].description})})},e+""+o[e].key))}const a=O(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...d,children:O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:i})});return Mf({...e,children:a})},[l,n?.state()]);return O(im,{ref:t,sx:{...i},outlined:!0,disabled:l,parentFloat:a,createPopupPanel:f,createTooltip:({children:e},t)=>O(Jf,{label:n?.label(),description:n?.description(),disabled:t,children:e}),icon:O(ne,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:e=>`${Math.round(e.typography.fontSize)}px`,fontFamily:e=>e.typography.fontFamily,color:e=>e.palette.text.secondary,width:p},children:O(ne,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:u})}),...d})})),$O=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),s=$(()=>{for(let e=0;e<a.length;e++)if(a[e]?.state())return a[e].key();return a[0]?.key()},[a]),c=$(()=>{const e=new Map;return e.set("formatStrikeThroughToggle",kc(O(eh,{}))),e.set("formatSuperscriptToggle",kc(O(th,{}))),e.set("formatSubscriptToggle",kc(O(nh,{}))),e},[]),d=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"textEffects",disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("formatStrikeThroughToggle"),icon:c.get("formatStrikeThroughToggle")}),O(pb,{...n,command:t.getCommand("formatSuperscriptToggle"),icon:c.get("formatSuperscriptToggle")}),O(pb,{...n,command:t.getCommand("formatSubscriptToggle"),icon:c.get("formatSubscriptToggle")})]});return Mf({...e,children:r})},[i,o,r]);return O(mb,{ref:t,quickCommand:s,commands:n,commandHook:o,createPopupPanel:d,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:c.get(s)??kc(O(eh,{})),...l})})),jO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),s=$(()=>{for(let e=0;e<a.length;e++)if(a[e]?.state())return a[e].key();return a[0]?.key()},[a]),c=$(()=>{const e=new Map;return e.set("formatUnderlinedToggle",kc(O(oh,{}))),e.set("formatUnderlinedDoubleToggle",kc(O(rh,{}))),e.set("formatUnderlinedAccountingToggle",kc(O(ih,{}))),e.set("formatUnderlinedAccountingDoubleToggle",kc(O(lh,{}))),e},[]),d=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"underline",disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("formatUnderlinedToggle"),icon:kc(O(oh,{}))}),O(pb,{...n,command:t.getCommand("formatUnderlinedDoubleToggle"),icon:kc(O(rh,{}))}),O(pb,{...n,command:t.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:kc(O(ih,{}))}),O(pb,{...n,command:t.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:kc(O(lh,{}))})]});return Mf({...e,children:r})},[i,o,r]);return O(mb,{ref:t,quickCommand:s,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:d,icon:c.get(s)??kc(O(oh,{})),...l})})),WO=z(j((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:l=!0,disabled:a=!1,...s}=e,c=go((e,t)=>{const n={variant:ti.Menuitem,commandHook:r,scope:"paste",disabled:a},o=[];return l&&(o.push(Z(pb,{...n,command:t.getCommand("paste"),key:"paste",icon:O(Eu,{})})),o.push(O(Mp,{orientation:"horizontal"},"paste-div"))),o.push(Z(pb,{...n,command:t.getCommand("pasteValues"),key:"pasteValues",icon:kc(O(_u,{}))})),o.push(Z(pb,{...n,command:t.getCommand("pasteFormats"),key:"pasteFormats",icon:kc(O(Tu,{}))})),o.push(Z(pb,{...n,command:t.getCommand("pasteFormulas"),key:"pasteFormulas",icon:kc(O(Mu,{}))})),o.push(Z(pb,{...n,command:t.getCommand("pasteTranspose"),key:"pasteTranspose",icon:kc(O(Du,{}))})),o.push(Z(pb,{...n,command:t.getCommand("pasteLinks"),key:"pasteLinks",icon:kc(O(Ru,{}))})),Mf({...e,children:o})},[a,r,i,l]);return O(mb,{ref:t,commands:o,commandHook:r,scope:i,createPopupPanel:c,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:O(Eu,{}),...s})})),UO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...a}=e,s=ei(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),c=H((e,t)=>{const n={variant:ti.Menuitem,parentFloat:e.floatReference,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...n,command:t.getCommand("sheetViewToggleShowHeadings")}),O(pb,{...n,command:t.getCommand("sheetViewToggleShowHeadingsNumeric")}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("sheetViewToggleShowHeadingColumns")}),O(pb,{...n,command:t.getCommand("sheetViewToggleShowHeadingRows")})]});return Mf({...e,children:l})},[i,o,r]);return O(mb,{ref:t,parentFloat:l,quickCommand:s[0]?.key(),commands:n,commandHook:o,createPopupPanel:c,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:O(gb,{command:s[0],scope:"view"}),...a})})),qO=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...l}=e,a=H(e=>{const t={variant:ti.Menuitem,parentFloat:e.floatReference,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...t,command:n.getCommand("workbookViewToggleShowFormulaBar")}),O(pb,{...t,command:n.getCommand("workbookViewToggleShowTabs")}),O(pb,{...t,command:n.getCommand("workbookViewToggleShowStatusBar")}),O(Mp,{orientation:"horizontal"}),O(pb,{...t,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),O(pb,{...t,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return Mf({...e,children:l})},[i,n,o,r]);return O(mb,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:a,icon:O(gb,{icon:null,label:"Workbook View"}),...l})})),ZO=z(j((t,n)=>{const{value:o,cellStyle:r,styles:i,createTemporaryCell:l,bodyStyle:a,sx:s,borderProps:c,disabled:d,...u}=t,h=$(()=>l({value:o,style:r}),[o,r,l]),p=$(()=>h.getStyle(),[h,a]),f=$(()=>p.getFill().toCSS(a?.darkMode??!1),[p]),m=p.getInsets(),g=p.getFont(),y=H(()=>p.getBorder(),[p]);return O(ne,{ref:n,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:a?.fill,filter:d?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...f},"& .text":{flex:"1 1 100%",...g.toCSS(a?.darkMode??!1,1),boxSizing:"border-box",padding:`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`,margin:"0px",outline:"none",resize:"none",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"baseline",textDecoration:g.toCSS().textDecoration,textAlign:e.toCSSHorizontalTextAlign(h.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...s},...u,children:O(N_,{getBorderAt:y,darkMode:a?.darkMode??!1,rowCount:1,columnCount:1,style:{display:"flex",flex:"1 1 100%",width:"100%",maxWidth:"100%",justifyContent:"start",alignItems:"stretch",...c?.style},...c,children:O(ne,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:O(ne,{className:"text",children:o})})})})})),GO=z(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:l,createTemporaryCell:a,parentFloat:s,commands:c,disabled:d,commandHook:u,...h}=e,p=H(e=>{const t={variant:ti.Menuitem,commandHook:u,context:"cellStyle"},o=L(I,{children:[O(pb,{...t,sx:{fontWeight:550},command:c.getCommand("formatCellStyle"),commandState:n,disabled:d,icon:kc(O(gh,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...t,command:c.getCommand("modifyCellStyle"),commandState:{named:n}}),O(pb,{...t,command:c.getCommand("deleteCellStyle"),commandState:n,disabled:d||n?.getName()===k.BuiltInName.Normal})]});return Mf({...e,children:O(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:o})})})},[]),f=n?.getName()===o?.getName();let m=O(tm,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${f?e.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName(),placement:"bottom-start"},disabled:d,icon:null,onClick:()=>{l?.(n)},...h,children:O(ZO,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:a,bodyStyle:i})},n.getName());return r&&(m=O(Zf,{label:n.getName(),parentFloat:s,createPopupPanel:p,children:m})),m}),KO=z(j((e,t)=>{const{commands:n,command:r,commandHook:i,selectedNamed:l,onSelectNamed:a,disabled:s=!1,bodyStyle:c,usePreviewIcon:d=!0,...u}=e;Jr(r);const h=r?.context(),p=h?.styles,f=l??h?.named(),m=c??h?.bodyStyle(),g=go(e=>{a?.(e),r?.execute(e,i)},[r,a,i]),y=H((e,t)=>{const o={onSelectNamed:g,styles:p(),parentFloat:e.floatReference},r=p().getCustomNamed(),l=new Map,a=[];for(let e=0;e<r.length;e++)l.set(r[e].getName(),r[e]),null===p().getNamed(r[e].getName()).getBuiltInID()&&a.push(r[e].getName());const c=e=>{let t=l.get(e);return t||(t=p().getNamed(e)),!t||t.isHidden()?null:O(GO,{namedStyle:t,selectedNamed:f,bodyStyle:h.bodyStyle(),createTemporaryCell:h.createTemporaryCell,commands:n,commandHook:i,...o},e)},d=(e,t,n=!0)=>{const o=[];for(let e=0;e<t.length;e++){const n=c(t[e]);n&&o.push(n)}return 0===o.length?null:L(ne,{children:[n?O(Mp,{orientation:"horizontal"}):null,O(rm,{children:e},e+"-header"),O(ne,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:o},e+"-presets")]},e)},u=(e,t)=>{const n=[];for(let e=0;e<t.length;e++){const o=c(t[e]);o&&n.push(o)}return 0===n.length?null:O(ne,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:n},e+"-presets")},m=[];m.push(d("Custom",a,!1)),m.push(d("Good, Bad and Neutral",[k.BuiltInName.Normal,k.BuiltInName.Bad,k.BuiltInName.Good,k.BuiltInName.Neutral],a.length>0)),m.push(d("Data and Model",[k.BuiltInName.Calculation,k.BuiltInName.CheckCell,k.BuiltInName.ExplanatoryText,k.BuiltInName.FollowedHyperlink,k.BuiltInName.Hyperlink,k.BuiltInName.Input,k.BuiltInName.LinkedCell,k.BuiltInName.Note,k.BuiltInName.Output,k.BuiltInName.WarningText])),m.push(d("Titles and Headings",[k.BuiltInName.Heading1,k.BuiltInName.Heading2,k.BuiltInName.Heading3,k.BuiltInName.Heading4,k.BuiltInName.Title,k.BuiltInName.Total]));let y=[];var b,w;return y.push(u("Accent 1",[k.BuiltInName.Accent1_20,k.BuiltInName.Accent1_40,k.BuiltInName.Accent1_60,k.BuiltInName.Accent1])),y.push(u("Accent 2",[k.BuiltInName.Accent2_20,k.BuiltInName.Accent2_40,k.BuiltInName.Accent2_60,k.BuiltInName.Accent2])),y.push(u("Accent 3",[k.BuiltInName.Accent3_20,k.BuiltInName.Accent3_40,k.BuiltInName.Accent3_60,k.BuiltInName.Accent3])),y.push(u("Accent 4",[k.BuiltInName.Accent4_20,k.BuiltInName.Accent4_40,k.BuiltInName.Accent4_60,k.BuiltInName.Accent4])),y.push(u("Accent 5",[k.BuiltInName.Accent5_20,k.BuiltInName.Accent5_40,k.BuiltInName.Accent5_60,k.BuiltInName.Accent5])),y.push(u("Accent 6",[k.BuiltInName.Accent6_20,k.BuiltInName.Accent6_40,k.BuiltInName.Accent6_60,k.BuiltInName.Accent6])),m.push((b="Themed Cell Styles",w=y,L(ne,{children:[O(Mp,{orientation:"horizontal"}),O(rm,{children:b},b+"-header"),O(ne,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:w},b+"-presets")]},b))),m.push(d("Number Format",[k.BuiltInName.Comma,k.BuiltInName.Comma0,k.BuiltInName.Currency,k.BuiltInName.Currency0,k.BuiltInName.Percent])),L(ne,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:e=>`${e.shape.borderRadius}px`,paddingBottom:e=>`${e.shape.borderRadius}px`},children:[O(ne,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:m}),O(Mp,{orientation:"horizontal"}),O(pb,{variant:ti.Menuitem,commandState:f,command:t.getCommand("newCellStyle"),context:"styles",commandHook:i,disabled:s,icon:kc(O(yh,{}))})]})},[f,p?.().getTheme(),m]),b=go(e=>{const t=18/o.getDeviceScale(),n=h?.createTemporaryCell(e);return n.getStyle().getFont().getSize()<=t?n:n.createTemporaryCell({style:{font:{size:t}}})},[h?.createTemporaryCell]),w=s||!r||r.disabled(),v=$(()=>h&&d?O(ZO,{value:f?.getName()??"Custom",cellStyle:f?{named:f.getName()}:void 0,styles:h.styles(),createTemporaryCell:b,bodyStyle:h.bodyStyle(),className:"outline-hover",disabled:w,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:e=>`1px solid ${e.palette.action.hover}`},borderProps:{}}):kc(O(gh,{})),[f,m,w]);return O(mb,{ref:t,createPopupPanel:y,outlined:d,commands:n,createTooltip:({children:e},t)=>O(Jf,{label:r?.label(),description:r?.description(),disabled:t,children:e}),selected:!1,disabled:w,label:r?.label(),icon:v,...u})})),XO="_sheetxl-reset_ods65_1",YO=10,JO=z(j((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:l,disabled:a,className:s,forceThinBorder:c,cellHeight:d=YO,isLive:u=!1,...h}=e,p=Math.ceil(1.3*d),[f,m]=B(e=>e+1,0);V(()=>{if(u&&o)return o.addListeners({onAnyChange:()=>{m()}})},[o,u]);const g=$(()=>{let e=o?.toJSON()??{};const t={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return e&&(e.styleOptions={...e.styleOptions,name:r.getName()}),e.ref=t,new E({initialAnchor:t,json:e,styles:n})},[f,o,r,n]),y=$(()=>{const e=[];for(let t=0;t<5;t++)for(let n=0;n<5;n++){const o=g.getStyleAt({colIndex:n,rowIndex:t});e.push(o)}return e},[g]),b=$(()=>{const e=(e,t,n)=>{let o=n.getFill().toCSS(i?.darkMode??!1);const r=p-(t<4?1:0),l=d-(e<4?1:0),a=n.getFont().getFill().toCSS(i?.darkMode??!1);return o={...o,position:"absolute",boxSizing:"border-box",left:t*(p-1),top:e*(d-1),width:r,height:l},O("td",{className:`table-style-fill ${e}-${t}`,style:o,children:O("div",{className:`table-style-text ${e}-${t}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(r-6)/2,top:(l-1)/2,borderTop:`1px solid ${a}`}})},`${e}-${t}`)},t=[];for(let n=0;n<5;n++){const o=[];for(let t=0;t<5;t++){const r=y[5*n+t];o.push(e(n,t,r))}t.push(O("tr",{children:o},n))}return t},[g,r,i]),w=H((e,t)=>y[t].getBorder()??null,[y]);return O(ne,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:a?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...l},...h,children:O(N_,{getBorderAt:w,rowCount:5,columnCount:5,forceThinBorder:c,width:5*(p-1)+1,height:5*(d-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:O("table",{className:Et(s,"sheetxl-table-preview",XO),style:{borderCollapse:"collapse",width:5*(p-1)+1,height:5*(d-1)+1},children:O("tbody",{children:b})})})})})),QO=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},eL=z(j((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:l,style:a,className:c,canvas:d,...u}=e,h=$(()=>{const e=n.toJSON(),t={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return e.styleOptions={...e.styleOptions,name:o.getName()},e.ref=t,new E({initialAnchor:t,json:e,styles:r})},[n,o,r]),p=$(()=>{const e=[];for(let t=0;t<5;t++)for(let n=0;n<5;n++){const o=h.getStyleAt({colIndex:n,rowIndex:t});e.push(o)}return e},[h]),f=$(()=>{let e=d;if(d||(e=document.createElement("canvas")),!e)return null;61!==e.width&&(e.width=61),46!==e.height&&(e.height=46);const t=e.getContext("2d",{alpha:!1});if(!t)return null;const n=12,o=i?.darkMode??!1;for(let e=0;e<5;e++)for(let r=0;r<5;r++){const l=p[5*e+r].getFill();let a=i?.fill;l.getType()===s.Type.Solid?a=l.getColor().toCSS(o,!1):l.getType()===s.Type.Gradient?a=l.getStops[0]?.color.toCSS(o,!1):l.getType()===s.Type.Pattern&&(a=l.getForeground().toCSS(o,!1)),t.fillStyle=a;const c=r*n,d=9*e;t.fillRect(c,d,13,10)}t.lineWidth=1;for(let e=0;e<5;e++)for(let r=0;r<5;r++){const i=p[5*e+r],l=r*n,a=9*e,s=i.getBorder();if(!s.isEmpty()){const r=s.getLeft();r.isNone()||(t.strokeStyle=r.getColor().toCSS(o,!1),QO(t,l,a,l,a+9));const i=s.getTop();i.isNone()||(t.strokeStyle=i.getColor().toCSS(o,!1),QO(t,l,a,l+n,9*e));const c=s.getRight();c.isNone()||(t.strokeStyle=c.getColor().toCSS(o,!1),QO(t,l+n,a,l+n,a+9));const d=s.getBottom();d.isNone()||(t.strokeStyle=d.getColor().toCSS(o,!1),QO(t,l,a+9,l+n,a+9))}t.strokeStyle=i.getFont().getFill().toCSS(o,!1);const c=4,d=2.5;QO(t,r*n+d,9*e+c,r*n+d+7,9*e+c)}return`url(${e.toDataURL()})`},[d,h,o,i]);return O("div",{ref:t,className:Et("table-style-preview",c),style:{backgroundImage:f,width:61,height:46,...a},...u})})),tL=z(j((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:l,onShowTotalRowChange:a,showFilterButton:s,onShowFilterButtonChange:c,sx:d,disabled:u,...h}=e;return L(ne,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap",userSelect:"none",pt:1,pb:1,"& .MuiFormControlLabel-root":{marginLeft:e=>`${e.spacing(2)}`,marginRight:e=>`${e.spacing(2)}`},"& .MuiCheckbox-root":{padding:e=>`${e.spacing(.5)}`},...d},...h,ref:t,children:[i&&O(xe,{control:O(Se,{checked:r??!1,indeterminate:null==r,onChange:()=>i(!r),disabled:u||null==r}),label:"Header Row",labelPlacement:"end"}),a&&O(xe,{control:O(Se,{checked:l??!1,indeterminate:null==l,onChange:()=>a(!l),disabled:u||null==l}),label:"Total Row",labelPlacement:"end"}),O(xe,{control:O(Se,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:u||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),O(xe,{control:O(Se,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:u||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),O(xe,{control:O(Se,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:u||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),O(xe,{control:O(Se,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:u||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),c&&O(xe,{control:O(Se,{checked:s??!1,indeterminate:null==s,disabled:u||!n||null==s,onChange:()=>c(!s)}),label:"Filter Button",labelPlacement:"end"})]})})),nL=z(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:l=!0,bodyStyle:a,parentFloat:s,commands:c,disabled:d,commandHook:u,useCanvasPreview:h=!0,canvas:p,...f}=e,m=H(e=>{const t={variant:ti.Menuitem,commandHook:u,context:"table"},o=L(I,{children:[O(pb,{...t,command:c.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:d,icon:kc(O(gh,{}))}),O(pb,{...t,sx:{fontWeight:550},command:c.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:d,icon:kc(O(gh,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...t,command:c.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:d}),O(Mp,{orientation:"horizontal"}),O(pb,{...t,command:c.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:d||!n||n.isBuiltIn()})]});return Mf({...e,children:O(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:o})})})},[c]),g=n?.getName()===o,y=$(()=>{const e={table:t,tableStyle:n,styles:i,bodyStyle:a};return h?O(eL,{canvas:p,...e}):O(JO,{...e})},[t,n,i,a]);let b=O(tm,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${g?e.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName()??"None",placement:"bottom-start"},disabled:d,icon:null,onClick:()=>{r?.(n?.getName())},...f,children:y},n.getName());return l&&(b=O(Zf,{label:t.getStyleOptions().name,parentFloat:s,createPopupPanel:m,children:b})),b}),oL=z(j((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:l,disabled:a=!1,bodyStyle:s,usePreviewIcon:c=!1,...d}=e;Jr(o);const u=o?.context(),h=u?.styles,p=i??u?.table?.();let f="insertTable";p&&(f="editTable");const m=$(()=>((e,t)=>{const n={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new E({initialAnchor:n,styles:t,json:{name:"PreviewTable",ref:n,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:e}})})(p?.getStyleOptions(),h?.()),[h?.().getDefaultTableStyle(),p?.getStyleOptions()]),g=p??m,[y,b]=N(g);V(()=>{b(g)},[g]);const w=s??u?.bodyStyle(),v=go(e=>{l?.(e),o?.execute({name:e},r)},[o,l,r]),x=F(null),S=H((e,t)=>{const n={onSelectTableStyleName:v,styles:h(),parentFloat:e.floatReference};x.current||(x.current=document.createElement("canvas"));const o=e=>{const o=h().getTableStyle(e);return o?O(nL,{table:y,tableStyle:o,selectedTableStyleName:y.getStyleOptions().name,bodyStyle:u.bodyStyle(),commands:t,commandHook:r,canvas:x.current,...n},e):null},i=(e,t,n=!0)=>{const r=[];for(let e=0;e<t.length;e++){const n=o(t[e]);n&&r.push(n)}return 0===r.length?null:L(ne,{children:[n?O(Mp,{orientation:"horizontal"}):null,O(rm,{children:e},e+"-header"),O(ne,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:r},e+"-presets")]},e)},l=[],s=h().getCustomTableStyles(),c=[];if(s.length>0){for(let e=0;e<s.length;e++)s[e].isShownInTableStyles()&&c.push(s[e].getName());l.push(i("Custom",c,!1))}const d=[];p&&!p.getStyleOptions().name&&d.push(null);for(let e=0;e<21;e++)d.push("TableStyleLight"+(e+1));l.push(i("Light",d,c.length>0));const f=[];for(let e=0;e<28;e++)f.push("TableStyleMedium"+(e+1));l.push(i("Medium",f));const m=[];for(let e=0;e<11;e++)m.push("TableStyleDark"+(e+1));l.push(i("Dark",m));let g=null;return p&&(g=L(I,{children:[O(Mp,{orientation:"horizontal"}),O(pb,{variant:ti.Menuitem,command:t.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:a,icon:kc(O(Vl,{}))})]})),L(ne,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:e=>`${e.shape.borderRadius}px`,paddingBottom:e=>`${e.shape.borderRadius}px`},children:[O(ne,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:l}),g]})},[h,h?.().getTheme(),w,y]),C=a||!o||o.disabled(),k=$(()=>{if(!u||!c)return kc(O(gh,{}))},[y,w,C]);return O(mb,{ref:t,quickCommand:f,createPopupPanel:S,commands:n,label:o?.label(),commandState:p,commandHook:r,selected:null!==p,createTooltip:({children:e},t)=>O(Jf,{label:o?.label(),description:o?.description(),disabled:t,children:e}),disabled:C,icon:k,...d})})),rL=[];rL.push(pO("Primary Background","bg1")),rL.push(pO("Primary Text","tx1")),rL.push(pO("Secondary Background","bg2")),rL.push(pO("Secondary Text","tx2")),rL.push(pO("Accent 1","accent1")),rL.push(pO("Accent 2","accent2")),rL.push(pO("Accent 3","accent3")),rL.push(pO("Accent 4","accent4")),rL.push(pO("Accent 5","accent5")),rL.push(pO("Accent 6","accent6"));const iL=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:l,...a}=e,s=Tx(),c=$(()=>{let e=[];for(let n=0;n<rL.length;n++){const r=rL[n];e.push(O(uO,{schemeColorLookup:t.schemeLookup(),colorDef:r,darkMode:o,selectedColor:null},n+"-colorDef"))}return O(ne,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:O(ne,{sx:{display:"flex",boxShadow:e=>e.shadows[2]},children:e})})},[t,s]);return O(tm,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:e=>`solid ${r?e.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:e=>`solid ${e.palette.text.primary} 1px !important`}},icon:null,...a,children:L(ne,{sx:{border:e=>`solid ${e.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:e=>r?e.palette.text.primary:void 0,"&:hover:not([disabled])":{color:e=>e.palette.text.primary}},children:[O(ne,{sx:{},children:t.getName()}),L(ne,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[c,O(ne,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:O(Gf,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:O("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.\nThe heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:O("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},lL=z(j((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:l=!1,darkMode:a,...s}=e,c=$(()=>{const e=n?.search({selected:o})??[],t=[];if(0===e.length)return O(rm,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let n=0;n<e.length;n++){const i=e[n],s=o&&i?.getName()===o.getName(),c=e[n+1];c&&c.isCustom()!==i.isCustom()&&t.push(O(Mp,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${n}`)),t.push(O(iL,{docTheme:i,onSelectTheme:()=>r(i),isSelected:s,disabled:l,darkMode:a,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&r(i)},onKeyDown:e=>{e.keyCode!==io.Enter&&e.keyCode!==io.Space||r(i)}},i.getName()))}return t},[o,r,a]);return O(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...s,children:L(ne,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[O(rm,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),O(Mp,{}),O(ne,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:c})]})})})),aL=z(j((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:l,label:a,variant:s=Tf.Toolbar,darkMode:c,panelProps:d,...u}=e,h=i||kc(O(vh,{})),p=H(e=>{const{closeFloatAll:t}=e;return O(lL,{...d,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:c,onKeyDown:e=>{e.which===io.Enter&&t()}})},[n,o,r,d,c]),f={createPopupPanel:p,tooltip:l||a||"Theme",label:a,icon:h,...u};return s===Tf.Toolbar?O(im,{ref:t,...f}):O(am,{ref:t,...f})})),sL=z(j((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:l=!1,darkMode:a,label:s,icon:c,variant:d,...u}=e;Jr(n);const h=n?.context()?.themes,p=r||n?.context()?.theme,f=a??n?.context()?.darkMode,m=l||n?.disabled(),g=go(e=>{i?.(e),n?.execute(e,o)},[i,o]),y=H((e,t)=>{const{children:o,title:r,...i}=e;let l=e.children;return(m||t)&&(l=O("div",{children:l})),O(hb,{command:n,placement:d===ti.Toolbar?"bottom-start":"right-start",disabled:m||t,...i,children:l})},[n,m]);return O(aL,{ref:t,themes:h,selectedTheme:p,onSelectTheme:g,variant:d===ti.Menuitem?Tf.Menuitem:Tf.Toolbar,createTooltip:y,disabled:m,darkMode:f,icon:kc(O(vh,{})),...u})})),cL=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["themeMode"])[0],s=a?.state(),c=null!==a?.state(),d=Ce("(prefers-color-scheme: dark)"),u="dark"===s||null===s&&d,h=go((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"appearance",disabled:i},r=L(I,{children:[O(pb,{...n,command:a,icon:kc(O(u?Ge:Ke,{}))}),O(pb,{...n,command:t.getCommand("defaultThemeMode"),icon:kc(O(d?_h:Th,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("enableDarkGrid")}),O(pb,{...n,command:t.getCommand("enableDarkImages")})]});return Mf({...e,children:r})},[i,a,o,r,d,s,c]);return O(mb,{ref:t,quickCommand:"themeMode",commands:n,commandHook:o,createPopupPanel:h,label:"Appearance",tooltip:"Change the light/dark mode to match your viewing preference. This does not affect the view for others.",onQuickClick:()=>{a?.execute(u?"light":"dark",o)},selected:c,icon:kc(O(u?Ge:Ke,{})),...l})})),dL=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:l,...a}=e,s=H((e,t)=>{const n={variant:ti.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(t,n)=>{const r=o?.beforeExecute?.(t,n);return!1!==r&&e.floatReference.closeAll()}},disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("showKeyboardShortcuts"),icon:kc(O(Xe,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...n,command:t.getCommand("gotoUrlGithub"),icon:kc(O(Ih,{}))}),O(pb,{...n,command:t.getCommand("gotoUrlDiscord"),icon:kc(O(Lh,{}))}),O(pb,{...n,command:t.getCommand("gotoUrlDocumentation"),icon:kc(O(Oh,{}))}),O(pb,{...n,command:t.getCommand("gotoUrlIssue"),icon:kc(O(Rh,{}))})]});return Mf({...e,children:r})},[i,o]);return O(mb,{ref:t,sx:l,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:s,icon:kc(O(Dh,{sx:{transform:"scale(0.75)"}})),...a})})),uL=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:l=!0,showQuickButton:a=!0,variant:s=ti.Toolbar,...c}=e,d=ei(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:u,allDisabled:h}=$(()=>{let e=null,t=0;for(let n=0;n<d.length;n++)d[n]&&!d[n]?.disabled()&&(l&&s===ti.Menuitem&&(e=0===t?d[n]:null),t++);return{singleMenuCommand:e,allDisabled:0===t}},[d]),p=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"insertImage",disabled:i},r=L(I,{children:[O(pb,{...n,command:t.getCommand("insertImageFromFile"),icon:kc(O(Bu,{}))}),O(pb,{...n,command:t.getCommand("insertImageFromURL"),icon:kc(O(Bu,{}))})]});return Mf({...e,children:r})},[i,o,r]);return u?O(pb,{ref:t,variant:s,commandHook:o,disabled:i,command:u,icon:kc(O(Bu,{})),...c}):O(mb,{ref:t,variant:s,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||h,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:p,icon:kc(O(Bu,{})),...c})})),hL=z(j((e,t)=>{const{command:n,...o}=e,r=Ur(),[i,l]=N(!1),[a,s]=N("info");return V(()=>{const e=r.getMode();l("copy"===e?.key||"cut"===e?.key),s("cut"===e?.key?"warning":"info")},[r]),O(pb,{ref:t,command:n,icon:kc(O(ku,{isWalking:i,themedType:a})),...o})})),pL=z(j((e,t)=>{const{...n}=e;return O(wb,{ref:t,...n,popupCommandKeys:["quickFormulaSum","quickFormulaAverage","quickFormulaCount","quickFormulaMax","quickFormulaMin",null,"insertFunction"],quickCommand:"quickFormulaSum",popupScope:"quickFormula",label:"Quick Formulas",tooltip:"More quick functions.",icon:e=>{const t=e?.key();switch(t){case"quickFormulaSum":return kc(O(bp,{}));case"insertFunction":return kc(O(yp,{}));default:return null}}})})),fL=P.createContext(null);fL.displayName="HookFormContext";const mL=()=>P.useContext(fL),gL=z(j((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:l,value:a,formName:s,formOptions:c,onChangeInput:d,onValidate:u,onKeyDown:h,...p}=e,f=mL(),m=s&&f?f.register(s,c):null,[g,y]=N(""),[b,w]=N(""),[v,x]=N(a);V(()=>{x(a),w("")},[a]);const S=go(e=>{let t="";try{x(e),u?.(e),d?.(e)}catch(e){t=e.message??"Invalid Name"}s&&f&&(t?f.setError(s,{message:t}):f.clearErrors(s)),w(t)},[a,u,d]),C=go(async e=>{e.keyCode===io.Escape&&g!==a&&(S(g),f?.setValue(s,g),f?.clearErrors(s),e.stopPropagation()),h?.(e)},[h,g,a,f]),k=go(e=>{y(e.target.value??"")},[]),E=go(e=>{y(""),m?.onBlur(e)},[]),_=H(e=>{S(e.target.value),m?.onChange(e)},[m]);return O(ke,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Et("named-input",r),...p,children:O(Ee,{label:"Name",placeholder:l,onFocus:k,onBlur:E,inputRef:m?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:s,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`}}},value:v??"",onChange:_,onKeyDownCapture:C,onContextMenu:e=>{e.stopPropagation()}})})}));gL.displayName="NamedInput";const yL=e=>null===e?"":e.toString(),bL=z(j((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:l,sx:a,onKeyDown:s,value:c,onChangeInput:d,resolvedAddress:u,...h}=e,p=mL(),f=n&&p?p.register(n,o):null,[m,g]=N(""),[y,b]=N(!1),[w,v]=N(()=>yL(c));V(()=>{v(yL(c)),g(""),n&&p&&p.clearErrors(n),b(!1)},[c]);const x=go(e=>{let t="";try{v(e);const t=yL(c),n=u(e);n.toString()!==t&&d?.(n)}catch(e){t="Invalid Range"}n&&p&&(t?p.setError(n,{message:t}):p.clearErrors(n)),g(t),b(!0)},[w,d,n,p]),S=go(async e=>{if(y&&e.keyCode===io.Escape){const t=yL(c);v(t),g(""),b(!1),e.stopPropagation()}s?.(e)},[c,d,s,y]),C=go(e=>{f?.onBlur(e)},[f]),k=H(e=>{x(e.target.value),f?.onChange(e)},[f]),[E,_]=N(!1),T=$(()=>O(_e,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:O(sm,{disabled:!0,selected:E,onSelectToggle:e=>{_(e)},label:"Select Range",icon:kc(O(pp,{}))})}),[E]);return O(ke,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%",...a},size:"small",ref:t,className:Et("range-input",l),...h,children:O(Ee,{label:"Range",placeholder:"Enter Range",onBlur:C,disabled:r,error:!!m,inputRef:f?.ref,helperText:m||" ",sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},endAdornment:T},value:w??"",onChange:k,onKeyDownCapture:S,onContextMenu:e=>{e.stopPropagation()}})})}));bL.displayName="RangeInput";const wL=z(j((e,t)=>{const{sheet:n,className:r,debounceDelay:i=220,sx:l,...a}=e,[s,c]=N(()=>n.getView().getZoomScale()),[d,u]=N(null),h=F(0);j_(n,{onViewChange:()=>{u(!0),0===h.current&&c(n.getView().getZoomScale())}}),V(()=>{h.current=0,u(!1),c(n.getView().getZoomScale())},[n]),V(()=>{0!==h.current&&S.debounce(()=>{s===h.current&&(h.current=0,n.getView().update({zoomScale:s}))},i)()},[s,i]);const p=go(e=>{let t=e;e<100?t=Math.round(e/(10/9)+10):e>100&&(t=Math.round(3*e-200)),h.current=t,u(!0),c(t)},[n]),f=e=>{let t=e;return e<100?t=10/9*(e-10):e>100&&(t=(e+200)/3),t},m=f(s),[g,y]=N(null),b=F(null),w=H(()=>{const e=g;e&&requestAnimationFrame(()=>{b.current?.contains(document.activeElement)&&e.focus()})},[]),v=Or(()=>{p(f(S.findNextStep(n.getView().getZoomScale(),!1,10)))}),x=Or(()=>p(f(S.findNextStep(n.getView().getZoomScale(),!0,10)))),C=Tx(),k=$(()=>`${o.getSharedMeasurer()("100%",Math.round(C.typography.fontSize),C.typography.fontFamily).width}px`,[C]);return L(ne,{ref:t,className:Et(r),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:e=>e.palette.text.secondary,...l},onFocus:e=>{e.relatedTarget&&!g&&y(e.relatedTarget)},onBlur:e=>{g&&!b?.current?.contains(e.relatedTarget)&&y(null)},onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&w()},...a,children:[O(Gf,{disableInteractive:!0,title:"Zoom Out",children:O(oe,{sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:e=>{0!==e.button?e.preventDefault():v(e)},children:O(Ye,{})})}),O(Te,{ref:b,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:e=>`0px 0px 0px 3px ${Lf(e.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:e=>`0px 0px 0px 2px ${Lf(e.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:d?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:m,max:200,marks:[{value:100}],onAnimationEnd:()=>u(!1),onWheel:e=>{p(f(S.findNextStep(n.getView().getZoomScale(),e.deltaY<0,10)))},onKeyDown:e=>{e.which===io.Down||e.which===io.Right?(p(f(S.findNextStep(n.getView().getZoomScale(),!0,10))),e.preventDefault()):e.which===io.Up||e.which===io.Left?(p(f(S.findNextStep(n.getView().getZoomScale(),!1,10))),e.preventDefault()):e.which!==io.Enter&&e.which!==io.Escape||w()},onChange:(e,t)=>{Math.abs(t-100)<3?p(100):p(t)},valueLabelFormat:(e,t)=>`Zoom: ${Math.round(s)}%`}),O(Gf,{disableInteractive:!0,title:"Zoom In",children:O(oe,{sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:e=>{0!==e.button?e.preventDefault():x(e)},children:O(Je,{})})}),L(ne,{sx:{display:"flex",flexDirection:"row"},children:[O(ne,{sx:{minWidth:"8px"}}),O(se,{noWrap:!0,component:"div",onClick:()=>{p(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:k},children:O("div",{children:Math.round(s)+"%"})})]})]})}));wL.displayName="SheetZoomScale";const vL=z(j((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:l,...a}=e;W(t,()=>({}));const s=F(null);V(()=>{const e=e=>e.preventDefault();return s.current?.addEventListener("wheel",e,{passive:!1}),()=>{s.current?.removeEventListener("wheel",e)}},[]);const c=Ur(),d=$(()=>{const e=c.getMode();return e?.description?e.description:"Ready"},[c]),[u,h]=N(!1);return L(ne,{ref:s,sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",overflow:u?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>h(!0),onMouseLeave:()=>h(!1),...a,children:[i,O("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:O(se,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:e=>e.palette.text.secondary},variant:"caption",children:d})}),l?O(ne,{sx:{display:"flex",alignItems:"center"},children:l}):null,O(Mp,{style:{marginTop:"6px",marginBottom:"6px"}}),O(wL,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));vL.displayName="StatusBar";var xL,SL={exports:{}},CL={},kL={exports:{}},EL={},_L={exports:{}};var TL,ML={},DL={};function RL(){if(TL)return DL;return TL=1,Object.defineProperty(DL,"__esModule",{value:!0}),DL.dontSetMe=function(e,t,n){if(e[t])return new Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)},DL.findInArray=function(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]},DL.int=function(e){return parseInt(e,10)},DL.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},DL.isNum=function(e){return"number"==typeof e&&!isNaN(e)},DL}var OL,LL,IL={};function AL(){if(LL)return ML;LL=1,Object.defineProperty(ML,"__esModule",{value:!0}),ML.addClassName=l,ML.addEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,r):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},ML.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t));e.body&&l(e.body,"react-draggable-transparent-selection")},ML.createCSSTransform=function(e,n){const o=r(e,n,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:o}},ML.createSVGTransform=function(e,t){return r(e,t,"")},ML.getTouch=function(t,n){return t.targetTouches&&(0,e.findInArray)(t.targetTouches,e=>n===e.identifier)||t.changedTouches&&(0,e.findInArray)(t.changedTouches,e=>n===e.identifier)},ML.getTouchIdentifier=function(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier},ML.getTranslation=r,ML.innerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingTop),n-=(0,e.int)(o.paddingBottom),n},ML.innerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n-=(0,e.int)(o.paddingLeft),n-=(0,e.int)(o.paddingRight),n},ML.matchesSelector=o,ML.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(o(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},ML.offsetXYFromParent=function(e,t,n){const o=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),r=(e.clientX+t.scrollLeft-o.left)/n,i=(e.clientY+t.scrollTop-o.top)/n;return{x:r,y:i}},ML.outerHeight=function(t){let n=t.clientHeight;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderTopWidth),n+=(0,e.int)(o.borderBottomWidth),n},ML.outerWidth=function(t){let n=t.clientWidth;const o=t.ownerDocument.defaultView.getComputedStyle(t);return n+=(0,e.int)(o.borderLeftWidth),n+=(0,e.int)(o.borderRightWidth),n},ML.removeClassName=a,ML.removeEvent=function(e,t,n,o){if(!e)return;const r={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,r):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},ML.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(e)}):i(e)};var e=RL(),t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(function(){if(OL)return IL;OL=1,Object.defineProperty(IL,"__esModule",{value:!0}),IL.browserPrefixToKey=n,IL.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},IL.default=void 0,IL.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(t in o)return"";for(let r=0;r<e.length;r++)if(n(t,e[r])in o)return e[r];return""}function n(e,t){return t?`${t}${function(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):"-"===e[o]?n=!0:t+=e[o];return t}(e)}`:e}return IL.default=t(),IL}());let n="";function o(t,o){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,e.isFunction)(t[n])})),!!(0,e.isFunction)(t[n])&&t[n](o)}function r(e,t,n){let{x:o,y:r}=e,i=`translate(${o}${n},${r}${n})`;if(t){i=`translate(${`${"string"==typeof t.x?t.x:t.x+n}`}, ${`${"string"==typeof t.y?t.y:t.y+n}`})`+i}return i}function i(e){if(e)try{if(e.body&&a(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function l(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function a(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}return ML}var PL,zL={};function FL(){if(PL)return zL;PL=1,Object.defineProperty(zL,"__esModule",{value:!0}),zL.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},zL.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},zL.createCoreData=function(t,o,r){const i=!(0,e.isNum)(t.lastX),l=n(t);return i?{node:l,deltaX:0,deltaY:0,lastX:o,lastY:r,x:o,y:r}:{node:l,deltaX:o-t.lastX,deltaY:r-t.lastY,lastX:t.lastX,lastY:t.lastY,x:o,y:r}},zL.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},zL.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l="string"==typeof l?l:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(l);const a=n(o);if("string"==typeof l){const{ownerDocument:n}=a,o=n.defaultView;let r;if("parent"===l)r=a.parentNode;else{r=a.getRootNode().querySelector(l)}if(!(r instanceof o.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const i=r,s=o.getComputedStyle(a),c=o.getComputedStyle(i);l={left:-a.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(s.marginLeft),top:-a.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(s.marginTop),right:(0,t.innerWidth)(i)-(0,t.outerWidth)(a)-a.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(s.marginRight),bottom:(0,t.innerHeight)(i)-(0,t.outerHeight)(a)-a.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(s.marginBottom)}}(0,e.isNum)(l.right)&&(r=Math.min(r,l.right));(0,e.isNum)(l.bottom)&&(i=Math.min(i,l.bottom));(0,e.isNum)(l.left)&&(r=Math.max(r,l.left));(0,e.isNum)(l.top)&&(i=Math.max(i,l.top));return[r,i]},zL.getControlPosition=function(e,o,r){const i="number"==typeof o?(0,t.getTouch)(e,o):null;if("number"==typeof o&&!i)return null;const l=n(r),a=r.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(i||e,a,r.props.scale)},zL.snapToGrid=function(e,t,n){const o=Math.round(t/e[0])*e[0],r=Math.round(n/e[1])*e[1];return[o,r]};var e=RL(),t=AL();function n(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}return zL}var NL,VL,HL,BL,$L={},jL={};function WL(){if(NL)return jL;return NL=1,Object.defineProperty(jL,"__esModule",{value:!0}),jL.default=function(){},jL}function UL(){if(VL)return $L;VL=1,Object.defineProperty($L,"__esModule",{value:!0}),$L.default=void 0;var e=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(P),t=a(Uw()),n=a(st),o=AL(),r=FL(),i=RL(),l=a(WL());function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let u=d,h=class extends e.Component{constructor(){super(...arguments),s(this,"dragging",!1),s(this,"lastX",NaN),s(this,"lastY",NaN),s(this,"touchIdentifier",null),s(this,"mounted",!1),s(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const i=(0,o.getTouchIdentifier)(e);this.touchIdentifier=i;const a=(0,r.getControlPosition)(e,i,this);if(null==a)return;const{x:s,y:c}=a,d=(0,r.createCoreData)(this,s,c);(0,l.default)("DraggableCore: handleDragStart: %j",d),(0,l.default)("calling",this.props.onStart);!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(n),this.dragging=!0,this.lastX=s,this.lastY=c,(0,o.addEvent)(n,u.move,this.handleDrag),(0,o.addEvent)(n,u.stop,this.handleDragStop))}),s(this,"handleDrag",e=>{const t=(0,r.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:o}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=o-this.lastY;if([e,t]=(0,r.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,o=this.lastY+t}const i=(0,r.createCoreData)(this,n,o);(0,l.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(e,i)&&!1!==this.mounted)this.lastX=n,this.lastY=o;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),s(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,r.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:i}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=i-this.lastY||0;[e,t]=(0,r.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,i=this.lastY+t}const a=(0,r.createCoreData)(this,n,i);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(s.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(s.ownerDocument,u.move,this.handleDrag),(0,o.removeEvent)(s.ownerDocument,u.stop,this.handleDragStop))}),s(this,"onMouseDown",e=>(u=d,this.handleDragStart(e))),s(this,"onMouseUp",e=>(u=d,this.handleDragStop(e))),s(this,"onTouchStart",e=>(u=c,this.handleDragStart(e))),s(this,"onTouchEnd",e=>(u=c,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,o.addEvent)(e,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,o.removeEvent)(t,d.move,this.handleDrag),(0,o.removeEvent)(t,c.move,this.handleDrag),(0,o.removeEvent)(t,d.stop,this.handleDragStop),(0,o.removeEvent)(t,c.stop,this.handleDragStop),(0,o.removeEvent)(e,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return $L.default=h,s(h,"displayName","DraggableCore"),s(h,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),s(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),$L}function qL(){return HL||(HL=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return s.default}}),e.default=void 0;var t=function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,l)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?r(l,t,i):l[t]=e[t]);return l}(e,t)}(P),n=d(Uw()),o=d(st),r=function(){if(xL)return _L.exports;function e(t){var n,o,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(o=e(t[n]))&&(r&&(r+=" "),r+=o)}else for(o in t)t[o]&&(r&&(r+=" "),r+=o);return r}function t(){for(var t,n,o=0,r="",i=arguments.length;o<i;o++)(t=arguments[o])&&(n=e(t))&&(r&&(r+=" "),r+=n);return r}return xL=1,_L.exports=t,_L.exports.clsx=t,_L.exports}(),i=AL(),l=FL(),a=RL(),s=d(UL()),c=d(WL());function d(e){return e&&e.__esModule?e:{default:e}}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},u.apply(null,arguments)}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class p extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:o}=t;return!n||o&&n.x===o.x&&n.y===o.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:o}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),h(this,"onDragStart",(e,t)=>{(0,c.default)("Draggable: onDragStart: %j",t);if(!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",t);const n=(0,l.createDraggableData)(this,t),o={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=o;o.x+=this.state.slackX,o.y+=this.state.slackY;const[r,i]=(0,l.getBoundPosition)(this,o.x,o.y);o.x=r,o.y=i,o.slackX=this.state.slackX+(e-o.x),o.slackY=this.state.slackY+(t-o.y),n.x=o.x,n.y=o.y,n.deltaX=o.x-this.state.x,n.deltaY=o.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(o)}),h(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,c.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??o.default.findDOMNode(this)}render(){const{axis:e,bounds:n,children:o,defaultPosition:a,defaultClassName:c,defaultClassNameDragging:d,defaultClassNameDragged:h,position:p,positionOffset:f,scale:m,...g}=this.props;let y={},b=null;const w=!Boolean(p)||this.state.dragging,v=p||a,x={x:(0,l.canDragX)(this)&&w?this.state.x:v.x,y:(0,l.canDragY)(this)&&w?this.state.y:v.y};this.state.isElementSVG?b=(0,i.createSVGTransform)(x,f):y=(0,i.createCSSTransform)(x,f);const S=(0,r.clsx)(o.props.className||"",c,{[d]:this.state.dragging,[h]:this.state.dragged});return t.createElement(s.default,u({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(o),{className:S,style:{...o.props.style,...y},transform:b}))}}e.default=p,h(p,"displayName","Draggable"),h(p,"propTypes",{...s.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),h(p,"defaultProps",{...s.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(EL)),EL}function ZL(){if(BL)return kL.exports;BL=1;const{default:e,DraggableCore:t}=qL();return kL.exports=e,kL.exports.default=e,kL.exports.DraggableCore=t,kL.exports}var GL,KL={};function XL(){if(GL)return KL;GL=1,KL.__esModule=!0,KL.cloneElement=function(e,n){n.style&&e.props.style&&(n.style=o(o({},e.props.style),n.style));n.className&&e.props.className&&(n.className=e.props.className+" "+n.className);return t.default.cloneElement(e,n)};var e,t=(e=P)&&e.__esModule?e:{default:e};function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function o(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach(function(t){r(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}return KL}var YL,JL,QL={};function eI(){if(YL)return QL;YL=1,QL.__esModule=!0,QL.resizableProps=void 0;var e,t=(e=Uw())&&e.__esModule?e:{default:e};ZL();var n={axis:t.default.oneOf(["both","x","y","none"]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var r,i=n[0];return"both"===i.axis||"y"===i.axis?(r=t.default.number).isRequired.apply(r,n):t.default.number.apply(t.default,n)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:t.default.number,width:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];var r,i=n[0];return"both"===i.axis||"x"===i.axis?(r=t.default.number).isRequired.apply(r,n):t.default.number.apply(t.default,n)}};return QL.resizableProps=n,QL}function tI(){if(JL)return CL;JL=1,CL.__esModule=!0,CL.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=r?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(o,l,a):o[l]=e[l]}o.default=e,n&&n.set(e,o);return o}(P),t=ZL(),n=XL(),o=eI(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var u=function(o){var i,a;function c(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=o,(i=c).prototype=Object.create(a.prototype),i.prototype.constructor=i,d(i,a);var u=c.prototype;return u.componentWillUnmount=function(){this.resetData()},u.resetData=function(){this.lastHandleRect=this.slack=null},u.runConstraints=function(e,t){var n=this.props,o=n.minConstraints,r=n.maxConstraints,i=n.lockAspectRatio;if(!o&&!r&&!i)return[e,t];if(i){var l=this.props.width/this.props.height,a=e-this.props.width,s=t-this.props.height;Math.abs(a)>Math.abs(s*l)?t=e/l:e=t*l}var c=e,d=t,u=this.slack||[0,0],h=u[0],p=u[1];return e+=h,t+=p,o&&(e=Math.max(o[0],e),t=Math.max(o[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[h+(c-e),p+(d-t)],[e,t]},u.resizeHandler=function(e,t){var n=this;return function(o,r){var i=r.node,l=r.deltaX,a=r.deltaY;"onResizeStart"===e&&n.resetData();var s=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(s||c){var d=t[0],u=t[t.length-1],h=i.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===u)l+=h.left-n.lastHandleRect.left;if("n"===d)a+=h.top-n.lastHandleRect.top}n.lastHandleRect=h,"w"===u&&(l=-l),"n"===d&&(a=-a);var p=n.props.width+(s?l/n.props.transformScale:0),f=n.props.height+(c?a/n.props.transformScale:0),m=n.runConstraints(p,f);p=m[0],f=m[1];var g=p!==n.props.width||f!==n.props.height,y="function"==typeof n.props[e]?n.props[e]:null;y&&!("onResize"===e&&!g)&&(null==o.persist||o.persist(),y(o,{node:i,size:{width:p,height:f},handle:t})),"onResizeStop"===e&&n.resetData()}}},u.renderResizeHandle=function(t,n){var o=this.props.handle;if(!o)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:n});if("function"==typeof o)return o(t,n);var r=s({ref:n},"string"==typeof o.type?{}:{handleAxis:t});return e.cloneElement(o,r)},u.render=function(){var o=this,i=this.props,a=i.children,c=i.className,d=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var h=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(i,r);return(0,n.cloneElement)(a,s(s({},h),{},{className:(c?c+" ":"")+"react-resizable",children:[].concat(a.props.children,u.map(function(n){var r,i=null!=(r=o.handleRefs[n])?r:o.handleRefs[n]=e.createRef();return e.createElement(t.DraggableCore,l({},d,{nodeRef:i,key:"resizableHandle-"+n,onStop:o.resizeHandler("onResizeStop",n),onStart:o.resizeHandler("onResizeStart",n),onDrag:o.resizeHandler("onResize",n)}),o.renderResizeHandle(n,i))}))}))},c}(e.Component);return CL.default=u,u.propTypes=o.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},CL}var nI,oI,rI={};function iI(){if(nI)return rI;nI=1,rI.__esModule=!0,rI.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(o,i,a):o[i]=e[i]}o.default=e,n&&n.set(e,o);return o}(P),t=i(Uw()),n=i(tI()),o=eI(),r=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var h=function(t){var o,i;function l(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=t.call.apply(t,[this].concat(o))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var o=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(o,function(){return e.props.onResize&&e.props.onResize(t,n)})):e.setState(o)},e}return i=t,(o=l).prototype=Object.create(i.prototype),o.prototype.constructor=o,u(o,i),l.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},l.prototype.render=function(){var t=this.props,o=t.handle,i=t.handleSize;t.onResize;var l=t.onResizeStart,s=t.onResizeStop,d=t.draggableOpts,u=t.minConstraints,h=t.maxConstraints,p=t.lockAspectRatio,f=t.axis;t.width,t.height;var m=t.resizeHandles,g=t.style,y=t.transformScale,b=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,r);return e.createElement(n.default,{axis:f,draggableOpts:d,handle:o,handleSize:i,height:this.state.height,lockAspectRatio:p,maxConstraints:h,minConstraints:u,onResizeStart:l,onResize:this.onResize,onResizeStop:s,resizeHandles:m,transformScale:y,width:this.state.width},e.createElement("div",a({},b,{style:c(c({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},l}(e.Component);return rI.default=h,h.propTypes=c(c({},o.resizableProps),{},{children:t.default.element}),rI}var lI=(oI||(oI=1,SL.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},SL.exports.Resizable=tI().default,SL.exports.ResizableBox=iI().default),SL.exports);function aI(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var sI=parseInt(q.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const e=aI(o,t),r="function"==typeof e;n.push(r?e:()=>aI(o,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)aI(n,t)}};const cI=z(j((e,t)=>{const{disabled:n,names:r,workbook:i,restoreFocus:l,readonly:a=!1,disabled:s=!1,commandPopupButtonProps:c,sx:d,notifier:u,...h}=e,[p,f]=N(null),[m,y]=N(()=>i.getSelectedRanges().getCoords()),[b,w]=N(!1),{reference:v}=Wf({parentFloat:c?.parentFloat}),[x,C]=N(()=>a||!i.getProtection().isStructureAllowed()),k=()=>p?.text??"",[E,_]=N(k),T=go(()=>{if(v?.closeAll(),!E){const e=k();return _(k()),e}if(k()===E)return E;const e=E.trim().toLowerCase();if("r"===e||"c"===e)return E;try{const e=i.getRanges(E);if(e)return e.toString()}catch(e){}const t=r.getByName(E);if(t&&t.getRanges())return E;let n=null;try{const e=i.getRanges(E),t=e.getCoords().map(e=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...e}));n=i.getRanges(t)}catch(e){}if(!n){const e=i.getSelectedRanges().getCoords().map(e=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...e}));n=i.getRanges(e)}try{let e=r.getByName(E);x||e||(e=r.addReference(E,n)),e&&f({text:e.getName()})}catch(e){_(k()),u.showMessage?.(e.message,{type:rr})}return null},[E,r,v,x]),M=go(()=>{if(i.isClosed())return;const e=[];for(let t=0;t<m.length;t++){const n=m[t];e.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...n})}let t=null;try{t=r.lookupByRanges(e)}catch(e){}let n=null;n=t?.length>0?t[0].getName():i.getSelectedSheet().getSelectedRange().toString(),f({text:n})},[i,m]),[D,R]=N(()=>r?.search()??null);j_(r,{onCollectionChange(e){R(r.search()),M()},onClose(e){R([])}}),V(()=>{_(k())},[p,m]);const[A,P]=N(i?.getSelectedSheet());j_(i,{onProtectionChange:e=>{C(a||!e.getProtection().isStructureAllowed())},onSheetsChange:e=>{P(e?.getSelectedSheet())},onViewChange(e){P(e?.getSelectedSheet())}});const[z,B]=N(null),$=go(S.debounce(M,z?320:0),[]);j_(A.getSelection(),{onChange:()=>{y(e=>{const t=i.getSelectedRanges().getCoords();return g.isEqualRangesArrays(t,e)?e:t})},onAdjustingChange:e=>{B(e.getAdjusting())}}),V(()=>{if(z){const e=i.getSelectedRange(),t=e.getRowCount(),n=e.getColumnCount();let o=`${t}R x ${n}C`;if(o.length>17&&(o=`${t}x${n}`),t>1||n>1)return void f({text:o,fontStyle:"italic",justifyContent:"center"})}f({text:i.getSelectedSheet().getSelectedRange().toString()}),$()},[m,i,z]);const j=F(null),W=H(e=>{const{onMouseDown:t,onMouseUp:n,...r}=e;return O(oe,{...r,sx:{...r?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:O(re,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:j},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.text.icon??e.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},"::after":{borderBottom:e=>`1px solid ${e.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*o.getDeviceScale(),fontStyle:p?.fontStyle,paddingLeft:e=>e.spacing(.75),paddingRight:e=>e.spacing(.75),boxShadow:"none",flex:"1",color:e=>e.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:e=>e.palette.text.primary}}},value:E,onFocus:e=>{e.target?.select()},onKeyDown:e=>{if(e.which===io.Enter||e.which===io.Tab){let t=E;k()!==E&&(e.stopPropagation(),e.preventDefault(),t=T()),t?U(t):l?.()}else if(e.which===io.Escape)k()!==E?(_(k()),setTimeout(()=>{e.target?.select()},0),e.stopPropagation(),e.preventDefault()):l?.();else if(e.which===io.Space)return void e.stopPropagation()},onBlur:()=>{_(k())},onChange:e=>{_(e.target.value)}})})},[E,p]),U=go(async e=>{try{v?.closeAll();const t=r.lookupByRanges(e)?.[0];t&&await(t?.select()),await(i.getRanges(e)?.select())}catch(e){u.showMessage?.(e.message,{type:rr})}},[r,u,i]),q=H(e=>{setTimeout(()=>{w(!0)},0);const t={variant:ti.Menuitem,parentFloat:e.floatReference,commandHook:{...c?.commandHook,beforeExecute:(e,t)=>(v?.closeAll(),c?.commandHook?.beforeExecute?.(e,t))},scope:c?.scope,commands:c?.commands};let n=r.search({scope:i?.getSelectedSheet().getName()});n=n.sort((e,t)=>e.getType()===t.getType()?e.getName().localeCompare(t.getName()):"range"===e.getType()?-1:1);const o=x?null:["editNamedReference","deleteNamedReference"],l=x?null:["editTable",null,"convertTableToRange","deleteTable"],a=[],d=n.length;for(let e=0;e<d;e++){const r=n[e],i=r.getRanges();if(!i||r.isHidden())continue;const d=r.getType();d!==n[e-1]?.getType()&&(e>0&&a.push(O(Mp,{orientation:"horizontal"},`type-divider-${a.length}`)),a.push(O(rm,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:"reference"===r.getType()?"Ranges":"Tables"},`type-header-${a.length}`))),"reference"===d?a.push(Z(wb,{...t,key:"named-"+a.length,popupCommandKeys:o,popupScope:"namedItem",scope:"namedItem",commandState:r,commands:c?.commands,label:r.getName(),quickCommand:"selectNamed",disabled:!r.getRanges()||s,icon:e=>{switch(e.key()){case"editNamedReference":return kc(O(Zh,{}));case"deleteNamedReference":return kc(O(Gh,{}));default:return kc(O(Uh,{}))}}})):"table"===d&&a.push(Z(wb,{...t,key:"namedItem-"+a.length,popupCommandKeys:l,popupScope:"namedItem",scope:"namedItem",commands:c?.commands,commandState:r,label:r.getName(),quickCommand:"selectNamed",disabled:!i||s,icon:e=>{e.key();return kc(O($u,{}))}}))}const u=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...h,children:[x?null:O(pb,{...t,scope:"namedItem",command:c?.commands.getCommand("addNamedReference"),icon:kc(O(qh,{}))}),a&&a.length>0?L(I,{children:[x?null:O(Mp,{orientation:"horizontal"}),O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:a})]}):null]});return Mf({...e,children:u})},[i,D,r,p,x]),G=er(t,()=>({focus(e){j.current?.focus(e)}}),[]);return O(ne,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...d},ref:sI([G,t]),...h,children:O(im,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...d},buttonProps:{sx:{backgroundColor:e=>e.palette.background.paper,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`}},tabIndex:-1,outlined:{color:e=>n?e.palette.action.disabled:ut(e.palette.divider,.2)},parentFloat:v,createPopupPanel:q,onPopupOpen:()=>w(!0),onPopupClose:()=>w(!1),createTooltip:({children:e},t)=>O(Jf,{title:t||b?"":"Name Box",disabled:t,leaveDelay:0,sx:{opacity:t||b?0:1},children:e}),createQuickButton:W})})}));cI.displayName="NamedCollectionEditor";const dI=(e,t)=>O(cI,{ref:t,...e}),uI=z(j((e,t)=>{const{sx:n,workbook:r,sheetElement:i,gridStyle:l,showNamedCollectionEditor:a=!0,NamedCollectionEditorProps:s,renderNamedCollectionEditor:c=dI,disabled:d,commands:u,...h}=e,[p,f]=N(r?.getSelectedSheet());j_(r,{onSheetsChange:e=>{f(e?.getSelectedSheet())},onViewChange(e){f(e?.getSelectedSheet())}});const[m,g]=N(p.getSelection().getCoords().cell),y=p.getRange(m).getCell(),b=d||!y.isEditAllowed(),w=F(null),v=$(()=>({fontSize:11}),[]);j_(p.getSelection(),{onChange:()=>{g(p.getSelection().getCoords().cell)}}),j_(p,{onProtectionChange(){g(p.getSelection().getCoords().cell)}});const x=w.current?.getLineHeight()??20,[S,C]=N(x),[k,E]=N(5),[_,T]=N(1),M=go((e,{size:t})=>{e.preventDefault(),e.stopPropagation();const n=Math.floor(t.height/x);C(n*x+1),n>1&&E(n)},[x]),D=go((e,{size:t})=>{const n=Math.floor(t.height/x);T(n)},[x]),R=Ur(),A=R.getMode();let P=null;"edit"===A?.key&&(P=A.args?.stateAndCoords);const z=$(()=>{let e=P?.editState;return e||(e=w_(()=>p.getRange(m).getCell())),O(ne,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:O(b_,{ref:w,activeCoords:m,sheet:p,onFocus:()=>{i?.startEdit({autoFocus:!1,editMode:!0,cell:m})},defaultTextStyle:v,useRichStyling:!1,disabled:b,onChangeEdit:e=>{if(void 0!==e.dirty){const t={sheet:p,coords:m,editState:e};R.setMode(e=>({...e,args:{...e?.args,stateAndCoords:t}}))}},editState:e,commands:u,onCancelEdit:()=>{i?.cancelEdit(),i?.focus()},onSubmitEdit:()=>{i?.submitEdit(),i?.focus()},linesVisible:_})})},[p,P,m,_,i]),V=F(null),H=$(()=>a?c({names:r.getNames(),workbook:r,...s},V):null,[c,s,a,p,r,b]),B=$(()=>L(ce,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,border:e=>`solid ${b?e.palette.action.disabled:ut(e.palette.divider,.2)} 1px`},children:[O(tm,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"warning","aria-label":"cancel-formula-edit",icon:kc(O(jh,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:b||null===P,onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{i.cancelEdit()}}),O(tm,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,color:"primary","aria-label":"commit-formula-edit",icon:kc(O(Wh,{})),tooltipProps:{label:"Enter",simple:!0},disabled:b||null===P,onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{i.submitEdit()}}),O(tm,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,disabled:!0,"aria-label":"commit-formula-function",icon:kc(O(gp,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:e=>{0===e.button&&e.preventDefault()}})]}),[b,P]),j=Tx(),[W,U]=N(!1),q=$(()=>L(ne,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:e=>e.spacing(.5),alignItems:"start"},children:[B,L(ce,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:e=>e.typography.fontFamily,fontSize:11*o.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:e=>`${e.shape.borderRadius}px`,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,border:e=>`solid ${b?e.palette.action.disabled:ut(e.palette.divider,.2)} 1px`,"& textarea":{color:e=>b?`${e.palette.text.disabled} !important`:e.palette.text.primary},"& .react-resizable-handle":{width:"100%",height:"8px",backgroundColor:"transparent",boxSizing:"content-box",zIndex:1e3},"& .react-resizable-handle-s":{position:"absolute",bottom:"-10px",cursor:"s-resize"}},onFocus:()=>U(!0),onBlur:()=>U(!1),onMouseDown:e=>{e.target?.classList.contains("react-resizable-handle")&&e.preventDefault()},children:[O(ne,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)},children:O(lI.ResizableBox,{height:S,draggableOpts:{grid:[x,x]},minConstraints:[x,x],maxConstraints:[15*x,15*x],onResize:D,onResizeStop:M,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:z})}),O(tm,{sx:{padding:"0px",margin:"0px 0px",border:"none !important","&.Mui-focusVisible":{border:"none"},"&:hover:not([disabled])":{border:"none"}},dense:!0,outlined:!1,"aria-label":"toggle-expand-formula-edit",icon:kc(O(_>1?Qe:et,{})),tooltipProps:{label:(_>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{const e=_>1?1:k;C(e*x+1),T(e)}}),O(ne,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:W?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:e=>e.palette.primary.main,borderRadius:e=>`${e.shape.borderRadius}px`}})]})]}),[B,z,W,_,x]),Z=$(()=>H||q?!H&&q?q:H&&!q?H:O(I,{children:O(Rr,{fixedPane:"before",minBefore:"165px",minAfter:"200px",paneBeforeProps:{style:{alignItems:"flex-start"}},paneAfterProps:{style:{overflow:"visible"}},resizerProps:{style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${j.palette.text.icon??j.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center 6.5px",minWidth:"18px"}},elementBefore:H,elementAfter:q})}):null,[H,q]),G=er(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>V.current}),[]);return O(ne,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(.5),...n},ref:G,...h,children:Z})}));uI.displayName="FormulaBar";const hI=z(j((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:l,...a}=e,s=$(()=>({}),[]),c=$(()=>({commandHook:{beforeExecute:(e,t)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),d=$(()=>({...s,...c,variant:ti.Menuitem}),[s,c]),u=L(I,{children:[O(pb,{...d,command:o.getCommand("sortAscending"),icon:kc(O(Xu,{}))}),O(pb,{...d,command:o.getCommand("sortDescending"),icon:kc(O(Ku,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...d,command:o.getCommand("autoFilterClear"),icon:kc(O(Nc,{}))}),[]]});return O(ne,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...a,children:u})}));hI.displayName="FilterColumnMenu";const pI=z(j((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:l,...a}=e,s=er(t,()=>({isFilters:()=>!0}),[]);return O("div",{ref:s,className:Et("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...a,children:L("div",{style:{flex:"1 1 100%",display:"flex",minHeight:"100px",minWidth:"220px",alignItems:"center",border:"grey solid 1px",padding:"4px 4px",overflow:"hidden",flexDirection:"column",justifyContent:"space-evenly",marginTop:"4px",marginBottom:"4px",marginLeft:"16px",marginRight:"16px"},children:[O("div",{children:l.getName()}),O("div",{children:"Filter Widget"})]})})}));pI.displayName="Filters";const fI=z(j((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:l,index:a,editing:s,editable:c,disabled:d,selectedIndex:u,dragging:h,borderColor:p,borderWidth:f,activeColor:m,background:g="white",tabRadius:y=4,gridTheme:b,...w}=e,[v,x]=N(()=>!!o&&o.getProtection().isLocked()),[S,C]=N(()=>o?o.getTabColor():null);j_(o,{onProtectionChange:()=>{x(o.getProtection().isLocked())},onTabColorChange:()=>{C(o.getTabColor())},onStyleChange:()=>{C(o.getTabColor())}});const k=Tx(),E=u===a;let _=null,T=null;if(S||h){let e=g;S?(T=S.toBlackOrWhite().toCSS(),e=S?.toCSS()):E||(e=k.palette.background.paper),_=O(ne,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:E?"50%":"100%",borderRadius:"4px",border:e=>E?`${g} solid 1px`:`${e.palette.divider} solid 1px`,background:E&&S?`linear-gradient(0deg, ${e} 0%, transparent)`:e}})}let M=null;"string"==typeof p?M=p:p?.toCSS&&(M=p.toCSS());const D=E?O(ne,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:e=>e.palette.primary.main}}):null;return O(Fx,{theme:E?b??k:k,children:O(ne,{ref:t,className:Et(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:E?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:h?"grabbing":void 0},...w,children:O(Cr,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:y,strokeColor:E?M:"transparent",children:O(me,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:E?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:h?"grabbing":void 0,color:E?"primary":T||"text.secondary",backgroundColor:E?g:"transparent","&:hover:not([disabled])":{backgroundColor:E?g:"transparent"},"& input":{color:e=>`${e.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:d,disableRipple:s,component:"div",children:L(I,{children:[_,L(ne,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[L(ne,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:E?void 0:"1px"},children:[n,D]}),v?O(tt,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):O(ne,{sx:{minHeight:"22px"}})]})]})},l+":"+a)})})})}));fI.displayName="SheetTab";const mI=z(j((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:l,floatReference:a,sx:s,className:c,tabStripRef:d,...u}=e,[h,p]=N(n?.getProtection());j_(n,{onProtectionChange:e=>{p(e?.getProtection())}});const f=$(()=>({}),[]),m=$(()=>({commandHook:{beforeExecute:(e,t)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:l||void 0===o,parentFloat:a}),[l,a]),g=$(()=>({...f,...m}),[f,m]),y=L(I,{children:[O(pb,{command:r.getCommand("addSheet"),commandState:o,...g,variant:ti.Menuitem}),O(pb,{command:r.getCommand("deleteSheet"),...g,variant:ti.Menuitem}),L(om,{onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:()=>{Promise.resolve(a.closeAll()).then(()=>{d?.startEdit(o)})},disabled:l||!h.isStructureAllowed(),parentFloat:a,children:["Rename","sheet"!==i?" Sheet":""]}),O(pb,{command:r.getCommand("duplicateSheet"),...g,variant:ti.Menuitem}),O(pb,{command:r?.getCommand("protectionSheetToggle"),...g,variant:ti.Menuitem,icon:O(tt,{})}),O(AO,{variant:ti.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:O(_c,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:iO.End},parentFloat:a}),O(Mp,{orientation:"horizontal"}),O(pb,{command:r.getCommand("hideSheet"),...g,variant:ti.Menuitem,icon:kc(O(Mh,{}))})]});return O(ne,{ref:t,className:Et("menu",c),sx:{...s},...u,children:y})}));mI.displayName="SheetTabMenu";const gI=z(j((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:l,...a}=e,[s,c]=N(n?.getSheets().search()),[d,u]=N(n?.getProtection());j_(n,{onSheetsChange:e=>{c(e.getSheets().search())},onProtectionChange:e=>{u(e?.getProtection())}});const h=$(()=>{const e=[],t=n.getSheets().search({visibility:_.Visibility.Hidden}),i=n.getSelectedSheet();for(let n=0;n<t.length;n++){const l=t[n],a=l.getVisibility();if(a===_.Visibility.VeryHidden)continue;const s=i===l,c=l.getProtection().isLocked(),u=l.getTabColor(),h=o?.body.fill??"transparent";let p=null,f=null,m=h;u&&(m=u.toCSS(),s||(f=u.toBlackOrWhite().toCSS()),p=O(ne,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:s?m:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:O(ne,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:s||a===_.Visibility.Hidden?"50%":"100%",border:e=>s?`${h} solid 1.5px`:`${e.palette.divider} solid 1px`,background:s&&u?`linear-gradient(0deg, ${m} 0%, ${h})`:m,borderRadius:"4px"}})}));let g=null;c&&(g=O(tt,{color:"secondary"})),a!==_.Visibility.Visible&&(g=kc(O(Mh,{style:{opacity:d.isStructureAllowed()?1:.7},color:"secondary"}))),g&&(g=O(ne,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:g})),e.push(O(om,{disabled:!d.isStructureAllowed()&&a===_.Visibility.Hidden,sx:{color:e=>{let t=s?e.palette.primary.main:e.palette.text.secondary;return f&&(t=f),a===_.Visibility.Hidden&&(t=ut(t,e.palette.action.disabledOpacity)),t},borderLeft:e=>`${s?e.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:s?"700":"400","&:hover":{fontWeight:"700"}},icon:s?O(cm,{}):void 0,onMouseDown:e=>e.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{l.select()}catch(e){console.error(e)}})},children:L(I,{children:[p,L(ne,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[L(ne,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[l.getName(),O(ne,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:l.getName()})]}),g]})]})},""+n))}return e},[n,d,s,r,o]);return O(ne,{ref:t,className:Et("menu",l),...a,children:h})}));gI.displayName="SheetsAllMenu";let yI=!1,bI=!1;let wI=null;const vI=async e=>{const t=await a.getDetails();if(bI||t.isEval()){try{const e=top??window;e.SheetXL||(e.SheetXL=Object.freeze({getSelectedWorkbook:()=>wI?.getWorkbook(),getSelectedSheet:()=>wI?.getWorkbook().getSelectedSheet(),getSelectedRange:()=>wI?.getWorkbook().getSelectedRange(),getRange:e=>wI?.getWorkbook().getRange(e),getSelectedWorkbookElement:()=>wI,getLicenseManager:()=>a,moreExamples:()=>{const e={"SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])":{Summary:"Set an array of values."},"SheetXL.getRange('a1:e5').setValue(100)":{Summary:"Set a single repeating value to a range."},"SheetXL.getRange('Sheet1!e5:f6').getValues()":{Summary:"Get the values as a 2d array (see forEach)."},"SheetXL.getSelectedRange().setValue(new Date())":{Summary:"Set current date/time using Javascript Date."},"SheetXL.getSelectedRange().setValue('10/23/95')":{Summary:"Set current date/time using string."},"SheetXL.getSelectedSheet().getUsedRange().getValues()":{Summary:"Get all of the values in a sheet."},"SheetXL.getSelectedRange().updateStyle({ fill: 'accent4' })":{Summary:"Set fill to theme color 4."},"SheetXL.getRange('E:L').updateStyle({ fill: 'accent1 lumMod 90 lumOff 40' })":{Summary:"Set some columns to a modified theme color."},"SheetXL.getRange('e5:f10').updateStyle({ style: { border: 'double blue' }})":{Summary:"Set border."},"SheetXL.getCell().getStyle().fill.toCSS()":{Summary:"Get the fill style as css for the selected cell."},"SheetXL.getRange('a1:a3').autoFill('a1:a7')":{Summary:"Autofill down."},"SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })":{Summary:"Merge cells horizontally."},"SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })":{Summary:"Sort selected cells ascending with a header."},"SheetXL.getSelectedRange().clear('all')":{Summary:"Clear the current range a different way."},"SheetXL.getSelectedSheet().getTables().add('b2:e9')":{Summary:"Create a 4x8 table at b2 for current sheet."},"SheetXL.getRange('a1:c3').copyFrom('e1:g3')":{Summary:"Copy cells."},"SheetXL.getRange('c:t').getColumnHeaders().setSize(30)":{Summary:"Set the size of columns to 30 pixels."},"SheetXL.getRange('2:3').delete()":{Summary:"Remove rows 2 and 3 and shift up."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')":{Summary:"Add an image."},"SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })":{Summary:"Add an image of height 100."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).updateStyle({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')":{Summary:"Set value to 100 and numberformat to 0% as a single."},"SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').updateStyle({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')":{Summary:"Set a value and style to Note style and autofit text."},"SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');":{Summary:"Add a named range."},"SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })":{Summary:"Listen for updates at a range."}};console.table(e)}}))}catch(e){e instanceof DOMException||console.error(e),yI=!0}if(wI!==e&&(wI=e,!yI))try{yI=!0;(top??window).SheetXL&&(await a._validate(!0),a.wasPrinted()&&(()=>{_n.consoleWithNoSource("%cTip: You can access the API directly in the console.\nTry\n%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c\n>%c SheetXL.moreExamples()","color:#ffa726;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;","font-family:monospace;color:#1976d2;font-size:12px;","font-family:monospace;"),yI=!0;const e=document.getElementById("openEditorLink");e&&e.addEventListener("click",e=>{e.preventDefault(),console.log("openScriptEditor called from console")})})())}catch(e){e instanceof DOMException||console.error(e)}}},xI=e=>{bI=e};var SI=function(){},CI="undefined"!=typeof window,kI=CI?U:V,EI={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const _I=CI&&void 0!==window.ResizeObserver?function(){var e=N(null),t=e[0],n=e[1],o=N(EI),r=o[0],i=o[1],l=$(function(){return new window.ResizeObserver(function(e){if(e[0]){var t=e[0].contentRect,n=t.x,o=t.y,r=t.width,l=t.height,a=t.top,s=t.left,c=t.bottom,d=t.right;i({x:n,y:o,width:r,height:l,top:a,left:s,bottom:c,right:d})}})},[]);return kI(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[SI,EI]};function TI(){return TI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},TI.apply(null,arguments)}function MI(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function RI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,DI(e,t)}function OI(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const LI=!1,II=P.createContext(null);var AI=function(e){return e.scrollTop},PI="unmounted",zI="exited",FI="entering",NI="entered",VI="exiting",HI=function(e){function t(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=zI,o.appearStatus=FI):r=NI:r=t.unmountOnExit||t.mountOnEnter?PI:zI,o.state={status:r},o.nextCallback=null,o}RI(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===PI?{status:zI}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==FI&&n!==NI&&(t=FI):n!==FI&&n!==NI||(t=VI)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===FI){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:st.findDOMNode(this);n&&AI(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zI&&this.setState({status:PI})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,r=this.props.nodeRef?[o]:[st.findDOMNode(this),o],i=r[0],l=r[1],a=this.getTimeouts(),s=o?a.appear:a.enter;!e&&!n||LI?this.safeSetState({status:NI},function(){t.props.onEntered(i)}):(this.props.onEnter(i,l),this.safeSetState({status:FI},function(){t.props.onEntering(i,l),t.onTransitionEnd(s,function(){t.safeSetState({status:NI},function(){t.props.onEntered(i,l)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:st.findDOMNode(this);t&&!LI?(this.props.onExit(o),this.safeSetState({status:VI},function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:zI},function(){e.props.onExited(o)})})})):this.safeSetState({status:zI},function(){e.props.onExited(o)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:st.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=r[0],l=r[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===PI)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var o=MI(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return P.createElement(II.Provider,{value:null},"function"==typeof n?n(e,o):P.cloneElement(P.Children.only(n),o))},t}(P.Component);function BI(){}HI.contextType=II,HI.propTypes={},HI.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:BI,onEntering:BI,onEntered:BI,onExit:BI,onExiting:BI,onExited:BI},HI.UNMOUNTED=PI,HI.EXITED=zI,HI.ENTERING=FI,HI.ENTERED=NI,HI.EXITING=VI;var $I=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.remove(o):"string"==typeof n.className?n.className=OI(n.className,o):n.setAttribute("class",OI(n.className&&n.className.baseVal||"",o)));var n,o})},jI=function(e){function t(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}RI(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var o=this.getClassNames(t)[n+"ClassName"],r=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&r&&(o+=" "+r),"active"===n&&e&&AI(e),o&&(this.appliedClasses[t][n]=o,function(e,t){e&&t&&t.split(" ").forEach(function(t){return o=t,void((n=e).classList?n.classList.add(o):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,o)||("string"==typeof n.className?n.className=n.className+" "+o:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+o)));var n,o})}(e,o))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&$I(e,o),r&&$I(e,r),i&&$I(e,i)},n.render=function(){var e=this.props;e.classNames;var t=MI(e,["classNames"]);return P.createElement(HI,TI({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(P.Component);jI.defaultProps={classNames:""},jI.propTypes={};const WI={Light:"light",Dark:"dark"},UI=.12,qI=(e,t)=>{const n={},o=e=>{const t=e.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:e.typography?.fontFamily??"Calibri",fontSize:e.typography?.fontSize??8.25,fontWeight:e.typography?.fontWeightRegular??"400",fill:"dark"===e.palette.mode?e.palette?.text?.secondary:e.palette?.text?.primary},fill:t,strokeFill:If(t,UI,e.palette?.mode),darkMode:"dark"===e.palette.mode}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:If(n.body.fill,UI,e.palette?.mode),fill:t&&"dark"===e.palette.mode&&t.palette.mode!==e.palette.mode?n.body.fill:If(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:"dark"===e.palette.mode?n.body.strokeFill:If(n.body.fill,.328,e.palette?.mode)},n.headerHover=t=>({...n.header,strokeFill:If(t?.fill??n.body.fill,.22,e.palette?.mode),fill:If(t?.fill??n.header.fill,.065,e.palette?.mode),text:{...t?.text,fontWeight:e.typography?.fontWeightBold}});const i=If("dark"!==e.palette.mode?e.palette.primary.light:e.palette.primary.main,.055,e.palette?.mode);n.headerSelect={...n.header,strokeFill:e.palette.primary.main,fill:ut(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:ut(i,.7)},n.headerSelectAll={...n.headerSelect,fill:ut(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:If(r.fill,UI,t.palette?.mode),fill:t&&"dark"===t.palette.mode&&t.palette.mode!==e.palette.mode?r.fill:If(r.fill,.055,t.palette?.mode),edgeStrokeFill:"dark"===t.palette.mode?r.strokeFill:If(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?ut(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?ut(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const l=t??e,a="dark"===l.palette.mode;return n.selection={fill:l.palette?.primary?.main?ut(l.palette?.primary?.main,.1):void 0,strokeFill:l.palette?.primary?.main},n.selectionInactive={...n.selection,fill:l.palette?.divider?ut(l.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:ut(l.palette.warning.light,.05),strokeFill:l.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=ut(l.palette.action.active,.5),n.colorGrey=l.palette.action.active,n.filterDarkInvert=a?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function ZI(e){const{mode:t}=e||{},[n,o]=N(()=>{if("light"===t||"dark"===t)return{themeMode:t,source:"prop"};if("undefined"!=typeof document){const e=GI();if(e)return{themeMode:e,source:"class"}}return{themeMode:KI(),source:"media"}});return V(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const e=()=>{const e=GI();if(e)o({themeMode:e,source:"class"});else{const e=KI();o({themeMode:e,source:"media"})}},r=new MutationObserver(e),i=[document.documentElement,document.body].filter(Boolean);for(const e of i)r.observe(e,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",e),e(),()=>{r.disconnect(),l.removeEventListener("change",e)}},[t]),n}function GI(){if("undefined"==typeof document)return null;const e=[...Array.from(document.body.classList),...document.documentElement?Array.from(document.documentElement.classList):[]];return e.includes("dark")?"dark":e.includes("light")?"light":null}function KI(){return"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const XI=z(j((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,l=er(t,()=>({}),[]),[a,s]=_I(),c=F(null),d=F(null),[u,h]=P.useReducer(e=>e+1,0),[p,f]=N(null),[m,g]=N(null),[y,b]=N(null),{reference:w}=Wf({parentFloat:r,label:"overflow"});U(()=>{d.current={refs:[]};const e=[],t=P.Children.toArray(n);let o=0;t.forEach((n,r)=>{e.push(O(ne,{sx:{display:"flex"},ref:e=>{o++,o===t.length&&h();const n={current:null};n.current=e,d.current.refs[r]=n},children:n},r))}),f(e)},[n,s]),U(()=>{if(!p)return;const e=d.current.refs;if(!l.current||!e||0===e.length)return g(null),void b(null);const t=l.current?.getBoundingClientRect(),n=[],o=[];let r=0,i=!1;for(let n=0;!i&&n<e.length;n++){const o=e[n];if(!o)continue;if(!o.current){i=!0;continue}const l=o.current.getBoundingClientRect();r+=l?.width,r>t.width&&(i=!0)}if(!i)return g(null),void b([]);const a=c.current?.getBoundingClientRect();r=0;for(let i=0;i<e.length;i++){const l=e[i];let s=!1;if(l.current){const e=l.current.getBoundingClientRect();r+=e?.width,r<t.width-a.width&&(s=!0)}s?n.push(p[i]):o.push(p[i])}g(n.length>0?n:null),b(o.length>0?o:null)},[n,p,s,w,u]);const v=go(e=>{const t=[];for(let n=0;n<y.length;n++){let o=P.Children.toArray(y[n]);const r=o[0];o=P.Children.toArray(r.props.children?.props.children??r.props.children);const i=o[0],l={...i.props};l.parentFloat&&(l.parentFloat=e.floatReference);const a=P.cloneElement(i,l);t.push(a)}const n=O(ne,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:e=>e.spacing(.5),paddingBottom:e=>e.spacing(.5),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1),overflow:"hidden"},children:t});return Mf({...e,children:n})},[y]);return L(ne,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:sI([l,a,t]),...i,children:[O(ne,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:m??p}),O(ne,{sx:{display:null!==y&&0===y.length?"none":"flex",flex:"1 1 0"},children:O(im,{createPopupPanel:v,ref:c,parentFloat:w,createTooltip:({children:e},t)=>O(Jf,{label:"More",description:"More toolbar options…",disabled:t,children:e}),icon:O(Cc,{children:O(nt,{})})})})]})})),YI="https://unpkg.com/@sheetxl/scripting-templates/dist",JI=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await import("./hdx26DrfopUuM4j1.mjs")).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await import("./DWgrVUwlK4kwFJn-.mjs")).fromBufferCSV(e,t)},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:async(e,t)=>(await import("./zBIGDTI8z3bRbFxO.mjs").then(e=>e.i)).fromBufferXLSX(e,t)}],QI=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await import("./hdx26DrfopUuM4j1.mjs")).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await import("./DWgrVUwlK4kwFJn-.mjs")).toBufferCSV(e,t)},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:async(e,t)=>(await import("./zBIGDTI8z3bRbFxO.mjs").then(e=>e.i)).toBufferXLSX(e,t)}];let eA=class{constructor(e=JI,t=QI){this._readFormatTypes=[],this._writeFormatType=[],this._readFormatTypes=Object.freeze([...e]),this._writeFormatType=Object.freeze([...t])}_detectImportSourceType(e){return e&&"object"==typeof e&&"base64"in e?"base64":e&&"object"==typeof e&&"input"in e?"fetch":"string"==typeof e?e.startsWith("data:")?"base64":(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")||e.startsWith("./")||e.startsWith("../"),"fetch"):"undefined"!=typeof File&&e instanceof File?"file":e instanceof ArrayBuffer||ArrayBuffer.isView(e)?"buffer":"undefined"!=typeof ReadableStream&&e instanceof ReadableStream?"stream":null}getReadFormats(){return this._readFormatTypes}getWriteFormats(){return this._writeFormatType}getReadFormatTypeForKey(e){return this._readFormatTypes.find(t=>t.key.includes(e))??null}getReadFormatTypeForExt(e){return e=e.toLowerCase(),this._readFormatTypes.find(t=>t.exts.includes(e))??null}getReadFormatTypeForMimeType(e){return this._readFormatTypes.find(t=>t.mimeType===e)??null}getWriteFormatTypeForExt(e){return e=e.toLowerCase(),this._writeFormatType.find(t=>t.ext===e)??null}getWriteFormatType(e){e=e.toLowerCase();let t=this._writeFormatType.find(t=>t.ext===e)??null;return t||(t=this._writeFormatType.find(t=>t.key.toLowerCase()===e)??null,t||(this._writeFormatType.find(t=>t.mimeType.toLowerCase()===e)??null))}getAllReadFormatTypeAsString(){const e=[];for(let t=0;t<this._readFormatTypes.length;t++)e.push(this._readFormatTypes[t].mimeType);return e}async toArrayBuffer(e,t,n){const o=this.getWriteFormatType(t);if(!o)throw new Error(`Invalid export type for '${t}'.`);try{const r=o.handler;if(!r)throw new Error(`Unable to resolve handler for type: ${o.description??t}.`);return r(e,n)}catch(e){throw new Error(`Unable to load handler for '${t}.'`,{cause:e})}}async _fromArrayBuffer(e,t,n=null){let o=this.getReadFormatTypeForKey(t)??this.getReadFormatTypeForExt(t)??this.getReadFormatTypeForMimeType(t);if(!e||!o){if(!e)throw new Error("ArrayBuffer must be specified.");if(!t)throw new Error("formatKey must be specified.")}const r=o.handler;if(!r)throw new Error(`Unable to resolve handler for type: ${o?.description??t}.`);const i={...n,...n?.typedCreateWorkbookOptions?.[t]};let l;delete i.typedCreateWorkbookOptions;try{l=await r(e,i)}catch(e){throw new Error("Unable to import",{cause:e})}return l}async read(e){if(!e)throw new Error("'options' must be provided for load.");let t=e.source;if(!t)throw new Error("'options.source' must be provided for load.");const n=e.name,o=e.formatType;"function"==typeof t&&(t=t()),t&&"object"==typeof t&&"function"==typeof t.then&&(t=await Promise.resolve(t));const r=this._detectImportSourceType(t);if(!r)throw new Error("Unable to detect source type from provided input.");switch(r){case"file":{const n=t;return await this._fromFile(n,e)}case"base64":{let r;if(t&&"object"==typeof t&&"base64"in t)r=t.base64;else if("string"==typeof t&&t.startsWith("data:")){const[,e]=t.split(",");r=e}else r=t;const i=Dn.base64ToArrayBuffer(r),l=this.getReadFormatTypeForExt(o)||this._readFormatTypes[0];if(!l)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(i,l.key,e),title:n||"imported-file",formatType:l}}case"fetch":{let r,i,l=null;if("string"==typeof t)l=t;else{if(!t||"object"!=typeof t||!("input"in t))throw new Error("Invalid fetch source provided.");{const e=t;l=e.input,r=e.init,i=e.timeout}}const a=i||3e4,s=new AbortController,c=setTimeout(()=>s.abort(),a),d="string"==typeof l?l:l.toString(),u=o||y.getFileNameExtension(d),h=this.getReadFormatTypeForExt(u)||this._readFormatTypes[0];try{const t=await fetch(l,{...r,signal:s.signal});if(clearTimeout(c),!t.ok)throw new Error(`Failed to fetch: ${t.status} ${t.statusText}`);const o=await t.arrayBuffer();if(!h)throw new Error(`Unable to determine import type for fetched content: ${d}`);return{workbook:await this._fromArrayBuffer(o,h.key,e),title:n||y.getBaseName(d,!0)||"fetched-file",formatType:h}}catch(e){if(clearTimeout(c),"AbortError"===e.name)throw new Error(`Fetch timeout after ${a}ms: ${d}`);throw e}}case"buffer":{const r=t,i=this.getReadFormatTypeForExt(o)||this._readFormatTypes[0];if(!i)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(r,i.key,e),title:n||"buffer-file",formatType:i}}case"stream":{const r=t.getReader(),i=[];let l=0;try{for(;;){const{done:e,value:t}=await r.read();if(e)break;i.push(t),l+=t.length}}finally{r.releaseLock()}const a=new ArrayBuffer(l),s=new Uint8Array(a);let c=0;for(const e of i)s.set(e,c),c+=e.length;const d=this.getReadFormatTypeForExt(o)||this._readFormatTypes[0];if(!d)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(a,d.key,e),title:n||"stream-file",formatType:d}}default:throw new Error(`Unsupported source type: ${r}`)}}async _fromFile(e,t=null){let n=null;try{let o="";e?.name&&(o=`${y.getBaseName(e.name)}`);const r=this.getReadFormatTypeForExt(y.getFileNameExtension(e?.name));if(!r)throw new Error(`Unknown file type: ${y.getFileNameExtension(e?.name)??e?.name??"(empty)"}.`);const i=await e.arrayBuffer(),l={...t,...t?.typedCreateWorkbookOptions?.[r.key]};delete l.typedCreateWorkbookOptions;const a=r.handler;if(!a)throw new Error(`Unable to resolve handler for type: ${r?.description??y.getFileNameExtension(e?.name)??e?.name??"(empty)"}.`);await(l.onStart?.(o));const s=await a(i,l);n=new tA(e,s,o,r)}catch(e){throw e}return n}async writeFile(e,t,n){if(!t||!e)throw new Error("Workbook model or file name must be provided.");if(!t.isIWorkbook)throw new Error("Invalid workbook model provided. Must be an instance of IWorkbook.");const o=y.getFileNameExtension(e);o&&(e=e.slice(0,e.length-o.length-1));let r=null;n?.formatType&&(r=this.getWriteFormatType(n.formatType));const i=this.getWriteFormats(),l=i.length;for(let e=0;!r&&e<l;e++)(i[e].ext===o||!o&&i[e].isDefault)&&(r=i[e]);if(!r)throw new Error(`Unable to determine export type for '${e}'.`);const a=e+"."+r.ext;let s=null;try{s=await this.toArrayBuffer(t,r.key)}catch(e){throw"string"==typeof e?new Error(e):e}try{await(async(e,t)=>{let n;"undefined"!=typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer?(n=new ArrayBuffer(t.byteLength),new Uint8Array(n).set(new Uint8Array(t))):n=t,function(e,t){const n=URL.createObjectURL(e),o=document.createElement("a");o.style.display="none",o.href=n,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(n)}(new Blob([n],{type:"application/octet-stream"}),e)})(a,s)}catch(e){throw new Error("Unable to write file.",{cause:e})}return!0}},tA=class{constructor(e,t,n,o){this.file=e,this.workbook=t,this.title=n,this.formatType=o}get[Symbol.toStringTag](){return"[WorkbookHandle]"}toString(){return`'${this.file.name}' ${this.file.size} (${this.formatType.description})`}};const nA=new eA;var oA,rA,iA=function(){if(rA)return oA;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,o="",r=0,i=-1,l=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(i===a-1||1===l);else if(i!==a-1&&2===l){if(o.length<2||2!==r||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){var s=o.lastIndexOf("/");if(s!==o.length-1){-1===s?(o="",r=0):r=(o=o.slice(0,s)).length-1-o.lastIndexOf("/"),i=a,l=0;continue}}else if(2===o.length||1===o.length){o="",r=0,i=a,l=0;continue}t&&(o.length>0?o+="/..":o="..",r=2)}else o.length>0?o+="/"+e.slice(i+1,a):o=e.slice(i+1,a),r=a-i-1;i=a,l=0}else 46===n&&-1!==l?++l:l=-1}return o}rA=1;var n={resolve:function(){for(var n,o="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var l;i>=0?l=arguments[i]:(void 0===n&&(n=process.cwd()),l=n),e(l),0!==l.length&&(o=l+"/"+o,r=47===l.charCodeAt(0))}return o=t(o,!r),r?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(n){if(e(n),0===n.length)return".";var o=47===n.charCodeAt(0),r=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!o)).length||o||(n="."),n.length>0&&r&&(n+="/"),o?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,o=0;o<arguments.length;++o){var r=arguments[o];e(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":n.normalize(t)},relative:function(t,o){if(e(t),e(o),t===o)return"";if((t=n.resolve(t))===(o=n.resolve(o)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var i=t.length,l=i-r,a=1;a<o.length&&47===o.charCodeAt(a);++a);for(var s=o.length-a,c=l<s?l:s,d=-1,u=0;u<=c;++u){if(u===c){if(s>c){if(47===o.charCodeAt(a+u))return o.slice(a+u+1);if(0===u)return o.slice(a+u)}else l>c&&(47===t.charCodeAt(r+u)?d=u:0===u&&(d=0));break}var h=t.charCodeAt(r+u);if(h!==o.charCodeAt(a+u))break;47===h&&(d=u)}var p="";for(u=r+d+1;u<=i;++u)u!==i&&47!==t.charCodeAt(u)||(0===p.length?p+="..":p+="/..");return p.length>0?p+o.slice(a+d):(a+=d,47===o.charCodeAt(a)&&++a,o.slice(a))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),o=47===n,r=-1,i=!0,l=t.length-1;l>=1;--l)if(47===(n=t.charCodeAt(l))){if(!i){r=l;break}}else i=!1;return-1===r?o?"/":".":o&&1===r?"//":t.slice(0,r)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var o,r=0,i=-1,l=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var a=n.length-1,s=-1;for(o=t.length-1;o>=0;--o){var c=t.charCodeAt(o);if(47===c){if(!l){r=o+1;break}}else-1===s&&(l=!1,s=o+1),a>=0&&(c===n.charCodeAt(a)?-1===--a&&(i=o):(a=-1,i=s))}return r===i?i=s:-1===i&&(i=t.length),t.slice(r,i)}for(o=t.length-1;o>=0;--o)if(47===t.charCodeAt(o)){if(!l){r=o+1;break}}else-1===i&&(l=!1,i=o+1);return-1===i?"":t.slice(r,i)},extname:function(t){e(t);for(var n=-1,o=0,r=-1,i=!0,l=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===n?n=a:1!==l&&(l=1):-1!==n&&(l=-1);else if(!i){o=a+1;break}}return-1===n||-1===r||0===l||1===l&&n===r-1&&n===o+1?"":t.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,o=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+o:n+"/"+o:o}(0,e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var o,r=t.charCodeAt(0),i=47===r;i?(n.root="/",o=1):o=0;for(var l=-1,a=0,s=-1,c=!0,d=t.length-1,u=0;d>=o;--d)if(47!==(r=t.charCodeAt(d)))-1===s&&(c=!1,s=d+1),46===r?-1===l?l=d:1!==u&&(u=1):-1!==l&&(u=-1);else if(!c){a=d+1;break}return-1===l||-1===s||0===u||1===u&&l===s-1&&l===a+1?-1!==s&&(n.base=n.name=0===a&&i?t.slice(1,s):t.slice(a,s)):(0===a&&i?(n.name=t.slice(1,l),n.base=t.slice(1,s)):(n.name=t.slice(a,l),n.base=t.slice(a,s)),n.ext=t.slice(l,s)),a>0?n.dir=t.slice(0,a-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,oA=n}();const lA=/^(con|prn|aux|nul|com\d|lpt\d)$/i,aA=/[<>:"/\\|?*\u0000-\u001F]/g,sA=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:aA,WINDOW_FILENAME_RESERVED_REGEX:lA,isValidWindowsFilename:e=>!(!e||e.length>255||aA.test(e)||lA.test(e)||"."===e||".."===e),relativePath:(e,t)=>{try{return new URL(t),t}catch{}if(t.startsWith("/")||/^[a-zA-Z]:/.test(t))return t;if("undefined"==typeof window||void 0===window.document){if("undefined"!=typeof require&&"undefined"!=typeof process)return iA.Path.resolve(e,t);throw new Error("Unsupported environment")}try{let n=e.startsWith("http")?e:`file:///${e.replace(/\\/g,"/")}`;return n.endsWith("/")||(n+="/"),new URL(t,n).href}catch{const n=document.createElement("a");let o=e;return o.endsWith("/")||(o+="/"),n.href=new URL(t,o).href,n.href}}},Symbol.toStringTag,{value:"Module"})),cA=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:eA,IOUtils:sA,WorkbookIO:nA},Symbol.toStringTag,{value:"Module"})),dA=e=>{if(e.metadata?.name)return e.metadata.name;let t=(e.path.split("/").pop()||"").replace(/\.[^/.]+$/,"");if("formula"===e.metadata?.icon)return t.toUpperCase();t=t.replace(/([a-z])([A-Z])/g,"$1 $2");return t.replace(/[-_]/g," ").trim().split(/\s+/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},uA=async e=>{const t=sA.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new zn(`Failed to retrieve directory at '${e}': ${n.statusText}`);const o=await n.text();if(o.trim().toLowerCase().startsWith("<!doctype html")||o.trim().toLowerCase().startsWith("<html"))throw new zn(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(e){throw new Error(`Failed to parse directory: ${e.message}. Ensure the file is valid JSON.`)}const i=r.map(async t=>{try{const n=sA.relativePath(e,t.path),o=await fetch(n);if(!o.ok)throw new Error(`Failed to fetch file at '${t.path}': ${o.statusText}`);const r=await o.text();let i=t.metadata;i?.title||(i={title:dA(t),...i});return{path:t.path,content:r,metadata:i}}catch(e){console.error(e.message)}return null});return(await Promise.all(i)).filter(e=>null!==e)},hA={fontSize:"0.8rem",marginRight:"4px"},pA=z(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...l}=e;let a;return a="formula"===n.metadata?.icon?O(Cp,{sx:hA}):"macro"===n.metadata?.icon?O(Sp,{sx:hA}):O(ot,{sx:hA}),O(om,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:a,onMouseDown:e=>{0===e.button&&e.preventDefault()},onMouseUp:e=>{0===e.button&&r(n)},onKeyDown:e=>{e.keyCode!==io.Enter&&e.keyCode!==io.Space||r(n)},...l,children:L(ne,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[O(se,{component:"div",children:n.metadata?.title??n.path}),O(se,{variant:"caption",component:"div",sx:{color:e=>ut(e.palette.text.secondary??e.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),fA=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:l=YI,...a}=e,[s,c]=N([]),[d,u]=N(!0),h=ei(n,["executeSelectedScript"]),p=h[0]?.context?.();V(()=>{(async()=>{try{const e=await uA(l);c(e)}catch(e){}finally{u(!1)}})()},[l]);const f=H((e,t)=>{if(d)return O("div",{children:"Loading..."});const r={variant:ti.Menuitem,commandHook:o,scope:"scripts",disabled:i},l=t=>{p.getEditor()?.insertSnippet(t.content),e.closeFloat()},a=[];for(let e=0;e<s.length;e++){const t=s[e];t&&a.push(O(pA,{handleInsert:l,snippet:t},t.path))}const c=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[a.length>0?L(I,{children:[O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:a}),O(Mp,{orientation:"horizontal"})]}):null,Z(pb,{...r,key:"help",command:n.getCommand("help"),icon:kc(O(Oh,{}))})]});return Mf({...e,children:c})},[i,o,r,d,p]);return O(mb,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Insert Script",tooltip:"Inserts a script from a set of templates.",createPopupPanel:f,icon:kc(O(vp,{})),...a})})),mA=z(j((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=go(e=>{const{commandButtonProps:t,commandPopupProps:r}=e;return O(I,{children:L("div",{style:{display:"flex",flex:"1 1 100%"},children:[O("div",{children:O(XI,{parentFloat:o,style:{},children:O(pb,{...t,command:n.getCommand("saveScripts"),icon:kc(O(xp,{}))})})}),O("div",{style:{flex:"1 1 100%"}}),O("div",{children:O(XI,{parentFloat:o,style:{},children:O(fA,{...t,commands:n})})})]})})},[n]);return O(yb,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})}));mA.displayName="ScriptEditorToolbar";const gA={fontSize:"1rem"},yA=z(j((e,t)=>{const{scriptPath:n=YI,onScriptSelect:o,sx:r=Jo.EmptyCssProperties,className:i,buttonMinWidth:l=210,buttonMinHeight:a=80,gap:s=12,...c}=e,[d,u]=N([]),[h,p]=N(!0),[f,m]=N(null);if(V(()=>{(async()=>{const e=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{p(!0),m(null);const t=await uA(n);for(let n=0;n<t.length;n++){const o=t[n];o&&e.push(o)}}catch(e){m(e instanceof Error?e.message:"Failed to load scripts"),e instanceof zn||console.error("Error loading scripts:",e)}finally{u(e),p(!1)}})()},[n]),h)return O(ne,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Et(i,"script-select"),sx:{background:e=>e.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,...r},...c,children:O(Me,{})});let g=null;f&&(g=L(ne,{display:"flex",justifyContent:"center",alignItems:"center",className:Et(i,"script-select","error-results"),sx:{background:e=>e.palette.error.light,flex:"0",zIndex:1e3,flexDirection:"column",padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.error.main}`,borderBottomLeftRadius:1,borderBottomRightRadius:1,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},...c,children:[O(se,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),O(se,{color:"error",component:"div",children:f})]}));const y=e=>{const t=e.metadata?.icon;return"macro"===t?O(Sp,{sx:gA}):"formula"===t?O(Cp,{sx:gA}):"autostart"===t?O(ot,{sx:gA}):null};return L(ne,{ref:t,className:Et(i,"script-select"),sx:{background:e=>e.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,...r},...c,children:[L(ne,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[O(se,{variant:"h6",gutterBottom:!0,children:"Script Template"}),O(se,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Choose from a template to provide a starting point to automate tasks or create user defined functions."}),O(se,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),O(ne,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${l}px, 1fr))`,gap:`${s}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:d.map((e,t)=>L(me,{variant:"outlined",sx:{minWidth:l,minHeight:a,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...0===t&&{borderStyle:"dashed",marginBottom:"8px"},...1===t&&{gridColumn:"1"}},onClick:()=>o?.(e),children:[L(ne,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[O(se,{variant:"subtitle2",component:"div",children:e.metadata?.title||e.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),y(e)]}),e.metadata?.summary&&O(se,{variant:"body2",component:"div",color:"text.secondary",sx:{overflow:"hidden",display:"flex",flexDirection:"column",textOverflow:"ellipsis",alignItems:"flex-start"},children:e.metadata.summary})]},`${e.path}-${t}`))})]}),g]})}));yA.displayName="TemplateSelectPanel";const bA=z(j((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:l=!1,onClose:a,autoFocusSel:s,autoFocus:c=!0,scripts:d,...u}=e,h=Tx(),[p,f]=N(!1),m=F(!1),[g,y]=N({message:"Loading",cursor:"",dirty:!1}),[b,w]=N(null);V(()=>{let e=!1;return w(null),async function(){if(d&&(await d.start(),!e)){const e=d.getModules().search()[0]?.getSource();w({source:e||null})}}(),()=>{e=!0}},[d]);const v=H(e=>{y(t=>({...t,...e}))},[]),x=F(null),S=F(null),[C,k]=N(null),E=F(null),_=go(e=>{if(C)return C.focus(e),!0;if(s){const t=S.current?.querySelectorAll?.(s);if(t&&t.length>0)return t[0]?.focus?.(e),!0}return S.current?.focus?.(e),!1},[C,s,c]),T=$(()=>O(Vp,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),M=$(()=>O(ce,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,marginLeft:e=>e.spacing(.5),marginRight:e=>e.spacing(.5),marginTop:e=>e.spacing(1),marginBottom:e=>e.spacing(1)},children:O(mA,{commands:i})}),[h,i]),D=$(()=>O(ne,{className:Et("script-status-panel","status-panel"),sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",margin:0,borderTop:`solid 1px ${h.palette.divider}`},children:L("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[O(se,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:e=>e.palette.text.secondary},variant:"caption",children:g.message}),O(se,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:e=>e.palette.text.secondary},variant:"caption",children:g.dirty?"Unsaved":""}),O(se,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:e=>e.palette.text.secondary},variant:"caption",children:g.cursor})]})}),[g]),R=$(()=>L(ne,{className:Et("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[M,O(ne,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:O(oO,{ref:S,loadingPanel:T,readOnly:l,onClose:a,autoFocus:c,commands:i,onStatusChange:v,darkMode:"dark"===h.palette.mode,...r})}),D]}),[h,i,M,D,p,T,l,r,c,s,a,v]),I=$(()=>O(ve,{className:Et({"Mui-selected":m.current}),sx:{display:"flex",color:e=>e.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:e=>`${e.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:e=>e.transitions.duration.shortest/2+"ms"},backgroundColor:e=>ut(e.palette.action.hover,.03),borderBottom:e=>`solid ${ut(e.palette.divider,.2)} 1px`},onPointerDown:e=>{e.isDefaultPrevented()||(e.preventDefault(),_())},children:L(ne,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(.25),marginBottom:e=>e.spacing(.25),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},children:[O(ne,{sx:{flex:"1 1 100%",paddingLeft:e=>e.spacing(1)},children:"Script (Typescript)"}),O(Jf,{label:"Close",children:O(oe,{"aria-label":"close",sx:{color:e=>e.palette.text.icon??e.palette.action.active},touchRippleRef:x,onPointerDown:e=>{x.current?.start(e,{center:!1}),e.stopPropagation(),e.preventDefault()},onPointerUp:()=>{S.current?.close()},children:O($e,{})})})]})}),[h,p]),A=$(()=>{let e;return null===b?null:(null===b.source&&(e=O(yA,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:e=>{S.current?.getEditor().insertSnippet(e.content),w({source:e.content??""})}})),L(ne,{tabIndex:0,className:Et("script-workspace",n),sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",alignItems:"stretch",userSelect:"none",flexGrow:0,outline:"none",backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},onPointerDown:e=>{e.isDefaultPrevented()||S.current?.focus()},children:[I,L(ne,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[R,e]})]}))},[M,R,n,b]),P=er(t,()=>({isScriptWorkspaceElement:()=>!0,focus:e=>{_(e)}}),[]);return O(ne,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:P,...u,onFocus:e=>{f(!0),m.current=!0,P.current?.contains(e.target)&&e.target!==P.current&&k(e.target),e.relatedTarget&&!E.current&&(E.current=e.relatedTarget),u?.onFocus?.(e)},onBlur:e=>{P?.current?.contains(e.relatedTarget)||P?.current===e.relatedTarget||(E.current=null,m.current=!1,f(!1)),u?.onBlur?.(e)},children:A})}));bA.displayName="ScriptWorkspace";const wA=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,a=ei(n,["executeScript"])[0].context();ei(n,["showScriptEditor"]);const s=H((e,t)=>{const n={variant:ti.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},r=a?.getScripts(),l=r?.searchFunction({type:"macro"}),s=[];if(l)for(let e=0;e<l.length;e++){const o=l[e];s.push(O(pb,{...n,command:t.getCommand("executeScript"),commandState:{declaration:o},tooltipProps:{description:`Execute ${o.getName()??"script"}`},icon:kc(O(Sp,{})),label:o.getName()??`Script '${o.getName()}'`},`script-${o.getName()}-${e}`))}const c=L(ne,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[s.length>0?L(I,{children:[O(ne,{sx:{overflow:"auto",flex:"1 1 100%"},children:s}),O(Mp,{orientation:"horizontal"})]}):null,Z(pb,{...n,key:"show-editor",command:t.getCommand("showScriptEditor"),icon:kc(O(hp,{}))})]});return Mf({...e,children:c})},[i,a,o,r]);return O(mb,{ref:t,commands:n,commandHook:o,createPopupPanel:s,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:kc(O(wp,{})),...l})})),vA=z(j((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=ei(n,["executeScript","showScriptEditor"]),a=l[0]?.context?.(),s=H(e=>{const{commandButtonProps:t,commandPopupProps:r}=e,i=O(AO,{...r,command:n.getCommand("formatFontColor"),icon:O(Tc,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),s=O(AO,{...r,command:n.getCommand("formatFillColor"),icon:O(Ec,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:iO.End}}),c=n.getCommand("undo")?O(I,{children:O(NO,{...r,quickCommand:"undo"})}):null,d=n.getCommand("find")?O(I,{children:O(_O,{...r})}):null;let u=null;const h=a?.getScripts();if(l[1]?.state?.()||h){let e=l[1]?.state?.();const t=h?.searchFunction({type:"macro"});for(let n=0;t&&!e&&n<t?.length;n++)e=!0;e&&(u=L(I,{children:[O(Mp,{}),O(wA,{...r})]}))}return L(XI,{parentFloat:o,children:[c,null,c?O(Mp,{}):null,O(WO,{...r,command:n.getCommand("paste")}),O(pb,{...t,command:n.getCommand("formatPainterToggle"),icon:kc(O(Gu,{}))}),O(hL,{...t,command:n.getCommand("copy")}),O(Mp,{}),O(BO,{...r,command:n.getCommand("formatFontFamily")}),O(TO,{...r,command:n.getCommand("formatFontSize")}),O(pb,{...t,command:n.getCommand("formatBoldToggle"),icon:O(zl,{})}),O(pb,{...t,command:n.getCommand("formatItalicToggle"),icon:O(Pl,{})}),O(jO,{...r}),O($O,{...r}),i,O(Mp,{}),s,O(CO,{...r}),O(kO,{...r}),O(Mp,{}),O(vb,{...r}),O(xb,{...r}),O(Sb,{...r}),O(Cb,{...r}),O(Mp,{}),O(DO,{...r}),O(KO,{command:n.getCommand("formatCellStyle"),...r}),O(oL,{command:n.getCommand("formatTableStyle"),...r}),O(Mp,{}),O(LO,{...r}),O(IO,{...r}),O(Mp,{}),O(OO,{...r}),null,O(RO,{...r}),O(zO,{...r}),d,u]})},[n,l]);return O(yb,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:s,...i})})),xA=z(j((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=go(e=>{const{commandButtonProps:t,commandPopupProps:r}=e;return L(XI,{parentFloat:o,children:[null,O(pb,{...t,command:n.getCommand("updateHyperlink"),icon:kc(O(Vu,{}))}),O(pb,{...t,command:n.getCommand("updateComments"),icon:kc(O(Hu,{}))}),O(uL,{...r}),O(pb,{...t,command:n.getCommand("insertTable"),icon:kc(O($u,{}))})]})},[n]);return O(yb,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),SA=z(j((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=go(e=>{const{commandButtonProps:t,commandPopupProps:r}=e;return L(XI,{parentFloat:o,children:[O(EO,{...r}),O(pb,{...t,command:n.getCommand("protectionSheetToggle"),icon:O(tt,{color:"secondary"})}),O(Mp,{}),O(PO,{...r}),O(UO,{...r}),O(Mp,{}),O(pb,{...t,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:O(gb,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),O(pb,{...t,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:O(gb,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),O(Mp,{}),O(qO,{...r}),O(sL,{command:n.getCommand("selectTheme"),...r}),O(Mp,{}),O(wA,{...r,scope:"view"}),O(Mp,{}),O(pb,{...t,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>kc(n.getCommand("fullScreenToggle").state()?O(wh,{}):O(bh,{}))})]})},[n]);return O(yb,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),CA=e=>O(TA,{...e}),kA=z(e=>{const{sx:t,...n}=e;return L(ne,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:e=>`${ut(e.palette.primary.main,.35)} solid 2px`}},children:[O(Oe,{disableRipple:!0,onMouseDown:e=>{0===e.button&&e.preventDefault()},sx:{textTransform:"none",flex:"1 1 100%",fontWeight:e=>e.typography.fontWeightRegular,padding:"2px 6px",minHeight:"0px",minWidth:"0px",marginRight:e=>e.spacing(.5),"&.Mui-selected":{},"&.Mui-focusVisible":{},...t},...n}),O(ne,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),EA=z(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,l=$(()=>{const e=[];for(let n=0;n<t.length;n++)e.push(O(kA,{label:t[n].label},t[n].label));return e},[t]);return O(Re,{value:n,onChange:(e,t)=>{o?.(t)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5),paddingTop:e=>e.spacing(0),paddingBottom:e=>e.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:e=>e.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:O("span",{className:"MuiTabs-indicatorSpan"})},...i,children:l})}),_A=z(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,l=H(e=>{o?.(e.target.value)},[o]),a=$(()=>{const e=[];for(let o=0;o<t.length;o++){const r=t[o].label;e.push(O(ae,{value:o,sx:{color:e=>{if(n===o)return e.palette.primary.main}},children:r},r))}return e},[t,n]);return O(ke,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:e=>e.spacing(.5),paddingBottom:e=>e.spacing(.5),paddingLeft:e=>e.spacing(2),color:e=>e.palette.primary.main},"& .MuiSelect-icon":{fill:e=>e.palette.text.icon??e.palette.action.active,"&:hover:not(.Mui-disabled)":{color:e=>e.palette.text.icon??e.palette.action.active}},...r},size:"small",children:O(De,{value:n,onChange:l,variant:"outlined",sx:{backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`},...i,children:a})})}),TA=z(j((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:l,toolbarsProps:a,paletteProps:s={},workbook:c,sx:d,...u}=e,h=$(()=>{const e=[],{ref:t,...o}=a?.Home||{};e.push({label:"Home",component:O(vA,{commands:n,...o})});const{ref:r,...i}=a?.Insert||{};e.push({label:"Insert",component:O(xA,{commands:n,...i})});const{ref:l,...s}=a?.View||{};return e.push({label:"View",component:O(SA,{commands:n,...s})}),e},[n]),p=$(()=>{const e=[];for(let t=0;t<h.length;t++)e.push(P.cloneElement(h[t].component,{...h[t].component.props,key:h[t].key??h[t].label}));return e},[h]),[f,m]=N(0),g=e=>{m(e)},y=$(()=>O(i?_A:EA,{toolbars:h,value:f,onToolbarChange:g,sx:r}),[h,f,r,i]),{sx:b,...w}=s,v=O(ce,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`,marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1),marginTop:e=>e.spacing(.5),marginBottom:e=>e.spacing(.5),...b},...w,children:p[f]});return L(ne,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:e=>e.spacing(.5),"*":{userSelect:"none"},...d},...u,children:[o?o(y):y,l?l(v):v]})})),MA=e=>O(mI,{...e}),DA=e=>O(gI,{...e}),RA=e=>O(fI,{...e}),OA=z(j((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:l=!1,readOnly:a=!1,contextMenuProps:s,renderContextMenu:c=MA,sheetsAllProps:d,renderSheetsAll:u=DA,sheetTabProps:h,renderSheetTab:p,background:f="transparent",className:m,notifier:g,sx:y,borderWidth:b,borderColor:w,gridTheme:v,gridStyle:x,...S}=e,[C,k]=N(n?.getSelectedSheetIndex()),[E,_]=N(n?.getSheets().search()),[T,M]=N(n?.getProtection());j_(n,{onViewChange(e){k(e?.getSelectedSheetIndex())},onSheetsChange:e=>{_(e.getSheets().search())},onProtectionChange:e=>{M(e?.getProtection())}});const D=a||!T.isStructureAllowed(),R=$(()=>{const e=[];for(let t=0;t<E.length;t++)e.push(E[t].getName());return e},[E]),I=H(e=>{!1!==r?.(e)&&(n.getSheetAt(e).select(),i?.(e))},[n,r,i]),A=H((e,t)=>{n.getSheetAt(e).setName(t),i?.(e)},[n,i]),P=H((e,t)=>{n.getSheetAt(e).setPosition(t),i?.(t)},[n,i]),z=go(()=>{if(!1===r?.(C))return;const e=C+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(e)},[n,r,i,C]),B=$(()=>({placement:"top-start"}),[]),j=F(null),[W,U]=N(!1),q=H(e=>{const{closeFloatAll:t,floatReference:o}=e;return u({workbook:n,gridStyle:x,floatReference:o,closeFloatAll:t,...d})},[u,d,l,n,x]),{reference:Z,component:G}=Wf({label:"allSheet",popperProps:B,anchor:j.current,onOpen:()=>U(!0),onClose:()=>U(!1),createPopupPanel:q}),K=F(null),[X,Y]=N(null),J=H(e=>{const{floatReference:t}=e;return c?.({workbook:n,index:X?.index,tabStripRef:K.current,commands:o,disabled:l,floatReference:t,...s})},[c,s,l,n,o,X]),{reference:Q,component:ee}=Wf({label:"sheetTab",popperProps:B,anchor:{getBoundingClientRect:()=>new DOMRect(X?.left||0,X?.top||0,0,0)},onClose:()=>Y(null),createPopupPanel:J});V(()=>{X?Q.open(0):Q.close(0)},[X]);const te=H((e,t)=>{e.preventDefault(),Y({left:e.clientX-2,top:e.clientY-4,index:t})},[]),re=go(e=>{let t;try{t=n?.getSheetAt(e.index)}catch(e){}if(!t)return null;return(p??RA)({sheet:t,gridTheme:v,onContextMenu:t=>{I(e.index),te(t,e.index)},...e,...h})},[p,h,n,v]),ie=$(()=>D?null:O(Gf,{disableInteractive:!0,title:"New sheet",children:O(oe,{disabled:l,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:e=>e.palette.primary.main},color:e=>e.palette.text.icon??e.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>z(),children:O(rt,{})})}),[l,D,z]);return L(ne,{ref:t,className:Et(m),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...y},...S,children:[O(qR,{ref:K,selectedTabIndex:C,tabNames:R,onSelectedTabIndexChange:I,onTabNameChange:A,onTabMove:P,background:f,borderColor:w,borderWidth:b,activeColor:null,disabled:l,disableDrag:D,createScrollStartButton:_p,createScrollEndButton:Tp,createScrollEdgeButton:kp,createTabButton:re,createTabDivider:e=>{const{key:t,...n}=e;return O(Mp,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:e=>ut(e.palette.divider,.25)},...n},t)},editLabelProps:{readOnly:D,maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:e=>{n.isValidSheetNameCharacter(e.key)||e.preventDefault()},onCancel:()=>{i?.(C)},notifier:g},children:O(Gf,{disableInteractive:!0,title:W?"":"List all sheets",children:O(tm,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:e=>e.palette.text.icon??e.palette.action.active},ref:j,dense:!0,outlined:!1,selected:W,color:"primary","aria-label":"menu",onMouseDown:e=>{0===e.button&&e.preventDefault()},onClick:()=>{W?Z.close(0):Z.open(0)},icon:O(it,{})})})}),O("div",{style:{borderTop:`solid ${w} ${b}px`,minWidth:"4px"}}),O("div",{style:{borderTop:`solid ${w} ${b}px`,flex:"none",display:"flex",alignItems:"center"},children:ie}),O("div",{style:{borderTop:`solid ${w} ${b}px`,flex:1,minWidth:"24px"}}),ee,G]})}));OA.displayName="WorkbookStrip";const LA=z(j((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:l,className:a,...s}=e,[c,d]=B(e=>e+1,0),[u,h]=N(n.getSelectedSheet()),[p,f]=N(u.getSelectedRanges()),[m,g]=N(u.getSelectedCell());j_(n,{onSheetsChange(){h(n.getSelectedSheet())}}),j_(u.getSelection(),{onChange(){f(u.getSelectedRanges()),g(u.getSelectedCell())}}),ei(o,[],{onChange:()=>{d()}});const y=$(()=>({}),[]),b=$(()=>({commandHook:{beforeExecute:(e,t)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:l}),[r,l]),w=$(()=>({...y,...b,variant:ti.Menuitem}),[y,b]),v=$(()=>({commands:o,variant:ti.Menuitem,parentFloat:l,...b}),[o,b,l]),x=[];let S=p.isEntireRows(),C=p.isEntireColumns();p&&(S&&(x.push(O(Mp,{orientation:"horizontal"},"context:"+x.length)),x.push(Z(pb,{command:o.getCommand("hideColumns"),...w,icon:kc(O(Lu,{})),key:"context:"+x.length})),x.push(Z(pb,{command:o.getCommand("unhideColumns"),...w,icon:kc(O(Ou,{})),key:"context:"+x.length}))),C&&(x.push(O(Mp,{orientation:"horizontal"},"context:"+x.length)),x.push(Z(pb,{command:o.getCommand("hideRows"),...w,icon:kc(O(Au,{})),key:"context:"+x.length})),x.push(Z(pb,{command:o.getCommand("unhideRows"),...w,icon:kc(O(Iu,{})),key:"context:"+x.length}))),(S||C)&&x.push(O(Mp,{orientation:"horizontal"},"context:"+x.length)),S&&x.push(Z(pb,{command:o.getCommand("autoFitColumns"),...w,icon:kc(O(Kh,{})),key:"context:"+x.length})),C&&x.push(Z(pb,{command:o.getCommand("autoFitRows"),...w,icon:kc(O(Xh,{})),key:"context:"+x.length})));const k=[],E=o.getCommand("formatTableStyle"),_=E?.context()?.table();if(Jr(E),!S&&!C){if(k.push(O(Mp,{orientation:"horizontal"},"contextBefore:"+k.length)),m?.getHyperlink())k.push(Z(wb,{...v,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+k.length,quickCommand:"openHyperlink",icon:e=>"openHyperlink"===e.key()?kc(O(Vu,{})):null}));else{const e=o.getCommand("updateHyperlink");k.push(Z(pb,{command:e,...w,icon:kc(O(Vu,{})),key:"contextBefore:"+k.length}))}if(m?.getComments())k.push(Z(wb,{...v,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+k.length,quickCommand:"updateComments",icon:e=>"updateComments"===e.key()?kc(O(Hu,{})):null}));else{const e=o.getCommand("updateComments");k.push(Z(pb,{command:e,...w,icon:kc(O(Hu,{})),key:"contextBefore:"+k.length}))}_?k.push(Z(wb,{...v,variant:ti.Menuitem,key:"contextBefore:"+k.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:_,quickCommand:"editTable",icon:e=>{e.key();return kc(O($u,{}))}})):k.push(Z(pb,{command:o.getCommand("insertTable"),...w,icon:kc(O($u,{})),key:"context:"+x.length})),k.push(Z(uL,{...v,key:"contextBefore:"+k.length}))}const T=L(I,{children:[O(pb,{command:o.getCommand("cut"),...w,icon:O(Uc,{})}),O(hL,{command:o.getCommand("copy"),...w}),O(WO,{command:o.getCommand("paste"),...v,includePasteAllInPopup:!1}),O(Mp,{orientation:"horizontal"}),O(zO,{...v}),O(Mp,{orientation:"horizontal"}),O(LO,{commands:o,...v,disableSheet:!0}),O(IO,{commands:o,...v,disableSheet:!0}),O(RO,{...v}),k,x]});return O(ne,{ref:t,className:Et("menu",a),sx:{...i},...s,children:T})}));var IA,AA;LA.displayName="WorkbookContextMenu",function(){if(AA)return IA;AA=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i="object"==typeof Tb&&Tb&&Tb.Object===Object&&Tb,l="object"==typeof self&&self&&self.Object===Object&&self,a=i||l||Function("return this")(),s=Object.prototype.toString,c=Math.max,d=Math.min,u=function(){return a.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==s.call(e)}(i))return NaN;if(h(i)){var l="function"==typeof i.valueOf?i.valueOf():i;i=h(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var a=n.test(i);return a||o.test(i)?r(i.slice(2),a?2:8):t.test(i)?NaN:+i}IA=function(e,t,n){var o,r,i,l,a,s,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=o,i=r;return o=r=void 0,f=t,l=e.apply(i,n)}function w(e){var n=e-s;return void 0===s||n>=t||n<0||g&&e-f>=i}function v(){var e=u();if(w(e))return x(e);a=setTimeout(v,function(e){var n=t-(e-s);return g?d(n,i-(e-f)):n}(e))}function x(e){return a=void 0,y&&o?b(e):(o=r=void 0,l)}function S(){var e=u(),n=w(e);if(o=arguments,r=this,s=e,n){if(void 0===a)return function(e){return f=e,a=setTimeout(v,t),m?b(e):l}(s);if(g)return a=setTimeout(v,t),b(s)}return void 0===a&&(a=setTimeout(v,t)),l}return t=p(t)||0,h(n)&&(m=!!n.leading,i=(g="maxWait"in n)?c(p(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==a&&clearTimeout(a),f=0,o=s=r=a=void 0},S.flush=function(){return void 0===a?l:x(u())},S}}();var PA,zA,FA={exports:{}},NA={};zA||(zA=1,FA.exports=function(){if(PA)return NA;PA=1;var e=P,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!t(e,o)}catch(e){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),s=n({inst:{value:a,getSnapshot:t}}),c=s[0].inst,d=s[1];return r(function(){c.value=a,c.getSnapshot=t,l(c)&&d({inst:c})},[e,a,t]),o(function(){return l(c)&&d({inst:c}),e(function(){l(c)&&d({inst:c})})},[e]),i(a),a};return NA.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:a,NA}()),FA.exports;var VA,HA,BA={exports:{}},$A={exports:{}},jA=$A.exports;!function(){if(HA)return BA.exports;HA=1;for(var e=(VA||(VA=1,function(){var e,t,n,o,r,i;"undefined"!=typeof performance&&null!==performance&&performance.now?$A.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?($A.exports=function(){return(e()-r)/1e6},t=process.hrtime,e=function(){var e;return 1e9*(e=t())[0]+e[1]},o=e(),i=1e9*process.uptime(),r=o-i):Date.now?($A.exports=function(){return Date.now()-n},n=Date.now()):($A.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}.call(jA)),$A.exports),t="undefined"==typeof window?Tb:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],l=0;!r&&l<n.length;l++)r=t[n[l]+"Request"+o],i=t[n[l]+"Cancel"+o]||t[n[l]+"CancelRequest"+o];if(!r||!i){var a=0,s=0,c=[],d=1e3/60;r=function(t){if(0===c.length){var n=e(),o=Math.max(0,d-(n-a));a=o+n,setTimeout(function(){var e=c.slice(0);c.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(a)}catch(e){setTimeout(function(){throw e},0)}},Math.round(o))}return c.push({handle:++s,callback:t,cancelled:!1}),s},i=function(e){for(var t=0;t<c.length;t++)c[t].handle===e&&(c[t].cancelled=!0)}}BA.exports=function(e){return r.call(t,e)},BA.exports.cancel=function(){i.apply(t,arguments)},BA.exports.polyfill=function(e){e||(e=t),e.requestAnimationFrame=r,e.cancelAnimationFrame=i},BA.exports}();var WA={DOM_UNAVAILABLE_ERROR:"DOM is unavailable server-side. Please use this method client-side only.",FULLSCREEN_UNSUPPORTED_ERROR:"Your browser does not support Fullscreen API.",getEventsNames(){if("undefined"==typeof document)return null;const e=document;return"exitFullscreen"in e?["fullscreenchange","fullscreenerror"]:"webkitExitFullscreen"in e||"webkitCancelFullScreen"in e?["webkitfullscreenchange","webkitfullscreenerror"]:"mozCancelFullScreen"in e?["mozfullscreenchange","mozfullscreenerror"]:"msExitFullscreen"in e?["MSFullscreenChange","MSFullscreenError"]:null},getEventName(e){const t=this.getEventsNames();return t?"change"===e?t[0]:t[1]:null},get fullscreenEnabled(){if("undefined"==typeof document)return!1;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||!1},get fullscreenElement(){if("undefined"==typeof document)return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,t){if("undefined"==typeof document)throw new Error(this.DOM_UNAVAILABLE_ERROR);const n=e??document.documentElement,o=n.requestFullscreen||n.webkitRequestFullscreen||n.webkitRequestFullScreen||n.mozRequestFullScreen||n.msRequestFullscreen;if(!o)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return o.call(n,t)},exitFullscreen(){if("undefined"==typeof document)throw new Error(this.DOM_UNAVAILABLE_ERROR);const e=document,t=e.exitFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullscreen;if(!t)throw new Error(this.FULLSCREEN_UNSUPPORTED_ERROR);return t.call(e)},on(e,t){const n=this.getEventName(e);n&&document.addEventListener(n,t)},off(e,t){const n=this.getEventName(e);n&&document.removeEventListener(n,t)}};const UA=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:l,onShowSidebar:a,onNewWorkbook:s=qA}=e,[c,d]=N(t?.getSelectedSheet()),[u,h]=N(t?.getSheets().search()),p=go(a,[a]),f=go(s,[s]),m=$(()=>[new Zr("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[ro.Ctrl,ro.Shift]}}),new Zr("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[ro.Ctrl,ro.Shift]}}),new qr("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new qr("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new qr("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new Zr("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[ro.Ctrl]},{key:"F5",modifiers:[ro.Shift]}]}),new Zr("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[ro.Ctrl]},{key:"H",modifiers:[ro.Ctrl,ro.Alt]}]}),new Zr("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[ro.Ctrl]}]}),new Zr("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[ro.Ctrl,ro.Shift]}}),new Zr("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new Zr("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new Zr("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new Zr("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new Zr("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new qr("hideSheet",r,{label:"Hide Sheet",scopedLabels:{sheet:"Hide"},description:"Hide the sheet from appearing in the tabs. This keeps the data but de-clutters the tabs."}),new qr("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new qr("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[ro.Shift]},{key:"F1",modifiers:[ro.Alt,ro.Shift]}]}),new qr("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new qr("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[ro.Ctrl]}]}),new qr("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[ro.Ctrl]}]}),new qr("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[ro.Ctrl,ro.Shift]}]}),new qr("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[ro.Ctrl,ro.Shift]}]}),new qr("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new qr("selectNamed",r,{label:e=>e?.getName()??"Select Named Item",scopedLabels:{namedItem:e=>e?.getName()??"Select"},description:"Select the item."}),new qr("addNamedReference",r,{label:"Define Named Reference",scopedLabels:{namedItem:"Define Name…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new qr("editNamedReference",r,{label:"Edit Named Reference…",scopedLabels:{namedItem:"Edit…"},description:"Add a new named reference. Names can be used as a substitute for cell references."}),new qr("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new Zr("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[ro.Alt]}}),new Zr("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[ro.Ctrl,ro.Shift]}}),new Zr("activeNameManager",r,{label:"Activate Name Manager",description:"Create, edit, delete, and find all the names used in the workbook.\n\nNames can be used as a substitute for cell references.",shortcut:{key:"F3",modifiers:[ro.Ctrl]}}),new qr("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new qr("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[ro.Alt]}]},function(e=!0){p?.()}),new qr("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new qr("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new qr("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new qr("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[ro.Ctrl]}}),new qr("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new qr("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new Zr("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[ro.Ctrl]}}),new Zr("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[ro.Ctrl]}}),new Zr("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[ro.Ctrl]}})],[]),g=$(()=>{let e=null;return e=i?i.createChildGroup(r,"workbook",!1):new Gr(r,"workbook"),e.addCommands(m,!0),e},[i,m]),y=Ur(),b=P.useRef(null),w=go(()=>{let e,n=null;const r=g.getCommand("executeScript");if(r.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!r)return;const i=g.getCommand("executeSelectedScript");if(!i)return;const l={saveSource:async e=>{let n=null,r=null;const i=t.getScripts();try{if(e){r=await(o?.showBusy?.("Saving Scripts..."));n=await i.createModule({source:e})}i.addModule("scripts",n,{replace:!0}),r?.()}catch(e){r?.(),console.warn("Unable to compile",e),o?.showError?.(e)}return n},addContainerListener:e=>(v.current=e,()=>{v.current=null}),setSelectedFunction:t=>{e=t??b.current??null,Promise.resolve(e).then(e=>{i.update({disabled:null===e})})},quickInsertFunction:e=>{const t=`=${e.toUpperCase()}(`,n={text:t+")",editMode:!0,initialSelection:{start:t.length,end:t.length+0}};y.setMode(e=>"edit"===e?.key?{...e,args:{...e.args}}:{key:"edit",args:{stateAndCoords:null,start:n}})},getSelectedFunction:()=>e,setEditor:e=>{n=e??null,g.getCommand("showScriptEditor")?.update({state:null!==e})},getEditor:()=>n,getRanges:e=>{try{return t.getRanges(e)}catch(e){}return null},getScripts:()=>t.getScripts(),isReadOnly:()=>!1===t.getProtection().isStructureAllowed()};i.update({context:l})},[g,t,n,o]),v=P.useRef(null);j_(t,{onBeforeSave:async()=>{await(v.current?.onBeforeSave())},onProtectionChange:()=>{v.current?.onReadonlyChange()},onLoad:()=>{(async()=>{await t.getCalculation().start(),t.getScripts().start(),v.current?.onScriptChange()})()}}),j_(t,{onSheetsChange:e=>{h(e.getSheets().search())},onViewChange(e){d(e?.getSelectedSheet())},onProtectionChange:e=>{const t={disabled:!e.getProtection().isStructureAllowed()};g.getCommand("hideSheet").update(t),g.getCommand("deleteSheet").update(t),g.getCommand("addSheet").update(t),g.getCommand("duplicateSheet").update(t),g.getCommand("selectTheme").update(t),g.getCommand("addNamedReference").update(t),g.getCommand("editNamedReference").update(t),g.getCommand("deleteNamedReference").update(t)},onScriptsChange:e=>{w()}});const{isFullscreenAvailable:x,isFullscreenEnabled:S,toggleFullscreen:C}=function(e={}){const{target:t,onChange:n,onError:o,requestFullScreenOptions:r}=e,[i,l]=N(!1),[a,s]=N(null),[c,d]=N(!1),u=H(()=>WA.requestFullscreen(t?.current||null,r),[t,r]),h=H(()=>WA.exitFullscreen(),[]),p=H(()=>WA.fullscreenElement?h():u(),[u,h]),f=H(e=>{const t=WA.fullscreenElement;s(t),d(!!t),n?.(e)},[n]),m=H(e=>{const t=WA.fullscreenElement;s(t),d(!!t),o?.(e)},[o]);return V(()=>{l(WA.fullscreenEnabled)},[]),V(()=>(WA.on("change",f),WA.on("error",m),()=>{WA.off("change",f),WA.off("error",m)}),[f,m]),{isFullscreenAvailable:i,fullscreenElement:a,isFullscreenEnabled:c,enableFullscreen:u,disableFullscreen:h,toggleFullscreen:p}}({target:{current:n??document.body}}),k=KR();V(()=>{g.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:k,darkMode:l})})},[t?.getTheme(),l]);const E=go(async function(e,n){let r=null;const i=t.getScripts();if(e?.declaration||e?.functionName){const t=e.declaration?e.declaration.getName():e.functionName;i.searchFunction({name:t}).length>0&&(r=t)}if(r)try{await i.executeMacro(r);b.current=Promise.resolve({source:null,name:r})}catch(e){return void o?.showError?.(e)}},[t,o]);V(()=>{g.getCommand("newCellStyle").updateCallback(e=>{o?.showInputOptions?.({initialValue:(()=>{let e=0;for(;;){e++;const n=`Style ${e}`;try{return t.getStyles().validateStyleName(n,!0),n}catch(e){}}})(),title:g.getCommand("newCellStyle")?.label("cellStyle"),description:"Enter a name for the new cell style.",inputLabel:"Style Name",inputProps:{style:{minWidth:"300px"}},options:["Ok","Cancel"],defaultOption:"Ok",onValidateInputOption:async(e,n)=>{let o=null;try{t.getStyles().validateStyleName(e,!1)}catch(e){o=e.message}let r=t.getStyles().getNamed(e),i=o;return!i&&r&&(i=`Update style '${r.getName()}'.`),{valid:null===o,message:i}}}).then(({input:e,option:n})=>{const o=t.getSelectedSheet().getSelectedRange();if("Ok"!==n)return;const r=t.getStyles().setNamed({name:e,style:o.getCell().getStyle()});o.updateStyle({named:r.getName()})})}),g.getCommand("deleteCellStyle").updateCallback(e=>{e.delete()}),g.getCommand("modifyCellStyle").updateCallback(({named:e})=>{const n=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:e.getName(),style:n.getCell().getStyle()})}),g.getCommand("hideSheet").updateCallback(e=>{t.getSheetAt(e).setVisibility(_.Visibility.Hidden)}),g.getCommand("deleteSheet").updateCallback(async e=>{t.getSheetAt(e??t.getSelectedSheetIndex())?.delete()}),g.getCommand("addSheet").updateCallback(e=>{t.getSheets().add({index:e,autoSelect:!0})}),g.getCommand("duplicateSheet").updateCallback(async e=>{const n=await(t.getSheetAt(e??t.getSelectedSheetIndex())?.duplicate());n?.select()}),g.getCommand("nextSheet").updateCallback(e=>{t.getNextSheet(e??t.getSelectedSheetIndex()).select()}),g.getCommand("previousSheet").updateCallback(e=>{t.getPreviousSheet(e??t.getSelectedSheetIndex()).select()}),g.getCommand("selectNextSheet").updateCallback(e=>{t.getNextSheet(e??t.getSelectedSheetIndex()).select()}),g.getCommand("selectPreviousSheet").updateCallback(e=>{t.getPreviousSheet(e??t.getSelectedSheetIndex()).select()}),g.getCommand("selectTheme").updateCallback(e=>{t.setTheme(e)}),g.getCommand("calculateAll").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),g.getCommand("calculate").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),g.getCommand("closeWorkbook").updateCallback(async()=>{"Close"===await(o?.showOptions({title:"Confirm",description:"This will close the current workbook tab. Do you want to continue?",options:["Close","Cancel"],defaultOption:"Close"}))&&window.close()}),g.getCommand("newWorkbook").updateCallback(()=>{f?.()}),g.getCommand("executeScript").updateCallback(E),g.getCommand("executeSelectedScript").updateCallback(E)},[t,o]);const T=go(async e=>{let n=0,r=null,i="Find & Replace";e?.replace&&!e?.replaceOptions?.maxCount&&(i="Replace All");const l=await(o?.showBusy?.(i));try{const i=e?.scope??"sheet";let a=null;const s=t.getSelectedSheet(),c={from:s.getSelectedCell(),...e.findOptions};if(a="sheet"===i?t.getSelectedSheet().find(e.findText,c):t.find(e.findText,c),e.replace){const o=t.replace(a,e.replaceText,e.replaceOptions);n=o.count,e.replaceOptions.maxCount&&(r=o.last)}else{let e=a.next();e.done||(n++,r=e.value)}r?.select({autoFocus:!1}),l?.(),!e.replaceOptions.maxCount&&n>1&&o?.showMessage?.(`We replaced ${n} cells.`)}catch(e){l?.(),o?.showError?.(e)}return n},[t,n]),M=go(e=>{const n={value:e,context:{selection:()=>{const e=t.getSelectedRanges(),n=[];for(let t=0;t<e.getCount();t++){const o=e.at(t).getFixed(!0).getCoords();n.push(o)}return t.getRanges(n)},getNames:()=>t.getNames()},onUpdate:async e=>{try{await e.select()}catch(e){o?.showMessage?.(e.message,{type:rr})}}};return o.showWindow?.("namedDetails",n)},[o,t,n]);return V(()=>{const e=(e=!1)=>{const n=t.getSelectedCell(),r={onFindOrReplace:T,onKeyDown:e=>{g.findCommandByEvent(e)!==g.getCommand("find")&&g.findCommandByEvent(e)!==g.getCommand("findReplace")||e.preventDefault()},findOptions:{},findText:n.toTextUnformatted(!0)};r.replace=e,o.showWindow?.("find",r,{disableAutoDestroy:!0})};g.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{e()}),g.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{e(!0)}),g.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const e={onInputOption:async e=>{try{await t.getRanges(e).select()}catch(e){o?.showMessage?.(e.message,{type:rr})}},onKeyDown:e=>{g.findCommandByEvent(e)===g.getCommand("goto")&&e.preventDefault()},title:g.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(e)}),g.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async e=>{if(e)try{await e.select()}catch(e){o?.showError?.(e)}}),g.getCommand("addNamedReference")?.updateCallback(async function(e){M(null)}),g.getCommand("editNamedReference")?.updateCallback(async function(e){M(e)}),g.getCommand("deleteNamedReference")?.updateCallback(async function(e){e?.delete?.()}),g.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),j_(t?.getView(),{onViewChange:e=>{g.getCommand("workbookViewToggleShowFormulaBar").update({state:e.isShowFormulaBar()}).updateCallback(()=>{e.setShowFormulaBar(!e.isShowFormulaBar())}),g.getCommand("workbookViewToggleShowTabs").update({state:e.isShowTabs()}).updateCallback(()=>{e.setShowTabs(!e.isShowTabs())}),g.getCommand("workbookViewToggleShowStatusBar").update({state:e.isShowStatusBar()}).updateCallback(()=>{e.setShowStatusBar(!e.isShowStatusBar())}),g.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:e.isShowHorizontalScrollbar()}).updateCallback(()=>{e.setShowHorizontalScrollbar(!e.isShowHorizontalScrollbar())}),g.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:e.isShowVerticalScrollbar()}).updateCallback(()=>{e.setShowVerticalScrollbar(!e.isShowVerticalScrollbar())})}}),V(()=>{g.getCommand("fullScreenToggle").update({state:S,disabled:!x}).updateCallback(()=>{C()})},[S,x]),V(()=>{const e=t.getProtection().isStructureAllowed();g.getCommand("hideSheet").update({disabled:u.length<=1||!e}),g.getCommand("deleteSheet").update({disabled:u.length<=1||!e})},[u,c]),g},qA=()=>{window.open(window.origin.toString(),"sheetxl-"+S.uuidV4(),"popup=true")},ZA=z(j((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:l,...a}=e;j_(n,{onAnyChange(e){}});const s=$(()=>({}),[]),c=$(()=>({commandHook:{beforeExecute:(e,t)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),d=$(()=>({variant:ti.Menuitem,...s,...c}),[s,c]),u=$(()=>({commands:o,variant:ti.Menuitem,parentFloat:l,...c}),[o,c,l]),h=e=>{const t=e?.key();switch(t){case"moveToFront":return kc(O(Qh,{}));case"moveForward":return kc(O(ep,{}));case"moveToBack":return kc(O(Jh,{}));case"moveBackward":return kc(O(tp,{}));case"toggleLockAspectRatio":return kc(O(np,{}));case"formatDrawAlignLeft":return kc(O(rp,{}));case"formatDrawAlignCenter":return kc(O(ip,{}));case"formatDrawAlignRight":return kc(O(lp,{}));case"formatDrawAlignTop":return kc(O(ap,{}));case"formatDrawAlignMiddle":return kc(O(sp,{}));case"formatDrawAlignBottom":return kc(O(cp,{}));case"formatDrawDistributeHorz":return kc(O(dp,{}));case"formatDrawDistributeVert":return kc(O(up,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return kc(O(op,{}));default:return null}},p=L(I,{children:[O(hL,{command:o.getCommand("copy"),...d,variant:ti.Menuitem}),[],O(Mp,{orientation:"horizontal"}),O(wb,{...u,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:h}),O(wb,{...u,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:h}),O(Mp,{orientation:"horizontal"}),O(pb,{...d,command:o.getCommand("toggleLockAspectRatio"),icon:kc(O(np,{}))}),O(Mp,{orientation:"horizontal"}),O(wb,{...u,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:e=>{const t=h(e);return t||kc(O(rp,{}))},tooltip:"Quickly change the placement of your drawings."}),O(Mp,{orientation:"horizontal"}),O(wb,{...u,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:e=>{const t=h(e);return t||kc(O(op,{}))},tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return O(ne,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...a,children:p})}));ZA.displayName="MovableContextMenu";const GA="_sheetxl-theme_4opcr_2",KA="_sheetxl-workbook_1j3lu_5",XA={fireOnModelChange:!1},YA={flex:"1 1 100%",display:"flex"},JA=e=>O(vL,{...e}),QA=e=>O(OA,{...e}),eP=e=>O(ZA,{...e}),tP=e=>O(LA,{...e}),nP=e=>O(hI,{...e}),oP=(e,t)=>O(uI,{ref:t,...e}),rP=e=>O(Vp,{...e}),iP=(e,t)=>O(BT,{ref:t,...e}),lP=z(j((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:l,autoFocus:a=!1,sx:s,style:c,className:d,onFocus:u,onBlur:h,onKeyDown:p,onRepeatCommandChange:f,commands:m,showFormulaBar:g,formulaBarProps:y,renderFormulaBar:b=oP,showTabs:w,tabsProps:v,renderTabs:x=QA,showStatusBar:C,statusBarProps:k,renderStatusBar:E=JA,toolbarProps:_,renderToolbar:D=CA,contextMenuSx:R,renderContextMenu:A=tP,renderFilterMenu:z=nP,renderMovableMenu:j=eP,renderLoadingPanel:W=rP,loadingPanelProps:q,sheetProps:Z,renderSheet:G=iP,showHorizontalScrollbar:K,showVerticalScrollbar:X,gridTheme:Y,headersTheme:J,enableDarkImages:Q,...ee}=e,te=Tx(),oe=KR(),re=$(()=>{const e={theme:oe.getDefaultTheme(),...o};return n??new T(e)},[n]),ie=F(null),[le,ae]=N(!1),de=F(null),ue=$(()=>O(ne,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:de}),[]),[he,pe]=N(!1),[fe,me]=N(!1),ge=H(()=>{pe(!0)},[]),ye=F(null),be=er(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>re,getSheetElement:()=>ie.current,getViewportElement:()=>de.current,getFormulaBarElement:()=>ye.current,focus(){ie&&ie.current&&ie.current.focus()}}),[re]),we=F(null);U(()=>{he&&be.current&&(me(!0),we.current!==i&&(i?.({source:be.current}),we.current=i))},[he,be.current]),vI(be.current);const ve=H(e=>(ie.current?.submitEdit(),!0),[]),xe=H(()=>{requestAnimationFrame(()=>{ie?.current?.focus()})},[]),[Se,Ce]=N(re?.getSelectedSheet()),[ke,Ee]=N(re?.getProtection());j_(re,{onSheetsChange:e=>{Ce(e?.getSelectedSheet())},onViewChange(e){Ce(e?.getSelectedSheet())},onProtectionChange:e=>{Ee(e?.getProtection())}}),j_(re,{onRequestSelect:async(e,t)=>new Promise(e=>{ie.current.getSheet()!==t?ie.current.getGridElement()?.onViewChangeOnce(()=>{ie.current.getSheet()!==t&&e(!1),e(!0)}):e(!0)})},XA);const[_e,Te]=B(e=>e+1,0),Me=re?.getView();j_(Me,{onViewChange:e=>{Te()}});const De=Y??te,Re=$(()=>qI(te,De),[te,De]),Oe=J??te,Le=$(()=>qI(te,Oe),[te,Oe]),[Ie,Ae]=N(null);H(()=>{ie.current.focus()},[]);const[Pe,ze]=N(!1),Fe=F(null),Ne=UA({workbook:re,workbookElement:be.current,commandTarget:()=>ie.current,notifier:l,commands:m,darkMode:Re.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{Pe?Fe.current?.focus():ze(!0)}}),Ve=F(null),[He,Be]=N(!1),[$e,je]=N(null),[We,Ue]=N(vr),[qe,Ze]=N(M.EmptyBounds),Ge=()=>{Be(!1),je(null)},Ke=(e,t,n=vr)=>{Ze(e),Ue(n),je(t),null!==Ve.current&&Ve.current.update(),Be(!0)},[Xe,Ye]=N("sheet"),Je=w??Me?.isShowTabs(),Qe=K??Me?.isShowHorizontalScrollbar(),et=g??Me?.isShowFormulaBar(),tt=C??Me?.isShowStatusBar(),nt=X??Me?.isShowVerticalScrollbar(),ot=Re?.header?.edgeStrokeFill||"rgb(171,171,171)",rt=$(()=>tt?E({sheet:Se,gridStyle:Re,...k}):null,[E,k,tt,Re,Se]),it=$(()=>D({commands:Ne,workbook:be.current,..._}),[Ne,D,_,te]),[lt,{width:at}]=_I(),st=0===at||at>560,ct=$(()=>{if(!Je)return null;let e=x({background:Re.body.fill,borderWidth:1,borderColor:ot,gridTheme:De,gridStyle:Re,onBeforeUserChange:ve,onUserChange:xe,workbook:re,commands:Ne,sheetTabProps:{},notifier:l,...v});return st||(e=O("div",{style:{flex:"none",display:"flex"},children:e})),e},[x,v,l,te,re,De,st,Ne,Je]),dt=H(e=>{const t=S.getOS()===S.OSType.Firefox;let n=null,o=null,r=null;if(Qe&&(o=O("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${ot} 1px`,maxWidth:"100%"},children:O(oT,{style:{alignItems:"center",borderTop:(t?6:3)+"px solid transparent",borderBottom:(st?6:3)+"px solid transparent",borderLeft:(t?3:0)+"px solid transparent",borderRight:(t?3:0)+"px solid transparent"},...e,endGap:700,sheet:Se,showCustomScrollButtons:!t,onShowTooltip:e=>{Ke({x:e.anchor.x,y:e.anchor.y,width:0,height:0},e.display,e.placement)},onCloseTooltip:()=>Ge()})})),Je&&st&&(r=ct),Je&&st&&!Qe&&(r=L(ne,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[r,O(ne,{sx:{borderTop:`solid ${ot} 1px`,flex:"1"}})]})),r&&Qe)n=O(Rr,{position:re.getView().getTabRatio()/10+"%",onPositionChange:({percent:e})=>{re.getView().setTabRatio(Math.round(10*e))},minBefore:"200px",minAfter:"180px",resizerProps:{style:{minWidth:"11px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${te.palette.text.icon??te.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`,backgroundRepeat:"no-repeat",backgroundPosition:"center",borderTop:`solid ${ot} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:r,elementAfter:o});else if(Qe)n=o;else{if(!r)return O(ne,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:tt?null:`solid ${ot} 1px`}});n=r}return O(ne,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:n})},[Se,ve,re,Re,De,Ne,Je,Qe,tt,st]),[ht,pt]=P.useState(null),ft=$(()=>({placement:"right-start",...ht?.popperProps}),[ht?.popperProps]),{reference:mt,component:gt}=Wf({label:"contextMenu",popperProps:ft,anchor:ht?.anchor??{getBoundingClientRect:()=>new DOMRect(ht?.clientX||0,ht?.clientY||0)},onClose:()=>pt(null),createPopupPanel:ht?.createPopupPanel});V(()=>{ht?mt.open(0):mt.close(0)},[ht]);const yt=go((e,t)=>{if(e?.isDefaultPrevented())return!0;e.preventDefault(),ht&&ht.anchor===e.currentTarget?pt(null):pt({anchor:e.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:e=>{const{floatReference:n}=e;return z({filter:t,commands:Ne,floatReference:n,sx:{...R}})}})},[z,R,Ne,re,ht]),bt=go(e=>{if(e.originalEvent?.isDefaultPrevented())return!0;e.originalEvent?.preventDefault(),pt({clientX:e.clientX,clientY:e.clientY,createPopupPanel:e=>{const{floatReference:t}=e;return A({commands:Ne,workbook:re,floatReference:t,sx:{...R}})}})},[A,R,Ne,re]),wt=go((e,t)=>{if(e?.isDefaultPrevented())return!0;e.preventDefault(),pt({clientX:e.clientX,clientY:e.clientY,createPopupPanel:e=>{const{floatReference:n}=e;return j({movable:t,commands:Ne,floatReference:n,sx:{...R}})}})},[j,R,Ne]);$(()=>{const e=[new Zr("openContextMenu",()=>ie.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[ro.Shift]},{key:"ContextMenu"}]})];Ne.addCommands(e,!0)},[Ne]),V(()=>{Ne.getCommand("openContextMenu").updateCallback(()=>{const e=Se.getSelection().getCoords().cell;ie.current?.getGridElement()?.scrollCellCoordsIntoView(e).then(t=>{requestAnimationFrame(()=>{const n=Se.getView().getZoomScale()/100,o=Se.getColumnHeaders().findOffset(e.colIndex+1)*n,r=Se.getRowHeaders().findOffset(e.rowIndex+1)*n,i=ie.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};bt({clientX:o-i.x-t.left+6,clientY:r-i.y-t.top+6})})})})},[Se]);const vt=go(e=>{Ne?.dispatchToFocusedCommand(e)},[Ne]),xt=go(()=>{vI(be.current)},[re,be.current]),St=H(()=>{Ye("sheet")},[]),Ct=H(()=>{Ye("formulaBar")},[]),kt=go(e=>{const t=S.getOS()===S.OSType.Firefox;return O(oT,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(t?3:0)+"px solid transparent",borderBottom:(t?3:0)+"px solid transparent",width:t?"13px":void 0},...e,sheet:Se,endGap:700,showCustomScrollButtons:!t,onShowTooltip:e=>{Ke(e.anchor,e.display,br)},onCloseTooltip:()=>Ge()})},[Se]);V(()=>{a&&ie&&ie.current&&ie.current.focus()},[]);const[_t,Tt]=P.useState(null),Mt=H(e=>{Ne?.getCommand("openWorkbook")&&("dragenter"===e.type||"dragover"===e.type?e.dataTransfer?.types.includes("Files")?e.dataTransfer.files[0]?.type?.startsWith("image/")||e.dataTransfer.items[0]?.type?.startsWith("image/")||1===e.dataTransfer.types.length&&Tt("Drop to open"):(e.dataTransfer?.types.includes("text/html")||e.dataTransfer?.types.includes("text/plain"),e.dataTransfer.effectAllowed="none",e.dataTransfer.dropEffect="none"):"dragleave"===e.type&&Tt(null),e.preventDefault())},[Ne]),Dt=go(e=>{if(Ne?.getCommand("openWorkbook")&&(e.preventDefault(),e.stopPropagation(),Tt(null),e.dataTransfer.files&&e.dataTransfer.files.length>0)){const t=e.dataTransfer.files[0];if(!t)return;if(t?.type?.startsWith("image/")){const n=ie.current?.getGridElement().getViewFromClient(e.clientX,e.clientY);if(!n)return;const o=n.getRelativePointFromClient(e.clientX,e.clientY),r=n.toAbsoluteBounds({...o,width:0,height:0}),i=n.getCellCoordsFromClient(e.clientX,e.clientY);if(!i)return;Ne?.getCommand("insertImageFromFile")?.execute({file:t,options:{bounds:{x:r.x,y:r.y}},goto:{range:{...i}}})}else Ne?.getCommand("openWorkbook")?.execute(t)}},[Ne,_t]),Rt=$(()=>_t?O(ne,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:e=>e.palette.divider,color:e=>e.palette.primary.dark},children:O(se,{variant:"h4",children:_t})}):null,[_t]),Ot=F(null),Lt=$(()=>O(jI,{in:!fe,nodeRef:Ot,timeout:500,classNames:"animating",unmountOnExit:!0,children:O(ne,{style:{display:"flex",alignItems:"center",justifyContent:"center",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:fe?"none":s?.pointerEvents,position:"absolute",boxSizing:"border-box"},children:W({ref:Ot,transitionDelay:"0",transparentBackground:!1,sx:{opacity:fe?0:s?.opacity,pointerEvents:fe?"none":s?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...q}})})}),[fe,W,q]),It=$(()=>b({sx:{marginTop:e=>e.spacing(.25),marginLeft:e=>e.spacing(1),marginRight:e=>e.spacing(1)},workbook:re,sheetElement:ie.current,gridStyle:Re,onFocus:Ct,...y,NamedCollectionEditorProps:{restoreFocus:e=>ie.current.focus(e),notifier:l,...y?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:Ne,...y?.NamedCollectionEditorProps?.commandPopupButtonProps}}},ye),[b,y,re,Re,Ne,fe]),At=H(e=>{const{movable:t,...n}=e,o={movable:t,onContextMenuCapture:e=>{wt(e,t)},...n},r=t.getContent().getType();let i=null;if("picture"===r)return O(jT,{loadingPanel:O(Vp,{transitionDelay:"100",style:{position:"absolute"},sx:{border:e=>`solid 1px ${e.palette.action.active}`}}),picture:t.getContent(),description:t.getDescription()??t?.getName(),...o});if("chart"===r){const e={...o,chart:t.getContent()};return O(WT,{...e})}if(i=`Float of type '${r}'.`,"string"==typeof i){const e={...o,description:i};i=O(MT,{...e})}return O("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:i},t.getUUID())},[]),Pt=$(()=>G({style:YA,onFocus:St,notifier:l,gridStyle:Re,headersStyle:Le,sheet:Se,commands:Ne,onSheetContextMenu:bt,onViewportChange:e=>{Ae(e)},showScrollbars:!1,viewportComponent:ue,onRepeatCommandChange:f,onElementLoad:ge,onShowColumnTooltip:e=>{Ke(e.anchor,e.display,vr)},onShowRowTooltip:e=>{Ke(e.anchor,e.display,wr)},onShowTooltip:e=>{Ke({x:e.anchor.x,y:e.anchor.y,width:0,height:0},e.display,e.placement)},onCloseTooltip:()=>Ge(),renderMovable:At,...Z,cellRenderProps:{onFilterButtonMouseDown:(e,t)=>{Z?.cellRenderProps?.onFilterButtonMouseDown(e,t),yt(e,t)},...Z?.cellRenderProps}},ie),[G,Ne,Z,Se,Re,l,f]),zt=$(()=>{if(!Pe)return null;const e=!ke.isStructureAllowed();return O(bA,{sx:{marginBottom:e=>e.spacing(.5),border:t=>`solid ${e?t.palette.action.disabled:ut(t.palette.divider,.2)} 1px`,borderRadius:e=>`${e.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{ze(!1),requestAnimationFrame(()=>{ie.current.focus()})},readOnly:e,commands:Ne,ref:Fe,scripts:re.getScripts()})},[Pe,Ne,re,l,ke]),Ft=$(()=>{const e=O(or,{style:{...YA,marginRight:zt&&st?"0px":"6px"},viewport:Ie,touchElement:ie.current?.getGridElement()?.stage,onScrollViewport:e=>{ie.current?.getGridElement()?.scrollTo(e)},showHorizontalScrollbar:Qe||Je,showVerticalScrollbar:nt,createHorizontalScrollbar:dt,createVerticalScrollbar:kt,children:Pt});let t=e;st||(t=L(I,{children:[e,ct]}));let n=null,o=4,r=13;return st?n="m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991":(n="M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991",o=13,r=4),O(Rr,{fixedPane:"after",position:"40%",minAfter:st?"280px":"120px",splitDirection:st?"row":"column",style:YA,ref:lt,resizerProps:{className:"styled-resizer",style:{minWidth:st?"6px":void 0,minHeight:st?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${o}' height='${r}' viewBox='0 0 ${o} ${r}' version='1.1' fill='${te.palette.text.icon??te.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${n}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:st?"left center":"top center"}},elementBefore:t,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:zt,paneAfterProps:{style:{marginLeft:st?"0px":"4px",marginRight:st?"8px":"4px"}}})},[Qe,Je,dt,nt,Ie,zt,Pt,ct,te,st]),Nt=$(()=>({boxSizing:"border-box",background:e=>"dark"!==e.palette.mode?Re.header.fill:e.palette.background.paper,"& *":{...Pf(te),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${ot} 1px`},...s}),[s,Re]);return L(ce,{className:Et("sheetxl-workbook",KA,{"Mui-focusVisible":le},GA,d),sx:Nt,style:c,square:!1,...ee,ref:be,onFocus:e=>{ae(!0),xt(),u?.(e)},onBlur:e=>{ae(!1),h?.(e)},onKeyDown:e=>{vt(e),p?.(e)},onDragStart:e=>{if(e.target.src){const t=new Image;t.src=e.target.src,e.dataTransfer.setDragImage(t,1,1)}},onDragEnter:Mt,onDragLeave:Mt,onDragOver:Mt,onDrop:Dt,children:[L("div",{className:Et(XO),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:fe?void 0:0,"--sxl-app-color-high-contrast":te.palette.primary.main,"--sxl-app-color-primary":te.palette.primary.main,"--sxl-app-color-primary-dark":te.palette.primary.dark,"--sxl-app-color-primary-light":te.palette.primary.light,"--sxl-app-color-info":te.palette.info.main,"--sxl-app-color-info-dark":te.palette.info.dark,"--sxl-app-color-info-light":te.palette.info.light,"--sxl-app-color-secondary":te.palette.secondary.main,"--sxl-app-color-secondary-dark":te.palette.secondary.dark,"--sxl-app-color-secondary-light":te.palette.secondary.light,"--sxl-app-color-success":te.palette.success.main,"--sxl-app-color-success-dark":te.palette.success.dark,"--sxl-app-color-success-light":te.palette.success.light,"--sxl-app-color-warning":te.palette.warning.main,"--sxl-app-color-warning-dark":te.palette.warning.dark,"--sxl-app-color-warning-light":te.palette.warning.light,"--sxl-app-color-error":te.palette.error.main,"--sxl-app-color-error-dark":te.palette.error.dark,"--sxl-app-color-error-light":te.palette.error.light,"--sxl-app-color-text":te.palette.text.primary,"--sxl-app-color-text-secondary":te.palette.text.secondary,"--sxl-app-color-text-disabled":te.palette.text.disabled,"--sxl-app-color-background":te.palette.background.paper,"--sxl-app-color-button-surface":te.palette.grey[600],"--sxl-app-color-shadow":te.palette.action.focus,"--sxl-app-color-grey":te.palette.grey[500],"--sxl-app-filter-dark-invert":Re.body.darkMode&&Q?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Re.body.darkMode?`linear-gradient(${ut("#fff",hx(5))}, ${ut("#fff",hx(5))})`:void 0},children:[it,et?It:null,O(ne,{sx:{marginBottom:e=>e.spacing(.75)}}),Ft,rt,O(Gf,{arrow:!0,disableInteractive:!0,open:He,title:O(se,{variant:"subtitle2",component:"div",children:$e}),placement:We,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:Ve,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:He?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(qe.x,qe.y,qe.width,qe.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:O(ne,{})}),gt,Rt]}),Lt]})}));lP.displayName="WorkbookElement";const aP=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:e=>e.palette.text.secondary},backgroundColor:e=>ut(e.palette.background.paper,.6),borderRadius:e=>`${e.shape.borderRadius}px`,border:t=>`solid ${e?t.palette.divider:"transparent"} 1px`,"&.Mui-disabled":{border:t=>`solid ${e?t.palette.divider:"transparent"} 1px`},"&:focus-within:not([disabled])":{backgroundColor:e=>e.palette.background.paper},"&:hover:not([disabled])":{border:t=>`solid ${e?t.palette.text?.primary:t.palette.divider} 1px`,backgroundColor:null},"&.Mui-focusVisible":{outline:e=>`solid ${e.palette.primary.main} 1px !important`,border:e=>`1px solid ${e.palette?.primary?.main} !important`}},sP=z(j((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:l,readOnly:a=!1,hidden:s,...c}=e,[d,u]=N(!1),[h,p]=N(!1),[f,m]=N(r??""),[g,y]=N(""),[b,{width:w}]=_I(),[v,{width:x}]=_I(),[S,C]=N(!1),k=F(null),E=F(null),_=er(t,()=>({requestWorkbookTitle:(e=null,t)=>{E.current={onAccept:e,requestReason:t?.requestReason},t?.selectAll&&k.current?.select(),k.current?.focus(t)},focus:e=>{k.current?.focus(e)}}),[]);return U(()=>{C(r!==f),y(r),m(r)},[r]),V(()=>{S&&0!==w&&_n.debounce(()=>{C(!1)},300)()},[S,w]),V(()=>{p(f&&!sA.isValidWindowsFilename(f))},[f]),s?null:O(ne,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:S?"0":"1",transition:S?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:sI([_,v,t]),...c,children:O(Jf,{label:E.current?.requestReason??"Workbook Name",children:L(ne,{className:Et({"Mui-focusVisible":d}),sx:{visibility:0===w?"hidden":"visible",display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:"12px",paddingRight:"12px",marginLeft:"2px",marginRight:"2px",paddingTop:"2px",paddingBottom:"1px",...aP(!0,a),...n},children:[a?O(se,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:f!==g?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:e=>h?e.palette.error.dark:void 0},children:r??i}):O(re,{sx:{width:`${Math.min(w+3,Math.max(x,_.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:e=>h?e.palette.error.dark:void 0,fontStyle:f!==g?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:a,spellCheck:!1,placeholder:i,onFocus:e=>{u(!0),e.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:k},onBlur:()=>{u(!1),h?m(g):(f!==g&&(l?.(f),f&&E.current?.onAccept?.(f,"blur")),E.current=null)},onChange:e=>{if(e.target.value.length>sA.MAX_WORKBOOK_NAME_SIZE)return e.stopPropagation(),void e.preventDefault();m(e.target.value)},onKeyDown:e=>{(sA.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(e.key)||e.target?.value.length>sA.MAX_WORKBOOK_NAME_SIZE)&&e.preventDefault(),e.which===io.Enter||e.which===io.Tab?(h?m(g):(l?.(f),f&&(E.current?.onAccept?.(f,"keydown"),E.current=null)),e.stopPropagation(),e.preventDefault(),o?.focus()):e.which===io.Escape&&(f===g?o?.focus():(m(g),setTimeout(()=>{e.target?.select()},0)),E.current=null,e.stopPropagation(),e.preventDefault())},value:f}),O(ne,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:f!==g?"italic":void 0,fontFamily:e=>e.typography.fontFamily,letterSpacing:"0.00938em"},children:f||i})]})})})}));sP.displayName="WorkbookTitle";const cP=z(j((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,renderLoadingPanel:l,...s}=e;i&&a.setLicenseKey(i);const c=$(()=>{const e={transitionDelay:"160ms",transparentBackground:!0};return O(ne,{sx:n,style:{width:"100%",height:"100%",position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",...o},children:l?.(e)??O(Vp,{...e})})},[n,o,l]),d=$(()=>P.lazy(async()=>await Promise.resolve().then(()=>iF)),[]);return O(I,{children:O(K,{fallback:c,children:O(d,{...s,className:r,sx:n,renderLoadingPanel:l,style:o,ref:t})})})}));cP.displayName="Studio";const dP=G(null),uP={didCatch:!1,error:null};class hP extends ee{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=uP}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(null!==e){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(t=(n=this.props).onReset)||void 0===t||t.call(n,{args:r,reason:"imperative-api"}),this.setState(uP)}}componentDidCatch(e,t){var n,o;null===(n=(o=this.props).onError)||void 0===n||n.call(o,e,t)}componentDidUpdate(e,t){const{didCatch:n}=this.state,{resetKeys:o}=this.props;var r,i;n&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,o)&&(null===(r=(i=this.props).onReset)||void 0===r||r.call(i,{next:o,prev:e.resetKeys,reason:"keys"}),this.setState(uP))}render(){const{children:e,fallbackRender:t,FallbackComponent:n,fallback:o}=this.props,{didCatch:r,error:i}=this.state;let l=e;if(r){const e={error:i,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)l=t(e);else if(n)l=Z(n,e);else{if(void 0===o)throw i;l=o}}return Z(dP.Provider,{value:{didCatch:r,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}}function pP(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=pP(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function fP(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=pP(e))&&(o&&(o+=" "),o+=t);return o}let mP={data:""},gP=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||mP,yP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bP=/\/\*[^]*?\*\/| +/g,wP=/\n+/g,vP=(e,t)=>{let n="",o="",r="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":o+="f"==i[1]?vP(l,i):i+"{"+vP(l,"k"==i[1]?"":t)+"}":"object"==typeof l?o+=vP(l,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),r+=vP.p?vP.p(i,l):i+":"+l+";")}return n+(t&&r?t+"{"+r+"}":r)+o},xP={},SP=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+SP(e[n]);return t}return e},CP=(e,t,n,o,r)=>{let i=SP(e),l=xP[i]||(xP[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!xP[l]){let t=i!==e?e:(e=>{let t,n,o=[{}];for(;t=yP.exec(e.replace(bP,""));)t[4]?o.shift():t[3]?(n=t[3].replace(wP," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(wP," ").trim();return o[0]})(e);xP[l]=vP(r?{["@keyframes "+l]:t}:t,n?"":"."+l)}let a=n&&xP.g?xP.g:null;return n&&(xP.g=xP[l]),((e,t,n,o)=>{o?t.data=t.data.replace(o,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(xP[l],t,o,a),l};function kP(e){let t=this||{},n=e.call?e(t.p):e;return CP(n.unshift?n.raw?((e,t,n)=>e.reduce((e,o,r)=>{let i=t[r];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":vP(e,""):!1===e?"":e}return e+o+(null==i?"":i)},""))(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,gP(t.target),t.g,t.o,t.k)}function EP(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}function _P(){return _P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_P.apply(this,arguments)}function TP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function MP(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}function DP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}kP.bind({g:1}),kP.bind({k:1});var RP=function(){return""},OP=P.createContext({enqueueSnackbar:RP,closeSnackbar:RP}),LP="@media (max-width:599.95px)",IP="@media (min-width:600px)",AP=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},PP=function(e){return""+AP(e.vertical)+AP(e.horizontal)},zP=function(e){return!!e||0===e},FP="unmounted",NP="exited",VP="entering",HP="entered",BP="exiting",$P=function(e){function t(t){var n;n=e.call(this,t)||this;var o,r=t.appear;return n.appearStatus=null,t.in?r?(o=NP,n.appearStatus=VP):o=HP:o=t.unmountOnExit||t.mountOnEnter?FP:NP,n.state={status:o},n.nextCallback=null,n}TP(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===FP?{status:NP}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==VP&&n!==HP&&(t=VP):n!==VP&&n!==HP||(t=BP)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===VP?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===NP&&this.setState({status:FP})},n.performEnter=function(e){var t=this,n=this.props.enter,o=e,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,o),this.safeSetState({status:VP},function(){t.props.onEntering&&t.props.onEntering(t.node,o),t.onTransitionEnd(r.enter,function(){t.safeSetState({status:HP},function(){t.props.onEntered&&t.props.onEntered(t.node,o)})})})):this.safeSetState({status:HP},function(){t.props.onEntered&&t.props.onEntered(t.node,o)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:BP},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:NP},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:NP},function(){e.props.onExited&&e.props.onExited(e.node)})},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===FP)return null;var t=this.props;return(0,t.children)(e,MP(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},EP(t,[{key:"node",get:function(){var e,t=null===(e=this.props.nodeRef)||void 0===e?void 0:e.current;if(!t)throw new Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(P.Component);function jP(){}function WP(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function UP(e,t){return $(function(){return null==e&&null==t?null:function(n){WP(e,n),WP(t,n)}},[e,t])}function qP(e){var t=e.timeout,n=e.style,o=void 0===n?{}:n,r=e.mode;return{duration:"object"==typeof t?t[r]||0:t,easing:o.transitionTimingFunction,delay:o.transitionDelay}}$P.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jP,onEntering:jP,onEntered:jP,onExit:jP,onExiting:jP,onExited:jP};var ZP="cubic-bezier(0.4, 0, 0.2, 1)",GP="cubic-bezier(0.0, 0, 0.2, 1)",KP="cubic-bezier(0.4, 0, 0.6, 1)",XP=function(e){e.scrollTop=e.scrollTop},YP=function(e){return Math.round(e)+"ms"};function JP(e,t){void 0===e&&(e=["all"]);var n=t||{},o=n.duration,r=void 0===o?300:o,i=n.easing,l=void 0===i?ZP:i,a=n.delay,s=void 0===a?0:a;return(Array.isArray(e)?e:[e]).map(function(e){var t="string"==typeof r?r:YP(r),n="string"==typeof s?s:YP(s);return e+" "+t+" "+l+" "+n}).join(",")}function QP(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t.defaultView||window}function ez(e,t){if(t){var n=function(e,t){var n,o=t.getBoundingClientRect(),r=QP(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=r.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var l=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var s=n.split("(")[1].split(")")[0].split(",");l=parseInt(s[4],10),a=parseInt(s[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+l-o.left)+"px)";case"right":return"translateX(-"+(o.left+o.width-l)+"px)";case"up":return"translateY("+(r.innerHeight+a-o.top)+"px)";default:return"translateY(-"+(o.top+o.height-a)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var tz=j(function(e,t){var n=e.children,o=e.direction,r=void 0===o?"down":o,i=e.in,l=e.style,a=e.timeout,s=void 0===a?0:a,c=e.onEnter,d=e.onEntered,u=e.onExit,h=e.onExited,p=MP(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),f=F(null),m=UP(n.ref,f),g=UP(m,t),y=H(function(){f.current&&ez(r,f.current)},[r]);return V(function(){if(!i&&"down"!==r&&"right"!==r){var e=function(e,t){var n;function o(){for(var o=this,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];clearTimeout(n),n=setTimeout(function(){e.apply(o,i)},t)}return void 0===t&&(t=166),o.clear=function(){clearTimeout(n)},o}(function(){f.current&&ez(r,f.current)}),t=QP(f.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[r,i]),V(function(){i||y()},[i,y]),Z($P,Object.assign({appear:!0,nodeRef:f,onEnter:function(e,t){ez(r,e),XP(e),c&&c(e,t)},onEntered:d,onEntering:function(e){var t=(null==l?void 0:l.transitionTimingFunction)||GP,n=qP({timeout:s,mode:"enter",style:_P({},l,{transitionTimingFunction:t})});e.style.webkitTransition=JP("-webkit-transform",n),e.style.transition=JP("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==l?void 0:l.transitionTimingFunction)||KP,n=qP({timeout:s,mode:"exit",style:_P({},l,{transitionTimingFunction:t})});e.style.webkitTransition=JP("-webkit-transform",n),e.style.transition=JP("transform",n),ez(r,e),u&&u(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",h&&h(e)},in:i,timeout:s},p),function(e,t){return J(n,_P({ref:g,style:_P({visibility:"exited"!==e||i?void 0:"hidden"},l,{},n.props.style)},t))})});tz.displayName="Slide";var nz=function(e){return P.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},oz=function(){return P.createElement(nz,null,P.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},rz=function(){return P.createElement(nz,null,P.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},iz=function(){return P.createElement(nz,null,P.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},lz=function(){return P.createElement(nz,null,P.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},az={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:P.createElement(oz,null),warning:P.createElement(rz,null),error:P.createElement(iz,null),info:P.createElement(lz,null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:tz,transitionDuration:{enter:225,exit:195}},sz=function(e,t){return function(n,o){return void 0===o&&(o=!1),o?_P({},az[n],{},t[n],{},e[n]):"autoHideDuration"===n?(r=e.autoHideDuration,i=t.autoHideDuration,(l=function(e){return"number"==typeof e||null===e})(r)?r:l(i)?i:az.autoHideDuration):"transitionDuration"===n?function(e,t){var n=function(e,t){return t.some(function(t){return typeof e===t})};return n(e,["string","number"])?e:n(e,["object"])?_P({},az.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?_P({},az.transitionDuration,{},t):az.transitionDuration}(e.transitionDuration,t.transitionDuration):e[n]||t[n]||az[n];var r,i,l}};function cz(e){return Object.entries(e).reduce(function(e,t){var n,o=t[0],r=t[1];return _P({},e,((n={})[o]=kP(r),n))},{})}var dz="notistack-SnackbarContainer",uz="notistack-Snackbar",hz="notistack-CollapseWrapper",pz="notistack-MuiContent",fz=function(e){return"notistack-MuiContent-"+e},mz=cz({root:{height:0},entered:{height:"auto"}}),gz="0px",yz=j(function(e,t){var n=e.children,o=e.in,r=e.onExited,i=F(null),l=F(null),a=UP(t,l),s=function(){return i.current?i.current.clientHeight:0};return Z($P,{in:o,unmountOnExit:!0,onEnter:function(e){e.style.height=gz},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=s(),n=qP({timeout:175,mode:"enter"}),o=n.duration,r=n.easing;e.style.transitionDuration="string"==typeof o?o:o+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=r||""},onExit:function(e){e.style.height=s()+"px"},onExited:r,onExiting:function(e){XP(e);var t=qP({timeout:175,mode:"exit"}),n=t.duration,o=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height=gz,e.style.transitionTimingFunction=o||""},nodeRef:l,timeout:175},function(e,t){return Z("div",Object.assign({ref:a,className:fP(mz.root,"entered"===e&&mz.entered),style:_P({pointerEvents:"all",overflow:"hidden",minHeight:gz,transition:JP("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!o&&{visibility:"hidden"})},t),Z("div",{ref:i,className:hz,style:{display:"flex",width:"100%"}},n))})});yz.displayName="Collapse";var bz={right:"left",left:"right",bottom:"up",top:"down"},wz=function(e){return"anchorOrigin"+PP(e)},vz=function(){};function xz(e,t){return e.reduce(function(e,n){return null==n?e:function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l=[].concat(r);t&&-1===l.indexOf(t)&&l.push(t),e.apply(this,l),n.apply(this,l)}},vz)}var Sz="undefined"!=typeof window?U:V;function Cz(e){var t=F(e);return Sz(function(){t.current=e}),H(function(){return t.current.apply(void 0,arguments)},[])}var kz,Ez=j(function(e,t){var n=e.children,o=e.className,r=e.autoHideDuration,i=e.disableWindowBlurListener,l=void 0!==i&&i,a=e.onClose,s=e.id,c=e.open,d=e.SnackbarProps,u=void 0===d?{}:d,h=F(),p=Cz(function(){a&&a.apply(void 0,arguments)}),f=Cz(function(e){a&&null!=e&&(h.current&&clearTimeout(h.current),h.current=setTimeout(function(){p(null,"timeout",s)},e))});V(function(){return c&&f(r),function(){h.current&&clearTimeout(h.current)}},[c,r,f]);var m=function(){h.current&&clearTimeout(h.current)},g=H(function(){null!=r&&f(.5*r)},[r,f]);return V(function(){if(!l&&c)return window.addEventListener("focus",g),window.addEventListener("blur",m),function(){window.removeEventListener("focus",g),window.removeEventListener("blur",m)}},[l,g,c]),Z("div",Object.assign({ref:t},u,{className:fP(uz,o),onMouseEnter:function(e){u.onMouseEnter&&u.onMouseEnter(e),m()},onMouseLeave:function(e){u.onMouseLeave&&u.onMouseLeave(e),g()}}),n)});Ez.displayName="Snackbar";var _z=cz({root:(kz={display:"flex",flexWrap:"wrap",flexGrow:1},kz[IP]={flexGrow:"initial",minWidth:"288px"},kz)}),Tz=j(function(e,t){var n=e.className,o=MP(e,["className"]);return P.createElement("div",Object.assign({ref:t,className:fP(_z.root,n)},o))});Tz.displayName="SnackbarContent";var Mz=cz({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),Dz="notistack-snackbar",Rz=j(function(e,t){var n=e.id,o=e.message,r=e.action,i=e.iconVariant,l=e.variant,a=e.hideIconVariant,s=e.style,c=e.className,d=i[l],u=r;return"function"==typeof u&&(u=u(n)),P.createElement(Tz,{ref:t,role:"alert","aria-describedby":Dz,style:s,className:fP(pz,fz(l),Mz.root,Mz[l],c,!a&&d&&Mz.lessPadding)},P.createElement("div",{id:Dz,className:Mz.message},a?null:d,o),u&&P.createElement("div",{className:Mz.action},u))});Rz.displayName="MaterialDesignContent";var Oz,Lz,Iz,Az,Pz,zz=z(Rz),Fz=cz({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Nz=function(e){var t=F(),n=N(!0),o=n[0],r=n[1],i=xz([e.snack.onClose,e.onClose]),l=H(function(){t.current=setTimeout(function(){r(function(e){return!e})},125)},[]);V(function(){return function(){t.current&&clearTimeout(t.current)}},[]);var a,s=e.snack,c=e.classes,d=e.Component,u=void 0===d?zz:d,h=$(function(){return function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,n){var o;return _P({},t,((o={})[n]=e[n],o))},{})}(c)},[c]),p=s.open,f=s.SnackbarProps,m=s.TransitionComponent,g=s.TransitionProps,y=s.transitionDuration,b=s.disableWindowBlurListener,w=s.content,v=MP(s,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),x=_P({direction:(a=v.anchorOrigin,"center"!==a.horizontal?bz[a.horizontal]:bz[a.vertical]),timeout:y},g),S=w;"function"==typeof S&&(S=S(v.id,v.message));var C=["onEnter","onEntered","onExit","onExited"].reduce(function(t,n){var o;return _P({},t,((o={})[n]=xz([e.snack[n],e[n]],v.id),o))},{});return P.createElement(yz,{in:o,onExited:C.onExited},P.createElement(Ez,{open:p,id:v.id,disableWindowBlurListener:b,autoHideDuration:v.autoHideDuration,className:fP(Fz.wrappedRoot,h.root,h[wz(v.anchorOrigin)]),SnackbarProps:f,onClose:i},P.createElement(m,Object.assign({},x,{appear:!0,in:p,onExit:C.onExit,onExited:l,onEnter:C.onEnter,onEntered:xz([C.onEntered,function(){e.snack.requestClose&&i(null,"instructed",e.snack.id)}],v.id)}),S||P.createElement(u,Object.assign({},v)))))},Vz={default:20},Hz={default:6,dense:2},Bz="."+hz,$z=cz({root:(Oz={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:JP(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},Oz[Bz]={padding:Hz.default+"px 0px",transition:"padding 300ms ease 0ms"},Oz.maxWidth="calc(100% - "+2*Vz.default+"px)",Oz[LP]={width:"100%",maxWidth:"calc(100% - 32px)"},Oz),rootDense:(Lz={},Lz[Bz]={padding:Hz.dense+"px 0px"},Lz),top:{top:Vz.default-Hz.default+"px",flexDirection:"column"},bottom:{bottom:Vz.default-Hz.default+"px",flexDirection:"column-reverse"},left:(Iz={left:Vz.default+"px"},Iz[IP]={alignItems:"flex-start"},Iz[LP]={left:"16px"},Iz),right:(Az={right:Vz.default+"px"},Az[IP]={alignItems:"flex-end"},Az[LP]={right:"16px"},Az),center:(Pz={left:"50%",transform:"translateX(-50%)"},Pz[IP]={alignItems:"center"},Pz)}),jz=z(function(e){var t=e.classes,n=void 0===t?{}:t,o=e.anchorOrigin,r=e.dense,i=e.children,l=fP(dz,$z[o.vertical],$z[o.horizontal],$z.root,n.containerRoot,n["containerAnchorOrigin"+PP(o)],r&&$z.rootDense);return P.createElement("div",{className:l},i)}),Wz=function(e){return!("string"==typeof e||Q(e))},Uz=function(e){function t(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw new Error("enqueueSnackbar called with invalid argument");var o=Wz(e)?e:t,r=Wz(e)?e.message:e,i=o.key,l=o.preventDuplicate,a=MP(o,["key","preventDuplicate"]),s=zP(i),c=s?i:(new Date).getTime()+Math.random(),d=sz(a,n.props),u=_P({id:c},a,{message:r,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:fP(n.props.className,a.className)});return u.persist&&(u.autoHideDuration=void 0),n.setState(function(e){if(void 0===l&&n.props.preventDuplicate||l){var t=function(e){return s?e.id===c:e.message===r},o=e.queue.findIndex(t)>-1,i=e.snacks.findIndex(t)>-1;if(o||i)return e}return n.handleDisplaySnack(_P({},e,{queue:[].concat(e.queue,[u])}))}),c},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?_P({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,o=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===n.maxSnack&&(o=!0);var r=e.snacks.map(function(e){return t||e.persist&&!o?_P({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),_P({},e,{open:!1})):_P({},e,{requestClose:!0}))});return _P({},e,{snacks:r})},n.handleEnteredSnack=function(e,t,o){if(!zP(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===o?_P({},e,{entered:!0}):_P({},e)})}})},n.handleCloseSnack=function(e,t,o){n.props.onClose&&n.props.onClose(e,t,o);var r=void 0===o;n.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return r||e.id===o?e.entered?_P({},e,{open:!1}):_P({},e,{requestClose:!0}):_P({},e)}),queue:n.filter(function(e){return e.id!==o})}})},n.closeSnackbar=function(e){var t=n.state.snacks.find(function(t){return t.id===e});zP(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!zP(t))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState(function(e){var o=n.processQueue(_P({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===o.queue.length?o:n.handleDismissOldest(o)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(DP(n)),closeSnackbar:n.closeSnackbar.bind(DP(n))}},n}return TP(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,o=n.domRoot,r=n.children,i=n.dense,l=void 0!==i&&i,a=n.Components,s=void 0===a?{}:a,c=n.classes,d=this.state.snacks.reduce(function(e,t){var n,o=PP(t.anchorOrigin),r=e[o]||[];return _P({},e,((n={})[o]=[].concat(r,[t]),n))},{}),u=Object.keys(d).map(function(t){var n=d[t],o=n[0];return P.createElement(jz,{key:t,dense:l,anchorOrigin:o.anchorOrigin,classes:c},n.map(function(t){return P.createElement(Nz,{key:t.id,snack:t,classes:c,Component:s[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:xz([e.handleExitedSnack,e.props.onExited],t.id),onEntered:xz([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return P.createElement(OP.Provider,{value:t},r,o?dt(u,o):u)},EP(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||az.maxSnack}}]),t}(ee),qz=function(){return Y(OP)};const Zz=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],handler:null,isDefault:!0},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:null},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:null}],Gz=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",handler:null,isDefault:!0},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:null},{key:"Excel",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",description:"Excel Workbook",ext:"xlsx",tags:["SheetJS Pro"],handler:null}];class Kz{constructor(e=Zz,t=Gz){this._readFormatType=[],this._writeFormatType=[],this._readFormatType=Object.freeze([...e]),this._writeFormatType=Object.freeze([...t])}getReadFormats(){return this._readFormatType}getWriteFormats(){return this._writeFormatType}getAllReadFormatTypeAsString(){const e=[],t=this._readFormatType;for(let n=0;n<t.length;n++)for(let o=0;o<t[n].exts.length;o++)e.push("."+t[n].exts[o]);return e}async writeFile(e,t,n){if(!t||!e)throw new Error("Workbook model or file name must be provided.");try{return(await Promise.resolve().then(()=>cA)).WorkbookIO.writeFile(e,t,n)}catch(e){throw new Error("Unable to load io library",{cause:e})}}async read(e,t){let n,o;const r=await(t?.showBusy?.(`Opening${e.name?` ${e.name}`:""}...`));try{o=await Promise.resolve().then(()=>cA)}catch(e){throw e}try{return await o.WorkbookIO.read({...e,async onStart(o){await(e?.onStart?.(o)),n=await(t?.showBusy?.(`Opening '${o}'...`))}})}catch(e){throw r?.(),n?.(),e}finally{r?.(),n?.()}}}const Xz=new Kz,Yz={card:"_card_1a398_7",actionRoot:"_actionRoot_1a398_11",icons:"_icons_1a398_16",expand:"_expand_1a398_22",expandOpen:"_expandOpen_1a398_29",stackTraceContainer:"_stackTraceContainer_1a398_33"},Jz=j((e,t)=>{const{id:n,message:o,iconVariant:r,error:i,hideIconVariant:l,...a}=e,{closeSnackbar:s}=qz(),c=Tx(),[d,u]=N(!1),h=H(()=>{u(e=>!e)},[]),p=H(()=>{s(n)},[n,s]);let f=i?.message;return!f&&Q(o)&&(f=o),f||"string"!=typeof o||(f=o),f||(f=`Unknown Error: ${o}`),O(Tz,{ref:t,className:Et(Yz.root,"error-snackbar"),children:L(Le,{className:Yz.card,style:{backgroundColor:c.palette.error.dark,border:`1px solid ${c.palette.error.dark}`},children:[L(Ie,{className:Yz.actionRoot,children:[l?null:r?.error,O(se,{variant:"body2",component:"div",className:Yz.typography,style:{color:c.palette.text.primary},children:f}),O("div",{style:{flex:"1 1 auto"}}),L("div",{className:Yz.icons,children:[i?O(oe,{"aria-label":"Show more",size:"small",className:Et(Yz.expand,{[Yz.expandOpen]:d}),style:{color:c.palette.action.active},onClick:h,children:O(et,{})}):null,O(oe,{size:"small",className:Yz.expand,style:{color:c.palette.action.active},onClick:p,children:O($e,{fontSize:"small"})})]})]}),i?O(Ae,{in:d,timeout:"auto",unmountOnExit:!0,children:O("div",{className:Yz.stackTraceContainer,style:{backgroundColor:c.palette.error.light,borderTop:`1px solid ${c.palette.error.main}`},children:O(jp,{error:i,hideLineNumbers:!0})})}):null]})})});Jz.displayName="ToastError";const Qz=z(j((e,t)=>{const{commands:n,commandHook:o,scope:r="workbook",disabled:i=!1,...l}=e,a=go(e=>{const t={variant:ti.Menuitem,parentFloat:e.floatReference,commandHook:o,scope:r,disabled:i},l=L(I,{children:[O(pb,{...t,command:n.getCommand("newWorkbook"),icon:kc(O(xh,{}))}),O(Mp,{orientation:"horizontal"}),O(pb,{...t,command:n.getCommand("openWorkbook"),icon:kc(O(Sh,{}))}),O(mb,{...t,commands:n,quickCommand:"saveWorkbook",icon:kc(O(Ch,{})),createPopupPanel:e=>{const o={...t,parentFloat:e.floatReference,scope:"saveWorkbook"},r=[];return Xz.getWriteFormats().forEach(e=>{if(e.isDefault)return;let t=null;"CSV"===e.key?t=kc(O(Eh,{})):"Excel"===e.key&&(t=kc(O(kh,{})));const i=n.getCommand(`saveWorkbookAs${e.key}`);i?r.push(Z(pb,{...o,key:e.key,command:i,icon:t})):console.warn(`Unable to resolve command: 'saveWorkbookAs${e.key}'`)}),Mf({...e,children:r,onClick:()=>{e.closeFloatAll()}})}})]});return Mf({...e,children:l,onClick:t=>{t.isDefaultPrevented||e.closeFloatAll()}})},[i,n,o,r]),s="File";return O(mb,{commands:n,disabled:i,commandHook:o,scope:r,label:s,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:e=>`calc(1.25rem + ${e.spacing(2)}px)`}},...l,createPopupPanel:a,icon:O(gb,{className:"label",icon:null,label:s})})}));Qz.displayName="StandaloneFileCommandButton";const eF=O(Jf,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:O(ne,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:O(ZR,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),tF=z(j((e,t)=>{const{commands:n,workbook:o,logo:r=eF,mainElement:i,showFileMenu:l=!0,showAppearanceMenu:a=!0,...s}=e,{reference:c}=Wf(),[d,{width:u}]=_I(),h=u<530,p=l?O(Qz,{commands:n,commandHook:{beforeExecute(){c?.closeAll()},onError(e,t,n){}}}):null,f=a?O(cL,{commands:n,commandHook:{beforeExecute(){c?.closeAll()},onError(e,t,n){}}}):null,m=$(()=>({paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)}),[]),g=F(null);return O(ne,{ref:sI([g,d,t]),...s,children:CA({commands:n,renderCompact:h,workbook:o,selectWrapper:e=>L(ne,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:e=>e.spacing(1),paddingLeft:e=>e.spacing(1),paddingRight:e=>e.spacing(1)},children:[L(ne,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:e=>e.spacing(.5)},children:[r,L(ne,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:e=>e.spacing(.25)},children:[p,e]})]}),O(ne,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:i}),O(ne,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:h&&!f?"0 0 auto":"1 1 100%"},children:f})]}),selectProps:m,toolbarsProps:{Home:{sx:{}}}})})}));tF.displayName="StudioToolbar";const nF=e=>{const{workbook:t,setWorkbook:n,importExportDisabled:o,workbookTitle:r="export",setWorkbookTitle:i,notifier:l,requestWorkbookTitle:a,themeOptions:s,undoManager:c,commands:d,onExecute:u}=e,h=go(s?.onModeChange,[s?.onModeChange]),p=go(s?.onEnabledDarkGridChange,[s?.onEnabledDarkGridChange]),f=go(s?.onEnabledDarkImagesChange,[s?.onEnabledDarkImagesChange]),m=go(async(e=null,t=null)=>{const n=[];let o,r=null,i=null;if("string"==typeof e?i=e:r=e,o=r?e:await _n.openFileDialog(i??Xz.getAllReadFormatTypeAsString().join(",")),!o)return null;const a={source:o,createWorkbookOptions:t,onWarning:e=>{n.push(e)}},s=await Xz.read(a,l);return n.length>0&&(l?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn("Import warnings:\n"+n.join("\n"))),s},[u,l,t]),g=go(async(e,t,n)=>{if(!t&&a){const t=await a("Enter Workbook name to "+(n.isDefault?"Save.":`Export as ${n.description}.`));return null!==t&&Xz.writeFile(t,e,{formatType:n.key})}return Xz.writeFile(t,e,{formatType:n.key})},[l,t,a]),y=H(()=>({contains:e=>!0,focus(){}}),[]),b=$(()=>{const e=[];o||(Xz.getWriteFormats().forEach(n=>{const o=n.isDefault,i={label:o?"Save Workbook":`Save Workbook as ${n.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${n.description}`},tags:n.tags,description:`Save the workbook to the desktop${o?"":` as ${n.description}`}.`};o&&(i.shortcut={key:"S",modifiers:[ro.Ctrl]},e.push(new qr("saveWorkbookAs",y,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[ro.Shift,ro.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{g(t,null,n).catch(e=>{l?.showError?.(e)})})));const a=o?"saveWorkbook":`saveWorkbookAs${n.key}`;e.push(new qr(a,y,i,e=>{g(t,e??r,n).catch(e=>{l?.showError?.(e)})}))}),e.push(new qr("openWorkbook",y,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[ro.Ctrl]}},async(e=null)=>{const o={date1904:t.isDate1904(),...t.options};try{const r=await m(e,o);if(!r)return;const a=r.title,s=r.workbook,c=s.getSelectedSheet();if("text/csv"===r.formatType.mimeType){const e=t.findValidSheetName(a);await t.doBatch(async()=>{const n=c.getUsedRange();if(!n)return void l?.showMessage("The file appears to be blank.");const o=t.getSheets().add({name:e,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0});await o.copyFrom(n)},`Import CSV '${a}'`)}else t?.close(),i?.(a),n(s)}catch(e){l?.showError?.(e)}})),e.push(new qr("openWorkbookFromUrl",y,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(e){if(!e){const t=await(l?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]}));if("Open"!==t.option)return;e=t.input}e&&console.log("openWorkbookFromUrl",e)})));let a=[];s&&(a=[new qr("themeMode",y,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new qr("defaultThemeMode",y,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new qr("enableDarkGrid",y,{label:"Enable Dark Grid",description:"Allow the grid to render in dark mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new qr("enableDarkImages",y,{label:"Enable Dark Images",description:"Allow the images to render in dark mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]);return[...e,...a,new Zr("help",y,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new Zr("showKeyboardShortcuts",y,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[ro.Ctrl]}},()=>{}),new qr("gotoUrlGithub",y,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new qr("gotoUrlDiscord",y,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new qr("gotoUrlDocumentation",y,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new qr("gotoUrlIssue",y,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[t,r,l,o,s,d,c]),w=$(()=>{let e=null;return e=d?d.createChildGroup(y,"standaloneWorkbook",!1):new Gr(y,"standaloneWorkbook"),e.addCommands(b,!0),e},[d,b]);(({manager:e,commands:t,disabled:n,notifier:o=sr})=>{const r=go(t=>{try{e?.undo(t)}catch(e){o.showError?.(e)}},[e]),i=go(t=>{try{e?.redo(t)}catch(e){o.showError?.(e)}},[e]);$(()=>{if(!t)return;const e={contains:e=>!0,focus(){}},n=[new qr("undo",e,{label:"Undo",description:ri,shortcut:{key:"z",modifiers:[ro.Ctrl]},disabled:!0},r),new qr("redo",e,{label:"Redo",description:ii,shortcut:[{key:"y",modifiers:[ro.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[ro.Alt]}],disabled:!0},i)];t?.addCommands(n,!0)},[t]),V(()=>{if(!t)return;const o=()=>{const o=e?.getTopUndoDescription(),r={};var i;t.getCommand("undo").update({disabled:n||!e||!e.hasUndo(),description:o?(i=o,`Undo ${i}`):ri,state:r,context:{undoManager:e}});const l=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:l?li(l):ii,state:r,context:{undoManager:e}})};if(o(),!e)return;const r=e.addListener({onStackChange(){o()}});return()=>r?.()},[e,t,n])})({manager:c,commands:w,notifier:l});const{themeMode:v}=ZI();V(()=>{if(!s||!w)return;const e="dark"===s.mode||!s.mode&&"dark"===v;w.getCommand("themeMode").update({state:s.mode??null,label:e?"Dark Mode":"Light Mode",scopedLabels:{appearance:e?"Dark Mode":"Light Mode"}}).updateCallback(()=>{h(e?WI.Light:WI.Dark)}),w.getCommand("defaultThemeMode").update({state:!s.mode}).updateCallback(()=>{h(null)}),w.getCommand("enableDarkGrid").update({state:s.enableDarkGrid}).updateCallback(()=>{p(!s.enableDarkGrid)}),w.getCommand("enableDarkImages").update({state:s.enableDarkImages}).updateCallback(()=>{f(!s.enableDarkImages)})},[v,s,b]);const{showModal:x}=Cm();return V(()=>{const e=()=>new Promise((e,t)=>{const n=P.lazy(()=>import("./R3CPiIXdp_rdc-Bw.mjs")),o=x(n,{title:"Shortcut Keys Reference",commands:w,onDone:()=>{o.hide()},TransitionProps:{onExited:()=>{e(!0)}}})});w.getCommand("showKeyboardShortcuts").updateCallback(()=>e()),w.getCommand("help").updateCallback(()=>e())},[b,w]),w},oF=z(j((e,t)=>{const{workbook:n,setWorkbook:o,refWorkbookTitle:r,titleWorkbook:i,setWorkbookTitle:l,titlePlaceHolder:a,children:s,undoManager:c,commands:d,importExportDisabled:u,themeOptions:h}=e,p=qz(),f=p?p.enqueueSnackbar:()=>{},m=p?p.closeSnackbar:()=>{},[g,y]=N({isMounted:!1,label:null,starting:new Map,running:new Map}),b=H(()=>{y(e=>({...e,isMounted:!0}))},[]),w=H(()=>{y(e=>({...e,isMounted:!1}))},[]),v=function(){const[e,t]=N(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=Cm({disableAutoDestroy:!0});return(l,a,s,c)=>new Promise((d,u)=>{const h={...s,onHide:()=>{const n=e.get(l);s?.onHide?.(),t(e=>(e.delete(l),e)),i(n.id)},onDone:n=>{const o=e.get(l);t(e=>(e.delete(l),e)),s?.onDone?.(n),o&&o.id&&!c?.disableAutoDestroy&&r(o.id)},onShown:e=>{t(t=>{const n=t.get(l);return t.set(l,{...n,element:e}),t}),d(e)},open:!0},p=e.get(l);if(p)return o(p.id,h),void d(p.element);if(!a)return void u("invalid function");const f=P.lazy(a),m=n(f,h,{destroyOnClose:!c?.disableAutoDestroy});t(e=>(e.set(l,{id:m.id,element:null}),e))})}(),x=(()=>{const{showModal:e}=Cm();return t=>new Promise(n=>{const o=e(db,{...t,onOption(e){t?.onOption?.(e,e===t.cancelOption,e===t.defaultOption),n(e)},onDone:()=>{t?.onDone?.(),o.hide()}})})})(),S=(()=>{const{showModal:e}=Cm();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(t=>{const i=e(ub,{defaultOption:n,cancelOption:o,...r,onOption(e){r?.onOption?.(e,e===o,e===n),t({input:"",option:e})},onInputOption(e,n){r?.onInputOption?.(e,n),t({input:e,option:n})},onDone:()=>{r?.onDone?.(),i.hide()}})})}})(),C=F(new Set),k=$(()=>{const e=(e,t)=>{if(t?.onceKey){if(C.current.has(t.onceKey))return;const e=new Set(C.current);e.add(t.onceKey),C.current=e}const n={variant:t?.type??lr,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:t?.preventDuplicate,persist:t?.persist??t?.type===rr,action:e=>O(oe,{onClick:()=>m(e),children:O(lt,{})})};t?.enqueueProps&&Object.assign(n,t.enqueueProps),e||console.log("message is 'null'",t),f(e??"Alert",n)};return{showMessage:e,showBusy:(e,t)=>{let n=null;const o=new Promise(e=>{n=e});return y(t=>{const r=new Map(t.starting);r.set(o,n);return{...t,label:e,starting:r}}),o},showWindow:(e,t,n)=>{const o={...t,onKeyDown:e=>{d?.dispatchToFocusedCommand(e),e.isDefaultPrevented()||e.isPropagationStopped()||t?.onKeyDown?.(e)}};return v(e,{sort:()=>import("./BlUq84tk9v01SQgx.mjs"),numberFormat:()=>import("./DSIpyed_o2mrjd0r.mjs"),hyperlink:()=>import("./eXqnYk6V-QI6pGI5.mjs"),comments:()=>import("./Cq1DtQcbtmTtKOc4.mjs"),find:()=>import("./BjoQXBQuDry5Fgc_.mjs"),tableDetails:()=>import("./oXfsh9SiDjQuu2ZE.mjs"),tableNew:()=>import("./CN67iG3xuQhXAPad.mjs"),namedDetails:()=>import("./DuSF-rjIFFvyCoo8.mjs")}[e],o,n)},showOptions:x,showInputOptions:S,showError:t=>{let n,o=rr,r="Unknown Error";"string"==typeof t?r=t:t instanceof Error&&(n=t,t.message&&(r=t.message)),t instanceof D&&(o=lr),e(r,{type:o,enqueueProps:{error:n}})}}},[]),E=H(()=>{},[]),_=nF({workbook:n,setWorkbook:o,importExportDisabled:u,workbookTitle:i,setWorkbookTitle:l,commands:d,requestWorkbookTitle:e=>new Promise(t=>{r.current?r.current.requestWorkbookTitle((e,n)=>{t(e)},{selectAll:!0,requestReason:e}):t(a)}),themeOptions:h,undoManager:c,notifier:k,onExecute:E});V(()=>{g.starting.size<=0||!g.isMounted||y(e=>{const t=new Map(e.running);e.starting.forEach((e,n)=>{const o=()=>{y(e=>{const t=new Map(e.running);t.delete(n);return{...e,running:t}})};t.set(n,o),e(o)});return{...e,starting:new Map,running:t}})},[g]);const[T,M]=N(null);V(()=>{0!==g.starting.size||0!==g.running.size?M(O(Vp,{icon:O(Fp,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:g.label,onMount:b,onUnmount:w,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):M(null)},[g.starting,g.running]);const R=$(()=>O(dL,{commands:_,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[_]),A={notifier:k,commands:_};return n&&(A.statusBarProps={childrenEnd:R}),L(I,{children:[T,s?P.cloneElement(s,A):null]})}));oF.displayName="SnackbarAndCommandsWrapper";const rF=z(j((e,t)=>{const{className:n,sx:o,style:r,onElementLoad:i,onError:l,undoManager:a,errorPanel:s=Wp,onKeyDown:c,workbook:d,createWorkbookOptions:u,onWorkbookChange:h,logo:p,importExportDisabled:f=!1,themeOptions:m,autoFocus:g=!1,commands:y,title:b,onTitleChange:w,titleProps:v,renderLoadingPanel:x,...C}=e,k=F(null),E=go(h,[h]),_=go(w??v?.onTitleChange,[w??v?.onTitleChange]),M=v?.placeHolder??"Untitled",D=m?.mode,{themeMode:I,source:A}=ZI({mode:D}),P=$(()=>({...m,light:Af(!1,S.deepMerge(m?.theme??{},m?.light??{})),dark:Af(!0,S.deepMerge(m?.theme??{},m?.dark??{}))}),[m]),z=I===WI.Dark,[B,j]=N(null);V(()=>{j(a??new R)},[a]);const[W,q]=N(null),[Z,G]=N(null),K=KR();U(()=>{if(!d||0===Object.keys(d).length&&!S.isPromiseLike(d)){const e={theme:K.getDefaultTheme(),...u};G(new T(e))}else G(d)},[d]),U(()=>{if(!Z)return;if(Z instanceof T)return q({workbook:Z}),void(d!==Z&&E?.(Z));(async()=>{try{let e,t=await Promise.resolve(Z);t&&t.source&&(t=await Xz.read(t)),t.workbook?(ee(t.title),e=t.workbook):e=t,E?.(e),q({workbook:e})}catch(e){E?.(null),q({error:e})}})()},[Z]);const[X,Y]=N(null);V(()=>{if(!B||!W)return;B.clear();const e=W?.workbook?.getTransactions();if(!e)return;return e.addListener({onCommitEnd:t=>{t.getDescription()?B.addUndoOperation({description:t.getDescription(),undo:()=>(e.revert(t.getId()),X.source?.focus(),()=>{e.restore(t.getId()),X.source?.focus()})}):console.warn("commit has no description",t)}})},[B,W,X]);const J=go(e=>{e?B.setRepeatableOperation({description:e.label(),repeat:async()=>e.execute()}):B.setRepeatableOperation(null)},[B]),[Q,ee]=N(b??v?.title??"");V(()=>{ee(b??v?.title??"")},[b??v?.title]),V(()=>{_?.(Q)},[Q]);const[te,oe]=N(null),re=$(()=>{const e=()=>({contains:e=>!0,focus(){}});return y?y.createChildGroup(e,"application",!1):new Gr(e,"application")},[y]),le=go(e=>{oe(e.source.getViewportElement()),Y(e),re.activate("sheet"),i?.(e)},[re]);V(()=>{X&&g&&X.source?.focus("object"==typeof g?g:void 0)},[X]);const ae=F(null),se=H(e=>{let t=null;return v?.hidden||(t=O(sP,{...v,style:{maxWidth:"100%",...v?.style},workbook:k.current,ref:ae,title:Q,placeHolder:M,onTitleChange:e=>{ee(e)}})),O(tF,{...e,logo:p,mainElement:t,showFileMenu:!f,showAppearanceMenu:!!(P?.onEnabledDarkGridChange||P?.onEnabledDarkImagesChange||P?.onModeChange)})},[p,Q,v,P,f,re]);V(()=>{const e=e=>e.preventDefault();return k.current?.addEventListener("wheel",e,{passive:!1}),()=>{k.current?.removeEventListener("wheel",e)}},[]);const ce=$(()=>{const e={transparentBackground:!0};return O(ne,{sx:o,style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",...r},children:x?.(e)??O(Vp,{...e})})},[o,r,x]),de=H(({error:e})=>(l?.(e),O(s,{sx:o,style:r,error:e??"Unable to display empty workbook."})),[o,r,l]),ue=$(()=>({...o,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:e=>e.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[o]),he=sI([k,t]),pe=$(()=>{if(!W)return ce;if(W.error||!W.workbook)return de({error:W.error});let e=null,t=null,o=!1;return P&&(e=z?P.dark:P.light,t=z&&P.enableDarkGrid?P.dark:P.light,o=P.enableDarkImages),O(lP,{sx:ue,style:r,tabIndex:0,autoFocus:!0,workbook:W.workbook,ref:he,renderToolbar:se,onElementLoad:le,onRepeatCommandChange:J,onKeyDown:e=>{c?.(e)},renderLoadingPanel:x,gridTheme:t,headersTheme:e,enableDarkImages:o,className:Et(n,"sheetxl-workbook"),onContextMenu:e=>e.preventDefault(),...C},"WorkbookElement")},[W,Q,B,ce,x,P,C,se,ue]);let fe=O(hP,{fallbackRender:de,children:O(Uz,{maxSnack:3,domRoot:te,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(e,t,n)=>{k.current?.focus()},Components:{error:Jz},iconVariant:{success:O(ie,{style:{marginRight:"8px"},children:O("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:O(Yh,{style:{marginRight:"8px"}})},children:O(vm,{children:O(oF,{workbook:W?.workbook,setWorkbook:G,importExportDisabled:f,titlePlaceHolder:M,titleWorkbook:Q,setWorkbookTitle:ee,refWorkbookTitle:ae,commands:re,undoManager:B,themeOptions:P,children:pe})})})});return P&&(fe=L(Fx,{theme:z?P.dark:P.light,children:[P.cssBaseline?O(Pe,{}):null,fe]})),fe}));rF.displayName="EagerStudio";const iF=Object.freeze(Object.defineProperty({__proto__:null,EagerStudio:rF,default:rF},Symbol.toStringTag,{value:"Module"}));export{CO as $,fP as A,go as B,cO as C,Ks as D,TI as E,MI as F,td as G,Et as H,qc as I,Hh as J,Nh as K,io as L,Yf as M,gL as N,Vg as O,vb as P,Vh as Q,bL as R,ro as S,sr as T,sm as U,xb as V,Sb as W,zh as X,Cb as Y,$u as Z,DI as _,hx as a,Xz as a$,kO as a0,EO as a1,_O as a2,TO as a3,DO as a4,RO as a5,OO as a6,LO as a7,IO as a8,PO as a9,iL as aA,lL as aB,aL as aC,vL as aD,wL as aE,uI as aF,cI as aG,hI as aH,pI as aI,eL as aJ,fI as aK,mI as aL,gI as aM,xI as aN,rP as aO,lP as aP,sP as aQ,LA as aR,OA as aS,UA as aT,qA as aU,WI as aV,qI as aW,ZI as aX,cP as aY,rF as aZ,Kz as a_,zO as aa,FO as ab,NO as ac,AO as ad,BO as ae,$O as af,jO as ag,WO as ah,UO as ai,qO as aj,KO as ak,oL as al,sL as am,cL as an,dL as ao,uL as ap,hL as aq,pL as ar,SO as as,vO as at,xO as au,rO as av,iO as aw,gO as ax,uO as ay,bO as az,_I as b,bA as b0,wA as b1,fA as b2,mA as b3,Tb as c,si as d,_n as e,kc as f,Mb as g,Fh as h,Bh as i,j_ as j,tL as k,JO as l,pb as m,Mp as n,ti as o,sb as p,Ph as q,Uw as r,Zv as s,Uv as t,Tx as u,zb as v,Eb as w,Jr as x,Jo as y,_x as z};