@sheetxl/studio-mui 0.4.9 → 0.4.11

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 (127) hide show
  1. package/browser/cjs/B29yIlf_FSHx9q3M.cjs +7 -0
  2. package/browser/cjs/B783moVfFT70yQuK.cjs +7 -0
  3. package/browser/cjs/BCtVyhxIZSUPH_Z4.cjs +7 -0
  4. package/browser/cjs/BE6O6K7i1mHBC3et.cjs +7 -0
  5. package/browser/cjs/BQ-G2ABc3FYN-D50.cjs +7 -0
  6. package/browser/cjs/BabvaPi1dUIPt5AG.cjs +7 -0
  7. package/browser/cjs/BbvcxaJzfy7H6xfa.cjs +7 -0
  8. package/browser/cjs/Bhh0dqxUzzOzHWMc.cjs +7 -0
  9. package/browser/cjs/CH50hiw_7LBSC6dR.cjs +7 -0
  10. package/browser/cjs/Cfb0T6htsh82UPK-.cjs +7 -0
  11. package/browser/cjs/CisYglNTHGrj9oMH.cjs +7 -0
  12. package/browser/cjs/Clbakb5VUTDTlofM.cjs +7 -0
  13. package/browser/cjs/D7xmeRe-f7IifEKc.cjs +7 -0
  14. package/browser/cjs/DCV-6w2JGk_faE3x.cjs +7 -0
  15. package/browser/cjs/DY2PuDSgw0TrB5-_.cjs +7 -0
  16. package/browser/cjs/Df5v6knUJ4dqHmmo.cjs +7 -0
  17. package/browser/cjs/DyzVC_iq7ceqC2fj.cjs +7 -0
  18. package/browser/cjs/QB_8kWYEsfOH_HwK.cjs +7 -0
  19. package/browser/cjs/aOmlMJRAkQEF59EX.cjs +7 -0
  20. package/browser/cjs/index.cjs +10 -4
  21. package/browser/cjs/li-J7BWV6WUzY5aq.cjs +7 -0
  22. package/browser/cjs/u0WmWLGlCwhnhL9i.cjs +7 -0
  23. package/browser/cjs/uoBAuXnlUz8scSA1.cjs +7 -0
  24. package/browser/cjs/xp2ZII-PuLk9tHK3.cjs +7 -0
  25. package/browser/cjs/xq-CJbsvm7BQO8lK.cjs +7 -0
  26. package/browser/esm/12Ttun7hzbiInyVr.mjs +7 -0
  27. package/browser/esm/7jSMnphGrNRPUa_S.mjs +7 -0
  28. package/browser/esm/AnCmK-idMDJ2vI8H.mjs +7 -0
  29. package/browser/esm/B-Ut_yUCD9THCz0T.mjs +7 -0
  30. package/browser/esm/BTD5k7gtFcqDwslB.mjs +7 -0
  31. package/browser/esm/BVRUNnRvnt7aVCDD.mjs +7 -0
  32. package/browser/esm/BauTkiamxm0HDt6M.mjs +7 -0
  33. package/browser/esm/BcIp2mxLBfjUBE0q.mjs +7 -0
  34. package/browser/esm/Bi_0z0hyhFuz5Ta3.mjs +7 -0
  35. package/browser/esm/BkDEdK7zOlsoUKCZ.mjs +7 -0
  36. package/browser/esm/BpGexBYtmHbTIJz2.mjs +7 -0
  37. package/browser/esm/CJawFB555VEY-Vge.mjs +7 -0
  38. package/browser/esm/CWogLlWYHiL4W6CH.mjs +7 -0
  39. package/browser/esm/Cr46Bo9bGoz0LbWq.mjs +7 -0
  40. package/browser/esm/Csk8rXNpaXmf5g7O.mjs +7 -0
  41. package/browser/esm/Cu-5HDPN8B0qE77-.mjs +7 -0
  42. package/browser/esm/CzgR8PxJ_89IC4Mr.mjs +7 -0
  43. package/browser/esm/DMUXpRbV3ahdB1lN.mjs +7 -0
  44. package/browser/esm/DiIX5KzrWnbDWjGE.mjs +7 -0
  45. package/browser/esm/Djo2IS-ivmVSrO3v.mjs +7 -0
  46. package/browser/esm/Hy95ExHvIFgzxQb-.mjs +7 -0
  47. package/browser/esm/Z1_72ZY8rW2Mc3g_.mjs +7 -0
  48. package/browser/esm/_ZR9nT54xwy-C6ow.mjs +7 -0
  49. package/browser/esm/csxyptiqbJZO0pQA.mjs +7 -0
  50. package/browser/esm/index.mjs +8 -82
  51. package/licenses/dependencies.txt +145 -145
  52. package/node/esm/{CsbP0EYKOHobzZCu.mjs → 8THCZRGNmI2nPqMR.mjs} +2 -2
  53. package/node/esm/{CGiJgZJFY-YsXWCX.mjs → BDm0y2dv7wLZhYj1.mjs} +1 -1
  54. package/node/esm/{CijBL1IDWaxPgQ_E.mjs → BPylexVHXa-t0sqJ.mjs} +6 -6
  55. package/node/esm/{B7xzqWxB07TdXnmo.mjs → BQYQg7lfqFbWaf8x.mjs} +2 -2
  56. package/node/esm/{BUVA6vYXyFFnBCMg.mjs → BSUbQzac78SXiAJe.mjs} +1 -1
  57. package/node/esm/{qewbqty13W1sKrMC.mjs → BeNXnrWMr5S34Oxb.mjs} +1 -1
  58. package/node/esm/{BfuG4JD3t3n1uOci.mjs → C6jxZQrvMLctjLZM.mjs} +4 -4
  59. package/node/esm/{Dn38s6pH3QNvdk-x.mjs → CCZepFZNn1pIXrnd.mjs} +1 -1
  60. package/node/esm/{9iDXWtTOWeDVslQL.mjs → CXSwyUs6BuNGCic0.mjs} +13 -13
  61. package/node/esm/{Dq49h62ihEYk_8VR.mjs → CaV6SH-PMyHlXUhx.mjs} +1 -1
  62. package/node/esm/{B18g9zjzyR9YL3Mv.mjs → D481dAOp77EZbV5s.mjs} +2 -2
  63. package/node/esm/{DWKLdf_rn5dajRBA.mjs → DHj9iDuBImdwscIb.mjs} +25 -25
  64. package/node/esm/{uY021f9cZSWYX0--.mjs → DIGsHHDexzj0uG_T.mjs} +5 -5
  65. package/node/esm/{Cr5l_3AqPbv4mke9.mjs → DLiw-2C_tqGgJIQ6.mjs} +2 -2
  66. package/node/esm/{CG1T0Z1roNRSVlal.mjs → DNJVdt9TbBsUE8Jm.mjs} +1 -1
  67. package/node/esm/{DGTK2YeARR5cTnft.mjs → DaCmut490aSCGvX8.mjs} +1 -1
  68. package/node/esm/{C7t1ZHhSDgJnZ4Da.mjs → Dd2OFQJQyYp6bAeP.mjs} +1 -1
  69. package/node/esm/{DHmVr6jRLzt6lD1x.mjs → DkpAjhQeaZn_Ipxg.mjs} +2 -2
  70. package/node/esm/{DODhKM0Qeycx3Hvp.mjs → DyMCnCG9LzH5Mgw0.mjs} +2 -2
  71. package/node/esm/{v4fR5lIq2IqY_Clq.mjs → RV-AvxVzzFKWjYFM.mjs} +38 -38
  72. package/node/esm/{tur4cwLbnCn69JK-.mjs → Ui3_6RhrEZQDOXwg.mjs} +8 -8
  73. package/node/esm/index.mjs +5373 -5075
  74. package/node/esm/{CILOMzOF30-XSZqR.mjs → qI75rORek8T0-Kpf.mjs} +2 -2
  75. package/package.json +8 -8
  76. package/types/index.d.ts +24 -0
  77. package/browser/cjs/02LSJ7jnb-ovS7ex.cjs +0 -15
  78. package/browser/cjs/BDDJIe6JwgEYEtda.cjs +0 -6
  79. package/browser/cjs/BGh6tEDK_1MFKfMU.cjs +0 -145
  80. package/browser/cjs/BSRDKlVOTYHfOAF_.cjs +0 -11
  81. package/browser/cjs/Bn0BSzVk_S-rvDwk.cjs +0 -6
  82. package/browser/cjs/Bzf8jKmmZl374mof.cjs +0 -6
  83. package/browser/cjs/C20NTPRE5_ExESDZ.cjs +0 -6
  84. package/browser/cjs/C5i9hklL-WNb8J_q.cjs +0 -42
  85. package/browser/cjs/CLxYxjd0yz1LCTB-.cjs +0 -6
  86. package/browser/cjs/CUo2iW5IL6UZJNWT.cjs +0 -6
  87. package/browser/cjs/C_QWbWVBVc6YJ4Q3.cjs +0 -16
  88. package/browser/cjs/CeeZxww7wpF45vvp.cjs +0 -6
  89. package/browser/cjs/CekKZCV1J1HUFIqO.cjs +0 -6
  90. package/browser/cjs/CgD0b2zJD8zElhuz.cjs +0 -6
  91. package/browser/cjs/CqwEnIUDMxWw5DX1.cjs +0 -87
  92. package/browser/cjs/CwOKyPq_H2afJacv.cjs +0 -7
  93. package/browser/cjs/D32t9wiFoNX7WVEo.cjs +0 -161
  94. package/browser/cjs/DILF3GzsMdg-Y2wu.cjs +0 -11
  95. package/browser/cjs/Dr-PR7J1T91UjrPL.cjs +0 -12
  96. package/browser/cjs/DyR0_iZAINpjodWL.cjs +0 -12
  97. package/browser/cjs/LWuNxqu9MyiniH_g.cjs +0 -18
  98. package/browser/cjs/O8r9K4Qh6Pgd6rXU.cjs +0 -7
  99. package/browser/cjs/jbTHHxJODyD10jVH.cjs +0 -6
  100. package/browser/cjs/n-4XaX3pkXUEEQ5u.cjs +0 -6
  101. package/browser/cjs/qQGaIq5VhlZJU-xf.cjs +0 -6
  102. package/browser/esm/AmErN6xXU01K_bEs.mjs +0 -3803
  103. package/browser/esm/B08nVBuOXar7x7in.mjs +0 -1703
  104. package/browser/esm/B8xKZIF9fvamlvW5.mjs +0 -1467
  105. package/browser/esm/BGWd79IfMfoHoO6g.mjs +0 -392
  106. package/browser/esm/BT8vduOS21nsJ6EQ.mjs +0 -1366
  107. package/browser/esm/Bz6NqTbktTH8Df6_.mjs +0 -2251
  108. package/browser/esm/CDRALHzsBIsRPM5g.mjs +0 -153
  109. package/browser/esm/CIH1rBtL9lK5ku-N.mjs +0 -13391
  110. package/browser/esm/CVJee4uHPTdpZGEH.mjs +0 -46
  111. package/browser/esm/CXUv64T9mbQbJGgM.mjs +0 -48
  112. package/browser/esm/Ca5nvvpeuP6Wsv5P.mjs +0 -43
  113. package/browser/esm/CelDYTh0f7McDj4o.mjs +0 -44
  114. package/browser/esm/DHlS6l8ZPDMN2cwP.mjs +0 -1672
  115. package/browser/esm/DXKQ9TZdaT7ytR1S.mjs +0 -640
  116. package/browser/esm/D_FJwwe-bsDiDGBV.mjs +0 -2410
  117. package/browser/esm/DduyjhwDREaxXNzm.mjs +0 -59
  118. package/browser/esm/DffuCp_514AjqJLT.mjs +0 -864
  119. package/browser/esm/DgC_oaBYpwh1mBi_.mjs +0 -25
  120. package/browser/esm/Dl-SlJoaP7EFX-GR.mjs +0 -52
  121. package/browser/esm/DpTSO921EQ7L_abP.mjs +0 -52
  122. package/browser/esm/Dr5y4zmj1js9FjzE.mjs +0 -1352
  123. package/browser/esm/DuoEo0hJBssfAmB4.mjs +0 -84
  124. package/browser/esm/jIv4VNLAAFANZjhN.mjs +0 -424
  125. package/browser/esm/wysWhT4-jO-uukUH.mjs +0 -23
  126. package/browser/esm/zZaxvhjZK5N3yZkw.mjs +0 -19947
  127. package/node/esm/BBWRiJSBxt6O1CfK.mjs +0 -312
@@ -1,87 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */const B=require("@sheetxl/sdk"),a=require("react/jsx-runtime"),s=require("react"),N=require("@mui/material"),yn=require("@mui/icons-material"),T2=require("react-dom/client"),wo=require("react-dom"),dt=require("@mui/system"),n0=require("@mui/styled-engine"),S8=require("@mui/utils");function Am(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const z0=Am(s);function C8(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=C8(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Jn(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=C8(e))&&(o&&(o+=" "),o+=t);return o}const so={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},Ho="text/html",d0="text/plain",Ds="image/png",Fm=Object.freeze({left:0,top:0}),zm=Object.freeze({left:0,top:0,bottom:0,right:0}),Bm=Object.freeze({x:0,y:0,width:0,height:0}),da=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Bm,EmptyRect:zm,EmptyTopLeft:Fm},Symbol.toStringTag,{value:"Module"})),ni="column",ua="row",Nm=Object.freeze({colIndex:0,rowIndex:0}),Vm=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),k8=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,E8=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Hm=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,$m=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,o5=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,r5=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,_8=(e=ua,t=!1)=>t?e!==ni?Hm:$m:e!==ni?E8:k8,i5=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,gd=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,xd=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),l5=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!gd(e[n],t[n]))return!1;return!0},cc=(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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},a5=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];xd(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},Wm=[null,null],Um=(e,t,n)=>{if(e[0].value===e[1].value)return t};function s5(e,t=2,n,o=ua,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===ni,d=0,c=!1;do{const u=i.sort(_8(l?ua:ni));i=[],i.push(u[0]);const p=u.length;let f=0,h=u[0],g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let w=1;w<p;w++){const b=u[w];let C=!1;if(C=l?h&&m===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&g===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let E={colStart:g,rowStart:m,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,E=n(k,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}const bo=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:Nm,EmptyRange:Vm,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:o5,columnFirstRangeComparator:k8,createCellComparator:(e=ua,t=!1)=>t?e!==ni?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==ni?r5:o5,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let p=!0;const f=u!==void 0;if(f){const m=e?e(r,u,t):r===u?u:void 0;m===void 0?p=!1:u=m}if(p&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,g=t?c:d;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?s5(n,3,d===!0?Um:d,t?ni:ua,Wm):n)}},createRangeComparator:_8,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:a5,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!gd(n,o);)o=n,n=a5(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(xd(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:i5,isEqualRanges:gd,isEqualRangesArrays:l5,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!i5(e.cell,t.cell)&&l5(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:xd,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:s5,rowFirstCellComparator:r5,rowFirstRangeComparator:E8,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:cc,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=cc(o,e[r],n);return t&&(o=cc(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),qm=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Zm(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===qm}(e)}function Hl(e,t){return t.clone!==!1&&t.isMergeableObject(e)?li((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Gm(e,t,n){return e.concat(t).map(function(o){return Hl(o,n)})}function c5(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function d5(e,t){try{return t in e}catch{return!1}}function li(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Gm,n.isMergeableObject=n.isMergeableObject||Zm,n.cloneUnlessOtherwiseSpecified=Hl;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&c5(r).forEach(function(c){d[c]=Hl(r[c],l)}),c5(i).forEach(function(c){var u,p;d5(u=r,p=c)&&(!Object.hasOwnProperty.call(u,p)||!Object.propertyIsEnumerable.call(u,p))||(d5(r,c)&&l.isMergeableObject(i[c])?d[c]=function(f,h){if(!h.customMerge)return li;const g=h.customMerge(f);return typeof g=="function"?g:li}(c,l)(r[c],i[c],l):d[c]=Hl(i[c],l))}),d}(e,t,n):Hl(t,n)}li.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return li(n,o,t)},{})};const Km=Object.freeze([]),Xm=Object.freeze({}),u5=e=>e,Ls=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),T8=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),wl=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,j8=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?j8(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),Ym=(e,t)=>!(e!==t&&!T8(e,t)&&!e.isEqual?.(t)),M8=(e,t,n=Ym)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];M8(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},h5=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),p5=e=>e==null,f5=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),m5=!(typeof window>"u"||!window.document||!window.document.createElement),Zo={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},ha=()=>{if(R8())return Zo.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Zo.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Zo.MacOS:/(iphone|ipad|ipod)/i.test(e)?Zo.IOS:/android/.test(e)?Zo.Android:/linux/.test(e)?Zo.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Zo.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Zo.Firefox:Zo.Unknown:Zo.Unknown};function R8(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const g5=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Nt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Km,EmptyObject:Xm,OSType:Zo,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=(n=>1*n)(e);return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:m5,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>p5(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,d=0;function c(){let p=Date.now()-d;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){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;r--!==0;)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;r--!==0;)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;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:li,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=u5){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=u5){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 typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!wl(l))return l;o=l}return o??null},getOS:ha,hasFocus:g5,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:T8,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:R8,isNullOrUndefined:p5,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:wl,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:f5,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!wl(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=li(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!m5)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(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:j8,removeEqualValues:M8,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=h5(),o={id:requestAnimationFrame(function r(){h5()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!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 i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!wl(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!wl(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(!f5(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})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),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(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&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 r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Ls,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=>{g5(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 I8=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},yd=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")}),Jm=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:I8,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:yd},Symbol.toStringTag,{value:"Module"})),D8="data:image/png;base64,",L8="Unable to resolve image.",x5=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{o?.src&&URL.revokeObjectURL(o.src)}o||n(L8)}),dc="image/svg+xml";var y5,b5;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:D8,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 i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(L8)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await x5(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:dc})),d=await x5(l);n={mimeType:t??dc,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===dc?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"})),(b5=y5||(y5={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const p=c[u];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,b5.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(d=d??{},d[p]=f)}}return d};let bd=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const w5=`The Safari browser does not support advanced copy and paste.
7
- Copy and paste will be limited to within the browser tab.
8
-
9
- Please use Chrome or Edge if external copy and paste is required.`,uc=`You do not have permissions to access the clipboard.
10
- All copy and paste operations will be limited to the browser tab.`,O8={Safari:`The Safari browser does not support advanced copy and paste.
11
- Copy and paste will be limited to within the browser tab.
12
-
13
- Please use Chrome or Edge if external copy and paste is required.`,Perms:uc,PermsWrite:ha()===Zo.Safari?w5:uc,PermsRead:ha()===Zo.Safari?w5:uc},hc=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),pc=async(e,t,n)=>{if(ha()===Zo.Safari)return await n(new Error(O8.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},P8=async e=>{try{return await e.read({unsanitized:[Ho]})}catch{}return await e.read()},A8=async(e,t)=>{if(!e)return null;const n=await P8(e);let o=!1;for(let r=0;!o&&n&&r<n.length;r++)if(o=n[r].types.includes(t),o)return await n[r].getType(t);return o?void 0:null};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const Ys=async(e,t=Ho)=>new Promise(async(n,o)=>{try{const r=await A8(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),wd=async(e,t=Ho)=>{const n=await Ys(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Ho)}catch{console.warn("Can't parse html from clipboard.")}return o},Qm=async e=>{e&&await e.writeText("")},eg=A8,tg=Ys,ng=wd,pa="clipboard-uuid",vi="web text/uuid",v5=e=>`<div style="display:none" ${pa}="${e}"/>`,og=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Ho);o.body.firstElementChild.setAttribute(pa,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},S5=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${pa}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let Gi=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await pc("clipboard-read",async()=>{await hc();const e=await Ys(this._nativeClipboard,vi);if(!this._state||e&&e===this._state.uuid)return!0;const t=await wd(this._nativeClipboard,Ho);return!this._state||(S5(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||ha()===Zo.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 pc("clipboard-read",async()=>{if(await hc(),this._state?.uuid){const t=await Ys(this._nativeClipboard,vi);if(t&&t===e._state.uuid)return!0;const n=await wd(this._nativeClipboard,Ho);if(S5(e._state?.uuid,n))return!0}return e._state={items:await P8(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Ls(),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 pc("clipboard-write",async()=>{await hc(),o&&r.length===0&&(r.push(new ClipboardItem({[vi]:new Blob([o],{type:vi})})),r.push(new ClipboardItem({[Ho]:new Blob([v5(o)],{type:Ho})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(Ho),u=null;if(c!==-1){const h=await d.getType(Ho);u=await yd(h),u&&(u=og(o,u))}if(!u&&d.types.includes(d0)){const h=await d.getType(d0);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await yd(h),g&&(u=`<div ${pa}="${o}">${g}</div>`)}}if(!u&&d.types.includes(Ds)){const h=await d.getType(Ds),g=I8(await h.arrayBuffer());u=`<div ${pa}="${o}"><img src="${D8+g}"/></div>`}!u&&o&&(u=v5(o));const p=new Blob([u??""],{type:Ho}),f={};for(let h=0;h<d.types.length;h++){const g=d.types[h];f[g]=h===c?p:d.getType(g)}u&&c===-1&&(f[Ho]=p),o&&(f[vi]=new Blob([o],{type:vi})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await Qm(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[d0]=new Blob([r??""],{type:d0}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Ho]=new Blob([r],{type:Ho}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Ds]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Ls(),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 i=0;!o&&n&&i<n.length;i++)n[i].types.includes(d0)&&(o=await n[i].getType(d0));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[d0]:new Blob([e],{type:d0})})];return this._write({uuid:Ls(),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,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};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),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var fc;(fc=Gi||(Gi={})).ErrorMessages=O8,fc.Global=new fc,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const rg="left",Ee={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},Wt={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},F8=3,Ao={Horizontal:"horizontal",Vertical:"vertical"};function z8(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=z8(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ii(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=z8(e))&&(o&&(o+=" "),o+=t);return o}var ig=function(){},B8=typeof window<"u",lg=B8?s.useLayoutEffect:s.useEffect,C5={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const ai=B8&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(C5),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return lg(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[ig,C5]},he=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},N8=e=>{const{style:t,orientation:n=Ao.Vertical,...o}=e,r=n===Ao.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},V8=e=>{const{style:t,orientation:n=Ao.Vertical,...o}=e,r=n===Ao.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},ag=e=>{const{style:t,orientation:n=Ao.Vertical,...o}=e,r=n===Ao.Vertical;return a.jsx("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:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:a.jsx("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"})})})},vd=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r},k5=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:vd},Symbol.toStringTag,{value:"Module"})),j2=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=Ao.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=N8,createScrollEndButton:x=V8,...y}=e,w=he(u,[u]),b=s.useRef(null),[C,{width:E,height:k}]=ai(),[M,{width:T,height:F}]=ai(),_=d===Ao.Vertical,P=_?"top":"left",v=_?"scrollTop":"scrollLeft",S=_?k:E,I=_?F:T,[j,R]=s.useState(null);s.useEffect(()=>{j!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[P]:j})},[j,_]);const A=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=W?0:vd(z,Q[P],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=Math.ceil(I-S),le=W?te:vd(z,Q[P],Y,!1,Math.max(0,z+f));return R(le),Math.min(te,le)},[I,S]),L=s.useRef(null),$=s.useCallback(z=>{L.current=n;const W=z.target[v];c(W,r,o),w?.(z)},[c,r,o,n]);s.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[v]=n)},[n,v]);const q=s.useRef(null),O=s.useRef(null),U=s.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=null,O.current=null)},[]),X=s.useCallback((z,W,G,Q=h)=>{O.current=z,q.current=setTimeout(()=>{const Y=G?A(O.current||z):D(O.current||z);Y!==O.current?X(Y,!1,G,g):U()},W?0:Q)},[A,D,U]);s.useEffect(()=>()=>U(),[U]);const ee=n,V=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(ee)<=0||Math.floor(I-S)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return m?.(z)},[p,d,ee,j,I,S]),H=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(I-S)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[p,d,ee,j,I,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:_?"column":"row",padding:"0",...i},className:Ii("_sheetxl-scrollbar_eblx4_6",l),...y,children:[V,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:_?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:_?"scroll":"hidden",overflowX:_?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:$,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:_?o-r+(k??0):1,width:_?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),H]})}));j2.displayName="Scrollbar";let E5=Date.now,R0={},sg=1;const vl=e=>{let t=R0[e]!==null;return t&&(R0[e]=null),t},_5=(e,t,n,o=0,r)=>{let i=E5(),l=i,d=0,c=0,u=0,p=sg++;if(p%20==0){const h={};for(let g in R0)h[g]=!0;R0=h}const f=function(h){let g=h!==!0,m=E5(),x=!0;try{x=(!t||t(p))??!0}catch{x=!1}if(!R0[p]||!x)return R0[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){u=Math.round((m-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));let y=r?r(d):d,w=!1;try{w=e(y,m,g)}catch{w=!1}w!==!1&&d!==1||!g?g&&(l=m,requestAnimationFrame(f)):(R0[p]=null,n?.(60-c/((m-i)/1e3),p,d===1||o==null))};return R0[p]=!0,requestAnimationFrame(f),p},cg=function(e){return Math.pow(e-1,3)+1},dg=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let ug=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){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(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&&(vl(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let d=l*(this.__scrollLeft+n)-n,c=l*(this.__scrollTop+o)-o;d>this.__maxScrollLeft?d=this.__maxScrollLeft:d<0&&(d=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(d,c,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&&(vl(this.__isDecelerating),this.__isDecelerating=0),o!==void 0&&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(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(vl(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(vl(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=e.length===1;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(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;e.length===2?(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 l=o-this.__lastTouchLeft,d=r-this.__lastTouchTop,c=this.__scrollLeft,u=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=p;if(p=p/this.__lastScale*n,p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom),f!==p){let h=o-this.__clientLeft,g=r-this.__clientTop;c=(h+c)*p/f-h,u=(g+u)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=l*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=l/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){u-=d*this.options.speedMultiplier;const f=this.__maxScrollTop;(u>f||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,u,t),this.__publish(c,u,p)}else{let l=this.options.locking?3:0,d=5,c=Math.abs(o-this.__initialTouchLeft),u=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=l,this.__enableScrollY=this.options.scrollingY&&u>=l,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=d||u>=d),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()),typeof e!="number")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 r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;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 d=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>d||Math.abs(this.__decelerationVelocityY)>d)&&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&&(vl(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,l=this.__scrollTop,d=this.__zoomLevel,c=e-i,u=t-l,p=n-d,f=function(m,x,y){y&&(this.__scrollLeft=i+c*m,this.__scrollTop=l+u*m,this.__zoomLevel=d+p*m,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),h=function(m){return this.__isAnimating===m}.bind(this),g=function(m,x,y){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||y)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=_5(f,h,g,this.options.animationDuration,r?cg:dg)}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 i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),d=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/d)*d,this.__minDecelerationScrollTop=Math.floor(l/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/d)*d,this.__maxDecelerationScrollTop=Math.ceil(l/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,l,d){this.__stepThroughDeceleration(d)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,l,d){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=_5(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let o=0,r=0,i=this.options.penetrationDeceleration,l=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*l),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*l)}}};var hr=typeof window<"u"?window:{screen:{},navigator:{}},Ki=(hr.matchMedia||function(){return{matches:!1}}).bind(hr),H8=!1,hg={get passive(){return H8=!0}},T5=function(){};hr.addEventListener&&hr.addEventListener("p",T5,hg),hr.removeEventListener&&hr.removeEventListener("p",T5,!1);var pg=H8,fg="PointerEvent"in hr,M2="ontouchstart"in hr,$8=M2||"TouchEvent"in hr&&Ki("(any-pointer: coarse)").matches,j5=(hr.navigator.maxTouchPoints||0)>0||$8,W8=hr.navigator.userAgent||"",mg=Ki("(pointer: coarse)").matches&&/iPad|Macintosh/.test(W8)&&Math.min(hr.screen.width||0,hr.screen.height||0)>=768,U8=(Ki("(pointer: coarse)").matches||!Ki("(pointer: fine)").matches&&M2)&&!/Windows.*Firefox/.test(W8),gg=Ki("(any-pointer: fine)").matches||Ki("(any-hover: hover)").matches||mg||!M2,Sd=!j5||!gg&&U8?j5?"touchOnly":"mouseOnly":"hybrid",xg=Sd==="mouseOnly"?"mouse":Sd==="touchOnly"||U8?"touch":"mouse";const yg=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Sd,primaryInput:xg,supportsPassiveEvents:pg,supportsPointerEvents:fg,supportsTouchEvents:$8},Symbol.toStringTag,{value:"Module"})),bg=new Set(["INPUT","TEXTAREA","SELECT"]),q8={};function Cd(){return yg}const Z8=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Nt.camelToPrettyCase(e),pn=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:q8,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:Cd,focusableNodeNames:bg,toPrettyKeyCode:Z8},Symbol.toStringTag,{value:"Module"})),wg=[];function jo(e,t,n=wg){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],p=i[u];Object.defineProperty(r,u,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const M5=e=>a.jsx(j2,{...e}),vg=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),R2=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=vg,createHorizontalScrollbar:c=M5,createVerticalScrollbar:u=M5,style:p,touchElement:f,disableTouch:h,...g}=e,m=he(r,[r]),x=jo(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=s.useCallback((S,I)=>{m?.({left:S,top:I})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),E=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),k=s.useCallback(({containerWidth:S,containerHeight:I,totalWidth:j,totalHeight:R})=>{y.current.setDimensions(S,I,j,R)},[]);s.useEffect(()=>{const S=f??x.current;if(!h&&Cd().supportsTouchEvents&&S&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new ug(w,I)}Cd().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",E),S.addEventListener("touchmove",C)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",E),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[M,{width:T}]=ai(),[F,{height:_}]=ai(),P=s.useMemo(()=>{const S=u({orientation:Ao.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{m?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:S})},[u,o?.top,o?.height,o?.totalHeight]),v=s.useMemo(()=>{const S=c({orientation:Ao.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>m?.({left:I})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${T}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:T,height:_}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,T,_]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${T}px`:void 0,minHeight:i?`${_}px`:void 0,...p},...g,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?P:a.jsx(a.Fragment,{})]}),i?v:a.jsx(a.Fragment,{})]})})}));R2.displayName="ScrollPane";const i0={Error:"error",Warning:"warning",Info:"info"},R5=new Set,Js={showMessage:(e,t)=>{if(t?.onceKey){if(R5.has(t.onceKey))return;R5.add(t.onceKey)}let n=console.log;t?.type!==i0.Warning&&t?.type!==i0.Error||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},Sg=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Qa=0;const Cg=100,kg=100,Eg=1e6,_g=100,Tg=50,G8=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=Cg,endScrollIncrement:d=kg,style:c=q8,onMouseDown:u,onScrollOffset:p,onScroll:f,scaleLimit:h=Eg,scaleFactor:g=_g,precisionFactor:m=Tg,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=he(u,[u]),w=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(w),E=h!==0&&b.totalSize>h?g:1,k=E/m,M=Math.ceil(b.totalSize/E),T=Math.ceil(b.offset/E),F=Math.ceil(o/E),_=s.useCallback(A=>{},[]),[P,v]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!P){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,P,i,l,d]);const I=he((A,D,L)=>{const $=S.current;S.current=null,$&&$.propTotalSize===r&&$.propViewportSize===o&&$.propOffset===n||(Math.abs(A-T)<k&&(A=T),p?.(A*E,T,F))},[p,E,k,T,F]),j=s.useCallback(A=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",j),v(!1)},[]),R=s.useCallback(A=>{y?.(A),v(!0),document.addEventListener("mousemove",_,{passive:!0}),document.addEventListener("mouseup",j,{passive:!0})},[_,j]);return a.jsx(j2,{ref:t,style:{...c},...x,offset:T,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));G8.displayName="VirtualScrollbar";const mc="bottom",jg="left",kd="right",gc="top";function xc(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var Qs=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=xc(o,t),i=typeof r=="function";n.push(i?r:()=>xc(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)xc(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const p=l[c];p.focus&&d.push({tabindex:parseInt(u),child:p})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:Qs([r,t]),onFocus:i,...o})}));const Mg=s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:p,height:f}]=ai(),h=s.useRef(null),g=(w,b=0)=>{const C=w/2,E=f-C+b;return function(k,M,T=!1){if(M===0)return k;function F(j,R,A){let D=R.x-j.x,L=R.y-j.y,$=Math.sqrt(D*D+L*L);return _(j,R,Math.min(1,A/$))}function _(j,R,A){return{x:j.x+(R.x-j.x)*A,y:j.y+(R.y-j.y)*A}}function P(j,R){j.length>2&&(j[j.length-2]=R.x,j[j.length-1]=R.y)}function v(j){return{x:parseFloat(j[j.length-2]),y:parseFloat(j[j.length-1])}}let S=k.split(/[,\s]/).reduce(function(j,R){let A=R.match("([a-zA-Z])(.+)");return A?(j.push(A[1]),j.push(A[2])):j.push(R),j},[]).reduce(function(j,R){return parseFloat(R)==R&&j.length?j[j.length-1].push(R):j.push([R]),j},[]),I=[];if(S.length>1){let j=v(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",j.x,j.y],S[S.length-1]=R),I.push(S[0]);for(let A=1;A<S.length;A++){let D=I[I.length-1],L=S[A],$=L===R?S[1]:S[A+1];if($&&D&&D.length>2&&L[0]==="L"&&$.length>2&&$[0]==="L"){let q,O,U=v(D),X=v(L),ee=v($);T?(q=_(X,D.origPoint||U,M),O=_(X,$.origPoint||ee,M)):(q=F(X,U,M),O=F(X,ee,M)),P(L,q),L.origPoint=X,I.push(L);let V=_(q,X,.5),H=_(X,O,.5),z=["C",V.x,V.y,H.x,H.y,O.x,O.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=v(I[I.length-1]);I.push(["Z"]),P(I[0],A)}}else I=S;return I.reduce(function(j,R){return j+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${C} L ${p} ${C}`,i)},m=s.useMemo(()=>g(l),[p,f,i,l]),x=s.useMemo(()=>{if(i===0)return;const w=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${w}`},[m,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Qs([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:a.jsx("path",{d:m,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})})),Rg={},Ig=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=Rg,...u}=e,p=o==="row",{style:f,className:h,...g}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:Ii("hit-box",h),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...g})},d)},es={},W0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ts=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,w0=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((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)},Ed=s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=es,paneProps:E=es,paneBeforeProps:k=es,paneAfterProps:M=es,createResizer:T=Ig}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),_=s.useMemo(()=>{let ie=null;i&&(i==="before"?ie=0:i==="after"&&(ie=1));const Re=ie===null;return{fixedPaneOffset:ie,isPercent:Re,minBefore:w0(c,Re),maxBefore:w0(u,Re),minAfter:w0(p,Re),maxAfter:w0(f,Re)}},[c,u,p,f]),P=he(d,[d]),[v,S]=s.useState(()=>w0(l,i===null));s.useEffect(()=>{S(w0(l,i===null))},[l,i]);const[I,{width:j,height:R}]=ai(),[A,{width:D,height:L}]=ai(),$=r==="row"?D:L,q=r==="row"?j:R,O=s.useMemo(()=>((ie,Re,Me,be)=>{const Oe=[null,null],oe=[null,null];if(ie||(ie={percent:be.fixedPaneOffset===null?50:null,pixels:be.fixedPaneOffset===null?null:0}),Re===0)return ie?.pixels!=null?be.fixedPaneOffset!==1?(Oe[0]=ie?.pixels,oe[1]=100):(Oe[1]=ie?.pixels-Me,oe[0]=100):ie?.percent!=null&&(be.fixedPaneOffset!==1?(oe[0]=ie?.percent,oe[1]=100-ie?.percent):(oe[1]=ie?.percent,oe[0]=100-ie?.percent)),{percents:oe,pixels:Oe,minBefore:ts(be.minBefore,!0),maxBefore:ts(be.maxBefore,!0),minAfter:ts(be.minAfter),maxAfter:ts(be.maxAfter)};let Ce=W0(ie,Re,be.fixedPaneOffset!==1),Le=Re-Me,qe=W0(be.minBefore,Le,!0)??0,pt=W0(be.maxBefore,Le,!0)??Le,ot=0,We=0,st=0,Xe=Le;ot=(W0(be.maxAfter,Re,!1)??Me)-Me,We=W0(be.minAfter,Re,!1)??Re,st=Math.max(qe,ot),Xe=Math.min(pt,We),Ce=Math.max(st,Math.min(Ce,Xe)),We=Math.min(Le-Ce,W0(be.maxAfter,Le-Ce,!0)??Le),ot=Math.min(Le-Ce,W0(be.minAfter,Le-Ce,!0)??Le),Oe[0]=Ce,Oe[1]=Le-Oe[0];const Qe=Math.max(0,Math.min(100,Ce/Le*100));return oe[0]=Qe,oe[1]=100-oe[0],{percents:oe,pixels:Oe,minBefore:`${qe}px`,minAfter:`${ot}px`,maxBefore:`${Oe[0]}px`,maxAfter:`${Oe[1]}px`}})(v,q,$,_),[_,v,q,$,r]),[U,X]=s.useState(!1),ee=he(y,[y]),V=he(w,[w]),H=he(b,[b]),z=s.useRef(null),W=s.useRef(null),G=s.useRef(null),{style:Q,className:Y,...te}=E,le={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:me,style:J,...ae}=k,{className:ke,style:De,...ne}=M,de={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ye,style:ze,onPointerDown:$e,...gt}=C,bt=he(ie=>{const Re=w0(ie,i===null);S(Re)},[i]),Se=he(ie=>{if(x||!U)return;const Re=Ne.current?.getBoundingClientRect();let Me=0;Me=r==="row"?(ie.clientX??ie.touches?.[0]?.clientX)-Re.x:(ie.clientY??ie.touches?.[0]?.clientY)-Re.y,Me=Math.max(0,Math.min(q,Me)),_.fixedPaneOffset===1&&(Me=q-Me),l&&v.pixels===Me||S({pixels:Me,percent:null}),V?.(Me),ie.stopPropagation(),ie.preventDefault()},[_,r,x,U,v,q]),ht=he(ie=>{if(document.removeEventListener("pointermove",Se),document.removeEventListener("touchmove",Se),document.removeEventListener("pointerup",ht),U&&(X(!1),v)){if(H(v.pixels),!w0(l,i===null)||v.pixels!==l){const Re={...v};Re.percent===null&&(Re.percent=Re.pixels/q*100),P(Re)}ie.stopPropagation(),ie.preventDefault()}},[v,U,l,i,q]),xt=he(ie=>{$e?.(ie),ie.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",Se,{passive:!1}),document.addEventListener("touchmove",Se,{passive:!1}),document.addEventListener("pointerup",ht,{passive:!1}))},[$e]),Ne=jo(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),wt=s.useMemo(()=>F?T?.({key:"resizer",ref:Qs([A,W]),className:Ii("resizer",ye),onPointerDownCapture:xt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ze},splitDirection:r,disabled:x,...gt}):null,[F,ye,gt,r,ze,x]),Ye=r==="row"?"Width":"Height",re={...le,...J,flex:_.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ye}`]:O?.minBefore,[`max${Ye}`]:o?O?.maxBefore:"100%"},Ue={...le,...De,flex:_.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ye}`]:O?.minAfter,[`max${Ye}`]:n?O?.maxAfter:"100%"},xe=s.useMemo(()=>n?a.jsx("div",{ref:z,className:Ii("before",Y,me),style:re,...te,...ae,children:n},"before"):null,[n,E,k,_,O]),we=s.useMemo(()=>o?a.jsx("div",{ref:G,className:Ii("after",Y,ke),style:Ue,...te,...ne,children:o},"after"):null,[o,E,M,_,O]);return a.jsxs("div",{ref:Qs([I,Ne]),className:Ii("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},g),style:de,children:[xe,wt,we]})}));function I5(e,t){return function(n){if(!n)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:o,onPointerUp:r,onPointerMoveOrWait:i,processTouch:l=!1,consumeTouch:d=!0}=n,c=he(o,[o]),u=he(r,[r]),p=he(i,[i]),f=s.useRef(!1),h=n?.timerInitial??230,g=n?.timerContinuous??h/2,m=s.useRef(null),x=s.useRef(null),y=s.useRef(null),w=s.useRef(null),b=s.useCallback(()=>{w.current&&(clearTimeout(w.current),w.current=null)},[]),C=s.useCallback(S=>{w.current=setTimeout(()=>{window.requestAnimationFrame(()=>{f.current!==!1&&p?.(x.current,y.current,m.current)}),C(g)},S??h)},[]);s.useEffect(()=>()=>b(),[]);const E=l?"pointer":"mouse",k=s.useCallback(S=>{S.stopPropagation(),S.stopImmediatePropagation(),S.preventDefault()},[]),M=he(S=>{document.removeEventListener(`${E}move`,_),document.removeEventListener(`${E}up`,M),document.removeEventListener("keydown",P),document.removeEventListener("keyup",v),document.removeEventListener("touchstart",k,{capture:!0}),document.removeEventListener("touchmove",k,{capture:!0}),window.removeEventListener("blur",T),b(),window.requestAnimationFrame(()=>{f.current!==!1&&(f.current=!1,u?.(S,y.current,m.current),y.current=null)})},[]),T=s.useCallback(()=>{f.current!==!1&&(f.current=!1,M(x.current))},[]),F=he(()=>{b(),C(g),window.requestAnimationFrame(()=>{f.current!==!1&&p?.(x.current,y.current,m.current)})},[g]),_=he(S=>{x.current=S,F()},[]),P=he(S=>{y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},F()},[]),v=he(S=>{y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},F()},[g]);return he(S=>{S.isDefaultPrevented()||(y.current={ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey},c(S,y.current)!==!1&&(m.current=S,x.current=S.nativeEvent,document.addEventListener(`${E}up`,M,{passive:!1}),document.addEventListener(`${E}move`,_,{passive:!1}),document.addEventListener("keydown",P,{passive:!1}),document.addEventListener("keyup",v,{passive:!1}),window.addEventListener("blur",T,{passive:!0}),l&&d&&(document.addEventListener("touchstart",k,{passive:!1,capture:!0}),document.addEventListener("touchmove",k,{passive:!1,capture:!0})),f.current=!0,C(h)))},[h,l])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const Dg=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},_d=e=>{console&&console.warn&&console.warn(e)},yc=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let Lg=1,Td=!1,K8=!1;const Os=[],Di=[],e1=()=>{Di.forEach(e=>e())},Og=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||Td!==!1||(K8=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return Di[0]!==i?(e||Td!==!0||_d("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...Os])}return Di.push(i),e1(),()=>{r=!1,o.current?.length>0&&_d("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Di.splice(Di.indexOf(i),1),e1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement(Dg,{...r,key:i}))})},X8=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=f=>{r=f,wo.unstable_batchedUpdates(()=>d.forEach(h=>h(f)))},p=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,h]=s.useState(p);return s.useEffect(()=>(i||(i=!0,o=(g=>{const m=Lg++;return Os.push({hook:g,key:m}),Di.length===0&&K8===!1&&(Td=!0,(x=>{if(yc.document&&yc.document.createElement){const y=yc.document.createElement("div");T2.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else _d("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(Og)),e1(),()=>{Os.splice(Os.findIndex(x=>x.key===m),1),e1()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==f&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),f}};let Y8=()=>{console.warn("You must call useEditMode before setting its state.")};const Pg=X8(null,()=>{const[e,t]=s.useState(null);return Y8=t,e}),Wr=()=>{const e=Pg();return s.useMemo(()=>({setMode:t=>{Y8(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let Te=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,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}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 typeof this._context=="function"?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)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)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}},mt=class extends Te{},ll=class J8{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Nt.uuidV4(),this._target=t,this._groupKey=n??null,this._root=this,this._nodes=new Map,this._nodes.set(n,this),this._children=new Map,this._listeners=new Set,this._commandsByKey=new Map,this._commandsByShortcut=new Map;const o=this;this._unListenersByCommand=new Map,this._listenersByKey=new Map,this._commandsPropertyListener=(r,i)=>{const l=o._root._listenersByKey,d=i.key(),c=l.get(d);c&&o._notifyCommands(c,"onCommandChange",i)}}_getCommand(t){return this._commandsByKey.get(t)||(this._parent?._getCommand(t)??null)}getCommand(t,n=!1){const o=this._root._focused;let r=o,i=o===this;for(;!i&&r;)r===this&&(i=!0),r=r._parent;return(i?o:this)._getCommand(t)}createChildGroup(t,n,o){let r;if(!o){let d=this;for(;d&&!r;){let c=d._nodes.get(n);c&&(r=c),d=d._parent}}r||(r=new J8(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(d,c)=>{!d.has(n)||o?d.set(n,c):o===void 0&&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(t){return this._nodes.get(t)}_addCommands(t,n=void 0){const o=this._commandsByKey,r=this._commandsByShortcut,i=this._root._commandsPropertyListener,l=this._root._unListenersByCommand;for(let d=0;d<t.length;d++){const c=t[d],u=c.key();if(o.has(u)&&!n){n===void 0&&console.warn("command already registered",u);continue}o.set(u,c);let p=l.get(c);p&&(p(),l.delete(c));const f=c.addPropertyListener(i);l.set(c,f);const h=c.shortcut();if(!h)continue;const g=Array.isArray(h)?h:[h];for(let m=0;m<g.length;m++){const x=Sl(g[m]),y=r.get(x);y&&!n&&n===void 0&&console.warn(`Shortcut already registered: ${x}, ${u}, ${y}.`),r.set(x,u)}}}removeFromParent(){if(!this._parent)return;let t=this._parent,n=[];const o=this._groupKey;for(;t;)n.push(t._nodes),t._nodes.delete(o),t=t._parent;t=this._parent;const r=i=>{i._children.forEach(l=>{for(let d=0;d<n.length;d++)l._nodes.delete(n[d]);r(l)})};r(this),this._parent=null,this._notify("onGroupChange")}addCommands(t,n){this._addCommands(t,n),this._notify("onGroupChange")}getActive(){return this._root._focused??this._root}activate(t){let n=this;if(t&&(n=this._nodes.get(t),!n))return void console.warn("group not found",t);let o=this._root._focused??this._root;for(;o;)o=o._parent;this._root._focused!==n&&(this._root._focused=n,this._notify("onGroupChange"),this._notify("onActiveChange"))}findCommandByEvent(t){const n=[];t.altKey&&n.push(Ee.Alt),t.shiftKey&&n.push(Ee.Shift),t.ctrlKey&&n.push(Ee.Ctrl),t.metaKey&&n.push(Ee.Meta);let o=Sl({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=Sl({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=Sl({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=Sl({key:t.code.substring(3,t.code.length),modifiers:n}),i=r.get(o));let l=null;return i&&(l=this._commandsByKey.get(i),l&&l.disabled()&&(l=null),!l||l.target()&&l.target().contains(t.target)||(l=null)),l||(this._parent?.findCommandByEvent(t)??null)}dispatchToFocusedCommand(t){const n=this.getActive();if(!n||t.isDefaultPrevented())return!1;const o=n.findCommandByEvent?.(t);return!!o&&(o.execute(),t.preventDefault(),!0)}getRoot(){return this._parent?this._parent.getRoot():this}getParent(){return this._parent}addListener(t,n){const o=this._listeners,r=n?.keys,i=this._root._listenersByKey;if(r&&!t.onCommandChange)throw new Error("keys were provided but the listener does not contain 'onCommandChange'.");let l=null;if(r)for(let d=0;d<r.length;d++){const c=r[d];if(!c)continue;let u=i.get(c);u||(u=new Set,i.set(c,u)),l||(l=[]),l.push(u),u.add(t)}return o.add(t),()=>{if(l)for(let d=0;d<l.length;d++)l[d].delete(t);o.delete(t)}}_notifyCommands(t,n,o){const r=this;setTimeout(()=>{t.forEach(i=>{i[n]?.(r,o)})},0)}_notify(t,n){const o=this;setTimeout(()=>{o._listeners.forEach(r=>{r[t]?.(o,n)}),o._parent&&o._parent._notify(t,n)},0)}getAllCommands(){const t=[],n=this._groupKey;return this._commandsByKey.forEach(o=>{t.push({command:o,groupKey:n})}),this._children.forEach(o=>{t.push(...o.getAllCommands())}),t}};const Ag=Nt.getOS()===Nt.OSType.MacOS||Nt.getOS()===Nt.OSType.IOS?"Cmd":"Ctrl",Fg=Nt.getOS()===Nt.OSType.MacOS||Nt.getOS()===Nt.OSType.IOS?"⌘":"^",Sl=(e,t=!1)=>{const n={};for(let r=0;e.modifiers&&r<e.modifiers.length;r++)n[e.modifiers[r]]=!0;let o="";return(n?.[Ee.Ctrl]||n?.[Ee.Meta])&&(o+=(o.length>0?"+":"")+(t?Fg:Ag)),n?.[Ee.Alt]&&(o+=t?"⌥":"Alt"),n?.[Ee.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+Z8(e.key),o};function H0(e,t=null){const n=s.useRef(t);n.current=t;const[o,r]=s.useReducer(l=>l+1,0),i=s.useMemo(()=>Array.isArray(e)?e:[e],[e]);return s.useEffect(()=>{if(!i||i.length===0)return;const l=(u,p)=>{n.current?.onChange?.(p),r()};let d=null;t&&(d={onExecute(u,p){n.current?.onExecute?.(u,p)},onError(u,p,f){n.current?.onError?.(u,p,f)}});const c=new Set;for(let u=0;u<i.length;u++)c.add(i[u]?.addPropertyListener(Nt.debounce(l,0),!0)),t&&c.add(i[u]?.addExecuteListener(d));return()=>{c.forEach(u=>{u?.()})}},[e]),o}const ns=(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 to(e,t=null,n=null,o){const r=s.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=s.useState(ns(e,t)),d=o?[...o,e]:[e];return s.useEffect(()=>{const c={onGroupChange:()=>{const h=ns(e,t);l(h),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),l(ns(e,t))});const p=e?.addListener(c,u),f=ns(e,t);return l(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},d),i}const Ht={Toolbar:"toolbar",Menuitem:"menuitem"},Q8=X8({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Gi.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(Gi.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}}),eh=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=Js,commands:l}=e,d=he(r,[r]),c=he(o,[o]),{getClipboard:u,refNativeCopy:p}=Q8(),f=u();s.useMemo(()=>{const b=t?.element,C=n?.element??t?.element;if(!l)return;const E=[new mt("cut",b,{label:"Cut",description:"Remove the selection and put it on the clipboard so you can paste it somewhere else.",shortcut:{key:"X",modifiers:[Ee.Ctrl]}}),new mt("copy",b,{label:"Copy",description:"Put a copy of the selection on the clipboard so you can paste it somewhere else.",shortcut:{key:"C",modifiers:[Ee.Ctrl]}}),new mt("paste",C,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[Ee.Ctrl]},{key:"F8",modifiers:[Ee.Ctrl]}]})];l?.addCommands(E,!0)},[l]);const h=he(async b=>{if(!t?.element)return;let C=null;try{C=t.doCopy?.(b),typeof C=="string"?await f.writeText(C):await f.writeReference(C)}catch(E){throw E}},[t,i]),g=he(async b=>{const C=t?.element?.();if(C){p.current={sourceElement:C,args:b};try{await h(b)}catch(E){i?.showError?.(E)}}},[t?.element,i]),m=s.useCallback(()=>{g({isCut:!0})},[]),x=he(async(b,C,E)=>{try{if(await b.doPaste(C,E)===!1)return;c?.(C,E)}catch(k){i?.showError?.(k)}},[c]),y=he(async(b,C,E)=>{const k=n?.element?.();if(k&&await Nt.whenFocus(k),!b&&!C)return;const M=await i?.showBusy?.("Pasting...");if(C)try{return await x(n,C,E),void M?.()}catch(_){M?.(),i?.showError?.(_)}let T,F=n.importFromExternal;F||(F=(_,P)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{T=await F(b,{isCut:!1})}catch(_){M?.(),i?.showError?.(_)}if(T)try{const _=await Promise.resolve(T);await x(n,_,E),M?.()}catch(_){M?.(),i?.showError?.(_)}else M?.()},[x,n,i]),w=he(async b=>{if(n?.element)try{const C=await f.readReference();if(C)return void await y(null,C,b);const E=[];E[0]=await tg(f,d0),E[1]=await ng(f,Ho),E[2]=await eg(f,Ds);const k={text:E[0]??null,html:E[1]??null,image:E[2]??null};await y(k,null,b)}catch(C){if(C?.message==="Document is not focused.")return;i?.showError?.(C)}},[y,n?.element,i]);return he(async b=>{},[t?.element]),he(async b=>{},[n?.element,y,i]),s.useEffect(()=>{if(!f)return;const b=async k=>{const M=await f.readReference();d?.(M)},C=k=>{i?.showMessage?.(Gi.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},E=k=>{i?.showMessage?.(Gi.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return f.addEventListener("clipboardchange",b),f.addEventListener("clipboarderrorread",C),f.addEventListener("clipboarderrorwrite",E),()=>{f.removeEventListener("clipboardchange",b),f.removeEventListener("clipboarderrorread",C),f.removeEventListener("clipboarderrorwrite",E)}},[f,i]),s.useEffect(()=>{},[h,y,t,n]),s.useEffect(()=>{l?.getCommand("cut")?.updateCallback(m).update({disabled:!t||!n}),l?.getCommand("copy")?.updateCallback(g).update({disabled:!t}),l?.getCommand("paste")?.updateCallback(w).update({disabled:!n})},[t,n,l]),{paste:w,copy:g,clipboard:f}};s.useId;const D5="Undo the last action.",L5="Repeat the last action or undo the redo.",zg=e=>`Redo ${e}`;function th(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=th(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function To(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=th(e))&&(o&&(o+=" "),o+=t);return o}const Go="text/html",v0="text/plain",bc="image/png",Bg=Object.freeze({left:0,top:0}),Ng=Object.freeze({left:0,top:0,bottom:0,right:0}),Vg=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Vg,EmptyRect:Ng,EmptyTopLeft:Bg},Symbol.toStringTag,{value:"Module"}));const oi="column",fa="row",Hg=Object.freeze({colIndex:0,rowIndex:0}),$g=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),nh=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,oh=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Wg=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Ug=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,O5=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,P5=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,rh=(e=fa,t=!1)=>t?e!==oi?Wg:Ug:e!==oi?oh:nh,A5=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,jd=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Md=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),F5=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!jd(e[n],t[n]))return!1;return!0},wc=(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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},z5=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];Md(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},qg=[null,null],Zg=(e,t,n)=>{if(e[0].value===e[1].value)return t};function B5(e,t=2,n,o=fa,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===oi,d=0,c=!1;do{const u=i.sort(rh(l?fa:oi));i=[],i.push(u[0]);const p=u.length;let f=0,h=u[0],g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let w=1;w<p;w++){const b=u[w];let C=!1;if(C=l?h&&m===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&g===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let E={colStart:g,rowStart:m,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,E=n(k,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:Hg,EmptyRange:$g,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:O5,columnFirstRangeComparator:nh,createCellComparator:(e=fa,t=!1)=>t?e!==oi?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==oi?P5:O5,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let p=!0;const f=u!==void 0;if(f){const m=e?e(r,u,t):r===u?u:void 0;m===void 0?p=!1:u=m}if(p&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,g=t?c:d;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?B5(n,3,d===!0?Zg:d,t?oi:fa,qg):n)}},createRangeComparator:rh,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:z5,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!jd(n,o);)o=n,n=z5(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(Md(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:A5,isEqualRanges:jd,isEqualRangesArrays:F5,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!A5(e.cell,t.cell)&&F5(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Md,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:B5,rowFirstCellComparator:P5,rowFirstRangeComparator:oh,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:wc,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=wc(o,e[r],n);return t&&(o=wc(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const Gg=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Kg(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===Gg}(e)}function $l(e,t){return t.clone!==!1&&t.isMergeableObject(e)?si((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function Xg(e,t,n){return e.concat(t).map(function(o){return $l(o,n)})}function N5(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function V5(e,t){try{return t in e}catch{return!1}}function si(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Xg,n.isMergeableObject=n.isMergeableObject||Kg,n.cloneUnlessOtherwiseSpecified=$l;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&N5(r).forEach(function(c){d[c]=$l(r[c],l)}),N5(i).forEach(function(c){var u,p;V5(u=r,p=c)&&(!Object.hasOwnProperty.call(u,p)||!Object.propertyIsEnumerable.call(u,p))||(V5(r,c)&&l.isMergeableObject(i[c])?d[c]=function(f,h){if(!h.customMerge)return si;const g=h.customMerge(f);return typeof g=="function"?g:si}(c,l)(r[c],i[c],l):d[c]=$l(i[c],l))}),d}(e,t,n):$l(t,n)}si.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return si(n,o,t)},{})};const Yg=Object.freeze([]),Jg=Object.freeze({}),H5=e=>e,Ps=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),ih=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Cl=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,lh=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?lh(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),Qg=(e,t)=>!(e!==t&&!ih(e,t)&&!e.isEqual?.(t)),ah=(e,t,n=Qg)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];ah(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},$5=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),W5=e=>e==null,U5=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),q5=!(typeof window>"u"||!window.document||!window.document.createElement),Ko={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},ma=()=>{if(sh())return Ko.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Ko.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Ko.MacOS:/(iphone|ipad|ipod)/i.test(e)?Ko.IOS:/android/.test(e)?Ko.Android:/linux/.test(e)?Ko.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Ko.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Ko.Firefox:Ko.Unknown:Ko.Unknown};function sh(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const Z5=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),eo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:Yg,EmptyObject:Jg,OSType:Ko,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=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:q5,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>W5(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,d=0;function c(){let p=Date.now()-d;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){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;r--!==0;)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;r--!==0;)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;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:si,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=H5){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=H5){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 typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!Cl(l))return l;o=l}return o??null},getOS:ma,hasFocus:Z5,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:ih,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:sh,isNullOrUndefined:W5,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Cl,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:U5,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Cl(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=si(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!q5)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(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:lh,removeEqualValues:ah,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=$5(),o={id:requestAnimationFrame(function r(){$5()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!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 i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!Cl(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Cl(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(!U5(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})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),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(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&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 r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Ps,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=>{Z5(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 ch=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},Rd=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:ch,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:Rd},Symbol.toStringTag,{value:"Module"}));const dh="data:image/png;base64,",uh="Unable to resolve image.",G5=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{o?.src&&URL.revokeObjectURL(o.src)}o||n(uh)}),vc="image/svg+xml";var K5,X5;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:dh,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 i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(uh)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await G5(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:vc})),d=await G5(l);n={mimeType:t??vc,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===vc?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"})),(X5=K5||(K5={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const p=c[u];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,X5.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(d=d??{},d[p]=f)}}return d};const Y5=`The Safari browser does not support advanced copy and paste.
14
- Copy and paste will be limited to within the browser tab.
15
-
16
- Please use Chrome or Edge if external copy and paste is required.`,Sc=`You do not have permissions to access the clipboard.
17
- All copy and paste operations will be limited to the browser tab.`,hh={Safari:`The Safari browser does not support advanced copy and paste.
18
- Copy and paste will be limited to within the browser tab.
19
-
20
- Please use Chrome or Edge if external copy and paste is required.`,Perms:Sc,PermsWrite:ma()===Ko.Safari?Y5:Sc,PermsRead:ma()===Ko.Safari?Y5:Sc},Cc=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),kc=async(e,t,n)=>{if(ma()===Ko.Safari)return await n(new Error(hh.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},ph=async e=>{try{return await e.read({unsanitized:[Go]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const Id=async(e,t=Go)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const d=await ph(i);let c=!1;for(let u=0;!c&&d&&u<d.length;u++)if(c=d[u].types.includes(l),c)return await d[u].getType(l);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),J5=async(e,t=Go)=>{const n=await Id(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Go)}catch{console.warn("Can't parse html from clipboard.")}return o},ga="clipboard-uuid",Si="web text/uuid",Q5=e=>`<div style="display:none" ${ga}="${e}"/>`,ex=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Go);o.body.firstElementChild.setAttribute(ga,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},e3=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${ga}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let t1=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await kc("clipboard-read",async()=>{await Cc();const e=await Id(this._nativeClipboard,Si);if(!this._state||e&&e===this._state.uuid)return!0;const t=await J5(this._nativeClipboard,Go);return!this._state||(e3(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||ma()===Ko.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 kc("clipboard-read",async()=>{if(await Cc(),this._state?.uuid){const t=await Id(this._nativeClipboard,Si);if(t&&t===e._state.uuid)return!0;const n=await J5(this._nativeClipboard,Go);if(e3(e._state?.uuid,n))return!0}return e._state={items:await ph(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Ps(),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 kc("clipboard-write",async()=>{await Cc(),o&&r.length===0&&(r.push(new ClipboardItem({[Si]:new Blob([o],{type:Si})})),r.push(new ClipboardItem({[Go]:new Blob([Q5(o)],{type:Go})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(Go),u=null;if(c!==-1){const h=await d.getType(Go);u=await Rd(h),u&&(u=ex(o,u))}if(!u&&d.types.includes(v0)){const h=await d.getType(v0);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await Rd(h),g&&(u=`<div ${ga}="${o}">${g}</div>`)}}if(!u&&d.types.includes(bc)){const h=await d.getType(bc),g=ch(await h.arrayBuffer());u=`<div ${ga}="${o}"><img src="${dh+g}"/></div>`}!u&&o&&(u=Q5(o));const p=new Blob([u??""],{type:Go}),f={};for(let h=0;h<d.types.length;h++){const g=d.types[h];f[g]=h===c?p:d.getType(g)}u&&c===-1&&(f[Go]=p),o&&(f[Si]=new Blob([o],{type:Si})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[v0]=new Blob([r??""],{type:v0}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Go]=new Blob([r],{type:Go}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[bc]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Ps(),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 i=0;!o&&n&&i<n.length;i++)n[i].types.includes(v0)&&(o=await n[i].getType(v0));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[v0]:new Blob([e],{type:v0})})];return this._write({uuid:Ps(),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,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};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),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var Ec;(Ec=t1||(t1={})).ErrorMessages=hh,Ec.Global=new Ec;const Xi=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("path",{})}),I2=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),t3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),tx=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),nx=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),ox=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),rx=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),ix=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),lx=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),n3=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),fh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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 ci(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const D2="$$material";function mh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function o(){var r=!1;try{r=this instanceof o}catch{}return r?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(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}),n}var o3,r3,i3={exports:{}},zn={},xh=(r3||(r3=1,i3.exports=function(){if(o3)return zn;o3=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"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type){case n:case r:case o:case c:case u:case h:return x;default:switch(x=x&&x.$$typeof){case l:case d:case f:case p:case i:return x;default:return y}}case t:return y}}}return zn.ContextConsumer=i,zn.ContextProvider=l,zn.Element=e,zn.ForwardRef=d,zn.Fragment=n,zn.Lazy=f,zn.Memo=p,zn.Portal=t,zn.Profiler=r,zn.StrictMode=o,zn.Suspense=c,zn.SuspenseList=u,zn.isContextConsumer=function(x){return m(x)===i},zn.isContextProvider=function(x){return m(x)===l},zn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},zn.isForwardRef=function(x){return m(x)===d},zn.isFragment=function(x){return m(x)===n},zn.isLazy=function(x){return m(x)===f},zn.isMemo=function(x){return m(x)===p},zn.isPortal=function(x){return m(x)===t},zn.isProfiler=function(x){return m(x)===r},zn.isStrictMode=function(x){return m(x)===o},zn.isSuspense=function(x){return m(x)===c},zn.isSuspenseList=function(x){return m(x)===u},zn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===c||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===p||x.$$typeof===l||x.$$typeof===i||x.$$typeof===d||x.$$typeof===g||x.getModuleId!==void 0)},zn.typeOf=m,zn}()),i3.exports);function h0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function yh(e){if(z0.isValidElement(e)||xh.isValidElementType(e)||!h0(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yh(e[n])}),t}function pr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return h0(e)&&h0(t)&&Object.keys(t).forEach(r=>{z0.isValidElement(t[r])||xh.isValidElementType(t[r])?o[r]=t[r]:h0(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&h0(e[r])?o[r]=pr(e[r],t[r],n):n.clone?o[r]=h0(t[r])?yh(t[r]):t[r]:o[r]=t[r]}),o}function L2(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function B0(e){if(e.type)return e;if(e.charAt(0)==="#")return B0(function(i){i=i.slice(1);const l=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let d=i.match(l);return d&&d[0].length===1&&(d=d.map(c=>c+c)),d?`rgb${d.length===4?"a":""}(${d.map((c,u)=>u<3?parseInt(c,16):Math.round(parseInt(c,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(ci(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ci(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Wl=(e,t)=>{try{return(n=>{const o=B0(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function P1(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function bh(e){e=B0(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(u,p=(u+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let d="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(d+="a",c.push(t[3])),P1({type:d,values:c})}function Dd(e){let t=(e=B0(e)).type==="hsl"||e.type==="hsla"?B0(bh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function os(e,t,n){try{return function(o,r){return o=B0(o),r=L2(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,P1(o)}(e,t)}catch{return e}}function O2(e,t){if(e=B0(e),t=L2(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 P1(e)}function Hn(e,t,n){try{return O2(e,t)}catch{return e}}function P2(e,t){if(e=B0(e),t=L2(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 P1(e)}function $n(e,t,n){try{return P2(e,t)}catch{return e}}function rs(e,t,n){try{return function(o,r=.15){return Dd(o)>.5?O2(o,r):P2(o,r)}(e,t)}catch{return e}}const xa={black:"#000",white:"#fff"},ax={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"},l3="#d32f2f",a3="#42a5f5",s3="#0288d1";function wh(){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:xa.white,default:xa.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 sx=wh();function vh(){return{text:{primary:xa.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:xa.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 c3=vh();function d3(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=P2(e.main,r):t==="dark"&&(e.dark=O2(e.main,i)))}function A2(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:"#90caf9",light:"#e3f2fd",dark:a3}:{main:"#1976d2",light:a3,dark:"#1565c0"}}(t),l=e.secondary||function(m="light"){return m==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),d=e.error||function(m="light"){return m==="dark"?{main:"#f44336",light:"#e57373",dark:l3}:{main:l3,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:s3}:{main:s3,light:"#03a9f4",dark:"#01579b"}}(t),u=e.success||function(m="light"){return m==="dark"?{main:"#66bb6a",light:"#81c784",dark:"#388e3c"}:{main:"#2e7d32",light:"#4caf50",dark:"#1b5e20"}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:"#ffa726",light:"#ffb74d",dark:"#f57c00"}:{main:"#ed6c02",light:"#ff9800",dark:"#e65100"}}(t);function f(m){return function(x,y){const w=Dd(x),b=Dd(y);return(Math.max(w,b)+.05)/(Math.min(w,b)+.05)}(m,c3.text.primary)>=n?c3.text.primary:sx.text.primary}const h=({color:m,name:x,mainShade:y=500,lightShade:w=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(ci(11,x?` (${x})`:"",y));if(typeof m.main!="string")throw new Error(ci(12,x?` (${x})`:"",JSON.stringify(m.main)));return d3(m,"light",w,o),d3(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=wh():t==="dark"&&(g=vh()),pr({common:{...xa},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:d,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:ax,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var u3,h3,p3,f3,m3,g3={exports:{}};function cx(){if(f3)return p3;f3=1;var e=h3?u3:(h3=1,u3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,p3=function(){function o(l,d,c,u,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}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 Ld(){return m3||(m3=1,g3.exports=cx()()),g3.exports}function ea(e,t){return t?pr(e,t,{clone:!1}):e}function x3(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const A1={xs:0,sm:600,md:900,lg:1200,xl:1536},y3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${A1[e]}px)`},dx={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:A1[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function g0(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||y3;return t.reduce((i,l,d)=>(i[r.up(r.keys[d])]=n(t[d]),i),{})}if(typeof t=="object"){const r=o.breakpoints||y3;return Object.keys(t).reduce((i,l)=>{if(d=r.keys,(c=l)==="@"||c.startsWith("@")&&(d.some(u=>c.startsWith(`@${u}`))||c.match(/^@\d/))){const u=function(p,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,x=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(x)}(o.containerQueries?o:dx,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||A1).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var d,c;return i},{})}return n(t)}function b3(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Sh(e){if(typeof e!="string")throw new Error(ci(7));return e.charAt(0).toUpperCase()+e.slice(1)}function F1(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function n1(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:F1(e,n)||o,t&&(r=t(r,o,e)),r}function xo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const d=l[t],c=F1(l.theme,o)||{};return g0(l,d,u=>{let p=n1(c,r,u);return u===p&&typeof u=="string"&&(p=n1(c,r,`${t}${u==="default"?"":Sh(u)}`,u)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const ux={m:"margin",p:"padding"},hx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},px=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!w3[n])return[n];n=w3[n]}const[o,r]=n.split(""),i=ux[o],l=hx[r]||"";return Array.isArray(l)?l.map(d=>i+d):[i+l]})(t)),e[t])}(),Ch=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function La(e,t,n,o){const r=F1(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const l=Math.abs(i),d=r[l];return i>=0?d:typeof d=="number"?-d:`-${d}`}:typeof r=="function"?r:()=>{}}function F2(e){return La(e,"spacing",8)}function Oa(e,t){return typeof t=="string"||t==null?t:e(t)}function Eh(e,t){const n=F2(e.theme);return Object.keys(e).map(o=>function(r,i,l,d){if(!i.includes(l))return null;const c=function(u,p){return f=>u.reduce((h,g)=>(h[g]=Oa(p,f),h),{})}(px(l),d);return g0(r,r[l],c)}(e,t,o,n)).reduce(ea,{})}function ro(e){return Eh(e,Ch)}function io(e){return Eh(e,kh)}function _h(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],l=t[r];if(l)if(i){n[r]={...l};for(const d in i)if(Object.prototype.hasOwnProperty.call(i,d)){const c=d;n[r][c]=_h(i[c],l[c])}}else n[r]=l;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}ro.propTypes={},ro.filterProps=Ch,io.propTypes={},io.filterProps=kh;const fx={borderRadius:4};function o1(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?ea(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Tr(e){return typeof e!="number"?e:`${e}px solid`}function Lr(e,t){return xo({prop:e,themeKey:"borders",transform:t})}const mx=Lr("border",Tr),gx=Lr("borderTop",Tr),xx=Lr("borderRight",Tr),yx=Lr("borderBottom",Tr),bx=Lr("borderLeft",Tr),wx=Lr("borderColor"),vx=Lr("borderTopColor"),Sx=Lr("borderRightColor"),Cx=Lr("borderBottomColor"),kx=Lr("borderLeftColor"),Ex=Lr("outline",Tr),_x=Lr("outlineColor"),As=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=La(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Oa(t,o)});return g0(e,e.borderRadius,n)}return null};As.propTypes={},As.filterProps=["borderRadius"],o1(mx,gx,xx,yx,bx,wx,vx,Sx,Cx,kx,As,Ex,_x);const r1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=La(e.theme,"spacing",8),n=o=>({gap:Oa(t,o)});return g0(e,e.gap,n)}return null};r1.propTypes={},r1.filterProps=["gap"];const i1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=La(e.theme,"spacing",8),n=o=>({columnGap:Oa(t,o)});return g0(e,e.columnGap,n)}return null};i1.propTypes={},i1.filterProps=["columnGap"];const Fs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=La(e.theme,"spacing",8),n=o=>({rowGap:Oa(t,o)});return g0(e,e.rowGap,n)}return null};function Vi(e,t){return t==="grey"?t:e}function dr(e){return e<=1&&e!==0?100*e+"%":e}Fs.propTypes={},Fs.filterProps=["rowGap"],o1(r1,i1,Fs,xo({prop:"gridColumn"}),xo({prop:"gridRow"}),xo({prop:"gridAutoFlow"}),xo({prop:"gridAutoColumns"}),xo({prop:"gridAutoRows"}),xo({prop:"gridTemplateColumns"}),xo({prop:"gridTemplateRows"}),xo({prop:"gridTemplateAreas"}),xo({prop:"gridArea"})),o1(xo({prop:"color",themeKey:"palette",transform:Vi}),xo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vi}),xo({prop:"backgroundColor",themeKey:"palette",transform:Vi}));const Tx=xo({prop:"width",transform:dr}),z2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||A1[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:dr(n)}};return g0(e,e.maxWidth,t)}return null};z2.filterProps=["maxWidth"];const jx=xo({prop:"minWidth",transform:dr}),Mx=xo({prop:"height",transform:dr}),Rx=xo({prop:"maxHeight",transform:dr}),Ix=xo({prop:"minHeight",transform:dr});xo({prop:"size",cssProperty:"width",transform:dr}),xo({prop:"size",cssProperty:"height",transform:dr}),o1(Tx,z2,jx,Mx,Rx,Ix,xo({prop:"boxSizing"}));const z1={border:{themeKey:"borders",transform:Tr},borderTop:{themeKey:"borders",transform:Tr},borderRight:{themeKey:"borders",transform:Tr},borderBottom:{themeKey:"borders",transform:Tr},borderLeft:{themeKey:"borders",transform:Tr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Tr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:As},color:{themeKey:"palette",transform:Vi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vi},backgroundColor:{themeKey:"palette",transform:Vi},p:{style:io},pt:{style:io},pr:{style:io},pb:{style:io},pl:{style:io},px:{style:io},py:{style:io},padding:{style:io},paddingTop:{style:io},paddingRight:{style:io},paddingBottom:{style:io},paddingLeft:{style:io},paddingX:{style:io},paddingY:{style:io},paddingInline:{style:io},paddingInlineStart:{style:io},paddingInlineEnd:{style:io},paddingBlock:{style:io},paddingBlockStart:{style:io},paddingBlockEnd:{style:io},m:{style:ro},mt:{style:ro},mr:{style:ro},mb:{style:ro},ml:{style:ro},mx:{style:ro},my:{style:ro},margin:{style:ro},marginTop:{style:ro},marginRight:{style:ro},marginBottom:{style:ro},marginLeft:{style:ro},marginX:{style:ro},marginY:{style:ro},marginInline:{style:ro},marginInlineStart:{style:ro},marginInlineEnd:{style:ro},marginBlock:{style:ro},marginBlockStart:{style:ro},marginBlockEnd:{style:ro},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:r1},rowGap:{style:Fs},columnGap:{style:i1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:dr},maxWidth:{style:z2},minWidth:{transform:dr},height:{transform:dr},maxHeight:{transform:dr},minHeight:{transform:dr},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"}},Yi=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:d=t,themeKey:c,transform:u,style:p}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const f=F1(o,c)||{};return p?p(i):g0(i,n,h=>{let g=n1(f,u,h);return h===g&&typeof h=="string"&&(g=n1(f,u,`${t}${h==="default"?"":Sh(h)}`,h)),d===!1?g:{[d]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??z1;function d(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const p=function(g={}){return g.keys?.reduce((m,x)=>(m[g.up(x)]={},m),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(u).forEach(g=>{const m=typeof(x=u[g])=="function"?x(r):x;var x;if(m!=null)if(typeof m=="object")if(l[g])h=ea(h,e(g,m,r,l));else{const y=g0({theme:r},m,w=>({[g]:w}));(function(...w){const b=w.reduce((E,k)=>E.concat(Object.keys(k)),[]),C=new Set(b);return w.every(E=>C.size===Object.keys(E).length)})(y,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=ea(h,y)}else h=ea(h,e(g,m,r,l))}),!i&&r.modularCssLayers?{"@layer sx":x3(r,b3(f,h))}:x3(r,b3(f,h))}return Array.isArray(o)?o.map(d):d(o)}}();function Dx(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")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 B2(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,d=function(p){const{values:f={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:h="px",step:g=5,...m}=p,x=(E=>{const k=Object.keys(E).map(M=>({key:M,val:E[M]}))||[];return k.sort((M,T)=>M.val-T.val),k.reduce((M,T)=>({...M,[T.key]:T.val}),{})})(f),y=Object.keys(x);function w(E){return`@media (min-width:${typeof f[E]=="number"?f[E]:E}${h})`}function b(E){return`@media (max-width:${(typeof f[E]=="number"?f[E]:E)-g/100}${h})`}function C(E,k){const M=y.indexOf(k);return`@media (min-width:${typeof f[E]=="number"?f[E]:E}${h}) and (max-width:${(M!==-1&&typeof f[y[M]]=="number"?f[y[M]]:k)-g/100}${h})`}return{keys:y,values:x,up:w,down:b,between:C,only:function(E){return y.indexOf(E)+1<y.length?C(E,y[y.indexOf(E)+1]):w(E)},not:function(E){const k=y.indexOf(E);return k===0?w(y[1]):k===y.length-1?b(y[k]):C(E,y[y.indexOf(E)+1]).replace("@media","@media not all and")},unit:h,...m}}(n),c=function(p=8,f=F2({spacing:p})){if(p.mui)return p;const h=(...g)=>(g.length===0?[1]:g).map(m=>{const x=f(m);return typeof x=="number"?`${x}px`:x}).join(" ");return h.mui=!0,h}(r);let u=pr({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...fx,...i}},l);return u=function(p){const f=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...w)=>f(p.breakpoints.up(...w),y),x.down=(...w)=>f(p.breakpoints.down(...w),y),x.between=(...w)=>f(p.breakpoints.between(...w),y),x.only=(...w)=>f(p.breakpoints.only(...w),y),x.not=(...w)=>{const b=f(p.breakpoints.not(...w),y);return b.includes("not all and")?b.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):b}}const g={},m=x=>(h(g,x),g);return h(m),{...p,containerQueries:m}}(u),u.applyStyles=Dx,u=t.reduce((p,f)=>pr(p,f),u),u.unstable_sxConfig={...z1,...l?.unstable_sxConfig},u.unstable_sx=function(p){return Yi({sx:p,theme:this})},u}Yi.filterProps=["sx"];const Lx=B2(),v3=(e,t,n,o=[])=>{let r=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function _c(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var d,c;return d=(u,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(u,p))){const m=`--${n?`${n}-`:""}${u.join("-")}`,x=(h=u,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>h.includes(y))||h[h.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:x}),v3(i,u,`var(${m})`,f),v3(l,u,`var(${m}, ${x})`,f)}var h,g},c=u=>u[0]==="vars",function u(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?u(m,[...f,g],Array.isArray(m)?[...h,g]:h):d([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:l}}function Ox(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const S3={textTransform:"uppercase"},C3='"Roboto", "Helvetica", "Arial", sans-serif';function Px(e,t){const{fontFamily:n=C3,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:d=700,htmlFontSize:c=16,allVariants:u,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(y=>y/c*h+"rem"),m=(y,w,b,C,E)=>{return{fontFamily:n,fontWeight:y,fontSize:g(w),lineHeight:b,...n===C3?{letterSpacing:(k=C/w,Math.round(1e5*k)/1e5+"em")}:{},...E,...u};var k},x={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,S3),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,S3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return pr({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:d,...x},f,{clone:!1})}function Xn(...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 Ax=["none",Xn(0,2,1,-1,0,1,1,0,0,1,3,0),Xn(0,3,1,-2,0,2,2,0,0,1,5,0),Xn(0,3,3,-2,0,3,4,0,0,1,8,0),Xn(0,2,4,-1,0,4,5,0,0,1,10,0),Xn(0,3,5,-1,0,5,8,0,0,1,14,0),Xn(0,3,5,-1,0,6,10,0,0,1,18,0),Xn(0,4,5,-2,0,7,10,1,0,2,16,1),Xn(0,5,5,-3,0,8,10,1,0,3,14,2),Xn(0,5,6,-3,0,9,12,1,0,3,16,2),Xn(0,6,6,-3,0,10,14,1,0,4,18,3),Xn(0,6,7,-4,0,11,15,1,0,4,20,3),Xn(0,7,8,-4,0,12,17,2,0,5,22,4),Xn(0,7,8,-4,0,13,19,2,0,5,24,4),Xn(0,7,9,-4,0,14,21,2,0,5,26,4),Xn(0,8,9,-5,0,15,22,2,0,6,28,5),Xn(0,8,10,-5,0,16,24,2,0,6,30,5),Xn(0,8,11,-5,0,17,26,2,0,6,32,5),Xn(0,9,11,-5,0,18,28,2,0,7,34,6),Xn(0,9,12,-6,0,19,29,2,0,7,36,6),Xn(0,10,13,-6,0,20,31,3,0,8,38,7),Xn(0,10,13,-6,0,21,33,3,0,8,40,7),Xn(0,10,14,-6,0,22,35,3,0,8,42,7),Xn(0,11,14,-7,0,23,36,3,0,9,44,8),Xn(0,11,15,-7,0,24,38,3,0,9,46,8)],Fx={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)"},zx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function k3(e){return`${Math.round(e)}ms`}function Bx(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function Nx(e){const t={...Fx,...e.easing},n={...zx,...e.duration};return{getAutoHeightDuration:Bx,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:d=0,...c}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:k3(i)} ${l} ${typeof d=="string"?d:k3(d)}`).join(",")},...e,easing:t,duration:n}}const Vx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Hx(e){return h0(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Th(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,d]=r[i];!Hx(d)||l.startsWith("unstable_")?delete o[l]:h0(d)&&(o[l]={...d},n(o[l]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
21
-
22
- const theme = ${JSON.stringify(t,null,2)};
23
-
24
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
25
- theme.transitions = createTransitions(theme.transitions || {});
26
-
27
- export default theme;`}function Od(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:d={},shape:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ci(20));const p=A2(i),f=B2(e);let h=pr(f,{mixins:(g=f.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:Ax.slice(),typography:Px(p,d),transitions:Nx(l),zIndex:{...Vx}});var g,m;return h=pr(h,u),h=t.reduce((x,y)=>pr(x,y),h),h.unstable_sxConfig={...z1,...u?.unstable_sxConfig},h.unstable_sx=function(x){return Yi({sx:x,theme:this})},h.toRuntimeSource=Th,h}function jh(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const $x=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=jh(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function E3(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function _3(e){return e==="dark"?$x:[]}function Wx(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const Ux=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const d={};return(l=e.cssVarPrefix,[...[...Array(25)].map((c,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(c=>{d[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:d}}:i?{[i.replace("%s",t)]:d,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...d}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function Ve(e,t,n){!e[t]&&n&&(e[t]=n)}function Ul(e){return typeof e=="string"&&e.startsWith("hsl")?bh(e):e}function s0(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Wl(Ul(e[t])))}const Kr=e=>{try{return e()}catch{}};function Tc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(d){const{palette:c={mode:"light"},opacity:u,overlays:p,...f}=d,h=A2(c);return{palette:h,opacity:{...E3(h.mode),...u},overlays:p||_3(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=Od({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...E3(r),...t?.opacity},overlays:t?.overlays||_3(r)},l}function T3(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:A2({...n===!0?{}:n.palette,mode:t})})}function Pd(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,d=i||"light",c=r?.[d],u={...r,...n?{[d]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Od(e,...t);let p=n;"palette"in e||u[d]&&(u[d]!==!0?p=u[d].palette:d==="dark"&&(p={mode:"dark"}));const f=Od({...e,palette:p},...t);return f.defaultColorScheme=d,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},T3(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},T3(f,"light",u.light)),f}return n||"light"in u||d!=="light"||(u.light=!0),function(p={},...f){const{colorSchemes:h={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:x="mui",shouldSkipGeneratingVar:y=Wx,colorSchemeSelector:w=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...C}=p,E=Object.keys(h)[0],k=g||(h.light&&E!=="light"?"light":E),M=((q="mui")=>dt.unstable_createGetCssVar(q))(x),{[k]:T,light:F,dark:_,...P}=h,v={...P};let S=T;if((k==="dark"&&!("dark"in h)||k==="light"&&!("light"in h))&&(S=!0),!S)throw new Error(ci(21,k));const I=Tc(v,S,C,k);F&&!v.light&&Tc(v,F,void 0,"light"),_&&!v.dark&&Tc(v,_,void 0,"dark");let j={defaultColorScheme:k,...I,cssVarPrefix:x,colorSchemeSelector:w,rootSelector:b,getCssVar:M,colorSchemes:v,font:{...Ox(I.typography),...I.font},spacing:(R=C.spacing,typeof R=="number"?`${R}px`:typeof R=="string"||typeof R=="function"||Array.isArray(R)?R:"8px")};var R;Object.keys(j.colorSchemes).forEach(q=>{const O=j.colorSchemes[q].palette,U=ee=>{const V=ee.split("-"),H=V[1],z=V[2];return M(ee,O[H][z])};var X;if(O.mode==="light"&&(Ve(O.common,"background","#fff"),Ve(O.common,"onBackground","#000")),O.mode==="dark"&&(Ve(O.common,"background","#000"),Ve(O.common,"onBackground","#fff")),X=O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(ee=>{X[ee]||(X[ee]={})}),O.mode==="light"){Ve(O.Alert,"errorColor",Hn(O.error.light,.6)),Ve(O.Alert,"infoColor",Hn(O.info.light,.6)),Ve(O.Alert,"successColor",Hn(O.success.light,.6)),Ve(O.Alert,"warningColor",Hn(O.warning.light,.6)),Ve(O.Alert,"errorFilledBg",U("palette-error-main")),Ve(O.Alert,"infoFilledBg",U("palette-info-main")),Ve(O.Alert,"successFilledBg",U("palette-success-main")),Ve(O.Alert,"warningFilledBg",U("palette-warning-main")),Ve(O.Alert,"errorFilledColor",Kr(()=>O.getContrastText(O.error.main))),Ve(O.Alert,"infoFilledColor",Kr(()=>O.getContrastText(O.info.main))),Ve(O.Alert,"successFilledColor",Kr(()=>O.getContrastText(O.success.main))),Ve(O.Alert,"warningFilledColor",Kr(()=>O.getContrastText(O.warning.main))),Ve(O.Alert,"errorStandardBg",$n(O.error.light,.9)),Ve(O.Alert,"infoStandardBg",$n(O.info.light,.9)),Ve(O.Alert,"successStandardBg",$n(O.success.light,.9)),Ve(O.Alert,"warningStandardBg",$n(O.warning.light,.9)),Ve(O.Alert,"errorIconColor",U("palette-error-main")),Ve(O.Alert,"infoIconColor",U("palette-info-main")),Ve(O.Alert,"successIconColor",U("palette-success-main")),Ve(O.Alert,"warningIconColor",U("palette-warning-main")),Ve(O.AppBar,"defaultBg",U("palette-grey-100")),Ve(O.Avatar,"defaultBg",U("palette-grey-400")),Ve(O.Button,"inheritContainedBg",U("palette-grey-300")),Ve(O.Button,"inheritContainedHoverBg",U("palette-grey-A100")),Ve(O.Chip,"defaultBorder",U("palette-grey-400")),Ve(O.Chip,"defaultAvatarColor",U("palette-grey-700")),Ve(O.Chip,"defaultIconColor",U("palette-grey-700")),Ve(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Ve(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Ve(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Ve(O.LinearProgress,"primaryBg",$n(O.primary.main,.62)),Ve(O.LinearProgress,"secondaryBg",$n(O.secondary.main,.62)),Ve(O.LinearProgress,"errorBg",$n(O.error.main,.62)),Ve(O.LinearProgress,"infoBg",$n(O.info.main,.62)),Ve(O.LinearProgress,"successBg",$n(O.success.main,.62)),Ve(O.LinearProgress,"warningBg",$n(O.warning.main,.62)),Ve(O.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.11)`),Ve(O.Slider,"primaryTrack",$n(O.primary.main,.62)),Ve(O.Slider,"secondaryTrack",$n(O.secondary.main,.62)),Ve(O.Slider,"errorTrack",$n(O.error.main,.62)),Ve(O.Slider,"infoTrack",$n(O.info.main,.62)),Ve(O.Slider,"successTrack",$n(O.success.main,.62)),Ve(O.Slider,"warningTrack",$n(O.warning.main,.62));const ee=rs(O.background.default,.8);Ve(O.SnackbarContent,"bg",ee),Ve(O.SnackbarContent,"color",Kr(()=>O.getContrastText(ee))),Ve(O.SpeedDialAction,"fabHoverBg",rs(O.background.paper,.15)),Ve(O.StepConnector,"border",U("palette-grey-400")),Ve(O.StepContent,"border",U("palette-grey-400")),Ve(O.Switch,"defaultColor",U("palette-common-white")),Ve(O.Switch,"defaultDisabledColor",U("palette-grey-100")),Ve(O.Switch,"primaryDisabledColor",$n(O.primary.main,.62)),Ve(O.Switch,"secondaryDisabledColor",$n(O.secondary.main,.62)),Ve(O.Switch,"errorDisabledColor",$n(O.error.main,.62)),Ve(O.Switch,"infoDisabledColor",$n(O.info.main,.62)),Ve(O.Switch,"successDisabledColor",$n(O.success.main,.62)),Ve(O.Switch,"warningDisabledColor",$n(O.warning.main,.62)),Ve(O.TableCell,"border",$n(os(O.divider,1),.88)),Ve(O.Tooltip,"bg",os(O.grey[700],.92))}if(O.mode==="dark"){Ve(O.Alert,"errorColor",$n(O.error.light,.6)),Ve(O.Alert,"infoColor",$n(O.info.light,.6)),Ve(O.Alert,"successColor",$n(O.success.light,.6)),Ve(O.Alert,"warningColor",$n(O.warning.light,.6)),Ve(O.Alert,"errorFilledBg",U("palette-error-dark")),Ve(O.Alert,"infoFilledBg",U("palette-info-dark")),Ve(O.Alert,"successFilledBg",U("palette-success-dark")),Ve(O.Alert,"warningFilledBg",U("palette-warning-dark")),Ve(O.Alert,"errorFilledColor",Kr(()=>O.getContrastText(O.error.dark))),Ve(O.Alert,"infoFilledColor",Kr(()=>O.getContrastText(O.info.dark))),Ve(O.Alert,"successFilledColor",Kr(()=>O.getContrastText(O.success.dark))),Ve(O.Alert,"warningFilledColor",Kr(()=>O.getContrastText(O.warning.dark))),Ve(O.Alert,"errorStandardBg",Hn(O.error.light,.9)),Ve(O.Alert,"infoStandardBg",Hn(O.info.light,.9)),Ve(O.Alert,"successStandardBg",Hn(O.success.light,.9)),Ve(O.Alert,"warningStandardBg",Hn(O.warning.light,.9)),Ve(O.Alert,"errorIconColor",U("palette-error-main")),Ve(O.Alert,"infoIconColor",U("palette-info-main")),Ve(O.Alert,"successIconColor",U("palette-success-main")),Ve(O.Alert,"warningIconColor",U("palette-warning-main")),Ve(O.AppBar,"defaultBg",U("palette-grey-900")),Ve(O.AppBar,"darkBg",U("palette-background-paper")),Ve(O.AppBar,"darkColor",U("palette-text-primary")),Ve(O.Avatar,"defaultBg",U("palette-grey-600")),Ve(O.Button,"inheritContainedBg",U("palette-grey-800")),Ve(O.Button,"inheritContainedHoverBg",U("palette-grey-700")),Ve(O.Chip,"defaultBorder",U("palette-grey-700")),Ve(O.Chip,"defaultAvatarColor",U("palette-grey-300")),Ve(O.Chip,"defaultIconColor",U("palette-grey-300")),Ve(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Ve(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Ve(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Ve(O.LinearProgress,"primaryBg",Hn(O.primary.main,.5)),Ve(O.LinearProgress,"secondaryBg",Hn(O.secondary.main,.5)),Ve(O.LinearProgress,"errorBg",Hn(O.error.main,.5)),Ve(O.LinearProgress,"infoBg",Hn(O.info.main,.5)),Ve(O.LinearProgress,"successBg",Hn(O.success.main,.5)),Ve(O.LinearProgress,"warningBg",Hn(O.warning.main,.5)),Ve(O.Skeleton,"bg",`rgba(${U("palette-text-primaryChannel")} / 0.13)`),Ve(O.Slider,"primaryTrack",Hn(O.primary.main,.5)),Ve(O.Slider,"secondaryTrack",Hn(O.secondary.main,.5)),Ve(O.Slider,"errorTrack",Hn(O.error.main,.5)),Ve(O.Slider,"infoTrack",Hn(O.info.main,.5)),Ve(O.Slider,"successTrack",Hn(O.success.main,.5)),Ve(O.Slider,"warningTrack",Hn(O.warning.main,.5));const ee=rs(O.background.default,.98);Ve(O.SnackbarContent,"bg",ee),Ve(O.SnackbarContent,"color",Kr(()=>O.getContrastText(ee))),Ve(O.SpeedDialAction,"fabHoverBg",rs(O.background.paper,.15)),Ve(O.StepConnector,"border",U("palette-grey-600")),Ve(O.StepContent,"border",U("palette-grey-600")),Ve(O.Switch,"defaultColor",U("palette-grey-300")),Ve(O.Switch,"defaultDisabledColor",U("palette-grey-600")),Ve(O.Switch,"primaryDisabledColor",Hn(O.primary.main,.55)),Ve(O.Switch,"secondaryDisabledColor",Hn(O.secondary.main,.55)),Ve(O.Switch,"errorDisabledColor",Hn(O.error.main,.55)),Ve(O.Switch,"infoDisabledColor",Hn(O.info.main,.55)),Ve(O.Switch,"successDisabledColor",Hn(O.success.main,.55)),Ve(O.Switch,"warningDisabledColor",Hn(O.warning.main,.55)),Ve(O.TableCell,"border",Hn(os(O.divider,1),.68)),Ve(O.Tooltip,"bg",os(O.grey[700],.92))}s0(O.background,"default"),s0(O.background,"paper"),s0(O.common,"background"),s0(O.common,"onBackground"),s0(O,"divider"),Object.keys(O).forEach(ee=>{const V=O[ee];ee!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&Ve(O[ee],"mainChannel",Wl(Ul(V.main))),V.light&&Ve(O[ee],"lightChannel",Wl(Ul(V.light))),V.dark&&Ve(O[ee],"darkChannel",Wl(Ul(V.dark))),V.contrastText&&Ve(O[ee],"contrastTextChannel",Wl(Ul(V.contrastText))),ee==="text"&&(s0(O[ee],"primary"),s0(O[ee],"secondary")),ee==="action"&&(V.active&&s0(O[ee],"active"),V.selected&&s0(O[ee],"selected")))})}),j=f.reduce((q,O)=>pr(q,O),j);const A={prefix:x,disableCssColorScheme:m,shouldSkipGeneratingVar:y,getSelector:Ux(j)},{vars:D,generateThemeVars:L,generateStyleSheets:$}=function(q,O={}){const{getSelector:U=ae,disableCssColorScheme:X,colorSchemeSelector:ee}=O,{colorSchemes:V={},components:H,defaultColorScheme:z="light",...W}=q,{vars:G,css:Q,varsWithDefaults:Y}=_c(W,O);let te=Y;const le={},{[z]:me,...J}=V;if(Object.entries(J||{}).forEach(([ke,De])=>{const{vars:ne,css:de,varsWithDefaults:ye}=_c(De,O);te=pr(te,ye),le[ke]={css:de,vars:ne}}),me){const{css:ke,vars:De,varsWithDefaults:ne}=_c(me,O);te=pr(te,ne),le[z]={css:ke,vars:De}}function ae(ke,De){let ne=ee;if(ee==="class"&&(ne=".%s"),ee==="data"&&(ne="[data-%s]"),ee?.startsWith("data-")&&!ee.includes("%s")&&(ne=`[${ee}="%s"]`),ke){if(ne==="media")return q.defaultColorScheme===ke?":root":{[`@media (prefers-color-scheme: ${V[ke]?.palette?.mode||ke})`]:{":root":De}};if(ne)return q.defaultColorScheme===ke?`:root, ${ne.replace("%s",String(ke))}`:ne.replace("%s",String(ke))}return":root"}return{vars:te,generateThemeVars:()=>{let ke={...G};return Object.entries(le).forEach(([,{vars:De}])=>{ke=pr(ke,De)}),ke},generateStyleSheets:()=>{const ke=[],De=q.defaultColorScheme||"light";function ne(ze,$e){Object.keys($e).length&&ke.push(typeof ze=="string"?{[ze]:{...$e}}:ze)}ne(U(void 0,{...Q}),Q);const{[De]:de,...ye}=le;if(de){const{css:ze}=de,$e=V[De]?.palette?.mode,gt=!X&&$e?{colorScheme:$e,...ze}:{...ze};ne(U(De,{...gt}),gt)}return Object.entries(ye).forEach(([ze,{css:$e}])=>{const gt=V[ze]?.palette?.mode,bt=!X&&gt?{colorScheme:gt,...$e}:{...$e};ne(U(ze,{...bt}),bt)}),ke}}}(j,A);return j.vars=D,Object.entries(j.colorSchemes[j.defaultColorScheme]).forEach(([q,O])=>{j[q]=O}),j.generateThemeVars=L,j.generateStyleSheets=$,j.generateSpacing=function(){return dt.createSpacing(C.spacing,F2(this))},j.getColorSchemeSelector=function(q){return function(O){return q==="media"?`@media (prefers-color-scheme: ${O})`:q?q.startsWith("data-")&&!q.includes("%s")?`[${q}="${O}"] &`:q==="class"?`.${O} &`:q==="data"?`[data-${O}] &`:`${q.replace("%s",O)} &`:"&"}}(w),j.spacing=j.generateSpacing(),j.shouldSkipGeneratingVar=y,j.unstable_sxConfig={...z1,...C?.unstable_sxConfig},j.unstable_sx=function(q){return Yi({sx:q,theme:this})},j.toRuntimeSource=Th,j}({...l,colorSchemes:u,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const N2=Pd();function V2(){const e=dt.useTheme(N2);return e[D2]||e}function qx(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?_h(t.components[n].defaultProps,o):o}function Zx({props:e,name:t,defaultTheme:n,themeId:o}){let r=function(i=Lx){return function(l=null){const d=z0.useContext(n0.ThemeContext);return d&&(c=d,Object.keys(c).length!==0)?d:l;var c}(i)}(n);return r=r[o]||r,qx({theme:r,name:t,props:e})}const Gx=B2();function jc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function J0(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Kx(e){return e?(t,n)=>n[e]:null}function zs(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>zs(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?J0(o.style,n):o.style;else{const{variants:i,...l}=o;r=n?J0(n0.internal_serializeStyles(l),n):l}return Mh(e,o.variants,[r],n)}return o?.isProcessed?n?J0(n0.internal_serializeStyles(o.style),n):o.style:n?J0(n0.internal_serializeStyles(o),n):o}function Mh(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const l=t[i];if(typeof l.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(r))continue}else for(const d in l.props)if(e[d]!==l.props[d]&&e.ownerState?.[d]!==l.props[d])continue e;typeof l.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?J0(n0.internal_serializeStyles(l.style(r)),o):l.style(r))):n.push(o?J0(n0.internal_serializeStyles(l.style),o):l.style)}return n}function Xx(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Yx=function(e={}){const{themeId:t,defaultTheme:n=Gx,rootShouldForwardProp:o=jc,slotShouldForwardProp:r=jc}=e;function i(l){var d,c,u;c=t,u=n,(d=l).theme=function(p){for(const f in p)return!1;return!0}(d.theme)?u:d.theme[c]||d.theme}return(l,d={})=>{n0.internal_mutateStyles(l,k=>k.filter(M=>M!==Yi));const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:h=Kx(Xx(u)),...g}=d,m=c&&c.startsWith("Mui")||u?"components":"custom",x=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let w=jc;u==="Root"||u==="root"?w=o:u?w=r:function(k){return typeof k=="string"&&k.charCodeAt(0)>96}(l)&&(w=void 0);const b=n0(l,{shouldForwardProp:w,label:void 0,...g}),C=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(M){return zs(M,k,M.theme.modularCssLayers?m:void 0)};if(h0(k)){const M=function(T){const{variants:F,..._}=T,P={variants:F,style:n0.internal_serializeStyles(_),isProcessed:!0};return P.style===_||F&&F.forEach(v=>{typeof v.style!="function"&&(v.style=n0.internal_serializeStyles(v.style))}),P}(k);return function(T){return M.variants?zs(T,M,T.theme.modularCssLayers?m:void 0):T.theme.modularCssLayers?J0(M.style,m):M.style}}return k},E=(...k)=>{const M=[],T=k.map(C),F=[];if(M.push(i),c&&h&&F.push(function(v){const S=v.theme,I=S.components?.[c]?.styleOverrides;if(!I)return null;const j={};for(const R in I)j[R]=zs(v,I[R],v.theme.modularCssLayers?"theme":void 0);return h(v,j)}),c&&!x&&F.push(function(v){const S=v.theme,I=S?.components?.[c]?.variants;return I?Mh(v,I,[],v.theme.modularCssLayers?"theme":void 0):null}),y||F.push(Yi),Array.isArray(T[0])){const v=T.shift(),S=new Array(M.length).fill(""),I=new Array(F.length).fill("");let j;j=[...S,...v,...I],j.raw=[...S,...v.raw,...I],M.unshift(j)}const _=[...M,...T,...F],P=b(..._);return l.muiName&&(P.muiName=l.muiName),P};return b.withConfig&&(E.withConfig=b.withConfig),E}}({themeId:D2,defaultTheme:N2,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),Pa=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},j3=(e=1)=>t=>{if(t.palette.mode!=="dark")return;const n=t.palette.mode==="dark"?t.palette.text.primary:t.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},Jx=s.memo(s.forwardRef((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:l,...d}=e;let c=24,u=24;return o==="medium"?(c=32,u=32):o==="large"&&(c=42,u=42),a.jsx(N.Box,{ref:t,className:To("icon",l),sx:{width:c,height:u,...n},...d,children:i})})),Rh=Yx(Jx)(({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}})),ge=e=>a.jsx(Rh,{children:e}),Qx=e=>{const{sx:t,...n}=e;return a.jsxs(N.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Pa},...t},...n,children:[a.jsx("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),a.jsx("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"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},H2=e=>{const{sx:t,...n}=e;return a.jsxs(N.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Pa},...t},...n,children:[a.jsx("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"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},ey=e=>{const{sx:t,...n}=e;return a.jsxs(N.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Pa},...t},...n,children:[a.jsx("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"}),a.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},ty=e=>{const{sx:t,...n}=e;return a.jsxs(N.SvgIcon,{sx:{overflow:"visible","& .activeColor":{filter:Pa},...t},...n,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]})},M3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ny=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),oy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Ih=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),ry=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),iy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ly=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ay=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Ad=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),$2=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Dh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),sy=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),cy=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),dy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),uy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),hy=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),py=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Fo={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},ir={Horizontal:"horizontal",Vertical:"vertical"};function Lh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Lh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Li(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Lh(e))&&(o&&(o+=" "),o+=t);return o}var fy=function(){},Oh=typeof window<"u",my=Oh?s.useLayoutEffect:s.useEffect,R3={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const di=Oh&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(R3),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return my(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[fy,R3]},un=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},gy=e=>{const{style:t,orientation:n=ir.Vertical,...o}=e,r=n===ir.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},xy=e=>{const{style:t,orientation:n=ir.Vertical,...o}=e,r=n===ir.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},Fd=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:Fd},Symbol.toStringTag,{value:"Module"}));const W2=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=ir.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=gy,createScrollEndButton:x=xy,...y}=e,w=un(u,[u]),b=s.useRef(null),[C,{width:E,height:k}]=di(),[M,{width:T,height:F}]=di(),_=d===ir.Vertical,P=_?"top":"left",v=_?"scrollTop":"scrollLeft",S=_?k:E,I=_?F:T,[j,R]=s.useState(null);s.useEffect(()=>{j!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[P]:j})},[j,_]);const A=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=W?0:Fd(z,Q[P],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=Math.ceil(I-S),le=W?te:Fd(z,Q[P],Y,!1,Math.max(0,z+f));return R(le),Math.min(te,le)},[I,S]),L=s.useRef(null),$=s.useCallback(z=>{L.current=n;const W=z.target[v];c(W,r,o),w?.(z)},[c,r,o,n]);s.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[v]=n)},[n,v]);const q=s.useRef(null),O=s.useRef(null),U=s.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=null,O.current=null)},[]),X=s.useCallback((z,W,G,Q=h)=>{O.current=z,q.current=setTimeout(()=>{const Y=G?A(O.current||z):D(O.current||z);Y!==O.current?X(Y,!1,G,g):U()},W?0:Q)},[A,D,U]);s.useEffect(()=>()=>U(),[U]);const ee=n,V=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(ee)<=0||Math.floor(I-S)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return m?.(z)},[p,d,ee,j,I,S]),H=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(I-S)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[p,d,ee,j,I,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:_?"column":"row",padding:"0",...i},className:Li("_sheetxl-scrollbar_eblx4_6",l),...y,children:[V,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:_?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:_?"scroll":"hidden",overflowX:_?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:$,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:_?o-r+(k??0):1,width:_?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),H]})}));W2.displayName="Scrollbar";let I3=Date.now,I0={},yy=1;const kl=e=>{let t=I0[e]!==null;return t&&(I0[e]=null),t},D3=(e,t,n,o=0,r)=>{let i=I3(),l=i,d=0,c=0,u=0,p=yy++;if(p%20==0){const h={};for(let g in I0)h[g]=!0;I0=h}const f=function(h){let g=h!==!0,m=I3(),x=!0;try{x=(!t||t(p))??!0}catch{x=!1}if(!I0[p]||!x)return I0[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){u=Math.round((m-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));let y=r?r(d):d,w=!1;try{w=e(y,m,g)}catch{w=!1}w!==!1&&d!==1||!g?g&&(l=m,requestAnimationFrame(f)):(I0[p]=null,n?.(60-c/((m-i)/1e3),p,d===1||o==null))};return I0[p]=!0,requestAnimationFrame(f),p},by=function(e){return Math.pow(e-1,3)+1},wy=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class vy{constructor(t,n){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=t,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,...n}}setDimensions(t,n,o,r){t!==null&&(this.__clientWidth=t),n!==null&&(this.__clientHeight=n),o!==null&&(this.__contentWidth=o),r!==null&&(this.__contentHeight=r),this.__computeScrollMax(),this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)}setPosition(t,n){this.__clientLeft=t||0,this.__clientTop=n||0}setSnapSize(t,n){this.__snapWidth=t,this.__snapHeight=n}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(t,n){const o=this.getValues();return{left:t/o.zoom,top:n/o.zoom}}getScrollMax(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}}zoomTo(t,n=!1,o,r,i){if(!this.options.zooming)throw new Error("Zooming is not enabled!");i&&(this.__zoomComplete=i),this.__isDecelerating&&(kl(this.__isDecelerating),this.__isDecelerating=0);const l=this.__zoomLevel;o===void 0&&(o=this.__clientWidth/2),r===void 0&&(r=this.__clientHeight/2),t=Math.max(Math.min(t,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(t);const d=t/l;let c=d*(this.__scrollLeft+o)-o,u=d*(this.__scrollTop+r)-r;c>this.__maxScrollLeft?c=this.__maxScrollLeft:c<0&&(c=0),u>this.__maxScrollTop?u=this.__maxScrollTop:u<0&&(u=0),this.__publish(c,u,t,n)}zoomBy(t,n=!1,o=0,r=0,i){this.zoomTo(this.__zoomLevel*t,n,o,r,i)}scrollTo(t,n,o=!1,r=1){if(this.__isDecelerating&&(kl(this.__isDecelerating),this.__isDecelerating=0),r!==void 0&&r!==this.__zoomLevel){if(!this.options.zooming)throw new Error("Zooming is not enabled!");t*=r,n*=r,this.__computeScrollMax(r)}else r=this.__zoomLevel;this.options.scrollingX?this.options.paging?t=Math.round(t/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(t=Math.round(t/this.__snapWidth)*this.__snapWidth):t=this.__scrollLeft,this.options.scrollingY?this.options.paging?n=Math.round(n/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(n=Math.round(n/this.__snapHeight)*this.__snapHeight):n=this.__scrollTop,t=Math.max(Math.min(this.__maxScrollLeft,t),0),n=Math.max(Math.min(this.__maxScrollTop,n),0),t===this.__scrollLeft&&n===this.__scrollTop&&(o=!1),this.__publish(t,n,r,o)}scrollBy(t=0,n=0,o=!1){const r=this.__isAnimating?this.__scheduledLeft:this.__scrollLeft,i=this.__isAnimating?this.__scheduledTop:this.__scrollTop;this.scrollTo(r+(t||0),i+(n||0),o)}doMouseZoom(t,n,o,r){const i=t>0?.97:1.03;return this.zoomTo(this.__zoomLevel*i,!1,o-this.__clientLeft,r-this.__clientTop)}doTouchStart(t,n){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);let o,r;this.__interruptedAnimation=!0,this.__isDecelerating&&(kl(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(kl(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let i=t.length===1;i?(o=t[0].pageX,r=t[0].pageY):(o=Math.abs(t[0].pageX+t[1].pageX)/2,r=Math.abs(t[0].pageY+t[1].pageY)/2),this.__initialTouchLeft=o,this.__initialTouchTop=r,this.__zoomLevelStart=this.__zoomLevel,this.__lastTouchLeft=o,this.__lastTouchTop=r,this.__lastTouchMove=n,this.__lastScale=1,this.__enableScrollX=!i&&this.options.scrollingX,this.__enableScrollY=!i&&this.options.scrollingY,this.__isTracking=!0,this.__didDecelerationComplete=!1,this.__isDragging=!i,this.__isSingleTouch=i,this.__positions=[]}doTouchMove(t,n,o=1){if(t.length===void 0)throw new Error("Invalid touch list: "+t);if(n instanceof Date&&(n=n.valueOf()),typeof n!="number")throw new Error("Invalid timestamp value: "+n);if(!this.__isTracking)return;let r,i;t.length===2?(r=Math.abs(t[0].pageX+t[1].pageX)/2,i=Math.abs(t[0].pageY+t[1].pageY)/2):(r=t[0].pageX,i=t[0].pageY);let l=this.__positions;if(this.__isDragging){let d=r-this.__lastTouchLeft,c=i-this.__lastTouchTop,u=this.__scrollLeft,p=this.__scrollTop,f=this.__zoomLevel;if(o!==void 0&&this.options.zooming){let h=f;if(f=f/this.__lastScale*o,f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom),h!==f){let g=r-this.__clientLeft,m=i-this.__clientTop;u=(g+u)*f/h-g,p=(m+p)*f/h-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){u-=d*this.options.speedMultiplier;let h=this.__maxScrollLeft;(u>h||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>h?h:0)}if(this.__enableScrollY){p-=c*this.options.speedMultiplier;const h=this.__maxScrollTop;(p>h||p<0)&&(this.options.bouncing?p+=c/2*this.options.speedMultiplier:p=p>h?h:0)}l.length>60&&l.splice(0,30),l.push(u,p,n),this.__publish(u,p,f)}else{let d=this.options.locking?3:0,c=5,u=Math.abs(r-this.__initialTouchLeft),p=Math.abs(i-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&u>=d,this.__enableScrollY=this.options.scrollingY&&p>=d,l.push(this.__scrollLeft,this.__scrollTop,n),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(u>=c||p>=c),this.__isDragging&&(this.__interruptedAnimation=!1)}this.__lastTouchLeft=r,this.__lastTouchTop=i,this.__lastTouchMove=n,this.__lastScale=o}doTouchEnd(t){if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging)if(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&t-this.__lastTouchMove<=100){let n=this.__positions,o=n.length-1,r=o;for(let i=o;i>0&&n[i]>this.__lastTouchMove-100;i-=3)r=i;if(r!==o){const i=n[o]-n[r],l=this.__scrollLeft-n[r-2],d=this.__scrollTop-n[r-1];this.__decelerationVelocityX=l/i*(1e3/60),this.__decelerationVelocityY=d/i*(1e3/60);const c=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>c||Math.abs(this.__decelerationVelocityY)>c)&&this.__startDeceleration(t)}else this.options.scrollingComplete?.()}else t-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(t,n,o,r=!1){const i=this.__isAnimating;if(i&&(kl(i),this.__isAnimating=0),r&&this.options.animating){this.__scheduledLeft=t,this.__scheduledTop=n,this.__scheduledZoom=o;const l=this.__scrollLeft,d=this.__scrollTop,c=this.__zoomLevel,u=t-l,p=n-d,f=o-c,h=function(x,y,w){w&&(this.__scrollLeft=l+u*x,this.__scrollTop=d+p*x,this.__zoomLevel=c+f*x,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),g=function(x){return this.__isAnimating===x}.bind(this),m=function(x,y,w){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||w)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=D3(h,g,m,this.options.animationDuration,i?by:wy)}else this.__scheduledLeft=this.__scrollLeft=t,this.__scheduledTop=this.__scrollTop=n,this.__scheduledZoom=this.__zoomLevel=o,this.__callback&&this.__callback(t,n,o),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}__computeScrollMax(t=this.__zoomLevel){this.__maxScrollLeft=Math.max(this.__contentWidth*t-this.__clientWidth,0),this.__maxScrollTop=Math.max(this.__contentHeight*t-this.__clientHeight,0)}__startDeceleration(t){if(this.options.paging){const l=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),d=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),c=this.__clientWidth,u=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(l/c)*c,this.__minDecelerationScrollTop=Math.floor(d/u)*u,this.__maxDecelerationScrollLeft=Math.ceil(l/c)*c,this.__maxDecelerationScrollTop=Math.ceil(d/u)*u}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const n=function(l,d,c){this.__stepThroughDeceleration(c)}.bind(this),o=this.options.snapping?4:.1,r=function(){const l=Math.abs(this.__decelerationVelocityX)>=o||Math.abs(this.__decelerationVelocityY)>=o;return l||(this.__didDecelerationComplete=!0),l}.bind(this),i=function(l,d,c){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=D3(n,r,i)}__stepThroughDeceleration(t){let n=this.__scrollLeft+this.__decelerationVelocityX,o=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const r=Math.max(Math.min(this.__maxDecelerationScrollLeft,n),this.__minDecelerationScrollLeft);r!==n&&(n=r,this.__decelerationVelocityX=0);const i=Math.max(Math.min(this.__maxDecelerationScrollTop,o),this.__minDecelerationScrollTop);i!==o&&(o=i,this.__decelerationVelocityY=0)}if(t?this.__publish(n,o,this.__zoomLevel):(this.__scrollLeft=n,this.__scrollTop=o),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let r=0,i=0,l=this.options.penetrationDeceleration,d=this.options.penetrationAcceleration;n<this.__minDecelerationScrollLeft?r=this.__minDecelerationScrollLeft-n:n>this.__maxDecelerationScrollLeft&&(r=this.__maxDecelerationScrollLeft-n),o<this.__minDecelerationScrollTop?i=this.__minDecelerationScrollTop-o:o>this.__maxDecelerationScrollTop&&(i=this.__maxDecelerationScrollTop-o),r!==0&&(r*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=r*l:this.__decelerationVelocityX=r*d),i!==0&&(i*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=i*l:this.__decelerationVelocityY=i*d)}}}var fr=typeof window<"u"?window:{screen:{},navigator:{}},Ji=(fr.matchMedia||function(){return{matches:!1}}).bind(fr),Ph=!1,Sy={get passive(){return Ph=!0}},L3=function(){};fr.addEventListener&&fr.addEventListener("p",L3,Sy),fr.removeEventListener&&fr.removeEventListener("p",L3,!1);var Cy=Ph,ky="PointerEvent"in fr,U2="ontouchstart"in fr,Ah=U2||"TouchEvent"in fr&&Ji("(any-pointer: coarse)").matches,O3=(fr.navigator.maxTouchPoints||0)>0||Ah,Fh=fr.navigator.userAgent||"",Ey=Ji("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Fh)&&Math.min(fr.screen.width||0,fr.screen.height||0)>=768,zh=(Ji("(pointer: coarse)").matches||!Ji("(pointer: fine)").matches&&U2)&&!/Windows.*Firefox/.test(Fh),_y=Ji("(any-pointer: fine)").matches||Ji("(any-hover: hover)").matches||Ey||!U2,zd=!O3||!_y&&zh?O3?"touchOnly":"mouseOnly":"hybrid",Ty=zd==="mouseOnly"?"mouse":zd==="touchOnly"||zh?"touch":"mouse";const jy=Object.freeze(Object.defineProperty({__proto__:null,deviceType:zd,primaryInput:Ty,supportsPassiveEvents:Cy,supportsPointerEvents:ky,supportsTouchEvents:Ah},Symbol.toStringTag,{value:"Module"})),My=new Set(["INPUT","TEXTAREA","SELECT"]),Bh={};function Bd(){return jy}const Ry=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Bh,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:Bd,focusableNodeNames:My,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":eo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),Iy=[];function B1(e,t,n=Iy){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],p=i[u];Object.defineProperty(r,u,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const P3=e=>a.jsx(W2,{...e}),Dy=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Ly=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=Dy,createHorizontalScrollbar:c=P3,createVerticalScrollbar:u=P3,style:p,touchElement:f,disableTouch:h,...g}=e,m=un(r,[r]),x=B1(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=s.useCallback((S,I)=>{m?.({left:S,top:I})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),E=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),k=s.useCallback(({containerWidth:S,containerHeight:I,totalWidth:j,totalHeight:R})=>{y.current.setDimensions(S,I,j,R)},[]);s.useEffect(()=>{const S=f??x.current;if(!h&&Bd().supportsTouchEvents&&S&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new vy(w,I)}Bd().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",E),S.addEventListener("touchmove",C)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",E),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[M,{width:T}]=di(),[F,{height:_}]=di(),P=s.useMemo(()=>{const S=u({orientation:ir.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{m?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:S})},[u,o?.top,o?.height,o?.totalHeight]),v=s.useMemo(()=>{const S=c({orientation:ir.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>m?.({left:I})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${T}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:T,height:_}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,T,_]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${T}px`:void 0,minHeight:i?`${_}px`:void 0,...p},...g,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?P:a.jsx(a.Fragment,{})]}),i?v:a.jsx(a.Fragment,{})]})})}));Ly.displayName="ScrollPane";const Oy=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let is=0;function q2(){return s.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return is++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),is--,is<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),is=0)}},[]),{getPortalContainer:Oy}}const Py=100,Ay=100,Fy=1e6,zy=100,By=50,Ny=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=Py,endScrollIncrement:d=Ay,style:c=Bh,onMouseDown:u,onScrollOffset:p,onScroll:f,scaleLimit:h=Fy,scaleFactor:g=zy,precisionFactor:m=By,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=un(u,[u]),w=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(w),E=h!==0&&b.totalSize>h?g:1,k=E/m,M=Math.ceil(b.totalSize/E),T=Math.ceil(b.offset/E),F=Math.ceil(o/E),_=s.useCallback(A=>{},[]),[P,v]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!P){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,P,i,l,d]);const I=un((A,D,L)=>{const $=S.current;S.current=null,$&&$.propTotalSize===r&&$.propViewportSize===o&&$.propOffset===n||(Math.abs(A-T)<k&&(A=T),p?.(A*E,T,F))},[p,E,k,T,F]),j=s.useCallback(A=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",j),v(!1)},[]),R=s.useCallback(A=>{y?.(A),v(!0),document.addEventListener("mousemove",_,{passive:!0}),document.addEventListener("mouseup",j,{passive:!0})},[_,j]);return a.jsx(W2,{ref:t,style:{...c},...x,offset:T,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));function Mc(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}Ny.displayName="VirtualScrollbar";var l1=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Mc(o,t),i=typeof r=="function";n.push(i?r:()=>Mc(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Mc(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const p=l[c];p.focus&&d.push({tabindex:parseInt(u),child:p})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:l1([r,t]),onFocus:i,...o})})),s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:p,height:f}]=di(),h=s.useRef(null),g=(w,b=0)=>{const C=w/2,E=f-C+b;return function(k,M,T=!1){if(M===0)return k;function F(j,R,A){let D=R.x-j.x,L=R.y-j.y,$=Math.sqrt(D*D+L*L);return _(j,R,Math.min(1,A/$))}function _(j,R,A){return{x:j.x+(R.x-j.x)*A,y:j.y+(R.y-j.y)*A}}function P(j,R){j.length>2&&(j[j.length-2]=R.x,j[j.length-1]=R.y)}function v(j){return{x:parseFloat(j[j.length-2]),y:parseFloat(j[j.length-1])}}let S=k.split(/[,\s]/).reduce(function(j,R){let A=R.match("([a-zA-Z])(.+)");return A?(j.push(A[1]),j.push(A[2])):j.push(R),j},[]).reduce(function(j,R){return parseFloat(R)==R&&j.length?j[j.length-1].push(R):j.push([R]),j},[]),I=[];if(S.length>1){let j=v(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",j.x,j.y],S[S.length-1]=R),I.push(S[0]);for(let A=1;A<S.length;A++){let D=I[I.length-1],L=S[A],$=L===R?S[1]:S[A+1];if($&&D&&D.length>2&&L[0]==="L"&&$.length>2&&$[0]==="L"){let q,O,U=v(D),X=v(L),ee=v($);T?(q=_(X,D.origPoint||U,M),O=_(X,$.origPoint||ee,M)):(q=F(X,U,M),O=F(X,ee,M)),P(L,q),L.origPoint=X,I.push(L);let V=_(q,X,.5),H=_(X,O,.5),z=["C",V.x,V.y,H.x,H.y,O.x,O.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=v(I[I.length-1]);I.push(["Z"]),P(I[0],A)}}else I=S;return I.reduce(function(j,R){return j+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${C} L ${p} ${C}`,i)},m=s.useMemo(()=>g(l),[p,f,i,l]),x=s.useMemo(()=>{if(i===0)return;const w=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${w}`},[m,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:l1([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:a.jsx("path",{d:m,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const Vy={},Hy=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=Vy,...u}=e,p=o==="row",{style:f,className:h,...g}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:Li("hit-box",h),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...g})},d)},ls={},U0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,as=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,S0=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((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)};s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=ls,paneProps:E=ls,paneBeforeProps:k=ls,paneAfterProps:M=ls,createResizer:T=Hy}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),_=s.useMemo(()=>{let ie=null;i&&(i==="before"?ie=0:i==="after"&&(ie=1));const Re=ie===null;return{fixedPaneOffset:ie,isPercent:Re,minBefore:S0(c,Re),maxBefore:S0(u,Re),minAfter:S0(p,Re),maxAfter:S0(f,Re)}},[c,u,p,f]),P=un(d,[d]),[v,S]=s.useState(()=>S0(l,i===null));s.useEffect(()=>{S(S0(l,i===null))},[l,i]);const[I,{width:j,height:R}]=di(),[A,{width:D,height:L}]=di(),$=r==="row"?D:L,q=r==="row"?j:R,O=s.useMemo(()=>((ie,Re,Me,be)=>{const Oe=[null,null],oe=[null,null];if(ie||(ie={percent:be.fixedPaneOffset===null?50:null,pixels:be.fixedPaneOffset===null?null:0}),Re===0)return ie?.pixels!=null?be.fixedPaneOffset!==1?(Oe[0]=ie?.pixels,oe[1]=100):(Oe[1]=ie?.pixels-Me,oe[0]=100):ie?.percent!=null&&(be.fixedPaneOffset!==1?(oe[0]=ie?.percent,oe[1]=100-ie?.percent):(oe[1]=ie?.percent,oe[0]=100-ie?.percent)),{percents:oe,pixels:Oe,minBefore:as(be.minBefore,!0),maxBefore:as(be.maxBefore,!0),minAfter:as(be.minAfter),maxAfter:as(be.maxAfter)};let Ce=U0(ie,Re,be.fixedPaneOffset!==1),Le=Re-Me,qe=U0(be.minBefore,Le,!0)??0,pt=U0(be.maxBefore,Le,!0)??Le,ot=0,We=0,st=0,Xe=Le;ot=(U0(be.maxAfter,Re,!1)??Me)-Me,We=U0(be.minAfter,Re,!1)??Re,st=Math.max(qe,ot),Xe=Math.min(pt,We),Ce=Math.max(st,Math.min(Ce,Xe)),We=Math.min(Le-Ce,U0(be.maxAfter,Le-Ce,!0)??Le),ot=Math.min(Le-Ce,U0(be.minAfter,Le-Ce,!0)??Le),Oe[0]=Ce,Oe[1]=Le-Oe[0];const Qe=Math.max(0,Math.min(100,Ce/Le*100));return oe[0]=Qe,oe[1]=100-oe[0],{percents:oe,pixels:Oe,minBefore:`${qe}px`,minAfter:`${ot}px`,maxBefore:`${Oe[0]}px`,maxAfter:`${Oe[1]}px`}})(v,q,$,_),[_,v,q,$,r]),[U,X]=s.useState(!1),ee=un(y,[y]),V=un(w,[w]),H=un(b,[b]),z=s.useRef(null),W=s.useRef(null),G=s.useRef(null),{style:Q,className:Y,...te}=E,le={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:me,style:J,...ae}=k,{className:ke,style:De,...ne}=M,de={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ye,style:ze,onPointerDown:$e,...gt}=C,bt=un(ie=>{const Re=S0(ie,i===null);S(Re)},[i]),Se=un(ie=>{if(x||!U)return;const Re=Ne.current?.getBoundingClientRect();let Me=0;Me=r==="row"?(ie.clientX??ie.touches?.[0]?.clientX)-Re.x:(ie.clientY??ie.touches?.[0]?.clientY)-Re.y,Me=Math.max(0,Math.min(q,Me)),_.fixedPaneOffset===1&&(Me=q-Me),l&&v.pixels===Me||S({pixels:Me,percent:null}),V?.(Me),ie.stopPropagation(),ie.preventDefault()},[_,r,x,U,v,q]),ht=un(ie=>{if(document.removeEventListener("pointermove",Se),document.removeEventListener("touchmove",Se),document.removeEventListener("pointerup",ht),U&&(X(!1),v)){if(H(v.pixels),!S0(l,i===null)||v.pixels!==l){const Re={...v};Re.percent===null&&(Re.percent=Re.pixels/q*100),P(Re)}ie.stopPropagation(),ie.preventDefault()}},[v,U,l,i,q]),xt=un(ie=>{$e?.(ie),ie.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",Se,{passive:!1}),document.addEventListener("touchmove",Se,{passive:!1}),document.addEventListener("pointerup",ht,{passive:!1}))},[$e]),Ne=B1(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),wt=s.useMemo(()=>F?T?.({key:"resizer",ref:l1([A,W]),className:Li("resizer",ye),onPointerDownCapture:xt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ze},splitDirection:r,disabled:x,...gt}):null,[F,ye,gt,r,ze,x]),Ye=r==="row"?"Width":"Height",re={...le,...J,flex:_.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ye}`]:O?.minBefore,[`max${Ye}`]:o?O?.maxBefore:"100%"},Ue={...le,...De,flex:_.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ye}`]:O?.minAfter,[`max${Ye}`]:n?O?.maxAfter:"100%"},xe=s.useMemo(()=>n?a.jsx("div",{ref:z,className:Li("before",Y,me),style:re,...te,...ae,children:n},"before"):null,[n,E,k,_,O]),we=s.useMemo(()=>o?a.jsx("div",{ref:G,className:Li("after",Y,ke),style:Ue,...te,...ne,children:o},"after"):null,[o,E,M,_,O]);return a.jsxs("div",{ref:l1([I,Ne]),className:Li("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},g),style:de,children:[xe,wt,we]})}));const $y=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},Nd=e=>{console&&console.warn&&console.warn(e)},Rc=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let Wy=1,Vd=!1,Nh=!1;const Bs=[],Oi=[],a1=()=>{Oi.forEach(e=>e())},Uy=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||Vd!==!1||(Nh=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return Oi[0]!==i?(e||Vd!==!0||Nd("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...Bs])}return Oi.push(i),a1(),()=>{r=!1,o.current?.length>0&&Nd("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Oi.splice(Oi.indexOf(i),1),a1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement($y,{...r,key:i}))})},Vh=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=f=>{r=f,wo.unstable_batchedUpdates(()=>d.forEach(h=>h(f)))},p=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,h]=s.useState(p);return s.useEffect(()=>(i||(i=!0,o=(g=>{const m=Wy++;return Bs.push({hook:g,key:m}),Oi.length===0&&Nh===!1&&(Vd=!0,(x=>{if(Rc.document&&Rc.document.createElement){const y=Rc.document.createElement("div");T2.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else Nd("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(Uy)),a1(),()=>{Bs.splice(Bs.findIndex(x=>x.key===m),1),a1()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==f&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),f}};function Z2(e,t=null){const n=s.useRef(t);n.current=t;const[o,r]=s.useReducer(l=>l+1,0),i=s.useMemo(()=>Array.isArray(e)?e:[e],[e]);return s.useEffect(()=>{if(!i||i.length===0)return;const l=(u,p)=>{n.current?.onChange?.(p),r()};let d=null;t&&(d={onExecute(u,p){n.current?.onExecute?.(u,p)},onError(u,p,f){n.current?.onError?.(u,p,f)}});const c=new Set;for(let u=0;u<i.length;u++)c.add(i[u]?.addPropertyListener(eo.debounce(l,0),!0)),t&&c.add(i[u]?.addExecuteListener(d));return()=>{c.forEach(u=>{u?.()})}},[e]),o}Vh(null,()=>{const[e,t]=s.useState(null);return e}),eo.getOS()===eo.OSType.MacOS||(eo.getOS(),eo.OSType.IOS),eo.getOS()===eo.OSType.MacOS||(eo.getOS(),eo.OSType.IOS);const ss=(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 G2(e,t=null,n=null,o){const r=s.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,l]=s.useState(ss(e,t)),d=o?[...o,e]:[e];return s.useEffect(()=>{const c={onGroupChange:()=>{const h=ss(e,t);l(h),r.current?.onChange?.(this)}};let u;t&&t.length>0&&(u={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),l(ss(e,t))});const p=e?.addListener(c,u),f=ss(e,t);return l(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},d),i}const Mr={Toolbar:"toolbar",Menuitem:"menuitem"};Vh({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>t1.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(t1.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}});let Ic=!1,qy=0;var Zy=typeof document<"u"?s.useLayoutEffect:s.useEffect;const A3=()=>"sheetxl-ui-"+qy++,Gy=s.useId??function(){const[e,t]=s.useState(()=>Ic?A3():void 0);return Zy(()=>{e==null&&t(A3())},[]),s.useEffect(()=>{Ic||(Ic=!0)},[]),e},Ky=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+Gy().replaceAll(":","");s.useEffect(()=>{if(!t)return;const l=`
28
- @keyframes ${r} {
29
- to {
30
- stroke-dashoffset: 0px;
31
- }
32
- }`,d=document.createElement("style");return d.appendChild(document.createTextNode(l)),document.head.appendChild(d),d.sheet.insertRule(l,0),()=>{document.head.removeChild(d)}},[t]);let i=s.useMemo(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return a.jsx(N.SvgIcon,{...o,children:a.jsxs("g",{children:[a.jsx("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"}),a.jsx("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}})]})})},F3=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Xy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Yy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Jy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Qy=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),eb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),tb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),nb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ob=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),rb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),El=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),z3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),B3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),ib=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Hd=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),$d=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),cs=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),ya=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),N3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),V3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),lb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),ab=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),sb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),cb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Hh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),a.jsx("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),a.jsx("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),a.jsx("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),Wd=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),db=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ub=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),hb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),H3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),pb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),fb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Dc=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),$3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),W3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),U3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),mb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),q3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Z3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 6,19.75 3,-3 H 7 V 4.25 H 5 v 12.5 H 3 Z"})]}),G3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"m 6,4.25 3,3 H 7 v 12.5 H 5 V 7.25 H 3 Z"})]}),ds=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),K3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),gb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),a.jsx("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),xb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("path",{d:"m 4,11 v 2 h 16 v -2 z"}),a.jsx("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"})]}),X3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("path",{d:"m 4,19 v 2 h 16 v -2 z"}),a.jsx("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),ba=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),yb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"})]}),bb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),wb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),$h=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),vb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Sb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Wh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),Cb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),kb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Uh=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Eb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),_b=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Y3=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),qh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Tb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),jb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Mb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("path",{className:"styled success_light",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),Rb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),Ib=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("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"}),a.jsx("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"})]}),Db=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("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"}),a.jsx("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"})]}),Lb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),a.jsx("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"}),a.jsx("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"})]}),Ob=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"}),a.jsx("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"})]}),Pb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Ab=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"}),a.jsx("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"})]}),Fb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),zb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Bb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),J3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Q3=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),e6=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Nb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Vb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Hb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),$b=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Wb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Ub=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),qb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Zb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),Gb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Kb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Xb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Yb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Jb=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),Qb=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),ew=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),tw=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),nw=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),K2=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),Zh=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),ow=e=>(t=>{const{style:n,orientation:o=ir.Vertical,...r}=t,i=o===ir.Vertical;return a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"end",transition:"fill-opacity 1s",zIndex:1,width:"24px",height:"24px",...n},className:`scrollbar-button ${i?"vertical":"horizontal"} edge`,...r,children:a.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:a.jsx("path",{style:{transition:"opacity 240ms ease 0s",opacity:t.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}),Gh=(e,t,n,o)=>{const{style:r,...i}=e,l=a.jsx(N.IconButton,{component:"div",...i,style:{...r,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:t});return a.jsx(yr,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?a.jsx("div",{style:{display:"flex"},children:l}):l})},rw=e=>Gh(e,a.jsx(yn.ArrowLeft,{fontSize:"small"}),"Scroll "+(e.orientation===ir.Horizontal?"Left":"Up"),`Scroll ${e.orientation===ir.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),iw=e=>Gh(e,a.jsx(yn.ArrowRight,{fontSize:"small"}),"Scroll "+(e.orientation===ir.Horizontal?"Right":"Down"),`Scroll ${e.orientation===ir.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),It=s.memo(s.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return a.jsx(N.Divider,{ref:t,sx:{marginLeft:i?"1px":void 0,marginRight:i?"1px":void 0,backgroundColor:"transparent !important",borderColor:l=>l.palette.divider,...o},orientation:n,variant:"middle",flexItem:!0,...r})}));function Lc(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var s1=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Lc(o,t),i=typeof r=="function";n.push(i?r:()=>Lc(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Lc(n,t)}},lw=function(){},Kh=typeof window<"u",Xh=Kh?s.useLayoutEffect:s.useEffect,t6={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const n6=Kh&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(t6),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return Xh(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[lw,t6]};s.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(N.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],fill:"none"},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),a.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),a.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:a.jsx("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const aw=s.memo(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return a.jsx(N.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600]},"& .secondary":{stroke:i=>i.palette.grey[600],fill:"none",opacity:.5},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),a.jsx("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:a.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});s.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(N.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),a.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),a.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:a.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),s.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return a.jsx(N.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600],stroke:"none"},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),a.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),a.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),s.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return a.jsx(N.Box,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],opacity:.5,fill:"none"},"& .secondary":{fillOpacity:i=>i.palette.grey[600],opacity:.8,stroke:i=>i.palette.background.paper},...t},...r,children:a.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[a.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),a.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:a.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const sw=s.memo(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...l}=e;return a.jsxs(N.Box,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:d=>d.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:To("_traverse-ellipsis_14l1h_1","animated-icon"),...l,children:[a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"}),a.jsx("div",{className:"primary"})]})}),cw=a.jsx(aw,{}),gi=s.memo(s.forwardRef((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:l="1200ms",panel:d=!1,transparentBackground:c=!0,icon:u=cw,label:p,...f}=e,h=s.useMemo(()=>typeof p=="string"?a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:p}):p,[p]),g=s.useRef(null),m=s.useMemo(()=>{let w=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[h,u]});return d===!0&&(w=a.jsx(N.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignSelf:"center",marginBottom:"5%",backgroundColor:b=>b.palette.info.light,color:b=>b.palette.info.contrastText,paddingLeft:b=>b.spacing(2),paddingRight:b=>b.spacing(2),paddingTop:b=>b.spacing(2),paddingBottom:b=>b.spacing(1),rowGap:b=>b.spacing(1),borderRadius:b=>`${b.shape.borderRadius}px`,boxShadow:b=>b.shadows[2],"& .primary":{background:b=>`${dt.alpha(b.palette.info.contrastText,.9)} !important`,boxShadow:b=>`0 0 0 1px ${b.palette.mode==="dark"?b.palette.text.secondary:b.palette.divider}`,boxSizing:"content-box",border:"solid transparent"},zIndex:1},children:w})),a.jsx(N.Box,{ref:s1([g,t]),className:"animatable",sx:{cursor:"wait",boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"column",willChange:"opacity",opacity:c?.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},...f,children:a.jsxs(N.Box,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[a.jsx(N.Box,{className:"backdrop",sx:{opacity:b=>c?1.5*b.palette.action.disabledOpacity:void 0,background:b=>c?void 0:b.palette.background.paper,backdropFilter:"blur(4px)",borderRadius:b=>`${b.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),w]})})},[n,d]),x=s.useRef(!1),y=s.useRef(!1);return Xh(()=>{if(g.current&&!x.current&&!y.current){if(y.current=!0,g.current.classList.contains("animatable")&&!g.current.classList.contains("animating")){let w=!1;const b=()=>{y.current&&(x.current=!0,y.current=!1,w=!0,r?.())};g.current&&g.current.addEventListener("transitionrun",b,{once:!0,capture:!0,passive:!0}),y.current&&g.current&&(window.getComputedStyle(g.current,null).opacity,g.current.classList.add("animating")),setTimeout(()=>{!w&&y.current&&g.current&&(g.current?.removeEventListener("transitionrun",b),b())},100)}else x.current=!0,y.current=!1,r?.();return()=>{}}},[g.current]),s.useEffect(()=>()=>{x.current&&(g.current?.classList.remove("animating"),x.current=!1,y.current=!1,i?.())},[]),m}));gi.displayName="LoadingPanel";const dw=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,uw=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,o6=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},X2=s.memo(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=s.useState(null);if(!e?.stack)return null;const i=(u=>{const p=[],f=(h,g=0)=>{h&&(p.push({error:h,depth:g}),h.cause&&h.cause instanceof Error&&f(h.cause,g+1))};return f(u),p.reverse()})(e).reverse(),l=[];i.forEach(({error:u},p)=>{const f=(u.stack||"").split(`
33
- `).filter(Boolean).map(h=>{let g=h.match(dw);if(g){const[,m="",x,y,w,b]=g;return{line:`at ${m?m+" ":""}${x}`,location:`${o6(y).split(/[\\/]/).pop()}:${w}:${b}`}}if(g=h.match(uw),g){const[,m="",x,y,w]=g,b=o6(x),C=`${b.split(/[\\/]/).pop()}:${y}:${w}`;return{line:`at ${m?m+" ":""}${C}`,location:b!==C?`${b}:${y}:${w}`:void 0}}return{line:h.trim()}});f.length&&(l.push({line:p?`Caused by: ${f[0].line}`:f[0].line,isBoundary:!0}),l.push(...f.slice(1)))});const d=t?l.slice(0,t):l,c=t&&l.length>t;return a.jsxs(N.Box,{sx:{width:"100%",mt:1},children:[a.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[a.jsxs(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),a.jsx(N.Box,{sx:{flex:1}}),o&&a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),a.jsx(N.IconButton,{size:"small",onClick:async()=>{try{let u=0;const p=l.map(f=>{if(f.isBoundary)return u=0,f.line;u++;let h=f.location&&f.line!==f.location?`${f.line} (${f.location})`:f.line;return u>=1&&(h=` ${h}`),h}).join(`
34
- `);await navigator.clipboard.writeText(p),r("Copied!"),setTimeout(()=>r(null),2e3)}catch(u){r("Can't copy!"),console.warn("Failed to copy stack trace:",u)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:a.jsx(yn.ContentCopy,{sx:{fontSize:"0.875rem"}})}),a.jsx(N.IconButton,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:a.jsx(yn.BugReport,{sx:{fontSize:"0.875rem"}})})]}),a.jsxs(N.Box,{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:[d.map((u,p)=>u.isBoundary?a.jsx(N.Box,{sx:{py:1,mt:p>0?1:0,mb:.5,borderTop:p>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:f=>u.isBoundary?f.palette.text.primary:f.palette.text.secondary,display:"block"},children:u.line})},`error-${p}`):a.jsxs(N.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:p+1}),a.jsxs(N.Box,{sx:{flex:1,overflow:"hidden"},children:[a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:u.line}),u.location&&u.line!==u.location&&a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:u.location})]})]},`stack-${p}`)),c&&a.jsxs(N.Typography,{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"]})]})]})});X2.displayName="StackTrace";const Yh=s.memo(s.forwardRef((e,t)=>{const{sx:n,icon:o=a.jsx(yn.Error,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:l=!1,...d}=e,c=s.useMemo(()=>((u,p=!1)=>{if(s.isValidElement(u))return u;if(u instanceof Error)return a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:u.message}),u.cause?a.jsxs(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",u.cause instanceof Error?u.cause.message:String(u.cause)]}):null,!p&&a.jsx(X2,{error:u,hideLineNumbers:!0})]});const f=u==="string"?u:`Unknown Error: ${String(u)}`;return a.jsx(N.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:f})})(r,i,l),[r,i,l]);return s.useMemo(()=>a.jsx(N.Box,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...d,children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[a.jsx(N.Box,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:u=>`${u.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),a.jsx(N.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:u=>u.palette.error.light,color:u=>u.palette.error.contrastText,paddingLeft:u=>u.spacing(2),paddingRight:u=>u.spacing(2),paddingTop:u=>u.spacing(2),paddingBottom:u=>u.spacing(2),borderRadius:u=>`${u.shape.borderRadius}px`,boxShadow:u=>u.shadows[2],"& .primary":{background:u=>`${u.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:u=>u.spacing(2),width:"100%",maxWidth:"600px"},children:a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:u=>u.spacing(2)},children:[o,c]})})})]})}),[n])}));Yh.displayName="ErrorPanel";const Jh=s.memo(s.forwardRef((e,t)=>{const{chips:n,sx:o,...r}=e,i=s.useMemo(()=>{if(!n)return null;let l=null;l=Array.isArray(n)?n:[n];const d=[];for(let c=0;c<l.length;c++){const u=l[c];let p=null;typeof u=="string"?p=a.jsx(N.Chip,{label:u,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+c):s.cloneElement(u,{key:"chip-"+c}),d.push(p)}return d},[n]);return a.jsx(N.Box,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var Ud="top",Ns="bottom",qd="right",Qh="left",hw=[Ud,Ns,qd,Qh],ep="viewport",_l="popper";function Q0(e){return e?(e.nodeName||"").toLowerCase():null}function y0(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qi(e){return e instanceof y0(e).Element||e instanceof Element}function Hi(e){return e instanceof y0(e).HTMLElement||e instanceof HTMLElement}function Zd(e){return typeof ShadowRoot<"u"&&(e instanceof y0(e).ShadowRoot||e instanceof ShadowRoot)}var ta=Math.max,r6=Math.min,i6=Math.round;function Gd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tp(){return!/^((?!chrome|android).)*safari/i.test(Gd())}function Y2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Hi(e)&&(r=e.offsetWidth>0&&i6(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&i6(o.height)/e.offsetHeight||1);var l=(Qi(e)?y0(e):window).visualViewport,d=!tp()&&n,c=(o.left+(d&&l?l.offsetLeft:0))/r,u=(o.top+(d&&l?l.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function O0(e){return y0(e).getComputedStyle(e)}function pw(e){return["table","td","th"].indexOf(Q0(e))>=0}function $i(e){return((Qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function c1(e){return Q0(e)==="html"?e:e.assignedSlot||e.parentNode||(Zd(e)?e.host:null)||$i(e)}function l6(e){return Hi(e)&&O0(e).position!=="fixed"?e.offsetParent:null}function np(e){var t=y0(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function a6(e){return Y2($i(e)).left+np(e).scrollLeft}function op(e){var t=O0(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function rp(e){return["html","body","#document"].indexOf(Q0(e))>=0?e.ownerDocument.body:Hi(e)&&op(e)?e:rp(c1(e))}function ip(e,t){var n;t===void 0&&(t=[]);var o=rp(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=y0(o),l=r?[i].concat(i.visualViewport||[],op(o)?o:[]):o,d=t.concat(l);return r?d:d.concat(ip(c1(l)))}function Kd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function s6(e,t,n){return t===ep?Kd(function(o,r){var i=y0(o),l=$i(o),d=i.visualViewport,c=l.clientWidth,u=l.clientHeight,p=0,f=0;if(d){c=d.width,u=d.height;var h=tp();(h||!h&&r==="fixed")&&(p=d.offsetLeft,f=d.offsetTop)}return{width:c,height:u,x:p+a6(o),y:f}}(e,n)):Qi(t)?function(o,r){var i=Y2(o,!1,r==="fixed");return i.top=i.top+o.clientTop,i.left=i.left+o.clientLeft,i.bottom=i.top+o.clientHeight,i.right=i.left+o.clientWidth,i.width=o.clientWidth,i.height=o.clientHeight,i.x=i.left,i.y=i.top,i}(t,n):Kd(function(o){var r,i=$i(o),l=np(o),d=(r=o.ownerDocument)==null?void 0:r.body,c=ta(i.scrollWidth,i.clientWidth,d?d.scrollWidth:0,d?d.clientWidth:0),u=ta(i.scrollHeight,i.clientHeight,d?d.scrollHeight:0,d?d.clientHeight:0),p=-l.scrollLeft+a6(o),f=-l.scrollTop;return O0(d||i).direction==="rtl"&&(p+=ta(i.clientWidth,d?d.clientWidth:0)-c),{width:c,height:u,x:p,y:f}}($i(e)))}function fw(e){var t=ip(c1(e)),n=["absolute","fixed"].indexOf(O0(e).position)>=0&&Hi(e)?function(o){for(var r=y0(o),i=l6(o);i&&pw(i)&&O0(i).position==="static";)i=l6(i);return i&&(Q0(i)==="html"||Q0(i)==="body"&&O0(i).position==="static")?r:i||function(l){var d=/firefox/i.test(Gd());if(/Trident/i.test(Gd())&&Hi(l)&&O0(l).position==="fixed")return null;var c=c1(l);for(Zd(c)&&(c=c.host);Hi(c)&&["html","body"].indexOf(Q0(c))<0;){var u=O0(c);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||d&&u.willChange==="filter"||d&&u.filter&&u.filter!=="none")return c;c=c.parentNode}return null}(o)||r}(e):e;return Qi(n)?t.filter(function(o){return Qi(o)&&function(r,i){var l=i.getRootNode&&i.getRootNode();if(r.contains(i))return!0;if(l&&Zd(l)){var d=i;do{if(d&&r.isSameNode(d))return!0;d=d.parentNode||d.host}while(d)}return!1}(o,n)&&Q0(o)!=="body"}):[]}const mw={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var t=e.state,n=e.name,o=function(g,m){m===void 0&&(m={});var x,y=m,w=y.placement,b=w===void 0?g.placement:w,C=y.strategy,E=C===void 0?g.strategy:C,k=y.boundary,M=k===void 0?"clippingParents":k,T=y.rootBoundary,F=T===void 0?ep:T,_=y.elementContext,P=_===void 0?_l:_,v=y.altBoundary,S=v!==void 0&&v,I=y.padding,j=I===void 0?0:I,R=function(z){return Object.assign({},{top:0,right:0,bottom:0,left:0},z)}(typeof j!="number"?j:(x=j,hw.reduce(function(z,W){return z[W]=x,z},{}))),A=P===_l?"reference":_l,D=g.rects.popper,L=g.elements[S?A:P],$=function(z,W,G,Q){var Y=W==="clippingParents"?fw(z):[].concat(W),te=[].concat(Y,[G]),le=te[0],me=te.reduce(function(J,ae){var ke=s6(z,ae,Q);return J.top=ta(ke.top,J.top),J.right=r6(ke.right,J.right),J.bottom=r6(ke.bottom,J.bottom),J.left=ta(ke.left,J.left),J},s6(z,le,Q));return me.width=me.right-me.left,me.height=me.bottom-me.top,me.x=me.left,me.y=me.top,me}(Qi(L)?L:L.contextElement||$i(g.elements.popper),M,F,E),q=Y2(g.elements.reference),O=function(z){var W,G=z.reference,Q=z.element,Y=z.placement,te=Y?Y.split("-")[0]:null,le=Y?Y.split("-")[1]:null,me=G.x+G.width/2-Q.width/2,J=G.y+G.height/2-Q.height/2;switch(te){case Ud:W={x:me,y:G.y-Q.height};break;case Ns:W={x:me,y:G.y+G.height};break;case qd:W={x:G.x+G.width,y:J};break;case Qh:W={x:G.x-Q.width,y:J};break;default:W={x:G.x,y:G.y}}var ae=te?function(De){return["top","bottom"].indexOf(De)>=0?"x":"y"}(te):null;if(ae!=null){var ke=ae==="y"?"height":"width";switch(le){case"start":W[ae]=W[ae]-(G[ke]/2-Q[ke]/2);break;case"end":W[ae]=W[ae]+(G[ke]/2-Q[ke]/2)}}return W}({reference:q,element:D,placement:b}),U=Kd(Object.assign({},D,O)),X=P===_l?U:q,ee={top:$.top-X.top+R.top,bottom:X.bottom-$.bottom+R.bottom,left:$.left-X.left+R.left,right:X.right-$.right+R.right},V=g.modifiersData.offset;if(P===_l&&V){var H=V[b];Object.keys(ee).forEach(function(z){var W=[qd,Ns].indexOf(z)>=0?1:-1,G=[Ud,Ns].indexOf(z)>=0?"y":"x";ee[z]+=H[G]*W})}return ee}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,l=r.y;let d=t.rects.popper,c=d.width,u=d.height,p=t.placement.split("-")[0],f=p==="left"?"left":"right",h=p==="top"?"top":"bottom";t.modifiersData[n]={width:c-o[f]-i,height:u-o[h]-l}}},gw=[0,2],lp=s.memo(s.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:l=gw,anchorEl:d,anchorPosition:c,onMount:u,onOpening:p,onOpen:f,onClosing:h,onClose:g,resizeOnOverflow:m=!0,...x}=e;if(Array.isArray(r))throw new Error("children can not be an array");const y=V2(),w={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:$}){const{height:q}=$.modifiersData.maxSize;$.styles.popper.maxHeight=q-10+"px"}},b=s.useMemo(()=>{const $=[{name:"offset",options:{offset:l}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return m&&$.unshift(mw,w),$},[m,l]),[C,E]=s.useState(!1),k=s.useRef(null),M=un(()=>{u?.(I.current,k.current)},[p]),T=un(p,[p]),F=un(f,[f]),_=un(h,[h]),P=un(()=>{E(!1),g?.()},[g]),[v,S]=s.useState(!1),I=s.useRef(null),j=s.useRef(!0),R=s.useMemo(()=>({onFirstUpdate:()=>{j.current&&(S(!0),M?.(),j.current=!1)}}),[o,C]);s.useEffect(()=>{o&&v?T?.():!o&&C&&_?.(),o&&E(o)},[o,v]);const A=s.useMemo(()=>({getBoundingClientRect:()=>c?new DOMRect(c?.left||0,c?.top||0,0,0):d.getBoundingClientRect()}),[c,d]);s.useImperativeHandle(t,()=>({instance:()=>k.current,element:()=>I.current}),[]);const{getPortalContainer:D}=q2(),L=s.useMemo(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:C&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,C]);return a.jsx(N.Popper,{ref:I,popperRef:k,container:D,anchorEl:A,open:C,role:void 0,popperOptions:R,transition:!0,sx:L,placement:"bottom-start",modifiers:b,...x,children:({TransitionProps:$,placement:q,...O})=>{const{in:U,onEnter:X,onExited:ee,...V}=$??{};return a.jsx(N.Grow,{...V,in:o,onEnter:()=>{X?.(),F()},onExited:()=>{ee?.(),P()},timeout:{enter:y.transitions.duration.shorter,exit:0},style:{transformOrigin:q==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:$,placement:q,...O}):r||{}})}})}));lp.displayName="ExhibitPopper";const Dr={Toolbar:"toolbar",Menuitem:"menuitem"},vn=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:l,sx:d,...c}=e;return a.jsx(N.Box,{className:To("menu",l),sx:{display:"flex",flexDirection:"column",...d},...c,children:i})},c6=(e,t,n)=>a.jsx(yn.ArrowDropDown,{sx:{marginLeft:e?void 0:t?"-5px":"-3px",marginRight:e?void 0:t?"-5px":"-6px",transform:()=>{let o;return t&&(o=(o?o+" ":"")+"scale(0.8)"),n&&(o=(o?o+" ":"")+"rotate(180deg)"),o}},color:"inherit"}),xw=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,yw=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Xd=function(e,t=null){if(!e)return e;e=e.replace(xw,function(o,r,i,l){return r+r+i+i+l+l});let n=yw.exec(e);return n?t===null?`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},kr=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=Xd(e),o?dt.darken(e,Math.max(0,Math.min(1,1*t))):dt.lighten(e,Math.max(0,Math.min(1,1.5*t)))};function J2(e,t){t=S8.deepmerge({track:kr(e.palette.background.paper,.05,e?.palette.mode),thumb:kr(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:dt.alpha(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 eo.getOS()===eo.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const ap=s.memo(s.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:l,createPopupPanel:d=vn,popperProps:c,onMount:u,onClosing:p,onClose:f,onOpening:h,onOpen:g,children:m,sx:x,...y}=e,w=un(p,[p]),b=un(f,[f]),C=un(h,[h]),E=un(g,[g]),[k,M]=s.useState(),T=s.useRef(null),F=un((P,v)=>{M(P),u?.(T.current,v)},[u]),_=s.useMemo(()=>{const P={popupContainer:k,floatReference:l,children:m,...y},v=d(P);return a.jsx(N.Paper,{elevation:8,ref:T,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":S=>J2(S)},tabIndex:0,children:v})},[d,m,k,l]);return a.jsx(lp,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:F,onOpening:C,onOpen:E,onClosing:w,onClose:b,...c,children:_})}));ap.displayName="ExhibitFloatPanel";const j0=new Map;let Oc=null;const M0=new Map;let p0=null;const Pc=(e=null,t,n,o)=>(p0&&(p0.fn.clear(),p0=null),e===0?t:(e===null&&(e=120),p0={fn:eo.debounce(()=>t(),e),setReferences:n,isClose:o},p0.fn)),sp=(e,t)=>{if(t===null)return;e.add(t);const n=j0.get(t.key);if(!n)return;const o=M0.get(n);o&&sp(e,o)},d6=e=>{const t=new Set;return sp(t,e),t},l0=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:l,createPopupPanel:d=vn}=e??{},c=un(r,[r]),u=un(i,[i]),[p,f]=s.useState(null),[h,g]=s.useState(!1),[m,x]=s.useState(!1),y=s.useMemo(()=>o===null?(Oc===null&&(Oc={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:z=>null,closeChild:z=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>A(0),floatElement:()=>null,anchorElement:()=>null}),Oc):o,[]),w=s.useMemo(()=>({label:n}),[]),b=s.useRef(null),C=s.useRef(t);s.useEffect(()=>{C.current=t},[t]);const E=z=>{const W=j0.get(z);let G=null;return W&&(G=M0.get(W)?.close(0)),G},k=()=>E($.key),[M,T]=s.useState(),F=()=>{if(!p)return void S();const z=new Promise((W,G)=>{T(Q=>({resolve:W,reject:G}))});return k(),j0.delete(y.key),f(!1),z};s.useEffect(()=>{M&&(M.resolve(),T(null))},[h,m,M]);const _=s.useCallback(()=>{let z=y;for(;z.parent;)z=z.parent;return E(z.key)},[]),P=()=>{if(p)return void S();y&&M0.get(y.key)?.open(0);const z=j0.get(y.key);z&&z!==w&&M0.get(z)?.close(0),requestAnimationFrame(()=>{j0.set(y.key,$.key),f(!0)})},[v,S]=s.useReducer(z=>z+1,0),I=s.useCallback(z=>d===null?null:d({closeFloat:A,closeFloatAll:L,...z}),[d]),j=d===null,R=un((z=120)=>Pc(z,P,new Set([$]),!1)(),[P]),A=un((z=60)=>Pc(z,F,d6($),!0)(),[F]),D=un((z=360)=>Pc(z,k,d6((W=>{const G=j0.get(W.key);return G&&M0.get(G)||null})($)),!0)(),[k]),L=un(_,[_]),$=s.useMemo(()=>({key:w,isRoot:!1,label:n,parent:y,onChildVisible:()=>{x(!0)},onChildHidden:()=>{x(!1)},open:R,close:A,closeChild:D,closeAll:L,floatElement:()=>b.current,anchorElement:()=>C.current}),[]);s.useEffect(()=>{M0.set(w,$)},[$]),s.useEffect(()=>()=>{M0.delete(w),A(0)},[]),s.useEffect(()=>{p&&!j&&(g(!0),y.onChildVisible())},[p,j]);const q=s.useCallback(z=>{z.which===Fo.Escape&&(z.preventDefault(),z.stopPropagation(),A(0))},[]),O=s.useRef(null),U=s.useCallback(()=>{const z=O.current,W=b.current;z&&W&&(requestAnimationFrame(()=>{(W.contains(document.activeElement)||document.activeElement===document.body)&&z.focus()}),O.current=null),u?.()},[]),X=s.useCallback(z=>{b.current=z,z.addEventListener("focus",G=>{O.current=G.relatedTarget},{once:!0,passive:!0});const W=document.activeElement;requestAnimationFrame(()=>{W===document.activeElement&&z.focus()})},[]),[ee,V]=s.useState();s.useEffect(()=>{j&&(p?c?.():p===!1&&u?.()),V(h?a.jsx(ap,{floatReference:$,open:p,label:n,anchorEl:t,onOpening:()=>{c?.(),y.onChildVisible()},onClosing:U,onClose:()=>{g(!1),y.onChildHidden()},onMount:X,popperProps:{onKeyDown:q,onMouseEnter:z=>{p&&p0?.isClose&&p0.setReferences.has($)&&(p0.fn.clear(),p0=null,$.closeChild())},...l},createPopupPanel:I}):null)},[h,p,n,j,l,I,v]);const H=un(z=>{if(j0.size===0)return;let W=!1;j0.forEach(G=>{const Q=M0.get(G);!W&&Q&&(Q.floatElement()?.contains?.(z.target)&&(W=!0),Q.anchorElement()?.contains?.(z.target)&&(W=!0))}),W||_()},[_]);return s.useEffect(()=>{if(!p||!y.isRoot)return;const z=W=>{H(W)};return document.addEventListener("mousedown",z),document.addEventListener("touchstart",z),document.addEventListener("focus",z),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("touchstart",z),document.removeEventListener("focus",z)}},[p,y]),{component:ee,reference:$}},bw=s.memo(s.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...l}=e,d={disabled:r,createPopupPanel:un(c=>{if(!n||n.length===0)return null;const{popupContainer:u,floatReference:p,ref:f,...h}=c,g=[];for(let m=0;m<n.length;m++){const x=n[m];x&&g.push(a.jsx(bw,{parentFloat:p,...h,...x},m))}return a.jsxs(N.Box,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",g,a.jsx(lr,{parentFloat:p,children:"Close other children"})]})},[n]),...l};return a.jsx(o===Dr.Toolbar?qr:Aa,{...d})})),ww={placement:"right-start"},cp=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:l=ww,label:d,...c}=e;(function(y){if(!y)throw new Error("Invariant failed")})(s.isValidElement(n));const u=n,p=s.useMemo(()=>({...u?.props,...c,onContextMenu:y=>{u?.props?.onContextMenu?.(y),y.isDefaultPrevented()||(c?.onContextMenu?.(y),y.isDefaultPrevented()||(g(y),y.preventDefault()))}}),[c,u?.props]),f=un(i,[i]),[h,g]=s.useState(null),{reference:m,component:x}=l0({label:d??"contextMenu",popperProps:l,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(h?.clientX||0,h?.clientY||0)},onClose:()=>g(null),createPopupPanel:f});return s.useEffect(()=>{h?m.open(0):m.close(0)},[h]),a.jsxs(a.Fragment,{children:[s.cloneElement(n,p),x]})})),yr=s.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=q2();return a.jsx(N.Tooltip,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});yr.displayName="SimpleTooltip";const Tl=s.memo(e=>{const{modifier:t,sx:n,...o}=e;return a.jsx(N.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:r=>dt.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>dt.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>dt.alpha(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>dt.alpha(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>dt.alpha(r.palette.action.hover,r.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...o,children:a.jsx(N.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),vw=eo.getOS()===eo.OSType.MacOS||eo.getOS()===eo.OSType.IOS?"Cmd":"Ctrl",Q2=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],l=e;for(let d=0;d<l.length;d++)i.push(Q2(l[d],t,n??""+d));return a.jsx(N.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:i},n)}if(!e?.key)return null;const o={};for(let i=0;e.modifiers&&i<e.modifiers.length;i++)o[e.modifiers[i]]=!0;const r=[];return o?.ctrl&&(r.push(a.jsx(Tl,{modifier:t?"^":a.jsx("div",{style:{paddingRight:"1px"},children:vw})},"ctrl")),r.push("+")),o?.alt&&(r.push(a.jsx(Tl,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(a.jsx(Tl,{modifier:t?"⇧":a.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(a.jsx(Tl,{modifier:t?a.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(a.jsx(Tl,{modifier:Ry.toPrettyKeyCode(e.key)},"character")),a.jsx(N.Box,{sx:{display:"flex",alignItems:"center"},children:r},n)},zo=s.memo(s.forwardRef((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:l,maxWidth:d=280,useModifierSymbols:c=!1,children:u,simple:p,componentDisabled:f=!1,sx:h,...g}=e;let m=null;return r&&(m=Q2(r,c)),a.jsx(yr,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...h},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?a.jsxs(N.Box,{sx:{maxWidth:`${d}px`},ref:t,children:[a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:l?"4px":"0px"},children:[a.jsx(N.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?a.jsx(Jh,{chips:i}):null,m?a.jsx(N.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):a.jsx(a.Fragment,{}),m]}),l?a.jsx(N.Typography,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:l}):a.jsx(a.Fragment,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...g,children:a.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:u})})})),N1=a.jsx(Xi,{}),Sw=ge(a.jsx(I2,{})),mr=s.memo(s.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:l,icon:d,tooltipProps:c,children:u,primary:p,sx:f,className:h,onFocus:g,onBlur:m,...x}=e,[y,w]=s.useState(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:T=>`${T.shape.borderRadius}px`,color:T=>p?void 0:T.palette.text.icon??T.palette.action.active,border:T=>`solid ${o?T.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:T=>`${T.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:T=>dt.alpha(T.palette.text.primary,T.palette.action.selectedOpacity),border:T=>`solid ${o?T.palette.text?.primary:T.palette.divider} 1px`},"&.Mui-disabled":{border:T=>`solid ${o?T.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...f},C={"&:hover:not(.Mui-disabled, [disabled])":{color:T=>T.palette.text.primary,border:T=>`solid ${o?T.palette.text?.primary:T.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:T=>dt.alpha(T.palette.text.primary,T.palette.action.selectedOpacity+T.palette.action.hoverOpacity)},"> .outline-hover":{outline:T=>`solid ${o?T.palette.text?.primary:T.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:T=>`solid ${T.palette.primary.main} 1px`,border:T=>`1px solid ${T.palette?.primary?.main}`,zIndex:1}};let E=b;r||(E=eo.mergeContentful(b,C));const k=s.useMemo(()=>{let T=typeof d=="function"?d():d;return T===null?T:T||(l===void 0?N1:Sw)},[d,l]);let M=a.jsxs(N.IconButton,{component:"div",ref:t,className:To({"Mui-focusVisible":y,"Mui-selected":l},h),onFocus:T=>{w(!0),g?.(T)},onBlur:T=>{w(!1),m?.(T)},size:"small",TouchRippleProps:{center:!1},sx:E,edge:"end",...x,children:[k,u]});if(c)if(c.simple&&c.label&&!c.disabled){const{label:T,description:F,maxWidth:_,shortcut:P,useModifierSymbols:v,componentDisabled:S,simple:I,chips:j,ref:R,...A}=c;M=a.jsx(yr,{disableInteractive:!0,title:T??"",...A,children:a.jsx(N.Box,{sx:{display:"flex"},children:M})})}else M=a.jsx(zo,{children:M,...c});return M})),Cw=e=>e.icon,lr=s.memo(s.forwardRef((e,t)=>{const{icon:n=N1,renderIcon:o=Cw,parentFloat:r,className:i,onFocus:l,selected:d,onBlur:c,onMouseOver:u,onMouseOut:p,onMouseEnter:f,disabled:h,children:g,sx:m,tooltipProps:x,chips:y,primary:w,...b}=e,[C,E]=s.useState(!1),[k,M]=s.useState(!1),T=s.useMemo(()=>{const _=o?.({icon:n,disabled:h,selected:d});return _?a.jsx(N.ListItemIcon,{className:To({"Mui-focusVisible":C,"Mui-hovered":k}),sx:{"& .MuiSvgIcon-root":{color:P=>w?void 0:P.palette.text.icon??P.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:P=>P.palette.text.primary}}},children:_}):null},[o,h,n,C,k,w,d]);let F=a.jsxs(N.MenuItem,{ref:t,disabled:h,onMouseOver:_=>{u?.(_),_.isDefaultPrevented()||M(!0)},onMouseOut:_=>{p?.(_),_.isDefaultPrevented()||M(!1)},onMouseEnter:_=>{f?.(_),_.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:To({"Mui-focusVisible":C,"Mui-hovered":k},i),onFocus:_=>{l?.(_),E(!0)},onBlur:_=>{c?.(_),E(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:_=>_.palette.text.primary},color:_=>_.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:_=>_.palette.text.primary},...m},...b,children:[T,g,y?a.jsx(Jh,{chips:y}):null]});return x&&(F=a.jsx(zo,{children:F,placement:"right-start",...x})),F})),el=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...l}=e;return a.jsx(a.Fragment,{children:a.jsx(N.Typography,{ref:t,variant:i,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:i==="subtitle1"?"2px":void 0,paddingBottom:i==="subtitle1"?"2px":void 0,color:d=>r?void 0:d.palette.text.secondary,...o},...l,children:n})})})),qr=s.memo(s.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:l,parentFloat:d,createPopupPanel:c,popupProps:u,onPopupOpen:p,onPopupClose:f,quickButtonProps:h,createQuickButton:g,tooltip:m="",createTooltip:x,icon:y,disabled:w,buttonProps:b=eo.EmptyObject,disableHover:C,touchRippleRef:E,primary:k,children:M,sx:T,className:F,..._}=e,P=V2(),v=s.useMemo(()=>{const J=(ae,ke,De,ne=De)=>{const de=typeof o=="boolean"?null:o[ae];return typeof de=="function"?de(ke):de||(o?De:ne)};return{outline:{color:ae=>J("color",ae,ae.palette.divider,"transparent"),hoverColor:ae=>J("hoverColor",ae,ae.palette.text?.primary,ae.palette.divider),focusColor:ae=>J("focusColor",ae,ae.palette?.primary?.main)},active:P.palette.mode==="dark"?P.palette.text.secondary:P.palette.text.primary,text:P.palette.text.icon??P.palette.action.active}},[o,P]),[S,I]=s.useState(!1),[j,R]=s.useState(!1),[A,D]=s.useState(!1),L=s.useRef(null),$=s.useRef(null),q=l0({anchor:L.current,label:r,createPopupPanel:c,parentFloat:d,popperProps:u?.popperProps,onClose:()=>{I(!1),f?.()},onOpen:()=>{I(!0),p?.()}}),O=un(J=>{l?.(J),q.reference.close(0)},[l,q]),U=un(()=>{S?q.reference.close(0):q.reference.open(0)},[S,q,d,r]),X=s.useMemo(()=>{const J={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:ye=>v.outline.color(ye),"&.Mui-focusVisible":{border:ye=>`1px solid ${v.outline.focusColor(ye)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>C?"transparent":void 0,backgroundColor:()=>C?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:ye=>v.outline.hoverColor(ye)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:ye=>v.outline.hoverColor(ye)},"&.left":{borderTopLeftRadius:ye=>`${ye.shape.borderRadius}px`,borderBottomLeftRadius:ye=>`${ye.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:ye=>v.outline.color(ye)},"&.right":{borderTopRightRadius:ye=>`${ye.shape.borderRadius}px`,borderBottomRightRadius:ye=>`${ye.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:ye=>`${ye.shape.borderRadius}px !important`}},ae={"&.Mui-selected":{backgroundColor:ye=>dt.alpha(ye.palette.primary.main,ye.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ye=>dt.alpha(ye.palette.primary.main,ye.palette.action.selectedOpacity+ye.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ye=>dt.alpha(ye.palette.primary.main,ye.palette.action.selectedOpacity)}}}},ke={maxHeight:"100%","&.Mui-selected":{backgroundColor:ye=>dt.alpha(ye.palette.text.icon??ye.palette.action.active,ye.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ye=>dt.alpha(ye.palette.text.icon??ye.palette.action.active,ye.palette.action.selectedOpacity+ye.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ye=>dt.alpha(ye.palette.text.icon??ye.palette.action.active,ye.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:ye=>ye.palette.text.primary},backgroundColor:()=>C?"transparent":void 0,color:ye=>ye.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},De=eo.mergeContentful(ke,J),ne=eo.mergeContentful(De,ae),de=eo.mergeContentful(ke,J);return{quickButtonStyling:De,openQuickButtonStyling:ne,compoundStyling:de,openCompoundStyling:eo.mergeContentful(de,ae)}},[v,C]),ee=un(J=>{const{children:ae,ref:ke,...De}=J;return a.jsx(yr,{ref:ke,...De,disableInteractive:!0,children:ae})},[]),V=l||g,H=V&&(h?.tooltip||h?.createTooltip),z=J=>{const{tooltip:ae,createTooltip:ke,sx:De,...ne}=J;let de=a.jsx(N.IconButton,{sx:{...De},component:"div",...ne});return H&&(de=(ke??ee)({title:S?"":ae??m,children:a.jsx("div",{children:de})},S)),de},W={onKeyDown:J=>{J.keyCode===Fo.Space?U():J.keyCode===Fo.F4||J.keyCode===Fo.Down?q.reference.open(0):J.keyCode===Fo.Up&&q.reference.close(0)}};let G=a.jsx(a.Fragment,{});const Q=s.useMemo(()=>typeof y=="function"?y():y,[y]);if(V){let J=S?X.openQuickButtonStyling:X.quickButtonStyling;const ae=(g||z)({tabIndex:-1,disabled:w,size:"small",edge:"end",onMouseEnter:()=>{q.reference.parent.closeChild()},onMouseDown:De=>{De.button===0&&(De.preventDefault(),O(De))},touchRippleRef:E,children:Q,...h,className:To({"Mui-focusVisible":j||S,"Mui-selected":i,"Mui-hovered":A||S,"Mui-disabled":w,bordered:!0,left:!0,"hard-right":!0},h?.className),sx:{...X.quickButtonStyling,height:"100%",...h?.sx}});let ke=c6(!0,n,S);H&&(ke=(x??ee)({title:S?"":m,children:ke},S)),G=a.jsxs(a.Fragment,{children:[ae,a.jsx(N.IconButton,{ref:$,component:"div",className:To({"Mui-selected":S,"Mui-hovered":A||S,"Mui-disabled":w,"Mui-focusVisible":j||S,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...X.quickButtonStyling,...J},TouchRippleProps:{center:!1},tabIndex:-1,disabled:w,size:"small",edge:"end",onMouseDown:De=>{De.button===0&&(De.preventDefault(),U())},children:ke})]})}else{let J=S?X.openCompoundStyling:X.compoundStyling;G=a.jsx(mr,{ref:$,tabIndex:-1,disabled:w,size:"small",icon:Q,className:To({"Mui-selected":S||i,"Mui-hovered":A,"Mui-disabled":w,"Mui-focusVisible":j||S,bordered:!0,left:!0,right:!0}),sx:{...X.quickButtonStyling,...J},onMouseDown:ae=>{ae.button===0&&(ae.preventDefault(),U())},children:c6(!1,n,S)})}const{className:Y,sx:te,...le}=b;let me=a.jsx(N.Box,{onFocus:()=>R(!0),onBlur:()=>R(!1),onMouseOver:()=>D(!0),onMouseOut:()=>D(!1),...W,"aria-label":"split button",ref:L,tabIndex:w?void 0:0,className:To(Y,"split-button-root",{"Mui-focusVisible":j||S,"Mui-selected":S||i,"Mui-hovered":A,"Mui-disabled":w}),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:J=>`${J.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:J=>`solid ${J.palette.primary.main} 1px`,zIndex:2},...te},...le,children:G});return H||(me=(x??ee)({title:S?"":m,children:me},S)),a.jsxs(N.Box,{className:To(F,"popupIconButton"),ref:t,..._,sx:{zIndex:j||S?2:void 0,display:"flex",alignItems:"center",...T},children:[me,q.component]})}));qr.displayName="ExhibitPopupIconButton";const kw={},Aa=s.memo(s.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:l,popupProps:d=kw,onPopupOpen:c,onPopupClose:u,quickButtonProps:p,createQuickButton:f,tooltip:h="",createTooltip:g,icon:m,disabled:x,touchRippleRef:y,primary:w,children:b,sx:C,...E}=e,[k,M]=s.useState(!1),[T,F]=s.useState(!1),[_,P]=s.useState(!1),[v,S]=s.useState(!1),I=s.useRef(null),j=s.useRef(null),R=s.useMemo(()=>{if(!d)return;const{popperProps:H}=d;return{placement:"right-start",offsets:[-4,-2],...H}},[d]),A=l0({anchor:I.current,label:o,createPopupPanel:l,parentFloat:i,popperProps:R,onClose:()=>{M(!1),u?.()},onOpen:()=>{M(!0),c?.()}}),D=un(H=>{H.button===0&&(r?.(H),A.reference.close(0))},[r]),L=a.jsx(yn.ArrowRight,{sx:{transform:()=>{}}}),$={"&.Mui-selected":{color:H=>H.palette.text.primary,"& svg * ":{color:H=>H.palette.text.primary}}},q=s.useCallback(H=>{const{children:z,ref:W,...G}=H;return a.jsx(yr,{ref:W,...G,disableInteractive:!0,children:z})},[]),O=r||f,U=H=>{const{tooltip:z,createTooltip:W,...G}=H;return a.jsx(lr,{icon:m,className:To({"Mui-hovered":_}),sx:{flex:"1 1 100%",...$},...G,children:o})},X={onFocus:()=>{F(!0)},onBlur:()=>F(!1),onMouseOver:()=>{P(!0)},onMouseLeave:()=>{P(!1)},onMouseEnter:()=>{A.reference.open()},onMouseDown:H=>{H.button===0&&H.preventDefault()}};let ee=a.jsx(a.Fragment,{});if(O){const H=(f||U)({tabIndex:-1,disabled:x,onMouseEnter:()=>{A.reference.parent.closeChild()},onMouseDown:z=>{z.button===0&&(z.preventDefault(),D(z))},className:To("quick-left",{},p?.className),...p});ee=a.jsxs(a.Fragment,{children:[H,a.jsx(N.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),a.jsx(N.MenuItem,{ref:j,className:To({"Mui-selected":k,"Mui-hovered":_}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:z=>w?void 0:z.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:z=>z.palette.text.primary},...$},tabIndex:-1,disabled:x,...X,children:a.jsx(N.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:z=>w?void 0:z.palette.text.icon??z.palette.action.active},onMouseOver:z=>{z.preventDefault(),S(!0)},onMouseLeave:()=>{S(!1)},onClick:z=>{z.preventDefault(),k?A.reference.close():A.reference.open()},children:L})})]})}else ee=a.jsxs(lr,{ref:j,tabIndex:-1,disabled:x,icon:m,className:To({"Mui-selected":k||n,"Mui-hovered":_}),sx:{flex:"1 1 100%",paddingRight:"0px",...$},onClick:H=>{H.preventDefault(),k?A.reference.close():A.reference.open()},...X,children:[a.jsx("div",{style:{flex:"1 1 100%"},children:o}),a.jsx(N.Box,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:H=>w?void 0:H.palette.text.icon??H.palette.action.active},children:L})]});let V=a.jsx(N.Box,{"aria-label":"split button",ref:I,tabIndex:x?void 0:0,className:To({"Mui-disabled":x,"Mui-selected":k,"Mui-focusVisible":T||k,"Mui-hovered":_}),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"},...C},...E,children:ee});return O&&!v&&(p?.tooltip||p?.createTooltip)&&(V=(p?.createTooltip??q)({title:k?"":V??p?.tooltip,children:V},k)),a.jsxs(N.Box,{ref:t,sx:{zIndex:T||k?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[V,A.component]})})),dp=s.memo(s.forwardRef((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:l=0,preventFocus:d=!1,...c}=e;return a.jsx(zo,{label:r,shortcut:i,children:a.jsx(mr,{ref:t,outlined:!1,tabIndex:l,selected:o,onMouseDown:u=>{d&&u.preventDefault()},onClick:()=>{n?.(!o)},...c})})})),Fa=s.memo(s.forwardRef((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...l}=e,d={display:"flex",border:u=>o?`solid ${r?u.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:u=>`${u.shape.borderRadius}px`,backgroundColor:u=>{if(o)return dt.alpha(u.palette.text.icon??u.palette.action.active,u.palette.action.selectedOpacity)}};let c=n;return c===null&&(c=a.jsx(Xi,{})),c||(c=a.jsx(I2,{})),c=ge(c),a.jsx(N.Box,{ref:t,sx:{...d,...i},...l,children:c})}));function $o(){return $o=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},$o.apply(null,arguments)}function up(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}var Rr,Ci,Ew={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},hp=s.createContext(void 0);(Ci=Rr||(Rr={})).SHOW="SHOW",Ci.HIDE="HIDE",Ci.UPDATE="UPDATE",Ci.DESTROY="DESTROY",Ci.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",Ci.UNKNOWN="UNKNOWN";var _w={};function Tw(e,t){switch(t.type){case Rr.SHOW:var n,o=t.payload,r=o.id,i=o.component,l=o.props,d=o.options;return $o({},e,((n={})[r]={component:i,props:$o({},l,{open:!0}),options:d},n));case Rr.HIDE:var c,u=t.payload.id;return e[u]?$o({},e,((c={})[u]=$o({},e[u],{props:$o({},e[u].props,{open:!1})}),c)):e;case Rr.UPDATE:var p,f=t.payload,h=f.id,g=f.props;return e[h]?$o({},e,((p={})[h]=$o({},e[h],{props:$o({},e[h].props,g)}),p)):e;case Rr.DESTROY:var m=t.payload.id,x=$o({},e);return delete x[m],x;case Rr.DESTROY_BY_ROOT_ID:var y=t.payload.rootId;return Object.keys(e).filter(function(w){return w.split(".")[0]!==y}).reduce(function(w,b){var C;return $o({},w,((C={})[b]=e[b],C))},{});default:throw new Error("Unexpected action")}}var Ac="[ERROR]: Modal ID is missing",pp=function(e){e===void 0&&(e=8);for(var t=[],n=0;n<e;n++)t[n]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t.join("")},jw=["open"],Mw=["showModal","destroyModalsByRootId"],u6={disableAutoDestroy:!1};function us(e){e===void 0&&(e=u6);var t=$o({},u6,e).disableAutoDestroy,n=s.useContext(hp)||Ew,o=n.showModal,r=n.destroyModalsByRootId,i=up(n,Mw),l=s.useRef(pp(6));return s.useEffect(function(){return function(){!t&&r&&r(l.current)}},[t,r]),$o({showModal:s.useCallback(function(d,c,u){return o(d,c,$o({rootId:l.current,hideOnClose:!0},u))},[o]),destroyModalsByRootId:r},i)}var fp=["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])"],d1=fp.join(","),mp=typeof Element>"u",ri=mp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vs=!mp&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},u1=function e(t,n){var o;n===void 0&&(n=!0);var r=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert");return r===""||r==="true"||n&&t&&e(t.parentNode)},gp=function(e,t,n){if(u1(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(d1));return t&&ri.call(e,d1)&&o.unshift(e),o.filter(n)},xp=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var l=i.shift();if(!u1(l,!1))if(l.tagName==="SLOT"){var d=l.assignedElements(),c=e(d.length?d:l.children,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:l,candidates:c})}else{ri.call(l,d1)&&o.filter(l)&&(n||!t.includes(l))&&r.push(l);var u=l.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(l),p=!u1(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(l));if(u&&p){var f=e(u===!0?l.children:u.children,!0,o);o.flatten?r.push.apply(r,f):r.push({scopeParent:l,candidates:f})}else i.unshift.apply(i,l.children)}}return r},yp=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},P0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(t){var n,o=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return o===""||o==="true"}(e))&&!yp(e)?0:e.tabIndex},Rw=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},bp=function(e){return e.tagName==="INPUT"},h6=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},h1=function(e,t){return!(t.disabled||u1(t)||(n=t,bp(n)&&n.type==="hidden")||function(o,r){var i=r.displayCheck,l=r.getShadowRoot;if(getComputedStyle(o).visibility==="hidden")return!0;var d=ri.call(o,"details>summary:first-of-type")?o.parentElement:o;if(ri.call(d,"details:not([open]) *"))return!0;if(i&&i!=="full"&&i!=="legacy-full"){if(i==="non-zero-area")return h6(o)}else{if(typeof l=="function"){for(var c=o;o;){var u=o.parentElement,p=Vs(o);if(u&&!u.shadowRoot&&l(u)===!0)return h6(o);o=o.assignedSlot?o.assignedSlot:u||p===o.ownerDocument?u:p.host}o=c}if(function(f){var h,g,m,x,y=f&&Vs(f),w=(h=y)===null||h===void 0?void 0:h.host,b=!1;if(y&&y!==f)for(b=!!((g=w)!==null&&g!==void 0&&(m=g.ownerDocument)!==null&&m!==void 0&&m.contains(w)||f!=null&&(x=f.ownerDocument)!==null&&x!==void 0&&x.contains(f));!b&&w;){var C,E,k;b=!((E=w=(C=y=Vs(w))===null||C===void 0?void 0:C.host)===null||E===void 0||(k=E.ownerDocument)===null||k===void 0||!k.contains(w))}return b}(o))return!o.getClientRects().length;if(i!=="legacy-full")return!0}return!1}(t,e)||function(o){return o.tagName==="DETAILS"&&Array.prototype.slice.apply(o.children).some(function(r){return r.tagName==="SUMMARY"})}(t)||function(o){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(o.tagName))for(var r=o.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var i=0;i<r.children.length;i++){var l=r.children.item(i);if(l.tagName==="LEGEND")return!!ri.call(r,"fieldset[disabled] *")||!l.contains(o)}return!0}r=r.parentElement}return!1}(t));var n},Yd=function(e,t){return!(function(n){return bp(o=n)&&o.type==="radio"&&!function(r){if(!r.name)return!0;var i,l=r.form||Vs(r),d=function(u){return l.querySelectorAll('input[type="radio"][name="'+u+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")i=d(window.CSS.escape(r.name));else try{i=d(r.name)}catch(u){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",u.message),!1}var c=function(u,p){for(var f=0;f<u.length;f++)if(u[f].checked&&u[f].form===p)return u[f]}(i,r.form);return!c||c===r}(n);var o}(t)||P0(t)<0||!h1(e,t))},Iw=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Dw=function e(t){var n=[],o=[];return t.forEach(function(r,i){var l,d,c,u=!!r.scopeParent,p=u?r.scopeParent:r,f=(d=u,(c=P0(l=p))<0&&d&&!yp(l)?0:c),h=u?e(r.candidates):p;f===0?u?n.push.apply(n,h):n.push(p):o.push({documentOrder:i,tabIndex:f,item:r,isScope:u,content:h})}),o.sort(Rw).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},wp=function(e,t){var n;return n=(t=t||{}).getShadowRoot?xp([e],t.includeContainer,{filter:Yd.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Iw}):gp(e,t.includeContainer,Yd.bind(null,t)),Dw(n)},vp=function(e,t){return(t=t||{}).getShadowRoot?xp([e],t.includeContainer,{filter:h1.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):gp(e,t.includeContainer,h1.bind(null,t))},K0=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ri.call(e,d1)!==!1&&Yd(t,e)},Lw=fp.concat("iframe").join(","),Hs=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ri.call(e,Lw)!==!1&&h1(t,e)};const Ow=Object.freeze(Object.defineProperty({__proto__:null,focusable:vp,getTabIndex:P0,isFocusable:Hs,isTabbable:K0,tabbable:wp},Symbol.toStringTag,{value:"Module"}));function Fc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Pw(e,t,n){return(t=function(o){var r=function(i,l){if(typeof i!="object"||!i)return i;var d=i[Symbol.toPrimitive];if(d!==void 0){var c=d.call(i,l);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(o,"string");return typeof r=="symbol"?r:r+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function f6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p6(Object(n),!0).forEach(function(o){Pw(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p6(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var na=function(e){return e?.key==="Tab"||e?.keyCode===9},Aw=function(e){return na(e)&&!e.shiftKey},Fw=function(e){return na(e)&&e.shiftKey},m6=function(e){return setTimeout(e,0)},jl=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 typeof e=="function"?e.apply(void 0,n):e},hs=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},zw=[];const Bw=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||zw,i=f6({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Aw,isKeyBackward:Fw},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},d=function(_,P,v){return _&&_[P]!==void 0?_[P]:i[v||P]},c=function(_,P){var v=typeof P?.composedPath=="function"?P.composedPath():void 0;return l.containerGroups.findIndex(function(S){var I=S.container,j=S.tabbableNodes;return I.contains(_)||v?.includes(I)||j.find(function(R){return R===_})})},u=function(_){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=P.hasFallback,S=v!==void 0&&v,I=P.params,j=I===void 0?[]:I,R=i[_];if(typeof R=="function"&&(R=R.apply(void 0,function(D){return function(L){if(Array.isArray(L))return Fc(L)}(D)||function(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}(D)||function(L,$){if(L){if(typeof L=="string")return Fc(L,$);var q={}.toString.call(L).slice(8,-1);return q==="Object"&&L.constructor&&(q=L.constructor.name),q==="Map"||q==="Set"?Array.from(L):q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q)?Fc(L,$):void 0}}(D)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}(j))),R===!0&&(R=void 0),!R){if(R===void 0||R===!1)return R;throw new Error("`".concat(_,"` was specified but was not a node, or did not return a node"))}var A=R;if(typeof R=="string"){try{A=o.querySelector(R)}catch(D){throw new Error("`".concat(_,'` appears to be an invalid selector; error="').concat(D.message,'"'))}if(!A&&!S)throw new Error("`".concat(_,"` as selector refers to no known node"))}return A},p=function(){var _=u("initialFocus",{hasFallback:!0});if(_===!1)return!1;if(_===void 0||_&&!Hs(_,i.tabbableOptions))if(c(o.activeElement)>=0)_=o.activeElement;else{var P=l.tabbableGroups[0];_=P&&P.firstTabbableNode||u("fallbackFocus")}else _===null&&(_=u("fallbackFocus"));if(!_)throw new Error("Your focus-trap needs to have at least one focusable element");return _},f=function(){if(l.containerGroups=l.containers.map(function(_){var P=wp(_,i.tabbableOptions),v=vp(_,i.tabbableOptions),S=P.length>0?P[0]:void 0,I=P.length>0?P[P.length-1]:void 0,j=v.find(function(D){return K0(D)}),R=v.slice().reverse().find(function(D){return K0(D)}),A=!!P.find(function(D){return P0(D)>0});return{container:_,tabbableNodes:P,focusableNodes:v,posTabIndexesFound:A,firstTabbableNode:S,lastTabbableNode:I,firstDomTabbableNode:j,lastDomTabbableNode:R,nextTabbableNode:function(D){var L=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],$=P.indexOf(D);return $<0?L?v.slice(v.indexOf(D)+1).find(function(q){return K0(q)}):v.slice(0,v.indexOf(D)).reverse().find(function(q){return K0(q)}):P[$+(L?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(_){return _.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!u("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(_){return _.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(_){var P=_.activeElement;if(P)return P.shadowRoot&&P.shadowRoot.activeElement!==null?h(P.shadowRoot):P},g=function(_){_!==!1&&_!==h(document)&&(_&&_.focus?(_.focus({preventScroll:!!i.preventScroll}),l.mostRecentlyFocusedNode=_,function(P){return P.tagName&&P.tagName.toLowerCase()==="input"&&typeof P.select=="function"}(_)&&_.select()):g(p()))},m=function(_){var P=u("setReturnFocus",{params:[_]});return P||P!==!1&&_},x=function(_){var P=_.target,v=_.event,S=_.isBackward,I=S!==void 0&&S;P=P||hs(v),f();var j=null;if(l.tabbableGroups.length>0){var R=c(P,v),A=R>=0?l.containerGroups[R]:void 0;if(R<0)j=I?l.tabbableGroups[l.tabbableGroups.length-1].lastTabbableNode:l.tabbableGroups[0].firstTabbableNode;else if(I){var D=l.tabbableGroups.findIndex(function(X){var ee=X.firstTabbableNode;return P===ee});if(D<0&&(A.container===P||Hs(P,i.tabbableOptions)&&!K0(P,i.tabbableOptions)&&!A.nextTabbableNode(P,!1))&&(D=R),D>=0){var L=D===0?l.tabbableGroups.length-1:D-1,$=l.tabbableGroups[L];j=P0(P)>=0?$.lastTabbableNode:$.lastDomTabbableNode}else na(v)||(j=A.nextTabbableNode(P,!1))}else{var q=l.tabbableGroups.findIndex(function(X){var ee=X.lastTabbableNode;return P===ee});if(q<0&&(A.container===P||Hs(P,i.tabbableOptions)&&!K0(P,i.tabbableOptions)&&!A.nextTabbableNode(P))&&(q=R),q>=0){var O=q===l.tabbableGroups.length-1?0:q+1,U=l.tabbableGroups[O];j=P0(P)>=0?U.firstTabbableNode:U.firstDomTabbableNode}else na(v)||(j=A.nextTabbableNode(P))}}else j=u("fallbackFocus");return j},y=function(_){var P=hs(_);c(P,_)>=0||(jl(i.clickOutsideDeactivates,_)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):jl(i.allowOutsideClick,_)||_.preventDefault())},w=function(_){var P=hs(_),v=c(P,_)>=0;if(v||P instanceof Document)v&&(l.mostRecentlyFocusedNode=P);else{var S;_.stopImmediatePropagation();var I=!0;if(l.mostRecentlyFocusedNode)if(P0(l.mostRecentlyFocusedNode)>0){var j=c(l.mostRecentlyFocusedNode),R=l.containerGroups[j].tabbableNodes;if(R.length>0){var A=R.findIndex(function(D){return D===l.mostRecentlyFocusedNode});A>=0&&(i.isKeyForward(l.recentNavEvent)?A+1<R.length&&(S=R[A+1],I=!1):A-1>=0&&(S=R[A-1],I=!1))}}else l.containerGroups.some(function(D){return D.tabbableNodes.some(function(L){return P0(L)>0})})||(I=!1);else I=!1;I&&(S=x({target:l.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(l.recentNavEvent)})),g(S||l.mostRecentlyFocusedNode||p())}l.recentNavEvent=void 0},b=function(_){(i.isKeyForward(_)||i.isKeyBackward(_))&&function(P){var v=arguments.length>1&&arguments[1]!==void 0&&arguments[1];l.recentNavEvent=P;var S=x({event:P,isBackward:v});S&&(na(P)&&P.preventDefault(),g(S))}(_,i.isKeyBackward(_))},C=function(_){var P;((P=_)==null?void 0:P.key)!=="Escape"&&P?.key!=="Esc"&&P?.keyCode!==27||jl(i.escapeDeactivates,_)===!1||(_.preventDefault(),n.deactivate())},E=function(_){var P=hs(_);c(P,_)>=0||jl(i.clickOutsideDeactivates,_)||jl(i.allowOutsideClick,_)||(_.preventDefault(),_.stopImmediatePropagation())},k=function(){if(l.active)return function(_,P){if(_.length>0){var v=_[_.length-1];v!==P&&v._setPausedState(!0)}var S=_.indexOf(P);S===-1||_.splice(S,1),_.push(P)}(r,n),l.delayInitialFocusTimer=i.delayInitialFocus?m6(function(){g(p())}):g(p()),o.addEventListener("focusin",w,!0),o.addEventListener("mousedown",y,{capture:!0,passive:!1}),o.addEventListener("touchstart",y,{capture:!0,passive:!1}),o.addEventListener("click",E,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",C),n},M=function(){if(l.active)return o.removeEventListener("focusin",w,!0),o.removeEventListener("mousedown",y,!0),o.removeEventListener("touchstart",y,!0),o.removeEventListener("click",E,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",C),n},T=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(_){_.some(function(P){return Array.from(P.removedNodes).some(function(v){return v===l.mostRecentlyFocusedNode})})&&g(p())}):void 0,F=function(){T&&(T.disconnect(),l.active&&!l.paused&&l.containers.map(function(_){T.observe(_,{subtree:!0,childList:!0})}))};return n={get active(){return l.active},get paused(){return l.paused},activate:function(_){if(l.active)return this;var P=d(_,"onActivate"),v=d(_,"onPostActivate"),S=d(_,"checkCanFocusTrap");S||f(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=h(o),P?.();var I=function(){S&&f(),k(),F(),v?.()};return S?(S(l.containers.concat()).then(I,I),this):(I(),this)},deactivate:function(_){if(!l.active)return this;var P=f6({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},_);clearTimeout(l.delayInitialFocusTimer),l.delayInitialFocusTimer=void 0,M(),l.active=!1,l.paused=!1,F(),function(A,D){var L=A.indexOf(D);L!==-1&&A.splice(L,1),A.length>0&&!A[A.length-1]._isManuallyPaused()&&A[A.length-1]._setPausedState(!1)}(r,n);var v=d(P,"onDeactivate"),S=d(P,"onPostDeactivate"),I=d(P,"checkCanReturnFocus"),j=d(P,"returnFocus","returnFocusOnDeactivate");v?.();var R=function(){m6(function(){j&&g(m(l.nodeFocusedBeforeActivation)),S?.()})};return j&&I?(I(m(l.nodeFocusedBeforeActivation)).then(R,R),this):(R(),this)},pause:function(_){return l.active?(l.manuallyPaused=!0,this._setPausedState(!0,_)):this},unpause:function(_){return l.active?(l.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,_)):this},updateContainerElements:function(_){var P=[].concat(_).filter(Boolean);return l.containers=P.map(function(v){return typeof v=="string"?o.querySelector(v):v}),l.active&&f(),F(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return l.manuallyPaused}},_setPausedState:{value:function(_,P){if(l.paused===_)return this;if(l.paused=_,_){var v=d(P,"onPause"),S=d(P,"onPostPause");v?.(),M(),F(),S?.()}else{var I=d(P,"onUnpause"),j=d(P,"onPostUnpause");I?.(),f(),k(),F(),j?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),Nw=gh(Bw),Vw=gh(Ow);var g6,x6,Hw=function(){if(x6)return g6;function e(f){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(f)}function t(){try{var f=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!f})()}function n(f){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)})(f)}function o(f,h){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,m){return g.__proto__=m,g},o(f,h)}function r(f){var h=function(g,m){if(e(g)!="object"||!g)return g;var x=g[Symbol.toPrimitive];if(x!==void 0){var y=x.call(g,m);if(e(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(f,"string");return e(h)=="symbol"?h:h+""}x6=1;var i=s,l=Ld(),d=Nw.createFocusTrap,c=Vw.isFocusable,u=function(f){function h(g){var m;(function(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")})(this,h),function(w,b,C){(b=r(b))in w?Object.defineProperty(w,b,{value:C,enumerable:!0,configurable:!0,writable:!0}):w[b]=C}(m=function(w,b,C){return b=n(b),function(E,k){if(k&&(e(k)=="object"||typeof k=="function"))return k;if(k!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(E)}(w,t()?Reflect.construct(b,C||[],n(w).constructor):b.apply(w,C))}(this,h,[g]),"getNodeForOption",function(w){var b,C=(b=this.internalOptions[w])!==null&&b!==void 0?b:this.originalOptions[w];if(typeof C=="function"){for(var E=arguments.length,k=new Array(E>1?E-1:0),M=1;M<E;M++)k[M-1]=arguments[M];C=C.apply(void 0,k)}if(C===!0&&(C=void 0),!C){if(C===void 0||C===!1)return C;throw new Error("`".concat(w,"` was specified but was not a node, or did not return a node"))}var T,F=C;if(typeof C=="string"&&!(F=(T=this.getDocument())===null||T===void 0?void 0:T.querySelector(C)))throw new Error("`".concat(w,"` as selector refers to no known node"));return F}),m.handleDeactivate=m.handleDeactivate.bind(m),m.handlePostDeactivate=m.handlePostDeactivate.bind(m),m.handleClickOutsideDeactivates=m.handleClickOutsideDeactivates.bind(m),m.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:m.handleDeactivate,onPostDeactivate:m.handlePostDeactivate,clickOutsideDeactivates:m.handleClickOutsideDeactivates},m.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var x=g.focusTrapOptions;for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(y!=="returnFocusOnDeactivate"&&y!=="onDeactivate"&&y!=="onPostDeactivate"&&y!=="checkCanReturnFocus"&&y!=="clickOutsideDeactivates"?m.internalOptions[y]=x[y]:m.originalOptions[y]=x[y]);return m.outsideClick=null,m.focusTrapElements=g.containerElements||[],m.updatePreviousElement(),m}return function(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),m&&o(g,m)}(h,f),function(g,m){return m&&function(x,y){for(var w=0;w<y.length;w++){var b=y[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(x,r(b.key),b)}}(g.prototype,m),Object.defineProperty(g,"prototype",{writable:!1}),g}(h,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var g=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return g||g!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var g=this.getDocument();g&&(this.previouslyFocusedElement=g.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(g){var m=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,g):this.originalOptions.clickOutsideDeactivates;return m&&(this.outsideClick={target:g.target,allowDeactivation:m}),m}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var g=this,m=function(){var x=g.getReturnFocusNode(),y=!(!g.originalOptions.returnFocusOnDeactivate||x==null||!x.focus||g.outsideClick&&(!g.outsideClick.allowDeactivation||c(g.outsideClick.target,g.internalOptions.tabbableOptions))),w=g.internalOptions.preventScroll,b=w!==void 0&&w;y&&x.focus({preventScroll:b}),g.originalOptions.onPostDeactivate&&g.originalOptions.onPostDeactivate.call(null),g.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(m,m):m()}},{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(g){if(this.focusTrap){g.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var m=!g.active&&this.props.active,x=g.active&&!this.props.active,y=!g.paused&&this.props.paused,w=g.paused&&!this.props.paused;if(m&&(this.updatePreviousElement(),this.focusTrap.activate()),x)return void this.deactivateTrap();y&&this.focusTrap.pause(),w&&this.focusTrap.unpause()}else g.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 g=this,m=this.props.children?i.Children.only(this.props.children):void 0;if(m){if(m.type&&m.type===i.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return i.cloneElement(m,{ref:function(x){var y=g.props.containerElements;m&&(typeof m.ref=="function"?m.ref(x):m.ref&&(m.ref.current=x)),g.focusTrapElements=y||[x]}})}return null}}])}(i.Component),p=typeof Element>"u"?Function:Element;return u.propTypes={active:l.bool,paused:l.bool,focusTrapOptions:l.shape({document:l.object,onActivate:l.func,onPostActivate:l.func,checkCanFocusTrap:l.func,onPause:l.func,onPostPause:l.func,onUnpause:l.func,onPostUnpause:l.func,onDeactivate:l.func,onPostDeactivate:l.func,checkCanReturnFocus:l.func,initialFocus:l.oneOfType([l.instanceOf(p),l.string,l.bool,l.func]),fallbackFocus:l.oneOfType([l.instanceOf(p),l.string,l.func]),escapeDeactivates:l.oneOfType([l.bool,l.func]),clickOutsideDeactivates:l.oneOfType([l.bool,l.func]),returnFocusOnDeactivate:l.bool,setReturnFocus:l.oneOfType([l.instanceOf(p),l.string,l.bool,l.func]),allowOutsideClick:l.oneOfType([l.bool,l.func]),preventScroll:l.bool,tabbableOptions:l.shape({displayCheck:l.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:l.oneOfType([l.bool,l.func])}),trapStack:l.array,isKeyForward:l.func,isKeyBackward:l.func}),containerElements:l.arrayOf(l.instanceOf(p)),children:l.oneOfType([l.element,l.instanceOf(p)])},u.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},g6=u}();const $w=mh(Hw);var y6,b6,Ml={exports:{}},w6={},ps={exports:{}},po={},q0={};function p1(){return b6||(b6=1,Object.defineProperty(q0,"__esModule",{value:!0}),q0.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.`)},q0.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]},q0.int=function(e){return parseInt(e,10)},q0.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},q0.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),q0}var v6,S6,C0={};function Jd(){if(S6)return po;S6=1,Object.defineProperty(po,"__esModule",{value:!0}),po.addClassName=l,po.addEvent=function(c,u,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(u,p,h):c.attachEvent?c.attachEvent("on"+u,p):c["on"+u]=p},po.addUserSelectStyles=function(c){if(!c)return;let u=c.getElementById("react-draggable-style-el");u||(u=c.createElement("style"),u.type="text/css",u.id="react-draggable-style-el",u.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
36
- `,u.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
37
- `,c.getElementsByTagName("head")[0].appendChild(u)),c.body&&l(c.body,"react-draggable-transparent-selection")},po.createCSSTransform=function(c,u){const p=r(c,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},po.createSVGTransform=function(c,u){return r(c,u,"")},po.getTouch=function(c,u){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>u===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>u===p.identifier)},po.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},po.getTranslation=r,po.innerHeight=function(c){let u=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(p.paddingTop),u-=(0,e.int)(p.paddingBottom),u},po.innerWidth=function(c){let u=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(p.paddingLeft),u-=(0,e.int)(p.paddingRight),u},po.matchesSelector=o,po.matchesSelectorAndParentsTo=function(c,u,p){let f=c;do{if(o(f,u))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},po.offsetXYFromParent=function(c,u,p){const f=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect();return{x:(c.clientX+u.scrollLeft-f.left)/p,y:(c.clientY+u.scrollTop-f.top)/p}},po.outerHeight=function(c){let u=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(p.borderTopWidth),u+=(0,e.int)(p.borderBottomWidth),u},po.outerWidth=function(c){let u=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(p.borderLeftWidth),u+=(0,e.int)(p.borderRightWidth),u},po.removeClassName=d,po.removeEvent=function(c,u,p,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(u,p,h):c.detachEvent?c.detachEvent("on"+u,p):c["on"+u]=null},po.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=p1(),t=function(c){if(typeof WeakMap=="function")var u=new WeakMap;return function(p){if(p&&p.__esModule)return p;var f,h,g={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return g;if(f=u){if(f.has(p))return f.get(p);f.set(p,g)}for(const m in p)m!=="default"&&{}.hasOwnProperty.call(p,m)&&((h=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,m))&&(h.get||h.set)?f(g,m,h):g[m]=p[m]);return g}(c)}(function(){if(v6)return C0;v6=1,Object.defineProperty(C0,"__esModule",{value:!0}),C0.browserPrefixToKey=p,C0.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},C0.default=void 0,C0.getPrefix=u;const c=["Moz","Webkit","O","ms"];function u(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||f in h)return"";for(let g=0;g<c.length;g++)if(p(f,c[g])in h)return c[g];return""}function p(f,h){return h?`${h}${function(g){let m="",x=!0;for(let y=0;y<g.length;y++)x?(m+=g[y].toUpperCase(),x=!1):g[y]==="-"?x=!0:m+=g[y];return m}(f)}`:f}return C0.default=u(),C0}());let n="";function o(c,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(p){return(0,e.isFunction)(c[p])})),!!(0,e.isFunction)(c[n])&&c[n](u)}function r(c,u,p){let{x:f,y:h}=c,g=`translate(${f}${p},${h}${p})`;return u&&(g=`translate(${typeof u.x=="string"?u.x:u.x+p}, ${typeof u.y=="string"?u.y:u.y+p})`+g),g}function i(c){if(c)try{if(c.body&&d(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const u=(c.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(c,u){c.classList?c.classList.add(u):c.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(c.className+=` ${u}`)}function d(c,u){c.classList?c.classList.remove(u):c.className=c.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return po}var C6,Xr={};function k6(){if(C6)return Xr;C6=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Xr.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Xr.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),d=n(o);return l?{node:d,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:d,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},Xr.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},Xr.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;var d;l=typeof l=="string"?l:{left:(d=l).left,top:d.top,right:d.right,bottom:d.bottom};const c=n(o);if(typeof l=="string"){const{ownerDocument:u}=c,p=u.defaultView;let f;if(f=l==="parent"?c.parentNode:c.getRootNode().querySelector(l),!(f instanceof p.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const h=f,g=p.getComputedStyle(c),m=p.getComputedStyle(h);l={left:-c.offsetLeft+(0,e.int)(m.paddingLeft)+(0,e.int)(g.marginLeft),top:-c.offsetTop+(0,e.int)(m.paddingTop)+(0,e.int)(g.marginTop),right:(0,t.innerWidth)(h)-(0,t.outerWidth)(c)-c.offsetLeft+(0,e.int)(m.paddingRight)-(0,e.int)(g.marginRight),bottom:(0,t.innerHeight)(h)-(0,t.outerHeight)(c)-c.offsetTop+(0,e.int)(m.paddingBottom)-(0,e.int)(g.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]},Xr.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const d=n(i),c=i.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,c,i.props.scale)},Xr.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=p1(),t=Jd();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Xr}var E6,_6,T6,j6,Rl={},zc={};function M6(){return E6||(E6=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.default=function(){}),zc}function Ww(){return T6||(T6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=function(m){if(typeof WeakMap=="function")var x=new WeakMap;return function(y){if(y&&y.__esModule)return y;var w,b,C={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return C;if(w=x){if(w.has(y))return w.get(y);w.set(y,C)}for(const E in y)E!=="default"&&{}.hasOwnProperty.call(y,E)&&((b=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,E))&&(b.get||b.set)?w(C,E,b):C[E]=y[E]);return C}(m)}(s),n=p(Ld()),o=p(wo),r=function(){if(y6)return ps.exports;function m(y){var w,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var E=y.length;for(w=0;w<E;w++)y[w]&&(b=m(y[w]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,w,b=0,C="",E=arguments.length;b<E;b++)(y=arguments[b])&&(w=m(y))&&(C&&(C+=" "),C+=w);return C}return y6=1,ps.exports=x,ps.exports.clsx=x,ps.exports}(),i=Jd(),l=k6(),d=p1(),c=p(function(){if(_6)return Rl;_6=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.default=void 0;var m=function(v){if(typeof WeakMap=="function")var S=new WeakMap;return function(I){if(I&&I.__esModule)return I;var j,R,A={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return A;if(j=S){if(j.has(I))return j.get(I);j.set(I,A)}for(const D in I)D!=="default"&&{}.hasOwnProperty.call(I,D)&&((R=(j=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,D))&&(R.get||R.set)?j(A,D,R):A[D]=I[D]);return A}(v)}(s),x=k(Ld()),y=k(wo),w=Jd(),b=k6(),C=p1(),E=k(M6());function k(v){return v&&v.__esModule?v:{default:v}}function M(v,S,I){return(S=function(j){var R=function(A,D){if(typeof A!="object"||!A)return A;var L=A[Symbol.toPrimitive];if(L!==void 0){var $=L.call(A,D);if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(j,"string");return typeof R=="symbol"?R:R+""}(S))in v?Object.defineProperty(v,S,{value:I,enumerable:!0,configurable:!0,writable:!0}):v[S]=I,v}const T={start:"touchstart",move:"touchmove",stop:"touchend"},F={start:"mousedown",move:"mousemove",stop:"mouseup"};let _=F,P=class extends m.Component{constructor(){super(...arguments),M(this,"dragging",!1),M(this,"lastX",NaN),M(this,"lastY",NaN),M(this,"touchIdentifier",null),M(this,"mounted",!1),M(this,"handleDragStart",v=>{if(this.props.onMouseDown(v),!this.props.allowAnyClick&&typeof v.button=="number"&&v.button!==0)return!1;const S=this.findDOMNode();if(!S||!S.ownerDocument||!S.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:I}=S;if(this.props.disabled||!(v.target instanceof I.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(v.target,this.props.handle,S)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(v.target,this.props.cancel,S))return;v.type!=="touchstart"||this.props.allowMobileScroll||v.preventDefault();const j=(0,w.getTouchIdentifier)(v);this.touchIdentifier=j;const R=(0,b.getControlPosition)(v,j,this);if(R==null)return;const{x:A,y:D}=R,L=(0,b.createCoreData)(this,A,D);(0,E.default)("DraggableCore: handleDragStart: %j",L),(0,E.default)("calling",this.props.onStart),this.props.onStart(v,L)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(I),this.dragging=!0,this.lastX=A,this.lastY=D,(0,w.addEvent)(I,_.move,this.handleDrag),(0,w.addEvent)(I,_.stop,this.handleDragStop))}),M(this,"handleDrag",v=>{const S=(0,b.getControlPosition)(v,this.touchIdentifier,this);if(S==null)return;let{x:I,y:j}=S;if(Array.isArray(this.props.grid)){let A=I-this.lastX,D=j-this.lastY;if([A,D]=(0,b.snapToGrid)(this.props.grid,A,D),!A&&!D)return;I=this.lastX+A,j=this.lastY+D}const R=(0,b.createCoreData)(this,I,j);if((0,E.default)("DraggableCore: handleDrag: %j",R),this.props.onDrag(v,R)!==!1&&this.mounted!==!1)this.lastX=I,this.lastY=j;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const A=document.createEvent("MouseEvents");A.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(A)}}),M(this,"handleDragStop",v=>{if(!this.dragging)return;const S=(0,b.getControlPosition)(v,this.touchIdentifier,this);if(S==null)return;let{x:I,y:j}=S;if(Array.isArray(this.props.grid)){let D=I-this.lastX||0,L=j-this.lastY||0;[D,L]=(0,b.snapToGrid)(this.props.grid,D,L),I=this.lastX+D,j=this.lastY+L}const R=(0,b.createCoreData)(this,I,j);if(this.props.onStop(v,R)===!1||this.mounted===!1)return!1;const A=this.findDOMNode();A&&this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(A.ownerDocument),(0,E.default)("DraggableCore: handleDragStop: %j",R),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,A&&((0,E.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(A.ownerDocument,_.move,this.handleDrag),(0,w.removeEvent)(A.ownerDocument,_.stop,this.handleDragStop))}),M(this,"onMouseDown",v=>(_=F,this.handleDragStart(v))),M(this,"onMouseUp",v=>(_=F,this.handleDragStop(v))),M(this,"onTouchStart",v=>(_=T,this.handleDragStart(v))),M(this,"onTouchEnd",v=>(_=T,this.handleDragStop(v)))}componentDidMount(){this.mounted=!0;const v=this.findDOMNode();v&&(0,w.addEvent)(v,T.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const v=this.findDOMNode();if(v){const{ownerDocument:S}=v;(0,w.removeEvent)(S,F.move,this.handleDrag),(0,w.removeEvent)(S,T.move,this.handleDrag),(0,w.removeEvent)(S,F.stop,this.handleDragStop),(0,w.removeEvent)(S,T.stop,this.handleDragStop),(0,w.removeEvent)(v,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(S)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:y.default.findDOMNode(this)}render(){return m.cloneElement(m.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Rl.default=P,M(P,"displayName","DraggableCore"),M(P,"propTypes",{allowAnyClick:x.default.bool,allowMobileScroll:x.default.bool,children:x.default.node.isRequired,disabled:x.default.bool,enableUserSelectHack:x.default.bool,offsetParent:function(v,S){if(v[S]&&v[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:x.default.arrayOf(x.default.number),handle:x.default.string,cancel:x.default.string,nodeRef:x.default.object,onStart:x.default.func,onDrag:x.default.func,onStop:x.default.func,onMouseDown:x.default.func,scale:x.default.number,className:C.dontSetMe,style:C.dontSetMe,transform:C.dontSetMe}),M(P,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Rl}()),u=p(M6());function p(m){return m&&m.__esModule?m:{default:m}}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var w in y)({}).hasOwnProperty.call(y,w)&&(m[w]=y[w])}return m},f.apply(null,arguments)}function h(m,x,y){return(x=function(w){var b=function(C,E){if(typeof C!="object"||!C)return C;var k=C[Symbol.toPrimitive];if(k!==void 0){var M=k.call(C,E);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(w,"string");return typeof b=="symbol"?b:b+""}(x))in m?Object.defineProperty(m,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[x]=y,m}class g extends t.Component{static getDerivedStateFromProps(x,y){let{position:w}=x,{prevPropsPosition:b}=y;return!w||b&&w.x===b.x&&w.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:b}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(x){super(x),h(this,"onDragStart",(y,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(y,(0,l.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(y,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const b=(0,l.createDraggableData)(this,w),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:E,y:k}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[M,T]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=M,C.y=T,C.slackX=this.state.slackX+(E-C.x),C.slackY=this.state.slackY+(k-C.y),b.x=C.x,b.y=C.y,b.deltaX=C.x-this.state.x,b.deltaY=C.y-this.state.y}if(this.props.onDrag(y,b)===!1)return!1;this.setState(C)}),h(this,"onDragStop",(y,w)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:E}=this.props.position;b.x=C,b.y=E}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},!x.position||x.onDrag||x.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(){window.SVGElement!==void 0&&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:x,bounds:y,children:w,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:E,defaultClassNameDragged:k,position:M,positionOffset:T,scale:F,..._}=this.props;let P={},v=null;const S=!M||this.state.dragging,I=M||b,j={x:(0,l.canDragX)(this)&&S?this.state.x:I.x,y:(0,l.canDragY)(this)&&S?this.state.y:I.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(j,T):P=(0,i.createCSSTransform)(j,T);const R=(0,r.clsx)(w.props.className||"",C,{[E]:this.state.dragging,[k]:this.state.dragged});return t.createElement(c.default,f({},_,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:R,style:{...w.props.style,...P},transform:v}))}}e.default=g,h(g,"displayName","Draggable"),h(g,"propTypes",{...c.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:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),h(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(w6)),w6}var Uw=function(){if(j6)return Ml.exports;j6=1;const{default:e,DraggableCore:t}=Ww();return Ml.exports=e,Ml.exports.default=e,Ml.exports.DraggableCore=t,Ml.exports}();const qw=mh(Uw),R6={x:0,y:0},Zw=s.memo(s.forwardRef((e,t)=>{const{defaultPosition:n=R6,PaperComponent:o=N.Paper,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:l=".draggable-title",titleSize:d,rootSize:c,...u}=e,p=s.useRef(null),f=s.useMemo(()=>d&&c?{left:0,top:0,right:c.width-d.width,bottom:c.height-d.height}:null,[d,c]),[h,g]=s.useState(null),[m,x]=s.useState(null),[y,w]=s.useState(null);return s.useLayoutEffect(()=>{!h&&n&&g(n??R6)},[n]),s.useEffect(()=>{f&&h&&x({x:Math.max(0,Math.min(h.x,f.right)),y:Math.max(0,Math.min(h.y,f.bottom))})},[h,f]),a.jsx(qw,{nodeRef:p,handle:l,cancel:'[class*="MuiDialogContent-root"]',position:m,bounds:f??".MuiModal-root",onStop:r,onStart:(b,C)=>{const E=b;w({x:(E.clientX??E.touches?.[0]?.clientX)-C.x,y:(E.clientY??E.touches?.[0]?.clientY)-C.y})},onDrag:(b,C)=>{const E=b,k=E.clientX??E.touches?.[0]?.clientX,M=E.clientY??E.touches?.[0]?.clientY;g({x:k-y.x,y:M-y.y})},children:a.jsx(o,{ref:s1([p,t]),...u})})})),Gw={x:"50",y:"50"},Sp=s.memo(s.forwardRef((e,t)=>{const n=function({props:de,name:ye}){return Zx({props:de,name:ye,defaultTheme:N2,themeId:D2})}({props:e,name:"MuiDialog"}),o=V2(),r={enter:.66*o.transitions.duration.enteringScreen,exit:.66*o.transitions.duration.leavingScreen},{title:i="SheetXL",key:l="draggable-window",onCancel:d,onDone:c,onShow:u,onShown:p,onHide:f,open:h,autoFocusSel:g,children:m,TransitionComponent:x=N.Fade,TransitionProps:y,transitionDuration:w=r,BackdropComponent:b=N.Backdrop,BackdropProps:C,PaperComponent:E=N.Paper,PaperProps:k,onBackdropClick:M,sx:T,className:F,onMouseDown:_,initialPosition:P=Gw,isModal:v=!1,...S}=n,I=s.useRef(null),[j,R]=s.useState(null),[A,D]=s.useState(!1),[L,$]=s.useState(!1),q=s.useRef(null),[O,U]=n6(),X=s.useRef(null),[ee,V]=n6(),H=s.useRef(null);s.useEffect(()=>{j&&D(h)},[h,j]);const z=un(()=>{d?.(),D(!1)},[d]);s.useEffect(()=>{if(U.width===0&&U.height===0||j)return;const de=H.current?.getBoundingClientRect(),ye=U.height-de.height,ze=U.width-de.width;let $e=.5*ze,gt=.5*ye;typeof P?.x=="number"?$e=P.x:typeof P?.x=="string"&&($e=ze*(parseFloat(P.x)/100)),typeof P?.y=="number"?gt=P.y:typeof P?.y=="string"&&(gt=ye*(parseFloat(P.y)/100)),R({x:$e,y:gt})},[U,V]);const[W,G]=s.useState(!1),[Q,Y]=s.useState(null),[te,le]=s.useState(null),me=un(de=>{if(Q)return Q.focus(de),!0;if(g){const ye=X.current?.querySelectorAll?.(g);if(ye&&ye.length>0)return ye[0]?.focus?.(de),!0}return X.current?.focus?.(de),!1},[Q,g]),J=B1(t,()=>({focus:de=>{me(de)}}),[]),ae={...y,onExited:de=>{c?.(null),y?.onExited?.(de)},onExit:de=>{const ye=te;ye&&requestAnimationFrame(()=>{J.current?.contains(document.activeElement)&&ye.focus()}),f?.(),$(!1),y?.onExit?.(de)},onEntered:(de,ye)=>{u?.(),y?.onEntered?.(de,ye)},onEntering:(de,ye)=>{$(!0),p?.(J.current)}};s.useEffect(()=>{L&&me()},[L]);const ke=a.jsx($w,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:I,active:L,children:a.jsx(x,{in:A,timeout:w,role:"presentation",...ae,children:a.jsx(N.Box,{className:"MuiDialog-container",ref:X,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:de=>{de.which===Fo.Escape&&(z(),q.current?.start(de,{center:!1}),setTimeout(()=>q.current?.stop(de),180)),de.stopPropagation()},children:a.jsxs(Zw,{ref:s1([H,t]),className:To({"Mui-focusVisible":W},F),sx:{"& *":de=>J2(de),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:de=>`solid ${dt.alpha(de.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:de=>`solid ${dt.alpha(de.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...T},defaultPosition:j,titleSize:V,rootSize:U,PaperComponent:E,...S,...k,children:[i?a.jsx(N.DialogTitle,{className:To({"Mui-selected":W},"draggable-title"),sx:{cursor:"move",display:"flex",color:de=>de.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:de=>`${de.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:de=>de.transitions.duration.shortest/2+"ms"},backgroundColor:de=>dt.alpha(de.palette.action.hover,.03)},ref:ee,children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:de=>de.spacing(1),marginLeft:de=>de.spacing(1),marginRight:de=>de.spacing(1)},children:[a.jsx(N.Box,{sx:{flex:"1 1 100%",paddingLeft:de=>de.spacing(1)},children:i}),a.jsx(zo,{label:"Close",children:a.jsx(N.IconButton,{"aria-label":"close",sx:{color:de=>de.palette.text.icon??de.palette.action.active},touchRippleRef:q,onPointerDown:de=>{q.current?.start(de,{center:!1}),de.stopPropagation(),de.preventDefault()},onPointerUp:z,children:a.jsx(yn.Close,{})})})]})}):null,m]})})})});let De=null;v&&(De=a.jsx(b,{...C,open:A,onMouseDown:de=>{z(),C?.onMouseDown?.(de)},onClick:de=>{M?.(de),C?.onClick?.(de)},sx:{pointerEvents:"auto",...C?.sx}}));const{getPortalContainer:ne}=q2();return wo.createPortal(a.jsxs(N.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:s1([J,O]),onPointerDown:de=>{W&&(de.target===X.current||de.target.tabIndex<0)&&X.current?.contains(document.activeElement)},onContextMenu:de=>{de.isPropagationStopped()||de.preventDefault()},onFocus:de=>{!W&&(de.target===X.current||de.target.tabIndex<0)&&setTimeout(()=>{me()},100),I.current?.focusTrap?.unpause(),G(!0),X.current?.contains(de.target)&&de.target!==X.current&&Y(de.target),de.relatedTarget&&!te&&le(de.relatedTarget)},onBlur:de=>{J?.current?.contains(de.relatedTarget)||(le(null),I.current?.focusTrap?.pause(),G(!1))},children:[De,ke]}),ne(),l+"")}));var Ir=typeof window<"u"?window:{screen:{},navigator:{}},tl=(Ir.matchMedia||function(){return{matches:!1}}).bind(Ir),Kw={get passive(){return!0}},I6=function(){};Ir.addEventListener&&Ir.addEventListener("p",I6,Kw),Ir.removeEventListener&&Ir.removeEventListener("p",I6,!1);var eu="ontouchstart"in Ir,Xw=eu||"TouchEvent"in Ir&&tl("(any-pointer: coarse)").matches,D6=(Ir.navigator.maxTouchPoints||0)>0||Xw,Cp=Ir.navigator.userAgent||"",Yw=tl("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Cp)&&Math.min(Ir.screen.width||0,Ir.screen.height||0)>=768,kp=(tl("(pointer: coarse)").matches||!tl("(pointer: fine)").matches&&eu)&&!/Windows.*Firefox/.test(Cp),Jw=tl("(any-pointer: fine)").matches||tl("(any-hover: hover)").matches||Yw||!eu,L6=!D6||!Jw&&kp?D6?"touchOnly":"mouseOnly":"hybrid",Qw=L6==="mouseOnly"?"mouse":L6==="touchOnly"||kp?"touch":"mouse",oa=e=>e.type==="checkbox",ei=e=>e instanceof Date,Jo=e=>e==null;const Ep=e=>typeof e=="object";var vo=e=>!Jo(e)&&!Array.isArray(e)&&Ep(e)&&!ei(e),tu=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function Vo(e){let t;const n=Array.isArray(e),o=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(tu&&(e instanceof Blob||o)||!n&&!vo(e))return e;if(t=n?[]:{},n||(r=>{const i=r.constructor&&r.constructor.prototype;return vo(i)&&i.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=Vo(e[r]));else t=e}return t}var V1=e=>/^\w*$/.test(e),Co=e=>e===void 0,Qd=e=>Array.isArray(e)?e.filter(Boolean):[],nu=e=>Qd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ft=(e,t,n)=>{if(!t||!vo(e))return n;const o=(V1(t)?[t]:nu(t)).reduce((r,i)=>Jo(r)?r:r[i],e);return Co(o)||o===e?Co(e[t])?n:e[t]:o},t0=e=>typeof e=="boolean",Zn=(e,t,n)=>{let o=-1;const r=V1(t)?[t]:nu(t),i=r.length,l=i-1;for(;++o<i;){const d=r[o];let c=n;if(o!==l){const u=e[d];c=vo(u)||Array.isArray(u)?u:isNaN(+r[o+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=c,e=e[d]}};const _p="onChange",Tp="onSubmit",wa="all",O6="pattern",P6="required",jp=s.createContext(null);jp.displayName="HookFormContext";const ev=e=>{const{children:t,...n}=e;return s.createElement(jp.Provider,{value:n},t)},tv=typeof window<"u"?z0.useLayoutEffect:z0.useEffect;var o0=e=>typeof e=="string",nv=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},ql=e=>Array.isArray(e)?e:[e],A6=()=>{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(n=>n!==t)}}),unsubscribe:()=>{e=[]}}},e2=e=>Jo(e)||!Ep(e);function A0(e,t){if(e2(e)||e2(t))return e===t;if(ei(e)&&ei(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 i=e[r];if(!o.includes(r))return!1;if(r!=="ref"){const l=t[r];if(ei(i)&&ei(l)||vo(i)&&vo(l)||Array.isArray(i)&&Array.isArray(l)?!A0(i,l):i!==l)return!1}}return!0}var or=e=>vo(e)&&!Object.keys(e).length,ou=e=>e.type==="file",Hr=e=>typeof e=="function",f1=e=>{if(!tu)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Mp=e=>e.type==="select-multiple",ru=e=>e.type==="radio",Bc=e=>f1(e)&&e.isConnected;function Eo(e,t){const n=Array.isArray(t)?t:V1(t)?[t]:nu(t),o=n.length===1?e:function(l,d){const c=d.slice(0,-1).length;let u=0;for(;u<c;)l=Co(l)?u++:l[d[u++]];return l}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(vo(o)&&or(o)||Array.isArray(o)&&function(l){for(const d in l)if(l.hasOwnProperty(d)&&!Co(l[d]))return!1;return!0}(o))&&Eo(e,n.slice(0,-1)),e}var Rp=e=>{for(const t in e)if(Hr(e[t]))return!0;return!1};function m1(e,t={}){const n=Array.isArray(e);if(vo(e)||n)for(const o in e)Array.isArray(e[o])||vo(e[o])&&!Rp(e[o])?(t[o]=Array.isArray(e[o])?[]:{},m1(e[o],t[o])):Jo(e[o])||(t[o]=!0);return t}function Ip(e,t,n){const o=Array.isArray(e);if(vo(e)||o)for(const r in e)Array.isArray(e[r])||vo(e[r])&&!Rp(e[r])?Co(t)||e2(n[r])?n[r]=Array.isArray(e[r])?m1(e[r],[]):{...m1(e[r])}:Ip(e[r],Jo(t)?{}:t[r],n[r]):n[r]=!A0(e[r],t[r]);return n}var Il=(e,t)=>Ip(e,t,m1(t));const F6={value:!1,isValid:!1},z6={value:!0,isValid:!0};var Dp=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Co(e[0].attributes.value)?Co(e[0].value)||e[0].value===""?z6:{value:e[0].value,isValid:!0}:z6:F6}return F6},Lp=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Co(e)?e:t?e===""?NaN:e&&+e:n&&o0(e)?new Date(e):o?o(e):e;const B6={isValid:!1,value:null};var Op=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,B6):B6;function N6(e){const t=e.ref;return ou(t)?t.files:ru(t)?Op(e.refs).value:Mp(t)?[...t.selectedOptions].map(({value:n})=>n):oa(t)?Dp(e.refs).value:Lp(Co(t.value)?e.ref.value:t.value,e)}var g1=e=>e instanceof RegExp,Dl=e=>Co(e)?e:g1(e)?e.source:vo(e)?g1(e.value)?e.value.source:e.value:e,V6=e=>({isOnSubmit:!e||e===Tp,isOnBlur:e==="onBlur",isOnChange:e===_p,isOnAll:e===wa,isOnTouch:e==="onTouched"});const H6="AsyncFunction";var ov=e=>!!e&&!!e.validate&&!!(Hr(e.validate)&&e.validate.constructor.name===H6||vo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===H6)),$6=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const ra=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=Ft(e,r);if(i){const{_f:l,...d}=i;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],r)&&!o||l.ref&&t(l.ref,l.name)&&!o)return!0;if(ra(d,t))break}else if(vo(d)&&ra(d,t))break}}};function W6(e,t,n){const o=Ft(e,n);if(o||V1(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),l=Ft(t,i),d=Ft(e,i);if(l&&!Array.isArray(l)&&n!==i)return{name:n};if(d&&d.type)return{name:i,error:d};if(d&&d.root&&d.root.type)return{name:`${i}.root`,error:d.root};r.pop()}return{name:n}}var rv=(e,t,n)=>{const o=ql(Ft(e,n));return Zn(o,"root",t[n]),Zn(e,n,o),e},$s=e=>o0(e);function U6(e,t,n="validate"){if($s(e)||Array.isArray(e)&&e.every($s)||t0(e)&&!e)return{type:n,message:$s(e)?e:"",ref:t}}var ki=e=>vo(e)&&!g1(e)?e:{value:e,message:""},q6=async(e,t,n,o,r,i)=>{const{ref:l,refs:d,required:c,maxLength:u,minLength:p,min:f,max:h,pattern:g,validate:m,name:x,valueAsNumber:y,mount:w}=e._f,b=Ft(n,x);if(!w||t.has(x))return{};const C=d?d[0]:l,E=S=>{r&&C.reportValidity&&(C.setCustomValidity(t0(S)?"":S||""),C.reportValidity())},k={},M=ru(l),T=oa(l),F=M||T,_=(y||ou(l))&&Co(l.value)&&Co(b)||f1(l)&&l.value===""||b===""||Array.isArray(b)&&!b.length,P=nv.bind(null,x,o,k),v=(S,I,j,R="maxLength",A="minLength")=>{const D=S?I:j;k[x]={type:S?R:A,message:D,ref:l,...P(S?R:A,D)}};if(i?!Array.isArray(b)||!b.length:c&&(!F&&(_||Jo(b))||t0(b)&&!b||T&&!Dp(d).isValid||M&&!Op(d).isValid)){const{value:S,message:I}=$s(c)?{value:!!c,message:c}:ki(c);if(S&&(k[x]={type:P6,message:I,ref:C,...P(P6,I)},!o))return E(I),k}if(!(_||Jo(f)&&Jo(h))){let S,I;const j=ki(h),R=ki(f);if(Jo(b)||isNaN(b)){const A=l.valueAsDate||new Date(b),D=q=>new Date(new Date().toDateString()+" "+q),L=l.type=="time",$=l.type=="week";o0(j.value)&&b&&(S=L?D(b)>D(j.value):$?b>j.value:A>new Date(j.value)),o0(R.value)&&b&&(I=L?D(b)<D(R.value):$?b<R.value:A<new Date(R.value))}else{const A=l.valueAsNumber||b&&+b;Jo(j.value)||(S=A>j.value),Jo(R.value)||(I=A<R.value)}if((S||I)&&(v(!!S,j.message,R.message,"max","min"),!o))return E(k[x].message),k}if((u||p)&&!_&&(o0(b)||i&&Array.isArray(b))){const S=ki(u),I=ki(p),j=!Jo(S.value)&&b.length>+S.value,R=!Jo(I.value)&&b.length<+I.value;if((j||R)&&(v(j,S.message,I.message),!o))return E(k[x].message),k}if(g&&!_&&o0(b)){const{value:S,message:I}=ki(g);if(g1(S)&&!b.match(S)&&(k[x]={type:O6,message:I,ref:l,...P(O6,I)},!o))return E(I),k}if(m){if(Hr(m)){const S=U6(await m(b,n),C);if(S&&(k[x]={...S,...P("validate",S.message)},!o))return E(S.message),k}else if(vo(m)){let S={};for(const I in m){if(!or(S)&&!o)break;const j=U6(await m[I](b,n),C,I);j&&(S={...j,...P(I,j.message)},E(j.message),o&&(k[x]=S))}if(!or(S)&&(k[x]={ref:C,...S},!o))return k}}return E(!0),k};const iv={mode:Tp,reValidateMode:_p,shouldFocusError:!0};function lv(e={}){let t={...iv,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Hr(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=(vo(t.defaultValues)||vo(t.values))&&Vo(t.defaultValues||t.values)||{},l=t.shouldUnregister?{}:Vo(i),d={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let f={...p};const h={array:A6(),state:A6()},g=t.criteriaMode===wa,m=async V=>{if(!t.disabled&&(p.isValid||f.isValid||V)){const H=t.resolver?or((await b()).errors):await C(o,!0);H!==n.isValid&&h.state.next({isValid:H})}},x=(V,H)=>{!t.disabled&&(p.isValidating||p.validatingFields||f.isValidating||f.validatingFields)&&((V||Array.from(c.mount)).forEach(z=>{z&&(H?Zn(n.validatingFields,z,H):Eo(n.validatingFields,z))}),h.state.next({validatingFields:n.validatingFields,isValidating:!or(n.validatingFields)}))},y=(V,H,z,W)=>{const G=Ft(o,V);if(G){const Q=Ft(l,V,Co(z)?Ft(i,V):z);Co(Q)||W&&W.defaultChecked||H?Zn(l,V,H?Q:N6(G._f)):M(V,Q),d.mount&&m()}},w=(V,H,z,W,G)=>{let Q=!1,Y=!1;const te={name:V};if(!t.disabled){if(!z||W){(p.isDirty||f.isDirty)&&(Y=n.isDirty,n.isDirty=te.isDirty=E(),Q=Y!==te.isDirty);const le=A0(Ft(i,V),H);Y=!!Ft(n.dirtyFields,V),le?Eo(n.dirtyFields,V):Zn(n.dirtyFields,V,!0),te.dirtyFields=n.dirtyFields,Q=Q||(p.dirtyFields||f.dirtyFields)&&Y!==!le}if(z){const le=Ft(n.touchedFields,V);le||(Zn(n.touchedFields,V,z),te.touchedFields=n.touchedFields,Q=Q||(p.touchedFields||f.touchedFields)&&le!==z)}Q&&G&&h.state.next(te)}return Q?te:{}},b=async V=>{x(V,!0);const H=await t.resolver(l,t.context,((z,W,G,Q)=>{const Y={};for(const te of z){const le=Ft(W,te);le&&Zn(Y,te,le._f)}return{criteriaMode:G,names:[...z],fields:Y,shouldUseNativeValidation:Q}})(V||c.mount,o,t.criteriaMode,t.shouldUseNativeValidation));return x(V),H},C=async(V,H,z={valid:!0})=>{for(const W in V){const G=V[W];if(G){const{_f:Q,...Y}=G;if(Q){const te=c.array.has(Q.name),le=G._f&&ov(G._f);le&&p.validatingFields&&x([W],!0);const me=await q6(G,c.disabled,l,g,t.shouldUseNativeValidation&&!H,te);if(le&&p.validatingFields&&x([W]),me[Q.name]&&(z.valid=!1,H))break;!H&&(Ft(me,Q.name)?te?rv(n.errors,me,Q.name):Zn(n.errors,Q.name,me[Q.name]):Eo(n.errors,Q.name))}!or(Y)&&await C(Y,H,z)}}return z.valid},E=(V,H)=>!t.disabled&&(V&&H&&Zn(l,V,H),!A0(S(),i)),k=(V,H,z)=>((W,G,Q,Y,te)=>o0(W)?(Y&&G.watch.add(W),Ft(Q,W,te)):Array.isArray(W)?W.map(le=>(Y&&G.watch.add(le),Ft(Q,le))):(Y&&(G.watchAll=!0),Q))(V,c,{...d.mount?l:Co(H)?i:o0(V)?{[V]:H}:H},z,H),M=(V,H,z={})=>{const W=Ft(o,V);let G=H;if(W){const Q=W._f;Q&&(!Q.disabled&&Zn(l,V,Lp(H,Q)),G=f1(Q.ref)&&Jo(H)?"":H,Mp(Q.ref)?[...Q.ref.options].forEach(Y=>Y.selected=G.includes(Y.value)):Q.refs?oa(Q.ref)?Q.refs.forEach(Y=>{Y.defaultChecked&&Y.disabled||(Array.isArray(G)?Y.checked=!!G.find(te=>te===Y.value):Y.checked=G===Y.value||!!G)}):Q.refs.forEach(Y=>Y.checked=Y.value===G):ou(Q.ref)?Q.ref.value="":(Q.ref.value=G,Q.ref.type||h.state.next({name:V,values:Vo(l)})))}(z.shouldDirty||z.shouldTouch)&&w(V,G,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&v(V)},T=(V,H,z)=>{for(const W in H){if(!H.hasOwnProperty(W))return;const G=H[W],Q=V+"."+W,Y=Ft(o,Q);(c.array.has(V)||vo(G)||Y&&!Y._f)&&!ei(G)?T(Q,G,z):M(Q,G,z)}},F=(V,H,z={})=>{const W=Ft(o,V),G=c.array.has(V),Q=Vo(H);Zn(l,V,Q),G?(h.array.next({name:V,values:Vo(l)}),(p.isDirty||p.dirtyFields||f.isDirty||f.dirtyFields)&&z.shouldDirty&&h.state.next({name:V,dirtyFields:Il(i,l),isDirty:E(V,Q)})):!W||W._f||Jo(Q)?M(V,Q,z):T(V,Q,z),$6(V,c)&&h.state.next({...n}),h.state.next({name:d.mount?V:void 0,values:Vo(l)})},_=async V=>{d.mount=!0;const H=V.target;let z=H.name,W=!0;const G=Ft(o,z),Q=me=>{W=Number.isNaN(me)||ei(me)&&isNaN(me.getTime())||A0(me,Ft(l,z,me))},Y=V6(t.mode),te=V6(t.reValidateMode);if(G){let me,J;const ae=H.type?N6(G._f):vo(le=V)&&le.target?oa(le.target)?le.target.checked:le.target.value:le,ke=V.type==="blur"||V.type==="focusout",De=!(ze=>ze.mount&&(ze.required||ze.min||ze.max||ze.maxLength||ze.minLength||ze.pattern||ze.validate))(G._f)&&!t.resolver&&!Ft(n.errors,z)&&!G._f.deps||((ze,$e,gt,bt,Se)=>!Se.isOnAll&&(!gt&&Se.isOnTouch?!($e||ze):(gt?bt.isOnBlur:Se.isOnBlur)?!ze:!(gt?bt.isOnChange:Se.isOnChange)||ze))(ke,Ft(n.touchedFields,z),n.isSubmitted,te,Y),ne=$6(z,c,ke);Zn(l,z,ae),ke?(G._f.onBlur&&G._f.onBlur(V),r&&r(0)):G._f.onChange&&G._f.onChange(V);const de=w(z,ae,ke),ye=!or(de)||ne;if(!ke&&h.state.next({name:z,type:V.type,values:Vo(l)}),De)return(p.isValid||f.isValid)&&(t.mode==="onBlur"?ke&&m():ke||m()),ye&&h.state.next({name:z,...ne?{}:de});if(!ke&&ne&&h.state.next({...n}),t.resolver){const{errors:ze}=await b([z]);if(Q(ae),W){const $e=W6(n.errors,o,z),gt=W6(ze,o,$e.name||z);me=gt.error,z=gt.name,J=or(ze)}}else x([z],!0),me=(await q6(G,c.disabled,l,g,t.shouldUseNativeValidation))[z],x([z]),Q(ae),W&&(me?J=!1:(p.isValid||f.isValid)&&(J=await C(o,!0)));W&&(G._f.deps&&v(G._f.deps),((ze,$e,gt,bt)=>{const Se=Ft(n.errors,ze),ht=(p.isValid||f.isValid)&&t0($e)&&n.isValid!==$e;var xt;if(t.delayError&&gt?(xt=()=>((Ne,wt)=>{Zn(n.errors,Ne,wt),h.state.next({errors:n.errors})})(ze,gt),r=Ne=>{clearTimeout(u),u=setTimeout(xt,Ne)},r(t.delayError)):(clearTimeout(u),r=null,gt?Zn(n.errors,ze,gt):Eo(n.errors,ze)),(gt?!A0(Se,gt):Se)||!or(bt)||ht){const Ne={...bt,...ht&&t0($e)?{isValid:$e}:{},errors:n.errors,name:ze};n={...n,...Ne},h.state.next(Ne)}})(z,J,me,de))}var le},P=(V,H)=>{if(Ft(n.errors,H)&&V.focus)return V.focus(),1},v=async(V,H={})=>{let z,W;const G=ql(V);if(t.resolver){const Q=await(async Y=>{const{errors:te}=await b(Y);if(Y)for(const le of Y){const me=Ft(te,le);me?Zn(n.errors,le,me):Eo(n.errors,le)}else n.errors=te;return te})(Co(V)?V:G);z=or(Q),W=V?!G.some(Y=>Ft(Q,Y)):z}else V?(W=(await Promise.all(G.map(async Q=>{const Y=Ft(o,Q);return await C(Y&&Y._f?{[Q]:Y}:Y)}))).every(Boolean),(W||n.isValid)&&m()):W=z=await C(o);return h.state.next({...!o0(V)||(p.isValid||f.isValid)&&z!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:z}:{},errors:n.errors}),H.shouldFocus&&!W&&ra(o,P,V?G:c.mount),W},S=V=>{const H={...d.mount?l:i};return Co(V)?H:o0(V)?Ft(H,V):V.map(z=>Ft(H,z))},I=(V,H)=>({invalid:!!Ft((H||n).errors,V),isDirty:!!Ft((H||n).dirtyFields,V),error:Ft((H||n).errors,V),isValidating:!!Ft(n.validatingFields,V),isTouched:!!Ft((H||n).touchedFields,V)}),j=(V,H,z)=>{const W=(Ft(o,V,{_f:{}})._f||{}).ref,G=Ft(n.errors,V)||{},{ref:Q,message:Y,type:te,...le}=G;Zn(n.errors,V,{...le,...H,ref:W}),h.state.next({name:V,errors:n.errors,isValid:!1}),z&&z.shouldFocus&&W&&W.focus&&W.focus()},R=V=>h.state.subscribe({next:H=>{var z,W,G;z=V.name,W=H.name,G=V.exact,z&&W&&z!==W&&!ql(z).some(Q=>Q&&(G?Q===W:Q.startsWith(W)||W.startsWith(Q)))||!((Q,Y,te,le)=>{te(Q);const{name:me,...J}=Q;return or(J)||Object.keys(J).length>=Object.keys(Y).length||Object.keys(J).find(ae=>Y[ae]===(!le||wa))})(H,V.formState||p,X,V.reRenderRoot)||V.callback({values:{...l},...n,...H})}}).unsubscribe,A=(V,H={})=>{for(const z of V?ql(V):c.mount)c.mount.delete(z),c.array.delete(z),H.keepValue||(Eo(o,z),Eo(l,z)),!H.keepError&&Eo(n.errors,z),!H.keepDirty&&Eo(n.dirtyFields,z),!H.keepTouched&&Eo(n.touchedFields,z),!H.keepIsValidating&&Eo(n.validatingFields,z),!t.shouldUnregister&&!H.keepDefaultValue&&Eo(i,z);h.state.next({values:Vo(l)}),h.state.next({...n,...H.keepDirty?{isDirty:E()}:{}}),!H.keepIsValid&&m()},D=({disabled:V,name:H})=>{(t0(V)&&d.mount||V||c.disabled.has(H))&&(V?c.disabled.add(H):c.disabled.delete(H))},L=(V,H={})=>{let z=Ft(o,V);const W=t0(H.disabled)||t0(t.disabled);return Zn(o,V,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:V}},name:V,mount:!0,...H}}),c.mount.add(V),z?D({disabled:t0(H.disabled)?H.disabled:t.disabled,name:V}):y(V,!0,H.value),{...W?{disabled:H.disabled||t.disabled}:{},...t.progressive?{required:!!H.required,min:Dl(H.min),max:Dl(H.max),minLength:Dl(H.minLength),maxLength:Dl(H.maxLength),pattern:Dl(H.pattern)}:{},name:V,onChange:_,onBlur:_,ref:G=>{if(G){L(V,H),z=Ft(o,V);const Q=Co(G.value)&&G.querySelectorAll&&G.querySelectorAll("input,select,textarea")[0]||G,Y=(le=>ru(le)||oa(le))(Q),te=z._f.refs||[];if(Y?te.find(le=>le===Q):Q===z._f.ref)return;Zn(o,V,{_f:{...z._f,...Y?{refs:[...te.filter(Bc),Q,...Array.isArray(Ft(i,V))?[{}]:[]],ref:{type:Q.type,name:V}}:{ref:Q}}}),y(V,!1,void 0,Q)}else z=Ft(o,V,{}),z._f&&(z._f.mount=!1),(t.shouldUnregister||H.shouldUnregister)&&(!((Q,Y)=>Q.has((te=>te.substring(0,te.search(/\.\d+(\.|$)/))||te)(Y)))(c.array,V)||!d.action)&&c.unMount.add(V)}}},$=()=>t.shouldFocusError&&ra(o,P,c.mount),q=(V,H)=>async z=>{let W;z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let G=Vo(l);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:Q,values:Y}=await b();n.errors=Q,G=Y}else await C(o);if(c.disabled.size)for(const Q of c.disabled)Zn(G,Q,void 0);if(Eo(n.errors,"root"),or(n.errors)){h.state.next({errors:{}});try{await V(G,z)}catch(Q){W=Q}}else H&&await H({...n.errors},z),$(),setTimeout($);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:or(n.errors)&&!W,submitCount:n.submitCount+1,errors:n.errors}),W)throw W},O=(V,H={})=>{const z=V?Vo(V):i,W=Vo(z),G=or(V),Q=G?i:W;if(H.keepDefaultValues||(i=z),!H.keepValues){if(H.keepDirtyValues){const Y=new Set([...c.mount,...Object.keys(Il(i,l))]);for(const te of Array.from(Y))Ft(n.dirtyFields,te)?Zn(Q,te,Ft(l,te)):F(te,Ft(Q,te))}else{if(tu&&Co(V))for(const Y of c.mount){const te=Ft(o,Y);if(te&&te._f){const le=Array.isArray(te._f.refs)?te._f.refs[0]:te._f.ref;if(f1(le)){const me=le.closest("form");if(me){me.reset();break}}}}for(const Y of c.mount)F(Y,Ft(Q,Y))}l=Vo(Q),h.array.next({values:{...Q}}),h.state.next({values:{...Q}})}c={mount:H.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!p.isValid||!!H.keepIsValid||!!H.keepDirtyValues,d.watch=!!t.shouldUnregister,h.state.next({submitCount:H.keepSubmitCount?n.submitCount:0,isDirty:!G&&(H.keepDirty?n.isDirty:!(!H.keepDefaultValues||A0(V,i))),isSubmitted:!!H.keepIsSubmitted&&n.isSubmitted,dirtyFields:G?{}:H.keepDirtyValues?H.keepDefaultValues&&l?Il(i,l):n.dirtyFields:H.keepDefaultValues&&V?Il(i,V):H.keepDirty?n.dirtyFields:{},touchedFields:H.keepTouched?n.touchedFields:{},errors:H.keepErrors?n.errors:{},isSubmitSuccessful:!!H.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},U=(V,H)=>O(Hr(V)?V(l):V,H),X=V=>{n={...n,...V}},ee={control:{register:L,unregister:A,getFieldState:I,handleSubmit:q,setError:j,_subscribe:R,_runSchema:b,_focusError:$,_getWatch:k,_getDirty:E,_setValid:m,_setFieldArray:(V,H=[],z,W,G=!0,Q=!0)=>{if(W&&z&&!t.disabled){if(d.action=!0,Q&&Array.isArray(Ft(o,V))){const Y=z(Ft(o,V),W.argA,W.argB);G&&Zn(o,V,Y)}if(Q&&Array.isArray(Ft(n.errors,V))){const Y=z(Ft(n.errors,V),W.argA,W.argB);G&&Zn(n.errors,V,Y),((te,le)=>{!Qd(Ft(te,le)).length&&Eo(te,le)})(n.errors,V)}if((p.touchedFields||f.touchedFields)&&Q&&Array.isArray(Ft(n.touchedFields,V))){const Y=z(Ft(n.touchedFields,V),W.argA,W.argB);G&&Zn(n.touchedFields,V,Y)}(p.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Il(i,l)),h.state.next({name:V,isDirty:E(V,H),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Zn(l,V,H)},_setDisabledField:D,_setErrors:V=>{n.errors=V,h.state.next({errors:n.errors,isValid:!1})},_getFieldArray:V=>Qd(Ft(d.mount?l:i,V,t.shouldUnregister?Ft(i,V,[]):[])),_reset:O,_resetDefaultValues:()=>Hr(t.defaultValues)&&t.defaultValues().then(V=>{U(V,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const V of c.unMount){const H=Ft(o,V);H&&(H._f.refs?H._f.refs.every(z=>!Bc(z)):!Bc(H._f.ref))&&A(V)}c.unMount=new Set},_disableForm:V=>{t0(V)&&(h.state.next({disabled:V}),ra(o,(H,z)=>{const W=Ft(o,z);W&&(H.disabled=W._f.disabled||V,Array.isArray(W._f.refs)&&W._f.refs.forEach(G=>{G.disabled=W._f.disabled||V}))},0,!1))},_subjects:h,_proxyFormState:p,get _fields(){return o},get _formValues(){return l},get _state(){return d},set _state(V){d=V},get _defaultValues(){return i},get _names(){return c},set _names(V){c=V},get _formState(){return n},get _options(){return t},set _options(V){t={...t,...V}}},subscribe:V=>(d.mount=!0,f={...f,...V.formState},R({...V,formState:f})),trigger:v,register:L,handleSubmit:q,watch:(V,H)=>Hr(V)?h.state.subscribe({next:z=>V(k(void 0,H),z)}):k(V,H,!0),setValue:F,getValues:S,reset:U,resetField:(V,H={})=>{Ft(o,V)&&(Co(H.defaultValue)?F(V,Vo(Ft(i,V))):(F(V,H.defaultValue),Zn(i,V,Vo(H.defaultValue))),H.keepTouched||Eo(n.touchedFields,V),H.keepDirty||(Eo(n.dirtyFields,V),n.isDirty=H.defaultValue?E(V,Vo(Ft(i,V))):E()),H.keepError||(Eo(n.errors,V),p.isValid&&m()),h.state.next({...n}))},clearErrors:V=>{V&&ql(V).forEach(H=>Eo(n.errors,H)),h.state.next({errors:V?n.errors:{}})},unregister:A,setError:j,setFocus:(V,H={})=>{const z=Ft(o,V),W=z&&z._f;if(W){const G=W.refs?W.refs[0]:W.ref;G.focus&&(G.focus(),H.shouldSelect&&Hr(G.select)&&G.select())}},getFieldState:I};return{...ee,formControl:ee}}const av=["Ok","Cancel"],t2=s.memo(s.forwardRef((e,t)=>{const{description:n,icon:o,onCancel:r,onOption:i,onDone:l,onValidateOption:d,createOptionsButton:c,options:u=av,autoFocusSel:p=".defaultOption",defaultOption:f=u[0],cancelOption:h="Cancel",children:g,...m}=e,x=function(v={}){const S=s.useRef(void 0),I=s.useRef(void 0),[j,R]=s.useState({isDirty:!1,isValidating:!1,isLoading:Hr(v.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:v.errors||{},disabled:v.disabled||!1,isReady:!1,defaultValues:Hr(v.defaultValues)?void 0:v.defaultValues});if(!S.current)if(v.formControl)S.current={...v.formControl,formState:j},v.defaultValues&&!Hr(v.defaultValues)&&v.formControl.reset(v.defaultValues,v.resetOptions);else{const{formControl:D,...L}=lv(v);S.current={...L,formState:j}}const A=S.current.control;return A._options=v,tv(()=>{const D=A._subscribe({formState:A._proxyFormState,callback:()=>R({...A._formState}),reRenderRoot:!0});return R(L=>({...L,isReady:!0})),A._formState.isReady=!0,D},[A]),s.useEffect(()=>A._disableForm(v.disabled),[A,v.disabled]),s.useEffect(()=>{v.mode&&(A._options.mode=v.mode),v.reValidateMode&&(A._options.reValidateMode=v.reValidateMode)},[A,v.mode,v.reValidateMode]),s.useEffect(()=>{v.errors&&(A._setErrors(v.errors),A._focusError())},[A,v.errors]),s.useEffect(()=>{v.shouldUnregister&&A._subjects.state.next({values:A._getWatch()})},[A,v.shouldUnregister]),s.useEffect(()=>{if(A._proxyFormState.isDirty){const D=A._getDirty();D!==j.isDirty&&A._subjects.state.next({isDirty:D})}},[A,j.isDirty]),s.useEffect(()=>{v.values&&!A0(v.values,I.current)?(A._reset(v.values,A._options.resetOptions),I.current=v.values,R(D=>({...D}))):A._resetDefaultValues()},[A,v.values]),s.useEffect(()=>{A._state.mount||(A._setValid(),A._state.mount=!0),A._state.watch&&(A._state.watch=!1,A._subjects.state.next({...A._formState})),A._removeUnmounted()}),S.current.formState=((D,L,$,q=!0)=>{const O={defaultValues:L._defaultValues};for(const U in D)Object.defineProperty(O,U,{get:()=>{const X=U;return L._proxyFormState[X]!==wa&&(L._proxyFormState[X]=!q||wa),D[X]}});return O})(j,A),S.current}({shouldUseNativeValidation:!1}),{handleSubmit:y,formState:w}=x,b=s.useRef(null),C=s.useRef(null),E=s.useRef(null),k=un(async v=>{let S;try{if(S=await Promise.resolve(d?.(v))??!0,S!==!0)return;await Promise.resolve(i?.(v,v===h,v===f)),l?.(v)}catch{}},[i,l,d,h,f]),M=un((v,S)=>{setTimeout(()=>{k(f)},180)},[k]),T=un(()=>{i?.(h,!0,!1),r?.(),l?.(null)},[i,h,r,l]),F=w&&(Object.keys(w.errors).length>0||w.disabled||w.isSubmitted),_=un((v,S)=>{const I=v===h,j={className:S?"defaultOption":"action",type:S?"submit":"button",style:{minWidth:"75px"},onClick:()=>{I?T():S||k(v)}};if(c)return c(v,j,S);const R={className:S?"defaultOption":"action",variant:S?"contained":"outlined",size:"small",disabled:!I&&F,color:"primary",...j};if(S||I){const A=S?b:C;R.touchRippleRef=A,R.onPointerDown=D=>{A.current?.start(D,{center:!1}),D.stopPropagation(),D.preventDefault()}}return a.jsx(N.Button,{...R,children:a.jsx("div",{style:{paddingTop:"3px"},children:v})},`action:${v}`)},[u,f,h,c,w]),P=s.useMemo(()=>{const v=[];for(let S=0;S<u.length;S++){const I=u[S],j=f?I===f:S===0;v.push(_(I,j))}return v},[u,f,w]);return a.jsx(Sp,{onCancel:T,initialPosition:{y:Qw==="touch"?"15":"35"},onDone:l,autoFocusSel:p,isModal:!0,ref:t,PaperProps:{},...m,children:a.jsx(ev,{...x,children:a.jsxs("form",{ref:E,onSubmit:y(M),children:[a.jsx(N.DialogContent,{dividers:!0,onKeyDown:v=>{if(v.isDefaultPrevented())return;v.stopPropagation();let S=null,I=null;const j=v.which===Fo.Escape&&h;if(j)S=h,I=C;else{if(F)return;v.which===Fo.Enter&&(S=f??u[0],I=b)}S&&(I.current?.start(v,{center:!1}),setTimeout(()=>{I.current?.stop(v),j&&k(S)},180))},children:a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:v=>v.spacing(o||n?1.5:0)},children:[a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column"},children:[o,n]}),g]})}),a.jsx(N.DialogActions,{sx:{paddingTop:v=>v.spacing(1),paddingBottom:v=>v.spacing(1),paddingLeft:v=>v.spacing(1),paddingRight:v=>v.spacing(1),backgroundColor:v=>dt.alpha(v.palette.action.hover,.03)},children:P})]})})})})),sv=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:t2,default:t2},Symbol.toStringTag,{value:"Module"})),cv=s.lazy(()=>Promise.resolve().then(()=>sv)),dv=s.lazy(()=>Promise.resolve().then(()=>require("./n-4XaX3pkXUEEQ5u.cjs"))),al=s.memo(s.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...l}=e;return Z2(n),a.jsx(zo,{ref:t,label:o!==void 0?n?.label():"",shortcut:r!==void 0?r:Array.isArray(n?.shortcut())?n?.shortcut()[0]:n?.shortcut(),description:n?.description(),disabled:o,chips:n?.tags(),componentDisabled:n?.disabled(),...l,children:a.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:i})})})),je=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:l,label:d,disabled:c=!1,variant:u=Mr.Toolbar,shortcut:p,commandState:f,tooltipProps:h,...g}=e,m=s.useRef(null),x=s.useRef(!1),y=s.useMemo(()=>{const F={onExecute(_,P){o?.onExecute?.(_,P),x.current||(m.current?.start({center:!1}),setTimeout(()=>m.current?.stop({}),180)),x.current=!1},onError(_,P,v){o?.onError(_,P,v)}};return o?.beforeExecute&&(F.beforeExecute=o.beforeExecute),F},[o]),w=Z2(n,y),b=s.useCallback(F=>{F.button===0&&F.preventDefault()},[]),C=s.useCallback(F=>{F.button===0&&n?.execute(f,o)},[w,o,f]),E=s.useCallback(F=>{F.keyCode!==Fo.Enter&&F.keyCode!==Fo.Space||n?.execute(f,o)},[w,o,f]),k=s.useMemo(()=>l||u===Mr.Toolbar||n?.state()?typeof l=="function"?l(n):l:N1,[w,l]),M=s.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:u===Mr.Toolbar?k:a.jsx(Fa,{selected:n?.state()??!1,children:k}),touchRippleRef:m,disabled:c||!n||n.disabled(),onMouseDown:b,onMouseUp:C,onKeyDown:E}),[w,o,c,k]);let T;return T=u===Mr.Menuitem?a.jsx(lr,{...g,chips:n?.tags(),...M,children:d??n?.label(r,i)}):a.jsx(mr,{...g,...M}),(d||n?.label())&&((n.disabled()||c)&&(T=a.jsx("div",{children:T})),T=a.jsx(al,{command:n,placement:u===Mr.Toolbar?"bottom-start":"right-start",shortcut:p,...h,children:T})),T})),uv=s.memo(s.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=N1,label:i,variant:l=Mr.Toolbar,disabled:d=!1,commandHook:c,...u}=e,p=s.useRef(null),f=s.useRef(!1),h=s.useMemo(()=>{const T={onExecute(F,_){c?.onExecute?.(F,_),f.current||(p.current?.start({center:!1}),setTimeout(()=>p.current?.stop({}),180)),f.current=!1},onError(F,_,P){c?.onError(F,_,P)}};return c?.beforeExecute&&(T.beforeExecute=c.beforeExecute),T},[c]),g=Z2(n,h),m=()=>n?.state()?.toString()||"0",[x,y]=s.useState(m),w=un(()=>{const T=parseFloat(x);isNaN(T)?y(m()):parseFloat(m())!==T&&n.execute(T,c)},[m,n,x,c]);s.useEffect(()=>{y(m())},[n?.state()]);const b=s.useMemo(()=>typeof r=="function"?r(n):r,[g,r]),C=s.useMemo(()=>i===void 0?n?.label(o):typeof i=="function"?i():i,[g]),E=s.useMemo(()=>a.jsx(N.IconButton,{...u,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:T=>T.stopPropagation(),onMouseDown:T=>{T.button===0&&T.stopPropagation()},onMouseUp:T=>{T.button===0&&T.stopPropagation()},children:a.jsx(N.Input,{inputMode:"numeric",disabled:d||!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:T=>`${Math.round(T.typography.fontSize)}px`,width:T=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:x,onFocus:T=>{T.target?.select()},onKeyDown:T=>{if(T.which===Fo.Enter)m()!==x&&(T.stopPropagation(),T.preventDefault(),w());else if(T.which===Fo.Escape)m()!==x&&(y(m()),setTimeout(()=>{T.target?.select()},0),T.stopPropagation(),T.preventDefault());else{if(T.key.match("[-]")||T.key.match("[0-9.]")&&(x+T.key).length>4)return T.stopPropagation(),void T.preventDefault();if(T.which===Fo.Space)return void T.preventDefault()}},onBlur:()=>{w()},onChange:T=>{if(T.target.value.length>4)return T.stopPropagation(),void T.preventDefault();y(T.target.value)}})}),[x,d,n]),k={tabIndex:0,ref:t,icon:b,touchRippleRef:p,disabled:d||!n||n.disabled(),onMouseDown:T=>{T.button===0&&T.preventDefault()},onMouseUp:T=>{T.button!==0||T.isPropagationStopped()||T.isDefaultPrevented()||T.isDefaultPrevented()||(T.preventDefault(),n?.execute(!n?.state?.(),h))},onKeyDown:T=>{T.keyCode!==Fo.Enter&&T.keyCode!==Fo.Space||n?.execute(!n?.state?.(),h)}};let M;return M=l===Mr.Menuitem?a.jsxs(lr,{...u,chips:n?.tags(),...k,children:[C,E]}):a.jsx(mr,{...u,...k}),n?.label()&&((n.disabled()||d)&&(M=a.jsx("div",{children:M})),M=a.jsx(al,{command:n,placement:l===Mr.Toolbar?"bottom-start":"right-start",children:M})),M})),Dn=s.memo(s.forwardRef((e,t)=>{const{variant:n=Mr.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:l,commandHook:d,disabled:c,label:u,icon:p,createPopupPanel:f,tooltip:h,selected:g,scope:m,...x}=e,y=s.useRef(null),w=s.useRef(!1),b=s.useMemo(()=>{const P={onExecute(v,S){d?.onExecute?.(v,S),w.current||(y.current?.start({center:!1}),setTimeout(()=>y.current?.stop({}),180)),w.current=!1},onError(v,S,I){d?.onError(v,S,I)}};return d?.beforeExecute&&(P.beforeExecute=d.beforeExecute),P},[d]),C=G2(i,[o],null,[o]),E=C[0],{label:k,icon:M}=s.useMemo(()=>{let P=null;u&&(P=typeof u=="function"?u(E):u),P||(P=E?.label?.(m));let v=null;return p&&(v=typeof p=="function"?p(E):p),v||(v=E?.icon?.()),{label:P,icon:v}},[C,u,p]),T={disabled:c,scope:m,touchRippleRef:y,onQuickClick:r,tooltip:h,label:k,icon:M};(k||h)&&(T.createTooltip=({children:P},v)=>a.jsx(zo,{label:k,description:h,disabled:v,children:P}));const F=un(P=>f?.(P,i),[f,C]),_=un(P=>E?.execute(l,b),[E]);return E?(T.quickButtonProps={},T.quickButtonProps.createTooltip=({children:P,placement:v},S)=>a.jsx(al,{command:E,placement:v??n===Mr.Toolbar?"bottom-start":"right-start",disabled:S,children:P}),T.disabled=T.disabled??E?.disabled(),r||(T.onQuickClick=_)):o&&(T.onQuickClick=()=>{}),T.selected=g??E?.state(),T.createPopupPanel=F,n===Mr.Toolbar?a.jsx(qr,{...x,...T,ref:t}):a.jsx(Aa,{...x,...T,ref:t})}));Dn.displayName="CommandPopupButton";const nl=e=>{const{command:t,label:n,scope:o,icon:r=a.jsx(I2,{}),sx:i,...l}=e;return a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:d=>d.typography.subtitle2.fontSize,...i},...l,children:[r?ge(r):null,a.jsx(N.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:d=>d.spacing(.25),paddingRight:d=>d.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},za=s.memo(s.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:l,children:d,...c}=e,u=B1(t,()=>({}),[]),[p,f]=s.useState(null),{reference:h}=l0({label:"toolbar",anchor:u.current,parentFloat:i,createPopupPanel:null}),g=s.useCallback(()=>{const T=p;T&&requestAnimationFrame(()=>{u.current?.contains(document.activeElement)&&T.focus()})},[]),m=s.useMemo(()=>({dense:!0,outlined:!1}),[]),x=s.useMemo(()=>{const{commandHook:T,...F}=r||{};return{commandHook:{beforeExecute:(_,P)=>T?.beforeExecute?.(_,P)!==!1&&h.closeAll(),onExecute(_,P){T?.onExecute?.(_,P),g()},onError(_,P,v){T?.onError?.(_,P,v)}},...F}},[h,r]),y=s.useMemo(()=>({...m,...x}),[m,x]),[w,b]=s.useReducer(T=>T+1,0);G2(o,[],{onChange:()=>{b()}});const C=s.useMemo(()=>({commands:o,parentFloat:h,...x}),[w,y,h,r]);let E=0;m.dense||(E+=2),m.outlined&&E++;let k=2;m.dense||(k=4);const M=s.useMemo(()=>l({commands:o,commandButtonProps:y,commandPopupProps:{commands:o,...C,...r}}),[w,y,C,l]);return a.jsx(N.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${k}px`,paddingBottom:`${k}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:u,onFocus:T=>{T.relatedTarget&&!p&&f(T.relatedTarget)},onBlur:T=>{p&&!u?.current?.contains(T.relatedTarget)&&f(null)},onKeyDown:T=>{p&&T.which===Fo.Escape&&p.focus()},...c,children:a.jsx("div",{ref:u,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${k}px`,columnGap:`${E}px`,alignItems:"center",maxWidth:"100%"},children:M})})}));za.displayName="CommandToolbar";const hv=e=>{const{key:t,...n}=e;return a.jsx(je,{...n},t)},r0=s.memo(s.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o=hv,scope:r,commands:i,icon:l,quickCommand:d,popupScope:c=d,commandState:u,commandHook:p,disabled:f=!1,...h}=e,g=G2(i,n?[d,...n]:[d]),m=s.useCallback((x,y)=>{const w={variant:Mr.Menuitem,commandHook:p,commandState:u,icon:l,scope:c,disabled:f},b=[];for(let C=0;C<n?.length;C++){const E=n[C];if(E===null||E==="-"){b.push(a.jsx(It,{orientation:"horizontal"},`element-${b.length}`));continue}const k=y.getCommand(E),M={key:`${E}-${b.length}`,command:k,...w},T=o(M);T&&b.push(T)}return vn({...x,children:b})},[f,p,u,c,n,l,o]);return n?a.jsx(Dn,{ref:t,commands:i,disabled:f,commandHook:p,commandState:u,scope:r,quickCommand:d,icon:l,createPopupPanel:m,...h}):o({ref:t,disabled:f,commandHook:p,commandState:u,scope:r,command:g[0],icon:l,...h})}));(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Pp=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=to(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),u=s.useMemo(()=>{for(let g=0;g<c.length;g++)if(c[g]?.state())return c[g].key();return c[0]?.key()},[c]),p=s.useMemo(()=>{const g=new Map;return g.set("formatAlignLeftToggle",ge(a.jsx(yn.FormatAlignLeft,{}))),g.set("formatAlignCenterToggle",ge(a.jsx(yn.FormatAlignCenter,{}))),g.set("formatAlignRightToggle",ge(a.jsx(yn.FormatAlignRight,{}))),g.set("formatAlignJustifyToggle",ge(a.jsx(yn.FormatAlignJustify,{}))),g.set("formatAlignCenterContinuousToggle",ge(a.jsx(yn.FormatAlignCenter,{}))),g.set("formatAlignFillToggle",ge(a.jsx(yn.FormatAlignJustify,{}))),g.set("formatAlignDistributedHorizontalToggle",ge(a.jsx(yn.FormatAlignJustify,{}))),g},[]),f=s.useMemo(()=>{if(!o)return null;const g={...o};return delete g.beforeExecute,g},[o]),h=s.useCallback((g,m)=>{const x={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(je,{...x,command:m.getCommand("formatAlignLeftToggle"),icon:p.get("formatAlignLeftToggle")}),a.jsx(je,{...x,command:m.getCommand("formatAlignCenterToggle"),icon:p.get("formatAlignCenterToggle")}),a.jsx(je,{...x,command:m.getCommand("formatAlignRightToggle"),icon:p.get("formatAlignRightToggle")}),a.jsx(je,{...x,command:m.getCommand("formatAlignJustifyToggle"),icon:p.get("formatAlignJustifyToggle")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...x,command:m.getCommand("formatAlignCenterContinuousToggle"),icon:p.get("formatAlignCenterContinuousToggle")}),a.jsx(je,{...x,command:m.getCommand("formatAlignFillToggle"),icon:p.get("formatAlignFillToggle")}),a.jsx(je,{...x,command:m.getCommand("formatAlignDistributedHorizontalToggle"),icon:p.get("formatAlignDistributedHorizontalToggle")})]}),w=a.jsxs(N.Box,{sx:{className:Jn("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:C=>C.stopPropagation(),children:[a.jsx(je,{command:m.getCommand("formatIndentDecrease"),commandHook:f,scope:r,disabled:i,icon:ge(a.jsx(sb,{}))}),a.jsx(je,{command:m.getCommand("formatIndentIncrease"),commandHook:f,scope:r,disabled:i,icon:ge(a.jsx(ab,{}))})]}),b=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...d,children:[w,a.jsx(It,{orientation:"horizontal"}),a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:y})]});return vn({...g,children:b})},[i,o]);return a.jsx(Dn,{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:u,icon:p.get(u)??a.jsx(yn.FormatAlignLeft,{}),...d})})),Ap=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),c=s.useMemo(()=>{for(let f=0;f<d.length;f++)if(d[f]?.state())return d[f].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const f=new Map;return f.set("formatAlignTopToggle",ge(a.jsx(gb,{}))),f.set("formatAlignMiddleToggle",ge(a.jsx(xb,{}))),f.set("formatAlignBottomToggle",ge(a.jsx(X3,{}))),f.set("formatAlignJustifyVerticalToggle",ge(a.jsx(yn.FormatAlignJustify,{}))),f.set("formatAlignDistributedVerticalToggle",ge(a.jsx(yn.FormatAlignJustify,{}))),f},[]),p=s.useCallback((f,h)=>{const g={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...g,command:h.getCommand("formatAlignTopToggle"),icon:u.get("formatAlignTopToggle")}),a.jsx(je,{...g,command:h.getCommand("formatAlignMiddleToggle"),icon:u.get("formatAlignMiddleToggle")}),a.jsx(je,{...g,command:h.getCommand("formatAlignBottomToggle"),icon:u.get("formatAlignBottomToggle")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...g,command:h.getCommand("formatAlignJustifyVerticalToggle"),icon:u.get("formatAlignJustifyVerticalToggle")}),a.jsx(je,{...g,command:h.getCommand("formatAlignDistributedVerticalToggle"),icon:u.get("formatAlignDistributedVerticalToggle")})]});return vn({...f,children:m})},[i,o,u]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,createPopupPanel:p,label:"Vertical Alignment",tooltip:"Configure how text is placed in the vertical direction of the cell.",icon:u.get(c)??ge(a.jsx(X3,{})),...l})})),Fp=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),c=s.useMemo(()=>{for(let f=0;f<d.length;f++)if(d[f]?.state())return d[f].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const f=new Map;return f.set("formatTextOverflowVisibleToggle",ge(a.jsx(t3,{}))),f.set("formatTextOverflowWrapToggle",ge(a.jsx(tx,{}))),f.set("formatTextOverflowClipToggle",ge(a.jsx(nx,{}))),f.set("formatTextOverflowShrinkToggle",ge(a.jsx(ox,{}))),f},[]),p=he((f,h)=>{const g={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...g,command:h.getCommand("formatTextOverflowVisibleToggle"),icon:u.get("formatTextOverflowVisibleToggle")}),a.jsx(je,{...g,command:h.getCommand("formatTextOverflowWrapToggle"),icon:u.get("formatTextOverflowWrapToggle")}),a.jsx(je,{...g,command:h.getCommand("formatTextOverflowClipToggle"),icon:u.get("formatTextOverflowClipToggle")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...g,command:h.getCommand("formatTextOverflowShrinkToggle"),icon:u.get("formatTextOverflowShrinkToggle")})]});return vn({...f,children:m})},[i,o,r]);return a.jsx(Dn,{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:p,icon:u.get(c)??ge(a.jsx(t3,{})),...l})})),zp=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),c=s.useMemo(()=>{const h=d.length;for(let g=0;g<h;g++){const m=d[g];if(m?.state())return m.key()}return d[1]?.key()},[d]),u=s.useMemo(()=>{const h=new Map;return h.set("formatTextRotate0",ge(a.jsx(ds,{}))),h.set("formatTextRotate315",ge(a.jsx(ds,{}))),h.set("formatTextRotate45",ge(a.jsx(q3,{}))),h.set("formatTextRotate90",ge(a.jsx(Z3,{}))),h.set("formatTextRotate270",ge(a.jsx(G3,{}))),h.set("formatTextRotateCustom",ge(a.jsx(K3,{}))),h},[]),p=s.useCallback((h,g)=>{const m={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},x=a.jsxs(a.Fragment,{children:[a.jsx(je,{...m,command:g.getCommand("formatTextRotate0"),icon:ge(a.jsx(mb,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...m,command:g.getCommand("formatTextRotate315"),icon:ge(a.jsx(ds,{}))}),a.jsx(je,{...m,command:g.getCommand("formatTextRotate45"),icon:ge(a.jsx(q3,{}))}),a.jsx(je,{...m,command:g.getCommand("formatTextRotate90"),icon:ge(a.jsx(Z3,{}))}),a.jsx(je,{...m,command:g.getCommand("formatTextRotate270"),icon:ge(a.jsx(G3,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(uv,{...m,command:g.getCommand("formatTextRotateCustom"),icon:ge(a.jsx(K3,{})),label:"Custom"})]});return vn({...h,children:x})},[i,o,r,n]),f=s.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[d]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,scope:r,selected:f,label:"Text Orientation",tooltip:"Rotate your text diagonally or vertically. This is a great way to label narrow columns.",createPopupPanel:p,quickCommand:f?"formatTextRotate0":"formatTextRotate315",icon:ge(u.get(c)??a.jsx(ds,{})),...l})}));function ui(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const F0="$$material";function pv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=(p=>{const f=Object.keys(p).map(h=>({key:h,val:p[h]}))||[];return f.sort((h,g)=>h.val-g.val),f.reduce((h,g)=>({...h,[g.key]:g.val}),{})})(t),l=Object.keys(i);function d(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function u(p,f){const h=l.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(h!==-1&&typeof t[l[h]]=="number"?t[l[h]]:f)-o/100}${n})`}return{keys:l,values:i,up:d,down:c,between:u,only:function(p){return l.indexOf(p)+1<l.length?u(p,l[l.indexOf(p)+1]):d(p)},not:function(p){const f=l.indexOf(p);return f===0?d(l[1]):f===l.length-1?c(l[f]):u(p,l[l.indexOf(p)+1]).replace("@media","@media not all and")},unit:n,...r}}var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Z6,G6,K6={exports:{}},Bn={};function fv(){if(Z6)return Bn;Z6=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"),d=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function m(x){if(typeof x=="object"&&x!==null){var y=x.$$typeof;switch(y){case e:switch(x=x.type){case n:case r:case o:case c:case u:case h:return x;default:switch(x=x&&x.$$typeof){case l:case d:case f:case p:case i:return x;default:return y}}case t:return y}}}return Bn.ContextConsumer=i,Bn.ContextProvider=l,Bn.Element=e,Bn.ForwardRef=d,Bn.Fragment=n,Bn.Lazy=f,Bn.Memo=p,Bn.Portal=t,Bn.Profiler=r,Bn.StrictMode=o,Bn.Suspense=c,Bn.SuspenseList=u,Bn.isContextConsumer=function(x){return m(x)===i},Bn.isContextProvider=function(x){return m(x)===l},Bn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Bn.isForwardRef=function(x){return m(x)===d},Bn.isFragment=function(x){return m(x)===n},Bn.isLazy=function(x){return m(x)===f},Bn.isMemo=function(x){return m(x)===p},Bn.isPortal=function(x){return m(x)===t},Bn.isProfiler=function(x){return m(x)===r},Bn.isStrictMode=function(x){return m(x)===o},Bn.isSuspense=function(x){return m(x)===c},Bn.isSuspenseList=function(x){return m(x)===u},Bn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===r||x===o||x===c||x===u||typeof x=="object"&&x!==null&&(x.$$typeof===f||x.$$typeof===p||x.$$typeof===l||x.$$typeof===i||x.$$typeof===d||x.$$typeof===g||x.getModuleId!==void 0)},Bn.typeOf=m,Bn}function mv(){return G6||(G6=1,K6.exports=fv()),K6.exports}var Bp=mv();function f0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return!(t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.toStringTag in e||Symbol.iterator in e)}function Np(e){if(z0.isValidElement(e)||Bp.isValidElementType(e)||!f0(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Np(e[n])}),t}function gr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return f0(e)&&f0(t)&&Object.keys(t).forEach(r=>{z0.isValidElement(t[r])||Bp.isValidElementType(t[r])?o[r]=t[r]:f0(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&f0(e[r])?o[r]=gr(e[r],t[r],n):n.clone?o[r]=f0(t[r])?Np(t[r]):t[r]:o[r]=t[r]}),o}function iu(e,t=0,n=1){return function(o,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(o,i))}(e,t,n)}function N0(e){if(e.type)return e;if(e.charAt(0)==="#")return N0(function(i){i=i.slice(1);const l=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let d=i.match(l);return d&&d[0].length===1&&(d=d.map(c=>c+c)),d?`rgb${d.length===4?"a":""}(${d.map((c,u)=>u<3?parseInt(c,16):Math.round(parseInt(c,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(ui(9,e));let o,r=e.substring(t+1,e.length-1);if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(ui(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Zl=(e,t)=>{try{return(n=>{const o=N0(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function H1(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=t.includes("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function Vp(e){e=N0(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(u,p=(u+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let d="rgb";const c=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return e.type==="hsla"&&(d+="a",c.push(t[3])),H1({type:d,values:c})}function n2(e){let t=(e=N0(e)).type==="hsl"||e.type==="hsla"?N0(Vp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fs(e,t,n){try{return function(o,r){return o=N0(o),r=iu(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,H1(o)}(e,t)}catch{return e}}function lu(e,t){if(e=N0(e),t=iu(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 H1(e)}function Wn(e,t,n){try{return lu(e,t)}catch{return e}}function au(e,t){if(e=N0(e),t=iu(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 H1(e)}function Un(e,t,n){try{return au(e,t)}catch{return e}}function ms(e,t,n){try{return function(o,r=.15){return n2(o)>.5?lu(o,r):au(o,r)}(e,t)}catch{return e}}const va={black:"#000",white:"#fff"},gv={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"},xv="#f3e5f5",yv="#ce93d8",bv="#ba68c8",wv="#ab47bc",vv="#9c27b0",Sv="#7b1fa2",Cv="#e57373",kv="#ef5350",Ev="#f44336",X6="#d32f2f",_v="#c62828",Tv="#ffb74d",jv="#ffa726",Mv="#ff9800",Rv="#f57c00",Iv="#e65100",Dv="#e3f2fd",Lv="#90caf9",Y6="#42a5f5",Ov="#1976d2",Pv="#1565c0",Av="#4fc3f7",Fv="#29b6f6",zv="#03a9f4",J6="#0288d1",Bv="#01579b",Nv="#81c784",Vv="#66bb6a",Hv="#4caf50",$v="#388e3c",Wv="#2e7d32",Uv="#1b5e20";function Hp(){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:va.white,default:va.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 qv=Hp();function $p(){return{text:{primary:va.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:va.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 Q6=$p();function e4(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=au(e.main,r):t==="dark"&&(e.dark=lu(e.main,i)))}function su(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:Lv,light:Dv,dark:Y6}:{main:Ov,light:Y6,dark:Pv}}(t),l=e.secondary||function(m="light"){return m==="dark"?{main:yv,light:xv,dark:wv}:{main:vv,light:bv,dark:Sv}}(t),d=e.error||function(m="light"){return m==="dark"?{main:Ev,light:Cv,dark:X6}:{main:X6,light:kv,dark:_v}}(t),c=e.info||function(m="light"){return m==="dark"?{main:Fv,light:Av,dark:J6}:{main:J6,light:zv,dark:Bv}}(t),u=e.success||function(m="light"){return m==="dark"?{main:Vv,light:Nv,dark:$v}:{main:Wv,light:Hv,dark:Uv}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:jv,light:Tv,dark:Rv}:{main:"#ed6c02",light:Mv,dark:Iv}}(t);function f(m){return function(y,w){const b=n2(y),C=n2(w);return(Math.max(b,C)+.05)/(Math.min(b,C)+.05)}(m,Q6.text.primary)>=n?Q6.text.primary:qv.text.primary}const h=({color:m,name:x,mainShade:y=500,lightShade:w=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(ui(11,x?` (${x})`:"",y));if(typeof m.main!="string")throw new Error(ui(12,x?` (${x})`:"",JSON.stringify(m.main)));return e4(m,"light",w,o),e4(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=Hp():t==="dark"&&(g=$p()),gr({common:{...va},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:d,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:gv,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var t4,n4,Nc,o4,r4,i4={exports:{}};function Zv(){return n4?t4:(n4=1,t4="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Gv(){if(o4)return Nc;o4=1;var e=Zv();function t(){}function n(){}return n.resetWarningCache=t,Nc=function(){function o(l,d,c,u,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}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},Nc}function Ba(){return r4||(r4=1,i4.exports=Gv()()),i4.exports}function ia(e,t){return t?gr(e,t,{clone:!1}):e}function l4(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}const $1={xs:0,sm:600,md:900,lg:1200,xl:1536},a4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$1[e]}px)`},Kv={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:$1[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function x0(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||a4;return t.reduce((i,l,d)=>(i[r.up(r.keys[d])]=n(t[d]),i),{})}if(typeof t=="object"){const r=o.breakpoints||a4;return Object.keys(t).reduce((i,l)=>{if(d=r.keys,(c=l)==="@"||c.startsWith("@")&&(d.some(u=>c.startsWith(`@${u}`))||c.match(/^@\d/))){const u=function(p,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,x=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(x)}(o.containerQueries?o:Kv,l);u&&(i[u]=n(t[l],l))}else if(Object.keys(r.values||$1).includes(l))i[r.up(l)]=n(t[l],l);else{const u=l;i[u]=t[u]}var d,c;return i},{})}return n(t)}function s4(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Wp(e){if(typeof e!="string")throw new Error(ui(7));return e.charAt(0).toUpperCase()+e.slice(1)}function W1(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function x1(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:W1(e,n)||o,t&&(r=t(r,o,e)),r}function yo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=l=>{if(l[t]==null)return null;const d=l[t],c=W1(l.theme,o)||{};return x0(l,d,u=>{let p=x1(c,r,u);return u===p&&typeof u=="string"&&(p=x1(c,r,`${t}${u==="default"?"":Wp(u)}`,u)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const Xv={m:"margin",p:"padding"},Yv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jv=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!c4[e])return[e];e=c4[e]}const[t,n]=e.split(""),o=Xv[t],r=Yv[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Up=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Na(e,t,n,o){const r=W1(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:typeof r=="string"?`calc(${i} * ${r})`:r*i:Array.isArray(r)?i=>{if(typeof i=="string")return i;const l=Math.abs(i),d=r[l];return i>=0?d:typeof d=="number"?-d:`-${d}`}:typeof r=="function"?r:()=>{}}function cu(e){return Na(e,"spacing",8)}function Va(e,t){return typeof t=="string"||t==null?t:e(t)}function Qv(e,t,n,o){if(!t.includes(n))return null;const r=function(i,l){return d=>i.reduce((c,u)=>(c[u]=Va(l,d),c),{})}(Jv(n),o);return x0(e,e[n],r)}function Zp(e,t){const n=cu(e.theme);return Object.keys(e).map(o=>Qv(e,t,o,n)).reduce(ia,{})}function lo(e){return Zp(e,Up)}function ao(e){return Zp(e,qp)}lo.propTypes={},lo.filterProps=Up,ao.propTypes={},ao.filterProps=qp;const eS={borderRadius:4};function U1(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?ia(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function jr(e){return typeof e!="number"?e:`${e}px solid`}function Or(e,t){return yo({prop:e,themeKey:"borders",transform:t})}const tS=Or("border",jr),nS=Or("borderTop",jr),oS=Or("borderRight",jr),rS=Or("borderBottom",jr),iS=Or("borderLeft",jr),lS=Or("borderColor"),aS=Or("borderTopColor"),sS=Or("borderRightColor"),cS=Or("borderBottomColor"),dS=Or("borderLeftColor"),uS=Or("outline",jr),hS=Or("outlineColor"),Ws=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Na(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Va(t,o)});return x0(e,e.borderRadius,n)}return null};Ws.propTypes={},Ws.filterProps=["borderRadius"],U1(tS,nS,oS,rS,iS,lS,aS,sS,cS,dS,Ws,uS,hS);const y1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Na(e.theme,"spacing",8),n=o=>({gap:Va(t,o)});return x0(e,e.gap,n)}return null};y1.propTypes={},y1.filterProps=["gap"];const b1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Na(e.theme,"spacing",8),n=o=>({columnGap:Va(t,o)});return x0(e,e.columnGap,n)}return null};b1.propTypes={},b1.filterProps=["columnGap"];const w1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Na(e.theme,"spacing",8),n=o=>({rowGap:Va(t,o)});return x0(e,e.rowGap,n)}return null};w1.propTypes={},w1.filterProps=["rowGap"];function Wi(e,t){return t==="grey"?t:e}U1(y1,b1,w1,yo({prop:"gridColumn"}),yo({prop:"gridRow"}),yo({prop:"gridAutoFlow"}),yo({prop:"gridAutoColumns"}),yo({prop:"gridAutoRows"}),yo({prop:"gridTemplateColumns"}),yo({prop:"gridTemplateRows"}),yo({prop:"gridTemplateAreas"}),yo({prop:"gridArea"}));function ur(e){return e<=1&&e!==0?100*e+"%":e}U1(yo({prop:"color",themeKey:"palette",transform:Wi}),yo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),yo({prop:"backgroundColor",themeKey:"palette",transform:Wi}));const pS=yo({prop:"width",transform:ur}),du=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||$1[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ur(n)}};return x0(e,e.maxWidth,t)}return null};du.filterProps=["maxWidth"];const fS=yo({prop:"minWidth",transform:ur}),mS=yo({prop:"height",transform:ur}),gS=yo({prop:"maxHeight",transform:ur}),xS=yo({prop:"minHeight",transform:ur});yo({prop:"size",cssProperty:"width",transform:ur}),yo({prop:"size",cssProperty:"height",transform:ur});U1(pS,du,fS,mS,gS,xS,yo({prop:"boxSizing"}));const q1={border:{themeKey:"borders",transform:jr},borderTop:{themeKey:"borders",transform:jr},borderRight:{themeKey:"borders",transform:jr},borderBottom:{themeKey:"borders",transform:jr},borderLeft:{themeKey:"borders",transform:jr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ws},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:ao},pt:{style:ao},pr:{style:ao},pb:{style:ao},pl:{style:ao},px:{style:ao},py:{style:ao},padding:{style:ao},paddingTop:{style:ao},paddingRight:{style:ao},paddingBottom:{style:ao},paddingLeft:{style:ao},paddingX:{style:ao},paddingY:{style:ao},paddingInline:{style:ao},paddingInlineStart:{style:ao},paddingInlineEnd:{style:ao},paddingBlock:{style:ao},paddingBlockStart:{style:ao},paddingBlockEnd:{style:ao},m:{style:lo},mt:{style:lo},mr:{style:lo},mb:{style:lo},ml:{style:lo},mx:{style:lo},my:{style:lo},margin:{style:lo},marginTop:{style:lo},marginRight:{style:lo},marginBottom:{style:lo},marginLeft:{style:lo},marginX:{style:lo},marginY:{style:lo},marginInline:{style:lo},marginInlineStart:{style:lo},marginInlineEnd:{style:lo},marginBlock:{style:lo},marginBlockStart:{style:lo},marginBlockEnd:{style:lo},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:y1},rowGap:{style:w1},columnGap:{style:b1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ur},maxWidth:{style:du},minWidth:{transform:ur},height:{transform:ur},maxHeight:{transform:ur},minHeight:{transform:ur},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"}},sl=function(){function e(t,n,o,r){const i={[t]:n,theme:o},l=r[t];if(!l)return{[t]:n};const{cssProperty:d=t,themeKey:c,transform:u,style:p}=l;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const f=W1(o,c)||{};return p?p(i):x0(i,n,h=>{let g=x1(f,u,h);return h===g&&typeof h=="string"&&(g=x1(f,u,`${t}${h==="default"?"":Wp(h)}`,h)),d===!1?g:{[d]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const l=r.unstable_sxConfig??q1;function d(c){let u=c;if(typeof c=="function")u=c(r);else if(typeof c!="object")return c;if(!u)return null;const p=function(g={}){return g.keys?.reduce((x,y)=>(x[g.up(y)]={},x),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(u).forEach(g=>{const m=(x=u[g],y=r,typeof x=="function"?x(y):x);var x,y;if(m!=null)if(typeof m=="object")if(l[g])h=ia(h,e(g,m,r,l));else{const w=x0({theme:r},m,b=>({[g]:b}));(function(...b){const C=b.reduce((k,M)=>k.concat(Object.keys(M)),[]),E=new Set(C);return b.every(k=>E.size===Object.keys(k).length)})(w,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=ia(h,w)}else h=ia(h,e(g,m,r,l))}),!i&&r.modularCssLayers?{"@layer sx":l4(r,s4(f,h))}:l4(r,s4(f,h))}return Array.isArray(o)?o.map(d):d(o)}}();function yS(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")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 Gp(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...l}=e,d=pv(n),c=function(p=8,f=cu({spacing:p})){if(p.mui)return p;const h=(...g)=>(g.length===0?[1]:g).map(m=>{const x=f(m);return typeof x=="number"?`${x}px`:x}).join(" ");return h.mui=!0,h}(r);let u=gr({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:c,shape:{...eS,...i}},l);return u=function(p){const f=(x,y)=>x.replace("@media",y?`@container ${y}`:"@container");function h(x,y){x.up=(...w)=>f(p.breakpoints.up(...w),y),x.down=(...w)=>f(p.breakpoints.down(...w),y),x.between=(...w)=>f(p.breakpoints.between(...w),y),x.only=(...w)=>f(p.breakpoints.only(...w),y),x.not=(...w)=>{const b=f(p.breakpoints.not(...w),y);return b.includes("not all and")?b.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):b}}const g={},m=x=>(h(g,x),g);return h(m),{...p,containerQueries:m}}(u),u.applyStyles=yS,u=t.reduce((p,f)=>gr(p,f),u),u.unstable_sxConfig={...q1,...l?.unstable_sxConfig},u.unstable_sx=function(p){return sl({sx:p,theme:this})},u}sl.filterProps=["sx"];const d4=(e,t,n,o=[])=>{let r=e;t.forEach((i,l)=>{l===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})};function Vc(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},l={};var d,c;return d=(u,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(u,p))){const h=`--${n?`${n}-`:""}${u.join("-")}`,g=((m,x)=>typeof x=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(y=>m.includes(y))||m[m.length-1].toLowerCase().includes("opacity")?x:`${x}px`:x)(u,p);Object.assign(r,{[h]:g}),d4(i,u,`var(${h})`,f),d4(l,u,`var(${h}, ${g})`,f)}},c=u=>u[0]==="vars",function u(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?u(m,[...f,g],Array.isArray(m)?[...h,g]:h):d([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:l}}function bS(e){const t={};return Object.entries(e).forEach(n=>{const[o,r]=n;typeof r=="object"&&(t[o]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)}),t}const u4={textTransform:"uppercase"},h4='"Roboto", "Helvetica", "Arial", sans-serif';function Kp(e,t){const{fontFamily:n=h4,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:d=700,htmlFontSize:c=16,allVariants:u,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(y=>y/c*h+"rem"),m=(y,w,b,C,E)=>{return{fontFamily:n,fontWeight:y,fontSize:g(w),lineHeight:b,...n===h4?{letterSpacing:(k=C/w,Math.round(1e5*k)/1e5+"em")}:{},...E,...u};var k},x={h1:m(r,96,1.167,-1.5),h2:m(r,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,u4),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,u4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gr({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:d,...x},f,{clone:!1})}function Yn(...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 wS=["none",Yn(0,2,1,-1,0,1,1,0,0,1,3,0),Yn(0,3,1,-2,0,2,2,0,0,1,5,0),Yn(0,3,3,-2,0,3,4,0,0,1,8,0),Yn(0,2,4,-1,0,4,5,0,0,1,10,0),Yn(0,3,5,-1,0,5,8,0,0,1,14,0),Yn(0,3,5,-1,0,6,10,0,0,1,18,0),Yn(0,4,5,-2,0,7,10,1,0,2,16,1),Yn(0,5,5,-3,0,8,10,1,0,3,14,2),Yn(0,5,6,-3,0,9,12,1,0,3,16,2),Yn(0,6,6,-3,0,10,14,1,0,4,18,3),Yn(0,6,7,-4,0,11,15,1,0,4,20,3),Yn(0,7,8,-4,0,12,17,2,0,5,22,4),Yn(0,7,8,-4,0,13,19,2,0,5,24,4),Yn(0,7,9,-4,0,14,21,2,0,5,26,4),Yn(0,8,9,-5,0,15,22,2,0,6,28,5),Yn(0,8,10,-5,0,16,24,2,0,6,30,5),Yn(0,8,11,-5,0,17,26,2,0,6,32,5),Yn(0,9,11,-5,0,18,28,2,0,7,34,6),Yn(0,9,12,-6,0,19,29,2,0,7,36,6),Yn(0,10,13,-6,0,20,31,3,0,8,38,7),Yn(0,10,13,-6,0,21,33,3,0,8,40,7),Yn(0,10,14,-6,0,22,35,3,0,8,42,7),Yn(0,11,14,-7,0,23,36,3,0,9,44,8),Yn(0,11,15,-7,0,24,38,3,0,9,46,8)],vS={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)"},SS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function p4(e){return`${Math.round(e)}ms`}function CS(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function kS(e){const t={...vS,...e.easing},n={...SS,...e.duration};return{getAutoHeightDuration:CS,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:d=0,...c}=r;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:p4(i)} ${l} ${typeof d=="string"?d:p4(d)}`).join(",")},...e,easing:t,duration:n}}const ES={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _S(e){return f0(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Xp(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[l,d]=r[i];!_S(d)||l.startsWith("unstable_")?delete o[l]:f0(d)&&(o[l]={...d},n(o[l]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
38
-
39
- const theme = ${JSON.stringify(t,null,2)};
40
-
41
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
42
- theme.transitions = createTransitions(theme.transitions || {});
43
-
44
- export default theme;`}function o2(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:l={},typography:d={},shape:c,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(ui(20));const p=su(i),f=Gp(e);let h=gr(f,{mixins:(g=f.breakpoints,m=o,{toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}},...m}),palette:p,shadows:wS.slice(),typography:Kp(p,d),transitions:kS(l),zIndex:{...ES}});var g,m;return h=gr(h,u),h=t.reduce((x,y)=>gr(x,y),h),h.unstable_sxConfig={...q1,...u?.unstable_sxConfig},h.unstable_sx=function(x){return sl({sx:x,theme:this})},h.toRuntimeSource=Xp,h}function kn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const TS=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=kn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function f4(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function m4(e){return e==="dark"?TS:[]}function jS(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const MS=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const d={};return(l=e.cssVarPrefix,[...[...Array(25)].map((c,u)=>`--${l?`${l}-`:""}overlays-${u}`),`--${l?`${l}-`:""}palette-AppBar-darkBg`,`--${l?`${l}-`:""}palette-AppBar-darkColor`]).forEach(c=>{d[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:d}}:i?{[i.replace("%s",t)]:d,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...d}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}var l;return o};function He(e,t,n){!e[t]&&n&&(e[t]=n)}function Gl(e){return typeof e=="string"&&e.startsWith("hsl")?Vp(e):e}function c0(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Zl(Gl(e[t])))}const Yr=e=>{try{return e()}catch{}};function Hc(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(d){const{palette:c={mode:"light"},opacity:u,overlays:p,...f}=d,h=su(c);return{palette:h,opacity:{...f4(h.mode),...u},overlays:p||m4(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...l}=o2({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...f4(r),...t?.opacity},overlays:t?.overlays||m4(r)},l}function RS(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:l=jS,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=e,p=Object.keys(n)[0],f=o||(n.light&&p!=="light"?"light":p),h=((P="mui")=>dt.unstable_createGetCssVar(P))(i),{[f]:g,light:m,dark:x,...y}=n,w={...y};let b=g;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(ui(21,f));const C=Hc(w,b,u,f);m&&!w.light&&Hc(w,m,void 0,"light"),x&&!w.dark&&Hc(w,x,void 0,"dark");let E={defaultColorScheme:f,...C,cssVarPrefix:i,colorSchemeSelector:d,rootSelector:c,getCssVar:h,colorSchemes:w,font:{...bS(C.typography),...C.font},spacing:(k=u.spacing,typeof k=="number"?`${k}px`:typeof k=="string"||typeof k=="function"||Array.isArray(k)?k:"8px")};var k;Object.keys(E.colorSchemes).forEach(P=>{const v=E.colorSchemes[P].palette,S=j=>{const R=j.split("-"),A=R[1],D=R[2];return h(j,v[A][D])};var I;if(v.mode==="light"&&(He(v.common,"background","#fff"),He(v.common,"onBackground","#000")),v.mode==="dark"&&(He(v.common,"background","#000"),He(v.common,"onBackground","#fff")),I=v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(j=>{I[j]||(I[j]={})}),v.mode==="light"){He(v.Alert,"errorColor",Wn(v.error.light,.6)),He(v.Alert,"infoColor",Wn(v.info.light,.6)),He(v.Alert,"successColor",Wn(v.success.light,.6)),He(v.Alert,"warningColor",Wn(v.warning.light,.6)),He(v.Alert,"errorFilledBg",S("palette-error-main")),He(v.Alert,"infoFilledBg",S("palette-info-main")),He(v.Alert,"successFilledBg",S("palette-success-main")),He(v.Alert,"warningFilledBg",S("palette-warning-main")),He(v.Alert,"errorFilledColor",Yr(()=>v.getContrastText(v.error.main))),He(v.Alert,"infoFilledColor",Yr(()=>v.getContrastText(v.info.main))),He(v.Alert,"successFilledColor",Yr(()=>v.getContrastText(v.success.main))),He(v.Alert,"warningFilledColor",Yr(()=>v.getContrastText(v.warning.main))),He(v.Alert,"errorStandardBg",Un(v.error.light,.9)),He(v.Alert,"infoStandardBg",Un(v.info.light,.9)),He(v.Alert,"successStandardBg",Un(v.success.light,.9)),He(v.Alert,"warningStandardBg",Un(v.warning.light,.9)),He(v.Alert,"errorIconColor",S("palette-error-main")),He(v.Alert,"infoIconColor",S("palette-info-main")),He(v.Alert,"successIconColor",S("palette-success-main")),He(v.Alert,"warningIconColor",S("palette-warning-main")),He(v.AppBar,"defaultBg",S("palette-grey-100")),He(v.Avatar,"defaultBg",S("palette-grey-400")),He(v.Button,"inheritContainedBg",S("palette-grey-300")),He(v.Button,"inheritContainedHoverBg",S("palette-grey-A100")),He(v.Chip,"defaultBorder",S("palette-grey-400")),He(v.Chip,"defaultAvatarColor",S("palette-grey-700")),He(v.Chip,"defaultIconColor",S("palette-grey-700")),He(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),He(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),He(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),He(v.LinearProgress,"primaryBg",Un(v.primary.main,.62)),He(v.LinearProgress,"secondaryBg",Un(v.secondary.main,.62)),He(v.LinearProgress,"errorBg",Un(v.error.main,.62)),He(v.LinearProgress,"infoBg",Un(v.info.main,.62)),He(v.LinearProgress,"successBg",Un(v.success.main,.62)),He(v.LinearProgress,"warningBg",Un(v.warning.main,.62)),He(v.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.11)`),He(v.Slider,"primaryTrack",Un(v.primary.main,.62)),He(v.Slider,"secondaryTrack",Un(v.secondary.main,.62)),He(v.Slider,"errorTrack",Un(v.error.main,.62)),He(v.Slider,"infoTrack",Un(v.info.main,.62)),He(v.Slider,"successTrack",Un(v.success.main,.62)),He(v.Slider,"warningTrack",Un(v.warning.main,.62));const j=ms(v.background.default,.8);He(v.SnackbarContent,"bg",j),He(v.SnackbarContent,"color",Yr(()=>v.getContrastText(j))),He(v.SpeedDialAction,"fabHoverBg",ms(v.background.paper,.15)),He(v.StepConnector,"border",S("palette-grey-400")),He(v.StepContent,"border",S("palette-grey-400")),He(v.Switch,"defaultColor",S("palette-common-white")),He(v.Switch,"defaultDisabledColor",S("palette-grey-100")),He(v.Switch,"primaryDisabledColor",Un(v.primary.main,.62)),He(v.Switch,"secondaryDisabledColor",Un(v.secondary.main,.62)),He(v.Switch,"errorDisabledColor",Un(v.error.main,.62)),He(v.Switch,"infoDisabledColor",Un(v.info.main,.62)),He(v.Switch,"successDisabledColor",Un(v.success.main,.62)),He(v.Switch,"warningDisabledColor",Un(v.warning.main,.62)),He(v.TableCell,"border",Un(fs(v.divider,1),.88)),He(v.Tooltip,"bg",fs(v.grey[700],.92))}if(v.mode==="dark"){He(v.Alert,"errorColor",Un(v.error.light,.6)),He(v.Alert,"infoColor",Un(v.info.light,.6)),He(v.Alert,"successColor",Un(v.success.light,.6)),He(v.Alert,"warningColor",Un(v.warning.light,.6)),He(v.Alert,"errorFilledBg",S("palette-error-dark")),He(v.Alert,"infoFilledBg",S("palette-info-dark")),He(v.Alert,"successFilledBg",S("palette-success-dark")),He(v.Alert,"warningFilledBg",S("palette-warning-dark")),He(v.Alert,"errorFilledColor",Yr(()=>v.getContrastText(v.error.dark))),He(v.Alert,"infoFilledColor",Yr(()=>v.getContrastText(v.info.dark))),He(v.Alert,"successFilledColor",Yr(()=>v.getContrastText(v.success.dark))),He(v.Alert,"warningFilledColor",Yr(()=>v.getContrastText(v.warning.dark))),He(v.Alert,"errorStandardBg",Wn(v.error.light,.9)),He(v.Alert,"infoStandardBg",Wn(v.info.light,.9)),He(v.Alert,"successStandardBg",Wn(v.success.light,.9)),He(v.Alert,"warningStandardBg",Wn(v.warning.light,.9)),He(v.Alert,"errorIconColor",S("palette-error-main")),He(v.Alert,"infoIconColor",S("palette-info-main")),He(v.Alert,"successIconColor",S("palette-success-main")),He(v.Alert,"warningIconColor",S("palette-warning-main")),He(v.AppBar,"defaultBg",S("palette-grey-900")),He(v.AppBar,"darkBg",S("palette-background-paper")),He(v.AppBar,"darkColor",S("palette-text-primary")),He(v.Avatar,"defaultBg",S("palette-grey-600")),He(v.Button,"inheritContainedBg",S("palette-grey-800")),He(v.Button,"inheritContainedHoverBg",S("palette-grey-700")),He(v.Chip,"defaultBorder",S("palette-grey-700")),He(v.Chip,"defaultAvatarColor",S("palette-grey-300")),He(v.Chip,"defaultIconColor",S("palette-grey-300")),He(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),He(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),He(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),He(v.LinearProgress,"primaryBg",Wn(v.primary.main,.5)),He(v.LinearProgress,"secondaryBg",Wn(v.secondary.main,.5)),He(v.LinearProgress,"errorBg",Wn(v.error.main,.5)),He(v.LinearProgress,"infoBg",Wn(v.info.main,.5)),He(v.LinearProgress,"successBg",Wn(v.success.main,.5)),He(v.LinearProgress,"warningBg",Wn(v.warning.main,.5)),He(v.Skeleton,"bg",`rgba(${S("palette-text-primaryChannel")} / 0.13)`),He(v.Slider,"primaryTrack",Wn(v.primary.main,.5)),He(v.Slider,"secondaryTrack",Wn(v.secondary.main,.5)),He(v.Slider,"errorTrack",Wn(v.error.main,.5)),He(v.Slider,"infoTrack",Wn(v.info.main,.5)),He(v.Slider,"successTrack",Wn(v.success.main,.5)),He(v.Slider,"warningTrack",Wn(v.warning.main,.5));const j=ms(v.background.default,.98);He(v.SnackbarContent,"bg",j),He(v.SnackbarContent,"color",Yr(()=>v.getContrastText(j))),He(v.SpeedDialAction,"fabHoverBg",ms(v.background.paper,.15)),He(v.StepConnector,"border",S("palette-grey-600")),He(v.StepContent,"border",S("palette-grey-600")),He(v.Switch,"defaultColor",S("palette-grey-300")),He(v.Switch,"defaultDisabledColor",S("palette-grey-600")),He(v.Switch,"primaryDisabledColor",Wn(v.primary.main,.55)),He(v.Switch,"secondaryDisabledColor",Wn(v.secondary.main,.55)),He(v.Switch,"errorDisabledColor",Wn(v.error.main,.55)),He(v.Switch,"infoDisabledColor",Wn(v.info.main,.55)),He(v.Switch,"successDisabledColor",Wn(v.success.main,.55)),He(v.Switch,"warningDisabledColor",Wn(v.warning.main,.55)),He(v.TableCell,"border",Wn(fs(v.divider,1),.68)),He(v.Tooltip,"bg",fs(v.grey[700],.92))}c0(v.background,"default"),c0(v.background,"paper"),c0(v.common,"background"),c0(v.common,"onBackground"),c0(v,"divider"),Object.keys(v).forEach(j=>{const R=v[j];j!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&He(v[j],"mainChannel",Zl(Gl(R.main))),R.light&&He(v[j],"lightChannel",Zl(Gl(R.light))),R.dark&&He(v[j],"darkChannel",Zl(Gl(R.dark))),R.contrastText&&He(v[j],"contrastTextChannel",Zl(Gl(R.contrastText))),j==="text"&&(c0(v[j],"primary"),c0(v[j],"secondary")),j==="action"&&(R.active&&c0(v[j],"active"),R.selected&&c0(v[j],"selected")))})}),E=t.reduce((P,v)=>gr(P,v),E);const M={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:l,getSelector:MS(E)},{vars:T,generateThemeVars:F,generateStyleSheets:_}=function(P,v={}){const{getSelector:S=H,disableCssColorScheme:I,colorSchemeSelector:j}=v,{colorSchemes:R={},components:A,defaultColorScheme:D="light",...L}=P,{vars:$,css:q,varsWithDefaults:O}=Vc(L,v);let U=O;const X={},{[D]:ee,...V}=R;if(Object.entries(V||{}).forEach(([z,W])=>{const{vars:G,css:Q,varsWithDefaults:Y}=Vc(W,v);U=gr(U,Y),X[z]={css:Q,vars:G}}),ee){const{css:z,vars:W,varsWithDefaults:G}=Vc(ee,v);U=gr(U,G),X[D]={css:z,vars:W}}function H(z,W){let G=j;if(j==="class"&&(G=".%s"),j==="data"&&(G="[data-%s]"),j?.startsWith("data-")&&!j.includes("%s")&&(G=`[${j}="%s"]`),z){if(G==="media")return P.defaultColorScheme===z?":root":{[`@media (prefers-color-scheme: ${R[z]?.palette?.mode||z})`]:{":root":W}};if(G)return P.defaultColorScheme===z?`:root, ${G.replace("%s",String(z))}`:G.replace("%s",String(z))}return":root"}return{vars:U,generateThemeVars:()=>{let z={...$};return Object.entries(X).forEach(([,{vars:W}])=>{z=gr(z,W)}),z},generateStyleSheets:()=>{const z=[],W=P.defaultColorScheme||"light";function G(te,le){Object.keys(le).length&&z.push(typeof te=="string"?{[te]:{...le}}:te)}G(S(void 0,{...q}),q);const{[W]:Q,...Y}=X;if(Q){const{css:te}=Q,le=R[W]?.palette?.mode,me=!I&&le?{colorScheme:le,...te}:{...te};G(S(W,{...me}),me)}return Object.entries(Y).forEach(([te,{css:le}])=>{const me=R[te]?.palette?.mode,J=!I&&me?{colorScheme:me,...le}:{...le};G(S(te,{...J}),J)}),z}}}(E,M);return E.vars=T,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([P,v])=>{E[P]=v}),E.generateThemeVars=F,E.generateStyleSheets=_,E.generateSpacing=function(){return dt.createSpacing(u.spacing,cu(this))},E.getColorSchemeSelector=function(P){return function(v){return P==="media"?`@media (prefers-color-scheme: ${v})`:P?P.startsWith("data-")&&!P.includes("%s")?`[${P}="${v}"] &`:P==="class"?`.${v} &`:P==="data"?`[data-${v}] &`:`${P.replace("%s",v)} &`:"&"}}(d),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=l,E.unstable_sxConfig={...q1,...u?.unstable_sxConfig},E.unstable_sx=function(P){return sl({sx:P,theme:this})},E.toRuntimeSource=Xp,E}function g4(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:su({...n===!0?{}:n.palette,mode:t})})}function Yp(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...l}=e,d=i||"light",c=r?.[d],u={...r,...n?{[d]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return o2(e,...t);let p=n;"palette"in e||u[d]&&(u[d]!==!0?p=u[d].palette:d==="dark"&&(p={mode:"dark"}));const f=o2({...e,palette:p},...t);return f.defaultColorScheme=d,f.colorSchemes=u,f.palette.mode==="light"&&(f.colorSchemes.light={...u.light!==!0&&u.light,palette:f.palette},g4(f,"dark",u.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:f.palette},g4(f,"light",u.light)),f}return n||"light"in u||d!=="light"||(u.light=!0),RS({...l,colorSchemes:u,defaultColorScheme:d,...typeof o!="boolean"&&o},...t)}const Jp=Yp();function Zr(){const e=dt.useTheme(Jp);return e[F0]||e}function IS({theme:e,...t}){const n=F0 in e?e[F0]:void 0;return a.jsx(dt.ThemeProvider,{...t,themeId:n?F0:void 0,theme:n||e})}const DS="mui-color-scheme",LS="light",OS="dark",PS="mui-mode",{CssVarsProvider:AS,useColorScheme:cT,getInitColorSchemeScript:dT}=dt.unstable_createCssVarsProvider({themeId:F0,theme:()=>Yp({cssVariables:!0}),colorSchemeStorageKey:DS,modeStorageKey:PS,defaultColorScheme:{light:LS,dark:OS},resolveTheme:e=>{const t={...e,typography:Kp(e.palette,e.typography)};return t.unstable_sx=function(n){return sl({sx:n,theme:this})},t}}),FS=AS;function Qp({theme:e,...t}){const n=z0.useMemo(()=>{if(typeof e=="function")return e;const o=F0 in e?e[F0]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?a.jsx(IS,{theme:n,...t}):a.jsx(FS,{theme:e,...t})}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-grid_h9wwa_7{position:relative;box-sizing:border-box;user-select:none}._sheetxl-grid_h9wwa_7 *{box-sizing:border-box!important}._sheetxl-grid_h9wwa_7 *:focus{outline:none}._sheetxl-grid_h9wwa_7 .cell-container{position:absolute;overflow:visible;white-space:pre}._sheetxl-grid_h9wwa_7 .cell-container>*{inset:0;position:absolute}._sheetxl-grid_h9wwa_7 .sheetxl-stage{contain:strict}._sheetxl-grid_h9wwa_7 .sheetxl-stage>*{contain:strict}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Pn="up",An="down",On="left",Mn="right",v1="tl",Sa="t",Ca="l",cr="c",Xo="text/html",k0="text/plain",$c="image/png",zS=Object.freeze({left:0,top:0}),BS=Object.freeze({left:0,top:0,bottom:0,right:0}),NS=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:NS,EmptyRect:BS,EmptyTopLeft:zS},Symbol.toStringTag,{value:"Module"}));const rr="column",m0="row",VS=Object.freeze({colIndex:0,rowIndex:0}),HS=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),e9=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,t9=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,$S=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,WS=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,x4=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,y4=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,n9=(e=m0,t=!1)=>t?e!==rr?$S:WS:e!==rr?t9:e9,b4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,r2=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,i2=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),w4=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r2(e[n],t[n]))return!1;return!0},Wc=(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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},v4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];i2(n,r)&&(n.rowStart=Math.min(n.rowStart,r.rowStart),n.colStart=Math.min(n.colStart,r.colStart),n.rowEnd=Math.max(n.rowEnd,r.rowEnd),n.colEnd=Math.max(n.colEnd,r.colEnd))}return n},US=[null,null],qS=(e,t,n)=>{if(e[0].value===e[1].value)return t};function S4(e,t=2,n,o=m0,r){let i=[...e];if(t<=0||e.length<=1)return i;let l=o===rr,d=0,c=!1;do{const u=i.sort(n9(l?m0:rr));i=[],i.push(u[0]);const p=u.length;let f=0,h=u[0],g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;for(let w=1;w<p;w++){const b=u[w];let C=!1;if(C=l?h&&m===b.rowStart&&y===b.rowEnd&&x+1===b.colStart:h&&g===b.colStart&&x===b.colEnd&&y+1===b.rowStart,C){let E={colStart:g,rowStart:m,colEnd:l?b.colEnd:x,rowEnd:l?y:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const k=r??[null,null];k[0]=h,k[1]=b,E=n(k,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,x=h.colEnd,y=h.rowEnd}d++,l=!l,d===1&&(c=!0)}while(d<t&&c&&i.length>1);return i}const Lt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:VS,EmptyRange:HS,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:x4,columnFirstRangeComparator:e9,createCellComparator:(e=m0,t=!1)=>t?e!==rr?(n,o)=>n.rowIndex===o.rowIndex?o.colIndex-n.colIndex:o.rowIndex-n.rowIndex:(n,o)=>n.colIndex===o.colIndex?o.rowIndex-n.rowIndex:o.colIndex-n.colIndex:e!==rr?y4:x4,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER;return{append:(d,c,u)=>{let p=!0;const f=u!==void 0;if(f){const m=e?e(r,u,t):r===u?u:void 0;m===void 0?p=!1:u=m}if(p&&c===l+1&&d===i)return t?o.rowEnd=c:o.colEnd=c,l=c,void(r=u);o&&n.push(o);const h=t?d:c,g=t?c:d;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=u),i=d,l=c,r=u},done:d=>(o&&(n.push(o),o=null),d?S4(n,3,d===!0?qS:d,t?rr:m0,US):n)}},createRangeComparator:n9,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:v4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!r2(n,o);)o=n,n=v4(o,t);return n},indexOfCoords:(e,t)=>{const n={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let o=t.length-1;o>=0;o--)if(i2(n,t[o]))return o;return-1},intersectRanges:(e,t,n)=>{if(!e)return n?t:{...t};if(!t)return n?e:{...e};if(!e&&!t||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 d=n;return d?(d.colStart=o,d.rowStart=r,d.colEnd=i,d.rowEnd=l):d={colStart:o,rowStart:r,colEnd:i,rowEnd:l},d},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:b4,isEqualRanges:r2,isEqualRangesArrays:w4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!b4(e.cell,t.cell)&&w4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:i2,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:S4,rowFirstCellComparator:y4,rowFirstRangeComparator:t9,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:Wc,unionRangesArrays:(e,t,n)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let o=e[0];for(let r=1;r<e.length;r++)o=Wc(o,e[r],n);return t&&(o=Wc(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),ZS=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function GS(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const n=Object.prototype.toString.call(t);return n==="[object RegExp]"||n==="[object Date]"||t.$$typeof===ZS}(e)}function Kl(e,t){return t.clone!==!1&&t.isMergeableObject(e)?hi((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function KS(e,t,n){return e.concat(t).map(function(o){return Kl(o,n)})}function C4(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(n){return Object.propertyIsEnumerable.call(t,n)}):[]));var t}function k4(e,t){try{return t in e}catch{return!1}}function hi(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||KS,n.isMergeableObject=n.isMergeableObject||GS,n.cloneUnlessOtherwiseSpecified=Kl;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,l){const d={};return l.isMergeableObject(r)&&C4(r).forEach(function(c){d[c]=Kl(r[c],l)}),C4(i).forEach(function(c){var u,p;k4(u=r,p=c)&&(!Object.hasOwnProperty.call(u,p)||!Object.propertyIsEnumerable.call(u,p))||(k4(r,c)&&l.isMergeableObject(i[c])?d[c]=function(f,h){if(!h.customMerge)return hi;const g=h.customMerge(f);return typeof g=="function"?g:hi}(c,l)(r[c],i[c],l):d[c]=Kl(i[c],l))}),d}(e,t,n):Kl(t,n)}hi.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return hi(n,o,t)},{})};const XS=Object.freeze([]),YS=Object.freeze({}),E4=e=>e,Us=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),o9=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),Ll=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,r9=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?r9(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),JS=(e,t)=>!(e!==t&&!o9(e,t)&&!e.isEqual?.(t)),i9=(e,t,n=JS)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return n(e,t)?null:e;const o=Object.keys(e);if(o.length===0)return null;let r=!1;for(let i=0;i<o.length;i++){const l=o[i];i9(e[l],t?.[l],n)===null&&(r=!0,delete e[l])}return r&&Object.keys(e).length===0?null:void 0},_4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),T4=e=>e==null,j4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),M4=!(typeof window>"u"||!window.document||!window.document.createElement),Yo={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},ka=()=>{if(l9())return Yo.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Yo.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Yo.MacOS:/(iphone|ipad|ipod)/i.test(e)?Yo.IOS:/android/.test(e)?Yo.Android:/linux/.test(e)?Yo.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Yo.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Yo.Firefox:Yo.Unknown:Yo.Unknown};function l9(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const R4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),ko=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:XS,EmptyObject:YS,OSType:Yo,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=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:M4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>T4(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,d=0;function c(){let p=Date.now()-d;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(l=e.apply(i,r),i=r=null))}t==null&&(t=100);const u=function(){i=globalThis,r=arguments,d=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(l=e.apply(i,r),i=r=null),l};return u.clear=function(){o&&(clearTimeout(o),o=null)},u.flush=function(){o&&(l=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},u},deepEqual:function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){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;r--!==0;)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;r--!==0;)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;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){let l=i[r];if(!(l==="_owner"&&t.$$typeof||e(t[l],n[l])))return!1}return!0}return t!=t&&n!=n},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(n=>{typeof t[n]!="object"||t[n]===null||Object.isFrozen(t[n])||e(t[n])}),t},deepMerge:hi,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const l=o[i];e[l]!==t[l]&&(e[l]===void 0?n[l]=t[l]:n[l]=e[l])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=E4){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=E4){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 typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const n=t.split(".");let o=e;for(let r=0;r<n.length;r++){const i=n[r];if(!o)return null;let l=o[i];if(typeof l=="function"&&(l=l.bind(o)()),!l||!Ll(l))return l;o=l}return o??null},getOS:ka,hasFocus:R4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:o9,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:l9,isNullOrUndefined:T4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:Ll,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:j4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!Ll(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=hi(n,e[o]||{},{arrayMerge:(r,i)=>[...i]});return n},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,n)=>{if(!M4)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(r){t=r,t&&t.persist&&t.persist(),n||(n=!0,requestAnimationFrame(o))}},removeEmptyProperties:r9,removeEqualValues:i9,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=_4(),o={id:requestAnimationFrame(function r(){_4()-n>=t?e.call(null):o.id=requestAnimationFrame(r)})};return o},roundAccurately:(e,t=0)=>{if(e==null||!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 i=0;r&&i<o.length-1;i++){const l=o[i];let d=r[l];if(d==null&&(d={},r[l]=d),!Ll(d))throw new Error("Can not set path to a non object path.");r=d}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!Ll(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(!j4(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})},d=()=>{t.right>r.left&&t.right<r.right&&(o.push({...r,left:t.right}),r={...r,right:t.right})},c=()=>{t.left>r.left&&t.left<r.right&&(o.push({...r,right:t.left}),r={...r,left:t.left})};return n?(c(),d(),i(),l()):(i(),l(),d(),c()),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(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(o=>e(o));if(typeof t.toString=="function"&&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 r=0;r<n;r++)o[r]=Array(t);for(let r=0;r<t;r++)for(let i=0;i<n;i++)o[i][r]=e[r][i];return o},uuidV4:Us,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=>{R4(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 a9=e=>{const t=new Uint8Array(e),n=t.byteLength;let o="";for(let r=0;r<n;r++)o+=String.fromCharCode(t[r]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(o);if(typeof Buffer<"u")return Buffer.from(o,"binary").toString("base64");throw new Error("Unsupported environment")},l2=e=>new Promise((t,n)=>{if(e)if(typeof FileReader<"u"){const o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=()=>{n(o.error)},o.readAsText(e)}else if(typeof Buffer<"u"){const o=r=>Buffer.from(r).toString("utf-8");e.arrayBuffer().then(r=>{t(o(r))}).catch(r=>{n(r)})}else n(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:a9,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),n=t.length,o=new Uint8Array(n);for(let r=0;r<n;r++)o[r]=t.charCodeAt(r);return o.buffer},blobToString:l2},Symbol.toStringTag,{value:"Module"}));const s9="data:image/png;base64,",c9="Unable to resolve image.",I4=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{o?.src&&URL.revokeObjectURL(o.src)}o||n(c9)}),Uc="image/svg+xml";var D4,L4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:s9,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 i=document.createElement("canvas");i.width=r.naturalWidth,i.height=r.naturalHeight,i.getContext("2d").drawImage(r,0,0);const l=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:l})}catch(i){URL.revokeObjectURL(e),o(i)}},{once:!0}),r.addEventListener("error",function(){URL.revokeObjectURL(e),o("Invalid Image")},{once:!0}),await r.decode("sync")}catch{r?.src&&URL.revokeObjectURL(r.src)}r||o(c9)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",l=URL.createObjectURL(new Blob([e],{type:i})),d=await I4(l);n={mimeType:i,naturalDimensions:d,asUrl:l}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),l=URL.createObjectURL(new Blob([i],{type:Uc})),d=await I4(l);n={mimeType:t??Uc,naturalDimensions:d,asUrl:l,asSVGText:i}}catch{}};if(t===Uc?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"})),(L4=D4||(D4={})).resolveTypedUpdates=(e,t,n,o)=>{if(e===null)return e;if(e===void 0)return o;let r=e;if(t?.shorthand){const c=t?.shorthand(e,n);c!==void 0&&(r=c)}if(r!==null&&t?.getSubType){const c=t.getSubType(r);c&&(t=c)}const i=t?.properties,l=t?.arrayType??!1;let d=r;if(t&&t.merge&&d&&o)d=t.merge(d,o,n);else if(!l&&i){const c=Object.keys({...r,...o});d=null;for(let u=0;u<c.length;u++){const p=c[u];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,L4.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(d=d??{},d[p]=f)}}return d};const O4=`The Safari browser does not support advanced copy and paste.
45
- Copy and paste will be limited to within the browser tab.
46
-
47
- Please use Chrome or Edge if external copy and paste is required.`,qc=`You do not have permissions to access the clipboard.
48
- All copy and paste operations will be limited to the browser tab.`,d9={Safari:`The Safari browser does not support advanced copy and paste.
49
- Copy and paste will be limited to within the browser tab.
50
-
51
- Please use Chrome or Edge if external copy and paste is required.`,Perms:qc,PermsWrite:ka()===Yo.Safari?O4:qc,PermsRead:ka()===Yo.Safari?O4:qc},Zc=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Gc=async(e,t,n)=>{if(ka()===Yo.Safari)return await n(new Error(d9.Safari));try{const o=async l=>{try{return await l()}catch(d){if(d.message?.includes("Document is not focused"))return!1;throw d}},r=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let i=!1;if(r.state==="prompt"&&(i=await o(t)),i||r.state!=="granted"||(i=await t()),!i)return await n(new Error(r.state))}catch(o){return o.message==="No valid data on clipboard"||o.name==="DataError"?void 0:await n(o)}},u9=async e=>{try{return await e.read({unsanitized:[Xo]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(n,o)=>new Blob([o],{type:n});class t{constructor(o,r){this._items={},this._types=Object.keys(o);const i={},l=Object.keys(o);for(let d=0;d<l.length;d++){const c=l[d];let u=o[c];i[c]=typeof u=="string"?e(c,u):u}this._items=i,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(o){return Promise.resolve(this._items[o])}supports(o){return!0}}globalThis.ClipboardItem=t}const a2=async(e,t=Xo)=>new Promise(async(n,o)=>{try{const r=await(async(i,l)=>{if(!i)return null;const d=await u9(i);let c=!1;for(let u=0;!c&&d&&u<d.length;u++)if(c=d[u].types.includes(l),c)return await d[u].getType(l);return c?void 0:null})(e,t);if(r){const i=new FileReader;i.onload=()=>{n(i.result)},i.onerror=()=>{n("")},i.readAsText(r)}else n("")}catch(r){o(r)}}),P4=async(e,t=Xo)=>{const n=await a2(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Xo)}catch{console.warn("Can't parse html from clipboard.")}return o},Ea="clipboard-uuid",Ei="web text/uuid",A4=e=>`<div style="display:none" ${Ea}="${e}"/>`,QS=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Xo);o.body.firstElementChild.setAttribute(Ea,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},F4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Ea}="${e}"]`);if(n&&n.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};let S1=class{constructor(e){if(e?.nativeClipboard===void 0||e?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{e?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=e?.nativeClipboard===!1?null:e?.nativeClipboard;this._disableCheckOnFocus=e?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await Gc("clipboard-read",async()=>{await Zc();const e=await a2(this._nativeClipboard,Ei);if(!this._state||e&&e===this._state.uuid)return!0;const t=await P4(this._nativeClipboard,Xo);return!this._state||(F4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||ka()===Yo.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 Gc("clipboard-read",async()=>{if(await Zc(),this._state?.uuid){const t=await a2(this._nativeClipboard,Ei);if(t&&t===e._state.uuid)return!0;const n=await P4(this._nativeClipboard,Xo);if(F4(e._state?.uuid,n))return!0}return e._state={items:await u9(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(e){return this._write({uuid:Us(),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 Gc("clipboard-write",async()=>{await Zc(),o&&r.length===0&&(r.push(new ClipboardItem({[Ei]:new Blob([o],{type:Ei})})),r.push(new ClipboardItem({[Xo]:new Blob([A4(o)],{type:Xo})})));for(let l=0;l<Math.min(1,r.length);l++){const d=r[l];let c=d.types.indexOf(Xo),u=null;if(c!==-1){const h=await d.getType(Xo);u=await l2(h),u&&(u=QS(o,u))}if(!u&&d.types.includes(k0)){const h=await d.getType(k0);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await l2(h),g&&(u=`<div ${Ea}="${o}">${g}</div>`)}}if(!u&&d.types.includes($c)){const h=await d.getType($c),g=a9(await h.arrayBuffer());u=`<div ${Ea}="${o}"><img src="${s9+g}"/></div>`}!u&&o&&(u=A4(o));const p=new Blob([u??""],{type:Xo}),f={};for(let h=0;h<d.types.length;h++){const g=d.types[h];f[g]=h===c?p:d.getType(g)}u&&c===-1&&(f[Xo]=p),o&&(f[Ei]=new Blob([o],{type:Ei})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(e){if(!e)return void this.clear();let t=null;const n={};try{const r=await e.toText?.()??null;r&&(n[k0]=new Blob([r??""],{type:k0}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Xo]=new Blob([r],{type:Xo}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[$c]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Us(),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 i=0;!o&&n&&i<n.length;i++)n[i].types.includes(k0)&&(o=await n[i].getType(k0));if(!o)return void e("");const r=new FileReader;r.onload=()=>{e(r.result)},r.readAsText(o),r.onerror=i=>{t(i)}})}async writeText(e){const t=[new ClipboardItem({[k0]:new Blob([e],{type:k0})})];return this._write({uuid:Us(),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,typeof n=="boolean"?{}:n)}dispatchEvent(e){if(!e)return;const t=n=>{const o=n.get(e.type);o&&o.forEach((r,i)=>{try{typeof i=="function"?i(e):i.handleEvent&&i.handleEvent(e),r.once&&o.delete(i)}catch(l){console.warn(l)}})};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),r.size===0&&o.delete(e))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}};var Kc;(Kc=S1||(S1={})).ErrorMessages=d9,Kc.Global=new Kc,function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-scrollbar_eblx4_6 ::-webkit-scrollbar-button{background:transparent}._fullscreen-portal-root_1mjsr_4{pointer-events:none;position:absolute;inset:0;width:100%;height:100%;z-index:1200}._fullscreen-portal-root_1mjsr_4>*{pointer-events:auto}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const Xl={Left:"left",Right:"right",Center:"center"},fo="shift",Z0="alt",Po="ctrl",V0={Horizontal:"horizontal",Vertical:"vertical"};function h9(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=h9(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ai(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=h9(e))&&(o&&(o+=" "),o+=t);return o}var eC=function(){},p9=typeof window<"u",tC=p9?s.useLayoutEffect:s.useEffect,z4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const pi=p9&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(z4),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return tC(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[eC,z4]},it=(e,t)=>{const n=s.useCallback((...i)=>e?.(...i),t),o=s.useRef(null);o.current=n;const r=s.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},nC=e=>{const{style:t,orientation:n=V0.Vertical,...o}=e,r=n===V0.Vertical;return a.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},oC=e=>{const{style:t,orientation:n=V0.Vertical,...o}=e,r=n===V0.Vertical;return a.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:a.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:a.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:a.jsx("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"})})})})},s2=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const l=n[i].getBoundingClientRect();let d=l.left-t,c=d+l.width;if(o){if(d<e&&c>=e)return d}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:s2},Symbol.toStringTag,{value:"Module"}));const uu=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:l,orientation:d=V0.Vertical,onScrollOffset:c,onScroll:u,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=nC,createScrollEndButton:x=oC,...y}=e,w=it(u,[u]),b=s.useRef(null),[C,{width:E,height:k}]=pi(),[M,{width:T,height:F}]=pi(),_=d===V0.Vertical,P=_?"top":"left",v=_?"scrollTop":"scrollLeft",S=_?k:E,I=_?F:T,[j,R]=s.useState(null);s.useEffect(()=>{j!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[P]:j})},[j,_]);const A=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=W?0:s2(z,Q[P],Y,!0,Math.max(0,z-f));return R(te),Math.max(0,te)},[]),D=s.useCallback((z,W=!1)=>{if(!b.current)return 0;const G=b.current.querySelector(".scrollbar-viewport"),Q=G.getBoundingClientRect(),Y=G.children,te=Math.ceil(I-S),le=W?te:s2(z,Q[P],Y,!1,Math.max(0,z+f));return R(le),Math.min(te,le)},[I,S]),L=s.useRef(null),$=s.useCallback(z=>{L.current=n;const W=z.target[v];c(W,r,o),w?.(z)},[c,r,o,n]);s.useEffect(()=>{const z=L.current;L.current=null,n!==z&&(b.current[v]=n)},[n,v]);const q=s.useRef(null),O=s.useRef(null),U=s.useCallback(()=>{q.current&&(clearTimeout(q.current),q.current=null,O.current=null)},[]),X=s.useCallback((z,W,G,Q=h)=>{O.current=z,q.current=setTimeout(()=>{const Y=G?A(O.current||z):D(O.current||z);Y!==O.current?X(Y,!1,G,g):U()},W?0:Q)},[A,D,U]);s.useEffect(()=>()=>U(),[U]);const ee=n,V=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(ee)<=0||Math.floor(I-S)===0,onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!0)};return m?.(z)},[p,d,ee,j,I,S]),H=s.useMemo(()=>{if(!p)return null;const z={orientation:d,disabled:Math.floor(I-S)<=Math.ceil(ee),onMouseUp:U,onMouseLeave:U,onMouseDown:()=>X(ee,!0,!1)};return x?.(z)},[p,d,ee,j,I,S]);return a.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:_?"column":"row",padding:"0",...i},className:Ai("_sheetxl-scrollbar_eblx4_6",l),...y,children:[V,a.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:_?"column":"row",justifyContent:"center",alignItems:"center"},ref:C,children:a.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:_?"scroll":"hidden",overflowX:_?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:$,ref:b,children:a.jsx("div",{ref:M,style:{position:"absolute",height:_?o-r+(k??0):1,width:_?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),H]})}));uu.displayName="Scrollbar";let B4=Date.now,D0={},rC=1;const Ol=e=>{let t=D0[e]!==null;return t&&(D0[e]=null),t},N4=(e,t,n,o=0,r)=>{let i=B4(),l=i,d=0,c=0,u=0,p=rC++;if(p%20==0){const h={};for(let g in D0)h[g]=!0;D0=h}const f=function(h){let g=h!==!0,m=B4(),x=!0;try{x=(!t||t(p))??!0}catch{x=!1}if(!D0[p]||!x)return D0[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){u=Math.round((m-l)/16.666666666666668)-1;for(let b=0;b<Math.min(u,4);b++)f(!0),c++}o&&(d=(m-i)/o,d>1&&(d=1));let y=r?r(d):d,w=!1;try{w=e(y,m,g)}catch{w=!1}w!==!1&&d!==1||!g?g&&(l=m,requestAnimationFrame(f)):(D0[p]=null,n?.(60-c/((m-i)/1e3),p,d===1||o==null))};return D0[p]=!0,requestAnimationFrame(f),p},iC=function(e){return Math.pow(e-1,3)+1},lC=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let aC=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){e!==null&&(this.__clientWidth=e),t!==null&&(this.__clientHeight=t),n!==null&&(this.__contentWidth=n),o!==null&&(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&&(Ol(this.__isDecelerating),this.__isDecelerating=0);const i=this.__zoomLevel;n===void 0&&(n=this.__clientWidth/2),o===void 0&&(o=this.__clientHeight/2),e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),this.__computeScrollMax(e);const l=e/i;let d=l*(this.__scrollLeft+n)-n,c=l*(this.__scrollTop+o)-o;d>this.__maxScrollLeft?d=this.__maxScrollLeft:d<0&&(d=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(d,c,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&&(Ol(this.__isDecelerating),this.__isDecelerating=0),o!==void 0&&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(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);let n,o;this.__interruptedAnimation=!0,this.__isDecelerating&&(Ol(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(Ol(this.__isAnimating),this.__isAnimating=0,this.__interruptedAnimation=!0);let r=e.length===1;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(e.length===void 0)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),typeof t!="number")throw new Error("Invalid timestamp value: "+t);if(!this.__isTracking)return;let o,r;e.length===2?(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 l=o-this.__lastTouchLeft,d=r-this.__lastTouchTop,c=this.__scrollLeft,u=this.__scrollTop,p=this.__zoomLevel;if(n!==void 0&&this.options.zooming){let f=p;if(p=p/this.__lastScale*n,p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom),f!==p){let h=o-this.__clientLeft,g=r-this.__clientTop;c=(h+c)*p/f-h,u=(g+u)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=l*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=l/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){u-=d*this.options.speedMultiplier;const f=this.__maxScrollTop;(u>f||u<0)&&(this.options.bouncing?u+=d/2*this.options.speedMultiplier:u=u>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,u,t),this.__publish(c,u,p)}else{let l=this.options.locking?3:0,d=5,c=Math.abs(o-this.__initialTouchLeft),u=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=l,this.__enableScrollY=this.options.scrollingY&&u>=l,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=d||u>=d),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()),typeof e!="number")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 r=n;r>0&&t[r]>this.__lastTouchMove-100;r-=3)o=r;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 d=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>d||Math.abs(this.__decelerationVelocityY)>d)&&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&&(Ol(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,l=this.__scrollTop,d=this.__zoomLevel,c=e-i,u=t-l,p=n-d,f=function(m,x,y){y&&(this.__scrollLeft=i+c*m,this.__scrollTop=l+u*m,this.__zoomLevel=d+p*m,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),h=function(m){return this.__isAnimating===m}.bind(this),g=function(m,x,y){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||y)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=N4(f,h,g,this.options.animationDuration,r?iC:lC)}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 i=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),d=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/d)*d,this.__minDecelerationScrollTop=Math.floor(l/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/d)*d,this.__maxDecelerationScrollTop=Math.ceil(l/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,l,d){this.__stepThroughDeceleration(d)}.bind(this),n=this.options.snapping?4:.1,o=function(){const i=Math.abs(this.__decelerationVelocityX)>=n||Math.abs(this.__decelerationVelocityY)>=n;return i||(this.__didDecelerationComplete=!0),i}.bind(this),r=function(i,l,d){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=N4(t,o,r)}__stepThroughDeceleration(e){let t=this.__scrollLeft+this.__decelerationVelocityX,n=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){const o=Math.max(Math.min(this.__maxDecelerationScrollLeft,t),this.__minDecelerationScrollLeft);o!==t&&(t=o,this.__decelerationVelocityX=0);const r=Math.max(Math.min(this.__maxDecelerationScrollTop,n),this.__minDecelerationScrollTop);r!==n&&(n=r,this.__decelerationVelocityY=0)}if(e?this.__publish(t,n,this.__zoomLevel):(this.__scrollLeft=t,this.__scrollTop=n),!this.options.paging&&(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95),this.options.bouncing){let o=0,r=0,i=this.options.penetrationDeceleration,l=this.options.penetrationAcceleration;t<this.__minDecelerationScrollLeft?o=this.__minDecelerationScrollLeft-t:t>this.__maxDecelerationScrollLeft&&(o=this.__maxDecelerationScrollLeft-t),n<this.__minDecelerationScrollTop?r=this.__minDecelerationScrollTop-n:n>this.__maxDecelerationScrollTop&&(r=this.__maxDecelerationScrollTop-n),o!==0&&(o*this.__decelerationVelocityX<=0?this.__decelerationVelocityX+=o*i:this.__decelerationVelocityX=o*l),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*l)}}};var xr=typeof window<"u"?window:{screen:{},navigator:{}},ol=(xr.matchMedia||function(){return{matches:!1}}).bind(xr),f9=!1,sC={get passive(){return f9=!0}},V4=function(){};xr.addEventListener&&xr.addEventListener("p",V4,sC),xr.removeEventListener&&xr.removeEventListener("p",V4,!1);var cC=f9,dC="PointerEvent"in xr,hu="ontouchstart"in xr,m9=hu||"TouchEvent"in xr&&ol("(any-pointer: coarse)").matches,H4=(xr.navigator.maxTouchPoints||0)>0||m9,g9=xr.navigator.userAgent||"",uC=ol("(pointer: coarse)").matches&&/iPad|Macintosh/.test(g9)&&Math.min(xr.screen.width||0,xr.screen.height||0)>=768,x9=(ol("(pointer: coarse)").matches||!ol("(pointer: fine)").matches&&hu)&&!/Windows.*Firefox/.test(g9),hC=ol("(any-pointer: fine)").matches||ol("(any-hover: hover)").matches||uC||!hu,c2=!H4||!hC&&x9?H4?"touchOnly":"mouseOnly":"hybrid",pC=c2==="mouseOnly"?"mouse":c2==="touchOnly"||x9?"touch":"mouse";const fC=Object.freeze(Object.defineProperty({__proto__:null,deviceType:c2,primaryInput:pC,supportsPassiveEvents:cC,supportsPointerEvents:dC,supportsTouchEvents:m9},Symbol.toStringTag,{value:"Module"})),mC=new Set(["INPUT","TEXTAREA","SELECT"]),y9={};function d2(){return fC}const $t=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:y9,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:d2,focusableNodeNames:mC,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":ko.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),gC=[];function Z1(e,t,n=gC){const o=s.useRef(null);return s.useImperativeHandle(e,()=>{if(!o.current)return;const r=o.current,i=t?.();if(!i||typeof i!="object")throw new Error("attributes must return a plain object of values");const l=Object.keys(i),d=l.length;for(let c=0;c<d;c++){const u=l[c],p=i[u];Object.defineProperty(r,u,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const $4=e=>a.jsx(uu,{...e}),xC=({width:e,height:t})=>a.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),b9=s.memo(s.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:l=!0,createScrollCorner:d=xC,createHorizontalScrollbar:c=$4,createVerticalScrollbar:u=$4,style:p,touchElement:f,disableTouch:h,...g}=e,m=it(r,[r]),x=Z1(t,()=>({isScrollPane:()=>!0}),[]),y=s.useRef(null);s.useEffect(()=>{y.current&&(y.current.__scrollTop===o?.top&&y.current.__scrollLeft===o?.left||y.current.__isDecelerating||y.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const w=s.useCallback((S,I)=>{m?.({left:S,top:I})},[]),b=s.useCallback(S=>{y.current?.doTouchStart(S.touches,S.timeStamp)},[]),C=s.useCallback(S=>{S.preventDefault(),y.current?.doTouchMove(S.touches,S.timeStamp)},[]),E=s.useCallback(S=>{y.current?.doTouchEnd(S.timeStamp)},[]),k=s.useCallback(({containerWidth:S,containerHeight:I,totalWidth:j,totalHeight:R})=>{y.current.setDimensions(S,I,j,R)},[]);s.useEffect(()=>{const S=f??x.current;if(!h&&d2().supportsTouchEvents&&S&&o){if(!y.current){const I={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};y.current=new aC(w,I)}d2().supportsTouchEvents&&(S.addEventListener("touchstart",b),S.addEventListener("touchend",E),S.addEventListener("touchmove",C)),k({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{S?.removeEventListener("touchstart",b),S?.removeEventListener("touchend",E),S?.removeEventListener("touchmove",C)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[M,{width:T}]=pi(),[F,{height:_}]=pi(),P=s.useMemo(()=>{const S=u({orientation:V0.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:I=>{m?.({top:I})}});return a.jsx("div",{style:{display:"flex",flex:"0"},ref:M,children:S})},[u,o?.top,o?.height,o?.totalHeight]),v=s.useMemo(()=>{const S=c({orientation:V0.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:I=>m?.({left:I})});return a.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${T}px)`},children:a.jsx("div",{ref:F,className:"sizer",children:S})}),l?d({width:T,height:_}):a.jsx(a.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,l,d,T,_]);return a.jsx("div",{style:{position:"relative",display:"flex",minWidth:l?`${T}px`:void 0,minHeight:i?`${_}px`:void 0,...p},...g,ref:x,children:a.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[a.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),l?P:a.jsx(a.Fragment,{})]}),i?v:a.jsx(a.Fragment,{})]})})}));b9.displayName="ScrollPane";const yC=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let gs=0;function w9(){return s.useEffect(()=>{function e(){const t=document.fullscreenElement;if(!t)return;let n=t.querySelector(".fullscreen-portal-root");n||(n=document.createElement("div"),n.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",t.appendChild(n))}return gs++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),gs--,gs<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),gs=0)}},[]),{getPortalContainer:yC}}const bC=100,wC=100,vC=1e6,SC=100,CC=50,kC=s.memo(s.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:l=bC,endScrollIncrement:d=wC,style:c=y9,onMouseDown:u,onScrollOffset:p,onScroll:f,scaleLimit:h=vC,scaleFactor:g=SC,precisionFactor:m=CC,...x}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const y=it(u,[u]),w=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(l??0))}),[b,C]=s.useState(w),E=h!==0&&b.totalSize>h?g:1,k=E/m,M=Math.ceil(b.totalSize/E),T=Math.ceil(b.offset/E),F=Math.ceil(o/E),_=s.useCallback(A=>{},[]),[P,v]=s.useState(!1),S=s.useRef(null);s.useLayoutEffect(()=>{if(!P){S.current={propTotalSize:r,propViewportSize:o,propOffset:n};const A=w();C(A)}},[r,o,n,P,i,l,d]);const I=it((A,D,L)=>{const $=S.current;S.current=null,$&&$.propTotalSize===r&&$.propViewportSize===o&&$.propOffset===n||(Math.abs(A-T)<k&&(A=T),p?.(A*E,T,F))},[p,E,k,T,F]),j=s.useCallback(A=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",j),v(!1)},[]),R=s.useCallback(A=>{y?.(A),v(!0),document.addEventListener("mousemove",_,{passive:!0}),document.addEventListener("mouseup",j,{passive:!0})},[_,j]);return a.jsx(uu,{ref:t,style:{...c},...x,offset:T,totalSize:M,viewportSize:F,onMouseDown:R,onScrollOffset:I})}));function Xc(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}kC.displayName="VirtualScrollbar";var C1=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Xc(o,t),i=typeof r=="function";n.push(i?r:()=>Xc(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Xc(n,t)}};s.memo(s.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=s.useRef(null),i=s.useCallback(()=>{if(n)return void n?.current?.focus();const l=r.current.parentElement.children;let d=[];for(let c=0;c<l.length&&l[c]!==r.current;c++){const u=l[c].getAttribute("tabindex");if(u==null||u==="-1"||l[c].getAttribute("disabled")==="true")continue;const p=l[c];p.focus&&d.push({tabindex:parseInt(u),child:p})}d.length!==0&&(d.sort(function(c,u){return c.tabindex-u.tabindex}),d[0].child.focus())},[n]);return a.jsx("div",{tabIndex:0,ref:C1([r,t]),onFocus:i,...o})})),s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:l=1,strokeColor:d="grey",...c}=e,[u,{width:p,height:f}]=pi(),h=s.useRef(null),g=(w,b=0)=>{const C=w/2,E=f-C+b;return function(k,M,T=!1){if(M===0)return k;function F(j,R,A){let D=R.x-j.x,L=R.y-j.y,$=Math.sqrt(D*D+L*L);return _(j,R,Math.min(1,A/$))}function _(j,R,A){return{x:j.x+(R.x-j.x)*A,y:j.y+(R.y-j.y)*A}}function P(j,R){j.length>2&&(j[j.length-2]=R.x,j[j.length-1]=R.y)}function v(j){return{x:parseFloat(j[j.length-2]),y:parseFloat(j[j.length-1])}}let S=k.split(/[,\s]/).reduce(function(j,R){let A=R.match("([a-zA-Z])(.+)");return A?(j.push(A[1]),j.push(A[2])):j.push(R),j},[]).reduce(function(j,R){return parseFloat(R)==R&&j.length?j[j.length-1].push(R):j.push([R]),j},[]),I=[];if(S.length>1){let j=v(S[0]),R=null;S[S.length-1][0]==="Z"&&S[0].length>2&&(R=["L",j.x,j.y],S[S.length-1]=R),I.push(S[0]);for(let A=1;A<S.length;A++){let D=I[I.length-1],L=S[A],$=L===R?S[1]:S[A+1];if($&&D&&D.length>2&&L[0]==="L"&&$.length>2&&$[0]==="L"){let q,O,U=v(D),X=v(L),ee=v($);T?(q=_(X,D.origPoint||U,M),O=_(X,$.origPoint||ee,M)):(q=F(X,U,M),O=F(X,ee,M)),P(L,q),L.origPoint=X,I.push(L);let V=_(q,X,.5),H=_(X,O,.5),z=["C",V.x,V.y,H.x,H.y,O.x,O.y];z.origPoint=X,I.push(z)}else I.push(L)}if(R){let A=v(I[I.length-1]);I.push(["Z"]),P(I[0],A)}}else I=S;return I.reduce(function(j,R){return j+R.join(" ")+" "},"")}(`M 0 ${C} L ${i-.5} ${C} L ${i-.5} ${E} L ${2*i} ${E} L ${p-2*i} ${E} M ${p-2*i} ${E} L ${p-i} ${E} L ${p-i} ${C} L ${p} ${C}`,i)},m=s.useMemo(()=>g(l),[p,f,i,l]),x=s.useMemo(()=>{if(i===0)return;const w=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${w}`},[m,i,l]),y=s.useMemo(()=>({style:{clipPath:`path('${x}')`}}),[x]);return a.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:C1([h,u,t]),children:[s.isValidElement(r)?s.cloneElement(r,y):a.jsx(a.Fragment,{}),a.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:a.jsx("path",{d:m,stroke:d,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:l})})]})}));const EC={},_C=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:l,key:d,hitAreaProps:c=EC,...u}=e,p=o==="row",{style:f,className:h,...g}=c;return a.jsx("div",{style:{...n,position:"relative"},...u,children:a.jsx("div",{className:Ai("hit-box",h),style:{left:(p?-r:0)+"px",width:`calc(100% + ${p?r+i:0}px)`,top:(p?0:-r)+"px",height:`calc(100% + ${p?0:r+i}px)`,position:"absolute",...f},onPointerDown:l?void 0:t,...g})},d)},xs={},G0=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ys=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,E0=(e,t)=>{if(e==null)return null;const n={percent:null,pixels:null};let o=t;return typeof e=="string"&&((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 Ui(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=it(t,[t]),d=it(n,[n]),c=it(o,[o]),u=s.useRef(!1),p=e?.timerInitial??230,f=e?.timerContinuous??p/2,h=s.useRef(null),g=s.useRef(null),m=s.useRef(null),x=s.useRef(null),y=s.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=null)},[]),w=s.useCallback(P=>{x.current=setTimeout(()=>{window.requestAnimationFrame(()=>{u.current!==!1&&c?.(g.current,m.current,h.current)}),w(f)},P??p)},[]);s.useEffect(()=>()=>y(),[]);const b=r?"pointer":"mouse",C=s.useCallback(P=>{P.stopPropagation(),P.stopImmediatePropagation(),P.preventDefault()},[]),E=it(P=>{document.removeEventListener(`${b}move`,T),document.removeEventListener(`${b}up`,E),document.removeEventListener("keydown",F),document.removeEventListener("keyup",_),document.removeEventListener("touchstart",C,{capture:!0}),document.removeEventListener("touchmove",C,{capture:!0}),window.removeEventListener("blur",k),y(),window.requestAnimationFrame(()=>{u.current!==!1&&(u.current=!1,d?.(P,m.current,h.current),m.current=null)})},[]),k=s.useCallback(()=>{u.current!==!1&&(u.current=!1,E(g.current))},[]),M=it(()=>{y(),w(f),window.requestAnimationFrame(()=>{u.current!==!1&&c?.(g.current,m.current,h.current)})},[f]),T=it(P=>{g.current=P,M()},[]),F=it(P=>{m.current={ctrlKey:P.ctrlKey,shiftKey:P.shiftKey,altKey:P.altKey,metaKey:P.metaKey},M()},[]),_=it(P=>{m.current={ctrlKey:P.ctrlKey,shiftKey:P.shiftKey,altKey:P.altKey,metaKey:P.metaKey},M()},[f]);return it(P=>{P.isDefaultPrevented()||(m.current={ctrlKey:P.ctrlKey,shiftKey:P.shiftKey,altKey:P.altKey,metaKey:P.metaKey},l(P,m.current)!==!1&&(h.current=P,g.current=P.nativeEvent,document.addEventListener(`${b}up`,E,{passive:!1}),document.addEventListener(`${b}move`,T,{passive:!1}),document.addEventListener("keydown",F,{passive:!1}),document.addEventListener("keyup",_,{passive:!1}),window.addEventListener("blur",k,{passive:!0}),r&&i&&(document.addEventListener("touchstart",C,{passive:!1,capture:!0}),document.addEventListener("touchmove",C,{passive:!1,capture:!0})),u.current=!0,w(p)))},[p,r])}s.memo(s.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:l,onPositionChange:d,minBefore:c,maxBefore:u,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:x=!1,onDragStart:y,onDragResize:w,onDragFinish:b,resizerProps:C=xs,paneProps:E=xs,paneBeforeProps:k=xs,paneAfterProps:M=xs,createResizer:T=_C}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const F=s.useMemo(()=>s.isValidElement(o)&&s.isValidElement(n),[o,n]),_=s.useMemo(()=>{let ie=null;i&&(i==="before"?ie=0:i==="after"&&(ie=1));const Re=ie===null;return{fixedPaneOffset:ie,isPercent:Re,minBefore:E0(c,Re),maxBefore:E0(u,Re),minAfter:E0(p,Re),maxAfter:E0(f,Re)}},[c,u,p,f]),P=it(d,[d]),[v,S]=s.useState(()=>E0(l,i===null));s.useEffect(()=>{S(E0(l,i===null))},[l,i]);const[I,{width:j,height:R}]=pi(),[A,{width:D,height:L}]=pi(),$=r==="row"?D:L,q=r==="row"?j:R,O=s.useMemo(()=>((ie,Re,Me,be)=>{const Oe=[null,null],oe=[null,null];if(ie||(ie={percent:be.fixedPaneOffset===null?50:null,pixels:be.fixedPaneOffset===null?null:0}),Re===0)return ie?.pixels!=null?be.fixedPaneOffset!==1?(Oe[0]=ie?.pixels,oe[1]=100):(Oe[1]=ie?.pixels-Me,oe[0]=100):ie?.percent!=null&&(be.fixedPaneOffset!==1?(oe[0]=ie?.percent,oe[1]=100-ie?.percent):(oe[1]=ie?.percent,oe[0]=100-ie?.percent)),{percents:oe,pixels:Oe,minBefore:ys(be.minBefore,!0),maxBefore:ys(be.maxBefore,!0),minAfter:ys(be.minAfter),maxAfter:ys(be.maxAfter)};let Ce=G0(ie,Re,be.fixedPaneOffset!==1),Le=Re-Me,qe=G0(be.minBefore,Le,!0)??0,pt=G0(be.maxBefore,Le,!0)??Le,ot=0,We=0,st=0,Xe=Le;ot=(G0(be.maxAfter,Re,!1)??Me)-Me,We=G0(be.minAfter,Re,!1)??Re,st=Math.max(qe,ot),Xe=Math.min(pt,We),Ce=Math.max(st,Math.min(Ce,Xe)),We=Math.min(Le-Ce,G0(be.maxAfter,Le-Ce,!0)??Le),ot=Math.min(Le-Ce,G0(be.minAfter,Le-Ce,!0)??Le),Oe[0]=Ce,Oe[1]=Le-Oe[0];const Qe=Math.max(0,Math.min(100,Ce/Le*100));return oe[0]=Qe,oe[1]=100-oe[0],{percents:oe,pixels:Oe,minBefore:`${qe}px`,minAfter:`${ot}px`,maxBefore:`${Oe[0]}px`,maxAfter:`${Oe[1]}px`}})(v,q,$,_),[_,v,q,$,r]),[U,X]=s.useState(!1),ee=it(y,[y]),V=it(w,[w]),H=it(b,[b]),z=s.useRef(null),W=s.useRef(null),G=s.useRef(null),{style:Q,className:Y,...te}=E,le={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...Q},{className:me,style:J,...ae}=k,{className:ke,style:De,...ne}=M,de={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ye,style:ze,onPointerDown:$e,...gt}=C,bt=it(ie=>{const Re=E0(ie,i===null);S(Re)},[i]),Se=it(ie=>{if(x||!U)return;const Re=Ne.current?.getBoundingClientRect();let Me=0;Me=r==="row"?(ie.clientX??ie.touches?.[0]?.clientX)-Re.x:(ie.clientY??ie.touches?.[0]?.clientY)-Re.y,Me=Math.max(0,Math.min(q,Me)),_.fixedPaneOffset===1&&(Me=q-Me),l&&v.pixels===Me||S({pixels:Me,percent:null}),V?.(Me),ie.stopPropagation(),ie.preventDefault()},[_,r,x,U,v,q]),ht=it(ie=>{if(document.removeEventListener("pointermove",Se),document.removeEventListener("touchmove",Se),document.removeEventListener("pointerup",ht),U&&(X(!1),v)){if(H(v.pixels),!E0(l,i===null)||v.pixels!==l){const Re={...v};Re.percent===null&&(Re.percent=Re.pixels/q*100),P(Re)}ie.stopPropagation(),ie.preventDefault()}},[v,U,l,i,q]),xt=it(ie=>{$e?.(ie),ie.defaultPrevented||x||U||(X(!0),ee(),document.addEventListener("pointermove",Se,{passive:!1}),document.addEventListener("touchmove",Se,{passive:!1}),document.addEventListener("pointerup",ht,{passive:!1}))},[$e]),Ne=Z1(t,()=>({setPosition:bt,isSplitPane:()=>!0}),[]),wt=s.useMemo(()=>F?T?.({key:"resizer",ref:C1([A,W]),className:Ai("resizer",ye),onPointerDownCapture:xt,style:{cursor:x?void 0:r==="row"?"ew-resize":"ns-resize",minWidth:r==="row"?"2px":void 0,minHeight:r!=="row"?"2px":void 0,boxSizing:"border-box",pointerEvents:"all",zIndex:1,...ze},splitDirection:r,disabled:x,...gt}):null,[F,ye,gt,r,ze,x]),Ye=r==="row"?"Width":"Height",re={...le,...J,flex:_.fixedPaneOffset===0&&O?.pixels[0]!==null?`0 0 ${Math.round(O?.pixels[0])}px`:`1 1 ${Math.round(O?.percents[0]??100)}%`,[`min${Ye}`]:O?.minBefore,[`max${Ye}`]:o?O?.maxBefore:"100%"},Ue={...le,...De,flex:_.fixedPaneOffset===1&&O?.pixels[1]!==null?`0 0 ${Math.round(O?.pixels[1])}px`:`1 1 ${Math.round(O?.percents[1]??100)}%`,[`min${Ye}`]:O?.minAfter,[`max${Ye}`]:n?O?.maxAfter:"100%"},xe=s.useMemo(()=>n?a.jsx("div",{ref:z,className:Ai("before",Y,me),style:re,...te,...ae,children:n},"before"):null,[n,E,k,_,O]),we=s.useMemo(()=>o?a.jsx("div",{ref:G,className:Ai("after",Y,ke),style:Ue,...te,...ne,children:o},"after"):null,[o,E,M,_,O]);return a.jsxs("div",{ref:C1([I,Ne]),className:Ai("splitPane",r==="row"?"vertical":"horizontal",{dragging:U},g),style:de,children:[xe,wt,we]})}));const TC=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=s.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return s.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},u2=e=>{console&&console.warn&&console.warn(e)},Yc=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let jC=1,h2=!1,v9=!1;const qs=[],Fi=[],k1=()=>{Fi.forEach(e=>e())},MC=({automaticContainerInternalUseOnly:e})=>{const[t,n]=s.useState([]),o=s.useRef([]);return o.current=t,e||h2!==!1||(v9=!0),s.useEffect(()=>{let r=!0;function i(){if(r)return Fi[0]!==i?(e||h2!==!0||u2("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(l=>[])):void n([...qs])}return Fi.push(i),k1(),()=>{r=!1,o.current?.length>0&&u2("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),Fi.splice(Fi.indexOf(i),1),k1()}},[e]),a.jsx(a.Fragment,{children:t.map(({hook:r,key:i})=>s.createElement(TC,{...r,key:i}))})},S9=(e,t,n={})=>{let o,r,i=!1,l=!1,d=[],{unmountIfNoConsumers:c=!1}=n;const u=f=>{r=f,wo.unstable_batchedUpdates(()=>d.forEach(h=>h(f)))},p=()=>(l||(r=typeof e=="function"?e():e,l=!0),r);return()=>{const[f,h]=s.useState(p);return s.useEffect(()=>(i||(i=!0,o=(g=>{const m=jC++;return qs.push({hook:g,key:m}),Fi.length===0&&v9===!1&&(h2=!0,(x=>{if(Yc.document&&Yc.document.createElement){const y=Yc.document.createElement("div");T2.createRoot(y).render(a.jsx(x,{automaticContainerInternalUseOnly:!0}))}else u2("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(MC)),k1(),()=>{qs.splice(qs.findIndex(x=>x.key===m),1),k1()}})({initValue:e,useHookBody:t,applyStateChange:u})),d.push(h),r!==f&&h(r),()=>{d.splice(d.indexOf(h),1),d.length===0&&c&&(o(),i=!1)}),[]),f}};S9(null,()=>{const[e,t]=s.useState(null);return e});let RC=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,o===void 0&&(this._callback=()=>{console.log(`implement: ${this.label()} : ${this.description()}`)})}key(){return this._key}_resolve(e,t){if(typeof e=="function"){const n=t??this._context;return e(typeof n=="function"?n():n)}return e}target(){return typeof this._target=="function"?this._target():this._target}label(e,t){const n=this._scopedLabels?.[e]||this._label;let o=null;if(typeof n=="function"){const r=t??this._context;o=n(typeof r=="function"?r():r)}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 typeof this._context=="function"?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)),await Promise.resolve(n)===!1)return!1;const o=this._callback.bind(this)(e,this);if(await Promise.resolve(o)===!1)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}};class rn extends RC{}ko.getOS()===ko.OSType.MacOS||(ko.getOS(),ko.OSType.IOS),ko.getOS()===ko.OSType.MacOS||(ko.getOS(),ko.OSType.IOS),S9({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>S1.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=s.useState(S1.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:s.useRef(null),refNativeLastKey:s.useRef(null)}});let Jc=!1,IC=0;var DC=typeof document<"u"?s.useLayoutEffect:s.useEffect;const W4=()=>"sheetxl-ui-"+IC++,LC=s.useId??function(){const[e,t]=s.useState(()=>Jc?W4():void 0);return DC(()=>{e==null&&t(W4())},[]),s.useEffect(()=>{Jc||(Jc=!0)},[]),e},zi=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,l,d;e==="column"?(i=o.columnMetadataMap,l=o.lastMeasuredColumnIndex,d=o.recalcColumnIndices):(i=o.rowMetadataMap,l=o.lastMeasuredRowIndex,d=o.recalcRowIndices);const c=d.length>0;if(t>l){let u=0;if(l>=0){const p=i[l];u=p.offset+p.size}for(let p=l+1;p<=t;p++){let f=c?d.includes(p)?n(p)*r:i[p]?.size||n(p)*r:n(p)*r;i[p]={offset:u,size:f},u+=f}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},U4=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let l,d;e==="column"?(l=o.columnMetadataMap,d=o.lastMeasuredColumnIndex):(l=o.rowMetadataMap,d=o.lastMeasuredRowIndex);let c=0;return c=(d>0?l[d].offset:0)>=r?C9({itemType:e,itemSize:t,instanceProps:o,high:d,low:0,offset:r,scale:i}):OC({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,d),offset:r,scale:i}),c=Math.min(c,n),c},C9=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:l})=>{for(;r<=o;){const d=r+Math.floor((o-r)/2),c=zi({itemType:e,itemSize:t,index:d,instanceProps:n,scale:l}).offset;if(c===i)return d;c<i?r=d+1:c>i&&(o=d-1)}return r>0?r-1:0},OC=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:l})=>{let d=1;for(;r<n&&zi({itemType:e,itemSize:t,index:r,instanceProps:o,scale:l}).offset<i;)r+=d,d*=2;return C9({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:l})},pu="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",q4=e=>{if(!e)return null;if(e.eventType==="start")return{type:e.eventType};if(e.eventType==="submit")return{type:e.eventType};if(e.eventType==="cancel")return{type:e.eventType};if(e.eventType==="keyboard")return{type:e.eventType,key:e.event.key};if(e.eventType==="pointer")return{type:e.eventType};if(e.eventType==="coordsChange"){const t={type:e.eventType};return e.activeCoords&&(t.activeCoords=e.activeCoords),t}return{type:e.eventType??"unknown"}},PC=e=>!0,AC=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||pu.indexOf(e.key)===-1)),FC=e=>!!e&&e.type==="dblclick"&&{editMode:!0},zC=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:l,getCellEditor:d,propsEditor:c,borderStrokeFill:u="rgb(33, 115, 70)",borderStrokeWidth:p=2,alignment:f=Xl.Left,style:h,...g}=e,m=s.useRef(null),x=s.useRef(null),[y,w]=s.useState(!1),b=t.coords,C=s.useCallback(async v=>{if(m.current?.getBoundingClientRect()){if(v.eventType==="keyboard"){const S=v.event,I=new KeyboardEvent(S.type,{bubbles:!0,cancelable:!0,view:window,key:S.key,code:S.code,location:S.location,repeat:S.repeat,isComposing:S.isComposing,charCode:S.charCode,keyCode:S.keyCode,which:S.which,ctrlKey:S.ctrlKey,shiftKey:S.shiftKey,altKey:S.altKey,metaKey:S.metaKey});I.isSynthetic=!0,I.key,x.current?.dispatchEvent(I)}else v.eventType==="pointer"||console.warn("unsupported event type",v);await new Promise(S=>requestAnimationFrame(S))}},[]);s.useEffect(()=>{const v=x.current;return w(!0),x.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(v),t.editorRefsDispatchEditorEvent.push(C);const S=[...t.events];for(let I=0;I<S.length;I++)await C(S[I]);t.onMount(v)})(),()=>{const S=t.editorRefs.indexOf(v);S!==-1&&t.editorRefs.splice(S,1),t.onUnmount(v)}},[]);const E=s.useCallback(()=>o(t),[]),k=s.useCallback(()=>{r(t)},[]),M=n.current&&Lt.isEqualCells(n.current,b),T=l&&M&&y,F=d({autoFocus:!!t.startEvent?.autoFocus,...c,onSubmitEdit:E,onCancelEdit:k,ref:x},b),_=i.x+$t.boundPixel(-p/2),P=$t.boundPixel(i.width+p/2,!0);return a.jsx("div",{tabIndex:0,ref:m,style:{background:void 0,...h,opacity:T?h?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+$t.boundPixel(-p/2)}px`,height:$t.boundPixel(i.height+p/2,!0),left:`${_}px`,width:P},...g,children:a.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${$t.boundPixel(1)}px`,top:`${$t.boundPixel(1)}px`,width:$t.boundPixel(i.width-2,!0),height:$t.boundPixel(i.height-2,!0),outline:`${p}px ${u} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:F})})},BC=e=>{const{view:t,canEdit:n=PC,getCellEditor:o,onBeforeStartEdit:r,onStartEdit:i,onSubmitEdit:l,onCancelEdit:d,onDoneEdit:c,isEditorStartKeyEvent:u=AC,isEditorStartPointerEvent:p=FC,containerProps:f,borderStrokeFill:h,borderStrokeWidth:g=2,getRangeCoords:m=null,activeCoords:x,alignment:y=Xl.Left}=e,[w,b]=s.useState(!1),[C,E]=s.useState(void 0),k=it((W,G,Q,Y,te,le)=>{if(!G)return null;const me=te?.(G,W),J=W.getRangeCoordsBounds(me),ae=W.toClipBounds(J),ke=J,De=W.getZoom();if(!ae)return null;Q&&(Q*=De),Y&&(Y*=De);let ne=ke,de=!1;if(Q!==void 0){let $e={...me},gt=0;for(;!de&&ne.width<=Q&&gt<20;){gt++,gt>19&&console.warn("max width reached");const bt=W.getTotalRangeCoords(),Se=W.getLayout();le===Xl.Left?$e.colEnd+1<bt.colEnd?$e.colEnd=Se.getColIndex(ne.x+Q):de=!0:le===Xl.Right?$e.colStart-1>=0?$e.colStart=Se.getColIndex(ne.x-(Q-ne.width)):de=!0:le===Xl.Center&&$e.colEnd+1<bt.colEnd&&$e.colStart-1>=0?($e.colStart=Se.getColIndex(ne.x-(Q-ne.width)/2),$e.colEnd=Se.getColIndex(ne.x+ne.width+(Q-ne.width)/2)):de=!0,de||(ne=W.getRangeCoordsBounds($e))}}ne.height=ke.height,Y!==void 0&&(ne.height=Math.max(Y+1,ke.height));const{width:ye,height:ze}=W.getViewportSize();return{x:ne.x??0,y:ne.y??0,height:Math.min(ze-ne.y,ne.height)+1,width:Math.min(ye-ne.x,ne.width)+1}},[y]),M=it(n,[n]),T=s.useCallback(()=>{t?.getStage()?.focus()},[t]),F=s.useRef(null),_=it(W=>{r?.(W),q(),b(!0),F.current=null},[r]),P=it(W=>{i?.(W.coords)},[i]),v=it(W=>{W.isSubmitted||W.isCancelled||(j.current.isEditorClosed=!0,T(),W.isCancelled=!0,d?.(W.coords),q())},[d]),S=it(W=>{if(W.isSubmitted||W.isCancelled)return!1;try{return F.current=W.coords,W.isEditorClosing=!0,W.isSubmitted=!0,W.isEditorSubmitted||(W.isEditorSubmitted=!0,W.editorRefs[0]?.submitEdit?.()),W.coords,l?.(W.coords),W.isEditorClosed=!0,T(),q(),!0}catch(G){throw W.isEditorClosing=!1,W.isSubmitted=!1,G}},[l]),I=it(W=>{b(!1),c?.(W.coords),q()},[c]),j=s.useRef(null),R=s.useRef(null),A=s.useRef(null),D=s.useRef([]),[L,$]=s.useReducer(W=>W+1,0),q=s.useCallback(W=>{W&&D.current.push(W),$()},[]),O=it(W=>{if(W.defaultPrevented||W.isSynthetic||!t)return;const G=t?.getCellCoordsFromClient(W.clientX,W.clientY);G&&q({eventType:"pointer",event:W,coords:G})},[t]),U=it(W=>{const G=W.nativeEvent;O(G)},[t]),X=it(W=>{if(W.defaultPrevented||W.isSynthetic||!t?.getStage())return;const G=R.current;u(W,G)&&(W.stopPropagation(),W.preventDefault()),W.key,q({eventType:"keyboard",event:W,coords:G})},[t]);s.useLayoutEffect(()=>{const W=(Y,te)=>{const le=te?.cell??Y;if(!le)return null;const me=le;if(!M(le))return null;_?.(le);const J=ko.uuidV4();te=Object.freeze({autoFocus:!0,...te}),A.current=le;const ae={coords:me,startEvent:te,uuid:J,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:ke=>{ae.isMounted||(ae.isMounted=!0,q())},onUnmount:ke=>{if(ae.editorRefs.length===0){const De=()=>{ae.isMounted=!1,q()};if(document.activeElement!==document.body)De();else{const ne=de=>{de.defaultPrevented||de.target!==document.body||X(de)};window.addEventListener("keydown",ne,!0),t.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",ne),De()},{once:!0}),T()}}}};return ae};if(D.current.length<=0&&!j.current)return;const G=D.current[0];q4(G),(Y=>{const te=[],le=Y?.length??0;for(let me=0;me<le;me++){const J=Y[me];te.push(q4(J))}})(D.current),j.current,j.current;let Q=j.current;if(j.current){if(j.current.isDone)j.current=null;else if(j.current.isSubmitted||j.current.isCancelled){if(j.current.isMounted)return;j.current.isDone||(I(j.current),j.current.isDone=!0)}}if(G){if(G.eventType==="start"){const Y=G,te=Y.startEvent?.cell??R.current;j.current&&Lt.isEqualCells(j.current.coords,te)||(j.current=W(te,Y.startEvent))}else if(G.eventType==="keyboard"){const Y=G.event;if(j.current){let te=!1;switch(Y.which){case 37:case 39:case 38:case 40:case 13:case 9:te=!0}if(!te){j.current.events.push(G);for(let le=0;le<j.current.editorRefsDispatchEditorEvent.length;le++)j.current.editorRefsDispatchEditorEvent[le](G)}}else if(u(Y,G.coords)){const le=W(R.current,void 0);le&&le.events.push(G),j.current=le}}else if(G.eventType==="pointer"){const Y=G.event;if(j.current){j.current.events.push(G);for(let te=0;te<j.current.editorRefsDispatchEditorEvent.length;te++)j.current.editorRefsDispatchEditorEvent[te](G)}else{const te=G?.coords??R.current,le=p(Y,te);if(le){let me;typeof me!="boolean"&&(me=le);const J=W(te,me);J&&J.events.push(G),j.current=J}}}else if(G.eventType==="submit"){if(j.current&&!j.current.isSubmitted&&!j.current.isCancelled){if(!j.current.isMounted)return;S(j.current)}}else if(G.eventType==="cancel"){if(j.current&&!j.current.isSubmitted&&!j.current.isCancelled){if(!j.current.isMounted)return;v(j.current)}}else if(G.eventType==="coordsChange"){const Y=G;if(R.current=Y.activeCoords,j.current,j.current&&!j.current.isSubmitted&&!j.current.isCancelled){if(!j.current.isMounted)return;try{S(j.current)}catch{}}}}D.current.length>0&&(D.current.shift(),q()),D.current.length===0&&(!j.current||j.current.isEditorClosing||j.current.isEditorClosed?!j.current&&Q&&T():j.current.isMounted&&!j.current.isStarted&&(j.current.isStarted=!0,j.current.startEvent.autoFocus&&(typeof j.current.startEvent.autoFocus=="string"?j.current.editorRefs[0]?.autoFocus(j.current.startEvent.autoFocus):j.current.editorRefs[0]?.autoFocus()),P?.(j.current),requestAnimationFrame(()=>{t&&j.current?.coords&&t.scrollCellCoordsIntoView(j.current.coords)})))},[L]),s.useEffect(()=>{A.current=x;const W=j.current?.coords;Lt.isEqualCells(W,x)||(j.current&&(j.current.isEditorClosing=!0),q({eventType:"coordsChange",activeCoords:x}))},[x]);const ee=s.useCallback(W=>{X(W.nativeEvent)},[]),{width:V=0,height:H=0}=C??{width:0,height:0},z=it(o,[o]);return{overlay:it(W=>{if(!j.current||j.current.isEditorClosed)return j.current,null;j.current.coords;let G=k(W,j.current.coords,V,H,m,y),Q=!0;G&&G.width!==0&&G.height!==0||(G={x:0,y:0,width:V,height:V},Q=!1);const Y=W.getZoom(),te={containerBounds:{x:0,y:0,width:G.width/Y,height:G.height/Y},setNaturalDimensions:E,zoom:Y};return a.jsx(zC,{session:j.current,refLatestCoords:A,handleSubmitEdit:S,handleCancelEdit:v,cellBounds:G,borderStrokeWidth:g,borderStrokeFill:h,isInBounds:Q,getCellEditor:z,propsEditor:te,alignment:y,...f},"editor:"+j.current.uuid)},[o,m,L,V,H,y,g,h]),startEdit:s.useCallback(W=>{q({eventType:"start",startEvent:W})},[]),submitEdit:s.useCallback(()=>{q({eventType:"submit"})},[]),cancelEdit:s.useCallback(()=>{q({eventType:"cancel"})},[]),onKeyboardEvent:ee,onPointerEvent:U,onKeyboardEventNative:X,onPointerEventNative:O,isEditing:w}},NC=({gridRef:e,gridMainRef:t,orientation:n=m0,headerCount:o,selectionPolicy:r="multiple",newSelectionMode:i="clear",alwaysScrollToActiveCoords:l=!0,onDragStart:d,onDragEnd:c,pointerDownInterceptor:u,pointerMoveInterceptor:p,onPointerUp:f,newSelection:h,modifySelection:g,appendSelection:m,clearSelections:x})=>{const y=o??((n===m0?e.current?.rowCount:e.current?.columnCount)||0),w=s.useRef(null),b=s.useRef(null),C=s.useRef(!1),E=s.useRef(null),k=s.useCallback(I=>n===rr?{rowIndex:0,colIndex:I.colIndex}:{rowIndex:I.rowIndex,colIndex:0},[n]),M=s.useCallback(I=>n===rr?{rowIndex:t.current?t.current.rowCount-1:0,colIndex:I.colIndex}:{rowIndex:I.rowIndex,colIndex:t.current?t.current.columnCount-1:0},[n]),T=I=>{b.current=M(I),g(b.current,w.current)},F=s.useCallback((I,j)=>{if(!e.current)return;const R=e.current.getViewFromClient(I,j)?.getCellCoordsFromClient(I,j);return R?(n===rr?R.rowIndex=t.current.getViewport().rowStart:R.colIndex=t.current.getViewport().colStart,R):void 0},[]),_=s.useCallback((I,j=!1)=>{let R=I;return j||(R={...I},n===m0?delete R.colIndex:delete R.rowIndex),t.current?.scrollCellCoordsIntoView(R)},[n]),P=it(c,[c]),v=it(d,[d]),S=s.useMemo(()=>({onPointerDown:I=>{if(!e||!e.current||I.nativeEvent.defaultPrevented)return;const j=F(I.nativeEvent.clientX,I.nativeEvent.clientY);if(!j)return;I.nativeEvent.which;const R=I.nativeEvent.shiftKey,A=I.nativeEvent.ctrlKey||I.nativeEvent.metaKey;if(u?.(I,j)===!1)return;v?.(),C.current=!0;const D=t.current?.getViewFromClient(I.nativeEvent.clientX,I.nativeEvent.clientY),L=(($,q)=>n===rr?{...$,rowIndex:q.rowStart}:{...$,colIndex:q.colStart})(j,D.getVisibleRangeCoords());if(R)T(j);else{if(A)return(($,q=$,O)=>{w.current=k($),b.current=M(q),m(w.current,b.current,O)})(j,j,L),void(l&&_(L,!0));(($,q=$,O)=>{w.current=k($),b.current=M(q),h(w.current,b.current,O)})(j,j,L),T(j),l&&_(L,!0)}},onPointerMoveOrWait:ko.throttle(I=>{if(!C.current||!e?.current)return;const j=F(I.clientX,I.clientY);if(j&&p?.(I,j)!==!1){if(Lt.isEqualCells(E.current,j))return x();T(j),_(j)}},60),onPointerUp:I=>{C.current=!1,P?.(),f?.(I)},processTouch:!0,consumeTouch:!0}),[r,l,y,i,x,u,f]);return{onPointerDown:it(Ui(S),[]),getCellCoordsFromClient:F}},Rn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===Mn||n===An;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},bs=(e,t,n)=>{const o=[];let r=t;for(;r<=n;){const i=Math.max(0,e(r));i===0?(o.push(r),r++):r+=i}return o},VC=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:l,colIndex:d}=e;switch(o){case An:{l=Rn(n,Math.min(l+1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&l<i;)l=Rn(n,Math.min(++l,i),o),c=t({rowIndex:l,colIndex:d});return l}case Pn:{l=Rn(n,Math.max(l-1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&l>i;)l=Rn(n,Math.max(--l,i),o),c=t({rowIndex:l,colIndex:d});return l}case Mn:{d=Rn(n,Math.min(d+1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&d<i;)d=Rn(n,Math.min(++d,i),o),c=t({rowIndex:l,colIndex:d});return d}case On:{d=Rn(n,Math.max(d-1,i),o);let c=t({rowIndex:l,colIndex:d});for(;!c&&d>i;)d=Rn(n,Math.max(--d,i),o),c=t({rowIndex:l,colIndex:d});return d}default:return i}},HC=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:l,colIndex:d}=e;switch(o){case An:{l=Rn(n,Math.min(l+1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&l<i;)l=Rn(n,Math.min(++l,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?l:l-1}case Pn:{l=Rn(n,Math.max(l-1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&l>i;)l=Rn(n,Math.max(--l,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?l:l+1}case Mn:{d=Rn(n,Math.min(d+1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&d<i;)d=Rn(n,Math.min(++d,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?d:d-1}case On:{d=Rn(n,Math.max(d-1,i),o);let c=t?.({rowIndex:l,colIndex:d});for(;c&&d>i;)d=Rn(n,Math.max(--d,i),o),c=t?.({rowIndex:l,colIndex:d});return t?.({rowIndex:l,colIndex:d})?d:d+1}default:return null}},$C=(e,t,n,o,r,i)=>{if(!t)return i;let l,{rowIndex:d,colIndex:c}=e;o===An?l={rowIndex:d+1,colIndex:c}:o===Pn?l={rowIndex:d-1,colIndex:c}:o===Mn?l={rowIndex:d,colIndex:c+1}:o===On&&(l={rowIndex:d,colIndex:c-1});const u=t(e);var p,f;return(f=t(l),!(p=u)&&!f||!p&&f||p&&!f?VC:HC)(e,t,n,o,!1,i)??i},Z4=(e,t)=>`${e}:${t}`,G4=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let l=o;return e==="nearest"&&(o-t>0?e="start":n-r>0&&(e="end")),e==="start"?l=t:e==="end"?l=n-(r-o):e==="center"&&(l=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(l,i-(r-o)))},K4=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),p2=(e,t=Mn,n,o,r,i=null)=>{if(i&&Lt.isEqualSelectionCoords(i,e))return e;const l=e.ranges[e.rangeIndex];if(!Lt.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},l))return e;let d={...e.cell},c=e.rangeIndex;switch(t){case Mn:d.colIndex=Rn(r,d.colIndex+1,t);break;case On:d.colIndex=Rn(r,d.colIndex-1,t);break;case An:d.rowIndex=Rn(o,d.rowIndex+1,t);break;case Pn:d.rowIndex=Rn(o,d.rowIndex-1,t)}const u=h=>{if(h){c=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const g=e.ranges[c];d={colIndex:g.colStart,rowIndex:g.rowStart}}else{c=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const g=e.ranges[c];d={colIndex:g.colEnd,rowIndex:g.rowEnd}}};if(t===Mn&&d.colIndex>l.colEnd&&d.rowIndex===l.rowEnd)u(!0);else if(t===On&&d.colIndex<l.colStart&&d.rowIndex===l.rowStart)u(!1);else if(t===An&&d.colIndex===l.colEnd&&d.rowIndex>l.rowEnd)u(!0);else if(t===Pn&&d.colIndex===l.colStart&&d.rowIndex<l.rowStart)u(!1);else{let h=d.rowIndex,g=d.colIndex;switch(t){case Mn:g>l.colEnd&&(h=Rn(o,h+1,t),g=l.colStart,h>l.rowEnd&&(h=l.rowStart));break;case On:g<l.colStart&&(h=Rn(o,h-1,t),g=l.colEnd,h<l.rowStart&&(h=l.rowEnd));break;case An:h>l.rowEnd&&(g=Rn(r,g+1,t),h=l.rowStart,g>l.colEnd&&(g=l.colStart));break;case Pn:h<l.rowStart&&(g=Rn(r,g-1,t),h=l.rowEnd,g<l.colStart&&(g=l.colEnd))}d={rowIndex:h,colIndex:g}}let p=n(d);if(!Lt.isRangeWithinRange(p,l)){const h=Lt.intersectRanges(p,l);h&&(p=h)}let f={rowStart:Rn(o,p.rowStart,An),colStart:Rn(r,p.colStart,Mn),rowEnd:Rn(o,p.rowEnd,Pn),colEnd:Rn(r,p.colEnd,On)};if(f.rowStart!==d.rowIndex||f.colStart!==d.colIndex){switch(t){case Mn:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(d.rowIndex=f.rowEnd),d.colIndex=f.colEnd;break;case On:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(d.rowIndex=f.rowStart),d.rowIndex===f.rowStart?d.colIndex=f.colStart+1:d.colIndex=f.colStart;break;case An:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(d.colIndex=f.colEnd),d.rowIndex=f.rowEnd;break;case Pn:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(d.colIndex=f.colStart),d.colIndex===f.colStart?d.rowIndex=f.rowStart+1:d.rowIndex=f.rowStart}return p2({cell:d,ranges:e.ranges,rangeIndex:c},t,n,o,r,i??e)}return{ranges:e.ranges,cell:d,rangeIndex:c}},X4=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=On,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=Mn,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=Pn,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=An,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},E1=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let l=n(r?e:e+1),d=n(r?e+1:e),c=e+(r?2:-1),u=0;for(;(d-l)*i<=0;){if(r&&c-1>o+1||!r&&c+1<o)return u;l=d,d=n(c),c+=i,u++}return u},Y4=(e,t,n,o,r)=>{const i={};let l=null,d=null;for(let c=0;c<=n.length&&n[c]<=r;c++){const u=n[c];if(u<o)continue;const p=l===u?d:t?e.getColOffset(u):e.getRowOffset(u),f=t?e.getColOffset(u+1):e.getRowOffset(u+1);l=u+1,d=f,i[u]=Object.freeze({offset:p,size:f-p,spanIndex:c})}return Object.freeze(i)},J4=(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}},WC=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),Qc=(e,t=!0)=>`M ${$t.boundPixel(e.left)} ${$t.boundPixel(e.top)} L ${$t.boundPixel(e.right,!0)} ${$t.boundPixel(e.top)} L ${$t.boundPixel(e.right,!0)} ${$t.boundPixel(e.bottom,!0)} L ${$t.boundPixel(e.left)} ${$t.boundPixel(e.bottom,!0)} L ${$t.boundPixel(e.left)} ${$t.boundPixel(e.top)} ${t?"Z":""}`,Bi=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return a.jsx("svg",{width:`${$t.boundPixel(n.width,!0)}`,height:`${$t.boundPixel(n.height,!0)}`,viewBox:`0 0 ${$t.boundPixel(n.width,!0)} ${$t.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${$t.boundPixel(n.x)}px`,top:`${$t.boundPixel(n.y)}px`,width:`${$t.boundPixel(n.width,!0)}px`,height:`${$t.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:a.jsx("path",{d:`M ${$t.boundPixel(t[0])} ${$t.boundPixel(t[1])} L ${$t.boundPixel(t[2])} ${$t.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},UC=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:l,strokeWidth:d=0,strokeDasharray:c,strokeDashoffset:u,clipPath:p,pathBounds:f,pathProps:h,style:g,...m}=e,x=n,y=t,w=o,b=r;let C=null;if(i){let E=Qc({top:0,left:0,bottom:b,right:w});f&&(E=E+" "+Qc({top:f.y-x,left:f.x-y,bottom:f.height+f.y-x,right:f.width+f.x-y})),C=[a.jsx("path",{d:E,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return a.jsxs("svg",{width:`${$t.boundPixel(o,!0)}`,height:`${$t.boundPixel(r,!0)}`,viewBox:`0 0 ${$t.boundPixel(o,!0)} ${$t.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${$t.boundPixel(t)}px`,top:`${$t.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",...g},...m,children:[C,a.jsx("path",{d:Qc({top:0,left:0,right:w,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:u,stroke:l,vectorEffect:"non-scaling-stroke",strokeWidth:d,...h})]})},k9=e=>{const{key:t,...n}=e;return a.jsx(G1,{...n},t)},G1=s.memo(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:l=0,style:d,isAnimatedStroke:c,animatedStrokeProps:u,range:p,cell:f,...h}=e,g=c||!!u,m={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...u};let x=m.dashGap+m.dashLength;const y=m.speed*x,w=LC().replaceAll(":",""),b=`${m.name}-${w}`;let C;return s.useEffect(()=>{if(!g)return;const E=`@keyframes ${b} {
52
- to {
53
- stroke-dashoffset: 0px;
54
- }
55
- }`,k=document.createElement("style");return k.appendChild(document.createTextNode(E)),document.head.appendChild(k),k.sheet.insertRule(E,0),()=>{document.head.removeChild(k)}},[g]),g&&(C={strokeDasharray:`${m.dashLength}px ${m.dashGap}px`,strokeDashoffset:`${x}px`,animation:`${b} ${y}ms linear infinite`,willChange:"stroke-dashoffset"}),a.jsx(UC,{x:o,y:r,width:i,height:l,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...C,...d},...h})});function E9(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=E9(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ii(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=E9(e))&&(o&&(o+=" "),o+=t);return o}G1.displayName="Selection";const _9=s.memo(s.forwardRef((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:l,corner:d,style:c,className:u,background:p,...f}=e;if(n===0||o===0)return null;let h=!0,g=!0,m=!0,x=!0;switch(d){case"tl":h=!1,g=!1;break;case"bl":h=!1,x=!1;break;case"br":m=!1,x=!1;break;case"tr":g=!1,m=!1}return a.jsx("div",{className:ii("fill-handle",u),style:{position:"absolute",left:n-(i+(h?r:0))/2,top:o-(i+(g?r:0))/2,width:i,height:i,borderLeft:h?`${r}px ${l}`:void 0,borderTop:g?`${r}px ${l}`:void 0,borderRight:m?`${r}px ${l}`:void 0,borderBottom:x?`${r}px ${l}`:void 0,background:p,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...c},tabIndex:-1,...f})}));_9.displayName="FillHandle";var qC=function(){},T9=typeof window<"u",ZC=T9?s.useLayoutEffect:s.useEffect,Q4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const j9=T9&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(Q4),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return ZC(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[qC,Q4]};function ed(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var GC=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=ed(o,t),i=typeof r=="function";n.push(i?r:()=>ed(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)ed(n,t)}};const f2=s.memo(s.forwardRef((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:l="white",borderWidth:d=1.5,size:c=22,style:u,className:p,selectionTouchPointerHandler:f,onTouchSelectStart:h,onTouchSelectEnd:g,currentTouchAnchor:m,scrollableElement:x,scrollableRoot:y=document.body,...w}=e,b=it(h,[h]),C=it(g,[g]),{bounds:E,coordsPivot:k,key:M}=s.useMemo(()=>{if(!n||!o)return null;let A=null,D=null;switch(r){case"tl":A={colIndex:n.colEnd,rowIndex:n.rowEnd},D={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":A={colIndex:n.colStart,rowIndex:n.rowStart},D={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"t":case"l":A={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"b":A={colIndex:n.colStart,rowIndex:n.rowStart};break;case"r":A={colIndex:n.colStart,rowIndex:n.rowEnd}}let L=o.getRangeCoordsBounds(D?{rowStart:D.rowIndex,colStart:D.colIndex,rowEnd:D.rowIndex,colEnd:D.colIndex}:n);const $=o.getBounds(),q=o.getViewportSize(),O=$.x,U=$.y,X=q.width,ee=q.height;switch(r){case"tl":break;case"br":L.x=L.x+L.width,L.y=L.y+L.height;break;case"t":L.x=X/2-O;break;case"b":L.x=X/2-O,L.y=L.y+L.height;break;case"l":L.y=ee/2-U;break;case"r":L.x=L.x+L.width,L.y=ee/2-U}const V=o.toClipBounds(L,0);return!V||V.width<=0||V.height<=0||L.x<0||L.y<0||L.x>X||L.y>ee?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:L,coordsAnchor:null,coordsPivot:A,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),T=s.useRef(null),F=Ui(s.useMemo(()=>{const A=D=>r==="t"||r==="b"?{...D,colIndex:void 0}:r==="l"||r==="r"?{...D,rowIndex:void 0}:D;return{processTouch:!0,consumeTouch:!0,onPointerDown:(D,L)=>{const $=A(o.getCellCoordsFromClient(D.clientX,D.clientY));return T.current={coordsPivot:k},b?.(r),f.onSelectionPointerDown(D,L,o,$,k,!1,!0)},onPointerMoveOrWait:(D,L,$)=>{const q=A(o.getCellCoordsFromClient(D.clientX,D.clientY));return f.onSelectionPointerMoveOrWait(D,L,$,o,q,T.current?.coordsPivot,!0,!0)},onPointerUp:(D,L,$)=>(T.current=null,C?.(r),f.onPointerUp(D,L,$))}},[f,n,o,r])),[_,{y:P,x:v}]=j9(),S=s.useRef(null),{getPortalContainer:I}=w9(),[j,R]=s.useState(null);return s.useEffect(()=>{const A=S.current?.getBoundingClientRect();if(!A||!E)return void R(null);let D=0,L=0,$=x;for(;$;)D+=$.scrollLeft,L+=$.scrollTop,$=y&&$===y.parentElement?null:$.parentElement;R(wo.createPortal(a.jsx("div",{className:ii("touch-select-handle",p),ref:t,style:{position:"absolute",left:D+(A?.x??0)-(c+d)/2,top:L+(A?.y??0)-(c+d)/2,width:c,height:c,borderWidth:`${d}px`,border:i,borderRadius:"50%",background:l,boxShadow:`0 0 0 1.5px ${l}`,cursor:"grab",pointerEvents:"all",opacity:m?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...u},tabIndex:-1,onPointerDown:F,...w}),y??I(),M))},[P,v,E?.x,E?.y,E?.width,E?.height,p,m,l,c,d,i,x]),E?a.jsxs(a.Fragment,{children:[a.jsx("div",{ref:GC([_,S]),style:{position:"absolute",left:E.x,top:E.y,opacity:0}}),j]}):null}));f2.displayName="TouchSelectHandle";const qo=-10,KC=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),M9=Object.freeze({colIndex:0,rowIndex:0}),m2=Object.freeze([]),sr=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??m2};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=M9),Lt.isEqualSelectionCoords(t,e)?e:t},ws=(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(cr)),!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(cr)),e.scrollCellCoordsIntoView(t)},XC=()=>!1,R9=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:l,selectionPolicy:d="multiple",newSelectionMode:c="clear",allowDeselectSelection:u=!0,onFillPreview:p,onFillCancel:f,onFillDone:h,onFill:g,disableFillDrag:m=!g,fillHandleBorderColor:x="white",hiddenRowsAt:y,hiddenColumnsAt:w,isContentfulCell:b,contentfulCellFinder:C=$C,getDataCoords:E,alwaysScrollToActiveCoords:k=!1,selectionBounds:M,pointerDownInterceptor:T,pointerMoveInterceptor:F,mergedRanges:_,canSelectionSpanMergedCells:P=XC,onMoveDragStart:v,onMoveDragUpdate:S,onMoveDragEnd:I,onMoveDragDone:j,selectionRenderer:R=k9,disableMoveDrag:A=!I,getCellCoordsAsRangeCoords:D=Lt.cellToRange,moveDragHitSize:L=6,moveDragOutlineSize:$=4,selectionBackgroundColor:q="rgba(16, 124, 65, 0.1)",selectionBorderColor:O="rgb(33, 115, 70)",selectionRemoveBorderColor:U="rgb(255, 0, 0)",selectionRemoveBackgroundColor:X="rgba(250, 10, 10, 0.1)",disableTouchSelection:ee=!1,touchSelectHandleProps:V})=>{const H=s.useCallback(()=>({top:M?.top??0,left:M?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),z=it(g,[g]),W=it(p,[p]),G=it(f,[f]),Q=it(h,[h]),Y=it(b,[b]),te=it(R,[R]),le=it((Z,K=!1)=>E1(Z,K,n.getRowOffset,K?H().bottom:H().top),[n?.getRowOffset]),me=it(y??le,[y]),J=it((Z,K=!1)=>E1(Z,K,n.getColOffset,K?H().right:H().left),[n?.getColOffset]),ae=it(w??J,[w]),[ke,De]=s.useState(()=>sr(o)),ne=s.useMemo(()=>sr(ke),[ke]),de=s.useRef(ne),ye=s.useRef(!0);s.useLayoutEffect(ko.throttle(()=>{De(Z=>{ye.current=!0;const K=sr(o);return Lt.isEqualSelectionCoords(K,Z)?Z:K})},0),[o]),s.useLayoutEffect(()=>{de.current=ne},[ne]),s.useEffect(()=>{ye.current||!r||Lt.isEqualSelectionCoords(o,ne)||r(ne)},[ne]);const ze=s.useCallback(Z=>{De(K=>{ye.current=!1,K=sr(K);let ce=typeof Z=="function"?Z(K.ranges):Z??m2;if(Lt.isEqualRangesArrays(ce,K.ranges))return K;let fe=Math.max(ce.length?0:-1,Math.min(K.rangeIndex,ce.length-1)),Pe=K.cell;fe===-1||Lt.isCellWithinRange(Pe,ce[fe])||(Pe={rowIndex:ce[fe].rowStart,colIndex:ce[fe].colStart}),ce.length===1&&Lt.isSingleCell(ce[0])&&Lt.isCellWithinRange(Pe,ce[0])&&(ce=[],fe=-1);const Ke={cell:Pe,ranges:ce,rangeIndex:fe};return Lt.isEqualSelectionCoords(Ke,K)?K:Ke})},[]),$e=it(Z=>{De(K=>{ye.current=!1,K=sr(K);const ce=Z??M9,fe=D(ce);if(!Lt.isSingleCell(fe)&&K.ranges.length===0)return{ranges:[fe],rangeIndex:0,cell:ce};if(Lt.isEqualCells(ce,K.cell))return K;let Pe=K.ranges,Ke=K.rangeIndex;K.ranges.length===1&&(Lt.isSingleCell(K.ranges[0])&&Lt.isCellWithinRange(ce,K.ranges[0])||!Lt.isCellWithinRange(ce,K.ranges[0]))&&(Pe=[],Ke=-1);const Be={ranges:Pe,rangeIndex:Ke,cell:ce};return Lt.isEqualSelectionCoords(Be,K)?K:Be})},[D]),[gt,bt]=s.useState(null),[Se,ht]=s.useState(null),xt=s.useRef(null),[Ne,wt]=s.useState(null),Ye=s.useRef(null),re=s.useRef(null),[Ue,xe]=s.useState(null),we=s.useRef(null),ie=s.useRef(null),Re=s.useRef(_);s.useEffect(()=>{Re.current=_},[_]);const Me=it((Z,K={inline:"nearest",block:"nearest"})=>{let{rowIndex:ce,colIndex:fe}=Z;ce===void 0&&ne?.cell&&(ce=ne.cell.rowIndex),fe===void 0&&ne?.cell&&(fe=ne.cell.colIndex),ce!==void 0&&fe!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:ce,colIndex:fe},K)},[ne]),be=s.useCallback(Z=>{const K=H();return Z.rowIndex<K.top||Z.colIndex<K.left||Z.colIndex>K.right||Z.rowIndex>K.bottom},[]),Oe=it((Z,K)=>{if(!e?.current)return null;const ce={rowStart:Math.min(Z.rowIndex,K.rowIndex),colStart:Math.min(Z.colIndex,K.colIndex),rowEnd:Math.max(Z.rowIndex,K.rowIndex),colEnd:Math.max(Z.colIndex,K.colIndex)};if(P?.(ce))return ce;const fe=D(Z),Pe=D(K),Ke={rowStart:Math.min(fe.rowStart,Pe.rowStart),colStart:Math.min(fe.colStart,Pe.colStart),rowEnd:Math.max(fe.rowEnd,Pe.rowEnd),colEnd:Math.max(fe.colEnd,Pe.colEnd)};let Be;return typeof Re.current=="function"?Be=Re.current(Ke):_&&(Be=_),Be?Lt.extendRangeToUnionRanges(Ke,Be):Ke},[P,D]),oe=it((Z,K,ce)=>{const fe=Z.ranges.length>0?Z.ranges[Z.rangeIndex]:{rowStart:Z.cell.rowIndex,colStart:Z.cell.colIndex,rowEnd:Z.cell.rowIndex,colEnd:Z.cell.colIndex},Pe={rowStart:Math.min(K.rowIndex??fe.rowStart,ce.rowIndex??fe.rowStart),colStart:Math.min(K.colIndex??fe.colStart,ce.colIndex??fe.colStart),rowEnd:Math.max(K.rowIndex??fe.rowEnd,ce.rowIndex??fe.rowEnd),colEnd:Math.max(K.colIndex??fe.colEnd,ce.colIndex??fe.colEnd)},Ke={rowIndex:Pe.rowStart,colIndex:Pe.colStart},Be={rowIndex:Pe.rowEnd,colIndex:Pe.colEnd};if(!be(Ke)&&!be(Be))return Oe(Ke,Be)},[Oe]),Ce=it((Z,K,ce)=>{if(d==="single"||!de.current)return;const fe=oe(de.current,Z,K??de.current.cell);if(!fe)return;const Pe=de.current.rangeIndex;ze(Ke=>Ke.length?Ke.map((Be,Ct)=>Pe===Ct?fe:Be):[fe]),ce&&fe&&$e({colIndex:fe.colStart,rowIndex:fe.rowStart})},[]),Le=s.useCallback((Z,K,ce)=>{if(!de.current)return;Z={...de.current?.cell,...Z},K=K??Z;const fe=oe(de.current,Z,K);if(!fe)return;const Pe={rowIndex:fe.rowStart,colIndex:fe.colStart},Ke={...Pe,...ce};c==="clear"?(we.current=Ke,pt()):c==="modify"?Ce(Pe):qe(Pe),$e(Ke)},[]),qe=s.useCallback((Z,K=Z,ce)=>{d!=="multiple"||!Z||be(Z)||be(K)||De(fe=>{ye.current=!1,fe=sr(fe);const Pe=Oe(Z,K);if(!Pe)return fe;let Ke=fe.ranges.length>0?[...fe.ranges]:[Oe(fe.cell,fe.cell)];Ke.push(Pe);const Be={ranges:Ke,cell:{rowIndex:Pe.rowStart,colIndex:Pe.colStart,...ce},rangeIndex:Ke.length-1};return Lt.isEqualSelectionCoords(Be,fe)?fe:Be})},[]),pt=()=>{ze(m2)},ot=$t.detectIt().primaryInput==="touch",We=s.useRef(null),st=s.useRef(null),Xe=s.useRef(null),Qe=s.useMemo(()=>({onPointerDown:Z=>{if(!e||!e.current)return!1;const K=Z.nativeEvent,ce=e.current.getViewFromClient(K.clientX,K.clientY);if(K.pointerType==="touch"||K.type==="touchstart")return st.current={topLeft:ce.getScrollTopLeft(),point:{x:K.clientX,y:K.clientY}},!0;const fe=ce.getCellCoordsFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY);if(!fe)return!1;We.current={anchor:ce.getAnchor(),coords:fe},ie.current=null;const Pe=Z.nativeEvent.which===3;if(Pe&&Lt.indexOfCoords(fe,ne.ranges)!==-1)return!1;const Ke=Z.nativeEvent.shiftKey,Be=Z.nativeEvent.ctrlKey||Z.nativeEvent.metaKey,Ct=Be,Rt=u,jt=ne.ranges.length>0,Pt=Be&&Rt;if(T?.(Z,fe,ne)===!1)return!1;i?.(de.current,Z.nativeEvent);const cn=!Pe&&d!=="single";if(Ke)return Ce(fe),cn;const Dt=Lt.isEqualCells(fe,ne.cell);if(Ct){if(Dt&&(!Pt||!jt))return cn;if(Be&&Lt.indexOfCoords(fe,ne.ranges)!==-1&&Rt){Ye.current=fe;const Ot=Oe(fe,fe);return re.current=Ot,wt(Ot),cn}return qe(fe),cn}k&&Me(fe),Dt&&ne.ranges.length===0||Le(fe)},onPointerMoveOrWait:ko.throttle((Z,K)=>{if(!e?.current||Z.pointerType==="touch"||Z.type==="touchmove"||!We.current)return;const ce=We.current.anchor;let fe=e.current.getViewFromLocation(ce),Pe=fe.getCellCoordsFromClient(Z.clientX,Z.clientY);if(!Lt.isEqualCells(Pe,We.current?.coords)&&(We.current={anchor:ce,coords:Pe},Pe&&F?.(Z,Pe,de.current)!==!1)){if(Ye.current){const Ke={rowStart:Math.min(Pe.rowIndex,Ye.current.rowIndex),colStart:Math.min(Pe.colIndex,Ye.current.colIndex),rowEnd:Math.max(Pe.rowIndex,Ye.current.rowIndex),colEnd:Math.max(Pe.colIndex,Ye.current.colIndex)},Be={rowIndex:Ke.rowStart,colIndex:Ke.colStart},Ct={rowIndex:Ke.rowEnd,colIndex:Ke.colEnd};if(be(Be)||be(Ct))return;const Rt=Oe(Be,Ct);re.current=Rt,wt(Rt)}else Ce(Pe);Xe.current=K,ws(fe,Pe,e)}},60),onPointerUp:Z=>{if(We.current=null,Z.pointerType==="touch"||Z.type==="touchend"){if(st.current){const ce=e.current.getViewFromClient(st.current.point.x,st.current.point.y),fe=ce.getScrollTopLeft();if(fe.left===st.current.topLeft.left&&fe.top===st.current.topLeft.top){const Pe=ce.getCellCoordsFromClient(st.current.point.x,st.current.point.y);Le(Pe)}}return st.current=null,void(We.current=null)}try{l?.(de.current,Z)}catch(ce){console.warn(ce)}if(!Ye.current)return;const K=re.current;Ye.current=null,re.current=null,wt(null),De(ce=>{if(ye.current=!1,(ce=sr(ce)).ranges.length===0)return ce;let fe=[],Pe=-1,Ke=ce.cell;for(let Ct=0;Ct<ce.ranges.length;Ct++){const Rt=ce.ranges[Ct];if(Lt.isRangesIntersect(Rt,K)){const jt=ko.subtractRect({top:Rt.rowStart,left:Rt.colStart,bottom:Rt.rowEnd+1,right:Rt.colEnd+1},{top:K.rowStart,left:K.colStart,bottom:K.rowEnd+1,right:K.colEnd+1});for(let Pt=0;Pt<jt.length;Pt++){const cn={rowStart:jt[Pt].top,colStart:jt[Pt].left,rowEnd:jt[Pt].bottom-1,colEnd:jt[Pt].right-1};fe.push(cn),Lt.isCellWithinRange(ce.cell,cn)&&(Pe=fe.length-1)}}else fe.push(Rt);fe.length>0&&Pe===-1&&Lt.isCellWithinRange(ce.cell,Rt)&&(Pe=fe.length-1,Ke={rowIndex:fe[fe.length-1].rowStart,colIndex:fe[fe.length-1].colStart})}const Be={cell:Ke,rangeIndex:Pe,ranges:fe};return Lt.isEqualSelectionCoords(Be,ce)?ce:Be})},processTouch:!0,consumeTouch:!1}),[ne,d,u,k,c]),kt=it(Ui(Qe),[]),Vt=s.useMemo(()=>({onSelectionPointerDown:(Z,K,ce,fe,Pe=ne.cell,Ke=k,Be=Z.nativeEvent.shiftKey,Ct=!1)=>{if(!e||!e.current)return!1;Z.stopPropagation(),Z.preventDefault(),Z.nativeEvent.stopImmediatePropagation();const Rt=ce??e.current.getViewFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY),jt=fe??Rt.getCellCoordsFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY);if(!jt)return!1;We.current={anchor:Rt.getAnchor(),coords:jt},ie.current=null;const Pt=Z.nativeEvent.which===3;if(Pt&&Lt.indexOfCoords(jt,ne.ranges)!==-1)return!1;const cn=Z.nativeEvent.ctrlKey||Z.nativeEvent.metaKey,Dt=cn,Ot=u,Ln=ne.ranges.length>0,at=cn&&Ot;if(T?.(Z,jt,ne)===!1)return!1;i?.(de.current,Z.nativeEvent);const Kt=!Pt&&d!=="single";if(Be)return Ce(jt,Pe,Ct),Kt;const Kn=Lt.isEqualCells(jt,Pe);if(Dt){if(Kn&&(!at||!Ln))return Kt;if(at&&Lt.indexOfCoords(jt,ne.ranges)!==-1&&Ot){Ye.current=jt;const Bt=Oe(jt,jt);return re.current=Bt,wt(Bt),Kt}return qe(jt),Kt}Ke&&Me(jt),Kn&&ne.ranges.length===0||Le(jt)},onSelectionPointerMoveOrWait:(Z,K,ce,fe,Pe,Ke=ne.cell,Be=!0,Ct=!1)=>{if(!e?.current||(Z.stopPropagation(),Z.preventDefault(),Z.stopImmediatePropagation(),!We.current))return;const Rt=We.current.anchor;let jt=fe??e.current.getViewFromLocation(Rt),Pt=Pe??jt.getCellCoordsFromClient(Z.clientX,Z.clientY);if(!Lt.isEqualCells(Pt,We.current?.coords)&&(We.current={anchor:Rt,coords:Pt},Pt&&F?.(Z,Pt,de.current)!==!1)){if(Ye.current){const cn={rowStart:Math.min(Pt.rowIndex,Ye.current.rowIndex),colStart:Math.min(Pt.colIndex,Ye.current.colIndex),rowEnd:Math.max(Pt.rowIndex,Ye.current.rowIndex),colEnd:Math.max(Pt.colIndex,Ye.current.colIndex)},Dt={rowIndex:cn.rowStart,colIndex:cn.colStart},Ot={rowIndex:cn.rowEnd,colIndex:cn.colEnd};if(be(Dt)||be(Ot))return;const Ln=Oe(Dt,Ot);re.current=Ln,wt(Ln)}else Ce(Pt,Ke,Ct);Be&&ws(jt,Pt,e)}},onPointerUp:Z=>{We.current=null,Z.stopPropagation(),Z.preventDefault(),Z.stopImmediatePropagation();try{l?.(de.current,Z)}catch(ce){console.warn(ce)}if(!Ye.current)return;const K=re.current;Ye.current=null,re.current=null,wt(null),De(ce=>{if(ye.current=!1,(ce=sr(ce)).ranges.length===0)return ce;let fe=[],Pe=-1,Ke=ce.cell;for(let Ct=0;Ct<ce.ranges.length;Ct++){const Rt=ce.ranges[Ct];if(Lt.isRangesIntersect(Rt,K)){const jt=ko.subtractRect({top:Rt.rowStart,left:Rt.colStart,bottom:Rt.rowEnd+1,right:Rt.colEnd+1},{top:K.rowStart,left:K.colStart,bottom:K.rowEnd+1,right:K.colEnd+1});for(let Pt=0;Pt<jt.length;Pt++){const cn={rowStart:jt[Pt].top,colStart:jt[Pt].left,rowEnd:jt[Pt].bottom-1,colEnd:jt[Pt].right-1};fe.push(cn),Lt.isCellWithinRange(ce.cell,cn)&&(Pe=fe.length-1)}}else fe.push(Rt);fe.length>0&&Pe===-1&&Lt.isCellWithinRange(ce.cell,Rt)&&(Pe=fe.length-1,Ke={rowIndex:fe[fe.length-1].rowStart,colIndex:fe[fe.length-1].colStart})}const Be={cell:Ke,rangeIndex:Pe,ranges:fe};return Lt.isEqualSelectionCoords(Be,ce)?ce:Be})}}),[ne,d,u,k,c]),ct=it((Z,K=!1,ce=!1,fe=0)=>{if(!e.current||!ne.cell)return;let Pe=ne.cell,Ke=ne.cell;if(K&&ne.ranges.length>0){const at=ne.ranges[ne.rangeIndex],Kt=ne.cell;switch(Z){case Pn:Ke={rowIndex:Kt.rowIndex===at.rowStart?at.rowEnd:at.rowStart,colIndex:at.colEnd},Pe={rowIndex:Kt.rowIndex===at.rowStart?at.rowStart:at.rowEnd,colIndex:at.colStart};break;case An:Ke={rowIndex:Kt.rowIndex===at.rowEnd?at.rowStart:at.rowEnd,colIndex:at.colEnd},Pe={rowIndex:Kt.rowIndex===at.rowEnd?at.rowEnd:at.rowStart,colIndex:at.colStart};break;case On:Ke={rowIndex:at.rowEnd,colIndex:Kt.colIndex===at.colStart?at.colEnd:at.colStart},Pe={rowIndex:at.rowStart,colIndex:Kt.colIndex===at.colStart?at.colStart:at.colEnd};break;case Mn:Ke={rowIndex:at.rowEnd,colIndex:Kt.colIndex===at.colEnd?at.colStart:at.colEnd},Pe={rowIndex:at.rowStart,colIndex:Kt.colIndex===at.colEnd?at.colEnd:at.colStart}}}const Be=D(Ke);let{rowStart:Ct,colStart:Rt}=Be;const jt=H();if(ie.current)switch(Z){case Pn:case An:ie.current.colIndex>=Be.colStart&&ie.current.colIndex<=Be.colEnd&&(Rt=ie.current.colIndex);break;case On:case Mn:ie.current.rowIndex>=Be.rowStart&&ie.current.rowIndex<=Be.rowEnd&&(Ct=ie.current.rowIndex)}if(!fe){switch(Z){case Pn:Ct=Rn(me,Math.max(Be.rowStart-1,jt.top),Z);break;case An:Ct=Rn(me,Math.min(Be.rowEnd+1,jt.bottom),Z);break;case On:Rt=Rn(ae,Math.max(Be.colStart-1,jt.left),Z);break;case Mn:Rt=Rn(ae,Math.min(Be.colEnd+1,jt.right),Z)}if(ce)switch(Z){case Pn:Ct=C({...Ke,colIndex:ne.cell.colIndex},Y,me,Z,!1,Math.max(jt.top,me(jt.top,!1)));break;case An:Ct=C({...Ke,colIndex:ne.cell.colIndex},Y,me,Z,!1,Math.min(jt.bottom,jt.bottom-me(jt.bottom,!0)));break;case On:Rt=C({...Ke,rowIndex:ne.cell.rowIndex},Y,ae,Z,!1,Math.max(jt.left,ae(jt.left,!1)));break;case Mn:Rt=C({...Ke,rowIndex:ne.cell.rowIndex},Y,ae,Z,!1,Math.min(jt.right,jt.right-ae(jt.right,!0)))}}let Pt=null;if(fe){let at=0;switch(Z){case Pn:at=n.getRowOffset(Ct+1),Ct=Math.max(jt.top,n.getRowIndex(at-fe)),Pt={top:n.getRowOffset(Ct+1)-(at-e.current.getScrollPosition().top)};break;case An:at=n.getRowOffset(Ct),Ct=Math.min(jt.bottom,n.getRowIndex(at+fe)),Pt={top:n.getRowOffset(Ct)-(at-e.current.getScrollPosition().top)};break;case On:at=n.getColOffset(Rt+1),Rt=Math.max(jt.left,n.getColIndex(at-fe)),Pt={left:n.getColOffset(Rt+1)-(at-e.current.getScrollPosition().left)};break;case Mn:at=n.getColOffset(Rt),Rt=Math.min(jt.right,n.getColIndex(at+fe)),Pt={left:n.getColOffset(Rt)-(at-e.current.getScrollPosition().left)}}}const cn={rowIndex:Ct,colIndex:Rt},Dt=D(cn),Ot={rowIndex:Dt.rowStart,colIndex:Dt.colStart};K||(ie.current=cn);const Ln=Lt.isEqualCells(we.current,Ot)&&Lt.isEqualCells(we.current,Pe);if(K&&!Ln?Ce(Ot,Pe):Le(Ot),Pt)e.current.scrollTo(Pt);else{if(K&&we.current){const at=H();if(Z===Mn&&we.current.colIndex===at.left||Z===On&&we.current.colIndex===at.right||Z===Pn&&we.current.rowIndex===at.bottom||Z===An&&we.current.rowIndex===at.top)return}Z===On||Z===Mn?Me({colIndex:cn.colIndex}):Z!==Pn&&Z!==An||Me({rowIndex:cn.rowIndex})}},[ne,D]),Ut=it(Z=>{if(!e.current)return;if(ne.ranges.length===0)return void ct(Z);const K=D(ne.cell);if(Lt.isEqualRangesArrays([K],ne.ranges))return void ct(Z);const ce=p2(ne,Z,D,me,ae);De(fe=>{ye.current=!1,fe=sr(fe);const Pe={...fe,cell:ce.cell,rangeIndex:ce.rangeIndex};return Lt.isEqualSelectionCoords(Pe,fe)?fe:Pe}),ce.cell&&Me(ce.cell)},[ne,D]),Qt=s.useCallback(()=>{const Z=H();Ce({rowIndex:Z.top},{rowIndex:Z.bottom})},[]),ln=s.useCallback(()=>{const Z=H();Ce({colIndex:Z.left},{colIndex:Z.right})},[]),gn=it(()=>{ne.cell&&e?.current&&Me(ne.cell)},[ne.cell]),En=s.useCallback((Z=!1)=>{const K={rowIndex:H().top};Z?Ce(K):Le(K),Me(K)},[]),Nn=s.useCallback((Z=!1)=>{const K={rowIndex:H().bottom};Z?Ce(K):Le(K),Me(K)},[]),no=s.useCallback((Z=!1)=>{const K={colIndex:H().left};Z?Ce(K):Le(K),Me(K)},[]),co=s.useCallback((Z=!1)=>{const K=H(),ce={rowIndex:K.top,colIndex:K.left};Z?Ce(ce):Le(ce),Me(ce)},[]),_n=s.useCallback((Z=!1)=>{const K=H(),ce={colIndex:E?.()?.colEnd??K.right};Z?Ce(ce):Le(ce),Me(ce)},[E]),zt=s.useCallback((Z=!1)=>{const K=H(),ce={rowIndex:E?.()?.rowEnd??K.bottom,colIndex:E?.()?.colEnd??K.right};Z?Ce(ce):Le(ce),Me(ce)},[E]),Fn=it(Z=>{if(!e.current||ne.ranges.length<=1)return;const K=Z===On||Z===Pn;let ce=ne.rangeIndex+(K?-1:1);ce<0?ce=ne.ranges.length-1:ce>ne.ranges.length-1&&(ce=0);const fe=ne.ranges[ce],Pe=p2({cell:{rowIndex:fe.rowEnd,colIndex:fe.colEnd},rangeIndex:0,ranges:[fe]},Mn,D,me,ae);De(Ke=>{ye.current=!1,Ke=sr(Ke);const Be={...Ke,cell:Pe.cell,rangeIndex:ce};return Lt.isEqualSelectionCoords(Be,Ke)?Ke:Be}),Pe.cell&&Me(Pe.cell)},[ne,D]),qn=it(()=>{const Z=K4(ne);De(K=>{ye.current=!1,K=sr(K);const ce={...K,visibleSelection:Z};return Lt.isEqualSelectionCoords(ce,K)?K:ce}),Z.cell&&Me(Z.cell)},[ne,D]),wn=it(()=>{if(!e.current||ne.ranges.length===0)return;const Z=ne.cell,K=ne.ranges[ne.rangeIndex],ce=K4({cell:Z,rangeIndex:0,ranges:[K]}),fe=ce.ranges[ce.rangeIndex];let Pe;Pe=fe.rowStart===Z.rowIndex&&fe.colStart===Z.colIndex?{rowIndex:fe.rowStart,colIndex:fe.colEnd}:fe.rowStart===Z.rowIndex&&fe.colEnd===Z.colIndex?{rowIndex:fe.rowEnd,colIndex:fe.colStart}:fe.rowEnd===Z.rowIndex&&fe.colStart===Z.colIndex?{rowIndex:fe.rowEnd,colIndex:fe.colEnd}:{rowIndex:fe.rowStart,colIndex:fe.colStart},De(Ke=>{Ke=sr(Ke);const Be={...Ke,cell:Pe};return Lt.isEqualSelectionCoords(Be,Ke)?Ke:Be}),Pe&&Me(Pe)},[ne,D]),Cn=s.useCallback((Z=!1)=>{ct(An,Z,!1,e.current.getDimensions().containerHeight)},[]),fn=s.useCallback((Z=!1)=>{ct(Pn,Z,!1,e.current.getDimensions().containerHeight)},[]),er=s.useCallback((Z=!1)=>{ct(Mn,Z,!1,e.current.getDimensions().containerWidth)},[]),br=s.useCallback((Z=!1)=>{ct(On,Z,!1,e.current.getDimensions().containerWidth)},[]),wr=s.useCallback(()=>{Ut(On)},[]),Wo=s.useCallback(()=>{Ut(Mn)},[]),Pr=s.useCallback(()=>{Ut(Pn)},[]),Uo=s.useCallback(()=>{Ut(An)},[]),vr=s.useCallback(()=>{Fn(On)},[]),Gr=s.useCallback(()=>{Fn(Mn)},[]),Sr=s.useCallback(()=>{wn()},[]),Do=s.useCallback(()=>{ct(On,!1,!1)},[]),Fe=s.useCallback(()=>{ct(On,!0,!1)},[]),et=s.useCallback(()=>{ct(On,!1,!0)},[]),tt=s.useCallback(()=>{ct(On,!0,!0)},[]),Ze=s.useCallback(()=>{ct(Mn,!1,!1)},[]),rt=s.useCallback(()=>{ct(Mn,!0,!1)},[]),vt=s.useCallback(()=>{ct(Mn,!1,!0)},[]),Et=s.useCallback(()=>{ct(Mn,!0,!0)},[]),St=s.useCallback(()=>{ct(Pn,!1,!1)},[]),Mt=s.useCallback(()=>{ct(Pn,!0,!1)},[]),Tt=s.useCallback(()=>{ct(Pn,!1,!0)},[]),en=s.useCallback(()=>{ct(Pn,!0,!0)},[]),bn=s.useCallback(()=>{ct(An,!1,!1)},[]),an=s.useCallback(()=>{ct(An,!0,!1)},[]),ve=s.useCallback(()=>{ct(An,!1,!0)},[]),ut=s.useCallback(()=>{ct(An,!0,!0)},[]),_t=s.useCallback(()=>{ze(Z=>Z.slice(0,-1))},[]),sn=s.useMemo(()=>{const Z=H();return((K,ce,fe,Pe,Ke)=>{for(let Be=0;Be<K.length;Be++){const Ct=K[Be];if(Ct.rowStart===ce&&Ct.colStart===fe&&Ct.rowEnd===Pe&&Ct.colEnd===Ke)return!0}return!1})(ne.ranges,Z.top,Z.left,Z.bottom,Z.right)},[M,ne.ranges]),Jt=s.useCallback((Z,K=!0)=>{we.current=Z,$e(Z),K&&Z&&e?.current&&Me(Z)},[]),yt=it((Z=!0)=>{const K=xt.current;if(!de.current?.cell)return;const ce=de.current?.ranges,fe=de.current?.cell;if(!fe||!K||!K)return;let Pe=null;if(Pe=ce.length>0?ce[ce.length-1]:D(fe),Pe.colEnd>=Pe.colStart&&Pe.rowEnd>=Pe.rowStart){const Ke=X4(Pe,K);let Be=Z?z:W;try{Be?.(Pe,K,Ke.direction)}catch(Ct){console.warn(Ct)}finally{Z&&Q?.()}}},[D]),qt=s.useRef(null),Lo=Ui(s.useMemo(()=>({onPointerDown:(Z,K)=>{if(Xe.current=K,!e||!e.current)return!1;const ce=e.current.getViewFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY),fe=ce?.getCellCoordsFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY);fe&&(Z.stopPropagation(),bt("crosshair"),qt.current={anchor:ce.getAnchor(),coords:fe})},onPointerMoveOrWait:(Z,K)=>{if(m||!e?.current||!de.current||!qt.current)return;const ce=qt.current.anchor;let fe=e.current.getViewFromLocation(ce),Pe=fe.getCellCoordsFromClient(Z.clientX,Z.clientY);if(!Pe)return;qt.current={anchor:ce,coords:Pe};const Ke=de.current.ranges;let Be=Oe(de.current.cell,Pe);if(!Be)return;const Ct=Ke.length>0,Rt=Ct?Ke[Ke.length-1]:D(de.current.cell);if(!Be)return;const jt=Be.rowStart<Rt.rowStart?Pn:Be.rowEnd>Rt.rowEnd?An:Be.colEnd>Rt.colEnd?Mn:On,Pt=H();jt===On&&(Be={...Rt,colStart:Math.max(Pt.left,Be.colStart)}),jt===Pn&&(Be={...Rt,rowStart:Math.max(Pt.top,Be.rowStart)}),jt===Mn&&(Be={...Rt,colEnd:Math.min(Pt.right,Be.colEnd)}),jt===An&&(Be={...Rt,rowEnd:Math.min(Pt.bottom,Be.rowEnd)});const cn=X4(Rt,Be);if(!P?.(Rt)){let Dt;typeof Re.current=="function"?Dt=Re.current(Rt):_&&(Dt=_),Be=((Ot,Ln,at,Kt,Kn,Bt)=>{const tn={...Ln};if(at.length===0)return tn;if(Kn===On){const In=Ot.colEnd+1-Ot.colStart;tn.colStart=Ot.colStart-Math.ceil(Bt/In)*In,tn.colStart<Kt.left&&(tn.colStart=tn.colStart+Math.ceil((Kt.left-tn.colStart)/In)*In)}else if(Kn===Mn){const In=Ot.colEnd+1-Ot.colStart;tn.colEnd=Ot.colEnd+Math.ceil(Bt/In)*In,tn.colEnd>Kt.right&&(tn.colEnd=tn.colEnd-Math.ceil((Kt.right-tn.colEnd)/In)*In)}else if(Kn===Pn){const In=Ot.rowEnd+1-Ot.rowStart;tn.rowStart=Ot.rowStart-Math.ceil(Bt/In)*In,tn.rowStart<Kt.top&&(tn.rowStart=tn.rowStart+Math.ceil((Kt.top-tn.rowStart)/In)*In)}else if(Kn===An){const In=Ot.rowEnd+1-Ot.rowStart;tn.rowEnd=Ot.rowEnd+Math.ceil(Bt/In)*In,tn.rowEnd>Kt.bottom&&(tn.rowEnd=tn.rowEnd-Math.ceil((Kt.bottom-tn.rowEnd)/In)*In)}return tn})(Rt,Be,Dt,Pt,cn.direction,cn.amount)}if(Ct&&Lt.isRangeWithinRange(Be,Rt)&&(Be=null),!Lt.isEqualRanges(Be,xt.current)){if(ht(Be),xt.current=Be,!Be){try{G?.()}catch{}return void Q?.()}yt(!1)}Xe.current=K,ws(fe,Pe,e)},onPointerUp:(Z,K)=>{Xe.current=K,Promise.resolve(yt(!0)).finally(()=>{Q?.(),ht(null),xt.current=null,qt.current=null,bt(null),e.current?.focus()})}}),[D])),Bo=s.useMemo(()=>({onPointerDown:Lo}),[Lo]),[Xt,Tn]=s.useState(null),mn=s.useRef(null),jn=s.useMemo(()=>({onPointerDown:(Z,K)=>{if(Xe.current=K,!e||!e.current)return!1;const ce=e.current.getViewFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY),fe=ce?.getCellCoordsFromClient(Z.nativeEvent.clientX,Z.nativeEvent.clientY);if(!fe)return;if(T?.(Z,fe,ne)===!1)return!1;Z.stopPropagation(),bt("default");const Pe=ce.getRelativePointFromClient(0,0),Ke=de.current?.ranges[de.current?.ranges.length-1]??Lt.cellToRange(de.current?.cell),Be=ce.toClipBounds(ce.getRangeCoordsBounds(Ke)),Ct={x:0,y:0};Be.x-Pe.x>Z.nativeEvent.clientX?Ct.x=Z.nativeEvent.clientX-(Be.x-Pe.x):Z.nativeEvent.clientX>=Be.x-Pe.x+Be.width&&(Ct.x=Math.max(0,Z.nativeEvent.clientX-(Be.x-Pe.x+Be.width))+1),Be.y-Pe.y>Z.nativeEvent.clientY?Ct.y=Z.nativeEvent.clientY-(Be.y-Pe.y):Z.nativeEvent.clientY>=Be.y-Pe.y+Be.height&&(Ct.y=Math.max(0,Z.nativeEvent.clientY-(Be.y-Pe.y+Be.height))+1),v?.(Ke,Z.nativeEvent,K),mn.current={range:Ke,anchor:ce.getAnchor(),cell:fe,isMoving:!1,extrusion:Ct}},onPointerMoveOrWait:(Z,K,ce)=>{if(A||!e?.current||!de.current||!mn.current)return;const fe=Z.clientX-ce.clientX,Pe=Z.clientY-ce.clientY;if(mn.current.isMoving=mn.current.isMoving||Math.abs(fe)>Math.max(1,2)||Math.abs(Pe)>Math.max(1,2)||performance.now()-ce.timeStamp>500,!mn.current.isMoving)return;const Ke=mn.current.anchor,Be=mn.current.extrusion;let Ct=e.current.getViewFromLocation(Ke),Rt=Ct.getCellCoordsFromClient(Z.clientX-Be.x,Z.clientY-Be.y,!0);if(!Rt)return;const jt=mn.current.cell,Pt=mn.current.range,cn=H(),Dt=Pt.colEnd-Pt.colStart+1,Ot=Math.min(Math.max(0,jt.colIndex-Pt.colStart),Dt-1),Ln=Math.min(cn.right-Dt+1,Math.max(cn.left,Rt.colIndex-Ot)),at=Pt.rowEnd-Pt.rowStart+1,Kt=Math.min(Math.max(0,jt.rowIndex-Pt.rowStart),at-1),Kn=Math.min(cn.bottom-at+1,Math.max(cn.top,Rt.rowIndex-Kt)),Bt={colStart:Ln,colEnd:Ln+Dt-1,rowStart:Kn,rowEnd:Kn+at-1};Lt.isEqualRanges(Xt,Bt)&&!(tn=>!tn||!Xe.current||Xe.current.ctrlKey!==tn.ctrlKey||Xe.current.shiftKey!==tn.shiftKey||Xe.current.altKey!==tn.altKey||Xe.current.metaKey!==tn.metaKey)(Z)||(Tn(Bt),S?.(Bt,Z,K)),Xe.current=K,ws(Ct,Rt,e)},onPointerUp:(Z,K)=>{Xe.current=K;const ce=()=>{Tn(null),mn.current=null,bt(null),e.current?.focus()};if(!mn.current)return void ce();const fe=mn.current.range,Pe=Xt;I?.(fe,Z,K),Promise.resolve(fe&&Pe&&j?.(fe,Pe,Z,K)).finally(()=>{ce()})}}),[Xt]),hn=Ui(jn),Gn=s.useMemo(()=>({onPointerDown:hn}),[hn]),Ie=s.useRef(null),se=s.useMemo(()=>{const Z=Lt.isEqualSelectionCoords(ne,Ie.current)?Ie.current:ne;return Ie.current=Z,Z},[ne]),lt=s.useCallback(Z=>{let K=null,ce="br";const fe=[],Pe={stroke:x,fill:q,strokeWidth:.5},Ke=(Dt,Ot,Ln)=>{const at=Z.toClipBounds(Z.getRangeCoordsBounds(Dt),qo);if(!at)return;at.x=at.width>0?at.x:at.x-Pe.strokeWidth/2,at.y=at.height>0?at.y:at.y-Pe.strokeWidth/2,at.width=Math.max(at.width,Pe.strokeWidth),at.height=Math.max(at.height,Pe.strokeWidth);const Kt={key:`selection-fill-${Ot}`,range:Dt,...at,...Pe};if(Ln){const Kn=Z.getCellCoordsAsRangeCoords(Ln);Kt.cell=Ln,Kt.pathBounds=Z.toClipBounds(Z.getRangeCoordsBounds(Kn),qo),Kt.pathBounds&&(Kt.pathBounds.width<=0||Kt.pathBounds.height<=0)&&(delete Kt.pathBounds,delete Kt.cell)}return te(Kt)};let Be=ne?sr(ne):null;const Ct=Be?.cell?Z.getCellCoordsAsRangeCoords(Be?.cell):KC;!Be||Be.ranges&&Be.ranges.length!==0||(Be={ranges:[Ct],rangeIndex:0,cell:Be.cell});for(let Dt=0;Be&&Dt<Be.ranges.length;Dt++){const Ot=Be.ranges[Dt],Ln=Ke(Ot,Dt,Dt===Be.rangeIndex?Be.cell:null);Ln&&fe.push(Ln);const at=2,Kt=.5,Kn=Z.toClipBounds(Z.getRangeCoordsBounds(Ot,{top:0,left:0,right:0,bottom:0}),qo);if(Kn){const Bt=(Be.ranges.length,4);fe.push(te({range:Ot,key:`selection-inside-edge-${Dt}`,x:Kn.x-1,y:Kn.y-1,width:Math.max(Kn.width+1,0),height:Math.max(Kn.height+1,0),style:{overflow:"hidden"},stroke:x,strokeWidth:Bt}))}if(Be.ranges.length===1){const Bt=Z.toClipBounds(Z.getRangeCoordsBounds(Ot),qo);if(Bt){A||fe.push(te({range:Ot,key:`move-selection-hit-box-${Dt}`,x:Bt.width>1?Bt.x:Bt.x-(L/2+1),y:Bt.height>1?Bt.y:Bt.y-(L/2+1),width:Math.max(Bt.width+2,1),height:Math.max(Bt.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:Xt?void 0:"move",pointerEvents:"stroke"},strokeWidth:L,...Gn}));const tn=at;fe.push(te({range:Ot,key:`selection-single-${Dt}`,x:Bt.x-tn/2,y:Bt.y-tn/2,width:Math.max(Bt.width+tn/2,1),height:Math.max(Bt.height+tn/2,1),stroke:O,strokeWidth:tn}))}}else{const Bt=Z.toClipBounds(Z.getRangeCoordsBounds(Ot,{top:-1,left:-1,right:-2,bottom:-2}),qo);Bt&&fe.push(te({range:Ot,key:`selection-multi-${Dt}`,x:Bt.width>1?Bt.x:Bt.x-Kt/2,y:Bt.height>1?Bt.y:Bt.y-Kt/2,width:Math.max(Bt.width,Kt)+1,height:Math.max(Bt.height,Kt)+1,stroke:O,style:{overflow:"hidden"},strokeWidth:2}))}if(Be.ranges.length>1&&Dt===Be.rangeIndex){const Bt=Z.getCellCoordsAsRangeCoords(Be.cell),tn=Z.toClipBounds(Z.getRangeCoordsBounds(Bt,{top:1,left:1,right:-1,bottom:-1}),qo);tn&&fe.push(te({range:Ot,key:`selection-anchor-${Dt}`,x:tn.x,y:tn.y,width:Math.max(tn.width,Kt),height:Math.max(tn.height,Kt),stroke:O,style:{overflow:"hidden"},strokeWidth:2}))}if(Dt===Be.ranges.length-1){K=null,ce=null;const Bt=Ot.rowStart===H().top&&Ot.rowEnd===H().bottom,tn=Ot.colStart===H().left&&Ot.colEnd===H().right,In=Z.getRangeCoordsBounds(Ot);let tr=null;if(Bt||tn){if(tr=Z.toClipBounds(In,qo),Object.keys(Z.allViews()).length>1){const b0=Z.getVisibleRangeCoords(),$a=Z.allViews()[v1],Mo=Z.allViews()[Sa],uo=Z.allViews()[Ca],At=Z.getAnchor();(tn&&(At===Sa&&$a||At===cr&&uo||!Lt.isCellWithinRange({colIndex:Ot.colStart,rowIndex:Ot.rowEnd},b0)&&!Lt.isCellWithinRange({colIndex:Ot.colStart,rowIndex:Ot.rowEnd+1},b0))||Bt&&(At===Ca&&$a||At===cr&&Mo||!Lt.isCellWithinRange({colIndex:Ot.colEnd,rowIndex:Ot.rowStart},b0)&&!Lt.isCellWithinRange({colIndex:Ot.colEnd+1,rowIndex:Ot.rowStart},b0)))&&(tr=null)}}else tr=Z.toClipBounds(In,qo);if(!tr||tr.width===0||tr.height===0)continue;K={x:tr.x+tr.width+1,y:tr.y+tr.height+1},tr.width===0||tr.height===0||Ot.rowStart===H().top&&Ot.colStart===H().left&&Ot.rowEnd===H().bottom&&Ot.colEnd===H().right||(Bt?(K.y=at,ce="tr"):tn&&(K.x=at,ce="bl"))}}let Rt=null;if(Ne){const Dt=Z.toClipBounds(Z.getRangeCoordsBounds(Ne,{top:0,left:0,right:0,bottom:0}),qo);Dt&&(Rt=te({...Pe,range:Ne,key:"remove-selection",x:Dt.x,y:Dt.y,width:Dt.width,height:Dt.height,strokeWidth:2,stroke:U,fill:X}))}let jt=null;if(Se){const Dt=Z.toClipBounds(Z.getRangeCoordsBounds(Se,{top:0,left:0,right:0,bottom:0}),qo);Dt&&(jt=te({range:Se,key:"selection-fill-outline",x:Dt.x-1,y:Dt.y-1,width:Dt.width+1,height:Dt.height+1,strokeWidth:2,stroke:O,strokeDasharray:"3 2"}))}let Pt=null;!m&&K&&!Xt&&(Pt=s.createElement(_9,{...K,corner:ce,size:7.5,borderStroke:`${x} solid`,style:{borderRadius:1},background:O,...Bo,key:"fillHandle"}));const cn=[...fe];if(Rt&&cn.push(Rt),jt&&cn.push(jt),Pt&&cn.push(Pt),!ee&&ot&&Be?.ranges.length===1&&Be.ranges[Be.ranges.length-1]){const Dt=Be.ranges[Be.ranges.length-1],Ot=Dt.rowStart===H().top&&Dt.rowEnd===H().bottom,Ln=Dt.colStart===H().left&&Dt.colEnd===H().right,at={view:Z,range:Dt,borderStroke:`${O} solid`,background:x,selectionTouchPointerHandler:Vt,...V,onTouchSelectStart:Kt=>xe(Kt),onTouchSelectEnd:()=>xe(null),currentTouchAnchor:Ue};cn.push(a.jsx(f2,{anchor:Ln?"b":Ot?"r":"br",scrollableElement:e.current,...at},"touch-select-handle-after")),cn.push(a.jsx(f2,{anchor:Ln?"t":Ot?"l":"tl",scrollableElement:e.current,...at},"touch-select-handle-before"))}if(Xt){const Dt=Z.toClipBounds(Z.getRangeCoordsBounds(Xt,{top:1,left:1,right:1,bottom:1}),qo);Dt&&cn.push(te({range:Xt,key:"selection-move-outline",x:Dt.x-$/2,y:Dt.y-$/2,width:Math.max(Dt.width+$/2,1),height:Math.max(Dt.height+$/2,1),stroke:O,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:$}))}return a.jsx("div",{children:cn},"selection")},[se,Ne,m,Se,A,Xt,H,x,O,q,U,X,ee,V,Ue]),ft=s.useMemo(()=>{const Z=()=>e.current;return[new rn("moveToPageDown",Z,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>Cn(!1)),new rn("selectToPageDown",Z,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[fo]}]},()=>Cn(!0)),new rn("moveToPageRight",Z,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[Z0]}]},()=>er(!1)),new rn("selectToPageRight",Z,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[Z0,fo]}]},()=>er(!0)),new rn("moveToPageUp",Z,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>fn(!1)),new rn("selectToPageUp",Z,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[fo]}]},()=>fn(!0)),new rn("moveToPageLeft",Z,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[Z0]}]},()=>br(!1)),new rn("selectToPageLeft",Z,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[Z0,fo]}]},()=>br(!0)),new rn("selectColumn",Z,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[Po]}},Qt),new rn("selectRow",Z,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[fo]}},ln),new rn("selectToColumnStart",Z,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>En(!0)),new rn("selectToColumnEnd",Z,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Nn(!0)),new rn("moveToRowStart",Z,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>no(!1)),new rn("selectToRowStart",Z,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[fo]}]},()=>no(!0)),new rn("moveToSheetStart",Z,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Po]}]},()=>co(!1)),new rn("selectToSheetStart",Z,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[Po,fo]}]},()=>co(!0)),new rn("moveToRowEnd",Z,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>_n(!1)),new rn("selectToRowEnd",Z,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[fo]}]},()=>_n(!0)),new rn("moveToSheetEnd",Z,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[Po]}]},()=>zt(!1)),new rn("selectToSheetEnd",Z,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[Po,fo]}]},()=>zt(!0)),new rn("scrollToActiveCoords",Z,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[Po]}},gn),new rn("scrollToActiveCoordsClearSelection",Z,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[fo]}},()=>{pt(),Jt(ne.cell,!0)}),new rn("traverseSelectionRight",Z,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},Wo),new rn("traverseSelectionLeft",Z,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[fo]}},wr),new rn("traverseSelectionDown",Z,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},Uo),new rn("traverseSelectionUp",Z,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[fo]},{key:"NumpadEnter",modifiers:[fo]}]},Pr),new rn("moveLeft",Z,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},Do),new rn("selectLeft",Z,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[fo]}]},Fe),new rn("moveContentfulLeft",Z,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Po]}]},et),new rn("selectContentfulLeft",Z,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[Po,fo]}]},tt),new rn("moveRight",Z,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},Ze),new rn("selectRight",Z,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[fo]}]},rt),new rn("moveContentfulRight",Z,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Po]}]},vt),new rn("selectContentfulRight",Z,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[Po,fo]}]},Et),new rn("moveUp",Z,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},St),new rn("selectUp",Z,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[fo]}]},Mt),new rn("moveContentfulUp",Z,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Po]}]},Tt),new rn("selectContentfulUp",Z,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[Po,fo]}]},en),new rn("moveDown",Z,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},bn),new rn("selectDown",Z,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[fo]}]},an),new rn("moveContentfulDown",Z,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Po]}]},ve),new rn("selectContentfulDown",Z,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[Po,fo]}]},ut),new rn("selectVisible",Z,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[Z0]}},qn),new rn("traverseSelectionPreviousRange",Z,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[Po,Z0]}},vr),new rn("traverseSelectionNextRange",Z,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[Po,Z0]}},Gr),new rn("traverseSelectionCorners",Z,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[Po]}},Sr)]},[]);return s.useMemo(()=>{t?.addCommands(ft,!0)},[t]),{selection:se,setSelectionCell:Jt,setSelectionRanges:ze,overlay:lt,cursor:gt,onPointerDown:kt,clearLastSelection:_t,newSelection:Le,modifySelection:Ce,appendSelection:qe,clearSelections:pt,isEntire:sn,navigate:ct,navigateSelection:Ut}};function Zs(e,t){if(!e)throw new Error("Invariant failed")}const e7={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},YC=Object.freeze({top:0,left:0}),JC=Object.freeze({bottom:-4,right:-4}),QC=Object.freeze({horizontal:!0,vertical:!0}),t7=[v1,Sa,Ca,cr],Jr=3e3,td={},I9=s.memo(s.forwardRef((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:l,defaultColumnWidth:d,getRowHeight:c,getColumnWidth:u,layout:p,onViewportScroll:f,onImmediateScroll:h,showGridLines:g=!0,gridLineColor:m="rgb(224, 224, 224)",gridLineRowsProps:x,gridLineColumnsProps:y,clipCells:w=!0,cursor:b,freezeLeft:C=0,freezeTop:E=0,freezeLeftProps:k,freezeTopProps:M,cellRenderer:T,onViewportChange:F,onFirstRender:_,overlayRenderer:P,overlayProps:v,overlays:S,overlaysProps:I,allowOverlaysOverflow:j=!1,stageProps:R,stageWrapper:A=null,hiddenRowsAt:D,hiddenColumnsAt:L,hiddenCellAt:$,getVisibleCells:q,zoom:O=1,enableMouseWheel:U=!0,onWheelScroll:X,getCellCoordsAsRangeCoords:ee=Lt.cellToRange,scrollPoint:V=YC,style:H={},...z}=e;Zs(T),Zs(!e?.children);const W=it(h,[h]),G=it(F,[F]),Q=it(f,[f]),Y=it(X,[X]),te=it(_,[_]),le=s.useRef(null),me=s.useRef(null),J=s.useRef(null),[ae,ke]=s.useReducer(Fe=>Fe+1,0),[De,ne]=s.useState({left:V?.left??0,top:V?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),de=s.useRef(null),ye=s.useRef(De),{top:ze,left:$e,verticalScrollDirection:gt,horizontalScrollDirection:bt}=De,Se=s.useRef(!1),ht=(Fe=>{const{rowCount:et,columnCount:tt,defaultRowHeight:Ze,getRowHeight:rt,defaultColumnWidth:vt,getColumnWidth:Et}=Fe||{},St=s.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),Mt=it(qt=>U4({itemType:"row",itemCount:et,itemSize:rt??(()=>Ze??20),instanceProps:St.current,offset:qt}),[et,rt,Ze]),Tt=it(qt=>qt===-1?0:zi({itemType:"row",index:qt,itemSize:rt??(()=>Ze??20),instanceProps:St.current}).offset,[rt,Ze]),en=it(qt=>zi({itemType:"row",index:qt,itemSize:rt??(()=>Ze??20),instanceProps:St.current}).size,[rt,Ze]),bn=it(qt=>U4({itemType:"column",itemCount:tt,itemSize:Et??(()=>vt??75),instanceProps:St.current,offset:qt}),[tt,Et,vt]),an=it(qt=>qt===-1?0:zi({itemType:"column",index:qt,itemSize:Et??(()=>vt??75),instanceProps:St.current}).offset,[Et,vt]),ve=it(qt=>zi({itemType:"column",index:qt,itemSize:Et??(()=>vt??75),instanceProps:St.current}).size,[Et,vt]),[ut,_t]=s.useReducer(qt=>qt+1,0),sn=()=>({getRowOffset:Tt,getColOffset:an,getRowIndex:Mt,getColIndex:bn}),[Jt,yt]=s.useState(()=>Fe?sn():null);return s.useEffect(()=>{yt(Fe?sn():null)},[ut,et,tt,vt,Ze,en,ve]),Jt})({rowCount:r,columnCount:i,defaultRowHeight:l,defaultColumnWidth:d,getRowHeight:c,getColumnWidth:u}),xt=s.useRef(null),Ne=s.useMemo(()=>{const Fe=p||ht;return xt.current=null,{getColOffset:et=>Fe.getColOffset(et)*O,getColIndex:et=>Fe.getColIndex(et/O),getRowOffset:et=>Fe.getRowOffset(et)*O,getRowIndex:et=>Fe.getRowIndex(et/O)}},[ht,p,O]),wt=(Fe,et,tt)=>{const Ze=(et?.left??0)+0,rt=(et?.top??0)+0;return{getColOffset:vt=>Fe.getColOffset(vt)-Ze,getColIndex:vt=>Fe.getColIndex(vt+Ze),getRowOffset:vt=>Fe.getRowOffset(vt)-rt,getRowIndex:vt=>Fe.getRowIndex(vt+rt)}},Ye=s.useCallback((Fe,et=!1)=>E1(Fe,et,Ne.getRowOffset,et?0:r),[r,Ne?.getRowOffset]),re=it(D??Ye,[D]),Ue=s.useCallback((Fe,et=!1)=>E1(Fe,et,Ne.getColOffset,et?i:0),[i,Ne?.getColOffset]),xe=it(L??Ue,[L]),we=s.useMemo(()=>Math.min(n??800,Ne.getColOffset(i)),[Ne.getColOffset,i,n]),ie=s.useMemo(()=>Math.min(o??600,Ne.getRowOffset(r)),[Ne.getRowOffset,r,o]),Re=s.useCallback(Fe=>{ko.canUseDOM&&setTimeout(()=>{le.current?.focus({preventScroll:!0,...Fe})},0)},[]),Me=s.useCallback(Fe=>le.current?.contains(Fe)||me.current?.contains(Fe),[]);s.useEffect(()=>{Se.current&&(de.current&&de.current.left!==ye.current?.left&&de.current.top!==ye.current?.top||(de.current=null,Q?.({left:$e,top:ze})))},[$e,ze]);const be=it(()=>({top:ze,left:$e}),[ze,$e]),Oe=s.useMemo(()=>{const Fe=[];let et=0,tt=0;typeof E=="number"?et=E:(et=E.index??0,tt=(E.scrollOffset??0)*O);const Ze=tt,rt=Ne.getRowOffset(et),vt=rt-Ze;if(et>0){const bn=wt(Ne,{top:tt+Ne.getRowOffset(0)}),an=Ne.getRowIndex(Ze),ve=Ne.getRowIndex(rt-1);let ut;Fe[1]={minIndex:an,maxIndex:ve,minCoord:0,maxCoord:et-1,minBounds:0,maxBounds:vt,visibleIndices:()=>ut||(ut=Object.freeze(bs(re,an,ve)),ut),layout:bn,maxVirtualBounds:rt,scrollOffset:tt,freezeOffset:tt}}const Et=Math.max(0,ie-vt),St=wt(Ne,{top:ze+vt}),Mt=St.getRowIndex(0),Tt=St.getRowIndex(Et);let en;return Fe[0]={minIndex:Mt,maxIndex:Tt,minCoord:et,maxCoord:r-1,minBounds:vt,maxBounds:Et,visibleIndices:()=>en||(en=Object.freeze(bs(re,Mt,Tt)),en),layout:St,maxVirtualBounds:Ne.getRowOffset(r),scrollOffset:ze,freezeOffset:(et>0?Ne.getRowOffset(et):0)-tt},Fe},[Ne.getRowIndex,Ne.getRowOffset,re,ie,r,E,ze,O]),oe=s.useMemo(()=>{const Fe=[];let et=0,tt=0;typeof C=="number"?et=C:(et=C.index??0,tt=(C.scrollOffset??0)*O);const Ze=tt,rt=Ne.getColOffset(et),vt=rt-Ze;if(et>0){const bn=wt(Ne,{left:tt+Ne.getColOffset(0)}),an=Ne.getColIndex(Ze),ve=Ne.getColIndex(rt-1);let ut;Fe[1]={minIndex:an,maxIndex:ve,minCoord:0,maxCoord:et-1,minBounds:0,maxBounds:vt,visibleIndices:()=>ut||(ut=Object.freeze(bs(xe,an,ve)),ut),layout:bn,maxVirtualBounds:rt,scrollOffset:tt,freezeOffset:tt}}const Et=Math.max(0,we-vt),St=wt(Ne,{left:$e+vt}),Mt=St.getColIndex(0),Tt=St.getColIndex(Et);let en;return Fe[0]={minIndex:Mt,maxIndex:Tt,minCoord:et,maxCoord:i-1,minBounds:vt,maxBounds:Et,visibleIndices:()=>en||(en=Object.freeze(bs(xe,Mt,Tt)),en),layout:St,maxVirtualBounds:Ne.getColOffset(i),scrollOffset:$e,freezeOffset:(et>0?Ne.getColOffset(et):0)-tt},Fe},[Ne.getColIndex,Ne.getColOffset,xe,we,i,C,$e,O]),Ce=s.useRef({}),Le=s.useRef([]),qe=s.useMemo(()=>{let Fe={};const et=(Ze,rt,vt,Et,St)=>{const Mt={vertical:Et?.vertical||!1,horizontal:Et?.horizontal||!1};if(Ze>=oe.length||rt>=Oe.length)return null;const Tt={rowStart:Oe[rt].minIndex,colStart:oe[Ze].minIndex,rowEnd:Oe[rt].maxIndex,colEnd:oe[Ze].maxIndex};if(Tt.rowStart>Tt.rowEnd||Tt.colStart>Tt.colEnd)return null;const en={getColIndex:Xt=>oe[Ze].layout.getColIndex(Xt),getColOffset:Xt=>oe[Ze].layout.getColOffset(Xt),getRowIndex:Xt=>Oe[rt].layout.getRowIndex(Xt),getRowOffset:Xt=>Oe[rt].layout.getRowOffset(Xt)},bn=Object.freeze({left:St?.left??0,top:St?.top??0,right:St?.right??0,bottom:St?.bottom??0}),an=Object.freeze({x:oe[Ze].minBounds,y:Oe[rt].minBounds,width:oe[Ze].maxBounds,height:Oe[rt].maxBounds}),ve=(Xt,Tn)=>J4(en,Xt??Tt,Tn),ut={width:oe[Ze].maxVirtualBounds,height:Oe[rt].maxVirtualBounds},_t={left:oe[Ze].scrollOffset,top:Oe[rt].scrollOffset},sn={left:oe[Ze].freezeOffset,top:Oe[rt].freezeOffset},Jt={width:we,height:ie};let yt=null,qt=null;const Lo=(sn.top+(Et.vertical?_t.top:0))/O,Bo=(sn.left+(Et.horizontal?_t.left:0))/O;return{getStage:()=>le.current??null,getVisibleRangeCoords:()=>Tt,toClipBounds:(Xt,Tn)=>{let mn,jn=0;return Tn===void 0||typeof Tn=="number"?(mn=ve(Tt),jn=Tn):mn=Tn,((hn,Gn,Ie=0)=>{if(hn.x>Gn.width||hn.y>Gn.height)return null;const se={left:hn.x,top:hn.y,bottom:hn.height+hn.y,right:hn.width+hn.x},lt={left:Gn.x+Ie,top:Gn.y+Ie,bottom:Gn.height-2*Ie+Gn.y,right:Gn.width-2*Ie+Gn.x},ft={left:Math.max(se.left,lt.left),top:Math.max(se.top,lt.top),bottom:Math.min(se.bottom,lt.bottom),right:Math.min(se.right,lt.right)},Z={x:ft.left,y:ft.top,width:ft.right-ft.left,height:ft.bottom-ft.top};return Z.height<0||Z.width<0?null:Z})(Xt??{x:0,y:0,width:an.width,height:an.height},mn,jn)},toViewBounds:Xt=>Bo===0&&Lo===0&&O===1?Xt:{x:(Xt.x-Bo)*O,y:(Xt.y-Lo)*O,width:Xt.width*O,height:Xt.height*O},toAbsoluteBounds:Xt=>Bo===0&&Lo===0&&O===1?Xt:{x:Xt.x/O+Bo,y:Xt.y/O+Lo,width:Xt.width/O,height:Xt.height/O},getRelativePointFromClient:(Xt,Tn)=>{const mn=Qe(Xt,Tn);return{x:mn.x-an.x,y:mn.y-an.y}},getLayout:()=>en,getCellCoordsAsRangeCoords:ee,getVisibleColumns:()=>oe[Ze].visibleIndices(),getVisibleRows:()=>Oe[rt].visibleIndices(),getVisibleColumnOffsets:()=>(yt||(yt=Y4(oe[Ze].layout,!0,oe[Ze].visibleIndices(),Tt.colStart,Tt.colEnd)),yt),getVisibleRowOffsets:()=>(qt||(qt=Y4(Oe[rt].layout,!1,Oe[rt].visibleIndices(),Tt.rowStart,Tt.rowEnd)),qt),getTotalRangeCoords:()=>({colStart:oe[Ze].minCoord,colEnd:oe[Ze].maxCoord,rowStart:Oe[rt].minCoord,rowEnd:Oe[rt].maxCoord}),getRangeCoordsBounds:ve,scrollCellCoordsIntoView:(Xt,Tn)=>no(Xt,Tn,vt),getCellCoordsFromClient:(Xt,Tn,mn=!1)=>{const jn=Qe(Xt,Tn);if(!jn)return null;const hn=en.getColIndex(jn.x-an.x),Gn={rowIndex:en.getRowIndex(jn.y-an.y),colIndex:hn};if(mn)return Gn;const Ie=ee(Gn);return{rowIndex:Ie.rowStart,colIndex:Ie.colStart}},getZoom:()=>O,getAnchor:()=>vt,getBounds:()=>an,getInsets:()=>bn,getTotalSize:()=>ut,getViewportSize:()=>Jt,getScrollTopLeft:()=>_t,getFreezeTopLeft:()=>sn,getScrollOrientation:()=>Mt,allViews:()=>Fe}};let tt=Fe[cr]=et(0,0,cr,QC,JC);return tt&&(Fe[cr]=tt),tt=et(0,1,Sa,{horizontal:!0}),tt&&(Fe[Sa]=tt),tt=et(1,0,Ca,{vertical:!0}),tt&&(Fe[Ca]=tt),tt=et(1,1,v1,{}),tt&&(Fe[v1]=tt),Ce.current=null,Fe=Object.freeze(Fe)},[Oe,oe,ee]),pt=Object.keys(qe),ot=oe[0]?.maxVirtualBounds??0,We=Oe[0]?.maxVirtualBounds??0,st=s.useMemo(()=>({left:oe[1]?oe[1].layout.getColOffset(oe[1].maxIndex+1):0,top:Oe[1]?Oe[1].layout.getRowOffset(Oe[1].maxIndex+1):0}),[qe]);s.useEffect(()=>{if(Le.current.length>0){for(let Fe=0;Fe<Le.current.length;Fe++)Le.current[Fe]();Le.current=[]}},[qe]);const Xe=it(()=>({containerWidth:we,containerHeight:ie,totalWidth:ot,totalHeight:We}),[we,ie,Ne]);s.useEffect(()=>{!de.current&&Se.current&&G({top:ze,left:$e,width:we,height:ie,totalWidth:ot,totalHeight:We})},[ze,$e,ot,We]),s.useEffect(()=>{Se.current&&G({top:ze,left:$e,width:we,height:ie,totalWidth:ot,totalHeight:We})},[we,ie]);const Qe=s.useCallback((Fe,et)=>{Zs(typeof Fe=="number"&&typeof et=="number");const tt=le.current?.getBoundingClientRect();return tt?{x:Fe-tt.x,y:et-tt.y}:{x:Fe,y:et}},[]),kt=it(Fe=>qe[Fe]||null,[qe]),Vt=it((Fe,et)=>{if(Object.keys(qe).length===1)return qe[cr];const tt=Qe(Fe,et);if(!tt)return null;const{x:Ze,y:rt}=tt;let vt=null;const Et=t7;for(let St=0;!vt&&St<Et.length;St++){const Mt=qe[Et[St]];Mt&&WC(Ze,rt,Mt.getBounds())&&(vt=Mt)}return vt||(vt=qe[cr]),vt},[qe,ee]),ct=it(()=>qe[cr].getVisibleRangeCoords(),[qe[cr]]),Ut=s.useRef(null),Qt=s.useCallback(()=>{Ut.current!==null&&ko.cancelTimeout(Ut.current),Ut.current=ko.requestTimeout(ln,150)},[]),ln=s.useCallback(()=>{Ut.current=null,ne(Fe=>{const et={...Fe,verticalScrollDirection:null,horizontalScrollDirection:null};return ye.current=et,et})},[]),gn=it(Fe=>{const et=Fe?.left??Fe?.[0],tt=Fe?.top??Fe?.[1],Ze=et!==void 0?Math.min(ot-we,Math.max(oe?.[1]?.scrollOffset??0,et)):ye.current.left,rt=tt!==void 0?Math.min(We-ie,Math.max(Oe?.[1]?.scrollOffset??0,tt)):ye.current.top;if(ye.current.left===Ze&&ye.current.top===rt)return;let vt=null,Et=null;ye.current.left>Ze?vt=On:ye.current.left<Ze&&(vt=Mn),ye.current.top>rt?Et=Pn:ye.current.top<rt&&(Et=An),ko.throttle(()=>{ne(St=>{const Mt={...St,left:Ze,top:rt,horizontalScrollDirection:vt,verticalScrollDirection:Et};return ye.current=Mt,Mt})},17)(),de.current?.top===rt&&de.current?.left===Ze||(de.current={left:Ze,top:rt},W({left:Ze,top:rt}),G({left:Ze,top:rt,width:we,height:ie,totalWidth:ot,totalHeight:We})),Qt()},[ot,We,Oe,oe]);s.useEffect(()=>{de.current||gn({left:$e,top:ze})},[ot,we,We,ie]),s.useLayoutEffect(()=>{de.current={left:V?.left,top:V?.top},gn(de.current)},[V?.left,V?.top]);const En=it(Fe=>{const et=Fe?.left??Fe?.[0],tt=Fe?.top??Fe?.[1],Ze=Fe?.behavior??"auto",rt={left:ye.current.left+(et??0),top:ye.current.top+(tt??0)};Ze&&(rt.behavior=Ze),gn(rt)},[ot,we,We,ie]),Nn=s.useCallback(Fe=>{let et=null;if(Object.keys(qe).length>1){const tt=t7;for(let Ze=0;!et&&Ze<tt.length;Ze++){const rt=qe[tt[Ze]];rt&&Lt.isCellWithinRange(Fe,rt.getVisibleRangeCoords())&&(et=rt)}}return et||(et=qe[cr]),et},[qe]),no=it((Fe,et={inline:"nearest",block:"nearest"},tt=null)=>{const Ze={rowIndex:0,colIndex:0,...Fe};let rt=null;if(tt!==null){if(rt=qe[tt],rt===null)return new Promise((Jt,yt)=>{yt("Invalid view")})}else rt=Nn(Ze);const vt=ee(Ze),Et=rt.getLayout(),St=Et.getColOffset(vt.colStart),Mt=Et.getRowOffset(vt.rowStart),Tt=Et.getColOffset(vt.colEnd+1),en=Et.getRowOffset(vt.rowEnd+1),bn=rt.getBounds(),an=rt.getTotalSize(),ve=rt.getScrollTopLeft(),ut=((Jt,yt,qt=!0)=>(qt=qt===!0?{block:"start",inline:"end"}:qt===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...qt},{left:G4(qt.inline,Jt.x,Jt.x+Jt.width,yt.left,yt.left+yt.width,yt.totalWidth),top:G4(qt.block,Jt.y,Jt.y+Jt.height,yt.top,yt.top+yt.height,yt.totalHeight)}))({x:St+ve.left,y:Mt+ve.top,width:Tt-St,height:en-Mt},{left:ve.left,top:ve.top,width:bn.width,height:bn.height,totalWidth:an.width,totalHeight:an.height},et),_t={...ut};_t.left>$e?_t.left+=20:_t.left<$e&&(_t.left-=0),_t.top>ze?_t.top+=20:_t.top<ze&&(_t.top-=0);const sn=rt.getScrollOrientation();return sn.horizontal&&Fe.colIndex!==void 0||delete _t.left,sn.vertical&&Fe.rowIndex!==void 0||delete _t.top,new Promise((Jt,yt)=>{try{gn(_t),Jt(_t)}catch(qt){yt(qt)}})},[ot,We,qe,ee]),co=it(Fe=>{const et=Fe.shiftKey;Fe.preventDefault();const{deltaX:tt,deltaY:Ze,deltaMode:rt}=Fe;if(J.current||Y?.(Fe)===!1)return;let vt=et?Ze:tt,Et=Ze;const St=et||Math.abs(vt)>Math.abs(Et);rt===1&&(Et*=0),J.current=window.requestAnimationFrame(()=>{J.current=null,En(St?{left:vt}:{top:Et})})},[ot,we,We,ie,Y]),_n=s.useCallback((Fe=null)=>{xt.current=null,Ce.current=null,ke()},[]);s.useLayoutEffect(()=>{_n()},[T]);const zt=Z1(t,()=>({stage:le.current,focus:Re,contains:Me,invalidate:_n,scrollTo:gn,scrollBy:En,scrollCellCoordsIntoView:no,getScrollPosition:be,getDimensions:Xe,getViewport:ct,handleWheel:co,rowCount:r,columnCount:i,getLayout:()=>Ne,getRelativePointFromClient:Qe,getViewFromClient:Vt,getViewFromCellCoords:Nn,getViewFromLocation:kt,onViewChangeOnce:Fe=>{Le.current.push(Fe)}}),[r,i,qe]);s.useEffect(()=>(U&&zt.current?.addEventListener("wheel",co,{passive:!1}),Se.current=!0,de.current=null,()=>{zt.current?.removeEventListener("wheel",co)}),[U]);const Fn=s.useRef([]),qn=(Fe,et)=>{!Fe||!P||(Fn.current=[],et.push((tt=>{const Ze=`view:${tt.getAnchor()}:overlay:${et.length}`,rt=P?.({key:Ze,view:tt},Et=>Fn.current[0]=Et);if(!rt)return null;const vt=tt.getBounds();return a.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${vt.width}px`,height:`${vt.height}px`,overflow:"hidden"},children:rt},`overlay-${tt.getAnchor()}-0`)})(Fe)))},wn=s.useMemo(()=>{const Fe={},et=Object.keys(qe);for(let tt=0;tt<et.length;tt++){const Ze=et[tt],rt=[];qn(qe[Ze],rt),Fe[Ze]={overlays:rt}}return Fe},[ae,P,r,i,Oe,oe]),Cn=(Fe,et,tt,Ze,rt,vt,Et)=>{if(!Fe)return;const St=Fe.getVisibleColumns(),Mt=Fe.getVisibleRows();if(St.length===0||Mt.length===0)return;let Tt=null;if(q)Tt=q(Fe);else{Tt=[];for(let Tn=0;Tn<Mt.length;Tn++)for(let mn=0;mn<St.length;mn++){const jn={rowIndex:Mt[Tn],colIndex:St[mn]};if($?.(jn))continue;const hn={coords:jn,range:ee(jn)};Tt.push(hn)}}const en=Fe.getVisibleColumnOffsets(),bn=Fe.getVisibleRowOffsets(),an=Fe.getScrollTopLeft(),ve=Fe.getFreezeTopLeft(),ut=an.left+ve.left,_t=an.top+ve.top,sn=Math.trunc(ut/Jr),Jt=Math.trunc(_t/Jr),yt={},qt=(Tn,mn,jn,hn,Gn)=>{const Ie=`view:${Tn.getAnchor()}:cell:${Z4(mn.rowIndex,mn.colIndex)}`,se=hn.x,lt=hn.y,ft=Math.trunc((ut+se)/Jr)-sn,Z=Math.trunc((_t+lt)/Jr)-Jt;yt[Z]||(yt[Z]={});let K=yt[Z][ft];K||(K=yt[Z][ft]=[]);let ce=vt?.get(Ie);if(!ce){const fe=(ut+se)%Jr,Pe=(_t+lt)%Jr;ce=T({key:Ie,coords:mn,bounds:hn,zoom:O,range:jn,view:Tn,value:Gn,style:{left:$t.boundPixel(fe),top:$t.boundPixel(Pe),width:$t.boundPixel(hn.width,!0),height:$t.boundPixel(hn.height,!0)}})}Et?.set(Ie,ce),K.push(ce)};for(let Tn=0;Tt&&Tn<Tt.length;Tn++){const mn=Tt[Tn],jn=mn?.coords??mn;if(!jn)continue;const hn=mn?.range??{rowStart:jn.rowIndex,colStart:jn.colIndex,rowEnd:jn.rowIndex,colEnd:jn.colIndex},Gn=Fe.getVisibleRangeCoords();if(!Lt.isRangesIntersect(hn,Gn)&&!Lt.isRangeWithinRange(hn,Gn))continue;const Ie=hn&&!Lt.isSingleCell(hn);if(!Ie&&$?.(jn))continue;const se=jn.rowIndex,lt=jn.colIndex,ft=bn[se],Z=en[lt];let K=null;ft&&Z&&(K={x:Z.offset,y:ft.offset,width:Z.size,height:ft.size});const ce=Z4(hn.rowStart,hn.colStart);if(Ie){if(rt.has(ce))continue;rt.add(ce),hn.rowEnd-hn.rowStart>0&&tt.push(hn),hn.colEnd-hn.colStart>0&&Ze.push(hn)}if(Ie&&(K=J4(Fe.getLayout(),hn)),!K){console.warn("no bounds for cell",ce);continue}const fe=mn?.value;qt(Fe,jn,hn,K,fe)}const Lo=ut%Jr,Bo=_t%Jr,Xt=Object.keys(yt);for(let Tn=0;Tn<Xt.length;Tn++){const mn=yt[Xt[Tn]];if(!mn)continue;const jn=Object.keys(mn);for(let hn=0;hn<jn.length;hn++){const Gn=mn[jn[hn]];if(!Gn)continue;const Ie=parseInt(Xt[Tn]),se=parseInt(jn[hn]),lt=Ie+Jt,ft=se+sn,Z=`view:${Fe.getAnchor()}:segment:${ft}:${lt}`;et.push(a.jsx("div",{className:"cell-container",style:{transform:`translate(${$t.boundPixel(se*Jr-Lo,!0)}px, ${$t.boundPixel(Ie*Jr-Bo,!0)}px)`,willChange:"transform"},children:Gn},Z))}}},fn=s.useMemo(()=>{const Fe=xt.current,et=new Map,tt={},Ze=Object.keys(qe);for(let rt=0;rt<Ze.length;rt++){const vt=Ze[rt],Et=[],St=[],Mt=[];Cn(qe[vt],Mt,Et,St,new Set,Fe,et),tt[vt]={cells:Mt,rangesH:Et,rangesV:St}}return xt.current=et,tt},[ae,r,i,Oe,oe,g,H,w,$,q,ee]),er=(Fe,et,tt,Ze,rt)=>{if(Fe)if(et){const vt=`view:${Fe.getAnchor()}:hl:`,Et=Fe.getVisibleRows();if(!Et||Et.length===0)return;const St=0,Mt=Fe.getBounds().width;let Tt=[];const en=rt.sort(Lt.rowFirstRangeComparator),bn=Fe.getVisibleRangeCoords();for(let an=0;an<Et.length&&Et[an]<=bn.rowEnd;an++){const ve=Et[an];if(ve<bn.rowStart)continue;let ut=!1;for(;en.length>0&&en[0].rowStart<=ve;){const yt=en.shift();yt.rowEnd>ve&&(Tt.push(yt),ut=!0)}ut&&(Tt=Tt.sort(Lt.columnFirstRangeComparator));const _t=Fe.getLayout(),sn=_t.getRowOffset(ve+1);let Jt=St;for(let yt=0;yt<Tt.length+1;yt++){let qt=Jt,Lo=Mt;const Bo=Tt[yt];yt<Tt.length&&(Lo=Math.min(Mt,_t.getColOffset(Bo.colStart)),Jt=Math.min(Mt,_t.getColOffset(Bo.colEnd+1))),Ze.push(s.createElement("path",{d:`M ${$t.boundPixel(qt)} ${$t.boundPixel(sn,!1,tt)} L ${$t.boundPixel(Lo)} ${$t.boundPixel(sn,!1,tt)}`,stroke:m,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x,key:vt+ve+":"+yt}))}for(let yt=Tt.length-1;yt>=0;yt--)Tt[yt].rowEnd<=Et[an+1]&&Tt.splice(yt,1)}}else{const vt=`view:${Fe.getAnchor()}:vl:`,Et=Fe.getVisibleColumns();if(!Et||Et.length===0)return;const St=0,Mt=Fe.getBounds().height;let Tt=[];const en=rt.sort(Lt.columnFirstRangeComparator),bn=Fe.getVisibleRangeCoords();for(let an=0;an<Et.length&&Et[an]<=bn.colEnd;an++){const ve=Et[an];if(ve<bn.colStart)continue;let ut=!1;for(;en.length>0&&en[0].colStart<=ve;){const yt=en.shift();yt.colEnd>ve&&(Tt.push(yt),ut=!0)}ut&&(Tt=Tt.sort(Lt.rowFirstRangeComparator));const _t=Fe.getLayout(),sn=_t.getColOffset(ve+1);let Jt=St;for(let yt=0;yt<Tt.length+1;yt++){let qt=Jt,Lo=Mt;const Bo=Tt[yt];yt<Tt.length&&(Lo=Math.min(Mt,_t.getRowOffset(Bo.rowStart)),Jt=Math.min(Mt,_t.getRowOffset(Bo.rowEnd+1)));let Xt=m;Ze.push(a.jsx("path",{d:`M ${$t.boundPixel(sn,!1,tt)} ${$t.boundPixel(qt)} L ${$t.boundPixel(sn,!1,tt)} ${$t.boundPixel(Lo)}`,stroke:Xt,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y},vt+ve+":"+yt))}for(let yt=Tt.length-1;yt>=0;yt--)Tt[yt].colEnd<=Et[an+1]&&Tt.splice(yt,1)}}},br=Fe=>{if(!fn)return;const et={};for(let tt=0;tt<pt.length;tt++){const Ze=pt[tt],rt=qe[Ze],vt=[];er(rt,Fe,0,vt,Fe?fn[Ze].rangesH:fn[Ze].rangesV);const Et=rt.getRangeCoordsBounds(),St=Math.ceil(Et.width),Mt=Math.ceil(Et.height);et[Ze]=a.jsx("svg",{width:`${St}`,height:`${Mt}`,viewBox:`0 0 ${St} ${Mt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:vt})}return et},wr=s.useMemo(()=>g===!0||g?.horizontal===!0?br(!0):null,[ae,g,Oe,E,C,m,x,r,i,we,ot,fn]),Wo=s.useMemo(()=>g===!0||g?.vertical===!0?br(!1):null,[ae,g,oe,E,C,m,y,r,i,ie,We,fn]),Pr=s.useMemo(()=>st.left===0?null:a.jsx(Bi,{linePoints:[0,0,0,ie+1],bounds:{x:st.left,y:0,width:1,height:ie+1},...k}),[ae,st.left,ie,k]),Uo=s.useMemo(()=>st.top===0?null:a.jsx(Bi,{linePoints:[0,0,we+1,0],bounds:{x:0,y:st.top,width:we+1,height:1},...M}),[ae,st.top,we,M]),vr=s.useMemo(()=>{const Fe=[],et=tt=>{if(!tt||!qe[tt])return;const Ze=qe[tt].getBounds();return a.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:Ze.x,top:Ze.y,width:Ze.width,height:Ze.height,clip:`rect(0, ${Ze.width+1}px, ${Ze.height+1}px, 0)`},className:`view view-${tt}`,children:[wr?.[tt],Wo?.[tt],fn?.[tt].cells]},`view:${tt}`)};for(let tt=0;tt<pt.length;tt++)Fe.push(et(pt[tt]));return a.jsx(a.Fragment,{children:Fe})},[qe,wr,Wo,fn]),Gr=s.useMemo(()=>{if(!t)return;const Fe=(Et,St,Mt,Tt)=>{if(!Tt||Tt.length===0)return;const en=[];for(let bn=0;bn<Tt.length;bn++){const an=Tt[bn];let ve=Et?.get(an);ve!==td&&(ve=an(Mt)??td),St.set(an,ve),ve&&ve!==td&&en.push(ve)}return en},et=(Et,St,Mt)=>{if(!Mt)return;const Tt=Mt.getBounds(),en=Mt.getInsets(),bn=Mt.getAnchor();return a.jsxs("div",{className:ii("view",`view-${bn}`,e7.view),style:{position:"absolute",pointerEvents:"none",left:Tt.x-en.left,top:Tt.y-en.top,width:Tt.width-(en.left+en.right),height:Tt.height-(en.top+en.bottom),clipPath:j?"inset(-2px)":"inset(0px)"},children:[Fe(Et,St,Mt,S),wn?.[bn].overlays]},`view:${bn}`)},tt=Ce.current,Ze={},rt=[],vt=Object.keys(qe);for(let Et=0;Et<vt.length;Et++){const St=vt[Et],Mt=tt?.[St],Tt=Ze[St]=new Map;rt.push(et(Mt,Tt,qe[St]))}return Ce.current=Ze,rt},[ae,qe,j,S]),Sr=s.useMemo(()=>{const{style:Fe,...et}=R??{};return a.jsx("div",{style:{width:we,height:ie,...Fe},className:"sheetxl-stage",tabIndex:0,ref:le,...et,...z,children:A?A(vr):vr})},[we,ie,vr,R,A]),Do=s.useRef(!1);return s.useEffect(()=>{!Do.current&&fn&&(Do.current=!0,te?.(zt.current))},[fn]),a.jsxs("div",{className:ii("sheetxl-grid",e7["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:we,maxHeight:ie,width:we,height:ie,...H},ref:zt,children:[Sr,a.jsxs("div",{className:ii("sheetxl-overlays"),ref:me,...I,children:[Gr,Pr,Uo]})]})}));I9.displayName="BaseGrid";const K1=s.memo(s.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...l}=e,[d,{width:c,height:u}]=j9();return a.jsx("div",{className:i,style:{...r},children:a.jsx("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:d,children:a.jsx(I9,{ref:t,width:n??c,height:o??u,...l})})})}));K1.displayName="Grid";const ek=s.memo(s.forwardRef((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:d,onScrollViewport:c,style:u={},className:p,onScroll:f,...h}=e,[g,m]=s.useState(null),x=s.useRef(null),y=s.useRef(null);Zs(!d),s.useImperativeHandle(t,()=>y.current&&x.current?Object.assign(y.current,x.current):null);const w=s.useCallback(b=>{y.current?.scrollTo(b),c?.(b)},[]);return a.jsx(b9,{className:p,style:u,ref:x,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:l,viewport:g,onScrollViewport:w,children:a.jsx(K1,{style:{width:"100%",height:"100%"},...h,onViewportChange:b=>m(b),ref:y})})}));ek.displayName="ScrollableGrid";const n7=()=>!1,D9=s.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=S=>`${S}`,headerStyle:l,headerStyleSelect:d=l,headerStyleSelectAll:c=d,headerStyleHover:u=c,verticalPadding:p=0,horizontalPadding:f=0,isSelected:h=n7,isSelectedAll:g=n7,coords:m,bounds:x,range:y,orientation:w,view:b,style:C,...E}=e,k=r/100,M=s.useRef(null),[T,F]=s.useState(!1),_=h?.(t)||!1,P=g?.(t)?c:_?d:l;let v=P;if(T){let S=u;typeof u=="function"&&(S=u(P)),v=ko.mergeContentful(P,S)}return a.jsx("div",{ref:M,style:{background:v.fill,color:v.text?.fill,fontFamily:v.text?.fontFamily??l.text?.fontFamily,fontSize:96*(v.text?.fontSize??11)/72*k,fontStyle:v.text?.fontStyle,fontWeight:v.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${k}px`,...C,left:C.left-(w===rr?1:0),top:C.top-(w===m0?1:0),width:C.width+1,height:C.height+1,overflow:"hidden"},...E,onMouseMove:S=>{$t.detectIt().primaryInput!=="touch"&&S.buttons===0&&F(!0)},onMouseOut:S=>{F(!1)},children:i(t)})});D9.displayName="HeaderRenderer";const L9="ew-resize",O9="ns-resize",tk=s.memo(s.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:l,disabled:d=!1,disabledResize:c=!1,isNextHidden:u,isHidden:p,isSelected:f,isSelectedAll:h,showTouchDivider:g,headerStyle:m,headerStyleSelect:x,headerStyleSelectAll:y,headerStyleHover:w,bounds:b,onPointerDown:C,onAutoFit:E,...k}=e,M=n===rr;let T=m;f&&x&&(T=x),h&&y&&(T=y);const F=$t.detectIt().primaryInput==="touch";let _=M?14:8,P=_/2,v=0;u&&(v=-2),p&&(v=2),p&&(_=_/2+v,P=2*v);let S=T.dividerStrokeFill??T.strokeFill;return!(f||h)&&v===0&&(S=`linear-gradient(${M?180:90}deg, ${T.fill}, ${S} 55%, ${S} 100%)`),a.jsxs("div",{className:ii("header-divider",{disabled:d},i,`index-${r}`),ref:t,onPointerDown:F?void 0:C,onDoubleClick:F?void 0:()=>E?.(),style:{top:(M?0:-_/2+(v-1))+"px",left:(M?-_/2+(v-1):0)+"px",width:M?_:"calc(100% + 1px)",height:M?"calc(100% + 1px)":_,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:d||c||F?void 0:M?L9:O9,...l},...k,children:[a.jsx("div",{style:{position:"relative",top:`${M?0:P}px`,left:`${M?P:0}px`,width:M?1:"100%",height:M?"100%":1,background:S},onDoubleClick:()=>E?.()}),g&&F?a.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:M?"-6px":"2px",bottom:M?"2px":"-9px",height:"24px",width:M?"24px":"18px",maxHeight:M?"calc(100% - 4px)":void 0,maxWidth:M?void 0:"calc(100% - 4px)",background:T.fill,border:`${y.edgeStrokeFill} solid 1px`,boxShadow:`0.5px 0.5px 0px 0px ${m.text.fill}`,display:"flex",alignItems:"center",justifyContent:"center"},onPointerDown:C,children:a.jsx("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(x.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:M?void 0:"rotate(90deg)"}})}):null]})})),nk=(e,t)=>a.jsx(tk,{...e,ref:t}),ok=s.memo(s.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:l=!1,resizeThreshold:d=1,dividerRenderer:c=nk,onDividerMouseDown:u,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g,onDividerAutoFit:m,onPointerDown:x,...y}=e,w=it(x,[x]),b=it(m,[m]),C=n===rr;let E=C?o.getVisibleColumns():o.getVisibleRows(),k=null;E.length>0&&(C?k=o.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:E[0],colEnd:E[E.length-1]}):o.getRangeCoordsBounds({rowStart:E[0],rowEnd:E[E.length-1],colStart:0,colEnd:0}),k=o.toClipBounds(k,qo));const M=s.useRef(null),[T,F]=s.useState(null),_=(D,L)=>C?D.clientX-L.clientX:D.clientY-L.clientY,P=o.getLayout(),v=C?P.getColOffset(r+1):P.getRowOffset(r+1),S=Ui({processTouch:!0,onPointerDown:D=>{if(w?.(D),!i&&!l){const L=C?P.getColOffset(r):P.getRowOffset(r),$=v-L;M.current={isResizing:!1,startSize:$,index:r,view:o,orientation:n,onDividerMouseDown:u,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g},F(M.current),u?.(r,$)}D.stopPropagation(),D.preventDefault()},onPointerUp:(D,L,$)=>{if(!M.current)return;M.current.isResizing&&M.current.onDividerResizeEnd?.(M.current.index,Math.max(0,M.current.startSize+_(D,$)),M.current.startSize);const q=M.current;M.current=null,F(M.current),q.onDividerMouseUp?.(q.index)},onPointerMoveOrWait:(D,L,$)=>{if(!M.current)return;const q=_(D,$);M.current.isResizing?M.current.onDividerResize?.(M.current.index,Math.max(0,M.current.startSize+q),M.current.startSize):Math.abs(q)>Math.max(1,d)&&(M.current={...M.current,isResizing:!0},F(M.current),M.current.onDividerResizeStart?.(M.current.index,Math.max(0,M.current.startSize+q))),D.stopPropagation(),D.preventDefault()}}),I=it(()=>{b?.(r)},[r]);if(!k)return;const j=c({bounds:k,orientation:n,view:o,index:r,disabled:i,disabledResize:l,onAutoFit:I,onPointerDown:S,...y},t);if(!j)return;const{getPortalContainer:R}=w9();let A=null;return T&&T.isResizing&&T.index===r&&(A=wo.createPortal(a.jsx("div",{style:{position:"absolute",cursor:C?L9:O9,left:0,top:0,width:"100%",height:"100%"}}),R(),"divider:"+r)),a.jsxs(a.Fragment,{children:[A,a.jsx("div",{className:ii("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${C?k.y:v}px`,left:`${C?v:k.x}px`,width:(C?0:k.width-1)+"px",height:(C?k.height-1:0)+"px",display:"flex"},tabIndex:-1,children:j})]})}));let rk=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=t.paintableText?.wrap==="wrap"?"break-spaces":"pre",n.appendChild(r);const i=e.split(`
56
- `);for(let d=0;d<i.length;d++){let c=document.createElement("span");r.appendChild(c),c.textContent=i[d]}i.length!==0&&i[i.length-1].length!==0||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 ik=((e=void 0)=>Object.freeze({clean:e,dirty:void 0,editMode:!1}))();s.memo(s.forwardRef((e,t)=>{const{editState:n=ik,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:l,onCancelEdit:d,onDoneEdit:c,containerBounds:u,setNaturalDimensions:p,onNavigate:f,textProperties:h,style:g,autoFocus:m,...x}=e,y=s.useRef(null),{width:w=0}=u??{},[b,C]=s.useState(()=>n);s.useEffect(()=>{C(n)},[n]);const E=h?.align||"left",k=h?.vAlign||"middle",M=h?.fill||"#040404",T=h?.wrap||"wrap",F=h?.fontFamily||"Calibri",_=h?.fontSize||11,P=h?.fontWeight||400,v=h?.fontStyle||"normal",S=b.dirty??b.clean??"";let I=2;const j=96*_/72,R=1.2*j;k==="right"&&(I+=1);const A=s.useMemo(()=>new rk().naturalDimensions(S,{maxWidth:T==="wrap"?w-I:void 0,lineHeight:`${R}px`,paintableText:{fontStyle:v,wrap:T,letterSpacing:-.25}}),[S,T,I,j,F,P,v,p,w]),D=s.useCallback(()=>A.maxLineHeight?A.maxLineHeight+"px":"1.2",[A]),[L,$]=s.useState(D);s.useLayoutEffect(()=>{$(D())},[u,A]),s.useLayoutEffect(()=>{p?.({width:T==="wrap"?void 0:A.width+I,height:A.height})},[A,p]);const q=it(i,[i]),O=it(G=>{if(b.dirty===G)return;const Q={...b};Q.dirty=G,y.current,C(Q),q?.(Q)},[b]),U=it(G=>{if(b.editMode===G)return;const Q={...b};Q.editMode=G,C(Q),q?.(Q)},[b]),X=it(()=>{try{return l?.(b),c?.(),!0}catch{return!1}},[l,b]),ee=it(()=>{C(n),d?.(),c?.()},[d,n]),V=it(G=>{if(!y.current)return;if(G.isDefaultPrevented(),!(G.isTrusted||G.nativeEvent.ctrlKey||G.nativeEvent.metaKey||G.nativeEvent.altKey||G.nativeEvent.isComposing)&&pu.indexOf(G.nativeEvent.key)!==-1){const Y={...b};return Y.dirty=G.nativeEvent.key==="Backspace"?"":(Y.dirty??"")+G.key,C(Y),q?.(Y),void G.preventDefault()}const Q=G.nativeEvent.shiftKey;if(G.which===27)return G.preventDefault(),void ee();if(G.which===113)return U(!0),void G.preventDefault();if(G.which===13&&(G.preventDefault(),X()&&f?.(Q?Pn:An)),G.which===9)return G.preventDefault(),void(X()&&f?.(Q?On:Mn));if(!b.editMode){let Y=null;switch(G.which){case 37:Y=On;break;case 39:Y=Mn;break;case 38:Y=Pn;break;case 40:Y=An}if(Y)return void X()}},[b,f]),[H,z]=s.useState(!m);s.useEffect(()=>{z(!1)},[]);const W=Z1(t,()=>({startEdit(G){let Q=G?.initialSelection;if(!Q){const te=y.current.value.length??0;Q={start:te,end:te,direction:"forward"}}y.current?.setSelectionRange(Q.start,Q.end,Q.direction);const Y={...n,editMode:G?.editMode??!1};G?.text!==void 0&&(Y.dirty=G.text),Y.editMode===n.editMode&&Y.dirty===n.dirty||(C(Y),q?.(Y))},submitEdit:()=>X(),cancelEdit(){ee()},autoFocus(){y.current?.focus()},getLineHeight:()=>A?.maxLineHeight??R,dispatchEvent:G=>y.current.dispatchEvent(G)}),[n,r]);return a.jsx("div",{ref:W,...x,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:A.height,maxWidth:"100%",maxHeight:"100%",...g},children:a.jsx("textarea",{spellCheck:"false",ref:y,value:S,autoFocus:!1,disabled:H,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${j}px`,fontFamily:`${F}`,fontWeight:`${P}`,fontStyle:`${v}`,padding:"0px",marginRight:E==="right"?"3px":"0px",marginLeft:E==="left"?"2px":"0px",lineHeight:L,height:A.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:E,background:"transparent",color:M,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:T==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:G=>{O(G.target.value)},onDoubleClick:G=>{G.isTrusted},onMouseDown:G=>{U(!0)},onKeyDown:V})})})),s.memo(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:l,style:d,...c}=e;return a.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:d?.fontSize||1056/72,...d},...c,children:t})}),function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();const _a=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:_a},Symbol.toStringTag,{value:"Module"}));const P9=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),g2=(e,t=!0,n=P9)=>{if(!n||n.length===0)return e;if(e===void 0)return n[0];if(t&&e>=n[n.length-1]||!t&&e<=n[0])return e;let o=Nt.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},lk=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:P9,findNextFontSize:g2},Symbol.toStringTag,{value:"Module"})),o7=s.memo(e=>{const{anchorLocation:t=so.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:l,fill:d,pathProps:c,style:u,...p}=e,f=r,h=i;let g="red",m=[],x=[];return t===so.TopLeft?(g=l?"rgb(255, 198, 246)":"green",m.push(h),x.push(h),m.push(h+f),x.push(h),m.push(h),x.push(h+f)):t===so.TopRight?(g=l?"rgb(0, 255, 255)":"red",m.push(n-h),x.push(h),m.push(n-(h+f)),x.push(h),m.push(n-h),x.push(h+f)):t===so.BottomRight?(g=l?"rgb(236, 252, 211)":"purple",m.push(n-h),x.push(o-h),m.push(n-(h+f)),x.push(o-h),m.push(n-h),x.push(o-(h+f))):t===so.BottomLeft&&(g=l?"rgb(255, 236, 183)":"blue",m.push(h),x.push(o-h),m.push(h+f),x.push(o-h),m.push(h),x.push(o-(h+f))),a.jsx("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...u},...p,children:a.jsx("path",{d:`M ${m[0]} ${x[0]} L ${m[1]} ${x[1]} L ${m[2]} ${x[2]} L ${m[0]} ${x[0]} Z`,fill:d??g,...c})})}),ak=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:l,style:d,...c}=e,u=s.useMemo(()=>{let g=null;const m=i.getSortField();m&&(g=m.reverse);const x=i.getField(),y=x&&x.criteria&&x.criteria.length>0;return g===!0?y?"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":g===!1?y?"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":y?"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]),[p,f]=s.useState(!1),h=Math.min(Math.min(18,t.height-8),t.width);return a.jsx("div",{style:{width:`${h}px`,height:`${h}px`,right:"0px",boxShadow:`0px 0px 0px 0.5px var(${p&&!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",...d},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onMouseDown:g=>{l?.(g,i)},...c,children:a.jsx("svg",{width:""+15*o,height:""+15*o,viewBox:"0 0 15 15",style:{fill:`var(${p&&!r?"--sxl-app-color-primary-dark":"--sxl-app-color-button-text"}, grey)`,opacity:r?.6:1},children:a.jsx("path",{d:u})})})},sk=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:l,zoom:d=1,view:c,bodyStyle:u,normalStyle:p,showFormulas:f,showZeros:h,docTheme:g,onLinkMouseDown:m,onFilterButtonMouseDown:x,filterButtonProps:y,createFilterButton:w=ak,...b}=e,C=o.height/d,E=o.width/d,k=t,M=k.getValue(),T=t.getStyle(),F=u?.darkMode??!1;let _,P;const v=M&&M.isFormulaError,S=v&&M instanceof B.FormulaError.Parse;let I,j=f||S;if(j)if(k.isSpillOverflow())P="";else{const Ye=k.getFormulaText();Ye?P=Ye:_=k.getNumberFormat(B.NumberFormat.Type.General)}else _=k.getNumberFormat();j||(I=k.getTextOverflow());const R=I?I.colBounds.width+I.leftOffset+I.rightOffset:E,A=I?I.anchorBounds.x-I.leftOffset:0,D=I?I.anchorBounds.width:E,L=I?I.anchorBounds.x:0;let $,q=k.getRenderHorizontalAlignment();_&&($=_?.formattedRuns,P=$?.runs[0]?.text??_.displayText);const O=k.getCalcStatus()===B.ICell.CalcStatus.Pending;let U=null,X=T.getFill().toCSS(F,o),ee=0,V=0;if(!T.getBorder().isEmpty()){const Ye=T.getBorder().getRight();!Ye.isNone()&&B.IBorder.BuiltInDefinitions.get(Ye.getStyle()).width>1&&(ee=1);const re=T.getBorder().getBottom();!re.isNone()&&B.IBorder.BuiltInDefinitions.get(re.getStyle()).width>1&&(V=1)}let H=null;if(E!==D||ee||V||typeof X?.backgroundPosition=="number"){const{backgroundPosition:Ye,...re}=X,Ue=Ye??0,xe=c?.getScrollTopLeft(),we=Ue?-(o.x+(xe.left??0))%Ue:0,ie=Ue?-(o.y+(xe.top??0))%Ue:0;(Ye!==void 0||ee||V||E!==D)&&(Object.keys(re).length===1&&re.background==="none"||(X=null,H=a.jsx("div",{className:"fill",style:{marginLeft:`${we}px`,marginTop:`${ie}px`,left:L*d,width:pn.boundPixel(D*d-we+1+ee),height:pn.boundPixel(o.height-ie+1+V),...re}},"background")))}let z=null;const W=k.getComments(),G=k.getWarnings(),Q=k.getErrors();if(W||v||Q.length>0||G.length>0){const Ye={size:7*d,darkMode:F,cellWidth:D*d+2,cellHeight:C*d+2,style:{top:-1,left:L*d-1}};z=z??[],(G.length>0||Q.length>0||v)&&z.push(a.jsx(o7,{anchorLocation:so.TopLeft,...Ye},`indicator-${z.length}`)),W&&z.push(a.jsx(o7,{anchorLocation:so.TopRight,...Ye},`indicator-${z.length}`))}const Y=T.getFont();let te=_?.conditionalColor;const le=T.getAlignment(),me=le.getHorizontal()===B.ITextFrame.HorizontalAlignment.Fill,J=le.getHorizontal()===B.ITextFrame.HorizontalAlignment.CenterContinuous||me,ae=J||j?0:le.getRotation(),ke=k.getInsets(),De=ke.top+ke.bottom;let ne=ke.left,de=ke.right;const ye={...i,left:i.left-1,top:i.top-1,width:i.width+1+ee,height:i.height+1+V},ze=k.getColumnFilter(),$e=ze&&!ze?.hasHiddenButton();let gt=null;O&&(gt=a.jsxs("div",{className:"slider",children:[a.jsx("div",{className:"line"}),a.jsx("div",{className:"subline inc"})]},"pending"));const bt=!(O||$e||H||r||z||$?.runs.length>1||I||ae%360!=0);X?.background==="none"&&(X=null);let Se=J||!(!I||!(I.rightIndex>0||I.leftIndex>0||I.colSpan>1));if(!Se){const Ye=k.getSpans();(Ye.width>1||Ye.height>1)&&(Se=!0)}const ht={...X,...ye,pointerEvents:m?"auto":void 0};if(!Nt.isEmpty(P)||!Nt.isEmpty(_?.repeatPlaceholder)){const Ye=_?.canWrap??!1;let re=null,Ue=null,xe=null,we=[],ie=!0;h||j||M!==0||(ie=!1);const Re=k.getTextFrame(j);if(ie&&Re){let Me=R-1-(ne+de);if(ae){re=Re.layout().bounds;const We={x:0,y:0,width:R-1,height:C};if($){let st=$.width;if(_.repeatPlaceholder||_.repeatChars.length>0){const Xe=B.GeomUtils.boundsToPoints(We),Qe=B.GeomUtils.rotatePoints(Xe,-ae);st=B.GeomUtils.minBoundingRect(Qe).width}re={...re,width:st}}xe=B.GeomUtils.clipToOuterRect({...re,width:re.width+1+ne+de},We,ae),Me=xe.width-1-(ne+de)+.01}let be=null;Ye&&(be={width:Me});let Oe=null,oe=_?.repeatPlaceholder;const Ce=Re.layout(be);if(re=Ce.bounds,j?re={...re,width:0}:$&&(re={...re,width:_.repeatPlaceholder||_.repeatChars.length>0?Me:$.width}),ae&&Ye){let We=null;Ce.visitLines({visitTextLine:(st,Xe)=>{let Qe=st.bounds;const kt=B.GeomUtils.boundsToPoints(Qe),Vt=B.GeomUtils.rotatePoints(kt,ae),ct=B.GeomUtils.minBoundingRect(Vt);Qe={...Qe,x:(ct.width-Qe.width)/2,y:(ct.height-Qe.height)/2},We=We?B.GeomUtils.unionBounds(We,Qe):Qe}}),re={...We,width:We.width+ne+de}}if(!oe&&k.getType()!==B.ScalarType.String&&Math.floor(re.width)>Me){if(T.getNumberFormat()==="General"&&k.getType()===B.ScalarType.Number){const We=T.measureText("0"),st=Math.floor(Me/We.width),Xe=M,Qe=Nt.splitNumber(Xe),kt=Math.min(10,st-(Math.max(1,Qe.ipLength)+1)-(Xe<0?1:0));if(kt>=-1){const Vt=`0${kt>0?".":""}${"#".repeat(Math.max(0,kt))}`;Oe=k.getNumberFormat(Vt).displayText,Oe==="0"&&Xe<0&&(Oe="-0")}else if(Math.abs(Xe)>=Math.pow(10,5)||Math.abs(Xe)<=Math.pow(10,-5)){const Vt=st-5-(Xe<0?1:0);if(Vt>=0){const ct=`0.${"0".repeat(Math.max(0,Vt-1))}E+00`;Oe=k.getNumberFormat(ct).displayText}}}Oe||(oe="#")}if(!oe&&$?.lastRepeatIndex>=0&&$?.width>Me&&(oe="#"),oe&&Me>0){const We=T.measureText(oe),st=Math.floor((Me||1)/(We?.width||1));Oe=st>0?oe.repeat(st):""}if(j&&(q=B.ITextFrame.HorizontalAlignment.Left),Oe){const We=T.measureText(Oe).width;We&&(re={...re,width:We})}if(Ue={...re,width:re.width+ne+de,height:re.height},ae&&!Ye){const We=B.GeomUtils.boundsToPoints(Ue),st=B.GeomUtils.rotatePoints(We,ae),Xe=B.GeomUtils.minBoundingRect(st);Ue.width=Xe.width,Ue.height=Xe.height}q===B.ITextFrame.HorizontalAlignment.Center||q===B.ITextFrame.HorizontalAlignment.CenterContinuous?Ue.x=(R-Ue.width)/2:q===B.ITextFrame.HorizontalAlignment.Right?Ue.x=R-Ue.width-.5:Ue.x=.5,le.getVertical()===B.ITextFrame.VerticalAlignment.Center?Ue.y=(C-Ue.height)/2:le.getVertical()===B.ITextFrame.VerticalAlignment.Bottom?Ue.y=C-Ue.height-De:Ue.y=De;const Le=bt?{...b}:void 0,qe={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:ae?`rotate(${ae}deg)`:void 0,cursor:m?"pointer":void 0,pointerEvents:m?"auto":void 0,zIndex:Se?1:void 0,...X},onMouseDown:m,onDoubleClick:m?We=>{We.stopPropagation(),We.preventDefault()}:null,...Le};S&&(qe.style.textDecorationStyle="wavy",qe.style.textDecorationColor=F?"rgb(0, 255, 255)":"red",qe.style.textDecorationLine="underline");const pt=Y.getSize(),ot=(We,st,Xe,Qe,kt,Vt,ct,Ut=null)=>{let Qt=pt*d,ln=Xe,gn=ct?.runs?ct.runs:[{type:B.NumberFormat.ParseRunType.Text,text:We,width:T.measureText(We,Qt).width}];ct&&ct?.width!==re.width&&(re={...re,width:ct?.width});let En=ne;if(ct?.lastRepeatIndex>=0&&Me>ct?.width){const _n=ct.runs[ct.lastRepeatIndex];if(_n){const zt=[...gn],Fn=Math.max(0,Me-1-ct.width);let qn=0,wn="";if(Fn>0){const Cn=Math.floor(Fn/_n.width);wn=Cn>0?_n.text.repeat(Cn):"",qn=Fn}zt[ct.lastRepeatIndex]={type:B.NumberFormat.ParseRunType.Repeat,text:wn,width:qn},gn=zt,re={...re,width:ct.width+qn}}}const Nn=(_n,zt,Fn,qn,wn,Cn,fn,er,br,wr=null)=>{let Wo,Pr=ln.width;kt===B.ITextFrame.HorizontalAlignment.Justify?(Pr=wn,Vt||(Wo="justify")):kt===B.ITextFrame.HorizontalAlignment.Distributed&&(Pr=wn,Wo=Vt||_n.text.split(" ").length-1==0?"center":"justify");const{style:Uo,className:vr,...Gr}=wr;let Sr=_n.text;if(kt===B.ITextFrame.HorizontalAlignment.Fill&&_?.repeatChars.length===0){const St=Math.max(1,Math.floor((ln?.width??0)/(fn?.width??1)));Sr=Sr.repeat(St)}let Do=ln.height;const Fe=Y.getVerticalAlignment(),et=Fe===B.IFont.VerticalAlignment.Sub,tt=Fe===B.IFont.VerticalAlignment.Super;if(et||tt){const St=Y.getSuperSubScale();Qt*=St,Do*=St}const Ze={textAlign:Wo,textAlignLast:Wo,background:void 0,...Uo,...Y.toCSS(F,d,!0),fontSize:Qt*B.IFont.getDeviceScale()};te&&(Ze.color=te.toCSS(F));const rt=En+zt;let vt=ke.top+ln.y+0;if(et&&(vt+=br-Qt),Cn){const St=(fn.x+rt)*d+1,Mt=(fn.y+vt)*d+1;Mt<0?Ze.marginTop=Mt:Ze.paddingTop=Mt,St<0?(Ze.width=(Uo?.width??0)-St,Ze.left=(Uo?.left??0)+St):Ze.paddingLeft=St,Ze.paddingRight=Math.max(0,(Uo?.width??0)-Pr*d-St),Ze.paddingBottom=Math.max(0,(Uo?.height??0)-ln.height*d-Mt),Ze.height=(Uo?.height??0)+(Mt<0?-Mt:0),(Mt<0||St<0)&&(Ze.clipPath=`inset(${Mt<0?-Mt:0}px 0px 0px ${St<0?1-St:0}px)`)}else if(Ze.left=(fn.x+rt)*d+1,Ze.top=(fn.y+vt)*d+1,Ze.width=fn.width*d,Ze.height=fn.height*d,ae&&!Ye){Ze.left=(fn.x+zt)*d+1,Ze.top=(fn.y+(ln.y+0))*d+1;const St=B.GeomUtils.centerPoint({x:En+zt,y:0,width:_n.width,height:ln.height}),Mt=B.GeomUtils.centerPoint({x:En,y:0,width:wn,height:ln.height}),Tt=B.GeomUtils.rotatePoints([St],ae,Mt),en={x:Tt[0].x-St.x,y:Tt[0].y-St.y};Ze.left=Ze.left+en.x*d,Ze.top=Ze.top+en.y*d;const bn={...ln,x:En,y:ke.top,width:ln.width+(ne+de)},an=B.GeomUtils.boundsToPoints(bn),ve=B.GeomUtils.rotatePoints(an,ae),ut=B.GeomUtils.minBoundingRect(ve);bn.width=ut.width,bn.height=ut.height;const _t=B.GeomUtils.centerPoint(bn),sn={x:_t.x-Mt.x,y:_t.y-Mt.y};Ze.left=Ze.left+sn.x*d,Ze.top=Ze.top+sn.y*d}Ze.lineHeight=Do*d+"px";const Et=bt?void 0:"text-line";we.push(a.jsx("div",{className:vr?`${vr} ${Et}`:Et,style:Ze,...Gr,children:Sr},`text-${ln.y}-${qn}-${Fn}`))};if(le.getOverflow()===B.ITextFrame.Overflow.Shrink&&Me>0){let _n=re?.width??0,zt=0;for(;_n>1&&_n>Me&&Qt>2&&zt<100;)Qt*=Me/_n,_n=T.measureText(We,Qt).width,zt++;re={...re,width:_n}}let no=ln.x;kt===B.ITextFrame.HorizontalAlignment.Right?no+=re.width-ln.width:kt!==B.ITextFrame.HorizontalAlignment.Center&&kt!==B.ITextFrame.HorizontalAlignment.CenterContinuous||(no+=(re.width-ln.width)/2),ct?.lastRepeatIndex>=0&&(no=ln.x);const co=gn.length;for(let _n=0;_n<co;_n++){const zt=gn[_n];(zt.type===B.NumberFormat.ParseRunType.Text||zt.type===B.NumberFormat.ParseRunType.Repeat)&&(zt.type,B.NumberFormat.ParseRunType.Repeat,Nn(zt,no,_n,st,kt===B.ITextFrame.HorizontalAlignment.Justify||kt===B.ITextFrame.HorizontalAlignment.Distributed||ct?.lastRepeatIndex>=0?Me:ln.width,bt,{x:Ue.x+A,y:Ue.y,width:zt.width,height:re.height},0,Qe,Ut)),no+=zt.width}};Oe?ot(Oe,0,{x:0,y:0,...re},Ce.lines[0].baseline,q,!0,null,qe):Ce.visitLines({visitTextLine:(We,st,Xe)=>{const Qe=We.runs[0].text.replace(/\s+$/,""),kt=st===Xe-1;let Vt=q===B.ITextFrame.HorizontalAlignment.Justify&&(kt||We.runs[0].text.endsWith(`
57
- `))?B.ITextFrame.HorizontalAlignment.Left:q,ct=0;st>0&&(le.getVertical()===B.ITextFrame.VerticalAlignment.Distributed||le.getVertical()===B.ITextFrame.VerticalAlignment.Justify)&&(ct=Math.max(0,(C-(De+3)-We.bounds.height*Xe)/(Xe-1)*st)),le.getVertical()===B.ITextFrame.VerticalAlignment.Distributed&&ae&&ae%90==0&&ae%180!=0&&(Vt=B.ITextFrame.HorizontalAlignment.Distributed),Vt!==B.ITextFrame.HorizontalAlignment.Justify&&Vt!==B.ITextFrame.HorizontalAlignment.Distributed&&Vt!==B.ITextFrame.HorizontalAlignment.Fill||(re={...re,width:Me});const Ut={...We.bounds,y:We.bounds.y+ct+0,width:me||_&&(_.repeatChars.length>0||_.spacingChars.length>0)?re.width:We.bounds.width};ot(Qe,st,Ut,Re.lines[0].baseline,Vt,kt,Xe===1?$:null,bt&&st>0?{...qe,style:{...qe.style,background:void 0}}:qe)}})}we.length>0&&(U=we)}if(bt)return U&&U.length>0?U:a.jsx("div",{style:ht,...b});let xt=m?"auto":ye.pointerEvents,Ne=null;if($e){const Ye={x:L*d-1,y:-1,width:D*d+1,height:C*d+1};xt="auto",Ne=w({renderBounds:Ye,darkMode:F,className:"filter-button",disabled:!k.isEditAllowed(),zoom:d,filter:k.getColumnFilter(),onFilterButtonMouseDown:x,...y}),Ne&&(Ne=a.jsx("div",{style:{...Ye,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:re=>{re.stopPropagation(),re.preventDefault()},children:Ne},"filterButton"))}O&&!U&&(U=a.jsx("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:"..."},"pending-ellipsis"));const wt=[H,U,r,z,gt,Ne];return a.jsx("div",{style:{...X,...ye,pointerEvents:xt},...b,children:wt})},r7={text:"",placeholder:""},i7=(e,t)=>{if(!e.clean().getStyle().getNumberFormat().endsWith("%"))return!1;const n=t??e.dirty??"";return n.length===0||n.endsWith("%")&&!isNaN(parseFloat(n.substring(0,n.length-1)))},ck=Object.freeze([Wt.Delete,Wt.Home,Wt.End]),A9=s.memo(s.forwardRef((e,t)=>{const{editState:n,onStartEdit:o,onChangeEdit:r,onSubmitEdit:i,onCancelEdit:l,onDoneEdit:d,defaultTextStyle:c,useRichStyling:u=!0,bodyStyle:p,activeCoords:f,sheet:h,commands:g,containerBounds:m,setNaturalDimensions:x,onFocus:y,disabled:w,style:b,zoom:C=1,linesVisible:E,autoFocus:k=!1,...M}=e,{height:T=0,width:F=0}=m??{},_=p?.darkMode??!1,P=s.useRef(null),[v,S]=s.useState(!1),[I,j]=s.useState(null),[R,A]=s.useState(()=>n);s.useEffect(()=>{V.current=!1,A(n)},[n]);const D=s.useMemo(()=>{const re=R.clean();let Ue=re.getStyle();u||(Ue=Ue.createTemporaryStyle({font:{size:c?.fontSize}}));const xe=re.getFormula(),we=Ue.getAlignment(),ie=xe?B.ITextFrame.HorizontalAlignment.Left:we.getHorizontal(),Re=we.getVertical(),Me=we.getOverflow()===B.ITextFrame.Overflow.Wrap||re.getType()===B.ScalarType.String&&(ie===B.ITextFrame.HorizontalAlignment.Justify||ie===B.ITextFrame.HorizontalAlignment.Distributed||Re===B.ITextFrame.VerticalAlignment.Justify||Re===B.ITextFrame.VerticalAlignment.Distributed),be=(Ce=>{if(!Ce)return r7;const Le=Ce.clean();if(!Le)return r7;let qe=Le.getStyle()?.getQuotePrefix();if(Ce.dirty===void 0||Ce.dirty===null){let pt="",ot=Le.getFormulaText();ot&&(pt=ot,qe=!1),pt||(pt=Le.toTextUnformatted(!0)??"");let We="";if(!Ce.editMode&&Le.isSpillOverflow()){const st=Le.getSpill();if(st){const Xe=st.getCell(),Qe=Xe.getFormulaText();Xe.isEqual(Le)||(We=Qe)}}return qe&&(pt="'"+pt),{text:pt,placeholder:We}}return{text:Ce.dirty??"",placeholder:""}})(R),Oe=be.text,oe=B.ITextFrame.toCSSHorizontalTextAlign(u&&!xe?R.clean()?.getRenderHorizontalAlignment():B.ITextFrame.HorizontalAlignment.Left);return{style:Ue,isWrapped:Me,textValue:Oe,formula:xe,frameVertAlign:Re,placeholder:be.placeholder,insets:u?re.getInsets():da.EmptyRect,textAlign:oe}},[R,c,_,C,u]),L=s.useRef(null),$=jo(t,()=>({startEdit:re=>{P.current=re?.initialSelection;const Ue={...n,editMode:re?.editMode??!1};re?.text!==void 0&&(Ue.dirty=re.text),Ue.editMode===n.editMode&&Ue.dirty===n.dirty||(A(Ue),U?.(Ue))},submitEdit:()=>H(),cancelEdit(){z()},autoFocus(){L.current.focus()},dispatchEvent:re=>L.current.dispatchEvent(re),focus(){L.current.focus()},getLineHeight:O}),[o,n]);s.useLayoutEffect(()=>{if(!I||!v)return;const re=L.current;D.textValue,re&&re.setSelectionRange(I.start,I.end,I.direction)},[L.current,I,D.textValue]);const q=s.useMemo(()=>{const re=R?.clean(),Ue=D.style.createTemporaryTextFrame(D.textValue,re?.getType()===B.ScalarType.String),xe=u?re.getInsets().right+re.getInsets().left:0;let we=null;return D.isWrapped&&(we={width:F-xe}),Ue.layout(we)},[D,F,R,u]),O=he(()=>Math.ceil(q?.lines[0]?.bounds.height),[q]);s.useLayoutEffect(()=>{if(!q)return;const re=D.style,Ue=re.getInsets()??da.EmptyRect,xe=u?Ue.left+Ue.right:0,we=u?.04*re.getFont().getSize():1,ie=Math.round(D.isWrapped?void 0:q.bounds.width+xe+we),Re=Math.round(q.bounds.height);x?.({width:ie,height:Re})},[q,x,D,u,R]);const U=he(r,[r]),X=he(re=>{if(R.dirty===re)return;const Ue={...R};Ue.dirty=re,L.current,A(Ue),U?.(Ue)},[R]),ee=he(re=>{if(R.editMode===re)return;const Ue={...R};Ue.editMode=re,A(Ue),U?.(Ue)},[R]),V=s.useRef(!1),H=he(()=>{if(V.current)return!1;try{i?.(R),d?.(),V.current=!0}catch{return!1}return!0},[i,R]),z=he(()=>{V.current=!0,A(n),l?.(),d?.()},[l,n]),W=he(re=>{if(!L.current)return;if(re.key,re.isDefaultPrevented(),!(re.isTrusted||re.nativeEvent.ctrlKey||re.nativeEvent.metaKey||re.nativeEvent.altKey||re.nativeEvent.isComposing||pu.indexOf(re.nativeEvent.key)===-1&&re.nativeEvent.key!=="Backspace")){const be={...R};let Oe=0;return i7(be,be.dirty)&&!isNaN(parseFloat(re.key))?(be.dirty?.endsWith("%")?be.dirty=(be.dirty.substring(0,be.dirty.length-1)??"")+re.key+"%":be.dirty=(be.dirty??"")+re.key+"%",Oe=be.dirty.length-1):re.nativeEvent.key==="Backspace"?(be.dirty="",Oe=be.dirty.length):(be.dirty=(be.dirty??"")+re.key,Oe=be.dirty.length),L.current.value=be?.dirty,P.current={start:Oe,end:Oe,direction:"forward"},L.current?.setSelectionRange(Oe,Oe,"forward"),A(be),U?.(be),void re.preventDefault()}const Ue=re.nativeEvent.ctrlKey,xe=re.nativeEvent.shiftKey,we=re.nativeEvent.altKey,ie=re.nativeEvent.metaKey;if(Ue&&re.key==="z"&&re.stopPropagation(),re.which===Wt.Escape)return re.preventDefault(),void z();if(re.which===Wt.F2)return ee(!0),void re.preventDefault();const Re=re.target;if(re.key==="%"&&Re.selectionStart===Re.selectionEnd&&Re.value[Re.selectionStart]==="%"&&R?.clean().getStyle().numberFormat.includes("%"))return j({start:Re.selectionStart+1,end:Re.selectionEnd+1,direction:Re.selectionDirection}),void re.preventDefault();if(re.which===Wt.Enter){if(re.preventDefault(),ie||we){const be=D.textValue.substring(0,Re.selectionStart)+`
58
- `+D.textValue.substring(Re.selectionEnd);return X(be),void j({start:Re.selectionStart+1,end:Re.selectionStart+1,direction:Re.selectionDirection})}return void(H()&&h.getSelection().traverse(B.IRange.Orientation.Column,xe))}if(re.which===Wt.Tab)return re.preventDefault(),void(H()&&h.getSelection().traverse(B.IRange.Orientation.Row,xe));let Me=null;switch(re.which){case Wt.Left:Me=B.IRange.Direction.Left;break;case Wt.Right:Me=B.IRange.Direction.Right;break;case Wt.Up:Me=B.IRange.Direction.Up;break;case Wt.Down:Me=B.IRange.Direction.Down}!Me||Ue||xe||we||ie||R.editMode?R.editMode&&(Me||ck.includes(re.which))&&re.stopPropagation():H()},[R,h,D]),G=s.useCallback(()=>{L.current?.focus(),setTimeout(()=>{L.current?.select()},0)},[]),Q=s.useCallback(()=>{L.current?.focus(),console.log("implement toggleRelativeReferences")},[]),Y=he(()=>{const re=L.current?.value;let Ue="";if(f.rowIndex>0){const xe=h.getRange({rowIndex:f.rowIndex-1,colIndex:f.colIndex}).getCell();xe&&(Ue=xe.toTextUnformatted(!0))}X(re+Ue)},[f,h]);s.useEffect(()=>h.getRange(f).addListener(()=>{const re={...R,clean:()=>h.getRange(f).getCell()};A(re),U?.(re)}),[f,h]);const te=s.useCallback(()=>{const re=R.clean().createTemporaryCell({value:_a(),style:{numberFormat:"Medium Time"}}).toText();X((L.current?.value??"")+re)},[h]),le=s.useCallback(()=>{const re=R.clean().createTemporaryCell({value:_a(),style:{numberFormat:"Short Date"}}).toText();X((L.current?.value??"")+re)},[h]),me=s.useMemo(()=>({element:()=>L.current,doCopy:re=>{const Ue=L.current.value.substring(L.current.selectionStart,L.current.selectionEnd);if(re?.isCut){const xe=L.current.value.substring(0,L.current.selectionStart)+L.current.value.substring(L.current.selectionEnd,L.current.value.length);X(xe)}return Ue}}),[L.current]),J=s.useMemo(()=>({element:()=>L.current,doPaste:async(re,Ue)=>{const xe=await re.toText?.();if(!xe)return!0;const we=L.current.value.substring(0,L.current.selectionStart)+xe+L.current.value.substring(L.current.selectionEnd,L.current.value.length);return X(we),j({start:L.current.selectionStart+xe.length,end:L.current.selectionStart+xe.length,direction:"forward"}),!0}}),[L.current]),ae=s.useMemo(()=>({contains:re=>L.current?.contains(re)||!1,focus(){L.current.focus()}}),[]),ke=s.useMemo(()=>[new mt("selectAll",ae,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[Ee.Ctrl]}},G),new mt("startEditValueAbove",ae,{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:[Ee.Ctrl]},{key:'"',modifiers:[Ee.Ctrl,Ee.Shift]}]},Y),new mt("startEditCurrentTime",ae,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[Ee.Ctrl,Ee.Shift]}},te),new mt("startEditCurrentDate",ae,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[Ee.Ctrl]}},le),new Te("relativeReferencesToggle",ae,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},Q),new Te("toggleEditorFocus",ae,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[Ee.Ctrl]}})],[]),De=s.useMemo(()=>{let re=null;const Ue=()=>({contains:xe=>L.current?.contains(xe)||!1,focus(){L.current.focus()}});return re=g?g.createChildGroup(Ue,"editor",!1):new ll(Ue,"editor"),re.addCommands(ke,!0),re},[g,ke]),ne=s.useMemo(()=>({notifier:null,source:me,target:J,commands:De}),[me,J,De]);eh(ne);const[de,ye]=s.useState(!k);s.useEffect(()=>{ye(!1)},[]);const ze=he(re=>{S(!0),De?.activate();const Ue=P.current;if(Ue!==!1){let xe,we;const ie=L.current.value;i7(R,ie)&&(xe=ie.length-1,we=ie.length-1),xe=Ue?.start??xe??ie.length,we=Ue?.end??we??ie.length,P.current=!1,j({start:xe,end:we,direction:"forward"})}y?.(re)},[y,R]),$e=D.insets;let gt=$e.left+1;const bt=$e.left+$e.right+2-1,Se=q?.bounds.height??0;let ht,xt=$e.top;D.frameVertAlign===B.ITextFrame.VerticalAlignment.Center?xt=Math.max(0,(T-($e.top+$e.bottom)-Se)/2):D.frameVertAlign===B.ITextFrame.VerticalAlignment.Bottom&&(xt=Math.max(0,T-($e.top+$e.bottom)-Se)),E!==void 0&&q?.lines[0]?.bounds&&(ht=q?.lines[0]?.bounds.height*E);const Ne=D.style.getFont();let wt=Ne.getSize();Ne.isSuperSub()&&(wt*=Ne.getSuperSubScale()),wt*=B.IFont.getDeviceScale()*C;const Ye=u?Ne.toCSS(_,C):null;return a.jsx("div",{className:"sheet-cell-editor",onMouseDown:re=>{L.current&&document.activeElement!==L.current&&requestAnimationFrame(()=>{L.current.focus()})},ref:$,...M,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...b},children:a.jsx("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:xt*C+1,left:gt*C,width:`calc(100% - ${bt*C}px)`,maxWidth:`calc(100% - ${bt*C}px)`,height:(ht??Se)*C,maxHeight:(ht??Se)*C},children:a.jsx("textarea",{spellCheck:"false",placeholder:D.placeholder,ref:L,value:D.textValue,disabled:de,readOnly:w||h.getProtection().isReadOnly(),name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...Ye,fontSize:wt?`${wt}px`:"inherit",textAlign:D.textAlign,lineHeight:(q?.lines[0]?.bounds.height??0)*C+"px",height:(q?.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:D.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:ze,onBlur:()=>{S(!1)},onSelect:re=>{},onChange:re=>{L.current&&!V.current&&(P.current=!1,X(re.target.value),D.textValue,re.target.value,re.target.selectionStart,re.target.selectionEnd,re.target.selectionDirection,j({start:re.target.selectionStart,end:re.target.selectionEnd,direction:re.target.selectionDirection}))},onMouseDown:re=>{v&&ee(!0)},onKeyDown:W})})})})),F9=(e,t)=>({clean:e,dirty:t,editMode:!1}),z9=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:l=!1,offsetX:d=0,offsetY:c=0,isVertical:u=!1,...p}=e,f=b=>{let C=null;if(b&&n>0){C="";for(let E=0;E<b.length;E++)C+=b[E],E<b.length-1&&(C+=",")}return C},h=f(o);let g=h;r&&(g=f(r));let m=n,x=t,y=null;if(i){m=Math.floor(n/2);const b=m+m/2+1;let C=null;C=u?`M ${pn.boundPixel(d+b)} ${pn.boundPixel(c)} L ${pn.boundPixel(d+b)} ${pn.boundPixel(c+x)}`:`M ${pn.boundPixel(d)} ${pn.boundPixel(c+b)} L ${pn.boundPixel(d+x)} ${pn.boundPixel(c+b)}`,y=a.jsx("path",{strokeWidth:m,strokeDasharray:g,d:C,...p})}if(l){m=n/2;const b=m+m/2;let C=g,E=null;E=u?`M ${pn.boundPixel(d+b)} ${pn.boundPixel(c)} L ${pn.boundPixel(d+b)} ${pn.boundPixel(c+x)}`:`M ${pn.boundPixel(d)} ${pn.boundPixel(c+b)} L ${pn.boundPixel(d+x)} ${pn.boundPixel(c+b)}`,y=a.jsx("path",{strokeWidth:m,strokeDasharray:C,strokeDashoffset:"1",shapeRendering:"crispEdges",d:E,...p})}let w=null;return w=u?`M ${pn.boundPixel(d+m/2)} ${pn.boundPixel(c)} L ${pn.boundPixel(d+m/2)} ${pn.boundPixel(c+x)}`:`M ${pn.boundPixel(d)} ${pn.boundPixel(c+m/2)} L ${pn.boundPixel(d+x)} ${pn.boundPixel(c+m/2)}`,a.jsxs(a.Fragment,{children:[a.jsx("path",{strokeWidth:m,strokeDasharray:h,d:w,...p}),y]})};function nd(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var cl=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=nd(o,t),i=typeof r=="function";n.push(i?r:()=>nd(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)nd(n,t)}},dk=function(){},B9=typeof window<"u",Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uk=B9?s.useLayoutEffect:s.useEffect,l7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const fi=B9&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(l7),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return uk(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[dk,l7]},hk=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,pk=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,fk=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:l=!1,shiftIfWide:d=!1,isVertical:c=!1,intersections:u,layout:p}=e,f=B.IBorder.BuiltInDefinitions.get(l?B.IBorder.StrokeStyle.Thin:r.getStyle());if(!f)return null;const h=n[0],g=n[1],m=n[2],x=n[3];let y=1+(c?x-g:m-h),w=0;const b=r.getColor().toRGBA(i).toString(),C=f.description.toLowerCase().includes("double");let E,k;const M=c?"rowStart":"colStart",T=c?"rowEnd":"colEnd",F=c?g:h;if(u?.length>0){const S=u[0];if(S?.range[M]===o[M]){const I=B.IBorder.BuiltInDefinitions.get(S.stroke.getStyle());w=Math.floor(I.width/2)}if(u[u.length-1]?.range[T]===o[T]){const I=B.IBorder.BuiltInDefinitions.get(u[u.length-1].stroke.getStyle());y=Math.floor(y+(I.width===2?0:I.width/2))}if(C){const I=c?"colStart":"rowStart",j=c?"colEnd":"rowEnd",R=c?p?.getRowOffset:p?.getColOffset;let A=0,D=0;E=[],k=[];for(let L=0;L<u.length;L++){const $=u[L];if($.stroke.getStyle()===B.IBorder.StrokeStyle.Double&&R){const q=R($.range[M])-(F-w);$.range[I]<o[I]&&(E.push(q-A),A=q,E.push(1),A++),$.range[j]>o[j]&&(k.push(q-D),D=q,k.push(1),D++)}}E.length>0&&A<y&&E.push(y-A),k.length>0&&D<y&&k.push(y-D)}}let _=c?-Math.floor(f.width/2):-w,P=c?-w:-Math.floor(f.width/2);const v=d&&f.width>2?-1:0;return a.jsx(z9,{offsetX:h+_+v,offsetY:g+P+v,length:y+w,isVertical:c,stroke:b,width:f.width,dashArray:E??f.pattern,dashArrayAdditional:k,isDouble:C,isAngled:f.description.toLowerCase().includes("slant")},t)},N9=({getBorderAt:e,borderRenderer:t=fk,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:l=!1})=>{const d=he(n,[n]);return{overlay:s.useMemo(()=>c=>{const u=c.toClipBounds(c.getRangeCoordsBounds(),-3);if(!u)return;const p=d(c);if(p.length===0)return;const f=c.getVisibleColumnOffsets(),h=c.getVisibleRowOffsets();let g=[],m=[];const x=c.getVisibleColumns(),y=c.getVisibleRows(),w=[],b=[],C=[],E=(F,_,P,v,S,I,j)=>{const R={index:v,stroke:S,visibleIndex:P,edge:I,length:j};F[_]||(F[_]=[]),F[_].length>0&&F[_][F[_].length-1]?.index===v?F[_][F[_].length-1]=R:F[_].push(R)};for(let F=0;F<p.length;F++){const _=p[F],P=_.coords;if(!P)continue;const v=_?.range??{rowStart:P.rowIndex,colStart:P.colIndex,rowEnd:P.rowIndex,colEnd:P.colIndex},S=c.getVisibleRangeCoords();if(!bo.isRangesIntersect(v,S)&&!bo.isRangeWithinRange(v,S))continue;const I=P.colIndex,j=P.rowIndex,R=f[I],A=h[j];if(v.rowEnd!==v.rowStart){const z=h[v.rowStart]?.spanIndex??-1,W=h[v.rowEnd]?.spanIndex??h[y[y.length-1]].spanIndex+1;g.push({...v,rowStart:z,rowEnd:W})}if(v.colEnd!==v.colStart){const z=f[v.colStart]?.spanIndex??-1,W=f[v.colEnd]?.spanIndex??f[x[x.length-1]].spanIndex+1;m.push({...v,colStart:z,colEnd:W})}const D=_.value,L=e(D,F);if(!L||L.isEmpty())continue;const $=L.getLeft(),q=L.getTop(),O=L.getRight(),U=L.getBottom();let X=1,ee=1;if(!R||!A)continue;const V=R.spanIndex,H=A.spanIndex;$.isNone()||E(w,V,H,j,$,B.IBorder.Edge.Left,X),q.isNone()||E(b,H,V,I,q,B.IBorder.Edge.Top,ee),O.isNone()||E(w,V+ee,H,j,O,B.IBorder.Edge.Right,X),U.isNone()||E(b,H+X,V,I,U,B.IBorder.Edge.Bottom,ee)}const k=(F,_,P)=>{const v=[];return F.forEach((S,I)=>{let j=null;S.sort((R,A)=>R.visibleIndex-A.visibleIndex);for(let R=0;R<S.length;R++){const A=S[R];if(!A?.stroke||_[I]===void 0&&_[I-1]===void 0)continue;let D=!1;if(P)for(let O=0;!D&&O<g.length;O++){let U=g[O];U.colStart<=A.index&&U.colEnd>=A.index&&U.rowStart<I&&U.rowEnd>=I&&(D=!0)}else for(let O=0;!D&&O<m.length;O++){let U=m[O];U.rowStart<=A.index&&U.rowEnd>=A.index&&U.colStart<I&&U.colEnd>=I&&(D=!0)}if(D)continue;const L=A.stroke?.getColor(),$=L?L.toRGBA().toString():i,q=A.stroke.getStyle()+":"+$;(q!==j?.key||j&&j.visibleIndex+1<A.visibleIndex)&&(j&&v.push(j),j={key:q,index:_[I]??_[I-1]+1,visibleIndex:A.visibleIndex,edge:A.edge,stroke:A.stroke,from:A.index,to:A.index+A.length-1,intersections:[],length:1}),j.to=A.index+A.length-1,j.visibleIndex=A.visibleIndex}j&&v.push(j)}),v};g=g.sort(pk),m=m.sort(hk);const M=k(w,x,!1),T=k(b,y,!0);if(M.length===0&&T.length===0)return null;for(let F=0;F<T.length;F++){const _=T[F];let P=Nt.findEqualOrGreater(M,_.from,S=>S.index),v=!1;for(;!v;){const S=M[P++];S&&S.index>=_.from&&S.index<=_.to+1&&S.from<=_.index&&S.to+1>=_.index&&(_.intersections.push({stroke:S.stroke,range:{rowStart:S.from,rowEnd:S.to+1,colStart:S.index,colEnd:S.index}}),S.intersections.push({stroke:_.stroke,range:{rowStart:_.index,rowEnd:_.index,colStart:_.from,colEnd:_.to+1}})),v=!S||S.index>_.to+1}}for(let F=0;F<T.length;F++){const _=T[F];let P=_.stroke;const v=`rBorder:${_.index}:${_.from}:${_.to}:${_.edge}`,S={rowStart:_.index,rowEnd:_.index,colStart:_.from,colEnd:_.to+1},I=c.getLayout(),j=!1,R=I.getColOffset(S.colStart),A=I.getRowOffset(S.rowStart),D=[R,A,I.getColOffset(S.colEnd),A];C.push(t({key:v,points:D,stroke:P,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:S,intersections:_.intersections,layout:I,isVertical:j}))}for(let F=0;F<M.length;F++){const _=M[F];let P=_.stroke;const v=`cBorder:${_.index}:${_.from}:${_.to}:${_.edge}`,S={rowStart:_.from,rowEnd:_.to+1,colStart:_.index,colEnd:_.index},I=c.getLayout(),j=!0,R=I.getColOffset(S.colStart),A=[R,I.getRowOffset(S.rowStart),R,I.getRowOffset(S.rowEnd)];C.push(t({key:v,stroke:P,points:A,darkMode:o,forceThinBorder:r,shiftIfWide:l,range:S,intersections:_.intersections,layout:I,isVertical:j}))}return a.jsx("svg",{width:`${u.width}`,height:`${u.height}`,viewBox:`0 0 ${u.width} ${u.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${u.width}px`,height:`${u.height}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",overflow:"visible"},children:C},"borders")},[e,o])}},a7=so.Center,mk=Object.freeze({horizontal:!1,vertical:!1}),s7=da.EmptyTopLeft,gk=(e,t)=>bo.EmptyCell,xk=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),fu=s.memo(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:l=2,darkMode:d,forceThinBorder:c,children:u,...p}=e,f=s.useRef(null),[h,{width:g,height:m}]=fi(),x=n??g,y=o??m,w=s.useMemo(()=>{const R=[];for(let A=0;A<i;A++)for(let D=0;D<l;D++){const L={colIndex:D,rowIndex:A};R.push({coords:L,value:L})}return R},[]),b=s.useCallback(R=>w,[w]),{overlay:C}=N9({getVisibleCells:b,getBorderAt:t,darkMode:d,forceThinBorder:c}),E=Math.floor(x/l),k=Math.floor(y/i),M={getColOffset:R=>Math.ceil(R*E)+0,getRowOffset:R=>Math.ceil(R*k)+0,getColIndex:R=>Math.floor((R-0)/E)-1,getRowIndex:R=>Math.floor((R-0)/k)-1},T={rowStart:0,colStart:0,rowEnd:i,colEnd:l},F={x:0,y:0,width:Math.max(0,x)+0,height:Math.max(0,y)+0},_=s.useMemo(()=>{const R={},A=Math.floor(x/l);for(let D=0;D<l;D++)R[D]={offset:D*A,size:A,spanIndex:D};return R},[x,y]),P=s.useMemo(()=>{const R={},A=Math.floor(y/i);for(let D=0;D<i;D++)R[D]={offset:D*A,size:A,spanIndex:D};return R},[x,y]);if(!C)return null;const v={width:x,height:y},S={width:x,height:y},I={getStage:()=>f.current,getTotalSize:()=>v,getViewportSize:()=>S,getLayout:()=>M,getCellCoordsAsRangeCoords:bo.cellToRange,getVisibleRangeCoords:()=>T,getVisibleRows:()=>{const R=[];for(let A=0;A<i;A++)R.push(A);return R},getTotalRangeCoords:()=>T,getRelativePointFromClient:(R,A)=>({x:R,y:A}),getVisibleColumns:()=>{const R=[];for(let A=0;A<l;A++)R.push(A);return R},toClipBounds:(R,A)=>F,toViewBounds:R=>R,toAbsoluteBounds:R=>R,getBounds:()=>F,getInsets:()=>null,getRangeCoordsBounds:(R,A)=>null,getVisibleColumnOffsets:()=>_,getVisibleRowOffsets:()=>P,allViews:()=>({[a7]:I}),getAnchor:()=>a7,getZoom:()=>1,scrollCellCoordsIntoView:xk,getCellCoordsFromClient:gk,getScrollOrientation:()=>mk,getScrollTopLeft:()=>s7,getFreezeTopLeft:()=>s7},j=C(I);return a.jsxs("div",{style:{...r,position:"relative",display:"flex"},...p,children:[a.jsx("div",{ref:cl([f,h]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:u}),j]})});function V9(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=V9(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ar(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=V9(e))&&(o&&(o+=" "),o+=t);return o}const yk=e=>{const{style:t,...n}=e??{};return a.jsxs("svg",{style:{width:"135px",height:"37px",...t},viewBox:"0 0 135 37",...n,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]})},bk=s.memo(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:l,...d}=e??{},[c,u]=s.useState(null);s.useEffect(()=>{(async()=>{const k=await B.LicenseManager.getDetails();u(k)})()},[]);const[p,f]=s.useState(!1),h={opacity:.65},g=s.useMemo(()=>{if(!(c?.exceptions().length>0))return null;const k=[];for(let M=0;M<c.exceptions().length;M++){const T=c.exceptions()[M];k.push(a.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:T},M))}return k},[c,n]);if(c==null||c.isValidFor(i))return null;const m=c.type(),x=!g&&m.endsWith("ity"),y=c.licensee(),w=x?1.6:1,b=135/w,C=37/w;let E=null;return!m&&y?.length>0&&(E=a.jsx("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:t},children:y})),a.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...l},...d,children:a.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[p?a.jsx(yk,{style:h}):a.jsx("svg",{width:b,height:C,style:h,children:a.jsx("image",{style:{width:b,height:C},href:"https://www.sheetxl.com/watermark.svg",onError:()=>f(!0)})}),a.jsxs("div",{children:[E,g,a.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),Gt=(e,t,n)=>{const o=s.useRef(t);o.current=t;const r=n?.fireOnModelChange??!0;s.useEffect(()=>{if(!e||!o.current)return;const i=Object.keys(o.current),l={},d=i.length;for(let u=0;u<d;u++){const p=i[u];l[p]=(f,h)=>{o.current[p]?.(f,h)}}const c=e.addListeners(l,n);if(r)for(let u=0;u<d;u++)l[i[u]](e);return()=>{c?.()}},[e])},vs=new B.Color("transparent");var c7,d7;(function(){if(d7)return c7;d7=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl,l=typeof self=="object"&&self&&self.Object===Object&&self,d=i||l||Function("return this")(),c=Object.prototype.toString,u=Math.max,p=Math.min,f=function(){return d.Date.now()};function h(m){var x=typeof m;return!!m&&(x=="object"||x=="function")}function g(m){if(typeof m=="number")return m;if(function(w){return typeof w=="symbol"||function(b){return!!b&&typeof b=="object"}(w)&&c.call(w)=="[object Symbol]"}(m))return NaN;if(h(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=h(x)?x+"":x}if(typeof m!="string")return m===0?m:+m;m=m.replace(e,"");var y=n.test(m);return y||o.test(m)?r(m.slice(2),y?2:8):t.test(m)?NaN:+m}c7=function(m,x,y){var w,b,C,E,k,M,T=0,F=!1,_=!1,P=!0;if(typeof m!="function")throw new TypeError("Expected a function");function v(A){var D=w,L=b;return w=b=void 0,T=A,E=m.apply(L,D)}function S(A){var D=A-M;return M===void 0||D>=x||D<0||_&&A-T>=C}function I(){var A=f();if(S(A))return j(A);k=setTimeout(I,function(D){var L=x-(D-M);return _?p(L,C-(D-T)):L}(A))}function j(A){return k=void 0,P&&w?v(A):(w=b=void 0,E)}function R(){var A=f(),D=S(A);if(w=arguments,b=this,M=A,D){if(k===void 0)return function(L){return T=L,k=setTimeout(I,x),F?v(L):E}(M);if(_)return k=setTimeout(I,x),v(M)}return k===void 0&&(k=setTimeout(I,x)),E}return x=g(x)||0,h(y)&&(F=!!y.leading,C=(_="maxWait"in y)?u(g(y.maxWait)||0,x):C,P="trailing"in y?!!y.trailing:P),R.cancel=function(){k!==void 0&&clearTimeout(k),T=0,w=M=b=k=void 0},R.flush=function(){return k===void 0?E:j(f())},R}})();var u7,h7,p7={};h7||(h7=1,function(){if(u7)return p7;u7=1;var e=s,t=typeof Object.is=="function"?Object.is:function(c,u){return c===u&&(c!==0||1/c==1/u)||c!=c&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(c){var u=c.getSnapshot;c=c.value;try{var p=u();return!t(c,p)}catch{return!0}}var d=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,u){return u()}:function(c,u){var p=u(),f=n({inst:{value:p,getSnapshot:u}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=u,l(h)&&g({inst:h})},[c,p,u]),o(function(){return l(h)&&g({inst:h}),c(function(){l(h)&&g({inst:h})})},[c]),i(p),p};p7.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d}());var f7,m7,Ss={exports:{}},ji={exports:{}},wk=ji.exports;function g7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(m7)return Ss.exports;m7=1;for(var e=(f7||(f7=1,function(){var f,h,g,m,x,y;typeof performance<"u"&&performance!==null&&performance.now?ji.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ji.exports=function(){return(f()-x)/1e6},h=process.hrtime,m=(f=function(){var w;return 1e9*(w=h())[0]+w[1]})(),y=1e9*process.uptime(),x=m-y):Date.now?(ji.exports=function(){return Date.now()-g},g=Date.now()):(ji.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(wk)),ji.exports),t=typeof window>"u"?Yl: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 d=0,c=0,u=[],p=1e3/60;r=function(f){if(u.length===0){var h=e(),g=Math.max(0,p-(h-d));d=g+h,setTimeout(function(){var m=u.slice(0);u.length=0;for(var x=0;x<m.length;x++)if(!m[x].cancelled)try{m[x].callback(d)}catch(y){setTimeout(function(){throw y},0)}},Math.round(g))}return u.push({handle:++c,callback:f,cancelled:!1}),c},i=function(f){for(var h=0;h<u.length;h++)u[h].handle===f&&(u[h].cancelled=!0)}}Ss.exports=function(f){return r.call(t,f)},Ss.exports.cancel=function(){i.apply(t,arguments)},Ss.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();const _1=s.memo(s.forwardRef((e,t)=>{const{style:n=pn.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:l,onScrollOffset:d,showCustomScrollButtons:c=!1,offset:u=0,totalSize:p=0,viewportSize:f=0,...h}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[g]=fi(),m=he(i,[i]),x=he(l,[l]),y=s.useMemo(()=>w===null&&b===null?null:X=>{g7(w,X),g7(b,X)},[w=g,b=t]);var w,b;const[C,E]=s.useState(()=>{const X=r.getView().getTopLeft();return o===Ao.Vertical?X.top:X.left}),k=()=>{const X=r.getView().getFreezePanes();return o===Ao.Vertical?X.coords.rowIndex===0?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(X.coords.rowIndex)-X.topLeft.top,scroll:X.topLeft.top}:X.coords.colIndex===0?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(X.coords.colIndex)-X.topLeft.left,scroll:X.topLeft.left}},[M,T]=s.useState(k),[F,_]=s.useState(null),[P,v]=s.useState(!1),S=o===Ao.Vertical?r.getRowHeaders():r.getColumnHeaders(),I=()=>{const X=r.getUsedRange()?.getCoords()??bo.EmptyRange,ee=r.getSelection().getCoords().cell;return{colIndex:Math.max(X.colEnd,ee.colIndex),rowIndex:Math.max(X.rowEnd,ee.rowIndex)}},[j,R]=s.useState(I),A=j?(o===Ao.Vertical?j.rowIndex:j.colIndex)+1:0,D=()=>{const X=I();bo.isEqualCells(j,X)||R(X)};Gt(r.getView(),{onFreezeSplitChange:()=>{T(k)}}),Gt(r.getSelection(),{onChange:D}),Gt(r,{onUsedRangeChange:D}),s.useEffect(()=>{R(I())},[r]),s.useEffect(()=>{if(!F)return P&&x?.(),void v(!1);const X=S.getTextAt(S.findIndex(C/(r.getView().getZoomScale()/100)+M.scroll+M.shift));v(!0),m?.({...F,display:(o===Ao.Vertical?"Row":"Column")+": "+X})},[u,C,M,o,F,S,P,r]);const L=he((X,ee,V)=>{E(X);const H=X+M.scroll,z=ee+M.shift,W=V+M.shift+M.scroll;d?.(H,z,W)},[d,M]),$=u-M.scroll,q=f-M.shift,O=p-(M.shift+M.scroll),U=S.findOffset(A)*(r.getView().getZoomScale()/100)-(M.scroll+M.shift);return a.jsx(G8,{ref:y,style:n,offset:$,viewportSize:q,totalSize:O,orientation:o,showCustomScrollButtons:c,onMouseDown:X=>{_({anchor:{x:X.clientX,y:X.clientY}}),X.preventDefault()},onScrollOffset:L,onMouseOut:()=>{_(null)},onMouseUp:()=>{_(null)},minSize:U,...h})}));_1.displayName="SheetScrollbar";const x7=(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},y7=s.memo(s.forwardRef((e,t)=>{const{sheetHeader:n,gridRef:o,sheetElement:r,commands:i,oppositeSize:l=30,containerWidth:d,containerHeight:c,headerText:u,freezeStart:p,gridStyle:f,verticalPadding:h,horizontalPadding:g,onSheetContextMenu:m,onResizeHeadersStart:x,onResizeHeaders:y,onResizeHeadersEnd:w,onResizeHeadersDown:b,onResizeHeadersUp:C,scrollPoint:E,onSelectionStart:k,onSelectionEnd:M}=e,T=s.useMemo(()=>n.getOrientation(),[n]),F=s.useRef(null),[_,P]=s.useReducer(xe=>xe+1,0),[v,S]=s.useReducer(xe=>xe+1,0),I=n?.getSheet(),j=s.useRef(!1);s.useLayoutEffect(()=>{j.current=!0},[n]);const R=s.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),A=s.useMemo(()=>{const xe=T===B.IRange.Orientation.Column;return{left:xe?E.left:0,top:xe?0:E.top}},[E]),[D,L]=s.useState(I?.getView().getZoomScale()/100),[$,q]=s.useState(null);Gt(n,{onSizesChange:xe=>{L(I?.getView().getZoomScale()/100),ke(J())}});const O=s.useCallback(()=>{F.current?.invalidate(),S()},[]),U=s.useCallback(Nt.debounce(()=>{O()},10),[]),[X,ee]=s.useState(null);Gt(n.getSheet(),{onSelectionChange(){ee(I?.getSelection().getCoords()),U()},onProtectionChange(){O()},onViewChange(){U()}}),s.useLayoutEffect(()=>{ke(J())},[T,D,l]),s.useLayoutEffect(()=>{q(null),L(n?.getSheet().getView().getZoomScale()/100),ke(J())},[n]);const V=s.useCallback(xe=>n.at(xe)?.isHidden()||n.at(xe)?.getSize()===0,[n]),H=s.useCallback((xe,we)=>n.hiddenHeadersAt(xe,we),[V]),z=he(xe=>n.isSelected(xe),[n]),W=he(xe=>n.isSelectedAll(xe),[n]),G=s.useCallback(()=>n.getMinSize(),[n]),Q=s.useCallback(()=>n.getMaxSize(),[n]),Y=he((xe,we,ie)=>{we/=D;const Re={size:we=Math.max(G(),Math.min(Nt.roundAccurately(we,G()),Q())),hidden:!1},Me=[];if(we<=0&&(Re.hidden=!0,Re.size=ie),Me.push({address:{min:xe,max:xe},update:Re}),we<0){const be=T===B.IRange.Orientation.Column,Oe=be?ae.getColOffset:ae.getRowOffset,oe=be?ae.getColIndex:ae.getRowIndex,Ce=Oe(xe);let Le=oe(Ce+we);const qe=Oe(Le);qe===Ce+we?Le--:Me.push({address:{min:Le,max:Le},update:{size:Ce-qe+we}}),xe-Le>1&&Me.push({address:{min:Le+1,max:xe-1},update:{hidden:!0}})}n.updateHeaderPairs(Me),y?.(xe,we,ie)},[_,n,D,y]),te=he((xe,we,ie)=>{const Re=T===B.IRange.Orientation.Column;let Me=null,be={min:xe,max:xe};if(n.isSelectedAll(xe)){const Oe=n.getSelectedRuns();Oe.length>1?Me="Resize "+(Re?"Columns":"Rows"):be=Oe[0];const oe={hidden:we<=0,size:(we<=0?ie:we)/D};n.updateHeaderPairs(x7(Oe,oe,xe))}if(be){const Oe=be.max-be.min+1;let oe;oe=Oe===1?n.getRange(be).at(0).getDisplayText():n.getRange(be).toString(),Me=`Resize ${Re?"Column":"Row"}${Oe>1?"s":""} '${oe}'`}w?.(xe,we,Me)},[_,n,w]),le=he((xe,we)=>{const ie=T===B.IRange.Orientation.Column;x(xe,we,`Resize ${ie?"Column":"Row"}(s)`)},[x]),me=he(xe=>{let we=!1;const ie=T===B.IRange.Orientation.Column,Re=n.getSheet().getEntireRange().getCoords(),Me=[],be=n.getSelectedRuns(),Oe=oe=>{let Ce;Ce=ie?{colStart:oe.min,rowStart:Re.rowStart,colEnd:oe.max,rowEnd:Re.rowEnd}:{colStart:Re.colStart,rowStart:oe.min,colEnd:Re.colEnd,rowEnd:oe.max},Me.push(Ce)};for(let oe=0;oe<be.length;oe++){const Ce=be[oe];Ce.value.isSelectedAll&&(Ce.min<=xe&&Ce.max>=xe&&(we=!0),Oe(Ce))}if(we||Oe({min:xe,max:xe}),n.getSheet().getRanges(Me).autoFit({orientations:ie?B.IRange.Orientations.Column:B.IRange.Orientations.Row}),V(xe)){const oe={hidden:null},Ce=x7(be,oe);we||Ce.push({address:xe,update:oe}),n.updateHeaderPairs(Ce)}w?.(xe,null,"Resize Column(s)")},[_,n,w,V]),J=()=>{const xe=T===B.IRange.Orientation.Column;return{getColOffset:we=>xe?n.findOffset(we):we===0?0:l/D,getColIndex:we=>xe?n.findIndex(we):0,getRowOffset:we=>xe?we===0?0:l/D:n.findOffset(we),getRowIndex:we=>xe?0:n.findIndex(we)}},[ae,ke]=s.useState(()=>J()),De=s.useCallback((xe,we)=>xe.nativeEvent.which!==F8||!W(T===B.IRange.Orientation.Column?we.colIndex:we.rowIndex),[T,W]),ne=he(xe=>{r.focusSheet()},[r]),de=he(xe=>{I?.getSelection().updateCoords(xe)},[I]),{...ye}=R9({gridRef:o,commands:null,layout:ae,selection:X,fillHandleBorderColor:f.body.fill,selectionBackgroundColor:f.selection.fill,selectionBorderColor:f.selection.strokeFill,selectionRemoveBackgroundColor:f.selectionRemove.fill,selectionRemoveBorderColor:f.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:de,canSelectionSpanMergedCells:xe=>{const we=I.getRange(xe);return we.isEntireColumns()||we.isEntireRows()}}),ze=he(()=>{k?.();const xe=I?.getSelection();xe&&xe.setAdjusting(xe.getCoords())},[I,k]),$e=he(async()=>{I?.getSelection().setAdjusting(null),M?.()},[I,M]),{...gt}=NC({orientation:T,headerCount:R,gridRef:F,gridMainRef:o,newSelection:ye?.newSelection,modifySelection:ye?.modifySelection,appendSelection:ye?.appendSelection,clearSelections:ye?.clearSelections,pointerDownInterceptor:De,onPointerUp:ne,onDragStart:ze,onDragEnd:$e}),bt=f.selection?.strokeFill;s.useEffect(()=>{if(!F.current)return void q(null);const xe=T===B.IRange.Orientation.Column,we=n.getSelectedRuns(),ie=n.isProtected()?null:Y,Re=(be,Oe,oe)=>{if(oe)return a.jsx("div",xe?{style:{position:"absolute",borderBottom:`${f.headerSelection.strokeWidth}px solid ${bt}`,pointerEvents:"none",top:`${pn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,left:`${pn.boundPixel(oe.x-f.headerSelection.strokeWidth)}px`,width:`${pn.boundPixel(oe.width+f.headerSelection.strokeWidth+1,!0)}px`,height:l+f.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${f.headerSelection.strokeWidth}px solid ${bt}`,pointerEvents:"none",top:`${pn.boundPixel(oe.y-f.headerSelection.strokeWidth)}px`,left:`${pn.boundPixel(-f.headerSelection.strokeWidth/2)}px`,width:l+f.headerSelection.strokeWidth-.5+"px",height:`${pn.boundPixel(oe.height+f.headerSelection.strokeWidth+1,!0)}px`}},be)},Me=(be,Oe,oe)=>{const Ce={x:0,y:0,width:0,height:0};if(xe){const Le=oe.toClipBounds(oe.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:be,colEnd:Math.min(R,Oe)}),qo);if(!Le)return;Ce.x=Le.x,Ce.width=Le.width}else{const Le=oe.toClipBounds(oe.getRangeCoordsBounds({rowStart:be,rowEnd:Math.min(R,Oe),colStart:0,colEnd:0}),qo);if(!Le)return;Ce.y=Le.y,Ce.height=Le.height}return{x:Ce.x,y:Ce.y,width:Ce.width,height:Ce.height}};q([be=>{const Oe=[];let oe=null,Ce=xe?be.getVisibleColumns():be.getVisibleRows();const Le=xe?be.getTotalRangeCoords().colStart:be.getTotalRangeCoords().rowStart;Ce.length>0&&Ce[0]>Le&&(Ce=[Ce[0]-1,...Ce]);let qe=[];const pt=[];for(let Qe=0;Qe<Ce.length;Qe++){const kt=Ce[Qe],Vt=Qe<Ce.length-1?Ce[Qe+1]:kt+H(kt+1,!1)+1,ct=kt+1!==Vt;if(!oe||oe.max<kt)if(we.length>0&&we[we.length-1].max>=kt){const ln=Nt.findEqualOrGreater(we,kt,gn=>gn.max);oe=we[ln]}else oe=null;let Ut=!1,Qt=!1;if(oe?.value&&(oe.min<=kt||oe.min<=Vt&&!ct)&&(Ut=!0,Qt=oe.value.isSelectedAll),kt===Le){let ln=!1,gn=!1;oe?.value&&oe.min<=kt&&(ln=!0,gn=oe.value.isSelectedAll),kt>0&&pt.push({index:kt-1,isNextHidden:ct,isSelected:ln,isSelectedAll:gn,disabledResize:!0})}if(Qt&&qe.push(pt.length),pt.push({index:kt,isHidden:Qe===0&&H(kt,!1)>0,isNextHidden:ct,isSelected:Ut,isSelectedAll:Qt,onDividerMouseDown:b,onDividerResizeStart:le,onDividerResize:ie,onDividerMouseUp:C,onDividerResizeEnd:te,onDividerAutoFit:me}),ct){let ln=!1,gn=!1;if(oe&&oe.min>=kt&&oe.max<=Vt-1&&oe.value.isSelectedAll&&qe.push(pt.length),!(oe?.value&&oe.max>=Vt))if(we.length>0&&we[we.length-1].max>=Vt){const En=Nt.findEqualOrGreater(we,Vt,Nn=>Nn.max);oe=we[En]}else oe=null;oe?.value&&oe.min<=Vt&&(ln=oe.value.isSelected,gn=oe.value.isSelectedAll),Vt>0&&pt.push({index:Vt-1,isHidden:!0,isSelected:ln,isSelectedAll:gn,onDividerMouseDown:b,onDividerResizeStart:le,onDividerResize:ie,onDividerMouseUp:C,onDividerResizeEnd:te,onDividerAutoFit:me})}}if(qe.length>0){let Qe=qe.length-1;if(qe.length>0){const ct=pt[qe[Qe]].index;let Ut=null;xe?(Ut=be.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:ct,colEnd:ct}),Ut.x+Ut.width>be.getBounds().width&&(Qe-=1,Qe===0&&(Qe=-1))):(Ut=be.getRangeCoordsBounds({rowStart:ct,rowEnd:ct,colStart:0,colEnd:0}),Ut.y+Ut.height>be.getBounds().height&&(Qe-=1,Qe===0&&(Qe=-1)))}const kt=we?.[we.length-1],Vt=be.getAnchor();if(Vt==="t"||Vt==="l"){const ct=pt[qe[Math.max(0,qe.length-1)]];ct.showTouchDivider=kt&&kt.max<=ct.index}else Qe>=0&&(pt[qe[Qe]].showTouchDivider=!0)}const{header:ot,headerSelect:We,headerSelectAll:st,headerHover:Xe}=f??{};for(let Qe=0;Qe<pt.length;Qe++)Oe.push(a.jsx(ok,{orientation:T,view:be,headerStyle:ot,headerStyleSelect:We,headerStyleSelectAll:st,headerStyleHover:Xe,disabled:n.isProtected(),...pt[Qe]},`divider${Qe}`));return Oe},be=>{const Oe=[];for(let oe=0;we&&oe<we.length;oe++)Oe.push(Re(`selection:${be.getAnchor()}:${oe}`,0,Me(we[oe].min,we[oe].max,be)));return Oe}])},[v,!0,bt,f,ae,R,p,_,D]),s.useEffect(()=>{F.current?.invalidate()},[_]);const Se=he(xe=>u?u(xe):n.getTextAt(xe),[u,n]),ht=he(xe=>{const{header:we,headerSelect:ie,headerSelectAll:Re,headerHover:Me}=f??{},{range:be,key:Oe,...oe}=xe;return a.jsx(D9,{orientation:T,index:T===B.IRange.Orientation.Column?be.colStart:be.rowStart,isSelected:z,isSelectedAll:W,zoomScale:100*D,headerText:Se,headerStyle:we,headerStyleSelect:ie,headerStyleSelectAll:Re,headerStyleHover:Me,verticalPadding:h,horizontalPadding:g,...oe},Oe)},[_,R,f,D,n]),xt=Wr(),Ne=s.useMemo(()=>{const xe="white",we="black",ie={};if(pn.detectIt().primaryInput!=="touch"){let Re=T===B.IRange.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='${we}' fill='${xe}'/%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='${we}' fill='${xe}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;xt.getMode()?.key==="formatPainter"&&(Re=`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='${we}' fill='${xe}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),ie.cursor=Re}return ie.backgroundColor=f?.header?.fill||"transparent",ie},[T,_,xt,f]),wt=jo(t,()=>({scrollTo:xe=>{F.current?.scrollTo(xe)},forceRender:()=>{P()},getGridElement:()=>F.current}),[]),Ye=s.useCallback(xe=>{gt.onPointerDown(xe)},[gt]),re=s.useCallback(xe=>{const we=gt.getCellCoordsFromClient(xe.clientX,xe.clientY);if(!we||!m)return;const ie=T===B.IRange.Orientation.Column;m({originalEvent:xe,clientX:xe.clientX,clientY:xe.clientY,rowIndex:ie?-1:we.rowIndex,colIndex:ie?we.colIndex:-1}),xe.stopPropagation(),xe.preventDefault()},[gt,m]),Ue=s.useMemo(()=>{const xe=T===B.IRange.Orientation.Column;return a.jsx("div",{ref:wt,children:a.jsx(K1,{className:"sheet-header",style:Ne,ref:F,scrollPoint:A,columnCount:xe?R:1,rowCount:xe?1:R,width:xe?d:l,height:xe?l:c,freezeLeft:xe?p:void 0,freezeTop:xe?void 0:p,hiddenColumnsAt:xe?H:void 0,hiddenRowsAt:xe?void 0:H,showGridLines:!1,layout:ae,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:re,onPointerDown:Ye,zoom:D,cellRenderer:ht,overlays:$})})},[$,ae,d,c,A,Ne,v]);return s.useEffect(()=>{j.current=!1,F.current?.invalidate(),S()},[n,f]),Ue})),vk=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,l=he((u,p)=>u.getStyle().getBorder(),[]),{overlay:d}=N9({getVisibleCells:r,getBorderAt:l,darkMode:i.body.darkMode,shiftIfWide:!0}),c=d(n);return c&&n?c:null})),Sk={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},Ck={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},kk={type:B.ICell.Content.Values},Ek={fitDestination:!0,type:B.ICell.Content.Formats},_k={fitDestination:!0,type:B.ICell.Content.Formulas},Tk={transpose:!0},jk={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},Mk=s.memo(s.forwardRef((e,t)=>{const{view:n,element:o,sheet:r,gridStyle:i,commands:l,notifier:d}=e,c=i.body??{},u=r.getView(),{overlays:p}=(({element:f,sheet:h,sheetView:g,commands:m,onClipboardUpdate:x,onPaste:y,selectionRenderer:w=k9,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:C="rgb(33, 115, 70)",copyBackgroundColor:E="white",cutBackgroundColor:k="white",notifier:M,...T})=>{const F=he(w,[w]),_=s.useRef(null),P=Wr(),v=P.getMode(),S=s.useMemo(()=>({element:f,doCopy:D=>{const L=h.getSelectedRanges().getSnapshot(D);return new B.RangeClipboardItem(L)}}),[h,g,f]),I=s.useMemo(()=>({element:f,importFromExternal:async(D,L)=>{const $=new B.ExternalRangeClipboardItem(D,L,h.getStyles(),h.isDate1904());return await $.parse()?$:null},doPaste:async(D,L)=>{if(D?.getItemType()!=="range")return;L?.contentsOnly&&delete(L={...L,type:B.ICell.Content.Values}).contentsOnly;const $=h.getSelectedRange(),q=D.getItem(),O=q.getName();return await $.doBatch(async()=>{const U=await $.copyFrom(q,L);!U||U.isEntireRows()||U.isEntireColumns()||U.autoFit({orientations:B.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(O?` ${O}`:""),autoSelect:!0}),!0}}),[h,g,M,f]),{clipboard:j,...R}=eh({...T,source:S,commands:m,target:I,notifier:M,onClipboardUpdate:D=>{const L=D?.getItemType()==="range"?D:null;if(L){const $=D.editMode?.(),q={...D?.isCut?.()?Ck:Sk,...$,args:{isClipboard:!0,...$?.args},onModeChange:O=>{O?.args?.isClipboard||j.clear(!0),$?.onModeChange?.(O)}};P.setMode(q)}_.current=L,x?.(L)},onPaste:(D,L)=>{if(D?.getItemType()!=="range")return;let $=P.getMode()?.key==="cut"||D.isCut?.();if(!$&&P.getMode()?.key==="copy"){const q=D.getItem().getCoords(),O=h.getSelectedRanges().getCoords();let U=!1;if(!U&&q&&O&&D.getItem().getSource?.()===h)for(let X=0;!U&&X<O.length;X++)U=bo.isRangesIntersect(q,O[X]);$=U}$&&P.setMode(null),f?.()?.focus(),y?.(D,L)}});s.useMemo(()=>{const D=f;if(!m)return;const L=[new Te("pasteValues",D,{label:"Paste Values",scopedLabels:{paste:"Values"},description:`Paste only the values of the selected cells.
59
-
60
- The formatting is not applied.`,shortcut:{key:"V",modifiers:[Ee.Ctrl,Ee.Shift]}}),new Te("pasteFormats",D,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
61
-
62
- The content is not applied.`}),new Te("pasteFormulas",D,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new Te("pasteTranspose",D,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new Te("pasteLinks",D,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];m.addCommands(L,!0)},[m,f]),s.useEffect(()=>{if(!m)return;const D={disabled:!h.getProtection().isFormatCellsAllowed()};m.getCommand("pasteValues").updateCallback(L=>R.paste({...kk,...L})).update(D),m.getCommand("pasteFormats").updateCallback((L,$)=>R.paste({...Ek,description:$.label(),...L})).update(D),m.getCommand("pasteFormulas").updateCallback((L,$)=>R.paste({..._k,description:$.label(),...L})).update(D),m.getCommand("pasteTranspose").updateCallback((L,$)=>R.paste({...Tk,description:$.label(),...L})).update(D),m.getCommand("pasteLinks").updateCallback((L,$)=>R.paste({...jk,description:$.label(),...L})).update(D),m.getCommand("cut").update(D),m.getCommand("paste").update(D)},[h,m]);const A=s.useMemo(()=>{if(!v||!_.current)return;const D=v.key;if(D!=="copy"&&D!=="cut"&&D!=="formatPainter")return;const L=_.current.getItem();if(L.getSource()!==h)return;const $=_.current.isCut?.(),q=$?k:E,O=$?C:b,U=L.getCoords(),X=U?[U]:null;return X&&X.length!==0?ee=>{const V=[];for(let H=0;H<X.length;H++){const z=X[H],W=ee.toClipBounds(ee.getRangeCoordsBounds(z,{top:0,left:0,right:1,bottom:1}),qo);W&&(V.push(F({range:z,key:`copy-selection-background-${H}`,x:W.x,y:W.y,width:Math.max(W.width,0),height:Math.max(W.height,0),stroke:q,strokeWidth:2})),V.push(F({range:z,key:`copy-selection-foreground-${H}`,x:W.x+(W.width<=2?-1:0),y:W.y,width:Math.max(W.width,3),height:Math.max(W.height,3),stroke:O,strokeWidth:2,isAnimatedStroke:!0})))}return V}:null},[v,h,g,b,E,C,k]);return{...R,clipboard:j,overlays:A}})({element:o,sheet:r,sheetView:u,commands:l,copyForegroundColor:i.selection.strokeFill,copyBackgroundColor:c.fill,cutForegroundColor:i.selectionRemove.strokeFill,cutBackgroundColor:c.fill,notifier:d});return Gt(r?.getSelection(),{onChange(f){}}),s.useEffect(()=>{n?.getStage()},[n?.getStage()]),p&&n?p(n):null})),Rk={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Ik={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Dk={key:"dragCopy",description:"Drag selection to copy cell contents."},Lk={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},b7=(e,t)=>t.ctrlKey&&t.shiftKey?Lk:t.ctrlKey?Dk:t.shiftKey?Ik:Rk,Ok={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},Pk=s.memo(s.forwardRef((e,t)=>{const{view:n,commands:o,className:r,onFirstRender:i,notifier:l,onShowTooltip:d,onCloseTooltip:c,sheet:u,gridRef:p,gridStyle:f,isActive:h,editingCoords:g,...m}=e,x=n?.getBounds(),y=he(d,[d]),w=he(c,[c]),[b,C]=s.useState(()=>u?.getSelection().getCoords()),E=he(Y=>{bo.isEqualSelectionCoords(Y,b)||u&&u.getSelection().updateCoords(Y)},[u,b]),k=Wr(),M=s.useRef(null),[T,F]=s.useState(u?.getProtection().isLocked()),[_,P]=s.useState(u?.getView().getMovableSelection().length>0),v=pn.detectIt().primaryInput==="touch",S=!v&&h,I=g!==null||_,j=he(Y=>{const te=bo.cellToRange(Y);if(u.isClosed())return te;const le=u.getRange(te,{excludeHidden:!0}).getMerges();return le.length===0?te:le[0]},[u]),R=he((Y,te,le,me,J,ae)=>{const ke=u.getSelectedRange().getExtended(me,Y).getCoords();switch(me){case B.IRange.Direction.Up:return ke.rowStart;case B.IRange.Direction.Down:return ke.rowEnd;case B.IRange.Direction.Left:return ke.colStart;case B.IRange.Direction.Right:return ke.colEnd}},[u]),A=he(()=>{const Y=u.getUsedRange()?.getCoords(),te=u.getRowHeaders().getUsedRange()?.getCoords(),le=u.getColumnHeaders().getUsedRange()?.getCoords();return{...Y,colEnd:Math.max(Y?.colEnd??0,le?.max??0),rowEnd:Math.max(Y?.rowEnd??0,te?.max??0)}},[u]),D=he((Y,te)=>u.getRowHeaders().hiddenHeadersAt(Y,te),[u]),L=he((Y,te)=>u.getColumnHeaders().hiddenHeadersAt(Y,te),[u]),$=he(Y=>u.getRange(Y,{excludeHidden:!0}).getMerges(),[u]),q=he(Y=>{u?.getSelection().setAdjusting(Y)},[u]),O=he(async()=>{u?.getSelection().setAdjusting(null),k.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),k.setMode(null))},[k,b,u,o]),U=s.useMemo(()=>{const Y=k.getMode();return Y?.key==="cut"||Y?.key==="copy"},[k]);Gt(u?.getView(),{onMovableSelectionChange:()=>{P(u.getView().getMovableSelection().length>0)}}),Gt(u?.getSelection(),{onChange(Y){const te=u.getSelection().getCoords();C(te)}}),Gt(u,{onProtectionChange:()=>{F(u.getProtection().isLocked())}});const{body:X={}}=f||{},ee=n.getLayout(),V=!(S&&b.ranges.length<=1&&g===null&&!T&&(!k.getMode()||U)),{overlay:H,onPointerDown:z}=R9({gridRef:p,commands:o,layout:ee,getCellCoordsAsRangeCoords:j,selection:b,fillHandleBorderColor:X.fill,selectionBackgroundColor:h?f.selection.fill:f.selectionInactive.fill,selectionBorderColor:h?f.selection.strokeFill:f.selectionInactive.strokeFill,selectionRemoveBackgroundColor:h?f.selectionRemove.fill:f.selectionInactive.fill,selectionRemoveBorderColor:h?f.selectionRemove.strokeFill:f.selectionInactive.strokeFill,disableFillDrag:V,disableMoveDrag:v||!(h&&b.ranges.length<=1&&g===null&&!T),disableTouchSelection:I,onSelectionChange:E,onSelectionDragStart:q,onSelectionDragEnd:O,onMoveDragStart:(Y,te,le)=>{k.setMode(b7(0,le))},onMoveDragUpdate:(Y,te,le)=>{k.setMode(b7(0,le))},onMoveDragEnd:(Y,te)=>{k.setMode(null)},onMoveDragDone:async(Y,te,le)=>{if(bo.isEqualRanges(Y,te))return;const me=u.getRange(te);if(l?.showOptions){const ne=me.getDifferences(Y);let de=!1;for(let ye=0;!de&&ye<ne.getCount();ye++)de=ne.at(ye).isContentful();if(de&&await l?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const J=!le.ctrlKey,ae=le.shiftKey,ke=ae?J?"Insert Moved Cells":"Insert Copied Cells":J?"Move Cells":"Copy Cells",De=await l?.showBusy?.(ke);try{const ne=u.getRange(Y);await me.doBatch(async()=>{ae?await me.insertFrom(Y,{isCut:J,undoRange:ne}):await me.copyFrom(Y,{isCut:J,undoRange:ne}),ne.autoFit({skipCustomSize:!0,orientations:B.IRange.Orientations.Row,minContent:!0}),me.autoFit({skipCustomSize:!0,orientations:B.IRange.Orientations.Row,minContent:!0})},{description:ke,autoSelect:!0})}catch(ne){l?.showError?.(ne)}finally{De?.()}},contentfulCellFinder:R,hiddenRowsAt:D,hiddenColumnsAt:L,mergedRanges:$,getDataCoords:A,canSelectionSpanMergedCells:Y=>{const te=u.getRange(Y);return te.isEntireColumns()||te.isEntireRows()},onFill:async(Y,te)=>{const le="Auto Fill",me=await l?.showBusy?.(le);try{await u.doBatch(()=>{u.getRange(Y).autoFill(te),u.getRange(te).autoFit({orientations:B.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:le,autoSelect:!0})}catch(J){l?.showError?.(J)}finally{M.current=null,me?.()}},onFillPreview:(Y,te,le)=>{if(p.current&&y){k.setMode(Ok);try{M.current?.direction!==le&&(M.current=null,u.getRange(Y).autoFill(te,{previewOnly:ye=>{M.current={callback:ye,direction:le}}}));const me=M.current?.callback?.(te);if(!me||me.isEmpty())return;const J=me.toText();if(!J)return;const ae=bo.cellToRange(me.getCoords()),ke=n.getRelativePointFromClient(0,0);let De=0,ne=0,de=mc;if(le===B.IRange.Direction.Down){De=ee.getColOffset(ae.colEnd+1)-ke.x;const ye=ee.getRowOffset(ae.rowEnd),ze=ee.getRowOffset(ae.rowEnd+1);ne=ze-(ze-ye)/2-ke.y,de=kd}else if(le===B.IRange.Direction.Right){ne=ee.getRowOffset(ae.rowEnd+1)-ke.y;const ye=ee.getColOffset(ae.colEnd),ze=ee.getColOffset(ae.colEnd+1);De=ze-(ze-ye)/2-ke.x,de=mc}else if(le===B.IRange.Direction.Up){De=ee.getColOffset(ae.colEnd+1)-ke.x;const ye=ee.getRowOffset(ae.rowStart),ze=ee.getRowOffset(ae.rowStart+1);ne=ze-(ze-ye)/2-ke.y,de=kd}else if(le===B.IRange.Direction.Left){ne=ee.getRowOffset(ae.rowEnd+1)-ke.y;const ye=ee.getColOffset(ae.colStart),ze=ee.getColOffset(ae.colStart+1);De=ze-(ze-ye)/2-ke.x,de=mc}y({anchor:{x:De,y:ne},display:J,placement:de})}catch(me){l?.showError?.(me)}}},onFillDone:()=>{M.current=null,k.setMode(null),w?.()}}),W=he(Y=>{z(pn.createSyntheticEvent(Y))},[z,g]);s.useEffect(()=>{const Y=n?.getStage();if(Y)return Y.addEventListener("pointerdown",W),()=>{Y.removeEventListener("pointerdown",W)}},[n?.getStage()]);const G=jo(t,()=>({}),[]),Q=s.useRef(null);return a.jsx("div",{className:ar(r,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:x?.width,height:x?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:cl([G,Q]),...m,children:H(n)})})),Cs=Object.freeze({x:0,y:0,width:0,height:0}),Ak={fireOnModelChange:!1},Fk=s.memo(s.forwardRef((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:l,onHide:d,onShow:c,onUnFocus:u,isDragging:p,updateFrameBounds:f,dragStart:h,style:g,disabled:m,renderMovable:x,...y}=e,[w,b]=s.useState(Cs),[C,E]=s.useState(null),[k,M]=s.useState(!1),T=s.useRef(null);s.useLayoutEffect(()=>{if(r.isClosed())return;const _=r.getBounds();if(!_)return;const P=o.toViewBounds(_);b(P??Cs),f(P??Cs)},[o?.getBounds()]),Gt(r,{onBoundsChange:_=>{const P=_.getBounds();if(!P)return;const v=o.toViewBounds(P);b(v??Cs),f(v)},onSelectionChange:()=>{const _=Nt.hasFocus(T.current,!0);!k&&!_||r.isSelected()||u()}}),Gt(r,{onRequestFocus:()=>Nt.whenFocus(T.current,!0)},Ak),s.useEffect(()=>{const _=T.current;return i(_),()=>{l(_)}},[]);const F=s.useMemo(()=>{if(!w)return null;let{width:_,height:P}=w;return x({view:o,movable:r,disabled:m,isDragging:p,style:{position:"relative",left:0,top:0,width:_,height:P},onHide:d,onShow:c})},[o,r,w.width,w.height,m,p]);return a.jsx("div",{className:"movable",tabIndex:0,ref:cl([T,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:w.x,top:w.y,width:w.width,height:w.height,...g},onMouseDown:async _=>{const P=_.shiftKey||_.ctrlKey,v=r.isSelected(),S=_.currentTarget;P&&v?r.unselect():(v&&!P||await r.select({addToSelection:P}),h(_.nativeEvent,S),S.focus())},onFocus:_=>{_.relatedTarget&&!C&&E(_.relatedTarget),M(!0)},onBlur:_=>{C&&!T?.current?.contains(_.relatedTarget)&&E(null),_.relatedTarget&&M(!1)},...y,children:F})})),zk=s.memo(s.forwardRef((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:l,onUnFocus:d,onFocus:c,disabled:u=!1,disableDrag:p=!1,disableResize:f=!1,className:h,style:g,renderDirections:m=["nw","n","ne","w","e","sw","s","se"],onFirstRender:x,...y}=e,w=n.getBounds(),b=he(x,[x]),C=he(d,[d]),E=he(c,[c]),[k,M]=s.useState([]),[T,F]=s.useState(!1),[_,P]=s.useState(!1),v=s.useRef(!0),S=s.useRef(new Map),I=s.useRef(new Map),j=s.useRef(new Map),R=s.useRef(new Map),A=s.useRef(new Map),D=s.useRef({onRequestFocus:Se=>(le(Se),null)}),L=s.useRef(null),$=s.useRef(null),q=s.useRef(null),[O,U]=s.useReducer(Se=>Se+1,0);s.useLayoutEffect(()=>{U()},[n,o]),Gt(o,{onCollectionChange:()=>{const Se=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),ht=A.current;ht.forEach(Ne=>{Ne()}),ht.clear();const xt=D.current;for(let Ne=0;Ne<Se.length;Ne++){const wt=Se[Ne];if(wt.isClosed())continue;const Ye=wt.addListeners(xt);ht.set(wt,Ye)}U()},onInvalidated:()=>{U()}}),Gt(r,{onMovableSelectionChange(Se){ee(),U()}});const X=s.useCallback((Se,ht)=>{const xt=j.current.get(Se);q.current&&(q.current.getTargets().forEach(Ne=>{if(Ne===xt)return Ne.style.left=ht.x+"px",Ne.style.top=ht.y+"px",Ne.style.width=ht.width+"px",void(Ne.style.height=ht.height+"px")}),q.current.updateRect())},[]),ee=()=>{const Se=[],ht=r.getMovableSelection();ht.forEach(xt=>{const Ne=j.current.get(xt);Ne&&ht.indexOf(xt)!==-1&&Se.push(Ne)}),M(xt=>Nt.isEqualArrays(xt,Se)?xt:Se)},V=s.useRef(null),H=s.useMemo(()=>new Promise(Se=>{V.current=Se}),[]),z=s.useRef(null),W=he(async(Se,ht)=>{z.current=ht,await(async()=>!(!await H.then()||!q.current))()&&z.current===ht&&q.current.dragStart(Se,ht)},[k]),[G,Q]=s.useState(!1),Y=s.useRef(null),te=s.useRef(null),le=he(async(Se=null)=>{if(Se||(Se=r.getMovableSelection()[0]),!Se)return C?.(),!1;const ht=j.current.get(Se);ht?(await Nt.whenFocus(ht),ht.focus(),te.current=ht,Y.current=null):Y.current=Se},[r]);s.useEffect(()=>{G&&k.length>0&&te.current!==k[0]&&le(),v.current&&(b?.(),v.current=!1)},[k]);const me=s.useMemo(()=>{const Se=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(Se.length===0&&S.current.size===0)return null;const ht=(re,Ue,xe,we=!0)=>{const ie=re.isSelected(),Re={tabIndex:xe,view:n,movable:re,onRefLoad:Me=>{Y.current===re&&(Me.focus(),te.current=Me,Y.current=null),j.current.set(re,Me),I.current.set(Me,re),Ue.rendered=!0,ee()},onRefUnload:Me=>{j.current.delete(re),I.current.delete(Me),Ue.rendered=!1,ee()},onUnFocus:C,onHide:Me=>{Ue.onHide=Me},onShow:Me=>{Ue.onShow=Me},isDragging:ie&&(_||T),disabled:u,renderMovable:i,updateFrameBounds:Me=>{X(re,Me)},dragStart:W,onMouseUp:()=>{if(z.current=null,$.current){F(!1),P(!1);let Me=!1;R.current?.forEach(be=>{Nt.isEqualBounds(be.movable.getBounds(),be.startBounds)||(Me=!0)}),Me?ae():ke()}},style:{opacity:we?T&&ie?.7:void 0:0,zIndex:T&&ie?re.getZIndex()+Se.length:void 0,pointerEvents:we?void 0:"none",cursor:_&&ie?"grabbing":u||p?"initial":"move",boxShadow:!ie||_&&!T?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return a.jsx(Fk,{...Re},`movable-${re.getUUID()}`)},xt=S.current,Ne=new Map,wt=[];for(let re=0;re<Se.length;re++){const Ue=Se[re];if(Ue.isClosed())continue;let xe=xt.get(Ue);xe||(xe={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(we,ie)=>{if(!ie||ie.shown===!0)return;ie.shown=!0;const Re=++ie.visibilityRequestId;requestAnimationFrame(()=>{const Me=S.current.get(we);Me&&Re===ie.visibilityRequestId&&(ie.onShow?.(we),Me.shown=!0)})},doHide:async(we,ie)=>{if(!ie||ie?.shown===!1)return;ie.shown=!1;const Re=++ie.visibilityRequestId,Me=await Promise.resolve(ie.onHide?.(we));Re===ie.visibilityRequestId&&Me!==!1&&(ie.shown=!1,S.current.delete(we),U())},visibilityRequestId:0}),xe.frame=ht(Ue,xe,re,!0),wt.push(xe.frame),xe.doShow(Ue,xe),xt.delete(Ue),Ne.set(Ue,xe)}const Ye=[];return r.getMovableSelection().forEach(re=>{const Ue=xt.get(re);Ue&&(Ue.frame=ht(re,Ue,-1,!1),Ye.push(Ue.frame),xt.delete(re),Ne.set(re,Ue))}),xt.forEach((re,Ue)=>{re.frame=ht(Ue,re,-1,!1),Ye.push(re.frame),re.doHide(Ue,re),xt.delete(Ue),Ne.set(Ue,re)}),S.current=Ne,ee(),[...Ye,...wt]},[O,n,i,u,p,f,T,_]),J=he((Se,ht)=>{const xt=`${ht} ${k.length===1?B.TextUtils.capitalize(I.current?.get(k[0]).getContent().getType()):"Drawings"}`;$.current&&(console.warn(`Transaction ${$.current.getDescription()} is being replaced by ${xt}`),$.current.rollback(),$.current=null),$.current=l.beginCommit({description:xt}),R.current.clear();for(let Ne=0;Ne<k.length;Ne++){const wt=k[Ne],Ye=I.current?.get(wt);Ye?R.current.set(wt,{movable:Ye,startBounds:n.toViewBounds(Ye.getBounds())}):console.warn("invalid element",Ye)}},[l,n,k]),ae=s.useCallback(()=>{if(!$.current)return;const Se=[];R.current?.forEach(ht=>{Se.push(ht.movable)}),$.current.commit({viewAfter:{view:r,movableSelection:Se}}),R.current.clear(),$.current=null},[]),ke=s.useCallback(()=>{$.current&&($.current.rollback(),$.current=null)},[]),De=s.useRef(null);s.useEffect(()=>{De.current&&(De.current.onscroll=Se=>{Se.preventDefault(),Se.srcElement.scrollTop=0,Se.srcElement.scrollLeft=0})},[De.current]);const ne=jo(t,()=>({isMovableArea:()=>!0,focusMovable:le,focus:()=>{le()}}),[r]),[de,ye]=s.useState(null),ze=s.useRef(!1),$e=s.useRef(!1),gt=s.useRef(!1);s.useEffect(()=>{if(u||k.length===0||gt.current||ze.current)return;if($e.current)return void requestAnimationFrame(()=>{q.current&&L.current&&q.current.refTargets.length>0&&(gt.current=!0,V.current?.(!0)),M([...k])});ze.current=!0;const Se=s.lazy(async()=>{try{const ht=await Promise.resolve().then(()=>require("./D32t9wiFoNX7WVEo.cjs"));return ze.current=!1,$e.current=!0,M([...k]),ht}catch(ht){return console.warn(ht),V.current?.(!1),null}});ye(Se)},[k,u,p,f]);const bt=s.useMemo(()=>!de||u?null:a.jsx(s.Suspense,{children:a.jsx(de,{className:ar({dragging:T||_,resizing:T,moving:_}),container:null,ref:q,target:q.current?k:[],draggable:!u&&!p,resizable:!u&&!f,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:m,onResizeStart:Se=>{J(Se.target,"Resize")},onResize:Se=>{if(!$.current)return Se.stopDrag(),void U();F(!0);const ht=Se.direction[0]!==0&&Se.direction[1]!==0;let xt=0,Ne=0;for(let wt=0;wt<k.length;wt++){const Ye=k[wt],re=R.current.get(Ye),Ue=I.current.get(Ye);if(!re||!Ue){console.warn("invalid element");continue}let xe=Se.dist[0],we=Se.dist[1],ie=Se.drag.dist[0],Re=Se.drag.dist[1],Me=re.startBounds.width,be=re.startBounds.height;wt===0?(xt=Me,Ne=be):(xe*=Me/xt,ie*=Me/xt,we*=be/Ne,Re*=be/Ne);const Oe={...re.startBounds};if(Oe.width=Math.max(0,Me+xe),Oe.height=Math.max(0,be+we),Se.direction[0]===-1&&(Oe.width=Math.max(0,Math.min(re.startBounds.x+Me,Me-ie))),Se.direction[1]===-1&&(Oe.height=Math.max(0,Math.min(re.startBounds.y+be,be-Re))),ht&&(Ue.isLockAspectRatio()||Se.inputEvent?.shiftKey)){const oe=Me/be,Ce=Oe.width/Oe.height;Ce>oe?Oe.height=Oe.width/oe:Ce<oe&&(Oe.width=Oe.height*oe)}Se.direction[0]===-1&&(Oe.x=Math.max(0,Math.min(re.startBounds.x+Me,re.startBounds.x+Me-Oe.width))),Se.direction[1]===-1&&(Oe.y=Math.min(re.startBounds.y+be,re.startBounds.y+be-Oe.height)),re.movable.setBounds(n.toAbsoluteBounds(Oe))}},onResizeEnd:Se=>{F(!1),ae()},onDragStart:Se=>{J(Se.target,"Move")},onDrag:Se=>{if(!$.current)return Se.stopDrag(),void U();P(!0);for(let ht=0;ht<k.length;ht++){const xt=k[ht],Ne=R.current.get(xt);Ne?Ne.movable.setBounds(n.toAbsoluteBounds({...Ne.startBounds,x:Ne.startBounds.x+Se.translate[0],y:Ne.startBounds.y+Se.translate[1]})):console.warn("invalid element")}},onDragEnd:Se=>{},onMouseUp:Se=>{}})}),[O,de,k,n,u,p,f,T,_]);return a.jsx("div",{className:ar(h,"movable-area","_movable-area_314c6_5"),style:{width:w.width,height:w.height,...g,position:"absolute",overflow:"hidden",willChange:"transform"},ref:cl([ne,De]),...y,children:a.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:w.width,height:w.height},...y,children:a.jsxs("div",{ref:L,style:{position:"absolute",pointerEvents:"auto"},onFocus:Se=>{E?.(),Q(!0)},onBlur:Se=>{Q(!1)},onKeyDownCapture:Se=>{if(Se.isDefaultPrevented())return;const ht=Se.nativeEvent.ctrlKey,xt=Se.nativeEvent.altKey,Ne=Se.nativeEvent.shiftKey;if(Se.which===Wt.Escape){const xe=r.getMovableSelection();let we=[...xe];return k.forEach(ie=>{if(we.length===0)return;const Re=I.current.get(ie);let Me=we.indexOf(Re);we.splice(Me,1)}),we.length!==xe.length&&r.selectMovables(we),we.length===0&&C?.(),void Se.preventDefault()}const wt=.1,Ye=xe=>{o.updateSelected(we=>{we.setRotation(we.getRotation()+xe)},"Rotate")},re=(xe,we=!0)=>{o.updateSelected(ie=>{const Re=ie.getBounds();let Me=1+xe;we||(Me=1/Me);const be=Math.sqrt(Math.pow(Re.width,2)+Math.pow(Re.height,2)),Oe=Math.atan2(Re.height,Re.width),oe=Me*be;if(oe<10)return;const Ce=oe*Math.cos(Oe),Le=oe*Math.sin(Oe),qe={x:Re.x+(Re.width-Ce)/2,y:Re.y+(Re.height-Le)/2,width:Ce,height:Le};ie.setBounds(qe)},"Resize")},Ue=xe=>{o.updateSelected(we=>{const ie=we.getBounds(),Re={x:ie.x+(xe.x??0),y:ie.y+(xe.y??0),width:ie.width+(xe.width??0),height:ie.height+(xe.height??0)};we.setBounds(Re)},"Nudge")};if(Se.which===Wt.Delete)o.updateSelected(xe=>{xe.delete()},"Delete"),Se.preventDefault();else if(Se.key==="a"&&ht){const xe=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(xe,!0),Se.preventDefault()}else Se.key==="ArrowLeft"?(Ne?re(wt,!1):xt?Ye(-10):Ue({x:ht?-10:-1}),Se.preventDefault()):Se.key==="ArrowRight"?(Ne?re(wt,!0):xt?Ye(10):Ue({x:ht?10:1}),Se.preventDefault()):Se.key==="ArrowUp"?(Ne?re(wt,!0):Ue({y:ht?-10:-1}),Se.preventDefault()):Se.key==="ArrowDown"&&(Ne?re(wt,!1):Ue({y:ht?10:1}),Se.preventDefault())},children:[me,bt]})})})})),_i=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}},w7=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let l=0,d=Number.MAX_SAFE_INTEGER,c=0;for(let f=0;f<e.length;f++){const h=e[f],g=h.getBounds();l+=g[i],d=Math.min(g[o],d),c=Math.max(g[o]+g[i],c),n.push({bounds:g,movable:h})}const u=(c-d-l)/(e.length-1);n.sort((f,h)=>{const g=f.bounds[o],m=h.bounds[o];return g!==m?g-m:f.bounds[r]-h.bounds[r]});const p=new Map;p.set(n[0].movable,n[0].bounds);for(let f=1;f<n.length-1;f++){const h=n[f-1].bounds,g={...n[f].bounds};g[o]=h[o]+h[i]+u,n[f].bounds=g,p.set(n[f].movable,g)}return p.set(n[n.length-1].movable,n[n.length-1].bounds),p},Bk=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:l,onHide:d,onShow:c,...u}=e;s.useEffect(()=>{},[r]);const p=jo(t,()=>({isEmptyFrame:()=>!0}),[]),[f,{height:h,width:g}]=fi();return a.jsx("div",{...u,ref:cl([p,f]),children:a.jsx("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:a.jsx("div",{style:{textAlign:"center"},children:r})})})})),Nk=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:l,target:d,notifier:c,onRepeatCommandChange:u}=e,p=function(h){const{movables:g,movablesView:m,transactional:x,commands:y,target:w,onRepeatCommandChange:b,notifier:C}=h,E=Wr();s.useRef(E.getMode()).current=E.getMode();const k=he(async(R,A,D=null,L=!0)=>{const $=async()=>{const q=await Promise.resolve(C?.showBusy?.(R.label()));try{await A();const O=D??R?.label?.();if(b){let U=null;R&&O!==!1&&(U=new mt(R.key(),w,{label:O,description:O},$)),b(U)}q?.(),L&&E.setMode(null)}catch(O){q?.(),C?.showError?.(O)}};await $()},[b,C]),[M,T]=s.useReducer(R=>R+1,0),F=he((R,A,D)=>{if(!m)return;const L=m.getMovableSelection();if(L.length===0)return;let $="Drawings";if(L.length===1){const O=L[0];$=B.TextUtils.capitalize(O.getContent().getType())??"Drawing"}const q=`${R.label()} ${$}`;k(R,()=>{let O=null;x&&(O=x.beginCommit(q));const U=m.getMovableSelection();if(U.length===0)return;const X=D?.(U);for(let ee=0;ee<U.length;ee++){const V=U[ee];A(V,X)}O?.commit()})},[m,x]),[_,P]=s.useState(m.getMovableSelection()[0]??null),[v,S]=s.useState(!_||_?.isProtected()),I=s.useMemo(()=>[new Te("moveToFront",w,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){F(this,R=>{R.moveToFront()})}),new Te("moveForward",w,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[Ee.Ctrl]}},function(){F(this,R=>{R.moveForward()})}),new Te("moveToBack",w,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){F(this,R=>{R.moveToBack()})}),new Te("moveBackward",w,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[Ee.Ctrl]}},function(){F(this,R=>{R.moveBackward()})}),new Te("toggleLockAspectRatio",w,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){F(this,R=>{R.setLockAspectRatio(!R.isLockAspectRatio())})}),new Te("formatAnchorTypeTwoCell",w,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(B.IAnchored.Type.TwoCell)})}),new Te("formatAnchorTypeOneCell",w,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(B.IAnchored.Type.OneCell)})}),new Te("formatAnchorTypeAbsolute",w,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){F(this,R=>{R.setAnchorType(B.IAnchored.Type.Absolute)})}),new Te("formatDrawAlignLeft",w,{label:"Align Left",description:"Align the selected drawings to the left."},function(){F(this,(R,A)=>{R.setBounds({x:A.x})},_i)}),new Te("formatDrawAlignCenter",w,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){F(this,(R,A)=>{R.setBounds({x:(A.width-R.getBounds().width)/2+A.x})},_i)}),new Te("formatDrawAlignRight",w,{label:"Align Right",description:"Align the selected drawings to the right."},function(){F(this,(R,A)=>{R.setBounds({x:A.width-R.getBounds().width+A.x})},_i)}),new Te("formatDrawAlignTop",w,{label:"Align Top",description:"Align the selected drawings to the top."},function(){F(this,(R,A)=>{R.setBounds({y:A.y})},_i)}),new Te("formatDrawAlignMiddle",w,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){F(this,(R,A)=>{R.setBounds({y:(A.height-R.getBounds().height)/2+A.y})},_i)}),new Te("formatDrawAlignBottom",w,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){F(this,(R,A)=>{R.setBounds({y:A.height-R.getBounds().height+A.y})},_i)}),new Te("formatDrawDistributeHorz",w,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){F(this,(R,A)=>{R.setBounds(A.get(R))},R=>w7(R))}),new Te("formatDrawDistributeVert",w,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){F(this,(R,A)=>{R.setBounds(A.get(R))},R=>w7(R,!1))}),new Te("formatDrawFlipHorz",w,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new Te("formatDrawFlipVert",w,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new Te("formatDrawGroup",w,{label:"Group",description:"Group the selected drawings into a single drawing."}),new Te("formatDrawUngroup",w,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new Te("formatDrawSwapShapes",w,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new Te("formatDrawSwapShapesHorz",w,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new Te("formatDrawSwapShapesVert",w,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[m,_]);s.useEffect(()=>{},[E]);const j=s.useMemo(()=>{let R=null;return R=y?y.createChildGroup(w,"movable",!1):new ll(w,"movable"),R.addCommands(I,!0),R},[y,I]);return Gt(_,{onAnyChange:()=>{j.getCommand("formatAnchorTypeTwoCell").update({state:_?.getAnchorType()===B.IAnchored.Type.TwoCell}),j.getCommand("formatAnchorTypeOneCell").update({state:_?.getAnchorType()===B.IAnchored.Type.OneCell}),j.getCommand("formatAnchorTypeAbsolute").update({state:_?.getAnchorType()===B.IAnchored.Type.Absolute}),j.getCommand("formatAnchorTypeAbsolute").update({state:_?.getAnchorType()===B.IAnchored.Type.Absolute}),j.getCommand("toggleLockAspectRatio").update({state:_?.isLockAspectRatio()})},onProtectedChange:R=>{S(R.isProtected())},onDelete:()=>{}}),Gt(m,{onMovableSelectionChange:()=>{const R=m.getMovableSelection()[0]??null;P(R),S(!R||R.isProtected()),T()}}),Gt(g,{onCollectionChange:()=>{T()}}),s.useEffect(()=>{const R={disabled:v};j.getCommand("formatAnchorTypeTwoCell").update(R),j.getCommand("formatAnchorTypeOneCell").update(R),j.getCommand("formatAnchorTypeAbsolute").update(R),j.getCommand("toggleLockAspectRatio").update(R);const A=g.getCount(),D=m.getMovableSelection(),L=v||A<=1||D.length===0;let $={disabled:L},q=$;if(!L&&D.length===1){const X=D[0];X.getZIndex()===0&&($={disabled:!0}),X.getZIndex()===A-1&&(q={disabled:!0})}j.getCommand("moveToFront").update(q),j.getCommand("moveForward").update(q),j.getCommand("moveToBack").update($),j.getCommand("moveBackward").update($);const O={disabled:v||D.length<=1};j.getCommand("formatDrawAlignLeft").update(O),j.getCommand("formatDrawAlignCenter").update(O),j.getCommand("formatDrawAlignRight").update(O),j.getCommand("formatDrawAlignTop").update(O),j.getCommand("formatDrawAlignMiddle").update(O),j.getCommand("formatDrawAlignBottom").update(O),j.getCommand("formatDrawFlipHorz").update(O),j.getCommand("formatDrawFlipVert").update(O),j.getCommand("formatDrawGroup").update(O),j.getCommand("formatDrawUngroup").update(O),j.getCommand("formatDrawSwapShapes").update(O),j.getCommand("formatDrawSwapShapesHorz").update(O),j.getCommand("formatDrawSwapShapesVert").update(O);const U={disabled:v||D.length<=2};j.getCommand("formatDrawDistributeHorz").update(U),j.getCommand("formatDrawDistributeVert").update(U)},[M,v,M]),j}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:u,commands:l,target:d,notifier:c});s.useEffect(()=>{n?.getStage()},[n?.getStage()]);const f=s.useMemo(()=>a.jsx(zk,{ref:t,view:n,movables:o.getMovables(),disableResize:!o.getProtection().isObjectsAllowed(),disableDrag:!o.getProtection().isObjectsAllowed(),movablesView:o.getView(),transactional:o,renderMovable:i,...r,onFocus:()=>{p.activate(),r?.onFocus?.()}},"movable-area"),[o,r,l,p]);return f&&n?f:null})),Vk=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:l,setEditingCoords:d,commands:c,notifier:u=Js}=e,p=Wr(),[f,h]=s.useState(null),[g,m]=s.useState(null),[x,y]=s.useState(null),[w,b]=s.useState(null),[C,E]=s.useState(null);s.useLayoutEffect(()=>{if(x===null)return b(null),void E(null);const D=()=>{const L=o.getRange(x).getCell(),$=L.getStyle();let q,O=$.getFill()?.toCSS(r.body.darkMode);O.background!=="none"&&O.background!=="transparent"||(O=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),O.background!=="none"&&O.background!=="transparent"||(O={background:r.body.fill}),b({style:O}),L&&!L.getFormula()&&(q=L?.getRenderHorizontalAlignment()),E(q??rg)};return D(),o.getRange(x).addListener(()=>{D()})},[o,x,r?.body]);const k=he(()=>{let D=g.editState.dirty??"";if(g.editState.dirty!==void 0){const L=B.TextUtils.clampString(D);try{const $=g.sheet.getRange(g.coords),q=`Typing '${L}' into ${$.toString()}`;return $.setValue(D,{description:q,autoFit:!0}),y(null),m(null),p.setMode(null),d(null),!0}catch($){throw u.showError(new Error(`Unable to enter '${L}'.`,{cause:$})),$}}},[o,g,u]),M=he(D=>o.getRange(D).getCell().getExtrusions()??bo.cellToRange(D),[o]);he(D=>{let L=B.IRange.Orientation.Row,$=!1;D!==B.IRange.Direction.Up&&D!==B.IRange.Direction.Down||(L=B.IRange.Orientation.Column),D!==B.IRange.Direction.Left&&D!==B.IRange.Direction.Up||($=!0),o.getSelection().traverse(L,$)},[o]);const T=s.useCallback((D,L)=>{if(i)return i(D,L);if(!o)return null;const{ref:$,...q}=D;return a.jsx(A9,{ref:$,...q,sheet:o,bodyStyle:r?.body,activeCoords:L,commands:c,onChangeEdit:O=>{const U={sheet:o,coords:L,editState:O};p.setMode(X=>({...X,description:U.editState.editMode?"Edit":"Enter",args:{...X?.args,stateAndCoords:U}}))},editState:g.editState})},[o,w,i,g,x]),{overlay:F,startEdit:_,submitEdit:P,cancelEdit:v,onKeyboardEventNative:S,onPointerEventNative:I}=BC({view:n,activeCoords:f,getCellEditor:T,canEdit:()=>{const D=o.getProtection();if(D.isReadOnly())return!1;const L=D.isLocked();return L&&l(),!L},onBeforeStartEdit:D=>{const L=F9(()=>o.getRange(D).getCell()),$={sheet:o,coords:D,editState:Object.freeze(L)};p.setMode({key:"edit",args:{stateAndCoords:$}}),m($)},onStartEdit:D=>{y(D),d(D)},onSubmitEdit:k,onCancelEdit:D=>{y(null),m(null),p.setMode(null),d(null)},onDoneEdit:D=>{p.setMode(null)},containerProps:w,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:C,getRangeCoords:M});Gt(o.getSelection(),{onChange(D){h(o.getSelection().getCoords().cell)}});const j=he(D=>{I(D),x&&P()},[I,v,x]),R=s.useCallback(D=>{I(D)},[I]),A=s.useCallback(D=>{S(D)},[S]);return s.useEffect(()=>{const D=n?.getStage();if(D)return D.addEventListener("pointerdown",j),D.addEventListener("dblclick",R),D.addEventListener("keydown",A),()=>{D.removeEventListener("pointerdown",j),D.removeEventListener("dblclick",R),D.removeEventListener("keydown",A)}},[n?.getStage()]),s.useEffect(()=>{const D=p.getMode(),L=D?.key;L==="edit"||L==="enter"?g?D.args?.cancel?v():D.args?.submit?P():m(D.args?.stateAndCoords):_(D.args?.start):x&&v()},[p]),F(n,t)})),H9="white",$9="black",Hk=`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='${$9}' fill='${H9}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,$k=`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='${$9}' fill='${H9}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,Wk=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o}=e,[r,i]=s.useState(o.getTables().getCount()>0),[l,d]=s.useState(null),[c,u]=s.useState(null),[p,f]=s.useState(null),[h,g]=s.useState(null),m=he(()=>{if(o.getTables().getCount()>0){i(!0);const k=o.getTables().search({address:n.getVisibleRangeCoords()});d(k.length>0?k:null)}else i(!1),d(null)},[o,n]),x=he(k=>{k.preventDefault(),k.stopPropagation();const M=n.getCellCoordsFromClient(k.clientX,k.clientY),T=o.getTables().search({address:M});T.length===1&&T[0].select()},[n,o]),y=he(k=>{k.preventDefault(),k.stopPropagation();const M=n.getCellCoordsFromClient(k.clientX,k.clientY),T=o.getTables().search({address:M});if(T.length===1){const F=T[0].getRange().getCoords(),_={colStart:F.colStart,rowStart:M.rowIndex,colEnd:F.colEnd,rowEnd:M.rowIndex};o.getRange(_).select()}},[n,o]),w=he(()=>{if(!r)return;const k=o.getTables().search({address:n.getVisibleRangeCoords()});d(k.length>0?k:null)},[o,r,n]);Gt(o?.getSelection(),{onChange(k){u(o.getSelection().getCoords().cell)}}),Gt(p,{onAnyChange(k){m(),w()}}),Gt(h,{onAnyChange(k){w()}}),Gt(o,{onTablesChange(k){m(),w()},onInvalidated(k){m(),w()}});const b=s.useMemo(()=>Nt.debounce(Nt.throttle(w,300),300),[]);s.useEffect(()=>{b()},[n]),s.useEffect(()=>{let k=null;if(l)for(let M=0;M<l.length&&!k;M++){const T=l[M],F=T.getRange().getCoords();B.CoordUtils.isCellWithinRange(c,F)&&(k=T)}f(k)},[c,l]);const C=he(k=>{let M=null;if(l)for(let T=0;T<l.length;T++){const F=l[T],_=F.getRange().getCoords();let P=n.getRangeCoordsBounds(_);const v=n.getRelativePointFromClient(k.clientX,k.clientY),S=v.x,I=v.y;if(S>=P.x&&S<=P.x+P.width&&I>=P.y&&I<=P.y+P.height){const j=n.getViewportSize();S<=0||I<=0||S>=j.width||I>=j.height||(M=F)}}g(M)},[n,l]);if(s.useEffect(()=>{const k=n?.getStage();if(k&&l)return k.addEventListener("mousemove",C),k.addEventListener("mouseleave",C),()=>{k.removeEventListener("mousemove",C),k.removeEventListener("mouseleave",C)}},[l,n?.getStage()]),!n||!l||l.length===0)return null;const E=[];for(let k=0;k<l.length;k++){const M=l[k];if(M.isClosed())continue;const T=M===h,F=M===p,_=M.getRange().getCoords(),P=n.getRangeCoordsBounds(_);let v;if(T||F){const S=M.getStyle().getProperties(),I=S.headerRow?.fill?.background??S.wholeTable?.border?.top?.color?.toString();if(I&&o){const j=o.getStyles().parseColor(I);j&&(v=j.toCSS())}v||(v="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}E.push(a.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:P.height,pointerEvents:"all",cursor:Hk},onMouseDown:y},`table-select-row-${M.getName()}`)),E.push(a.jsx("div",{style:{position:"absolute",left:P.x,top:P.y,width:Math.min(16,P.width),height:Math.min(16,P.height),pointerEvents:"all",cursor:$k},onMouseDown:x},`table-select-${M.getName()}`)),E.push(a.jsx(G1,{x:P.x,y:P.y,width:P.width,height:P.height,range:_,strokeWidth:F?.5:0,stroke:v??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:T?`${v} 0px 0px 1px 1px`:void 0}},`table-outline-${M.getName()}`))}return E})),Uk=s.memo(s.forwardRef((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,l]=s.useState(null),[d,c]=s.useState(null),u=s.useRef(null),p=he(()=>{const y=o.getSelectedCell(),w=y.getSpill()?.getCoords()??null;bo.isEqualRanges(w,i)||(c(w?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(w),coords:w}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),l(w))},[o,n,i]);s.useEffect(()=>(u.current&&(clearTimeout(u.current),u.current=null),d&&(u.current=setTimeout(()=>{c(null),u.current=null},r)),()=>{u.current&&(clearTimeout(u.current),u.current=null)}),[d,r]);const f=s.useMemo(()=>Nt.debounce(Nt.throttle(p,80),80),[]);if(Gt(o?.getSelection(),{onChange(y){f()}}),Gt(o,{onSpillsChange(y){p()},onInvalidated(y){p()}}),!n||!i&&!d)return null;const h=o.getRange(i).getValue()instanceof B.FormulaError.Spill,g=[];let m=d?.bounds??n.getRangeCoordsBounds(i);if(d&&!Nt.isEqualBounds(d.bounds,n.getRangeCoordsBounds(d.coords))&&c(null),m=n.toClipBounds(m,-10),!m)return;const x="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return g.push(a.jsx(G1,{x:m.x,y:m.y,width:m.width,height:m.height,range:i,strokeWidth:1,stroke:x,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:h?"6 3":void 0,opacity:d?.transition==="out"?0:1,transition:d?.transition?d.transition==="in"||d.transition==="out"?`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:`${x} 0px 0px 4px 0px`}},"spill-outline}")),g})),qk={position:"absolute",top:0,left:0,bottom:0,right:0},v7=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},l=n.body=Nt.mergeContentful(e.body,i);return n.body=Nt.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},l),n.buttonSurface=Nt.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=Nt.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Nt.mergeContentful(n.header,i),n.headerSelect=Nt.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Nt.mergeContentful(n.headerSelect,i),n.headerSelectAll=Nt.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Nt.mergeContentful(n.headerSelectAll,i),n},Zk={fireOnModelChange:!1},S7={},W9=s.memo(s.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=S7,headersStyle:r=S7,onSheetContextMenu:i,showColumnHeaders:l,columnHeaderProps:d,showRowHeaders:c,rowHeaderProps:u,showScrollbars:p=!0,scrollPaneProps:f,onViewportChange:h,commands:g,onRepeatCommandChange:m,onMoveCell:x,overlays:y,renderMovable:w,viewportComponent:b,onElementLoad:C,getCellEditor:E,onFocus:k,onBlur:M,style:T=pn.EmptyCssProperties,notifier:F,onShowTooltip:_,onShowColumnTooltip:P,onShowRowTooltip:v,onCloseTooltip:S,gridProps:I,cellRenderProps:j,...R}=e;if(s.useEffect(()=>{B.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[A,D]=s.useReducer(Ie=>Ie+1,0),[L,{width:$,height:q}]=fi(),O=he(_,[_]),U=he(P,[P]),X=he(v,[v]),ee=he(S,[S]),V=s.useRef(!1);s.useLayoutEffect(()=>{V.current=!0},[n]);const H=n?.getStyles(),z=s.useMemo(()=>v7(o,H),[o,H]),W=s.useMemo(()=>v7(r,H),[r,H]),{body:G={},buttonSurface:Q={}}=z,{header:Y={},headerSelect:te={},headerSelectAll:le={}}=W,me=s.useRef(null),[J,ae]=s.useState(()=>n?.getView()),ke=(J?.getZoomScale()??100)/100,De=s.useMemo(()=>({vertical:J.isShowColumnGridlines()&&ke>=.4,horizontal:J.isShowRowGridlines()&&ke>=.4}),[J?.isShowColumnGridlines(),J?.isShowRowGridlines(),ke]),ne=s.useMemo(()=>{if(J?.getGridLineColor())return{strokeDasharray:"1,1"}},[J?.getGridLineColor(),z]),de=l??J?.isShowColumnHeaders(),ye=c??J?.isShowRowHeaders(),[ze,$e]=s.useState({width:0,height:0}),gt=s.useMemo(()=>{let Ie=40,se=20;const lt=n?.getStyles().getNormal().getFont();if(ze.width>0&&ze.height>0){const ft=lt?.toCSS()?.fontFamily??z.header.text.fontFamily,Z=lt?.getSize()??z.header.text.fontSize,K=B.IFont.getSharedMeasurer()(""+ze.height,Math.ceil(Z*B.IFont.getDeviceScale()),ft);Ie=K.width,se=K.lineHeight}return{width:Math.round(Ie+5),height:Math.round(se+3)}},[ze,z?.header.text,n]),bt=ye?ke*gt.width:Y.edgeStrokeWidth,Se=de?ke*gt.height:Y.edgeStrokeWidth,ht=Math.max($,(n?.getColumnHeaders().getDefaultSize()??gt.width)+bt+1),xt=Math.max(q,(n?.getRowHeaders().getDefaultSize()??gt.height)+Se+1),Ne=s.useRef(new Map),wt=s.useRef(null),Ye=()=>({getColOffset:Ie=>n.getColumnHeaders().findOffset(Ie),getColIndex:Ie=>n.getColumnHeaders().findIndex(Ie),getRowOffset:Ie=>n.getRowHeaders().findOffset(Ie),getRowIndex:Ie=>n.getRowHeaders().findIndex(Ie)}),[re,Ue]=s.useState(()=>Ye()),[xe,we]=s.useState(!1),[ie,Re]=s.useState(null),Me=!0,be=z.selection?.strokeFill,Oe=s.useCallback(()=>Do.current,[]),[oe,Ce]=s.useState(),Le=he(Ie=>{Ce(Ie),n&&n.getView()&&n.getView().setTopLeft(Ie?{left:Ie.left,top:Ie.top}:null),h?.(Ie)},[n,h]),qe=s.useRef(null);s.useEffect(()=>{if(!oe||!n)return;const Ie=n.getRangeAtBounds({x:oe.left,y:oe.top,width:oe.width,height:oe.height});qe.current?.(),qe.current=Ie.addListener(()=>{const se=Ie.getCoords();me?.current?.invalidate(se)})},[oe,n]);const[pt,ot]=s.useState(()=>n?.getView().getTopLeft()),We=he(Ie=>{const se=bo.cellToRange(Ie);if(n.isClosed())return se;const lt=n.getRange(se,{excludeHidden:!0}).getMerges();return lt.length===0?se:lt[0]},[n]),st=Ie=>{if(!Ie||Ie.coords.colIndex===0&&Ie.coords.rowIndex===0)return null;const se={};return Ie.coords.colIndex>0&&(se[so.Left]={index:Ie.coords.colIndex,scrollOffset:Ie.topLeft.left}),Ie.coords.rowIndex>0&&(se[so.Top]={index:Ie.coords.rowIndex,scrollOffset:Ie.topLeft.top}),se},[Xe,Qe]=s.useState(()=>st(n.getView().getFreezePanes())),kt=Wr(),Vt=s.useCallback(()=>me.current,[]),ct=he(Ie=>{kt.setMode(se=>se?.key==="edit"?{...se,args:{...se.args}}:{key:"edit",args:{stateAndCoords:null,start:Ie}})},[]),Ut=he(()=>oe,[oe]),Qt=function(Ie){const{sheet:se,onRepeatCommandChange:lt,bodyStyle:ft,commands:Z,target:K,notifier:ce,onStartEdit:fe,getViewport:Pe}=Ie,[Ke,Be]=s.useState(null),[Ct,Rt]=s.useState(null),jt=s.useRef(null),Pt=he(fe,[fe]),cn=he(Pe,[Pe]),[Dt,Ot]=s.useState(),[Ln,at]=s.useState(()=>se?.getStyles().parseColor(B.IColor.Scheme.Bg2)),[Kt,Kn]=s.useState(()=>se?.getStyles().getNormal().getFont().getFill()),Bt=Wr();s.useRef(Bt.getMode()).current=Bt.getMode();const tn=Q8(),[In,tr]=s.useState(Nt.EmptyArray),b0=s.useCallback(()=>{if(jt.current!==se)return;const ue=se.getSelectedRanges();let Ae=null;In.length>0&&bo.isCellWithinRange(Ke,In[0].getRange().getCoords())&&(Ae=In[0]);const Ge=se?.getSelectedCell(),_e=Ge?.getCoords()??null;wo.unstable_batchedUpdates(()=>{ic(Ae),Be(_e),Rt(ue)})},[se,In,Ct,Ke]),$a=s.useCallback(Nt.debounce(b0,210),[b0]);s.useEffect(()=>{jt.current=se,b0()},[se]);const Mo=he(()=>se.getRange(Ke).getCell(),[se,Ke]),uo=he(async(ue,Ae,Ge=null,_e=!1,Je=!0)=>{const nt=ue?.label?.(),nn=async()=>{const Yt=await Promise.resolve(Je&&ce?.showBusy?.(nt??"Busy..."));try{await se.doBatch(async()=>Ae(se),nt),_e&&Bt.setMode(null),Yt&&Yt()}catch(Vn){if(Yt&&Yt(),!Vn)return;ce?.showError?.(Vn)}},on=[];let Zt=!1;const dn=async()=>(on.push(nn),(async()=>{if(!Zt){for(Zt=!0;on.length>0;){const Yt=on.shift();Yt&&await Yt()}Zt=!1}})());if(lt){let Yt=null;if(Ge!==!1&&ue){const Vn=Ge??nt;Yt=new mt(ue.key(),K,{label:Vn,description:Vn},dn)}lt(Yt)}return dn()},[se,lt,ce]),At=he((ue,Ae,Ge=!1,_e)=>uo(ue,Je=>{const nt=Je.getSelectedRanges();Ge&&nt.updateStyle(null,_e),nt.updateStyle(Ae,_e),nt.autoFit({expandOnly:B.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[se]),qu=he((ue,Ae,Ge)=>{uo(ue,_e=>{let Je=Ae;(Ge||Ae?.address)&&(Je=Je??{},!Ge&&Ae?.address?.startsWith("#")?Ge=Ae?.address.substring(1):Ge&&(Je.displayText=Ge)),_e.getSelectedRange().setHyperlink(Je)})},[se]),Zu=he((ue,Ae)=>{uo(ue,Ge=>{Ge.getSelectedRange().setComments(Ae)})},[se]),hl=he((ue,Ae)=>{uo(ue,Ge=>{Ge.getSelectedRanges().clear(Ae)})},[se]),$0=he(async(ue,Ae,Ge=!1,_e=!1)=>uo(ue,async Je=>{let nt=Je.getSelectedRanges();Ge&&(Ae===B.IRange.Orientation.Row?nt=nt.getEntireRows(_e):Ae===B.IRange.Orientation.Column&&(nt=nt.getEntireColumns(_e)));let nn=null;const on=Bt.getMode()?.key;if(on==="copy"||on==="cut"){const Zt=await tn.getClipboard().readReference();Zt&&Zt.getItemType()==="range"&&(nn=Zt.getItem(),nn.getCoords()||(nn=null))}if(nn){const Zt=await nt.insertFrom(nn,{...nn.getMarkOptions(),orientation:Ae,autoSelect:!0});!Zt||Zt.isEntireRows()||Zt.isEntireColumns()||Zt.autoFit({orientations:B.IRange.Orientations.Row,minContent:!0}),Bt.setMode(null)}else nt.insert(Ae,{autoSelect:!0})},"Insert Cells",!1),[Bt]),[a0,ic]=s.useState(null),Em=he(ue=>se.getStyles().setDefaultTableStyle(ue),[se]),_m=he(ue=>{se.getStyles().getTableStyle(ue)?.delete()},[se]),pl=he((ue,Ae)=>{uo(ue,async Ge=>{const _e=Ge.getSelectedRange(),Je=Ge.getSelectedCell().getCoords();let nt=null,nn=0;const on=Je.rowIndex>0?Ge.getRange({rowIndex:Je.rowIndex,colIndex:Je.colIndex}).getExtended(B.IRange.Direction.Up):null;on&&Ge.getRange({colStart:Je.colIndex,rowStart:on.getCoords().rowStart,colEnd:Je.colIndex,rowEnd:on.getCoords().rowStart}).isContentful()&&(nt=B.IRange.Direction.Up,nn=Je.rowIndex-on.getCoords().rowEnd);const Zt=Je.colIndex>0?Ge.getRange({rowIndex:Je.rowIndex,colIndex:Je.colIndex-1}).getExtended(B.IRange.Direction.Left):null;if(Zt&&Ge.getRange({colStart:Zt.getCoords().colStart,rowStart:Je.rowIndex,colEnd:Zt.getCoords().colStart,rowEnd:Je.rowIndex}).isContentful()){const Yt=Je.colIndex-Zt.getCoords().colEnd;(Yt<nn||!nt)&&(nt=B.IRange.Direction.Left,nn=Yt)}let dn=null;if(nt===B.IRange.Direction.Up){if(dn={...on.getCoords()},(dn.rowEnd===Je.rowIndex||!Ge.getRange({colIndex:Je.colIndex,rowIndex:Je.rowIndex-1}).isContentful())&&dn.rowStart>0&&Ge.getRange({colIndex:Je.colIndex,rowIndex:dn.rowStart-1}).isContentful()){const Yt=on.getExtended(B.IRange.Direction.Up);dn={colStart:Je.colIndex,rowStart:Yt.getCoords().rowStart,colEnd:Je.colIndex,rowEnd:on.getCoords().rowEnd}}dn.rowEnd=Je.rowIndex-1}else if(nt===B.IRange.Direction.Left){if(dn={...Zt.getCoords()},(dn.colEnd===Je.colIndex||!Ge.getRange({colIndex:Je.colIndex-1,rowIndex:Je.rowIndex}).isContentful())&&dn.colStart>0&&Ge.getRange({colIndex:dn.colStart-1,rowIndex:Je.rowIndex}).isContentful()){const Yt=Zt.getExtended(B.IRange.Direction.Left);dn={colStart:Yt.getCoords().colStart,rowStart:Je.rowIndex,colEnd:Yt.getCoords().colEnd,rowEnd:Je.rowIndex}}dn.colEnd=Je.colIndex-1}if(_e.size!==1&&nt){const Yt=_e.getCoords(),Vn=_e.startIncrementalUpdates({orientation:B.IRange.Orientation.Column}),oo={...dn},No=Yt.rowStart,Fr=Yt.rowEnd,zr=Yt.colStart,Br=Yt.colEnd,nr=nt===B.IRange.Direction.Up;for(let Oo=zr;Oo<=Br;Oo++){oo.colStart=nr?Oo:dn.colStart+(Oo-zr),oo.colEnd=nr?Oo:dn.colEnd+(Oo-zr);for(let ho=No;ho<=Fr;ho++){oo.rowStart=nr?dn.rowStart+(ho-No):ho,oo.rowEnd=nr?dn.rowEnd+(ho-No):ho;const Cr=Ge.getRange(oo).toString();Vn.pushAt(ho,Oo,`=${Ae}(${Cr})`)}}Vn.apply()}else{const Yt=dn?Ge.getRange(dn).toString():"",Vn=`=${Ae}(`;Pt?.({text:`${Vn}${Yt})`,editMode:!0,initialSelection:{start:Vn.length,end:Vn.length+Yt.length}})}},!1)},[se]),Wa=he((ue,Ae,Ge=!1,_e=!0)=>{uo(ue,async Je=>{let nt=null;if(a0)return void a0.updateStyleOptions(Ae);{const Zt=Je.getSelectedRanges().getFixed(!0),dn=Je.getSelectedRange().getDefaultSortCriteria();let Yt={ranges:Zt,hasHeader:dn?.options?.hasHeader??!1};nt=_e?new Promise((Vn,oo)=>{const No={tableOptions:Yt,onCancel:()=>{oo()},onDone:Fr=>{Vn(Fr)},context:{getNames:()=>Je.getNames()}};ce.showWindow?.("tableNew",No)}):{option:"Ok",tableOptions:Yt}}const nn=await Promise.resolve(nt);if(nn?.option!=="Ok")throw null;const on=await Promise.resolve(ce?.showBusy?.(ue.label()));try{await Je.getTables().add(nn.tableOptions.ranges.at(0),{styleName:Ae?.name,clearFormatting:Ge,hasHeader:nn.tableOptions.hasHeader}).getRange().select()}catch(Zt){on(),ce?.showError?.(Zt)}on()},!1,!0,!1)},[a0]),Gu=he(()=>ft,[ft]),Ku=he(ue=>({styles:()=>se.getStyles(),table:()=>ue,bodyStyle:Gu,getNames:()=>se.getNames()}),[se]),Tm=he(async(ue,Ae,Ge,_e=!0)=>{let Je=null;if(!Ae){let nt=se.getSelectedRange();nt.size===1&&(nt=nt.getSurrounding());let nn=se.getTables().search({address:se.getSelectedRange()});nn.length>0&&(Ae=nn[0]),await nt.select()}if(Ae){if(_e){try{Ge&&await Ae.select()}catch{}Je=new Promise(async(nt,nn)=>{ue.update({context:Ku(Ae)});const on={command:ue,commands:pe,notifier:ce,onDone:dn=>{nt(dn)}},Zt=await ce.showWindow?.("tableDetails",on,{disableAutoDestroy:!0});setTimeout(()=>{Zt.focus()},180)})}Promise.resolve(Je).then(nt=>{},nt=>{ce?.showError?.(nt)})}},[ce]),Xu=he(async(ue,Ae,Ge=!1)=>{let _e=null;if(Ae)Ae.isITable?_e=Ae:Ae.getValue()&&(_e=Ae.getValue());else{const Je=se.getTables().search({address:se.getSelectedRange()});Je.length>0&&(_e=Je[0])}if(_e){if(!Ge){const Je=_e.getRange().getCoords(),nt=(Je.colEnd-Je.colStart+1)*(Je.rowEnd-Je.rowStart+1);if(nt>1e4&&await ce?.showOptions({title:"Confirm",description:`Converting a table to range with '${nt}' cells will set a large number of cell styles and may affect performance.
63
- Continue?`,options:["Convert","Cancel"],defaultOption:"Convert"})!=="Convert")return}uo(ue,async()=>{Ge?_e.delete():_e.convertToRange()},!1,!0)}},[ce]),lc=he((ue,Ae,Ge)=>{uo(ue,async _e=>{let Je=_e.getSelectedRanges();if(Je.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let nt=Je.at(0);nt.size===1&&(nt=nt.getSurrounding());const nn=_e.getSelection().getCoords().cell;let on=nt.getDefaultSortCriteria(B.IRange.Orientation.Row,nn);if(!on){if(Ge)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let Zt=on.options;if(Ge&&(Zt=new Promise((Yt,Vn)=>{const oo={range:nt,options:on.options,cell:nn,onCancel:()=>{Vn()},onDone:No=>{No?Yt(No.options):Vn()}};ce.showWindow?.("sort",oo)})),Zt=await Promise.resolve(Zt),!Zt)return;const dn=await Promise.resolve(ce?.showBusy?.(ue.label()));try{nt.doBatch(()=>{const Yt={...Zt,...Ae};nt.sort(Yt),nt.autoFit({orientations:Yt?.orientation===B.IRange.Orientation.Column?B.IRange.Orientations.Column:B.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},ue?.label?.())}catch(Yt){dn(),ce?.showError?.(Yt)}dn()},!1,!1,!1)},[ce]),jm=he(()=>{console.log("compactedSelection");const ue=se.getSelection().getCoords(),Ae=se.getSelectedRanges().getFlattened().getCoords(),Ge=(()=>{const nt=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),nn=URL.createObjectURL(nt),on=new Worker(nn);return URL.revokeObjectURL(nn),on})();setTimeout(()=>{Ge.terminate(),console.log("Worker terminated")},5e3);let _e=-1;for(let nt=0;_e===-1&&nt<Ae.length;nt++)bo.isCellWithinRange(ue.cell,Ae[nt])&&(_e=nt);if(bo.isEqualRangesArrays(ue.ranges,Ae))return;const Je={cell:ue.cell,ranges:Ae,rangeIndex:_e};se.getSelection().updateCoords(Je)},[se]),Mm=he(()=>{console.log("selectComments")},[se]),Yu=he(async(ue=!1,Ae=!1)=>{let Ge=null;if(Ae)Ge=se.getEntireRange();else{const _e=se.getSelectedRange();if(_e.isEntireRange()){const Je=se.getSelection().getCoords().cell,nt=se.getRange(Je);Ge=nt.getSurrounding(),Ge.isEntireRange()&&(Ge=nt)}else Ge=_e.getSurrounding({contentOnly:ue})}Ge&&await Ge.select()},[se]),fl=he((ue,Ae,Ge)=>{uo(ue,async _e=>{let Je=_e.getSelectedRanges();Ge&&(Ae===B.IRange.Orientation.Row?Je=Je.getEntireRows():Ae===B.IRange.Orientation.Column&&(Je=Je.getEntireColumns())),Je.delete(Ae)},"Delete Cells")},[se]);he(async ue=>{let Ae=null;const Ge=cn(),_e=Math.min(Ge.width-8,480),Je=Math.min(Ge.height-8,288);try{se.getSelectedRanges(),Ae=await se.getMovables().add({bounds:{x:Ge.left+(Ge.width-_e)/2,y:Ge.top+(Ge.height-Je)/2,width:_e,height:Je},type:"chart",json:ue.template}),Ae.select(),Bt.setMode(null)}catch(nt){ce?.showError?.(nt)}return Ae},[se,ce]);const Ju=he(async(ue,Ae,Ge)=>{const _e=await ce?.showBusy?.(ue.label());try{const Je=await se.getMovables().addImage(Ae,{autoSelect:!0,...Ge});return _e(),Bt.setMode(null),Je}catch(Je){_e();let nt=Je;typeof nt!="string"&&(console.warn(Je),nt="Unable to resolve image."),ce?.showMessage?.(nt,{type:i0.Error})}},[se,ce]),Ua=he((ue,Ae)=>{uo(ue,async Ge=>{const _e=Ge.getSelectedRanges();_e.doBatch(()=>{const Je=Ae===B.IRange.Direction.Up||Ae===B.IRange.Direction.Down,nt=_e.getCoords().slice().sort(bo.createRangeComparator(Je?B.IRange.Orientation.Row:B.IRange.Orientation.Column));for(let nn=0;nn<nt.length;nn++){const on=nt[nn];let Zt=on;const dn=Ge.getRange(Zt).getMerges();let Yt=0,Vn=0;if(dn.length>0){const oo=dn[0];Yt=oo.rowEnd-oo.rowStart,Vn=oo.colEnd-oo.colStart}Ae===B.IRange.Direction.Left?Zt={...on,colStart:on.colEnd+Vn}:Ae===B.IRange.Direction.Right?Zt={...on,colEnd:on.colStart+Vn}:Ae===B.IRange.Direction.Up?Zt={...on,rowStart:on.rowEnd+Yt}:Ae===B.IRange.Direction.Down&&(Zt={...on,rowEnd:on.rowStart+Yt}),Ge.getRange(Zt).autoFill(on,{filler:B.AutoFill.Types.Copy}),Ge.getRange(on).autoFit({orientations:B.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:ue.label()})})},[ce]),Rm=he(()=>{let ue=null;const Ae=se.getSelectedCell().getCoords();if(Ae?.rowIndex>0){const Ge=se.getRange({rowIndex:Ae.rowIndex-1,colIndex:Ae.colIndex}).getCell();Ge&&(ue=Ge.toTextUnformatted(!0))}Pt?.({text:ue})},[se]),[ml,Im]=s.useReducer(ue=>ue+1,0),[qa,xi]=s.useReducer(ue=>ue+1,0),Qu=s.useMemo(()=>[new Te("gridlinesToggle",K,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new Te("sheetViewToggleGridlinesRows",K,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new Te("sheetViewToggleGridlinesColumns",K,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new Te("sheetViewFormatGridlinesColor",K,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new Te("sheetViewToggleShowHeadings",K,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new Te("sheetViewToggleShowHeadingRows",K,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new Te("sheetViewToggleShowHeadingColumns",K,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new Te("sheetViewToggleShowHeadingsNumeric",K,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[Ee.Ctrl,Ee.Shift]}}),new Te("sheetViewToggleFormulaView",K,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[Ee.Ctrl]},{key:"`",modifiers:[Ee.Ctrl,Ee.Shift]}]}),new Te("sheetViewToggleShowZeros",K,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new mt("selectComments",K,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[Ee.Ctrl,Ee.Shift]}},()=>Mm()),new Te("selectAll",K,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[Ee.Ctrl]},{key:"Space",modifiers:[Ee.Ctrl,Ee.Shift]}]},(ue=!1)=>Yu(!1,ue)),new mt("selectRegion",K,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[Ee.Ctrl,Ee.Shift]}},()=>Yu(!0,!1)),new mt("breakSelection",K,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[Ee.Ctrl,Ee.Alt]}},()=>jm()),new mt("formatTextRotate0",K,{label:"No Text Rotation",description:"Remove all text rotation."}),new mt("formatTextRotate45",K,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new mt("formatTextRotate90",K,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new mt("formatTextRotate270",K,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new mt("formatTextRotate315",K,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new Te("formatTextRotateCustom",K,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new mt("formatTextRotateVertical",K,{label:"Vertical Text",description:"Stack text vertically."}),new mt("sortAscending",K,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){lc(this,{reverse:!1},!1)}),new mt("sortDescending",K,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){lc(this,{reverse:!0},!1)}),new mt("sortCustom",K,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){lc(this,{},!0)}),new Te("protectionSheetToggle",K,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:`Prevent unwanted changes from others by limiting their ability to edit.
64
- For example, you can prevent people from editing locked cells or making formatting changes.`}),new Te("formatSheetTabColor",K,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new Te("formatCellStyle",K,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(ue){At(this,{named:ue.getName()},!0)}),new Te("formatTableStyle",K,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(ue){Wa(this,ue)}),new Te("formatTableStyleClearCellStyles",K,{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(ue){Wa(this,ue,!0)}),new Te("formatTableStyleClearTableStyle",K,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){Wa(this,{name:null},!0)}),new Te("setDefaultTableStyle",K,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},Em),new Te("deleteTableStyle",K,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},_m),new Te("formatBorder",K,{label:"Border",description:"Create an outline border."},function(ue){At(this,{border:ue})}),new Te("formatFillColor",K,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(ue){At(this,{fill:ue})}),new Te("formatFontColor",K,{label:"Font Color",description:"Change the color of your text."},function(ue){At(this,{font:{fill:ue}})}),new Te("formatBoldToggle",K,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[Ee.Ctrl]},{key:"2",modifiers:[Ee.Ctrl]}]}),new Te("formatItalicToggle",K,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[Ee.Ctrl]},{key:"3",modifiers:[Ee.Ctrl]}]}),new Te("formatUnderlinedToggle",K,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[Ee.Ctrl]},{key:"4",modifiers:[Ee.Ctrl]}]}),new Te("formatUnderlinedDoubleToggle",K,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new Te("formatUnderlinedAccountingToggle",K,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new Te("formatUnderlinedAccountingDoubleToggle",K,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new Te("formatStrikeThroughToggle",K,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[Ee.Ctrl]}}),new Te("formatSuperscriptToggle",K,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new Te("formatSubscriptToggle",K,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new Te("formatAlignTopToggle",K,{label:"Align Top",description:"Align text to the top."}),new Te("formatTextOverflowVisibleToggle",K,{label:"Overflow Text",description:"Overflow text to the next cells."}),new Te("formatTextOverflowWrapToggle",K,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new Te("formatTextOverflowClipToggle",K,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new Te("formatTextOverflowShrinkToggle",K,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new Te("formatTextOverflowEllipsisToggle",K,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new Te("formatAlignMiddleToggle",K,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new Te("formatAlignBottomToggle",K,{label:"Align Bottom",description:"Align text to the bottom."}),new Te("formatAlignJustifyVerticalToggle",K,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new Te("formatAlignDistributedVerticalToggle",K,{label:"Distribute Vertically",description:"Justify your content vertically."}),new Te("formatAlignLeftToggle",K,{label:"Align Left",description:"Align your content to the left."}),new Te("formatAlignCenterToggle",K,{label:"Align Center",description:"Center your content."}),new Te("formatAlignRightToggle",K,{label:"Align Right",description:"Align your content to the right."}),new Te("formatAlignJustifyToggle",K,{label:"Align Justify",description:"Justify your content."}),new Te("formatAlignCenterContinuousToggle",K,{label:"Center Across",description:"Center your content across multiple cells."}),new Te("formatAlignFillToggle",K,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new Te("formatAlignDistributedHorizontalToggle",K,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new mt("formatFontSizeIncrease",K,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,ue=>({font:{size:g2(ue.getFont().getSize(),!0)}}))}),new mt("formatFontSizeDecrease",K,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,ue=>({font:{size:g2(ue.getFont().getSize(),!1)}}))}),new Te("formatFontFamily",K,{label:"Font",description:"Select the font your text."},function(ue){At(this,{font:{family:ue}})}),new Te("formatFontSize",K,{label:"Font Size",description:"Change the size of your text."},function(ue){At(this,{font:{size:ue}})}),new Te("formatNumberDialog",K,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[Ee.Ctrl]},{key:"1",modifiers:[Ee.Ctrl,Ee.Alt]}]},function(ue,Ae){const Ge=this,_e={initialValue:ue??Ae.state(),context:Ae.context(),onInputOption:(Je,nt)=>{At(Ge,{numberFormat:Je})}};ce.showWindow?.("numberFormat",_e)}),new Te("formatNumberFormat",K,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(ue){At(this,{numberFormat:ue})}),new Te("formatNumberFormatGeneralStyle",K,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:B.NumberFormat.Type.General})}),new Te("formatNumberFormatNumberStyle",K,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:"#,##0.00"})}),new Te("formatNumberFormatTimeStyle",K,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:"h:mm AM/PM"})}),new Te("formatNumberFormatDateStyle",K,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:"d-mmm-yy"})}),new Te("formatNumberFormatAccountingStyle",K,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[Ee.Ctrl,Ee.Shift]}},function(ue){At(this,{numberFormat:ue??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new Te("formatNumberFormatPercentStyle",K,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:"0%"})}),new Te("formatNumberFormatScientificStyle",K,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){At(this,{numberFormat:"0.00E+00"})}),new Te("formatNumberFormatCommaStyle",K,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[Ee.Ctrl]}},function(){At(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new Te("formatNumberFormatIncreaseDecimal",K,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){At(this,ue=>({numberFormat:B.NumberFormat.Parser.adjustDecimalPlaces(ue.getNumberFormat(),1)}))}),new Te("formatNumberFormatDecreaseDecimal",K,{label:"Decrease Decimal",description:"Show few decimal places."},function(){At(this,ue=>({numberFormat:B.NumberFormat.Parser.adjustDecimalPlaces(ue.getNumberFormat(),-1)}))}),new Te("displayPlaceholdersToggle",K,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[Ee.Ctrl]}}),new mt("noOp",K,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[Ee.Ctrl]}},function(){}),new Te("displayOutlineSymbolsToggle",K,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[Ee.Ctrl]}}),new Te("hideRows",K,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[Ee.Ctrl]}}),new Te("unhideRows",K,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[Ee.Ctrl,Ee.Shift]}}),new Te("hideColumns",K,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[Ee.Ctrl]},{key:"0",modifiers:[Ee.Ctrl,Ee.Alt]}]}),new Te("unhideColumns",K,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[Ee.Ctrl,Ee.Shift]}}),new Te("quickFormulaSum",K,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[Ee.Alt]}},function(){pl(this,"SUM")}),new Te("quickFormulaAverage",K,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){pl(this,"AVERAGE")}),new Te("quickFormulaCount",K,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){pl(this,"COUNT")}),new Te("quickFormulaMax",K,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){pl(this,"MAX")}),new Te("quickFormulaMin",K,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){pl(this,"MIN")}),new Te("startEditCurrentTime",K,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){Pt?.({text:se.createTemporaryCell({value:_a(),style:{numberFormat:"Medium Time"}}).toText()})}),new Te("startEditCurrentDate",K,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[Ee.Ctrl]}},function(){Pt?.({text:se.createTemporaryCell({value:_a(),style:{numberFormat:"Short Date"}}).toText()})}),new mt("sheetZoomOut",K,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[Ee.Ctrl,Ee.Alt]},{key:"NumpadSubtract",modifiers:[Ee.Ctrl,Ee.Alt]}]}),new mt("sheetZoomIn",K,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[Ee.Ctrl,Ee.Alt]},{key:"NumpadAdd",modifiers:[Ee.Ctrl,Ee.Alt]}]}),new mt("sheetZoom100",K,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[Ee.Ctrl,Ee.Alt]}}),new Te("insertFunction",K,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[Ee.Shift]}},function(ue,Ae){console.log("insertFunction")}),new Te("updateHyperlink",K,{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:()=>Mo,shortcut:[{key:"K",modifiers:[Ee.Ctrl]},{key:"K",modifiers:[Ee.Ctrl,Ee.Alt]}]},async function(ue,Ae){const Ge=this,_e={context:Ae.context(),onUpdateHyperlink:(Je,nt)=>{qu(Ge,Je,nt)}};ce.showWindow?.("hyperlink",_e)}),new Te("openHyperlink",K,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[Ee.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>Mo},async(ue,Ae)=>{const Ge=Ae.context()();if(!Ge)return;const _e=Ge.getHyperlink();if(_e)try{await _e.open()}catch(Je){ce?.showError?.(Je)}}),new Te("deleteHyperlink",K,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>Mo},function(ue,Ae){qu(this,null,null)}),new mt("insertNote",K,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[Ee.Shift]},description:"Add a note to the cell."},(ue,Ae)=>{((Ge,_e)=>{Ge?.showMessage?.(a.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[_e," is not yet implemented.",a.jsx("br",{}),a.jsx("br",{}),"Please see the ",a.jsx("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))})(ce,Ae.label())}),new Te("updateComments",K,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[Ee.Ctrl,Ee.Alt]},description:"Add a comment to the current cell.",context:()=>Mo},async function(ue,Ae){const Ge=this,_e={context:Ae.context(),onUpdateComments:Je=>{Zu(Ge,Je)}};ce.showWindow?.("comments",_e)}),new Te("deleteComments",K,{label:"Delete Comments",description:"Remove any comments.",context:()=>Mo},function(ue,Ae){Zu(this,null)}),new Te("insertImageFromFile",K,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(ue=null){let Ae=null,Ge=null;typeof ue=="string"?Ge=ue:Ae=ue?.file?ue.file:ue,(Ae||(Ae=await Nt.openFileDialog(Ge??"image/*"),Ae))&&await Ju(this,{file:Ae},ue?.options)}),new Te("insertImageFromURL",K,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(ue){if(!ue){const Ae=await ce?.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(Ae.option!=="Insert")return;ue=Ae.input}ue&&Ju(this,{fetch:ue})}),new mt("insertTable",K,{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:[Ee.Ctrl]},{key:"T",modifiers:[Ee.Alt,Ee.Ctrl]}]},function(){Wa(this)}),new Te("editTable",K,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(ue){let Ae=null,Ge=!1;ue.isITable?Ae=ue:ue.getValue()&&(Ae=ue.getValue(),Ge=!0),Tm(this,Ae,Ge)}),new Te("deleteTable",K,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:`Remove the table.
65
-
66
- The table and table specific styling will be removed but the values will be preserved.`},function(ue){Xu(this,ue,!0)}),new Te("convertTableToRange",K,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
67
-
68
- The values and the formatting are preserved.`},function(ue){Xu(this,ue,!1)}),new Te("tableTotalRowToggle",K,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[Ee.Ctrl,Ee.Alt]}},function(){const ue=this.context().table();ue&&ue.setShowTotals(!ue.getShowTotals())}),new Te("tableHeaderRowToggle",K,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const ue=this.context().table();ue&&ue.setShowHeaders(!ue.getShowHeaders())}),new Te("autoFilterToggle",K,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){const ue=this.context().table();ue&&ue.setShowFilterButton(!ue.getShowFilterButton())}),new Te("autoFilterReapply",K,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[Ee.Ctrl,Ee.Alt]}}),new Te("autoFilterClear",K,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new mt("startEditValueAbove",K,{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:[Ee.Ctrl]},{key:'"',modifiers:[Ee.Ctrl,Ee.Shift]}]},Rm),new Te("formatPainterToggle",K,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new mt("insertCells",K,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){$0(this)}),new mt("insertCellsShiftRight",K,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){$0(this,B.IRange.Orientation.Column)}),new mt("insertCellsShiftDown",K,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return $0(this,B.IRange.Orientation.Row)}),new mt("insertRows",K,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return $0(this,B.IRange.Orientation.Row,!0)}),new mt("insertColumns",K,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return $0(this,B.IRange.Orientation.Column,!0)}),new mt("insertRowsAfter",K,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return $0(this,B.IRange.Orientation.Row,!0,!0)}),new mt("insertColumnsAfter",K,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return $0(this,B.IRange.Orientation.Column,!0,!0)}),new mt("deleteCells",K,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[Ee.Ctrl]}},function(){return fl(this)}),new mt("deleteCellsShiftUp",K,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return fl(this,B.IRange.Orientation.Row)}),new mt("deleteCellsShiftLeft",K,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return fl(this,B.IRange.Orientation.Column)}),new mt("deleteRows",K,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return fl(this,B.IRange.Orientation.Row,!0)}),new mt("deleteColumns",K,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return fl(this,B.IRange.Orientation.Column,!0)}),new mt("flashFill",K,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[Ee.Ctrl]},{key:"e",modifiers:[Ee.Ctrl,Ee.Alt]}]}),new mt("fillDown",K,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[Ee.Ctrl]}},function(){return Ua(this,B.IRange.Direction.Down)}),new mt("fillRight",K,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[Ee.Ctrl]}]},function(){return Ua(this,B.IRange.Direction.Right)}),new mt("fillUp",K,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return Ua(this,B.IRange.Direction.Up)}),new mt("fillLeft",K,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return Ua(this,B.IRange.Direction.Left)}),new mt("formatBorderAddOutline",K,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){return At(this,{border:{left:{style:B.IBorder.StrokeStyle.Thin,color:null},top:{style:B.IBorder.StrokeStyle.Thin,color:null},right:{style:B.IBorder.StrokeStyle.Thin,color:null},bottom:{style:B.IBorder.StrokeStyle.Thin,color:null}}})}),new mt("formatBorderClearOutline",K,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){return At(this,{border:null})}),new mt("formatIndentDecrease",K,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return At(this,ue=>{const Ae=ue.getAlignment().getIndent()-1;return{alignment:{indent:Ae>0?Ae:0}}})}),new mt("formatIndentIncrease",K,{label:"Increase Indent",description:"Move your content further from the border."},function(){return At(this,ue=>{const Ae={alignment:{indent:ue.getAlignment().getIndent()+1}};return ue.getAlignment().getHorizontal()===B.ITextFrame.HorizontalAlignment.General&&(Ae.alignment.horizontal=B.ITextFrame.HorizontalAlignment.Left),Ae})}),new Te("mergeToggle",K,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[Ee.Ctrl]}}),new mt("mergeHorizontal",K,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new mt("mergeVertical",K,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new mt("unmerge",K,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new mt("clearContents",K,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:`Clear only the contents in the cells.
69
-
70
- The formatting is not cleared.`,shortcut:{key:"Delete"}},function(){hl(this,B.ICell.Content.Values)}),new mt("clearFormats",K,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){hl(this,B.ICell.Content.Formats)}),new mt("clearHyperlinks",K,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){hl(this,B.ICell.Content.Hyperlinks)}),new mt("clearComments",K,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){hl(this,B.ICell.Content.Comments)}),new mt("clearAll",K,{label:"Clear All",scopedLabels:{clear:"All"},description:`Clears everything from the cells.
71
-
72
- All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[Ee.Ctrl,Ee.Shift]}},function(){hl(this)}),new Te("freezeToggle",K,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new Te("freezeToggleHorizontal",K,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new Te("freezeToggleVertical",K,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new mt("unfreeze",K,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new mt("autoFitRows",K,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new mt("autoFitColumns",K,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),pe=s.useMemo(()=>{let ue=null;return ue=Z?Z.createChildGroup(K,"sheet",!1):new ll(K,"sheet"),ue.addCommands(Qu,!0),ue},[Z,Qu]),[gl,Dm]=s.useState(!1),[xl,Lm]=s.useState(!1);s.useEffect(()=>{if(jt.current!==se||!Ct)return;const ue=Ct.getCoords(),Ae=se.getTables().search({address:ue[0]});tr(nn=>Nt.isEqualArrays(nn,Ae)?nn:Ae),Ke&&Ae[0]&&bo.isCellWithinRange(Ke,Ae[0].getRange().getCoords())?ic(Ae[0]??null):ic(null);const Ge=se.getSelectedRanges(),_e=Ge.getMerges().length>0,Je=Ge.isOverlapping();let nt=!0;for(let nn=0;nt&&nn<ue.length;nn++)nt=bo.isSingleCell(ue[nn]);Lm(Je),Dm(Ae.length===0&&!Je&&(_e||!nt))},[qa,Ct,se]),to(Z,null,{onChange:()=>{const ue=!se.getProtection().isFormatCellsAllowed(),Ae=Bt.getMode()?.key==="formatPainter";pe.getCommand("formatPainterToggle").update({disabled:ue||!Z?.getCommand("copy"),state:()=>Ae}).updateCallback(()=>Ae?void Bt.setMode(null):pe.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`}}))}},[Bt,ml,Z]),Gt(se.getView(),{onFreezeSplitChange:()=>{xi()}}),Gt(se.getSelection(),{onChange:()=>{$a()}});const Za=()=>{pe.getCommand("sheetViewFormatGridlinesColor").update({state:()=>se.getView().getGridLineColor(),context:()=>({onColorSelect:ue=>{},darkMode:ft.darkMode,autoColor:se.getStyles().parseColor(ft.strokeFill),schemeLookup:se.getStyles().schemeLookup(),recentColors:()=>se.getStyles().recentColors(),addRecentColor:ue=>se.getStyles().addRecentColor(ue),clearRecentColors:()=>se.getStyles().clearRecentColors()})}),pe.getCommand("formatSheetTabColor").updateCallback(ue=>{se.setTabColor(ue)}).update({state:()=>se?.getTabColor()??vs,context:()=>({onColorSelect:ue=>{},darkMode:ft.darkMode,autoColor:vs,schemeLookup:se.getStyles().schemeLookup(),recentColors:()=>se.getStyles().recentColors(),addRecentColor:ue=>se.getStyles().addRecentColor(ue),clearRecentColors:()=>se.getStyles().clearRecentColors()})})},ac=()=>{pe.getCommand("formatBorder").update({context:()=>({onBorderSelect:ue=>{Ot(ue)},darkMode:ft.darkMode,quickBorder:Dt,autoColor:se.getStyles().getNormal().getFont().getFill(),autoStyle:B.IBorder.StrokeStyle.Thin,createTemporaryBorder:ue=>se.getStyles().getNormal().createTemporaryStyle({border:ue}).getBorder(),schemeLookup:se.getStyles().schemeLookup()})})};s.useEffect(()=>{ac()},[Dt]),s.useEffect(()=>{const ue=!se.getProtection().isInsertHyperlinksAllowed();pe.getCommand("openHyperlink").update({disabled:!Mo().getHyperlink()}),pe.getCommand("deleteHyperlink").update({disabled:ue||!Mo().getHyperlink()});const Ae=Mo().getHyperlink()?"Edit":"Insert",Ge="Link";pe.getCommand("updateHyperlink").update({label:()=>(Mo().getHyperlink(),`${Ae} ${Ge}`),scopedLabels:{contextMenu:`${Ae} ${Ge}…`,insert:`${Ge}…`,hyperlink:`${Ae}…`},disabled:ue})},[Mo()?.getHyperlink(),ml]),s.useEffect(()=>{const ue=Mo().getComments(),Ae=()=>ue?"Edit":"Insert",Ge=()=>ue?"Comments":"Comment";pe.getCommand("updateComments").update({label:()=>`${Ae()} ${Ge()}`,scopedLabels:{contextMenu:`${Ae()} ${Ge()}…`,insert:`${Ge()}…`}})},[Mo()?.getComments(),ml]),Gt(se,{onViewChange:()=>{const ue=se.getView();pe.getCommand("sheetViewToggleFormulaView").update({state:ue.isShowFormulas()}),pe.getCommand("sheetViewToggleShowZeros").update({state:ue.isShowZeros()}),pe.getCommand("gridlinesToggle").update({state:ue.isShowColumnGridlines()||ue.isShowRowGridlines()}),pe.getCommand("sheetViewToggleGridlinesColumns").update({state:ue.isShowColumnGridlines()}),pe.getCommand("sheetViewToggleGridlinesRows").update({state:ue.isShowRowGridlines()}),pe.getCommand("sheetViewToggleShowHeadings").update({state:ue.isShowColumnHeaders()||ue.isShowRowHeaders()}),pe.getCommand("sheetViewToggleShowHeadingColumns").update({state:ue.isShowColumnHeaders()}),pe.getCommand("sheetViewToggleShowHeadingRows").update({state:ue.isShowRowHeaders()}),pe.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>se.getView().getColumnHeaderStyle()===B.ISheetView.HeaderTextStyle.Zero&&se.getView().getRowHeaderStyle()===B.ISheetView.HeaderTextStyle.Zero}),Za()},onTabColorChange:()=>{Za()},onMergesChange:()=>{xi()},onMovablesChange:()=>{xi()},onTablesChange:()=>{xi()},onProtectionChange:()=>{xi(),Im()},onStyleChange:()=>{Za(),ac(),xi()}}),s.useEffect(()=>{Za(),ac()},[ft]),s.useEffect(()=>{const ue=!se.getProtection().isFormatCellsAllowed(),Ae=In.length>0&&!a0||ue,Ge=Ku(a0),_e={context:Ge};pe.getCommand("editTable").update(_e),pe.getCommand("deleteTable").update(_e),pe.getCommand("convertTableToRange").update(_e);const Je={context:Ge,disabled:Ae};pe.getCommand("formatTableStyle").update({label:a0?"Apply Table Style":"Format As Table",...Je}),pe.getCommand("formatTableStyleClearCellStyles").update(Je),pe.getCommand("deleteTableStyle").update(Je),pe.getCommand("convertTableToRange").update(Je),pe.getCommand("insertTable").update({disabled:Ae||In.length>0});const nt={context:Ge,disabled:Ae||In.length===0};pe.getCommand("tableHeaderRowToggle").update(nt),pe.getCommand("tableTotalRowToggle").update(nt),pe.getCommand("autoFilterToggle").update(nt),pe.getCommand("formatTableStyleClearTableStyle").update({...nt,disabled:nt.disabled||!a0||a0.getStyleOptions().name===null})},[a0,In,ml]),s.useEffect(()=>{pe.getCommand("sheetZoomOut").updateCallback(()=>{se.getView().update({zoomScale:Nt.findNextStep(se.getView().getZoomScale(),!1)})}),pe.getCommand("sheetZoomIn").updateCallback(()=>{se.getView().update({zoomScale:Nt.findNextStep(se.getView().getZoomScale())})}),pe.getCommand("sheetZoom100").updateCallback(()=>{se.getView().update({zoomScale:100})}),pe.getCommand("gridlinesToggle").updateCallback(()=>{const ue=se.getView().isShowColumnGridlines()&&se.getView().isShowRowGridlines();se.getView().update({showColumnGridlines:!ue,showRowGridlines:!ue})}),pe.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{se.getView().update({showRowGridlines:!se.getView().isShowRowGridlines()})}),pe.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{se.getView().update({showColumnGridlines:!se.getView().isShowColumnGridlines()})}),pe.getCommand("sheetViewFormatGridlinesColor").updateCallback(ue=>{se.getView().update({gridLineColor:ue})}),pe.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const ue=se.getView().isShowColumnHeaders()&&se.getView().isShowRowHeaders();se.getView().update({showColumnHeaders:!ue,showRowHeaders:!ue})}),pe.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{se.getView().update({showColumnHeaders:!se.getView().isShowColumnHeaders()})}),pe.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{se.getView().update({showRowHeaders:!se.getView().isShowRowHeaders()})}),pe.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const ue=se.getView().getColumnHeaderStyle()===B.ISheetView.HeaderTextStyle.Zero&&se.getView().getRowHeaderStyle()===B.ISheetView.HeaderTextStyle.Zero;se.getView().update({columnHeaderStyle:ue?B.ISheetView.HeaderTextStyle.A1:B.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:ue?B.ISheetView.HeaderTextStyle.One:B.ISheetView.HeaderTextStyle.Zero})}),pe.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{se.getView().update({showFormulas:!se.getView().isShowFormulas()})}),pe.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{se.getView().update({showZeros:!se.getView().isShowZeros()})})},[se]),s.useEffect(()=>{const ue=se.getView().getFreezePanes(),Ae=()=>ue.coords.rowIndex!==0,Ge=()=>ue.coords.colIndex!==0,_e=()=>ue.coords.rowIndex!==0||ue.coords.colIndex!==0;pe.getCommand("freezeToggle").updateCallback(()=>{_e()?se.getView().setFreezePanes(null):_e()?Ge()?se.getView().setFreezePanes({coords:{rowIndex:Ke.rowIndex}}):Ae()&&se.getView().setFreezePanes({coords:{colIndex:Ke.colIndex}}):se.getView().setFreezePanes({coords:Ke})}).update({state:_e,disabled:()=>!Ke||!_e()&&Ke.rowIndex===0&&Ke.colIndex===0}),pe.getCommand("freezeToggleHorizontal").updateCallback(()=>{se.getView().setFreezePanes({coords:{rowIndex:Ae()?0:Ke.rowIndex}})}).update({state:Ae,disabled:()=>!Ke||!Ae()&&Ke.rowIndex===0}),pe.getCommand("freezeToggleVertical").updateCallback(()=>{se.getView().setFreezePanes({coords:{colIndex:Ge()?0:Ke.colIndex}})}).update({state:Ge,disabled:()=>!Ke||!Ge()&&Ke.colIndex===0}),pe.getCommand("unfreeze").updateCallback(()=>{se.getView().setFreezePanes(null)}).update({disabled:()=>!_e()})},[qa,Ke,se,ft]);const yi=Mo().getStyle(),So=yi.getFont(),Ga=yi.getAlignment(),Ar=Ga.getHorizontal(),yl=Ga.getVertical(),bl=Ga.getOverflow(),bi=Ga.getRotation();return s.useEffect(()=>{pe.getCommand("formatCellStyle").update({context:()=>({styles:()=>se.getStyles(),named:()=>Mo().getStyle(!0).getNamed(),bodyStyle:Gu,createTemporaryCell:xn=>se.createTemporaryCell(xn)})}),pe.getCommand("formatFillColor").update({state:()=>{let xn=null;const Ro=yi.getFill();return Ro?.getType()===B.IFill.Type.Solid?xn=Ro.getColor():Ro?.getType()===B.IFill.Type.Gradient?xn=Ro.getStops()?.[0]?.getColor():Ro?.getType()===B.IFill.Type.Pattern&&(xn=Ro.getBackground()),xn},context:()=>{const xn=se.getStyles();return{onColorSelect:Ro=>{at(Ro??vs)},darkMode:ft.darkMode,quickColor:Ln,autoColor:vs,schemeLookup:xn.schemeLookup(),recentColors:xn.recentColors(),addRecentColor:Ro=>xn.addRecentColor(Ro),clearRecentColors:()=>xn.clearRecentColors()}}}),pe.getCommand("formatFontColor").update({state:()=>So.toJSON()?.fill?So.getFill():null,context:()=>{const xn=se.getStyles();return{onColorSelect:Ro=>{Kn(Ro)},darkMode:ft.darkMode,quickColor:Kt,autoColor:xn.getNormal().getFont().getFill(),schemeLookup:xn.schemeLookup(),recentColors:xn.recentColors(),addRecentColor:Ro=>xn.addRecentColor(Ro),clearRecentColors:()=>xn.clearRecentColors()}}}),pe.getCommand("formatNumberFormat").update({state:()=>yi.getNumberFormat(),context:()=>Mo}),pe.getCommand("formatNumberDialog").update({state:()=>yi.getNumberFormat(),context:()=>Mo}),pe.getCommand("formatFontFamily").update({state:()=>So.getFamily()}),pe.getCommand("formatFontSize").update({state:()=>So.getSize()});const ue=function(){const xn=So.getWeight()||0;return!isNaN(xn)&&xn>500};pe.getCommand("formatBoldToggle").updateCallback(function(){At(this,{font:{weight:ue()?400:700}})}).update({state:ue});const Ae=function(){return So.getStyle()===B.IFont.Style.Italic};pe.getCommand("formatItalicToggle").updateCallback(function(){At(this,{font:{style:Ae()?B.IFont.Style.Normal:B.IFont.Style.Italic}})}).update({state:Ae}),pe.getCommand("formatStrikeThroughToggle").updateCallback(function(){At(this,{font:{strike:!So.getStrike()}})}).update({state:So.getStrike()}),pe.getCommand("formatUnderlinedToggle").updateCallback(function(){At(this,{font:{underline:So.getUnderline()!==B.IFont.UnderlineStyle.Single?B.IFont.UnderlineStyle.Single:B.IFont.UnderlineStyle.None}})}).update({state:So.getUnderline()===B.IFont.UnderlineStyle.Single}),pe.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){At(this,{font:{underline:So.getUnderline()!==B.IFont.UnderlineStyle.Double?B.IFont.UnderlineStyle.Double:B.IFont.UnderlineStyle.None}})}).update({state:So.getUnderline()===B.IFont.UnderlineStyle.Double}),pe.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){At(this,{font:{underline:So.getUnderline()!==B.IFont.UnderlineStyle.SingleAccounting?B.IFont.UnderlineStyle.SingleAccounting:B.IFont.UnderlineStyle.None}})}).update({state:So.getUnderline()===B.IFont.UnderlineStyle.SingleAccounting}),pe.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){At(this,{font:{underline:So.getUnderline()!==B.IFont.UnderlineStyle.DoubleAccounting?B.IFont.UnderlineStyle.DoubleAccounting:B.IFont.UnderlineStyle.None}})}).update({state:So.getUnderline()===B.IFont.UnderlineStyle.DoubleAccounting}),pe.getCommand("formatSuperscriptToggle").updateCallback(function(){At(this,{font:{verticalAlign:So.getVerticalAlignment()!==B.IFont.VerticalAlignment.Super?B.IFont.VerticalAlignment.Super:B.IFont.VerticalAlignment.Baseline}})}).update({state:So.getVerticalAlignment()===B.IFont.VerticalAlignment.Super}),pe.getCommand("formatSubscriptToggle").updateCallback(function(){At(this,{font:{verticalAlign:So.getVerticalAlignment()!==B.IFont.VerticalAlignment.Sub?B.IFont.VerticalAlignment.Sub:B.IFont.VerticalAlignment.Baseline}})}).update({state:So.getVerticalAlignment()===B.IFont.VerticalAlignment.Sub});const Ge=()=>bl===B.ITextFrame.Overflow.Visible;pe.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){At(this,{alignment:{overflow:(Ge(),B.ITextFrame.Overflow.Visible)}})}).update({state:Ge});const _e=()=>bl===B.ITextFrame.Overflow.Wrap;pe.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){At(this,{alignment:{overflow:_e()?B.ITextFrame.Overflow.Visible:B.ITextFrame.Overflow.Wrap}})}).update({state:_e});const Je=function(){return bl===B.ITextFrame.Overflow.Clip};pe.getCommand("formatTextOverflowClipToggle").updateCallback(function(){At(this,{alignment:{overflow:Je()?B.ITextFrame.Overflow.Visible:B.ITextFrame.Overflow.Clip}})}).update({state:Je});const nt=function(){return bl===B.ITextFrame.Overflow.Shrink};pe.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){At(this,{alignment:{overflow:nt()?B.ITextFrame.Overflow.Visible:B.ITextFrame.Overflow.Shrink}})}).update({state:nt});const nn=function(){return bl===B.ITextFrame.Overflow.Shrink};pe.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){At(this,{alignment:{overflow:nn()?B.ITextFrame.Overflow.Visible:B.ITextFrame.Overflow.Ellipsis}})}).update({state:nn,disabled:!0});const on=function(){return yl===B.ITextFrame.VerticalAlignment.Top};pe.getCommand("formatAlignTopToggle").updateCallback(function(){At(this,{alignment:{vertical:on()?B.ITextFrame.VerticalAlignment.Bottom:B.ITextFrame.VerticalAlignment.Top}})}).update({state:on});const Zt=function(){return yl===B.ITextFrame.VerticalAlignment.Center};pe.getCommand("formatAlignMiddleToggle").updateCallback(function(){At(this,{alignment:{vertical:Zt()?B.ITextFrame.VerticalAlignment.Bottom:B.ITextFrame.VerticalAlignment.Center}})}).update({state:Zt});const dn=function(){return yl===B.ITextFrame.VerticalAlignment.Bottom};pe.getCommand("formatAlignBottomToggle").updateCallback(function(){At(this,{alignment:{vertical:(dn(),B.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:dn});const Yt=function(){return yl===B.ITextFrame.VerticalAlignment.Justify};pe.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){At(this,{alignment:{vertical:Yt()?B.ITextFrame.VerticalAlignment.Bottom:B.ITextFrame.VerticalAlignment.Justify}})}).update({state:Yt});const Vn=function(){return yl===B.ITextFrame.VerticalAlignment.Distributed};pe.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){At(this,{alignment:{vertical:Vn()?B.ITextFrame.VerticalAlignment.Bottom:B.ITextFrame.VerticalAlignment.Distributed}})}).update({state:Vn});const oo=function(){return Ar===B.ITextFrame.HorizontalAlignment.Left};pe.getCommand("formatAlignLeftToggle").updateCallback(function(){At(this,{alignment:{horizontal:oo()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Left}})}).update({state:oo});const No=function(){return Ar===B.ITextFrame.HorizontalAlignment.Center};pe.getCommand("formatAlignCenterToggle").updateCallback(function(){At(this,{alignment:{horizontal:No()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Center}})}).update({state:No});const Fr=function(){return Ar===B.ITextFrame.HorizontalAlignment.CenterContinuous};pe.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const xn={alignment:{horizontal:Fr()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};At(this,xn)}).update({state:Fr});const zr=function(){return Ar===B.ITextFrame.HorizontalAlignment.Fill};pe.getCommand("formatAlignFillToggle").updateCallback(function(){const xn={alignment:{horizontal:zr()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Fill,rotation:null}};At(this,xn)}).update({state:zr});const Br=function(){return Ar===B.ITextFrame.HorizontalAlignment.Distributed};pe.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){At(this,{alignment:{horizontal:Br()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:Br});const nr=function(){return Ar===B.ITextFrame.HorizontalAlignment.Right};pe.getCommand("formatAlignRightToggle").updateCallback(function(){At(this,{alignment:{horizontal:nr()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Right}})}).update({state:nr});const Oo=function(){return Ar===B.ITextFrame.HorizontalAlignment.Justify};pe.getCommand("formatAlignJustifyToggle").updateCallback(function(){At(this,{alignment:{horizontal:Oo()?B.ITextFrame.HorizontalAlignment.General:B.ITextFrame.HorizontalAlignment.Justify}})}).update({state:Oo});const ho=!se.getProtection().isFormatCellsAllowed(),Cr=Ar===B.ITextFrame.HorizontalAlignment.CenterContinuous||Ar===B.ITextFrame.HorizontalAlignment.Fill;pe.getCommand("formatTextRotate0").updateCallback(function(xn){At(this,{alignment:{rotation:0}})}).update({disabled:ho||Cr,state:bi===0}),pe.getCommand("formatTextRotate45").updateCallback(function(xn){At(this,{alignment:{rotation:xn??1?45:0}})}).update({disabled:ho||Cr,state:bi===45}),pe.getCommand("formatTextRotate90").updateCallback(function(xn){At(this,{alignment:{rotation:xn??1?90:0}})}).update({disabled:ho||Cr,state:bi===90}),pe.getCommand("formatTextRotate270").updateCallback(function(xn){At(this,{alignment:{rotation:xn??1?270:0}})}).update({disabled:ho||Cr,state:bi===270}),pe.getCommand("formatTextRotate315").updateCallback(function(xn){At(this,{alignment:{rotation:xn??1?315:0}})}).update({disabled:ho||Cr,state:bi===315}),pe.getCommand("formatTextRotateCustom").updateCallback(function(xn){At(this,{alignment:{rotation:xn}})}).update({disabled:ho||Cr,state:bi??0})},[yi,se,ft,Ln,Kt]),s.useEffect(()=>{const ue=!se.getProtection().isFormatCellsAllowed(),Ae=se.getSelectedRanges().getMerges().length>0,Ge=async(Qn,Ka)=>{uo(Ka,async wi=>{const Xa=async(Ya=!1)=>{const Om=await Promise.resolve(ce?.showBusy?.(Ka.label()));try{const Ja=wi.getSelectedRanges();if(Ja.merge({orientations:Qn,discardMultipleValues:Ya}),Qn===B.IRange.Orientations.Both){const Pm={alignment:{horizontal:B.ITextFrame.HorizontalAlignment.Center}};Ja.updateStyle(Pm)}}catch(Ja){throw Ja}finally{Om?.()}};let n5;try{await Xa()}catch(Ya){if(Ya.type!=="discardMultipleValues")throw Ya;n5=!0}if(n5&&ce?.showOptions){if(await ce?.showOptions({title:"Confirm",description:"Merging cells will only keep the upper-left value. Some data will be discarded. Continue?",options:["Merge","Cancel"],defaultOption:"Merge"})!=="Merge")return;await Xa(!0)}},void 0,void 0,!1)},_e=Qn=>{uo(Qn,async Ka=>{try{const wi=Ka.getSelectedRanges();wi.unmerge();const Xa={alignment:{horizontal:null}};wi.updateStyle(Xa)}catch(wi){throw wi}})};pe.getCommand("mergeToggle").updateCallback(function(){bo.isSingleCell(se.getSelectedRange().getCoords())||(Ae?_e(this):Ge(B.IRange.Orientations.Both,this))}).update({state:Ae,disabled:!gl||ue}),pe.getCommand("mergeHorizontal").updateCallback(function(){Ge(B.IRange.Orientations.Column,this)}).update({disabled:!gl||ue}),pe.getCommand("mergeVertical").updateCallback(function(){Ge(B.IRange.Orientations.Row,this)}).update({disabled:!gl}),pe.getCommand("unmerge").updateCallback(function(){_e(this)}).update({disabled:!Ae||!gl||ue});const Je={disabled:ue};pe.getCommand("hideRows").updateCallback(function(){uo(this,Qn=>{Qn.getRowHeaders().setHidden(Qn.getSelectedRanges().getCoords(),!0)})}).update(Je),pe.getCommand("hideColumns").updateCallback(function(){uo(this,Qn=>{Qn.getColumnHeaders().setHidden(Qn.getSelectedRanges().getCoords(),!0)})}).update(Je),pe.getCommand("unhideRows").updateCallback(function(){uo(this,Qn=>{Qn.getRowHeaders().setHidden(Qn.getSelectedRanges().getCoords(),!1)})}).update(Je),pe.getCommand("unhideColumns").updateCallback(function(){uo(this,Qn=>{Qn.getColumnHeaders().setHidden(Qn.getSelectedRanges().getCoords(),!1)})}).update(Je),pe.getCommand("autoFitRows").updateCallback(function(){uo(this,Qn=>{Qn.getSelectedRanges().autoFit({orientations:B.IRange.Orientations.Row})})}).update(Je),pe.getCommand("autoFitColumns").updateCallback(function(){uo(this,Qn=>{Qn.getSelectedRanges().autoFit({orientations:B.IRange.Orientations.Column})})}).update(Je);let nt=!1,nn=0,on=!1,Zt=!1,dn=0,Yt=!1;!Ct||ue||xl||(nt=Ct.isEntireColumnsAny(),nt&&!Ct.isEntireColumns()?on=!0:nn=Ct.getColumnCount(),Zt=Ct.isEntireRowsAny(),Zt&&!Ct.isEntireRows()?Yt=!0:dn=Ct.getRowCount());const Vn={disabled:ue||Ct&&Ct.getCount()!==1};pe.getCommand("sortAscending").update(Vn),pe.getCommand("sortDescending").update(Vn);const oo={disabled:nt||Zt||ue||xl},No=nt||ue||xl||Yt;No&&(nn=1);const Fr=Zt||ue||xl||on;Fr&&(dn=1);let zr="",Br="",nr="",Oo="",ho="",Cr="",xn="",Ro="",sc="";nn>1&&(Cr=Br=nn+" ",xn=nr="s"),dn>1&&(Ro=Oo=dn+" ",sc=ho="s"),Bt.getMode()?.key==="copy"?(zr=Oo=Br="Copied ",nr=ho="s"):Bt.getMode()?.key==="cut"&&(zr=Oo=Br="Cut ",nr=ho="s");let e5="",t5="";if(Ct){const Qn=Ct.getDefaultShiftOrientation()===B.IRange.Orientation.Column;e5=` (${Qn?"Shift Right":"Shift Down"})`,t5=` (${Qn?"Shift Left":"Shift up"})`,pe.getCommand("deleteCells").update({label:`Delete Cells${t5}`})}pe.getCommand("insertCells").update({label:`Insert ${zr}Cells${e5}`,scopedLabels:{insertCells:`${zr}At Selection`}}),pe.getCommand("insertCellsShiftRight").update(oo),pe.getCommand("insertCellsShiftDown").update(oo),pe.getCommand("deleteCellsShiftUp").update(oo),pe.getCommand("deleteCellsShiftLeft").update(oo),pe.getCommand("insertRows").update({label:`Insert ${Oo}Row${ho}`,scopedLabels:{insertCells:`${Oo}Row${ho}`},disabled:Fr}),pe.getCommand("insertRowsAfter").update({label:`Insert ${Oo}Row${ho} Below`,disabled:Fr}),pe.getCommand("insertColumns").update({label:`Insert ${Br}Column${nr}`,scopedLabels:{insertCells:`${Br}Column${nr}`},disabled:No}),pe.getCommand("insertColumnsAfter").update({label:`Insert ${Br}Column${nr} After`,disabled:No}),pe.getCommand("deleteRows").update({label:`Delete ${Ro}Row${sc}`,scopedLabels:{deleteCells:`${Ro}Row${sc}`},disabled:Fr}),pe.getCommand("deleteColumns").update({label:`Delete ${Cr}Column${xn}`,scopedLabels:{deleteCells:`${Cr}Column${xn}`},disabled:No})},[qa,gl,xl,Ct,Bt,ce,ml]),s.useEffect(()=>{const ue=se.getProtection(),Ae=se.getProtection().isLocked(),Ge=!ue.isFormatCellsAllowed(),_e={disabled:Ge};pe.getCommand("protectionSheetToggle").updateCallback(async(nn,on)=>{let Zt=null;try{if(Ae){let dn=null;if(ue.hasPassword()){const Yt=await ce?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(Yt.option!=="Unprotect")return;dn=Yt.input}Zt=await Promise.resolve(ce?.showBusy?.(on.label())),await ue.unlock(dn)}else Zt=await Promise.resolve(ce?.showBusy?.(on.label())),await ue.lock();Zt?.()}catch(dn){Zt?.(),ce?.showError?.(dn)}}).update({state:Ae,label:()=>Ae?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:Ae?"Unprotect":"Protect"}}),pe.getCommand("deleteTable").update(_e),pe.getCommand("sortAscending").update(_e),pe.getCommand("sortDescending").update(_e),pe.getCommand("sortCustom")?.update(_e),pe.getCommand("updateComments").update(_e),pe.getCommand("deleteComments").update(_e),pe.getCommand("insertChart")?.update(_e),pe.getCommand("insertImageFromFile").update(_e),pe.getCommand("insertImageFromURL").update(_e),pe.getCommand("formatBorder").update(_e),pe.getCommand("formatFillColor").update(_e),pe.getCommand("formatFontColor").update(_e),pe.getCommand("formatBoldToggle").update(_e),pe.getCommand("formatItalicToggle").update(_e),pe.getCommand("formatUnderlinedToggle").update(_e),pe.getCommand("formatStrikeThroughToggle").update(_e),pe.getCommand("formatSuperscriptToggle").update(_e),pe.getCommand("formatSubscriptToggle").update(_e),pe.getCommand("formatAlignTopToggle").update(_e),pe.getCommand("formatTextOverflowVisibleToggle").update(_e),pe.getCommand("formatTextOverflowWrapToggle").update(_e),pe.getCommand("formatTextOverflowClipToggle").update(_e),pe.getCommand("formatTextOverflowShrinkToggle").update(_e),pe.getCommand("formatAlignMiddleToggle").update(_e),pe.getCommand("formatAlignBottomToggle").update(_e),pe.getCommand("formatAlignDistributedVerticalToggle").update(_e),pe.getCommand("formatAlignJustifyVerticalToggle").update(_e),pe.getCommand("formatAlignLeftToggle").update(_e),pe.getCommand("formatAlignCenterToggle").update(_e),pe.getCommand("formatAlignRightToggle").update(_e),pe.getCommand("formatAlignJustifyToggle").update(_e),pe.getCommand("formatAlignCenterContinuousToggle").update(_e),pe.getCommand("formatAlignDistributedHorizontalToggle").update(_e),pe.getCommand("formatAlignFillToggle").update(_e),pe.getCommand("formatFontSizeIncrease").update(_e),pe.getCommand("formatFontSizeDecrease").update(_e),pe.getCommand("formatFontFamily").update(_e),pe.getCommand("formatFontSize").update(_e),pe.getCommand("formatNumberFormat").update(_e),pe.getCommand("formatNumberFormatGeneralStyle").update(_e),pe.getCommand("formatNumberFormatNumberStyle").update(_e),pe.getCommand("formatNumberFormatTimeStyle").update(_e),pe.getCommand("formatNumberFormatDateStyle").update(_e),pe.getCommand("formatNumberFormatAccountingStyle").update(_e),pe.getCommand("formatNumberFormatPercentStyle").update(_e),pe.getCommand("formatNumberFormatScientificStyle").update(_e),pe.getCommand("formatNumberFormatCommaStyle").update(_e),pe.getCommand("formatNumberFormatIncreaseDecimal").update(_e),pe.getCommand("formatNumberFormatDecreaseDecimal").update(_e),pe.getCommand("hideColumns").update(_e),pe.getCommand("unhideColumns").update(_e),pe.getCommand("hideRows").update(_e),pe.getCommand("unhideRows").update(_e),pe.getCommand("quickFormulaSum").update(_e),pe.getCommand("quickFormulaAverage").update(_e),pe.getCommand("quickFormulaCount").update(_e),pe.getCommand("quickFormulaMax").update(_e),pe.getCommand("quickFormulaMin").update(_e),pe.getCommand("startEditCurrentTime").update(_e),pe.getCommand("startEditCurrentDate").update(_e),pe.getCommand("startEditValueAbove").update(_e),pe.getCommand("fillDown").update(_e),pe.getCommand("fillRight").update(_e),pe.getCommand("fillUp").update(_e),pe.getCommand("fillLeft").update(_e),pe.getCommand("formatCellStyle").update(_e),pe.getCommand("formatTableStyle").update(_e),pe.getCommand("formatPainterToggle").update(_e),pe.getCommand("formatBorderAddOutline").update(_e),pe.getCommand("formatBorderClearOutline").update(_e),pe.getCommand("formatIndentDecrease").update(_e),pe.getCommand("formatIndentIncrease").update(_e),pe.getCommand("clearContents").update(_e),pe.getCommand("clearFormats").update(_e),pe.getCommand("clearAll").update(_e),pe.getCommand("clearComments").update(_e),pe.getCommand("clearHyperlinks").update(_e),pe.getCommand("autoFilterClear").update(_e),pe.getCommand("autoFilterReapply").update(_e);const Je=Ar===B.ITextFrame.HorizontalAlignment.CenterContinuous||Ar===B.ITextFrame.HorizontalAlignment.Fill,nt={disabled:Ge||Je};pe.getCommand("formatTextRotate0").update(nt),pe.getCommand("formatTextRotate45").update(nt),pe.getCommand("formatTextRotate90").update(nt),pe.getCommand("formatTextRotate270").update(nt),pe.getCommand("formatTextRotate315").update(nt),pe.getCommand("formatTextRotateCustom").update(nt),pe.getCommand("formatTextRotateVertical").update(nt)},[qa]),pe}({sheet:n,commands:g,target:Vt,onRepeatCommandChange:m,bodyStyle:G,notifier:F,onStartEdit:ct,getViewport:Ut}),[ln,gn]=s.useState(n.getSelection().isEntire()),[En,Nn]=s.useState(J?.getMovableSelection().length>0),no=ie!==null||En,co=null,[_n,zt]=s.useState(!1);s.useEffect(()=>{zt(!1)},[n.getProtection()]);const Fn=he(()=>{_n||(zt(!0),F.showMessage?.(a.jsxs("span",{children:["This sheet is protected.",a.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:i0.Error}))},[F,_n]),qn=s.useMemo(()=>{const Ie=kt.getMode();return Ie?.cursor?Ie.cursor:null},[co,kt]),[wn,Cn]=s.useState(null),fn=s.useRef(!1),[er,br]=s.useState([]),wr=s.useRef(null),[Wo,Pr]=s.useState(da.EmptyTopLeft),[Uo,vr]=s.useState(da.EmptyTopLeft);s.useEffect(()=>{Pr({left:pt?.left,top:0})},[pt?.left]),s.useEffect(()=>{vr({left:0,top:pt?.top})},[pt?.top]),Gt(n?.getView(),{onFreezeSplitChange:()=>{Qe(st(n.getView().getFreezePanes()))},onTopLeftChange:()=>{ot(n.getView().getTopLeft())},onMovableSelectionChange:()=>{Nn(n.getView().getMovableSelection().length>0)}}),Gt(n?.getSelection(),{onChange:()=>{gn(n.getSelection().isEntire())}}),Gt(n,{onViewChange(){ae(n.getView()),Ue(Ye())},onLayoutChange:()=>{const Ie=n.getEntireRange();$e({height:Ie.getRowCount(),width:Ie.getColumnCount()}),Ue(Ye())},onStyleChange:()=>{Fe()},onMovablesChange:()=>{},onInvalidated:()=>{Fe()}}),Gt(n,{onRequestScrollIntoView:async(Ie,se)=>{if(!se)return;const lt={colIndex:se?.coords.colStart,rowIndex:se?.coords.rowStart};return await me.current?.scrollCellCoordsIntoView(lt,se?.scroll),!0},onRequestFocus:()=>Nt.whenFocus(Do.current)},Zk);const Gr=s.useMemo(()=>{const Ie=(lt,ft)=>{fn.current=!0,Cn([Z=>{if(!Z.toClipBounds(Z.getRangeCoordsBounds({rowStart:0,rowEnd:ze.height,colStart:lt,colEnd:lt})))return;const K=Z.getLayout(),ce=Math.max(0,K.getColOffset(lt)),fe=Z.getBounds(),Pe=Math.min(fe.x+fe.width,K.getColOffset(lt+1)),Ke=Z.getAnchor();if(ft!==null&&(Ke===so.Left||Ke===so.Center||Ke===so.Right)){const cn=Nt.roundAccurately(ft*Nt.getDPI(),0),Dt=Nt.roundAccurately(n?.getColumnWidthAsFontUnit(ft/ke),2).toFixed(2),Ot="Width: "+(ft?Dt+" ("+cn+" pixels)":"Hidden"),Ln=_t.current.getGridElement().getRelativePointFromClient(0,0),at=0-Ln.y,Kt=0-Ln.y+Se,Kn={x:ce-(Ln.x-fe.x),y:at,width:Pe-ce,height:Kt-at};requestAnimationFrame(()=>{fn.current&&U?.({anchor:Kn,display:Ot})})}const Be=[0,0,0,fe.height],Ct={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:be}},Rt={x:ce-1,y:0,width:1,height:fe.height},jt={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:be}},Pt={x:Pe-1,y:0,width:1,height:fe.height};return a.jsxs(s.Fragment,{children:[a.jsx(Bi,{linePoints:Be,bounds:Rt,...Ct}),a.jsx(Bi,{linePoints:Be,bounds:Pt,...jt})]},"resize-dividers")}])};let se=null;return{onResizeHeadersStart:(lt,ft,Z)=>{se=n.beginCommit(Z),Ie(lt,ft)},onResizeHeaders:(lt,ft,Z)=>{Ie(lt,ft)},onResizeHeadersDown:(lt,ft)=>{Ie(lt,ft)},onResizeHeadersEnd:(lt,ft,Z)=>{se?.commit({description:Z}),se=null,requestAnimationFrame(()=>ee?.()),fn.current=!1,Cn(null)},onResizeHeadersUp:lt=>{requestAnimationFrame(()=>ee?.()),fn.current=!1,Cn(null)},...d}},[n,d,Se,wn]),Sr=s.useMemo(()=>{const Ie=(lt,ft)=>{fn.current=!0,Cn([Z=>{if(!Z.toClipBounds(Z.getRangeCoordsBounds({rowStart:lt,rowEnd:lt,colStart:0,colEnd:ze.width})))return;const K=Z.getLayout(),ce=Math.max(0,K.getRowOffset(lt)),fe=Z.getBounds(),Pe=Math.min(fe.y+fe.height,K.getRowOffset(lt+1)),Ke=Z.getAnchor();if(ft!==null&&(Ke===so.Top||Ke===so.Center||Ke===so.Bottom)){const cn=Math.floor(10*Nt.getDPI())/10,Dt=Nt.roundAccurately(ft*cn,0),Ot=Nt.roundAccurately(Dt/ke/(n?.getRowHeaders().getScaleFactor()*Nt.getDPI()),2).toFixed(2),Ln="Height: "+(ft?Ot+" ("+Dt+" pixels)":"Hidden"),at=ve.current.getGridElement().getRelativePointFromClient(0,0),Kt=0-at.x,Kn=0-at.x+bt,Bt={x:Kt,y:ce-(at.y-fe.y),width:Kn-Kt,height:Pe-ce};requestAnimationFrame(()=>{fn.current&&X?.({anchor:Bt,display:Ln})})}const Be=[0,0,fe.width,0],Ct={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:be}},Rt={x:0,y:ce-1,width:fe.width,height:1},jt={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:be}},Pt={x:0,y:Pe-1,width:fe.width,height:1};return a.jsxs(s.Fragment,{children:[a.jsx(Bi,{linePoints:Be,bounds:Rt,...Ct}),a.jsx(Bi,{linePoints:Be,bounds:Pt,...jt})]},"resize-dividers")}])};let se=null;return{onResizeHeadersStart:(lt,ft,Z)=>{se=n.beginCommit(Z),Ie(lt,ft)},onResizeHeaders:(lt,ft,Z)=>{Ie(lt,ft)},onResizeHeadersDown:(lt,ft)=>{Ie(lt,ft)},onResizeHeadersEnd:(lt,ft,Z)=>{se?.commit({description:Z}),se=null,requestAnimationFrame(()=>ee?.()),fn.current=!1,Cn(null)},onResizeHeadersUp:lt=>{requestAnimationFrame(()=>ee?.()),fn.current=!1,Cn(null)},...u}},[n,u,bt]),Do=jo(t,()=>{const Ie=lt=>{n?.getView()&&n.getView().selectMovables([]),wt.current=null,me?.current?.focus(lt)},se=async(lt=null)=>{if(lt||(lt=n?.getView().getMovableSelection()[0]),!lt)return!1;const ft=lt.getAnchorCoords();if(!ft)return!1;const Z=me.current?.getViewFromCellCoords({colIndex:ft.colStart,rowIndex:ft.rowStart});if(!Z)return!1;const K=Z.getAnchor();n?.getView().getMovableSelection().indexOf(lt)===-1&&n?.getView().selectMovables([lt]);let ce=Ne.current?.get(K);return ce?.current?(await ce.current.focusMovable(lt),!0):(wt.current={movable:lt,anchor:K},!0)};return{getGridElement:()=>me.current,getRowHeaderElement:()=>ve.current,getColumnHeaderElement:()=>_t.current,rowHeaderHeight:()=>Se,colHeaderWidth:()=>bt,startEdit:ct,submitEdit:()=>{kt.setMode(lt=>lt?.key!=="edit"?lt:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{kt.setMode(lt=>lt?.key!=="edit"?lt:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:ie!==null,focus:lt=>{n?.getView().getMovableSelection().length>0&&se()||Ie(lt)},focusSheet:Ie,focusMovable:se,contains:lt=>me?.current?.contains?.(lt),invalidate:Fe,isSheetElement:()=>!0,getSheet:()=>n}},[n]),Fe=s.useCallback(Ie=>{V.current||(me?.current?.invalidate(Ie),D?.())},[]);s.useEffect(()=>{Fe()},[z]);const et=ln?le.edgeStrokeFill:Y.fill,tt=ln?te.fill:typeof z.headerHover=="function"?z.headerHover(Y)?.fill:Y.fill,Ze=s.useMemo(()=>b?a.jsx("div",{className:ar("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:b}):a.jsx(a.Fragment,{}),[b]);let rt=null;de&&ye&&(rt=a.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${Se}px`,width:`${bt}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Ie=>{let se=!Ie.ctrlKey;Qt?.getCommand("selectAll")?.execute(!se||Ie.button!==0),Ie.nativeEvent.which===F8?i?.({originalEvent:Ie,clientX:Ie.clientX,clientY:Ie.clientY,rowIndex:-1,colIndex:-1}):me.current?.focus()},children:[a.jsx("div",{style:{height:Se-5+"px",width:Se-5+"px",clipPath:`path('M${Se-5} 0 L0 ${Se-5} L${Se-5} ${Se-5} L${Se-5} 0 Z')`,borderRight:`2px solid ${et}`,borderBottom:`2px solid ${et}`,background:`${tt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),a.jsx("div",{style:{position:"absolute",height:`${Se}px`,width:`${bt}px`,boxSizing:"border-box",borderRight:`solid 1px ${Y.strokeFill}`,borderBottom:`solid 1px ${Y.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const vt=he(({_left:Ie,_top:se})=>{},[]),Et=he(Ie=>{if(!i)return;const se=me.current.getViewFromClient(Ie.clientX,Ie.clientY)?.getCellCoordsFromClient(Ie.clientX,Ie.clientY);se&&(i({originalEvent:Ie,clientX:Ie.clientX,clientY:Ie.clientY,rowIndex:se.rowIndex,colIndex:se.colIndex}),Ie.stopPropagation(),Ie.preventDefault())},[i]),St=he(Ie=>{if(Ie.shiftKey||!Ie.ctrlKey&&!Ie.metaKey)return;const{deltaY:se}=Ie;return se>0?Qt.getCommand("sheetZoomOut")?.execute():se<0&&Qt.getCommand("sheetZoomIn")?.execute(),se===0},[Qt]);s.useEffect(()=>{br(null),wr.current=null,fn.current=!1,Cn(null);const Ie=n?.getView().getTopLeft();vt(Ie),me.current?.scrollTo(Ie),ot(Ie),ae(n.getView()),Qe(st(n.getView().getFreezePanes())),Ue(Ye()),D()},[n?.getView()]);const Mt=he(Ie=>{const se=Ie.getVisibleRangeCoords();if(!se)return null;const lt=[];return n.getRange(se).forEach((ft,Z)=>{const K=Z.getCoords(),ce=Z.getCell();(fe=>{if(fe.isEmpty())return!1;const Pe=fe.getSpans();if(Pe.width>1||Pe.height>1||fe.getStyle().hasVisibleStyling()||J.isShowFormulas()&&fe.getFormula()!==null)return!0;const Ke=fe.getValue();return Ke!==null&&!(!J.isShowZeros()&&Ke===0&&fe.getType()===B.ScalarType.Number)})(ce)&&lt.push({coords:K,value:ce,range:J.isShowFormulas()?null:ce.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),lt},[n,J.isShowZeros(),J.isShowFormulas(),ie]);s.useEffect(()=>{const Ie=[];y&&Ie.push(...y),wn&&Ie.push(...wn),Nt.isEqualArrays(Ie,wr.current)||(wr.current=Ie,br(Ie))},[y,wn,z]);const Tt=s.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[z?.header?.edgeStrokeFill]),en=he(Ie=>{Ie.isDefaultPrevented()||Ie.isPropagationStopped()||(wt.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),bn=s.useMemo(()=>{const Ie=kt.getMode();return Ie?.key==="cut"||Ie?.key==="copy"},[kt]),an=he(async Ie=>{const se=kt.getMode();return Ie.keyCode===Wt.Escape&&se?(Ie.preventDefault(),void kt.setMode(null)):Ie.keyCode===Wt.Enter&&bn?(Ie.preventDefault(),await Qt?.getCommand("paste")?.execute(),void kt.setMode(null)):void Qt?.dispatchToFocusedCommand(Ie)},[Qt,kt]),ve=s.useRef(null),ut=s.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${Se+1}px`,width:`${bt+Y.edgeStrokeWidth}px`,minWidth:`${bt+Y.edgeStrokeWidth}px`,borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,height:`calc(100% - ${Se}px)`,boxSizing:"border-box",zIndex:"2"},children:a.jsx(y7,{ref:ve,sheetElement:Do.current,gridRef:me,freezeStart:Xe?.[so.Top],oppositeSize:bt,containerWidth:bt,containerHeight:xt,sheetHeader:n.getRowHeaders(),gridStyle:W,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:Uo,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${Se+1}px`,width:`${bt+Y.edgeStrokeWidth}px`,minWidth:`${bt+Y.edgeStrokeWidth}px`,borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,height:`calc(100% - ${Se}px)`,boxSizing:"border-box",zIndex:"2",...Sr?.style},...Sr})}),[bt,Se,xt,n,Uo,Xe?.[so.Top],z,Me,i,Y.fill,u]),_t=s.useRef(null),sn=s.useMemo(()=>a.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${Se+Y.edgeStrokeWidth}px`,minHeight:`${Se+Y.edgeStrokeWidth}px`,borderBottom:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:a.jsx(y7,{ref:_t,sheetElement:Do.current,gridRef:me,freezeStart:Xe?.[so.Left],oppositeSize:Se,containerWidth:ht,containerHeight:Se,sheetHeader:n.getColumnHeaders(),gridStyle:W,scrollPoint:Wo,onSheetContextMenu:i,...Gr,style:{...Gr?.style,position:"relative",left:"0px",width:"100%",height:`${Se+Y.edgeStrokeWidth}px`,minHeight:`${Se+Y.edgeStrokeWidth}px`,borderBottom:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[Se,ht,n,Wo,Xe?.[so.Left],z,Y.fill,Me,i,d]),Jt=he(Ie=>{const{value:se,key:lt,...ft}=Ie;let Z=se,K=ie;if(!K||K.colIndex===Ie.coords.colIndex&&K.rowIndex===Ie.coords.rowIndex||(K=null),!Z){const Pe=Ie.range;if(Z=n.getRange({rowIndex:Pe.rowStart,colIndex:Pe.colStart}).getCell(),Z.isEmpty())return null}let ce=null;Z.getHyperlink()&&(ce=async Pe=>{if(j?.onLinkMouseDown?.(Pe),Pe.button===0&&!Pe.isDefaultPrevented()){Pe.stopPropagation(),Pe.preventDefault();try{await Z.getHyperlink()?.open()}catch(Ke){F?.showError?.(Ke)}}}),K&&K.colIndex===Ie.range.colStart&&K.rowIndex===Ie.range.rowStart&&(Z=Z.createTemporaryCell({value:null}));const fe=n.getStyles();return s.createElement(sk,{...ft,key:lt,bodyStyle:G,docTheme:fe.getTheme(),normalStyle:fe.getNormal(),showFormulas:J.isShowFormulas(),showZeros:J.isShowZeros(),onLinkMouseDown:ce,...j,value:Z})},[n,re,G,ie,J?.isShowFormulas(),J.isShowZeros()]),yt=s.useCallback((Ie,se)=>{const{key:lt,...ft}=Ie;return[a.jsx(vk,{ref:se,getVisibleCells:Mt,sheet:n,gridStyle:z,...ft},`border-${lt}`),a.jsx(Wk,{ref:se,sheet:n,commands:Qt,...ft},`table-${lt}`),a.jsx(Uk,{ref:se,sheet:n,...ft},`spill-${lt}`),a.jsx(Pk,{ref:se,sheet:n,commands:Qt,notifier:F,onShowTooltip:O,onCloseTooltip:ee,gridStyle:z,gridRef:me,editingCoords:ie,isActive:Me,...ft},`selection-${lt}`),a.jsx(Mk,{ref:se,sheet:n,commands:Qt,gridStyle:z,element:Oe,notifier:F,...ft},`copy-paste-${lt}`),a.jsx(Nk,{ref:se,sheet:n,commands:Qt,target:Vt,notifier:F,renderMovable:w,movableProps:{onUnFocus:()=>{Do.current.focus()}},...ft},`movable-${lt}`),a.jsx(Vk,{ref:se,sheet:n,commands:Qt,notifier:F,gridStyle:z,getCellEditor:E,showProtectedError:Fn,setEditingCoords:Re,...ft},`editor-${lt}`)]},[n,me.current,z,E,Qt,F]),[qt,Lo]=s.useState(!1),Bo=s.useMemo(()=>{if(ht===0||xt===0)return null;const Ie=n.getStyles().getNormal(),se=Ie.getFont(),lt=Ie.getFill(),ft=Ie.getBorder(),Z=Ie.getFill().getType()===B.IFill.Type.None;let K=ne,ce=ne;const fe=(Ke,Be,Ct)=>Ct?{stroke:ft.getBottom().isNone()?"none":Ke.getColor().toRGBA(G.darkMode).toString(),...Be}:Be;ce=fe(ft.getBottom(),ce,!ft.getBottom().isNone()),ce=fe(ft.getTop(),ce,!ft.getTop().isNone()),K=fe(ft.getRight(),K,!ft.getRight().isNone()),K=fe(ft.getLeft(),K,!ft.getLeft().isNone());let Pe=J?.getGridLineColor()?.toRGBA(G.darkMode).toString()??G.strokeFill;return Z||(ce=fe(ft.getBottom(),ce,!0),ce=fe(ft.getTop(),ce,!0),K=fe(ft.getRight(),K,!0),K=fe(ft.getLeft(),K,!0)),a.jsx(K1,{className:"sheetxl-sheet-primary",style:{...qk,...lt.toCSS(G.darkMode),...se.toCSS(G.darkMode,ke),"--sxl-app-color-background":G.fill,"--sxl-app-color-shadow":z.colorShadow,"--sxl-app-color-grey":z.colorGrey,"--sxl-app-color-button-fill":Q.fill,"--sxl-app-color-button-text":Q.text?.fill,"--sxl-app-color-button-border":Q.edgeStrokeFill,"--sxl-app-color-primary-dark":z.selection.strokeFill},ref:me,zoom:ke,...I,onFirstRender:Ke=>{Lo(!0),I?.onFirstRender?.(Ke),Qt?.activate()},showGridLines:De,gridLineColor:Pe,gridLineColumnsProps:K,gridLineRowsProps:ce,freezeLeft:Xe?.[so.Left],freezeLeftProps:Tt,freezeTop:Xe?.[so.Top],freezeTopProps:Tt,width:ht,height:xt,columnCount:ze.width,rowCount:ze.height,cursor:qn??co??"cell",clipCells:!0,layout:re,cellRenderer:Jt,overlayRenderer:yt,getCellCoordsAsRangeCoords:We,getVisibleCells:Mt,onWheelScroll:St,onPointerDown:en,onKeyDown:an,onViewportChange:Le,onImmediateScroll:vt,scrollPoint:pt,stageProps:{onFocus:()=>{Qt?.activate()}},overlays:er})},[A]);s.useEffect(()=>{V.current||D()},[re,Xe,ke,Qt,pt?.left,pt?.top,G,I,ht,xt,qn,er,Me,co]);let Xt={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};p||(Xt={...Xt,...T});const Tn=s.useMemo(()=>{const Ie=n.getStyles().getTheme(),se=Ie.getColorScheme(),lt=Ie.getFontScheme();return{"--sxl-doc-color-dk1":se.getDk1().toCSS(G.darkMode),"--sxl-doc-color-dk2":se.getDk2().toCSS(G.darkMode),"--sxl-doc-color-lt1":se.getLt1().toCSS(G.darkMode),"--sxl-doc-color-lt2":se.getLt2().toCSS(G.darkMode),"--sxl-doc-color-accent1":se.getAccent1().toCSS(G.darkMode),"--sxl-doc-color-accent2":se.getAccent2().toCSS(G.darkMode),"--sxl-doc-color-accent3":se.getAccent3().toCSS(G.darkMode),"--sxl-doc-color-accent4":se.getAccent4().toCSS(G.darkMode),"--sxl-doc-color-accent5":se.getAccent5().toCSS(G.darkMode),"--sxl-doc-color-accent6":se.getAccent6().toCSS(G.darkMode),"--sxl-doc-color-hlink":se.getHlink().toCSS(G.darkMode),"--sxl-doc-color-fol-hlink":se.getFolHlink().toCSS(G.darkMode),"--sxl-doc-font-major":lt.getMajorFont(),"--sxl-doc-font-minor":lt.getMinorFont()}},[n.getStyles().getTheme()]);let mn=a.jsx("div",{style:Xt,onTouchStart:()=>{Gn()},onFocus:Ie=>{we(!0),k?.(Ie)},onBlur:Ie=>{we(!1),M?.(Ie)},ref:Do,...R,children:a.jsx("div",{className:ar("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",...Tn},children:a.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[rt,ut,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[sn,a.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${Y.edgeStrokeWidth}px ${Y.edgeStrokeFill}`,backgroundColor:G.fill},ref:L,onContextMenu:Et,children:[Bo,Ze,a.jsx(bk,{style:{position:"absolute",right:24,bottom:4},colorLicensee:z?.selection?.strokeFill,colorCredits:z?.body?.text?.fill})]})]})]})})});if(p){const Ie=se=>a.jsx(_1,{...se,sheet:n});mn=a.jsx(R2,{style:{flex:"1 1 100%",overflow:"hidden",background:`${Y.fill}`,minHeight:2*gt.height,minWidth:2*gt.width,...T},viewport:oe,touchElement:me.current?.stage,disableTouch:no,onScrollViewport:se=>{me.current?.scrollTo(se)},createHorizontalScrollbar:Ie,createVerticalScrollbar:Ie,...f,children:mn})}s.useEffect(()=>{V.current=!1,D?.(),xe&&Do.current?.focus()},[n]);const[jn,hn]=s.useState(!1),Gn=he(()=>{jn||hn(!0)},[jn]);return s.useEffect(()=>{if(qt)return typeof C=="function"&&C(),pn.detectIt().primaryInput==="touch"&&Gn(),()=>{}},[C,qt,jn]),mn}));W9.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const C7="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=",U9=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:l,isDragging:d,view:c,onHide:u,onShow:p,onKeyDownCapture:f,onFocus:h,onBlur:g,loadingPanel:m,...x}=e,[y,w]=s.useState(!1),[b,C]=s.useState(null),[E,k]=s.useState(null),[M,T]=s.useState(null);s.useEffect(()=>{k(null),i.getDetails().then(P=>{w(!1),k(P.asUrl()),P.asSVGText?.()&&T(P.asSVGText())}).catch(P=>{console.warn(P),w(!0),k(C7),T(null)})},[i]);const F=jo(t,()=>({isPictureEditor:()=>!0}),[]),_=s.useMemo(()=>{if(E||M)return a.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:y?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:y?"var(--sxl-app-color-background, white)":void 0,boxShadow:y?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:y?"contain":void 0,opacity:b?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:E,onLoad:()=>{C(!0)},onError:({currentTarget:P})=>{console.log("error"),P.onerror=null,k(C7),w(!0)},alt:l??`${i.getType()}`})},[b,i,E,M,d]);if(!i.isClosed())return a.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:d?"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,...x,onKeyDownCapture:P=>{f?.(P)},ref:F,children:[b||y?void 0:m,_]})}));U9.displayName="PictureEditor";const Gk=s.memo(s.forwardRef((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:l,onHide:d,onShow:c,...u}=e;s.useEffect(()=>{},[r]);const p=jo(t,()=>({isChartEditor:()=>!0}),[]),[f,{height:h,width:g}]=fi();if(!r.isClosed())return a.jsx("div",{...u,ref:cl([p,f]),children:a.jsx("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:a.jsx("div",{style:{textAlign:"center"},children:r.getDescription()})})})})),Kk=e=>a.jsx("input",{...e}),Xk=s.memo(s.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:l,onCancel:d,createInput:c=Kk,notifier:u,styleHover:p={},dragging:f,maxLength:h,disabled:g=!1,readOnly:m=!1,...x}=e,[y,w]=s.useState(!1),[b,C]=s.useState(!1),[E,k]=s.useState(r);s.useEffect(()=>{k(r)},[r]);const M=s.useRef(null),[T,F]=s.useState(null),_=s.useCallback(function(A){const D=A.message;T!==D&&(u?.showMessage?.(D,{type:i0.Error}),F(D))},[u,T]),P=s.useCallback(A=>{let D=!1;try{D=i?.(A)??!0}catch(L){_(L)}return D?(M.current=null,C(!1),k(A),D):(setTimeout(()=>{M.current?.focus()},0),D)},[i]),v=he(()=>{k(r),M.current=null,C(!1),d?.()},[d,r]),S=s.useMemo(()=>{if(!b)return null;const A={className:ar("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:h,type:"text",value:E,onFocus:D=>{M.current||(M.current=D.target,setTimeout(()=>{D.target?.select()},0))},onBlur:D=>{M.current&&P(E)},onChange:D=>{b&&k(D.target.value)},onMouseDown:D=>D.stopPropagation(),onKeyDown:D=>D.code==="Escape"?(D.preventDefault(),void v()):D.code==="Enter"?(D.preventDefault(),void P(D.target.value)):void(D.code!=="Tab"?D.stopPropagation():P(D.target.value))};return a.jsx(a.Fragment,{children:c(A)})},[b,E,P,v,c,g]),[I,j]=s.useState();s.useLayoutEffect(()=>{let A=Object.assign({},n);(f||y)&&(A=Object.assign(A,p)),j(A)},[f,y,p,n]),s.useEffect(()=>{S&&l?.(E)},[S,l,E]);const R=jo(t,()=>({startEdit(){g||m||C(!0)},cancel(){v()}}),[]);return a.jsxs("div",{...x,ref:R,style:{flexDirection:"column",display:"flex",...I},className:ar(o),children:[a.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{g||m||C(!0)},onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[a.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:E}),S]}),a.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...p},children:E})]})})),X1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function dl(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mu(e){return"nodeType"in e}function Qo(e){var t,n;return e?dl(e)?e:mu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function gu(e){const{Document:t}=Qo(e);return e instanceof t}function Ha(e){return!dl(e)&&e instanceof Qo(e).HTMLElement}function q9(e){return e instanceof Qo(e).SVGElement}function rl(e){return e?dl(e)?e.document:mu(e)?gu(e)?e:Ha(e)||q9(e)?e.ownerDocument:document:document:document}const $r=X1?s.useLayoutEffect:s.useEffect;function Y1(e){const t=s.useRef(e);return $r(()=>{t.current=e}),s.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function la(e,t){t===void 0&&(t=[e]);const n=s.useRef(e);return $r(()=>{n.current!==e&&(n.current=e)},t),n}function Jl(e,t){const n=s.useRef();return s.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function Gs(e){const t=Y1(e),n=s.useRef(null),o=s.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function T1(e){const t=s.useRef();return s.useEffect(()=>{t.current=e},[e]),t.current}let od={};function Ta(e,t){return s.useMemo(()=>{if(t)return t;const n=od[e]==null?0:od[e]+1;return od[e]=n,e+"-"+n},[e,t])}function Z9(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((i,l)=>{const d=Object.entries(l);for(const[c,u]of d){const p=i[c];p!=null&&(i[c]=p+e*u)}return i},{...t})}}const Ni=Z9(1),ja=Z9(-1);function J1(e){if(!e)return!1;const{KeyboardEvent:t}=Qo(e.target);return t&&e instanceof t}function j1(e){if(function(n){if(!n)return!1;const{TouchEvent:o}=Qo(n.target);return o&&n instanceof o}(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:o}=e.touches[0];return{x:n,y:o}}if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:o}=e.changedTouches[0];return{x:n,y:o}}}return"clientX"in(t=e)&&"clientY"in t?{x:e.clientX,y:e.clientY}:null;var t}const mi=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[mi.Translate.toString(e),mi.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),k7="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Yk(e){return e.matches(k7)?e:e.querySelector(k7)}const Jk={display:"none"};function Qk(e){let{id:t,value:n}=e;return s.createElement("div",{id:t,style:Jk},n)}function eE(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return s.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 G9=s.createContext(null),tE={draggable:`
73
- To pick up a draggable item, press the space bar.
74
- While dragging, use the arrow keys to move the item.
75
- Press space again to drop the item in its new position, or press escape to cancel.
76
- `},nE={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 oE(e){let{announcements:t=nE,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=tE}=e;const{announce:i,announcement:l}=function(){const[f,h]=s.useState("");return{announce:s.useCallback(g=>{g!=null&&h(g)},[]),announcement:f}}(),d=Ta("DndLiveRegion"),[c,u]=s.useState(!1);if(s.useEffect(()=>{u(!0)},[]),function(f){const h=s.useContext(G9);s.useEffect(()=>{if(!h)throw new Error("useDndMonitor must be used within a children of <DndContext>");return h(f)},[f,h])}(s.useMemo(()=>({onDragStart(f){let{active:h}=f;i(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:g}=f;t.onDragMove&&i(t.onDragMove({active:h,over:g}))},onDragOver(f){let{active:h,over:g}=f;i(t.onDragOver({active:h,over:g}))},onDragEnd(f){let{active:h,over:g}=f;i(t.onDragEnd({active:h,over:g}))},onDragCancel(f){let{active:h,over:g}=f;i(t.onDragCancel({active:h,over:g}))}}),[i,t])),!c)return null;const p=s.createElement(s.Fragment,null,s.createElement(Qk,{id:o,value:r.draggable}),s.createElement(eE,{id:d,announcement:l}));return n?wo.createPortal(p,n):p}var _o;function M1(){}function rd(e,t){return s.useMemo(()=>({sensor:e,options: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"})(_o||(_o={}));const Ur=Object.freeze({x:0,y:0});function K9(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function rE(e,t){const n=j1(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function X9(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function iE(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function E7(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 Y9(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _7(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const lE=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=_7(t,t.left,t.top),i=[];for(const l of o){const{id:d}=l,c=n.get(d);if(c){const u=K9(_7(c),r);i.push({id:d,data:{droppableContainer:l,value:u}})}}return i.sort(X9)};function aE(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,d=i-n;if(o<r&&n<i){const c=t.width*t.height,u=e.width*e.height,p=l*d;return Number((p/(c+u-p)).toFixed(4))}return 0}const sE=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:l}=i,d=n.get(l);if(d){const c=aE(d,t);c>0&&r.push({id:l,data:{droppableContainer:i,value:c}})}}return r.sort(iE)};function T7(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Ur}const cE=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((i,l)=>({...i,top:i.top+e*l.y,bottom:i.bottom+e*l.y,left:i.left+e*l.x,right:i.right+e*l.x}),{...t})}}(1);function J9(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 dE={ignoreTransform:!1};function ul(e,t){t===void 0&&(t=dE);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:p}=Qo(e).getComputedStyle(e);u&&(n=function(f,h,g){const m=J9(h);if(!m)return f;const{scaleX:x,scaleY:y,x:w,y:b}=m,C=f.left-w-(1-x)*parseFloat(g),E=f.top-b-(1-y)*parseFloat(g.slice(g.indexOf(" ")+1)),k=x?f.width/x:f.width,M=y?f.height/y:f.height;return{width:k,height:M,top:E,right:C+k,bottom:E+M,left:C}}(n,u,p))}const{top:o,left:r,width:i,height:l,bottom:d,right:c}=n;return{top:o,left:r,width:i,height:l,bottom:d,right:c}}function j7(e){return ul(e,{ignoreTransform:!0})}function Q1(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(gu(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Ha(r)||q9(r)||n.includes(r))return n;const i=Qo(e).getComputedStyle(r);return r!==e&&function(c,u){u===void 0&&(u=Qo(c).getComputedStyle(c));const p=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(f=>{const h=u[f];return typeof h=="string"&&p.test(h)})}(r,i)&&n.push(r),l=r,(d=i)===void 0&&(d=Qo(l).getComputedStyle(l)),d.position==="fixed"?n:o(r.parentNode);var l,d}(e):n}function Q9(e){const[t]=Q1(e,1);return t??null}function id(e){return X1&&e?dl(e)?e:mu(e)?gu(e)||e===rl(e).scrollingElement?window:Ha(e)?e:null:null:null}function ef(e){return dl(e)?e.scrollX:e.scrollLeft}function tf(e){return dl(e)?e.scrollY:e.scrollTop}function x2(e){return{x:ef(e),y:tf(e)}}var Io;function nf(e){return!(!X1||!e)&&e===document.scrollingElement}function of(e){const t={x:0,y:0},n=nf(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"})(Io||(Io={}));const uE={x:.2,y:.2};function hE(e,t,n,o,r){let{top:i,left:l,right:d,bottom:c}=n;o===void 0&&(o=10),r===void 0&&(r=uE);const{isTop:u,isBottom:p,isLeft:f,isRight:h}=of(e),g={x:0,y:0},m={x:0,y:0},x=t.height*r.y,y=t.width*r.x;return!u&&i<=t.top+x?(g.y=Io.Backward,m.y=o*Math.abs((t.top+x-i)/x)):!p&&c>=t.bottom-x&&(g.y=Io.Forward,m.y=o*Math.abs((t.bottom-x-c)/x)),!h&&d>=t.right-y?(g.x=Io.Forward,m.x=o*Math.abs((t.right-y-d)/y)):!f&&l<=t.left+y&&(g.x=Io.Backward,m.x=o*Math.abs((t.left+y-l)/y)),{direction:g,speed:m}}function pE(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:l}=window;return{top:0,left:0,right:i,bottom:l,width:i,height:l}}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 rf(e){return e.reduce((t,n)=>Ni(t,x2(n)),Ur)}function lf(e,t){if(t===void 0&&(t=ul),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);Q9(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const fE=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+ef(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+tf(n),0)}]];class y2{constructor(t,n){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 o=Q1(n),r=rf(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,l,d]of fE)for(const c of l)Object.defineProperty(this,c,{get:()=>{const u=d(o),p=r[i]-u;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class aa{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function ld(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?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 _r,Sn;function M7(e){e.preventDefault()}function mE(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"})(_r||(_r={})),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"}(Sn||(Sn={}));const af={start:[Sn.Space,Sn.Enter],cancel:[Sn.Esc],end:[Sn.Space,Sn.Enter,Sn.Tab]},gE=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Sn.Right:return{...n,x:n.x+25};case Sn.Left:return{...n,x:n.x-25};case Sn.Down:return{...n,y:n.y+25};case Sn.Up:return{...n,y:n.y-25}}};class xu{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new aa(rl(n)),this.windowListeners=new aa(Qo(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(_r.Resize,this.handleCancel),this.windowListeners.add(_r.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(_r.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&lf(o),n(Ur)}handleKeyDown(t){if(J1(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=af,coordinateGetter:l=gE,scrollBehavior:d="smooth"}=r,{code:c}=t;if(i.end.includes(c))return void this.handleEnd(t);if(i.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:u}=o.current,p=u?{x:u.left,y:u.top}:Ur;this.referenceCoordinates||(this.referenceCoordinates=p);const f=l(t,{active:n,context:o.current,currentCoordinates:p});if(f){const h=ja(f,p),g={x:0,y:0},{scrollableAncestors:m}=o.current;for(const x of m){const y=t.code,{isTop:w,isRight:b,isLeft:C,isBottom:E,maxScroll:k,minScroll:M}=of(x),T=pE(x),F={x:Math.min(y===Sn.Right?T.right-T.width/2:T.right,Math.max(y===Sn.Right?T.left:T.left+T.width/2,f.x)),y:Math.min(y===Sn.Down?T.bottom-T.height/2:T.bottom,Math.max(y===Sn.Down?T.top:T.top+T.height/2,f.y))},_=y===Sn.Right&&!b||y===Sn.Left&&!C,P=y===Sn.Down&&!E||y===Sn.Up&&!w;if(_&&F.x!==f.x){const v=x.scrollLeft+h.x,S=y===Sn.Right&&v<=k.x||y===Sn.Left&&v>=M.x;if(S&&!h.y)return void x.scrollTo({left:v,behavior:d});g.x=S?x.scrollLeft-v:y===Sn.Right?x.scrollLeft-k.x:x.scrollLeft-M.x,g.x&&x.scrollBy({left:-g.x,behavior:d});break}if(P&&F.y!==f.y){const v=x.scrollTop+h.y,S=y===Sn.Down&&v<=k.y||y===Sn.Up&&v>=M.y;if(S&&!h.x)return void x.scrollTo({top:v,behavior:d});g.y=S?x.scrollTop-v:y===Sn.Down?x.scrollTop-k.y:x.scrollTop-M.y,g.y&&x.scrollBy({top:-g.y,behavior:d});break}}this.handleMove(t,Ni(ja(f,this.referenceCoordinates),g))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function R7(e){return!(!e||!("distance"in e))}function I7(e){return!(!e||!("delay"in e))}xu.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=af,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const d=i.activatorNode.current;return!(d&&e.target!==d||(e.preventDefault(),r?.({event:e.nativeEvent}),0))}return!1}}];class yu{constructor(t,n,o){var r;o===void 0&&(o=function(d){const{EventTarget:c}=Qo(d);return d instanceof c?d:rl(d)}(t.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=t,this.events=n;const{event:i}=t,{target:l}=i;this.props=t,this.events=n,this.document=rl(l),this.documentListeners=new aa(this.document),this.listeners=new aa(o),this.windowListeners=new aa(Qo(l)),this.initialCoordinates=(r=j1(i))!=null?r:Ur,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:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(_r.Resize,this.handleCancel),this.windowListeners.add(_r.DragStart,M7),this.windowListeners.add(_r.VisibilityChange,this.handleCancel),this.windowListeners.add(_r.ContextMenu,M7),this.documentListeners.add(_r.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(I7(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(R7(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(_r.Click,mE,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(_r.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:l,options:{activationConstraint:d}}=i;if(!r)return;const c=(n=j1(t))!=null?n:Ur,u=ja(r,c);if(!o&&d){if(R7(d)){if(d.tolerance!=null&&ld(u,d.tolerance))return this.handleCancel();if(ld(u,d.distance))return this.handleStart()}return I7(d)&&ld(u,d.tolerance)?this.handleCancel():void this.handlePending(d,u)}t.cancelable&&t.preventDefault(),l(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Sn.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const xE={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class sf extends yu{constructor(t){const{event:n}=t,o=rl(n.target);super(t,xE,o)}}sf.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const yE={move:{name:"mousemove"},end:{name:"mouseup"}};var b2;(function(e){e[e.RightClick=2]="RightClick"})(b2||(b2={}));class cf extends yu{constructor(t){super(t,yE,rl(t.event.target))}}cf.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==b2.RightClick&&(o?.({event:n}),!0)}}];const ad={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class df extends yu{constructor(t){super(t,ad)}static setup(){return window.addEventListener(ad.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(ad.move.name,t)};function t(){}}}var sa,R1;df.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1||(o?.({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(sa||(sa={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(R1||(R1={}));const bE={x:{[Io.Backward]:!1,[Io.Forward]:!1},y:{[Io.Backward]:!1,[Io.Forward]:!1}};var Ma,w2;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ma||(Ma={})),(w2||(w2={})).Optimized="optimized";const D7=new Map;function v2(e,t){return Jl(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function I1(e){let{callback:t,disabled:n}=e;const o=Y1(t),r=s.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:i}=window;return new i(o)},[n]);return s.useEffect(()=>()=>r?.disconnect(),[r]),r}function wE(e){return new y2(ul(e),e)}function L7(e,t,n){t===void 0&&(t=wE);const[o,r]=s.useState(null);function i(){r(c=>{if(!e)return null;var u;if(e.isConnected===!1)return(u=c??n)!=null?u:null;const p=t(e);return JSON.stringify(c)===JSON.stringify(p)?c:p})}const l=function(c){let{callback:u,disabled:p}=c;const f=Y1(u),h=s.useMemo(()=>{if(p||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:g}=window;return new g(f)},[f,p]);return s.useEffect(()=>()=>h?.disconnect(),[h]),h}({callback(c){if(e)for(const u of c){const{type:p,target:f}=u;if(p==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),d=I1({callback:i});return $r(()=>{i(),e?(d?.observe(e),l?.observe(document.body,{childList:!0,subtree:!0})):(d?.disconnect(),l?.disconnect())},[e]),o}const O7=[];function P7(e,t){t===void 0&&(t=[]);const n=s.useRef(null);return s.useEffect(()=>{n.current=null},t),s.useEffect(()=>{const o=e!==Ur;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?ja(e,n.current):Ur}function A7(e){return s.useMemo(()=>e?function(t){const n=t.innerWidth,o=t.innerHeight;return{top:0,left:0,right:n,bottom:o,width:n,height:o}}(e):null,[e])}const F7=[];function uf(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ha(t)?t:e}const vE=[{sensor:sf,options:{}},{sensor:xu,options:{}}],SE={current:{}},Ks={draggable:{measure:j7},droppable:{measure:j7,strategy:Ma.WhileDragging,frequency:w2.Optimized},dragOverlay:{measure:ul}};class ca extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const CE={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ca,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:M1},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ks,measureDroppableContainers:M1,windowRect:null,measuringScheduled:!1},hf={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:M1,draggableNodes:new Map,over:null,measureDroppableContainers:M1},Ra=s.createContext(hf),pf=s.createContext(CE);function kE(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ca}}}function EE(e,t){switch(t.type){case _o.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _o.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _o.DragEnd:case _o.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _o.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new ca(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case _o.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 ca(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case _o.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new ca(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function _E(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=s.useContext(Ra),i=T1(o),l=T1(n?.id);return s.useEffect(()=>{if(!t&&!o&&i&&l!=null){if(!J1(i)||document.activeElement===i.target)return;const d=r.get(l);if(!d)return;const{activatorNode:c,node:u}=d;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const p of[c.current,u.current]){if(!p)continue;const f=Yk(p);if(f){f.focus();break}}})}},[o,t,r,l,i]),null}function ff(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const ec=s.createContext({...Ur,scaleX:1,scaleY:1});var L0;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(L0||(L0={}));const TE=s.memo(function(e){var t,n,o,r;let{id:i,accessibility:l,autoScroll:d=!0,children:c,sensors:u=vE,collisionDetection:p=sE,measuring:f,modifiers:h,...g}=e;const m=s.useReducer(EE,void 0,kE),[x,y]=m,[w,b]=function(){const[oe]=s.useState(()=>new Set),Ce=s.useCallback(Le=>(oe.add(Le),()=>oe.delete(Le)),[oe]);return[s.useCallback(Le=>{let{type:qe,event:pt}=Le;oe.forEach(ot=>{var We;return(We=ot[qe])==null?void 0:We.call(ot,pt)})},[oe]),Ce]}(),[C,E]=s.useState(L0.Uninitialized),k=C===L0.Initialized,{draggable:{active:M,nodes:T,translate:F},droppable:{containers:_}}=x,P=M!=null?T.get(M):null,v=s.useRef({initial:null,translated:null}),S=s.useMemo(()=>{var oe;return M!=null?{id:M,data:(oe=P?.data)!=null?oe:SE,rect:v}:null},[M,P]),I=s.useRef(null),[j,R]=s.useState(null),[A,D]=s.useState(null),L=la(g,Object.values(g)),$=Ta("DndDescribedBy",i),q=s.useMemo(()=>_.getEnabled(),[_]),O=s.useMemo(()=>({draggable:{...Ks.draggable,...U?.draggable},droppable:{...Ks.droppable,...U?.droppable},dragOverlay:{...Ks.dragOverlay,...U?.dragOverlay}}),[(U=f)==null?void 0:U.draggable,U?.droppable,U?.dragOverlay]);var U;const{droppableRects:X,measureDroppableContainers:ee,measuringScheduled:V}=function(oe,Ce){let{dragging:Le,dependencies:qe,config:pt}=Ce;const[ot,We]=s.useState(null),{frequency:st,measure:Xe,strategy:Qe}=pt,kt=s.useRef(oe),Vt=function(){switch(Qe){case Ma.Always:return!1;case Ma.BeforeDragging:return Le;default:return!Le}}(),ct=la(Vt),Ut=s.useCallback(function(gn){gn===void 0&&(gn=[]),ct.current||We(En=>En===null?gn:En.concat(gn.filter(Nn=>!En.includes(Nn))))},[ct]),Qt=s.useRef(null),ln=Jl(gn=>{if(Vt&&!Le)return D7;if(!gn||gn===D7||kt.current!==oe||ot!=null){const En=new Map;for(let Nn of oe){if(!Nn)continue;if(ot&&ot.length>0&&!ot.includes(Nn.id)&&Nn.rect.current){En.set(Nn.id,Nn.rect.current);continue}const no=Nn.node.current,co=no?new y2(Xe(no),no):null;Nn.rect.current=co,co&&En.set(Nn.id,co)}return En}return gn},[oe,ot,Le,Vt,Xe]);return s.useEffect(()=>{kt.current=oe},[oe]),s.useEffect(()=>{Vt||Ut()},[Le,Vt]),s.useEffect(()=>{ot&&ot.length>0&&We(null)},[JSON.stringify(ot)]),s.useEffect(()=>{Vt||typeof st!="number"||Qt.current!==null||(Qt.current=setTimeout(()=>{Ut(),Qt.current=null},st))},[st,Vt,Ut,...qe]),{droppableRects:ln,measureDroppableContainers:Ut,measuringScheduled:ot!=null}}(q,{dragging:k,dependencies:[F.x,F.y],config:O.droppable}),H=function(oe,Ce){const Le=Ce!=null?oe.get(Ce):void 0,qe=Le?Le.node.current:null;return Jl(pt=>{var ot;return Ce==null?null:(ot=qe??pt)!=null?ot:null},[qe,Ce])}(T,M),z=s.useMemo(()=>A?j1(A):null,[A]),W=function(){const oe=j?.autoScrollEnabled===!1,Ce=typeof d=="object"?d.enabled===!1:d===!1,Le=k&&!oe&&!Ce;return typeof d=="object"?{...d,enabled:Le}:{enabled:Le}}(),G=function(oe,Ce){return v2(oe,Ce)}(H,O.draggable.measure);(function(oe){let{activeNode:Ce,measure:Le,initialRect:qe,config:pt=!0}=oe;const ot=s.useRef(!1),{x:We,y:st}=typeof pt=="boolean"?{x:pt,y:pt}:pt;$r(()=>{if(!We&&!st||!Ce)return void(ot.current=!1);if(ot.current||!qe)return;const Xe=Ce?.node.current;if(!Xe||Xe.isConnected===!1)return;const Qe=T7(Le(Xe),qe);if(We||(Qe.x=0),st||(Qe.y=0),ot.current=!0,Math.abs(Qe.x)>0||Math.abs(Qe.y)>0){const kt=Q9(Xe);kt&&kt.scrollBy({top:Qe.y,left:Qe.x})}},[Ce,We,st,qe,Le])})({activeNode:M!=null?T.get(M):null,config:W.layoutShiftCompensation,initialRect:G,measure:O.draggable.measure});const Q=L7(H,O.draggable.measure,G),Y=L7(H?H.parentElement:null),te=s.useRef({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:_,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),le=_.getNodeFor((t=te.current.over)==null?void 0:t.id),me=function(oe){let{measure:Ce}=oe;const[Le,qe]=s.useState(null),pt=I1({callback:s.useCallback(Xe=>{for(const{target:Qe}of Xe)if(Ha(Qe)){qe(kt=>{const Vt=Ce(Qe);return kt?{...kt,width:Vt.width,height:Vt.height}:Vt});break}},[Ce])}),ot=s.useCallback(Xe=>{const Qe=uf(Xe);pt?.disconnect(),Qe&&pt?.observe(Qe),qe(Qe?Ce(Qe):null)},[Ce,pt]),[We,st]=Gs(ot);return s.useMemo(()=>({nodeRef:We,rect:Le,setRef:st}),[Le,We,st])}({measure:O.dragOverlay.measure}),J=(n=me.nodeRef.current)!=null?n:H,ae=k?(o=me.rect)!=null?o:Q:null,ke=!(!me.nodeRef.current||!me.rect),De=T7(ne=ke?null:Q,v2(ne));var ne;const de=A7(J?Qo(J):null),ye=function(oe){const Ce=s.useRef(oe),Le=Jl(qe=>oe?qe&&qe!==O7&&oe&&Ce.current&&oe.parentNode===Ce.current.parentNode?qe:Q1(oe):O7,[oe]);return s.useEffect(()=>{Ce.current=oe},[oe]),Le}(k?le??H:null),ze=function(oe,Ce){Ce===void 0&&(Ce=ul);const[Le]=oe,qe=A7(Le?Qo(Le):null),[pt,ot]=s.useState(F7);function We(){ot(()=>oe.length?oe.map(Xe=>nf(Xe)?qe:new y2(Ce(Xe),Xe)):F7)}const st=I1({callback:We});return $r(()=>{st?.disconnect(),We(),oe.forEach(Xe=>st?.observe(Xe))},[oe]),pt}(ye),$e=ff(h,{transform:{x:F.x-De.x,y:F.y-De.y,scaleX:1,scaleY:1},activatorEvent:A,active:S,activeNodeRect:Q,containerNodeRect:Y,draggingNodeRect:ae,over:te.current.over,overlayNodeRect:me.rect,scrollableAncestors:ye,scrollableAncestorRects:ze,windowRect:de}),gt=z?Ni(z,F):null,bt=function(oe){const[Ce,Le]=s.useState(null),qe=s.useRef(oe),pt=s.useCallback(ot=>{const We=id(ot.target);We&&Le(st=>st?(st.set(We,x2(We)),new Map(st)):null)},[]);return s.useEffect(()=>{const ot=qe.current;if(oe!==ot){We(ot);const st=oe.map(Xe=>{const Qe=id(Xe);return Qe?(Qe.addEventListener("scroll",pt,{passive:!0}),[Qe,x2(Qe)]):null}).filter(Xe=>Xe!=null);Le(st.length?new Map(st):null),qe.current=oe}return()=>{We(oe),We(ot)};function We(st){st.forEach(Xe=>{id(Xe)?.removeEventListener("scroll",pt)})}},[pt,oe]),s.useMemo(()=>oe.length?Ce?Array.from(Ce.values()).reduce((ot,We)=>Ni(ot,We),Ur):rf(oe):Ur,[oe,Ce])}(ye),Se=P7(bt),ht=P7(bt,[Q]),xt=Ni($e,Se),Ne=ae?cE(ae,$e):null,wt=S&&Ne?p({active:S,collisionRect:Ne,droppableRects:X,droppableContainers:q,pointerCoordinates:gt}):null,Ye=Y9(wt,"id"),[re,Ue]=s.useState(null),xe=function(oe,Ce,Le){return{...oe,scaleX:Ce&&Le?Ce.width/Le.width:1,scaleY:Ce&&Le?Ce.height/Le.height:1}}(ke?$e:Ni($e,ht),(r=re?.rect)!=null?r:null,Q),we=s.useRef(null),ie=s.useCallback((oe,Ce)=>{let{sensor:Le,options:qe}=Ce;if(I.current==null)return;const pt=T.get(I.current);if(!pt)return;const ot=oe.nativeEvent,We=new Le({active:I.current,activeNode:pt,event:ot,options:qe,context:te,onAbort(Xe){if(!T.get(Xe))return;const{onDragAbort:Qe}=L.current,kt={id:Xe};Qe?.(kt),w({type:"onDragAbort",event:kt})},onPending(Xe,Qe,kt,Vt){if(!T.get(Xe))return;const{onDragPending:ct}=L.current,Ut={id:Xe,constraint:Qe,initialCoordinates:kt,offset:Vt};ct?.(Ut),w({type:"onDragPending",event:Ut})},onStart(Xe){const Qe=I.current;if(Qe==null)return;const kt=T.get(Qe);if(!kt)return;const{onDragStart:Vt}=L.current,ct={activatorEvent:ot,active:{id:Qe,data:kt.data,rect:v}};wo.unstable_batchedUpdates(()=>{Vt?.(ct),E(L0.Initializing),y({type:_o.DragStart,initialCoordinates:Xe,active:Qe}),w({type:"onDragStart",event:ct}),R(we.current),D(ot)})},onMove(Xe){y({type:_o.DragMove,coordinates:Xe})},onEnd:st(_o.DragEnd),onCancel:st(_o.DragCancel)});function st(Xe){return async function(){const{active:Qe,collisions:kt,over:Vt,scrollAdjustedTranslate:ct}=te.current;let Ut=null;if(Qe&&ct){const{cancelDrop:Qt}=L.current;Ut={activatorEvent:ot,active:Qe,collisions:kt,delta:ct,over:Vt},Xe===_o.DragEnd&&typeof Qt=="function"&&await Promise.resolve(Qt(Ut))&&(Xe=_o.DragCancel)}I.current=null,wo.unstable_batchedUpdates(()=>{y({type:Xe}),E(L0.Uninitialized),Ue(null),R(null),D(null),we.current=null;const Qt=Xe===_o.DragEnd?"onDragEnd":"onDragCancel";if(Ut){const ln=L.current[Qt];ln?.(Ut),w({type:Qt,event:Ut})}})}}we.current=We},[T]),Re=s.useCallback((oe,Ce)=>(Le,qe)=>{const pt=Le.nativeEvent,ot=T.get(qe);if(I.current!==null||!ot||pt.dndKit||pt.defaultPrevented)return;const We={active:ot};oe(Le,Ce.options,We)===!0&&(pt.dndKit={capturedBy:Ce.sensor},I.current=qe,ie(Le,Ce))},[T,ie]),Me=function(oe,Ce){return s.useMemo(()=>oe.reduce((Le,qe)=>{const{sensor:pt}=qe;return[...Le,...pt.activators.map(ot=>({eventName:ot.eventName,handler:Ce(ot.handler,qe)}))]},[]),[oe,Ce])}(u,Re);(function(oe){s.useEffect(()=>{if(!X1)return;const Ce=oe.map(Le=>{let{sensor:qe}=Le;return qe.setup==null?void 0:qe.setup()});return()=>{for(const Le of Ce)Le?.()}},oe.map(Ce=>{let{sensor:Le}=Ce;return Le}))})(u),$r(()=>{Q&&C===L0.Initializing&&E(L0.Initialized)},[Q,C]),s.useEffect(()=>{const{onDragMove:oe}=L.current,{active:Ce,activatorEvent:Le,collisions:qe,over:pt}=te.current;if(!Ce||!Le)return;const ot={active:Ce,activatorEvent:Le,collisions:qe,delta:{x:xt.x,y:xt.y},over:pt};wo.unstable_batchedUpdates(()=>{oe?.(ot),w({type:"onDragMove",event:ot})})},[xt.x,xt.y]),s.useEffect(()=>{const{active:oe,activatorEvent:Ce,collisions:Le,droppableContainers:qe,scrollAdjustedTranslate:pt}=te.current;if(!oe||I.current==null||!Ce||!pt)return;const{onDragOver:ot}=L.current,We=qe.get(Ye),st=We&&We.rect.current?{id:We.id,rect:We.rect.current,data:We.data,disabled:We.disabled}:null,Xe={active:oe,activatorEvent:Ce,collisions:Le,delta:{x:pt.x,y:pt.y},over:st};wo.unstable_batchedUpdates(()=>{Ue(st),ot?.(Xe),w({type:"onDragOver",event:Xe})})},[Ye]),$r(()=>{te.current={activatorEvent:A,active:S,activeNode:H,collisionRect:Ne,collisions:wt,droppableRects:X,draggableNodes:T,draggingNode:J,draggingNodeRect:ae,droppableContainers:_,over:re,scrollableAncestors:ye,scrollAdjustedTranslate:xt},v.current={initial:ae,translated:Ne}},[S,H,wt,Ne,T,J,ae,X,_,re,ye,xt]),function(oe){let{acceleration:Ce,activator:Le=sa.Pointer,canScroll:qe,draggingRect:pt,enabled:ot,interval:We=5,order:st=R1.TreeOrder,pointerCoordinates:Xe,scrollableAncestors:Qe,scrollableAncestorRects:kt,delta:Vt,threshold:ct}=oe;const Ut=function(zt){let{delta:Fn,disabled:qn}=zt;const wn=T1(Fn);return Jl(Cn=>{if(qn||!wn||!Cn)return bE;const fn=Math.sign(Fn.x-wn.x),er=Math.sign(Fn.y-wn.y);return{x:{[Io.Backward]:Cn.x[Io.Backward]||fn===-1,[Io.Forward]:Cn.x[Io.Forward]||fn===1},y:{[Io.Backward]:Cn.y[Io.Backward]||er===-1,[Io.Forward]:Cn.y[Io.Forward]||er===1}}},[qn,Fn,wn])}({delta:Vt,disabled:!ot}),[Qt,ln]=function(){const zt=s.useRef(null);return[s.useCallback((Fn,qn)=>{zt.current=setInterval(Fn,qn)},[]),s.useCallback(()=>{zt.current!==null&&(clearInterval(zt.current),zt.current=null)},[])]}(),gn=s.useRef({x:0,y:0}),En=s.useRef({x:0,y:0}),Nn=s.useMemo(()=>{switch(Le){case sa.Pointer:return Xe?{top:Xe.y,bottom:Xe.y,left:Xe.x,right:Xe.x}:null;case sa.DraggableRect:return pt}},[Le,pt,Xe]),no=s.useRef(null),co=s.useCallback(()=>{const zt=no.current;if(!zt)return;const Fn=gn.current.x*En.current.x,qn=gn.current.y*En.current.y;zt.scrollBy(Fn,qn)},[]),_n=s.useMemo(()=>st===R1.TreeOrder?[...Qe].reverse():Qe,[st,Qe]);s.useEffect(()=>{if(ot&&Qe.length&&Nn){for(const zt of _n){if(qe?.(zt)===!1)continue;const Fn=Qe.indexOf(zt),qn=kt[Fn];if(!qn)continue;const{direction:wn,speed:Cn}=hE(zt,qn,Nn,Ce,ct);for(const fn of["x","y"])Ut[fn][wn[fn]]||(Cn[fn]=0,wn[fn]=0);if(Cn.x>0||Cn.y>0)return ln(),no.current=zt,Qt(co,We),gn.current=Cn,void(En.current=wn)}gn.current={x:0,y:0},En.current={x:0,y:0},ln()}else ln()},[Ce,co,qe,ln,ot,We,JSON.stringify(Nn),JSON.stringify(Ut),Qt,Qe,_n,kt,JSON.stringify(ct)])}({...W,delta:F,draggingRect:Ne,pointerCoordinates:gt,scrollableAncestors:ye,scrollableAncestorRects:ze});const be=s.useMemo(()=>({active:S,activeNode:H,activeNodeRect:Q,activatorEvent:A,collisions:wt,containerNodeRect:Y,dragOverlay:me,draggableNodes:T,droppableContainers:_,droppableRects:X,over:re,measureDroppableContainers:ee,scrollableAncestors:ye,scrollableAncestorRects:ze,measuringConfiguration:O,measuringScheduled:V,windowRect:de}),[S,H,Q,A,wt,Y,me,T,_,X,re,ee,ye,ze,O,V,de]),Oe=s.useMemo(()=>({activatorEvent:A,activators:Me,active:S,activeNodeRect:Q,ariaDescribedById:{draggable:$},dispatch:y,draggableNodes:T,over:re,measureDroppableContainers:ee}),[A,Me,S,Q,y,$,T,re,ee]);return s.createElement(G9.Provider,{value:b},s.createElement(Ra.Provider,{value:Oe},s.createElement(pf.Provider,{value:be},s.createElement(ec.Provider,{value:xe},c)),s.createElement(_E,{disabled:l?.restoreFocus===!1})),s.createElement(oE,{...l,hiddenTextDescribedById:$}))}),jE=s.createContext(null),z7="button";function mf(){return s.useContext(pf)}const ME={timeout:25};function RE(e){let{animation:t,children:n}=e;const[o,r]=s.useState(null),[i,l]=s.useState(null),d=T1(n);return n||o||!d||r(d),$r(()=>{if(!i)return;const c=o?.key,u=o?.props.id;c!=null&&u!=null?Promise.resolve(t(u,i)).then(()=>{r(null)}):r(null)},[t,o,i]),s.createElement(s.Fragment,null,n,o?s.cloneElement(o,{ref:l}):null)}const IE={x:0,y:0,scaleX:1,scaleY:1};function DE(e){let{children:t}=e;return s.createElement(Ra.Provider,{value:hf},s.createElement(ec.Provider,{value:IE},t))}const LE={position:"fixed",touchAction:"none"},OE=e=>J1(e)?"transform 250ms ease":void 0,PE=s.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:l,rect:d,style:c,transform:u,transition:p=OE}=e;if(!d)return null;const f=r?u:{...u,scaleX:1,scaleY:1},h={...LE,width:d.width,height:d.height,top:d.top,left:d.left,transform:mi.Transform.toString(f),transformOrigin:r&&o?rE(o,d):void 0,transition:typeof p=="function"?p(o):p,...c};return s.createElement(n,{className:l,style:h,ref:t},i)}),gf={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:mi.Transform.toString(t)},{transform:mi.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:l}=e;if(i!=null&&i.active)for(const[d,c]of Object.entries(i.active))c!==void 0&&(r[d]=n.node.style.getPropertyValue(d),n.node.style.setProperty(d,c));if(i!=null&&i.dragOverlay)for(const[d,c]of Object.entries(i.dragOverlay))c!==void 0&&o.node.style.setProperty(d,c);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&o.node.classList.add(l.dragOverlay),function(){for(const[d,c]of Object.entries(r))n.node.style.setProperty(d,c);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};let B7=0;const AE=s.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:l,wrapperElement:d="div",className:c,zIndex:u=999}=e;const{activatorEvent:p,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:x,dragOverlay:y,over:w,measuringConfiguration:b,scrollableAncestors:C,scrollableAncestorRects:E,windowRect:k}=mf(),M=s.useContext(ec),T=function(S){return s.useMemo(()=>{if(S!=null)return B7++,B7},[S])}(f?.id),F=ff(l,{activatorEvent:p,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:w,overlayNodeRect:y.rect,scrollableAncestors:C,scrollableAncestorRects:E,transform:M,windowRect:k}),_=v2(h),P=function(S){let{config:I,draggableNodes:j,droppableContainers:R,measuringConfiguration:A}=S;return Y1((D,L)=>{if(I===null)return;const $=j.get(D);if(!$)return;const q=$.node.current;if(!q)return;const O=uf(L);if(!O)return;const{transform:U}=Qo(L).getComputedStyle(L),X=J9(U);if(!X)return;const ee=typeof I=="function"?I:function(V){const{duration:H,easing:z,sideEffects:W,keyframes:G}={...gf,...V};return Q=>{let{active:Y,dragOverlay:te,transform:le,...me}=Q;if(!H)return;const J=te.rect.left-Y.rect.left,ae=te.rect.top-Y.rect.top,ke={scaleX:le.scaleX!==1?Y.rect.width*le.scaleX/te.rect.width:1,scaleY:le.scaleY!==1?Y.rect.height*le.scaleY/te.rect.height:1},De={x:le.x-J,y:le.y-ae,...ke},ne=G({...me,active:Y,dragOverlay:te,transform:{initial:le,final:De}}),[de]=ne,ye=ne[ne.length-1];if(JSON.stringify(de)===JSON.stringify(ye))return;const ze=W?.({active:Y,dragOverlay:te,...me}),$e=te.node.animate(ne,{duration:H,easing:z,fill:"forwards"});return new Promise(gt=>{$e.onfinish=()=>{ze?.(),gt()}})}}(I);return lf(q,A.draggable.measure),ee({active:{id:D,data:$.data,node:q,rect:A.draggable.measure(q)},draggableNodes:j,dragOverlay:{node:L,rect:A.dragOverlay.measure(O)},droppableContainers:R,measuringConfiguration:A,transform:X})})}({config:o,draggableNodes:m,droppableContainers:x,measuringConfiguration:b}),v=_?y.setRef:void 0;return s.createElement(DE,null,s.createElement(RE,{animation:P},f&&T?s.createElement(PE,{key:T,id:f.id,ref:v,as:d,activatorEvent:p,adjustScale:t,className:c,transition:i,rect:_,style:{zIndex:u,...r},transform:F},n):null))});function bu(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function FE(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function ks(e){return e!==null&&e>=0}const Es={scaleX:1,scaleY:1},zE=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:l}=e;const d=(t=n[r])!=null?t:o;if(!d)return null;const c=function(u,p,f){const h=u[p],g=u[p-1],m=u[p+1];return h&&(g||m)?f<p?g?h.left-(g.left+g.width):m.left-(h.left+h.width):m?m.left-(h.left+h.width):h.left-(g.left+g.width):0}(n,l,r);if(l===r){const u=n[i];return u?{x:r<i?u.left+u.width-(d.left+d.width):u.left-d.left,y:0,...Es}:null}return l>r&&l<=i?{x:-d.width-c,y:0,...Es}:l<r&&l>=i?{x:d.width+c,y:0,...Es}:{x:0,y:0,...Es}},wu=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=bu(t,o,n),l=t[r],d=i[r];return d&&l?{x:d.left-l.left,y:d.top-l.top,scaleX:d.width/l.width,scaleY:d.height/l.height}:null},xf="Sortable",yf=s.createContext({activeIndex:-1,containerId:xf,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wu,disabled:{draggable:!1,droppable:!1}});function BE(e){let{children:t,id:n,items:o,strategy:r=wu,disabled:i=!1}=e;const{active:l,dragOverlay:d,droppableRects:c,over:u,measureDroppableContainers:p}=mf(),f=Ta(xf,n),h=d.rect!==null,g=s.useMemo(()=>o.map(M=>typeof M=="object"&&"id"in M?M.id:M),[o]),m=l!=null,x=l?g.indexOf(l.id):-1,y=u?g.indexOf(u.id):-1,w=s.useRef(g),b=!function(M,T){if(M===T)return!0;if(M.length!==T.length)return!1;for(let F=0;F<M.length;F++)if(M[F]!==T[F])return!1;return!0}(g,w.current),C=y!==-1&&x===-1||b,E=function(M){return typeof M=="boolean"?{draggable:M,droppable:M}:M}(i);$r(()=>{b&&m&&p(g)},[b,g,m,p]),s.useEffect(()=>{w.current=g},[g]);const k=s.useMemo(()=>({activeIndex:x,containerId:f,disabled:E,disableTransforms:C,items:g,overIndex:y,useDragOverlay:h,sortedRects:FE(g,c),strategy:r}),[x,f,E.draggable,E.droppable,C,g,y,c,h,r]);return s.createElement(yf.Provider,{value:k},t)}const NE=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return bu(n,o,r).indexOf(t)},VE=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:d,previousContainerId:c,transition:u}=e;return!(!u||!o||d!==i&&r===l||!n&&(l===r||t!==c))},HE={duration:200,easing:"ease"},bf="transform",$E=mi.Transition.toString({property:bf,duration:0,easing:"linear"}),WE={roleDescription:"sortable"};function UE(e){let{animateLayoutChanges:t=VE,attributes:n,disabled:o,data:r,getNewIndex:i=NE,id:l,strategy:d,resizeObserverConfig:c,transition:u=HE}=e;const{items:p,containerId:f,activeIndex:h,disabled:g,disableTransforms:m,sortedRects:x,overIndex:y,useDragOverlay:w,strategy:b}=s.useContext(yf),C=function(te,le){var me,J;return typeof te=="boolean"?{draggable:te,droppable:!1}:{draggable:(me=te?.draggable)!=null?me:le.draggable,droppable:(J=te?.droppable)!=null?J:le.droppable}}(o,g),E=p.indexOf(l),k=s.useMemo(()=>({sortable:{containerId:f,index:E,items:p},...r}),[f,r,E,p]),M=s.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:T,node:F,isOver:_,setNodeRef:P}=function(te){let{data:le,disabled:me=!1,id:J,resizeObserverConfig:ae}=te;const ke=Ta("Droppable"),{active:De,dispatch:ne,over:de,measureDroppableContainers:ye}=s.useContext(Ra),ze=s.useRef({disabled:me}),$e=s.useRef(!1),gt=s.useRef(null),bt=s.useRef(null),{disabled:Se,updateMeasurementsFor:ht,timeout:xt}={...ME,...ae},Ne=la(ht??J),wt=I1({callback:s.useCallback(()=>{$e.current?(bt.current!=null&&clearTimeout(bt.current),bt.current=setTimeout(()=>{ye(Array.isArray(Ne.current)?Ne.current:[Ne.current]),bt.current=null},xt)):$e.current=!0},[xt]),disabled:Se||!De}),Ye=s.useCallback((we,ie)=>{wt&&(ie&&(wt.unobserve(ie),$e.current=!1),we&&wt.observe(we))},[wt]),[re,Ue]=Gs(Ye),xe=la(le);return s.useEffect(()=>{wt&&re.current&&(wt.disconnect(),$e.current=!1,wt.observe(re.current))},[re,wt]),s.useEffect(()=>(ne({type:_o.RegisterDroppable,element:{id:J,key:ke,disabled:me,node:re,rect:gt,data:xe}}),()=>ne({type:_o.UnregisterDroppable,key:ke,id:J})),[J]),s.useEffect(()=>{me!==ze.current.disabled&&(ne({type:_o.SetDroppableDisabled,id:J,key:ke,disabled:me}),ze.current.disabled=me)},[J,ke,me,ne]),{active:De,rect:gt,isOver:de?.id===J,node:re,over:de,setNodeRef:Ue}}({id:l,data:k,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:M,...c}}),{active:v,activatorEvent:S,activeNodeRect:I,attributes:j,setNodeRef:R,listeners:A,isDragging:D,over:L,setActivatorNodeRef:$,transform:q}=function(te){let{id:le,data:me,disabled:J=!1,attributes:ae}=te;const ke=Ta("Draggable"),{activators:De,activatorEvent:ne,active:de,activeNodeRect:ye,ariaDescribedById:ze,draggableNodes:$e,over:gt}=s.useContext(Ra),{role:bt=z7,roleDescription:Se="draggable",tabIndex:ht=0}=ae??{},xt=de?.id===le,Ne=s.useContext(xt?ec:jE),[wt,Ye]=Gs(),[re,Ue]=Gs(),xe=function(ie,Re){return s.useMemo(()=>ie.reduce((Me,be)=>{let{eventName:Oe,handler:oe}=be;return Me[Oe]=Ce=>{oe(Ce,Re)},Me},{}),[ie,Re])}(De,le),we=la(me);return $r(()=>($e.set(le,{id:le,key:ke,node:wt,activatorNode:re,data:we}),()=>{const ie=$e.get(le);ie&&ie.key===ke&&$e.delete(le)}),[$e,le]),{active:de,activatorEvent:ne,activeNodeRect:ye,attributes:s.useMemo(()=>({role:bt,tabIndex:ht,"aria-disabled":J,"aria-pressed":!(!xt||bt!==z7)||void 0,"aria-roledescription":Se,"aria-describedby":ze.draggable}),[J,bt,ht,xt,Se,ze.draggable]),isDragging:xt,listeners:J?void 0:xe,node:wt,over:gt,setNodeRef:Ye,setActivatorNodeRef:Ue,transform:Ne}}({id:l,data:k,attributes:{...WE,...n},disabled:C.draggable}),O=function(){for(var te=arguments.length,le=new Array(te),me=0;me<te;me++)le[me]=arguments[me];return s.useMemo(()=>J=>{le.forEach(ae=>ae(J))},le)}(P,R),U=!!v,X=U&&!m&&ks(h)&&ks(y),ee=!w&&D,V=X?(ee&&X?q:null)??(d??b)({rects:x,activeNodeRect:I,activeIndex:h,overIndex:y,index:E}):null,H=ks(h)&&ks(y)?i({id:l,items:p,activeIndex:h,overIndex:y}):E,z=v?.id,W=s.useRef({activeId:z,items:p,newIndex:H,containerId:f}),G=p!==W.current.items,Q=t({active:v,containerId:f,isDragging:D,isSorting:U,id:l,index:E,items:p,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:u,wasDragging:W.current.activeId!=null}),Y=function(te){let{disabled:le,index:me,node:J,rect:ae}=te;const[ke,De]=s.useState(null),ne=s.useRef(me);return $r(()=>{if(!le&&me!==ne.current&&J.current){const de=ae.current;if(de){const ye=ul(J.current,{ignoreTransform:!0}),ze={x:de.left-ye.left,y:de.top-ye.top,scaleX:de.width/ye.width,scaleY:de.height/ye.height};(ze.x||ze.y)&&De(ze)}}me!==ne.current&&(ne.current=me)},[le,me,J,ae]),s.useEffect(()=>{ke&&De(null)},[ke]),ke}({disabled:!Q,index:E,node:F,rect:T});return s.useEffect(()=>{U&&W.current.newIndex!==H&&(W.current.newIndex=H),f!==W.current.containerId&&(W.current.containerId=f),p!==W.current.items&&(W.current.items=p)},[U,H,f,p]),s.useEffect(()=>{if(z===W.current.activeId)return;if(z!=null&&W.current.activeId==null)return void(W.current.activeId=z);const te=setTimeout(()=>{W.current.activeId=z},50);return()=>clearTimeout(te)},[z]),{active:v,activeIndex:h,attributes:j,data:k,rect:T,index:E,newIndex:H,items:p,isOver:_,isSorting:U,isDragging:D,listeners:A,node:F,overIndex:y,over:L,setNodeRef:O,setActivatorNodeRef:$,setDroppableNodeRef:P,setDraggableNodeRef:R,transform:Y??V,transition:Y||G&&W.current.newIndex===E?$E:ee&&!J1(S)||!u||!U&&!Q?void 0:mi.Transition.toString({...u,property:bf})}}function D1(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const qE=[Sn.Down,Sn.Right,Sn.Up,Sn.Left],ZE=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:d}}=t;if(qE.includes(e.code)){if(e.preventDefault(),!n||!o)return;const c=[];i.getEnabled().forEach(f=>{if(!f||f!=null&&f.disabled)return;const h=r.get(f.id);if(h)switch(e.code){case Sn.Down:o.top<h.top&&c.push(f);break;case Sn.Up:o.top>h.top&&c.push(f);break;case Sn.Left:o.left>h.left&&c.push(f);break;case Sn.Right:o.left<h.left&&c.push(f)}});const u=(f=>{let{collisionRect:h,droppableRects:g,droppableContainers:m}=f;const x=E7(h),y=[];for(const w of m){const{id:b}=w,C=g.get(b);if(C){const E=E7(C),k=x.reduce((T,F,_)=>T+K9(E[_],F),0),M=Number((k/4).toFixed(4));y.push({id:b,data:{droppableContainer:w,value:M}})}}return y.sort(X9)})({collisionRect:o,droppableRects:r,droppableContainers:c});let p=Y9(u,"id");if(p===l?.id&&u.length>1&&(p=u[1].id),p!=null){const f=i.get(n.id),h=i.get(p),g=h?r.get(h.id):null,m=h?.node.current;if(m&&g&&f&&h){const x=Q1(m).some((E,k)=>d[k]!==E),y=N7(f,h),w=function(E,k){return!!(D1(E)&&D1(k)&&N7(E,k))&&E.data.current.sortable.index<k.data.current.sortable.index}(f,h),b=x||!y?{x:0,y:0}:{x:w?o.width-g.width:0,y:w?o.height-g.height:0},C={x:g.left,y:g.top};return b.x&&b.y?C:ja(C,b)}}}};function N7(e,t){return!(!D1(e)||!D1(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const GE=e=>{let{transform:t}=e;return{...t,y:0}},KE=s.memo(s.forwardRef((e,t)=>{const{children:n,style:o,className:r,index:i,editing:l,editable:d,selectedIndex:c,background:u,activeColor:p,borderColor:f,borderWidth:h,dragging:g,...m}=e;return a.jsxs("div",{ref:t,className:ar(r),style:{...o,display:"flex",flexDirection:"column",background:c===i?"white":u,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===i?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...m,children:[a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[a.jsx("div",{style:{marginLeft:c===i?"0px":"-1px",marginTop:c===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===i?a.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):a.jsx(a.Fragment,{})]}),a.jsx("div",{style:{flex:"1 1 100%",background:c===i&&p?p?.toCSS():"none",minHeight:"2px"}})]})})),Nr={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"},wf=s.memo(s.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:l,index:d,listeners:c,onRemove:u,renderItem:p,sorting:f,style:h,transition:g,transform:m,value:x,wrapperStyle:y,...w},b)=>{s.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const C=p?p({dragOverlay:!!t,dragging:!!n,sorting:!!f,index:d,fadeIn:!!r,listeners:c,ref:b,style:h,transform:m,transition:g,value:x}):a.jsx(a.Fragment,{children:x});return a.jsx("div",{className:ar("tab-item",Nr.Wrapper,r&&Nr.fadeIn,f&&Nr.sorting,t&&Nr.dragOverlay),style:{...y,transition:[g,y?.transition].filter(Boolean).join(", "),"--translate-x":m?`${Math.round(m.x)}px`:void 0,"--translate-y":m?`${Math.round(m.y)}px`:void 0,"--scale-x":m?.scaleX?`${m.scaleX}`:void 0,"--scale-y":m?.scaleY?`${m.scaleY}`:void 0,"--index":d},ref:b,children:a.jsx("div",{className:ar(Nr.Item,n&&Nr.dragging,i&&Nr.withHandle,t&&Nr.dragOverlay,o&&Nr.disabled,e&&Nr.color,"dragging"),style:h,"data-cypress":"draggable-item",...i?void 0:c,...w,tabIndex:i?void 0:-1,children:C})})})),V7={Row:"_Row_1kr10_1"},XE=s.memo(s.forwardRef(({children:e,horizontal:t,style:n},o)=>a.jsx("div",{ref:o,style:{...n},className:ar(V7.Row,t&&V7.horizontal),children:e}))),YE={...gf},JE=s.memo(s.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:l=lE,coordinateGetter:d=ZE,dropAnimation:c=YE,getItemStyles:u=()=>({}),getNewIndex:p,handle:f=!1,items:h,onMove:g,isDisabled:m=()=>!1,measuring:x,modifiers:y,renderItem:w,renderDivider:b,reorderItems:C=bu,strategy:E=wu,style:k,useDragOverlay:M=!0,onDragStart:T,wrapperStyle:F=()=>({})}=e,[_,P]=s.useState(()=>h);s.useEffect(()=>{P(h)},[h]);const[v,S]=s.useState(null),I=function(){for(var L=arguments.length,$=new Array(L),q=0;q<L;q++)$[q]=arguments[q];return s.useMemo(()=>[...$].filter(O=>O!=null),[...$])}(rd(cf,{activationConstraint:o}),rd(df,{activationConstraint:o}),rd(xu,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:d})),j=_.indexOf.bind(_),R=v?j(v):-1,A=[];_.map((L,$)=>{A.push(a.jsx(QE,{id:L,handle:f,index:$,style:u,wrapperStyle:F,disabled:m(L),renderItem:w,animateLayoutChanges:r,useDragOverlay:M,getNewIndex:p},L+"-"+$));const q=b?.({key:"divider-"+$});q&&A.push(q)});const{getPortalContainer:D}=(s.useEffect(()=>{function L(){const $=document.fullscreenElement;if(!$)return;let q=$.querySelector(".fullscreen-portal-root");q||(q=document.createElement("div"),q.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",$.appendChild(q))}return Qa++,L(),document.addEventListener("fullscreenchange",L),()=>{document.removeEventListener("fullscreenchange",L),Qa--,Qa<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach($=>{$.parentNode&&$.parentNode.removeChild($)}),Qa=0)}},[]),{getPortalContainer:Sg});return a.jsxs(TE,{sensors:I,collisionDetection:l,onDragStart:L=>{const{active:$}=L;$&&(T?.(L),S($.id))},autoScroll:{canScroll:L=>!0},onDragEnd:L=>{if(S(null),L.over){const $=j(L.over.id);R!==$&&(P(q=>C(q,R,$)),g?.(R,$))}},onDragCancel:()=>{S(null)},measuring:x,modifiers:y,children:[a.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...k},className:ar(n,Nr.Wrapper),children:a.jsx(BE,{items:_,strategy:E,children:a.jsx(XE,{ref:t,children:A})})}),M?wo.createPortal(a.jsx(AE,{adjustScale:i,dropAnimation:c,children:v?a.jsx(wf,{value:_[R],handle:f,renderItem:w,wrapperStyle:F({index:R,isDragging:!0,id:_[R]}),index:R,dragging:!0,style:u({id:_[R],index:R,isSorting:v!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),D()):null]})}));function QE({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:l,style:d,renderItem:c,useDragOverlay:u,wrapperStyle:p}){const{attributes:f,isDragging:h,isSorting:g,listeners:m,overIndex:x,setNodeRef:y,transform:w,transition:b}=UE({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return a.jsx(wf,{ref:y,value:r,disabled:e,dragging:h,sorting:g,handle:o,renderItem:c,index:i,style:d({index:i,id:r,isDragging:h,isSorting:g,overIndex:x}),onRemove:l?()=>l(r):void 0,transform:w,transition:b,wrapperStyle:p({index:i,isDragging:h,id:r}),listeners:m,"data-index":i,"data-id":r,dragOverlay:!u&&h,...f})}const e_=new B.Color("rgb(33, 115, 70)"),t_="#eee",n_=e=>a.jsx(KE,{...e}),vf=s.memo(s.forwardRef((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:l=[],onSelectedTabIndexChange:d,onTabNameChange:c,onTabMove:u,createScrollStartButton:p=N8,createScrollEndButton:f=V8,createScrollEdgeButton:h=ag,createTabButton:g=n_,createTabDivider:m,editLabelProps:x,disabled:y=!1,disableDrag:w=!1,background:b="white",activeColor:C=e_,borderColor:E=t_,borderWidth:k=1}=e,[M,T]=s.useState(i),[F,_]=s.useState(l),P=s.useCallback(De=>{const ne=D.current?.[De]?.closest(".tab-item")??D.current?.[De];ne&&ee.current?.scrollTo({top:ne.offsetTop,left:ne.offsetLeft,behavior:"smooth"})},[]);s.useEffect(()=>{P(i)},[i]);const v=s.useCallback((De,ne)=>{ne!==M&&(T(ne),d?.(ne)),P(ne)},[d,M]),S=s.useCallback((De,ne)=>{u?.(De,ne)},[u]),I=s.useRef(null),[j,R]=s.useState(-1),A=s.useCallback((De,ne)=>{c?.(De,ne)},[c]);s.useLayoutEffect(()=>{T(i)},[i]),s.useLayoutEffect(()=>{_(l)},[l]);const D=s.useRef([]),L=s.useRef(null);s.useImperativeHandle(t,()=>Object.assign({startEdit(De){D.current?.[De]?.startEdit()},cancel(De){D.current?.[De]?.cancel()}},L.current),[M,j]);const $=s.useCallback(({value:De,index:ne,dragging:de})=>{const{style:ye,maxLength:ze,...$e}=x||{},gt=a.jsx(Xk,{ref:bt=>{D.current[ne]=bt},value:De,disabled:y,maxLength:ze,style:{color:M===ne&&C?C?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...ye},styleHover:{},onSubmit:bt=>(I.current=!1,R(-1),A(ne,bt)),onCancel:()=>{I.current=!1,R(-1)},onChange:bt=>{I.current=!0,R(ne)},...$e});return g({onClick:bt=>v(bt,ne),value:De,index:ne,editing:j===ne&&I.current,editable:!0,disabled:y,selectedIndex:M,background:b,activeColor:C,borderColor:E,borderWidth:k,dragging:de,children:gt})},[M,A,v,x,y,j,g]),[q,{width:O}]=fi(),[U,{width:X}]=fi(),ee=s.useRef(null),[V,H]=s.useState({left:0,top:0,width:0,height:0}),[z,W]=s.useState(null);s.useEffect(()=>{z!==null&&ee.current&&ee.current.scrollTo({left:z,behavior:"smooth"})},[z]);const G=s.useCallback((De,ne=!1)=>{if(!ee.current)return 0;let de=ee.current.firstChild.getBoundingClientRect(),ye=ee.current.firstChild.firstChild.children,ze=0;return ze=ne?0:k5.getScrollTo(De,de.left,ye,!0,Math.max(0,De-200)),W(ze),Math.max(0,ze)},[]),Q=s.useCallback((De,ne=!1)=>{if(!ee.current)return 0;let de=ee.current.firstChild.getBoundingClientRect(),ye=ee.current.firstChild.firstChild.children,ze=0;const $e=Math.ceil(X-O);return ze=ne?$e:k5.getScrollTo(De,de.left,ye,!1,Math.max(0,De+200)),W(ze),Math.min($e,ze)},[X,O]),Y=s.useRef(null),te=s.useRef(null),le=s.useCallback(()=>{te.current&&(clearTimeout(te.current),te.current=null,Y.current=null)},[]),me=s.useCallback((De,ne,de=260)=>{Y.current=De,te.current=setTimeout(()=>{const ye=ne?G(Y.current||De):Q(Y.current||De);ye!==Y.current?me(ye,ne,120):le()},de)},[G,Q,le]);s.useEffect(()=>()=>le(),[le]);const J=s.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(V.left)<=0||Math.floor(X-O)===0,orientation:Ao.Horizontal,onMouseUp:le,onMouseLeave:le,onMouseDown:()=>me(ee.current.scrollLeft,!0),onClick:De=>G(Math.min(ee.current.scrollLeft,z??Number.MAX_SAFE_INTEGER),De.ctrlKey)}),[V,z,X,O]),ae=s.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(X-O)<=Math.ceil(V.left),orientation:Ao.Horizontal,onMouseUp:le,onMouseLeave:le,onMouseDown:()=>me(ee.current.scrollLeft,!1),onClick:De=>Q(Math.max(ee.current.scrollLeft,z??0),De.ctrlKey)}),[V,z,X,O]),ke=s.useMemo(()=>a.jsxs(a.Fragment,{children:[a.jsx("div",{style:{minWidth:"16px"}}),n,h?.(J)]}),[J,ae,p,f,n,h]);return a.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:ar("_TabStrip_3x0dp_1",r),ref:L,children:[a.jsx("div",{style:{borderTop:`solid ${E} ${k}px`,position:"absolute",width:"100%"}}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:ke}),a.jsx("div",{className:"Tabs",ref:q,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:a.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:ee,onScroll:De=>{H({left:De.target.scrollLeft,top:De.target.scrollTop,width:De.target.scrollWidth,height:De.target.scrollHeight})},children:a.jsx(JE,{isDisabled:De=>y||w,items:F,strategy:zE,modifiers:[GE],ref:U,renderItem:$,renderDivider:m,onMove:S,activationConstraint:{distance:15}})})}),a.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:h(ae)})]})}));vf.displayName="TabStrip";const o_=s.createContext(null),vu=()=>{const e=s.useContext(o_),[t]=s.useState(()=>new B.ThemeCollection);return s.useMemo(()=>e||t,[e])},r_=s.lazy(()=>Promise.resolve().then(()=>require("./C_QWbWVBVc6YJ4Q3.cjs"))),i_={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},H7=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()),d=e.getPosition();let c={...d};c.lineNumber=1,c.column=1;let u=!1;for(let x=d.lineNumber;x>=1;x--)if(o.getLineContent(x).trim()===""){const y=Su(l,o.getOffsetAt({lineNumber:x,column:1}),"function");if(!y||a_(y)){u=!0,c.lineNumber=x+1;break}{const w=y.spans[0].start;x=o.getPositionAt(w).lineNumber,c.lineNumber=x}}let p=n,f=!1;!u&&!p.startsWith(`
77
- `)&&c.lineNumber>1&&(p=`
78
- `+p,f=!0);let h=!1;o.getLineCount()>1&&(p.endsWith(`
79
-
80
- `)||(p+=`
81
-
82
- `,h=!0));const g=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${p}`}];let m=null;o.pushEditOperations([],g,x=>(m=x[0].range,f&&m.startLineNumber++,h&&m.endLineNumber--,[new t.Selection(m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn)])),e.setSelection({startLineNumber:m.endLineNumber,startColumn:m.endColumn,endLineNumber:m.startLineNumber,endColumn:m.startColumn})};function l_(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 S2(e,t,n,o,r=[]){if(o.kind==="function"&&o.kindModifiers==="export"){const i=o.spans[0].start,l=e.getPositionAt(i);r.push({name:o.text,type:l_(n,o),lineNumber:l.lineNumber})}if(o.childItems)for(const i of o.childItems)S2(e,t,n,i,r);return r}function Su(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 d of e.childItems||[]){const c=Su(d,t,n,o);if(c)return c}}return null}}function a_(e){return e.kind==="comment"}const s_=s.memo(s.forwardRef((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:l,darkMode:d,loadingPanel:c,autoFocus:u=!0,onStatusChange:p,...f}=e,h=s.useRef(null),g=he(l,[l]),m=s.useRef(!1),x=s.useMemo(()=>({contains(L){if(!h.current)return;const $=h.current.editor;return $&&$.getDomNode()?.contains(L)},focus(){if(!h.current)return;const L=h.current.editor;return L&&L.getDomNode()?.focus()}}),[]),y=s.useMemo(()=>[new Te("help",x,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),w=s.useMemo(()=>{let L=null;const $=()=>x;return L=r?r.createChildGroup($,"scriptEditor",!1):new ll($,"scriptEditor"),L.addCommands(y,!0),L},[r,y]),b=to(w,["executeSelectedScript"])[0],C=b?.context(),E=he(L=>{b?.execute(L)},[b]),k=s.useRef(""),[M,T]=s.useState(!1),F=he(async()=>{if(!h.current)return null;const L=h.current,$=L.editor;if(!$)return null;const q=L.monaco,O=await(async(U,X,ee="export")=>{const V=U.getModel();if(!V)return null;const H=await X.languages.typescript.getTypeScriptWorker(),z=await H(V.uri),W=await z.getNavigationTree(V.uri.toString());let G=null,Q=U.getSelection();const Y=Q.startLineNumber===Q.endLineNumber&&Q.startColumn===Q.endColumn?V.getLineCount():Math.min(Q.endLineNumber,V.getLineCount());for(let te=Q.startLineNumber;!G&&te<=Y;te++){const le=Su(W,V.getOffsetAt({lineNumber:te,column:1}),"function",ee);le&&(G=le.text)}return G})($,q);return p?.({message:(O??"").toUpperCase()}),O?{source:$.getValue(),name:O}:null},[p]),_=he(async(L,$,q)=>{const O=await C.getScripts().createModule({source:q?.getValue(),declarationsOnly:!0}),U=O?O.getFunctions().search():Nt.EmptyArray;O&&(async function(X,ee){const V=[];for(let H=1;H<X.getLineCount()+1;H++){const z={startLineNumber:H,startColumn:1,endLineNumber:H,endColumn:X.getLineLength(H)+1},W=X.getValueInRange(z).indexOf("modelt");W!==-1&&V.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:ee.MarkerSeverity.Hint,startLineNumber:z.startLineNumber,startColumn:W+1,endLineNumber:z.startLineNumber,endColumn:W+5})}ee.editor.setModelMarkers(X,"owner",V)}(L,$),async function(X,ee,V,H){const z=await ee.languages.typescript.getTypeScriptWorker(),W=await z(X.uri),G=await W.getNavigationTree(X.uri.toString()),Q=S2(X,ee,H,G).map(Y=>{let te=null,le=null;return Y.type==="formula"?(te="formula.margin-icon",le="Formula"):Y.type==="macro"?(te="macro.margin-icon",le="Macro"):Y.type==="autoRun"&&(te="autorun.margin-icon",le="Auto Run"),{range:new ee.Range(Y.lineNumber,1,Y.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:te,glyphMarginHoverMessage:le,stickiness:ee.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});I.current&&I.current.clear(),I.current=V.createDecorationsCollection(Q)}(L,$,q,U))},[C]),P=he(Nt.debounce(_,580),[]),v=he(async(L=void 0)=>{if(!h.current||!C)return;const $=h.current.editor.getPosition(),q={cursor:$?$.toString():""};L!==void 0&&(q.message=L),p?.(q);const O=F();C.setSelectedFunction(O)},[C,p]);s.useEffect(()=>{if(!C)return;const L={insertSnippet:q=>{h.current?.editor&&(M?H7(h.current.editor,h.current.monaco,q):k.current=q)}};C.setEditor(L),C.setSelectedFunction(F());const $=C.addContainerListener({onBeforeSave:async()=>{if(!h.current?.editor||!C)return;const q=h.current.editor,O=C?.getScripts().getModules().getByName("scripting"),U=O?.getSource(),X=q.getValue();if((U?.length??0)===X.length&&U===X)return;await C.saveSource(q.getValue());const ee=(U?.length??0)!==X.length||U!==X;p?.({dirty:ee})},onReadonlyChange(){},onScriptChange:async()=>{if(!h.current?.editor||!C)return;const q=h.current.editor,O=C.getScripts().getModules().search()[0]?.getSource()??"";q.setValue(O)}});return()=>{$(),C.setSelectedFunction(null),C.setEditor(null)}},[C,M]),s.useEffect(()=>()=>{if(!h.current?.editor)return;const L=h.current.editor;C?.saveSource(L.getValue())},[]);const S=he(L=>{const $=h.current;if(!$)return!1;const q=$.editor;return!!q&&(q.focus(),!0)},[]),I=s.useRef(null),j=he((L,$)=>{h.current={monaco:$,editor:L},T(!0),v("Loading Types");const q=C.getScripts().getModules().search()[0]?.getSource()??"";L.setValue(q),Promise.resolve().then(()=>require("./O8r9K4Qh6Pgd6rXU.cjs")).then(U=>U.c).then(U=>{v(""),U.AutoTypings.create(L,{shareCache:!0,monaco:$,onError:X=>{X==="Not implemented yet"&&(X="Compile Errors"),console.warn("Error compiling types",X)}}).then(async X=>{const ee=L.getModel();P(ee,$,L)})}),L.addCommand("executeScript",function(U,...X){X?.[0]&&E({functionName:X?.[0]})},""),L.addAction({id:"executeScript",label:"Execute",keybindings:[$.KeyCode.F8],run:async U=>{const X=F();C.setSelectedFunction(X);const ee=await X;E(ee)}}),L.addAction({id:"saveScript",label:"Save Script",keybindings:[$.KeyMod.CtrlCmd|$.KeyCode.KeyS],run:U=>{C?.saveSource(L.getValue()).then(()=>{const X=C?.getScripts().getModules().getByName("scripting"),ee=X?.getSource(),V=L.getValue(),H=(ee?.length??0)!==V.length||ee!==V;p?.({dirty:H})})}}),L.onMouseDown(async U=>{if(U.target.type===$.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const X=U.target.position.lineNumber,ee=await $.languages.typescript.getTypeScriptWorker(),V=await ee(O.uri),H=await V.getNavigationTree(O.uri.toString()),z=L?.getValue(),W=(await C?.saveSource(z)).getFunctions().search(),G=S2(O,$,W,H).find(Q=>Q.lineNumber===X);if(G){const Q=U.event.browserEvent.button;Q===0?G.type==="macro"||G.type==="autoRun"?E({functionName:G.name}):G.type==="formula"&&C.quickInsertFunction?.(G.name):Q===2&&(console.log("Context menu for function:",G.name),U.event.browserEvent.preventDefault())}}}),L.onDidChangeModelContent(()=>{const U=L.getModel();P(U,$,L)});const O=L.getModel();(function(U,X){X.languages.registerInlayHintsProvider("typescript",{provideInlayHints(ee,V,H){const z=[];for(let W=1;W<ee.getLineCount()+1;W++){const G={startLineNumber:W,startColumn:1,endLineNumber:W,endColumn:ee.getLineLength(W)+1},Q="hint",Y=ee.getValueInRange(G).indexOf("hint");Y!==-1&&z.push({kind:X.languages.InlayHintKind.Type,position:{lineNumber:G.startLineNumber,column:Y+Q.length+1},label:"[hint]"})}return{hints:z,dispose:()=>{}}}})})(0,$),O.onDidChangeContent(U=>{const X=C?.getScripts().getModules().getByName("scripting"),ee=X?.getSource(),V=L.getValue(),H=(ee?.length??0)!==V.length||ee!==V;p?.({dirty:H})}),L.onDidChangeCursorPosition(U=>{v()})},[C,p]),R=s.useMemo(()=>M?null:c||a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[M,c]),A=s.useMemo(()=>{const L=C?.getScripts().getModules().getByName("scripting")?.getSource()??"";return a.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[a.jsx(s.Suspense,{children:a.jsx(r_,{theme:d?"extended-dark":"extended",options:{...i_,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:L,onValidate:$=>{let q=!1;for(let O=0;!q&&O<$?.length;O++)$[O].severity===8&&(q=!0)},beforeMount:$=>{$.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),$.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),$.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),$.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let q=!1;try{const U=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts")).text())(),X=$.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),ee=$.editor.createModel(U,"typescript",X);$.editor.setModelMarkers(ee,"default",[]),q=!0}catch(U){console.warn("cant load types",U)}$.languages.registerLinkProvider("*",{provideLinks:(U,X)=>{const ee=[],V={links:ee},H=U.getLinesContent();for(let z=1;z<=H.length;z++){const W=H[z-1],G=$.editor.tokenize(W,"typescript");for(let Q=0;Q<G[0].length;Q++){const Y=G[0]?.[Q];if(Y&&Y.type.startsWith("string")){let te=Y.offset,le=G[0]?.[Q+1]?.offset??W.length,me=new $.Range(z,te+1,z,le+1),J=U.getValueInRange(me);const ae=J[0];ae!=="`"&&ae!=="'"&&ae!=='"'||(te++,J=J.substring(1));const ke=J[J.length-1];ke!=="`"&&ke!=="'"&&ke!=='"'||(te++,J=J.substring(0,J.length-1));try{C.getRanges(J)&&ee.push({range:{endColumn:le,endLineNumber:z,startColumn:te,startLineNumber:z},tooltip:`Goto range '${J}'`,url:`/range/${J}`})}catch(De){console.warn(De)}}}}return V}}),$.editor.registerLinkOpener({open(U){if(U?.path?.startsWith("/range/")){try{C.getRanges(U.path.substring(7))?.select()}catch(X){console.warn("invalid range",X)}return!0}return!1}});const O=$.languages.typescript.typescriptDefaults.getCompilerOptions();$.languages.typescript.typescriptDefaults.setCompilerOptions({...O,target:$.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:$.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),k.current&&(await H7(h.current.editor,h.current.monaco,k.current),k.current=null),m.current&&requestAnimationFrame(async()=>{m.current&&$.editor.focus()}),$.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),T(!0)})()},onMount:j})}),R]})},[C,w,i,R,d]),D=jo(t,()=>({isScriptEditorElement:()=>!0,focus:L=>{S(L)},close:()=>{g?.()},getEditor:()=>C?.getEditor()}),[C]);return s.useEffect(()=>(u&&requestAnimationFrame(()=>{S()}),()=>{h.current?.editor&&requestAnimationFrame(()=>{D.current?.contains(document.activeElement)&&S()})}),[]),a.jsx("div",{className:ar("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:D,...f,children:A})})),Sf={Preset:"preset",Custom:"custom"},qi={Start:"start",End:"end"},sd={},c_=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(sd[r])return sd[r];const i=((l,d,c,u)=>{if(typeof document>"u"&&!u)return null;const p=u?new u:document.createElement("canvas");p.width=2*c,p.height=2*c;const f=p.getContext("2d");return f?(f.fillStyle=l,f.fillRect(0,0,p.width,p.height),f.fillStyle=d,f.fillRect(0,0,c,c),f.translate(c,c),f.fillRect(0,0,c,c),p.toDataURL()):null})(e,t,n,o);return sd[r]=i,i},d_={},Cf=s.memo(e=>{const{className:t,style:n=pn.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:l,boxShadow:d,renderers:c=d_,children:u,...p}=e,f=u,h=s.useMemo(()=>Object.assign({borderRadius:l,boxShadow:d,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${c_(o,r,i,c?.canvas)}) center left`},n),[o,r,i,c]);return s.isValidElement(u)?s.cloneElement(u,{...f.props}):a.jsx("div",{style:h,...p})}),u_=s.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:l,onMouseLeave:d,onFocus:c,style:u=pn.EmptyCssProperties,children:p,alphaWhite:f,alphaGrey:h,darkMode:g,alphaCheckSize:m=7,...x}=e;if(!t)throw new Error("a selectedColor is required");const y=s.useCallback(M=>{r?.(M),M.isDefaultPrevented()||(M.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),w=s.useCallback(M=>{l?.(M),M.isDefaultPrevented()||o?.(t.toRGBA())},[o,l,t]),b=s.useCallback(M=>{d?.(M),M.isDefaultPrevented()},[o,d]),C=s.useCallback(M=>{c?.(M),M.isDefaultPrevented()||o?.(t.toRGBA())},[o,c,t]),E=s.useCallback(M=>{i?.(M),M.isDefaultPrevented()||M.keyCode===Wt.Enter&&n?.(t.toRGBA())},[n,i,t]),k=s.useMemo(()=>t.toRGBA().alpha===1?null:a.jsx(Cf,{size:m,white:f,grey:h,style:{position:"absolute",width:"calc(100% - 1.5px)",height:"calc(100% - 1.5px)",top:"0.75px",left:"0.75px"}}),[f,h,t]);return a.jsxs("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...u},tabIndex:0,...x,onClick:y,onKeyDown:E,onMouseOver:w,onMouseLeave:b,onFocus:C,children:[k,a.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(g)},children:p})]})}),tc=s.memo(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:i,onPreviewColorDef:l,swatchProps:d,defaultButtonSize:c=24,isLarge:u=!1,compareRGB:p=!1,darkMode:f=!1,...h}=e,g=new B.Color({val:r.definition.val,adjs:r.definition.adjs},k=>t(k)),m=p?g.toRGBA().toString():g.toString(),x=n&&(p?n.toRGBA().toString():n.toString())===m,y=o&&(p?o.toRGBA().toString():o.toString())===m,w=[];w.push({[B.IColor.AdjustmentType.Inv]:!0}),w.push({[B.IColor.AdjustmentType.Alpha]:100});const b=g.adjust(w),C=s.useCallback(()=>{i?.(r)},[i,r]),E=s.useCallback(k=>{l?.(k?r:null)},[l,r]);return a.jsx(yr,{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:a.jsx("div",{style:{width:c*(u?1.2:1)+"px",height:c*(u?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...h,children:a.jsxs(u_,{selectedColor:g,title:null,onSelectColor:C,onPreviewColor:E,alphaCheckSize:u?9:void 0,darkMode:f,...d,children:[a.jsx("div",{style:{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",pointerEvents:"none",borderColor:b.toRGBA(f).toString(),borderWidth:"2px",borderStyle:"solid",boxSizing:"border-box",opacity:x?"1":"0"}}),a.jsx("div",{style:{position:"absolute",width:.33*c*(u?1.2:1)+"px",height:.33*c*(u?1.2:1)+"px",left:"calc(50% - 0.5px)",top:"calc(50% - 0.5px)",transform:"translate(-50%,-50%)",pointerEvents:"none",background:b.toRGBA(f).toString(),borderRadius:"50%",opacity:y?"1":"0"}})]})})})}),_s=s.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:l,onPreviewColorDef:d,style:c=pn.EmptyCssProperties,compareRGB:u=!1,darkMode:p,swatchProps:f,...h}=e;let g;if(Array.isArray(o[0]))g=o;else{g=[];for(let b=0;b<o.length;b++)g.push([o[b]])}const m=s.useCallback(b=>{l?.(b)},[l]),x=s.useCallback(b=>{d?.(b)},[d]),y=s.useMemo(()=>{let b=[];for(let C=0;C<g.length;C++){let E=[],k=g[C];for(let T=0;T<k.length;T++){let F=k[T];E.push(a.jsx(tc,{schemeColorLookup:n,colorDef:F,selectedColor:r,previewColor:i,onSelectColorDef:m,onPreviewColorDef:x,swatchProps:f,compareRGB:u,darkMode:p},C+" "+T))}let M=a.jsx(N.Box,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:T=>T.shadows[2],borderRadius:"2px",overflow:"hidden"},children:E},""+C);b.push(M)}return b},[g,r,i,m,x]),w=s.useMemo(()=>t?a.jsx(N.Typography,{noWrap:!0,component:"div",sx:{display:"flex",flexShrink:"0",paddingLeft:"6px",paddingBottom:"4px",paddingTop:"0px",userSelect:"none",color:b=>b.palette.text.secondary},children:t}):null,[t]);return a.jsxs(N.Box,{style:{...c},children:[w,a.jsx(N.Box,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...h,children:y})]})}),Vr=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),mo=(e,t,n,o,r,i)=>{const l=Vr(e,t);o?.push(l);const d=new B.Color({val:l.definition.val,adjs:l.definition.adjs},n),c=d.toString();r?.set(c,d);const u=d.toRGBA().toString();i?.set(u,d)},h_=s.lazy(()=>Promise.resolve().then(()=>require("./C5i9hklL-WNb8J_q.cjs"))),kf=s.memo(s.forwardRef((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:i,disableAlpha:l=!1,previewDebounceTime:d=100,initialPanelType:c,defaultButtonSize:u=24,width:p,onElementLoad:f,onDone:h,onEyeDropStart:g,onEyeDropStop:m,onPreviewColor:x,onPreviewColorImmediate:y,onSelectColor:w,autoColor:b,autoColorLabel:C="Automatic",autoColorPosition:E=qi.Start,compareRGB:k=!1,darkMode:M=!1,...T}=e,F=o||n,_=he(x,[x]),P=he(y,[y]),v=he(w,[w]),S=he(g,[g]),I=he(m,[m]),[j,R]=s.useState(!1),A=Zr(),D=s.useMemo(()=>i||B.Color.getDefaultSchemeLookup(),[i]),L=s.useMemo(()=>{const J=new Map,ae=new Map,ke=[];mo("Primary Background","bg1",D,ke,J,ae),mo("Primary Text","tx1",D,ke,J,ae),mo("Secondary Background","bg2",D,ke,J,ae),mo("Secondary Text","tx2",D,ke,J,ae),mo("Accent 1","accent1",D,ke,J,ae),mo("Accent 2","accent2",D,ke,J,ae),mo("Accent 3","accent3",D,ke,J,ae),mo("Accent 4","accent4",D,ke,J,ae),mo("Accent 5","accent5",D,ke,J,ae),mo("Accent 6","accent6",D,ke,J,ae);const De=B.ITheme.buildPalette(ke,D,J,ae),ne=[];if(mo("Dark Red","C00000",D,ne,J,ae),mo("Red","FF0000",D,ne,J,ae),mo("Orange","FFC000",D,ne,J,ae),mo("Yellow","FFFF00",D,ne,J,ae),mo("Light Green","92D050",D,ne,J,ae),mo("Green","00B050",D,ne,J,ae),mo("Light Blue","00B0F0",D,ne,J,ae),mo("Blue","0070C0",D,ne,J,ae),mo("Dark Blue","002060",D,ne,J,ae),l?mo("Purple Is A Fruit","7030A0",D,ne,J,ae):mo("Transparent","00000000",D,ne,J,ae),b){const $e=b.toString();J.set($e,b)}const de=new Map,ye=typeof r=="function"?r():r,ze=[];for(let $e=0;ye&&$e<ye.length;$e++){const gt=ye[$e].toString();de.set(gt,ye[$e]),ze.push({description:"Recent "+($e+1),definition:{val:ye[$e].toString()}})}return{primaryColors:ke,modifiedPresets:De,standardColors:ne,recentColorsLimited:ze,mapAllPresets:J,mapAllPresetsRGB:ae,mapRecent:de}},[D,r,l,b]);s.useEffect(()=>{f?.()},[]);const[$,q]=s.useState(!1),O=s.useCallback(()=>{q(J=>!J)},[]);s.useEffect(()=>{if(c)q(c===Sf.Custom);else if(n){let J=n.toString(),ae=L.mapAllPresets.get(J);ae||(J=n.toRGBA().toString(),ae=L.mapAllPresetsRGB.get(J));const ke=L.mapRecent.get(J);q(!ae&&!ke)}},[n,c]);const U=s.useCallback(B.CommonUtils.debounce(J=>{_?.(J)},d),[_,d]),[X,ee]=s.useState();s.useEffect(()=>{ee(o||n)},[o,n]);const V=he(J=>{P&&(P(J),U(J))},[P]),H=he(J=>{V(J?new B.Color({val:J.definition.val,adjs:J.definition.adjs},D):null)},[D]),z=s.useCallback(J=>{J.ctrlKey&&q(!0)},[]),W=he(J=>{let ae=!1;if(J){const ke=J.toString();ae=!L.mapAllPresets.has(ke)}v?.(J,ae)},[v,L]),G=he(J=>{const ae=J?new B.Color({val:J.definition.val,adjs:J.definition.adjs},D):null;Promise.resolve(h?.()).then(()=>{W(ae)})},[D,h]),Q=he(J=>{V(J?new B.Color(J,D):null)},[D]),Y=s.useMemo(()=>window.EyeDropper===void 0?a.jsx(a.Fragment,{}):a.jsx(N.IconButton,{"aria-label":"eye dropper",size:"small",sx:{color:J=>J.palette.text.icon??J.palette.action.active},onClick:async()=>{R(!0),S?.(),await new EyeDropper().open().then(J=>{R(!1),I?.();let ae=new B.Color(J.sRGBHex),ke=ae.toString(),De=L.mapAllPresets.get(ke);if(De||(ke=ae.toRGBA().toString(),De=L.mapAllPresetsRGB.get(ke)),!De){const ne=ae.toRGBA(),de=3;let ye=255;L.mapAllPresetsRGB.forEach((ze,$e)=>{const gt=ze.toRGBA(),bt=Math.abs(gt.red-ne.red)+Math.abs(gt.blue-ne.blue)+Math.abs(gt.green-ne.green);bt<de&&bt<ye&&(De=ze)})}q(!De),V(De||ae)}).catch(J=>{R(!1),J?.name!=="AbortError"&&console.error(J)})},children:a.jsx(yn.Colorize,{})}),[L,M]),te=s.useMemo(()=>{if(!$)return;const J={opacity:$?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return a.jsx(s.Suspense,{fallback:a.jsx("div",{style:J,children:a.jsx(gi,{})}),children:a.jsx(h_,{style:J,selectedColor:F?F.toRGBA().toString():"transparent",onColorChange:Q,disableAlpha:l})})},[$,F]),le=s.useMemo(()=>({onClick:z,alphaGrey:A.palette.text.icon??A.palette.action.active}),[z,A]),me=s.useMemo(()=>{if(!b)return null;const J={description:C,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return a.jsx(a.Fragment,{children:a.jsxs(N.MenuItem,{sx:{display:"flex",color:ae=>ae.palette.text.secondary},onMouseOver:()=>{H(null)},onClick:()=>{G(null)},children:[a.jsx(N.Box,{sx:{flex:"none",boxShadow:ae=>ae.shadows[2],borderRadius:ae=>ae.spacing(.5),overflow:"hidden"},children:a.jsx(tc,{schemeColorLookup:D,colorDef:J,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:u,isLarge:!0,darkMode:M,compareRGB:k,swatchProps:le})}),a.jsx(N.Typography,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:C})]})})},[b,C,D,n,o]);return a.jsxs(N.Box,{ref:t,sx:{width:p,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},...T,children:[a.jsxs("div",{style:{position:"relative",display:"flex"},children:[a.jsxs("div",{style:{opacity:$?"0":1},children:[me&&E===qi.Start?a.jsxs(a.Fragment,{children:[me,a.jsx(N.Divider,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,a.jsx(_s,{title:"Theme Colors",schemeColorLookup:D,colorDefs:L.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:le,onPreviewColorDef:H,onSelectColorDef:G,compareRGB:k,darkMode:M}),a.jsx(_s,{schemeColorLookup:D,colorDefs:L.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:le,onPreviewColorDef:H,onSelectColorDef:G,compareRGB:k,darkMode:M}),a.jsx(N.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(_s,{title:"Standard Colors",schemeColorLookup:D,colorDefs:L.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:le,onPreviewColorDef:H,onSelectColorDef:G,compareRGB:k,darkMode:M}),a.jsxs("div",{style:{opacity:L.recentColorsLimited.length===0?"0":void 0,display:L.recentColorsLimited.length===0?"none":void 0},children:[a.jsx(N.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsx(_s,{title:"Recent Colors",schemeColorLookup:D,colorDefs:L.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:le,onPreviewColorDef:H,onSelectColorDef:G,compareRGB:k,darkMode:M})]}),me&&E===qi.End?a.jsxs(a.Fragment,{children:[a.jsx(N.Divider,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),me,a.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),te]}),a.jsx(N.Divider,{light:!0,style:{marginBottom:"10px"}}),a.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[Y,a.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),a.jsx(N.Button,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{O()},children:$?a.jsx("div",{children:"Preset"}):a.jsx("div",{children:"Custom"})}),a.jsx(N.Button,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(h?.()).then(()=>{W(X)})},children:"Done"})]})]})})),p_=a.jsx(ty,{}),Cu=s.memo(s.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=p_,tooltip:i,label:l,onPreviewColor:d,onPreviewColorImmediate:c,onSelectColor:u,variant:p=Dr.Toolbar,panelProps:f,shouldCloseFloatAll:h=!0,compareRGB:g=!1,darkMode:m=!1,...x}=e,y=he(d,[d]),w=he(c,[c]),b=he(u,[u]),[C,E]=s.useState(()=>{}),k=o||C||n||f?.autoColor,M=s.useRef(!1),T=s.useCallback(()=>{},[]),F=he(()=>{E(n)},[n]),_=he(L=>{M.current||(E(L),y?.(L))},[y]),P=he(L=>{M.current||(E(L),w?.(L))},[w]),v=he((L,$)=>{M.current||(E(void 0),b?.(L,$))},[b]),S=s.useMemo(()=>a.jsx(N.Box,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${k?.toCSS(m)??"transparent"}`,"& .activeColor":{fill:`${k?.toCSS(m)??"transparent"}`},"& .style_grey":{fill:L=>L.palette.text.icon??L.palette.action.active}},children:typeof r=="function"?r():r}),[k,r,m]),I=he(L=>{b?.(o,!1)},[b,o]),[j,R]=s.useState(!1),A=s.useCallback(L=>{const{closeFloat:$,closeFloatAll:q}=L;return a.jsx(kf,{...f,selectedColor:n,previewColor:C,onDone:h?q:$,onKeyDown:O=>{O.which===Wt.Enter&&(h?q():$())},onPreviewColorImmediate:P,onPreviewColor:_,onSelectColor:v,onEyeDropStart:()=>R(!0),onEyeDropStop:()=>R(!1),compareRGB:g,darkMode:m})},[n,C,h,k,f?.autoColor,m]),D={onQuickClick:o?I:void 0,createPopupPanel:A,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:F,onPopupClose:T,tooltip:i||l||"Color",label:l,icon:S,...x};return p===Dr.Toolbar?a.jsx(qr,{ref:t,...D}):a.jsx(Aa,{ref:t,...D})})),Xs=82,C2=e=>{const{styleColor:t,length:n=Xs,width:o=1,dashArray:r=null,sx:i,isDouble:l=!1,isAngled:d=!1,darkMode:c=!1,...u}=e;return a.jsx(N.SvgIcon,{sx:{width:`${n}px`,height:`${o}px`,color:"inherit",overflow:"visible","& .activeColor":{stroke:p=>`${t?t.toRGBA(c).toString():p.palette.text.icon??p.palette.action.active}`},"& .style_grey":{stroke:p=>p.palette.text.icon??p.palette.action.active},...i},height:o,width:n,viewBox:`0 0 ${n} ${o}`,...u,children:a.jsx(z9,{length:n,width:o,dashArray:r,isDouble:l,isAngled:d,className:"activeColor"})})},Ef=s.memo(s.forwardRef((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:l,selectedStyle:d,onSelectStyle:c,showNone:u=!0,darkMode:p,sx:f,...h}=e,g=he(c,[]),m=s.useCallback(b=>{const{popupContainer:C,floatReference:E,closeFloat:k,...M}=b,T=[],F=B.IBorder.BuiltInDefinitionsArray;for(let _=0;_<F.length;_++){const P=F[_];if(P.description==="None"&&!u)continue;const v=a.jsx(C2,{styleColor:l,length:Xs,width:P.width,darkMode:p,dashArray:P.pattern,isDouble:P.description.toLowerCase().includes("double"),isAngled:P.description.toLowerCase().includes("slant")});let S=null;S=o?a.jsxs(a.Fragment,{children:[a.jsx(N.Box,{sx:{marginRight:"6px"},children:P.description}),a.jsxs(N.Box,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[a.jsx("div",{style:{flex:"1 1 100%"}}),v]})]}):P.description==="None"?"None":v,T.push(a.jsx(lr,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:j3(4)},paddingLeft:"16px",background:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},tooltipProps:{description:o?"":P.description},icon:null,disabled:r,onMouseDown:I=>I.preventDefault(),onMouseUp:()=>{k(),g(P.style)},onKeyDown:I=>{I.which===Wt.Enter&&k()},selected:P.style===d,parentFloat:E,children:S},_))}return a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:T})},[r,u,l,d,p]),x=s.useMemo(()=>{const b=B.IBorder.BuiltInDefinitions.get(d);let C;return C=b.description==="None"?a.jsx(N.Box,{sx:{minWidth:`${Xs}px`},children:"None"}):a.jsx(C2,{styleColor:l,length:Xs,width:b.width,dashArray:b.pattern,darkMode:p,isDouble:b.description.toLowerCase().includes("double"),isAngled:b.description.toLowerCase().includes("slant")}),a.jsx(N.Box,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:j3()}},children:C})},[d,l]),y=s.useMemo(()=>B.IBorder.BuiltInDefinitions.get(d),[d]),w={disabled:r,icon:x,tooltip:"Border Style: "+y.description,sx:{background:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,...f},createPopupPanel:m,...h};return n===Dr.Toolbar?a.jsx(qr,{...w}):a.jsx(Aa,{...w})})),_f=s.memo(s.forwardRef((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=B.IBorder.StrokeStyle.Thin,disabled:i=!1,darkMode:l=!1,showStylingBefore:d=!0,onSelectBorder:c,onPreviewBorder:u,selectedBorder:p,createTemporaryBorder:f,...h}=e,g=he(c,[c]),m=he(u,[u]),[x,y]=s.useState(),[w,b]=s.useState(),C=x??r,E=w??n,k=p||{bottom:{style:r,color:n?.toString()}},M=he(S=>{const I={},j=S?Object.keys(S):[];let R=!1;for(let X=0;X<j.length;X++)S[j[X]]?.style&&(I[j[X]]={style:S[j[X]].style,color:S[j[X]].color},R||I[j[X]].style===B.IBorder.StrokeStyle.None||(R=!0));j.length<6&&(R=!0);const A=R?I.left:null,D=R?I.top:null,L=R?I.right:null,$=R?I.bottom:null,q=R?I.vertical:null,O=R?I.horizontal:null;let U="";return D||A||(U+="M 3,5 H 5 V 3 H 3 "),D||(U+="M 7,5 H 9 V 3 H 7 "),D||q||(U+="M 11,5 h 2 V 3 h -2 "),D||(U+="M 15,5 h 2 V 3 h -2 "),D||L||(U+="M 19,5 h 2 V 3 h -2 "),A||(U+="M 3,9 H 5 V 7 H 3 "),q||(U+="M 11,9 h 2 V 7 h -2 "),L||(U+="M 19,9 h 2 V 7 h -2 "),O||A||(U+="M 3,13 H 5 V 11 H 3 "),O||(U+="M 7,13 H 9 V 11 H 7 "),O||q||(U+="M 11,13 h 2 v -2 h -2 "),O||L||(U+="M 19,13 h 2 v -2 h -2 "),O||(U+="M 15,13 h 2 v -2 h -2 "),A||(U+="M 3,17 H 5 V 15 H 3 "),q||(U+="M 11,17 h 2 v -2 h -2 "),L||(U+="M 19,17 h 2 v -2 h -2 "),$||A||(U+="M 3,21 H 5 V 19 H 3 "),$||(U+="M 7,21 H 9 V 19 H 7 "),$||q||(U+="M 11,21 h 2 v -2 h -2 "),$||(U+="M 15,21 h 2 v -2 h -2 "),$||L||(U+="M 19,21 h 2 v -2 h -2 "),a.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[a.jsx(N.SvgIcon,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:a.jsx("path",{d:U})}),a.jsx(N.Box,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:Pa}},children:a.jsx(fu,{getBorderAt:(X,ee)=>{if(!f||j.length===0)return null;const V=X.rowIndex,H=X.colIndex,z={};return V===0?(z.top=I.top,z.bottom=I.horizontal):(z.top=I.horizontal,z.bottom=I.bottom),H===0?(z.left=I.left,z.right=I.vertical):(z.left=I.vertical,z.right=I.right),f?.(z)},width:18,height:18,darkMode:l,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[E,C,l]),T=s.useCallback((S,I,j)=>{let R=null;if(S&&S.length>0){let A=null;(I||j)&&(A={style:j,color:I?.toString()??null}),R={};for(let D=0;D<S.length;D++)R[S[D]]=A}return R},[]),F=s.useCallback(S=>{g?.(S)},[]),_=s.useCallback(S=>{m?.(S)},[]),P=s.useCallback(S=>{const{closeFloatAll:I,floatReference:j}=S,R=(L,$,q="bottom",O=!1)=>{const U=T(L,E??null,O?B.IBorder.StrokeStyle.None:C??null),X=O?T([],E??null,C??null):U;return a.jsx(mr,{icon:M(X),sx:{background:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},tooltipProps:{label:$,simple:!0,placement:q},onClick:()=>{I(),_(U),F(U)}})},A=a.jsxs(a.Fragment,{children:[a.jsxs(N.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[R([B.IBorder.Edge.Left,B.IBorder.Edge.Top,B.IBorder.Edge.Right,B.IBorder.Edge.Bottom,B.IBorder.Edge.Horizontal,B.IBorder.Edge.Vertical],"All Borders","top"),R([B.IBorder.Edge.Horizontal,B.IBorder.Edge.Vertical],"Inner Borders","top"),R([B.IBorder.Edge.Horizontal],"Inside Horizontal Borders","top"),R([B.IBorder.Edge.Vertical],"Inside Vertical Borders","top"),R([B.IBorder.Edge.Left,B.IBorder.Edge.Top,B.IBorder.Edge.Right,B.IBorder.Edge.Bottom],"Outside Borders","top")]}),a.jsxs(N.Box,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[R([B.IBorder.Edge.Left],"Left Borders"),R([B.IBorder.Edge.Top],"Top Borders"),R([B.IBorder.Edge.Right],"Right Borders"),R([B.IBorder.Edge.Bottom],"Bottom Borders"),R([B.IBorder.Edge.Left,B.IBorder.Edge.Top,B.IBorder.Edge.Right,B.IBorder.Edge.Bottom,B.IBorder.Edge.Horizontal,B.IBorder.Edge.Vertical,B.IBorder.Edge.DiagonalUp,B.IBorder.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),D=a.jsx(a.Fragment,{children:a.jsxs(N.Box,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[a.jsx(Cu,{variant:Dr.Toolbar,icon:a.jsx(H2,{}),selectedColor:C===B.IBorder.StrokeStyle.None?new B.Color("transparent"):E,onPreviewColor:L=>{b(L)},onSelectColor:(L,$)=>{b(L)},darkMode:l,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||C===B.IBorder.StrokeStyle.None,parentFloat:j,shouldCloseFloatAll:!1}),a.jsx(Ef,{selectedStyle:C,onSelectStyle:y,styleColor:E,darkMode:l,variant:Dr.Toolbar,parentFloat:j})]})});return a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:L=>L.stopPropagation(),children:[d?D:A,a.jsx(It,{orientation:"horizontal"}),d?A:D]})},[C,E,n,o,l]),v=s.useMemo(()=>M(k),[k,l]);return a.jsx(qr,{ref:t,createPopupPanel:P,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:S},I)=>a.jsx(zo,{label:"Borders",description:"Set the borders.",disabled:I,children:S}),onQuickClick:()=>{g?.(k)},quickButtonProps:{sx:{}},disabled:i,icon:v,...h})})),Tf=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=Ht.Toolbar,disabled:l=!1,autoColor:d,autoStrokeStyle:c,schemeLookup:u,createTemporaryBorder:p,selectedBorder:f,onSelectBorder:h,darkMode:g,icon:m,label:x,...y}=e,w=to(n,["formatBorder"]),b=o??w[0],C=b?.context()??null,E=C?.autoColor??d,k=C?.autoStyle??c,M=f??C?.quickBorder,T=g??C?.darkMode,F=p??C?.createTemporaryBorder,_=u??C?.schemeLookup,P=he(S=>{C?.onBorderSelect&&C.onBorderSelect(S),h?.(S),b?.execute(S,r)},[b,h,r]),v=s.useCallback((S,I)=>{const{children:j,title:R,...A}=S;let D=S.children;return(b?.disabled()||l)&&(D=a.jsx("div",{children:D})),a.jsx(al,{command:b,placement:i===Ht.Toolbar?"bottom-start":"right-start",disabled:I,...A,children:D})},[b,l]);return a.jsx(_f,{ref:t,autoColor:E,darkMode:T,autoStrokeStyle:k,createTemporaryBorder:F,schemeLookup:_,selectedBorder:M,onSelectBorder:P,createTooltip:v,disabled:l||!b||b.disabled(),...y})})),jf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("mergeToggle"),icon:ge(a.jsx(M3,{}))}),a.jsx(je,{...p,command:u.getCommand("mergeHorizontal"),icon:ge(a.jsx(ny,{}))}),a.jsx(je,{...p,command:u.getCommand("mergeVertical"),icon:ge(a.jsx(oy,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...p,command:u.getCommand("unmerge"),icon:ge(a.jsx(Ih,{}))})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:d,icon:ge(a.jsx(M3,{})),...l})})),Mf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("freezeToggle"),icon:ge(a.jsx(ay,{}))}),a.jsx(je,{...p,command:u.getCommand("freezeToggleHorizontal"),icon:ge(a.jsx(iy,{}))}),a.jsx(je,{...p,command:u.getCommand("freezeToggleVertical"),icon:ge(a.jsx(ly,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...p,command:u.getCommand("unfreeze"),icon:a.jsx(Ih,{})})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,createPopupPanel:d,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:a.jsx(ry,{}),...l})})),Rf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:r,disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("find"),icon:ge(a.jsx(Y3,{}))}),a.jsx(je,{...p,command:u.getCommand("findReplace"),icon:ge(a.jsx(qh,{}))}),a.jsx(je,{...p,command:u.getCommand("goto"),icon:ge(a.jsx(Tb,{}))})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,createPopupPanel:d,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:ge(a.jsx(Y3,{})),...l})})),If=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:l=lk.DefaultFontSizes,disabled:d=!1,parentFloat:c,icon:u,label:p,sx:f,...h}=e;H0(n);const g=()=>n?.state()?.toString()||"11",[m,x]=s.useState(g),y=he(()=>{const F=parseFloat(m);isNaN(F)?x(g()):parseFloat(g())!==F&&n.execute(F,o)},[g,n,m,o]);s.useEffect(()=>{x(g())},[n?.state()]);const w=s.useMemo(()=>{if(!o)return null;const F={...o};return delete F.beforeExecute,F},[o]),b=to(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),C=s.useMemo(()=>b?a.jsxs(N.Box,{className:Jn("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:F=>F.stopPropagation(),children:[a.jsx(je,{command:b[0],commandHook:w,icon:ge(a.jsx(ub,{}))}),a.jsx(je,{command:b[1],icon:ge(a.jsx(hb,{}))})]}):null,[b]),E=Zr(),k=s.useMemo(()=>`${B.IFont.getSharedMeasurer()("12.3",Math.round(E.typography.fontSize),E.typography.fontFamily).width}px`,[E]),M=s.useCallback(F=>{const{onMouseDown:_,onMouseUp:P,...v}=F;return a.jsx(N.IconButton,{component:"div",...v,disableRipple:!0,children:a.jsx(N.Input,{inputMode:"numeric",disabled:d||!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:S=>`1px solid ${S.palette.text.icon??S.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:S=>`1px solid ${S.palette.error.main}`},"::after":{borderBottom:S=>`1px solid ${S.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:S=>`${Math.round(S.typography.fontSize)}px`,width:k,color:S=>S.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:S=>S.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:S=>S.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:m,onFocus:S=>{S.target?.select()},onKeyDown:S=>{if(S.which===Wt.Enter)g()!==m&&(S.stopPropagation(),S.preventDefault(),y());else if(S.which===Wt.Escape)g()!==m&&(x(g()),setTimeout(()=>{S.target?.select()},0),S.stopPropagation(),S.preventDefault());else{if(S.key.match("[-]")||S.key.match("[0-9.]")&&(m+S.key).length>4)return S.stopPropagation(),void S.preventDefault();if(S.which===Wt.Space)return void S.preventDefault()}},onBlur:()=>{y()},onChange:S=>{if(S.target.value.length>4)return S.stopPropagation(),void S.preventDefault();x(S.target.value)}})})},[m,d,n]),T=s.useCallback(F=>{const _=I=>{n?.execute(I,o)},P=n?.state(),v=[];for(let I=0;I<l.length;I++){const j=l[I]===P;v.push(a.jsx(lr,{selected:j,icon:j?a.jsx(Fa,{}):void 0,disabled:d||!n||n.disabled(),onMouseDown:R=>{R.button===0&&R.preventDefault()},onMouseUp:R=>{R.button===0&&_(l[I])},onKeyDown:R=>{R.keyCode!==Wt.Enter&&R.keyCode!==Wt.Space||_(l[I])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:a.jsx(N.Box,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:l[I]})},"fontSize-"+I))}const S=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...h,children:[C,a.jsx(It,{orientation:"horizontal"}),a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:v})]});return vn({...F,children:S})},[d,n?.state(),o]);return a.jsx(qr,{ref:t,sx:{...f},tabIndex:-1,outlined:!0,disabled:d,parentFloat:c,createPopupPanel:T,createTooltip:({children:F},_)=>a.jsx(zo,{label:n?.label(),description:n?.description(),disabled:_||n?.disabled(),children:F}),createQuickButton:M,...h})})),$7=s.memo(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:l,...d}=e;return a.jsx(lr,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...l},disabled:n,selected:t,icon:t?a.jsx(Fa,{}):void 0,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(i.numberFormat)},onKeyDown:c=>{c.keyCode!==Wt.Enter&&c.keyCode!==Wt.Space||r(i.numberFormat)},...d,children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsxs(N.Typography,{component:"div",children:[i.formatType,i.formatType===B.NumberFormat.Type.Custom?"…":""]}),a.jsx(N.Typography,{variant:"caption",component:"div",sx:{color:c=>dt.alpha(c.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),Df=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,sx:i,disabled:l=!1,parentFloat:d,...c}=e,u=to(n,["formatNumberFormat"])[0],p=u?.state()?B.NumberFormat.Styles.lookupStyle(u?.state()).formatType:B.NumberFormat.Type.General,f=s.useMemo(()=>{if(!o)return null;const x={...o};return delete x.beforeExecute,x},[o]),h=s.useCallback((x,y)=>{const w=P=>{o?.beforeExecute?.(u,u?.state()),u.execute(P,o),o?.onExecute?.(u,u?.state())},b=u?.context()(),C=B.NumberFormat.Styles.lookupPrimary(),E=[];for(let P=0;P<C.length;P++){let v="";if(b&&!b.isEmpty())try{v=b.getNumberFormat(C[P].numberFormat).displayText}catch(I){console.warn(I)}v===""&&C[P].formatType===B.NumberFormat.Type.General&&(v="No specific format");const S=C[P].formatType===p;E.push(a.jsx($7,{selected:S,disabled:l||!u||u.disabled(),formattedValue:v,handleSetFormat:w,format:C[P]},C[P].formatType))}const k={numberFormat:"",formatType:B.NumberFormat.Type.Custom},M=p===B.NumberFormat.Type.Custom,T=a.jsx($7,{selected:M,disabled:l||!u||u.disabled(),formattedValue:M?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(u,u?.state()),y.getCommand("formatNumberDialog")?.execute(u?.state()),o?.onExecute?.(u,u?.state())},format:k,sx:{flex:"0",width:"100%"}},B.NumberFormat.Type.Custom),F=a.jsxs(N.Box,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:P=>P.stopPropagation(),children:[a.jsx(je,{command:y.getCommand("formatNumberFormatAccountingStyle"),commandHook:f,scope:r,icon:a.jsx(hy,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatPercentStyle"),commandHook:f,scope:r,icon:a.jsx(cy,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatCommaStyle"),commandHook:f,scope:r,icon:a.jsx(sy,{})}),a.jsx(je,{command:y.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:f,scope:r,icon:ge(a.jsx(dy,{}))}),a.jsx(je,{command:y.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:f,scope:r,icon:ge(a.jsx(uy,{}))})]}),_=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[F,a.jsx(It,{orientation:"horizontal"}),a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:E}),a.jsx(It,{orientation:"horizontal"}),T]});return vn({...x,children:_})},[u?.context(),u?.state(),o,r]),g=Zr(),m=s.useMemo(()=>{const x=B.NumberFormat.Type.MediumTime;return`${B.IFont.getSharedMeasurer()(x,Math.round(g.typography.fontSize),g.typography.fontFamily).width}px`},[g]);return a.jsx(Dn,{ref:t,commands:n,sx:i,outlined:!0,disabled:l,parentFloat:d,createPopupPanel:h,createTooltip:({children:x},y)=>a.jsx(zo,{label:u?.label(),description:u?.description(),disabled:y,children:x}),icon:a.jsx(N.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:x=>`${Math.round(x.typography.fontSize)}px`,color:x=>x.palette.text.secondary,fontFamily:x=>x.typography.fontFamily,width:m},children:a.jsx(N.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:p})}),...c})})),ku=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:"clear",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("clearAll"),icon:a.jsx(n3,{})}),a.jsx(je,{...p,command:u.getCommand("clearFormats"),icon:ge(a.jsx(fh,{}))}),a.jsx(je,{...p,command:u.getCommand("clearContents"),icon:ge(a.jsx(lx,{}))}),a.jsx(je,{...p,command:u.getCommand("clearComments")}),a.jsx(je,{...p,command:u.getCommand("clearHyperlinks")})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{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:d,icon:a.jsx(n3,{}),...l})})),Lf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:"fill",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("fillDown"),icon:ge(a.jsx(El,{}))}),a.jsx(je,{...p,command:u.getCommand("fillRight"),icon:ge(a.jsx(El,{sx:{transform:"rotate(270deg)"}}))}),a.jsx(je,{...p,command:u.getCommand("fillUp"),icon:ge(a.jsx(El,{sx:{transform:"rotate(180deg)"}}))}),a.jsx(je,{...p,command:u.getCommand("fillLeft"),icon:ge(a.jsx(El,{sx:{transform:"rotate(90deg)"}}))})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:d,icon:ge(a.jsx(El,{})),...l})})),Eu=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:d=!0,showQuickButton:c=!0,variant:u=Ht.Toolbar,...p}=e,f=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],h=to(n,f),{singleCommand:g,allDisabled:m}=s.useMemo(()=>{let w=null,b=0;for(let C=0;C<h.length;C++)h[C]&&!h[C]?.disabled()&&(d&&u===Ht.Menuitem&&(w=b===0?h[C]:null),b++);return{singleCommand:w,allDisabled:b===0}},[h]),x=s.useMemo(()=>{const w=new Map;return w.set("insertCellsShiftDown",ge(a.jsx(z3,{}))),w.set("insertCellsShiftRight",ge(a.jsx(z3,{sx:{transform:"rotate(270deg)"}}))),w.set("insertRows",ge(a.jsx(ib,{}))),w.set("insertColumns",ge(a.jsx(B3,{}))),w},[]),y=s.useCallback((w,b)=>{let C=null;const E={variant:Ht.Menuitem,commandHook:o,scope:"insertCells",disabled:i};l||(C=a.jsxs(a.Fragment,{children:[a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...E,command:b.getCommand("addSheet"),icon:ge(a.jsx(Xi,{}))})]}));const k=a.jsxs(a.Fragment,{children:[a.jsx(je,{...E,command:h[0],icon:x.get(f[0])}),a.jsx(je,{...E,command:h[1],icon:x.get(f[1])}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...E,command:h[2],icon:x.get(f[2])}),a.jsx(je,{...E,command:h[3],icon:x.get(f[3])}),C]});return vn({...w,children:k})},[i,h,o,r,x]);return g?a.jsx(je,{ref:t,variant:u,commandHook:o,disabled:i,command:g,icon:x.get(g.key()),...p}):a.jsx(Dn,{ref:t,variant:u,quickCommand:"insertCells",commands:n,commandHook:o,scope:r,disabled:i||m,tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Insert new cells, rows or columns to your workbook."}),a.jsx("br",{}),a.jsx("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:y,icon:ge(a.jsx(B3,{})),...p})})),_u=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:l=!1,preferSingleMenu:d=!0,showQuickButton:c=!0,variant:u=Ht.Toolbar,...p}=e,f=to(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:h,allDisabled:g}=s.useMemo(()=>{let y=null,w=0;for(let b=0;b<f.length;b++)f[b]&&!f[b]?.disabled()&&(d&&u===Ht.Menuitem&&(y=w===0?f[b]:null),w++);return{singleCommand:y,allDisabled:w===0}},[f]),m=s.useMemo(()=>{const y=new Map;return y.set("deleteCellsShiftUp",ge(a.jsx(N3,{sx:{transform:"rotate(0deg)"}}))),y.set("deleteCellsShiftLeft",ge(a.jsx(N3,{sx:{transform:"rotate(270deg)"}}))),y.set("deleteRows",ge(a.jsx(lb,{}))),y.set("deleteColumns",ge(a.jsx(V3,{}))),y},[]),x=s.useCallback((y,w)=>{const b={variant:Ht.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let C=null;l||(C=a.jsxs(a.Fragment,{children:[a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...b,command:w.getCommand("deleteSheet"),icon:ge(a.jsx(Xi,{}))})]}));const E=a.jsxs(a.Fragment,{children:[a.jsx(je,{...b,command:w.getCommand("deleteCellsShiftUp"),icon:m.get("deleteCellsShiftUp")}),a.jsx(je,{...b,command:w.getCommand("deleteCellsShiftLeft"),icon:m.get("deleteCellsShiftLeft")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...b,command:w.getCommand("deleteRows"),icon:m.get("deleteRows")}),a.jsx(je,{...b,command:w.getCommand("deleteColumns"),icon:m.get("deleteColumns")}),C]});return vn({...y,children:E})},[i,o,r,m]);return h?a.jsx(je,{ref:t,variant:u,commandHook:o,disabled:i,command:h,icon:m.get(h.key()),...p}):a.jsx(Dn,{ref:t,variant:u,quickCommand:"deleteCells",commands:n,commandHook:o,scope:r,disabled:i||g,tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),a.jsx("br",{}),a.jsx("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:x,icon:ge(a.jsx(V3,{})),...p})})),il=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:l=Ht.Toolbar,quickColor:d,panelProps:c,isSplit:u=!1,darkMode:p,icon:f,...h}=e,{autoColor:g,schemeLookup:m,recentColors:x,...y}=c;if(h.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");H0(n);const w=n?.context();let b=d??w?.quickColor;u&&!b&&(b=new B.Color("transparent"));const C=g??w?.autoColor,E=m??w?.schemeLookup,k=x??w?.recentColors,M=p??w?.darkMode,T=s.useMemo(()=>({autoColor:C,schemeLookup:E,recentColors:k,darkMode:M,...y}),[C,E,k,M]),F=he((P,v)=>{P&&v&&w?.addRecentColor&&w.addRecentColor(P),w?.onColorSelect&&w.onColorSelect(P),r?.(P,v),n?.execute(P,o)},[n,r,o,w]),_=s.useCallback((P,v)=>{const{children:S,title:I,...j}=P;let R=P.children;return(n?.disabled()||i)&&(R=a.jsx("div",{children:R})),a.jsx(al,{command:n,placement:l===Ht.Toolbar?"bottom-start":"right-start",disabled:v,...j,children:R})},[n,i]);return a.jsx(Cu,{ref:t,panelProps:T,icon:f,quickColor:b,selectedColor:n?.state(),onSelectColor:F,variant:l===Ht.Menuitem?Dr.Menuitem:Dr.Toolbar,createTooltip:_,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:M,...h})}));il.displayName="ColorCommandButton";const Of=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=to(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),u=s.useCallback((p,f)=>{const h={variant:Ht.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:f.getCommand("gridlinesToggle")}),a.jsx(il,{...h,command:f.getCommand("sheetViewFormatGridlinesColor"),icon:a.jsx(H2,{}),panelProps:{disableAlpha:!0}}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...h,command:f.getCommand("sheetViewToggleGridlinesColumns")}),a.jsx(je,{...h,command:f.getCommand("sheetViewToggleGridlinesRows")})]});return vn({...p,children:g})},[i,o]);return a.jsx(Dn,{ref:t,parentFloat:l,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:u,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:a.jsx(nl,{command:c[0],scope:"view"}),...d})})),Tu=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:"sort",disabled:i},f=u.getCommand("sortCustom"),h=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:u.getCommand("sortAscending"),icon:ge(a.jsx(Wd,{}))}),a.jsx(je,{...p,command:u.getCommand("sortDescending"),icon:ge(a.jsx(Hh,{}))}),f?a.jsx(je,{...p,command:f,icon:ge(a.jsx(db,{}))}):null,a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ge(a.jsx(Ad,{}))}),a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ge(a.jsx($2,{}))}),a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ge(a.jsx(Dh,{}))})]});return vn({...c,children:h})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Sort",tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Organize your data so it's easier to analyze."}),a.jsx("br",{}),a.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:d,icon:ge(a.jsx(Wd,{})),...l})})),f_=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=s.useCallback((c,u)=>{const p={variant:Ht.Menuitem,commandHook:o,scope:"sort",disabled:i},f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterToggle"),icon:ge(a.jsx(Ad,{}))}),a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterClear"),icon:ge(a.jsx($2,{}))}),a.jsx(je,{...p,scope:"filter",command:u.getCommand("autoFilterReapply"),icon:ge(a.jsx(Dh,{}))})]});return vn({...c,children:f})},[i,o,r]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Filter",tooltip:a.jsxs(a.Fragment,{children:[a.jsx("span",{children:"Organize your data so it's easier to analyze."}),a.jsx("br",{}),a.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:d,icon:ge(a.jsx(Ad,{})),...l})})),ju=s.memo(s.forwardRef((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:l,scope:d,sx:c,disabled:u,commands:p,...f}=e,h=[n];!r&&i&&h.push("redo");const g=to(p,h),m=g[0],x=g[1],y=l??m?.context?.()?.undoManager;let w=u;u||(w=!m||m.disabled(),x&&!x.disabled()&&(w=!1));const[b,C]=s.useState(0),E=s.useCallback((k,M)=>{let T=b===0?"Cancel":`${m.label()} ${b} Action${b===1?"":"s"}`,F=!1;y||(F=!0),F||(F=i?!y.hasRedo()&&!y.hasUndo():!y.hasRedo());const _=R=>{m.execute(R)},P=a.jsx(lr,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:F?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{C(0)},onMouseDown:R=>{R.button===0&&R.preventDefault()},onMouseUp:R=>{R.button===0&&_(b)},onKeyDown:R=>{R.isDefaultPrevented()||R.keyCode!==Wt.Enter&&R.keyCode!==Wt.Space||_(b)},children:a.jsx(N.Typography,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:T})});if(F)return P;const v=r?y?.getRedoDescriptions():y?.getUndoDescriptions(),S=[];for(let R=0;R<v.length;R++){const A=v[R];S.push(a.jsx(lr,{sx:{maxWidth:"360px",display:"flex"},icon:a.jsx(Xi,{}),disabled:w,selected:R<b,onMouseEnter:()=>{C(R+1)},onMouseDown:D=>{D.button===0&&D.preventDefault()},onMouseUp:D=>{D.button===0&&_(R+1)},onKeyDown:D=>{D.isDefaultPrevented()||D.keyCode!==Wt.Enter&&D.keyCode!==Wt.Space||_(R+1)},children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[a.jsx(N.Typography,{component:"div",children:A}),a.jsx(Xi,{})]})},`action:${R}`))}let I=null;if(!r&&i){const R={scope:"undo",commands:M,variant:Ht.Menuitem,parentFloat:k.floatReference};I=[],I.push(a.jsx(ju,{...R,quickCommand:"redo",isRedo:!0},"nested:redo")),y.hasRedo()&&y.hasUndo()&&I.push(a.jsx(It,{orientation:"horizontal"},"action:redo-div"))}const j=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{k.closeFloatAll()},onMouseLeave:()=>{C(0)},children:[I,a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:S}),a.jsx(It,{orientation:"horizontal"}),P]});return vn({...k,children:j})},[m?.context(),m?.state(),d,y,b,w]);return a.jsx(Dn,{ref:t,commands:p,quickCommand:n,scope:d,disabled:w,label:m?.label()??(r?"Redo":"Undo"),tooltip:a.jsx(a.Fragment,{children:a.jsx("span",{children:`${m?.label()??"No"} last actions.`})}),createPopupPanel:E,icon:o??ge(r?a.jsx(Xb,{}):a.jsx(Kb,{})),selected:!1,...f})})),Zi=B.IFontCollection.getFontList(),Pf=new Map;for(let e=0;e<Zi.length;e++)Pf.set(Zi[e].fontRef.getFamily(),Zi[e]);const Af=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:l,icon:d,label:c,...u}=e;H0(n);const p=n?.state(),f=Zr(),h=s.useMemo(()=>`${B.IFont.getSharedMeasurer()("Times New Roman",Math.round(f.typography.fontSize),f.typography.fontFamily).width}px`,[f]),g=s.useCallback(m=>{const x=C=>{n?.execute(C,o)},y=[];for(let C=0;C<Zi.length;C++)y.push({key:Zi[C].fontRef.getFamily(),description:Zi[C].fontRef.getFamily()});Pf.get(p)||y.unshift({key:p,description:p});const w=[];for(let C=0;C<y.length;C++){const E=y[C].key===p;w.push(a.jsx(lr,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:E,disabled:i||!n||n.disabled(),icon:E?a.jsx(Fa,{}):void 0,onMouseUp:k=>{k.button===0&&x(y[C].key)},onMouseDown:k=>{k.button===0&&k.preventDefault()},onKeyDown:k=>{k.keyCode!==Wt.Enter&&k.keyCode!==Wt.Space||x(y[C].key)},children:a.jsx(N.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:a.jsx(N.Typography,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>y[C]?.key},children:y[C].description})})},C+""+y[C].key))}const b=a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...u,children:a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:w})});return vn({...m,children:b})},[i,n?.state()]);return a.jsx(qr,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:l,createPopupPanel:g,createTooltip:({children:m},x)=>a.jsx(zo,{label:n?.label(),description:n?.description(),disabled:x,children:m}),icon:a.jsx(N.Box,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:m=>`${Math.round(m.typography.fontSize)}px`,fontFamily:m=>m.typography.fontFamily,color:m=>m.palette.text.secondary,width:h},children:a.jsx(N.Box,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:p})}),...u})})),Ff=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),c=s.useMemo(()=>{for(let f=0;f<d.length;f++)if(d[f]?.state())return d[f].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const f=new Map;return f.set("formatStrikeThroughToggle",ge(a.jsx(H3,{}))),f.set("formatSuperscriptToggle",ge(a.jsx(pb,{}))),f.set("formatSubscriptToggle",ge(a.jsx(fb,{}))),f},[]),p=s.useCallback((f,h)=>{const g={variant:Ht.Menuitem,commandHook:o,scope:"textEffects",disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...g,command:h.getCommand("formatStrikeThroughToggle"),icon:u.get("formatStrikeThroughToggle")}),a.jsx(je,{...g,command:h.getCommand("formatSuperscriptToggle"),icon:u.get("formatSuperscriptToggle")}),a.jsx(je,{...g,command:h.getCommand("formatSubscriptToggle"),icon:u.get("formatSubscriptToggle")})]});return vn({...f,children:m})},[i,o,r]);return a.jsx(Dn,{ref:t,quickCommand:c,commands:n,commandHook:o,createPopupPanel:p,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:u.get(c)??ge(a.jsx(H3,{})),...l})})),zf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),c=s.useMemo(()=>{for(let f=0;f<d.length;f++)if(d[f]?.state())return d[f].key();return d[0]?.key()},[d]),u=s.useMemo(()=>{const f=new Map;return f.set("formatUnderlinedToggle",ge(a.jsx(Dc,{}))),f.set("formatUnderlinedDoubleToggle",ge(a.jsx($3,{}))),f.set("formatUnderlinedAccountingToggle",ge(a.jsx(W3,{}))),f.set("formatUnderlinedAccountingDoubleToggle",ge(a.jsx(U3,{}))),f},[]),p=s.useCallback((f,h)=>{const g={variant:Ht.Menuitem,commandHook:o,scope:"underline",disabled:i},m=a.jsxs(a.Fragment,{children:[a.jsx(je,{...g,command:h.getCommand("formatUnderlinedToggle"),icon:ge(a.jsx(Dc,{}))}),a.jsx(je,{...g,command:h.getCommand("formatUnderlinedDoubleToggle"),icon:ge(a.jsx($3,{}))}),a.jsx(je,{...g,command:h.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ge(a.jsx(W3,{}))}),a.jsx(je,{...g,command:h.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ge(a.jsx(U3,{}))})]});return vn({...f,children:m})},[i,o,r]);return a.jsx(Dn,{ref:t,quickCommand:c,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:p,icon:u.get(c)??ge(a.jsx(Dc,{})),...l})})),Mu=s.memo(s.forwardRef((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:l=!0,disabled:d=!1,...c}=e,u=he((p,f)=>{const h={variant:Ht.Menuitem,commandHook:r,scope:"paste",disabled:d},g=[];return l&&(g.push(s.createElement(je,{...h,command:f.getCommand("paste"),key:"paste",icon:a.jsx(F3,{})})),g.push(a.jsx(It,{orientation:"horizontal"},"paste-div"))),g.push(s.createElement(je,{...h,command:f.getCommand("pasteValues"),key:"pasteValues",icon:ge(a.jsx(Xy,{}))})),g.push(s.createElement(je,{...h,command:f.getCommand("pasteFormats"),key:"pasteFormats",icon:ge(a.jsx(Yy,{}))})),g.push(s.createElement(je,{...h,command:f.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ge(a.jsx(Jy,{}))})),g.push(s.createElement(je,{...h,command:f.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ge(a.jsx(Qy,{}))})),g.push(s.createElement(je,{...h,command:f.getCommand("pasteLinks"),key:"pasteLinks",icon:ge(a.jsx(eb,{}))})),vn({...p,children:g})},[d,r,i,l]);return a.jsx(Dn,{ref:t,commands:o,commandHook:r,scope:i,createPopupPanel:u,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:a.jsx(F3,{}),...c})})),Bf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:l,...d}=e,c=to(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),u=s.useCallback((p,f)=>{const h={variant:Ht.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=a.jsxs(a.Fragment,{children:[a.jsx(je,{...h,command:f.getCommand("sheetViewToggleShowHeadings")}),a.jsx(je,{...h,command:f.getCommand("sheetViewToggleShowHeadingsNumeric")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...h,command:f.getCommand("sheetViewToggleShowHeadingColumns")}),a.jsx(je,{...h,command:f.getCommand("sheetViewToggleShowHeadingRows")})]});return vn({...p,children:g})},[i,o,r]);return a.jsx(Dn,{ref:t,parentFloat:l,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:u,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:a.jsx(nl,{command:c[0],scope:"view"}),...d})})),Nf=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...l}=e,d=s.useCallback(c=>{const u={variant:Ht.Menuitem,parentFloat:c.floatReference,commandHook:o,scope:r,disabled:i},p=a.jsxs(a.Fragment,{children:[a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowFormulaBar")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowTabs")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowStatusBar")}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),a.jsx(je,{...u,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return vn({...c,children:p})},[i,n,o,r]);return a.jsx(Dn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:d,icon:a.jsx(nl,{icon:null,label:"Workbook View"}),...l})})),Vf=s.memo(s.forwardRef((e,t)=>{const{value:n,cellStyle:o,styles:r,createTemporaryCell:i,bodyStyle:l,sx:d,borderProps:c,disabled:u,...p}=e,f=s.useMemo(()=>i({value:n,style:o}),[n,o,i]),h=s.useMemo(()=>f.getStyle(),[f,l]),g=s.useMemo(()=>h.getFill().toCSS(l?.darkMode??!1),[h]),m=h.getInsets(),x=h.getFont(),y=s.useCallback(()=>h.getBorder(),[h]);return a.jsx(N.Box,{ref:t,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:l?.fill,filter:u?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...g},"& .text":{flex:"1 1 100%",...x.toCSS(l?.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:x.toCSS().textDecoration,textAlign:B.ITextFrame.toCSSHorizontalTextAlign(f.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...d},...p,children:a.jsx(fu,{getBorderAt:y,darkMode:l?.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:a.jsx(N.Box,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:a.jsx(N.Box,{className:"text",children:n})})})})})),m_=s.memo(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:l,createTemporaryCell:d,parentFloat:c,commands:u,disabled:p,commandHook:f,...h}=e,g=s.useCallback(y=>{const w={variant:Ht.Menuitem,commandHook:f,context:"cellStyle"},b=a.jsxs(a.Fragment,{children:[a.jsx(je,{...w,sx:{fontWeight:550},command:u.getCommand("formatCellStyle"),commandState:n,disabled:p,icon:ge(a.jsx(ba,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...w,command:u.getCommand("modifyCellStyle"),commandState:{named:n}}),a.jsx(je,{...w,command:u.getCommand("deleteCellStyle"),commandState:n,disabled:p||n?.getName()===B.IStyle.BuiltInName.Normal})]}),C=a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:b})});return vn({...y,children:C})},[]),m=n?.getName()===o?.getName();let x=a.jsx(mr,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:y=>`solid ${m?y.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName(),placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{l?.(n)},...h,children:a.jsx(Vf,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:d,bodyStyle:i})},n.getName());return r&&(x=a.jsx(cp,{label:n.getName(),parentFloat:c,createPopupPanel:g,children:x})),x}),Hf=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedNamed:i,onSelectNamed:l,disabled:d=!1,bodyStyle:c,usePreviewIcon:u=!0,...p}=e;H0(o);const f=o?.context(),h=f?.styles,g=i??f?.named(),m=c??f?.bodyStyle(),x=he(E=>{l?.(E),o?.execute(E,r)},[o,l,r]),y=s.useCallback((E,k)=>{const M={onSelectNamed:x,styles:h(),parentFloat:E.floatReference},T=h().getCustomNamed(),F=new Map,_=[];for(let D=0;D<T.length;D++)F.set(T[D].getName(),T[D]),h().getNamed(T[D].getName()).getBuiltInID()===null&&_.push(T[D].getName());const P=D=>{let L=F.get(D);return L||(L=h().getNamed(D)),!L||L.isHidden()?null:a.jsx(m_,{namedStyle:L,selectedNamed:g,bodyStyle:f.bodyStyle(),createTemporaryCell:f.createTemporaryCell,commands:n,commandHook:r,...M},D)},v=(D,L,$=!0)=>{const q=[];for(let O=0;O<L.length;O++){const U=P(L[O]);U&&q.push(U)}return q.length===0?null:a.jsxs(N.Box,{children:[$?a.jsx(It,{orientation:"horizontal"}):null,a.jsx(el,{children:D},D+"-header"),a.jsx(N.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:q},D+"-presets")]},D)},S=(D,L)=>{const $=[];for(let q=0;q<L.length;q++){const O=P(L[q]);O&&$.push(O)}return $.length===0?null:a.jsx(N.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:$},D+"-presets")},I=[];I.push(v("Custom",_,!1)),I.push(v("Good, Bad and Neutral",[B.IStyle.BuiltInName.Normal,B.IStyle.BuiltInName.Bad,B.IStyle.BuiltInName.Good,B.IStyle.BuiltInName.Neutral],_.length>0)),I.push(v("Data and Model",[B.IStyle.BuiltInName.Calculation,B.IStyle.BuiltInName.CheckCell,B.IStyle.BuiltInName.ExplanatoryText,B.IStyle.BuiltInName.FollowedHyperlink,B.IStyle.BuiltInName.Hyperlink,B.IStyle.BuiltInName.Input,B.IStyle.BuiltInName.LinkedCell,B.IStyle.BuiltInName.Note,B.IStyle.BuiltInName.Output,B.IStyle.BuiltInName.WarningText])),I.push(v("Titles and Headings",[B.IStyle.BuiltInName.Heading1,B.IStyle.BuiltInName.Heading2,B.IStyle.BuiltInName.Heading3,B.IStyle.BuiltInName.Heading4,B.IStyle.BuiltInName.Title,B.IStyle.BuiltInName.Total]));let j=[];var R,A;return j.push(S("Accent 1",[B.IStyle.BuiltInName.Accent1_20,B.IStyle.BuiltInName.Accent1_40,B.IStyle.BuiltInName.Accent1_60,B.IStyle.BuiltInName.Accent1])),j.push(S("Accent 2",[B.IStyle.BuiltInName.Accent2_20,B.IStyle.BuiltInName.Accent2_40,B.IStyle.BuiltInName.Accent2_60,B.IStyle.BuiltInName.Accent2])),j.push(S("Accent 3",[B.IStyle.BuiltInName.Accent3_20,B.IStyle.BuiltInName.Accent3_40,B.IStyle.BuiltInName.Accent3_60,B.IStyle.BuiltInName.Accent3])),j.push(S("Accent 4",[B.IStyle.BuiltInName.Accent4_20,B.IStyle.BuiltInName.Accent4_40,B.IStyle.BuiltInName.Accent4_60,B.IStyle.BuiltInName.Accent4])),j.push(S("Accent 5",[B.IStyle.BuiltInName.Accent5_20,B.IStyle.BuiltInName.Accent5_40,B.IStyle.BuiltInName.Accent5_60,B.IStyle.BuiltInName.Accent5])),j.push(S("Accent 6",[B.IStyle.BuiltInName.Accent6_20,B.IStyle.BuiltInName.Accent6_40,B.IStyle.BuiltInName.Accent6_60,B.IStyle.BuiltInName.Accent6])),I.push((R="Themed Cell Styles",A=j,a.jsxs(N.Box,{children:[a.jsx(It,{orientation:"horizontal"}),a.jsx(el,{children:R},R+"-header"),a.jsx(N.Box,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:A},R+"-presets")]},R))),I.push(v("Number Format",[B.IStyle.BuiltInName.Comma,B.IStyle.BuiltInName.Comma0,B.IStyle.BuiltInName.Currency,B.IStyle.BuiltInName.Currency0,B.IStyle.BuiltInName.Percent])),a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:D=>`${D.shape.borderRadius}px`,paddingBottom:D=>`${D.shape.borderRadius}px`},children:[a.jsx(N.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:I}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{variant:Ht.Menuitem,commandState:g,command:k.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:d,icon:ge(a.jsx(yb,{}))})]})},[g,h?.().getTheme(),m]),w=he(E=>{const k=18/B.IFont.getDeviceScale(),M=f?.createTemporaryCell(E);return M.getStyle().getFont().getSize()<=k?M:M.createTemporaryCell({style:{font:{size:k}}})},[f?.createTemporaryCell]),b=d||!o||o.disabled(),C=s.useMemo(()=>f&&u?a.jsx(Vf,{value:g?.getName()??"Custom",cellStyle:g?{named:g.getName()}:void 0,styles:f.styles(),createTemporaryCell:w,bodyStyle:f.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:E=>`1px solid ${E.palette.action.hover}`},borderProps:{}}):ge(a.jsx(ba,{})),[g,m,b]);return a.jsx(Dn,{ref:t,createPopupPanel:y,outlined:u,commands:n,createTooltip:({children:E},k)=>a.jsx(zo,{label:o?.label(),description:o?.description(),disabled:k,children:E}),selected:!1,disabled:b,label:o?.label(),icon:C,...p})})),$f="_sheetxl-reset_ods65_1",g_=10,Wf=s.memo(s.forwardRef((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:l,disabled:d,className:c,forceThinBorder:u,cellHeight:p=g_,isLive:f=!1,...h}=e,g=Math.ceil(1.3*p),[m,x]=s.useReducer(E=>E+1,0);s.useEffect(()=>{if(f&&o)return o.addListeners({onAnyChange:()=>{x()}})},[o,f]);const y=s.useMemo(()=>{let E=o?.toJSON()??{};const k={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return E&&(E.styleOptions={...E.styleOptions,name:r.getName()}),E.ref=k,new B.Table({initialAnchor:k,json:E,styles:n})},[m,o,r,n]),w=s.useMemo(()=>{const E=[];for(let k=0;k<5;k++)for(let M=0;M<5;M++){const T=y.getStyleAt({colIndex:M,rowIndex:k});E.push(T)}return E},[y]),b=s.useMemo(()=>{const E=(M,T,F)=>{let _=F.getFill().toCSS(i?.darkMode??!1);const P=g-(T<4?1:0),v=p-(M<4?1:0),S=F.getFont().getFill().toCSS(i?.darkMode??!1);return _={..._,position:"absolute",boxSizing:"border-box",left:T*(g-1),top:M*(p-1),width:P,height:v},a.jsx("td",{className:`table-style-fill ${M}-${T}`,style:_,children:a.jsx("div",{className:`table-style-text ${M}-${T}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(P-6)/2,top:(v-1)/2,borderTop:`1px solid ${S}`}})},`${M}-${T}`)},k=[];for(let M=0;M<5;M++){const T=[];for(let F=0;F<5;F++){const _=w[5*M+F];T.push(E(M,F,_))}k.push(a.jsx("tr",{children:T},M))}return k},[y,r,i]),C=s.useCallback((E,k)=>w[k].getBorder()??null,[w]);return a.jsx(N.Box,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:d?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...l},...h,children:a.jsx(fu,{getBorderAt:C,rowCount:5,columnCount:5,forceThinBorder:u,width:5*(g-1)+1,height:5*(p-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:a.jsx("table",{className:Jn(c,"sheetxl-table-preview",$f),style:{borderCollapse:"collapse",width:5*(g-1)+1,height:5*(p-1)+1},children:a.jsx("tbody",{children:b})})})})})),Pl=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},Uf=s.memo(s.forwardRef((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:l,style:d,className:c,canvas:u,...p}=e,f=s.useMemo(()=>{const m=n.toJSON(),x={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return m.styleOptions={...m.styleOptions,name:o.getName()},m.ref=x,new B.Table({initialAnchor:x,json:m,styles:r})},[n,o,r]),h=s.useMemo(()=>{const m=[];for(let x=0;x<5;x++)for(let y=0;y<5;y++){const w=f.getStyleAt({colIndex:y,rowIndex:x});m.push(w)}return m},[f]),g=s.useMemo(()=>{let m=u;if(u||(m=document.createElement("canvas")),!m)return null;m.width!==61&&(m.width=61),m.height!==46&&(m.height=46);const x=m.getContext("2d",{alpha:!1});if(!x)return null;const y=12,w=i?.darkMode??!1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const E=h[5*b+C].getFill();let k=i?.fill;E.getType()===B.IFill.Type.Solid?k=E.getColor().toCSS(w,!1):E.getType()===B.IFill.Type.Gradient?k=E.getStops[0]?.color.toCSS(w,!1):E.getType()===B.IFill.Type.Pattern&&(k=E.getForeground().toCSS(w,!1)),x.fillStyle=k;const M=C*y,T=9*b;x.fillRect(M,T,13,10)}x.lineWidth=1;for(let b=0;b<5;b++)for(let C=0;C<5;C++){const E=h[5*b+C],k=C*y,M=9*b,T=E.getBorder();if(!T.isEmpty()){const P=T.getLeft();P.isNone()||(x.strokeStyle=P.getColor().toCSS(w,!1),Pl(x,k,M,k,M+9));const v=T.getTop();v.isNone()||(x.strokeStyle=v.getColor().toCSS(w,!1),Pl(x,k,M,k+y,9*b));const S=T.getRight();S.isNone()||(x.strokeStyle=S.getColor().toCSS(w,!1),Pl(x,k+y,M,k+y,M+9));const I=T.getBottom();I.isNone()||(x.strokeStyle=I.getColor().toCSS(w,!1),Pl(x,k,M+9,k+y,M+9))}x.strokeStyle=E.getFont().getFill().toCSS(w,!1);const F=4,_=2.5;Pl(x,C*y+_,9*b+F,C*y+_+7,9*b+F)}return`url(${m.toDataURL()})`},[u,f,o,i]);return a.jsx("div",{ref:t,className:Jn("table-style-preview",c),style:{backgroundImage:g,width:61,height:46,...d},...p})})),x_=s.memo(s.forwardRef((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:l,onShowTotalRowChange:d,showFilterButton:c,onShowFilterButtonChange:u,sx:p,disabled:f,...h}=e;return a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flexWrap:"wrap",userSelect:"none",pt:1,pb:1,"& .MuiFormControlLabel-root":{marginLeft:g=>`${g.spacing(2)}`,marginRight:g=>`${g.spacing(2)}`},"& .MuiCheckbox-root":{padding:g=>`${g.spacing(.5)}`},...p},...h,ref:t,children:[i&&a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:f||r==null}),label:"Header Row",labelPlacement:"end"}),d&&a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:l??!1,indeterminate:l==null,onChange:()=>d(!l),disabled:f||l==null}),label:"Total Row",labelPlacement:"end"}),a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),u&&a.jsx(N.FormControlLabel,{control:a.jsx(N.Checkbox,{checked:c??!1,indeterminate:c==null,disabled:f||!n||c==null,onChange:()=>u(!c)}),label:"Filter Button",labelPlacement:"end"})]})})),y_=s.memo(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:l=!0,bodyStyle:d,parentFloat:c,commands:u,disabled:p,commandHook:f,useCanvasPreview:h=!0,canvas:g,...m}=e,x=s.useCallback(C=>{const E={variant:Ht.Menuitem,commandHook:f,context:"table"},k=a.jsxs(a.Fragment,{children:[a.jsx(je,{...E,command:u.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:p,icon:ge(a.jsx(ba,{}))}),a.jsx(je,{...E,sx:{fontWeight:550},command:u.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:p,icon:ge(a.jsx(ba,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...E,command:u.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:p}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...E,command:u.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:p||!n||n.isBuiltIn()})]}),M=a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:k})});return vn({...C,children:M})},[u]),y=n?.getName()===o,w=s.useMemo(()=>{const C={table:t,tableStyle:n,styles:i,bodyStyle:d};return h?a.jsx(Uf,{canvas:g,...C}):a.jsx(Wf,{...C})},[t,n,i,d]);let b=a.jsx(mr,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:C=>`solid ${y?C.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName()??"None",placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{r?.(n?.getName())},...m,children:w},n.getName());return l&&(b=a.jsx(cp,{label:t.getStyleOptions().name,parentFloat:c,createPopupPanel:x,children:b})),b}),qf=s.memo(s.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:l,disabled:d=!1,bodyStyle:c,usePreviewIcon:u=!1,...p}=e;H0(o);const f=o?.context(),h=f?.styles,g=i??f?.table?.();let m="insertTable";g&&(m="editTable");const x=s.useMemo(()=>((_,P)=>{const v={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new B.Table({initialAnchor:v,styles:P,json:{name:"PreviewTable",ref:v,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:_}})})(g?.getStyleOptions(),h?.()),[h?.().getDefaultTableStyle(),g?.getStyleOptions()]),y=g??x,[w,b]=s.useState(y);s.useEffect(()=>{b(y)},[y]);const C=c??f?.bodyStyle(),E=he(_=>{l?.(_),o?.execute({name:_},r)},[o,l,r]),k=s.useRef(null),M=s.useCallback((_,P)=>{const v={onSelectTableStyleName:E,styles:h(),parentFloat:_.floatReference};k.current||(k.current=document.createElement("canvas"));const S=O=>{const U=h().getTableStyle(O);return U?a.jsx(y_,{table:w,tableStyle:U,selectedTableStyleName:w.getStyleOptions().name,bodyStyle:f.bodyStyle(),commands:P,commandHook:r,canvas:k.current,...v},O):null},I=(O,U,X=!0)=>{const ee=[];for(let V=0;V<U.length;V++){const H=S(U[V]);H&&ee.push(H)}return ee.length===0?null:a.jsxs(N.Box,{children:[X?a.jsx(It,{orientation:"horizontal"}):null,a.jsx(el,{children:O},O+"-header"),a.jsx(N.Box,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:ee},O+"-presets")]},O)},j=[],R=h().getCustomTableStyles(),A=[];if(R.length>0){for(let O=0;O<R.length;O++)R[O].isShownInTableStyles()&&A.push(R[O].getName());j.push(I("Custom",A,!1))}const D=[];g&&!g.getStyleOptions().name&&D.push(null);for(let O=0;O<21;O++)D.push("TableStyleLight"+(O+1));j.push(I("Light",D,A.length>0));const L=[];for(let O=0;O<28;O++)L.push("TableStyleMedium"+(O+1));j.push(I("Medium",L));const $=[];for(let O=0;O<11;O++)$.push("TableStyleDark"+(O+1));j.push(I("Dark",$));let q=null;return g&&(q=a.jsxs(a.Fragment,{children:[a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{variant:Ht.Menuitem,command:P.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:d,icon:ge(a.jsx(fh,{}))})]})),a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:O=>`${O.shape.borderRadius}px`,paddingBottom:O=>`${O.shape.borderRadius}px`},children:[a.jsx(N.Box,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:j}),q]})},[h,h?.().getTheme(),C,w]),T=d||!o||o.disabled(),F=s.useMemo(()=>{if(!f||!u)return ge(a.jsx(ba,{}))},[w,C,T]);return a.jsx(Dn,{ref:t,quickCommand:m,createPopupPanel:M,commands:n,label:o?.label(),commandState:g,commandHook:r,selected:g!==null,createTooltip:({children:_},P)=>a.jsx(zo,{label:o?.label(),description:o?.description(),disabled:P,children:_}),disabled:T,icon:F,...p})})),Er=[];Er.push(Vr("Primary Background","bg1")),Er.push(Vr("Primary Text","tx1")),Er.push(Vr("Secondary Background","bg2")),Er.push(Vr("Secondary Text","tx2")),Er.push(Vr("Accent 1","accent1")),Er.push(Vr("Accent 2","accent2")),Er.push(Vr("Accent 3","accent3")),Er.push(Vr("Accent 4","accent4")),Er.push(Vr("Accent 5","accent5")),Er.push(Vr("Accent 6","accent6"));const Zf=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:l,...d}=e,c=Zr(),u=s.useMemo(()=>{let p=[];for(let f=0;f<Er.length;f++){const h=Er[f];p.push(a.jsx(tc,{schemeColorLookup:t.schemeLookup(),colorDef:h,darkMode:o,selectedColor:null},f+"-colorDef"))}return a.jsx(N.Box,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:a.jsx(N.Box,{sx:{display:"flex",boxShadow:f=>f.shadows[2]},children:p})})},[t,c]);return a.jsx(mr,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:p=>`solid ${r?p.palette.text.primary:"transparent"} 1px`,"&:hover:not([disabled])":{border:p=>`solid ${p.palette.text.primary} 1px !important`}},icon:null,...d,children:a.jsxs(N.Box,{sx:{border:p=>`solid ${p.palette.divider} 1px`,minWidth:"200px",borderRadius:"2px",padding:"4px 4px",textAlign:"left",display:"flex",gap:"4px",flexDirection:"column",alignItems:"stretch",color:p=>r?p.palette.text.primary:void 0,"&:hover:not([disabled])":{color:p=>p.palette.text.primary}},children:[a.jsx(N.Box,{sx:{},children:t.getName()}),a.jsxs(N.Box,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[u,a.jsx(N.Box,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:a.jsx(yr,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:a.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.
83
- The heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:a.jsx("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},Gf=s.memo(s.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:l=!1,darkMode:d,...c}=e,u=s.useMemo(()=>{const p=n?.search({selected:o})??[],f=[];if(p.length===0)return a.jsx(el,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"6px",paddingBottom:"6px"},children:"No themes"});for(let h=0;h<p.length;h++){const g=p[h],m=o&&g?.getName()===o.getName(),x=p[h+1];x&&x.isCustom()!==g.isCustom()&&f.push(a.jsx(It,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${h}`)),f.push(a.jsx(Zf,{docTheme:g,onSelectTheme:()=>r(g),isSelected:m,disabled:l,darkMode:d,onMouseDown:y=>{y.button===0&&y.preventDefault()},onMouseUp:y=>{y.button===0&&r(g)},onKeyDown:y=>{y.keyCode!==Wt.Enter&&y.keyCode!==Wt.Space||r(g)}},g.getName()))}return f},[o,r,d]);return a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...c,children:a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[a.jsx(el,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),a.jsx(It,{}),a.jsx(N.Box,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:u})]})})})),Kf=s.memo(s.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:l,label:d,variant:c=Dr.Toolbar,darkMode:u,panelProps:p,...f}=e,h=i||ge(a.jsx($h,{})),g=s.useCallback(x=>{const{closeFloatAll:y}=x;return a.jsx(Gf,{...p,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:u,onKeyDown:w=>{w.which===Wt.Enter&&y()}})},[n,o,r,p,u]),m={createPopupPanel:g,tooltip:l||d||"Theme",label:d,icon:h,...f};return c===Dr.Toolbar?a.jsx(qr,{ref:t,...m}):a.jsx(Aa,{ref:t,...m})})),Xf=s.memo(s.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:l=!1,darkMode:d,label:c,icon:u,variant:p,...f}=e;H0(n);const h=n?.context()?.themes,g=r||n?.context()?.theme,m=d??n?.context()?.darkMode,x=l||n?.disabled(),y=he(b=>{i?.(b),n?.execute(b,o)},[i,o]),w=s.useCallback((b,C)=>{const{children:E,title:k,...M}=b;let T=b.children;return(x||C)&&(T=a.jsx("div",{children:T})),a.jsx(al,{command:n,placement:p===Ht.Toolbar?"bottom-start":"right-start",disabled:x||C,...M,children:T})},[n,x]);return a.jsx(Kf,{ref:t,themes:h,selectedTheme:g,onSelectTheme:y,variant:p===Ht.Menuitem?Dr.Menuitem:Dr.Toolbar,createTooltip:w,disabled:x,darkMode:m,icon:ge(a.jsx($h,{})),...f})})),b_=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["themeMode"])[0],c=d?.state(),u=d?.state()!==null,p=N.useMediaQuery("(prefers-color-scheme: dark)"),f=c==="dark"||c===null&&p,h=he((g,m)=>{const x={variant:Ht.Menuitem,commandHook:o,scope:"appearance",disabled:i},y=a.jsxs(a.Fragment,{children:[a.jsx(je,{...x,command:d,icon:ge(f?a.jsx(yn.DarkMode,{}):a.jsx(yn.LightMode,{}))}),a.jsx(je,{...x,command:m.getCommand("defaultThemeMode"),icon:ge(p?a.jsx(vb,{}):a.jsx(Sb,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...x,command:m.getCommand("enableDarkGrid")}),a.jsx(je,{...x,command:m.getCommand("enableDarkImages")})]});return vn({...g,children:y})},[i,d,o,r,p,c,u]);return a.jsx(Dn,{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:()=>{d?.execute(f?"light":"dark",o)},selected:u,icon:ge(f?a.jsx(yn.DarkMode,{}):a.jsx(yn.LightMode,{})),...l})})),w_=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:l,...d}=e,c=s.useCallback((u,p)=>{const f={variant:Ht.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(g,m)=>o?.beforeExecute?.(g,m)!==!1&&u.floatReference.closeAll()},disabled:i},h=a.jsxs(a.Fragment,{children:[a.jsx(je,{...f,command:p.getCommand("showKeyboardShortcuts"),icon:ge(a.jsx(yn.Keyboard,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...f,command:p.getCommand("gotoUrlGithub"),icon:ge(a.jsx(_b,{}))}),a.jsx(je,{...f,command:p.getCommand("gotoUrlDiscord"),icon:ge(a.jsx(Eb,{}))}),a.jsx(je,{...f,command:p.getCommand("gotoUrlDocumentation"),icon:ge(a.jsx(Uh,{}))}),a.jsx(je,{...f,command:p.getCommand("gotoUrlIssue"),icon:ge(a.jsx(kb,{}))})]});return vn({...u,children:h})},[i,o]);return a.jsx(Dn,{ref:t,sx:l,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:c,icon:ge(a.jsx(Cb,{sx:{transform:"scale(0.75)"}})),...d})})),Ru=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:l=!0,showQuickButton:d=!0,variant:c=Ht.Toolbar,...u}=e,p=to(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:f,allDisabled:h}=s.useMemo(()=>{let m=null,x=0;for(let y=0;y<p.length;y++)p[y]&&!p[y]?.disabled()&&(l&&c===Ht.Menuitem&&(m=x===0?p[y]:null),x++);return{singleMenuCommand:m,allDisabled:x===0}},[p]),g=s.useCallback((m,x)=>{const y={variant:Ht.Menuitem,commandHook:o,scope:"insertImage",disabled:i},w=a.jsxs(a.Fragment,{children:[a.jsx(je,{...y,command:x.getCommand("insertImageFromFile"),icon:ge(a.jsx(cs,{}))}),a.jsx(je,{...y,command:x.getCommand("insertImageFromURL"),icon:ge(a.jsx(cs,{}))})]});return vn({...m,children:w})},[i,o,r]);return f?a.jsx(je,{ref:t,variant:c,commandHook:o,disabled:i,command:f,icon:ge(a.jsx(cs,{})),...u}):a.jsx(Dn,{ref:t,variant:c,quickCommand:"insertImageFromFile",commands:n,commandHook:o,scope:r,disabled:i||h,tooltip:"Insert a picture from the web to complement your data.",createPopupPanel:g,icon:ge(a.jsx(cs,{})),...u})})),nc=s.memo(s.forwardRef((e,t)=>{const{command:n,...o}=e,r=Wr(),[i,l]=s.useState(!1),[d,c]=s.useState("info");return s.useEffect(()=>{const u=r.getMode();l(u?.key==="copy"||u?.key==="cut"),c(u?.key==="cut"?"warning":"info")},[r]),a.jsx(je,{ref:t,command:n,icon:ge(a.jsx(Ky,{isWalking:i,themedType:d})),...o})})),v_=s.memo(s.forwardRef((e,t)=>{const{...n}=e;return a.jsx(r0,{ref:t,...n,popupCommandKeys:["quickFormulaSum","quickFormulaAverage","quickFormulaCount","quickFormulaMax","quickFormulaMin",null,"insertFunction"],quickCommand:"quickFormulaSum",popupScope:"quickFormula",label:"Quick Formulas",tooltip:"More quick functions.",icon:o=>{switch(o?.key()){case"quickFormulaSum":return ge(a.jsx(Qb,{}));case"insertFunction":return ge(a.jsx(Jb,{}));default:return null}}})})),Yf=s.createContext(null);Yf.displayName="HookFormContext";const Jf=()=>s.useContext(Yf),Qf=s.memo(s.forwardRef((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:l,value:d,formName:c,formOptions:u,onChangeInput:p,onValidate:f,onKeyDown:h,...g}=e,m=Jf(),x=c&&m?m.register(c,u):null,[y,w]=s.useState(""),[b,C]=s.useState(""),[E,k]=s.useState(d);s.useEffect(()=>{k(d),C("")},[d]);const M=he(v=>{let S="";try{k(v),f?.(v),p?.(v)}catch(I){S=I.message??"Invalid Name"}c&&m&&(S?m.setError(c,{message:S}):m.clearErrors(c)),C(S)},[d,f,p]),T=he(async v=>{v.keyCode===Wt.Escape&&y!==d&&(M(y),m?.setValue(c,y),m?.clearErrors(c),v.stopPropagation()),h?.(v)},[h,y,d,m]),F=he(v=>{w(v.target.value??"")},[]),_=he(v=>{w(""),x?.onBlur(v)},[]),P=s.useCallback(v=>{M(v.target.value),x?.onChange(v)},[x]);return a.jsx(N.FormControl,{sx:{paddingTop:v=>v.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Jn("named-input",r),...g,children:a.jsx(N.TextField,{label:"Name",placeholder:l,onFocus:F,onBlur:_,inputRef:x?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:v=>v.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:c,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:v=>v.spacing(1.25),paddingBottom:v=>v.spacing(.75),backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`}}},value:E??"",onChange:P,onKeyDownCapture:T,onContextMenu:v=>{v.stopPropagation()}})})}));Qf.displayName="NamedInput";const Ts=e=>e===null?"":e.toString(),em=s.memo(s.forwardRef((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:l,sx:d,onKeyDown:c,value:u,onChangeInput:p,resolvedAddress:f,...h}=e,g=Jf(),m=n&&g?g.register(n,o):null,[x,y]=s.useState(""),[w,b]=s.useState(!1),[C,E]=s.useState(()=>Ts(u));s.useEffect(()=>{E(Ts(u)),y(""),n&&g&&g.clearErrors(n),b(!1)},[u]);const k=he(S=>{let I="";try{E(S);const j=Ts(u),R=f(S);R.toString()!==j&&p?.(R)}catch{I="Invalid Range"}n&&g&&(I?g.setError(n,{message:I}):g.clearErrors(n)),y(I),b(!0)},[C,p,n,g]),M=he(async S=>{if(w&&S.keyCode===Wt.Escape){const I=Ts(u);E(I),y(""),b(!1),S.stopPropagation()}c?.(S)},[u,p,c,w]),T=he(S=>{m?.onBlur(S)},[m]),F=s.useCallback(S=>{k(S.target.value),m?.onChange(S)},[m]),[_,P]=s.useState(!1),v=s.useMemo(()=>a.jsx(N.InputAdornment,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:a.jsx(dp,{disabled:!0,selected:_,onSelectToggle:S=>{P(S)},label:"Select Range",icon:ge(a.jsx(Gb,{}))})}),[_]);return a.jsx(N.FormControl,{sx:{paddingTop:S=>S.spacing(1.5),minWidth:135,width:"100%",...d},size:"small",ref:t,className:Jn("range-input",l),...h,children:a.jsx(N.TextField,{label:"Range",placeholder:"Enter Range",onBlur:T,disabled:r,error:!!x,inputRef:m?.ref,helperText:x||" ",sx:{"& .MuiFormHelperText-root":{marginTop:S=>S.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:S=>S.spacing(1.25),paddingBottom:S=>S.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},endAdornment:v},value:C??"",onChange:F,onKeyDownCapture:M,onContextMenu:S=>{S.stopPropagation()}})})}));em.displayName="RangeInput";const Iu=s.memo(s.forwardRef((e,t)=>{const{sheet:n,className:o,debounceDelay:r=220,sx:i,...l}=e,[d,c]=s.useState(()=>n.getView().getZoomScale()),[u,p]=s.useState(null),f=s.useRef(0);Gt(n,{onViewChange:()=>{p(!0),f.current===0&&c(n.getView().getZoomScale())}}),s.useEffect(()=>{f.current=0,p(!1),c(n.getView().getZoomScale())},[n]),s.useEffect(()=>{f.current!==0&&B.CommonUtils.debounce(()=>{d===f.current&&(f.current=0,n.getView().update({zoomScale:d}))},r)()},[d,r]);const h=he(T=>{let F=T;T<100?F=Math.round(T/(10/9)+10):T>100&&(F=Math.round(3*T-200)),f.current=F,p(!0),c(F)},[n]),g=T=>{let F=T;return T<100?F=10/9*(T-10):T>100&&(F=(T+200)/3),F},m=g(d),[x,y]=s.useState(null),w=s.useRef(null),b=s.useCallback(()=>{const T=x;T&&requestAnimationFrame(()=>{w.current?.contains(document.activeElement)&&T.focus()})},[]),C=I5(()=>{h(g(B.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),E=I5(()=>h(g(B.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),k=Zr(),M=s.useMemo(()=>`${B.IFont.getSharedMeasurer()("100%",Math.round(k.typography.fontSize),k.typography.fontFamily).width}px`,[k]);return a.jsxs(N.Box,{ref:t,className:Jn(o),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:T=>T.palette.text.secondary,...i},onFocus:T=>{T.relatedTarget&&!x&&y(T.relatedTarget)},onBlur:T=>{x&&!w?.current?.contains(T.relatedTarget)&&y(null)},onMouseDown:T=>{T.button===0&&T.preventDefault()},onMouseUp:T=>{T.button===0&&b()},...l,children:[a.jsx(yr,{disableInteractive:!0,title:"Zoom Out",children:a.jsx(N.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:T=>T.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:T=>{T.button!==0?T.preventDefault():C(T)},children:a.jsx(yn.Remove,{})})}),a.jsx(N.Slider,{ref:w,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:T=>`0px 0px 0px 3px ${Xd(T.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:T=>`0px 0px 0px 2px ${Xd(T.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:u?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:m,max:200,marks:[{value:100}],onAnimationEnd:()=>p(!1),onWheel:T=>{h(g(B.CommonUtils.findNextStep(n.getView().getZoomScale(),T.deltaY<0,10)))},onKeyDown:T=>{T.which===Wt.Down||T.which===Wt.Right?(h(g(B.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),T.preventDefault()):T.which===Wt.Up||T.which===Wt.Left?(h(g(B.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),T.preventDefault()):T.which!==Wt.Enter&&T.which!==Wt.Escape||b()},onChange:(T,F)=>{Math.abs(F-100)<3?h(100):h(F)},valueLabelFormat:(T,F)=>`Zoom: ${Math.round(d)}%`}),a.jsx(yr,{disableInteractive:!0,title:"Zoom In",children:a.jsx(N.IconButton,{sx:{padding:"0","&:hover:not([disabled])":{color:T=>T.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:T=>{T.button!==0?T.preventDefault():E(T)},children:a.jsx(yn.Add,{})})}),a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row"},children:[a.jsx(N.Box,{sx:{minWidth:"8px"}}),a.jsx(N.Typography,{noWrap:!0,component:"div",onClick:()=>{h(100)},sx:{cursor:"pointer",display:"flex",flex:"1 1 100%",fontSize:"0.70rem",marginLeft:"2px",marginRight:"2px",userSelect:"none",justifyContent:"center",width:M},children:a.jsx("div",{children:Math.round(d)+"%"})})]})]})}));Iu.displayName="SheetZoomScale";const Du=s.memo(s.forwardRef((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:l,...d}=e;s.useImperativeHandle(t,()=>({}));const c=s.useRef(null);s.useEffect(()=>{const g=m=>m.preventDefault();return c.current?.addEventListener("wheel",g,{passive:!1}),()=>{c.current?.removeEventListener("wheel",g)}},[]);const u=Wr(),p=s.useMemo(()=>{const g=u.getMode();return g?.description?g.description:"Ready"},[u]),[f,h]=s.useState(!1);return a.jsxs(N.Box,{ref:c,sx:{display:"flex",alignItems:"stretch",flexDirection:"row",flex:"0",paddingLeft:"12px",paddingRight:"12px",gap:"8px",paddingTop:"1px",minHeight:"calc(1em + 8px)",overflow:f?"visible":"hidden",boxShadow:`0px -1px 0px ${r.header.edgeStrokeFill}`,...n},onMouseOver:()=>h(!0),onMouseLeave:()=>h(!1),...d,children:[i,a.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:a.jsx(N.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:g=>g.palette.text.secondary},variant:"caption",children:p})}),l?a.jsx(N.Box,{sx:{display:"flex",alignItems:"center"},children:l}):null,a.jsx(It,{style:{marginTop:"6px",marginBottom:"6px"}}),a.jsx(Iu,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));Du.displayName="StatusBar";var W7,js={exports:{}},Al={},Fl={exports:{}},U7={},Ms={exports:{}},q7,go={},_0={};function oc(){return q7||(q7=1,Object.defineProperty(_0,"__esModule",{value:!0}),_0.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.`)},_0.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]},_0.int=function(e){return parseInt(e,10)},_0.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},_0.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),_0}var Z7,G7,T0={};function Lu(){if(G7)return go;G7=1,Object.defineProperty(go,"__esModule",{value:!0}),go.addClassName=l,go.addEvent=function(c,u,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(u,p,h):c.attachEvent?c.attachEvent("on"+u,p):c["on"+u]=p},go.addUserSelectStyles=function(c){if(!c)return;let u=c.getElementById("react-draggable-style-el");u||(u=c.createElement("style"),u.type="text/css",u.id="react-draggable-style-el",u.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
84
- `,u.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
85
- `,c.getElementsByTagName("head")[0].appendChild(u)),c.body&&l(c.body,"react-draggable-transparent-selection")},go.createCSSTransform=function(c,u){const p=r(c,u,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},go.createSVGTransform=function(c,u){return r(c,u,"")},go.getTouch=function(c,u){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>u===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>u===p.identifier)},go.getTouchIdentifier=function(c){if(c.targetTouches&&c.targetTouches[0])return c.targetTouches[0].identifier;if(c.changedTouches&&c.changedTouches[0])return c.changedTouches[0].identifier},go.getTranslation=r,go.innerHeight=function(c){let u=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(p.paddingTop),u-=(0,e.int)(p.paddingBottom),u},go.innerWidth=function(c){let u=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u-=(0,e.int)(p.paddingLeft),u-=(0,e.int)(p.paddingRight),u},go.matchesSelector=o,go.matchesSelectorAndParentsTo=function(c,u,p){let f=c;do{if(o(f,u))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},go.offsetXYFromParent=function(c,u,p){const f=u===u.ownerDocument.body?{left:0,top:0}:u.getBoundingClientRect(),h=(c.clientX+u.scrollLeft-f.left)/p,g=(c.clientY+u.scrollTop-f.top)/p;return{x:h,y:g}},go.outerHeight=function(c){let u=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(p.borderTopWidth),u+=(0,e.int)(p.borderBottomWidth),u},go.outerWidth=function(c){let u=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return u+=(0,e.int)(p.borderLeftWidth),u+=(0,e.int)(p.borderRightWidth),u},go.removeClassName=d,go.removeEvent=function(c,u,p,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(u,p,h):c.detachEvent?c.detachEvent("on"+u,p):c["on"+u]=null},go.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=oc(),t=function(c,u){if(typeof WeakMap=="function")var p=new WeakMap,f=new WeakMap;return function(h,g){if(!g&&h&&h.__esModule)return h;var m,x,y={__proto__:null,default:h};if(h===null||typeof h!="object"&&typeof h!="function")return y;if(m=g?f:p){if(m.has(h))return m.get(h);m.set(h,y)}for(const w in h)w!=="default"&&{}.hasOwnProperty.call(h,w)&&((x=(m=Object.defineProperty)&&Object.getOwnPropertyDescriptor(h,w))&&(x.get||x.set)?m(y,w,x):y[w]=h[w]);return y}(c,u)}(function(){if(Z7)return T0;Z7=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.browserPrefixToKey=p,T0.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},T0.default=void 0,T0.getPrefix=u;const c=["Moz","Webkit","O","ms"];function u(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const h=window.document?.documentElement?.style;if(!h||f in h)return"";for(let g=0;g<c.length;g++)if(p(f,c[g])in h)return c[g];return""}function p(f,h){return h?`${h}${function(g){let m="",x=!0;for(let y=0;y<g.length;y++)x?(m+=g[y].toUpperCase(),x=!1):g[y]==="-"?x=!0:m+=g[y];return m}(f)}`:f}return T0.default=u(),T0}());let n="";function o(c,u){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(p){return(0,e.isFunction)(c[p])})),!!(0,e.isFunction)(c[n])&&c[n](u)}function r(c,u,p){let{x:f,y:h}=c,g=`translate(${f}${p},${h}${p})`;return u&&(g=`translate(${`${typeof u.x=="string"?u.x:u.x+p}`}, ${`${typeof u.y=="string"?u.y:u.y+p}`})`+g),g}function i(c){if(c)try{if(c.body&&d(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const u=(c.defaultView||window).getSelection();u&&u.type!=="Caret"&&u.removeAllRanges()}}catch{}}function l(c,u){c.classList?c.classList.add(u):c.className.match(new RegExp(`(?:^|\\s)${u}(?!\\S)`))||(c.className+=` ${u}`)}function d(c,u){c.classList?c.classList.remove(u):c.className=c.className.replace(new RegExp(`(?:^|\\s)${u}(?!\\S)`,"g"),"")}return go}var K7,Qr={};function tm(){if(K7)return Qr;K7=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Qr.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Qr.createCoreData=function(o,r,i){const l=!(0,e.isNum)(o.lastX),d=n(o);return l?{node:d,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:d,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},Qr.createDraggableData=function(o,r){const i=o.props.scale;return{node:r.node,x:o.state.x+r.deltaX/i,y:o.state.y+r.deltaY/i,deltaX:r.deltaX/i,deltaY:r.deltaY/i,lastX:o.state.x,lastY:o.state.y}},Qr.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:l}=o.props;l=typeof l=="string"?l:function(c){return{left:c.left,top:c.top,right:c.right,bottom:c.bottom}}(l);const d=n(o);if(typeof l=="string"){const{ownerDocument:c}=d,u=c.defaultView;let p;if(l==="parent"?p=d.parentNode:p=d.getRootNode().querySelector(l),!(p instanceof u.HTMLElement))throw new Error('Bounds selector "'+l+'" could not find an element.');const f=p,h=u.getComputedStyle(d),g=u.getComputedStyle(f);l={left:-d.offsetLeft+(0,e.int)(g.paddingLeft)+(0,e.int)(h.marginLeft),top:-d.offsetTop+(0,e.int)(g.paddingTop)+(0,e.int)(h.marginTop),right:(0,t.innerWidth)(f)-(0,t.outerWidth)(d)-d.offsetLeft+(0,e.int)(g.paddingRight)-(0,e.int)(h.marginRight),bottom:(0,t.innerHeight)(f)-(0,t.outerHeight)(d)-d.offsetTop+(0,e.int)(g.paddingBottom)-(0,e.int)(h.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]},Qr.getControlPosition=function(o,r,i){const l=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!l)return null;const d=n(i),c=i.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,t.offsetXYFromParent)(l||o,c,i.props.scale)},Qr.snapToGrid=function(o,r,i){const l=Math.round(r/o[0])*o[0],d=Math.round(i/o[1])*o[1];return[l,d]};var e=oc(),t=Lu();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Qr}var X7,Y7,J7,Q7,zl={},Rs={};function nm(){return X7||(X7=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=function(){}),Rs}function S_(){if(Y7)return zl;Y7=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var e=function(g,m){if(typeof WeakMap=="function")var x=new WeakMap,y=new WeakMap;return function(w,b){if(!b&&w&&w.__esModule)return w;var C,E,k={__proto__:null,default:w};if(w===null||typeof w!="object"&&typeof w!="function")return k;if(C=b?y:x){if(C.has(w))return C.get(w);C.set(w,k)}for(const M in w)M!=="default"&&{}.hasOwnProperty.call(w,M)&&((E=(C=Object.defineProperty)&&Object.getOwnPropertyDescriptor(w,M))&&(E.get||E.set)?C(k,M,E):k[M]=w[M]);return k}(g,m)}(s),t=d(Ba()),n=d(wo),o=Lu(),r=tm(),i=oc(),l=d(nm());function d(g){return g&&g.__esModule?g:{default:g}}function c(g,m,x){return(m=function(y){var w=function(b,C){if(typeof b!="object"||!b)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var k=E.call(b,C);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof w=="symbol"?w:w+""}(m))in g?Object.defineProperty(g,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[m]=x,g}const u={start:"touchstart",move:"touchmove",stop:"touchend"},p={start:"mousedown",move:"mousemove",stop:"mouseup"};let f=p,h=class extends e.Component{constructor(){super(...arguments),c(this,"dragging",!1),c(this,"lastX",NaN),c(this,"lastY",NaN),c(this,"touchIdentifier",null),c(this,"mounted",!1),c(this,"handleDragStart",g=>{if(this.props.onMouseDown(g),!this.props.allowAnyClick&&typeof g.button=="number"&&g.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:x}=m;if(this.props.disabled||!(g.target instanceof x.defaultView.Node)||this.props.handle&&!(0,o.matchesSelectorAndParentsTo)(g.target,this.props.handle,m)||this.props.cancel&&(0,o.matchesSelectorAndParentsTo)(g.target,this.props.cancel,m))return;g.type!=="touchstart"||this.props.allowMobileScroll||g.preventDefault();const y=(0,o.getTouchIdentifier)(g);this.touchIdentifier=y;const w=(0,r.getControlPosition)(g,y,this);if(w==null)return;const{x:b,y:C}=w,E=(0,r.createCoreData)(this,b,C);(0,l.default)("DraggableCore: handleDragStart: %j",E),(0,l.default)("calling",this.props.onStart),this.props.onStart(g,E)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,o.addUserSelectStyles)(x),this.dragging=!0,this.lastX=b,this.lastY=C,(0,o.addEvent)(x,f.move,this.handleDrag),(0,o.addEvent)(x,f.stop,this.handleDragStop))}),c(this,"handleDrag",g=>{const m=(0,r.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x,y}=m;if(Array.isArray(this.props.grid)){let b=x-this.lastX,C=y-this.lastY;if([b,C]=(0,r.snapToGrid)(this.props.grid,b,C),!b&&!C)return;x=this.lastX+b,y=this.lastY+C}const w=(0,r.createCoreData)(this,x,y);if((0,l.default)("DraggableCore: handleDrag: %j",w),this.props.onDrag(g,w)!==!1&&this.mounted!==!1)this.lastX=x,this.lastY=y;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const C=document.createEvent("MouseEvents");C.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(C)}}),c(this,"handleDragStop",g=>{if(!this.dragging)return;const m=(0,r.getControlPosition)(g,this.touchIdentifier,this);if(m==null)return;let{x,y}=m;if(Array.isArray(this.props.grid)){let C=x-this.lastX||0,E=y-this.lastY||0;[C,E]=(0,r.snapToGrid)(this.props.grid,C,E),x=this.lastX+C,y=this.lastY+E}const w=(0,r.createCoreData)(this,x,y);if(this.props.onStop(g,w)===!1||this.mounted===!1)return!1;const b=this.findDOMNode();b&&this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(b.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",w),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,b&&((0,l.default)("DraggableCore: Removing handlers"),(0,o.removeEvent)(b.ownerDocument,f.move,this.handleDrag),(0,o.removeEvent)(b.ownerDocument,f.stop,this.handleDragStop))}),c(this,"onMouseDown",g=>(f=p,this.handleDragStart(g))),c(this,"onMouseUp",g=>(f=p,this.handleDragStop(g))),c(this,"onTouchStart",g=>(f=u,this.handleDragStart(g))),c(this,"onTouchEnd",g=>(f=u,this.handleDragStop(g)))}componentDidMount(){this.mounted=!0;const g=this.findDOMNode();g&&(0,o.addEvent)(g,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const g=this.findDOMNode();if(g){const{ownerDocument:m}=g;(0,o.removeEvent)(m,p.move,this.handleDrag),(0,o.removeEvent)(m,u.move,this.handleDrag),(0,o.removeEvent)(m,p.stop,this.handleDragStop),(0,o.removeEvent)(m,u.stop,this.handleDragStop),(0,o.removeEvent)(g,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,o.scheduleRemoveUserSelectStyles)(m)}}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 zl.default=h,c(h,"displayName","DraggableCore"),c(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(g,m){if(g[m]&&g[m].nodeType!==1)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}),c(h,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),zl}function C_(){return J7||(J7=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=function(m,x){if(typeof WeakMap=="function")var y=new WeakMap,w=new WeakMap;return function(b,C){if(!C&&b&&b.__esModule)return b;var E,k,M={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return M;if(E=C?w:y){if(E.has(b))return E.get(b);E.set(b,M)}for(const T in b)T!=="default"&&{}.hasOwnProperty.call(b,T)&&((k=(E=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,T))&&(k.get||k.set)?E(M,T,k):M[T]=b[T]);return M}(m,x)}(s),n=p(Ba()),o=p(wo),r=function(){if(W7)return Ms.exports;function m(y){var w,b,C="";if(typeof y=="string"||typeof y=="number")C+=y;else if(typeof y=="object")if(Array.isArray(y)){var E=y.length;for(w=0;w<E;w++)y[w]&&(b=m(y[w]))&&(C&&(C+=" "),C+=b)}else for(b in y)y[b]&&(C&&(C+=" "),C+=b);return C}function x(){for(var y,w,b=0,C="",E=arguments.length;b<E;b++)(y=arguments[b])&&(w=m(y))&&(C&&(C+=" "),C+=w);return C}return W7=1,Ms.exports=x,Ms.exports.clsx=x,Ms.exports}(),i=Lu(),l=tm(),d=oc(),c=p(S_()),u=p(nm());function p(m){return m&&m.__esModule?m:{default:m}}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var x=1;x<arguments.length;x++){var y=arguments[x];for(var w in y)({}).hasOwnProperty.call(y,w)&&(m[w]=y[w])}return m},f.apply(null,arguments)}function h(m,x,y){return(x=function(w){var b=function(C,E){if(typeof C!="object"||!C)return C;var k=C[Symbol.toPrimitive];if(k!==void 0){var M=k.call(C,E);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(C)}(w,"string");return typeof b=="symbol"?b:b+""}(x))in m?Object.defineProperty(m,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[x]=y,m}class g extends t.Component{static getDerivedStateFromProps(x,y){let{position:w}=x,{prevPropsPosition:b}=y;return!w||b&&w.x===b.x&&w.y===b.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:b}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(x){super(x),h(this,"onDragStart",(y,w)=>{if((0,u.default)("Draggable: onDragStart: %j",w),this.props.onStart(y,(0,l.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(y,w)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",w);const b=(0,l.createDraggableData)(this,w),C={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:E,y:k}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[M,T]=(0,l.getBoundPosition)(this,C.x,C.y);C.x=M,C.y=T,C.slackX=this.state.slackX+(E-C.x),C.slackY=this.state.slackY+(k-C.y),b.x=C.x,b.y=C.y,b.deltaX=C.x-this.state.x,b.deltaY=C.y-this.state.y}if(this.props.onDrag(y,b)===!1)return!1;this.setState(C)}),h(this,"onDragStop",(y,w)=>{if(!this.state.dragging||this.props.onStop(y,(0,l.createDraggableData)(this,w))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",w);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:E}=this.props.position;b.x=C,b.y=E}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:x.position?x.position.x:x.defaultPosition.x,y:x.position?x.position.y:x.defaultPosition.y,prevPropsPosition:{...x.position},slackX:0,slackY:0,isElementSVG:!1},!x.position||x.onDrag||x.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(){window.SVGElement!==void 0&&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:x,bounds:y,children:w,defaultPosition:b,defaultClassName:C,defaultClassNameDragging:E,defaultClassNameDragged:k,position:M,positionOffset:T,scale:F,..._}=this.props;let P={},v=null;const S=!M||this.state.dragging,I=M||b,j={x:(0,l.canDragX)(this)&&S?this.state.x:I.x,y:(0,l.canDragY)(this)&&S?this.state.y:I.y};this.state.isElementSVG?v=(0,i.createSVGTransform)(j,T):P=(0,i.createCSSTransform)(j,T);const R=(0,r.clsx)(w.props.className||"",C,{[E]:this.state.dragging,[k]:this.state.dragged});return t.createElement(c.default,f({},_,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(w),{className:R,style:{...w.props.style,...P},transform:v}))}}e.default=g,h(g,"displayName","Draggable"),h(g,"propTypes",{...c.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:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),h(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(U7)),U7}function om(){if(Q7)return Fl.exports;Q7=1;const{default:e,DraggableCore:t}=C_();return Fl.exports=e,Fl.exports.default=e,Fl.exports.DraggableCore=t,Fl.exports}var e8,Is={};function k_(){if(e8)return Is;e8=1,Is.__esModule=!0,Is.cloneElement=function(i,l){return l.style&&i.props.style&&(l.style=o(o({},i.props.style),l.style)),l.className&&i.props.className&&(l.className=i.props.className+" "+l.className),t.default.cloneElement(i,l)};var e,t=(e=s)&&e.__esModule?e:{default:e};function n(i,l){var d=Object.keys(i);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);l&&(c=c.filter(function(u){return Object.getOwnPropertyDescriptor(i,u).enumerable})),d.push.apply(d,c)}return d}function o(i){for(var l=1;l<arguments.length;l++){var d=arguments[l]!=null?arguments[l]:{};l%2?n(Object(d),!0).forEach(function(c){r(i,c,d[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(d)):n(Object(d)).forEach(function(c){Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(d,c))})}return i}function r(i,l,d){return(l=function(c){var u=function(p,f){if(typeof p!="object"||p===null)return p;var h=p[Symbol.toPrimitive];if(h!==void 0){var g=h.call(p,f);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(p)}(c,"string");return typeof u=="symbol"?u:String(u)}(l))in i?Object.defineProperty(i,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):i[l]=d,i}return Is}var t8,n8,Bl={};function rm(){if(t8)return Bl;t8=1,Bl.__esModule=!0,Bl.resizableProps=void 0;var e,t=(e=Ba())&&e.__esModule?e:{default:e};om();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 o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l,d=r[0];return d.axis==="both"||d.axis==="y"?(l=t.default.number).isRequired.apply(l,r):t.default.number.apply(t.default,r)},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 o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];var l,d=r[0];return d.axis==="both"||d.axis==="x"?(l=t.default.number).isRequired.apply(l,r):t.default.number.apply(t.default,r)}};return Bl.resizableProps=n,Bl}function im(){if(n8)return Al;n8=1,Al.__esModule=!0,Al.default=void 0;var e=function(h,g){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=i(g);if(m&&m.has(h))return m.get(h);var x={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in h)if(w!=="default"&&Object.prototype.hasOwnProperty.call(h,w)){var b=y?Object.getOwnPropertyDescriptor(h,w):null;b&&(b.get||b.set)?Object.defineProperty(x,w,b):x[w]=h[w]}return x.default=h,m&&m.set(h,x),x}(s),t=om(),n=k_(),o=rm(),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(i=function(x){return x?m:g})(h)}function l(){return l=Object.assign?Object.assign.bind():function(h){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var x in m)Object.prototype.hasOwnProperty.call(m,x)&&(h[x]=m[x])}return h},l.apply(this,arguments)}function d(h,g){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);g&&(x=x.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),m.push.apply(m,x)}return m}function c(h){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?d(Object(m),!0).forEach(function(x){u(h,x,m[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):d(Object(m)).forEach(function(x){Object.defineProperty(h,x,Object.getOwnPropertyDescriptor(m,x))})}return h}function u(h,g,m){return(g=function(x){var y=function(w,b){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var E=C.call(w,b);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(w)}(x,"string");return typeof y=="symbol"?y:String(y)}(g))in h?Object.defineProperty(h,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[g]=m,h}function p(h,g){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,x){return m.__proto__=x,m},p(h,g)}var f=function(h){var g,m;function x(){for(var w,b=arguments.length,C=new Array(b),E=0;E<b;E++)C[E]=arguments[E];return(w=h.call.apply(h,[this].concat(C))||this).handleRefs={},w.lastHandleRect=null,w.slack=null,w}m=h,(g=x).prototype=Object.create(m.prototype),g.prototype.constructor=g,p(g,m);var y=x.prototype;return y.componentWillUnmount=function(){this.resetData()},y.resetData=function(){this.lastHandleRect=this.slack=null},y.runConstraints=function(w,b){var C=this.props,E=C.minConstraints,k=C.maxConstraints,M=C.lockAspectRatio;if(!E&&!k&&!M)return[w,b];if(M){var T=this.props.width/this.props.height,F=w-this.props.width,_=b-this.props.height;Math.abs(F)>Math.abs(_*T)?b=w/T:w=b*T}var P=w,v=b,S=this.slack||[0,0],I=S[0],j=S[1];return w+=I,b+=j,E&&(w=Math.max(E[0],w),b=Math.max(E[1],b)),k&&(w=Math.min(k[0],w),b=Math.min(k[1],b)),this.slack=[I+(P-w),j+(v-b)],[w,b]},y.resizeHandler=function(w,b){var C=this;return function(E,k){var M=k.node,T=k.deltaX,F=k.deltaY;w==="onResizeStart"&&C.resetData();var _=(C.props.axis==="both"||C.props.axis==="x")&&b!=="n"&&b!=="s",P=(C.props.axis==="both"||C.props.axis==="y")&&b!=="e"&&b!=="w";if(_||P){var v=b[0],S=b[b.length-1],I=M.getBoundingClientRect();C.lastHandleRect!=null&&(S==="w"&&(T+=I.left-C.lastHandleRect.left),v==="n"&&(F+=I.top-C.lastHandleRect.top)),C.lastHandleRect=I,S==="w"&&(T=-T),v==="n"&&(F=-F);var j=C.props.width+(_?T/C.props.transformScale:0),R=C.props.height+(P?F/C.props.transformScale:0),A=C.runConstraints(j,R);j=A[0],R=A[1];var D=j!==C.props.width||R!==C.props.height,L=typeof C.props[w]=="function"?C.props[w]:null;L&&!(w==="onResize"&&!D)&&(E.persist==null||E.persist(),L(E,{node:M,size:{width:j,height:R},handle:b})),w==="onResizeStop"&&C.resetData()}}},y.renderResizeHandle=function(w,b){var C=this.props.handle;if(!C)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+w,ref:b});if(typeof C=="function")return C(w,b);var E=c({ref:b},typeof C.type=="string"?{}:{handleAxis:w});return e.cloneElement(C,E)},y.render=function(){var w=this,b=this.props,C=b.children,E=b.className,k=b.draggableOpts;b.width,b.height,b.handle,b.handleSize,b.lockAspectRatio,b.axis,b.minConstraints,b.maxConstraints,b.onResize,b.onResizeStop,b.onResizeStart;var M=b.resizeHandles;b.transformScale;var T=function(F,_){if(F==null)return{};var P,v,S={},I=Object.keys(F);for(v=0;v<I.length;v++)P=I[v],_.indexOf(P)>=0||(S[P]=F[P]);return S}(b,r);return(0,n.cloneElement)(C,c(c({},T),{},{className:(E?E+" ":"")+"react-resizable",children:[].concat(C.props.children,M.map(function(F){var _,P=(_=w.handleRefs[F])!=null?_:w.handleRefs[F]=e.createRef();return e.createElement(t.DraggableCore,l({},k,{nodeRef:P,key:"resizableHandle-"+F,onStop:w.resizeHandler("onResizeStop",F),onStart:w.resizeHandler("onResizeStart",F),onDrag:w.resizeHandler("onResize",F)}),w.renderResizeHandle(F,P))}))}))},x}(e.Component);return Al.default=f,f.propTypes=o.resizableProps,f.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Al}var o8,r8,Nl={};function E_(){if(o8)return Nl;o8=1,Nl.__esModule=!0,Nl.default=void 0;var e=function(g,m){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var x=l(m);if(x&&x.has(g))return x.get(g);var y={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in g)if(b!=="default"&&Object.prototype.hasOwnProperty.call(g,b)){var C=w?Object.getOwnPropertyDescriptor(g,b):null;C&&(C.get||C.set)?Object.defineProperty(y,b,C):y[b]=g[b]}return y.default=g,x&&x.set(g,y),y}(s),t=i(Ba()),n=i(im()),o=rm(),r=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(g){return g&&g.__esModule?g:{default:g}}function l(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,x=new WeakMap;return(l=function(y){return y?x:m})(g)}function d(){return d=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var x=arguments[m];for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(g[y]=x[y])}return g},d.apply(this,arguments)}function c(g,m){var x=Object.keys(g);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(g);m&&(y=y.filter(function(w){return Object.getOwnPropertyDescriptor(g,w).enumerable})),x.push.apply(x,y)}return x}function u(g){for(var m=1;m<arguments.length;m++){var x=arguments[m]!=null?arguments[m]:{};m%2?c(Object(x),!0).forEach(function(y){p(g,y,x[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(x)):c(Object(x)).forEach(function(y){Object.defineProperty(g,y,Object.getOwnPropertyDescriptor(x,y))})}return g}function p(g,m,x){return(m=function(y){var w=function(b,C){if(typeof b!="object"||b===null)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var k=E.call(b,C);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(C==="string"?String:Number)(b)}(y,"string");return typeof w=="symbol"?w:String(w)}(m))in g?Object.defineProperty(g,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):g[m]=x,g}function f(g,m){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,y){return x.__proto__=y,x},f(g,m)}var h=function(g){var m,x;function y(){for(var w,b=arguments.length,C=new Array(b),E=0;E<b;E++)C[E]=arguments[E];return(w=g.call.apply(g,[this].concat(C))||this).state={width:w.props.width,height:w.props.height,propsWidth:w.props.width,propsHeight:w.props.height},w.onResize=function(k,M){var T=M.size;w.props.onResize?(k.persist==null||k.persist(),w.setState(T,function(){return w.props.onResize&&w.props.onResize(k,M)})):w.setState(T)},w}return x=g,(m=y).prototype=Object.create(x.prototype),m.prototype.constructor=m,f(m,x),y.getDerivedStateFromProps=function(w,b){return b.propsWidth!==w.width||b.propsHeight!==w.height?{width:w.width,height:w.height,propsWidth:w.width,propsHeight:w.height}:null},y.prototype.render=function(){var w=this.props,b=w.handle,C=w.handleSize;w.onResize;var E=w.onResizeStart,k=w.onResizeStop,M=w.draggableOpts,T=w.minConstraints,F=w.maxConstraints,_=w.lockAspectRatio,P=w.axis;w.width,w.height;var v=w.resizeHandles,S=w.style,I=w.transformScale,j=function(R,A){if(R==null)return{};var D,L,$={},q=Object.keys(R);for(L=0;L<q.length;L++)D=q[L],A.indexOf(D)>=0||($[D]=R[D]);return $}(w,r);return e.createElement(n.default,{axis:P,draggableOpts:M,handle:b,handleSize:C,height:this.state.height,lockAspectRatio:_,maxConstraints:F,minConstraints:T,onResizeStart:E,onResize:this.onResize,onResizeStop:k,resizeHandles:v,transformScale:I,width:this.state.width},e.createElement("div",d({},j,{style:u(u({},S),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},y}(e.Component);return Nl.default=h,h.propTypes=u(u({},o.resizableProps),{},{children:t.default.element}),Nl}var __=(r8||(r8=1,js.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},js.exports.Resizable=im().default,js.exports.ResizableBox=E_().default),js.exports);function cd(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var rc=parseInt(s.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=cd(o,t),i=typeof r=="function";n.push(i?r:()=>cd(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)cd(n,t)}};const Ou=s.memo(s.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,readonly:l=!1,disabled:d=!1,commandPopupButtonProps:c,sx:u,notifier:p,...f}=e,[h,g]=s.useState(null),[m,x]=s.useState(()=>r.getSelectedRanges().getCoords()),[y,w]=s.useState(!1),{reference:b}=l0({parentFloat:c?.parentFloat}),[C,E]=s.useState(()=>l||!r.getProtection().isStructureAllowed()),k=()=>h?.text??"",[M,T]=s.useState(k),F=he(()=>{if(b?.closeAll(),!M){const V=k();return T(k()),V}if(k()===M)return M;const U=M.trim().toLowerCase();if(U==="r"||U==="c")return M;try{const V=r.getRanges(M);if(V)return V.toString()}catch{}const X=o.getByName(M);if(X&&X.getRanges())return M;let ee=null;try{const V=r.getRanges(M),H=V.getCoords().map(z=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...z}));ee=r.getRanges(H)}catch{}if(!ee){const V=r.getSelectedRanges().getCoords().map(H=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...H}));ee=r.getRanges(V)}try{let V=o.getByName(M);C||V||(V=o.addReference(M,ee)),V&&g({text:V.getName()})}catch(V){T(k()),p.showMessage?.(V.message,{type:i0.Error})}return null},[M,o,b,C]),_=he(()=>{if(r.isClosed())return;const U=[];for(let V=0;V<m.length;V++){const H=m[V];U.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...H})}let X=null;try{X=o.lookupByRanges(U)}catch{}let ee=null;ee=X?.length>0?X[0].getName():r.getSelectedSheet().getSelectedRange().toString(),g({text:ee})},[r,m]),[P,v]=s.useState(()=>o?.search()??null);Gt(o,{onCollectionChange(U){v(o.search()),_()},onClose(U){v([])}}),s.useEffect(()=>{T(k())},[h,m]);const[S,I]=s.useState(r?.getSelectedSheet());Gt(r,{onProtectionChange:U=>{E(l||!U.getProtection().isStructureAllowed())},onSheetsChange:U=>{I(U?.getSelectedSheet())},onViewChange(U){I(U?.getSelectedSheet())}});const[j,R]=s.useState(null),A=he(B.CommonUtils.debounce(_,j?320:0),[]);Gt(S.getSelection(),{onChange:()=>{x(U=>{const X=r.getSelectedRanges().getCoords();return B.CoordUtils.isEqualRangesArrays(X,U)?U:X})},onAdjustingChange:U=>{R(U.getAdjusting())}}),s.useEffect(()=>{if(j){const U=r.getSelectedRange(),X=U.getRowCount(),ee=U.getColumnCount();let V=`${X}R x ${ee}C`;if(V.length>17&&(V=`${X}x${ee}`),X>1||ee>1)return void g({text:V,fontStyle:"italic",justifyContent:"center"})}g({text:r.getSelectedSheet().getSelectedRange().toString()}),A()},[m,r,j]);const D=s.useRef(null),L=s.useCallback(U=>{const{onMouseDown:X,onMouseUp:ee,...V}=U;return a.jsx(N.IconButton,{...V,sx:{...V?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:a.jsx(N.Input,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:D},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:H=>`1px solid ${H.palette.text.icon??H.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:H=>`1px solid ${H.palette.primary.main}`},"::after":{borderBottom:H=>`1px solid ${H.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*B.IFont.getDeviceScale(),fontStyle:h?.fontStyle,paddingLeft:H=>H.spacing(.75),paddingRight:H=>H.spacing(.75),boxShadow:"none",flex:"1",color:H=>H.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:H=>H.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:H=>H.palette.text.primary}}},value:M,onFocus:H=>{H.target?.select()},onKeyDown:H=>{if(H.which===Wt.Enter||H.which===Wt.Tab){let z=M;k()!==M&&(H.stopPropagation(),H.preventDefault(),z=F()),z?$(z):i?.()}else if(H.which===Wt.Escape)k()!==M?(T(k()),setTimeout(()=>{H.target?.select()},0),H.stopPropagation(),H.preventDefault()):i?.();else if(H.which===Wt.Space)return void H.stopPropagation()},onBlur:()=>{T(k())},onChange:H=>{T(H.target.value)}})})},[M,h]),$=he(async U=>{try{b?.closeAll();const X=o.lookupByRanges(U)?.[0];X&&await X?.select(),await r.getRanges(U)?.select()}catch(X){p.showMessage?.(X.message,{type:i0.Error})}},[o,p,r]),q=s.useCallback(U=>{setTimeout(()=>{w(!0)},0);const X={variant:Ht.Menuitem,parentFloat:U.floatReference,commandHook:{...c?.commandHook,beforeExecute:(Q,Y)=>(b?.closeAll(),c?.commandHook?.beforeExecute?.(Q,Y))},scope:c?.scope,commands:c?.commands};let ee=o.search({scope:r?.getSelectedSheet().getName()});ee=ee.sort((Q,Y)=>Q.getType()===Y.getType()?Q.getName().localeCompare(Y.getName()):Q.getType()==="range"?-1:1);const V=C?null:["editNamedReference","deleteNamedReference"],H=C?null:["editTable",null,"convertTableToRange","deleteTable"],z=[],W=ee.length;for(let Q=0;Q<W;Q++){const Y=ee[Q],te=Y.getRanges();if(!te||Y.isHidden())continue;const le=Y.getType();le!==ee[Q-1]?.getType()&&(Q>0&&z.push(a.jsx(It,{orientation:"horizontal"},`type-divider-${z.length}`)),z.push(a.jsx(el,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:Y.getType()==="reference"?"Ranges":"Tables"},`type-header-${z.length}`))),le==="reference"?z.push(s.createElement(r0,{...X,key:"named-"+z.length,popupCommandKeys:V,popupScope:"namedItem",scope:"namedItem",commandState:Y,commands:c?.commands,label:Y.getName(),quickCommand:"selectNamed",disabled:!Y.getRanges()||d,icon:me=>{switch(me.key()){case"editNamedReference":return ge(a.jsx(Db,{}));case"deleteNamedReference":return ge(a.jsx(Lb,{}));default:return ge(a.jsx(Rb,{}))}}})):le==="table"&&z.push(s.createElement(r0,{...X,key:"namedItem-"+z.length,popupCommandKeys:H,popupScope:"namedItem",scope:"namedItem",commands:c?.commands,commandState:Y,label:Y.getName(),quickCommand:"selectNamed",disabled:!te||d,icon:me=>(me.key(),ge(a.jsx(ya,{})))}))}const G=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...f,children:[C?null:a.jsx(je,{...X,scope:"namedItem",command:c?.commands.getCommand("addNamedReference"),icon:ge(a.jsx(Ib,{}))}),z&&z.length>0?a.jsxs(a.Fragment,{children:[C?null:a.jsx(It,{orientation:"horizontal"}),a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:z})]}):null]});return vn({...U,children:G})},[r,P,o,h,C]),O=jo(t,()=>({focus(U){D.current?.focus(U)}}),[]);return a.jsx(N.Box,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...u},ref:rc([O,t]),...f,children:a.jsx(qr,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...u},buttonProps:{sx:{backgroundColor:U=>U.palette.background.paper,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`}},tabIndex:-1,outlined:{color:U=>n?U.palette.action.disabled:dt.alpha(U.palette.divider,.2)},parentFloat:b,createPopupPanel:q,onPopupOpen:()=>w(!0),onPopupClose:()=>w(!1),createTooltip:({children:U},X)=>a.jsx(zo,{title:X||y?"":"Name Box",disabled:X,leaveDelay:0,sx:{opacity:X||y?0:1},children:U}),createQuickButton:L})})}));Ou.displayName="NamedCollectionEditor";const T_=(e,t)=>a.jsx(Ou,{ref:t,...e}),Pu=s.memo(s.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:l=!0,NamedCollectionEditorProps:d,renderNamedCollectionEditor:c=T_,disabled:u,commands:p,...f}=e,[h,g]=s.useState(o?.getSelectedSheet());Gt(o,{onSheetsChange:H=>{g(H?.getSelectedSheet())},onViewChange(H){g(H?.getSelectedSheet())}});const[m,x]=s.useState(h.getSelection().getCoords().cell),y=h.getRange(m).getCell(),w=u||!y.isEditAllowed(),b=s.useRef(null),C=s.useMemo(()=>({fontSize:11}),[]);Gt(h.getSelection(),{onChange:()=>{x(h.getSelection().getCoords().cell)}}),Gt(h,{onProtectionChange(){x(h.getSelection().getCoords().cell)}});const E=b.current?.getLineHeight()??20,[k,M]=s.useState(E),[T,F]=s.useState(5),[_,P]=s.useState(1),v=he((H,{size:z})=>{H.preventDefault(),H.stopPropagation();const W=Math.floor(z.height/E);M(W*E+1),W>1&&F(W)},[E]),S=he((H,{size:z})=>{const W=Math.floor(z.height/E);P(W)},[E]),I=Wr(),j=I.getMode();let R=null;j?.key==="edit"&&(R=j.args?.stateAndCoords);const A=s.useMemo(()=>{let H=R?.editState;return H||(H=F9(()=>h.getRange(m).getCell())),a.jsx(N.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:a.jsx(A9,{ref:b,activeCoords:m,sheet:h,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:m})},defaultTextStyle:C,useRichStyling:!1,disabled:w,onChangeEdit:z=>{if(z.dirty!==void 0){const W={sheet:h,coords:m,editState:z};I.setMode(G=>({...G,args:{...G?.args,stateAndCoords:W}}))}},editState:H,commands:p,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:_})})},[h,R,m,_,r]),D=s.useRef(null),L=s.useMemo(()=>l?c({names:o.getNames(),workbook:o,...d},D):null,[c,d,l,h,o,w]),$=s.useMemo(()=>a.jsxs(N.Paper,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,border:H=>`solid ${w?H.palette.action.disabled:dt.alpha(H.palette.divider,.2)} 1px`},children:[a.jsx(mr,{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:ge(a.jsx(jb,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:w||R===null,onMouseDown:H=>{H.button===0&&H.preventDefault()},onClick:()=>{r.cancelEdit()}}),a.jsx(mr,{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:ge(a.jsx(Mb,{})),tooltipProps:{label:"Enter",simple:!0},disabled:w||R===null,onMouseDown:H=>{H.button===0&&H.preventDefault()},onClick:()=>{r.submitEdit()}}),a.jsx(mr,{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:ge(a.jsx(Yb,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:H=>{H.button===0&&H.preventDefault()}})]}),[w,R]),q=Zr(),[O,U]=s.useState(!1),X=s.useMemo(()=>a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:H=>H.spacing(.5),alignItems:"start"},children:[$,a.jsxs(N.Paper,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:H=>H.typography.fontFamily,fontSize:11*B.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:H=>`${H.shape.borderRadius}px`,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,border:H=>`solid ${w?H.palette.action.disabled:dt.alpha(H.palette.divider,.2)} 1px`,"& textarea":{color:H=>w?`${H.palette.text.disabled} !important`:H.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:H=>{H.target?.classList.contains("react-resizable-handle")&&H.preventDefault()},children:[a.jsx(N.Box,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:H=>H.spacing(1),paddingRight:H=>H.spacing(1)},children:a.jsx(__.ResizableBox,{height:k,draggableOpts:{grid:[E,E]},minConstraints:[E,E],maxConstraints:[15*E,15*E],onResize:S,onResizeStop:v,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:A})}),a.jsx(mr,{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:ge(_>1?a.jsx(yn.ExpandLess,{}):a.jsx(yn.ExpandMore,{})),tooltipProps:{label:(_>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:H=>{H.button===0&&H.preventDefault()},onClick:()=>{const H=_>1?1:T;M(H*E+1),P(H)}}),a.jsx(N.Box,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:O?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:H=>H.palette.primary.main,borderRadius:H=>`${H.shape.borderRadius}px`}})]})]}),[$,A,O,_,E]),ee=s.useMemo(()=>L||X?!L&&X?X:L&&!X?L:a.jsx(a.Fragment,{children:a.jsx(Ed,{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='${q.palette.text.icon??q.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:L,elementAfter:X})}):null,[L,X]),V=jo(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>D.current}),[]);return a.jsx(N.Box,{sx:{display:"flex",flexDirection:"row",gap:H=>H.spacing(.5),...n},ref:V,...f,children:ee})}));Pu.displayName="FormulaBar";const Au=s.memo(s.forwardRef((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:l,...d}=e,c=s.useMemo(()=>({}),[]),u=s.useMemo(()=>({commandHook:{beforeExecute:(h,g)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),p=s.useMemo(()=>({...c,...u,variant:Ht.Menuitem}),[c,u]),f=a.jsxs(a.Fragment,{children:[a.jsx(je,{...p,command:o.getCommand("sortAscending"),icon:ge(a.jsx(Wd,{}))}),a.jsx(je,{...p,command:o.getCommand("sortDescending"),icon:ge(a.jsx(Hh,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...p,command:o.getCommand("autoFilterClear"),icon:ge(a.jsx($2,{}))}),[]]});return a.jsx(N.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...d,children:f})}));Au.displayName="FilterColumnMenu";const lm=s.memo(s.forwardRef((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:l,...d}=e,c=jo(t,()=>({isFilters:()=>!0}),[]);return a.jsx("div",{ref:c,className:Jn("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...d,children:a.jsxs("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:[a.jsx("div",{children:l.getName()}),a.jsx("div",{children:"Filter Widget"})]})})}));lm.displayName="Filters";const Fu=s.memo(s.forwardRef((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:l,index:d,editing:c,editable:u,disabled:p,selectedIndex:f,dragging:h,borderColor:g,borderWidth:m,activeColor:x,background:y="white",tabRadius:w=4,gridTheme:b,...C}=e,[E,k]=s.useState(()=>!!o&&o.getProtection().isLocked()),[M,T]=s.useState(()=>o?o.getTabColor():null);Gt(o,{onProtectionChange:()=>{k(o.getProtection().isLocked())},onTabColorChange:()=>{T(o.getTabColor())},onStyleChange:()=>{T(o.getTabColor())}});const F=Zr(),_=f===d;let P=null,v=null;if(M||h){let j=y;M?(v=M.toBlackOrWhite().toCSS(),j=M?.toCSS()):_||(j=F.palette.background.paper),P=a.jsx(N.Box,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:_?"50%":"100%",borderRadius:"4px",border:R=>_?`${y} solid 1px`:`${R.palette.divider} solid 1px`,background:_&&M?`linear-gradient(0deg, ${j} 0%, transparent)`:j}})}let S=null;typeof g=="string"?S=g:g?.toCSS&&(S=g.toCSS());const I=_?a.jsx(N.Box,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:j=>j.palette.primary.main}}):null;return a.jsx(Qp,{theme:_?b??F:F,children:a.jsx(N.Box,{ref:t,className:Jn(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:_?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:h?"grabbing":void 0},...C,children:a.jsx(Mg,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:w,strokeColor:_?S:"transparent",children:a.jsx(N.Button,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:_?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:h?"grabbing":void 0,color:_?"primary":v||"text.secondary",backgroundColor:_?y:"transparent","&:hover:not([disabled])":{backgroundColor:_?y:"transparent"},"& input":{color:j=>`${j.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:p,disableRipple:c,component:"div",children:a.jsxs(a.Fragment,{children:[P,a.jsxs(N.Box,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:_?void 0:"1px"},children:[n,I]}),E?a.jsx(yn.Lock,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):a.jsx(N.Box,{sx:{minHeight:"22px"}})]})]})},l+":"+d)})})})}));Fu.displayName="SheetTab";const zu=s.memo(s.forwardRef((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:l,floatReference:d,sx:c,className:u,tabStripRef:p,...f}=e,[h,g]=s.useState(n?.getProtection());Gt(n,{onProtectionChange:b=>{g(b?.getProtection())}});const m=s.useMemo(()=>({}),[]),x=s.useMemo(()=>({commandHook:{beforeExecute:(b,C)=>d.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:l||o===void 0,parentFloat:d}),[l,d]),y=s.useMemo(()=>({...m,...x}),[m,x]),w=a.jsxs(a.Fragment,{children:[a.jsx(je,{command:r.getCommand("addSheet"),commandState:o,...y,variant:Ht.Menuitem}),a.jsx(je,{command:r.getCommand("deleteSheet"),...y,variant:Ht.Menuitem}),a.jsxs(lr,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(d.closeAll()).then(()=>{p?.startEdit(o)})},disabled:l||!h.isStructureAllowed(),parentFloat:d,children:["Rename",i!=="sheet"?" Sheet":""]}),a.jsx(je,{command:r.getCommand("duplicateSheet"),...y,variant:Ht.Menuitem}),a.jsx(je,{command:r?.getCommand("protectionSheetToggle"),...y,variant:Ht.Menuitem,icon:a.jsx(yn.Lock,{})}),a.jsx(il,{variant:Ht.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:a.jsx(H2,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:qi.End},parentFloat:d}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{command:r.getCommand("hideSheet"),...y,variant:Ht.Menuitem,icon:ge(a.jsx(Wh,{}))})]});return a.jsx(N.Box,{ref:t,className:Jn("menu",u),sx:{...c},...f,children:w})}));zu.displayName="SheetTabMenu";const Bu=s.memo(s.forwardRef((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:l,...d}=e,[c,u]=s.useState(n?.getSheets().search()),[p,f]=s.useState(n?.getProtection());Gt(n,{onSheetsChange:g=>{u(g.getSheets().search())},onProtectionChange:g=>{f(g?.getProtection())}});const h=s.useMemo(()=>{const g=[],m=n.getSheets().search({visibility:B.ISheet.Visibility.Hidden}),x=n.getSelectedSheet();for(let y=0;y<m.length;y++){const w=m[y],b=w.getVisibility();if(b===B.ISheet.Visibility.VeryHidden)continue;const C=x===w,E=w.getProtection().isLocked(),k=w.getTabColor(),M=o?.body.fill??"transparent";let T=null,F=null,_=M;k&&(_=k.toCSS(),C||(F=k.toBlackOrWhite().toCSS()),T=a.jsx(N.Box,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:C?_:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:a.jsx(N.Box,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:C||b===B.ISheet.Visibility.Hidden?"50%":"100%",border:v=>C?`${M} solid 1.5px`:`${v.palette.divider} solid 1px`,background:C&&k?`linear-gradient(0deg, ${_} 0%, ${M})`:_,borderRadius:"4px"}})}));let P=null;E&&(P=a.jsx(yn.Lock,{color:"secondary"})),b!==B.ISheet.Visibility.Visible&&(P=ge(a.jsx(Wh,{style:{opacity:p.isStructureAllowed()?1:.7},color:"secondary"}))),P&&(P=a.jsx(N.Box,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:P})),g.push(a.jsx(lr,{disabled:!p.isStructureAllowed()&&b===B.ISheet.Visibility.Hidden,sx:{color:v=>{let S=C?v.palette.primary.main:v.palette.text.secondary;return F&&(S=F),b===B.ISheet.Visibility.Hidden&&(S=dt.alpha(S,v.palette.action.disabledOpacity)),S},borderLeft:v=>`${C?v.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:C?"700":"400","&:hover":{fontWeight:"700"}},icon:C?a.jsx(Fa,{}):void 0,onMouseDown:v=>v.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{w.select()}catch(v){console.error(v)}})},children:a.jsxs(a.Fragment,{children:[T,a.jsxs(N.Box,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[a.jsxs(N.Box,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[w.getName(),a.jsx(N.Box,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:w.getName()})]}),P]})]})},""+y))}return g},[n,p,c,r,o]);return a.jsx(N.Box,{ref:t,className:Jn("menu",l),...d,children:h})}));Bu.displayName="SheetsAllMenu";var j_=function(){},am=typeof window<"u",M_=am?s.useLayoutEffect:s.useEffect,i8={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Ia=am&&window.ResizeObserver!==void 0?function(){var e=s.useState(null),t=e[0],n=e[1],o=s.useState(i8),r=o[0],i=o[1],l=s.useMemo(function(){return new window.ResizeObserver(function(d){if(d[0]){var c=d[0].contentRect,u=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,x=c.bottom,y=c.right;i({x:u,y:p,width:f,height:h,top:g,left:m,bottom:x,right:y})}})},[]);return M_(function(){if(t)return l.observe(t),function(){l.disconnect()}},[t]),[n,r]}:function(){return[j_,i8]};function L1(){return L1=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},L1.apply(null,arguments)}function Nu(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function O1(e,t){return O1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},O1(e,t)}function sm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O1(e,t)}function l8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const a8=!1,cm=s.createContext(null);var dm=function(e){return e.scrollTop},Ql="unmounted",X0="exited",Y0="entering",Mi="entered",k2="exiting",u0=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var l,d=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?d?(l=X0,i.appearStatus=Y0):l=Mi:l=o.unmountOnExit||o.mountOnEnter?Ql:X0,i.state={status:l},i.nextCallback=null,i}sm(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===Ql?{status:X0}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var r=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Y0&&i!==Mi&&(r=Y0):i!==Y0&&i!==Mi||(r=k2)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,l=this.props.timeout;return o=r=i=l,l!=null&&typeof l!="number"&&(o=l.exit,r=l.enter,i=l.appear!==void 0?l.appear:r),{exit:o,enter:r,appear:i}},n.updateStatus=function(o,r){if(o===void 0&&(o=!1),r!==null)if(this.cancelNextCallback(),r===Y0){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);i&&dm(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===X0&&this.setState({status:Ql})},n.performEnter=function(o){var r=this,i=this.props.enter,l=this.context?this.context.isMounting:o,d=this.props.nodeRef?[l]:[wo.findDOMNode(this),l],c=d[0],u=d[1],p=this.getTimeouts(),f=l?p.appear:p.enter;!o&&!i||a8?this.safeSetState({status:Mi},function(){r.props.onEntered(c)}):(this.props.onEnter(c,u),this.safeSetState({status:Y0},function(){r.props.onEntering(c,u),r.onTransitionEnd(f,function(){r.safeSetState({status:Mi},function(){r.props.onEntered(c,u)})})}))},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:wo.findDOMNode(this);r&&!a8?(this.props.onExit(l),this.safeSetState({status:k2},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:X0},function(){o.props.onExited(l)})})})):this.safeSetState({status:X0},function(){o.props.onExited(l)})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,r){r=this.setNextCallback(r),this.setState(o,r)},n.setNextCallback=function(o){var r=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,r.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,r){this.setNextCallback(r);var i=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(i&&!l){if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=d[0],u=d[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===Ql)return null;var r=this.props,i=r.children;r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef;var l=Nu(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return s.createElement(cm.Provider,{value:null},typeof i=="function"?i(o,l):s.cloneElement(s.Children.only(i),l))},t}(s.Component);function Ti(){}u0.contextType=cm,u0.propTypes={},u0.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ti,onEntering:Ti,onEntered:Ti,onExit:Ti,onExiting:Ti,onExited:Ti},u0.UNMOUNTED=Ql,u0.EXITED=X0,u0.ENTERING=Y0,u0.ENTERED=Mi,u0.EXITING=k2;var dd=function(e,t){return e&&t&&t.split(" ").forEach(function(n){return r=n,void((o=e).classList?o.classList.remove(r):typeof o.className=="string"?o.className=l8(o.className,r):o.setAttribute("class",l8(o.className&&o.className.baseVal||"",r)));var o,r})},E2=function(e){function t(){for(var o,r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return(o=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(d,c){var u=o.resolveArguments(d,c),p=u[0],f=u[1];o.removeClasses(p,"exit"),o.addClass(p,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(d,c)},o.onEntering=function(d,c){var u=o.resolveArguments(d,c),p=u[0],f=u[1]?"appear":"enter";o.addClass(p,f,"active"),o.props.onEntering&&o.props.onEntering(d,c)},o.onEntered=function(d,c){var u=o.resolveArguments(d,c),p=u[0],f=u[1]?"appear":"enter";o.removeClasses(p,f),o.addClass(p,f,"done"),o.props.onEntered&&o.props.onEntered(d,c)},o.onExit=function(d){var c=o.resolveArguments(d)[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(d)},o.onExiting=function(d){var c=o.resolveArguments(d)[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(d)},o.onExited=function(d){var c=o.resolveArguments(d)[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(d)},o.resolveArguments=function(d,c){return o.props.nodeRef?[o.props.nodeRef.current,d]:[d,c]},o.getClassNames=function(d){var c=o.props.classNames,u=typeof c=="string",p=u?(u&&c?c+"-":"")+d:c[d];return{baseClassName:p,activeClassName:u?p+"-active":c[d+"Active"],doneClassName:u?p+"-done":c[d+"Done"]}},o}sm(t,e);var n=t.prototype;return n.addClass=function(o,r,i){var l=this.getClassNames(r)[i+"ClassName"],d=this.getClassNames("enter").doneClassName;r==="appear"&&i==="done"&&d&&(l+=" "+d),i==="active"&&o&&dm(o),l&&(this.appliedClasses[r][i]=l,function(c,u){c&&u&&u.split(" ").forEach(function(p){return h=p,void((f=c).classList?f.classList.add(h):function(g,m){return g.classList?!!m&&g.classList.contains(m):(" "+(g.className.baseVal||g.className)+" ").indexOf(" "+m+" ")!==-1}(f,h)||(typeof f.className=="string"?f.className=f.className+" "+h:f.setAttribute("class",(f.className&&f.className.baseVal||"")+" "+h)));var f,h})}(o,l))},n.removeClasses=function(o,r){var i=this.appliedClasses[r],l=i.base,d=i.active,c=i.done;this.appliedClasses[r]={},l&&dd(o,l),d&&dd(o,d),c&&dd(o,c)},n.render=function(){var o=this.props;o.classNames;var r=Nu(o,["classNames"]);return s.createElement(u0,L1({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(s.Component);E2.defaultProps={classNames:""},E2.propTypes={};const ud=.12,_2=(e,t)=>{const n={},o=c=>{const u=c.palette?.background.default??"rgba(255,255,255,1)";return{text:{fontFamily:c.typography?.fontFamily??"Calibri",fontSize:c.typography?.fontSize??8.25,fontWeight:c.typography?.fontWeightRegular??"400",fill:c.palette.mode==="dark"?c.palette?.text?.secondary:c.palette?.text?.primary},fill:u,strokeFill:kr(u,ud,c.palette?.mode),darkMode:c.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:kr(n.body.fill,ud,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:kr(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:kr(n.body.fill,.328,e.palette?.mode)},n.headerHover=c=>({...n.header,strokeFill:kr(c?.fill??n.body.fill,.22,e.palette?.mode),fill:kr(c?.fill??n.header.fill,.065,e.palette?.mode),text:{...c?.text,fontWeight:e.typography?.fontWeightBold}});const i=kr(e.palette.mode!=="dark"?e.palette.primary.light:e.palette.primary.main,.055,e.palette?.mode);n.headerSelect={...n.header,strokeFill:e.palette.primary.main,fill:dt.alpha(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:dt.alpha(i,.7)},n.headerSelectAll={...n.headerSelect,fill:dt.alpha(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:kr(r.fill,ud,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:kr(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:kr(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?dt.alpha(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?dt.alpha(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const l=t??e,d=l.palette.mode==="dark";return n.selection={fill:l.palette?.primary?.main?dt.alpha(l.palette?.primary?.main,.1):void 0,strokeFill:l.palette?.primary?.main},n.selectionInactive={...n.selection,fill:l.palette?.divider?dt.alpha(l.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:dt.alpha(l.palette.warning.light,.05),strokeFill:l.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=dt.alpha(l.palette.action.active,.5),n.colorGrey=l.palette.action.active,n.filterDarkInvert=d?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function s8(){if(typeof document>"u")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 c8(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Da=s.memo(s.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,l=jo(t,()=>({}),[]),[d,c]=Ia(),u=s.useRef(null),p=s.useRef(null),[f,h]=s.useReducer(k=>k+1,0),[g,m]=s.useState(null),[x,y]=s.useState(null),[w,b]=s.useState(null),{reference:C}=l0({parentFloat:r,label:"overflow"});s.useLayoutEffect(()=>{p.current={refs:[]};const k=[],M=s.Children.toArray(n);let T=0;M.forEach((F,_)=>{k.push(a.jsx(N.Box,{sx:{display:"flex"},ref:P=>{T++,T===M.length&&h();const v={current:null};v.current=P,p.current.refs[_]=v},children:F},_))}),m(k)},[n,c]),s.useLayoutEffect(()=>{if(!g)return;const k=p.current.refs;if(!l.current||!k||k.length===0)return y(null),void b(null);const M=l.current?.getBoundingClientRect(),T=[],F=[];let _=0,P=!1;for(let S=0;!P&&S<k.length;S++){const I=k[S];if(!I)continue;if(!I.current){P=!0;continue}const j=I.current.getBoundingClientRect();_+=j?.width,_>M.width&&(P=!0)}if(!P)return y(null),void b([]);const v=u.current?.getBoundingClientRect();_=0;for(let S=0;S<k.length;S++){const I=k[S];let j=!1;if(I.current){const R=I.current.getBoundingClientRect();_+=R?.width,_<M.width-v.width&&(j=!0)}j?T.push(g[S]):F.push(g[S])}y(T.length>0?T:null),b(F.length>0?F:null)},[n,g,c,C,f]);const E=he(k=>{const M=[];for(let F=0;F<w.length;F++){let _=s.Children.toArray(w[F]);const P=_[0];_=s.Children.toArray(P.props.children?.props.children??P.props.children);const v=_[0],S={...v.props};S.parentFloat&&(S.parentFloat=k.floatReference);const I=s.cloneElement(v,S);M.push(I)}const T=a.jsx(N.Box,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:F=>F.spacing(.5),paddingBottom:F=>F.spacing(.5),paddingLeft:F=>F.spacing(1),paddingRight:F=>F.spacing(1),overflow:"hidden"},children:M});return vn({...k,children:T})},[w]);return a.jsxs(N.Box,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:rc([l,d,t]),...i,children:[a.jsx(N.Box,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:x??g}),a.jsx(N.Box,{sx:{display:w!==null&&w.length===0?"none":"flex",flex:"1 1 0"},children:a.jsx(qr,{createPopupPanel:E,ref:u,parentFloat:C,createTooltip:({children:k},M)=>a.jsx(zo,{label:"More",description:"More toolbar options…",disabled:M,children:k}),icon:a.jsx(Rh,{children:a.jsx(yn.MoreHoriz,{})})})})]})})),um="https://unpkg.com/@sheetxl/scripting-templates/dist",R_=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DyR0_iZAINpjodWL.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./qQGaIq5VhlZJU-xf.cjs"))).fromBufferCSV(e,t)},{key:"Excel",description:"Excel Workbook",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exts:["xlsx","xls","xlsm"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./BSRDKlVOTYHfOAF_.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],I_=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DyR0_iZAINpjodWL.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./qQGaIq5VhlZJU-xf.cjs"))).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 Promise.resolve().then(()=>require("./BSRDKlVOTYHfOAF_.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class hm{constructor(t=R_,n=I_){this._readFormatTypes=[],this._writeFormatType=[],this._readFormatTypes=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}_detectImportSourceType(t){return t&&typeof t=="object"&&"base64"in t?"base64":t&&typeof t=="object"&&"input"in t?"fetch":typeof t=="string"?t.startsWith("data:")?"base64":(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../"),"fetch"):typeof File<"u"&&t instanceof File?"file":t instanceof ArrayBuffer||ArrayBuffer.isView(t)?"buffer":typeof ReadableStream<"u"&&t instanceof ReadableStream?"stream":null}getReadFormats(){return this._readFormatTypes}getWriteFormats(){return this._writeFormatType}getReadFormatTypeForKey(t){return this._readFormatTypes.find(n=>n.key.includes(t))??null}getReadFormatTypeForExt(t){return t=t.toLowerCase(),this._readFormatTypes.find(n=>n.exts.includes(t))??null}getReadFormatTypeForMimeType(t){return this._readFormatTypes.find(n=>n.mimeType===t)??null}getWriteFormatTypeForExt(t){return t=t.toLowerCase(),this._writeFormatType.find(n=>n.ext===t)??null}getWriteFormatType(t){t=t.toLowerCase();let n=this._writeFormatType.find(o=>o.ext===t)??null;return n||(n=this._writeFormatType.find(o=>o.key.toLowerCase()===t)??null,n||(this._writeFormatType.find(o=>o.mimeType.toLowerCase()===t)??null))}getAllReadFormatTypeAsString(){const t=[];for(let n=0;n<this._readFormatTypes.length;n++)t.push(this._readFormatTypes[n].mimeType);return t}async toArrayBuffer(t,n,o){const r=this.getWriteFormatType(n);if(!r)throw new Error(`Invalid export type for '${n}'.`);try{const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r.description??n}.`);return i(t,o)}catch(i){throw new Error(`Unable to load handler for '${n}.'`,{cause:i})}}async _fromArrayBuffer(t,n,o=null){let r=this.getReadFormatTypeForKey(n)??this.getReadFormatTypeForExt(n)??this.getReadFormatTypeForMimeType(n);if(!t||!r){if(!t)throw new Error("ArrayBuffer must be specified.");if(!n)throw new Error("formatKey must be specified.")}const i=r.handler;if(!i)throw new Error(`Unable to resolve handler for type: ${r?.description??n}.`);const l={...o,...o?.typedCreateWorkbookOptions?.[n]};let d;delete l.typedCreateWorkbookOptions;try{d=await i(t,l)}catch(c){throw new Error("Unable to import",{cause:c})}return d}async read(t){if(!t)throw new Error("'options' must be provided for load.");let n=t.source;if(!n)throw new Error("'options.source' must be provided for load.");const o=t.name,r=t.formatType;typeof n=="function"&&(n=n()),n&&typeof n=="object"&&typeof n.then=="function"&&(n=await Promise.resolve(n));const i=this._detectImportSourceType(n);if(!i)throw new Error("Unable to detect source type from provided input.");switch(i){case"file":{const l=n;return await this._fromFile(l,t)}case"base64":{let l;if(n&&typeof n=="object"&&"base64"in n)l=n.base64;else if(typeof n=="string"&&n.startsWith("data:")){const[,u]=n.split(",");l=u}else l=n;const d=Jm.base64ToArrayBuffer(l),c=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!c)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(d,c.key,t),title:o||"imported-file",formatType:c}}case"fetch":{let l,d,c=null;if(typeof n=="string")c=n;else{if(!n||typeof n!="object"||!("input"in n))throw new Error("Invalid fetch source provided.");{const x=n;c=x.input,l=x.init,d=x.timeout}}const u=d||3e4,p=new AbortController,f=setTimeout(()=>p.abort(),u),h=typeof c=="string"?c:c.toString(),g=r||B.TextUtils.getFileNameExtension(h),m=this.getReadFormatTypeForExt(g)||this._readFormatTypes[0];try{const x=await fetch(c,{...l,signal:p.signal});if(clearTimeout(f),!x.ok)throw new Error(`Failed to fetch: ${x.status} ${x.statusText}`);const y=await x.arrayBuffer();if(!m)throw new Error(`Unable to determine import type for fetched content: ${h}`);return{workbook:await this._fromArrayBuffer(y,m.key,t),title:o||B.TextUtils.getBaseName(h,!0)||"fetched-file",formatType:m}}catch(x){throw clearTimeout(f),x.name==="AbortError"?new Error(`Fetch timeout after ${u}ms: ${h}`):x}}case"buffer":{const l=n,d=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!d)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(l,d.key,t),title:o||"buffer-file",formatType:d}}case"stream":{const l=n.getReader(),d=[];let c=0;try{for(;;){const{done:g,value:m}=await l.read();if(g)break;d.push(m),c+=m.length}}finally{l.releaseLock()}const u=new ArrayBuffer(c),p=new Uint8Array(u);let f=0;for(const g of d)p.set(g,f),f+=g.length;const h=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!h)throw new Error("No import type available for stream input.");return{workbook:await this._fromArrayBuffer(u,h.key,t),title:o||"stream-file",formatType:h}}default:throw new Error(`Unsupported source type: ${i}`)}}async _fromFile(t,n=null){let o=null;try{let r="";t?.name&&(r=`${B.TextUtils.getBaseName(t.name)}`);const i=this.getReadFormatTypeForExt(B.TextUtils.getFileNameExtension(t?.name));if(!i)throw new Error(`Unknown file type: ${B.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);const l=await t.arrayBuffer(),d={...n,...n?.typedCreateWorkbookOptions?.[i.key]};delete d.typedCreateWorkbookOptions;const c=i.handler;if(!c)throw new Error(`Unable to resolve handler for type: ${i?.description??B.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await d.onStart?.(r);const u=await c(l,d);o=new D_(t,u,r,i)}catch(r){throw r}return o}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");if(!n.isIWorkbook)throw new Error("Invalid workbook model provided. Must be an instance of IWorkbook.");const r=B.TextUtils.getFileNameExtension(t);r&&(t=t.slice(0,t.length-r.length-1));let i=null;o?.formatType&&(i=this.getWriteFormatType(o.formatType));const l=this.getWriteFormats(),d=l.length;for(let p=0;!i&&p<d;p++)(l[p].ext===r||!r&&l[p].isDefault)&&(i=l[p]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const c=t+"."+i.ext;let u=null;try{u=await this.toArrayBuffer(n,i.key)}catch(p){throw typeof p=="string"?new Error(p):p}try{await(async(p,f)=>{let h;typeof SharedArrayBuffer<"u"&&f instanceof SharedArrayBuffer?(h=new ArrayBuffer(f.byteLength),new Uint8Array(h).set(new Uint8Array(f))):h=f,function(g,m){const x=URL.createObjectURL(g),y=document.createElement("a");y.style.display="none",y.href=x,y.download=m,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(x)}(new Blob([h],{type:"application/octet-stream"}),p)})(c,u)}catch(p){throw new Error("Unable to write file.",{cause:p})}return!0}}class D_{constructor(t,n,o,r){this.file=t,this.workbook=n,this.title=o,this.formatType=r}get[Symbol.toStringTag](){return"[WorkbookHandle]"}toString(){return`'${this.file.name}' ${this.file.size} (${this.formatType.description})`}}const L_=new hm;var d8,u8,O_=function(){if(u8)return d8;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,r){for(var i,l="",d=0,c=-1,u=0,p=0;p<=o.length;++p){if(p<o.length)i=o.charCodeAt(p);else{if(i===47)break;i=47}if(i===47){if(c!==p-1&&u!==1)if(c!==p-1&&u===2){if(l.length<2||d!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var f=l.lastIndexOf("/");if(f!==l.length-1){f===-1?(l="",d=0):d=(l=l.slice(0,f)).length-1-l.lastIndexOf("/"),c=p,u=0;continue}}else if(l.length===2||l.length===1){l="",d=0,c=p,u=0;continue}}r&&(l.length>0?l+="/..":l="..",d=2)}else l.length>0?l+="/"+o.slice(c+1,p):l=o.slice(c+1,p),d=p-c-1;c=p,u=0}else i===46&&u!==-1?++u:u=-1}return l}u8=1;var n={resolve:function(){for(var o,r="",i=!1,l=arguments.length-1;l>=-1&&!i;l--){var d;l>=0?d=arguments[l]:(o===void 0&&(o=process.cwd()),d=o),e(d),d.length!==0&&(r=d+"/"+r,i=d.charCodeAt(0)===47)}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(o){if(e(o),o.length===0)return".";var r=o.charCodeAt(0)===47,i=o.charCodeAt(o.length-1)===47;return(o=t(o,!r)).length!==0||r||(o="."),o.length>0&&i&&(o+="/"),r?"/"+o:o},isAbsolute:function(o){return e(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,r=0;r<arguments.length;++r){var i=arguments[r];e(i),i.length>0&&(o===void 0?o=i:o+="/"+i)}return o===void 0?".":n.normalize(o)},relative:function(o,r){if(e(o),e(r),o===r||(o=n.resolve(o))===(r=n.resolve(r)))return"";for(var i=1;i<o.length&&o.charCodeAt(i)===47;++i);for(var l=o.length,d=l-i,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var u=r.length-c,p=d<u?d:u,f=-1,h=0;h<=p;++h){if(h===p){if(u>p){if(r.charCodeAt(c+h)===47)return r.slice(c+h+1);if(h===0)return r.slice(c+h)}else d>p&&(o.charCodeAt(i+h)===47?f=h:h===0&&(f=0));break}var g=o.charCodeAt(i+h);if(g!==r.charCodeAt(c+h))break;g===47&&(f=h)}var m="";for(h=i+f+1;h<=l;++h)h!==l&&o.charCodeAt(h)!==47||(m.length===0?m+="..":m+="/..");return m.length>0?m+r.slice(c+f):(c+=f,r.charCodeAt(c)===47&&++c,r.slice(c))},_makeLong:function(o){return o},dirname:function(o){if(e(o),o.length===0)return".";for(var r=o.charCodeAt(0),i=r===47,l=-1,d=!0,c=o.length-1;c>=1;--c)if((r=o.charCodeAt(c))===47){if(!d){l=c;break}}else d=!1;return l===-1?i?"/":".":i&&l===1?"//":o.slice(0,l)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(o);var i,l=0,d=-1,c=!0;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var u=r.length-1,p=-1;for(i=o.length-1;i>=0;--i){var f=o.charCodeAt(i);if(f===47){if(!c){l=i+1;break}}else p===-1&&(c=!1,p=i+1),u>=0&&(f===r.charCodeAt(u)?--u===-1&&(d=i):(u=-1,d=p))}return l===d?d=p:d===-1&&(d=o.length),o.slice(l,d)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===47){if(!c){l=i+1;break}}else d===-1&&(c=!1,d=i+1);return d===-1?"":o.slice(l,d)},extname:function(o){e(o);for(var r=-1,i=0,l=-1,d=!0,c=0,u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p!==47)l===-1&&(d=!1,l=u+1),p===46?r===-1?r=u:c!==1&&(c=1):r!==-1&&(c=-1);else if(!d){i=u+1;break}}return r===-1||l===-1||c===0||c===1&&r===l-1&&r===i+1?"":o.slice(r,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return i=(r=o).dir||r.root,l=r.base||(r.name||"")+(r.ext||""),i?i===r.root?i+l:i+"/"+l:l;var r,i,l},parse:function(o){e(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var i,l=o.charCodeAt(0),d=l===47;d?(r.root="/",i=1):i=0;for(var c=-1,u=0,p=-1,f=!0,h=o.length-1,g=0;h>=i;--h)if((l=o.charCodeAt(h))!==47)p===-1&&(f=!1,p=h+1),l===46?c===-1?c=h:g!==1&&(g=1):c!==-1&&(g=-1);else if(!f){u=h+1;break}return c===-1||p===-1||g===0||g===1&&c===p-1&&c===u+1?p!==-1&&(r.base=r.name=u===0&&d?o.slice(1,p):o.slice(u,p)):(u===0&&d?(r.name=o.slice(1,c),r.base=o.slice(1,p)):(r.name=o.slice(u,c),r.base=o.slice(u,p)),r.ext=o.slice(c,p)),u>0?r.dir=o.slice(0,u-1):d&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,d8=n}();const h8=/^(con|prn|aux|nul|com\d|lpt\d)$/i,p8=/[<>:"/\\|?*\u0000-\u001F]/g,ti=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:p8,WINDOW_FILENAME_RESERVED_REGEX:h8,isValidWindowsFilename:e=>!(!e||e.length>255||p8.test(e)||h8.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(typeof window>"u"||window.document===void 0){if(typeof require<"u"&&typeof process<"u")return O_.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"})),f8=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:hm,IOUtils:ti,WorkbookIO:L_},Symbol.toStringTag,{value:"Module"})),P_=e=>{if(e.metadata?.name)return e.metadata.name;let t=(e.path.split("/").pop()||"").replace(/\.[^/.]+$/,"");return e.metadata?.icon==="formula"?t.toUpperCase():(t=t.replace(/([a-z])([A-Z])/g,"$1 $2"),t.replace(/[-_]/g," ").trim().split(/\s+/).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))},pm=async e=>{const t=ti.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new bd(`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 bd(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(l){throw new Error(`Failed to parse directory: ${l.message}. Ensure the file is valid JSON.`)}const i=r.map(async l=>{try{const d=ti.relativePath(e,l.path),c=await fetch(d);if(!c.ok)throw new Error(`Failed to fetch file at '${l.path}': ${c.statusText}`);const u=await c.text();let p=l.metadata;return p?.title||(p={title:P_(l),...p}),{path:l.path,content:u,metadata:p}}catch(d){console.error(d.message)}return null});return(await Promise.all(i)).filter(l=>l!==null)},hd={fontSize:"0.8rem",marginRight:"4px"},A_=s.memo(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...l}=e;let d;return d=n.metadata?.icon==="formula"?a.jsx(Zh,{sx:hd}):n.metadata?.icon==="macro"?a.jsx(K2,{sx:hd}):a.jsx(yn.WebhookOutlined,{sx:hd}),a.jsx(lr,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:d,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(n)},onKeyDown:c=>{c.keyCode!==Wt.Enter&&c.keyCode!==Wt.Space||r(n)},...l,children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[a.jsx(N.Typography,{component:"div",children:n.metadata?.title??n.path}),a.jsx(N.Typography,{variant:"caption",component:"div",sx:{color:c=>dt.alpha(c.palette.text.secondary??c.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),fm=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:l=um,...d}=e,[c,u]=s.useState([]),[p,f]=s.useState(!0),h=to(n,["executeSelectedScript"]),g=h[0]?.context?.();s.useEffect(()=>{(async()=>{try{const x=await pm(l);u(x)}catch{}finally{f(!1)}})()},[l]);const m=s.useCallback((x,y)=>{if(p)return a.jsx("div",{children:"Loading..."});const w={variant:Ht.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=k=>{g.getEditor()?.insertSnippet(k.content),x.closeFloat()},C=[];for(let k=0;k<c.length;k++){const M=c[k];M&&C.push(a.jsx(A_,{handleInsert:b,snippet:M},M.path))}const E=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[C.length>0?a.jsxs(a.Fragment,{children:[a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:C}),a.jsx(It,{orientation:"horizontal"})]}):null,s.createElement(je,{...w,key:"help",command:n.getCommand("help"),icon:ge(a.jsx(Uh,{}))})]});return vn({...x,children:E})},[i,o,r,p,g]);return a.jsx(Dn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Insert Script",tooltip:"Inserts a script from a set of templates.",createPopupPanel:m,icon:ge(a.jsx(tw,{})),...d})})),Vu=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=he(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsx(a.Fragment,{children:a.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[a.jsx("div",{children:a.jsx(Da,{parentFloat:o,style:{},children:a.jsx(je,{...c,command:n.getCommand("saveScripts"),icon:ge(a.jsx(nw,{}))})})}),a.jsx("div",{style:{flex:"1 1 100%"}}),a.jsx("div",{children:a.jsx(Da,{parentFloat:o,style:{},children:a.jsx(fm,{...c,commands:n})})})]})})},[n]);return a.jsx(za,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})}));Vu.displayName="ScriptEditorToolbar";const pd={fontSize:"1rem"},mm=s.memo(s.forwardRef((e,t)=>{const{scriptPath:n=um,onScriptSelect:o,sx:r=pn.EmptyCssProperties,className:i,buttonMinWidth:l=210,buttonMinHeight:d=80,gap:c=12,...u}=e,[p,f]=s.useState([]),[h,g]=s.useState(!0),[m,x]=s.useState(null);if(s.useEffect(()=>{(async()=>{const b=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{g(!0),x(null);const C=await pm(n);for(let E=0;E<C.length;E++){const k=C[E];k&&b.push(k)}}catch(C){x(C instanceof Error?C.message:"Failed to load scripts"),C instanceof bd||console.error("Error loading scripts:",C)}finally{f(b),g(!1)}})()},[n]),h)return a.jsx(N.Box,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Jn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,...r},...u,children:a.jsx(N.CircularProgress,{})});let y=null;m&&(y=a.jsxs(N.Box,{display:"flex",justifyContent:"center",alignItems:"center",className:Jn(i,"script-select","error-results"),sx:{background:b=>b.palette.error.light,flex:"0",zIndex:1e3,flexDirection:"column",padding:b=>b.spacing(1),border:b=>`1px solid ${b.palette.error.main}`,borderBottomLeftRadius:1,borderBottomRightRadius:1,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},...u,children:[a.jsx(N.Typography,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),a.jsx(N.Typography,{color:"error",component:"div",children:m})]}));const w=b=>{const C=b.metadata?.icon;return C==="macro"?a.jsx(K2,{sx:pd}):C==="formula"?a.jsx(Zh,{sx:pd}):C==="autostart"?a.jsx(yn.WebhookOutlined,{sx:pd}):null};return a.jsxs(N.Box,{ref:t,className:Jn(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,...r},...u,children:[a.jsxs(N.Box,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[a.jsx(N.Typography,{variant:"h6",gutterBottom:!0,children:"Script Template"}),a.jsx(N.Typography,{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."}),a.jsx(N.Typography,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),a.jsx(N.Box,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${l}px, 1fr))`,gap:`${c}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:p.map((b,C)=>a.jsxs(N.Button,{variant:"outlined",sx:{minWidth:l,minHeight:d,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...C===0&&{borderStyle:"dashed",marginBottom:"8px"},...C===1&&{gridColumn:"1"}},onClick:()=>o?.(b),children:[a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[a.jsx(N.Typography,{variant:"subtitle2",component:"div",children:b.metadata?.title||b.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),w(b)]}),b.metadata?.summary&&a.jsx(N.Typography,{variant:"body2",component:"div",color:"text.secondary",sx:{overflow:"hidden",display:"flex",flexDirection:"column",textOverflow:"ellipsis",alignItems:"flex-start"},children:b.metadata.summary})]},`${b.path}-${C}`))})]}),y]})}));mm.displayName="TemplateSelectPanel";const Hu=s.memo(s.forwardRef((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:l=!1,onClose:d,autoFocusSel:c,autoFocus:u=!0,scripts:p,...f}=e,h=Zr(),[g,m]=s.useState(!1),x=s.useRef(!1),[y,w]=s.useState({message:"Loading",cursor:"",dirty:!1}),[b,C]=s.useState(null);s.useEffect(()=>{let L=!1;return C(null),async function(){if(p&&(await p.start(),!L)){const $=p.getModules().search()[0]?.getSource();C({source:$||null})}}(),()=>{L=!0}},[p]);const E=s.useCallback(L=>{w($=>({...$,...L}))},[]),k=s.useRef(null),M=s.useRef(null),[T,F]=s.useState(null),_=s.useRef(null),P=he(L=>{if(T)return T.focus(L),!0;if(c){const $=M.current?.querySelectorAll?.(c);if($&&$.length>0)return $[0]?.focus?.(L),!0}return M.current?.focus?.(L),!1},[T,c,u]),v=s.useMemo(()=>a.jsx(gi,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),S=s.useMemo(()=>a.jsx(N.Paper,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,marginLeft:L=>L.spacing(.5),marginRight:L=>L.spacing(.5),marginTop:L=>L.spacing(1),marginBottom:L=>L.spacing(1)},children:a.jsx(Vu,{commands:i})}),[h,i]),I=s.useMemo(()=>a.jsx(N.Box,{className:Jn("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:a.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[a.jsx(N.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:L=>L.palette.text.secondary},variant:"caption",children:y.message}),a.jsx(N.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:L=>L.palette.text.secondary},variant:"caption",children:y.dirty?"Unsaved":""}),a.jsx(N.Typography,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:L=>L.palette.text.secondary},variant:"caption",children:y.cursor})]})}),[y]),j=s.useMemo(()=>a.jsxs(N.Box,{className:Jn("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[S,a.jsx(N.Box,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:a.jsx(s_,{ref:M,loadingPanel:v,readOnly:l,onClose:d,autoFocus:u,commands:i,onStatusChange:E,darkMode:h.palette.mode==="dark",...r})}),I]}),[h,i,S,I,g,v,l,r,u,c,d,E]),R=s.useMemo(()=>a.jsx(N.DialogTitle,{className:Jn({"Mui-selected":x.current}),sx:{display:"flex",color:L=>L.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:L=>`${L.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:L=>L.transitions.duration.shortest/2+"ms"},backgroundColor:L=>dt.alpha(L.palette.action.hover,.03),borderBottom:L=>`solid ${dt.alpha(L.palette.divider,.2)} 1px`},onPointerDown:L=>{L.isDefaultPrevented()||(L.preventDefault(),P())},children:a.jsxs(N.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:L=>L.spacing(.25),marginBottom:L=>L.spacing(.25),marginLeft:L=>L.spacing(1),marginRight:L=>L.spacing(1)},children:[a.jsx(N.Box,{sx:{flex:"1 1 100%",paddingLeft:L=>L.spacing(1)},children:"Script (Typescript)"}),a.jsx(zo,{label:"Close",children:a.jsx(N.IconButton,{"aria-label":"close",sx:{color:L=>L.palette.text.icon??L.palette.action.active},touchRippleRef:k,onPointerDown:L=>{k.current?.start(L,{center:!1}),L.stopPropagation(),L.preventDefault()},onPointerUp:()=>{M.current?.close()},children:a.jsx(yn.Close,{})})})]})}),[h,g]),A=s.useMemo(()=>{let L;return b===null?null:(b.source===null&&(L=a.jsx(mm,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:$=>{M.current?.getEditor().insertSnippet($.content),C({source:$.content??""})}})),a.jsxs(N.Box,{tabIndex:0,className:Jn("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(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},onPointerDown:$=>{$.isDefaultPrevented()||M.current?.focus()},children:[R,a.jsxs(N.Box,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[j,L]})]}))},[S,j,n,b]),D=jo(t,()=>({isScriptWorkspaceElement:()=>!0,focus:L=>{P(L)}}),[]);return a.jsx(N.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:D,...f,onFocus:L=>{m(!0),x.current=!0,D.current?.contains(L.target)&&L.target!==D.current&&F(L.target),L.relatedTarget&&!_.current&&(_.current=L.relatedTarget),f?.onFocus?.(L)},onBlur:L=>{D?.current?.contains(L.relatedTarget)||D?.current===L.relatedTarget||(_.current=null,x.current=!1,m(!1)),f?.onBlur?.(L)},children:A})}));Hu.displayName="ScriptWorkspace";const $u=s.memo(s.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...l}=e,d=to(n,["executeScript"])[0].context();to(n,["showScriptEditor"]);const c=s.useCallback((u,p)=>{const f={variant:Ht.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},h=d?.getScripts(),g=h?.searchFunction({type:"macro"}),m=[];if(g)for(let y=0;y<g.length;y++){const w=g[y];m.push(a.jsx(je,{...f,command:p.getCommand("executeScript"),commandState:{declaration:w},tooltipProps:{description:`Execute ${w.getName()??"script"}`},icon:ge(a.jsx(K2,{})),label:w.getName()??`Script '${w.getName()}'`},`script-${w.getName()}-${y}`))}const x=a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[m.length>0?a.jsxs(a.Fragment,{children:[a.jsx(N.Box,{sx:{overflow:"auto",flex:"1 1 100%"},children:m}),a.jsx(It,{orientation:"horizontal"})]}):null,s.createElement(je,{...f,key:"show-editor",command:p.getCommand("showScriptEditor"),icon:ge(a.jsx(Zb,{}))})]});return vn({...u,children:x})},[i,d,o,r]);return a.jsx(Dn,{ref:t,commands:n,commandHook:o,createPopupPanel:c,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:ge(a.jsx(ew,{})),...l})})),F_=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=to(n,["executeScript","showScriptEditor"]),d=l[0]?.context?.(),c=s.useCallback(u=>{const{commandButtonProps:p,commandPopupProps:f}=u,h=a.jsx(il,{...f,command:n.getCommand("formatFontColor"),icon:a.jsx(ey,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),g=a.jsx(il,{...f,command:n.getCommand("formatFillColor"),icon:a.jsx(Qx,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:qi.End}}),m=n.getCommand("undo")?a.jsx(a.Fragment,{children:a.jsx(ju,{...f,quickCommand:"undo"})}):null,x=n.getCommand("find")?a.jsx(a.Fragment,{children:a.jsx(Rf,{...f})}):null;let y=null;const w=d?.getScripts();if(l[1]?.state?.()||w){let b=l[1]?.state?.();const C=w?.searchFunction({type:"macro"});for(let E=0;C&&!b&&E<C?.length;E++)b=!0;b&&(y=a.jsxs(a.Fragment,{children:[a.jsx(It,{}),a.jsx($u,{...f})]}))}return a.jsxs(Da,{parentFloat:o,children:[m,null,m?a.jsx(It,{}):null,a.jsx(Mu,{...f,command:n.getCommand("paste")}),a.jsx(je,{...p,command:n.getCommand("formatPainterToggle"),icon:ge(a.jsx(cb,{}))}),a.jsx(nc,{...p,command:n.getCommand("copy")}),a.jsx(It,{}),a.jsx(Af,{...f,command:n.getCommand("formatFontFamily")}),a.jsx(If,{...f,command:n.getCommand("formatFontSize")}),a.jsx(je,{...p,command:n.getCommand("formatBoldToggle"),icon:a.jsx(ix,{})}),a.jsx(je,{...p,command:n.getCommand("formatItalicToggle"),icon:a.jsx(rx,{})}),a.jsx(zf,{...f}),a.jsx(Ff,{...f}),h,a.jsx(It,{}),g,a.jsx(Tf,{...f}),a.jsx(jf,{...f}),a.jsx(It,{}),a.jsx(Pp,{...f}),a.jsx(Ap,{...f}),a.jsx(Fp,{...f}),a.jsx(zp,{...f}),a.jsx(It,{}),a.jsx(Df,{...f}),a.jsx(Hf,{command:n.getCommand("formatCellStyle"),...f}),a.jsx(qf,{command:n.getCommand("formatTableStyle"),...f}),a.jsx(It,{}),a.jsx(Eu,{...f}),a.jsx(_u,{...f}),a.jsx(It,{}),a.jsx(Lf,{...f}),null,a.jsx(ku,{...f}),a.jsx(Tu,{...f}),x,y]})},[n,l]);return a.jsx(za,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:c,...i})})),z_=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=he(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsxs(Da,{parentFloat:o,children:[null,a.jsx(je,{...c,command:n.getCommand("updateHyperlink"),icon:ge(a.jsx(Hd,{}))}),a.jsx(je,{...c,command:n.getCommand("updateComments"),icon:ge(a.jsx($d,{}))}),a.jsx(Ru,{...u}),a.jsx(je,{...c,command:n.getCommand("insertTable"),icon:ge(a.jsx(ya,{}))})]})},[n]);return a.jsx(za,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),B_=s.memo(s.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,l=he(d=>{const{commandButtonProps:c,commandPopupProps:u}=d;return a.jsxs(Da,{parentFloat:o,children:[a.jsx(Mf,{...u}),a.jsx(je,{...c,command:n.getCommand("protectionSheetToggle"),icon:a.jsx(yn.Lock,{color:"secondary"})}),a.jsx(It,{}),a.jsx(Of,{...u}),a.jsx(Bf,{...u}),a.jsx(It,{}),a.jsx(je,{...c,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:a.jsx(nl,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),a.jsx(je,{...c,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:a.jsx(nl,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),a.jsx(It,{}),a.jsx(Nf,{...u}),a.jsx(Xf,{command:n.getCommand("selectTheme"),...u}),a.jsx(It,{}),a.jsx($u,{...u,scope:"view"}),a.jsx(It,{}),a.jsx(je,{...c,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ge(n.getCommand("fullScreenToggle").state()?a.jsx(wb,{}):a.jsx(bb,{}))})]})},[n]);return a.jsx(za,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:l,...i})})),gm=e=>a.jsx($_,{...e}),N_=s.memo(e=>{const{sx:t,...n}=e;return a.jsxs(N.Box,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:o=>`${dt.alpha(o.palette.primary.main,.35)} solid 2px`}},children:[a.jsx(N.Tab,{disableRipple:!0,onMouseDown:o=>{o.button===0&&o.preventDefault()},sx:{textTransform:"none",flex:"1 1 100%",fontWeight:o=>o.typography.fontWeightRegular,padding:"2px 6px",minHeight:"0px",minWidth:"0px",marginRight:o=>o.spacing(.5),"&.Mui-selected":{},"&.Mui-focusVisible":{},...t},...n}),a.jsx(N.Box,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),V_=s.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,l=s.useMemo(()=>{const d=[];for(let c=0;c<t.length;c++)d.push(a.jsx(N_,{label:t[c].label},t[c].label));return d},[t]);return a.jsx(N.Tabs,{value:n,onChange:(d,c)=>{o?.(c)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:d=>d.spacing(1.5),paddingRight:d=>d.spacing(1.5),paddingTop:d=>d.spacing(0),paddingBottom:d=>d.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:d=>d.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:a.jsx("span",{className:"MuiTabs-indicatorSpan"})},...i,children:l})}),H_=s.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,l=s.useCallback(c=>{o?.(c.target.value)},[o]),d=s.useMemo(()=>{const c=[];for(let u=0;u<t.length;u++){const p=t[u].label;c.push(a.jsx(N.MenuItem,{value:u,sx:{color:f=>{if(n===u)return f.palette.primary.main}},children:p},p))}return c},[t,n]);return a.jsx(N.FormControl,{sx:{minWidth:"125px",maxWidth:"125px","& .MuiInputBase-root":{paddingLeft:"0px",paddingRight:"0px"},"& .MuiSelect-select":{paddingTop:c=>c.spacing(.5),paddingBottom:c=>c.spacing(.5),paddingLeft:c=>c.spacing(2),color:c=>c.palette.primary.main},"& .MuiSelect-icon":{fill:c=>c.palette.text.icon??c.palette.action.active,"&:hover:not(.Mui-disabled)":{color:c=>c.palette.text.icon??c.palette.action.active}},...r},size:"small",children:a.jsx(N.Select,{value:n,onChange:l,variant:"outlined",sx:{backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`},...i,children:d})})}),$_=s.memo(s.forwardRef((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:l,toolbarsProps:d,paletteProps:c={},workbook:u,sx:p,...f}=e,h=s.useMemo(()=>{const k=[],{ref:M,...T}=d?.Home||{};k.push({label:"Home",component:a.jsx(F_,{commands:n,...T})});const{ref:F,..._}=d?.Insert||{};k.push({label:"Insert",component:a.jsx(z_,{commands:n,..._})});const{ref:P,...v}=d?.View||{};return k.push({label:"View",component:a.jsx(B_,{commands:n,...v})}),k},[n]),g=s.useMemo(()=>{const k=[];for(let M=0;M<h.length;M++)k.push(s.cloneElement(h[M].component,{...h[M].component.props,key:h[M].key??h[M].label}));return k},[h]),[m,x]=s.useState(0),y=k=>{x(k)},w=s.useMemo(()=>i?a.jsx(H_,{toolbars:h,value:m,onToolbarChange:y,sx:r}):a.jsx(V_,{toolbars:h,value:m,onToolbarChange:y,sx:r}),[h,m,r,i]),{sx:b,...C}=c,E=a.jsx(N.Paper,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`,marginLeft:k=>k.spacing(1),marginRight:k=>k.spacing(1),marginTop:k=>k.spacing(.5),marginBottom:k=>k.spacing(.5),...b},...C,children:g[m]});return a.jsxs(N.Box,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:k=>k.spacing(.5),"*":{userSelect:"none"},...p},...f,children:[o?o(w):w,l?l(E):E]})})),W_=e=>a.jsx(zu,{...e}),U_=e=>a.jsx(Bu,{...e}),q_=e=>a.jsx(Fu,{...e}),Wu=s.memo(s.forwardRef((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:l=!1,readOnly:d=!1,contextMenuProps:c,renderContextMenu:u=W_,sheetsAllProps:p,renderSheetsAll:f=U_,sheetTabProps:h,renderSheetTab:g,background:m="transparent",className:x,notifier:y,sx:w,borderWidth:b,borderColor:C,gridTheme:E,gridStyle:k,...M}=e,[T,F]=s.useState(n?.getSelectedSheetIndex()),[_,P]=s.useState(n?.getSheets().search()),[v,S]=s.useState(n?.getProtection());Gt(n,{onViewChange(J){F(J?.getSelectedSheetIndex())},onSheetsChange:J=>{P(J.getSheets().search())},onProtectionChange:J=>{S(J?.getProtection())}});const I=d||!v.isStructureAllowed(),j=s.useMemo(()=>{const J=[];for(let ae=0;ae<_.length;ae++)J.push(_[ae].getName());return J},[_]),R=s.useCallback(J=>{r?.(J)!==!1&&(n.getSheetAt(J).select(),i?.(J))},[n,r,i]),A=s.useCallback((J,ae)=>{n.getSheetAt(J).setName(ae),i?.(J)},[n,i]),D=s.useCallback((J,ae)=>{n.getSheetAt(J).setPosition(ae),i?.(ae)},[n,i]),L=he(()=>{if(r?.(T)===!1)return;const J=T+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(J)},[n,r,i,T]),$=s.useMemo(()=>({placement:"top-start"}),[]),q=s.useRef(null),[O,U]=s.useState(!1),X=s.useCallback(J=>{const{closeFloatAll:ae,floatReference:ke}=J;return f({workbook:n,gridStyle:k,floatReference:ke,closeFloatAll:ae,...p})},[f,p,l,n,k]),{reference:ee,component:V}=l0({label:"allSheet",popperProps:$,anchor:q.current,onOpen:()=>U(!0),onClose:()=>U(!1),createPopupPanel:X}),H=s.useRef(null),[z,W]=s.useState(null),G=s.useCallback(J=>{const{floatReference:ae}=J;return u?.({workbook:n,index:z?.index,tabStripRef:H.current,commands:o,disabled:l,floatReference:ae,...c})},[u,c,l,n,o,z]),{reference:Q,component:Y}=l0({label:"sheetTab",popperProps:$,anchor:{getBoundingClientRect:()=>new DOMRect(z?.left||0,z?.top||0,0,0)},onClose:()=>W(null),createPopupPanel:G});s.useEffect(()=>{z?Q.open(0):Q.close(0)},[z]);const te=s.useCallback((J,ae)=>{J.preventDefault(),W({left:J.clientX-2,top:J.clientY-4,index:ae})},[]),le=he(J=>{let ae;try{ae=n?.getSheetAt(J.index)}catch{}return ae?(g??q_)({sheet:ae,gridTheme:E,onContextMenu:ke=>{R(J.index),te(ke,J.index)},...J,...h}):null},[g,h,n,E]),me=s.useMemo(()=>I?null:a.jsx(yr,{disableInteractive:!0,title:"New sheet",children:a.jsx(N.IconButton,{disabled:l,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:J=>J.palette.primary.main},color:J=>J.palette.text.icon??J.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:J=>{J.button===0&&J.preventDefault()},onClick:()=>L(),children:a.jsx(yn.AddCircleOutline,{})})}),[l,I,L]);return a.jsxs(N.Box,{ref:t,className:Jn(x),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...w},...M,children:[a.jsx(vf,{ref:H,selectedTabIndex:T,tabNames:j,onSelectedTabIndexChange:R,onTabNameChange:A,onTabMove:D,background:m,borderColor:C,borderWidth:b,activeColor:null,disabled:l,disableDrag:I,createScrollStartButton:rw,createScrollEndButton:iw,createScrollEdgeButton:ow,createTabButton:le,createTabDivider:J=>{const{key:ae,...ke}=J;return a.jsx(It,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:De=>dt.alpha(De.palette.divider,.25)},...ke},ae)},editLabelProps:{readOnly:I,maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:J=>{n.isValidSheetNameCharacter(J.key)||J.preventDefault()},onCancel:()=>{i?.(T)},notifier:y},children:a.jsx(yr,{disableInteractive:!0,title:O?"":"List all sheets",children:a.jsx(mr,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:J=>J.palette.text.icon??J.palette.action.active},ref:q,dense:!0,outlined:!1,selected:O,color:"primary","aria-label":"menu",onMouseDown:J=>{J.button===0&&J.preventDefault()},onClick:()=>{O?ee.close(0):ee.open(0)},icon:a.jsx(yn.Menu,{})})})}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,minWidth:"4px"}}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,flex:"none",display:"flex",alignItems:"center"},children:me}),a.jsx("div",{style:{borderTop:`solid ${C} ${b}px`,flex:1,minWidth:"24px"}}),Y,V]})}));Wu.displayName="WorkbookStrip";const Uu=s.memo(s.forwardRef((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:l,className:d,...c}=e,[u,p]=s.useReducer(S=>S+1,0),[f,h]=s.useState(n.getSelectedSheet()),[g,m]=s.useState(f.getSelectedRanges()),[x,y]=s.useState(f.getSelectedCell());Gt(n,{onSheetsChange(){h(n.getSelectedSheet())}}),Gt(f.getSelection(),{onChange(){m(f.getSelectedRanges()),y(f.getSelectedCell())}}),to(o,[],{onChange:()=>{p()}});const w=s.useMemo(()=>({}),[]),b=s.useMemo(()=>({commandHook:{beforeExecute:(S,I)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:l}),[r,l]),C=s.useMemo(()=>({...w,...b,variant:Ht.Menuitem}),[w,b]),E=s.useMemo(()=>({commands:o,variant:Ht.Menuitem,parentFloat:l,...b}),[o,b,l]),k=[];let M=g.isEntireRows(),T=g.isEntireColumns();g&&(M&&(k.push(a.jsx(It,{orientation:"horizontal"},"context:"+k.length)),k.push(s.createElement(je,{command:o.getCommand("hideColumns"),...C,icon:ge(a.jsx(nb,{})),key:"context:"+k.length})),k.push(s.createElement(je,{command:o.getCommand("unhideColumns"),...C,icon:ge(a.jsx(tb,{})),key:"context:"+k.length}))),T&&(k.push(a.jsx(It,{orientation:"horizontal"},"context:"+k.length)),k.push(s.createElement(je,{command:o.getCommand("hideRows"),...C,icon:ge(a.jsx(rb,{})),key:"context:"+k.length})),k.push(s.createElement(je,{command:o.getCommand("unhideRows"),...C,icon:ge(a.jsx(ob,{})),key:"context:"+k.length}))),(M||T)&&k.push(a.jsx(It,{orientation:"horizontal"},"context:"+k.length)),M&&k.push(s.createElement(je,{command:o.getCommand("autoFitColumns"),...C,icon:ge(a.jsx(Ob,{})),key:"context:"+k.length})),T&&k.push(s.createElement(je,{command:o.getCommand("autoFitRows"),...C,icon:ge(a.jsx(Pb,{})),key:"context:"+k.length})));const F=[],_=o.getCommand("formatTableStyle"),P=_?.context()?.table();if(H0(_),!M&&!T){if(F.push(a.jsx(It,{orientation:"horizontal"},"contextBefore:"+F.length)),x?.getHyperlink())F.push(s.createElement(r0,{...E,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+F.length,quickCommand:"openHyperlink",icon:S=>S.key()==="openHyperlink"?ge(a.jsx(Hd,{})):null}));else{const S=o.getCommand("updateHyperlink");F.push(s.createElement(je,{command:S,...C,icon:ge(a.jsx(Hd,{})),key:"contextBefore:"+F.length}))}if(x?.getComments())F.push(s.createElement(r0,{...E,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+F.length,quickCommand:"updateComments",icon:S=>S.key()==="updateComments"?ge(a.jsx($d,{})):null}));else{const S=o.getCommand("updateComments");F.push(s.createElement(je,{command:S,...C,icon:ge(a.jsx($d,{})),key:"contextBefore:"+F.length}))}P?F.push(s.createElement(r0,{...E,variant:Ht.Menuitem,key:"contextBefore:"+F.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:P,quickCommand:"editTable",icon:S=>(S.key(),ge(a.jsx(ya,{})))})):F.push(s.createElement(je,{command:o.getCommand("insertTable"),...C,icon:ge(a.jsx(ya,{})),key:"context:"+k.length})),F.push(s.createElement(Ru,{...E,key:"contextBefore:"+F.length}))}const v=a.jsxs(a.Fragment,{children:[a.jsx(je,{command:o.getCommand("cut"),...C,icon:a.jsx(py,{})}),a.jsx(nc,{command:o.getCommand("copy"),...C}),a.jsx(Mu,{command:o.getCommand("paste"),...E,includePasteAllInPopup:!1}),a.jsx(It,{orientation:"horizontal"}),a.jsx(Tu,{...E}),a.jsx(It,{orientation:"horizontal"}),a.jsx(Eu,{commands:o,...E,disableSheet:!0}),a.jsx(_u,{commands:o,...E,disableSheet:!0}),a.jsx(ku,{...E}),F,k]});return a.jsx(N.Box,{ref:t,className:Jn("menu",d),sx:{...i},...c,children:v})}));var m8,g8;Uu.displayName="WorkbookContextMenu",function(){if(g8)return m8;g8=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,r=parseInt,i=typeof Pi=="object"&&Pi&&Pi.Object===Object&&Pi,l=typeof self=="object"&&self&&self.Object===Object&&self,d=i||l||Function("return this")(),c=Object.prototype.toString,u=Math.max,p=Math.min,f=function(){return d.Date.now()};function h(m){var x=typeof m;return!!m&&(x=="object"||x=="function")}function g(m){if(typeof m=="number")return m;if(function(w){return typeof w=="symbol"||function(b){return!!b&&typeof b=="object"}(w)&&c.call(w)=="[object Symbol]"}(m))return NaN;if(h(m)){var x=typeof m.valueOf=="function"?m.valueOf():m;m=h(x)?x+"":x}if(typeof m!="string")return m===0?m:+m;m=m.replace(e,"");var y=n.test(m);return y||o.test(m)?r(m.slice(2),y?2:8):t.test(m)?NaN:+m}m8=function(m,x,y){var w,b,C,E,k,M,T=0,F=!1,_=!1,P=!0;if(typeof m!="function")throw new TypeError("Expected a function");function v(A){var D=w,L=b;return w=b=void 0,T=A,E=m.apply(L,D)}function S(A){var D=A-M;return M===void 0||D>=x||D<0||_&&A-T>=C}function I(){var A=f();if(S(A))return j(A);k=setTimeout(I,function(D){var L=x-(D-M);return _?p(L,C-(D-T)):L}(A))}function j(A){return k=void 0,P&&w?v(A):(w=b=void 0,E)}function R(){var A=f(),D=S(A);if(w=arguments,b=this,M=A,D){if(k===void 0)return function(L){return T=L,k=setTimeout(I,x),F?v(L):E}(M);if(_)return k=setTimeout(I,x),v(M)}return k===void 0&&(k=setTimeout(I,x)),E}return x=g(x)||0,h(y)&&(F=!!y.leading,C=(_="maxWait"in y)?u(g(y.maxWait)||0,x):C,P="trailing"in y?!!y.trailing:P),R.cancel=function(){k!==void 0&&clearTimeout(k),T=0,w=M=b=k=void 0},R.flush=function(){return k===void 0?E:j(f())},R}}();var x8,y8,b8={exports:{}},fd={};y8||(y8=1,b8.exports=function(){if(x8)return fd;x8=1;var e=s,t=typeof Object.is=="function"?Object.is:function(c,u){return c===u&&(c!==0||1/c==1/u)||c!=c&&u!=u},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function l(c){var u=c.getSnapshot;c=c.value;try{var p=u();return!t(c,p)}catch{return!0}}var d=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,u){return u()}:function(c,u){var p=u(),f=n({inst:{value:p,getSnapshot:u}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=u,l(h)&&g({inst:h})},[c,p,u]),o(function(){return l(h)&&g({inst:h}),c(function(){l(h)&&g({inst:h})})},[c]),i(p),p};return fd.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,fd}()),b8.exports;var w8,v8,Vl={exports:{}},Ri={exports:{}},Z_=Ri.exports;(function(){if(v8)return Vl.exports;v8=1;for(var e=(w8||(w8=1,function(){var f,h,g,m,x,y;typeof performance<"u"&&performance!==null&&performance.now?Ri.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Ri.exports=function(){return(f()-x)/1e6},h=process.hrtime,f=function(){var w;return 1e9*(w=h())[0]+w[1]},m=f(),y=1e9*process.uptime(),x=m-y):Date.now?(Ri.exports=function(){return Date.now()-g},g=Date.now()):(Ri.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(Z_)),Ri.exports),t=typeof window>"u"?Pi: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 d=0,c=0,u=[],p=1e3/60;r=function(f){if(u.length===0){var h=e(),g=Math.max(0,p-(h-d));d=g+h,setTimeout(function(){var m=u.slice(0);u.length=0;for(var x=0;x<m.length;x++)if(!m[x].cancelled)try{m[x].callback(d)}catch(y){setTimeout(function(){throw y},0)}},Math.round(g))}return u.push({handle:++c,callback:f,cancelled:!1}),c},i=function(f){for(var h=0;h<u.length;h++)u[h].handle===f&&(u[h].cancelled=!0)}}Vl.exports=function(f){return r.call(t,f)},Vl.exports.cancel=function(){i.apply(t,arguments)},Vl.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i},Vl.exports})();var e0={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(typeof document>"u")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?e==="change"?t[0]:t[1]:null},get fullscreenEnabled(){if(typeof document>"u")return!1;const e=document;return e.fullscreenEnabled||e.webkitFullscreenEnabled||!!e.webkitCancelFullScreen||e.mozFullScreenEnabled||e.msFullscreenEnabled||!1},get fullscreenElement(){if(typeof document>"u")return null;const e=document;return e.fullscreenElement||e.webkitFullscreenElement||e.webkitCurrentFullScreenElement||e.mozFullScreenElement||e.msFullscreenElement||null},requestFullscreen(e,t){if(typeof document>"u")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(typeof document>"u")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 xm=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:l,onShowSidebar:d,onNewWorkbook:c=ym}=e,[u,p]=s.useState(t?.getSelectedSheet()),[f,h]=s.useState(t?.getSheets().search()),g=he(d,[d]),m=he(c,[c]),x=s.useMemo(()=>[new mt("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[Ee.Ctrl,Ee.Shift]}}),new mt("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[Ee.Ctrl,Ee.Shift]}}),new Te("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new Te("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new Te("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new mt("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[Ee.Ctrl]},{key:"F5",modifiers:[Ee.Shift]}]}),new mt("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[Ee.Ctrl]},{key:"H",modifiers:[Ee.Ctrl,Ee.Alt]}]}),new mt("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[Ee.Ctrl]}]}),new mt("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[Ee.Ctrl,Ee.Shift]}}),new mt("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new mt("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new mt("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new mt("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new mt("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new Te("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 Te("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new Te("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[Ee.Shift]},{key:"F1",modifiers:[Ee.Alt,Ee.Shift]}]}),new Te("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new Te("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[Ee.Ctrl]}]}),new Te("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[Ee.Ctrl]}]}),new Te("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[Ee.Ctrl,Ee.Shift]}]}),new Te("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[Ee.Ctrl,Ee.Shift]}]}),new Te("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new Te("selectNamed",r,{label:S=>S?.getName()??"Select Named Item",scopedLabels:{namedItem:S=>S?.getName()??"Select"},description:"Select the item."}),new Te("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 Te("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 Te("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new mt("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[Ee.Alt]}}),new mt("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[Ee.Ctrl,Ee.Shift]}}),new mt("activeNameManager",r,{label:"Activate Name Manager",description:`Create, edit, delete, and find all the names used in the workbook.
86
-
87
- Names can be used as a substitute for cell references.`,shortcut:{key:"F3",modifiers:[Ee.Ctrl]}}),new Te("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new Te("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[Ee.Alt]}]},function(S=!0){g?.()}),new Te("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new Te("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new Te("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new Te("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[Ee.Ctrl]}}),new Te("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new Te("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new mt("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[Ee.Ctrl]}}),new mt("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[Ee.Ctrl]}}),new mt("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[Ee.Ctrl]}})],[]),y=s.useMemo(()=>{let S=null;return S=i?i.createChildGroup(r,"workbook",!1):new ll(r,"workbook"),S.addCommands(x,!0),S},[i,x]),w=Wr(),b=s.useRef(null),C=he(()=>{let S,I=null;const j=y.getCommand("executeScript");if(j.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!j)return;const R=y.getCommand("executeSelectedScript");if(!R)return;const A={saveSource:async D=>{let L=null,$=null;const q=t.getScripts();try{D&&($=await o?.showBusy?.("Saving Scripts..."),L=await q.createModule({source:D})),q.addModule("scripts",L,{replace:!0}),$?.()}catch(O){$?.(),console.warn("Unable to compile",O),o?.showError?.(O)}return L},addContainerListener:D=>(E.current=D,()=>{E.current=null}),setSelectedFunction:D=>{S=D??b.current??null,Promise.resolve(S).then(L=>{R.update({disabled:L===null})})},quickInsertFunction:D=>{const L=`=${D.toUpperCase()}(`,$={text:L+")",editMode:!0,initialSelection:{start:L.length,end:L.length+0}};w.setMode(q=>q?.key==="edit"?{...q,args:{...q.args}}:{key:"edit",args:{stateAndCoords:null,start:$}})},getSelectedFunction:()=>S,setEditor:D=>{I=D??null,y.getCommand("showScriptEditor")?.update({state:D!==null})},getEditor:()=>I,getRanges:D=>{try{return t.getRanges(D)}catch{}return null},getScripts:()=>t.getScripts(),isReadOnly:()=>t.getProtection().isStructureAllowed()===!1};R.update({context:A})},[y,t,n,o]),E=s.useRef(null);Gt(t,{onBeforeSave:async()=>{await E.current?.onBeforeSave()},onProtectionChange:()=>{E.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),E.current?.onScriptChange()))()}}),Gt(t,{onSheetsChange:S=>{h(S.getSheets().search())},onViewChange(S){p(S?.getSelectedSheet())},onProtectionChange:S=>{const I={disabled:!S.getProtection().isStructureAllowed()};y.getCommand("hideSheet").update(I),y.getCommand("deleteSheet").update(I),y.getCommand("addSheet").update(I),y.getCommand("duplicateSheet").update(I),y.getCommand("selectTheme").update(I),y.getCommand("addNamedReference").update(I),y.getCommand("editNamedReference").update(I),y.getCommand("deleteNamedReference").update(I)},onScriptsChange:S=>{C()}});const{isFullscreenAvailable:k,isFullscreenEnabled:M,toggleFullscreen:T}=function(S={}){const{target:I,onChange:j,onError:R,requestFullScreenOptions:A}=S,[D,L]=s.useState(!1),[$,q]=s.useState(null),[O,U]=s.useState(!1),X=s.useCallback(()=>e0.requestFullscreen(I?.current||null,A),[I,A]),ee=s.useCallback(()=>e0.exitFullscreen(),[]),V=s.useCallback(()=>e0.fullscreenElement?ee():X(),[X,ee]),H=s.useCallback(W=>{const G=e0.fullscreenElement;q(G),U(!!G),j?.(W)},[j]),z=s.useCallback(W=>{const G=e0.fullscreenElement;q(G),U(!!G),R?.(W)},[R]);return s.useEffect(()=>{L(e0.fullscreenEnabled)},[]),s.useEffect(()=>(e0.on("change",H),e0.on("error",z),()=>{e0.off("change",H),e0.off("error",z)}),[H,z]),{isFullscreenAvailable:D,fullscreenElement:$,isFullscreenEnabled:O,enableFullscreen:X,disableFullscreen:ee,toggleFullscreen:V}}({target:{current:n??document.body}}),F=vu();s.useEffect(()=>{y.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:F,darkMode:l})})},[t?.getTheme(),l]);const _=he(async function(S,I){let j=null;const R=t.getScripts();if(S?.declaration||S?.functionName){const A=S.declaration?S.declaration.getName():S.functionName;R.searchFunction({name:A}).length>0&&(j=A)}if(j)try{await R.executeMacro(j),b.current=Promise.resolve({source:null,name:j})}catch(A){return void o?.showError?.(A)}},[t,o]);s.useEffect(()=>{y.getCommand("newCellStyle").updateCallback(S=>{o?.showInputOptions?.({initialValue:(()=>{let I=0;for(;;){I++;const j=`Style ${I}`;try{return t.getStyles().validateStyleName(j,!0),j}catch{}}})(),title:y.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(I,j)=>{let R=null;try{t.getStyles().validateStyleName(I,!1)}catch(L){R=L.message}let A=t.getStyles().getNamed(I),D=R;return!D&&A&&(D=`Update style '${A.getName()}'.`),{valid:R===null,message:D}}}).then(({input:I,option:j})=>{const R=t.getSelectedSheet().getSelectedRange();if(j!=="Ok")return;const A=t.getStyles().setNamed({name:I,style:R.getCell().getStyle()});R.updateStyle({named:A.getName()})})}),y.getCommand("deleteCellStyle").updateCallback(S=>{S.delete()}),y.getCommand("modifyCellStyle").updateCallback(({named:S})=>{const I=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:S.getName(),style:I.getCell().getStyle()})}),y.getCommand("hideSheet").updateCallback(S=>{t.getSheetAt(S).setVisibility(B.ISheet.Visibility.Hidden)}),y.getCommand("deleteSheet").updateCallback(async S=>{t.getSheetAt(S??t.getSelectedSheetIndex())?.delete()}),y.getCommand("addSheet").updateCallback(S=>{t.getSheets().add({index:S,autoSelect:!0})}),y.getCommand("duplicateSheet").updateCallback(async S=>{(await t.getSheetAt(S??t.getSelectedSheetIndex())?.duplicate())?.select()}),y.getCommand("nextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("previousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectNextSheet").updateCallback(S=>{t.getNextSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectPreviousSheet").updateCallback(S=>{t.getPreviousSheet(S??t.getSelectedSheetIndex()).select()}),y.getCommand("selectTheme").updateCallback(S=>{t.setTheme(S)}),y.getCommand("calculateAll").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("calculate").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),y.getCommand("closeWorkbook").updateCallback(async()=>{await o?.showOptions({title:"Confirm",description:"This will close the current workbook tab. Do you want to continue?",options:["Close","Cancel"],defaultOption:"Close"})==="Close"&&window.close()}),y.getCommand("newWorkbook").updateCallback(()=>{m?.()}),y.getCommand("executeScript").updateCallback(_),y.getCommand("executeSelectedScript").updateCallback(_)},[t,o]);const P=he(async S=>{let I=0,j=null,R="Find & Replace";S?.replace&&!S?.replaceOptions?.maxCount&&(R="Replace All");const A=await o?.showBusy?.(R);try{const D=S?.scope??"sheet";let L=null;const $=t.getSelectedSheet(),q={from:$.getSelectedCell(),...S.findOptions};if(L=D==="sheet"?t.getSelectedSheet().find(S.findText,q):t.find(S.findText,q),S.replace){const O=t.replace(L,S.replaceText,S.replaceOptions);I=O.count,S.replaceOptions.maxCount&&(j=O.last)}else{let O=L.next();O.done||(I++,j=O.value)}j?.select({autoFocus:!1}),A?.(),!S.replaceOptions.maxCount&&I>1&&o?.showMessage?.(`We replaced ${I} cells.`)}catch(D){A?.(),o?.showError?.(D)}return I},[t,n]),v=he(S=>{const I={value:S,context:{selection:()=>{const j=t.getSelectedRanges(),R=[];for(let A=0;A<j.getCount();A++){const D=j.at(A).getFixed(!0).getCoords();R.push(D)}return t.getRanges(R)},getNames:()=>t.getNames()},onUpdate:async j=>{try{await j.select()}catch(R){o?.showMessage?.(R.message,{type:i0.Error})}}};return o.showWindow?.("namedDetails",I)},[o,t,n]);return s.useEffect(()=>{const S=(I=!1)=>{const j=t.getSelectedCell(),R={onFindOrReplace:P,onKeyDown:A=>{y.findCommandByEvent(A)!==y.getCommand("find")&&y.findCommandByEvent(A)!==y.getCommand("findReplace")||A.preventDefault()},findOptions:{},findText:j.toTextUnformatted(!0)};R.replace=I,o.showWindow?.("find",R,{disableAutoDestroy:!0})};y.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S()}),y.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{S(!0)}),y.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const I={onInputOption:async j=>{try{await t.getRanges(j).select()}catch(R){o?.showMessage?.(R.message,{type:i0.Error})}},onKeyDown:j=>{y.findCommandByEvent(j)===y.getCommand("goto")&&j.preventDefault()},title:y.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(I)}),y.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async I=>{if(I)try{await I.select()}catch(j){o?.showError?.(j)}}),y.getCommand("addNamedReference")?.updateCallback(async function(I){v(null)}),y.getCommand("editNamedReference")?.updateCallback(async function(I){v(I)}),y.getCommand("deleteNamedReference")?.updateCallback(async function(I){I?.delete?.()}),y.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),Gt(t?.getView(),{onViewChange:S=>{y.getCommand("workbookViewToggleShowFormulaBar").update({state:S.isShowFormulaBar()}).updateCallback(()=>{S.setShowFormulaBar(!S.isShowFormulaBar())}),y.getCommand("workbookViewToggleShowTabs").update({state:S.isShowTabs()}).updateCallback(()=>{S.setShowTabs(!S.isShowTabs())}),y.getCommand("workbookViewToggleShowStatusBar").update({state:S.isShowStatusBar()}).updateCallback(()=>{S.setShowStatusBar(!S.isShowStatusBar())}),y.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:S.isShowHorizontalScrollbar()}).updateCallback(()=>{S.setShowHorizontalScrollbar(!S.isShowHorizontalScrollbar())}),y.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:S.isShowVerticalScrollbar()}).updateCallback(()=>{S.setShowVerticalScrollbar(!S.isShowVerticalScrollbar())})}}),s.useEffect(()=>{y.getCommand("fullScreenToggle").update({state:M,disabled:!k}).updateCallback(()=>{T()})},[M,k]),s.useEffect(()=>{const S=t.getProtection().isStructureAllowed();y.getCommand("hideSheet").update({disabled:f.length<=1||!S}),y.getCommand("deleteSheet").update({disabled:f.length<=1||!S})},[f,u]),y},ym=()=>{window.open(window.origin.toString(),"sheetxl-"+B.CommonUtils.uuidV4(),"popup=true")},bm=s.memo(s.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:l,...d}=e;Gt(n,{onAnyChange(m){}});const c=s.useMemo(()=>({}),[]),u=s.useMemo(()=>({commandHook:{beforeExecute:(m,x)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:l}),[r,l]),p=s.useMemo(()=>({variant:Ht.Menuitem,...c,...u}),[c,u]),f=s.useMemo(()=>({commands:o,variant:Ht.Menuitem,parentFloat:l,...u}),[o,u,l]),h=m=>{switch(m?.key()){case"moveToFront":return ge(a.jsx(Fb,{}));case"moveForward":return ge(a.jsx(zb,{}));case"moveToBack":return ge(a.jsx(Ab,{}));case"moveBackward":return ge(a.jsx(Bb,{}));case"toggleLockAspectRatio":return ge(a.jsx(J3,{}));case"formatDrawAlignLeft":return ge(a.jsx(e6,{}));case"formatDrawAlignCenter":return ge(a.jsx(Nb,{}));case"formatDrawAlignRight":return ge(a.jsx(Vb,{}));case"formatDrawAlignTop":return ge(a.jsx(Hb,{}));case"formatDrawAlignMiddle":return ge(a.jsx($b,{}));case"formatDrawAlignBottom":return ge(a.jsx(Wb,{}));case"formatDrawDistributeHorz":return ge(a.jsx(Ub,{}));case"formatDrawDistributeVert":return ge(a.jsx(qb,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ge(a.jsx(Q3,{}));default:return null}},g=a.jsxs(a.Fragment,{children:[a.jsx(nc,{command:o.getCommand("copy"),...p,variant:Ht.Menuitem}),[],a.jsx(It,{orientation:"horizontal"}),a.jsx(r0,{...f,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:h}),a.jsx(r0,{...f,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:h}),a.jsx(It,{orientation:"horizontal"}),a.jsx(je,{...p,command:o.getCommand("toggleLockAspectRatio"),icon:ge(a.jsx(J3,{}))}),a.jsx(It,{orientation:"horizontal"}),a.jsx(r0,{...f,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:m=>h(m)||ge(a.jsx(e6,{})),tooltip:"Quickly change the placement of your drawings."}),a.jsx(It,{orientation:"horizontal"}),a.jsx(r0,{...f,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:m=>h(m)||ge(a.jsx(Q3,{})),tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return a.jsx(N.Box,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...d,children:g})}));bm.displayName="MovableContextMenu";const G_="_sheetxl-theme_4opcr_2",K_="_sheetxl-workbook_1j3lu_5",X_={fireOnModelChange:!1},md={flex:"1 1 100%",display:"flex"},Y_=e=>a.jsx(Du,{...e}),J_=e=>a.jsx(Wu,{...e}),Q_=e=>a.jsx(bm,{...e}),eT=e=>a.jsx(Uu,{...e}),tT=e=>a.jsx(Au,{...e}),nT=(e,t)=>a.jsx(Pu,{ref:t,...e}),wm=e=>a.jsx(gi,{...e}),oT=(e,t)=>a.jsx(W9,{ref:t,...e}),vm=s.memo(s.forwardRef((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:l,autoFocus:d=!1,sx:c,style:u,className:p,onFocus:f,onBlur:h,onKeyDown:g,onRepeatCommandChange:m,commands:x,showFormulaBar:y,formulaBarProps:w,renderFormulaBar:b=nT,showTabs:C,tabsProps:E,renderTabs:k=J_,showStatusBar:M,statusBarProps:T,renderStatusBar:F=Y_,toolbarProps:_,renderToolbar:P=gm,contextMenuSx:v,renderContextMenu:S=eT,renderFilterMenu:I=tT,renderMovableMenu:j=Q_,renderLoadingPanel:R=wm,loadingPanelProps:A,sheetProps:D,renderSheet:L=oT,showHorizontalScrollbar:$,showVerticalScrollbar:q,gridTheme:O,headersTheme:U,enableDarkImages:X,...ee}=e,V=Zr(),H=vu(),z=s.useMemo(()=>{const ve={theme:H.getDefaultTheme(),...o};return n??new B.Workbook(ve)},[n]),W=s.useRef(null),[G,Q]=s.useState(!1),Y=s.useRef(null),te=s.useMemo(()=>a.jsx(N.Box,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:Y}),[]),[le,me]=s.useState(!1),[J,ae]=s.useState(!1),ke=s.useCallback(()=>{me(!0)},[]),De=s.useRef(null),ne=jo(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>z,getSheetElement:()=>W.current,getViewportElement:()=>Y.current,getFormulaBarElement:()=>De.current,focus(){W&&W.current&&W.current.focus()}}),[z]),de=s.useRef(null);s.useLayoutEffect(()=>{le&&ne.current&&(ae(!0),de.current!==i&&(i?.({source:ne.current}),de.current=i))},[le,ne.current]),ne.current;const ye=s.useCallback(ve=>(W.current?.submitEdit(),!0),[]),ze=s.useCallback(()=>{requestAnimationFrame(()=>{W?.current?.focus()})},[]),[$e,gt]=s.useState(z?.getSelectedSheet()),[bt,Se]=s.useState(z?.getProtection());Gt(z,{onSheetsChange:ve=>{gt(ve?.getSelectedSheet())},onViewChange(ve){gt(ve?.getSelectedSheet())},onProtectionChange:ve=>{Se(ve?.getProtection())}}),Gt(z,{onRequestSelect:async(ve,ut)=>new Promise(_t=>{W.current.getSheet()!==ut?W.current.getGridElement()?.onViewChangeOnce(()=>{W.current.getSheet()!==ut&&_t(!1),_t(!0)}):_t(!0)})},X_);const[ht,xt]=s.useReducer(ve=>ve+1,0),Ne=z?.getView();Gt(Ne,{onViewChange:ve=>{xt()}});const wt=O??V,Ye=s.useMemo(()=>_2(V,wt),[V,wt]),re=U??V,Ue=s.useMemo(()=>_2(V,re),[V,re]),[xe,we]=s.useState(null);s.useCallback(()=>{W.current.focus()},[]);const[ie,Re]=s.useState(!1),Me=s.useRef(null),be=xm({workbook:z,workbookElement:ne.current,commandTarget:()=>W.current,notifier:l,commands:x,darkMode:Ye.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{ie?Me.current?.focus():Re(!0)}}),Oe=s.useRef(null),[oe,Ce]=s.useState(!1),[Le,qe]=s.useState(null),[pt,ot]=s.useState(gc),[We,st]=s.useState(B.TypesUtils.EmptyBounds),Xe=()=>{Ce(!1),qe(null)},Qe=(ve,ut,_t=gc)=>{st(ve),ot(_t),qe(ut),Oe.current!==null&&Oe.current.update(),Ce(!0)},[kt,Vt]=s.useState("sheet"),ct=C??Ne?.isShowTabs(),Ut=$??Ne?.isShowHorizontalScrollbar(),Qt=y??Ne?.isShowFormulaBar(),ln=M??Ne?.isShowStatusBar(),gn=q??Ne?.isShowVerticalScrollbar(),En=Ye?.header?.edgeStrokeFill||"rgb(171,171,171)",Nn=s.useMemo(()=>ln?F({sheet:$e,gridStyle:Ye,...T}):null,[F,T,ln,Ye,$e]),no=s.useMemo(()=>P({commands:be,workbook:ne.current,..._}),[be,P,_,V]),[co,{width:_n}]=Ia(),zt=_n===0||_n>560,Fn=s.useMemo(()=>{if(!ct)return null;let ve=k({background:Ye.body.fill,borderWidth:1,borderColor:En,gridTheme:wt,gridStyle:Ye,onBeforeUserChange:ye,onUserChange:ze,workbook:z,commands:be,sheetTabProps:{},notifier:l,...E});return zt||(ve=a.jsx("div",{style:{flex:"none",display:"flex"},children:ve})),ve},[k,E,l,V,z,wt,zt,be,ct]),qn=s.useCallback(ve=>{const ut=B.CommonUtils.getOS()===B.CommonUtils.OSType.Firefox;let _t=null,sn=null,Jt=null;if(Ut&&(sn=a.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${En} 1px`,maxWidth:"100%"},children:a.jsx(_1,{style:{alignItems:"center",borderTop:(ut?6:3)+"px solid transparent",borderBottom:(zt?6:3)+"px solid transparent",borderLeft:(ut?3:0)+"px solid transparent",borderRight:(ut?3:0)+"px solid transparent"},...ve,endGap:700,sheet:$e,showCustomScrollButtons:!ut,onShowTooltip:yt=>{Qe({x:yt.anchor.x,y:yt.anchor.y,width:0,height:0},yt.display,yt.placement)},onCloseTooltip:()=>Xe()})})),ct&&zt&&(Jt=Fn),ct&&zt&&!Ut&&(Jt=a.jsxs(N.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[Jt,a.jsx(N.Box,{sx:{borderTop:`solid ${En} 1px`,flex:"1"}})]})),Jt&&Ut)_t=a.jsx(Ed,{position:z.getView().getTabRatio()/10+"%",onPositionChange:({percent:yt})=>{z.getView().setTabRatio(Math.round(10*yt))},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='${V.palette.text.icon??V.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 ${En} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:Jt,elementAfter:sn});else if(Ut)_t=sn;else{if(!Jt)return a.jsx(N.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:ln?null:`solid ${En} 1px`}});_t=Jt}return a.jsx(N.Box,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:_t})},[$e,ye,z,Ye,wt,be,ct,Ut,ln,zt]),[wn,Cn]=s.useState(null),fn=s.useMemo(()=>({placement:"right-start",...wn?.popperProps}),[wn?.popperProps]),{reference:er,component:br}=l0({label:"contextMenu",popperProps:fn,anchor:wn?.anchor??{getBoundingClientRect:()=>new DOMRect(wn?.clientX||0,wn?.clientY||0)},onClose:()=>Cn(null),createPopupPanel:wn?.createPopupPanel});s.useEffect(()=>{wn?er.open(0):er.close(0)},[wn]);const wr=he((ve,ut)=>{if(ve?.isDefaultPrevented())return!0;ve.preventDefault(),wn&&wn.anchor===ve.currentTarget?Cn(null):Cn({anchor:ve.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:_t=>{const{floatReference:sn}=_t;return I({filter:ut,commands:be,floatReference:sn,sx:{...v}})}})},[I,v,be,z,wn]),Wo=he(ve=>{if(ve.originalEvent?.isDefaultPrevented())return!0;ve.originalEvent?.preventDefault(),Cn({clientX:ve.clientX,clientY:ve.clientY,createPopupPanel:ut=>{const{floatReference:_t}=ut;return S({commands:be,workbook:z,floatReference:_t,sx:{...v}})}})},[S,v,be,z]),Pr=he((ve,ut)=>{if(ve?.isDefaultPrevented())return!0;ve.preventDefault(),Cn({clientX:ve.clientX,clientY:ve.clientY,createPopupPanel:_t=>{const{floatReference:sn}=_t;return j({movable:ut,commands:be,floatReference:sn,sx:{...v}})}})},[j,v,be]);s.useMemo(()=>{const ve=[new mt("openContextMenu",()=>W.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[Ee.Shift]},{key:"ContextMenu"}]})];be.addCommands(ve,!0)},[be]),s.useEffect(()=>{be.getCommand("openContextMenu").updateCallback(()=>{const ve=$e.getSelection().getCoords().cell;W.current?.getGridElement()?.scrollCellCoordsIntoView(ve).then(ut=>{requestAnimationFrame(()=>{const _t=$e.getView().getZoomScale()/100,sn=$e.getColumnHeaders().findOffset(ve.colIndex+1)*_t,Jt=$e.getRowHeaders().findOffset(ve.rowIndex+1)*_t,yt=W.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};Wo({clientX:sn-yt.x-ut.left+6,clientY:Jt-yt.y-ut.top+6})})})})},[$e]);const Uo=he(ve=>{be?.dispatchToFocusedCommand(ve)},[be]),vr=he(()=>{ne.current},[z,ne.current]),Gr=s.useCallback(()=>{Vt("sheet")},[]),Sr=s.useCallback(()=>{Vt("formulaBar")},[]),Do=he(ve=>{const ut=B.CommonUtils.getOS()===B.CommonUtils.OSType.Firefox;return a.jsx(_1,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(ut?3:0)+"px solid transparent",borderBottom:(ut?3:0)+"px solid transparent",width:ut?"13px":void 0},...ve,sheet:$e,endGap:700,showCustomScrollButtons:!ut,onShowTooltip:_t=>{Qe(_t.anchor,_t.display,jg)},onCloseTooltip:()=>Xe()})},[$e]);s.useEffect(()=>{d&&W&&W.current&&W.current.focus()},[]);const[Fe,et]=s.useState(null),tt=s.useCallback(ve=>{be?.getCommand("openWorkbook")&&(ve.type==="dragenter"||ve.type==="dragover"?ve.dataTransfer?.types.includes("Files")?ve.dataTransfer.files[0]?.type?.startsWith("image/")||ve.dataTransfer.items[0]?.type?.startsWith("image/")||ve.dataTransfer.types.length===1&&et("Drop to open"):(ve.dataTransfer?.types.includes("text/html")||ve.dataTransfer?.types.includes("text/plain"),ve.dataTransfer.effectAllowed="none",ve.dataTransfer.dropEffect="none"):ve.type==="dragleave"&&et(null),ve.preventDefault())},[be]),Ze=he(ve=>{if(be?.getCommand("openWorkbook")&&(ve.preventDefault(),ve.stopPropagation(),et(null),ve.dataTransfer.files&&ve.dataTransfer.files.length>0)){const ut=ve.dataTransfer.files[0];if(!ut)return;if(ut?.type?.startsWith("image/")){const _t=W.current?.getGridElement().getViewFromClient(ve.clientX,ve.clientY);if(!_t)return;const sn=_t.getRelativePointFromClient(ve.clientX,ve.clientY),Jt=_t.toAbsoluteBounds({...sn,width:0,height:0}),yt=_t.getCellCoordsFromClient(ve.clientX,ve.clientY);if(!yt)return;be?.getCommand("insertImageFromFile")?.execute({file:ut,options:{bounds:{x:Jt.x,y:Jt.y}},goto:{range:{...yt}}})}else be?.getCommand("openWorkbook")?.execute(ut)}},[be,Fe]),rt=s.useMemo(()=>Fe?a.jsx(N.Box,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:ve=>ve.palette.divider,color:ve=>ve.palette.primary.dark},children:a.jsx(N.Typography,{variant:"h4",children:Fe})}):null,[Fe]),vt=s.useRef(null),Et=s.useMemo(()=>a.jsx(E2,{in:!J,nodeRef:vt,timeout:500,classNames:"animating",unmountOnExit:!0,children:a.jsx(N.Box,{style:{display:"flex",alignItems:"center",justifyContent:"center",left:"0px",top:"0px",width:"100%",height:"100%",pointerEvents:J?"none":c?.pointerEvents,position:"absolute",boxSizing:"border-box"},children:R({ref:vt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:J?0:c?.opacity,pointerEvents:J?"none":c?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...A}})})}),[J,R,A]),St=s.useMemo(()=>b({sx:{marginTop:ve=>ve.spacing(.25),marginLeft:ve=>ve.spacing(1),marginRight:ve=>ve.spacing(1)},workbook:z,sheetElement:W.current,gridStyle:Ye,onFocus:Sr,...w,NamedCollectionEditorProps:{restoreFocus:ve=>W.current.focus(ve),notifier:l,...w?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:be,...w?.NamedCollectionEditorProps?.commandPopupButtonProps}}},De),[b,w,z,Ye,be,J]),Mt=s.useCallback(ve=>{const{movable:ut,..._t}=ve,sn={movable:ut,onContextMenuCapture:qt=>{Pr(qt,ut)},..._t},Jt=ut.getContent().getType();let yt=null;if(Jt==="picture")return a.jsx(U9,{loadingPanel:a.jsx(gi,{transitionDelay:"100",style:{position:"absolute"},sx:{border:qt=>`solid 1px ${qt.palette.action.active}`}}),picture:ut.getContent(),description:ut.getDescription()??ut?.getName(),...sn});if(Jt==="chart"){const qt={...sn,chart:ut.getContent()};return a.jsx(Gk,{...qt})}if(yt=`Float of type '${Jt}'.`,typeof yt=="string"){const qt={...sn,description:yt};yt=a.jsx(Bk,{...qt})}return a.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:yt},ut.getUUID())},[]),Tt=s.useMemo(()=>L({style:md,onFocus:Gr,notifier:l,gridStyle:Ye,headersStyle:Ue,sheet:$e,commands:be,onSheetContextMenu:Wo,onViewportChange:ve=>{we(ve)},showScrollbars:!1,viewportComponent:te,onRepeatCommandChange:m,onElementLoad:ke,onShowColumnTooltip:ve=>{Qe(ve.anchor,ve.display,gc)},onShowRowTooltip:ve=>{Qe(ve.anchor,ve.display,kd)},onShowTooltip:ve=>{Qe({x:ve.anchor.x,y:ve.anchor.y,width:0,height:0},ve.display,ve.placement)},onCloseTooltip:()=>Xe(),renderMovable:Mt,...D,cellRenderProps:{onFilterButtonMouseDown:(ve,ut)=>{D?.cellRenderProps?.onFilterButtonMouseDown(ve,ut),wr(ve,ut)},...D?.cellRenderProps}},W),[L,be,D,$e,Ye,l,m]),en=s.useMemo(()=>{if(!ie)return null;const ve=!bt.isStructureAllowed();return a.jsx(Hu,{sx:{marginBottom:ut=>ut.spacing(.5),border:ut=>`solid ${ve?ut.palette.action.disabled:dt.alpha(ut.palette.divider,.2)} 1px`,borderRadius:ut=>`${ut.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{Re(!1),requestAnimationFrame(()=>{W.current.focus()})},readOnly:ve,commands:be,ref:Me,scripts:z.getScripts()})},[ie,be,z,l,bt]),bn=s.useMemo(()=>{const ve=a.jsx(R2,{style:{...md,marginRight:en&&zt?"0px":"6px"},viewport:xe,touchElement:W.current?.getGridElement()?.stage,onScrollViewport:yt=>{W.current?.getGridElement()?.scrollTo(yt)},showHorizontalScrollbar:Ut||ct,showVerticalScrollbar:gn,createHorizontalScrollbar:qn,createVerticalScrollbar:Do,children:Tt});let ut=ve;zt||(ut=a.jsxs(a.Fragment,{children:[ve,Fn]}));let _t=null,sn=4,Jt=13;return zt?_t="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":(_t="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",sn=13,Jt=4),a.jsx(Ed,{fixedPane:"after",position:"40%",minAfter:zt?"280px":"120px",splitDirection:zt?"row":"column",style:md,ref:co,resizerProps:{className:"styled-resizer",style:{minWidth:zt?"6px":void 0,minHeight:zt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${sn}' height='${Jt}' viewBox='0 0 ${sn} ${Jt}' version='1.1' fill='${V.palette.text.icon??V.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${_t}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:zt?"left center":"top center"}},elementBefore:ut,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:en,paneAfterProps:{style:{marginLeft:zt?"0px":"4px",marginRight:zt?"8px":"4px"}}})},[Ut,ct,qn,gn,xe,en,Tt,Fn,V,zt]),an=s.useMemo(()=>({boxSizing:"border-box",background:ve=>ve.palette.mode!=="dark"?Ye.header.fill:ve.palette.background.paper,"& *":{...J2(V),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${En} 1px`},...c}),[c,Ye]);return a.jsxs(N.Paper,{className:Jn("sheetxl-workbook",K_,{"Mui-focusVisible":G},G_,p),sx:an,style:u,square:!1,...ee,ref:ne,onFocus:ve=>{Q(!0),vr(),f?.(ve)},onBlur:ve=>{Q(!1),h?.(ve)},onKeyDown:ve=>{Uo(ve),g?.(ve)},onDragStart:ve=>{if(ve.target.src){const ut=new Image;ut.src=ve.target.src,ve.dataTransfer.setDragImage(ut,1,1)}},onDragEnter:tt,onDragLeave:tt,onDragOver:tt,onDrop:Ze,children:[a.jsxs("div",{className:Jn($f),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:J?void 0:0,"--sxl-app-color-high-contrast":V.palette.primary.main,"--sxl-app-color-primary":V.palette.primary.main,"--sxl-app-color-primary-dark":V.palette.primary.dark,"--sxl-app-color-primary-light":V.palette.primary.light,"--sxl-app-color-info":V.palette.info.main,"--sxl-app-color-info-dark":V.palette.info.dark,"--sxl-app-color-info-light":V.palette.info.light,"--sxl-app-color-secondary":V.palette.secondary.main,"--sxl-app-color-secondary-dark":V.palette.secondary.dark,"--sxl-app-color-secondary-light":V.palette.secondary.light,"--sxl-app-color-success":V.palette.success.main,"--sxl-app-color-success-dark":V.palette.success.dark,"--sxl-app-color-success-light":V.palette.success.light,"--sxl-app-color-warning":V.palette.warning.main,"--sxl-app-color-warning-dark":V.palette.warning.dark,"--sxl-app-color-warning-light":V.palette.warning.light,"--sxl-app-color-error":V.palette.error.main,"--sxl-app-color-error-dark":V.palette.error.dark,"--sxl-app-color-error-light":V.palette.error.light,"--sxl-app-color-text":V.palette.text.primary,"--sxl-app-color-text-secondary":V.palette.text.secondary,"--sxl-app-color-text-disabled":V.palette.text.disabled,"--sxl-app-color-background":V.palette.background.paper,"--sxl-app-color-button-surface":V.palette.grey[600],"--sxl-app-color-shadow":V.palette.action.focus,"--sxl-app-color-grey":V.palette.grey[500],"--sxl-app-filter-dark-invert":Ye.body.darkMode&&X?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Ye.body.darkMode?`linear-gradient(${dt.alpha("#fff",kn(5))}, ${dt.alpha("#fff",kn(5))})`:void 0},children:[no,Qt?St:null,a.jsx(N.Box,{sx:{marginBottom:ve=>ve.spacing(.75)}}),bn,Nn,a.jsx(yr,{arrow:!0,disableInteractive:!0,open:oe,title:a.jsx(N.Typography,{variant:"subtitle2",component:"div",children:Le}),placement:pt,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:Oe,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:oe?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(We.x,We.y,We.width,We.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:a.jsx(N.Box,{})}),br,rt]}),Et]})}));vm.displayName="WorkbookElement";const rT=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>dt.alpha(n.palette.background.paper,.6),borderRadius:n=>`${n.shape.borderRadius}px`,border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`,"&.Mui-disabled":{border:n=>`solid ${e?n.palette.divider:"transparent"} 1px`},"&:focus-within:not([disabled])":{backgroundColor:n=>n.palette.background.paper},"&:hover:not([disabled])":{border:n=>`solid ${e?n.palette.text?.primary:n.palette.divider} 1px`,backgroundColor:null},"&.Mui-focusVisible":{outline:n=>`solid ${n.palette.primary.main} 1px !important`,border:n=>`1px solid ${n.palette?.primary?.main} !important`}},Sm=s.memo(s.forwardRef((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:l,readOnly:d=!1,hidden:c,...u}=e,[p,f]=s.useState(!1),[h,g]=s.useState(!1),[m,x]=s.useState(r??""),[y,w]=s.useState(""),[b,{width:C}]=Ia(),[E,{width:k}]=Ia(),[M,T]=s.useState(!1),F=s.useRef(null),_=s.useRef(null),P=jo(t,()=>({requestWorkbookTitle:(v=null,S)=>{_.current={onAccept:v,requestReason:S?.requestReason},S?.selectAll&&F.current?.select(),F.current?.focus(S)},focus:v=>{F.current?.focus(v)}}),[]);return s.useLayoutEffect(()=>{T(r!==m),w(r),x(r)},[r]),s.useEffect(()=>{M&&C!==0&&Nt.debounce(()=>{T(!1)},300)()},[M,C]),s.useEffect(()=>{g(m&&!ti.isValidWindowsFilename(m))},[m]),c?null:a.jsx(N.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:M?"0":"1",transition:M?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:rc([P,E,t]),...u,children:a.jsx(zo,{label:_.current?.requestReason??"Workbook Name",children:a.jsxs(N.Box,{className:Jn({"Mui-focusVisible":p}),sx:{visibility:C===0?"hidden":"visible",display:"block",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",paddingLeft:"12px",paddingRight:"12px",marginLeft:"2px",marginRight:"2px",paddingTop:"2px",paddingBottom:"1px",...rT(!0,d),...n},children:[d?a.jsx(N.Typography,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:m!==y?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:v=>h?v.palette.error.dark:void 0},children:r??i}):a.jsx(N.Input,{sx:{width:`${Math.min(C+3,Math.max(k,P.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:v=>h?v.palette.error.dark:void 0,fontStyle:m!==y?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:d,spellCheck:!1,placeholder:i,onFocus:v=>{f(!0),v.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:F},onBlur:()=>{f(!1),h?x(y):(m!==y&&(l?.(m),m&&_.current?.onAccept?.(m,"blur")),_.current=null)},onChange:v=>{if(v.target.value.length>ti.MAX_WORKBOOK_NAME_SIZE)return v.stopPropagation(),void v.preventDefault();x(v.target.value)},onKeyDown:v=>{(ti.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(v.key)||v.target?.value.length>ti.MAX_WORKBOOK_NAME_SIZE)&&v.preventDefault(),v.which===Wt.Enter||v.which===Wt.Tab?(h?x(y):(l?.(m),m&&(_.current?.onAccept?.(m,"keydown"),_.current=null)),v.stopPropagation(),v.preventDefault(),o?.focus()):v.which===Wt.Escape&&(m===y?o?.focus():(x(y),setTimeout(()=>{v.target?.select()},0)),_.current=null,v.stopPropagation(),v.preventDefault())},value:m}),a.jsx(N.Box,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:m!==y?"italic":void 0,fontFamily:v=>v.typography.fontFamily,letterSpacing:"0.00938em"},children:m||i})]})})})}));Sm.displayName="WorkbookTitle";const iT=s.lazy(()=>Promise.resolve().then(()=>require("./Dr-PR7J1T91UjrPL.cjs")).then(e=>e.EagerStudio)),Cm=s.memo(s.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,renderLoadingPanel:l,...d}=e;return i&&B.LicenseManager.setLicenseKey(i),s.useMemo(()=>{const c={transitionDelay:"160ms",transparentBackground:!0};return a.jsx(N.Box,{sx:n,style:{display:"flex",alignItems:"center",justifyContent:"center",...o},children:l?.(c)??a.jsx(gi,{...c})})},[n,o,l]),a.jsx(a.Fragment,{children:a.jsx(iT,{...d,className:r,sx:n,renderLoadingPanel:l,style:o,ref:t})})}));Cm.displayName="Studio";const lT=[{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}],aT=[{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 km{constructor(t=lT,n=aT){this._readFormatType=[],this._writeFormatType=[],this._readFormatType=Object.freeze([...t]),this._writeFormatType=Object.freeze([...n])}getReadFormats(){return this._readFormatType}getWriteFormats(){return this._writeFormatType}getAllReadFormatTypeAsString(){const t=[],n=this._readFormatType;for(let o=0;o<n.length;o++)for(let r=0;r<n[o].exts.length;r++)t.push("."+n[o].exts[r]);return t}async writeFile(t,n,o){if(!n||!t)throw new Error("Workbook model or file name must be provided.");try{return(await Promise.resolve().then(()=>f8)).WorkbookIO.writeFile(t,n,o)}catch(r){throw new Error("Unable to load io library",{cause:r})}}async read(t,n){let o,r;const i=await n?.showBusy?.(`Opening${t.name?` ${t.name}`:""}...`);try{r=await Promise.resolve().then(()=>f8)}catch(l){throw l}try{return await r.WorkbookIO.read({...t,async onStart(l){await t?.onStart?.(l),o=await n?.showBusy?.(`Opening '${l}'...`)}})}catch(l){throw i?.(),o?.(),l}finally{i?.(),o?.()}}}const sT=new km;exports.$7=Q2,exports.$i=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),exports.$t=gi,exports.A0=To,exports.AppearanceCommandButton=b_,exports.At=Js,exports.AutoColorPosition=qi,exports.Bi=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),exports.BorderCommandButton=Tf,exports.BorderPopupButton=_f,exports.BorderStyleButton=Ef,exports.Checkboard=Cf,exports.ClearCommandButton=ku,exports.ColorButton=tc,exports.ColorCommandButton=il,exports.ColorPanel=kf,exports.ColorPanelType=Sf,exports.ColorPopupButton=Cu,exports.D8=t2,exports.DeleteCellsCommandButton=_u,exports.DocThemeCommandButton=Xf,exports.E5=us,exports.Fi=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),exports.FillCommandButton=Lf,exports.FilterColumnMenu=Au,exports.FilterCommandButton=f_,exports.Filters=lm,exports.FindCommandButton=Rf,exports.FontFamilyCommandButton=Af,exports.FontSizeCommandButton=If,exports.FormulaBar=Pu,exports.FreezeCommandButton=Mf,exports.Ga=sw,exports.HelpCommandButton=w_,exports.Hi=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"}),a.jsx("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"})]}),exports.HorizontalAlignCommandButton=Pp,exports.Ii=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),exports.InsertCellsCommandButton=Eu,exports.InsertImageCommandButton=Ru,exports.InsertScriptCommandButton=fm,exports.Kt=ll,exports.L5=vn,exports.L7=X2,exports.Li=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"}),a.jsx("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"})]}),exports.Lo=ya,exports.MergeCommandButton=jf,exports.Mi=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"})]}),exports.NamedCollectionEditor=Ou,exports.NamedInput=Qf,exports.NumberFormatCommandButton=Df,exports.PasteCommandButton=Mu,exports.PresetCellStylesCommandButton=Hf,exports.PresetTableStylesCommandButton=qf,exports.Pt=It,exports.Qe=Te,exports.QuickFormulaSumCommandPopupButton=v_,exports.RangeInput=em,exports.Rd=vu,exports.Re=jh,exports.Ri=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),exports.RunScriptCommandButton=$u,exports.ScriptEditorToolbar=Vu,exports.ScriptWorkspace=Hu,exports.SheetTab=Fu,exports.SheetTabMenu=zu,exports.SheetZoomScale=Iu,exports.SheetsAllMenu=Bu,exports.SortFilterCommandButton=Tu,exports.StatusBar=Du,exports.Studio=Cm,exports.StyledStrokeIcon=C2,exports.T=he,exports.THEME_ID=F0,exports.TableStyleCanvasPreview=Uf,exports.TableStyleOptionsPanel=x_,exports.TableStylePreview=Wf,exports.TextEffectsCommandButton=Ff,exports.TextOverflowCommandButton=Fp,exports.TextRotateCommandButton=zp,exports.ThemeMode={Light:"light",Dark:"dark"},exports.ThemeProvider=Qp,exports.ThemeSelectButton=Zf,exports.ThemeSelectPanel=Gf,exports.ThemeSelectPopupButton=Kf,exports.UnderlineCommandButton=zf,exports.UndoRedoCommandButton=ju,exports.Ut=Yh,exports.VerticalAlignCommandButton=Ap,exports.Vi=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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 "}),a.jsx("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"}),a.jsx("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"})]}),exports.ViewGridLinesCommandButton=Of,exports.ViewHeadingsCommandButton=Bf,exports.WalkingCopyCommandButton=nc,exports.Wi=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})}),exports.WorkbookContextMenu=Uu,exports.WorkbookElement=vm,exports.WorkbookIO=sT,exports.WorkbookStrip=Wu,exports.WorkbookTitle=Sm,exports.WorkbookViewCommandButton=Nf,exports.Xe=mt,exports.Yt=Nt,exports.Z=Ee,exports.Z0=Fo,exports._WorkbookIO=km,exports._extends=L1,exports._objectWithoutPropertiesLoose=Nu,exports._setPrototypeOf=O1,exports.aa=e=>a.jsxs(N.SvgIcon,{...e,children:[a.jsx("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"}),a.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),exports.al=function(){const[e,t]=s.useState(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=us({disableAutoDestroy:!0});return(l,d,c,u)=>new Promise((p,f)=>{const h={...c,onHide:()=>{const y=e.get(l);c?.onHide?.(),t(w=>(w.delete(l),w)),i(y.id)},onDone:y=>{const w=e.get(l);t(b=>(b.delete(l),b)),c?.onDone?.(y),w&&w.id&&!u?.disableAutoDestroy&&r(w.id)},onShown:y=>{t(w=>{const b=w.get(l);return w.set(l,{...b,element:y}),w}),p(y)},open:!0},g=e.get(l);if(g)return o(g.id,h),void p(g.element);if(!d)return void f("invalid function");const m=s.lazy(d),x=n(m,h,{destroyOnClose:!u?.disableAutoDestroy});t(y=>(y.set(l,{id:x.id,element:null}),y))})},exports.b3=l0,exports.clsx=Jn,exports.commonjsGlobal=Pi,exports.createGridStyleFromMUITheme=_2,exports.createTheme=Gp,exports.defaultNewWorkbook=ym,exports.defaultTheme=Jp,exports.dl=nl,exports.ed=e=>a.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[a.jsx("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"}),a.jsx("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"}),a.jsx("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"}),a.jsx("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"})]}),exports.el=(e,t)=>{let n=Pd({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:dt.alpha(n.palette.text.secondary,.75),icon:e?dt.alpha(n.palette.text.secondary,.7):dt.alpha(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=S8.deepmerge(o,t)),Pd(r)},exports.eo=Wt,exports.fo=H0,exports.getDefaultExportFromCjs=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.getOverlayAlpha=kn,exports.ht=Gt,exports.io=pn,exports.isPlainObject=f0,exports.ji=qh,exports.jn=Sp,exports.ll=()=>{const{showModal:e}=us();return t=>new Promise(n=>{const o=e(cv,{...t,onOption(r){t?.onOption?.(r,r===t.cancelOption,r===t.defaultOption),n(r)},onDone:()=>{t?.onDone?.(),o.hide()}})})},exports.mergeRefs=rc,exports.n2=zo,exports.ol=function(e){var t=e.children,n=e.legacy,o=n!==void 0&&n,r=e.suspense,i=r===void 0||r,l=e.fallback,d=l===void 0?null:l,c=s.useReducer(Tw,_w),u=c[0],p=c[1],f=s.useCallback(function(w,b){var C=up(b,jw);w?p({type:Rr.UPDATE,payload:{id:w,props:C}}):console.error(Ac)},[p]),h=s.useCallback(function(w){w?p({type:Rr.HIDE,payload:{id:w}}):console.error(Ac)},[p]),g=s.useCallback(function(w){w?p({type:Rr.DESTROY,payload:{id:w}}):console.error(Ac)},[p]),m=s.useCallback(function(w){w?p({type:Rr.DESTROY_BY_ROOT_ID,payload:{rootId:w}}):console.error("[ERROR]: Modal root ID is missing")},[p]),x=s.useCallback(function(w,b,C){var E=pp(8);return C&&C.rootId&&(E=C.rootId+"."+E),p({type:Rr.SHOW,payload:{id:E,component:w,props:b,options:C}}),{id:E,hide:function(){return h(E)},destroy:function(){return g(E)},update:function(k){return f(E,k)}}},[p,h,g,f]),y=i?s.Suspense:s.Fragment;return s.createElement(hp.Provider,{value:{state:u,updateModal:f,hideModal:h,destroyModal:g,showModal:x,destroyModalsByRootId:m}},t,s.createElement(y,Object.assign({},i&&{fallback:d}),Object.keys(u).map(function(w){var b,C=u[w],E=C.component,k=C.props,M=C.options,T=function(){var F,_;k!=null&&k.onExited&&k.onExited.apply(k,arguments),k!=null&&(F=k.TransitionProps)!=null&&F.onExited&&(_=k.TransitionProps).onExited.apply(_,arguments),g(w)};return b=o?{onExited:T}:{TransitionProps:$o({},k?.TransitionProps,{onExited:T})},s.createElement(E,Object.assign({},k,{key:w,onClose:function(){M&&M.hideOnClose&&h(w),M&&M.destroyOnClose&&M.hideOnClose&&g(w),k&&k.onClose&&k.onClose.apply(k,arguments)}},M&&!M.destroyOnClose&&b))})))},exports.renderWorkbookLoadingPanel=wm,exports.renderWorkbookToolbars=gm,exports.requirePropTypes=Ba,exports.rl=dp,exports.s0=un,exports.sl=()=>{const{showModal:e}=us();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(i=>{const l=e(dv,{defaultOption:n,cancelOption:o,...r,onOption(d){r?.onOption?.(d,d===o,d===n),i({input:"",option:d})},onInputOption(d,c){r?.onInputOption?.(d,c),i({input:d,option:c})},onDone:()=>{r?.onDone?.(),l.hide()}})})}},exports.styleFunctionSx=sl,exports.useMeasure=Ia,exports.useResolvedThemeMode=function(e){const{mode:t}=e||{},[n,o]=s.useState(()=>{if(t==="light"||t==="dark")return{themeMode:t,source:"prop"};if(typeof document<"u"){const r=s8();if(r)return{themeMode:r,source:"class"}}return{themeMode:c8(),source:"media"}});return s.useEffect(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const r=()=>{const c=s8();if(c)o({themeMode:c,source:"class"});else{const u=c8();o({themeMode:u,source:"media"})}},i=new MutationObserver(r),l=[document.documentElement,document.body].filter(Boolean);for(const c of l)i.observe(c,{attributes:!0,attributeFilter:["class"]});const d=window.matchMedia("(prefers-color-scheme: dark)");return d.addEventListener("change",r),r(),()=>{i.disconnect(),d.removeEventListener("change",r)}},[t]),n},exports.useTheme=Zr,exports.useWorkbookCommands=xm,exports.v4=Dn,exports.vr=je,exports.w5=ge,exports.wo=({manager:e,commands:t,disabled:n,notifier:o=Js})=>{const r=he(l=>{try{e?.undo(l)}catch(d){o.showError?.(d)}},[e]),i=he(l=>{try{e?.redo(l)}catch(d){o.showError?.(d)}},[e]);return s.useMemo(()=>{if(!t)return;const l={contains:c=>!0,focus(){}},d=[new Te("undo",l,{label:"Undo",description:D5,shortcut:{key:"z",modifiers:[Ee.Ctrl]},disabled:!0},r),new Te("redo",l,{label:"Redo",description:L5,shortcut:[{key:"y",modifiers:[Ee.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[Ee.Alt]}],disabled:!0},i)];t?.addCommands(d,!0)},[t]),s.useEffect(()=>{if(!t)return;const l=()=>{const c=e?.getTopUndoDescription(),u={};var p;t.getCommand("undo").update({disabled:n||!e||!e.hasUndo(),description:c?(p=c,`Undo ${p}`):D5,state:u,context:{undoManager:e}});const f=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:f?zg(f):L5,state:u,context:{undoManager:e}})};if(l(),!e)return;const d=e.addListener({onStackChange(){l()}});return()=>d?.()},[e,t,n]),{undo:r,redo:i}},exports.yo=Ht,exports.yt=i0,exports.zi=e=>a.jsx(N.SvgIcon,{...e,children:a.jsx("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"})});