@sheetxl/studio-vanilla 0.4.7 → 0.4.8

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 (92) hide show
  1. package/README.md +3 -3
  2. package/browser/cjs/{C14PMFhYpGUhrvq1.cjs → 3nTDo2EiTknjadbt.cjs} +1 -1
  3. package/browser/cjs/6Wu3sLyx-7NM6CXS.cjs +301 -0
  4. package/browser/cjs/B11W4AIKbkJQG6ug.cjs +6 -0
  5. package/browser/cjs/{Bgl5W-fCpnnnO3_F.cjs → BCnlTOmUDmizyvVV.cjs} +2 -2
  6. package/browser/cjs/{DE5MhliNUlcqzd9C.cjs → BIPxYhhi1F-y0gSm.cjs} +3 -3
  7. package/browser/cjs/{D5I2M8yOTfapq6d7.cjs → BYhOQCFEzewgsKDn.cjs} +2 -2
  8. package/browser/cjs/{C73dxZSAw05vqEtJ.cjs → BqLDj2GlSzX8ZN3l.cjs} +1 -1
  9. package/browser/cjs/{00LGtBNvHHqHMD_7.cjs → C2B3wbeahcHlbOBZ.cjs} +2 -2
  10. package/browser/cjs/C6nZKAevPqj8zJY-.cjs +6 -0
  11. package/browser/cjs/{B0pcLInszgzhrjui.cjs → CD_HItzF2RneMAER.cjs} +2 -2
  12. package/browser/cjs/{D8WkJStmUKY23vEC.cjs → CE5NVYltiso41NzK.cjs} +1 -1
  13. package/browser/cjs/{DPgVQdCYWI3fGYJ2.cjs → CHSE1pa8SMApg4BM.cjs} +2 -2
  14. package/browser/cjs/{HCih5BN1MZGUuqGG.cjs → CTXKzcsm-W1ujL_U.cjs} +6 -6
  15. package/browser/cjs/{CQAkk0gbl342HFs-.cjs → CcQjGGiCx6Qz7yJ4.cjs} +1 -1
  16. package/browser/cjs/{BC5f5sl2pjp8FYIk.cjs → Cqymi9AOXO_JYvY4.cjs} +2 -2
  17. package/browser/cjs/{DGlLxziqSNTW0c6v.cjs → D6pPBbRPLTNFSXuO.cjs} +1 -1
  18. package/browser/cjs/{DNQqhDlfagjGC2sO.cjs → DMUSzq5n2k0WNFw6.cjs} +2 -2
  19. package/browser/cjs/DWTMnPR33rKK87Xt.cjs +12 -0
  20. package/browser/cjs/{BBuQH_geF9Xg5HPn.cjs → Dds58NEqJ0OalWH3.cjs} +4 -4
  21. package/browser/cjs/{BKUcozo2wEv2ay2w.cjs → Dy4SB47It0LGbh2I.cjs} +1 -1
  22. package/browser/cjs/{DUrNYTSMA5KQTG77.cjs → VJLb1uMfbKAUW1QF.cjs} +8 -8
  23. package/browser/cjs/{DyQffD3gRWH5-nOp.cjs → bHWvGntvmuk8t7sX.cjs} +2 -2
  24. package/browser/cjs/{Clp5qh0fApIxsE35.cjs → euAV1pPrNOIb6DV4.cjs} +2 -2
  25. package/browser/cjs/{BC9xtBySc8rix4-F.cjs → i0D2haODisHW8uGg.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{DDFDUxH5Mew5rcdT.cjs → oNi7wirDlZ81Lm0Z.cjs} +1 -1
  28. package/browser/cjs/z1aNSOtWsEE21p2H.cjs +6 -0
  29. package/browser/esm/{f7jo5w0h4-vNZtjZ.mjs → 2RGq163l1wYJKGsa.mjs} +10886 -10877
  30. package/{cdn/assets/Cjl-eP68w6LXe0zR.js → browser/esm/4C7Rg83L5RYFoOvl.mjs} +5 -5
  31. package/{cdn/assets/CGL2dNgGZEziA1cG.js → browser/esm/6KgR81NK4yzANTBT.mjs} +8 -8
  32. package/{cdn/assets/D7ubLFCJK5RzTJOF.js → browser/esm/B1CYiJmSpyx4TD5r.mjs} +20 -20
  33. package/{cdn/assets/CzeybhBUMRs64-Mp.js → browser/esm/B7qUiL1xPnzfOHZw.mjs} +1 -1
  34. package/{cdn/assets/CHsVgElx78EEmCPY.js → browser/esm/BEFQcBJ71bA297Zu.mjs} +1 -1
  35. package/browser/esm/{C8PrD3vZULKFp7HL.mjs → BEIn7yNWsHNJisB6.mjs} +3 -3
  36. package/browser/esm/{DnEhhjrb_iK5ugui.mjs → BM74iVi-iQkHbrfo.mjs} +2 -2
  37. package/browser/esm/{DE0B_sDQJ2uyFacb.mjs → BP8kNG31HYSkk1VW.mjs} +26 -26
  38. package/browser/esm/{CdbRlOwSBEqFzw-Q.mjs → CA_DRvBOFOlhezCt.mjs} +8 -8
  39. package/browser/esm/{CrnqRK0Y_R59nkb0.mjs → CDkmbShJijwq4EBo.mjs} +6 -6
  40. package/browser/esm/{IhAvisOcXUTXM4fs.mjs → CPi83FXApMlTaVbs.mjs} +1 -1
  41. package/browser/esm/{bMPbHealpRV0cNsU.mjs → C_hRuPoaT857EnC1.mjs} +5 -5
  42. package/browser/esm/{fLUOP3GBZp9qFVpK.mjs → CjVsKZEPAncg5mIk.mjs} +1 -1
  43. package/browser/esm/{DQj7TIf3hkBsvgpu.mjs → Ckz080o58XOgRhqj.mjs} +2 -2
  44. package/browser/esm/{DJBqN2bozSAMAOUl.mjs → ClXspoNrNV-A8BaL.mjs} +2 -2
  45. package/browser/esm/{BssMWXVsjFZUIbK_.mjs → DQ0Li3WfKbZxSFuB.mjs} +2 -2
  46. package/browser/esm/{D03_7nbUXeSyElQe.mjs → DXyJaUwHLq39-Jfa.mjs} +5 -5
  47. package/browser/esm/{t16pmig4Yv-yOK3J.mjs → D_FC0zteMRPriWTD.mjs} +1 -1
  48. package/browser/esm/{CxesFvTfE_FHHeOa.mjs → DnWiOUNTPvi_llPT.mjs} +1 -1
  49. package/browser/esm/{B6OcmPVBCjTZiEO8.mjs → DyUvHYGMNA9W2zL6.mjs} +1 -1
  50. package/browser/esm/{DCLOetlYWQ4f6912.mjs → EUFvcP5R4HFDLn2V.mjs} +5 -5
  51. package/browser/esm/cSe92c0HnvbRwiVM.mjs +944 -0
  52. package/{cdn/assets/CSnM9G1CZ81wivjo.js → browser/esm/eXQ_1uhRMyN-hfDZ.mjs} +1 -1
  53. package/browser/esm/{BepIgOjpel6ND31E.mjs → h4NbNvV8KCL9Tl1v.mjs} +16 -16
  54. package/browser/esm/index.mjs +2 -2
  55. package/{cdn/assets/CNdoHnLQKWWUIXFN.js → browser/esm/xlL3Ai-ka9qMVeua.mjs} +2 -2
  56. package/cdn/assets/{CUqr4I0B5RzMvyfH.js → B2hDWpWSEoChxhVY.js} +11896 -11887
  57. package/{browser/esm/CzeybhBUMRs64-Mp.mjs → cdn/assets/B7qUiL1xPnzfOHZw.js} +1 -1
  58. package/{browser/esm/CHsVgElx78EEmCPY.mjs → cdn/assets/BEFQcBJ71bA297Zu.js} +1 -1
  59. package/cdn/assets/{DucOHAWR0Drvzaz2.js → BXBP2rNGQxrgUPvU.js} +5 -5
  60. package/cdn/assets/{BPKaeP61qs19hdJx.js → BgChN-ZVYUOMDX9_.js} +26 -26
  61. package/cdn/assets/{ChAbZK53mfolDCTD.js → Bvy1txLm7c3LbPL7.js} +6 -6
  62. package/cdn/assets/{BWyjsqZ8W7LRq-2H.js → C1x5-f1q8NeSwRA2.js} +16 -16
  63. package/{browser/esm/DfczJdsv--tsazCR.mjs → cdn/assets/C5NMOq74C3Sme49x.js} +20 -20
  64. package/cdn/assets/{BKMHTFN6LTvRZnlS.js → CLA1BGtRbWm0K0U0.js} +2 -2
  65. package/cdn/assets/{IhAvisOcXUTXM4fs.js → CPi83FXApMlTaVbs.js} +1 -1
  66. package/cdn/assets/{fLUOP3GBZp9qFVpK.js → CjVsKZEPAncg5mIk.js} +1 -1
  67. package/cdn/assets/{CRv8MUg-_zmoKFIt.js → CpVan9KpuEGXgwIK.js} +2 -2
  68. package/cdn/assets/{B-7gpSVkQWekyOlk.js → CtDntnnwJW1rZ3sM.js} +5 -5
  69. package/cdn/assets/{BFDNPYBEj2T1cP38.js → CuG5WoZ4OOj9RCsv.js} +3 -3
  70. package/{browser/esm/CnL3YzjxBxFK7qfL.mjs → cdn/assets/DTvvMKZZfsVRhbow.js} +5 -5
  71. package/cdn/assets/{t16pmig4Yv-yOK3J.js → D_FC0zteMRPriWTD.js} +1 -1
  72. package/cdn/assets/{CB496hBmWELULf2f.js → Dbd0AFDlzQDW0tOg.js} +5 -5
  73. package/cdn/assets/{CxesFvTfE_FHHeOa.js → DnWiOUNTPvi_llPT.js} +1 -1
  74. package/cdn/assets/{DPdbTtHJ9qzLqsDN.js → DppHXtCDGzttFdS4.js} +2 -2
  75. package/cdn/assets/{CvfZjHPPpLdHBSRa.js → DuU1-7vd87A1wfGJ.js} +2 -2
  76. package/cdn/assets/{B6OcmPVBCjTZiEO8.js → DyUvHYGMNA9W2zL6.js} +1 -1
  77. package/{browser/esm/C3vvXeb_u4RQddV1.mjs → cdn/assets/O1XID2whLDb1cTWS.js} +8 -8
  78. package/{browser/esm/CSnM9G1CZ81wivjo.mjs → cdn/assets/eXQ_1uhRMyN-hfDZ.js} +1 -1
  79. package/cdn/assets/{D8lNg-ZFq3SVt0qa.js → g4FhlroGKmJM7Utd.js} +8 -8
  80. package/cdn/assets/tJI1G_FjDgqWo3rJ.js +944 -0
  81. package/{browser/esm/CNdoHnLQKWWUIXFN.mjs → cdn/assets/xlL3Ai-ka9qMVeua.js} +2 -2
  82. package/cdn/index.js +24 -24
  83. package/cdn/loader.js +2 -2
  84. package/package.json +3 -3
  85. package/types/index.d.ts +8 -8
  86. package/browser/cjs/BO0CySmcqi-pkV4p.cjs +0 -6
  87. package/browser/cjs/BoG6Gi-uqIbSJdRv.cjs +0 -12
  88. package/browser/cjs/DD6f8EPYnuPb41GO.cjs +0 -6
  89. package/browser/cjs/DsuUTTVqL23hXXxq.cjs +0 -6
  90. package/browser/cjs/Dva96jeug6x2xYZm.cjs +0 -301
  91. package/browser/esm/6w21A0XUkGBQu8-3.mjs +0 -940
  92. package/cdn/assets/CHZP9CrMHXri-Ghe.js +0 -940
@@ -1,301 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.7
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 u=require("react"),s=require("react/jsx-runtime"),Qu=require("react-dom/client"),$=require("@sheetxl/sdk"),yo=require("react-dom");function e2(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 G=e2(u),XC=e2(s),sm=e2(Qu),YC=e2(yo),_c={black:"#000",white:"#fff"},JC="#e57373",QC="#ef5350",ek="#f44336",cm="#d32f2f",tk="#c62828",nk="#f3e5f5",ok="#ce93d8",rk="#ba68c8",ik="#ab47bc",ak="#9c27b0",lk="#7b1fa2",sk="#e3f2fd",ck="#90caf9",dm="#42a5f5",dk="#1976d2",uk="#1565c0",pk="#4fc3f7",hk="#29b6f6",fk="#03a9f4",um="#0288d1",mk="#01579b",gk="#81c784",yk="#66bb6a",xk="#4caf50",bk="#388e3c",vk="#2e7d32",wk="#1b5e20",Sk="#ffb74d",Ck="#ffa726",kk="#ff9800",Ek="#f57c00",Mk="#e65100",Tk={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"};function Ma(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 s1="$$material";function ru(){return ru=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},ru.apply(null,arguments)}var _k=function(){function e(n){var o=this;this._insertTag=function(r){var i;i=o.tags.length===0?o.insertionPoint?o.insertionPoint.nextSibling:o.prepend?o.container.firstChild:o.before:o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(r,i),o.tags.push(r)},this.isSpeedy=n.speedy===void 0||n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(i){var a=document.createElement("style");return a.setAttribute("data-emotion",i.key),i.nonce!==void 0&&a.setAttribute("nonce",i.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(i){if(i.sheet)return i.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===i)return document.styleSheets[a]}(o);try{r.insertRule(n,r.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Sr="-ms-",pm="-moz-",Gn="-webkit-",vy="comm",Xh="rule",Yh="decl",wy="@keyframes",jk=Math.abs,t2=String.fromCharCode,Rk=Object.assign;function Sy(e){return e.trim()}function Zn(e,t,n){return e.replace(t,n)}function m5(e,t){return e.indexOf(t)}function gr(e,t){return 0|e.charCodeAt(t)}function jc(e,t,n){return e.slice(t,n)}function oa(e){return e.length}function Jh(e){return e.length}function F1(e,t){return t.push(e),e}var n2=1,Ds=1,Cy=0,qr=0,er=0,Js="";function o2(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:n2,column:Ds,length:a,return:""}}function b0(e,t){return Rk(o2("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ik(){return er=qr>0?gr(Js,--qr):0,Ds--,er===10&&(Ds=1,n2--),er}function si(){return er=qr<Cy?gr(Js,qr++):0,Ds++,er===10&&(Ds=1,n2++),er}function ca(){return gr(Js,qr)}function Od(){return qr}function c1(e,t){return jc(Js,e,t)}function Rc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ky(e){return n2=Ds=1,Cy=oa(Js=e),qr=0,[]}function Ey(e){return Js="",e}function Dd(e){return Sy(c1(qr-1,g5(e===91?e+2:e===40?e+1:e)))}function Pk(e){for(;(er=ca())&&er<33;)si();return Rc(e)>2||Rc(er)>3?"":" "}function Ok(e,t){for(;--t&&si()&&!(er<48||er>102||er>57&&er<65||er>70&&er<97););return c1(e,Od()+(t<6&&ca()==32&&si()==32))}function g5(e){for(;si();)switch(er){case e:return qr;case 34:case 39:e!==34&&e!==39&&g5(er);break;case 40:e===41&&g5(e);break;case 92:si()}return qr}function Dk(e,t){for(;si()&&e+er!==57&&(e+er!==84||ca()!==47););return"/*"+c1(t,qr-1)+"*"+t2(e===47?e:si())}function Ak(e){for(;!Rc(ca());)si();return c1(e,qr)}function Lk(e){return Ey(Ad("",null,null,null,[""],e=ky(e),0,[0],e))}function Ad(e,t,n,o,r,i,a,l,c){for(var d=0,p=0,f=a,h=0,g=0,m=0,y=1,x=1,v=1,b=0,w="",E=r,C=i,R=o,_=w;x;)switch(m=b,b=si()){case 40:if(m!=108&&gr(_,f-1)==58){m5(_+=Zn(Dd(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:_+=Dd(b);break;case 9:case 10:case 13:case 32:_+=Pk(m);break;case 92:_+=Ok(Od()-1,7);continue;case 47:switch(ca()){case 42:case 47:F1(zk(Dk(si(),Od()),t,n),c);break;default:_+="/"}break;case 123*y:l[d++]=oa(_)*v;case 125*y:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+p:v==-1&&(_=Zn(_,/\f/g,"")),g>0&&oa(_)-f&&F1(g>32?fm(_+";",o,n,f-1):fm(Zn(_," ","")+";",o,n,f-2),c);break;case 59:_+=";";default:if(F1(R=hm(_,t,n,d,p,r,l,w,E=[],C=[],f),i),b===123)if(p===0)Ad(_,t,R,R,E,i,f,l,C);else switch(h===99&&gr(_,3)===110?100:h){case 100:case 108:case 109:case 115:Ad(e,R,R,o&&F1(hm(e,R,R,0,0,r,l,w,r,E=[],f),C),r,C,f,l,o?E:C);break;default:Ad(_,R,R,R,[""],C,0,l,C)}}d=p=g=0,y=v=1,w=_="",f=a;break;case 58:f=1+oa(_),g=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&Ik()==125)continue}switch(_+=t2(b),b*y){case 38:v=p>0?1:(_+="\f",-1);break;case 44:l[d++]=(oa(_)-1)*v,v=1;break;case 64:ca()===45&&(_+=Dd(si())),h=ca(),p=f=oa(w=_+=Ak(Od())),b++;break;case 45:m===45&&oa(_)==2&&(y=0)}}return i}function hm(e,t,n,o,r,i,a,l,c,d,p){for(var f=r-1,h=r===0?i:[""],g=Jh(h),m=0,y=0,x=0;m<o;++m)for(var v=0,b=jc(e,f+1,f=jk(y=a[m])),w=e;v<g;++v)(w=Sy(y>0?h[v]+" "+b:Zn(b,/&\f/g,h[v])))&&(c[x++]=w);return o2(e,t,n,r===0?Xh:l,c,d,p)}function zk(e,t,n){return o2(e,t,n,vy,t2(er),jc(e,2,-2),0)}function fm(e,t,n,o){return o2(e,t,n,Yh,jc(e,0,o),jc(e,o+1,-1),o)}function Cs(e,t){for(var n="",o=Jh(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function Fk(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Yh:return e.return=e.return||e.value;case vy:return"";case wy:return e.return=e.value+"{"+Cs(e.children,o)+"}";case Xh:e.value=e.props.join(",")}return oa(n=Cs(e.children,o))?e.return=e.value+"{"+n+"}":""}function My(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bk=function(e,t,n){for(var o=0,r=0;o=r,r=ca(),o===38&&r===12&&(t[n]=1),!Rc(r);)si();return c1(e,qr)},Nk=function(e,t){return Ey(function(n,o){var r=-1,i=44;do switch(Rc(i)){case 0:i===38&&ca()===12&&(o[r]=1),n[r]+=Bk(qr-1,o,r);break;case 2:n[r]+=Dd(i);break;case 4:if(i===44){n[++r]=ca()===58?"&\f":"",o[r]=n[r].length;break}default:n[r]+=t2(i)}while(i=si());return n}(ky(e),t))},mm=new WeakMap,$k=function(e){if(e.type==="rule"&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(!(n=n.parent))return;if((e.props.length!==1||t.charCodeAt(0)===58||mm.get(n))&&!o){mm.set(e,!0);for(var r=[],i=Nk(t,r),a=n.props,l=0,c=0;l<i.length;l++)for(var d=0;d<a.length;d++,c++)e.props[c]=r[l]?i[l].replace(/&\f/g,a[d]):a[d]+" "+i[l]}}},Vk=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ty(e,t){switch(function(n,o){return 45^gr(n,0)?(((o<<2^gr(n,0))<<2^gr(n,1))<<2^gr(n,2))<<2^gr(n,3):0}(e,t)){case 5103:return Gn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gn+e+pm+e+Sr+e+e;case 6828:case 4268:return Gn+e+Sr+e+e;case 6165:return Gn+e+Sr+"flex-"+e+e;case 5187:return Gn+e+Zn(e,/(\w+).+(:[^]+)/,Gn+"box-$1$2"+Sr+"flex-$1$2")+e;case 5443:return Gn+e+Sr+"flex-item-"+Zn(e,/flex-|-self/,"")+e;case 4675:return Gn+e+Sr+"flex-line-pack"+Zn(e,/align-content|flex-|-self/,"")+e;case 5548:return Gn+e+Sr+Zn(e,"shrink","negative")+e;case 5292:return Gn+e+Sr+Zn(e,"basis","preferred-size")+e;case 6060:return Gn+"box-"+Zn(e,"-grow","")+Gn+e+Sr+Zn(e,"grow","positive")+e;case 4554:return Gn+Zn(e,/([^-])(transform)/g,"$1"+Gn+"$2")+e;case 6187:return Zn(Zn(Zn(e,/(zoom-|grab)/,Gn+"$1"),/(image-set)/,Gn+"$1"),e,"")+e;case 5495:case 3959:return Zn(e,/(image-set\([^]*)/,Gn+"$1$`$1");case 4968:return Zn(Zn(e,/(.+:)(flex-)?(.*)/,Gn+"box-pack:$3"+Sr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gn+e+e;case 4095:case 3583:case 4068:case 2532:return Zn(e,/(.+)-inline(.+)/,Gn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oa(e)-1-t>6)switch(gr(e,t+1)){case 109:if(gr(e,t+4)!==45)break;case 102:return Zn(e,/(.+:)(.+)-([^]+)/,"$1"+Gn+"$2-$3$1"+pm+(gr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~m5(e,"stretch")?Ty(Zn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(gr(e,t+1)!==115)break;case 6444:switch(gr(e,oa(e)-3-(~m5(e,"!important")&&10))){case 107:return Zn(e,":",":"+Gn)+e;case 101:return Zn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Gn+(gr(e,14)===45?"inline-":"")+"box$3$1"+Gn+"$2$3$1"+Sr+"$2box$3")+e}break;case 5936:switch(gr(e,t+11)){case 114:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gn+e+Sr+Zn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Gn+e+Sr+e+e}return e}var gm,ym,xm,bm,Hk=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case Yh:e.return=Ty(e.value,e.length);break;case wy:return Cs([b0(e,{value:Zn(e.value,"@","@"+Gn)})],o);case Xh:if(e.length)return function(r,i){return r.map(i).join("")}(e.props,function(r){switch(function(i,a){return(i=a.exec(i))?i[0]:i}(r,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cs([b0(e,{props:[Zn(r,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Cs([b0(e,{props:[Zn(r,/:(plac\w+)/,":"+Gn+"input-$1")]}),b0(e,{props:[Zn(r,/:(plac\w+)/,":-moz-$1")]}),b0(e,{props:[Zn(r,/:(plac\w+)/,Sr+"input-$1")]})],o)}return""})}}],Wk=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(g){g.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o,r,i=e.stylisPlugins||Hk,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)a[m[y]]=!0;l.push(g)});var c,d,p=[Fk,(d=function(g){c.insert(g)},function(g){g.root||(g=g.return)&&d(g)})],f=function(g){var m=Jh(g);return function(y,x,v,b){for(var w="",E=0;E<m;E++)w+=g[E](y,x,v,b)||"";return w}}([$k,Vk].concat(i,p));r=function(g,m,y,x){c=y,function(v){Cs(Lk(v),f)}(g?g+"{"+m.styles+"}":m.styles),x&&(h.inserted[m.name]=!0)};var h={key:t,sheet:new _k({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(l),h},vm={exports:{}},Yn={};function Uk(){return ym||(ym=1,vm.exports=function(){if(gm)return Yn;gm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case t:switch(C=C.type){case c:case d:case o:case i:case r:case f:return C;default:switch(C=C&&C.$$typeof){case l:case p:case m:case g:case a:return C;default:return R}}case n:return R}}}function E(C){return w(C)===d}return Yn.AsyncMode=c,Yn.ConcurrentMode=d,Yn.ContextConsumer=l,Yn.ContextProvider=a,Yn.Element=t,Yn.ForwardRef=p,Yn.Fragment=o,Yn.Lazy=m,Yn.Memo=g,Yn.Portal=n,Yn.Profiler=i,Yn.StrictMode=r,Yn.Suspense=f,Yn.isAsyncMode=function(C){return E(C)||w(C)===c},Yn.isConcurrentMode=E,Yn.isContextConsumer=function(C){return w(C)===l},Yn.isContextProvider=function(C){return w(C)===a},Yn.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Yn.isForwardRef=function(C){return w(C)===p},Yn.isFragment=function(C){return w(C)===o},Yn.isLazy=function(C){return w(C)===m},Yn.isMemo=function(C){return w(C)===g},Yn.isPortal=function(C){return w(C)===n},Yn.isProfiler=function(C){return w(C)===i},Yn.isStrictMode=function(C){return w(C)===r},Yn.isSuspense=function(C){return w(C)===f},Yn.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===d||C===i||C===r||C===f||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===g||C.$$typeof===a||C.$$typeof===l||C.$$typeof===p||C.$$typeof===x||C.$$typeof===v||C.$$typeof===b||C.$$typeof===y)},Yn.typeOf=w,Yn}()),vm.exports}(function(){if(bm)return xm;bm=1;var e=Uk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};function i(h){return e.isMemo(h)?o:r[h.$$typeof]||t}r[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r[e.Memo]=o;var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;xm=function h(g,m,y){if(typeof m!="string"){if(f){var x=p(m);x&&x!==f&&h(g,x,y)}var v=l(m);c&&(v=v.concat(c(m)));for(var b=i(g),w=i(m),E=0;E<v.length;++E){var C=v[E];if(!(n[C]||y&&y[C]||w&&w[C]||b&&b[C])){var R=d(m,C);try{a(g,C,R)}catch{}}}}return g}})();function _y(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var Qh=function(e,t,n){var o=e.key+"-"+t.name;n===!1&&e.registered[o]===void 0&&(e.registered[o]=t.styles)},e3=function(e,t,n){Qh(e,t,n);var o=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var r=t;do e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next;while(r!==void 0)}},qk={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kk=/[A-Z]|^ms/g,Gk=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jy=function(e){return e.charCodeAt(1)===45},wm=function(e){return e!=null&&typeof e!="boolean"},Z2=My(function(e){return jy(e)?e:e.replace(Kk,"-$&").toLowerCase()}),Sm=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Gk,function(n,o,r){return ra={name:o,styles:r,next:ra},o})}return qk[e]===1||jy(e)||typeof t!="number"||t===0?t:t+"px"};function uc(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(r.anim===1)return ra={name:r.name,styles:r.styles,next:ra},r.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)ra={name:a.name,styles:a.styles,next:ra},a=a.next;return i.styles+";"}return function(f,h,g){var m="";if(Array.isArray(g))for(var y=0;y<g.length;y++)m+=uc(f,h,g[y])+";";else for(var x in g){var v=g[x];if(typeof v!="object"){var b=v;h!=null&&h[b]!==void 0?m+=x+"{"+h[b]+"}":wm(b)&&(m+=Z2(x)+":"+Sm(x,b)+";")}else if(!Array.isArray(v)||typeof v[0]!="string"||h!=null&&h[v[0]]!==void 0){var w=uc(f,h,v);switch(x){case"animation":case"animationName":m+=Z2(x)+":"+w+";";break;default:m+=x+"{"+w+"}"}}else for(var E=0;E<v.length;E++)wm(v[E])&&(m+=Z2(x)+":"+Sm(x,v[E])+";")}return m}(e,t,n);case"function":if(e!==void 0){var l=ra,c=n(e);return ra=l,uc(e,t,c)}}var d=n;if(t==null)return d;var p=t[d];return p!==void 0?p:d}var ra,Cm=/label:\s*([^\s;{]+)\s*(;|$)/g;function d1(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";ra=void 0;var i=e[0];i==null||i.raw===void 0?(o=!1,r+=uc(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=uc(n,t,e[a]),o&&(r+=i[a]);Cm.lastIndex=0;for(var l,c="";(l=Cm.exec(r))!==null;)c+="-"+l[1];var d=function(p){for(var f,h=0,g=0,m=p.length;m>=4;++g,m-=4)f=1540483477*(65535&(f=255&p.charCodeAt(g)|(255&p.charCodeAt(++g))<<8|(255&p.charCodeAt(++g))<<16|(255&p.charCodeAt(++g))<<24))+(59797*(f>>>16)<<16),h=1540483477*(65535&(f^=f>>>24))+(59797*(f>>>16)<<16)^1540483477*(65535&h)+(59797*(h>>>16)<<16);switch(m){case 3:h^=(255&p.charCodeAt(g+2))<<16;case 2:h^=(255&p.charCodeAt(g+1))<<8;case 1:h=1540483477*(65535&(h^=255&p.charCodeAt(g)))+(59797*(h>>>16)<<16)}return(((h=1540483477*(65535&(h^=h>>>13))+(59797*(h>>>16)<<16))^h>>>15)>>>0).toString(36)}(r)+c;return{name:d,styles:r,next:ra}}var Ry=!!G.useInsertionEffect&&G.useInsertionEffect,Iy=Ry||function(e){return e()},km=Ry||G.useLayoutEffect,Py=G.createContext(typeof HTMLElement<"u"?Wk({key:"css"}):null);Py.Provider;var X2,Em,t3=function(e){return u.forwardRef(function(t,n){var o=u.useContext(Py);return e(t,o,n)})},Qs=G.createContext({}),y5={}.hasOwnProperty,x5="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zk=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Qh(t,n,o),Iy(function(){return e3(t,n,o)}),null},Xk=t3(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[x5],i=[o],a="";typeof e.className=="string"?a=_y(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=d1(i,void 0,G.useContext(Qs));a+=t.key+"-"+l.name;var c={};for(var d in e)y5.call(e,d)&&d!=="css"&&d!==x5&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),G.createElement(G.Fragment,null,G.createElement(Zk,{cache:t,serialized:l,isStringTag:typeof r=="string"}),G.createElement(r,c))}),Mm=function(e,t){var n=arguments;if(t==null||!y5.call(t,"css"))return G.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Xk,r[1]=function(a,l){var c={};for(var d in l)y5.call(l,d)&&(c[d]=l[d]);return c[x5]=a,c}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return G.createElement.apply(null,r)};X2=Mm||(Mm={}),Em||(Em=X2.JSX||(X2.JSX={}));var Yk=t3(function(e,t){var n=d1([e.styles],void 0,G.useContext(Qs)),o=G.useRef();return km(function(){var r=t.key+"-global",i=new t.sheet.constructor({key:r,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+r+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",r),i.hydrate([l])),o.current=[i,a],function(){i.flush()}},[t]),km(function(){var r=o.current,i=r[0];if(r[1])r[1]=!1;else{if(n.next!==void 0&&e3(t,n.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",n,i,!1)}},[t,n.name]),null});function n3(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d1(t)}function u1(){var e=n3.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Jk=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qk=My(function(e){return Jk.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),eE=function(e){return e!=="theme"},Tm=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Qk:eE},_m=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(i){return e.__emotion_forwardProp(i)&&r(i)}:r}return typeof o!="function"&&n&&(o=e.__emotion_forwardProp),o},tE=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Qh(t,n,o),Iy(function(){return e3(t,n,o)}),null},b5=function e(t,n){var o,r,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;n!==void 0&&(o=n.label,r=n.target);var l=_m(t,n,i),c=l||Tm(a),d=!c("as");return function(){var p=arguments,f=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)f.push.apply(f,p);else{var h=p[0];f.push(h[0]);for(var g=p.length,m=1;m<g;m++)f.push(p[m],h[m])}var y=t3(function(x,v,b){var w=d&&x.as||a,E="",C=[],R=x;if(x.theme==null){for(var _ in R={},x)R[_]=x[_];R.theme=G.useContext(Qs)}typeof x.className=="string"?E=_y(v.registered,C,x.className):x.className!=null&&(E=x.className+" ");var L=d1(f.concat(C),v.registered,R);E+=v.key+"-"+L.name,r!==void 0&&(E+=" "+r);var T=d&&l===void 0?Tm(w):c,j={};for(var S in x)d&&S==="as"||T(S)&&(j[S]=x[S]);return j.className=E,b&&(j.ref=b),G.createElement(G.Fragment,null,G.createElement(tE,{cache:v,serialized:L,isStringTag:typeof w=="string"}),G.createElement(w,j))});return y.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=a,y.__emotion_styles=f,y.__emotion_forwardProp=l,Object.defineProperty(y,"toString",{value:function(){return"."+r}}),y.withComponent=function(x,v){return e(x,ru({},n,v,{shouldForwardProp:_m(y,v,!0)})).apply(void 0,f)},y}}.bind(null);function Oy(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>{return t((i=r)==null||Object.keys(i).length===0?n:r);var i}:t;return s.jsx(Yk,{styles:o})}function r2(e,t){return b5(e,t)}function o3(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){b5[e]=b5(e)});const jm=[];function Mr(e){return jm[0]=e,d1(jm)}var Rm,Im,Pm={exports:{}},no={};function nE(){if(Rm)return no;Rm=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=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(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return no.ContextConsumer=i,no.ContextProvider=a,no.Element=e,no.ForwardRef=l,no.Fragment=n,no.Lazy=f,no.Memo=p,no.Portal=t,no.Profiler=r,no.StrictMode=o,no.Suspense=c,no.SuspenseList=d,no.isContextConsumer=function(y){return m(y)===i},no.isContextProvider=function(y){return m(y)===a},no.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},no.isForwardRef=function(y){return m(y)===l},no.isFragment=function(y){return m(y)===n},no.isLazy=function(y){return m(y)===f},no.isMemo=function(y){return m(y)===p},no.isPortal=function(y){return m(y)===t},no.isProfiler=function(y){return m(y)===r},no.isStrictMode=function(y){return m(y)===o},no.isSuspense=function(y){return m(y)===c},no.isSuspenseList=function(y){return m(y)===d},no.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},no.typeOf=m,no}function oE(){return Im||(Im=1,Pm.exports=nE()),Pm.exports}var Dy=oE();function ia(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 Ay(e){if(G.isValidElement(e)||Dy.isValidElementType(e)||!ia(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ay(e[n])}),t}function cr(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return ia(e)&&ia(t)&&Object.keys(t).forEach(r=>{G.isValidElement(t[r])||Dy.isValidElementType(t[r])?o[r]=t[r]:ia(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&ia(e[r])?o[r]=cr(e[r],t[r],n):n.clone?o[r]=ia(t[r])?Ay(t[r]):t[r]:o[r]=t[r]}),o}function rE(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),a=Object.keys(i);function l(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 d(p,f){const h=a.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(h!==-1&&typeof t[a[h]]=="number"?t[a[h]]:f)-o/100}${n})`}return{keys:a,values:i,up:l,down:c,between:d,only:function(p){return a.indexOf(p)+1<a.length?d(p,a[a.indexOf(p)+1]):l(p)},not:function(p){const f=a.indexOf(p);return f===0?l(a[1]):f===a.length-1?c(a[f]):d(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")},unit:n,...r}}function Om(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 iE={borderRadius:4};function pc(e,t){return t?cr(e,t,{clone:!1}):e}const i2={xs:0,sm:600,md:900,lg:1200,xl:1536},Dm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i2[e]}px)`},aE={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:i2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ta(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||Dm;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||Dm;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:aE,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||i2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function Am(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function xt(e){if(typeof e!="string")throw new Error(Ma(7));return e.charAt(0).toUpperCase()+e.slice(1)}function a2(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 iu(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:a2(e,n)||o,t&&(r=t(r,o,e)),r}function Ko(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=a2(a.theme,o)||{};return Ta(a,l,d=>{let p=iu(c,r,d);return d===p&&typeof d=="string"&&(p=iu(c,r,`${t}${d==="default"?"":xt(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const lE={m:"margin",p:"padding"},sE={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},cE=function(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}(e=>{if(e.length>2){if(!Lm[e])return[e];e=Lm[e]}const[t,n]=e.split(""),o=lE[t],r=sE[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Ly=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function p1(e,t,n,o){const r=a2(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 a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function r3(e){return p1(e,"spacing",8)}function h1(e,t){return typeof t=="string"||t==null?t:e(t)}function dE(e,t,n,o){if(!t.includes(n))return null;const r=function(i,a){return l=>i.reduce((c,d)=>(c[d]=h1(a,l),c),{})}(cE(n),o);return Ta(e,e[n],r)}function Fy(e,t){const n=r3(e.theme);return Object.keys(e).map(o=>dE(e,t,o,n)).reduce(pc,{})}function Ro(e){return Fy(e,Ly)}function Io(e){return Fy(e,zy)}function l2(e=8,t=r3({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(r=>{const i=t(r);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function s2(...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]?pc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function xi(e){return typeof e!="number"?e:`${e}px solid`}function Ri(e,t){return Ko({prop:e,themeKey:"borders",transform:t})}Ro.propTypes={},Ro.filterProps=Ly,Io.propTypes={},Io.filterProps=zy;const uE=Ri("border",xi),pE=Ri("borderTop",xi),hE=Ri("borderRight",xi),fE=Ri("borderBottom",xi),mE=Ri("borderLeft",xi),gE=Ri("borderColor"),yE=Ri("borderTopColor"),xE=Ri("borderRightColor"),bE=Ri("borderBottomColor"),vE=Ri("borderLeftColor"),wE=Ri("outline",xi),SE=Ri("outlineColor"),Ld=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=p1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:h1(t,o)});return Ta(e,e.borderRadius,n)}return null};Ld.propTypes={},Ld.filterProps=["borderRadius"],s2(uE,pE,hE,fE,mE,gE,yE,xE,bE,vE,Ld,wE,SE);const au=e=>{if(e.gap!==void 0&&e.gap!==null){const t=p1(e.theme,"spacing",8),n=o=>({gap:h1(t,o)});return Ta(e,e.gap,n)}return null};au.propTypes={},au.filterProps=["gap"];const lu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=p1(e.theme,"spacing",8),n=o=>({columnGap:h1(t,o)});return Ta(e,e.columnGap,n)}return null};lu.propTypes={},lu.filterProps=["columnGap"];const su=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=p1(e.theme,"spacing",8),n=o=>({rowGap:h1(t,o)});return Ta(e,e.rowGap,n)}return null};su.propTypes={},su.filterProps=["rowGap"];function ks(e,t){return t==="grey"?t:e}s2(au,lu,su,Ko({prop:"gridColumn"}),Ko({prop:"gridRow"}),Ko({prop:"gridAutoFlow"}),Ko({prop:"gridAutoColumns"}),Ko({prop:"gridAutoRows"}),Ko({prop:"gridTemplateColumns"}),Ko({prop:"gridTemplateRows"}),Ko({prop:"gridTemplateAreas"}),Ko({prop:"gridArea"}));function Qr(e){return e<=1&&e!==0?100*e+"%":e}s2(Ko({prop:"color",themeKey:"palette",transform:ks}),Ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ks}),Ko({prop:"backgroundColor",themeKey:"palette",transform:ks}));const CE=Ko({prop:"width",transform:Qr}),i3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||i2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Qr(n)}};return Ta(e,e.maxWidth,t)}return null};i3.filterProps=["maxWidth"];const kE=Ko({prop:"minWidth",transform:Qr}),EE=Ko({prop:"height",transform:Qr}),ME=Ko({prop:"maxHeight",transform:Qr}),TE=Ko({prop:"minHeight",transform:Qr});Ko({prop:"size",cssProperty:"width",transform:Qr}),Ko({prop:"size",cssProperty:"height",transform:Qr});s2(CE,i3,kE,EE,ME,TE,Ko({prop:"boxSizing"}));const f1={border:{themeKey:"borders",transform:xi},borderTop:{themeKey:"borders",transform:xi},borderRight:{themeKey:"borders",transform:xi},borderBottom:{themeKey:"borders",transform:xi},borderLeft:{themeKey:"borders",transform:xi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ld},color:{themeKey:"palette",transform:ks},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ks},backgroundColor:{themeKey:"palette",transform:ks},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:au},rowGap:{style:su},columnGap:{style:lu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qr},maxWidth:{style:i3},minWidth:{transform:Qr},height:{transform:Qr},maxHeight:{transform:Qr},minHeight:{transform:Qr},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"}},Il=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const f=a2(o,c)||{};return p?p(i):Ta(i,n,h=>{let g=iu(f,d,h);return h===g&&typeof h=="string"&&(g=iu(f,d,`${t}${h==="default"?"":xt(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??f1;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((y,x)=>(y[g.up(x)]={},y),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=function(y,x){return typeof y=="function"?y(x):y}(d[g],r);if(m!=null)if(typeof m=="object")if(a[g])h=pc(h,e(g,m,r,a));else{const y=Ta({theme:r},m,x=>({[g]:x}));(function(...x){const v=x.reduce((w,E)=>w.concat(Object.keys(E)),[]),b=new Set(v);return x.every(w=>b.size===Object.keys(w).length)})(y,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=pc(h,y)}else h=pc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":Om(r,Am(f,h))}:Om(r,Am(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function _E(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 a3(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e;let l=cr({breakpoints:rE(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:l2(r),shape:{...iE,...i}},a);return l=function(c){const d=(g,m)=>g.replace("@media",m?`@container ${m}`:"@container");function p(g,m){g.up=(...y)=>d(c.breakpoints.up(...y),m),g.down=(...y)=>d(c.breakpoints.down(...y),m),g.between=(...y)=>d(c.breakpoints.between(...y),m),g.only=(...y)=>d(c.breakpoints.only(...y),m),g.not=(...y)=>{const x=d(c.breakpoints.not(...y),m);return x.includes("not all and")?x.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):x}}const f={},h=g=>(p(f,g),f);return p(h),{...c,containerQueries:h}}(l),l.applyStyles=_E,l=t.reduce((c,d)=>cr(c,d),l),l.unstable_sxConfig={...f1,...a?.unstable_sxConfig},l.unstable_sx=function(c){return Il({sx:c,theme:this})},l}function cu(e=null){const t=G.useContext(Qs);return t&&(n=t,Object.keys(n).length!==0)?t:e;var n}Il.filterProps=["sx"];const jE=a3();function m1(e=jE){return cu(e)}function zm(e){const t=Mr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function By({styles:e,themeId:t,defaultTheme:n={}}){const o=m1(n),r=t&&o[t]||o;let i=typeof e=="function"?e(r):e;return r.modularCssLayers&&(i=Array.isArray(i)?i.map(a=>zm(typeof a=="function"?a(r):a)):zm(i)),s.jsx(Oy,{styles:i})}function Ny(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=(a=>{const l={systemProps:{},otherProps:{}},c=a?.theme?.unstable_sxConfig??f1;return Object.keys(a).forEach(d=>{c[d]?l.systemProps[d]=a[d]:l.otherProps[d]=a[d]}),l})(n);let i;return i=Array.isArray(t)?[o,...t]:typeof t=="function"?(...a)=>{const l=t(...a);return ia(l)?{...o,...l}:o}:{...o,...t},{...r,sx:i}}const Fm=e=>e,$y=(()=>{let e=Fm;return{configure(t){e=t},generate:t=>e(t),reset(){e=Fm}}})();function Vy(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=Vy(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ot(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Vy(e))&&(o&&(o+=" "),o+=t);return o}const RE={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function jn(e,t,n="Mui"){const o=RE[t];return o?`${n}-${o}`:`${$y.generate(e)}-${t}`}function kn(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=jn(e,r,n)}),o}function Hy(e){const{variants:t,...n}=e,o={variants:t,style:Mr(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=Mr(r.style))}),o}const IE=a3();function Y2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function xl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function PE(e){return e?(t,n)=>n[e]:null}function zd(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>zd(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?xl(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?xl(Mr(a),n):a}return Wy(e,o.variants,[r],n)}return o?.isProcessed?n?xl(Mr(o.style),n):o.style:n?xl(Mr(o),n):o}function Wy(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?xl(Mr(a.style(r)),o):a.style(r))):n.push(o?xl(Mr(a.style),o):a.style)}return n}function OE(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Ic(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],a=t[r];if(a)if(i){n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;n[r][c]=Ic(i[c],a[c])}}else n[r]=a;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}const Br=typeof window<"u"?G.useLayoutEffect:G.useEffect;function DE(e,t,n,o,r){const[i,a]=G.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return Br(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),i}const Uy={...G}.useSyncExternalStore;function AE(e,t,n,o,r){const i=G.useCallback(()=>t,[t]),a=G.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:d}=o(e);return()=>d}return i},[i,e,o,r,n]),[l,c]=G.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const d=n(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,n,e]);return Uy(c,l,a)}function qy(e={}){const{themeId:t}=e;return function(n,o={}){let r=cu();r&&t&&(r=r[t]||r);const i=typeof window<"u"&&window.matchMedia!==void 0,{defaultMatches:a=!1,matchMedia:l=i?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:d=!1}=function(f){const{theme:h,name:g,props:m}=f;return h&&h.components&&h.components[g]&&h.components[g].defaultProps?Ic(h.components[g].defaultProps,m):m}({name:"MuiUseMediaQuery",props:o,theme:r});let p=typeof n=="function"?n(r):n;return p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
7
- `)),(Uy!==void 0?AE:DE)(p,a,l,c,d)}}function ss(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function l3(e,t=0,n=1){return ss(e,t,n)}function Ja(e){if(e.type)return e;if(e.charAt(0)==="#")return Ja(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<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(Ma(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(Ma(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}qy();const K0=(e,t)=>{try{return(n=>{const o=Ja(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function c2(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 Ky(e){e=Ja(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),c2({type:l,values:c})}function v5(e){let t=(e=Ja(e)).type==="hsl"||e.type==="hsla"?Ja(Ky(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 pt(e,t){return e=Ja(e),t=l3(t),e.type!=="rgb"&&e.type!=="hsl"||(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,c2(e)}function B1(e,t,n){try{return pt(e,t)}catch{return e}}function Pl(e,t){if(e=Ja(e),t=l3(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 c2(e)}function lo(e,t,n){try{return Pl(e,t)}catch{return e}}function Ol(e,t){if(e=Ja(e),t=l3(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 c2(e)}function so(e,t,n){try{return Ol(e,t)}catch{return e}}function N1(e,t,n){try{return function(o,r=.15){return v5(o)>.5?Pl(o,r):Ol(o,r)}(e,t)}catch{return e}}function Bm(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function d2(e,t=166){let n;function o(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return o.clear=()=>{clearTimeout(n)},o}function J2(e,t){return G.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function ur(e){return e&&e.ownerDocument||document}function Vi(e){return ur(e).defaultView||window}function Nm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let $m=0;const Vm={...G}.useId;function e0(e){if(Vm!==void 0){const t=Vm();return e??t}return function(t){const[n,o]=G.useState(t),r=t||n;return G.useEffect(()=>{n==null&&($m+=1,o(`mui-${$m}`))},[n]),r}(e)}function Pc({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=G.useRef(e!==void 0),[i,a]=G.useState(t);return[r?e:i,G.useCallback(l=>{r||a(l)},[])]}function zr(e){const t=G.useRef(e);return Br(()=>{t.current=e}),G.useRef((...n)=>(0,t.current)(...n)).current}function Xo(...e){const t=G.useRef(void 0),n=G.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return G.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Hm={};function Gy(e,t){const n=G.useRef(Hm);return n.current===Hm&&(n.current=e(t)),n}const LE=[];class u2{static create(){return new u2}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function bl(){const e=Gy(u2.create).current;var t;return t=e.disposeEffect,G.useEffect(t,LE),e}function As(e){try{return e.matches(":focus-visible")}catch{}return!1}function Zy(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const zE={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Rn(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let c=0;c<i.length;c+=1){const d=i[c];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}o[r]=a}return o}function Xy(e,t,n){return e===void 0||typeof e=="string"?t:{...t,ownerState:{...t.ownerState,...n}}}function hc(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Wm(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Yy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const g=Ot(n?.className,i,r?.className,o?.className),m={...n?.style,...r?.style,...o?.style},y={...n,...r,...o};return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=hc({...r,...o}),l=Wm(o),c=Wm(r),d=t(a),p=Ot(d?.className,n?.className,i,r?.className,o?.className),f={...d?.style,...n?.style,...r?.style,...o?.style},h={...d,...n,...c,...l};return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:d.ref}}function Jy(e,t,n){return typeof e=="function"?e(t,n):e}function Vr(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:Jy(n,o),{props:l,internalRef:c}=Yy({...i,externalSlotProps:a});return Xy(t,{...l,ref:Xo(c,a?.ref,e.additionalProps?.ref)},o)}function t0(e){return parseInt(G.version,10)>=19?e?.props?.ref||null:e?.ref||null}const Qy=G.createContext(null);function s3(){return G.useContext(Qy)}const FE=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function BE(e){const{children:t,theme:n}=e,o=s3(),r=G.useMemo(()=>{const i=o===null?{...n}:function(a,l){return typeof l=="function"?l(a):{...a,...l}}(o,n);return i!=null&&(i[FE]=o!==null),i},[n,o]);return s.jsx(Qy.Provider,{value:r,children:t})}const ex=G.createContext();function NE({value:e,...t}){return s.jsx(ex.Provider,{value:e??!0,...t})}const n0=()=>G.useContext(ex)??!1,tx=G.createContext(void 0);function $E({value:e,children:t}){return s.jsx(tx.Provider,{value:e,children:t})}function VE({props:e,name:t}){return function(n){const{theme:o,name:r,props:i}=n;if(!o||!o.components||!o.components[r])return i;const a=o.components[r];return a.defaultProps?Ic(a.defaultProps,i):a.styleOverrides||a.variants?i:Ic(a,i)}({props:e,name:t,theme:{components:G.useContext(tx)}})}const Um={};function qm(e,t,n,o=!1){return G.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const i=n(r),a=e?{...t,[e]:i}:i;return o?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function nx(e){const{children:t,theme:n,themeId:o}=e,r=cu(Um),i=s3()||Um,a=qm(o,r,n),l=qm(o,i,n,!0),c=(o?a[o]:a).direction==="rtl",d=function(p){const f=cu(),h=e0()||"",{modularCssLayers:g}=p;let m="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return m=g&&f===null?typeof g=="string"?g.replace(/mui(?!\.)/g,m):`@layer ${m};`:"",Br(()=>{const y=document.querySelector("head");if(!y)return;const x=y.firstChild;if(m){if(x&&x.hasAttribute?.("data-mui-layer-order")&&x.getAttribute("data-mui-layer-order")===h)return;const v=document.createElement("style");v.setAttribute("data-mui-layer-order",h),v.textContent=m,y.prepend(v)}else y.querySelector(`style[data-mui-layer-order="${h}"]`)?.remove()},[m,h]),m?s.jsx(By,{styles:m}):null}(a);return s.jsx(BE,{theme:l,children:s.jsx(Qs.Provider,{value:a,children:s.jsx(NE,{value:c,children:s.jsxs($E,{value:o?a[o].components:a.components,children:[d,t]})})})})}const Km={theme:void 0},w5="mode",S5="color-scheme",HE="data-color-scheme";function WE(){}const UE=({key:e,storageWindow:t})=>(t||typeof window>"u"||(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let o;try{o=t.localStorage.getItem(e)}catch{}return o||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return WE;const o=r=>{const i=r.newValue;r.key===e&&n(i)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}});function Q2(){}function Gm(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Zm(e,t){return e.mode==="light"||e.mode==="system"&&e.systemMode==="light"?t("light"):e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark"?t("dark"):void 0}function qE(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:i=w5,colorSchemeStorageKey:a=S5,storageWindow:l=typeof window>"u"?void 0:window,storageManager:c=UE,noSsr:d=!1}=e,p=r.join(","),f=r.length>1,h=G.useMemo(()=>c?.({key:i,storageWindow:l}),[c,i,l]),g=G.useMemo(()=>c?.({key:`${a}-light`,storageWindow:l}),[c,a,l]),m=G.useMemo(()=>c?.({key:`${a}-dark`,storageWindow:l}),[c,a,l]),[y,x]=G.useState(()=>{const L=h?.get(t)||t,T=g?.get(n)||n,j=m?.get(o)||o;return{mode:L,systemMode:Gm(L),lightColorScheme:T,darkColorScheme:j}}),[v,b]=G.useState(d||!f);G.useEffect(()=>{b(!0)},[]);const w=function(L){return Zm(L,T=>T==="light"?L.lightColorScheme:T==="dark"?L.darkColorScheme:void 0)}(y),E=G.useCallback(L=>{x(T=>{if(L===T.mode)return T;const j=L??t;return h?.set(j),{...T,mode:j,systemMode:Gm(j)}})},[h,t]),C=G.useCallback(L=>{L?typeof L=="string"?L&&!p.includes(L)?console.error(`\`${L}\` does not exist in \`theme.colorSchemes\`.`):x(T=>{const j={...T};return Zm(T,S=>{S==="light"&&(g?.set(L),j.lightColorScheme=L),S==="dark"&&(m?.set(L),j.darkColorScheme=L)}),j}):x(T=>{const j={...T},S=L.light===null?n:L.light,k=L.dark===null?o:L.dark;return S&&(p.includes(S)?(j.lightColorScheme=S,g?.set(S)):console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`)),k&&(p.includes(k)?(j.darkColorScheme=k,m?.set(k)):console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`)),j}):x(T=>(g?.set(n),m?.set(o),{...T,lightColorScheme:n,darkColorScheme:o}))},[p,g,m,n,o]),R=G.useCallback(L=>{y.mode==="system"&&x(T=>{const j=L?.matches?"dark":"light";return T.systemMode===j?T:{...T,systemMode:j}})},[y.mode]),_=G.useRef(R);return _.current=R,G.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const L=(...j)=>_.current(...j),T=window.matchMedia("(prefers-color-scheme: dark)");return T.addListener(L),L(T),()=>{T.removeListener(L)}},[f]),G.useEffect(()=>{if(f){const L=h?.subscribe(S=>{S&&!["light","dark","system"].includes(S)||E(S||t)})||Q2,T=g?.subscribe(S=>{S&&!p.match(S)||C({light:S})})||Q2,j=m?.subscribe(S=>{S&&!p.match(S)||C({dark:S})})||Q2;return()=>{L(),T(),j()}}},[C,E,p,t,l,f,h,g,m]),{...y,mode:v?y.mode:void 0,systemMode:v?y.systemMode:void 0,colorScheme:v?w:void 0,setMode:E,setColorScheme:C}}function c3(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o!="string"||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${o}`:`, var(--${e?`${e}-`:""}${o}${t(...n.slice(1))})`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Xm=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===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 ep(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const h=`--${n?`${n}-`:""}${d.join("-")}`,g=((m,y)=>typeof y=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>m.includes(x))||m[m.length-1].toLowerCase().includes("opacity")?y:`${y}px`:y)(d,p);Object.assign(r,{[h]:g}),Xm(i,d,`var(${h})`,f),Xm(a,d,`var(${h}, ${g})`,f)}},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:a}}function ox(){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:_c.white,default:_c.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 KE=ox();function rx(){return{text:{primary:_c.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:_c.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 Ym=rx();function Jm(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=Ol(e.main,r):t==="dark"&&(e.dark=Pl(e.main,i)))}function d3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||function(m="light"){return m==="dark"?{main:ck,light:sk,dark:dm}:{main:dk,light:dm,dark:uk}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:ok,light:nk,dark:ik}:{main:ak,light:rk,dark:lk}}(t),l=e.error||function(m="light"){return m==="dark"?{main:ek,light:JC,dark:cm}:{main:cm,light:QC,dark:tk}}(t),c=e.info||function(m="light"){return m==="dark"?{main:hk,light:pk,dark:um}:{main:um,light:fk,dark:mk}}(t),d=e.success||function(m="light"){return m==="dark"?{main:yk,light:gk,dark:bk}:{main:vk,light:xk,dark:wk}}(t),p=e.warning||function(m="light"){return m==="dark"?{main:Ck,light:Sk,dark:Ek}:{main:"#ed6c02",light:kk,dark:Mk}}(t);function f(m){return function(x,v){const b=v5(x),w=v5(v);return(Math.max(b,w)+.05)/(Math.min(b,w)+.05)}(m,Ym.text.primary)>=n?Ym.text.primary:KE.text.primary}const h=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(Ma(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Ma(12,y?` (${y})`:"",JSON.stringify(m.main)));return Jm(m,"light",v,o),Jm(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=ox():t==="dark"&&(g=rx()),cr({common:{..._c},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:Tk,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}function GE(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 Qm={textTransform:"uppercase"},e6='"Roboto", "Helvetica", "Arial", sans-serif';function ZE(e,t){const{fontFamily:n=e6,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===e6?{letterSpacing:(C=w/v,Math.round(1e5*C)/1e5+"em")}:{},...E,...d};var C},y={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(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,Qm),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Qm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return cr({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}function So(...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 XE=["none",So(0,2,1,-1,0,1,1,0,0,1,3,0),So(0,3,1,-2,0,2,2,0,0,1,5,0),So(0,3,3,-2,0,3,4,0,0,1,8,0),So(0,2,4,-1,0,4,5,0,0,1,10,0),So(0,3,5,-1,0,5,8,0,0,1,14,0),So(0,3,5,-1,0,6,10,0,0,1,18,0),So(0,4,5,-2,0,7,10,1,0,2,16,1),So(0,5,5,-3,0,8,10,1,0,3,14,2),So(0,5,6,-3,0,9,12,1,0,3,16,2),So(0,6,6,-3,0,10,14,1,0,4,18,3),So(0,6,7,-4,0,11,15,1,0,4,20,3),So(0,7,8,-4,0,12,17,2,0,5,22,4),So(0,7,8,-4,0,13,19,2,0,5,24,4),So(0,7,9,-4,0,14,21,2,0,5,26,4),So(0,8,9,-5,0,15,22,2,0,6,28,5),So(0,8,10,-5,0,16,24,2,0,6,30,5),So(0,8,11,-5,0,17,26,2,0,6,32,5),So(0,9,11,-5,0,18,28,2,0,7,34,6),So(0,9,12,-6,0,19,29,2,0,7,36,6),So(0,10,13,-6,0,20,31,3,0,8,38,7),So(0,10,13,-6,0,21,33,3,0,8,40,7),So(0,10,14,-6,0,22,35,3,0,8,42,7),So(0,11,14,-7,0,23,36,3,0,9,44,8),So(0,11,15,-7,0,24,38,3,0,9,46,8)],YE={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)"},ix={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function t6(e){return`${Math.round(e)}ms`}function JE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function QE(e){const t={...YE,...e.easing},n={...ix,...e.duration};return{getAutoHeightDuration:JE,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:t6(i)} ${a} ${typeof l=="string"?l:t6(l)}`).join(",")},...e,easing:t,duration:n}}const eM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tM(e){return ia(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ax(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!tM(l)||a.startsWith("unstable_")?delete o[a]:ia(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
8
-
9
- const theme = ${JSON.stringify(t,null,2)};
10
-
11
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
12
- theme.transitions = createTransitions(theme.transitions || {});
13
-
14
- export default theme;`}function C5(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Ma(20));const p=d3(i),f=a3(e);let h=cr(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:XE.slice(),typography:ZE(p,l),transitions:QE(a),zIndex:{...eM}});var g,m;return h=cr(h,d),h=t.reduce((y,x)=>cr(y,x),h),h.unstable_sxConfig={...f1,...d?.unstable_sxConfig},h.unstable_sx=function(y){return Il({sx:y,theme:this})},h.toRuntimeSource=ax,h}function k5(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const nM=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=k5(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function n6(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function o6(e){return e==="dark"?nM:[]}function oM(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 rM=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 l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}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 a;return o};function at(e,t,n){!e[t]&&n&&(e[t]=n)}function G0(e){return typeof e=="string"&&e.startsWith("hsl")?Ky(e):e}function fa(e,t){`${t}Channel`in e||(e[`${t}Channel`]=K0(G0(e[t])))}const Gi=e=>{try{return e()}catch{}};function tp(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...f}=l,h=d3(c);return{palette:h,opacity:{...n6(h.mode),...d},overlays:p||o6(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=C5({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...n6(r),...t?.opacity},overlays:t?.overlays||o6(r)},a}function iM(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=oM,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...d}=e,p=Object.keys(n)[0],f=o||(n.light&&p!=="light"?"light":p),h=((j="mui")=>c3(j))(i),{[f]:g,light:m,dark:y,...x}=n,v={...x};let b=g;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(Ma(21,f));const w=tp(v,b,d,f);m&&!v.light&&tp(v,m,void 0,"light"),y&&!v.dark&&tp(v,y,void 0,"dark");let E={defaultColorScheme:f,...w,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:v,font:{...GE(w.typography),...w.font},spacing:(C=d.spacing,typeof C=="number"?`${C}px`:typeof C=="string"||typeof C=="function"||Array.isArray(C)?C:"8px")};var C;Object.keys(E.colorSchemes).forEach(j=>{const S=E.colorSchemes[j].palette,k=O=>{const I=O.split("-"),z=I[1],A=I[2];return h(O,S[z][A])};var P;if(S.mode==="light"&&(at(S.common,"background","#fff"),at(S.common,"onBackground","#000")),S.mode==="dark"&&(at(S.common,"background","#000"),at(S.common,"onBackground","#fff")),P=S,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(O=>{P[O]||(P[O]={})}),S.mode==="light"){at(S.Alert,"errorColor",lo(S.error.light,.6)),at(S.Alert,"infoColor",lo(S.info.light,.6)),at(S.Alert,"successColor",lo(S.success.light,.6)),at(S.Alert,"warningColor",lo(S.warning.light,.6)),at(S.Alert,"errorFilledBg",k("palette-error-main")),at(S.Alert,"infoFilledBg",k("palette-info-main")),at(S.Alert,"successFilledBg",k("palette-success-main")),at(S.Alert,"warningFilledBg",k("palette-warning-main")),at(S.Alert,"errorFilledColor",Gi(()=>S.getContrastText(S.error.main))),at(S.Alert,"infoFilledColor",Gi(()=>S.getContrastText(S.info.main))),at(S.Alert,"successFilledColor",Gi(()=>S.getContrastText(S.success.main))),at(S.Alert,"warningFilledColor",Gi(()=>S.getContrastText(S.warning.main))),at(S.Alert,"errorStandardBg",so(S.error.light,.9)),at(S.Alert,"infoStandardBg",so(S.info.light,.9)),at(S.Alert,"successStandardBg",so(S.success.light,.9)),at(S.Alert,"warningStandardBg",so(S.warning.light,.9)),at(S.Alert,"errorIconColor",k("palette-error-main")),at(S.Alert,"infoIconColor",k("palette-info-main")),at(S.Alert,"successIconColor",k("palette-success-main")),at(S.Alert,"warningIconColor",k("palette-warning-main")),at(S.AppBar,"defaultBg",k("palette-grey-100")),at(S.Avatar,"defaultBg",k("palette-grey-400")),at(S.Button,"inheritContainedBg",k("palette-grey-300")),at(S.Button,"inheritContainedHoverBg",k("palette-grey-A100")),at(S.Chip,"defaultBorder",k("palette-grey-400")),at(S.Chip,"defaultAvatarColor",k("palette-grey-700")),at(S.Chip,"defaultIconColor",k("palette-grey-700")),at(S.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),at(S.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),at(S.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),at(S.LinearProgress,"primaryBg",so(S.primary.main,.62)),at(S.LinearProgress,"secondaryBg",so(S.secondary.main,.62)),at(S.LinearProgress,"errorBg",so(S.error.main,.62)),at(S.LinearProgress,"infoBg",so(S.info.main,.62)),at(S.LinearProgress,"successBg",so(S.success.main,.62)),at(S.LinearProgress,"warningBg",so(S.warning.main,.62)),at(S.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.11)`),at(S.Slider,"primaryTrack",so(S.primary.main,.62)),at(S.Slider,"secondaryTrack",so(S.secondary.main,.62)),at(S.Slider,"errorTrack",so(S.error.main,.62)),at(S.Slider,"infoTrack",so(S.info.main,.62)),at(S.Slider,"successTrack",so(S.success.main,.62)),at(S.Slider,"warningTrack",so(S.warning.main,.62));const O=N1(S.background.default,.8);at(S.SnackbarContent,"bg",O),at(S.SnackbarContent,"color",Gi(()=>S.getContrastText(O))),at(S.SpeedDialAction,"fabHoverBg",N1(S.background.paper,.15)),at(S.StepConnector,"border",k("palette-grey-400")),at(S.StepContent,"border",k("palette-grey-400")),at(S.Switch,"defaultColor",k("palette-common-white")),at(S.Switch,"defaultDisabledColor",k("palette-grey-100")),at(S.Switch,"primaryDisabledColor",so(S.primary.main,.62)),at(S.Switch,"secondaryDisabledColor",so(S.secondary.main,.62)),at(S.Switch,"errorDisabledColor",so(S.error.main,.62)),at(S.Switch,"infoDisabledColor",so(S.info.main,.62)),at(S.Switch,"successDisabledColor",so(S.success.main,.62)),at(S.Switch,"warningDisabledColor",so(S.warning.main,.62)),at(S.TableCell,"border",so(B1(S.divider,1),.88)),at(S.Tooltip,"bg",B1(S.grey[700],.92))}if(S.mode==="dark"){at(S.Alert,"errorColor",so(S.error.light,.6)),at(S.Alert,"infoColor",so(S.info.light,.6)),at(S.Alert,"successColor",so(S.success.light,.6)),at(S.Alert,"warningColor",so(S.warning.light,.6)),at(S.Alert,"errorFilledBg",k("palette-error-dark")),at(S.Alert,"infoFilledBg",k("palette-info-dark")),at(S.Alert,"successFilledBg",k("palette-success-dark")),at(S.Alert,"warningFilledBg",k("palette-warning-dark")),at(S.Alert,"errorFilledColor",Gi(()=>S.getContrastText(S.error.dark))),at(S.Alert,"infoFilledColor",Gi(()=>S.getContrastText(S.info.dark))),at(S.Alert,"successFilledColor",Gi(()=>S.getContrastText(S.success.dark))),at(S.Alert,"warningFilledColor",Gi(()=>S.getContrastText(S.warning.dark))),at(S.Alert,"errorStandardBg",lo(S.error.light,.9)),at(S.Alert,"infoStandardBg",lo(S.info.light,.9)),at(S.Alert,"successStandardBg",lo(S.success.light,.9)),at(S.Alert,"warningStandardBg",lo(S.warning.light,.9)),at(S.Alert,"errorIconColor",k("palette-error-main")),at(S.Alert,"infoIconColor",k("palette-info-main")),at(S.Alert,"successIconColor",k("palette-success-main")),at(S.Alert,"warningIconColor",k("palette-warning-main")),at(S.AppBar,"defaultBg",k("palette-grey-900")),at(S.AppBar,"darkBg",k("palette-background-paper")),at(S.AppBar,"darkColor",k("palette-text-primary")),at(S.Avatar,"defaultBg",k("palette-grey-600")),at(S.Button,"inheritContainedBg",k("palette-grey-800")),at(S.Button,"inheritContainedHoverBg",k("palette-grey-700")),at(S.Chip,"defaultBorder",k("palette-grey-700")),at(S.Chip,"defaultAvatarColor",k("palette-grey-300")),at(S.Chip,"defaultIconColor",k("palette-grey-300")),at(S.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),at(S.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),at(S.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),at(S.LinearProgress,"primaryBg",lo(S.primary.main,.5)),at(S.LinearProgress,"secondaryBg",lo(S.secondary.main,.5)),at(S.LinearProgress,"errorBg",lo(S.error.main,.5)),at(S.LinearProgress,"infoBg",lo(S.info.main,.5)),at(S.LinearProgress,"successBg",lo(S.success.main,.5)),at(S.LinearProgress,"warningBg",lo(S.warning.main,.5)),at(S.Skeleton,"bg",`rgba(${k("palette-text-primaryChannel")} / 0.13)`),at(S.Slider,"primaryTrack",lo(S.primary.main,.5)),at(S.Slider,"secondaryTrack",lo(S.secondary.main,.5)),at(S.Slider,"errorTrack",lo(S.error.main,.5)),at(S.Slider,"infoTrack",lo(S.info.main,.5)),at(S.Slider,"successTrack",lo(S.success.main,.5)),at(S.Slider,"warningTrack",lo(S.warning.main,.5));const O=N1(S.background.default,.98);at(S.SnackbarContent,"bg",O),at(S.SnackbarContent,"color",Gi(()=>S.getContrastText(O))),at(S.SpeedDialAction,"fabHoverBg",N1(S.background.paper,.15)),at(S.StepConnector,"border",k("palette-grey-600")),at(S.StepContent,"border",k("palette-grey-600")),at(S.Switch,"defaultColor",k("palette-grey-300")),at(S.Switch,"defaultDisabledColor",k("palette-grey-600")),at(S.Switch,"primaryDisabledColor",lo(S.primary.main,.55)),at(S.Switch,"secondaryDisabledColor",lo(S.secondary.main,.55)),at(S.Switch,"errorDisabledColor",lo(S.error.main,.55)),at(S.Switch,"infoDisabledColor",lo(S.info.main,.55)),at(S.Switch,"successDisabledColor",lo(S.success.main,.55)),at(S.Switch,"warningDisabledColor",lo(S.warning.main,.55)),at(S.TableCell,"border",lo(B1(S.divider,1),.68)),at(S.Tooltip,"bg",B1(S.grey[700],.92))}fa(S.background,"default"),fa(S.background,"paper"),fa(S.common,"background"),fa(S.common,"onBackground"),fa(S,"divider"),Object.keys(S).forEach(O=>{const I=S[O];O!=="tonalOffset"&&I&&typeof I=="object"&&(I.main&&at(S[O],"mainChannel",K0(G0(I.main))),I.light&&at(S[O],"lightChannel",K0(G0(I.light))),I.dark&&at(S[O],"darkChannel",K0(G0(I.dark))),I.contrastText&&at(S[O],"contrastTextChannel",K0(G0(I.contrastText))),O==="text"&&(fa(S[O],"primary"),fa(S[O],"secondary")),O==="action"&&(I.active&&fa(S[O],"active"),I.selected&&fa(S[O],"selected")))})}),E=t.reduce((j,S)=>cr(j,S),E);const R={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:rM(E)},{vars:_,generateThemeVars:L,generateStyleSheets:T}=function(j,S={}){const{getSelector:k=X,disableCssColorScheme:P,colorSchemeSelector:O}=S,{colorSchemes:I={},components:z,defaultColorScheme:A="light",...D}=j,{vars:F,css:B,varsWithDefaults:M}=ep(D,S);let N=M;const V={},{[A]:U,...J}=I;if(Object.entries(J||{}).forEach(([H,ne])=>{const{vars:oe,css:ye,varsWithDefaults:de}=ep(ne,S);N=cr(N,de),V[H]={css:ye,vars:oe}}),U){const{css:H,vars:ne,varsWithDefaults:oe}=ep(U,S);N=cr(N,oe),V[A]={css:H,vars:ne}}function X(H,ne){let oe=O;if(O==="class"&&(oe=".%s"),O==="data"&&(oe="[data-%s]"),O?.startsWith("data-")&&!O.includes("%s")&&(oe=`[${O}="%s"]`),H){if(oe==="media")return j.defaultColorScheme===H?":root":{[`@media (prefers-color-scheme: ${I[H]?.palette?.mode||H})`]:{":root":ne}};if(oe)return j.defaultColorScheme===H?`:root, ${oe.replace("%s",String(H))}`:oe.replace("%s",String(H))}return":root"}return{vars:N,generateThemeVars:()=>{let H={...F};return Object.entries(V).forEach(([,{vars:ne}])=>{H=cr(H,ne)}),H},generateStyleSheets:()=>{const H=[],ne=j.defaultColorScheme||"light";function oe(xe,we){Object.keys(we).length&&H.push(typeof xe=="string"?{[xe]:{...we}}:xe)}oe(k(void 0,{...B}),B);const{[ne]:ye,...de}=V;if(ye){const{css:xe}=ye,we=I[ne]?.palette?.mode,ve=!P&&we?{colorScheme:we,...xe}:{...xe};oe(k(ne,{...ve}),ve)}return Object.entries(de).forEach(([xe,{css:we}])=>{const ve=I[xe]?.palette?.mode,re=!P&&ve?{colorScheme:ve,...we}:{...we};oe(k(xe,{...re}),re)}),H}}}(E,R);return E.vars=_,Object.entries(E.colorSchemes[E.defaultColorScheme]).forEach(([j,S])=>{E[j]=S}),E.generateThemeVars=L,E.generateStyleSheets=T,E.generateSpacing=function(){return l2(d.spacing,r3(this))},E.getColorSchemeSelector=function(j){return function(S){return j==="media"?`@media (prefers-color-scheme: ${S})`:j?j.startsWith("data-")&&!j.includes("%s")?`[${j}="${S}"] &`:j==="class"?`.${S} &`:j==="data"?`[data-${S}] &`:`${j.replace("%s",S)} &`:"&"}}(l),E.spacing=E.generateSpacing(),E.shouldSkipGeneratingVar=a,E.unstable_sxConfig={...f1,...d?.unstable_sxConfig},E.unstable_sx=function(j){return Il({sx:j,theme:this})},E.toRuntimeSource=ax,E}function r6(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:d3({...n===!0?{}:n.palette,mode:t})})}function lx(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return C5(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=C5({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},r6(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},r6(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),iM({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const u3=lx();function o0(){const e=m1(u3);return e[s1]||e}function p2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xr=e=>p2(e)&&e!=="classes",Et=function(e={}){const{themeId:t,defaultTheme:n=IE,rootShouldForwardProp:o=Y2,slotShouldForwardProp:r=Y2}=e;function i(a){(function(l,c,d){l.theme=function(p){for(const f in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme})(a,t,n)}return(a,l={})=>{o3(a,C=>C.filter(R=>R!==Il));const{name:c,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:h=PE(OE(d)),...g}=l,m=c&&c.startsWith("Mui")||d?"components":"custom",y=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=f||!1;let v=Y2;d==="Root"||d==="root"?v=o:d?v=r:function(C){return typeof C=="string"&&C.charCodeAt(0)>96}(a)&&(v=void 0);const b=r2(a,{shouldForwardProp:v,label:void 0,...g}),w=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(R){return zd(R,C,R.theme.modularCssLayers?m:void 0)};if(ia(C)){const R=Hy(C);return function(_){return R.variants?zd(_,R,_.theme.modularCssLayers?m:void 0):_.theme.modularCssLayers?xl(R.style,m):R.style}}return C},E=(...C)=>{const R=[],_=C.map(w),L=[];if(R.push(i),c&&h&&L.push(function(S){const k=S.theme,P=k.components?.[c]?.styleOverrides;if(!P)return null;const O={};for(const I in P)O[I]=zd(S,P[I],S.theme.modularCssLayers?"theme":void 0);return h(S,O)}),c&&!y&&L.push(function(S){const k=S.theme,P=k?.components?.[c]?.variants;return P?Wy(S,P,[],S.theme.modularCssLayers?"theme":void 0):null}),x||L.push(Il),Array.isArray(_[0])){const S=_.shift(),k=new Array(R.length).fill(""),P=new Array(L.length).fill("");let O;O=[...k,...S,...P],O.raw=[...k,...S.raw,...P],R.unshift(O)}const T=[...R,..._,...L],j=b(...T);return a.muiName&&(j.muiName=a.muiName),j};return b.withConfig&&(E.withConfig=b.withConfig),E}}({themeId:s1,defaultTheme:u3,rootShouldForwardProp:Xr});function aM(e){return s.jsx(By,{...e,defaultTheme:u3,themeId:s1})}function sx(e){return function(t){return s.jsx(aM,{styles:typeof e=="function"?n=>e({theme:n,...t}):e})}}const vn=function(e){let t,n;return function(o){let r=t;return r!==void 0&&o.theme===n||(Km.theme=o.theme,r=Hy(e(Km)),t=r,n=o.theme),r}};function An(e){return VE(e)}function lM(e){return jn("MuiSvgIcon",e)}kn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sM=Et("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${xt(n.color)}`],t[`fontSize${xt(n.fontSize)}`]]}})(vn(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Je=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiSvgIcon"}),{children:o,className:r,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...h}=n,g=G.isValidElement(o)&&o.type==="svg",m={...n,color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g},y={};d||(y.viewBox=f);const x=(v=>{const{color:b,fontSize:w,classes:E}=v;return Rn({root:["root",b!=="inherit"&&`color${xt(b)}`,`fontSize${xt(w)}`]},lM,E)})(m);return s.jsxs(sM,{as:a,className:Ot(x.root,r),focusable:"false",color:c,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t,...y,...h,...g&&o.props,ownerState:m,children:[g?o.props.children:o,p?s.jsx("title",{children:p}):null]})});function Kn(e,t){function n(o,r){return s.jsx(Je,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return n.muiName=Je.muiName,G.memo(G.forwardRef(n))}function cx(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return r=>{const i=typeof t=="function"?t(r):t,a=typeof e=="function"?e({...r,...i}):e,l=Ot(r?.className,i?.className,a?.className);return{...i,...a,...!!l&&{className:l},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const n=t,o=Ot(n?.className,e?.className);return{...t,...e,...!!o&&{className:o},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function dx(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 E5(e,t){return E5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},E5(e,t)}function ux(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,E5(e,t)}Je.muiName="SvgIcon";const i6=!1,du=u.createContext(null);var Z0="unmounted",hl="exited",fl="entering",cs="entered",M5="exiting",Bi=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var a,l=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?l?(a=hl,i.appearStatus=fl):a=cs:a=o.unmountOnExit||o.mountOnEnter?Z0:hl,i.state={status:a},i.nextCallback=null,i}ux(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===Z0?{status:hl}: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!==fl&&i!==cs&&(r=fl):i!==fl&&i!==cs||(r=M5)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,a=this.props.timeout;return o=r=i=a,a!=null&&typeof a!="number"&&(o=a.exit,r=a.enter,i=a.appear!==void 0?a.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===fl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);i&&function(a){a.scrollTop}(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hl&&this.setState({status:Z0})},n.performEnter=function(o){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[yo.findDOMNode(this),a],c=l[0],d=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;!o&&!i||i6?this.safeSetState({status:cs},function(){r.props.onEntered(c)}):(this.props.onEnter(c,d),this.safeSetState({status:fl},function(){r.props.onEntering(c,d),r.onTransitionEnd(f,function(){r.safeSetState({status:cs},function(){r.props.onEntered(c,d)})})}))},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:yo.findDOMNode(this);r&&!i6?(this.props.onExit(a),this.safeSetState({status:M5},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:hl},function(){o.props.onExited(a)})})})):this.safeSetState({status:hl},function(){o.props.onExited(a)})},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(a){i&&(i=!1,r.nextCallback=null,o(a))},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:yo.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(i&&!a){if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===Z0)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 a=dx(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(du.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function Ql(){}function T5(e,t){var n=Object.create(null);return e&&u.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=function(r){return t&&u.isValidElement(r)?t(r):r}(o)}),n}function vl(e,t,n){return n[t]!=null?n[t]:e.props[t]}function cM(e,t,n){var o=T5(e.children),r=function(i,a){function l(y){return y in a?a[y]:i[y]}i=i||{},a=a||{};var c,d=Object.create(null),p=[];for(var f in i)f in a?p.length&&(d[f]=p,p=[]):p.push(f);var h={};for(var g in a){if(d[g])for(c=0;c<d[g].length;c++){var m=d[g][c];h[d[g][c]]=l(m)}h[g]=l(g)}for(c=0;c<p.length;c++)h[p[c]]=l(p[c]);return h}(t,o);return Object.keys(r).forEach(function(i){var a=r[i];if(u.isValidElement(a)){var l=i in t,c=i in o,d=t[i],p=u.isValidElement(d)&&!d.props.in;!c||l&&!p?c||!l||p?c&&l&&u.isValidElement(d)&&(r[i]=u.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:vl(a,"exit",e),enter:vl(a,"enter",e)})):r[i]=u.cloneElement(a,{in:!1}):r[i]=u.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:vl(a,"exit",e),enter:vl(a,"enter",e)})}}),r}Bi.contextType=du,Bi.propTypes={},Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ql,onEntering:Ql,onEntered:Ql,onExit:Ql,onExiting:Ql,onExited:Ql},Bi.UNMOUNTED=Z0,Bi.EXITED=hl,Bi.ENTERING=fl,Bi.ENTERED=cs,Bi.EXITING=M5;var dM=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},_5=function(e){function t(o,r){var i,a=(i=e.call(this,o,r)||this).handleExited.bind(function(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}ux(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,r){var i,a,l=r.children,c=r.handleExited;return{children:r.firstRender?(i=o,a=c,T5(i.children,function(d){return u.cloneElement(d,{onExited:a.bind(null,d),in:!0,appear:vl(d,"appear",i),enter:vl(d,"enter",i),exit:vl(d,"exit",i)})})):cM(o,l,c),firstRender:!1}},n.handleExited=function(o,r){var i=T5(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(r),this.mounted&&this.setState(function(a){var l=ru({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,r=o.component,i=o.childFactory,a=dx(o,["component","childFactory"]),l=this.state.contextValue,c=dM(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,r===null?u.createElement(du.Provider,{value:l},c):u.createElement(du.Provider,{value:l},u.createElement(r,a,c))},t}(u.Component);_5.propTypes={},_5.defaultProps={component:"div",childFactory:function(e){return e}};const px=e=>e.scrollTop;function Oc(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function uM(e){return jn("MuiPaper",e)}kn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const pM=Et("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vn(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Mi=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiPaper"}),o=o0(),{className:r,component:i="div",elevation:a=1,square:l=!1,variant:c="elevation",...d}=n,p={...n,component:i,elevation:a,square:l,variant:c},f=(h=>{const{square:g,elevation:m,variant:y,classes:x}=h;return Rn({root:["root",y,!g&&"rounded",y==="elevation"&&`elevation${m}`]},uM,x)})(p);return s.jsx(pM,{as:i,ownerState:p,className:Ot(f.root,r),ref:t,...d,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[a],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[a]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${pt("#fff",k5(a))}, ${pt("#fff",k5(a))})`}},...d.style}})});function Qn(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:d,slots:p={[e]:void 0},slotProps:f={[e]:void 0},...h}=i,g=p[e]||o,m=Jy(f[e],r),{props:{component:y,...x},internalRef:v}=Yy({className:n,...c,externalForwardedProps:e==="root"?h:void 0,externalSlotProps:m}),b=Xo(v,m?.ref,t.ref),w=e==="root"?y||d:y;return[g,Xy(g,{...e==="root"&&!d&&!p[e]&&a,...e!=="root"&&!p[e]&&a,...x,...w&&!l&&{as:w},...w&&l&&{component:w},ref:b},r)]}class uu{static create(){return new uu}static use(){const t=Gy(uu.create).current,[n,o]=G.useState(!1);return t.shouldMount=n,t.setShouldMount=o,G.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=function(){let t,n;const o=new Promise((r,i)=>{t=r,n=i});return o.resolve=t,o.reject=n,o}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}const gi=kn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hM=u1`
15
- 0% {
16
- transform: scale(0);
17
- opacity: 0.1;
18
- }
19
-
20
- 100% {
21
- transform: scale(1);
22
- opacity: 0.3;
23
- }
24
- `,fM=u1`
25
- 0% {
26
- opacity: 1;
27
- }
28
-
29
- 100% {
30
- opacity: 0;
31
- }
32
- `,mM=u1`
33
- 0% {
34
- transform: scale(1);
35
- }
36
-
37
- 50% {
38
- transform: scale(0.92);
39
- }
40
-
41
- 100% {
42
- transform: scale(1);
43
- }
44
- `,gM=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yM=Et(function(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:i,rippleSize:a,in:l,onExited:c,timeout:d}=e,[p,f]=G.useState(!1),h=Ot(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:a,height:a,top:-a/2+i,left:-a/2+r},m=Ot(n.child,p&&n.childLeaving,o&&n.childPulsate);return l||p||f(!0),G.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),s.jsx("span",{className:h,style:g,children:s.jsx("span",{className:m})})},{name:"MuiTouchRipple",slot:"Ripple"})`
45
- opacity: 0;
46
- position: absolute;
47
-
48
- &.${gi.rippleVisible} {
49
- opacity: 0.3;
50
- transform: scale(1);
51
- animation-name: ${hM};
52
- animation-duration: ${550}ms;
53
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
54
- }
55
-
56
- &.${gi.ripplePulsate} {
57
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
58
- }
59
-
60
- & .${gi.child} {
61
- opacity: 1;
62
- display: block;
63
- width: 100%;
64
- height: 100%;
65
- border-radius: 50%;
66
- background-color: currentColor;
67
- }
68
-
69
- & .${gi.childLeaving} {
70
- opacity: 0;
71
- animation-name: ${fM};
72
- animation-duration: ${550}ms;
73
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
74
- }
75
-
76
- & .${gi.childPulsate} {
77
- position: absolute;
78
- /* @noflip */
79
- left: 0px;
80
- top: 0;
81
- animation-name: ${mM};
82
- animation-duration: 2500ms;
83
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
84
- animation-iteration-count: infinite;
85
- animation-delay: 200ms;
86
- }
87
- `,xM=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i,...a}=n,[l,c]=G.useState([]),d=G.useRef(0),p=G.useRef(null);G.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const f=G.useRef(!1),h=bl(),g=G.useRef(null),m=G.useRef(null),y=G.useCallback(w=>{const{pulsate:E,rippleX:C,rippleY:R,rippleSize:_,cb:L}=w;c(T=>[...T,s.jsx(yM,{classes:{ripple:Ot(r.ripple,gi.ripple),rippleVisible:Ot(r.rippleVisible,gi.rippleVisible),ripplePulsate:Ot(r.ripplePulsate,gi.ripplePulsate),child:Ot(r.child,gi.child),childLeaving:Ot(r.childLeaving,gi.childLeaving),childPulsate:Ot(r.childPulsate,gi.childPulsate)},timeout:550,pulsate:E,rippleX:C,rippleY:R,rippleSize:_},d.current)]),d.current+=1,p.current=L},[r]),x=G.useCallback((w={},E={},C=()=>{})=>{const{pulsate:R=!1,center:_=o||E.pulsate,fakeElement:L=!1}=E;if(w?.type==="mousedown"&&f.current)return void(f.current=!1);w?.type==="touchstart"&&(f.current=!0);const T=L?null:m.current,j=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let S,k,P;if(_||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)S=Math.round(j.width/2),k=Math.round(j.height/2);else{const{clientX:O,clientY:I}=w.touches&&w.touches.length>0?w.touches[0]:w;S=Math.round(O-j.left),k=Math.round(I-j.top)}if(_)P=Math.sqrt((2*j.width**2+j.height**2)/3),P%2==0&&(P+=1);else{const O=2*Math.max(Math.abs((T?T.clientWidth:0)-S),S)+2,I=2*Math.max(Math.abs((T?T.clientHeight:0)-k),k)+2;P=Math.sqrt(O**2+I**2)}w?.touches?g.current===null&&(g.current=()=>{y({pulsate:R,rippleX:S,rippleY:k,rippleSize:P,cb:C})},h.start(80,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:R,rippleX:S,rippleY:k,rippleSize:P,cb:C})},[o,y,h]),v=G.useCallback(()=>{x({},{pulsate:!0})},[x]),b=G.useCallback((w,E)=>{if(h.clear(),w?.type==="touchend"&&g.current)return g.current(),g.current=null,void h.start(0,()=>{b(w,E)});g.current=null,c(C=>C.length>0?C.slice(1):C),p.current=E},[h]);return G.useImperativeHandle(t,()=>({pulsate:v,start:x,stop:b}),[v,x,b]),s.jsx(gM,{className:Ot(gi.root,r.root,i),ref:m,...a,children:s.jsx(_5,{component:null,exit:!0,children:l})})});function bM(e){return jn("MuiButtonBase",e)}const vM=kn("MuiButtonBase",["root","disabled","focusVisible"]),wM=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${vM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qa=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:a,component:l="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:x,onDragLeave:v,onFocus:b,onFocusVisible:w,onKeyDown:E,onKeyUp:C,onMouseDown:R,onMouseLeave:_,onMouseUp:L,onTouchEnd:T,onTouchMove:j,onTouchStart:S,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:O,type:I,...z}=n,A=G.useRef(null),D=uu.use(),F=Xo(D.ref,O),[B,M]=G.useState(!1);c&&B&&M(!1),G.useImperativeHandle(o,()=>({focusVisible:()=>{M(!0),A.current.focus()}}),[]);const N=D.shouldMount&&!d&&!c;G.useEffect(()=>{B&&f&&!d&&D.pulsate()},[d,f,B,D]);const V=ma(D,"start",R,p),U=ma(D,"stop",x,p),J=ma(D,"stop",v,p),X=ma(D,"stop",L,p),H=ma(D,"stop",ee=>{B&&ee.preventDefault(),_&&_(ee)},p),ne=ma(D,"start",S,p),oe=ma(D,"stop",T,p),ye=ma(D,"stop",j,p),de=ma(D,"stop",ee=>{As(ee.target)||M(!1),m&&m(ee)},!1),xe=zr(ee=>{A.current||(A.current=ee.currentTarget),As(ee.target)&&(M(!0),w&&w(ee)),b&&b(ee)}),we=()=>{const ee=A.current;return l&&l!=="button"&&!(ee.tagName==="A"&&ee.href)},ve=zr(ee=>{f&&!ee.repeat&&B&&ee.key===" "&&D.stop(ee,()=>{D.start(ee)}),ee.target===ee.currentTarget&&we()&&ee.key===" "&&ee.preventDefault(),E&&E(ee),ee.target===ee.currentTarget&&we()&&ee.key==="Enter"&&!c&&(ee.preventDefault(),y&&y(ee))}),re=zr(ee=>{f&&ee.key===" "&&B&&!ee.defaultPrevented&&D.stop(ee,()=>{D.pulsate(ee)}),C&&C(ee),y&&ee.target===ee.currentTarget&&we()&&ee.key===" "&&!ee.defaultPrevented&&y(ee)});let ce=l;ce==="button"&&(z.href||z.to)&&(ce=g);const Se={};ce==="button"?(Se.type=I===void 0?"button":I,Se.disabled=c):(z.href||z.to||(Se.role="button"),c&&(Se["aria-disabled"]=c));const ie=Xo(t,A),Y={...n,centerRipple:r,component:l,disabled:c,disableRipple:d,disableTouchRipple:p,focusRipple:f,tabIndex:k,focusVisible:B},le=(ee=>{const{disabled:Pe,focusVisible:Te,focusVisibleClassName:rt,classes:Ve}=ee,Ee=Rn({root:["root",Pe&&"disabled",Te&&"focusVisible"]},bM,Ve);return Te&&rt&&(Ee.root+=` ${rt}`),Ee})(Y);return s.jsxs(wM,{as:ce,className:Ot(le.root,a),ownerState:Y,onBlur:de,onClick:y,onContextMenu:U,onFocus:xe,onKeyDown:ve,onKeyUp:re,onMouseDown:V,onMouseLeave:H,onMouseUp:X,onDragLeave:J,onTouchEnd:oe,onTouchMove:ye,onTouchStart:ne,ref:ie,tabIndex:c?-1:k,type:I,...Se,...z,children:[i,N?s.jsx(xM,{ref:F,center:r,...P}):null]})});function ma(e,t,n,o=!1){return zr(r=>(n&&n(r),o||e[t](r),!0))}function dr(e=[]){return([,t])=>t&&function(n,o=[]){if(!function(r){return typeof r.main=="string"}(n))return!1;for(const r of o)if(!n.hasOwnProperty(r)||typeof n[r]!="string")return!1;return!0}(t,e)}function SM(e){return jn("MuiCircularProgress",e)}kn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $1=44,j5=u1`
88
- 0% {
89
- transform: rotate(0deg);
90
- }
91
-
92
- 100% {
93
- transform: rotate(360deg);
94
- }
95
- `,R5=u1`
96
- 0% {
97
- stroke-dasharray: 1px, 200px;
98
- stroke-dashoffset: 0;
99
- }
100
-
101
- 50% {
102
- stroke-dasharray: 100px, 200px;
103
- stroke-dashoffset: -15px;
104
- }
105
-
106
- 100% {
107
- stroke-dasharray: 1px, 200px;
108
- stroke-dashoffset: -126px;
109
- }
110
- `,CM=typeof j5!="string"?n3`
111
- animation: ${j5} 1.4s linear infinite;
112
- `:null,kM=typeof R5!="string"?n3`
113
- animation: ${R5} 1.4s ease-in-out infinite;
114
- `:null,EM=Et("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${xt(n.color)}`]]}})(vn(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:CM||{animation:`${j5} 1.4s linear infinite`}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),MM=Et("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),TM=Et("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${xt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vn(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:kM||{animation:`${R5} 1.4s ease-in-out infinite`}}]}))),p3=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiCircularProgress"}),{className:o,color:r="primary",disableShrink:i=!1,size:a=40,style:l,thickness:c=3.6,value:d=0,variant:p="indeterminate",...f}=n,h={...n,color:r,disableShrink:i,size:a,thickness:c,value:d,variant:p},g=(v=>{const{classes:b,variant:w,color:E,disableShrink:C}=v;return Rn({root:["root",w,`color${xt(E)}`],svg:["svg"],circle:["circle",`circle${xt(w)}`,C&&"circleDisableShrink"]},SM,b)})(h),m={},y={},x={};if(p==="determinate"){const v=2*Math.PI*(($1-c)/2);m.strokeDasharray=v.toFixed(3),x["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*v).toFixed(3)}px`,y.transform="rotate(-90deg)"}return s.jsx(EM,{className:Ot(g.root,o),style:{width:a,height:a,...y,...l},ownerState:h,ref:t,role:"progressbar",...x,...f,children:s.jsx(MM,{className:g.svg,ownerState:h,viewBox:"22 22 44 44",children:s.jsx(TM,{className:g.circle,style:m,ownerState:h,cx:$1,cy:$1,r:($1-c)/2,fill:"none",strokeWidth:c})})})});function _M(e){return jn("MuiIconButton",e)}const a6=kn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),jM=Et(Qa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${xt(n.color)}`],n.edge&&t[`edge${xt(n.edge)}`],t[`size${xt(n.size)}`]]}})(vn(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vn(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${a6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${a6.loading}`]:{color:"transparent"}}))),RM=Et("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Tr=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiIconButton"}),{edge:o=!1,children:r,className:i,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:d="medium",id:p,loading:f=null,loadingIndicator:h,...g}=n,m=e0(p),y=h??s.jsx(p3,{"aria-labelledby":m,color:"inherit",size:16}),x={...n,edge:o,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:y,size:d},v=(b=>{const{classes:w,disabled:E,color:C,edge:R,size:_,loading:L}=b;return Rn({root:["root",L&&"loading",E&&"disabled",C!=="default"&&`color${xt(C)}`,R&&`edge${xt(R)}`,`size${xt(_)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},_M,w)})(x);return s.jsxs(jM,{id:f?m:p,className:Ot(v.root,i),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:t,...g,ownerState:x,children:[typeof f=="boolean"&&s.jsx("span",{className:v.loadingWrapper,style:{display:"contents"},children:s.jsx(RM,{className:v.loadingIndicator,ownerState:x,children:f&&y})}),r]})});function IM(e){return jn("MuiTypography",e)}kn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const PM={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},OM=Ny,DM=Et("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${xt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vn(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${xt(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),l6={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mn=G.forwardRef(function(e,t){const{color:n,...o}=An({props:e,name:"MuiTypography"}),r=OM({...o,...!PM[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:c=!1,noWrap:d=!1,paragraph:p=!1,variant:f="body1",variantMapping:h=l6,...g}=r,m={...r,align:i,color:n,className:a,component:l,gutterBottom:c,noWrap:d,paragraph:p,variant:f,variantMapping:h},y=l||(p?"p":h[f]||l6[f])||"span",x=(v=>{const{align:b,gutterBottom:w,noWrap:E,paragraph:C,variant:R,classes:_}=v;return Rn({root:["root",R,v.align!=="inherit"&&`align${xt(b)}`,w&&"gutterBottom",E&&"noWrap",C&&"paragraph"]},IM,_)})(m);return s.jsx(DM,{as:y,ref:t,className:Ot(x.root,a),...g,ownerState:m,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...g.style}})});var Wr="top",Ti="bottom",_i="right",Ur="left",I5="auto",g1=[Wr,Ti,_i,Ur],Ls="start",Dc="end",hx="viewport",v0="popper",s6=g1.reduce(function(e,t){return e.concat([t+"-"+Ls,t+"-"+Dc])},[]),fx=[].concat(g1,[I5]).reduce(function(e,t){return e.concat([t,t+"-"+Ls,t+"-"+Dc])},[]),AM=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function da(e){return e?(e.nodeName||"").toLowerCase():null}function ci(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dl(e){return e instanceof ci(e).Element||e instanceof Element}function ki(e){return e instanceof ci(e).HTMLElement||e instanceof HTMLElement}function h3(e){return typeof ShadowRoot<"u"&&(e instanceof ci(e).ShadowRoot||e instanceof ShadowRoot)}const LM={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];ki(i)&&da(i)&&(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]).reduce(function(l,c){return l[c]="",l},{});ki(r)&&da(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]};function aa(e){return e.split("-")[0]}var Ml=Math.max,pu=Math.min,zs=Math.round;function P5(){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 mx(){return!/^((?!chrome|android).)*safari/i.test(P5())}function Fs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&ki(e)&&(r=e.offsetWidth>0&&zs(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&zs(o.height)/e.offsetHeight||1);var a=(Dl(e)?ci(e):window).visualViewport,l=!mx()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function f3(e){var t=Fs(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function gx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h3(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function ka(e){return ci(e).getComputedStyle(e)}function zM(e){return["table","td","th"].indexOf(da(e))>=0}function Xa(e){return((Dl(e)?e.ownerDocument:e.document)||window.document).documentElement}function h2(e){return da(e)==="html"?e:e.assignedSlot||e.parentNode||(h3(e)?e.host:null)||Xa(e)}function c6(e){return ki(e)&&ka(e).position!=="fixed"?e.offsetParent:null}function y1(e){for(var t=ci(e),n=c6(e);n&&zM(n)&&ka(n).position==="static";)n=c6(n);return n&&(da(n)==="html"||da(n)==="body"&&ka(n).position==="static")?t:n||function(o){var r=/firefox/i.test(P5());if(/Trident/i.test(P5())&&ki(o)&&ka(o).position==="fixed")return null;var i=h2(o);for(h3(i)&&(i=i.host);ki(i)&&["html","body"].indexOf(da(i))<0;){var a=ka(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||r&&a.willChange==="filter"||r&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}(e)||t}function m3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X0(e,t,n){return Ml(e,pu(t,n))}function yx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xx(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}const FM={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=aa(n.placement),c=m3(l),d=[Ur,_i].indexOf(l)>=0?"height":"width";if(i&&a){var p=function(L,T){return yx(typeof(L=typeof L=="function"?L(Object.assign({},T.rects,{placement:T.placement})):L)!="number"?L:xx(L,g1))}(r.padding,n),f=f3(i),h=c==="y"?Wr:Ur,g=c==="y"?Ti:_i,m=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],y=a[c]-n.rects.reference[c],x=y1(i),v=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,b=m/2-y/2,w=p[h],E=v-f[d]-p[g],C=v/2-f[d]/2+b,R=X0(w,C,E),_=c;n.modifiersData[o]=((t={})[_]=R,t.centerOffset=R-C,t)}},effect:function(e){var t=e.state,n=e.options.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o!="string"||(o=t.elements.popper.querySelector(o)))&&gx(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bs(e){return e.split("-")[1]}var BM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d6(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,h=a.x,g=h===void 0?0:h,m=a.y,y=m===void 0?0:m,x=typeof p=="function"?p({x:g,y}):{x:g,y};g=x.x,y=x.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=Ur,E=Wr,C=window;if(d){var R=y1(n),_="clientHeight",L="clientWidth";R===ci(n)&&ka(R=Xa(n)).position!=="static"&&l==="absolute"&&(_="scrollHeight",L="scrollWidth"),(r===Wr||(r===Ur||r===_i)&&i===Dc)&&(E=Ti,y-=(f&&R===C&&C.visualViewport?C.visualViewport.height:R[_])-o.height,y*=c?1:-1),(r===Ur||(r===Wr||r===Ti)&&i===Dc)&&(w=_i,g-=(f&&R===C&&C.visualViewport?C.visualViewport.width:R[L])-o.width,g*=c?1:-1)}var T,j=Object.assign({position:l},d&&BM),S=p===!0?function(k,P){var O=k.x,I=k.y,z=P.devicePixelRatio||1;return{x:zs(O*z)/z||0,y:zs(I*z)/z||0}}({x:g,y},ci(n)):{x:g,y};return g=S.x,y=S.y,c?Object.assign({},j,((T={})[E]=b?"0":"",T[w]=v?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",T)):Object.assign({},j,((t={})[E]=b?y+"px":"",t[w]=v?g+"px":"",t.transform="",t))}var V1={passive:!0},NM={left:"right",right:"left",bottom:"top",top:"bottom"};function H1(e){return e.replace(/left|right|bottom|top/g,function(t){return NM[t]})}var $M={start:"end",end:"start"};function u6(e){return e.replace(/start|end/g,function(t){return $M[t]})}function g3(e){var t=ci(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function O5(e){return Fs(Xa(e)).left+g3(e).scrollLeft}function y3(e){var t=ka(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function bx(e){return["html","body","#document"].indexOf(da(e))>=0?e.ownerDocument.body:ki(e)&&y3(e)?e:bx(h2(e))}function fc(e,t){var n;t===void 0&&(t=[]);var o=bx(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=ci(o),a=r?[i].concat(i.visualViewport||[],y3(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(fc(h2(a)))}function D5(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function p6(e,t,n){return t===hx?D5(function(o,r){var i=ci(o),a=Xa(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(l){c=l.width,d=l.height;var h=mx();(h||!h&&r==="fixed")&&(p=l.offsetLeft,f=l.offsetTop)}return{width:c,height:d,x:p+O5(o),y:f}}(e,n)):Dl(t)?function(o,r){var i=Fs(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):D5(function(o){var r,i=Xa(o),a=g3(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=Ml(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=Ml(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+O5(o),f=-a.scrollTop;return ka(l||i).direction==="rtl"&&(p+=Ml(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:f}}(Xa(e)))}function VM(e,t,n,o){var r=t==="clippingParents"?function(c){var d=fc(h2(c)),p=["absolute","fixed"].indexOf(ka(c).position)>=0&&ki(c)?y1(c):c;return Dl(p)?d.filter(function(f){return Dl(f)&&gx(f,p)&&da(f)!=="body"}):[]}(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(c,d){var p=p6(e,d,o);return c.top=Ml(p.top,c.top),c.right=pu(p.right,c.right),c.bottom=pu(p.bottom,c.bottom),c.left=Ml(p.left,c.left),c},p6(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function vx(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?aa(r):null,a=r?Bs(r):null,l=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(i){case Wr:t={x:l,y:n.y-o.height};break;case Ti:t={x:l,y:n.y+n.height};break;case _i:t={x:n.x+n.width,y:c};break;case Ur:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y}}var d=i?m3(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Ls:t[d]=t[d]-(n[p]/2-o[p]/2);break;case Dc:t[d]=t[d]+(n[p]/2-o[p]/2)}}return t}function Ac(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,c=l===void 0?"clippingParents":l,d=n.rootBoundary,p=d===void 0?hx:d,f=n.elementContext,h=f===void 0?v0:f,g=n.altBoundary,m=g!==void 0&&g,y=n.padding,x=y===void 0?0:y,v=yx(typeof x!="number"?x:xx(x,g1)),b=h===v0?"reference":v0,w=e.rects.popper,E=e.elements[m?b:h],C=VM(Dl(E)?E:E.contextElement||Xa(e.elements.popper),c,p,a),R=Fs(e.elements.reference),_=vx({reference:R,element:w,placement:r}),L=D5(Object.assign({},w,_)),T=h===v0?L:R,j={top:C.top-T.top+v.top,bottom:T.bottom-C.bottom+v.bottom,left:C.left-T.left+v.left,right:T.right-C.right+v.right},S=e.modifiersData.offset;if(h===v0&&S){var k=S[r];Object.keys(j).forEach(function(P){var O=[_i,Ti].indexOf(P)>=0?1:-1,I=[Wr,Ti].indexOf(P)>=0?"y":"x";j[P]+=k[I]*O})}return j}function HM(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?fx:c,p=Bs(o),f=p?l?s6:s6.filter(function(m){return Bs(m)===p}):g1,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f);var g=h.reduce(function(m,y){return m[y]=Ac(e,{placement:y,boundary:r,rootBoundary:i,padding:a})[aa(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}const WM={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0||r,a=n.altAxis,l=a===void 0||a,c=n.fallbackPlacements,d=n.padding,p=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,m=g===void 0||g,y=n.allowedAutoPlacements,x=t.options.placement,v=aa(x),b=c||(v===x||!m?[H1(x)]:function(M){if(aa(M)===I5)return[];var N=H1(M);return[u6(M),N,u6(N)]}(x)),w=[x].concat(b).reduce(function(M,N){return M.concat(aa(N)===I5?HM(t,{placement:N,boundary:p,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:y}):N)},[]),E=t.rects.reference,C=t.rects.popper,R=new Map,_=!0,L=w[0],T=0;T<w.length;T++){var j=w[T],S=aa(j),k=Bs(j)===Ls,P=[Wr,Ti].indexOf(S)>=0,O=P?"width":"height",I=Ac(t,{placement:j,boundary:p,rootBoundary:f,altBoundary:h,padding:d}),z=P?k?_i:Ur:k?Ti:Wr;E[O]>C[O]&&(z=H1(z));var A=H1(z),D=[];if(i&&D.push(I[S]<=0),l&&D.push(I[z]<=0,I[A]<=0),D.every(function(M){return M})){L=j,_=!1;break}R.set(j,D)}if(_)for(var F=function(M){var N=w.find(function(V){var U=R.get(V);if(U)return U.slice(0,M).every(function(J){return J})});if(N)return L=N,"break"},B=m?3:1;B>0&&F(B)!=="break";B--);t.placement!==L&&(t.modifiersData[o]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function h6(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function f6(e){return[Wr,_i,Ti,Ur].some(function(t){return e[t]>=0})}const UM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=fx.reduce(function(p,f){return p[f]=function(h,g,m){var y=aa(h),x=[Ur,Wr].indexOf(y)>=0?-1:1,v=typeof m=="function"?m(Object.assign({},g,{placement:h})):m,b=v[0],w=v[1];return b=b||0,w=(w||0)*x,[Ur,_i].indexOf(y)>=0?{x:w,y:b}:{x:b,y:w}}(f,t.rects,i),p},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=a}},qM={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0||r,a=n.altAxis,l=a!==void 0&&a,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0||h,m=n.tetherOffset,y=m===void 0?0:m,x=Ac(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:p}),v=aa(t.placement),b=Bs(t.placement),w=!b,E=m3(v),C=E==="x"?"y":"x",R=t.modifiersData.popperOffsets,_=t.rects.reference,L=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,j=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(R){if(i){var P,O=E==="y"?Wr:Ur,I=E==="y"?Ti:_i,z=E==="y"?"height":"width",A=R[E],D=A+x[O],F=A-x[I],B=g?-L[z]/2:0,M=b===Ls?_[z]:L[z],N=b===Ls?-L[z]:-_[z],V=t.elements.arrow,U=g&&V?f3(V):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=J[O],H=J[I],ne=X0(0,_[z],U[z]),oe=w?_[z]/2-B-ne-X-j.mainAxis:M-ne-X-j.mainAxis,ye=w?-_[z]/2+B+ne+H+j.mainAxis:N+ne+H+j.mainAxis,de=t.elements.arrow&&y1(t.elements.arrow),xe=de?E==="y"?de.clientTop||0:de.clientLeft||0:0,we=(P=S?.[E])!=null?P:0,ve=A+ye-we,re=X0(g?pu(D,A+oe-we-xe):D,A,g?Ml(F,ve):F);R[E]=re,k[E]=re-A}if(l){var ce,Se=E==="x"?Wr:Ur,ie=E==="x"?Ti:_i,Y=R[C],le=C==="y"?"height":"width",ee=Y+x[Se],Pe=Y-x[ie],Te=[Wr,Ur].indexOf(v)!==-1,rt=(ce=S?.[C])!=null?ce:0,Ve=Te?ee:Y-_[le]-L[le]-rt+j.altAxis,Ee=Te?Y+_[le]+L[le]-rt-j.altAxis:Pe,Re=g&&Te?function(Xe,Be,ct){var Qe=X0(Xe,Be,ct);return Qe>ct?ct:Qe}(Ve,Y,Ee):X0(g?Ve:ee,Y,g?Ee:Pe);R[C]=Re,k[C]=Re-Y}t.modifiersData[o]=k}},requiresIfExists:["offset"]};function KM(e,t,n){n===void 0&&(n=!1);var o=ki(t),r=ki(t)&&function(d){var p=d.getBoundingClientRect(),f=zs(p.width)/d.offsetWidth||1,h=zs(p.height)/d.offsetHeight||1;return f!==1||h!==1}(t),i=Xa(t),a=Fs(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((da(t)!=="body"||y3(i))&&(l=function(d){return d!==ci(d)&&ki(d)?{scrollLeft:(p=d).scrollLeft,scrollTop:p.scrollTop}:g3(d);var p}(t)),ki(t)?((c=Fs(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=O5(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function GM(e){var t=new Map,n=new Set,o=[];function r(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&r(l)}}),o.push(i)}return e.forEach(function(i){t.set(i.name,i)}),e.forEach(function(i){n.has(i.name)||r(i)}),o}var m6={placement:"bottom",modifiers:[],strategy:"absolute"};function g6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function ZM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?m6:r;return function(a,l,c){c===void 0&&(c=i);var d,p,f={placement:"bottom",orderedModifiers:[],options:Object.assign({},m6,i),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],g=!1,m={state:f,setOptions:function(x){var v=typeof x=="function"?x(f.options):x;y(),f.options=Object.assign({},i,f.options,v),f.scrollParents={reference:Dl(a)?fc(a):a.contextElement?fc(a.contextElement):[],popper:fc(l)};var b,w,E=function(C){var R=GM(C);return AM.reduce(function(_,L){return _.concat(R.filter(function(T){return T.phase===L}))},[])}((b=[].concat(o,f.options.modifiers),w=b.reduce(function(C,R){var _=C[R.name];return C[R.name]=_?Object.assign({},_,R,{options:Object.assign({},_.options,R.options),data:Object.assign({},_.data,R.data)}):R,C},{}),Object.keys(w).map(function(C){return w[C]})));return f.orderedModifiers=E.filter(function(C){return C.enabled}),f.orderedModifiers.forEach(function(C){var R=C.name,_=C.options,L=_===void 0?{}:_,T=C.effect;if(typeof T=="function"){var j=T({state:f,name:R,instance:m,options:L}),S=function(){};h.push(j||S)}}),m.update()},forceUpdate:function(){if(!g){var x=f.elements,v=x.reference,b=x.popper;if(g6(v,b)){f.rects={reference:KM(v,y1(b),f.options.strategy==="fixed"),popper:f3(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(T){return f.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<f.orderedModifiers.length;w++)if(f.reset!==!0){var E=f.orderedModifiers[w],C=E.fn,R=E.options,_=R===void 0?{}:R,L=E.name;typeof C=="function"&&(f=C({state:f,options:_,name:L,instance:m})||f)}else f.reset=!1,w=-1}}},update:(d=function(){return new Promise(function(x){m.forceUpdate(),x(f)})},function(){return p||(p=new Promise(function(x){Promise.resolve().then(function(){p=void 0,x(d())})})),p}),destroy:function(){y(),g=!0}};if(!g6(a,l))return m;function y(){h.forEach(function(x){return x()}),h=[]}return m.setOptions(c).then(function(x){!g&&c.onFirstUpdate&&c.onFirstUpdate(x)}),m}}var XM=ZM({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0||r,a=o.resize,l=a===void 0||a,c=ci(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(p){p.addEventListener("scroll",n.update,V1)}),l&&c.addEventListener("resize",n.update,V1),function(){i&&d.forEach(function(p){p.removeEventListener("scroll",n.update,V1)}),l&&c.removeEventListener("resize",n.update,V1)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=vx({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0||o,i=n.adaptive,a=i===void 0||i,l=n.roundOffsets,c=l===void 0||l,d={placement:aa(t.placement),variation:Bs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,d6(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,d6(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},LM,UM,WM,qM,FM,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ac(t,{elementContext:"reference"}),l=Ac(t,{altBoundary:!0}),c=h6(a,o),d=h6(l,r,i),p=f6(c),f=f6(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]});const wx=G.forwardRef(function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[i,a]=G.useState(null),l=Xo(G.isValidElement(n)?t0(n):null,t);if(Br(()=>{r||a(function(c){return typeof c=="function"?c():c}(o)||document.body)},[o,r]),Br(()=>{if(i&&!r)return Nm(t,i),()=>{Nm(t,null)}},[t,i,r]),r){if(G.isValidElement(n)){const c={ref:l};return G.cloneElement(n,c)}return n}return i&&YC.createPortal(n,i)});function YM(e){return jn("MuiPopper",e)}function A5(e){return typeof e=="function"?e():e}kn("MuiPopper",["root"]);const JM={},QM=G.forwardRef(function(e,t){const{anchorEl:n,children:o,direction:r,disablePortal:i,modifiers:a,open:l,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:g,ownerState:m,...y}=e,x=G.useRef(null),v=Xo(x,t),b=G.useRef(null),w=Xo(b,p),E=G.useRef(w);Br(()=>{E.current=w},[w]),G.useImperativeHandle(p,()=>b.current,[]);const C=function(O,I){if(I==="ltr")return O;switch(O){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return O}}(c,r),[R,_]=G.useState(C),[L,T]=G.useState(A5(n));G.useEffect(()=>{b.current&&b.current.forceUpdate()}),G.useEffect(()=>{n&&T(A5(n))},[n]),Br(()=>{if(!L||!l)return;let O=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{_(z.placement)}}];a!=null&&(O=O.concat(a)),d&&d.modifiers!=null&&(O=O.concat(d.modifiers));const I=XM(L,x.current,{placement:C,...d,modifiers:O});return E.current(I),()=>{I.destroy(),E.current(null)}},[L,i,a,l,d,C]);const j={placement:R};g!==null&&(j.TransitionProps=g);const S=(O=>{const{classes:I}=O;return Rn({root:["root"]},YM,I)})(e),k=h.root??"div",P=Vr({elementType:k,externalSlotProps:f.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:S.root});return s.jsx(k,{...P,children:typeof o=="function"?o(j):o})}),eT=G.forwardRef(function(e,t){const{anchorEl:n,children:o,container:r,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:d,placement:p="bottom",popperOptions:f=JM,popperRef:h,style:g,transition:m=!1,slotProps:y={},slots:x={},...v}=e,[b,w]=G.useState(!0);if(!l&&!d&&(!m||b))return null;let E;if(r)E=r;else if(n){const _=A5(n);E=_&&_.nodeType!==void 0?ur(_).body:ur(null).body}const C=d||!l||m&&!b?void 0:"none",R=m?{in:d,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return s.jsx(wx,{disablePortal:a,container:E,children:s.jsx(QM,{anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:m?!b:d,placement:p,popperOptions:f,popperRef:h,slotProps:y,slots:x,...v,style:{position:"fixed",top:0,left:0,display:C,...g},TransitionProps:R,children:o})})}),tT=Et(eT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x3=G.forwardRef(function(e,t){const n=n0(),o=An({props:e,name:"MuiPopper"}),{anchorEl:r,component:i,components:a,componentsProps:l,container:c,disablePortal:d,keepMounted:p,modifiers:f,open:h,placement:g,popperOptions:m,popperRef:y,transition:x,slots:v,slotProps:b,...w}=o,E=v?.root??a?.Root,C={anchorEl:r,container:c,disablePortal:d,keepMounted:p,modifiers:f,open:h,placement:g,popperOptions:m,popperRef:y,transition:x,...w};return s.jsx(tT,{as:i,direction:n?"rtl":"ltr",slots:{root:E},slotProps:b??l,...C,ref:t})}),nT=Kn(s.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function oT(e){return jn("MuiChip",e)}const Fn=kn("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),rT=Et("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:c}=n;return[{[`& .${Fn.avatar}`]:t.avatar},{[`& .${Fn.avatar}`]:t[`avatar${xt(l)}`]},{[`& .${Fn.avatar}`]:t[`avatarColor${xt(o)}`]},{[`& .${Fn.icon}`]:t.icon},{[`& .${Fn.icon}`]:t[`icon${xt(l)}`]},{[`& .${Fn.icon}`]:t[`iconColor${xt(r)}`]},{[`& .${Fn.deleteIcon}`]:t.deleteIcon},{[`& .${Fn.deleteIcon}`]:t[`deleteIcon${xt(l)}`]},{[`& .${Fn.deleteIcon}`]:t[`deleteIconColor${xt(o)}`]},{[`& .${Fn.deleteIcon}`]:t[`deleteIcon${xt(c)}Color${xt(o)}`]},t.root,t[`size${xt(l)}`],t[`color${xt(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${xt(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${xt(o)}`],t[c],t[`${c}${xt(o)}`]]}})(vn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Fn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Fn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Fn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Fn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Fn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Fn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Fn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:pt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:pt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Fn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Fn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(dr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:pt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Fn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Fn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(dr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Fn.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(dr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Fn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Fn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Fn.avatar}`]:{marginLeft:4},[`& .${Fn.avatarSmall}`]:{marginLeft:2},[`& .${Fn.icon}`]:{marginLeft:4},[`& .${Fn.iconSmall}`]:{marginLeft:2},[`& .${Fn.deleteIcon}`]:{marginRight:5},[`& .${Fn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:pt(e.palette[n].main,.7)}`,[`&.${Fn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Fn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:pt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Fn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:pt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),iT=Et("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${xt(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function y6(e){return e.key==="Backspace"||e.key==="Delete"}const aT=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiChip"}),{avatar:o,className:r,clickable:i,color:a="default",component:l,deleteIcon:c,disabled:d=!1,icon:p,label:f,onClick:h,onDelete:g,onKeyDown:m,onKeyUp:y,size:x="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:w=!1,...E}=n,C=Xo(G.useRef(null),t),R=I=>{I.stopPropagation(),g&&g(I)},_=!(i===!1||!h)||i,L=_||g?Qa:l||"div",T={...n,component:L,disabled:d,size:x,color:a,iconColor:G.isValidElement(p)&&p.props.color||a,onDelete:!!g,clickable:_,variant:v},j=(I=>{const{classes:z,disabled:A,size:D,color:F,iconColor:B,onDelete:M,clickable:N,variant:V}=I;return Rn({root:["root",V,A&&"disabled",`size${xt(D)}`,`color${xt(F)}`,N&&"clickable",N&&`clickableColor${xt(F)}`,M&&"deletable",M&&`deletableColor${xt(F)}`,`${V}${xt(F)}`],label:["label",`label${xt(D)}`],avatar:["avatar",`avatar${xt(D)}`,`avatarColor${xt(F)}`],icon:["icon",`icon${xt(D)}`,`iconColor${xt(B)}`],deleteIcon:["deleteIcon",`deleteIcon${xt(D)}`,`deleteIconColor${xt(F)}`,`deleteIcon${xt(V)}Color${xt(F)}`]},oT,z)})(T),S=L===Qa?{component:l||"div",focusVisibleClassName:j.focusVisible,...g&&{disableRipple:!0}}:{};let k=null;g&&(k=c&&G.isValidElement(c)?G.cloneElement(c,{className:Ot(c.props.className,j.deleteIcon),onClick:R}):s.jsx(nT,{className:Ot(j.deleteIcon),onClick:R}));let P=null;o&&G.isValidElement(o)&&(P=G.cloneElement(o,{className:Ot(j.avatar,o.props.className)}));let O=null;return p&&G.isValidElement(p)&&(O=G.cloneElement(p,{className:Ot(j.icon,p.props.className)})),s.jsxs(rT,{as:L,className:Ot(j.root,r),disabled:!(!_||!d)||void 0,onClick:h,onKeyDown:I=>{I.currentTarget===I.target&&y6(I)&&I.preventDefault(),m&&m(I)},onKeyUp:I=>{I.currentTarget===I.target&&g&&y6(I)&&g(I),y&&y(I)},ref:C,tabIndex:w&&d?-1:b,ownerState:T,...S,...E,children:[P||O,s.jsx(iT,{className:Ot(j.label),ownerState:T,children:f}),k]})});function W1(e){return parseInt(e,10)||0}const lT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function x6(e){return function(t){for(const n in t)return!1;return!0}(e)||e.outerHeightStyle===0&&!e.overflowing}const sT=G.forwardRef(function(e,t){const{onChange:n,maxRows:o,minRows:r=1,style:i,value:a,...l}=e,{current:c}=G.useRef(a!=null),d=G.useRef(null),p=Xo(t,d),f=G.useRef(null),h=G.useRef(null),g=G.useCallback(()=>{const v=d.current,b=h.current;if(!v||!b)return;const w=Vi(v).getComputedStyle(v);if(w.width==="0px")return{outerHeightStyle:0,overflowing:!1};b.style.width=w.width,b.value=v.value||e.placeholder||"x",b.value.slice(-1)===`
115
- `&&(b.value+=" ");const E=w.boxSizing,C=W1(w.paddingBottom)+W1(w.paddingTop),R=W1(w.borderBottomWidth)+W1(w.borderTopWidth),_=b.scrollHeight;b.value="x";const L=b.scrollHeight;let T=_;return r&&(T=Math.max(Number(r)*L,T)),o&&(T=Math.min(Number(o)*L,T)),T=Math.max(T,L),{outerHeightStyle:T+(E==="border-box"?C+R:0),overflowing:Math.abs(T-_)<=1}},[o,r,e.placeholder]),m=zr(()=>{const v=d.current,b=g();if(!v||!b||x6(b))return!1;const w=b.outerHeightStyle;return f.current!=null&&f.current!==w}),y=G.useCallback(()=>{const v=d.current,b=g();if(!v||!b||x6(b))return;const w=b.outerHeightStyle;f.current!==w&&(f.current=w,v.style.height=`${w}px`),v.style.overflow=b.overflowing?"hidden":""},[g]),x=G.useRef(-1);return Br(()=>{const v=d2(y),b=d?.current;if(!b)return;const w=Vi(b);let E;return w.addEventListener("resize",v),typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{m()&&(E.unobserve(b),cancelAnimationFrame(x.current),y(),x.current=requestAnimationFrame(()=>{E.observe(b)}))}),E.observe(b)),()=>{v.clear(),cancelAnimationFrame(x.current),w.removeEventListener("resize",v),E&&E.disconnect()}},[g,y,m]),Br(()=>{y()}),s.jsxs(G.Fragment,{children:[s.jsx("textarea",{value:a,onChange:v=>{c||y(),n&&n(v)},ref:p,rows:r,style:i,...l}),s.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...lT,...i,paddingTop:0,paddingBottom:0}})]})});function wl(e){return typeof e=="string"}function Ul({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&e[r]===void 0&&(o[r]=n[r]),o),{})}const f2=G.createContext(void 0);function Ra(){return G.useContext(f2)}function b6(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hu(e,t=!1){return e&&(b6(e.value)&&e.value!==""||t&&b6(e.defaultValue)&&e.defaultValue!=="")}function cT(e){return jn("MuiInputBase",e)}const Ns=kn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var v6;const m2=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${xt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},g2=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},y2=Et("div",{name:"MuiInputBase",slot:"Root",overridesResolver:m2})(vn(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ns.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),x2=Et("input",{name:"MuiInputBase",slot:"Input",overridesResolver:g2})(vn(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ns.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Ns.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),w6=sx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),b3=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:r,autoFocus:i,className:a,color:l,components:c={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:h,endAdornment:g,error:m,fullWidth:y=!1,id:x,inputComponent:v="input",inputProps:b={},inputRef:w,margin:E,maxRows:C,minRows:R,multiline:_=!1,name:L,onBlur:T,onChange:j,onClick:S,onFocus:k,onKeyDown:P,onKeyUp:O,placeholder:I,readOnly:z,renderSuffix:A,rows:D,size:F,slotProps:B={},slots:M={},startAdornment:N,type:V="text",value:U,...J}=n,X=b.value!=null?b.value:U,{current:H}=G.useRef(X!=null),ne=G.useRef(),oe=G.useCallback(Ve=>{},[]),ye=Xo(ne,w,b.ref,oe),[de,xe]=G.useState(!1),we=Ra(),ve=Ul({props:n,muiFormControl:we,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=we?we.focused:de,G.useEffect(()=>{!we&&f&&de&&(xe(!1),T&&T())},[we,f,de,T]);const re=we&&we.onFilled,ce=we&&we.onEmpty,Se=G.useCallback(Ve=>{hu(Ve)?re&&re():ce&&ce()},[re,ce]);Br(()=>{H&&Se({value:X})},[X,Se,H]),G.useEffect(()=>{Se(ne.current)},[]);let ie=v,Y=b;_&&ie==="input"&&(Y=D?{type:void 0,minRows:D,maxRows:D,...Y}:{type:void 0,maxRows:C,minRows:R,...Y},ie=sT),G.useEffect(()=>{we&&we.setAdornedStart(!!N)},[we,N]);const le={...n,color:ve.color||"primary",disabled:ve.disabled,endAdornment:g,error:ve.error,focused:ve.focused,formControl:we,fullWidth:y,hiddenLabel:ve.hiddenLabel,multiline:_,size:ve.size,startAdornment:N,type:V},ee=(Ve=>{const{classes:Ee,color:Re,disabled:Xe,error:Be,endAdornment:ct,focused:Qe,formControl:he,fullWidth:Ye,hiddenLabel:ke,multiline:Ie,readOnly:ue,size:De,startAdornment:Ae,type:W}=Ve;return Rn({root:["root",`color${xt(Re)}`,Xe&&"disabled",Be&&"error",Ye&&"fullWidth",Qe&&"focused",he&&"formControl",De&&De!=="medium"&&`size${xt(De)}`,Ie&&"multiline",Ae&&"adornedStart",ct&&"adornedEnd",ke&&"hiddenLabel",ue&&"readOnly"],input:["input",Xe&&"disabled",W==="search"&&"inputTypeSearch",Ie&&"inputMultiline",De==="small"&&"inputSizeSmall",ke&&"inputHiddenLabel",Ae&&"inputAdornedStart",ct&&"inputAdornedEnd",ue&&"readOnly"]},cT,Ee)})(le),Pe=M.root||c.Root||y2,Te=B.root||d.root||{},rt=M.input||c.Input||x2;return Y={...Y,...B.input??d.input},s.jsxs(G.Fragment,{children:[!h&&typeof w6=="function"&&(v6||(v6=s.jsx(w6,{}))),s.jsxs(Pe,{...Te,ref:t,onClick:Ve=>{ne.current&&Ve.currentTarget===Ve.target&&ne.current.focus(),S&&S(Ve)},...J,...!wl(Pe)&&{ownerState:{...le,...Te.ownerState}},className:Ot(ee.root,Te.className,a,z&&"MuiInputBase-readOnly"),children:[N,s.jsx(f2.Provider,{value:null,children:s.jsx(rt,{"aria-invalid":ve.error,"aria-describedby":o,autoComplete:r,autoFocus:i,defaultValue:p,disabled:ve.disabled,id:x,onAnimationStart:Ve=>{Se(Ve.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})},name:L,placeholder:I,readOnly:z,required:ve.required,rows:D,value:X,onKeyDown:P,onKeyUp:O,type:V,...Y,...!wl(rt)&&{as:ie,ownerState:{...le,...Y.ownerState}},ref:ye,className:Ot(ee.input,Y.className,z&&"MuiInputBase-readOnly"),onBlur:Ve=>{T&&T(Ve),b.onBlur&&b.onBlur(Ve),we&&we.onBlur?we.onBlur(Ve):xe(!1)},onChange:(Ve,...Ee)=>{if(!H){const Re=Ve.target||ne.current;if(Re==null)throw new Error(Ma(1));Se({value:Re.value})}b.onChange&&b.onChange(Ve,...Ee),j&&j(Ve,...Ee)},onFocus:Ve=>{k&&k(Ve),b.onFocus&&b.onFocus(Ve),we&&we.onFocus?we.onFocus(Ve):xe(!0)}})}),g,A?A({...ve,startAdornment:N}):null]})]})});function dT(e){return jn("MuiInput",e)}const w0={...Ns,...kn("MuiInput",["root","underline","input"])};function uT(e){return jn("MuiOutlinedInput",e)}const Zi={...Ns,...kn("MuiOutlinedInput",["root","notchedOutline","input"])};function pT(e){return jn("MuiFilledInput",e)}const il={...Ns,...kn("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},hT=Kn(s.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fT={entering:{opacity:1},entered:{opacity:1}},Sx=G.forwardRef(function(e,t){const n=o0(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:l,in:c,onEnter:d,onEntered:p,onEntering:f,onExit:h,onExited:g,onExiting:m,style:y,timeout:x=o,TransitionComponent:v=Bi,...b}=e,w=G.useRef(null),E=Xo(w,t0(a),t),C=k=>P=>{if(k){const O=w.current;P===void 0?k(O):k(O,P)}},R=C(f),_=C((k,P)=>{px(k);const O=Oc({style:y,timeout:x,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",O),k.style.transition=n.transitions.create("opacity",O),d&&d(k,P)}),L=C(p),T=C(m),j=C(k=>{const P=Oc({style:y,timeout:x,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",P),k.style.transition=n.transitions.create("opacity",P),h&&h(k)}),S=C(g);return s.jsx(v,{appear:i,in:c,nodeRef:w,onEnter:_,onEntered:L,onEntering:R,onExit:j,onExited:S,onExiting:T,addEndListener:k=>{r&&r(w.current,k)},timeout:x,...b,children:(k,{ownerState:P,...O})=>G.cloneElement(a,{style:{opacity:0,visibility:k!=="exited"||c?void 0:"hidden",...fT[k],...y,...a.props.style},ref:E,...O})})});function mT(e){return jn("MuiBackdrop",e)}kn("MuiBackdrop",["root","invisible"]);const gT=Et("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Cx=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiBackdrop"}),{children:o,className:r,component:i="div",invisible:a=!1,open:l,components:c={},componentsProps:d={},slotProps:p={},slots:f={},TransitionComponent:h,transitionDuration:g,...m}=n,y={...n,component:i,invisible:a},x=(R=>{const{classes:_,invisible:L}=R;return Rn({root:["root",L&&"invisible"]},mT,_)})(y),v={slots:{transition:h,root:c.Root,...f},slotProps:{...d,...p}},[b,w]=Qn("root",{elementType:gT,externalForwardedProps:v,className:Ot(x.root,r),ownerState:y}),[E,C]=Qn("transition",{elementType:Sx,externalForwardedProps:v,ownerState:y});return s.jsx(E,{in:l,timeout:g,...m,...C,children:s.jsx(b,{"aria-hidden":!0,...w,classes:x,ref:t,children:o})})}),yT=kn("MuiBox",["root"]),xT=lx(),Le=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=r2("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Il);return G.forwardRef(function(a,l){const c=m1(n),{className:d,component:p="div",...f}=Ny(a);return s.jsx(i,{as:p,ref:l,className:Ot(d,r?r(o):o),theme:t&&c[t]||c,...f})})}({themeId:s1,defaultTheme:xT,defaultClassName:yT.root,generateClassName:$y.generate});function bT(e){return jn("MuiButton",e)}const al=kn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),vT=G.createContext({}),wT=G.createContext(void 0),kx=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ST=Et(Qa,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${xt(n.color)}`],t[`size${xt(n.size)}`],t[`${n.variant}Size${xt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(vn(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${al.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${al.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${al.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${al.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(dr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:pt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${al.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${al.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${al.loading}`]:{color:"transparent"}}}]}})),CT=Et("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${xt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...kx]})),kT=Et("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${xt(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...kx]})),ET=Et("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),S6=Et("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Lc=G.forwardRef(function(e,t){const n=G.useContext(vT),o=G.useContext(wT),r=An({props:Ic(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:g,fullWidth:m=!1,id:y,loading:x=null,loadingIndicator:v,loadingPosition:b="center",size:w="medium",startIcon:E,type:C,variant:R="text",..._}=r,L=e0(y),T=v??s.jsx(p3,{"aria-labelledby":L,color:"inherit",size:16}),j={...r,color:a,component:l,disabled:d,disableElevation:p,disableFocusRipple:f,fullWidth:m,loading:x,loadingIndicator:T,loadingPosition:b,size:w,type:C,variant:R},S=(z=>{const{color:A,disableElevation:D,fullWidth:F,size:B,variant:M,loading:N,loadingPosition:V,classes:U}=z,J=Rn({root:["root",N&&"loading",M,`${M}${xt(A)}`,`size${xt(B)}`,`${M}Size${xt(B)}`,`color${xt(A)}`,D&&"disableElevation",F&&"fullWidth",N&&`loadingPosition${xt(V)}`],startIcon:["icon","startIcon",`iconSize${xt(B)}`],endIcon:["icon","endIcon",`iconSize${xt(B)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},bT,U);return{...U,...J}})(j),k=(E||x&&b==="start")&&s.jsx(CT,{className:S.startIcon,ownerState:j,children:E||s.jsx(S6,{className:S.loadingIconPlaceholder,ownerState:j})}),P=(h||x&&b==="end")&&s.jsx(kT,{className:S.endIcon,ownerState:j,children:h||s.jsx(S6,{className:S.loadingIconPlaceholder,ownerState:j})}),O=o||"",I=typeof x=="boolean"?s.jsx("span",{className:S.loadingWrapper,style:{display:"contents"},children:x&&s.jsx(ET,{className:S.loadingIndicator,ownerState:j,children:T})}):null;return s.jsxs(ST,{ownerState:j,className:Ot(n.className,S.root,c,O),component:l,disabled:d||x,focusRipple:!f,focusVisibleClassName:Ot(S.focusVisible,g),ref:t,type:C,id:x?L:y,..._,classes:S,children:[k,b!=="end"&&I,i,b==="end"&&I,P]})});function MT(e){return jn("PrivateSwitchBase",e)}kn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const TT=Et(Qa,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),_T=Et("input",{name:"MuiSwitchBase",shouldForwardProp:Xr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),jT=G.forwardRef(function(e,t){const{autoFocus:n,checked:o,checkedIcon:r,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:d,id:p,inputProps:f,inputRef:h,name:g,onBlur:m,onChange:y,onFocus:x,readOnly:v,required:b=!1,tabIndex:w,type:E,value:C,slots:R={},slotProps:_={},...L}=e,[T,j]=Pc({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),S=Ra();let k=a;S&&k===void 0&&(k=S.disabled);const P=E==="checkbox"||E==="radio",O={...e,checked:T,disabled:k,disableFocusRipple:l,edge:c},I=(M=>{const{classes:N,checked:V,disabled:U,edge:J}=M;return Rn({root:["root",V&&"checked",U&&"disabled",J&&`edge${xt(J)}`],input:["input"]},MT,N)})(O),z={slots:R,slotProps:{input:f,..._}},[A,D]=Qn("root",{ref:t,elementType:TT,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...L},getSlotProps:M=>({...M,onFocus:N=>{M.onFocus?.(N),(V=>{x&&x(V),S&&S.onFocus&&S.onFocus(V)})(N)},onBlur:N=>{M.onBlur?.(N),(V=>{m&&m(V),S&&S.onBlur&&S.onBlur(V)})(N)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:k,role:void 0,tabIndex:null}}),[F,B]=Qn("input",{ref:h,elementType:_T,className:I.input,externalForwardedProps:z,getSlotProps:M=>({onChange:N=>{M.onChange?.(N),(V=>{if(V.nativeEvent.defaultPrevented)return;const U=V.target.checked;j(U),y&&y(V,U)})(N)}}),ownerState:O,additionalProps:{autoFocus:n,checked:o,defaultChecked:i,disabled:k,id:P?p:void 0,name:g,readOnly:v,required:b,tabIndex:w,type:E,...E==="checkbox"&&C===void 0?{}:{value:C}}});return s.jsxs(A,{...D,children:[s.jsx(F,{...B}),T?r:d]})}),RT=Kn(s.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),IT=Kn(s.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),PT=Kn(s.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function OT(e){return jn("MuiCheckbox",e)}const np=kn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DT=Et(jT,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${xt(n.size)}`],n.color!=="default"&&t[`color${xt(n.color)}`]]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&.${np.checked}, &.${np.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${np.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),AT=s.jsx(IT,{}),LT=s.jsx(RT,{}),zT=s.jsx(PT,{}),Ba=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiCheckbox"}),{checkedIcon:o=AT,color:r="primary",icon:i=LT,indeterminate:a=!1,indeterminateIcon:l=zT,inputProps:c,size:d="medium",disableRipple:p=!1,className:f,slots:h={},slotProps:g={},...m}=n,y=a?l:i,x=a?l:o,v={...n,disableRipple:p,color:r,indeterminate:a,size:d},b=(R=>{const{classes:_,indeterminate:L,color:T,size:j}=R,S=Rn({root:["root",L&&"indeterminate",`color${xt(T)}`,`size${xt(j)}`]},OT,_);return{..._,...S}})(v),w=g.input??c,[E,C]=Qn("root",{ref:t,elementType:DT,className:Ot(b.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...m},ownerState:v,additionalProps:{type:"checkbox",icon:G.cloneElement(y,{fontSize:y.props.fontSize??d}),checkedIcon:G.cloneElement(x,{fontSize:x.props.fontSize??d}),disableRipple:p,slots:h,slotProps:{input:cx(typeof w=="function"?w(v):w,{"data-indeterminate":a})}}});return s.jsx(E,{...C,classes:b})});function mc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function C6(e){return parseInt(Vi(e).getComputedStyle(e).paddingRight,10)||0}function k6(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),c=!function(d){const p=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(d.tagName),f=d.tagName==="INPUT"&&d.getAttribute("type")==="hidden";return p||f}(a);l&&c&&mc(a,r)})}function op(e,t){let n=-1;return e.some((o,r)=>!!t(o)&&(n=r,!0)),n}function FT(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(i){const a=ur(i);return a.body===i?Vi(i).innerWidth>a.documentElement.clientWidth:i.scrollHeight>i.clientHeight}(o)){const i=Zy(Vi(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${C6(o)+i}px`;const a=ur(o).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${C6(l)+i}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=ur(o).body;else{const i=o.parentElement,a=Vi(o);r=i?.nodeName==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:i,property:a})=>{r?i.style.setProperty(a,r):i.style.removeProperty(a)})}}const BT=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function NT(e){const t=[],n=[];return Array.from(e.querySelectorAll(BT)).forEach((o,r)=>{const i=function(a){const l=parseInt(a.getAttribute("tabindex")||"",10);return Number.isNaN(l)?a.contentEditable==="true"||(a.nodeName==="AUDIO"||a.nodeName==="VIDEO"||a.nodeName==="DETAILS")&&a.getAttribute("tabindex")===null?0:a.tabIndex:l}(o);i!==-1&&function(a){return!(a.disabled||a.tagName==="INPUT"&&a.type==="hidden"||function(l){if(l.tagName!=="INPUT"||l.type!=="radio"||!l.name)return!1;const c=p=>l.ownerDocument.querySelector(`input[type="radio"]${p}`);let d=c(`[name="${l.name}"]:checked`);return d||(d=c(`[name="${l.name}"]`)),d!==l}(a))}(o)&&(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function $T(){return!0}function VT(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=NT,isEnabled:a=$T,open:l}=e,c=G.useRef(!1),d=G.useRef(null),p=G.useRef(null),f=G.useRef(null),h=G.useRef(null),g=G.useRef(!1),m=G.useRef(null),y=Xo(t0(t),m),x=G.useRef(null);G.useEffect(()=>{l&&m.current&&(g.current=!n)},[n,l]),G.useEffect(()=>{if(!l||!m.current)return;const b=ur(m.current);return m.current.contains(b.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{r||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}},[l]),G.useEffect(()=>{if(!l||!m.current)return;const b=ur(m.current),w=R=>{x.current=R,!o&&a()&&R.key==="Tab"&&b.activeElement===m.current&&R.shiftKey&&(c.current=!0,p.current&&p.current.focus())},E=()=>{const R=m.current;if(R===null)return;if(!b.hasFocus()||!a()||c.current)return void(c.current=!1);if(R.contains(b.activeElement)||o&&b.activeElement!==d.current&&b.activeElement!==p.current)return;if(b.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let _=[];if(b.activeElement!==d.current&&b.activeElement!==p.current||(_=i(m.current)),_.length>0){const L=!!(x.current?.shiftKey&&x.current?.key==="Tab"),T=_[0],j=_[_.length-1];typeof T!="string"&&typeof j!="string"&&(L?j.focus():T.focus())}else R.focus()};b.addEventListener("focusin",E),b.addEventListener("keydown",w,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",E),b.removeEventListener("keydown",w,!0)}},[n,o,r,a,l,i]);const v=b=>{f.current===null&&(f.current=b.relatedTarget),g.current=!0};return s.jsxs(G.Fragment,{children:[s.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),G.cloneElement(t,{ref:y,onFocus:b=>{f.current===null&&(f.current=b.relatedTarget),g.current=!0,h.current=b.target;const w=t.props.onFocus;w&&w(b)}}),s.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:p,"data-testid":"sentinelEnd"})]})}const E6=()=>{},U1=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&mc(e.modalRef,!1);const o=function(i){const a=[];return[].forEach.call(i.children,l=>{l.getAttribute("aria-hidden")==="true"&&a.push(l)}),a}(t);k6(t,e.mount,e.modalRef,o,!0);const r=op(this.containers,i=>i.container===t);return r!==-1?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=op(this.containers,r=>r.modals.includes(e)),o=this.containers[n];o.restore||(o.restore=FT(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(n===-1)return n;const o=op(this.containers,i=>i.modals.includes(e)),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),r.modals.length===0)r.restore&&r.restore(),e.modalRef&&mc(e.modalRef,t),k6(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=r.modals[r.modals.length-1];i.modalRef&&mc(i.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function HT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:c,open:d,rootRef:p}=e,f=G.useRef({}),h=G.useRef(null),g=G.useRef(null),m=Xo(g,p),[y,x]=G.useState(!d),v=function(S){return!!S&&S.props.hasOwnProperty("in")}(l);let b=!0;e["aria-hidden"]!=="false"&&e["aria-hidden"]!==!1||(b=!1);const w=()=>(f.current.modalRef=g.current,f.current.mount=h.current,f.current),E=()=>{U1.mount(w(),{disableScrollLock:o}),g.current&&(g.current.scrollTop=0)},C=zr(()=>{const S=function(k){return typeof k=="function"?k():k}(t)||ur(h.current).body;U1.add(w(),S),g.current&&E()}),R=()=>U1.isTopModal(w()),_=zr(S=>{h.current=S,S&&(d&&R()?E():g.current&&mc(g.current,b))}),L=G.useCallback(()=>{U1.remove(w(),b)},[b]);G.useEffect(()=>()=>{L()},[L]),G.useEffect(()=>{d?C():v&&r||L()},[d,L,v,r,C]);const T=S=>k=>{S.onKeyDown?.(k),k.key==="Escape"&&k.which!==229&&R()&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},j=S=>k=>{S.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(S={})=>{const k=hc(e);delete k.onTransitionEnter,delete k.onTransitionExited;const P={...k,...S};return{role:"presentation",...P,onKeyDown:T(P),ref:m}},getBackdropProps:(S={})=>{const k=S;return{"aria-hidden":!0,...k,onClick:j(k),open:d}},getTransitionProps:()=>({onEnter:Bm(()=>{x(!1),i&&i()},l?.props.onEnter??E6),onExited:Bm(()=>{x(!0),a&&a(),r&&L()},l?.props.onExited??E6)}),rootRef:m,portalRef:_,isTopModal:R,exited:y,hasTransition:v}}function WT(e){return jn("MuiModal",e)}kn("MuiModal",["root","hidden","backdrop"]);const UT=Et("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vn(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),qT=Et(Cx,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),KT=G.forwardRef(function(e,t){const n=An({name:"MuiModal",props:e}),{BackdropComponent:o=qT,BackdropProps:r,classes:i,className:a,closeAfterTransition:l=!1,children:c,container:d,component:p,components:f={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:v=!1,disableScrollLock:b=!1,hideBackdrop:w=!1,keepMounted:E=!1,onBackdropClick:C,onClose:R,onTransitionEnter:_,onTransitionExited:L,open:T,slotProps:j={},slots:S={},theme:k,...P}=n,O={...n,closeAfterTransition:l,disableAutoFocus:g,disableEnforceFocus:m,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:v,disableScrollLock:b,hideBackdrop:w,keepMounted:E},{getRootProps:I,getBackdropProps:z,getTransitionProps:A,portalRef:D,isTopModal:F,exited:B,hasTransition:M}=HT({...O,rootRef:t}),N={...O,exited:B},V=(ye=>{const{open:de,exited:xe,classes:we}=ye;return Rn({root:["root",!de&&xe&&"hidden"],backdrop:["backdrop"]},WT,we)})(N),U={};if(c.props.tabIndex===void 0&&(U.tabIndex="-1"),M){const{onEnter:ye,onExited:de}=A();U.onEnter=ye,U.onExited=de}const J={slots:{root:f.Root,backdrop:f.Backdrop,...S},slotProps:{...h,...j}},[X,H]=Qn("root",{ref:t,elementType:UT,externalForwardedProps:{...J,...P,component:p},getSlotProps:I,ownerState:N,className:Ot(a,V?.root,!N.open&&N.exited&&V?.hidden)}),[ne,oe]=Qn("backdrop",{ref:r?.ref,elementType:o,externalForwardedProps:J,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:ye=>z({...ye,onClick:de=>{C&&C(de),ye?.onClick&&ye.onClick(de)}}),className:Ot(r?.className,V?.backdrop),ownerState:N});return E||T||M&&!B?s.jsx(wx,{ref:D,container:d,disablePortal:x,children:s.jsxs(X,{...H,children:[!w&&o?s.jsx(ne,{...oe}):null,s.jsx(VT,{disableEnforceFocus:m,disableAutoFocus:g,disableRestoreFocus:v,isEnabled:F,open:T,children:G.cloneElement(c,U)})]})}):null}),GT=G.createContext({});function ZT(e){return jn("MuiDialogActions",e)}kn("MuiDialogActions",["root","spacing"]);const XT=Et("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),YT=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:r=!1,...i}=n,a={...n,disableSpacing:r},l=(c=>{const{classes:d,disableSpacing:p}=c;return Rn({root:["root",!p&&"spacing"]},ZT,d)})(a);return s.jsx(XT,{className:Ot(l.root,o),ownerState:a,ref:t,...i})});function JT(e){return jn("MuiDialogContent",e)}function QT(e){return jn("MuiDialogTitle",e)}kn("MuiDialogContent",["root","dividers"]);const e_=kn("MuiDialogTitle",["root"]),t_=Et("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(vn(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${e_.root} + &`]:{paddingTop:0}}}]}))),Ex=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogContent"}),{className:o,dividers:r=!1,...i}=n,a={...n,dividers:r},l=(c=>{const{classes:d,dividers:p}=c;return Rn({root:["root",p&&"dividers"]},JT,d)})(a);return s.jsx(t_,{className:Ot(l.root,o),ownerState:a,ref:t,...i})}),n_=Et(Mn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Mx=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiDialogTitle"}),{className:o,id:r,...i}=n,a=n,l=(d=>{const{classes:p}=d;return Rn({root:["root"]},QT,p)})(a),{titleId:c=r}=G.useContext(GT);return s.jsx(n_,{component:"h2",className:Ot(l.root,o),ownerState:a,ref:t,variant:"h6",id:r??c,...i})});function o_(e){return jn("MuiDivider",e)}const M6=kn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),r_=Et("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vn(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),i_=Et("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vn(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),va=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:i,orientation:a="horizontal",component:l=r||a==="vertical"?"div":"hr",flexItem:c=!1,light:d=!1,role:p=l!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth",...g}=n,m={...n,absolute:o,component:l,flexItem:c,light:d,orientation:a,role:p,textAlign:f,variant:h},y=(x=>{const{absolute:v,children:b,classes:w,flexItem:E,light:C,orientation:R,textAlign:_,variant:L}=x;return Rn({root:["root",v&&"absolute",L,C&&"light",R==="vertical"&&"vertical",E&&"flexItem",b&&"withChildren",b&&R==="vertical"&&"withChildrenVertical",_==="right"&&R!=="vertical"&&"textAlignRight",_==="left"&&R!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",R==="vertical"&&"wrapperVertical"]},o_,w)})(m);return s.jsx(r_,{as:l,className:Ot(y.root,i),role:p,ref:t,ownerState:m,"aria-orientation":p!=="separator"||l==="hr"&&a!=="vertical"?void 0:a,...g,children:r?s.jsx(i_,{className:y.wrapper,ownerState:m,children:r}):null})});va&&(va.muiSkipListHighlight=!0);const a_=Et(y2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m2(e,t),!n.disableUnderline&&t.underline]}})(vn(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${il.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${il.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${il.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${il.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${il.disabled}, .${il.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${il.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dr()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),l_=Et(x2,{name:"MuiFilledInput",slot:"Input",overridesResolver:g2})(vn(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),v3=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:r={},componentsProps:i,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text",...g}=n,m={...n,disableUnderline:o,fullWidth:a,inputComponent:c,multiline:d,type:h},y=(E=>{const{classes:C,disableUnderline:R,startAdornment:_,endAdornment:L,size:T,hiddenLabel:j,multiline:S}=E,k=Rn({root:["root",!R&&"underline",_&&"adornedStart",L&&"adornedEnd",T==="small"&&`size${xt(T)}`,j&&"hiddenLabel",S&&"multiline"],input:["input"]},pT,C);return{...C,...k}})(n),x={root:{ownerState:m},input:{ownerState:m}},v=p??i?cr(x,p??i):x,b=f.root??r.Root??a_,w=f.input??r.Input??l_;return s.jsx(b3,{slots:{root:b,input:w},slotProps:v,fullWidth:a,inputComponent:c,multiline:d,ref:t,type:h,...g,classes:y})});function s_(e){return jn("MuiFormControl",e)}v3.muiName="Input",kn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const c_=Et("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${xt(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),x1=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormControl"}),{children:o,className:r,color:i="primary",component:a="div",disabled:l=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:h="none",required:g=!1,size:m="medium",variant:y="outlined",...x}=n,v={...n,color:i,component:a,disabled:l,error:c,fullWidth:p,hiddenLabel:f,margin:h,required:g,size:m,variant:y},b=(O=>{const{classes:I,margin:z,fullWidth:A}=O;return Rn({root:["root",z!=="none"&&`margin${xt(z)}`,A&&"fullWidth"]},s_,I)})(v),[w,E]=G.useState(()=>{let O=!1;return o&&G.Children.forEach(o,I=>{if(!J2(I,["Input","Select"]))return;const z=J2(I,["Select"])?I.props.input:I;z&&z.props.startAdornment&&(O=!0)}),O}),[C,R]=G.useState(()=>{let O=!1;return o&&G.Children.forEach(o,I=>{J2(I,["Input","Select"])&&(hu(I.props,!0)||hu(I.props.inputProps,!0))&&(O=!0)}),O}),[_,L]=G.useState(!1);l&&_&&L(!1);const T=d===void 0||l?_:d;let j;G.useRef(!1);const S=G.useCallback(()=>{R(!0)},[]),k=G.useCallback(()=>{R(!1)},[]),P=G.useMemo(()=>({adornedStart:w,setAdornedStart:E,color:i,disabled:l,error:c,filled:C,focused:T,fullWidth:p,hiddenLabel:f,size:m,onBlur:()=>{L(!1)},onFocus:()=>{L(!0)},onEmpty:k,onFilled:S,registerEffect:j,required:g,variant:y}),[w,i,l,c,C,T,p,f,j,k,S,g,m,y]);return s.jsx(f2.Provider,{value:P,children:s.jsx(c_,{as:a,ownerState:v,className:Ot(b.root,r),ref:t,...x,children:o})})});function d_(e){return jn("MuiFormControlLabel",e)}const Y0=kn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),u_=Et("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Y0.label}`]:t.label},t.root,t[`labelPlacement${xt(n.labelPlacement)}`]]}})(vn(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Y0.disabled}`]:{cursor:"default"},[`& .${Y0.label}`]:{[`&.${Y0.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),p_=Et("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vn(({theme:e})=>({[`&.${Y0.error}`]:{color:(e.vars||e).palette.error.main}}))),Na=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormControlLabel"}),{checked:o,className:r,componentsProps:i={},control:a,disabled:l,disableTypography:c,inputRef:d,label:p,labelPlacement:f="end",name:h,onChange:g,required:m,slots:y={},slotProps:x={},value:v,...b}=n,w=Ra(),E=l??a.props.disabled??w?.disabled,C=m??a.props.required,R={disabled:E,required:C};["checked","name","onChange","value","inputRef"].forEach(O=>{a.props[O]===void 0&&n[O]!==void 0&&(R[O]=n[O])});const _=Ul({props:n,muiFormControl:w,states:["error"]}),L={...n,disabled:E,labelPlacement:f,required:C,error:_.error},T=(O=>{const{classes:I,disabled:z,labelPlacement:A,error:D,required:F}=O;return Rn({root:["root",z&&"disabled",`labelPlacement${xt(A)}`,D&&"error",F&&"required"],label:["label",z&&"disabled"],asterisk:["asterisk",D&&"error"]},d_,I)})(L),j={slots:y,slotProps:{...i,...x}},[S,k]=Qn("typography",{elementType:Mn,externalForwardedProps:j,ownerState:L});let P=p;return P==null||P.type===Mn||c||(P=s.jsx(S,{component:"span",...k,className:Ot(T.label,k?.className),children:P})),s.jsxs(u_,{className:Ot(T.root,r),ownerState:L,ref:t,...b,children:[G.cloneElement(a,R),C?s.jsxs("div",{children:[P,s.jsxs(p_,{ownerState:L,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):P]})});function h_(e){return jn("MuiFormHelperText",e)}const T6=kn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var _6;const f_=Et("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${xt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${T6.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${T6.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),m_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormHelperText"}),{children:o,className:r,component:i="p",disabled:a,error:l,filled:c,focused:d,margin:p,required:f,variant:h,...g}=n,m=Ul({props:n,muiFormControl:Ra(),states:["variant","size","disabled","error","filled","focused","required"]}),y={...n,component:i,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete y.ownerState;const x=(v=>{const{classes:b,contained:w,size:E,disabled:C,error:R,filled:_,focused:L,required:T}=v;return Rn({root:["root",C&&"disabled",R&&"error",E&&`size${xt(E)}`,w&&"contained",L&&"focused",_&&"filled",T&&"required"]},h_,b)})(y);return s.jsx(f_,{as:i,className:Ot(x.root,r),ref:t,...g,ownerState:y,children:o===" "?_6||(_6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function g_(e){return jn("MuiFormLabel",e)}const gc=kn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),y_=Et("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(vn(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&.${gc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${gc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),x_=Et("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vn(({theme:e})=>({[`&.${gc.error}`]:{color:(e.vars||e).palette.error.main}}))),b_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiFormLabel"}),{children:o,className:r,color:i,component:a="label",disabled:l,error:c,filled:d,focused:p,required:f,...h}=n,g=Ul({props:n,muiFormControl:Ra(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:g.color||"primary",component:a,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required},y=(x=>{const{classes:v,color:b,focused:w,disabled:E,error:C,filled:R,required:_}=x;return Rn({root:["root",`color${xt(b)}`,E&&"disabled",C&&"error",R&&"filled",w&&"focused",_&&"required"],asterisk:["asterisk",C&&"error"]},g_,v)})(m);return s.jsxs(y_,{as:a,ownerState:m,className:Ot(y.root,r),ref:t,...h,children:[o,g.required&&s.jsxs(x_,{ownerState:m,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function L5(e){return`scale(${e}, ${e**2})`}const v_={entering:{opacity:1,transform:L5(1)},entered:{opacity:1,transform:"none"}},rp=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zc=G.forwardRef(function(e,t){const{addEndListener:n,appear:o=!0,children:r,easing:i,in:a,onEnter:l,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:g,timeout:m="auto",TransitionComponent:y=Bi,...x}=e,v=bl(),b=G.useRef(),w=o0(),E=G.useRef(null),C=Xo(E,t0(r),t),R=P=>O=>{if(P){const I=E.current;O===void 0?P(I):P(I,O)}},_=R(d),L=R((P,O)=>{px(P);const{duration:I,delay:z,easing:A}=Oc({style:g,timeout:m,easing:i},{mode:"enter"});let D;m==="auto"?(D=w.transitions.getAutoHeightDuration(P.clientHeight),b.current=D):D=I,P.style.transition=[w.transitions.create("opacity",{duration:D,delay:z}),w.transitions.create("transform",{duration:rp?D:.666*D,delay:z,easing:A})].join(","),l&&l(P,O)}),T=R(c),j=R(h),S=R(P=>{const{duration:O,delay:I,easing:z}=Oc({style:g,timeout:m,easing:i},{mode:"exit"});let A;m==="auto"?(A=w.transitions.getAutoHeightDuration(P.clientHeight),b.current=A):A=O,P.style.transition=[w.transitions.create("opacity",{duration:A,delay:I}),w.transitions.create("transform",{duration:rp?A:.666*A,delay:rp?I:I||.333*A,easing:z})].join(","),P.style.opacity=0,P.style.transform=L5(.75),p&&p(P)}),k=R(f);return s.jsx(y,{appear:o,in:a,nodeRef:E,onEnter:L,onEntered:T,onEntering:_,onExit:S,onExited:k,onExiting:j,addEndListener:P=>{m==="auto"&&v.start(b.current||0,P),n&&n(E.current,P)},timeout:m==="auto"?null:m,...x,children:(P,{ownerState:O,...I})=>G.cloneElement(r,{style:{opacity:0,transform:L5(.75),visibility:P!=="exited"||a?void 0:"hidden",...v_[P],...g,...r.props.style},ref:C,...I})})});zc&&(zc.muiSupportAuto=!0);const w_=qy({themeId:s1}),S_=Et(y2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...m2(e,t),!n.disableUnderline&&t.underline]}})(vn(({theme:e})=>{let t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:n})=>n.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:n})=>!n.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${w0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${w0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${w0.disabled}, .${w0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${w0.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[n].main}`}}}))]}})),C_=Et(x2,{name:"MuiInput",slot:"Input",overridesResolver:g2})({}),ql=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiInput"}),{disableUnderline:o=!1,components:r={},componentsProps:i,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...h}=n,g=(b=>{const{classes:w,disableUnderline:E}=b,C=Rn({root:["root",!E&&"underline"],input:["input"]},dT,w);return{...w,...C}})(n),m={root:{ownerState:{disableUnderline:o}}},y=d??i?cr(d??i,m):m,x=p.root??r.Root??S_,v=p.input??r.Input??C_;return s.jsx(b3,{slots:{root:x,input:v},slotProps:y,fullWidth:a,inputComponent:l,multiline:c,ref:t,type:f,...h,classes:g})});function k_(e){return jn("MuiInputAdornment",e)}ql.muiName="Input";const j6=kn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var R6;const E_=Et("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${xt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]}})(vn(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${j6.positionStart}&:not(.${j6.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Tx=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:d,...p}=n,f=Ra()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const g={...n,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:h},m=(y=>{const{classes:x,disablePointerEvents:v,hiddenLabel:b,position:w,size:E,variant:C}=y;return Rn({root:["root",v&&"disablePointerEvents",w&&`position${xt(w)}`,C,b&&"hiddenLabel",E&&`size${xt(E)}`]},k_,x)})(g);return s.jsx(f2.Provider,{value:null,children:s.jsx(E_,{as:i,ownerState:g,className:Ot(m.root,r),ref:t,...p,children:typeof o!="string"||l?s.jsxs(G.Fragment,{children:[c==="start"?R6||(R6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]}):s.jsx(Mn,{color:"textSecondary",children:o})})})});function M_(e){return jn("MuiInputLabel",e)}kn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const T_=Et(b_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vn(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),_x=G.forwardRef(function(e,t){const n=An({name:"MuiInputLabel",props:e}),{disableAnimation:o=!1,margin:r,shrink:i,variant:a,className:l,...c}=n,d=Ra();let p=i;p===void 0&&d&&(p=d.filled||d.focused||d.adornedStart);const f=Ul({props:n,muiFormControl:d,states:["size","variant","required","focused"]}),h={...n,disableAnimation:o,formControl:d,shrink:p,size:f.size,variant:f.variant,required:f.required,focused:f.focused},g=(m=>{const{classes:y,formControl:x,size:v,shrink:b,disableAnimation:w,variant:E,required:C}=m,R=Rn({root:["root",x&&"formControl",!w&&"animated",b&&"shrink",v&&v!=="normal"&&`size${xt(v)}`,E],asterisk:[C&&"asterisk"]},M_,y);return{...y,...R}})(h);return s.jsx(T_,{"data-shrink":p,ref:t,className:Ot(g.root,l),...c,ownerState:h,classes:g})}),fu=G.createContext({});function __(e){return jn("MuiList",e)}kn("MuiList",["root","padding","dense","subheader"]);const j_=Et("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),R_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiList"}),{children:o,className:r,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...d}=n,p=G.useMemo(()=>({dense:a}),[a]),f={...n,component:i,dense:a,disablePadding:l},h=(g=>{const{classes:m,disablePadding:y,dense:x,subheader:v}=g;return Rn({root:["root",!y&&"padding",x&&"dense",v&&"subheader"]},__,m)})(f);return s.jsx(fu.Provider,{value:p,children:s.jsxs(j_,{as:i,className:Ot(h.root,r),ref:t,ownerState:f,...d,children:[c,o]})})});function I_(e){return jn("MuiListItemIcon",e)}const I6=kn("MuiListItemIcon",["root","alignItemsFlexStart"]),P_=Et("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(vn(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),O_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiListItemIcon"}),{className:o,...r}=n,i=G.useContext(fu),a={...n,alignItems:i.alignItems},l=(c=>{const{alignItems:d,classes:p}=c;return Rn({root:["root",d==="flex-start"&&"alignItemsFlexStart"]},I_,p)})(a);return s.jsx(P_,{className:Ot(l.root,o),ownerState:a,ref:t,...r})}),P6=kn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function ip(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function O6(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jx(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length!==0&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function S0(e,t,n,o,r,i){let a=!1,l=r(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=!o&&(l.disabled||l.getAttribute("aria-disabled")==="true");if(l.hasAttribute("tabindex")&&jx(l,i)&&!c)return l.focus(),!0;l=r(e,l,n)}return!1}const D_=G.forwardRef(function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:d,variant:p="selectedMenu",...f}=e,h=G.useRef(null),g=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Br(()=>{o&&h.current.focus()},[o]),G.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(v,{direction:b})=>{const w=!h.current.style.width;if(v.clientHeight<h.current.clientHeight&&w){const E=`${Zy(Vi(v))}px`;h.current.style[b==="rtl"?"paddingLeft":"paddingRight"]=E,h.current.style.width=`calc(100% + ${E})`}return h.current}}),[]);const m=Xo(h,t);let y=-1;G.Children.forEach(i,(v,b)=>{G.isValidElement(v)?(v.props.disabled||(p==="selectedMenu"&&v.props.selected||y===-1)&&(y=b),y===b&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(y+=1,y>=i.length&&(y=-1))):y===b&&(y+=1,y>=i.length&&(y=-1))});const x=G.Children.map(i,(v,b)=>{if(b===y){const w={};return r&&(w.autoFocus=!0),v.props.tabIndex===void 0&&p==="selectedMenu"&&(w.tabIndex=0),G.cloneElement(v,w)}return v});return s.jsx(R_,{role:"menu",ref:m,className:a,onKeyDown:v=>{const b=h.current,w=v.key;if(v.ctrlKey||v.metaKey||v.altKey)return void(d&&d(v));const E=ur(b).activeElement;if(w==="ArrowDown")v.preventDefault(),S0(b,E,c,l,ip);else if(w==="ArrowUp")v.preventDefault(),S0(b,E,c,l,O6);else if(w==="Home")v.preventDefault(),S0(b,null,c,l,ip);else if(w==="End")v.preventDefault(),S0(b,null,c,l,O6);else if(w.length===1){const C=g.current,R=w.toLowerCase(),_=performance.now();C.keys.length>0&&(_-C.lastTime>500?(C.keys=[],C.repeating=!0,C.previousKeyMatched=!0):C.repeating&&R!==C.keys[0]&&(C.repeating=!1)),C.lastTime=_,C.keys.push(R);const L=E&&!C.repeating&&jx(E,C);C.previousKeyMatched&&(L||S0(b,E,!1,l,ip,C))?v.preventDefault():C.previousKeyMatched=!1}d&&d(v)},tabIndex:o?0:-1,...f,children:x})});function A_(e){return jn("MuiPopover",e)}function D6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function A6(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function L6(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function q1(e){return typeof e=="function"?e():e}kn("MuiPopover",["root","paper"]);const L_=Et(KT,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rx=Et(Mi,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),z_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiPopover"}),{action:o,anchorEl:r,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:d,container:p,elevation:f=8,marginThreshold:h=16,open:g,PaperProps:m={},slots:y={},slotProps:x={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:b,transitionDuration:w="auto",TransitionProps:E={},disableScrollLock:C=!1,...R}=n,_=G.useRef(),L={...n,anchorOrigin:i,anchorReference:l,elevation:f,marginThreshold:h,transformOrigin:v,TransitionComponent:b,transitionDuration:w,TransitionProps:E},T=(H=>{const{classes:ne}=H;return Rn({root:["root"],paper:["paper"]},A_,ne)})(L),j=G.useCallback(()=>{if(l==="anchorPosition")return a;const H=q1(r),ne=(H&&H.nodeType===1?H:ur(_.current).body).getBoundingClientRect();return{top:ne.top+D6(ne,i.vertical),left:ne.left+A6(ne,i.horizontal)}},[r,i.horizontal,i.vertical,a,l]),S=G.useCallback(H=>({vertical:D6(H,v.vertical),horizontal:A6(H,v.horizontal)}),[v.horizontal,v.vertical]),k=G.useCallback(H=>{const ne={width:H.offsetWidth,height:H.offsetHeight},oe=S(ne);if(l==="none")return{top:null,left:null,transformOrigin:L6(oe)};const ye=j();let de=ye.top-oe.vertical,xe=ye.left-oe.horizontal;const we=de+ne.height,ve=xe+ne.width,re=Vi(q1(r)),ce=re.innerHeight-h,Se=re.innerWidth-h;if(h!==null&&de<h){const ie=de-h;de-=ie,oe.vertical+=ie}else if(h!==null&&we>ce){const ie=we-ce;de-=ie,oe.vertical+=ie}if(h!==null&&xe<h){const ie=xe-h;xe-=ie,oe.horizontal+=ie}else if(ve>Se){const ie=ve-Se;xe-=ie,oe.horizontal+=ie}return{top:`${Math.round(de)}px`,left:`${Math.round(xe)}px`,transformOrigin:L6(oe)}},[r,l,j,S,h]),[P,O]=G.useState(g),I=G.useCallback(()=>{const H=_.current;if(!H)return;const ne=k(H);ne.top!==null&&H.style.setProperty("top",ne.top),ne.left!==null&&(H.style.left=ne.left),H.style.transformOrigin=ne.transformOrigin,O(!0)},[k]);G.useEffect(()=>(C&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[r,C,I]),G.useEffect(()=>{g&&I()}),G.useImperativeHandle(o,()=>g?{updatePosition:()=>{I()}}:null,[g,I]),G.useEffect(()=>{if(!g)return;const H=d2(()=>{I()}),ne=Vi(q1(r));return ne.addEventListener("resize",H),()=>{H.clear(),ne.removeEventListener("resize",H)}},[r,g,I]);let z=w;const A={slots:{transition:b,...y},slotProps:{transition:E,paper:m,...x}},[D,F]=Qn("transition",{elementType:zc,externalForwardedProps:A,ownerState:L,getSlotProps:H=>({...H,onEntering:(ne,oe)=>{H.onEntering?.(ne,oe),I()},onExited:ne=>{H.onExited?.(ne),O(!1)}}),additionalProps:{appear:!0,in:g}});w!=="auto"||D.muiSupportAuto||(z=void 0);const B=p||(r?ur(q1(r)).body:void 0),[M,{slots:N,slotProps:V,...U}]=Qn("root",{ref:t,elementType:L_,externalForwardedProps:{...A,...R},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:y.backdrop},slotProps:{backdrop:cx(typeof x.backdrop=="function"?x.backdrop(L):x.backdrop,{invisible:!0})},container:B,open:g},ownerState:L,className:Ot(T.root,d)}),[J,X]=Qn("paper",{ref:_,className:T.paper,elementType:Rx,externalForwardedProps:A,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:P?void 0:{opacity:0}},ownerState:L});return s.jsx(M,{...U,...!wl(M)&&{slots:N,slotProps:V,disableScrollLock:C},children:s.jsx(D,{...F,timeout:z,children:s.jsx(J,{...X,children:c})})})});function F_(e){return jn("MuiMenu",e)}kn("MuiMenu",["root","paper","list"]);const B_={vertical:"top",horizontal:"right"},N_={vertical:"top",horizontal:"left"},$_=Et(z_,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),V_=Et(Rx,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),H_=Et(D_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),W_=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiMenu"}),{autoFocus:o=!0,children:r,className:i,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:g,...m}={},variant:y="selectedMenu",slots:x={},slotProps:v={},...b}=n,w=n0(),E={...n,autoFocus:o,disableAutoFocusItem:a,MenuListProps:l,onEntering:g,PaperProps:p,transitionDuration:h,TransitionProps:m,variant:y},C=(z=>{const{classes:A}=z;return Rn({root:["root"],paper:["paper"],list:["list"]},F_,A)})(E),R=o&&!a&&d,_=G.useRef(null);let L=-1;G.Children.map(r,(z,A)=>{G.isValidElement(z)&&(z.props.disabled||(y==="selectedMenu"&&z.props.selected||L===-1)&&(L=A))});const T={slots:x,slotProps:{list:l,transition:m,paper:p,...v}},j=Vr({elementType:x.root,externalSlotProps:v.root,ownerState:E,className:[C.root,i]}),[S,k]=Qn("paper",{className:C.paper,elementType:V_,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:E}),[P,O]=Qn("list",{className:Ot(C.list,l.className),elementType:H_,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:z=>({...z,onKeyDown:A=>{(D=>{D.key==="Tab"&&(D.preventDefault(),c&&c(D,"tabKeyDown"))})(A),z.onKeyDown?.(A)}}),ownerState:E}),I=typeof T.slotProps.transition=="function"?T.slotProps.transition(E):T.slotProps.transition;return s.jsx($_,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?B_:N_,slots:{root:x.root,paper:S,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:j,paper:k,backdrop:typeof v.backdrop=="function"?v.backdrop(E):v.backdrop,transition:{...I,onEntering:(...z)=>{((A,D)=>{_.current&&_.current.adjustStyleForScrollbar(A,{direction:w?"rtl":"ltr"}),g&&g(A,D)})(...z),I?.onEntering?.(...z)}}},open:d,ref:t,transitionDuration:h,ownerState:E,...b,classes:f,children:s.jsx(P,{actions:_,autoFocus:o&&(L===-1||a),autoFocusItem:R,variant:y,...O,children:r})})});function U_(e){return jn("MuiMenuItem",e)}const C0=kn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),q_=Et(Qa,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})(vn(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${C0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${C0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${C0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${C0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${C0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${M6.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${M6.inset}`]:{marginLeft:52},[`& .${P6.root}`]:{marginTop:0,marginBottom:0},[`& .${P6.inset}`]:{paddingLeft:36},[`& .${I6.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${I6.root} svg`]:{fontSize:"1.25rem"}}}]}))),b1=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:p,className:f,...h}=n,g=G.useContext(fu),m=G.useMemo(()=>({dense:i||g.dense||!1,disableGutters:l}),[g.dense,i,l]),y=G.useRef(null);Br(()=>{o&&y.current&&y.current.focus()},[o]);const x={...n,dense:m.dense,divider:a,disableGutters:l},v=(E=>{const{disabled:C,dense:R,divider:_,disableGutters:L,selected:T,classes:j}=E,S=Rn({root:["root",R&&"dense",C&&"disabled",!L&&"gutters",_&&"divider",T&&"selected"]},U_,j);return{...j,...S}})(n),b=Xo(y,t);let w;return n.disabled||(w=p!==void 0?p:-1),s.jsx(fu.Provider,{value:m,children:s.jsx(q_,{ref:b,role:d,tabIndex:w,component:r,focusVisibleClassName:Ot(v.focusVisible,c),className:Ot(v.root,f),...h,ownerState:x,classes:v})})});function K_(e){return jn("MuiNativeSelect",e)}const w3=kn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ix=Et("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${w3.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),G_=Et(Ix,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Xr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${w3.multiple}`]:t.multiple}]}})({}),Px=Et("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${w3.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Z_=Et(Px,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xt(n.variant)}`],n.open&&t.iconOpen]}})({}),X_=G.forwardRef(function(e,t){const{className:n,disabled:o,error:r,IconComponent:i,inputRef:a,variant:l="standard",...c}=e,d={...e,disabled:o,variant:l,error:r},p=(f=>{const{classes:h,variant:g,disabled:m,multiple:y,open:x,error:v}=f;return Rn({select:["select",g,m&&"disabled",y&&"multiple",v&&"error"],icon:["icon",`icon${xt(g)}`,x&&"iconOpen",m&&"disabled"]},K_,h)})(d);return s.jsxs(G.Fragment,{children:[s.jsx(G_,{ownerState:d,className:Ot(p.select,n),disabled:o,ref:a||t,...c}),e.multiple?null:s.jsx(Z_,{as:i,ownerState:d,className:p.icon})]})});var z6;const Y_=Et("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Xr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),J_=Et("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Xr})(vn(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}))),Q_=Et(y2,{shouldForwardProp:e=>Xr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:m2})(vn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zi.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(dr()).map(([n])=>({props:{color:n},style:{[`&.${Zi.focused} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Zi.error} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zi.disabled} .${Zi.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),ej=Et(function(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",c={...e,notched:i,withLabel:l};return s.jsx(Y_,{"aria-hidden":!0,className:o,ownerState:c,...a,children:s.jsx(J_,{ownerState:c,children:l?s.jsx("span",{children:r}):z6||(z6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vn(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),tj=Et(x2,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:g2})(vn(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),S3=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiOutlinedInput"}),{components:o={},fullWidth:r=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:c,slots:d={},slotProps:p={},type:f="text",...h}=n,g=(C=>{const{classes:R}=C,_=Rn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},uT,R);return{...R,..._}})(n),m=Ra(),y=Ul({props:n,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...n,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:m,fullWidth:r,hiddenLabel:y.hiddenLabel,multiline:l,size:y.size,type:f},v=d.root??o.Root??Q_,b=d.input??o.Input??tj,[w,E]=Qn("notchedOutline",{elementType:ej,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:d,slotProps:p},additionalProps:{label:a!=null&&a!==""&&y.required?s.jsxs(G.Fragment,{children:[a," ","*"]}):a}});return s.jsx(b3,{slots:{root:v,input:b},slotProps:p,renderSuffix:C=>s.jsx(w,{...E,notched:c!==void 0?c:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:r,inputComponent:i,multiline:l,ref:t,type:f,...h,classes:{...g,notchedOutline:null}})});function Ox(e){return jn("MuiSelect",e)}S3.muiName="Input";const k0=kn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var F6;const nj=Et(Ix,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${k0.select}`]:t.select},{[`&.${k0.select}`]:t[n.variant]},{[`&.${k0.error}`]:t.error},{[`&.${k0.multiple}`]:t.multiple}]}})({[`&.${k0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),oj=Et(Px,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${xt(n.variant)}`],n.open&&t.iconOpen]}})({}),rj=Et("input",{shouldForwardProp:e=>p2(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function B6(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function ij(e){return e==null||typeof e=="string"&&!e.trim()}const aj=G.forwardRef(function(e,t){const{"aria-describedby":n,"aria-label":o,autoFocus:r,autoWidth:i,children:a,className:l,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:g,inputRef:m,labelId:y,MenuProps:x={},multiple:v,name:b,onBlur:w,onChange:E,onClose:C,onFocus:R,onOpen:_,open:L,readOnly:T,renderValue:j,required:S,SelectDisplayProps:k={},tabIndex:P,type:O,value:I,variant:z="standard",...A}=e,[D,F]=Pc({controlled:I,default:d,name:"Select"}),[B,M]=Pc({controlled:L,default:c,name:"Select"}),N=G.useRef(null),V=G.useRef(null),[U,J]=G.useState(null),{current:X}=G.useRef(L!=null),[H,ne]=G.useState(),oe=Xo(t,m),ye=G.useCallback(Xe=>{V.current=Xe,Xe&&J(Xe)},[]),de=U?.parentNode;G.useImperativeHandle(oe,()=>({focus:()=>{V.current.focus()},node:N.current,value:D}),[D]),G.useEffect(()=>{c&&B&&U&&!X&&(ne(i?null:de.clientWidth),V.current.focus())},[U,i]),G.useEffect(()=>{r&&V.current.focus()},[r]),G.useEffect(()=>{if(!y)return;const Xe=ur(V.current).getElementById(y);if(Xe){const Be=()=>{getSelection().isCollapsed&&V.current.focus()};return Xe.addEventListener("click",Be),()=>{Xe.removeEventListener("click",Be)}}},[y]);const xe=(Xe,Be)=>{Xe?_&&_(Be):C&&C(Be),X||(ne(i?null:de.clientWidth),M(Xe))},we=G.Children.toArray(a),ve=Xe=>Be=>{let ct;if(Be.currentTarget.hasAttribute("tabindex")){if(v){ct=Array.isArray(D)?D.slice():[];const Qe=D.indexOf(Xe.props.value);Qe===-1?ct.push(Xe.props.value):ct.splice(Qe,1)}else ct=Xe.props.value;if(Xe.props.onClick&&Xe.props.onClick(Be),D!==ct&&(F(ct),E)){const Qe=Be.nativeEvent||Be,he=new Qe.constructor(Qe.type,Qe);Object.defineProperty(he,"target",{writable:!0,value:{value:ct,name:b}}),E(he,Xe)}v||xe(!1,Be)}},re=U!==null&&B;let ce,Se;delete A["aria-invalid"];const ie=[];let Y=!1;(hu({value:D})||f)&&(j?ce=j(D):Y=!0);const le=we.map(Xe=>{if(!G.isValidElement(Xe))return null;let Be;if(v){if(!Array.isArray(D))throw new Error(Ma(2));Be=D.some(ct=>B6(ct,Xe.props.value)),Be&&Y&&ie.push(Xe.props.children)}else Be=B6(D,Xe.props.value),Be&&Y&&(Se=Xe.props.children);return G.cloneElement(Xe,{"aria-selected":Be?"true":"false",onClick:ve(Xe),onKeyUp:ct=>{ct.key===" "&&ct.preventDefault(),Xe.props.onKeyUp&&Xe.props.onKeyUp(ct)},role:"option",selected:Be,value:void 0,"data-value":Xe.props.value})});Y&&(ce=v?ie.length===0?null:ie.reduce((Xe,Be,ct)=>(Xe.push(Be),ct<ie.length-1&&Xe.push(", "),Xe),[]):Se);let ee,Pe=H;!i&&X&&U&&(Pe=de.clientWidth),ee=P!==void 0?P:p?null:0;const Te=k.id||(b?`mui-component-select-${b}`:void 0),rt={...e,variant:z,value:D,open:re,error:h},Ve=(Xe=>{const{classes:Be,variant:ct,disabled:Qe,multiple:he,open:Ye,error:ke}=Xe;return Rn({select:["select",ct,Qe&&"disabled",he&&"multiple",ke&&"error"],icon:["icon",`icon${xt(ct)}`,Ye&&"iconOpen",Qe&&"disabled"],nativeInput:["nativeInput"]},Ox,Be)})(rt),Ee={...x.PaperProps,...x.slotProps?.paper},Re=e0();return s.jsxs(G.Fragment,{children:[s.jsx(nj,{as:"div",ref:ye,tabIndex:ee,role:"combobox","aria-controls":re?Re:void 0,"aria-disabled":p?"true":void 0,"aria-expanded":re?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,Te].filter(Boolean).join(" ")||void 0,"aria-describedby":n,"aria-required":S?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Xe=>{T||[" ","ArrowUp","ArrowDown","Enter"].includes(Xe.key)&&(Xe.preventDefault(),xe(!0,Xe))},onMouseDown:p||T?null:Xe=>{Xe.button===0&&(Xe.preventDefault(),V.current.focus(),xe(!0,Xe))},onBlur:Xe=>{!re&&w&&(Object.defineProperty(Xe,"target",{writable:!0,value:{value:D,name:b}}),w(Xe))},onFocus:R,...k,ownerState:rt,className:Ot(k.className,Ve.select,l),id:Te,children:ij(ce)?F6||(F6=s.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):ce}),s.jsx(rj,{"aria-invalid":h,value:Array.isArray(D)?D.join(","):D,name:b,ref:N,"aria-hidden":!0,onChange:Xe=>{const Be=we.find(ct=>ct.props.value===Xe.target.value);Be!==void 0&&(F(Be.props.value),E&&E(Xe,Be))},tabIndex:-1,disabled:p,className:Ve.nativeInput,autoFocus:r,required:S,...A,ownerState:rt}),s.jsx(oj,{as:g,className:Ve.icon,ownerState:rt}),s.jsx(W_,{id:`menu-${b||""}`,anchorEl:de,open:re,onClose:Xe=>{xe(!1,Xe)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:Re,...x.MenuListProps},paper:{...Ee,style:{minWidth:Pe,...Ee!=null?Ee.style:null}}},children:le})]})}),C3={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Xr(e)&&e!=="variant",slot:"Root"},lj=Et(ql,C3)(""),sj=Et(S3,C3)(""),cj=Et(v3,C3)(""),b2=G.forwardRef(function(e,t){const n=An({name:"MuiSelect",props:e}),{autoWidth:o=!1,children:r,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:d=hT,id:p,input:f,inputProps:h,label:g,labelId:m,MenuProps:y,multiple:x=!1,native:v=!1,onClose:b,onOpen:w,open:E,renderValue:C,SelectDisplayProps:R,variant:_="outlined",...L}=n,T=v?X_:aj,j=Ul({props:n,muiFormControl:Ra(),states:["variant","error"]}),S=j.variant||_,k={...n,variant:S,classes:i},P=(D=>{const{classes:F}=D,B=Rn({root:["root"]},Ox,F);return{...F,...B}})(k),{root:O,...I}=P,z=f||{standard:s.jsx(lj,{ownerState:k}),outlined:s.jsx(sj,{label:g,ownerState:k}),filled:s.jsx(cj,{ownerState:k})}[S],A=Xo(t,t0(z));return s.jsx(G.Fragment,{children:G.cloneElement(z,{inputComponent:T,inputProps:{children:r,error:j.error,IconComponent:d,variant:S,type:void 0,multiple:x,...v?{id:p}:{autoWidth:o,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:y,onClose:b,onOpen:w,open:E,renderValue:C,SelectDisplayProps:{id:p,...R}},...h,classes:h?cr(I,h.classes):I,...f?f.props.inputProps:{}},...(x&&v||c)&&S==="outlined"?{notched:!0}:{},ref:A,className:Ot(z.props.className,a,P.root),...!f&&{variant:S},...L})})});b2.muiName="Select";function es(e,t,n,o,r){return n===1?Math.min(e+t,r):Math.max(e-t,o)}function Dx(e,t){return e-t}function N6(e,t){const{index:n}=e.reduce((o,r,i)=>{const a=Math.abs(t-r);return o===null||a<o.distance||a===o.distance?{distance:a,index:i}:o},null)??{};return n}function K1(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let o=0;o<n.changedTouches.length;o+=1){const r=n.changedTouches[o];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function mu(e,t,n){return 100*(e-t)/(n-t)}function dj(e,t,n){const o=Math.round((e-n)/t)*t+n;return Number(o.toFixed(function(r){if(Math.abs(r)<1){const a=r.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const i=r.toString().split(".")[1];return i?i.length:0}(t)))}function $6({values:e,newValue:t,index:n}){const o=e.slice();return o[n]=t,o.sort(Dx)}function G1({sliderRef:e,activeIndex:t,setActive:n}){const o=ur(e.current);e.current?.contains(o.activeElement)&&Number(o?.activeElement?.getAttribute("data-index"))===t||e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Z1(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"&&function(n,o,r=(i,a)=>i===a){return n.length===o.length&&n.every((i,a)=>r(i,o[a]))}(e,t)}const uj={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},pj=e=>e;let ap;function V6(){return ap===void 0&&(ap=typeof CSS>"u"||typeof CSS.supports!="function"||CSS.supports("touch-action","none")),ap}function hj(e){const{"aria-labelledby":t,defaultValue:n,disabled:o=!1,disableSwap:r=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:d,onChange:p,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:m=pj,step:y=1,shiftStep:x=10,tabIndex:v,value:b}=e,w=G.useRef(void 0),[E,C]=G.useState(-1),[R,_]=G.useState(-1),[L,T]=G.useState(!1),j=G.useRef(0),S=G.useRef(null),[k,P]=Pc({controlled:b,default:n??c,name:"Slider"}),O=p&&((ie,Y,le)=>{const ee=ie.nativeEvent||ie,Pe=new ee.constructor(ee.type,ee);Object.defineProperty(Pe,"target",{writable:!0,value:{value:Y,name:d}}),S.current=Y,p(Pe,Y,le)}),I=Array.isArray(k);let z=I?k.slice().sort(Dx):[k];z=z.map(ie=>ie==null?c:ss(ie,c,l));const A=a===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((ie,Y)=>({value:c+y*Y})):a||[],D=A.map(ie=>ie.value),[F,B]=G.useState(-1),M=G.useRef(null),N=Xo(g,M),V=ie=>Y=>{const le=Number(Y.currentTarget.getAttribute("data-index"));As(Y.target)&&B(le),_(le),ie?.onFocus?.(Y)},U=ie=>Y=>{As(Y.target)||B(-1),_(-1),ie?.onBlur?.(Y)},J=(ie,Y)=>{const le=Number(ie.currentTarget.getAttribute("data-index")),ee=z[le],Pe=D.indexOf(ee);let Te=Y;if(A&&y==null){const rt=D[D.length-1];Te=Te>=rt?rt:Te<=D[0]?D[0]:Te<ee?D[Pe-1]:D[Pe+1]}if(Te=ss(Te,c,l),I){r&&(Te=ss(Te,z[le-1]||-1/0,z[le+1]||1/0));const rt=Te;Te=$6({values:z,newValue:Te,index:le});let Ve=le;r||(Ve=Te.indexOf(rt)),G1({sliderRef:M,activeIndex:Ve})}P(Te),B(le),O&&!Z1(Te,k)&&O(ie,Te,le),f&&f(ie,S.current??Te)},X=ie=>Y=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Y.key)){Y.preventDefault();const le=Number(Y.currentTarget.getAttribute("data-index")),ee=z[le];let Pe=null;if(y!=null){const Te=Y.shiftKey?x:y;switch(Y.key){case"ArrowUp":Pe=es(ee,Te,1,c,l);break;case"ArrowRight":Pe=es(ee,Te,i?-1:1,c,l);break;case"ArrowDown":Pe=es(ee,Te,-1,c,l);break;case"ArrowLeft":Pe=es(ee,Te,i?1:-1,c,l);break;case"PageUp":Pe=es(ee,x,1,c,l);break;case"PageDown":Pe=es(ee,x,-1,c,l);break;case"Home":Pe=c;break;case"End":Pe=l}}else if(A){const Te=D[D.length-1],rt=D.indexOf(ee),Ve=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"].includes(Y.key)?Pe=rt===0?D[0]:D[rt-1]:Ve.includes(Y.key)&&(Pe=rt===D.length-1?Te:D[rt+1])}Pe!=null&&J(Y,Pe)}ie?.onKeyDown?.(Y)};Br(()=>{o&&M.current.contains(document.activeElement)&&document.activeElement?.blur()},[o]),o&&E!==-1&&C(-1),o&&F!==-1&&B(-1);const H=G.useRef(void 0);let ne=h;i&&h==="horizontal"&&(ne+="-reverse");const oe=({finger:ie,move:Y=!1})=>{const{current:le}=M,{width:ee,height:Pe,bottom:Te,left:rt}=le.getBoundingClientRect();let Ve,Ee;if(Ve=ne.startsWith("vertical")?(Te-ie.y)/Pe:(ie.x-rt)/ee,ne.includes("-reverse")&&(Ve=1-Ve),Ee=function(Xe,Be,ct){return(ct-Be)*Xe+Be}(Ve,c,l),y)Ee=dj(Ee,y,c);else{const Xe=N6(D,Ee);Ee=D[Xe]}Ee=ss(Ee,c,l);let Re=0;if(I){Re=Y?H.current:N6(z,Ee),r&&(Ee=ss(Ee,z[Re-1]||-1/0,z[Re+1]||1/0));const Xe=Ee;Ee=$6({values:z,newValue:Ee,index:Re}),r&&Y||(Re=Ee.indexOf(Xe),H.current=Re)}return{newValue:Ee,activeIndex:Re}},ye=zr(ie=>{const Y=K1(ie,w);if(!Y)return;if(j.current+=1,ie.type==="mousemove"&&ie.buttons===0)return void de(ie);const{newValue:le,activeIndex:ee}=oe({finger:Y,move:!0});G1({sliderRef:M,activeIndex:ee,setActive:C}),P(le),!L&&j.current>2&&T(!0),O&&!Z1(le,k)&&O(ie,le,ee)}),de=zr(ie=>{const Y=K1(ie,w);if(T(!1),!Y)return;const{newValue:le}=oe({finger:Y,move:!0});C(-1),ie.type==="touchend"&&_(-1),f&&f(ie,S.current??le),w.current=void 0,we()}),xe=zr(ie=>{if(o)return;V6()||ie.preventDefault();const Y=ie.changedTouches[0];Y!=null&&(w.current=Y.identifier);const le=K1(ie,w);if(le!==!1){const{newValue:Pe,activeIndex:Te}=oe({finger:le});G1({sliderRef:M,activeIndex:Te,setActive:C}),P(Pe),O&&!Z1(Pe,k)&&O(ie,Pe,Te)}j.current=0;const ee=ur(M.current);ee.addEventListener("touchmove",ye,{passive:!0}),ee.addEventListener("touchend",de,{passive:!0})}),we=G.useCallback(()=>{const ie=ur(M.current);ie.removeEventListener("mousemove",ye),ie.removeEventListener("mouseup",de),ie.removeEventListener("touchmove",ye),ie.removeEventListener("touchend",de)},[de,ye]);G.useEffect(()=>{const{current:ie}=M;return ie.addEventListener("touchstart",xe,{passive:V6()}),()=>{ie.removeEventListener("touchstart",xe),we()}},[we,xe]),G.useEffect(()=>{o&&we()},[o,we]);const ve=mu(I?z[0]:c,c,l),re=mu(z[z.length-1],c,l)-ve,ce=ie=>Y=>{ie.onMouseLeave?.(Y),_(-1)};let Se;return h==="vertical"&&(Se=i?"vertical-rl":"vertical-lr"),{active:E,axis:ne,axisProps:uj,dragging:L,focusedThumbIndex:F,getHiddenInputProps:(ie={})=>{const Y=hc(ie),le={onChange:(ee=Y||{},Te=>{ee.onChange?.(Te),J(Te,Te.target.valueAsNumber)}),onFocus:V(Y||{}),onBlur:U(Y||{}),onKeyDown:X(Y||{})};var ee;const Pe={...Y,...le};return{tabIndex:v,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":m(l),"aria-valuemin":m(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:o,...ie,...Pe,style:{...zE,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:Se}}},getRootProps:(ie={})=>{const Y=hc(ie),le={onMouseDown:(ee=Y||{},Te=>{if(ee.onMouseDown?.(Te),o||Te.defaultPrevented||Te.button!==0)return;Te.preventDefault();const rt=K1(Te,w);if(rt!==!1){const{newValue:Ee,activeIndex:Re}=oe({finger:rt});G1({sliderRef:M,activeIndex:Re,setActive:C}),P(Ee),O&&!Z1(Ee,k)&&O(Te,Ee,Re)}j.current=0;const Ve=ur(M.current);Ve.addEventListener("mousemove",ye,{passive:!0}),Ve.addEventListener("mouseup",de)})};var ee;const Pe={...Y,...le};return{...ie,ref:N,...Pe}},getThumbProps:(ie={})=>{const Y=hc(ie),le={onMouseOver:(ee=Y||{},Pe=>{ee.onMouseOver?.(Pe);const Te=Number(Pe.currentTarget.getAttribute("data-index"));_(Te)}),onMouseLeave:ce(Y||{})};var ee;return{...ie,...Y,...le}},marks:A,open:R,range:I,rootRef:N,trackLeap:re,trackOffset:ve,values:z,getThumbStyle:ie=>({pointerEvents:E!==-1&&E!==ie?"none":void 0})}}function fj(e){return jn("MuiSlider",e)}const wi=kn("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);function H6(e){return e}const mj=Et("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${xt(n.color)}`],n.size!=="medium"&&t[`size${xt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(vn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${wi.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${wi.dragging}`]:{[`& .${wi.thumb}, & .${wi.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),gj=Et("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),yj=Et("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(vn(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:Ol(e.palette[t].main,.62),borderColor:Ol(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:Pl(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:Pl(e.palette[t].main,.5)})}}}))]}))),xj=Et("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${xt(n.color)}`],n.size!=="medium"&&t[`thumbSize${xt(n.size)}`]]}})(vn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${wi.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(dr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${wi.focusVisible}`]:{...e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt(e.palette[t].main,.16)}`},"@media (hover: none)":{boxShadow:"none"}},[`&.${wi.active}`]:{...e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[t].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt(e.palette[t].main,.16)}`}}}}))]}))),bj=Et(function(e){const{children:t,className:n,value:o}=e,r=(i=>{const{open:a}=i;return{offset:Ot(a&&wi.valueLabelOpen),circle:wi.valueLabelCircle,label:wi.valueLabelLabel}})(e);return t?G.cloneElement(t,{className:Ot(t.props.className)},s.jsxs(G.Fragment,{children:[t.props.children,s.jsx("span",{className:Ot(r.offset,n),"aria-hidden":!0,children:s.jsx("span",{className:r.circle,children:s.jsx("span",{className:r.label,children:o})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(vn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${wi.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${wi.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),vj=Et("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>p2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(vn(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),wj=Et("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>p2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(vn(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Sj=({children:e})=>e,Cj=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiSlider"}),o=n0(),{"aria-label":r,"aria-valuetext":i,"aria-labelledby":a,component:l="span",components:c={},componentsProps:d={},color:p="primary",classes:f,className:h,disableSwap:g=!1,disabled:m=!1,getAriaLabel:y,getAriaValueText:x,marks:v=!1,max:b=100,min:w=0,name:E,onChange:C,onChangeCommitted:R,orientation:_="horizontal",shiftStep:L=10,size:T="medium",step:j=1,scale:S=H6,slotProps:k,slots:P,tabIndex:O,track:I="normal",value:z,valueLabelDisplay:A="off",valueLabelFormat:D=H6,...F}=n,B={...n,isRtl:o,max:b,min:w,classes:f,disabled:m,disableSwap:g,orientation:_,marks:v,color:p,size:T,step:j,shiftStep:L,scale:S,track:I,valueLabelDisplay:A,valueLabelFormat:D},{axisProps:M,getRootProps:N,getHiddenInputProps:V,getThumbProps:U,open:J,active:X,axis:H,focusedThumbIndex:ne,range:oe,dragging:ye,marks:de,values:xe,trackOffset:we,trackLeap:ve,getThumbStyle:re}=hj({...B,rootRef:t});B.marked=de.length>0&&de.some(se=>se.label),B.dragging=ye,B.focusedThumbIndex=ne;const ce=(se=>{const{disabled:te,dragging:ae,marked:pe,orientation:me,track:fe,classes:je,color:Fe,size:Ge}=se;return Rn({root:["root",te&&"disabled",ae&&"dragging",pe&&"marked",me==="vertical"&&"vertical",fe==="inverted"&&"trackInverted",fe===!1&&"trackFalse",Fe&&`color${xt(Fe)}`,Ge&&`size${xt(Ge)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",te&&"disabled",Ge&&`thumbSize${xt(Ge)}`,Fe&&`thumbColor${xt(Fe)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]},fj,je)})(B),Se=P?.root??c.Root??mj,ie=P?.rail??c.Rail??gj,Y=P?.track??c.Track??yj,le=P?.thumb??c.Thumb??xj,ee=P?.valueLabel??c.ValueLabel??bj,Pe=P?.mark??c.Mark??vj,Te=P?.markLabel??c.MarkLabel??wj,rt=P?.input??c.Input??"input",Ve=k?.root??d.root,Ee=k?.rail??d.rail,Re=k?.track??d.track,Xe=k?.thumb??d.thumb,Be=k?.valueLabel??d.valueLabel,ct=k?.mark??d.mark,Qe=k?.markLabel??d.markLabel,he=k?.input??d.input,Ye=Vr({elementType:Se,getSlotProps:N,externalSlotProps:Ve,externalForwardedProps:F,additionalProps:{...(ke=Se,(!ke||!wl(ke))&&{as:l})},ownerState:{...B,...Ve?.ownerState},className:[ce.root,h]});var ke;const Ie=Vr({elementType:ie,externalSlotProps:Ee,ownerState:B,className:ce.rail}),ue=Vr({elementType:Y,externalSlotProps:Re,additionalProps:{style:{...M[H].offset(we),...M[H].leap(ve)}},ownerState:{...B,...Re?.ownerState},className:ce.track}),De=Vr({elementType:le,getSlotProps:U,externalSlotProps:Xe,ownerState:{...B,...Xe?.ownerState},className:ce.thumb}),Ae=Vr({elementType:ee,externalSlotProps:Be,ownerState:{...B,...Be?.ownerState},className:ce.valueLabel}),W=Vr({elementType:Pe,externalSlotProps:ct,ownerState:B,className:ce.mark}),Q=Vr({elementType:Te,externalSlotProps:Qe,ownerState:B,className:ce.markLabel}),K=Vr({elementType:rt,getSlotProps:V,externalSlotProps:he,ownerState:B});return s.jsxs(Se,{...Ye,children:[s.jsx(ie,{...Ie}),s.jsx(Y,{...ue}),de.filter(se=>se.value>=w&&se.value<=b).map((se,te)=>{const ae=mu(se.value,w,b),pe=M[H].offset(ae);let me;return me=I===!1?xe.includes(se.value):I==="normal"&&(oe?se.value>=xe[0]&&se.value<=xe[xe.length-1]:se.value<=xe[0])||I==="inverted"&&(oe?se.value<=xe[0]||se.value>=xe[xe.length-1]:se.value>=xe[0]),s.jsxs(G.Fragment,{children:[s.jsx(Pe,{"data-index":te,...W,...!wl(Pe)&&{markActive:me},style:{...pe,...W.style},className:Ot(W.className,me&&ce.markActive)}),se.label!=null?s.jsx(Te,{"aria-hidden":!0,"data-index":te,...Q,...!wl(Te)&&{markLabelActive:me},style:{...pe,...Q.style},className:Ot(ce.markLabel,Q.className,me&&ce.markLabelActive),children:se.label}):null]},te)}),xe.map((se,te)=>{const ae=mu(se,w,b),pe=M[H].offset(ae),me=A==="off"?Sj:ee;return s.jsx(me,{...!wl(me)&&{valueLabelFormat:D,valueLabelDisplay:A,value:typeof D=="function"?D(S(se),te):D,index:te,open:J===te||X===te||A==="on",disabled:m},...Ae,children:s.jsx(le,{"data-index":te,...De,className:Ot(ce.thumb,De.className,X===te&&ce.active,ne===te&&ce.focusVisible),style:{...pe,...re(te),...De.style},children:s.jsx(rt,{"data-index":te,"aria-label":y?y(te):r,"aria-valuenow":S(se),"aria-labelledby":a,"aria-valuetext":x?x(S(se),te):i,value:xe[te],...K})})},te)})]})});function kj(e){return jn("MuiTooltip",e)}const Lo=kn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ej=Et(x3,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(vn(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Lo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Lo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Lo.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Mj=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${xt(n.placement.split("-")[0])}`]]}})(vn(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:pt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Lo.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Lo.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Lo.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:n})=>n.arrow,style:{position:"relative",margin:0}},{props:({ownerState:n})=>n.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5+"em"),fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:n})=>!n.isRtl,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:n})=>!n.isRtl&&n.touch,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:n})=>!!n.isRtl,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:n})=>!!n.isRtl&&n.touch,style:{[`.${Lo.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Lo.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Lo.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${Lo.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),Tj=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(vn(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:pt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let X1=!1;const W6=new u2;let E0={x:0,y:0};function Y1(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const _j=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTooltip"}),{arrow:o=!1,children:r,classes:i,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:m=0,enterTouchDelay:y=700,followCursor:x=!1,id:v,leaveDelay:b=0,leaveTouchDelay:w=1500,onClose:E,onOpen:C,open:R,placement:_="bottom",PopperComponent:L,PopperProps:T={},slotProps:j={},slots:S={},title:k,TransitionComponent:P,TransitionProps:O,...I}=n,z=G.isValidElement(r)?r:s.jsx("span",{children:r}),A=o0(),D=n0(),[F,B]=G.useState(),[M,N]=G.useState(null),V=G.useRef(!1),U=f||x,J=bl(),X=bl(),H=bl(),ne=bl(),[oe,ye]=Pc({controlled:R,default:!1,name:"Tooltip",state:"open"});let de=oe;const xe=e0(v),we=G.useRef(),ve=zr(()=>{we.current!==void 0&&(document.body.style.WebkitUserSelect=we.current,we.current=void 0),ne.clear()});G.useEffect(()=>ve,[ve]);const re=pe=>{W6.clear(),X1=!0,ye(!0),C&&!de&&C(pe)},ce=zr(pe=>{W6.start(800+b,()=>{X1=!1}),ye(!1),E&&de&&E(pe),J.start(A.transitions.duration.shortest,()=>{V.current=!1})}),Se=pe=>{V.current&&pe.type!=="touchstart"||(F&&F.removeAttribute("title"),X.clear(),H.clear(),g||X1&&m?X.start(X1?m:g,()=>{re(pe)}):re(pe))},ie=pe=>{X.clear(),H.start(b,()=>{ce(pe)})},[,Y]=G.useState(!1),le=pe=>{As(pe.target)||(Y(!1),ie(pe))},ee=pe=>{F||B(pe.currentTarget),As(pe.target)&&(Y(!0),Se(pe))},Pe=pe=>{V.current=!0;const me=z.props;me.onTouchStart&&me.onTouchStart(pe)},Te=pe=>{Pe(pe),H.clear(),J.clear(),ve(),we.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ne.start(y,()=>{document.body.style.WebkitUserSelect=we.current,Se(pe)})},rt=pe=>{z.props.onTouchEnd&&z.props.onTouchEnd(pe),ve(),H.start(w,()=>{ce(pe)})};G.useEffect(()=>{if(de)return document.addEventListener("keydown",pe),()=>{document.removeEventListener("keydown",pe)};function pe(me){me.key==="Escape"&&ce(me)}},[ce,de]);const Ve=Xo(t0(z),B,t);k||k===0||(de=!1);const Ee=G.useRef(),Re={},Xe=typeof k=="string";c?(Re.title=de||!Xe||p?null:k,Re["aria-describedby"]=de?xe:null):(Re["aria-label"]=Xe?k:null,Re["aria-labelledby"]=de&&!Xe?xe:null);const Be={...Re,...I,...z.props,className:Ot(I.className,z.props.className),onTouchStart:Pe,ref:Ve,...x?{onMouseMove:pe=>{const me=z.props;me.onMouseMove&&me.onMouseMove(pe),E0={x:pe.clientX,y:pe.clientY},Ee.current&&Ee.current.update()}}:{}},ct={};h||(Be.onTouchStart=Te,Be.onTouchEnd=rt),p||(Be.onMouseOver=Y1(Se,Be.onMouseOver),Be.onMouseLeave=Y1(ie,Be.onMouseLeave),U||(ct.onMouseOver=Se,ct.onMouseLeave=ie)),d||(Be.onFocus=Y1(ee,Be.onFocus),Be.onBlur=Y1(le,Be.onBlur),U||(ct.onFocus=ee,ct.onBlur=le));const Qe={...n,isRtl:D,arrow:o,disableInteractive:U,placement:_,PopperComponentProp:L,touch:V.current},he=typeof j.popper=="function"?j.popper(Qe):j.popper,Ye=G.useMemo(()=>{let pe=[{name:"arrow",enabled:!!M,options:{element:M,padding:4}}];return T.popperOptions?.modifiers&&(pe=pe.concat(T.popperOptions.modifiers)),he?.popperOptions?.modifiers&&(pe=pe.concat(he.popperOptions.modifiers)),{...T.popperOptions,...he?.popperOptions,modifiers:pe}},[M,T.popperOptions,he?.popperOptions]),ke=(pe=>{const{classes:me,disableInteractive:fe,arrow:je,touch:Fe,placement:Ge}=pe;return Rn({popper:["popper",!fe&&"popperInteractive",je&&"popperArrow"],tooltip:["tooltip",je&&"tooltipArrow",Fe&&"touch",`tooltipPlacement${xt(Ge.split("-")[0])}`],arrow:["arrow"]},kj,me)})(Qe),Ie=typeof j.transition=="function"?j.transition(Qe):j.transition,ue={slots:{popper:a.Popper,transition:a.Transition??P,tooltip:a.Tooltip,arrow:a.Arrow,...S},slotProps:{arrow:j.arrow??l.arrow,popper:{...T,...he??l.popper},tooltip:j.tooltip??l.tooltip,transition:{...O,...Ie??l.transition}}},[De,Ae]=Qn("popper",{elementType:Ej,externalForwardedProps:ue,ownerState:Qe,className:Ot(ke.popper,T?.className)}),[W,Q]=Qn("transition",{elementType:zc,externalForwardedProps:ue,ownerState:Qe}),[K,se]=Qn("tooltip",{elementType:Mj,className:ke.tooltip,externalForwardedProps:ue,ownerState:Qe}),[te,ae]=Qn("arrow",{elementType:Tj,className:ke.arrow,externalForwardedProps:ue,ownerState:Qe,ref:N});return s.jsxs(G.Fragment,{children:[G.cloneElement(z,Be),s.jsx(De,{as:L??x3,placement:_,anchorEl:x?{getBoundingClientRect:()=>({top:E0.y,left:E0.x,right:E0.x,bottom:E0.y,width:0,height:0})}:F,popperRef:Ee,open:!!F&&de,id:xe,transition:!0,...ct,...Ae,popperOptions:Ye,children:({TransitionProps:pe})=>s.jsx(W,{timeout:A.transitions.duration.shorter,...pe,...Q,children:s.jsxs(K,{...se,children:[k,o?s.jsx(te,{...ae}):null]})})})]})});function jj(e){return jn("MuiTab",e)}const hi=kn("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Rj=Et(Qa,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${xt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${hi.iconWrapper}`]:t.iconWrapper},{[`& .${hi.icon}`]:t.icon}]}})(vn(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${hi.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${hi.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${hi.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${hi.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${hi.selected}`]:{opacity:1},[`&.${hi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${hi.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${hi.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${hi.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Ij=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:d,label:p,onChange:f,onClick:h,onFocus:g,selected:m,selectionFollowsFocus:y,textColor:x="inherit",value:v,wrapped:b=!1,...w}=n,E={...n,disabled:r,disableFocusRipple:i,selected:m,icon:!!l,iconPosition:c,label:!!p,fullWidth:a,textColor:x,wrapped:b},C=(_=>{const{classes:L,textColor:T,fullWidth:j,wrapped:S,icon:k,label:P,selected:O,disabled:I}=_;return Rn({root:["root",k&&P&&"labelIcon",`textColor${xt(T)}`,j&&"fullWidth",S&&"wrapped",O&&"selected",I&&"disabled"],icon:["iconWrapper","icon"]},jj,L)})(E),R=l&&p&&G.isValidElement(l)?G.cloneElement(l,{className:Ot(C.icon,l.props.className)}):l;return s.jsxs(Rj,{focusRipple:!i,className:Ot(C.root,o),ref:t,role:"tab","aria-selected":m,disabled:r,onClick:_=>{!m&&f&&f(_,v),h&&h(_)},onFocus:_=>{y&&!m&&f&&f(_,v),g&&g(_)},ownerState:E,tabIndex:m?0:-1,...w,children:[c==="top"||c==="start"?s.jsxs(G.Fragment,{children:[R,p]}):s.jsxs(G.Fragment,{children:[p,R]}),d]})});function Pj(e){return jn("MuiToolbar",e)}kn("MuiToolbar",["root","gutters","regular","dense"]);const Oj=Et("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(vn(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),Dj=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiToolbar"}),{className:o,component:r="div",disableGutters:i=!1,variant:a="regular",...l}=n,c={...n,component:r,disableGutters:i,variant:a},d=(p=>{const{classes:f,disableGutters:h,variant:g}=p;return Rn({root:["root",!h&&"gutters",g]},Pj,f)})(c);return s.jsx(Oj,{as:r,className:Ot(d.root,o),ref:t,ownerState:c,...l})}),Aj=Kn(s.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Lj=Kn(s.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zj(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Fj={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Bj(e){return jn("MuiTabScrollButton",e)}const Nj=kn("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),$j=Et(Qa,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${Nj.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),Vj=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTabScrollButton"}),{className:o,slots:r={},slotProps:i={},direction:a,orientation:l,disabled:c,...d}=n,p=n0(),f={isRtl:p,...n},h=(v=>{const{classes:b,orientation:w,disabled:E}=v;return Rn({root:["root",w,E&&"disabled"]},Bj,b)})(f),g=r.StartScrollButtonIcon??Aj,m=r.EndScrollButtonIcon??Lj,y=Vr({elementType:g,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),x=Vr({elementType:m,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return s.jsx($j,{component:"div",className:Ot(h.root,o),ref:t,role:null,ownerState:f,tabIndex:null,...d,style:{...d.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${p?-90:90}deg)`}},children:a==="left"?s.jsx(g,{...y}):s.jsx(m,{...x})})});function Hj(e){return jn("MuiTabs",e)}const lp=kn("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),U6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,q6=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,J1=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const i=r.disabled||r.getAttribute("aria-disabled")==="true";if(r.hasAttribute("tabindex")&&!i)return void r.focus();r=n(e,r)}},Wj=Et("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lp.scrollButtons}`]:t.scrollButtons},{[`& .${lp.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vn(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${lp.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Uj=Et("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),qj=Et("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Kj=Et("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vn(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),Gj=Et(function(e){const{onChange:t,...n}=e,o=G.useRef(),r=G.useRef(null),i=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return Br(()=>{const a=d2(()=>{const c=o.current;i(),c!==o.current&&t(o.current)}),l=Vi(r.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),G.useEffect(()=>{i(),t(o.current)},[t]),s.jsx("div",{style:Fj,...n,ref:r})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),K6={},Zj=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTabs"}),o=o0(),r=n0(),{"aria-label":i,"aria-labelledby":a,action:l,centered:c=!1,children:d,className:p,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:x,scrollButtons:v="auto",selectionFollowsFocus:b,slots:w={},slotProps:E={},TabIndicatorProps:C={},TabScrollButtonProps:R={},textColor:_="primary",value:L,variant:T="standard",visibleScrollbar:j=!1,...S}=n,k=T==="scrollable",P=y==="vertical",O=P?"scrollTop":"scrollLeft",I=P?"top":"left",z=P?"bottom":"right",A=P?"clientHeight":"clientWidth",D=P?"height":"width",F={...n,component:f,allowScrollButtonsMobile:h,indicatorColor:g,orientation:y,vertical:P,scrollButtons:v,textColor:_,variant:T,visibleScrollbar:j,fixed:!k,hideScrollbar:k&&!j,scrollableX:k&&!P,scrollableY:k&&P,centered:c&&!k,scrollButtonsHideMobile:!h},B=(me=>{const{vertical:fe,fixed:je,hideScrollbar:Fe,scrollableX:Ge,scrollableY:et,centered:tt,scrollButtonsHideMobile:it,classes:At}=me;return Rn({root:["root",fe&&"vertical"],scroller:["scroller",je&&"fixed",Fe&&"hideScrollbar",Ge&&"scrollableX",et&&"scrollableY"],list:["list","flexContainer",fe&&"flexContainerVertical",fe&&"vertical",tt&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",it&&"scrollButtonsHideMobile"],scrollableX:[Ge&&"scrollableX"],hideScrollbar:[Fe&&"hideScrollbar"]},Hj,At)})(F),M=Vr({elementType:w.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:F}),N=Vr({elementType:w.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:F}),[V,U]=G.useState(!1),[J,X]=G.useState(K6),[H,ne]=G.useState(!1),[oe,ye]=G.useState(!1),[de,xe]=G.useState(!1),[we,ve]=G.useState({overflow:"hidden",scrollbarWidth:0}),re=new Map,ce=G.useRef(null),Se=G.useRef(null),ie={slots:w,slotProps:{indicator:C,scrollButton:R,...E}},Y=()=>{const me=ce.current;let fe,je;if(me){const Fe=me.getBoundingClientRect();fe={clientWidth:me.clientWidth,scrollLeft:me.scrollLeft,scrollTop:me.scrollTop,scrollWidth:me.scrollWidth,top:Fe.top,bottom:Fe.bottom,left:Fe.left,right:Fe.right}}if(me&&L!==!1){const Fe=Se.current.children;if(Fe.length>0){const Ge=Fe[re.get(L)];je=Ge?Ge.getBoundingClientRect():null}}return{tabsMeta:fe,tabMeta:je}},le=zr(()=>{const{tabsMeta:me,tabMeta:fe}=Y();let je,Fe=0;P?(je="top",fe&&me&&(Fe=fe.top-me.top+me.scrollTop)):(je=r?"right":"left",fe&&me&&(Fe=(r?-1:1)*(fe[je]-me[je]+me.scrollLeft)));const Ge={[je]:Fe,[D]:fe?fe[D]:0};if(typeof J[je]!="number"||typeof J[D]!="number")X(Ge);else{const et=Math.abs(J[je]-Ge[je]),tt=Math.abs(J[D]-Ge[D]);(et>=1||tt>=1)&&X(Ge)}}),ee=(me,{animation:fe=!0}={})=>{fe?function(je,Fe,Ge,et={},tt=()=>{}){const{ease:it=zj,duration:At=300}=et;let Lt=null;const _t=Fe[je];let $t=!1;const nn=()=>{$t=!0},Zt=Tn=>{if($t)return void tt(new Error("Animation cancelled"));Lt===null&&(Lt=Tn);const pn=Math.min(1,(Tn-Lt)/At);Fe[je]=it(pn)*(Ge-_t)+_t,pn>=1?requestAnimationFrame(()=>{tt(null)}):requestAnimationFrame(Zt)};_t===Ge?tt(new Error("Element already at target position")):requestAnimationFrame(Zt)}(O,ce.current,me,{duration:o.transitions.duration.standard}):ce.current[O]=me},Pe=me=>{let fe=ce.current[O];fe+=P?me:me*(r?-1:1),ee(fe)},Te=()=>{const me=ce.current[A];let fe=0;const je=Array.from(Se.current.children);for(let Fe=0;Fe<je.length;Fe+=1){const Ge=je[Fe];if(fe+Ge[A]>me){Fe===0&&(fe=me);break}fe+=Ge[A]}return fe},rt=()=>{Pe(-1*Te())},Ve=()=>{Pe(Te())},[Ee,{onChange:Re,...Xe}]=Qn("scrollbar",{className:Ot(B.scrollableX,B.hideScrollbar),elementType:Gj,shouldForwardComponentProp:!0,externalForwardedProps:ie,ownerState:F}),Be=G.useCallback(me=>{Re?.(me),ve({overflow:null,scrollbarWidth:me})},[Re]),[ct,Qe]=Qn("scrollButtons",{className:Ot(B.scrollButtons,R.className),elementType:Vj,externalForwardedProps:ie,ownerState:F,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:w.startScrollButtonIcon||w.StartScrollButtonIcon,EndScrollButtonIcon:w.endScrollButtonIcon||w.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:M,endScrollButtonIcon:N}}}),he=zr(me=>{const{tabsMeta:fe,tabMeta:je}=Y();if(je&&fe){if(je[I]<fe[I]){const Fe=fe[O]+(je[I]-fe[I]);ee(Fe,{animation:me})}else if(je[z]>fe[z]){const Fe=fe[O]+(je[z]-fe[z]);ee(Fe,{animation:me})}}}),Ye=zr(()=>{k&&v!==!1&&xe(!de)});G.useEffect(()=>{const me=d2(()=>{ce.current&&le()});let fe;const je=et=>{et.forEach(tt=>{tt.removedNodes.forEach(it=>{fe?.unobserve(it)}),tt.addedNodes.forEach(it=>{fe?.observe(it)})}),me(),Ye()},Fe=Vi(ce.current);let Ge;return Fe.addEventListener("resize",me),typeof ResizeObserver<"u"&&(fe=new ResizeObserver(me),Array.from(Se.current.children).forEach(et=>{fe.observe(et)})),typeof MutationObserver<"u"&&(Ge=new MutationObserver(je),Ge.observe(Se.current,{childList:!0})),()=>{me.clear(),Fe.removeEventListener("resize",me),Ge?.disconnect(),fe?.disconnect()}},[le,Ye]),G.useEffect(()=>{const me=Array.from(Se.current.children),fe=me.length;if(typeof IntersectionObserver<"u"&&fe>0&&k&&v!==!1){const je=me[0],Fe=me[fe-1],Ge={root:ce.current,threshold:.99},et=new IntersectionObserver(it=>{ne(!it[0].isIntersecting)},Ge);et.observe(je);const tt=new IntersectionObserver(it=>{ye(!it[0].isIntersecting)},Ge);return tt.observe(Fe),()=>{et.disconnect(),tt.disconnect()}}},[k,v,de,d?.length]),G.useEffect(()=>{U(!0)},[]),G.useEffect(()=>{le()}),G.useEffect(()=>{he(K6!==J)},[he,J]),G.useImperativeHandle(l,()=>({updateIndicator:le,updateScrollButtons:Ye}),[le,Ye]);const[ke,Ie]=Qn("indicator",{className:Ot(B.indicator,C.className),elementType:Kj,externalForwardedProps:ie,ownerState:F,additionalProps:{style:J}}),ue=s.jsx(ke,{...Ie});let De=0;const Ae=G.Children.map(d,me=>{if(!G.isValidElement(me))return null;const fe=me.props.value===void 0?De:me.props.value;re.set(fe,De);const je=fe===L;return De+=1,G.cloneElement(me,{fullWidth:T==="fullWidth",indicator:je&&!V&&ue,selected:je,selectionFollowsFocus:b,onChange:m,textColor:_,value:fe,...De!==1||L!==!1||me.props.tabIndex?{}:{tabIndex:0}})}),W=(()=>{const me={};me.scrollbarSizeListener=k?s.jsx(Ee,{...Xe,onChange:Be}):null;const fe=k&&(v==="auto"&&(H||oe)||v===!0);return me.scrollButtonStart=fe?s.jsx(ct,{direction:r?"right":"left",onClick:rt,disabled:!H,...Qe}):null,me.scrollButtonEnd=fe?s.jsx(ct,{direction:r?"left":"right",onClick:Ve,disabled:!oe,...Qe}):null,me})(),[Q,K]=Qn("root",{ref:t,className:Ot(B.root,p),elementType:Wj,externalForwardedProps:{...ie,...S,component:f},ownerState:F}),[se,te]=Qn("scroller",{ref:ce,className:B.scroller,elementType:Uj,externalForwardedProps:ie,ownerState:F,additionalProps:{style:{overflow:we.overflow,[P?"margin"+(r?"Left":"Right"):"marginBottom"]:j?void 0:-we.scrollbarWidth}}}),[ae,pe]=Qn("list",{ref:Se,className:Ot(B.list,B.flexContainer),elementType:qj,externalForwardedProps:ie,ownerState:F,getSlotProps:me=>({...me,onKeyDown:fe=>{(je=>{if(je.altKey||je.shiftKey||je.ctrlKey||je.metaKey)return;const Fe=Se.current,Ge=ur(Fe).activeElement;if(Ge.getAttribute("role")!=="tab")return;let et=y==="horizontal"?"ArrowLeft":"ArrowUp",tt=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&r&&(et="ArrowRight",tt="ArrowLeft"),je.key){case et:je.preventDefault(),J1(Fe,Ge,q6);break;case tt:je.preventDefault(),J1(Fe,Ge,U6);break;case"Home":je.preventDefault(),J1(Fe,null,U6);break;case"End":je.preventDefault(),J1(Fe,null,q6)}})(fe),me.onKeyDown?.(fe)}})});return s.jsxs(Q,{...K,children:[W.scrollButtonStart,W.scrollbarSizeListener,s.jsxs(se,{...te,children:[s.jsx(ae,{"aria-label":i,"aria-labelledby":a,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...pe,children:Ae}),V&&ue]}),W.scrollButtonEnd]})});function Xj(e){return jn("MuiTextField",e)}kn("MuiTextField",["root"]);const Yj={standard:ql,filled:v3,outlined:S3},Jj=Et(x1,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k3=G.forwardRef(function(e,t){const n=An({props:e,name:"MuiTextField"}),{autoComplete:o,autoFocus:r=!1,children:i,className:a,color:l="primary",defaultValue:c,disabled:d=!1,error:p=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:g,id:m,InputLabelProps:y,inputProps:x,InputProps:v,inputRef:b,label:w,maxRows:E,minRows:C,multiline:R=!1,name:_,onBlur:L,onChange:T,onFocus:j,placeholder:S,required:k=!1,rows:P,select:O=!1,SelectProps:I,slots:z={},slotProps:A={},type:D,value:F,variant:B="outlined",...M}=n,N={...n,autoFocus:r,color:l,disabled:d,error:p,fullWidth:h,multiline:R,required:k,select:O,variant:B},V=(rt=>{const{classes:Ve}=rt;return Rn({root:["root"]},Xj,Ve)})(N),U=e0(m),J=g&&U?`${U}-helper-text`:void 0,X=w&&U?`${U}-label`:void 0,H=Yj[B],ne={slots:z,slotProps:{input:v,inputLabel:y,htmlInput:x,formHelperText:f,select:I,...A}},oe={},ye=ne.slotProps.inputLabel;B==="outlined"&&(ye&&ye.shrink!==void 0&&(oe.notched=ye.shrink),oe.label=w),O&&(I&&I.native||(oe.id=void 0),oe["aria-describedby"]=void 0);const[de,xe]=Qn("root",{elementType:Jj,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...M},ownerState:N,className:Ot(V.root,a),ref:t,additionalProps:{disabled:d,error:p,fullWidth:h,required:k,color:l,variant:B}}),[we,ve]=Qn("input",{elementType:H,externalForwardedProps:ne,additionalProps:oe,ownerState:N}),[re,ce]=Qn("inputLabel",{elementType:_x,externalForwardedProps:ne,ownerState:N}),[Se,ie]=Qn("htmlInput",{elementType:"input",externalForwardedProps:ne,ownerState:N}),[Y,le]=Qn("formHelperText",{elementType:m_,externalForwardedProps:ne,ownerState:N}),[ee,Pe]=Qn("select",{elementType:b2,externalForwardedProps:ne,ownerState:N}),Te=s.jsx(we,{"aria-describedby":J,autoComplete:o,autoFocus:r,defaultValue:c,fullWidth:h,multiline:R,name:_,rows:P,maxRows:E,minRows:C,type:D,value:F,id:U,inputRef:b,onBlur:L,onChange:T,onFocus:j,placeholder:S,inputProps:ie,slots:{input:z.htmlInput?Se:void 0},...ve});return s.jsxs(de,{...xe,children:[w!=null&&w!==""&&s.jsx(re,{htmlFor:U,id:X,...ce,children:w}),O?s.jsx(ee,{"aria-describedby":J,id:U,labelId:X,value:F,input:Te,...Pe,children:i}):Te,g&&s.jsx(Y,{id:J,...le,children:g})]})}),Qj=Kn(s.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),eR=Kn(s.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"AddCircleOutline"),tR=Kn(s.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),nR=Kn(s.jsx("path",{d:"m14 7-5 5 5 5z"}),"ArrowLeft"),Ax=Kn(s.jsx("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight"),oR=Kn(s.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport"),E3=Kn(s.jsx("path",{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"}),"Close"),rR=Kn(s.jsx("path",{d:"m20.71 5.63-2.34-2.34a.996.996 0 0 0-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42M6.92 19 5 17.08l8.06-8.06 1.92 1.92z"}),"Colorize"),iR=Kn(s.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),G6=Kn(s.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode"),aR=Kn(s.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),lR=Kn(s.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),Lx=Kn(s.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Z6=Kn(s.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenter"),yc=Kn(s.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),X6=Kn(s.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),sR=Kn(s.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),cR=Kn(s.jsx("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"}),"Keyboard"),Y6=Kn(s.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode"),v2=Kn(s.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),dR=Kn(s.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu"),uR=Kn(s.jsx("path",{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"}),"MoreHoriz"),pR=Kn(s.jsx("path",{d:"M19 13H5v-2h14z"}),"Remove"),zx=Kn(s.jsx("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"}),"WebhookOutlined");function Fx(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=Fx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Eo(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Fx(e))&&(o&&(o+=" "),o+=t);return o}const zo={TopLeft:"tl",Top:"t",TopRight:"tr",Left:"l",Center:"c",Right:"r",BottomLeft:"bl",Bottom:"b",BottomRight:"br"},kr="text/html",xa="text/plain",Fd="image/png",hR=Object.freeze({left:0,top:0}),fR=Object.freeze({left:0,top:0,bottom:0,right:0}),mR=Object.freeze({x:0,y:0,width:0,height:0}),Fc=Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:mR,EmptyRect:fR,EmptyTopLeft:hR},Symbol.toStringTag,{value:"Module"})),Tl="column",Bc="row",gR=Object.freeze({colIndex:0,rowIndex:0}),yR=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),Bx=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Nx=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,xR=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,bR=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,J6=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,Q6=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,$x=(e=Bc,t=!1)=>t?e!==Tl?xR:bR:e!==Tl?Nx:Bx,e4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,z5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,F5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),t4=(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(!z5(e[n],t[n]))return!1;return!0},sp=(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),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},n4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];F5(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},vR=[null,null],wR=(e,t,n)=>{if(e[0].value===e[1].value)return t};function o4(e,t=2,n,o=Bc,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Tl,l=0,c=!1;do{const d=i.sort($x(a?Bc:Tl));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const C=r??[null,null];C[0]=h,C[1]=b,E=n(C,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}const Go=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:gR,EmptyRange:yR,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:J6,columnFirstRangeComparator:Bx,createCellComparator:(e=Bc,t=!1)=>t?e!==Tl?(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!==Tl?Q6:J6,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const f=d!==void 0;if(f){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?o4(n,3,l===!0?wR:l,t?Tl:Bc,vR):n)}},createRangeComparator:$x,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:n4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!z5(n,o);)o=n,n=n4(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(F5(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),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:e4,isEqualRanges:z5,isEqualRangesArrays:t4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!e4(e.cell,t.cell)&&t4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:F5,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:o4,rowFirstCellComparator:Q6,rowFirstRangeComparator:Nx,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:sp,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=sp(o,e[r],n);return t&&(o=sp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),SR=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function CR(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===SR}(e)}function J0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Al((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function kR(e,t,n){return e.concat(t).map(function(o){return J0(o,n)})}function r4(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 i4(e,t){try{return t in e}catch{return!1}}function Al(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||kR,n.isMergeableObject=n.isMergeableObject||CR,n.cloneUnlessOtherwiseSpecified=J0;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&r4(r).forEach(function(c){l[c]=J0(r[c],a)}),r4(i).forEach(function(c){var d,p;i4(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(i4(r,c)&&a.isMergeableObject(i[c])?l[c]=function(f,h){if(!h.customMerge)return Al;const g=h.customMerge(f);return typeof g=="function"?g:Al}(c,a)(r[c],i[c],a):l[c]=J0(i[c],a))}),l}(e,t,n):J0(t,n)}Al.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Al(n,o,t)},{})};const ER=Object.freeze([]),MR=Object.freeze({}),a4=e=>e,Bd=()=>"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)}),Vx=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),M0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Hx=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Hx(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),TR=(e,t)=>!(e!==t&&!Vx(e,t)&&!e.isEqual?.(t)),Wx=(e,t,n=TR)=>{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 a=o[i];Wx(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},l4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),s4=e=>e==null,c4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),d4=!(typeof window>"u"||!window.document||!window.document.createElement),Ir={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Nc=()=>{if(Ux())return Ir.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Ir.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Ir.MacOS:/(iphone|ipad|ipod)/i.test(e)?Ir.IOS:/android/.test(e)?Ir.Android:/linux/.test(e)?Ir.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Ir.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Ir.Firefox:Ir.Unknown:Ir.Unknown};function Ux(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const u4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Xt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:ER,EmptyObject:MR,OSType:Ir,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:d4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>s4(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,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},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 a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))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:Al,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=a4){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=a4){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>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 a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!M0(a))return a;o=a}return o??null},getOS:Nc,hasFocus:u4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:Vx,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:Ux,isNullOrUndefined:s4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:M0,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:c4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!M0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=Al(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(!d4)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:Hx,removeEqualValues:Wx,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=l4(),o={id:requestAnimationFrame(function r(){l4()-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 a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!M0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!M0(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,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);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(!c4(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})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{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(),l(),i(),a()):(i(),a(),l(),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:Bd,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=>{u4(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 qx=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")},B5=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("")}),_R=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:qx,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:B5},Symbol.toStringTag,{value:"Module"})),Kx="data:image/png;base64,",Gx="Unable to resolve image.",p4=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(Gx)}),cp="image/svg+xml";var h4,f4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Kx,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 a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}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(Gx)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await p4(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:cp})),l=await p4(a);n={mimeType:t??cp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===cp?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"})),(f4=h4||(h4={})).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,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,f4.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};let N5=class extends Error{constructor(e,t=null){super(e,t),this.name="ChainedError",this._cause=t}get cause(){return this._cause}};const m4=`The Safari browser does not support advanced copy and paste.
116
- Copy and paste will be limited to within the browser tab.
117
-
118
- Please use Chrome or Edge if external copy and paste is required.`,dp=`You do not have permissions to access the clipboard.
119
- All copy and paste operations will be limited to the browser tab.`,Zx={Safari:`The Safari browser does not support advanced copy and paste.
120
- Copy and paste will be limited to within the browser tab.
121
-
122
- Please use Chrome or Edge if external copy and paste is required.`,Perms:dp,PermsWrite:Nc()===Ir.Safari?m4:dp,PermsRead:Nc()===Ir.Safari?m4:dp},up=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),pp=async(e,t,n)=>{if(Nc()===Ir.Safari)return await n(new Error(Zx.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},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)}},Xx=async e=>{try{return await e.read({unsanitized:[kr]})}catch{}return await e.read()},Yx=async(e,t)=>{if(!e)return null;const n=await Xx(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={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}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 gu=async(e,t=kr)=>new Promise(async(n,o)=>{try{const r=await Yx(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)}}),$5=async(e,t=kr)=>{const n=await gu(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,kr)}catch{console.warn("Can't parse html from clipboard.")}return o},jR=Yx,RR=gu,IR=$5,$c="clipboard-uuid",ts="web text/uuid",g4=e=>`<div style="display:none" ${$c}="${e}"/>`,PR=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,kr);o.body.firstElementChild.setAttribute($c,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},y4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${$c}="${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 $s=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 pp("clipboard-read",async()=>{await up();const e=await gu(this._nativeClipboard,ts);if(!this._state||e&&e===this._state.uuid)return!0;const t=await $5(this._nativeClipboard,kr);return!this._state||(y4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Nc()===Ir.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 pp("clipboard-read",async()=>{if(await up(),this._state?.uuid){const t=await gu(this._nativeClipboard,ts);if(t&&t===e._state.uuid)return!0;const n=await $5(this._nativeClipboard,kr);if(y4(e._state?.uuid,n))return!0}return e._state={items:await Xx(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:Bd(),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 pp("clipboard-write",async()=>{await up(),o&&r.length===0&&(r.push(new ClipboardItem({[ts]:new Blob([o],{type:ts})})),r.push(new ClipboardItem({[kr]:new Blob([g4(o)],{type:kr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(kr),d=null;if(c!==-1){const h=await l.getType(kr);d=await B5(h),d&&(d=PR(o,d))}if(!d&&l.types.includes(xa)){const h=await l.getType(xa);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await B5(h),g&&(d=`<div ${$c}="${o}">${g}</div>`)}}if(!d&&l.types.includes(Fd)){const h=await l.getType(Fd),g=qx(await h.arrayBuffer());d=`<div ${$c}="${o}"><img src="${Kx+g}"/></div>`}!d&&o&&(d=g4(o));const p=new Blob([d??""],{type:kr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[kr]=p),o&&(f[ts]=new Blob([o],{type:ts})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{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[xa]=new Blob([r??""],{type:xa}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[kr]=new Blob([r],{type:kr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Fd]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Bd(),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(xa)&&(o=await n[i].getType(xa));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({[xa]:new Blob([e],{type:xa})})];return this._write({uuid:Bd(),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(a){console.warn(a)}})};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 hp;(hp=$s||($s={})).ErrorMessages=Zx,hp.Global=new hp,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 $e={Shift:"shift",Alt:"alt",Ctrl:"ctrl",Meta:"meta"},tn={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},yr={Horizontal:"horizontal",Vertical:"vertical"};function Jx(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=Jx(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function hs(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Jx(e))&&(o&&(o+=" "),o+=t);return o}var OR=function(){},Qx=typeof window<"u",DR=Qx?u.useLayoutEffect:u.useEffect,x4={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Ll=Qx&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(x4),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return DR(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[OR,x4]},_e=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},eb=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},tb=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},AR=e=>{const{style:t,orientation:n=yr.Vertical,...o}=e,r=n===yr.Vertical;return s.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:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:r?"rotate(90) ":"",children:s.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"})})})},V5=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r},b4=Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:V5},Symbol.toStringTag,{value:"Module"})),M3=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=yr.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=eb,createScrollEndButton:y=tb,...x}=e,v=_e(d,[d]),b=u.useRef(null),[w,{width:E,height:C}]=Ll(),[R,{width:_,height:L}]=Ll(),T=l===yr.Vertical,j=T?"top":"left",S=T?"scrollTop":"scrollLeft",k=T?C:E,P=T?L:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=ne?0:V5(H,ye[j],de,!0,Math.max(0,H-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=Math.ceil(P-k),we=ne?xe:V5(H,ye[j],de,!1,Math.max(0,H+f));return I(we),Math.min(xe,we)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[S];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[S]=n)},[n,S]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ye=h)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):A(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ye)},[z,A,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:hs("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(C??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));M3.displayName="Scrollbar";let v4=Date.now,Ha={},LR=1;const T0=e=>{let t=Ha[e]!==null;return t&&(Ha[e]=null),t},w4=(e,t,n,o=0,r)=>{let i=v4(),a=i,l=0,c=0,d=0,p=LR++;if(p%20==0){const h={};for(let g in Ha)h[g]=!0;Ha=h}const f=function(h){let g=h!==!0,m=v4(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!Ha[p]||!y)return Ha[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(Ha[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return Ha[p]=!0,requestAnimationFrame(f),p},zR=function(e){return Math.pow(e-1,3)+1},FR=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let BR=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&&(T0(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 a=e/i;let l=a*(this.__scrollLeft+n)-n,c=a*(this.__scrollTop+o)-o;l>this.__maxScrollLeft?l=this.__maxScrollLeft:l<0&&(l=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(l,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&&(T0(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&&(T0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(T0(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 a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=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,d=(g+d)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;const f=this.__maxScrollTop;(d>f||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{let a=this.options.locking?3:0,l=5,c=Math.abs(o-this.__initialTouchLeft),d=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=a,this.__enableScrollY=this.options.scrollingY&&d>=a,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=l||d>=l),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],a=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=a/r*(1e3/60);const l=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>l||Math.abs(this.__decelerationVelocityY)>l)&&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&&(T0(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,f=function(m,y,x){x&&(this.__scrollLeft=i+c*m,this.__scrollTop=a+d*m,this.__zoomLevel=l+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,y,x){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||x)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=w4(f,h,g,this.options.animationDuration,r?zR:FR)}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),a=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),l=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/l)*l,this.__minDecelerationScrollTop=Math.floor(a/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/l)*l,this.__maxDecelerationScrollTop=Math.ceil(a/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,a,l){this.__stepThroughDeceleration(l)}.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,a,l){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=w4(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,a=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*a),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*a)}}};var ni=typeof window<"u"?window:{screen:{},navigator:{}},Vs=(ni.matchMedia||function(){return{matches:!1}}).bind(ni),nb=!1,NR={get passive(){return nb=!0}},S4=function(){};ni.addEventListener&&ni.addEventListener("p",S4,NR),ni.removeEventListener&&ni.removeEventListener("p",S4,!1);var $R=nb,VR="PointerEvent"in ni,T3="ontouchstart"in ni,ob=T3||"TouchEvent"in ni&&Vs("(any-pointer: coarse)").matches,C4=(ni.navigator.maxTouchPoints||0)>0||ob,rb=ni.navigator.userAgent||"",HR=Vs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(rb)&&Math.min(ni.screen.width||0,ni.screen.height||0)>=768,ib=(Vs("(pointer: coarse)").matches||!Vs("(pointer: fine)").matches&&T3)&&!/Windows.*Firefox/.test(rb),WR=Vs("(any-pointer: fine)").matches||Vs("(any-hover: hover)").matches||HR||!T3,H5=!C4||!WR&&ib?C4?"touchOnly":"mouseOnly":"hybrid",UR=H5==="mouseOnly"?"mouse":H5==="touchOnly"||ib?"touch":"mouse";const qR=Object.freeze(Object.defineProperty({__proto__:null,deviceType:H5,primaryInput:UR,supportsPassiveEvents:$R,supportsPointerEvents:VR,supportsTouchEvents:ob},Symbol.toStringTag,{value:"Module"})),KR=new Set(["INPUT","TEXTAREA","SELECT"]),ab={};function W5(){return qR}const lb=e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Xt.camelToPrettyCase(e),_n=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:ab,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:W5,focusableNodeNames:KR,toPrettyKeyCode:lb},Symbol.toStringTag,{value:"Module"})),GR=[];function ir(e,t,n=GR){const o=u.useRef(null);return u.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 a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const k4=e=>s.jsx(M3,{...e}),ZR=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),_3=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=ZR,createHorizontalScrollbar:c=k4,createVerticalScrollbar:d=k4,style:p,touchElement:f,disableTouch:h,...g}=e,m=_e(r,[r]),y=ir(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft===o?.left||x.current.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),C=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=f??y.current;if(!h&&W5().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new BR(v,P)}W5().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),C({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[R,{width:_}]=Ll(),[L,{height:T}]=Ll(),j=u.useMemo(()=>{const k=d({orientation:yr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),S=u.useMemo(()=>{const k=c({orientation:yr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:L,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?S:s.jsx(s.Fragment,{})]})})}));_3.displayName="ScrollPane";const ua={Error:"error",Warning:"warning",Info:"info"},E4=new Set,yu={showMessage:(e,t)=>{if(t?.onceKey){if(E4.has(t.onceKey))return;E4.add(t.onceKey)}let n=console.log;t?.type!==ua.Warning&&t?.type!==ua.Error||(n=console.warn),n(e)},showBusy:(e,t)=>new Promise(n=>{n(()=>{})}),showError:e=>{console.error(e)}},XR=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let Q1=0;const YR=100,JR=100,QR=1e6,eI=100,tI=50,sb=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=YR,endScrollIncrement:l=JR,style:c=ab,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=QR,scaleFactor:g=eI,precisionFactor:m=tI,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=_e(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=h!==0&&b.totalSize>h?g:1,C=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),L=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,S]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=_e((z,A,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<C&&(z=_),p?.(z*E,_,L))},[p,E,C,_,L]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),S(!1)},[]),I=u.useCallback(z=>{x?.(z),S(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(M3,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:L,onMouseDown:I,onScrollOffset:P})}));sb.displayName="VirtualScrollbar";const fp="bottom",U5="right",mp="top";function gp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var xu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=gp(o,t),i=typeof r=="function";n.push(i?r:()=>gp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)gp(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:xu([r,t]),onFocus:i,...o})}));const nI=u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:f}]=Ll(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=f-w+b;return function(C,R,_=!1){if(R===0)return C;function L(O,I,z){let A=I.x-O.x,D=I.y-O.y,F=Math.sqrt(A*A+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function S(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=C.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=S(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let A=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&A&&A.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=S(A),V=S(D),U=S(F);_?(B=T(V,A.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=L(V,N,R),M=L(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=S(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} 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} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:xu([h,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})})),oI={},rI=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=oI,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:hs("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:a?void 0:t,...g})},l)},ed={},ll=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,td=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Pa=(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)},q5=u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=ed,paneProps:E=ed,paneBeforeProps:C=ed,paneAfterProps:R=ed,createResizer:_=rI}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:Pa(c,De),maxBefore:Pa(d,De),minAfter:Pa(p,De),maxAfter:Pa(f,De)}},[c,d,p,f]),j=_e(l,[l]),[S,k]=u.useState(()=>Pa(a,i===null));u.useEffect(()=>{k(Pa(a,i===null))},[a,i]);const[P,{width:O,height:I}]=Ll(),[z,{width:A,height:D}]=Ll(),F=r==="row"?A:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Ae,W)=>{const Q=[null,null],K=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,K[1]=100):(Q[1]=ue?.pixels-Ae,K[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(K[0]=ue?.percent,K[1]=100-ue?.percent):(K[1]=ue?.percent,K[0]=100-ue?.percent)),{percents:K,pixels:Q,minBefore:td(W.minBefore,!0),maxBefore:td(W.maxBefore,!0),minAfter:td(W.minAfter),maxAfter:td(W.maxAfter)};let se=ll(ue,De,W.fixedPaneOffset!==1),te=De-Ae,ae=ll(W.minBefore,te,!0)??0,pe=ll(W.maxBefore,te,!0)??te,me=0,fe=0,je=0,Fe=te;me=(ll(W.maxAfter,De,!1)??Ae)-Ae,fe=ll(W.minAfter,De,!1)??De,je=Math.max(ae,me),Fe=Math.min(pe,fe),se=Math.max(je,Math.min(se,Fe)),fe=Math.min(te-se,ll(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,ll(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const Ge=Math.max(0,Math.min(100,se/te*100));return K[0]=Ge,K[1]=100-K[0],{percents:K,pixels:Q,minBefore:`${ae}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(S,B,F,T),[T,S,B,F,r]),[N,V]=u.useState(!1),U=_e(x,[x]),J=_e(v,[v]),X=_e(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ye,className:de,...xe}=E,we={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ye},{className:ve,style:re,...ce}=C,{className:Se,style:ie,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Pe,onPointerDown:Te,...rt}=w,Ve=_e(ue=>{const De=Pa(ue,i===null);k(De)},[i]),Ee=_e(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Ae=0;Ae=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Ae=Math.max(0,Math.min(B,Ae)),T.fixedPaneOffset===1&&(Ae=B-Ae),a&&S.pixels===Ae||k({pixels:Ae,percent:null}),J?.(Ae),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,S,B]),Re=_e(ue=>{if(document.removeEventListener("pointermove",Ee),document.removeEventListener("touchmove",Ee),document.removeEventListener("pointerup",Re),N&&(V(!1),S)){if(X(S.pixels),!Pa(a,i===null)||S.pixels!==a){const De={...S};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[S,N,a,i,B]),Xe=_e(ue=>{Te?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ee,{passive:!1}),document.addEventListener("touchmove",Ee,{passive:!1}),document.addEventListener("pointerup",Re,{passive:!1}))},[Te]),Be=ir(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:xu([z,ne]),className:hs("resizer",ee),onPointerDownCapture:Xe,style:{cursor:y?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,...Pe},splitDirection:r,disabled:y,...rt}):null,[L,ee,rt,r,Pe,y]),Qe=r==="row"?"Width":"Height",he={...we,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Qe}`]:M?.minBefore,[`max${Qe}`]:o?M?.maxBefore:"100%"},Ye={...we,...ie,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Qe}`]:M?.minAfter,[`max${Qe}`]:n?M?.maxAfter:"100%"},ke=u.useMemo(()=>n?s.jsx("div",{ref:H,className:hs("before",de,ve),style:he,...xe,...ce,children:n},"before"):null,[n,E,C,T,M]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:hs("after",de,Se),style:Ye,...xe,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:xu([P,Be]),className:hs("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[ke,ct,Ie]})}));function M4(e,t){return function(n){if(!n)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:o,onPointerUp:r,onPointerMoveOrWait:i,processTouch:a=!1,consumeTouch:l=!0}=n,c=_e(o,[o]),d=_e(r,[r]),p=_e(i,[i]),f=u.useRef(!1),h=n?.timerInitial??230,g=n?.timerContinuous??h/2,m=u.useRef(null),y=u.useRef(null),x=u.useRef(null),v=u.useRef(null),b=u.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null)},[]),w=u.useCallback(k=>{v.current=setTimeout(()=>{window.requestAnimationFrame(()=>{f.current!==!1&&p?.(y.current,x.current,m.current)}),w(g)},k??h)},[]);u.useEffect(()=>()=>b(),[]);const E=a?"pointer":"mouse",C=u.useCallback(k=>{k.stopPropagation(),k.stopImmediatePropagation(),k.preventDefault()},[]),R=_e(k=>{document.removeEventListener(`${E}move`,T),document.removeEventListener(`${E}up`,R),document.removeEventListener("keydown",j),document.removeEventListener("keyup",S),document.removeEventListener("touchstart",C,{capture:!0}),document.removeEventListener("touchmove",C,{capture:!0}),window.removeEventListener("blur",_),b(),window.requestAnimationFrame(()=>{f.current!==!1&&(f.current=!1,d?.(k,x.current,m.current),x.current=null)})},[]),_=u.useCallback(()=>{f.current!==!1&&(f.current=!1,R(y.current))},[]),L=_e(()=>{b(),w(g),window.requestAnimationFrame(()=>{f.current!==!1&&p?.(y.current,x.current,m.current)})},[g]),T=_e(k=>{y.current=k,L()},[]),j=_e(k=>{x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},L()},[]),S=_e(k=>{x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},L()},[g]);return _e(k=>{k.isDefaultPrevented()||(x.current={ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey},c(k,x.current)!==!1&&(m.current=k,y.current=k.nativeEvent,document.addEventListener(`${E}up`,R,{passive:!1}),document.addEventListener(`${E}move`,T,{passive:!1}),document.addEventListener("keydown",j,{passive:!1}),document.addEventListener("keyup",S,{passive:!1}),window.addEventListener("blur",_,{passive:!0}),a&&l&&(document.addEventListener("touchstart",C,{passive:!1,capture:!0}),document.addEventListener("touchmove",C,{passive:!1,capture:!0})),f.current=!0,w(h)))},[h,a])}({onPointerDown:e,onPointerMoveOrWait:(n,o,r)=>{e?.(r)},...t})}const iI=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},K5=e=>{console&&console.warn&&console.warn(e)},yp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let aI=1,G5=!1,cb=!1;const Nd=[],fs=[],bu=()=>{fs.forEach(e=>e())},lI=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||G5!==!1||(cb=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return fs[0]!==i?(e||G5!==!0||K5("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Nd])}return fs.push(i),bu(),()=>{r=!1,o.current?.length>0&&K5("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),fs.splice(fs.indexOf(i),1),bu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(iI,{...r,key:i}))})},db=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=aI++;return Nd.push({hook:g,key:m}),fs.length===0&&cb===!1&&(G5=!0,(y=>{if(yp.document&&yp.document.createElement){const x=yp.document.createElement("div");Qu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else K5("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(lI)),bu(),()=>{Nd.splice(Nd.findIndex(y=>y.key===m),1),bu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};let ub=()=>{console.warn("You must call useEditMode before setting its state.")};const sI=db(null,()=>{const[e,t]=u.useState(null);return ub=t,e}),Hi=()=>{const e=sI();return u.useMemo(()=>({setMode:t=>{ub(n=>(typeof t=="function"&&(t=t(n)),t?.onModeChange?.(t??null),t))},getMode:()=>e}),[e])};let He=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}},Tt=class extends He{},r0=class pb{constructor(t,n){this._target=null,this._groupKey=null,this._root=null,this._parent=null,this._uuid=Xt.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 a=o._root._listenersByKey,l=i.key(),c=a.get(l);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 l=this;for(;l&&!r;){let c=l._nodes.get(n);c&&(r=c),l=l._parent}}r||(r=new pb(t,n),r._parent=this,r._root=this._root,r._unListenersByCommand=null,r._listenersByKey=null,r._commandsPropertyListener=null);const i=(l,c)=>{!l.has(n)||o?l.set(n,c):o===void 0&&console.warn("commandGroup already registered",n)};i(this._root._nodes,r);let a=this._parent;for(;a;)i(this._nodes,r),a=a._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,a=this._root._unListenersByCommand;for(let l=0;l<t.length;l++){const c=t[l],d=c.key();if(o.has(d)&&!n){n===void 0&&console.warn("command already registered",d);continue}o.set(d,c);let p=a.get(c);p&&(p(),a.delete(c));const f=c.addPropertyListener(i);a.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 y=_0(g[m]),x=r.get(y);x&&!n&&n===void 0&&console.warn(`Shortcut already registered: ${y}, ${d}, ${x}.`),r.set(y,d)}}}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(a=>{for(let l=0;l<n.length;l++)a._nodes.delete(n[l]);r(a)})};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($e.Alt),t.shiftKey&&n.push($e.Shift),t.ctrlKey&&n.push($e.Ctrl),t.metaKey&&n.push($e.Meta);let o=_0({key:t.code,modifiers:n});const r=this._commandsByShortcut;let i=r.get(o);i||(o=_0({key:t.key,modifiers:n}),i=r.get(o)),!i&&t.code.startsWith("Digit")&&(o=_0({key:t.code.substring(5,t.code.length),modifiers:n}),i=this._commandsByShortcut.get(o)),!i&&t.code.startsWith("Key")&&(i=_0({key:t.code.substring(3,t.code.length),modifiers:n}),i=r.get(o));let a=null;return i&&(a=this._commandsByKey.get(i),a&&a.disabled()&&(a=null),!a||a.target()&&a.target().contains(t.target)||(a=null)),a||(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 a=null;if(r)for(let l=0;l<r.length;l++){const c=r[l];if(!c)continue;let d=i.get(c);d||(d=new Set,i.set(c,d)),a||(a=[]),a.push(d),d.add(t)}return o.add(t),()=>{if(a)for(let l=0;l<a.length;l++)a[l].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 cI=Xt.getOS()===Xt.OSType.MacOS||Xt.getOS()===Xt.OSType.IOS?"Cmd":"Ctrl",dI=Xt.getOS()===Xt.OSType.MacOS||Xt.getOS()===Xt.OSType.IOS?"⌘":"^",_0=(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?.[$e.Ctrl]||n?.[$e.Meta])&&(o+=(o.length>0?"+":"")+(t?dI:cI)),n?.[$e.Alt]&&(o+=t?"⌥":"Alt"),n?.[$e.Shift]&&(o+=(o.length>0?"+":"")+(t?"⇧":"Shift")),o+=(o.length>0?"+":"")+lb(e.key),o};function ol(e,t=null){const n=u.useRef(t);n.current=t;const[o,r]=u.useReducer(a=>a+1,0),i=u.useMemo(()=>Array.isArray(e)?e:[e],[e]);return u.useEffect(()=>{if(!i||i.length===0)return;const a=(d,p)=>{n.current?.onChange?.(p),r()};let l=null;t&&(l={onExecute(d,p){n.current?.onExecute?.(d,p)},onError(d,p,f){n.current?.onError?.(d,p,f)}});const c=new Set;for(let d=0;d<i.length;d++)c.add(i[d]?.addPropertyListener(Xt.debounce(a,0),!0)),t&&c.add(i[d]?.addExecuteListener(l));return()=>{c.forEach(d=>{d?.()})}},[e]),o}const nd=(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 _o(e,t=null,n=null,o){const r=u.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,a]=u.useState(nd(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const h=nd(e,t);a(h),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),a(nd(e,t))});const p=e?.addListener(c,d),f=nd(e,t);return a(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Yt={Toolbar:"toolbar",Menuitem:"menuitem"},hb=db({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>$s.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState($s.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}}),fb=e=>{const{source:t,target:n,onPaste:o,onClipboardUpdate:r,notifier:i=yu,commands:a}=e,l=_e(r,[r]),c=_e(o,[o]),{getClipboard:d,refNativeCopy:p}=hb(),f=d();u.useMemo(()=>{const b=t?.element,w=n?.element??t?.element;if(!a)return;const E=[new Tt("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:[$e.Ctrl]}}),new Tt("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:[$e.Ctrl]}}),new Tt("paste",w,{label:"Paste",description:"Add content on the clipboard to your document.",shortcut:[{key:"V",modifiers:[$e.Ctrl]},{key:"F8",modifiers:[$e.Ctrl]}]})];a?.addCommands(E,!0)},[a]);const h=_e(async b=>{if(!t?.element)return;let w=null;try{w=t.doCopy?.(b),typeof w=="string"?await f.writeText(w):await f.writeReference(w)}catch(E){throw E}},[t,i]),g=_e(async b=>{const w=t?.element?.();if(w){p.current={sourceElement:w,args:b};try{await h(b)}catch(E){i?.showError?.(E)}}},[t?.element,i]),m=u.useCallback(()=>{g({isCut:!0})},[]),y=_e(async(b,w,E)=>{try{if(await b.doPaste(w,E)===!1)return;c?.(w,E)}catch(C){i?.showError?.(C)}},[c]),x=_e(async(b,w,E)=>{const C=n?.element?.();if(C&&await Xt.whenFocus(C),!b&&!w)return;const R=await i?.showBusy?.("Pasting...");if(w)try{return await y(n,w,E),void R?.()}catch(T){R?.(),i?.showError?.(T)}let _,L=n.importFromExternal;L||(L=(T,j)=>({getItemType:()=>"text",toText:()=>b.text,isClipboardItem:!0}));try{_=await L(b,{isCut:!1})}catch(T){R?.(),i?.showError?.(T)}if(_)try{const T=await Promise.resolve(_);await y(n,T,E),R?.()}catch(T){R?.(),i?.showError?.(T)}else R?.()},[y,n,i]),v=_e(async b=>{if(n?.element)try{const w=await f.readReference();if(w)return void await x(null,w,b);const E=[];E[0]=await RR(f,xa),E[1]=await IR(f,kr),E[2]=await jR(f,Fd);const C={text:E[0]??null,html:E[1]??null,image:E[2]??null};await x(C,null,b)}catch(w){if(w?.message==="Document is not focused.")return;i?.showError?.(w)}},[x,n?.element,i]);return _e(async b=>{},[t?.element]),_e(async b=>{},[n?.element,x,i]),u.useEffect(()=>{if(!f)return;const b=async C=>{const R=await f.readReference();l?.(R)},w=C=>{i?.showMessage?.($s.ErrorMessages.PermsRead,{onceKey:"clipboard.features"})},E=C=>{i?.showMessage?.($s.ErrorMessages.PermsWrite,{onceKey:"clipboard.features"})};return f.addEventListener("clipboardchange",b),f.addEventListener("clipboarderrorread",w),f.addEventListener("clipboarderrorwrite",E),()=>{f.removeEventListener("clipboardchange",b),f.removeEventListener("clipboarderrorread",w),f.removeEventListener("clipboarderrorwrite",E)}},[f,i]),u.useEffect(()=>{},[h,x,t,n]),u.useEffect(()=>{a?.getCommand("cut")?.updateCallback(m).update({disabled:!t||!n}),a?.getCommand("copy")?.updateCallback(g).update({disabled:!t}),a?.getCommand("paste")?.updateCallback(v).update({disabled:!n})},[t,n,a]),{paste:v,copy:g,clipboard:f}};u.useId;const T4="Undo the last action.",_4="Repeat the last action or undo the redo.",uI=e=>`Redo ${e}`;function mb(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=mb(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function rr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=mb(e))&&(o&&(o+=" "),o+=t);return o}const Pr="text/html",Oa="text/plain",xp="image/png",pI=Object.freeze({left:0,top:0}),hI=Object.freeze({left:0,top:0,bottom:0,right:0}),fI=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:fI,EmptyRect:hI,EmptyTopLeft:pI},Symbol.toStringTag,{value:"Module"}));const _l="column",Vc="row",mI=Object.freeze({colIndex:0,rowIndex:0}),gI=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),gb=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,yb=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,yI=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,xI=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,j4=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,R4=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,xb=(e=Vc,t=!1)=>t?e!==_l?yI:xI:e!==_l?yb:gb,I4=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Z5=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,X5=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),P4=(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(!Z5(e[n],t[n]))return!1;return!0},bp=(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),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},O4=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];X5(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},bI=[null,null],vI=(e,t,n)=>{if(e[0].value===e[1].value)return t};function D4(e,t=2,n,o=Vc,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===_l,l=0,c=!1;do{const d=i.sort(xb(a?Vc:_l));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const C=r??[null,null];C[0]=h,C[1]=b,E=n(C,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:mI,EmptyRange:gI,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:j4,columnFirstRangeComparator:gb,createCellComparator:(e=Vc,t=!1)=>t?e!==_l?(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!==_l?R4:j4,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const f=d!==void 0;if(f){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?D4(n,3,l===!0?vI:l,t?_l:Vc,bI):n)}},createRangeComparator:xb,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:O4,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Z5(n,o);)o=n,n=O4(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(X5(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),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:I4,isEqualRanges:Z5,isEqualRangesArrays:P4,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!I4(e.cell,t.cell)&&P4(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:X5,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:D4,rowFirstCellComparator:R4,rowFirstRangeComparator:yb,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:bp,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=bp(o,e[r],n);return t&&(o=bp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"}));const wI=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function SI(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===wI}(e)}function Q0(e,t){return t.clone!==!1&&t.isMergeableObject(e)?zl((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function CI(e,t,n){return e.concat(t).map(function(o){return Q0(o,n)})}function A4(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 L4(e,t){try{return t in e}catch{return!1}}function zl(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||CI,n.isMergeableObject=n.isMergeableObject||SI,n.cloneUnlessOtherwiseSpecified=Q0;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&A4(r).forEach(function(c){l[c]=Q0(r[c],a)}),A4(i).forEach(function(c){var d,p;L4(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(L4(r,c)&&a.isMergeableObject(i[c])?l[c]=function(f,h){if(!h.customMerge)return zl;const g=h.customMerge(f);return typeof g=="function"?g:zl}(c,a)(r[c],i[c],a):l[c]=Q0(i[c],a))}),l}(e,t,n):Q0(t,n)}zl.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return zl(n,o,t)},{})};const kI=Object.freeze([]),EI=Object.freeze({}),z4=e=>e,$d=()=>"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)}),bb=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),j0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,vb=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?vb(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),MI=(e,t)=>!(e!==t&&!bb(e,t)&&!e.isEqual?.(t)),wb=(e,t,n=MI)=>{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 a=o[i];wb(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},F4=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),B4=e=>e==null,N4=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),$4=!(typeof window>"u"||!window.document||!window.document.createElement),Or={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Hc=()=>{if(Sb())return Or.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Or.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Or.MacOS:/(iphone|ipad|ipod)/i.test(e)?Or.IOS:/android/.test(e)?Or.Android:/linux/.test(e)?Or.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Or.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Or.Firefox:Or.Unknown:Or.Unknown};function Sb(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const V4=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),To=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:kI,EmptyObject:EI,OSType:Or,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:$4,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>B4(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,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},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 a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))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:zl,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=z4){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=z4){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>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 a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!j0(a))return a;o=a}return o??null},getOS:Hc,hasFocus:V4,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:bb,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:Sb,isNullOrUndefined:B4,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:j0,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:N4,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!j0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=zl(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(!$4)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:vb,removeEqualValues:wb,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=F4(),o={id:requestAnimationFrame(function r(){F4()-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 a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!j0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!j0(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,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);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(!N4(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})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{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(),l(),i(),a()):(i(),a(),l(),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:$d,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=>{V4(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 Cb=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")},Y5=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:Cb,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:Y5},Symbol.toStringTag,{value:"Module"}));const kb="data:image/png;base64,",Eb="Unable to resolve image.",H4=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(Eb)}),vp="image/svg+xml";var W4,U4;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:kb,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 a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}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(Eb)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await H4(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:vp})),l=await H4(a);n={mimeType:t??vp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===vp?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"})),(U4=W4||(W4={})).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,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,U4.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};const q4=`The Safari browser does not support advanced copy and paste.
123
- Copy and paste will be limited to within the browser tab.
124
-
125
- Please use Chrome or Edge if external copy and paste is required.`,wp=`You do not have permissions to access the clipboard.
126
- All copy and paste operations will be limited to the browser tab.`,Mb={Safari:`The Safari browser does not support advanced copy and paste.
127
- Copy and paste will be limited to within the browser tab.
128
-
129
- Please use Chrome or Edge if external copy and paste is required.`,Perms:wp,PermsWrite:Hc()===Or.Safari?q4:wp,PermsRead:Hc()===Or.Safari?q4:wp},Sp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Cp=async(e,t,n)=>{if(Hc()===Or.Safari)return await n(new Error(Mb.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},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)}},Tb=async e=>{try{return await e.read({unsanitized:[Pr]})}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={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}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 J5=async(e,t=Pr)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await Tb(i);let c=!1;for(let d=0;!c&&l&&d<l.length;d++)if(c=l[d].types.includes(a),c)return await l[d].getType(a);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)}}),K4=async(e,t=Pr)=>{const n=await J5(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Pr)}catch{console.warn("Can't parse html from clipboard.")}return o},Wc="clipboard-uuid",ns="web text/uuid",G4=e=>`<div style="display:none" ${Wc}="${e}"/>`,TI=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Pr);o.body.firstElementChild.setAttribute(Wc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},Z4=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Wc}="${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 vu=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 Cp("clipboard-read",async()=>{await Sp();const e=await J5(this._nativeClipboard,ns);if(!this._state||e&&e===this._state.uuid)return!0;const t=await K4(this._nativeClipboard,Pr);return!this._state||(Z4(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Hc()===Or.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 Cp("clipboard-read",async()=>{if(await Sp(),this._state?.uuid){const t=await J5(this._nativeClipboard,ns);if(t&&t===e._state.uuid)return!0;const n=await K4(this._nativeClipboard,Pr);if(Z4(e._state?.uuid,n))return!0}return e._state={items:await Tb(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:$d(),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 Cp("clipboard-write",async()=>{await Sp(),o&&r.length===0&&(r.push(new ClipboardItem({[ns]:new Blob([o],{type:ns})})),r.push(new ClipboardItem({[Pr]:new Blob([G4(o)],{type:Pr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Pr),d=null;if(c!==-1){const h=await l.getType(Pr);d=await Y5(h),d&&(d=TI(o,d))}if(!d&&l.types.includes(Oa)){const h=await l.getType(Oa);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await Y5(h),g&&(d=`<div ${Wc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(xp)){const h=await l.getType(xp),g=Cb(await h.arrayBuffer());d=`<div ${Wc}="${o}"><img src="${kb+g}"/></div>`}!d&&o&&(d=G4(o));const p=new Blob([d??""],{type:Pr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[Pr]=p),o&&(f[ns]=new Blob([o],{type:ns})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{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[Oa]=new Blob([r??""],{type:Oa}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Pr]=new Blob([r],{type:Pr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[xp]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:$d(),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(Oa)&&(o=await n[i].getType(Oa));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({[Oa]:new Blob([e],{type:Oa})})];return this._write({uuid:$d(),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(a){console.warn(a)}})};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 kp;(kp=vu||(vu={})).ErrorMessages=Mb,kp.Global=new kp;const Hs=e=>s.jsx(Je,{...e,children:s.jsx("path",{})}),j3=e=>s.jsx(Je,{...e,children:s.jsx("path",{className:"styled info",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),X4=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),_I=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),jI=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"m 8,10.715958 v 2.57 h 12 v -2.57 z"})]}),RI=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),II=e=>s.jsx(Je,{...e,children:s.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"})}),PI=e=>s.jsx(Je,{...e,children:s.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"})}),OI=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),Y4=e=>s.jsx(Je,{...e,children:s.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"})}),_b=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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 Fl(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 R3="$$material";function jb(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rb(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 J4,Q4,e7={exports:{}},oo={},Ib=(Q4||(Q4=1,e7.exports=function(){if(J4)return oo;J4=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=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(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return oo.ContextConsumer=i,oo.ContextProvider=a,oo.Element=e,oo.ForwardRef=l,oo.Fragment=n,oo.Lazy=f,oo.Memo=p,oo.Portal=t,oo.Profiler=r,oo.StrictMode=o,oo.Suspense=c,oo.SuspenseList=d,oo.isContextConsumer=function(y){return m(y)===i},oo.isContextProvider=function(y){return m(y)===a},oo.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},oo.isForwardRef=function(y){return m(y)===l},oo.isFragment=function(y){return m(y)===n},oo.isLazy=function(y){return m(y)===f},oo.isMemo=function(y){return m(y)===p},oo.isPortal=function(y){return m(y)===t},oo.isProfiler=function(y){return m(y)===r},oo.isStrictMode=function(y){return m(y)===o},oo.isSuspense=function(y){return m(y)===c},oo.isSuspenseList=function(y){return m(y)===d},oo.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},oo.typeOf=m,oo}()),e7.exports);function wa(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 Pb(e){if(G.isValidElement(e)||Ib.isValidElementType(e)||!wa(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Pb(e[n])}),t}function oi(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return wa(e)&&wa(t)&&Object.keys(t).forEach(r=>{G.isValidElement(t[r])||Ib.isValidElementType(t[r])?o[r]=t[r]:wa(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&wa(e[r])?o[r]=oi(e[r],t[r],n):n.clone?o[r]=wa(t[r])?Pb(t[r]):t[r]:o[r]=t[r]}),o}function I3(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 el(e){if(e.type)return e;if(e.charAt(0)==="#")return el(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<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(Fl(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(Fl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const ec=(e,t)=>{try{return(n=>{const o=el(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function w2(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 Ob(e){e=el(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),w2({type:l,values:c})}function Q5(e){let t=(e=el(e)).type==="hsl"||e.type==="hsla"?el(Ob(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 od(e,t,n){try{return function(o,r){return o=el(o),r=I3(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,w2(o)}(e,t)}catch{return e}}function P3(e,t){if(e=el(e),t=I3(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 w2(e)}function co(e,t,n){try{return P3(e,t)}catch{return e}}function O3(e,t){if(e=el(e),t=I3(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 w2(e)}function uo(e,t,n){try{return O3(e,t)}catch{return e}}function rd(e,t,n){try{return function(o,r=.15){return Q5(o)>.5?P3(o,r):O3(o,r)}(e,t)}catch{return e}}const Uc={black:"#000",white:"#fff"},DI={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"},t7="#d32f2f",n7="#42a5f5",o7="#0288d1";function Db(){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:Uc.white,default:Uc.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 AI=Db();function Ab(){return{text:{primary:Uc.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:Uc.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 r7=Ab();function i7(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=O3(e.main,r):t==="dark"&&(e.dark=P3(e.main,i)))}function D3(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:n7}:{main:"#1976d2",light:n7,dark:"#1565c0"}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),l=e.error||function(m="light"){return m==="dark"?{main:"#f44336",light:"#e57373",dark:t7}:{main:t7,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:o7}:{main:o7,light:"#03a9f4",dark:"#01579b"}}(t),d=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(y,x){const v=Q5(y),b=Q5(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,r7.text.primary)>=n?r7.text.primary:AI.text.primary}const h=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(Fl(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Fl(12,y?` (${y})`:"",JSON.stringify(m.main)));return i7(m,"light",v,o),i7(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=Db():t==="dark"&&(g=Ab()),oi({common:{...Uc},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:DI,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var a7,l7,s7,c7,d7,u7={exports:{}};function eh(){return d7||(d7=1,u7.exports=function(){if(c7)return s7;c7=1;var e=l7?a7:(l7=1,a7="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,s7=function(){function o(a,l,c,d,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}}()()),u7.exports}function xc(e,t){return t?oi(e,t,{clone:!1}):e}function p7(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 S2={xs:0,sm:600,md:900,lg:1200,xl:1536},h7={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${S2[e]}px)`},LI={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:S2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _a(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||h7;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||h7;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:LI,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||S2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function f7(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function Lb(e){if(typeof e!="string")throw new Error(Fl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function C2(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 wu(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:C2(e,n)||o,t&&(r=t(r,o,e)),r}function Uo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=C2(a.theme,o)||{};return _a(a,l,d=>{let p=wu(c,r,d);return d===p&&typeof d=="string"&&(p=wu(c,r,`${t}${d==="default"?"":Lb(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const zI={m:"margin",p:"padding"},FI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},m7={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},BI=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!m7[n])return[n];n=m7[n]}const[o,r]=n.split(""),i=zI[o],a=FI[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),zb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Fb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function v1(e,t,n,o){const r=C2(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 a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function A3(e){return v1(e,"spacing",8)}function w1(e,t){return typeof t=="string"||t==null?t:e(t)}function Bb(e,t){const n=A3(e.theme);return Object.keys(e).map(o=>function(r,i,a,l){if(!i.includes(a))return null;const c=function(d,p){return f=>d.reduce((h,g)=>(h[g]=w1(p,f),h),{})}(BI(a),l);return _a(r,r[a],c)}(e,t,o,n)).reduce(xc,{})}function Po(e){return Bb(e,zb)}function Oo(e){return Bb(e,Fb)}function Nb(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],a=t[r];if(a)if(i){n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=l;n[r][c]=Nb(i[c],a[c])}}else n[r]=a;else n[r]=i||{}}else n[r]===void 0&&(n[r]=e[r])}return n}Po.propTypes={},Po.filterProps=zb,Oo.propTypes={},Oo.filterProps=Fb;const NI={borderRadius:4};function Su(...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]?xc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function bi(e){return typeof e!="number"?e:`${e}px solid`}function Ii(e,t){return Uo({prop:e,themeKey:"borders",transform:t})}const $I=Ii("border",bi),VI=Ii("borderTop",bi),HI=Ii("borderRight",bi),WI=Ii("borderBottom",bi),UI=Ii("borderLeft",bi),qI=Ii("borderColor"),KI=Ii("borderTopColor"),GI=Ii("borderRightColor"),ZI=Ii("borderBottomColor"),XI=Ii("borderLeftColor"),YI=Ii("outline",bi),JI=Ii("outlineColor"),Vd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=v1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:w1(t,o)});return _a(e,e.borderRadius,n)}return null};Vd.propTypes={},Vd.filterProps=["borderRadius"],Su($I,VI,HI,WI,UI,qI,KI,GI,ZI,XI,Vd,YI,JI);const Cu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=v1(e.theme,"spacing",8),n=o=>({gap:w1(t,o)});return _a(e,e.gap,n)}return null};Cu.propTypes={},Cu.filterProps=["gap"];const ku=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=v1(e.theme,"spacing",8),n=o=>({columnGap:w1(t,o)});return _a(e,e.columnGap,n)}return null};ku.propTypes={},ku.filterProps=["columnGap"];const Hd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=v1(e.theme,"spacing",8),n=o=>({rowGap:w1(t,o)});return _a(e,e.rowGap,n)}return null};function Es(e,t){return t==="grey"?t:e}function ei(e){return e<=1&&e!==0?100*e+"%":e}Hd.propTypes={},Hd.filterProps=["rowGap"],Su(Cu,ku,Hd,Uo({prop:"gridColumn"}),Uo({prop:"gridRow"}),Uo({prop:"gridAutoFlow"}),Uo({prop:"gridAutoColumns"}),Uo({prop:"gridAutoRows"}),Uo({prop:"gridTemplateColumns"}),Uo({prop:"gridTemplateRows"}),Uo({prop:"gridTemplateAreas"}),Uo({prop:"gridArea"})),Su(Uo({prop:"color",themeKey:"palette",transform:Es}),Uo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Es}),Uo({prop:"backgroundColor",themeKey:"palette",transform:Es}));const QI=Uo({prop:"width",transform:ei}),L3=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||S2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ei(n)}};return _a(e,e.maxWidth,t)}return null};L3.filterProps=["maxWidth"];const eP=Uo({prop:"minWidth",transform:ei}),tP=Uo({prop:"height",transform:ei}),nP=Uo({prop:"maxHeight",transform:ei}),oP=Uo({prop:"minHeight",transform:ei});Uo({prop:"size",cssProperty:"width",transform:ei}),Uo({prop:"size",cssProperty:"height",transform:ei}),Su(QI,L3,eP,tP,nP,oP,Uo({prop:"boxSizing"}));const k2={border:{themeKey:"borders",transform:bi},borderTop:{themeKey:"borders",transform:bi},borderRight:{themeKey:"borders",transform:bi},borderBottom:{themeKey:"borders",transform:bi},borderLeft:{themeKey:"borders",transform:bi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:bi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vd},color:{themeKey:"palette",transform:Es},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Es},backgroundColor:{themeKey:"palette",transform:Es},p:{style:Oo},pt:{style:Oo},pr:{style:Oo},pb:{style:Oo},pl:{style:Oo},px:{style:Oo},py:{style:Oo},padding:{style:Oo},paddingTop:{style:Oo},paddingRight:{style:Oo},paddingBottom:{style:Oo},paddingLeft:{style:Oo},paddingX:{style:Oo},paddingY:{style:Oo},paddingInline:{style:Oo},paddingInlineStart:{style:Oo},paddingInlineEnd:{style:Oo},paddingBlock:{style:Oo},paddingBlockStart:{style:Oo},paddingBlockEnd:{style:Oo},m:{style:Po},mt:{style:Po},mr:{style:Po},mb:{style:Po},ml:{style:Po},mx:{style:Po},my:{style:Po},margin:{style:Po},marginTop:{style:Po},marginRight:{style:Po},marginBottom:{style:Po},marginLeft:{style:Po},marginX:{style:Po},marginY:{style:Po},marginInline:{style:Po},marginInlineStart:{style:Po},marginInlineEnd:{style:Po},marginBlock:{style:Po},marginBlockStart:{style:Po},marginBlockEnd:{style:Po},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:Cu},rowGap:{style:Hd},columnGap:{style:ku},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ei},maxWidth:{style:L3},minWidth:{transform:ei},height:{transform:ei},maxHeight:{transform:ei},minHeight:{transform:ei},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"}},Ws=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const f=C2(o,c)||{};return p?p(i):_a(i,n,h=>{let g=wu(f,d,h);return h===g&&typeof h=="string"&&(g=wu(f,d,`${t}${h==="default"?"":Lb(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??k2;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=typeof(y=d[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(a[g])h=xc(h,e(g,m,r,a));else{const x=_a({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((E,C)=>E.concat(Object.keys(C)),[]),w=new Set(b);return v.every(E=>w.size===Object.keys(E).length)})(x,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=xc(h,x)}else h=xc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":p7(r,f7(f,h))}:p7(r,f7(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function rP(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 z3(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e;let l=oi({breakpoints:function(c){const{values:d={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:p="px",step:f=5,...h}=c,g=(b=>{const w=Object.keys(b).map(E=>({key:E,val:b[E]}))||[];return w.sort((E,C)=>E.val-C.val),w.reduce((E,C)=>({...E,[C.key]:C.val}),{})})(d),m=Object.keys(g);function y(b){return`@media (min-width:${typeof d[b]=="number"?d[b]:b}${p})`}function x(b){return`@media (max-width:${(typeof d[b]=="number"?d[b]:b)-f/100}${p})`}function v(b,w){const E=m.indexOf(w);return`@media (min-width:${typeof d[b]=="number"?d[b]:b}${p}) and (max-width:${(E!==-1&&typeof d[m[E]]=="number"?d[m[E]]:w)-f/100}${p})`}return{keys:m,values:g,up:y,down:x,between:v,only:function(b){return m.indexOf(b)+1<m.length?v(b,m[m.indexOf(b)+1]):y(b)},not:function(b){const w=m.indexOf(b);return w===0?y(m[1]):w===m.length-1?x(m[w]):v(b,m[m.indexOf(b)+1]).replace("@media","@media not all and")},unit:p,...h}}(n),direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(c=8,d=A3({spacing:c})){if(c.mui)return c;const p=(...f)=>(f.length===0?[1]:f).map(h=>{const g=d(h);return typeof g=="number"?`${g}px`:g}).join(" ");return p.mui=!0,p}(r),shape:{...NI,...i}},a);return l=function(c){const d=(g,m)=>g.replace("@media",m?`@container ${m}`:"@container");function p(g,m){g.up=(...y)=>d(c.breakpoints.up(...y),m),g.down=(...y)=>d(c.breakpoints.down(...y),m),g.between=(...y)=>d(c.breakpoints.between(...y),m),g.only=(...y)=>d(c.breakpoints.only(...y),m),g.not=(...y)=>{const x=d(c.breakpoints.not(...y),m);return x.includes("not all and")?x.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):x}}const f={},h=g=>(p(f,g),f);return p(h),{...c,containerQueries:h}}(l),l.applyStyles=rP,l=t.reduce((c,d)=>oi(c,d),l),l.unstable_sxConfig={...k2,...a?.unstable_sxConfig},l.unstable_sx=function(c){return Ws({sx:c,theme:this})},l}Ws.filterProps=["sx"];const iP=z3(),g7=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===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 Ep(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(h=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>h.includes(x))||h[h.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),g7(i,d,`var(${m})`,f),g7(a,d,`var(${m}, ${y})`,f)}var h,g},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:a}}function aP(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 y7={textTransform:"uppercase"},x7='"Roboto", "Helvetica", "Arial", sans-serif';function lP(e,t){const{fontFamily:n=x7,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===x7?{letterSpacing:(C=w/v,Math.round(1e5*C)/1e5+"em")}:{},...E,...d};var C},y={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(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,y7),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,y7),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oi({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}function Co(...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 sP=["none",Co(0,2,1,-1,0,1,1,0,0,1,3,0),Co(0,3,1,-2,0,2,2,0,0,1,5,0),Co(0,3,3,-2,0,3,4,0,0,1,8,0),Co(0,2,4,-1,0,4,5,0,0,1,10,0),Co(0,3,5,-1,0,5,8,0,0,1,14,0),Co(0,3,5,-1,0,6,10,0,0,1,18,0),Co(0,4,5,-2,0,7,10,1,0,2,16,1),Co(0,5,5,-3,0,8,10,1,0,3,14,2),Co(0,5,6,-3,0,9,12,1,0,3,16,2),Co(0,6,6,-3,0,10,14,1,0,4,18,3),Co(0,6,7,-4,0,11,15,1,0,4,20,3),Co(0,7,8,-4,0,12,17,2,0,5,22,4),Co(0,7,8,-4,0,13,19,2,0,5,24,4),Co(0,7,9,-4,0,14,21,2,0,5,26,4),Co(0,8,9,-5,0,15,22,2,0,6,28,5),Co(0,8,10,-5,0,16,24,2,0,6,30,5),Co(0,8,11,-5,0,17,26,2,0,6,32,5),Co(0,9,11,-5,0,18,28,2,0,7,34,6),Co(0,9,12,-6,0,19,29,2,0,7,36,6),Co(0,10,13,-6,0,20,31,3,0,8,38,7),Co(0,10,13,-6,0,21,33,3,0,8,40,7),Co(0,10,14,-6,0,22,35,3,0,8,42,7),Co(0,11,14,-7,0,23,36,3,0,9,44,8),Co(0,11,15,-7,0,24,38,3,0,9,46,8)],cP={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)"},dP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b7(e){return`${Math.round(e)}ms`}function uP(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function pP(e){const t={...cP,...e.easing},n={...dP,...e.duration};return{getAutoHeightDuration:uP,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:b7(i)} ${a} ${typeof l=="string"?l:b7(l)}`).join(",")},...e,easing:t,duration:n}}const hP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fP(e){return wa(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function $b(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!fP(l)||a.startsWith("unstable_")?delete o[a]:wa(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
130
-
131
- const theme = ${JSON.stringify(t,null,2)};
132
-
133
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
134
- theme.transitions = createTransitions(theme.transitions || {});
135
-
136
- export default theme;`}function th(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Fl(20));const p=D3(i),f=z3(e);let h=oi(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:sP.slice(),typography:lP(p,l),transitions:pP(a),zIndex:{...hP}});var g,m;return h=oi(h,d),h=t.reduce((y,x)=>oi(y,x),h),h.unstable_sxConfig={...k2,...d?.unstable_sxConfig},h.unstable_sx=function(y){return Ws({sx:y,theme:this})},h.toRuntimeSource=$b,h}function Vb(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const mP=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Vb(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function v7(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function w7(e){return e==="dark"?mP:[]}function gP(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 yP=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 l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}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 a;return o};function lt(e,t,n){!e[t]&&n&&(e[t]=n)}function tc(e){return typeof e=="string"&&e.startsWith("hsl")?Ob(e):e}function ga(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ec(tc(e[t])))}const Xi=e=>{try{return e()}catch{}};function Mp(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...f}=l,h=D3(c);return{palette:h,opacity:{...v7(h.mode),...d},overlays:p||w7(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=th({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...v7(r),...t?.opacity},overlays:t?.overlays||w7(r)},a}function S7(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:D3({...n===!0?{}:n.palette,mode:t})})}function nh(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return th(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=th({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},S7(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},S7(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...f){const{colorSchemes:h={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=gP,colorSchemeSelector:v=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...w}=p,E=Object.keys(h)[0],C=g||(h.light&&E!=="light"?"light":E),R=((B="mui")=>c3(B))(y),{[C]:_,light:L,dark:T,...j}=h,S={...j};let k=_;if((C==="dark"&&!("dark"in h)||C==="light"&&!("light"in h))&&(k=!0),!k)throw new Error(Fl(21,C));const P=Mp(S,k,w,C);L&&!S.light&&Mp(S,L,void 0,"light"),T&&!S.dark&&Mp(S,T,void 0,"dark");let O={defaultColorScheme:C,...P,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:R,colorSchemes:S,font:{...aP(P.typography),...P.font},spacing:(I=w.spacing,typeof I=="number"?`${I}px`:typeof I=="string"||typeof I=="function"||Array.isArray(I)?I:"8px")};var I;Object.keys(O.colorSchemes).forEach(B=>{const M=O.colorSchemes[B].palette,N=U=>{const J=U.split("-"),X=J[1],H=J[2];return R(U,M[X][H])};var V;if(M.mode==="light"&&(lt(M.common,"background","#fff"),lt(M.common,"onBackground","#000")),M.mode==="dark"&&(lt(M.common,"background","#000"),lt(M.common,"onBackground","#fff")),V=M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{V[U]||(V[U]={})}),M.mode==="light"){lt(M.Alert,"errorColor",co(M.error.light,.6)),lt(M.Alert,"infoColor",co(M.info.light,.6)),lt(M.Alert,"successColor",co(M.success.light,.6)),lt(M.Alert,"warningColor",co(M.warning.light,.6)),lt(M.Alert,"errorFilledBg",N("palette-error-main")),lt(M.Alert,"infoFilledBg",N("palette-info-main")),lt(M.Alert,"successFilledBg",N("palette-success-main")),lt(M.Alert,"warningFilledBg",N("palette-warning-main")),lt(M.Alert,"errorFilledColor",Xi(()=>M.getContrastText(M.error.main))),lt(M.Alert,"infoFilledColor",Xi(()=>M.getContrastText(M.info.main))),lt(M.Alert,"successFilledColor",Xi(()=>M.getContrastText(M.success.main))),lt(M.Alert,"warningFilledColor",Xi(()=>M.getContrastText(M.warning.main))),lt(M.Alert,"errorStandardBg",uo(M.error.light,.9)),lt(M.Alert,"infoStandardBg",uo(M.info.light,.9)),lt(M.Alert,"successStandardBg",uo(M.success.light,.9)),lt(M.Alert,"warningStandardBg",uo(M.warning.light,.9)),lt(M.Alert,"errorIconColor",N("palette-error-main")),lt(M.Alert,"infoIconColor",N("palette-info-main")),lt(M.Alert,"successIconColor",N("palette-success-main")),lt(M.Alert,"warningIconColor",N("palette-warning-main")),lt(M.AppBar,"defaultBg",N("palette-grey-100")),lt(M.Avatar,"defaultBg",N("palette-grey-400")),lt(M.Button,"inheritContainedBg",N("palette-grey-300")),lt(M.Button,"inheritContainedHoverBg",N("palette-grey-A100")),lt(M.Chip,"defaultBorder",N("palette-grey-400")),lt(M.Chip,"defaultAvatarColor",N("palette-grey-700")),lt(M.Chip,"defaultIconColor",N("palette-grey-700")),lt(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),lt(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),lt(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),lt(M.LinearProgress,"primaryBg",uo(M.primary.main,.62)),lt(M.LinearProgress,"secondaryBg",uo(M.secondary.main,.62)),lt(M.LinearProgress,"errorBg",uo(M.error.main,.62)),lt(M.LinearProgress,"infoBg",uo(M.info.main,.62)),lt(M.LinearProgress,"successBg",uo(M.success.main,.62)),lt(M.LinearProgress,"warningBg",uo(M.warning.main,.62)),lt(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),lt(M.Slider,"primaryTrack",uo(M.primary.main,.62)),lt(M.Slider,"secondaryTrack",uo(M.secondary.main,.62)),lt(M.Slider,"errorTrack",uo(M.error.main,.62)),lt(M.Slider,"infoTrack",uo(M.info.main,.62)),lt(M.Slider,"successTrack",uo(M.success.main,.62)),lt(M.Slider,"warningTrack",uo(M.warning.main,.62));const U=rd(M.background.default,.8);lt(M.SnackbarContent,"bg",U),lt(M.SnackbarContent,"color",Xi(()=>M.getContrastText(U))),lt(M.SpeedDialAction,"fabHoverBg",rd(M.background.paper,.15)),lt(M.StepConnector,"border",N("palette-grey-400")),lt(M.StepContent,"border",N("palette-grey-400")),lt(M.Switch,"defaultColor",N("palette-common-white")),lt(M.Switch,"defaultDisabledColor",N("palette-grey-100")),lt(M.Switch,"primaryDisabledColor",uo(M.primary.main,.62)),lt(M.Switch,"secondaryDisabledColor",uo(M.secondary.main,.62)),lt(M.Switch,"errorDisabledColor",uo(M.error.main,.62)),lt(M.Switch,"infoDisabledColor",uo(M.info.main,.62)),lt(M.Switch,"successDisabledColor",uo(M.success.main,.62)),lt(M.Switch,"warningDisabledColor",uo(M.warning.main,.62)),lt(M.TableCell,"border",uo(od(M.divider,1),.88)),lt(M.Tooltip,"bg",od(M.grey[700],.92))}if(M.mode==="dark"){lt(M.Alert,"errorColor",uo(M.error.light,.6)),lt(M.Alert,"infoColor",uo(M.info.light,.6)),lt(M.Alert,"successColor",uo(M.success.light,.6)),lt(M.Alert,"warningColor",uo(M.warning.light,.6)),lt(M.Alert,"errorFilledBg",N("palette-error-dark")),lt(M.Alert,"infoFilledBg",N("palette-info-dark")),lt(M.Alert,"successFilledBg",N("palette-success-dark")),lt(M.Alert,"warningFilledBg",N("palette-warning-dark")),lt(M.Alert,"errorFilledColor",Xi(()=>M.getContrastText(M.error.dark))),lt(M.Alert,"infoFilledColor",Xi(()=>M.getContrastText(M.info.dark))),lt(M.Alert,"successFilledColor",Xi(()=>M.getContrastText(M.success.dark))),lt(M.Alert,"warningFilledColor",Xi(()=>M.getContrastText(M.warning.dark))),lt(M.Alert,"errorStandardBg",co(M.error.light,.9)),lt(M.Alert,"infoStandardBg",co(M.info.light,.9)),lt(M.Alert,"successStandardBg",co(M.success.light,.9)),lt(M.Alert,"warningStandardBg",co(M.warning.light,.9)),lt(M.Alert,"errorIconColor",N("palette-error-main")),lt(M.Alert,"infoIconColor",N("palette-info-main")),lt(M.Alert,"successIconColor",N("palette-success-main")),lt(M.Alert,"warningIconColor",N("palette-warning-main")),lt(M.AppBar,"defaultBg",N("palette-grey-900")),lt(M.AppBar,"darkBg",N("palette-background-paper")),lt(M.AppBar,"darkColor",N("palette-text-primary")),lt(M.Avatar,"defaultBg",N("palette-grey-600")),lt(M.Button,"inheritContainedBg",N("palette-grey-800")),lt(M.Button,"inheritContainedHoverBg",N("palette-grey-700")),lt(M.Chip,"defaultBorder",N("palette-grey-700")),lt(M.Chip,"defaultAvatarColor",N("palette-grey-300")),lt(M.Chip,"defaultIconColor",N("palette-grey-300")),lt(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),lt(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),lt(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),lt(M.LinearProgress,"primaryBg",co(M.primary.main,.5)),lt(M.LinearProgress,"secondaryBg",co(M.secondary.main,.5)),lt(M.LinearProgress,"errorBg",co(M.error.main,.5)),lt(M.LinearProgress,"infoBg",co(M.info.main,.5)),lt(M.LinearProgress,"successBg",co(M.success.main,.5)),lt(M.LinearProgress,"warningBg",co(M.warning.main,.5)),lt(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),lt(M.Slider,"primaryTrack",co(M.primary.main,.5)),lt(M.Slider,"secondaryTrack",co(M.secondary.main,.5)),lt(M.Slider,"errorTrack",co(M.error.main,.5)),lt(M.Slider,"infoTrack",co(M.info.main,.5)),lt(M.Slider,"successTrack",co(M.success.main,.5)),lt(M.Slider,"warningTrack",co(M.warning.main,.5));const U=rd(M.background.default,.98);lt(M.SnackbarContent,"bg",U),lt(M.SnackbarContent,"color",Xi(()=>M.getContrastText(U))),lt(M.SpeedDialAction,"fabHoverBg",rd(M.background.paper,.15)),lt(M.StepConnector,"border",N("palette-grey-600")),lt(M.StepContent,"border",N("palette-grey-600")),lt(M.Switch,"defaultColor",N("palette-grey-300")),lt(M.Switch,"defaultDisabledColor",N("palette-grey-600")),lt(M.Switch,"primaryDisabledColor",co(M.primary.main,.55)),lt(M.Switch,"secondaryDisabledColor",co(M.secondary.main,.55)),lt(M.Switch,"errorDisabledColor",co(M.error.main,.55)),lt(M.Switch,"infoDisabledColor",co(M.info.main,.55)),lt(M.Switch,"successDisabledColor",co(M.success.main,.55)),lt(M.Switch,"warningDisabledColor",co(M.warning.main,.55)),lt(M.TableCell,"border",co(od(M.divider,1),.68)),lt(M.Tooltip,"bg",od(M.grey[700],.92))}ga(M.background,"default"),ga(M.background,"paper"),ga(M.common,"background"),ga(M.common,"onBackground"),ga(M,"divider"),Object.keys(M).forEach(U=>{const J=M[U];U!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&lt(M[U],"mainChannel",ec(tc(J.main))),J.light&&lt(M[U],"lightChannel",ec(tc(J.light))),J.dark&&lt(M[U],"darkChannel",ec(tc(J.dark))),J.contrastText&&lt(M[U],"contrastTextChannel",ec(tc(J.contrastText))),U==="text"&&(ga(M[U],"primary"),ga(M[U],"secondary")),U==="action"&&(J.active&&ga(M[U],"active"),J.selected&&ga(M[U],"selected")))})}),O=f.reduce((B,M)=>oi(B,M),O);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:yP(O)},{vars:A,generateThemeVars:D,generateStyleSheets:F}=function(B,M={}){const{getSelector:N=ce,disableCssColorScheme:V,colorSchemeSelector:U}=M,{colorSchemes:J={},components:X,defaultColorScheme:H="light",...ne}=B,{vars:oe,css:ye,varsWithDefaults:de}=Ep(ne,M);let xe=de;const we={},{[H]:ve,...re}=J;if(Object.entries(re||{}).forEach(([Se,ie])=>{const{vars:Y,css:le,varsWithDefaults:ee}=Ep(ie,M);xe=oi(xe,ee),we[Se]={css:le,vars:Y}}),ve){const{css:Se,vars:ie,varsWithDefaults:Y}=Ep(ve,M);xe=oi(xe,Y),we[H]={css:Se,vars:ie}}function ce(Se,ie){let Y=U;if(U==="class"&&(Y=".%s"),U==="data"&&(Y="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(Y=`[${U}="%s"]`),Se){if(Y==="media")return B.defaultColorScheme===Se?":root":{[`@media (prefers-color-scheme: ${J[Se]?.palette?.mode||Se})`]:{":root":ie}};if(Y)return B.defaultColorScheme===Se?`:root, ${Y.replace("%s",String(Se))}`:Y.replace("%s",String(Se))}return":root"}return{vars:xe,generateThemeVars:()=>{let Se={...oe};return Object.entries(we).forEach(([,{vars:ie}])=>{Se=oi(Se,ie)}),Se},generateStyleSheets:()=>{const Se=[],ie=B.defaultColorScheme||"light";function Y(Pe,Te){Object.keys(Te).length&&Se.push(typeof Pe=="string"?{[Pe]:{...Te}}:Pe)}Y(N(void 0,{...ye}),ye);const{[ie]:le,...ee}=we;if(le){const{css:Pe}=le,Te=J[ie]?.palette?.mode,rt=!V&&Te?{colorScheme:Te,...Pe}:{...Pe};Y(N(ie,{...rt}),rt)}return Object.entries(ee).forEach(([Pe,{css:Te}])=>{const rt=J[Pe]?.palette?.mode,Ve=!V&&rt?{colorScheme:rt,...Te}:{...Te};Y(N(Pe,{...Ve}),Ve)}),Se}}}(O,z);return O.vars=A,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([B,M])=>{O[B]=M}),O.generateThemeVars=D,O.generateStyleSheets=F,O.generateSpacing=function(){return l2(w.spacing,A3(this))},O.getColorSchemeSelector=function(B){return function(M){return B==="media"?`@media (prefers-color-scheme: ${M})`:B?B.startsWith("data-")&&!B.includes("%s")?`[${B}="${M}"] &`:B==="class"?`.${M} &`:B==="data"?`[data-${M}] &`:`${B.replace("%s",M)} &`:"&"}}(v),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=x,O.unstable_sxConfig={...k2,...w?.unstable_sxConfig},O.unstable_sx=function(B){return Ws({sx:B,theme:this})},O.toRuntimeSource=$b,O}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const F3=nh();function B3(){const e=m1(F3);return e[R3]||e}function xP(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Nb(t.components[n].defaultProps,o):o}const bP=z3();function Tp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Sl(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function vP(e){return e?(t,n)=>n[e]:null}function Wd(e,t,n){const o=typeof t=="function"?t(e):t;if(Array.isArray(o))return o.flatMap(r=>Wd(e,r,n));if(Array.isArray(o?.variants)){let r;if(o.isProcessed)r=n?Sl(o.style,n):o.style;else{const{variants:i,...a}=o;r=n?Sl(Mr(a),n):a}return Hb(e,o.variants,[r],n)}return o?.isProcessed?n?Sl(Mr(o.style),n):o.style:n?Sl(Mr(o),n):o}function Hb(e,t,n=[],o=void 0){let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(r??={...e,...e.ownerState,ownerState:e.ownerState},n.push(o?Sl(Mr(a.style(r)),o):a.style(r))):n.push(o?Sl(Mr(a.style),o):a.style)}return n}function wP(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const SP=function(e={}){const{themeId:t,defaultTheme:n=bP,rootShouldForwardProp:o=Tp,slotShouldForwardProp:r=Tp}=e;function i(a){var l,c,d;c=t,d=n,(l=a).theme=function(p){for(const f in p)return!1;return!0}(l.theme)?d:l.theme[c]||l.theme}return(a,l={})=>{o3(a,R=>R.filter(_=>_!==Ws));const{name:c,slot:d,skipVariantsResolver:p,skipSx:f,overridesResolver:h=vP(wP(d)),...g}=l,m=c&&c.startsWith("Mui")||d?"components":"custom",y=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,x=f||!1;let v=Tp;var b;d==="Root"||d==="root"?v=o:d?v=r:typeof(b=a)=="string"&&b.charCodeAt(0)>96&&(v=void 0);const w=r2(a,{shouldForwardProp:v,label:void 0,...g}),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(_){return Wd(_,R,_.theme.modularCssLayers?m:void 0)};if(wa(R)){const _=function(L){const{variants:T,...j}=L,S={variants:T,style:Mr(j),isProcessed:!0};return S.style===j||T&&T.forEach(k=>{typeof k.style!="function"&&(k.style=Mr(k.style))}),S}(R);return function(L){return _.variants?Wd(L,_,L.theme.modularCssLayers?m:void 0):L.theme.modularCssLayers?Sl(_.style,m):_.style}}return R},C=(...R)=>{const _=[],L=R.map(E),T=[];if(_.push(i),c&&h&&T.push(function(k){const P=k.theme,O=P.components?.[c]?.styleOverrides;if(!O)return null;const I={};for(const z in O)I[z]=Wd(k,O[z],k.theme.modularCssLayers?"theme":void 0);return h(k,I)}),c&&!y&&T.push(function(k){const P=k.theme,O=P?.components?.[c]?.variants;return O?Hb(k,O,[],k.theme.modularCssLayers?"theme":void 0):null}),x||T.push(Ws),Array.isArray(L[0])){const k=L.shift(),P=new Array(_.length).fill(""),O=new Array(T.length).fill("");let I;I=[...P,...k,...O],I.raw=[...P,...k.raw,...O],_.unshift(I)}const j=[..._,...L,...T],S=w(...j);return a.muiName&&(S.muiName=a.muiName),S};return w.withConfig&&(C.withConfig=w.withConfig),C}}({themeId:R3,defaultTheme:F3,rootShouldForwardProp:e=>function(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}(e)&&e!=="classes"}),S1=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},C7=(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})`},CP=u.memo(u.forwardRef((e,t)=>{const{sx:n,size:o="small",activeColor:r,children:i,className:a,...l}=e;let c=24,d=24;return o==="medium"?(c=32,d=32):o==="large"&&(c=42,d=42),s.jsx(Le,{ref:t,className:rr("icon",a),sx:{width:c,height:d,...n},...l,children:i})})),Wb=SP(CP)(({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}})),ze=e=>s.jsx(Wb,{children:e}),kP=e=>{const{sx:t,...n}=e;return s.jsxs(Je,{sx:{overflow:"visible","& .activeColor":{filter:S1},...t},...n,children:[s.jsx("path",{className:"activeColor",d:"M10 5.21L5.21 10h9.58z",fillOpacity:"1"}),s.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"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fill:"blue",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},N3=e=>{const{sx:t,...n}=e;return s.jsxs(Je,{sx:{overflow:"visible","& .activeColor":{filter:S1},...t},...n,children:[s.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"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},EP=e=>{const{sx:t,...n}=e;return s.jsxs(Je,{sx:{overflow:"visible","& .activeColor":{filter:S1},...t},...n,children:[s.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"}),s.jsx("path",{className:"activeColor",d:"M0 20h24v4H0z",fillOpacity:"1",stroke:"currentColor",strokeOpacity:"0.5",strokeWidth:"0.5"})]})},k7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),MP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),TP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),Ub=e=>s.jsx(Je,{...e,children:s.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"})}),_P=e=>s.jsx(Je,{...e,children:s.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"})}),jP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),RP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),IP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),oh=e=>s.jsx(Je,{...e,children:s.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"})}),$3=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),qb=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),PP=e=>s.jsx(Je,{...e,children:s.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"})}),OP=e=>s.jsx(Je,{...e,children:s.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"})}),DP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),AP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),LP=e=>s.jsx(Je,{...e,children:s.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"})}),zP=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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 xr={Enter:13,Escape:27,Space:32,Up:38,Down:40,F4:115},Kr={Horizontal:"horizontal",Vertical:"vertical"};function Kb(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=Kb(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ms(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Kb(e))&&(o&&(o+=" "),o+=t);return o}var FP=function(){},Gb=typeof window<"u",BP=Gb?u.useLayoutEffect:u.useEffect,E7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Bl=Gb&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(E7),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return BP(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[FP,E7]},Cn=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},NP=e=>{const{style:t,orientation:n=Kr.Vertical,...o}=e,r=n===Kr.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},$P=e=>{const{style:t,orientation:n=Kr.Vertical,...o}=e,r=n===Kr.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},rh=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:rh},Symbol.toStringTag,{value:"Module"}));const V3=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=Kr.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=NP,createScrollEndButton:y=$P,...x}=e,v=Cn(d,[d]),b=u.useRef(null),[w,{width:E,height:C}]=Bl(),[R,{width:_,height:L}]=Bl(),T=l===Kr.Vertical,j=T?"top":"left",S=T?"scrollTop":"scrollLeft",k=T?C:E,P=T?L:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=ne?0:rh(H,ye[j],de,!0,Math.max(0,H-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=Math.ceil(P-k),we=ne?xe:rh(H,ye[j],de,!1,Math.max(0,H+f));return I(we),Math.min(xe,we)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[S];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[S]=n)},[n,S]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ye=h)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):A(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ye)},[z,A,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:ms("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(C??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));V3.displayName="Scrollbar";let M7=Date.now,Wa={},VP=1;const R0=e=>{let t=Wa[e]!==null;return t&&(Wa[e]=null),t},T7=(e,t,n,o=0,r)=>{let i=M7(),a=i,l=0,c=0,d=0,p=VP++;if(p%20==0){const h={};for(let g in Wa)h[g]=!0;Wa=h}const f=function(h){let g=h!==!0,m=M7(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!Wa[p]||!y)return Wa[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(Wa[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return Wa[p]=!0,requestAnimationFrame(f),p},HP=function(e){return Math.pow(e-1,3)+1},WP=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};class UP{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&&(R0(this.__isDecelerating),this.__isDecelerating=0);const a=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 l=t/a;let c=l*(this.__scrollLeft+o)-o,d=l*(this.__scrollTop+r)-r;c>this.__maxScrollLeft?c=this.__maxScrollLeft:c<0&&(c=0),d>this.__maxScrollTop?d=this.__maxScrollTop:d<0&&(d=0),this.__publish(c,d,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&&(R0(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&&(R0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(R0(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 a=this.__positions;if(this.__isDragging){let l=r-this.__lastTouchLeft,c=i-this.__lastTouchTop,d=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;d=(g+d)*f/h-g,p=(m+p)*f/h-m,this.__computeScrollMax(f)}}if(this.__enableScrollX){d-=l*this.options.speedMultiplier;let h=this.__maxScrollLeft;(d>h||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>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)}a.length>60&&a.splice(0,30),a.push(d,p,n),this.__publish(d,p,f)}else{let l=this.options.locking?3:0,c=5,d=Math.abs(r-this.__initialTouchLeft),p=Math.abs(i-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&d>=l,this.__enableScrollY=this.options.scrollingY&&p>=l,a.push(this.__scrollLeft,this.__scrollTop,n),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(d>=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],a=this.__scrollLeft-n[r-2],l=this.__scrollTop-n[r-1];this.__decelerationVelocityX=a/i*(1e3/60),this.__decelerationVelocityY=l/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&&(R0(i),this.__isAnimating=0),r&&this.options.animating){this.__scheduledLeft=t,this.__scheduledTop=n,this.__scheduledZoom=o;const a=this.__scrollLeft,l=this.__scrollTop,c=this.__zoomLevel,d=t-a,p=n-l,f=o-c,h=function(y,x,v){v&&(this.__scrollLeft=a+d*y,this.__scrollTop=l+p*y,this.__zoomLevel=c+f*y,this.__callback&&this.__callback(this.__scrollLeft,this.__scrollTop,this.__zoomLevel))}.bind(this),g=function(y){return this.__isAnimating===y}.bind(this),m=function(y,x,v){x===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||v)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=T7(h,g,m,this.options.animationDuration,i?HP:WP)}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 a=Math.max(Math.min(this.__scrollLeft,this.__maxScrollLeft),0),l=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),c=this.__clientWidth,d=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(a/c)*c,this.__minDecelerationScrollTop=Math.floor(l/d)*d,this.__maxDecelerationScrollLeft=Math.ceil(a/c)*c,this.__maxDecelerationScrollTop=Math.ceil(l/d)*d}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const n=function(a,l,c){this.__stepThroughDeceleration(c)}.bind(this),o=this.options.snapping?4:.1,r=function(){const a=Math.abs(this.__decelerationVelocityX)>=o||Math.abs(this.__decelerationVelocityY)>=o;return a||(this.__didDecelerationComplete=!0),a}.bind(this),i=function(a,l,c){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=T7(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,a=this.options.penetrationDeceleration,l=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*a:this.__decelerationVelocityX=r*l),i!==0&&(i*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=i*a:this.__decelerationVelocityY=i*l)}}}var ri=typeof window<"u"?window:{screen:{},navigator:{}},Us=(ri.matchMedia||function(){return{matches:!1}}).bind(ri),Zb=!1,qP={get passive(){return Zb=!0}},_7=function(){};ri.addEventListener&&ri.addEventListener("p",_7,qP),ri.removeEventListener&&ri.removeEventListener("p",_7,!1);var KP=Zb,GP="PointerEvent"in ri,H3="ontouchstart"in ri,Xb=H3||"TouchEvent"in ri&&Us("(any-pointer: coarse)").matches,j7=(ri.navigator.maxTouchPoints||0)>0||Xb,Yb=ri.navigator.userAgent||"",ZP=Us("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Yb)&&Math.min(ri.screen.width||0,ri.screen.height||0)>=768,Jb=(Us("(pointer: coarse)").matches||!Us("(pointer: fine)").matches&&H3)&&!/Windows.*Firefox/.test(Yb),XP=Us("(any-pointer: fine)").matches||Us("(any-hover: hover)").matches||ZP||!H3,ih=!j7||!XP&&Jb?j7?"touchOnly":"mouseOnly":"hybrid",YP=ih==="mouseOnly"?"mouse":ih==="touchOnly"||Jb?"touch":"mouse";const JP=Object.freeze(Object.defineProperty({__proto__:null,deviceType:ih,primaryInput:YP,supportsPassiveEvents:KP,supportsPointerEvents:GP,supportsTouchEvents:Xb},Symbol.toStringTag,{value:"Module"})),QP=new Set(["INPUT","TEXTAREA","SELECT"]),Qb={};function ah(){return JP}const eO=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Qb,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:ah,focusableNodeNames:QP,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":To.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),tO=[];function E2(e,t,n=tO){const o=u.useRef(null);return u.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 a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const R7=e=>s.jsx(V3,{...e}),nO=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),oO=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=nO,createHorizontalScrollbar:c=R7,createVerticalScrollbar:d=R7,style:p,touchElement:f,disableTouch:h,...g}=e,m=Cn(r,[r]),y=E2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft===o?.left||x.current.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),C=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=f??y.current;if(!h&&ah().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new UP(v,P)}ah().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),C({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[R,{width:_}]=Bl(),[L,{height:T}]=Bl(),j=u.useMemo(()=>{const k=d({orientation:Kr.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),S=u.useMemo(()=>{const k=c({orientation:Kr.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:L,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?S:s.jsx(s.Fragment,{})]})})}));oO.displayName="ScrollPane";const rO=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let id=0;function W3(){return u.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 id++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),id--,id<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),id=0)}},[]),{getPortalContainer:rO}}const iO=100,aO=100,lO=1e6,sO=100,cO=50,dO=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=iO,endScrollIncrement:l=aO,style:c=Qb,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=lO,scaleFactor:g=sO,precisionFactor:m=cO,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=Cn(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=h!==0&&b.totalSize>h?g:1,C=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),L=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,S]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=Cn((z,A,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<C&&(z=_),p?.(z*E,_,L))},[p,E,C,_,L]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),S(!1)},[]),I=u.useCallback(z=>{x?.(z),S(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(V3,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:L,onMouseDown:I,onScrollOffset:P})}));function _p(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}dO.displayName="VirtualScrollbar";var Eu=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=_p(o,t),i=typeof r=="function";n.push(i?r:()=>_p(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)_p(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:Eu([r,t]),onFocus:i,...o})})),u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:f}]=Bl(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=f-w+b;return function(C,R,_=!1){if(R===0)return C;function L(O,I,z){let A=I.x-O.x,D=I.y-O.y,F=Math.sqrt(A*A+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function S(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=C.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=S(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let A=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&A&&A.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=S(A),V=S(D),U=S(F);_?(B=T(V,A.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=L(V,N,R),M=L(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=S(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} 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} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:Eu([h,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const uO={},pO=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=uO,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:ms("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:a?void 0:t,...g})},l)},ad={},sl=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,ld=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,Da=(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)};u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=ad,paneProps:E=ad,paneBeforeProps:C=ad,paneAfterProps:R=ad,createResizer:_=pO}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:Da(c,De),maxBefore:Da(d,De),minAfter:Da(p,De),maxAfter:Da(f,De)}},[c,d,p,f]),j=Cn(l,[l]),[S,k]=u.useState(()=>Da(a,i===null));u.useEffect(()=>{k(Da(a,i===null))},[a,i]);const[P,{width:O,height:I}]=Bl(),[z,{width:A,height:D}]=Bl(),F=r==="row"?A:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Ae,W)=>{const Q=[null,null],K=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,K[1]=100):(Q[1]=ue?.pixels-Ae,K[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(K[0]=ue?.percent,K[1]=100-ue?.percent):(K[1]=ue?.percent,K[0]=100-ue?.percent)),{percents:K,pixels:Q,minBefore:ld(W.minBefore,!0),maxBefore:ld(W.maxBefore,!0),minAfter:ld(W.minAfter),maxAfter:ld(W.maxAfter)};let se=sl(ue,De,W.fixedPaneOffset!==1),te=De-Ae,ae=sl(W.minBefore,te,!0)??0,pe=sl(W.maxBefore,te,!0)??te,me=0,fe=0,je=0,Fe=te;me=(sl(W.maxAfter,De,!1)??Ae)-Ae,fe=sl(W.minAfter,De,!1)??De,je=Math.max(ae,me),Fe=Math.min(pe,fe),se=Math.max(je,Math.min(se,Fe)),fe=Math.min(te-se,sl(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,sl(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const Ge=Math.max(0,Math.min(100,se/te*100));return K[0]=Ge,K[1]=100-K[0],{percents:K,pixels:Q,minBefore:`${ae}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(S,B,F,T),[T,S,B,F,r]),[N,V]=u.useState(!1),U=Cn(x,[x]),J=Cn(v,[v]),X=Cn(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ye,className:de,...xe}=E,we={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ye},{className:ve,style:re,...ce}=C,{className:Se,style:ie,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Pe,onPointerDown:Te,...rt}=w,Ve=Cn(ue=>{const De=Da(ue,i===null);k(De)},[i]),Ee=Cn(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Ae=0;Ae=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Ae=Math.max(0,Math.min(B,Ae)),T.fixedPaneOffset===1&&(Ae=B-Ae),a&&S.pixels===Ae||k({pixels:Ae,percent:null}),J?.(Ae),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,S,B]),Re=Cn(ue=>{if(document.removeEventListener("pointermove",Ee),document.removeEventListener("touchmove",Ee),document.removeEventListener("pointerup",Re),N&&(V(!1),S)){if(X(S.pixels),!Da(a,i===null)||S.pixels!==a){const De={...S};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[S,N,a,i,B]),Xe=Cn(ue=>{Te?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ee,{passive:!1}),document.addEventListener("touchmove",Ee,{passive:!1}),document.addEventListener("pointerup",Re,{passive:!1}))},[Te]),Be=E2(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:Eu([z,ne]),className:ms("resizer",ee),onPointerDownCapture:Xe,style:{cursor:y?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,...Pe},splitDirection:r,disabled:y,...rt}):null,[L,ee,rt,r,Pe,y]),Qe=r==="row"?"Width":"Height",he={...we,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Qe}`]:M?.minBefore,[`max${Qe}`]:o?M?.maxBefore:"100%"},Ye={...we,...ie,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Qe}`]:M?.minAfter,[`max${Qe}`]:n?M?.maxAfter:"100%"},ke=u.useMemo(()=>n?s.jsx("div",{ref:H,className:ms("before",de,ve),style:he,...xe,...ce,children:n},"before"):null,[n,E,C,T,M]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:ms("after",de,Se),style:Ye,...xe,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:Eu([P,Be]),className:ms("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[ke,ct,Ie]})}));const hO=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},lh=e=>{console&&console.warn&&console.warn(e)},jp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let fO=1,sh=!1,ev=!1;const Ud=[],gs=[],Mu=()=>{gs.forEach(e=>e())},mO=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||sh!==!1||(ev=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return gs[0]!==i?(e||sh!==!0||lh("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Ud])}return gs.push(i),Mu(),()=>{r=!1,o.current?.length>0&&lh("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),gs.splice(gs.indexOf(i),1),Mu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(hO,{...r,key:i}))})},tv=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=fO++;return Ud.push({hook:g,key:m}),gs.length===0&&ev===!1&&(sh=!0,(y=>{if(jp.document&&jp.document.createElement){const x=jp.document.createElement("div");Qu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else lh("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(mO)),Mu(),()=>{Ud.splice(Ud.findIndex(y=>y.key===m),1),Mu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};function U3(e,t=null){const n=u.useRef(t);n.current=t;const[o,r]=u.useReducer(a=>a+1,0),i=u.useMemo(()=>Array.isArray(e)?e:[e],[e]);return u.useEffect(()=>{if(!i||i.length===0)return;const a=(d,p)=>{n.current?.onChange?.(p),r()};let l=null;t&&(l={onExecute(d,p){n.current?.onExecute?.(d,p)},onError(d,p,f){n.current?.onError?.(d,p,f)}});const c=new Set;for(let d=0;d<i.length;d++)c.add(i[d]?.addPropertyListener(To.debounce(a,0),!0)),t&&c.add(i[d]?.addExecuteListener(l));return()=>{c.forEach(d=>{d?.()})}},[e]),o}tv(null,()=>{const[e,t]=u.useState(null);return e}),To.getOS()===To.OSType.MacOS||(To.getOS(),To.OSType.IOS),To.getOS()===To.OSType.MacOS||(To.getOS(),To.OSType.IOS);const sd=(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 q3(e,t=null,n=null,o){const r=u.useRef(n);r.current=n,t&&!Array.isArray(t)&&(t=[t]);const[i,a]=u.useState(sd(e,t)),l=o?[...o,e]:[e];return u.useEffect(()=>{const c={onGroupChange:()=>{const h=sd(e,t);a(h),r.current?.onChange?.(this)}};let d;t&&t.length>0&&(d={keys:t},c.onCommandChange=(h,g)=>{r.current?.onChange?.(e),a(sd(e,t))});const p=e?.addListener(c,d),f=sd(e,t);return a(f),r.current?.onChange&&r.current?.onChange(e),()=>{p?.()}},l),i}const Si={Toolbar:"toolbar",Menuitem:"menuitem"};tv({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>vu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(vu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Rp=!1,gO=0;var yO=typeof document<"u"?u.useLayoutEffect:u.useEffect;const I7=()=>"sheetxl-ui-"+gO++,xO=u.useId??function(){const[e,t]=u.useState(()=>Rp?I7():void 0);return yO(()=>{e==null&&t(I7())},[]),u.useEffect(()=>{Rp||(Rp=!0)},[]),e},bO=e=>{const{isWalking:t=!1,themedType:n="info",...o}=e,r="copy-walking-offset-"+xO().replaceAll(":","");u.useEffect(()=>{if(!t)return;const a=`
137
- @keyframes ${r} {
138
- to {
139
- stroke-dashoffset: 0px;
140
- }
141
- }`,l=document.createElement("style");return l.appendChild(document.createTextNode(a)),document.head.appendChild(l),l.sheet.insertRule(a,0),()=>{document.head.removeChild(l)}},[t]);let i=u.useMemo(()=>{if(t)return{strokeDasharray:"5px 2px",strokeDashoffset:"7px",animation:`${r} 840ms linear infinite`,willChange:"stroke-dashoffset"}},[t]);return s.jsx(Je,{...o,children:s.jsxs("g",{children:[s.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"}),s.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}})]})})},P7=e=>s.jsx(Je,{...e,children:s.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"})}),vO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),wO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),SO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),CO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),kO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),EO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),MO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),TO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),_O=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),I0=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 16,11 H 13 V 1 H 11 V 11 H 8 l 4,4 z"})]}),O7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),D7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),jO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),ch=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),dh=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),cd=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),qc=e=>s.jsx(Je,{...e,children:s.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"})}),A7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),L7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),RO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),IO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 7,12 3,8 v 8 z"})]}),PO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"m 3,12 4,4 V 8 Z"})]}),OO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),nv=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{d:"m 10.722257,5.3791205 v 1.50391 h 11.536489 v -1.50391 z"}),s.jsx("path",{d:"m 10.722257,8.9600405 v 1.5039105 h 9.317921 V 8.9600405 Z"}),s.jsx("path",{d:"m 10.722257,12.540891 v 1.5039 h 7.099404 v -1.5039 z"}),s.jsx("path",{d:"m 10.722257,16.121811 v 1.50391 h 4.88082 v -1.50391 z"})]}),uh=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),DO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),AO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),LO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"m 23,11 v 2 h -8 v -2 z"})]}),z7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),zO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),FO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),Ip=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"m 5,19 v 2 h 14 v -2 z"})]}),F7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),B7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 5,22.631706 V 23.72633 H 19 V 22.631706 Z"})]}),N7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),BO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"m 20.5,18 -3,-3 v 2 H 5 v 2 h 12.5 v 2 z"})]}),$7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),V7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),H7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),dd=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),W7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),NO=e=>s.jsxs(Je,{...e,children:[s.jsx("path",{d:"M 4,3 V 5 H 20 V 3 Z"}),s.jsx("path",{className:"styled info",d:"m 8,11 h 3 v 10 h 2 V 11 h 3 L 12,7 Z"})]}),$O=e=>s.jsxs(Je,{...e,children:[s.jsx("path",{d:"m 4,11 v 2 h 16 v -2 z"}),s.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"})]}),U7=e=>s.jsxs(Je,{...e,children:[s.jsx("path",{d:"m 4,19 v 2 h 16 v -2 z"}),s.jsx("path",{className:"styled info",d:"M 16,13 H 13 V 3 H 11 V 13 H 8 l 4,4 z"})]}),Kc=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),VO=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"})]}),HO=e=>s.jsx(Je,{...e,children:s.jsx("path",{d:"M5 5h5v2h-3v3h-2v-5zM14 5h5v5h-2v-3h-3v-2zM17 14h2v5h-5v-2h3v-3zM10 17v2h-5v-5h2v3h3z"})}),WO=e=>s.jsx(Je,{...e,children:s.jsx("path",{d:"M14 14h5v2h-3v3h-2v-5zM5 14h5v5h-2v-3h-3v-2zM8 5h2v5h-5v-2h3v-3zM19 8v2h-5v-5h2v3h3z"})}),ov=e=>s.jsx(Je,{...e,children:s.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"})}),UO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),qO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),rv=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 3.4023412,2.6855886 21.174662,20.415272 19.390017,22.196947 1.617783,4.4661766 Z"})]}),KO=e=>s.jsx(Je,{...e,children:s.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"})}),GO=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),iv=e=>s.jsx(Je,{...e,children:s.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"})}),ZO=e=>s.jsx(Je,{...e,children:s.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"})}),XO=e=>s.jsx(Je,{...e,children:s.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"})}),q7=e=>s.jsx(Je,{...e,children:s.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"})}),av=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),YO=e=>s.jsx(Je,{...e,children:s.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"})}),JO=e=>s.jsx(Je,{...e,children:s.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"})}),QO=e=>s.jsx(Je,{...e,children:s.jsx("path",{className:"styled success_light",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}),eD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"})]}),tD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.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"}),s.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"})]}),nD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.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"}),s.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"})]}),oD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{className:"styled info",d:"M 22.132849,17.187826 H 17.41854 v 4.714309 h 4.714309 z"}),s.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"}),s.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"})]}),rD=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"}),s.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"})]}),iD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),aD=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"}),s.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"})]}),lD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),sD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),cD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),K7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),G7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"}),s.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"})]}),Z7=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),dD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),uD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),pD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),hD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),fD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),mD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),gD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),yD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),xD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),bD=e=>s.jsx(Je,{...e,children:s.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"})}),vD=e=>s.jsx(Je,{...e,children:s.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"})}),wD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),SD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),CD=e=>s.jsx(Je,{...e,children:s.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"})}),kD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),ED=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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"})]}),MD=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),K3=e=>s.jsx(Je,{...e,children:s.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"})}),lv=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"})]}),TD=e=>(t=>{const{style:n,orientation:o=Kr.Vertical,...r}=t,i=o===Kr.Vertical;return s.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:s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",transform:i?"rotate(90) ":"",children:s.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}),sv=(e,t,n,o)=>{const{style:r,...i}=e,a=s.jsx(Tr,{component:"div",...i,style:{...r,padding:"0px"},sx:{padding:"0"},color:e.disabled?void 0:"primary","aria-label":n,size:"small",children:t});return s.jsx(di,{title:e.disabled?n:o,enterDelay:800,enterNextDelay:1600,children:e.disabled?s.jsx("div",{style:{display:"flex"},children:a}):a})},_D=e=>sv(e,s.jsx(nR,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Left":"Up"),`Scroll ${e.orientation===Kr.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),jD=e=>sv(e,s.jsx(Ax,{fontSize:"small"}),"Scroll "+(e.orientation===Kr.Horizontal?"Right":"Down"),`Scroll ${e.orientation===Kr.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),Ft=u.memo(u.forwardRef((e,t)=>{const{orientation:n="vertical",sx:o,...r}=e,i=n==="vertical";return s.jsx(va,{ref:t,sx:{marginLeft:i?"1px":void 0,marginRight:i?"1px":void 0,backgroundColor:"transparent !important",borderColor:a=>a.palette.divider,...o},orientation:n,variant:"middle",flexItem:!0,...r})}));function Pp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var G3=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Pp(o,t),i=typeof r=="function";n.push(i?r:()=>Pp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Pp(n,t)}},RD=function(){},cv=typeof window<"u",dv=cv?u.useLayoutEffect:u.useEffect,X7={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Y7=cv&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(X7),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return dv(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[RD,X7]};u.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return s.jsx(Le,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{stroke:i=>i.palette.grey[600],fill:"none"},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"48"}),s.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"85",y2:"50.5",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),s.jsx("line",{className:"primary",strokeLinecap:"round",strokeWidth:"4",x1:"50",y1:"50",x2:"49.5",y2:"74",children:s.jsx("animateTransform",{attributeName:"transform",dur:7.5*n+"s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});const ID=u.memo(e=>{const{sx:t,speed:n=1.5,size:o=70,...r}=e;return s.jsx(Le,{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:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"secondary",strokeWidth:"4",cx:"50",cy:"50",r:"21"}),s.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:s.jsx("animateTransform",{attributeName:"transform",type:"rotate",dur:1*n+"s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})});u.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return s.jsx(Le,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.1"})}),s.jsx("circle",{className:"primary",cx:"26",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.2"})}),s.jsx("circle",{className:"primary",cx:"46",cy:"50",r:"6",children:s.jsx("animate",{attributeName:"opacity",dur:`${n}s`,values:"0;1;0",repeatCount:"indefinite",begin:"0.3"})})]})})}),u.memo(e=>{const{sx:t,speed:n=1,size:o=70,...r}=e;return s.jsx(Le,{sx:{width:`${o}px`,height:`${o}px`,zIndex:1,"& .primary":{fill:i=>i.palette.grey[600],stroke:"none"},...t},...r,children:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",cx:"6",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 15 ; 0 -15; 0 15",repeatCount:"indefinite",begin:"0.1"})}),s.jsx("circle",{className:"primary",cx:"30",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 10 ; 0 -10; 0 10",repeatCount:"indefinite",begin:"0.2"})}),s.jsx("circle",{className:"primary",cx:"54",cy:"50",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"translate",values:"0 5 ; 0 -5; 0 5",repeatCount:"indefinite",begin:"0.3"})})]})})}),u.memo(e=>{const{sx:t,speed:n=2,size:o=70,...r}=e;return s.jsx(Le,{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:s.jsxs("svg",{x:"0px",y:"0px",viewBox:"0 0 100 100",children:[s.jsx("circle",{className:"primary",strokeWidth:"4",cx:"50",cy:"50",r:"44"}),s.jsx("circle",{className:"secondary",strokeWidth:"3",cx:"8",cy:"54",r:"6",children:s.jsx("animateTransform",{attributeName:"transform",dur:`${n}s`,type:"rotate",from:"0 50 48",to:"360 50 52",repeatCount:"indefinite"})})]})})});const PD=u.memo(e=>{const{sx:t,speed:n=1,size:o=13,width:r=64,height:i=17,...a}=e;return s.jsxs(Le,{sx:{width:`${r}px`,height:`${i}px`,"& .primary":{backgroundColor:l=>l.palette.grey[600],top:(i-o)/2+"px",width:()=>`${o}px`,height:()=>`${o}px`},...t},className:rr("_traverse-ellipsis_14l1h_1","animated-icon"),...a,children:[s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"}),s.jsx("div",{className:"primary"})]})}),OD=s.jsx(ID,{}),i0=u.memo(u.forwardRef((e,t)=>{const{sx:n,style:o,onMount:r,onUnmount:i,transitionDelay:a="1200ms",panel:l=!1,transparentBackground:c=!0,icon:d=OD,label:p,...f}=e,h=u.useMemo(()=>typeof p=="string"?s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:p}):p,[p]),g=u.useRef(null),m=u.useMemo(()=>{let v=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"8px"},children:[h,d]});return l===!0&&(v=s.jsx(Mi,{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=>`${pt(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:v})),s.jsx(Le,{ref:G3([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:a,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:s.jsxs(Le,{className:"center",sx:{display:"flex",flex:"1 1 100%",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[s.jsx(Le,{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"}}),v]})})},[n,l]),y=u.useRef(!1),x=u.useRef(!1);return dv(()=>{if(g.current&&!y.current&&!x.current){if(x.current=!0,g.current.classList.contains("animatable")&&!g.current.classList.contains("animating")){let v=!1;const b=()=>{x.current&&(y.current=!0,x.current=!1,v=!0,r?.())};g.current&&g.current.addEventListener("transitionrun",b,{once:!0,capture:!0,passive:!0}),x.current&&g.current&&(window.getComputedStyle(g.current,null).opacity,g.current.classList.add("animating")),setTimeout(()=>{!v&&x.current&&g.current&&(g.current?.removeEventListener("transitionrun",b),b())},100)}else y.current=!0,x.current=!1,r?.();return()=>{}}},[g.current]),u.useEffect(()=>()=>{y.current&&(g.current?.classList.remove("animating"),y.current=!1,x.current=!1,i?.())},[]),m}));i0.displayName="LoadingPanel";const DD=/^\s*at\s+(?:(async|new|await)\s+)?(.+?)\s+\((.+?):(\d+):(\d+)\)$/,AD=/^\s*at\s+(?:(async|new|await)\s+)?(.+?):(\d+):(\d+)\s*$/,J7=e=>{if(!e)return"";try{e=new URL(e).pathname}catch{}return(e=e.replace(/^\/+/,"")).replace(/^@?fs[\\/]/,"")},Z3=u.memo(({error:e,maxLines:t=Number.MAX_SAFE_INTEGER,hideLineNumbers:n=!1})=>{const[o,r]=u.useState(null);if(!e?.stack)return null;const i=(d=>{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(d),p.reverse()})(e).reverse(),a=[];i.forEach(({error:d},p)=>{const f=(d.stack||"").split(`
142
- `).filter(Boolean).map(h=>{let g=h.match(DD);if(g){const[,m="",y,x,v,b]=g;return{line:`at ${m?m+" ":""}${y}`,location:`${J7(x).split(/[\\/]/).pop()}:${v}:${b}`}}if(g=h.match(AD),g){const[,m="",y,x,v]=g,b=J7(y),w=`${b.split(/[\\/]/).pop()}:${x}:${v}`;return{line:`at ${m?m+" ":""}${w}`,location:b!==w?`${b}:${x}:${v}`:void 0}}return{line:h.trim()}});f.length&&(a.push({line:p?`Caused by: ${f[0].line}`:f[0].line,isBoundary:!0}),a.push(...f.slice(1)))});const l=t?a.slice(0,t):a,c=t&&a.length>t;return s.jsxs(Le,{sx:{width:"100%",mt:1},children:[s.jsxs(Le,{sx:{display:"flex",alignItems:"center",gap:1,borderRadius:1,px:1,py:.5},children:[s.jsxs(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",opacity:.8},children:["Stack Trace(",i.length>1?` (${i.length} frames)`:"",")"]}),s.jsx(Le,{sx:{flex:1}}),o&&s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.8},children:o}),s.jsx(Tr,{size:"small",onClick:async()=>{try{let d=0;const p=a.map(f=>{if(f.isBoundary)return d=0,f.line;d++;let h=f.location&&f.line!==f.location?`${f.line} (${f.location})`:f.line;return d>=1&&(h=` ${h}`),h}).join(`
143
- `);await navigator.clipboard.writeText(p),r("Copied!"),setTimeout(()=>r(null),2e3)}catch(d){r("Can't copy!"),console.warn("Failed to copy stack trace:",d)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:s.jsx(iR,{sx:{fontSize:"0.875rem"}})}),s.jsx(Tr,{size:"small",onClick:()=>{console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:s.jsx(oR,{sx:{fontSize:"0.875rem"}})})]}),s.jsxs(Le,{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:[l.map((d,p)=>d.isBoundary?s.jsx(Le,{sx:{py:1,mt:p>0?1:0,mb:.5,borderTop:p>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:f=>d.isBoundary?f.palette.text.primary:f.palette.text.secondary,display:"block"},children:d.line})},`error-${p}`):s.jsxs(Le,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:p+1}),s.jsxs(Le,{sx:{flex:1,overflow:"hidden"},children:[s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:d.line}),d.location&&d.line!==d.location&&s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:d.location})]})]},`stack-${p}`)),c&&s.jsxs(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",a.length-t," more frames"]})]})]})});Z3.displayName="StackTrace";const uv=u.memo(u.forwardRef((e,t)=>{const{sx:n,icon:o=s.jsx(aR,{style:{fontSize:48}}),error:r,hideStackTrace:i=!1,stackTraceExpanded:a=!1,...l}=e,c=u.useMemo(()=>((d,p=!1)=>{if(u.isValidElement(d))return d;if(d instanceof Error)return s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",maxWidth:"500px",width:"100%"},children:[s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:d.message}),d.cause?s.jsxs(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",d.cause instanceof Error?d.cause.message:String(d.cause)]}):null,!p&&s.jsx(Z3,{error:d,hideLineNumbers:!0})]});const f=d==="string"?d:`Unknown Error: ${String(d)}`;return s.jsx(Mn,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:f})})(r,i),[r,i,a]);return u.useMemo(()=>s.jsx(Le,{ref:t,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...l,children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[s.jsx(Le,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:d=>`${d.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),s.jsx(Mi,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:d=>d.palette.error.light,color:d=>d.palette.error.contrastText,paddingLeft:d=>d.spacing(2),paddingRight:d=>d.spacing(2),paddingTop:d=>d.spacing(2),paddingBottom:d=>d.spacing(2),borderRadius:d=>`${d.shape.borderRadius}px`,boxShadow:d=>d.shadows[2],"& .primary":{background:d=>`${d.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:s.jsx(Le,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:d=>d.spacing(2),width:"100%",maxWidth:"600px"},children:s.jsxs(Le,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:d=>d.spacing(2)},children:[o,c]})})})]})}),[n])}));uv.displayName="ErrorPanel";const pv=u.memo(u.forwardRef((e,t)=>{const{chips:n,sx:o,...r}=e,i=u.useMemo(()=>{if(!n)return null;let a=null;a=Array.isArray(n)?n:[n];const l=[];for(let c=0;c<a.length;c++){const d=a[c];let p=null;typeof d=="string"?p=s.jsx(aT,{label:d,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+c):u.cloneElement(d,{key:"chip-"+c}),l.push(p)}return l},[n]);return s.jsx(Le,{ref:t,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...o},...r,children:i})}));var ph="top",qd="bottom",hh="right",hv="left",LD=[ph,qd,hh,hv],fv="viewport",P0="popper";function Cl(e){return e?(e.nodeName||"").toLowerCase():null}function Ia(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ms(e){return e instanceof Ia(e).Element||e instanceof Element}function Ts(e){return e instanceof Ia(e).HTMLElement||e instanceof HTMLElement}function fh(e){return typeof ShadowRoot<"u"&&(e instanceof Ia(e).ShadowRoot||e instanceof ShadowRoot)}var bc=Math.max,Q7=Math.min,e8=Math.round;function mh(){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 mv(){return!/^((?!chrome|android).)*safari/i.test(mh())}function X3(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Ts(e)&&(r=e.offsetWidth>0&&e8(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&e8(o.height)/e.offsetHeight||1);var a=(Ms(e)?Ia(e):window).visualViewport,l=!mv()&&n,c=(o.left+(l&&a?a.offsetLeft:0))/r,d=(o.top+(l&&a?a.offsetTop:0))/i,p=o.width/r,f=o.height/i;return{width:p,height:f,top:d,right:c+p,bottom:d+f,left:c,x:c,y:d}}function Ga(e){return Ia(e).getComputedStyle(e)}function zD(e){return["table","td","th"].indexOf(Cl(e))>=0}function _s(e){return((Ms(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tu(e){return Cl(e)==="html"?e:e.assignedSlot||e.parentNode||(fh(e)?e.host:null)||_s(e)}function t8(e){return Ts(e)&&Ga(e).position!=="fixed"?e.offsetParent:null}function gv(e){var t=Ia(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function n8(e){return X3(_s(e)).left+gv(e).scrollLeft}function yv(e){var t=Ga(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function xv(e){return["html","body","#document"].indexOf(Cl(e))>=0?e.ownerDocument.body:Ts(e)&&yv(e)?e:xv(Tu(e))}function bv(e,t){var n;t===void 0&&(t=[]);var o=xv(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Ia(o),a=r?[i].concat(i.visualViewport||[],yv(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(bv(Tu(a)))}function gh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o8(e,t,n){return t===fv?gh(function(o,r){var i=Ia(o),a=_s(o),l=i.visualViewport,c=a.clientWidth,d=a.clientHeight,p=0,f=0;if(l){c=l.width,d=l.height;var h=mv();(h||!h&&r==="fixed")&&(p=l.offsetLeft,f=l.offsetTop)}return{width:c,height:d,x:p+n8(o),y:f}}(e,n)):Ms(t)?function(o,r){var i=X3(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):gh(function(o){var r,i=_s(o),a=gv(o),l=(r=o.ownerDocument)==null?void 0:r.body,c=bc(i.scrollWidth,i.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),d=bc(i.scrollHeight,i.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),p=-a.scrollLeft+n8(o),f=-a.scrollTop;return Ga(l||i).direction==="rtl"&&(p+=bc(i.clientWidth,l?l.clientWidth:0)-c),{width:c,height:d,x:p,y:f}}(_s(e)))}const FD={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 y,x,v=m,b=v.placement,w=b===void 0?g.placement:b,E=v.strategy,C=E===void 0?g.strategy:E,R=v.boundary,_=R===void 0?"clippingParents":R,L=v.rootBoundary,T=L===void 0?fv:L,j=v.elementContext,S=j===void 0?P0:j,k=v.altBoundary,P=k!==void 0&&k,O=v.padding,I=O===void 0?0:O,z=(x=typeof I!="number"?I:(y=I,LD.reduce(function(ne,oe){return ne[oe]=y,ne},{})),Object.assign({},{top:0,right:0,bottom:0,left:0},x)),A=S===P0?"reference":P0,D=g.rects.popper,F=g.elements[P?A:S],B=function(ne,oe,ye,de){var xe=oe==="clippingParents"?function(ce){var Se=bv(Tu(ce)),ie=["absolute","fixed"].indexOf(Ga(ce).position)>=0&&Ts(ce)?function(Y){for(var le=Ia(Y),ee=t8(Y);ee&&zD(ee)&&Ga(ee).position==="static";)ee=t8(ee);return ee&&(Cl(ee)==="html"||Cl(ee)==="body"&&Ga(ee).position==="static")?le:ee||function(Pe){var Te=/firefox/i.test(mh());if(/Trident/i.test(mh())&&Ts(Pe)&&Ga(Pe).position==="fixed")return null;var rt=Tu(Pe);for(fh(rt)&&(rt=rt.host);Ts(rt)&&["html","body"].indexOf(Cl(rt))<0;){var Ve=Ga(rt);if(Ve.transform!=="none"||Ve.perspective!=="none"||Ve.contain==="paint"||["transform","perspective"].indexOf(Ve.willChange)!==-1||Te&&Ve.willChange==="filter"||Te&&Ve.filter&&Ve.filter!=="none")return rt;rt=rt.parentNode}return null}(Y)||le}(ce):ce;return Ms(ie)?Se.filter(function(Y){return Ms(Y)&&function(le,ee){var Pe=ee.getRootNode&&ee.getRootNode();if(le.contains(ee))return!0;if(Pe&&fh(Pe)){var Te=ee;do{if(Te&&le.isSameNode(Te))return!0;Te=Te.parentNode||Te.host}while(Te)}return!1}(Y,ie)&&Cl(Y)!=="body"}):[]}(ne):[].concat(oe),we=[].concat(xe,[ye]),ve=we[0],re=we.reduce(function(ce,Se){var ie=o8(ne,Se,de);return ce.top=bc(ie.top,ce.top),ce.right=Q7(ie.right,ce.right),ce.bottom=Q7(ie.bottom,ce.bottom),ce.left=bc(ie.left,ce.left),ce},o8(ne,ve,de));return re.width=re.right-re.left,re.height=re.bottom-re.top,re.x=re.left,re.y=re.top,re}(Ms(F)?F:F.contextElement||_s(g.elements.popper),_,T,C),M=X3(g.elements.reference),N=function(ne){var oe,ye=ne.reference,de=ne.element,xe=ne.placement,we=xe?xe.split("-")[0]:null,ve=xe?xe.split("-")[1]:null,re=ye.x+ye.width/2-de.width/2,ce=ye.y+ye.height/2-de.height/2;switch(we){case ph:oe={x:re,y:ye.y-de.height};break;case qd:oe={x:re,y:ye.y+ye.height};break;case hh:oe={x:ye.x+ye.width,y:ce};break;case hv:oe={x:ye.x-de.width,y:ce};break;default:oe={x:ye.x,y:ye.y}}var Se=we?["top","bottom"].indexOf(we)>=0?"x":"y":null;if(Se!=null){var ie=Se==="y"?"height":"width";switch(ve){case"start":oe[Se]=oe[Se]-(ye[ie]/2-de[ie]/2);break;case"end":oe[Se]=oe[Se]+(ye[ie]/2-de[ie]/2)}}return oe}({reference:M,element:D,placement:w}),V=gh(Object.assign({},D,N)),U=S===P0?V:M,J={top:B.top-U.top+z.top,bottom:U.bottom-B.bottom+z.bottom,left:B.left-U.left+z.left,right:U.right-B.right+z.right},X=g.modifiersData.offset;if(S===P0&&X){var H=X[w];Object.keys(J).forEach(function(ne){var oe=[hh,qd].indexOf(ne)>=0?1:-1,ye=[ph,qd].indexOf(ne)>=0?"y":"x";J[ne]+=H[ye]*oe})}return J}(t,e.options),r=t.modifiersData.preventOverflow||{x:0,y:0},i=r.x,a=r.y;let l=t.rects.popper,c=l.width,d=l.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:d-o[h]-a}}},BD=[0,2],vv=u.memo(u.forwardRef((e,t)=>{const{sx:n,open:o,children:r,label:i,offsets:a=BD,anchorEl:l,anchorPosition:c,onMount:d,onOpening:p,onOpen:f,onClosing:h,onClose:g,resizeOnOverflow:m=!0,...y}=e;if(Array.isArray(r))throw new Error("children can not be an array");const x=B3(),v={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:F}){const{height:B}=F.modifiersData.maxSize;F.styles.popper.maxHeight=B-10+"px"}},b=u.useMemo(()=>{const F=[{name:"offset",options:{offset:a}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return m&&F.unshift(FD,v),F},[m,a]),[w,E]=u.useState(!1),C=u.useRef(null),R=Cn(()=>{d?.(P.current,C.current)},[p]),_=Cn(p,[p]),L=Cn(f,[f]),T=Cn(h,[h]),j=Cn(()=>{E(!1),g?.()},[g]),[S,k]=u.useState(!1),P=u.useRef(null),O=u.useRef(!0),I=u.useMemo(()=>({onFirstUpdate:()=>{O.current&&(k(!0),R?.(),O.current=!1)}}),[o,w]);u.useEffect(()=>{o&&S?_?.():!o&&w&&T?.(),o&&E(o)},[o,S]);const z=u.useMemo(()=>({getBoundingClientRect:()=>c?new DOMRect(c?.left||0,c?.top||0,0,0):l.getBoundingClientRect()}),[c,l]);u.useImperativeHandle(t,()=>({instance:()=>C.current,element:()=>P.current}),[]);const{getPortalContainer:A}=W3(),D=u.useMemo(()=>({zIndex:o?"1300":"1299",display:"flex",pointerEvents:w&&o?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,o,w]);return s.jsx(x3,{ref:P,popperRef:C,container:A,anchorEl:z,open:w,role:void 0,popperOptions:I,transition:!0,sx:D,placement:"bottom-start",modifiers:b,...y,children:({TransitionProps:F,placement:B,...M})=>{const{in:N,onEnter:V,onExited:U,...J}=F??{};return s.jsx(zc,{...J,in:o,onEnter:()=>{V?.(),L()},onExited:()=>{U?.(),j()},timeout:{enter:x.transitions.duration.shorter,exit:0},style:{transformOrigin:B==="bottom-start"?"left top":"center bottom"},children:typeof r=="function"?r({TransitionProps:F,placement:B,...M}):r||{}})}})}));vv.displayName="ExhibitPopper";const ji={Toolbar:"toolbar",Menuitem:"menuitem"},Bn=e=>{const{closeFloat:t,closeFloatAll:n,floatReference:o,popupContainer:r,children:i,className:a,sx:l,...c}=e;return s.jsx(Le,{className:rr("menu",a),sx:{display:"flex",flexDirection:"column",...l},...c,children:i})},r8=(e,t,n)=>s.jsx(tR,{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"}),ND=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,$D=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,yh=function(e,t=null){if(!e)return e;e=e.replace(ND,function(o,r,i,a){return r+r+i+i+a+a});let n=$D.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},fi=function(e,t=.2,n="light"){if(!e)return e;let o=n!=="dark";return t<0&&(o=!o,t*=-1),e=yh(e),o?Pl(e,Math.max(0,Math.min(1,1*t))):Ol(e,Math.max(0,Math.min(1,1.5*t)))};function Y3(e,t){const n={"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:pt((t=cr({track:fi(e.palette.background.paper,.05,e?.palette.mode),thumb:fi(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},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 To.getOS()===To.OSType.Firefox&&(n["* .pseudo-scrollbar"]={scrollbarColor:`${t.thumb} transparent`},n["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:`${t.active} transparent`}),n}const wv=u.memo(u.forwardRef((e,t)=>{const{open:n,anchorEl:o,anchorPosition:r,label:i,floatReference:a,createPopupPanel:l=Bn,popperProps:c,onMount:d,onClosing:p,onClose:f,onOpening:h,onOpen:g,children:m,sx:y,...x}=e,v=Cn(p,[p]),b=Cn(f,[f]),w=Cn(h,[h]),E=Cn(g,[g]),[C,R]=u.useState(),_=u.useRef(null),L=Cn((j,S)=>{R(j),d?.(_.current,S)},[d]),T=u.useMemo(()=>{const j={popupContainer:C,floatReference:a,children:m,...x},S=l(j);return s.jsx(Mi,{elevation:8,ref:_,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":k=>Y3(k)},tabIndex:0,children:S})},[l,m,C,a]);return s.jsx(vv,{ref:t,anchorEl:o,anchorPosition:r,label:i,open:n,onMount:L,onOpening:w,onOpen:E,onClosing:v,onClose:b,...c,children:T})}));wv.displayName="ExhibitFloatPanel";const $a=new Map;let Op=null;const Va=new Map;let Sa=null;const Dp=(e=null,t,n,o)=>(Sa&&(Sa.fn.clear(),Sa=null),e===0?t:(e===null&&(e=120),Sa={fn:To.debounce(()=>t(),e),setReferences:n,isClose:o},Sa.fn)),Sv=(e,t)=>{if(t===null)return;e.add(t);const n=$a.get(t.key);if(!n)return;const o=Va.get(n);o&&Sv(e,o)},i8=e=>{const t=new Set;return Sv(t,e),t},pa=e=>{const{anchor:t,label:n=null,parentFloat:o=null,onOpen:r,onClose:i,popperProps:a,createPopupPanel:l=Bn}=e??{},c=Cn(r,[r]),d=Cn(i,[i]),[p,f]=u.useState(null),[h,g]=u.useState(!1),[m,y]=u.useState(!1),x=u.useMemo(()=>o===null?(Op===null&&(Op={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:H=>null,closeChild:H=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>z(0),floatElement:()=>null,anchorElement:()=>null}),Op):o,[]),v=u.useMemo(()=>({label:n}),[]),b=u.useRef(null),w=u.useRef(t);u.useEffect(()=>{w.current=t},[t]);const E=H=>{const ne=$a.get(H);let oe=null;return ne&&(oe=Va.get(ne)?.close(0)),oe},C=()=>E(F.key),[R,_]=u.useState(),L=()=>{if(!p)return void k();const H=new Promise((ne,oe)=>{_(ye=>({resolve:ne,reject:oe}))});return C(),$a.delete(x.key),f(!1),H};u.useEffect(()=>{R&&(R.resolve(),_(null))},[h,m,R]);const T=u.useCallback(()=>{let H=x;for(;H.parent;)H=H.parent;return E(H.key)},[]),j=()=>{if(p)return void k();x&&Va.get(x.key)?.open(0);const H=$a.get(x.key);H&&H!==v&&Va.get(H)?.close(0),requestAnimationFrame(()=>{$a.set(x.key,F.key),f(!0)})},[S,k]=u.useReducer(H=>H+1,0),P=u.useCallback(H=>l===null?null:l({closeFloat:z,closeFloatAll:D,...H}),[l]),O=l===null,I=Cn((H=120)=>Dp(H,j,new Set([F]),!1)(),[j]),z=Cn((H=60)=>Dp(H,L,i8(F),!0)(),[L]),A=Cn((H=360)=>Dp(H,C,i8((ne=>{const oe=$a.get(ne.key);return oe&&Va.get(oe)||null})(F)),!0)(),[C]),D=Cn(T,[T]),F=u.useMemo(()=>({key:v,isRoot:!1,label:n,parent:x,onChildVisible:()=>{y(!0)},onChildHidden:()=>{y(!1)},open:I,close:z,closeChild:A,closeAll:D,floatElement:()=>b.current,anchorElement:()=>w.current}),[]);u.useEffect(()=>{Va.set(v,F)},[F]),u.useEffect(()=>()=>{Va.delete(v),z(0)},[]),u.useEffect(()=>{p&&!O&&(g(!0),x.onChildVisible())},[p,O]);const B=u.useCallback(H=>{H.which===xr.Escape&&(H.preventDefault(),H.stopPropagation(),z(0))},[]),M=u.useRef(null),N=u.useCallback(()=>{const H=M.current,ne=b.current;H&&ne&&(requestAnimationFrame(()=>{(ne.contains(document.activeElement)||document.activeElement===document.body)&&H.focus()}),M.current=null),d?.()},[]),V=u.useCallback(H=>{b.current=H,H.addEventListener("focus",oe=>{M.current=oe.relatedTarget},{once:!0,passive:!0});const ne=document.activeElement;requestAnimationFrame(()=>{ne===document.activeElement&&H.focus()})},[]),[U,J]=u.useState();u.useEffect(()=>{O&&(p?c?.():p===!1&&d?.()),J(h?s.jsx(wv,{floatReference:F,open:p,label:n,anchorEl:t,onOpening:()=>{c?.(),x.onChildVisible()},onClosing:N,onClose:()=>{g(!1),x.onChildHidden()},onMount:V,popperProps:{onKeyDown:B,onMouseEnter:H=>{p&&Sa?.isClose&&Sa.setReferences.has(F)&&(Sa.fn.clear(),Sa=null,F.closeChild())},...a},createPopupPanel:P}):null)},[h,p,n,O,a,P,S]);const X=Cn(H=>{if($a.size===0)return;let ne=!1;$a.forEach(oe=>{const ye=Va.get(oe);!ne&&ye&&(ye.floatElement()?.contains?.(H.target)&&(ne=!0),ye.anchorElement()?.contains?.(H.target)&&(ne=!0))}),ne||T()},[T]);return u.useEffect(()=>{if(!p||!x.isRoot)return;const H=ne=>{X(ne)};return document.addEventListener("mousedown",H),document.addEventListener("touchstart",H),document.addEventListener("focus",H),()=>{document.removeEventListener("mousedown",H),document.removeEventListener("touchstart",H),document.removeEventListener("focus",H)}},[p,x]),{component:U,reference:F}},VD=u.memo(u.forwardRef((e,t)=>{const{nestedChildren:n,variant:o,disabled:r=!1,createPopupPanel:i,...a}=e,l={disabled:r,createPopupPanel:Cn(c=>{if(!n||n.length===0)return null;const{popupContainer:d,floatReference:p,...f}=c,h=[];for(let g=0;g<n.length;g++){const m=n[g];m&&h.push(s.jsx(VD,{parentFloat:p,...f,...m},g))}return s.jsxs(Le,{ref:t,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",h,s.jsx(Gr,{parentFloat:p,children:"Close other children"})]})},[n]),...a};return s.jsx(o===ji.Toolbar?Ui:C1,{...l})})),HD={placement:"right-start"},Cv=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,createPopupPanel:i,popperProps:a=HD,label:l,...c}=e;(function(x){if(!x)throw new Error("Invariant failed")})(u.isValidElement(n));const d=n,p=u.useMemo(()=>({...d?.props,...c,onContextMenu:x=>{d?.props?.onContextMenu?.(x),x.isDefaultPrevented()||(c?.onContextMenu?.(x),x.isDefaultPrevented()||(g(x),x.preventDefault()))}}),[c,d?.props]),f=Cn(i,[i]),[h,g]=u.useState(null),{reference:m,component:y}=pa({label:l??"contextMenu",popperProps:a,parentFloat:r,anchor:{getBoundingClientRect:()=>new DOMRect(h?.clientX||0,h?.clientY||0)},onClose:()=>g(null),createPopupPanel:f});return u.useEffect(()=>{h?m.open(0):m.close(0)},[h]),s.jsxs(s.Fragment,{children:[u.cloneElement(n,p),y]})})),di=u.forwardRef((e,t)=>{const{slotProps:n,...o}=e,{getPortalContainer:r}=W3();return s.jsx(_j,{ref:t,slotProps:{...n,popper:{container:r,...n?.popper||{}}},...o})});di.displayName="SimpleTooltip";const O0=u.memo(e=>{const{modifier:t,sx:n,...o}=e;return s.jsx(Le,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:r=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderLeftColor:r=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderRightColor:r=>pt(r.palette.background.paper,r.palette.action.disabledOpacity),borderBottomColor:r=>pt(r.palette.background.paper,1-r.palette.action.disabledOpacity),backgroundColor:r=>pt(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:s.jsx(Le,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:t})})}),WD=To.getOS()===To.OSType.MacOS||To.getOS()===To.OSType.IOS?"Cmd":"Ctrl",J3=(e,t=!1,n=null)=>{if(Array.isArray(e)){let i=[],a=e;for(let l=0;l<a.length;l++)i.push(J3(a[l],t,n??""+l));return s.jsx(Le,{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(s.jsx(O0,{modifier:t?"^":s.jsx("div",{style:{paddingRight:"1px"},children:WD})},"ctrl")),r.push("+")),o?.alt&&(r.push(s.jsx(O0,{modifier:t?"⌥":"Alt"},"alt")),r.push("+")),o?.shift&&(r.push(s.jsx(O0,{modifier:t?"⇧":s.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),r.push("+")),o?.meta&&(r.push(s.jsx(O0,{modifier:t?s.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),r.push("+")),r.push(s.jsx(O0,{modifier:eO.toPrettyKeyCode(e.key)},"character")),s.jsx(Le,{sx:{display:"flex",alignItems:"center"},children:r},n)},br=u.memo(u.forwardRef((e,t)=>{const{disabled:n=!1,label:o,shortcut:r,chips:i,description:a,maxWidth:l=280,useModifierSymbols:c=!1,children:d,simple:p,componentDisabled:f=!1,sx:h,...g}=e;let m=null;return r&&(m=J3(r,c)),s.jsx(di,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...h},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&o?s.jsxs(Le,{sx:{maxWidth:`${l}px`},ref:t,children:[s.jsxs(Le,{sx:{display:"flex",flexDirection:"row",marginBottom:a?"4px":"0px"},children:[s.jsx(Mn,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:o}),i?s.jsx(pv,{chips:i}):null,m?s.jsx(Le,{sx:{marginLeft:"8px"}},"leadingSpace"):s.jsx(s.Fragment,{}),m]}),a?s.jsx(Mn,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:a}):s.jsx(s.Fragment,{})]}):"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...g,children:s.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:d})})})),M2=s.jsx(Hs,{}),UD=ze(s.jsx(j3,{})),ii=u.memo(u.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,disableHover:r=!1,parentFloat:i,selected:a,icon:l,tooltipProps:c,children:d,primary:p,sx:f,className:h,onFocus:g,onBlur:m,...y}=e,[x,v]=u.useState(!1),b={marginRight:"0px",padding:n?"2px":"7px",borderRadius:_=>`${_.shape.borderRadius}px`,color:_=>p?void 0:_.palette.text.icon??_.palette.action.active,border:_=>`solid ${o?_.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:_=>`${_.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:_=>pt(_.palette.text.primary,_.palette.action.selectedOpacity),border:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`},"&.Mui-disabled":{border:_=>`solid ${o?_.palette.divider:"transparent"} 1px`},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...f},w={"&:hover:not(.Mui-disabled, [disabled])":{color:_=>_.palette.text.primary,border:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:_=>pt(_.palette.text.primary,_.palette.action.selectedOpacity+_.palette.action.hoverOpacity)},"> .outline-hover":{outline:_=>`solid ${o?_.palette.text?.primary:_.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:_=>`solid ${_.palette.primary.main} 1px`,border:_=>`1px solid ${_.palette?.primary?.main}`,zIndex:1}};let E=b;r||(E=To.mergeContentful(b,w));const C=u.useMemo(()=>{let _=typeof l=="function"?l():l;return _===null?_:_||(a===void 0?M2:UD)},[l,a]);let R=s.jsxs(Tr,{component:"div",ref:t,className:rr({"Mui-focusVisible":x,"Mui-selected":a},h),onFocus:_=>{v(!0),g?.(_)},onBlur:_=>{v(!1),m?.(_)},size:"small",TouchRippleProps:{center:!1},sx:E,edge:"end",...y,children:[C,d]});if(c)if(c.simple&&c.label&&!c.disabled){const{label:_,description:L,maxWidth:T,shortcut:j,useModifierSymbols:S,componentDisabled:k,simple:P,chips:O,ref:I,...z}=c;R=s.jsx(di,{disableInteractive:!0,title:_??"",...z,children:s.jsx(Le,{sx:{display:"flex"},children:R})})}else R=s.jsx(br,{children:R,...c});return R})),qD=e=>e.icon,Gr=u.memo(u.forwardRef((e,t)=>{const{icon:n=M2,renderIcon:o=qD,parentFloat:r,className:i,onFocus:a,selected:l,onBlur:c,onMouseOver:d,onMouseOut:p,onMouseEnter:f,disabled:h,children:g,sx:m,tooltipProps:y,chips:x,primary:v,...b}=e,[w,E]=u.useState(!1),[C,R]=u.useState(!1),_=u.useMemo(()=>{const T=o?.({icon:n,disabled:h,selected:l});return T?s.jsx(O_,{className:rr({"Mui-focusVisible":w,"Mui-hovered":C}),sx:{"& .MuiSvgIcon-root":{color:j=>v?void 0:j.palette.text.icon??j.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:j=>j.palette.text.primary}}},children:T}):null},[o,h,n,w,C,v,l]);let L=s.jsxs(b1,{ref:t,disabled:h,onMouseOver:T=>{d?.(T),T.isDefaultPrevented()||R(!0)},onMouseOut:T=>{p?.(T),T.isDefaultPrevented()||R(!1)},onMouseEnter:T=>{f?.(T),T.isDefaultPrevented()||r?.closeChild()},TouchRippleProps:{center:!1},className:rr({"Mui-focusVisible":w,"Mui-hovered":C},i),onFocus:T=>{a?.(T),E(!0)},onBlur:T=>{c?.(T),E(!1)},sx:{flex:"1 1 100%","&.Mui-disabled path.styled":{filter:"grayscale(65%)"},"&.Mui-selected":{color:T=>T.palette.text.primary},color:T=>T.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:T=>T.palette.text.primary},...m},...b,children:[_,g,x?s.jsx(pv,{chips:x}):null]});return y&&(L=s.jsx(br,{children:L,placement:"right-start",...y})),L})),qs=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,primary:r=!1,variant:i="subtitle1",...a}=e;return s.jsx(s.Fragment,{children:s.jsx(Mn,{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:l=>r?void 0:l.palette.text.secondary,...o},...a,children:n})})})),Ui=u.memo(u.forwardRef((e,t)=>{const{dense:n=!0,outlined:o=!1,label:r,selected:i=!1,onQuickClick:a,parentFloat:l,createPopupPanel:c,popupProps:d,onPopupOpen:p,onPopupClose:f,quickButtonProps:h,createQuickButton:g,tooltip:m="",createTooltip:y,icon:x,disabled:v,buttonProps:b=To.EmptyObject,disableHover:w,touchRippleRef:E,primary:C,children:R,sx:_,className:L,...T}=e,j=B3(),S=u.useMemo(()=>{const re=(ce,Se,ie,Y=ie)=>{const le=typeof o=="boolean"?null:o[ce];return typeof le=="function"?le(Se):le||(o?ie:Y)};return{outline:{color:ce=>re("color",ce,ce.palette.divider,"transparent"),hoverColor:ce=>re("hoverColor",ce,ce.palette.text?.primary,ce.palette.divider),focusColor:ce=>re("focusColor",ce,ce.palette?.primary?.main)},active:j.palette.mode==="dark"?j.palette.text.secondary:j.palette.text.primary,text:j.palette.text.icon??j.palette.action.active}},[o,j]),[k,P]=u.useState(!1),[O,I]=u.useState(!1),[z,A]=u.useState(!1),D=u.useRef(null),F=u.useRef(null),B=pa({anchor:D.current,label:r,createPopupPanel:c,parentFloat:l,popperProps:d?.popperProps,onClose:()=>{P(!1),f?.()},onOpen:()=>{P(!0),p?.()}}),M=Cn(re=>{a?.(re),B.reference.close(0)},[a,B]),N=Cn(()=>{k?B.reference.close(0):B.reference.open(0)},[k,B,l,r]),V=u.useMemo(()=>{const re={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:ee=>S.outline.color(ee),"&.Mui-focusVisible":{border:ee=>`1px solid ${S.outline.focusColor(ee)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>w?"transparent":void 0,backgroundColor:()=>w?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:ee=>S.outline.hoverColor(ee)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:ee=>S.outline.hoverColor(ee)},"&.left":{borderTopLeftRadius:ee=>`${ee.shape.borderRadius}px`,borderBottomLeftRadius:ee=>`${ee.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:ee=>S.outline.color(ee)},"&.right":{borderTopRightRadius:ee=>`${ee.shape.borderRadius}px`,borderBottomRightRadius:ee=>`${ee.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:ee=>`${ee.shape.borderRadius}px !important`}},ce={"&.Mui-selected":{backgroundColor:ee=>pt(ee.palette.primary.main,ee.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ee=>pt(ee.palette.primary.main,ee.palette.action.selectedOpacity+ee.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ee=>pt(ee.palette.primary.main,ee.palette.action.selectedOpacity)}}}},Se={maxHeight:"100%","&.Mui-selected":{backgroundColor:ee=>pt(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:ee=>pt(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity+ee.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:ee=>pt(ee.palette.text.icon??ee.palette.action.active,ee.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:ee=>ee.palette.text.primary},backgroundColor:()=>w?"transparent":void 0,color:ee=>ee.palette.text.icon,"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},ie=To.mergeContentful(Se,re),Y=To.mergeContentful(ie,ce),le=To.mergeContentful(Se,re);return{quickButtonStyling:ie,openQuickButtonStyling:Y,compoundStyling:le,openCompoundStyling:To.mergeContentful(le,ce)}},[S,w]),U=Cn(re=>{const{children:ce,ref:Se,...ie}=re;return s.jsx(di,{ref:Se,...ie,disableInteractive:!0,children:ce})},[]),J=a||g,X=J&&(h?.tooltip||h?.createTooltip),H=re=>{const{tooltip:ce,createTooltip:Se,sx:ie,...Y}=re;let le=s.jsx(Tr,{sx:{...ie},component:"div",...Y});return X&&(le=(Se??U)({title:k?"":ce??m,children:s.jsx("div",{children:le})},k)),le},ne={onKeyDown:re=>{re.keyCode===xr.Space?N():re.keyCode===xr.F4||re.keyCode===xr.Down?B.reference.open(0):re.keyCode===xr.Up&&B.reference.close(0)}};let oe=s.jsx(s.Fragment,{});const ye=u.useMemo(()=>typeof x=="function"?x():x,[x]);if(J){let re=k?V.openQuickButtonStyling:V.quickButtonStyling;const ce=(g||H)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{B.reference.parent.closeChild()},onMouseDown:ie=>{ie.button===0&&(ie.preventDefault(),M(ie))},touchRippleRef:E,children:ye,...h,className:rr({"Mui-focusVisible":O||k,"Mui-selected":i,"Mui-hovered":z||k,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},h?.className),sx:{...V.quickButtonStyling,height:"100%",...h?.sx}});let Se=r8(!0,n,k);X&&(Se=(y??U)({title:k?"":m,children:Se},k)),oe=s.jsxs(s.Fragment,{children:[ce,s.jsx(Tr,{ref:F,component:"div",className:rr({"Mui-selected":k,"Mui-hovered":z||k,"Mui-disabled":v,"Mui-focusVisible":O||k,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"1em",...V.quickButtonStyling,...re},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:ie=>{ie.button===0&&(ie.preventDefault(),N())},children:Se})]})}else{let re=k?V.openCompoundStyling:V.compoundStyling;oe=s.jsx(ii,{ref:F,tabIndex:-1,disabled:v,size:"small",icon:ye,className:rr({"Mui-selected":k||i,"Mui-hovered":z,"Mui-disabled":v,"Mui-focusVisible":O||k,bordered:!0,left:!0,right:!0}),sx:{...V.quickButtonStyling,...re},onMouseDown:ce=>{ce.button===0&&(ce.preventDefault(),N())},children:r8(!1,n,k)})}const{className:de,sx:xe,...we}=b;let ve=s.jsx(Le,{onFocus:()=>I(!0),onBlur:()=>I(!1),onMouseOver:()=>A(!0),onMouseOut:()=>A(!1),...ne,"aria-label":"split button",ref:D,tabIndex:v?void 0:0,className:rr(de,"split-button-root",{"Mui-focusVisible":O||k,"Mui-selected":k||i,"Mui-hovered":z,"Mui-disabled":v}),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:re=>`${re.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:re=>`solid ${re.palette.primary.main} 1px`,zIndex:2},...xe},...we,children:oe});return X||(ve=(y??U)({title:k?"":m,children:ve},k)),s.jsxs(Le,{className:rr(L,"popupIconButton"),ref:t,...T,sx:{zIndex:O||k?2:void 0,display:"flex",alignItems:"center",..._},children:[ve,B.component]})}));Ui.displayName="ExhibitPopupIconButton";const KD={},C1=u.memo(u.forwardRef((e,t)=>{const{selected:n=!1,label:o,onQuickClick:r,parentFloat:i,createPopupPanel:a,popupProps:l=KD,onPopupOpen:c,onPopupClose:d,quickButtonProps:p,createQuickButton:f,tooltip:h="",createTooltip:g,icon:m,disabled:y,touchRippleRef:x,primary:v,children:b,sx:w,...E}=e,[C,R]=u.useState(!1),[_,L]=u.useState(!1),[T,j]=u.useState(!1),[S,k]=u.useState(!1),P=u.useRef(null),O=u.useRef(null),I=u.useMemo(()=>{if(!l)return;const{popperProps:X}=l;return{placement:"right-start",offsets:[-4,-2],...X}},[l]),z=pa({anchor:P.current,label:o,createPopupPanel:a,parentFloat:i,popperProps:I,onClose:()=>{R(!1),d?.()},onOpen:()=>{R(!0),c?.()}}),A=Cn(X=>{X.button===0&&(r?.(X),z.reference.close(0))},[r]),D=s.jsx(Ax,{sx:{transform:()=>{}}}),F={"&.Mui-selected":{color:X=>X.palette.text.primary,"& svg * ":{color:X=>X.palette.text.primary}}},B=u.useCallback(X=>{const{children:H,ref:ne,...oe}=X;return s.jsx(di,{ref:ne,...oe,disableInteractive:!0,children:H})},[]),M=r||f,N=X=>{const{tooltip:H,createTooltip:ne,...oe}=X;return s.jsx(Gr,{icon:m,className:rr({"Mui-hovered":T}),sx:{flex:"1 1 100%",...F},...oe,children:o})},V={onFocus:()=>{L(!0)},onBlur:()=>L(!1),onMouseOver:()=>{j(!0)},onMouseLeave:()=>{j(!1)},onMouseEnter:()=>{z.reference.open()},onMouseDown:X=>{X.button===0&&X.preventDefault()}};let U=s.jsx(s.Fragment,{});if(M){const X=(f||N)({tabIndex:-1,disabled:y,onMouseEnter:()=>{z.reference.parent.closeChild()},onMouseDown:H=>{H.button===0&&(H.preventDefault(),A(H))},className:rr("quick-left",{},p?.className),...p});U=s.jsxs(s.Fragment,{children:[X,s.jsx(va,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),s.jsx(b1,{ref:O,className:rr({"Mui-selected":C,"Mui-hovered":T}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:H=>v?void 0:H.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:H=>H.palette.text.primary},...F},tabIndex:-1,disabled:y,...V,children:s.jsx(Le,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:H=>v?void 0:H.palette.text.icon??H.palette.action.active},onMouseOver:H=>{H.preventDefault(),k(!0)},onMouseLeave:()=>{k(!1)},onClick:H=>{H.preventDefault(),C?z.reference.close():z.reference.open()},children:D})})]})}else U=s.jsxs(Gr,{ref:O,tabIndex:-1,disabled:y,icon:m,className:rr({"Mui-selected":C||n,"Mui-hovered":T}),sx:{flex:"1 1 100%",paddingRight:"0px",...F},onClick:X=>{X.preventDefault(),C?z.reference.close():z.reference.open()},...V,children:[s.jsx("div",{style:{flex:"1 1 100%"},children:o}),s.jsx(Le,{className:"expand-icon2",sx:{flex:"none",display:"flex",color:X=>v?void 0:X.palette.text.icon??X.palette.action.active},children:D})]});let J=s.jsx(Le,{"aria-label":"split button",ref:P,tabIndex:y?void 0:0,className:rr({"Mui-disabled":y,"Mui-selected":C,"Mui-focusVisible":_||C,"Mui-hovered":T}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled path.styled":{filter:"grayscale(65%)",opacity:".8"},...w},...E,children:U});return M&&!S&&(p?.tooltip||p?.createTooltip)&&(J=(p?.createTooltip??B)({title:C?"":J??p?.tooltip,children:J},C)),s.jsxs(Le,{ref:t,sx:{zIndex:_||C?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[J,z.component]})})),kv=u.memo(u.forwardRef((e,t)=>{const{onSelectToggle:n,selected:o=!1,label:r,shortcut:i,tabIndex:a=0,preventFocus:l=!1,...c}=e;return s.jsx(br,{label:r,shortcut:i,children:s.jsx(ii,{ref:t,outlined:!1,tabIndex:a,selected:o,onMouseDown:d=>{l&&d.preventDefault()},onClick:()=>{n?.(!o)},...c})})})),k1=u.memo(u.forwardRef((e,t)=>{const{children:n,selected:o=!0,outlined:r=!0,sx:i,...a}=e,l={display:"flex",border:d=>o?`solid ${r?d.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:d=>`${d.shape.borderRadius}px`,backgroundColor:d=>{if(o)return pt(d.palette.text.icon??d.palette.action.active,d.palette.action.selectedOpacity)}};let c=n;return c===null&&(c=s.jsx(Hs,{})),c||(c=s.jsx(j3,{})),c=ze(c),s.jsx(Le,{ref:t,sx:{...l,...i},...a,children:c})}));function Er(){return Er=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},Er.apply(null,arguments)}function Ev(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 Ci,os,GD={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},Mv=u.createContext(void 0);(os=Ci||(Ci={})).SHOW="SHOW",os.HIDE="HIDE",os.UPDATE="UPDATE",os.DESTROY="DESTROY",os.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",os.UNKNOWN="UNKNOWN";var ZD={};function XD(e,t){switch(t.type){case Ci.SHOW:var n,o=t.payload,r=o.id,i=o.component,a=o.props,l=o.options;return Er({},e,((n={})[r]={component:i,props:Er({},a,{open:!0}),options:l},n));case Ci.HIDE:var c,d=t.payload.id;return e[d]?Er({},e,((c={})[d]=Er({},e[d],{props:Er({},e[d].props,{open:!1})}),c)):e;case Ci.UPDATE:var p,f=t.payload,h=f.id,g=f.props;return e[h]?Er({},e,((p={})[h]=Er({},e[h],{props:Er({},e[h].props,g)}),p)):e;case Ci.DESTROY:var m=t.payload.id,y=Er({},e);return delete y[m],y;case Ci.DESTROY_BY_ROOT_ID:var x=t.payload.rootId;return Object.keys(e).filter(function(v){return v.split(".")[0]!==x}).reduce(function(v,b){var w;return Er({},v,((w={})[b]=e[b],w))},{});default:throw new Error("Unexpected action")}}var Ap="[ERROR]: Modal ID is missing",Tv=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("")},YD=["open"],JD=["showModal","destroyModalsByRootId"],a8={disableAutoDestroy:!1};function ud(e){e===void 0&&(e=a8);var t=Er({},a8,e).disableAutoDestroy,n=u.useContext(Mv)||GD,o=n.showModal,r=n.destroyModalsByRootId,i=Ev(n,JD),a=u.useRef(Tv(6));return u.useEffect(function(){return function(){!t&&r&&r(a.current)}},[t,r]),Er({showModal:u.useCallback(function(l,c,d){return o(l,c,Er({rootId:a.current,hideOnClose:!0},d))},[o]),destroyModalsByRootId:r},i)}var _v=["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])"],_u=_v.join(","),jv=typeof Element>"u",jl=jv?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Kd=!jv&&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},ju=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)},Rv=function(e,t,n){if(ju(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(_u));return t&&jl.call(e,_u)&&o.unshift(e),o.filter(n)},Iv=function e(t,n,o){for(var r=[],i=Array.from(t);i.length;){var a=i.shift();if(!ju(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=e(l.length?l:a.children,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:a,candidates:c})}else{jl.call(a,_u)&&o.filter(a)&&(n||!t.includes(a))&&r.push(a);var d=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),p=!ju(d,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(d&&p){var f=e(d===!0?a.children:d.children,!0,o);o.flatten?r.push.apply(r,f):r.push({scopeParent:a,candidates:f})}else i.unshift.apply(i,a.children)}}return r},Pv=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Za=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||(o=(t=e)==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable"))===""||o==="true")&&!Pv(e)?0:e.tabIndex;var t,n,o},QD=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ov=function(e){return e.tagName==="INPUT"},l8=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},Ru=function(e,t){return!(t.disabled||ju(t)||(o=t,Ov(o)&&o.type==="hidden")||function(r,i){var a=i.displayCheck,l=i.getShadowRoot;if(getComputedStyle(r).visibility==="hidden")return!0;var c=jl.call(r,"details>summary:first-of-type")?r.parentElement:r;if(jl.call(c,"details:not([open]) *"))return!0;if(a&&a!=="full"&&a!=="legacy-full"){if(a==="non-zero-area")return l8(r)}else{if(typeof l=="function"){for(var d=r;r;){var p=r.parentElement,f=Kd(r);if(p&&!p.shadowRoot&&l(p)===!0)return l8(r);r=r.assignedSlot?r.assignedSlot:p||f===r.ownerDocument?p:f.host}r=d}if(function(h){var g,m,y,x,v=h&&Kd(h),b=(g=v)===null||g===void 0?void 0:g.host,w=!1;if(v&&v!==h)for(w=!!((m=b)!==null&&m!==void 0&&(y=m.ownerDocument)!==null&&y!==void 0&&y.contains(b)||h!=null&&(x=h.ownerDocument)!==null&&x!==void 0&&x.contains(h));!w&&b;){var E,C,R;w=!((C=b=(E=v=Kd(b))===null||E===void 0?void 0:E.host)===null||C===void 0||(R=C.ownerDocument)===null||R===void 0||!R.contains(b))}return w}(r))return!r.getClientRects().length;if(a!=="legacy-full")return!0}return!1}(t,e)||(n=t,n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(r){return r.tagName==="SUMMARY"}))||function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var i=r.parentElement;i;){if(i.tagName==="FIELDSET"&&i.disabled){for(var a=0;a<i.children.length;a++){var l=i.children.item(a);if(l.tagName==="LEGEND")return!!jl.call(i,"fieldset[disabled] *")||!l.contains(r)}return!0}i=i.parentElement}return!1}(t));var n,o},xh=function(e,t){return!(Ov(o=n=t)&&o.type==="radio"&&!function(r){if(!r.name)return!0;var i,a=r.form||Kd(r),l=function(d){return a.querySelectorAll('input[type="radio"][name="'+d+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")i=l(window.CSS.escape(r.name));else try{i=l(r.name)}catch(d){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",d.message),!1}var c=function(d,p){for(var f=0;f<d.length;f++)if(d[f].checked&&d[f].form===p)return d[f]}(i,r.form);return!c||c===r}(n)||Za(t)<0||!Ru(e,t));var n,o},eA=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tA=function e(t){var n=[],o=[];return t.forEach(function(r,i){var a,l,c,d=!!r.scopeParent,p=d?r.scopeParent:r,f=(l=d,(c=Za(a=p))<0&&l&&!Pv(a)?0:c),h=d?e(r.candidates):p;f===0?d?n.push.apply(n,h):n.push(p):o.push({documentOrder:i,tabIndex:f,item:r,isScope:d,content:h})}),o.sort(QD).reduce(function(r,i){return i.isScope?r.push.apply(r,i.content):r.push(i.content),r},[]).concat(n)},Dv=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Iv([e],t.includeContainer,{filter:xh.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:eA}):Rv(e,t.includeContainer,xh.bind(null,t)),tA(n)},Av=function(e,t){return(t=t||{}).getShadowRoot?Iv([e],t.includeContainer,{filter:Ru.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Rv(e,t.includeContainer,Ru.bind(null,t))},ml=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return jl.call(e,_u)!==!1&&xh(t,e)},nA=_v.concat("iframe").join(","),Gd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return jl.call(e,nA)!==!1&&Ru(t,e)};const oA=Object.freeze(Object.defineProperty({__proto__:null,focusable:Av,getTabIndex:Za,isFocusable:Gd,isTabbable:ml,tabbable:Dv},Symbol.toStringTag,{value:"Module"}));function Lp(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 rA(e,t,n){return(t=function(o){var r=function(i){if(typeof i!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var l=a.call(i,"string");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(o);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 s8(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 c8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(n),!0).forEach(function(o){rA(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}var vc=function(e){return e?.key==="Tab"||e?.keyCode===9},iA=function(e){return vc(e)&&!e.shiftKey},aA=function(e){return vc(e)&&e.shiftKey},d8=function(e){return setTimeout(e,0)},D0=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},pd=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},lA=[];const sA=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,t){var n,o=t?.document||document,r=t?.trapStack||lA,i=c8({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:iA,isKeyBackward:aA},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(T,j,S){return T&&T[j]!==void 0?T[j]:i[S||j]},c=function(T,j){var S=typeof j?.composedPath=="function"?j.composedPath():void 0;return a.containerGroups.findIndex(function(k){var P=k.container,O=k.tabbableNodes;return P.contains(T)||S?.includes(P)||O.find(function(I){return I===T})})},d=function(T){var j,S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=S.hasFallback,P=k!==void 0&&k,O=S.params,I=O===void 0?[]:O,z=i[T];if(typeof z=="function"&&(z=z.apply(void 0,function(D){if(Array.isArray(D))return Lp(D)}(j=I)||function(D){if(typeof Symbol<"u"&&D[Symbol.iterator]!=null||D["@@iterator"]!=null)return Array.from(D)}(j)||function(D,F){if(D){if(typeof D=="string")return Lp(D,F);var B={}.toString.call(D).slice(8,-1);return B==="Object"&&D.constructor&&(B=D.constructor.name),B==="Map"||B==="Set"?Array.from(D):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?Lp(D,F):void 0}}(j)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())),z===!0&&(z=void 0),!z){if(z===void 0||z===!1)return z;throw new Error("`".concat(T,"` was specified but was not a node, or did not return a node"))}var A=z;if(typeof z=="string"){try{A=o.querySelector(z)}catch(D){throw new Error("`".concat(T,'` appears to be an invalid selector; error="').concat(D.message,'"'))}if(!A&&!P)throw new Error("`".concat(T,"` as selector refers to no known node"))}return A},p=function(){var T=d("initialFocus",{hasFallback:!0});if(T===!1)return!1;if(T===void 0||T&&!Gd(T,i.tabbableOptions))if(c(o.activeElement)>=0)T=o.activeElement;else{var j=a.tabbableGroups[0];T=j&&j.firstTabbableNode||d("fallbackFocus")}else T===null&&(T=d("fallbackFocus"));if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},f=function(){if(a.containerGroups=a.containers.map(function(T){var j=Dv(T,i.tabbableOptions),S=Av(T,i.tabbableOptions),k=j.length>0?j[0]:void 0,P=j.length>0?j[j.length-1]:void 0,O=S.find(function(A){return ml(A)}),I=S.slice().reverse().find(function(A){return ml(A)}),z=!!j.find(function(A){return Za(A)>0});return{container:T,tabbableNodes:j,focusableNodes:S,posTabIndexesFound:z,firstTabbableNode:k,lastTabbableNode:P,firstDomTabbableNode:O,lastDomTabbableNode:I,nextTabbableNode:function(A){var D=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=j.indexOf(A);return F<0?D?S.slice(S.indexOf(A)+1).find(function(B){return ml(B)}):S.slice(0,S.indexOf(A)).reverse().find(function(B){return ml(B)}):j[F+(D?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!d("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(a.containerGroups.find(function(T){return T.posTabIndexesFound})&&a.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(T){var j=T.activeElement;if(j)return j.shadowRoot&&j.shadowRoot.activeElement!==null?h(j.shadowRoot):j},g=function(T){var j;T!==!1&&T!==h(document)&&(T&&T.focus?(T.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=T,(j=T).tagName&&j.tagName.toLowerCase()==="input"&&typeof j.select=="function"&&T.select()):g(p()))},m=function(T){var j=d("setReturnFocus",{params:[T]});return j||j!==!1&&T},y=function(T){var j=T.target,S=T.event,k=T.isBackward,P=k!==void 0&&k;j=j||pd(S),f();var O=null;if(a.tabbableGroups.length>0){var I=c(j,S),z=I>=0?a.containerGroups[I]:void 0;if(I<0)O=P?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(P){var A=a.tabbableGroups.findIndex(function(V){var U=V.firstTabbableNode;return j===U});if(A<0&&(z.container===j||Gd(j,i.tabbableOptions)&&!ml(j,i.tabbableOptions)&&!z.nextTabbableNode(j,!1))&&(A=I),A>=0){var D=A===0?a.tabbableGroups.length-1:A-1,F=a.tabbableGroups[D];O=Za(j)>=0?F.lastTabbableNode:F.lastDomTabbableNode}else vc(S)||(O=z.nextTabbableNode(j,!1))}else{var B=a.tabbableGroups.findIndex(function(V){var U=V.lastTabbableNode;return j===U});if(B<0&&(z.container===j||Gd(j,i.tabbableOptions)&&!ml(j,i.tabbableOptions)&&!z.nextTabbableNode(j))&&(B=I),B>=0){var M=B===a.tabbableGroups.length-1?0:B+1,N=a.tabbableGroups[M];O=Za(j)>=0?N.firstTabbableNode:N.firstDomTabbableNode}else vc(S)||(O=z.nextTabbableNode(j))}}else O=d("fallbackFocus");return O},x=function(T){var j=pd(T);c(j,T)>=0||(D0(i.clickOutsideDeactivates,T)?n.deactivate({returnFocus:i.returnFocusOnDeactivate}):D0(i.allowOutsideClick,T)||T.preventDefault())},v=function(T){var j=pd(T),S=c(j,T)>=0;if(S||j instanceof Document)S&&(a.mostRecentlyFocusedNode=j);else{var k;T.stopImmediatePropagation();var P=!0;if(a.mostRecentlyFocusedNode)if(Za(a.mostRecentlyFocusedNode)>0){var O=c(a.mostRecentlyFocusedNode),I=a.containerGroups[O].tabbableNodes;if(I.length>0){var z=I.findIndex(function(A){return A===a.mostRecentlyFocusedNode});z>=0&&(i.isKeyForward(a.recentNavEvent)?z+1<I.length&&(k=I[z+1],P=!1):z-1>=0&&(k=I[z-1],P=!1))}}else a.containerGroups.some(function(A){return A.tabbableNodes.some(function(D){return Za(D)>0})})||(P=!1);else P=!1;P&&(k=y({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),g(k||a.mostRecentlyFocusedNode||p())}a.recentNavEvent=void 0},b=function(T){(i.isKeyForward(T)||i.isKeyBackward(T))&&function(j){var S=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=j;var k=y({event:j,isBackward:S});k&&(vc(j)&&j.preventDefault(),g(k))}(T,i.isKeyBackward(T))},w=function(T){var j;((j=T)==null?void 0:j.key)!=="Escape"&&j?.key!=="Esc"&&j?.keyCode!==27||D0(i.escapeDeactivates,T)===!1||(T.preventDefault(),n.deactivate())},E=function(T){var j=pd(T);c(j,T)>=0||D0(i.clickOutsideDeactivates,T)||D0(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},C=function(){if(a.active)return function(T,j){if(T.length>0){var S=T[T.length-1];S!==j&&S._setPausedState(!0)}var k=T.indexOf(j);k===-1||T.splice(k,1),T.push(j)}(r,n),a.delayInitialFocusTimer=i.delayInitialFocus?d8(function(){g(p())}):g(p()),o.addEventListener("focusin",v,!0),o.addEventListener("mousedown",x,{capture:!0,passive:!1}),o.addEventListener("touchstart",x,{capture:!0,passive:!1}),o.addEventListener("click",E,{capture:!0,passive:!1}),o.addEventListener("keydown",b,{capture:!0,passive:!1}),o.addEventListener("keydown",w),n},R=function(){if(a.active)return o.removeEventListener("focusin",v,!0),o.removeEventListener("mousedown",x,!0),o.removeEventListener("touchstart",x,!0),o.removeEventListener("click",E,!0),o.removeEventListener("keydown",b,!0),o.removeEventListener("keydown",w),n},_=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(T){T.some(function(j){return Array.from(j.removedNodes).some(function(S){return S===a.mostRecentlyFocusedNode})})&&g(p())}):void 0,L=function(){_&&(_.disconnect(),a.active&&!a.paused&&a.containers.map(function(T){_.observe(T,{subtree:!0,childList:!0})}))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(T){if(a.active)return this;var j=l(T,"onActivate"),S=l(T,"onPostActivate"),k=l(T,"checkCanFocusTrap");k||f(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=h(o),j?.();var P=function(){k&&f(),C(),L(),S?.()};return k?(k(a.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(T){if(!a.active)return this;var j,S,k,P=c8({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,R(),a.active=!1,a.paused=!1,L(),S=n,(k=(j=r).indexOf(S))!==-1&&j.splice(k,1),j.length>0&&!j[j.length-1]._isManuallyPaused()&&j[j.length-1]._setPausedState(!1);var O=l(P,"onDeactivate"),I=l(P,"onPostDeactivate"),z=l(P,"checkCanReturnFocus"),A=l(P,"returnFocus","returnFocusOnDeactivate");O?.();var D=function(){d8(function(){A&&g(m(a.nodeFocusedBeforeActivation)),I?.()})};return A&&z?(z(m(a.nodeFocusedBeforeActivation)).then(D,D),this):(D(),this)},pause:function(T){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,T)):this},unpause:function(T){return a.active?(a.manuallyPaused=!1,r[r.length-1]!==this?this:this._setPausedState(!1,T)):this},updateContainerElements:function(T){var j=[].concat(T).filter(Boolean);return a.containers=j.map(function(S){return typeof S=="string"?o.querySelector(S):S}),a.active&&f(),L(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(T,j){if(a.paused===T)return this;if(a.paused=T,T){var S=l(j,"onPause"),k=l(j,"onPostPause");S?.(),R(),L(),k?.()}else{var P=l(j,"onUnpause"),O=l(j,"onPostUnpause");P?.(),f(),C(),L(),O?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),cA=Rb(sA),dA=Rb(oA);var u8,p8,uA=function(){if(p8)return u8;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})(f,h)}function r(f){var h=function(g){if(e(g)!="object"||!g)return g;var m=g[Symbol.toPrimitive];if(m!==void 0){var y=m.call(g,"string");if(e(y)!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}(f);return e(h)=="symbol"?h:h+""}p8=1;var i=u,a=eh(),l=cA.createFocusTrap,c=dA.isFocusable,d=function(f){function h(y){var x,v,b,w;(function(R,_){if(!(R instanceof _))throw new TypeError("Cannot call a class as a function")})(this,h),function(R,_,L){(_=r(_))in R?Object.defineProperty(R,_,{value:L,enumerable:!0,configurable:!0,writable:!0}):R[_]=L}((v=this,w=[y],b=n(b=h),x=function(R,_){if(_&&(e(_)=="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(L){if(L===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L}(R)}(v,t()?Reflect.construct(b,w||[],n(v).constructor):b.apply(v,w))),"getNodeForOption",function(R){var _,L=(_=this.internalOptions[R])!==null&&_!==void 0?_:this.originalOptions[R];if(typeof L=="function"){for(var T=arguments.length,j=new Array(T>1?T-1:0),S=1;S<T;S++)j[S-1]=arguments[S];L=L.apply(void 0,j)}if(L===!0&&(L=void 0),!L){if(L===void 0||L===!1)return L;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var k,P=L;if(typeof L=="string"&&!(P=(k=this.getDocument())===null||k===void 0?void 0:k.querySelector(L)))throw new Error("`".concat(R,"` as selector refers to no known node"));return P}),x.handleDeactivate=x.handleDeactivate.bind(x),x.handlePostDeactivate=x.handlePostDeactivate.bind(x),x.handleClickOutsideDeactivates=x.handleClickOutsideDeactivates.bind(x),x.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:x.handleDeactivate,onPostDeactivate:x.handlePostDeactivate,clickOutsideDeactivates:x.handleClickOutsideDeactivates},x.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var E=y.focusTrapOptions;for(var C in E)Object.prototype.hasOwnProperty.call(E,C)&&(C!=="returnFocusOnDeactivate"&&C!=="onDeactivate"&&C!=="onPostDeactivate"&&C!=="checkCanReturnFocus"&&C!=="clickOutsideDeactivates"?x.internalOptions[C]=E[C]:x.originalOptions[C]=E[C]);return x.outsideClick=null,x.focusTrapElements=y.containerElements||[],x.updatePreviousElement(),x}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),x&&o(y,x)}(h,f),g=h,m=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var y=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return y||y!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var y=this.getDocument();y&&(this.previouslyFocusedElement=y.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(y){var x=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,y):this.originalOptions.clickOutsideDeactivates;return x&&(this.outsideClick={target:y.target,allowDeactivation:x}),x}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var y=this,x=function(){var v=y.getReturnFocusNode(),b=!(!y.originalOptions.returnFocusOnDeactivate||v==null||!v.focus||y.outsideClick&&(!y.outsideClick.allowDeactivation||c(y.outsideClick.target,y.internalOptions.tabbableOptions))),w=y.internalOptions.preventScroll,E=w!==void 0&&w;b&&v.focus({preventScroll:E}),y.originalOptions.onPostDeactivate&&y.originalOptions.onPostDeactivate.call(null),y.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(x,x):x()}},{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(y){if(this.focusTrap){y.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var x=!y.active&&this.props.active,v=y.active&&!this.props.active,b=!y.paused&&this.props.paused,w=y.paused&&!this.props.paused;if(x&&(this.updatePreviousElement(),this.focusTrap.activate()),v)return void this.deactivateTrap();b&&this.focusTrap.pause(),w&&this.focusTrap.unpause()}else y.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 y=this,x=this.props.children?i.Children.only(this.props.children):void 0;if(x){if(x.type&&x.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(x,{ref:function(v){var b=y.props.containerElements;x&&(typeof x.ref=="function"?x.ref(v):x.ref&&(x.ref.current=v)),y.focusTrapElements=b||[v]}})}return null}}],m&&function(y,x){for(var v=0;v<x.length;v++){var b=x[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,r(b.key),b)}}(g.prototype,m),Object.defineProperty(g,"prototype",{writable:!1}),g;var g,m}(i.Component),p=typeof Element>"u"?Function:Element;return d.propTypes={active:a.bool,paused:a.bool,focusTrapOptions:a.shape({document:a.object,onActivate:a.func,onPostActivate:a.func,checkCanFocusTrap:a.func,onPause:a.func,onPostPause:a.func,onUnpause:a.func,onPostUnpause:a.func,onDeactivate:a.func,onPostDeactivate:a.func,checkCanReturnFocus:a.func,initialFocus:a.oneOfType([a.instanceOf(p),a.string,a.bool,a.func]),fallbackFocus:a.oneOfType([a.instanceOf(p),a.string,a.func]),escapeDeactivates:a.oneOfType([a.bool,a.func]),clickOutsideDeactivates:a.oneOfType([a.bool,a.func]),returnFocusOnDeactivate:a.bool,setReturnFocus:a.oneOfType([a.instanceOf(p),a.string,a.bool,a.func]),allowOutsideClick:a.oneOfType([a.bool,a.func]),preventScroll:a.bool,tabbableOptions:a.shape({displayCheck:a.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:a.oneOfType([a.bool,a.func])}),trapStack:a.array,isKeyForward:a.func,isKeyBackward:a.func}),containerElements:a.arrayOf(a.instanceOf(p)),children:a.oneOfType([a.element,a.instanceOf(p)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:l},u8=d}();const pA=jb(uA);var h8,f8,A0={exports:{}},m8={},hd={exports:{}},$o={},cl={};function Iu(){return f8||(f8=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.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.`)},cl.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]},cl.int=function(e){return parseInt(e,10)},cl.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},cl.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),cl}var g8,y8,Aa={};function bh(){if(y8)return $o;y8=1,Object.defineProperty($o,"__esModule",{value:!0}),$o.addClassName=a,$o.addEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(d,p,h):c.attachEvent?c.attachEvent("on"+d,p):c["on"+d]=p},$o.addUserSelectStyles=function(c){if(!c)return;let d=c.getElementById("react-draggable-style-el");d||(d=c.createElement("style"),d.type="text/css",d.id="react-draggable-style-el",d.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
145
- `,d.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
146
- `,c.getElementsByTagName("head")[0].appendChild(d)),c.body&&a(c.body,"react-draggable-transparent-selection")},$o.createCSSTransform=function(c,d){const p=r(c,d,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},$o.createSVGTransform=function(c,d){return r(c,d,"")},$o.getTouch=function(c,d){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>d===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>d===p.identifier)},$o.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},$o.getTranslation=r,$o.innerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingTop),d-=(0,e.int)(p.paddingBottom),d},$o.innerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingLeft),d-=(0,e.int)(p.paddingRight),d},$o.matchesSelector=o,$o.matchesSelectorAndParentsTo=function(c,d,p){let f=c;do{if(o(f,d))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},$o.offsetXYFromParent=function(c,d,p){const f=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-f.left)/p,y:(c.clientY+d.scrollTop-f.top)/p}},$o.outerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderTopWidth),d+=(0,e.int)(p.borderBottomWidth),d},$o.outerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderLeftWidth),d+=(0,e.int)(p.borderRightWidth),d},$o.removeClassName=l,$o.removeEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(d,p,h):c.detachEvent?c.detachEvent("on"+d,p):c["on"+d]=null},$o.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=Iu(),t=function(c){if(typeof WeakMap=="function")var d=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=d){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(g8)return Aa;g8=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.browserPrefixToKey=p,Aa.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},Aa.default=void 0,Aa.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){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="",y=!0;for(let x=0;x<g.length;x++)y?(m+=g[x].toUpperCase(),y=!1):g[x]==="-"?y=!0:m+=g[x];return m}(f)}`:f}return Aa.default=d(),Aa}());let n="";function o(c,d){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](d)}function r(c,d,p){let{x:f,y:h}=c,g=`translate(${f}${p},${h}${p})`;return d&&(g=`translate(${typeof d.x=="string"?d.x:d.x+p}, ${typeof d.y=="string"?d.y:d.y+p})`+g),g}function i(c){if(c)try{if(c.body&&l(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const d=(c.defaultView||window).getSelection();d&&d.type!=="Caret"&&d.removeAllRanges()}}catch{}}function a(c,d){c.classList?c.classList.add(d):c.className.match(new RegExp(`(?:^|\\s)${d}(?!\\S)`))||(c.className+=` ${d}`)}function l(c,d){c.classList?c.classList.remove(d):c.className=c.className.replace(new RegExp(`(?:^|\\s)${d}(?!\\S)`,"g"),"")}return $o}var x8,Yi={};function b8(){if(x8)return Yi;x8=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},Yi.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},Yi.createCoreData=function(o,r,i){const a=!(0,e.isNum)(o.lastX),l=n(o);return a?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:l,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},Yi.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}},Yi.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:a}=o.props;var l;a=typeof a=="string"?a:{left:(l=a).left,top:l.top,right:l.right,bottom:l.bottom};const c=n(o);if(typeof a=="string"){const{ownerDocument:d}=c,p=d.defaultView;let f;if(f=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(f instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=f,g=p.getComputedStyle(c),m=p.getComputedStyle(h);a={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)(a.right)&&(r=Math.min(r,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(r=Math.max(r,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[r,i]},Yi.getControlPosition=function(o,r,i){const a=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!a)return null;const l=n(i),c=i.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(a||o,c,i.props.scale)},Yi.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=Iu(),t=bh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return Yi}var v8,w8,S8,C8,L0={},zp={};function k8(){return v8||(v8=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.default=function(){}),zp}var hA=function(){if(C8)return A0.exports;C8=1;const{default:e,DraggableCore:t}=(S8||(S8=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),n.default=void 0;var o=function(x){if(typeof WeakMap=="function")var v=new WeakMap;return function(b){if(b&&b.__esModule)return b;var w,E,C={__proto__:null,default:b};if(b===null||typeof b!="object"&&typeof b!="function")return C;if(w=v){if(w.has(b))return w.get(b);w.set(b,C)}for(const R in b)R!=="default"&&{}.hasOwnProperty.call(b,R)&&((E=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(b,R))&&(E.get||E.set)?w(C,R,E):C[R]=b[R]);return C}(x)}(u),r=h(eh()),i=h(yo),a=function(){if(h8)return hd.exports;function x(b){var w,E,C="";if(typeof b=="string"||typeof b=="number")C+=b;else if(typeof b=="object")if(Array.isArray(b)){var R=b.length;for(w=0;w<R;w++)b[w]&&(E=x(b[w]))&&(C&&(C+=" "),C+=E)}else for(E in b)b[E]&&(C&&(C+=" "),C+=E);return C}function v(){for(var b,w,E=0,C="",R=arguments.length;E<R;E++)(b=arguments[E])&&(w=x(b))&&(C&&(C+=" "),C+=w);return C}return h8=1,hd.exports=v,hd.exports.clsx=v,hd.exports}(),l=bh(),c=b8(),d=Iu(),p=h(function(){if(w8)return L0;w8=1,Object.defineProperty(L0,"__esModule",{value:!0}),L0.default=void 0;var x=function(P){if(typeof WeakMap=="function")var O=new WeakMap;return function(I){if(I&&I.__esModule)return I;var z,A,D={__proto__:null,default:I};if(I===null||typeof I!="object"&&typeof I!="function")return D;if(z=O){if(z.has(I))return z.get(I);z.set(I,D)}for(const F in I)F!=="default"&&{}.hasOwnProperty.call(I,F)&&((A=(z=Object.defineProperty)&&Object.getOwnPropertyDescriptor(I,F))&&(A.get||A.set)?z(D,F,A):D[F]=I[F]);return D}(P)}(u),v=_(eh()),b=_(yo),w=bh(),E=b8(),C=Iu(),R=_(k8());function _(P){return P&&P.__esModule?P:{default:P}}function L(P,O,I){return(O=typeof(z=function(A){if(typeof A!="object"||!A)return A;var D=A[Symbol.toPrimitive];if(D!==void 0){var F=D.call(A,"string");if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}(O))=="symbol"?z:z+"")in P?Object.defineProperty(P,O,{value:I,enumerable:!0,configurable:!0,writable:!0}):P[O]=I,P;var z}const T={start:"touchstart",move:"touchmove",stop:"touchend"},j={start:"mousedown",move:"mousemove",stop:"mouseup"};let S=j,k=class extends x.Component{constructor(){super(...arguments),L(this,"dragging",!1),L(this,"lastX",NaN),L(this,"lastY",NaN),L(this,"touchIdentifier",null),L(this,"mounted",!1),L(this,"handleDragStart",P=>{if(this.props.onMouseDown(P),!this.props.allowAnyClick&&typeof P.button=="number"&&P.button!==0)return!1;const O=this.findDOMNode();if(!O||!O.ownerDocument||!O.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:I}=O;if(this.props.disabled||!(P.target instanceof I.defaultView.Node)||this.props.handle&&!(0,w.matchesSelectorAndParentsTo)(P.target,this.props.handle,O)||this.props.cancel&&(0,w.matchesSelectorAndParentsTo)(P.target,this.props.cancel,O))return;P.type!=="touchstart"||this.props.allowMobileScroll||P.preventDefault();const z=(0,w.getTouchIdentifier)(P);this.touchIdentifier=z;const A=(0,E.getControlPosition)(P,z,this);if(A==null)return;const{x:D,y:F}=A,B=(0,E.createCoreData)(this,D,F);(0,R.default)("DraggableCore: handleDragStart: %j",B),(0,R.default)("calling",this.props.onStart),this.props.onStart(P,B)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,w.addUserSelectStyles)(I),this.dragging=!0,this.lastX=D,this.lastY=F,(0,w.addEvent)(I,S.move,this.handleDrag),(0,w.addEvent)(I,S.stop,this.handleDragStop))}),L(this,"handleDrag",P=>{const O=(0,E.getControlPosition)(P,this.touchIdentifier,this);if(O==null)return;let{x:I,y:z}=O;if(Array.isArray(this.props.grid)){let D=I-this.lastX,F=z-this.lastY;if([D,F]=(0,E.snapToGrid)(this.props.grid,D,F),!D&&!F)return;I=this.lastX+D,z=this.lastY+F}const A=(0,E.createCoreData)(this,I,z);if((0,R.default)("DraggableCore: handleDrag: %j",A),this.props.onDrag(P,A)!==!1&&this.mounted!==!1)this.lastX=I,this.lastY=z;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const D=document.createEvent("MouseEvents");D.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(D)}}),L(this,"handleDragStop",P=>{if(!this.dragging)return;const O=(0,E.getControlPosition)(P,this.touchIdentifier,this);if(O==null)return;let{x:I,y:z}=O;if(Array.isArray(this.props.grid)){let F=I-this.lastX||0,B=z-this.lastY||0;[F,B]=(0,E.snapToGrid)(this.props.grid,F,B),I=this.lastX+F,z=this.lastY+B}const A=(0,E.createCoreData)(this,I,z);if(this.props.onStop(P,A)===!1||this.mounted===!1)return!1;const D=this.findDOMNode();D&&this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(D.ownerDocument),(0,R.default)("DraggableCore: handleDragStop: %j",A),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,D&&((0,R.default)("DraggableCore: Removing handlers"),(0,w.removeEvent)(D.ownerDocument,S.move,this.handleDrag),(0,w.removeEvent)(D.ownerDocument,S.stop,this.handleDragStop))}),L(this,"onMouseDown",P=>(S=j,this.handleDragStart(P))),L(this,"onMouseUp",P=>(S=j,this.handleDragStop(P))),L(this,"onTouchStart",P=>(S=T,this.handleDragStart(P))),L(this,"onTouchEnd",P=>(S=T,this.handleDragStop(P)))}componentDidMount(){this.mounted=!0;const P=this.findDOMNode();P&&(0,w.addEvent)(P,T.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const P=this.findDOMNode();if(P){const{ownerDocument:O}=P;(0,w.removeEvent)(O,j.move,this.handleDrag),(0,w.removeEvent)(O,T.move,this.handleDrag),(0,w.removeEvent)(O,j.stop,this.handleDragStop),(0,w.removeEvent)(O,T.stop,this.handleDragStop),(0,w.removeEvent)(P,T.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,w.scheduleRemoveUserSelectStyles)(O)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:b.default.findDOMNode(this)}render(){return x.cloneElement(x.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return L0.default=k,L(k,"displayName","DraggableCore"),L(k,"propTypes",{allowAnyClick:v.default.bool,allowMobileScroll:v.default.bool,children:v.default.node.isRequired,disabled:v.default.bool,enableUserSelectHack:v.default.bool,offsetParent:function(P,O){if(P[O]&&P[O].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:v.default.arrayOf(v.default.number),handle:v.default.string,cancel:v.default.string,nodeRef:v.default.object,onStart:v.default.func,onDrag:v.default.func,onStop:v.default.func,onMouseDown:v.default.func,scale:v.default.number,className:C.dontSetMe,style:C.dontSetMe,transform:C.dontSetMe}),L(k,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),L0}()),f=h(k8());function h(x){return x&&x.__esModule?x:{default:x}}function g(){return g=Object.assign?Object.assign.bind():function(x){for(var v=1;v<arguments.length;v++){var b=arguments[v];for(var w in b)({}).hasOwnProperty.call(b,w)&&(x[w]=b[w])}return x},g.apply(null,arguments)}function m(x,v,b){return(v=typeof(w=function(E){if(typeof E!="object"||!E)return E;var C=E[Symbol.toPrimitive];if(C!==void 0){var R=C.call(E,"string");if(typeof R!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(E)}(v))=="symbol"?w:w+"")in x?Object.defineProperty(x,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):x[v]=b,x;var w}class y extends o.Component{static getDerivedStateFromProps(v,b){let{position:w}=v,{prevPropsPosition:E}=b;return!w||E&&w.x===E.x&&w.y===E.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:w,prevPropsPosition:E}),{x:w.x,y:w.y,prevPropsPosition:{...w}})}constructor(v){super(v),m(this,"onDragStart",(b,w)=>{if((0,f.default)("Draggable: onDragStart: %j",w),this.props.onStart(b,(0,c.createDraggableData)(this,w))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),m(this,"onDrag",(b,w)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",w);const E=(0,c.createDraggableData)(this,w),C={x:E.x,y:E.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:_}=C;C.x+=this.state.slackX,C.y+=this.state.slackY;const[L,T]=(0,c.getBoundPosition)(this,C.x,C.y);C.x=L,C.y=T,C.slackX=this.state.slackX+(R-C.x),C.slackY=this.state.slackY+(_-C.y),E.x=C.x,E.y=C.y,E.deltaX=C.x-this.state.x,E.deltaY=C.y-this.state.y}if(this.props.onDrag(b,E)===!1)return!1;this.setState(C)}),m(this,"onDragStop",(b,w)=>{if(!this.state.dragging||this.props.onStop(b,(0,c.createDraggableData)(this,w))===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",w);const E={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:C,y:R}=this.props.position;E.x=C,E.y=R}this.setState(E)}),this.state={dragging:!1,dragged:!1,x:v.position?v.position.x:v.defaultPosition.x,y:v.position?v.position.y:v.defaultPosition.y,prevPropsPosition:{...v.position},slackX:0,slackY:0,isElementSVG:!1},!v.position||v.onDrag||v.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??i.default.findDOMNode(this)}render(){const{axis:v,bounds:b,children:w,defaultPosition:E,defaultClassName:C,defaultClassNameDragging:R,defaultClassNameDragged:_,position:L,positionOffset:T,scale:j,...S}=this.props;let k={},P=null;const O=!L||this.state.dragging,I=L||E,z={x:(0,c.canDragX)(this)&&O?this.state.x:I.x,y:(0,c.canDragY)(this)&&O?this.state.y:I.y};this.state.isElementSVG?P=(0,l.createSVGTransform)(z,T):k=(0,l.createCSSTransform)(z,T);const A=(0,a.clsx)(w.props.className||"",C,{[R]:this.state.dragging,[_]:this.state.dragged});return o.createElement(p.default,g({},S,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(w),{className:A,style:{...w.props.style,...k},transform:P}))}}n.default=y,m(y,"displayName","Draggable"),m(y,"propTypes",{...p.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),m(y,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(m8)),m8);return A0.exports=e,A0.exports.default=e,A0.exports.DraggableCore=t,A0.exports}();const fA=jb(hA),E8={x:0,y:0},mA=u.memo(u.forwardRef((e,t)=>{const{defaultPosition:n=E8,PaperComponent:o=Mi,onDragStop:r,rootSel:i=".MuiModal-root",handleSel:a=".draggable-title",titleSize:l,rootSize:c,...d}=e,p=u.useRef(null),f=u.useMemo(()=>l&&c?{left:0,top:0,right:c.width-l.width,bottom:c.height-l.height}:null,[l,c]),[h,g]=u.useState(null),[m,y]=u.useState(null),[x,v]=u.useState(null);return u.useLayoutEffect(()=>{!h&&n&&g(n??E8)},[n]),u.useEffect(()=>{f&&h&&y({x:Math.max(0,Math.min(h.x,f.right)),y:Math.max(0,Math.min(h.y,f.bottom))})},[h,f]),s.jsx(fA,{nodeRef:p,handle:a,cancel:'[class*="MuiDialogContent-root"]',position:m,bounds:f??".MuiModal-root",onStop:r,onStart:(b,w)=>{const E=b;v({x:(E.clientX??E.touches?.[0]?.clientX)-w.x,y:(E.clientY??E.touches?.[0]?.clientY)-w.y})},onDrag:(b,w)=>{const E=b,C=E.clientX??E.touches?.[0]?.clientX,R=E.clientY??E.touches?.[0]?.clientY;g({x:C-x.x,y:R-x.y})},children:s.jsx(o,{ref:G3([p,t]),...d})})})),gA={x:"50",y:"50"},Lv=u.memo(e=>{const t=function({props:le,name:ee}){return function({props:Pe,name:Te,defaultTheme:rt,themeId:Ve}){let Ee=function(Re=iP){return function(Xe=null){const Be=G.useContext(Qs);return Be&&(ct=Be,Object.keys(ct).length!==0)?Be:Xe;var ct}(Re)}(rt);return Ee=Ee[Ve]||Ee,xP({theme:Ee,name:Te,props:Pe})}({props:le,name:ee,defaultTheme:F3,themeId:R3})}({props:e,name:"MuiDialog"}),n=B3(),o={enter:.66*n.transitions.duration.enteringScreen,exit:.66*n.transitions.duration.leavingScreen},{title:r="SheetXL",key:i="draggable-window",onCancel:a,onDone:l,onShow:c,onShown:d,onHide:p,refWindow:f,open:h,autoFocusSel:g,children:m,TransitionComponent:y=Sx,TransitionProps:x,transitionDuration:v=o,BackdropComponent:b=Cx,BackdropProps:w,PaperComponent:E=Mi,PaperProps:C,onBackdropClick:R,sx:_,className:L,onMouseDown:T,initialPosition:j=gA,isModal:S=!1,...k}=t,P=u.useRef(null),[O,I]=u.useState(null),[z,A]=u.useState(!1),[D,F]=u.useState(!1),B=u.useRef(null),[M,N]=Y7(),V=u.useRef(null),[U,J]=Y7(),X=u.useRef(null);u.useEffect(()=>{O&&A(h)},[h,O]);const H=Cn(()=>{a?.(),A(!1)},[a]);u.useEffect(()=>{if(N.width===0&&N.height===0||O)return;const le=X.current?.getBoundingClientRect(),ee=N.height-le.height,Pe=N.width-le.width;let Te=.5*Pe,rt=.5*ee;typeof j?.x=="number"?Te=j.x:typeof j?.x=="string"&&(Te=Pe*(parseFloat(j.x)/100)),typeof j?.y=="number"?rt=j.y:typeof j?.y=="string"&&(rt=ee*(parseFloat(j.y)/100)),I({x:Te,y:rt})},[N,J]);const[ne,oe]=u.useState(!1),[ye,de]=u.useState(null),[xe,we]=u.useState(null),ve=Cn(le=>{if(ye)return ye.focus(le),!0;if(g){const ee=V.current?.querySelectorAll?.(g);if(ee&&ee.length>0)return ee[0]?.focus?.(le),!0}return V.current?.focus?.(le),!1},[ye,g]),re=E2(f,()=>({focus:le=>{ve(le)}}),[]),ce={...x,onExited:le=>{l?.(null),x?.onExited?.(le)},onExit:le=>{const ee=xe;ee&&requestAnimationFrame(()=>{re.current?.contains(document.activeElement)&&ee.focus()}),p?.(),F(!1),x?.onExit?.(le)},onEntered:(le,ee)=>{c?.(),x?.onEntered?.(le,ee)},onEntering:(le,ee)=>{F(!0),d?.(re.current)}};u.useEffect(()=>{D&&ve()},[D]);const Se=s.jsx(pA,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:P,active:D,children:s.jsx(y,{in:z,timeout:v,role:"presentation",...ce,children:s.jsx(Le,{className:"MuiDialog-container",ref:V,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:le=>{le.which===xr.Escape&&(H(),B.current?.start(le,{center:!1}),setTimeout(()=>B.current?.stop(le),180)),le.stopPropagation()},children:s.jsxs(mA,{className:rr({"Mui-focusVisible":ne},L),sx:{"& *":le=>Y3(le),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:le=>`solid ${pt(le.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:le=>`solid ${pt(le.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",..._},defaultPosition:O,ref:X,titleSize:J,rootSize:N,PaperComponent:E,...k,...C,children:[r?s.jsx(Mx,{className:rr({"Mui-selected":ne},"draggable-title"),sx:{cursor:"move",display:"flex",color:le=>le.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:le=>`${le.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:le=>le.transitions.duration.shortest/2+"ms"},backgroundColor:le=>pt(le.palette.action.hover,.03)},ref:U,children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:le=>le.spacing(1),marginLeft:le=>le.spacing(1),marginRight:le=>le.spacing(1)},children:[s.jsx(Le,{sx:{flex:"1 1 100%",paddingLeft:le=>le.spacing(1)},children:r}),s.jsx(br,{label:"Close",children:s.jsx(Tr,{"aria-label":"close",sx:{color:le=>le.palette.text.icon??le.palette.action.active},touchRippleRef:B,onPointerDown:le=>{B.current?.start(le,{center:!1}),le.stopPropagation(),le.preventDefault()},onPointerUp:H,children:s.jsx(E3,{})})})]})}):null,m]})})})});let ie=null;S&&(ie=s.jsx(b,{...w,open:z,onMouseDown:le=>{H(),w?.onMouseDown?.(le)},onClick:le=>{R?.(le),w?.onClick?.(le)},sx:{pointerEvents:"auto",...w?.sx}}));const{getPortalContainer:Y}=W3();return yo.createPortal(s.jsxs(Le,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:G3([re,M]),onPointerDown:le=>{ne&&(le.target===V.current||le.target.tabIndex<0)&&V.current?.contains(document.activeElement)},onContextMenu:le=>{le.isPropagationStopped()||le.preventDefault()},onFocus:le=>{!ne&&(le.target===V.current||le.target.tabIndex<0)&&setTimeout(()=>{ve()},100),P.current?.focusTrap?.unpause(),oe(!0),V.current?.contains(le.target)&&le.target!==V.current&&de(le.target),le.relatedTarget&&!xe&&we(le.relatedTarget)},onBlur:le=>{re?.current?.contains(le.relatedTarget)||(we(null),P.current?.focusTrap?.pause(),oe(!1))},children:[ie,Se]}),Y(),i+"")});var Ei=typeof window<"u"?window:{screen:{},navigator:{}},Ks=(Ei.matchMedia||function(){return{matches:!1}}).bind(Ei),yA={get passive(){return!0}},M8=function(){};Ei.addEventListener&&Ei.addEventListener("p",M8,yA),Ei.removeEventListener&&Ei.removeEventListener("p",M8,!1);var Q3="ontouchstart"in Ei,xA=Q3||"TouchEvent"in Ei&&Ks("(any-pointer: coarse)").matches,T8=(Ei.navigator.maxTouchPoints||0)>0||xA,zv=Ei.navigator.userAgent||"",bA=Ks("(pointer: coarse)").matches&&/iPad|Macintosh/.test(zv)&&Math.min(Ei.screen.width||0,Ei.screen.height||0)>=768,Fv=(Ks("(pointer: coarse)").matches||!Ks("(pointer: fine)").matches&&Q3)&&!/Windows.*Firefox/.test(zv),vA=Ks("(any-pointer: fine)").matches||Ks("(any-hover: hover)").matches||bA||!Q3,_8=!T8||!vA&&Fv?T8?"touchOnly":"mouseOnly":"hybrid",wA=_8==="mouseOnly"?"mouse":_8==="touchOnly"||Fv?"touch":"mouse",wc=e=>e.type==="checkbox",kl=e=>e instanceof Date,Lr=e=>e==null;const Bv=e=>typeof e=="object";var Zo=e=>!Lr(e)&&!Array.isArray(e)&&Bv(e)&&!kl(e),ef=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function Cr(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(ef&&(e instanceof Blob||o)||!n&&!Zo(e))return e;if(t=n?[]:{},n||(r=>{const i=r.constructor&&r.constructor.prototype;return Zo(i)&&i.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=Cr(e[r]));else t=e}return t}var T2=e=>/^\w*$/.test(e),Jo=e=>e===void 0,vh=e=>Array.isArray(e)?e.filter(Boolean):[],tf=e=>vh(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Gt=(e,t,n)=>{if(!t||!Zo(e))return n;const o=(T2(t)?[t]:tf(t)).reduce((r,i)=>Lr(r)?r:r[i],e);return Jo(o)||o===e?Jo(e[t])?n:e[t]:o},na=e=>typeof e=="boolean",xo=(e,t,n)=>{let o=-1;const r=T2(t)?[t]:tf(t),i=r.length,a=i-1;for(;++o<i;){const l=r[o];let c=n;if(o!==a){const d=e[l];c=Zo(d)||Array.isArray(d)?d:isNaN(+r[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const Nv="onChange",$v="onSubmit",nc="all",j8="pattern",R8="required",Vv=u.createContext(null);Vv.displayName="HookFormContext";const SA=e=>{const{children:t,...n}=e;return u.createElement(Vv.Provider,{value:n},t)},CA=typeof window<"u"?G.useLayoutEffect:G.useEffect;var la=e=>typeof e=="string",kA=(e,t,n,o,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[o]:r||!0}}:{},oc=e=>Array.isArray(e)?e:[e],I8=()=>{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=[]}}},wh=e=>Lr(e)||!Bv(e);function Ua(e,t){if(wh(e)||wh(t))return e===t;if(kl(e)&&kl(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 a=t[r];if(kl(i)&&kl(a)||Zo(i)&&Zo(a)||Array.isArray(i)&&Array.isArray(a)?!Ua(i,a):i!==a)return!1}}return!0}var $r=e=>Zo(e)&&!Object.keys(e).length,nf=e=>e.type==="file",Ni=e=>typeof e=="function",Pu=e=>{if(!ef)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Hv=e=>e.type==="select-multiple",of=e=>e.type==="radio",Fp=e=>Pu(e)&&e.isConnected;function nr(e,t){const n=Array.isArray(t)?t:T2(t)?[t]:tf(t),o=n.length===1?e:function(a,l){const c=l.slice(0,-1).length;let d=0;for(;d<c;)a=Jo(a)?d++:a[l[d++]];return a}(e,n),r=n.length-1,i=n[r];return o&&delete o[i],r!==0&&(Zo(o)&&$r(o)||Array.isArray(o)&&function(a){for(const l in a)if(a.hasOwnProperty(l)&&!Jo(a[l]))return!1;return!0}(o))&&nr(e,n.slice(0,-1)),e}var Wv=e=>{for(const t in e)if(Ni(e[t]))return!0;return!1};function Ou(e,t={}){const n=Array.isArray(e);if(Zo(e)||n)for(const o in e)Array.isArray(e[o])||Zo(e[o])&&!Wv(e[o])?(t[o]=Array.isArray(e[o])?[]:{},Ou(e[o],t[o])):Lr(e[o])||(t[o]=!0);return t}function Uv(e,t,n){const o=Array.isArray(e);if(Zo(e)||o)for(const r in e)Array.isArray(e[r])||Zo(e[r])&&!Wv(e[r])?Jo(t)||wh(n[r])?n[r]=Array.isArray(e[r])?Ou(e[r],[]):{...Ou(e[r])}:Uv(e[r],Lr(t)?{}:t[r],n[r]):n[r]=!Ua(e[r],t[r]);return n}var z0=(e,t)=>Uv(e,t,Ou(t));const P8={value:!1,isValid:!1},O8={value:!0,isValid:!0};var qv=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&&!Jo(e[0].attributes.value)?Jo(e[0].value)||e[0].value===""?O8:{value:e[0].value,isValid:!0}:O8:P8}return P8},Kv=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:o})=>Jo(e)?e:t?e===""?NaN:e&&+e:n&&la(e)?new Date(e):o?o(e):e;const D8={isValid:!1,value:null};var Gv=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,D8):D8;function A8(e){const t=e.ref;return nf(t)?t.files:of(t)?Gv(e.refs).value:Hv(t)?[...t.selectedOptions].map(({value:n})=>n):wc(t)?qv(e.refs).value:Kv(Jo(t.value)?e.ref.value:t.value,e)}var Du=e=>e instanceof RegExp,F0=e=>Jo(e)?e:Du(e)?e.source:Zo(e)?Du(e.value)?e.value.source:e.value:e,L8=e=>({isOnSubmit:!e||e===$v,isOnBlur:e==="onBlur",isOnChange:e===Nv,isOnAll:e===nc,isOnTouch:e==="onTouched"});const z8="AsyncFunction";var EA=e=>!!e&&!!e.validate&&!!(Ni(e.validate)&&e.validate.constructor.name===z8||Zo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===z8)),F8=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(o=>e.startsWith(o)&&/^\.\w+/.test(e.slice(o.length))));const Sc=(e,t,n,o)=>{for(const r of n||Object.keys(e)){const i=Gt(e,r);if(i){const{_f:a,...l}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],r)&&!o||a.ref&&t(a.ref,a.name)&&!o)return!0;if(Sc(l,t))break}else if(Zo(l)&&Sc(l,t))break}}};function B8(e,t,n){const o=Gt(e,n);if(o||T2(n))return{error:o,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),a=Gt(t,i),l=Gt(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};r.pop()}return{name:n}}var MA=(e,t,n)=>{const o=oc(Gt(e,n));return xo(o,"root",t[n]),xo(e,n,o),e},Zd=e=>la(e);function N8(e,t,n="validate"){if(Zd(e)||Array.isArray(e)&&e.every(Zd)||na(e)&&!e)return{type:n,message:Zd(e)?e:"",ref:t}}var rs=e=>Zo(e)&&!Du(e)?e:{value:e,message:""},$8=async(e,t,n,o,r,i)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:p,min:f,max:h,pattern:g,validate:m,name:y,valueAsNumber:x,mount:v}=e._f,b=Gt(n,y);if(!v||t.has(y))return{};const w=l?l[0]:a,E=k=>{r&&w.reportValidity&&(w.setCustomValidity(na(k)?"":k||""),w.reportValidity())},C={},R=of(a),_=wc(a),L=R||_,T=(x||nf(a))&&Jo(a.value)&&Jo(b)||Pu(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,j=kA.bind(null,y,o,C),S=(k,P,O,I="maxLength",z="minLength")=>{const A=k?P:O;C[y]={type:k?I:z,message:A,ref:a,...j(k?I:z,A)}};if(i?!Array.isArray(b)||!b.length:c&&(!L&&(T||Lr(b))||na(b)&&!b||_&&!qv(l).isValid||R&&!Gv(l).isValid)){const{value:k,message:P}=Zd(c)?{value:!!c,message:c}:rs(c);if(k&&(C[y]={type:R8,message:P,ref:w,...j(R8,P)},!o))return E(P),C}if(!(T||Lr(f)&&Lr(h))){let k,P;const O=rs(h),I=rs(f);if(Lr(b)||isNaN(b)){const z=a.valueAsDate||new Date(b),A=B=>new Date(new Date().toDateString()+" "+B),D=a.type=="time",F=a.type=="week";la(O.value)&&b&&(k=D?A(b)>A(O.value):F?b>O.value:z>new Date(O.value)),la(I.value)&&b&&(P=D?A(b)<A(I.value):F?b<I.value:z<new Date(I.value))}else{const z=a.valueAsNumber||b&&+b;Lr(O.value)||(k=z>O.value),Lr(I.value)||(P=z<I.value)}if((k||P)&&(S(!!k,O.message,I.message,"max","min"),!o))return E(C[y].message),C}if((d||p)&&!T&&(la(b)||i&&Array.isArray(b))){const k=rs(d),P=rs(p),O=!Lr(k.value)&&b.length>+k.value,I=!Lr(P.value)&&b.length<+P.value;if((O||I)&&(S(O,k.message,P.message),!o))return E(C[y].message),C}if(g&&!T&&la(b)){const{value:k,message:P}=rs(g);if(Du(k)&&!b.match(k)&&(C[y]={type:j8,message:P,ref:a,...j(j8,P)},!o))return E(P),C}if(m){if(Ni(m)){const k=N8(await m(b,n),w);if(k&&(C[y]={...k,...j("validate",k.message)},!o))return E(k.message),C}else if(Zo(m)){let k={};for(const P in m){if(!$r(k)&&!o)break;const O=N8(await m[P](b,n),w,P);O&&(k={...O,...j(P,O.message)},E(O.message),o&&(C[y]=k))}if(!$r(k)&&(C[y]={ref:w,...k},!o))return C}}return E(!0),C};const TA={mode:$v,reValidateMode:Nv,shouldFocusError:!0},_A=["Ok","Cancel"],Sh=e=>{const{description:t,icon:n,onCancel:o,onOption:r,onDone:i,onValidateOption:a,createOptionsButton:l,options:c=_A,autoFocusSel:d=".defaultOption",defaultOption:p=c[0],cancelOption:f="Cancel",children:h,...g}=e,m=function(j={}){const S=u.useRef(void 0),k=u.useRef(void 0),[P,O]=u.useState({isDirty:!1,isValidating:!1,isLoading:Ni(j.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:j.errors||{},disabled:j.disabled||!1,isReady:!1,defaultValues:Ni(j.defaultValues)?void 0:j.defaultValues});if(!S.current)if(j.formControl)S.current={...j.formControl,formState:P},j.defaultValues&&!Ni(j.defaultValues)&&j.formControl.reset(j.defaultValues,j.resetOptions);else{const{formControl:z,...A}=function(D={}){let F={...TA,...D},B={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ni(F.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:F.errors||{},disabled:F.disabled||!1};const M={};let N,V=(Zo(F.defaultValues)||Zo(F.values))&&Cr(F.defaultValues||F.values)||{},U=F.shouldUnregister?{}:Cr(V),J={action:!1,mount:!1,watch:!1},X={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},H=0;const ne={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let oe={...ne};const ye={array:I8(),state:I8()},de=F.criteriaMode===nc,xe=async W=>{if(!F.disabled&&(ne.isValid||oe.isValid||W)){const Q=F.resolver?$r((await ce()).errors):await Se(M,!0);Q!==B.isValid&&ye.state.next({isValid:Q})}},we=(W,Q)=>{!F.disabled&&(ne.isValidating||ne.validatingFields||oe.isValidating||oe.validatingFields)&&((W||Array.from(X.mount)).forEach(K=>{K&&(Q?xo(B.validatingFields,K,Q):nr(B.validatingFields,K))}),ye.state.next({validatingFields:B.validatingFields,isValidating:!$r(B.validatingFields)}))},ve=(W,Q,K,se)=>{const te=Gt(M,W);if(te){const ae=Gt(U,W,Jo(K)?Gt(V,W):K);Jo(ae)||se&&se.defaultChecked||Q?xo(U,W,Q?ae:A8(te._f)):le(W,ae),J.mount&&xe()}},re=(W,Q,K,se,te)=>{let ae=!1,pe=!1;const me={name:W};if(!F.disabled){if(!K||se){(ne.isDirty||oe.isDirty)&&(pe=B.isDirty,B.isDirty=me.isDirty=ie(),ae=pe!==me.isDirty);const fe=Ua(Gt(V,W),Q);pe=!!Gt(B.dirtyFields,W),fe?nr(B.dirtyFields,W):xo(B.dirtyFields,W,!0),me.dirtyFields=B.dirtyFields,ae=ae||(ne.dirtyFields||oe.dirtyFields)&&pe!==!fe}if(K){const fe=Gt(B.touchedFields,W);fe||(xo(B.touchedFields,W,K),me.touchedFields=B.touchedFields,ae=ae||(ne.touchedFields||oe.touchedFields)&&fe!==K)}ae&&te&&ye.state.next(me)}return ae?me:{}},ce=async W=>{we(W,!0);const Q=await F.resolver(U,F.context,((K,se,te,ae)=>{const pe={};for(const me of K){const fe=Gt(se,me);fe&&xo(pe,me,fe._f)}return{criteriaMode:te,names:[...K],fields:pe,shouldUseNativeValidation:ae}})(W||X.mount,M,F.criteriaMode,F.shouldUseNativeValidation));return we(W),Q},Se=async(W,Q,K={valid:!0})=>{for(const se in W){const te=W[se];if(te){const{_f:ae,...pe}=te;if(ae){const me=X.array.has(ae.name),fe=te._f&&EA(te._f);fe&&ne.validatingFields&&we([se],!0);const je=await $8(te,X.disabled,U,de,F.shouldUseNativeValidation&&!Q,me);if(fe&&ne.validatingFields&&we([se]),je[ae.name]&&(K.valid=!1,Q))break;!Q&&(Gt(je,ae.name)?me?MA(B.errors,je,ae.name):xo(B.errors,ae.name,je[ae.name]):nr(B.errors,ae.name))}!$r(pe)&&await Se(pe,Q,K)}}return K.valid},ie=(W,Q)=>!F.disabled&&(W&&Q&&xo(U,W,Q),!Ua(Ee(),V)),Y=(W,Q,K)=>{return se=W,te=X,ae={...J.mount?U:Jo(Q)?V:la(W)?{[W]:Q}:Q},pe=K,me=Q,la(se)?(pe&&te.watch.add(se),Gt(ae,se,me)):Array.isArray(se)?se.map(fe=>(pe&&te.watch.add(fe),Gt(ae,fe))):(pe&&(te.watchAll=!0),ae);var se,te,ae,pe,me},le=(W,Q,K={})=>{const se=Gt(M,W);let te=Q;if(se){const ae=se._f;ae&&(!ae.disabled&&xo(U,W,Kv(Q,ae)),te=Pu(ae.ref)&&Lr(Q)?"":Q,Hv(ae.ref)?[...ae.ref.options].forEach(pe=>pe.selected=te.includes(pe.value)):ae.refs?wc(ae.ref)?ae.refs.forEach(pe=>{pe.defaultChecked&&pe.disabled||(Array.isArray(te)?pe.checked=!!te.find(me=>me===pe.value):pe.checked=te===pe.value||!!te)}):ae.refs.forEach(pe=>pe.checked=pe.value===te):nf(ae.ref)?ae.ref.value="":(ae.ref.value=te,ae.ref.type||ye.state.next({name:W,values:Cr(U)})))}(K.shouldDirty||K.shouldTouch)&&re(W,te,K.shouldTouch,K.shouldDirty,!0),K.shouldValidate&&Ve(W)},ee=(W,Q,K)=>{for(const se in Q){if(!Q.hasOwnProperty(se))return;const te=Q[se],ae=W+"."+se,pe=Gt(M,ae);(X.array.has(W)||Zo(te)||pe&&!pe._f)&&!kl(te)?ee(ae,te,K):le(ae,te,K)}},Pe=(W,Q,K={})=>{const se=Gt(M,W),te=X.array.has(W),ae=Cr(Q);xo(U,W,ae),te?(ye.array.next({name:W,values:Cr(U)}),(ne.isDirty||ne.dirtyFields||oe.isDirty||oe.dirtyFields)&&K.shouldDirty&&ye.state.next({name:W,dirtyFields:z0(V,U),isDirty:ie(W,ae)})):!se||se._f||Lr(ae)?le(W,ae,K):ee(W,ae,K),F8(W,X)&&ye.state.next({...B}),ye.state.next({name:J.mount?W:void 0,values:Cr(U)})},Te=async W=>{J.mount=!0;const Q=W.target;let K=Q.name,se=!0;const te=Gt(M,K),ae=Fe=>{se=Number.isNaN(Fe)||kl(Fe)&&isNaN(Fe.getTime())||Ua(Fe,Gt(U,K,Fe))},pe=L8(F.mode),me=L8(F.reValidateMode);if(te){let Fe,Ge;const et=Q.type?A8(te._f):Zo(je=W)&&je.target?wc(je.target)?je.target.checked:je.target.value:je,tt=W.type==="blur"||W.type==="focusout",it=!((fe=te._f).mount&&(fe.required||fe.min||fe.max||fe.maxLength||fe.minLength||fe.pattern||fe.validate)||F.resolver||Gt(B.errors,K)||te._f.deps)||(($t,nn,Zt,Tn,pn)=>!pn.isOnAll&&(!Zt&&pn.isOnTouch?!(nn||$t):(Zt?Tn.isOnBlur:pn.isOnBlur)?!$t:!(Zt?Tn.isOnChange:pn.isOnChange)||$t))(tt,Gt(B.touchedFields,K),B.isSubmitted,me,pe),At=F8(K,X,tt);xo(U,K,et),tt?(te._f.onBlur&&te._f.onBlur(W),N&&N(0)):te._f.onChange&&te._f.onChange(W);const Lt=re(K,et,tt),_t=!$r(Lt)||At;if(!tt&&ye.state.next({name:K,type:W.type,values:Cr(U)}),it)return(ne.isValid||oe.isValid)&&(F.mode==="onBlur"?tt&&xe():tt||xe()),_t&&ye.state.next({name:K,...At?{}:Lt});if(!tt&&At&&ye.state.next({...B}),F.resolver){const{errors:$t}=await ce([K]);if(ae(et),se){const nn=B8(B.errors,M,K),Zt=B8($t,M,nn.name||K);Fe=Zt.error,K=Zt.name,Ge=$r($t)}}else we([K],!0),Fe=(await $8(te,X.disabled,U,de,F.shouldUseNativeValidation))[K],we([K]),ae(et),se&&(Fe?Ge=!1:(ne.isValid||oe.isValid)&&(Ge=await Se(M,!0)));se&&(te._f.deps&&Ve(te._f.deps),(($t,nn,Zt,Tn)=>{const pn=Gt(B.errors,$t),En=(ne.isValid||oe.isValid)&&na(nn)&&B.isValid!==nn;var kt;if(F.delayError&&Zt?(kt=()=>{return on=$t,mn=Zt,xo(B.errors,on,mn),void ye.state.next({errors:B.errors});var on,mn},N=on=>{clearTimeout(H),H=setTimeout(kt,on)},N(F.delayError)):(clearTimeout(H),N=null,Zt?xo(B.errors,$t,Zt):nr(B.errors,$t)),(Zt?!Ua(pn,Zt):pn)||!$r(Tn)||En){const on={...Tn,...En&&na(nn)?{isValid:nn}:{},errors:B.errors,name:$t};B={...B,...on},ye.state.next(on)}})(K,Ge,Fe,Lt))}var fe,je},rt=(W,Q)=>{if(Gt(B.errors,Q)&&W.focus)return W.focus(),1},Ve=async(W,Q={})=>{let K,se;const te=oc(W);if(F.resolver){const ae=await(async pe=>{const{errors:me}=await ce(pe);if(pe)for(const fe of pe){const je=Gt(me,fe);je?xo(B.errors,fe,je):nr(B.errors,fe)}else B.errors=me;return me})(Jo(W)?W:te);K=$r(ae),se=W?!te.some(pe=>Gt(ae,pe)):K}else W?(se=(await Promise.all(te.map(async ae=>{const pe=Gt(M,ae);return await Se(pe&&pe._f?{[ae]:pe}:pe)}))).every(Boolean),(se||B.isValid)&&xe()):se=K=await Se(M);return ye.state.next({...!la(W)||(ne.isValid||oe.isValid)&&K!==B.isValid?{}:{name:W},...F.resolver||!W?{isValid:K}:{},errors:B.errors}),Q.shouldFocus&&!se&&Sc(M,rt,W?te:X.mount),se},Ee=W=>{const Q={...J.mount?U:V};return Jo(W)?Q:la(W)?Gt(Q,W):W.map(K=>Gt(Q,K))},Re=(W,Q)=>({invalid:!!Gt((Q||B).errors,W),isDirty:!!Gt((Q||B).dirtyFields,W),error:Gt((Q||B).errors,W),isValidating:!!Gt(B.validatingFields,W),isTouched:!!Gt((Q||B).touchedFields,W)}),Xe=(W,Q,K)=>{const se=(Gt(M,W,{_f:{}})._f||{}).ref,te=Gt(B.errors,W)||{},{ref:ae,message:pe,type:me,...fe}=te;xo(B.errors,W,{...fe,...Q,ref:se}),ye.state.next({name:W,errors:B.errors,isValid:!1}),K&&K.shouldFocus&&se&&se.focus&&se.focus()},Be=W=>ye.state.subscribe({next:Q=>{var K,se,te;K=W.name,se=Q.name,te=W.exact,K&&se&&K!==se&&!oc(K).some(ae=>ae&&(te?ae===se:ae.startsWith(se)||se.startsWith(ae)))||!((ae,pe,me,fe)=>{me(ae);const{name:je,...Fe}=ae;return $r(Fe)||Object.keys(Fe).length>=Object.keys(pe).length||Object.keys(Fe).find(Ge=>pe[Ge]===(!fe||nc))})(Q,W.formState||ne,De,W.reRenderRoot)||W.callback({values:{...U},...B,...Q})}}).unsubscribe,ct=(W,Q={})=>{for(const K of W?oc(W):X.mount)X.mount.delete(K),X.array.delete(K),Q.keepValue||(nr(M,K),nr(U,K)),!Q.keepError&&nr(B.errors,K),!Q.keepDirty&&nr(B.dirtyFields,K),!Q.keepTouched&&nr(B.touchedFields,K),!Q.keepIsValidating&&nr(B.validatingFields,K),!F.shouldUnregister&&!Q.keepDefaultValue&&nr(V,K);ye.state.next({values:Cr(U)}),ye.state.next({...B,...Q.keepDirty?{isDirty:ie()}:{}}),!Q.keepIsValid&&xe()},Qe=({disabled:W,name:Q})=>{(na(W)&&J.mount||W||X.disabled.has(Q))&&(W?X.disabled.add(Q):X.disabled.delete(Q))},he=(W,Q={})=>{let K=Gt(M,W);const se=na(Q.disabled)||na(F.disabled);return xo(M,W,{...K||{},_f:{...K&&K._f?K._f:{ref:{name:W}},name:W,mount:!0,...Q}}),X.mount.add(W),K?Qe({disabled:na(Q.disabled)?Q.disabled:F.disabled,name:W}):ve(W,!0,Q.value),{...se?{disabled:Q.disabled||F.disabled}:{},...F.progressive?{required:!!Q.required,min:F0(Q.min),max:F0(Q.max),minLength:F0(Q.minLength),maxLength:F0(Q.maxLength),pattern:F0(Q.pattern)}:{},name:W,onChange:Te,onBlur:Te,ref:te=>{if(te){he(W,Q),K=Gt(M,W);const je=Jo(te.value)&&te.querySelectorAll&&te.querySelectorAll("input,select,textarea")[0]||te,Fe=of(fe=je)||wc(fe),Ge=K._f.refs||[];if(Fe?Ge.find(et=>et===je):je===K._f.ref)return;xo(M,W,{_f:{...K._f,...Fe?{refs:[...Ge.filter(Fp),je,...Array.isArray(Gt(V,W))?[{}]:[]],ref:{type:je.type,name:W}}:{ref:je}}}),ve(W,!1,void 0,je)}else K=Gt(M,W,{}),K._f&&(K._f.mount=!1),(F.shouldUnregister||Q.shouldUnregister)&&(ae=X.array,pe=W,!ae.has((me=pe).substring(0,me.search(/\.\d+(\.|$)/))||me)||!J.action)&&X.unMount.add(W);var ae,pe,me,fe}}},Ye=()=>F.shouldFocusError&&Sc(M,rt,X.mount),ke=(W,Q)=>async K=>{let se;K&&(K.preventDefault&&K.preventDefault(),K.persist&&K.persist());let te=Cr(U);if(ye.state.next({isSubmitting:!0}),F.resolver){const{errors:ae,values:pe}=await ce();B.errors=ae,te=pe}else await Se(M);if(X.disabled.size)for(const ae of X.disabled)xo(te,ae,void 0);if(nr(B.errors,"root"),$r(B.errors)){ye.state.next({errors:{}});try{await W(te,K)}catch(ae){se=ae}}else Q&&await Q({...B.errors},K),Ye(),setTimeout(Ye);if(ye.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$r(B.errors)&&!se,submitCount:B.submitCount+1,errors:B.errors}),se)throw se},Ie=(W,Q={})=>{const K=W?Cr(W):V,se=Cr(K),te=$r(W),ae=te?V:se;if(Q.keepDefaultValues||(V=K),!Q.keepValues){if(Q.keepDirtyValues){const pe=new Set([...X.mount,...Object.keys(z0(V,U))]);for(const me of Array.from(pe))Gt(B.dirtyFields,me)?xo(ae,me,Gt(U,me)):Pe(me,Gt(ae,me))}else{if(ef&&Jo(W))for(const pe of X.mount){const me=Gt(M,pe);if(me&&me._f){const fe=Array.isArray(me._f.refs)?me._f.refs[0]:me._f.ref;if(Pu(fe)){const je=fe.closest("form");if(je){je.reset();break}}}}for(const pe of X.mount)Pe(pe,Gt(ae,pe))}U=Cr(ae),ye.array.next({values:{...ae}}),ye.state.next({values:{...ae}})}X={mount:Q.keepDirtyValues?X.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},J.mount=!ne.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,J.watch=!!F.shouldUnregister,ye.state.next({submitCount:Q.keepSubmitCount?B.submitCount:0,isDirty:!te&&(Q.keepDirty?B.isDirty:!(!Q.keepDefaultValues||Ua(W,V))),isSubmitted:!!Q.keepIsSubmitted&&B.isSubmitted,dirtyFields:te?{}:Q.keepDirtyValues?Q.keepDefaultValues&&U?z0(V,U):B.dirtyFields:Q.keepDefaultValues&&W?z0(V,W):Q.keepDirty?B.dirtyFields:{},touchedFields:Q.keepTouched?B.touchedFields:{},errors:Q.keepErrors?B.errors:{},isSubmitSuccessful:!!Q.keepIsSubmitSuccessful&&B.isSubmitSuccessful,isSubmitting:!1})},ue=(W,Q)=>Ie(Ni(W)?W(U):W,Q),De=W=>{B={...B,...W}},Ae={control:{register:he,unregister:ct,getFieldState:Re,handleSubmit:ke,setError:Xe,_subscribe:Be,_runSchema:ce,_focusError:Ye,_getWatch:Y,_getDirty:ie,_setValid:xe,_setFieldArray:(W,Q=[],K,se,te=!0,ae=!0)=>{if(se&&K&&!F.disabled){if(J.action=!0,ae&&Array.isArray(Gt(M,W))){const fe=K(Gt(M,W),se.argA,se.argB);te&&xo(M,W,fe)}if(ae&&Array.isArray(Gt(B.errors,W))){const fe=K(Gt(B.errors,W),se.argA,se.argB);te&&xo(B.errors,W,fe),pe=B.errors,!vh(Gt(pe,me=W)).length&&nr(pe,me)}if((ne.touchedFields||oe.touchedFields)&&ae&&Array.isArray(Gt(B.touchedFields,W))){const fe=K(Gt(B.touchedFields,W),se.argA,se.argB);te&&xo(B.touchedFields,W,fe)}(ne.dirtyFields||oe.dirtyFields)&&(B.dirtyFields=z0(V,U)),ye.state.next({name:W,isDirty:ie(W,Q),dirtyFields:B.dirtyFields,errors:B.errors,isValid:B.isValid})}else xo(U,W,Q);var pe,me},_setDisabledField:Qe,_setErrors:W=>{B.errors=W,ye.state.next({errors:B.errors,isValid:!1})},_getFieldArray:W=>vh(Gt(J.mount?U:V,W,F.shouldUnregister?Gt(V,W,[]):[])),_reset:Ie,_resetDefaultValues:()=>Ni(F.defaultValues)&&F.defaultValues().then(W=>{ue(W,F.resetOptions),ye.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const W of X.unMount){const Q=Gt(M,W);Q&&(Q._f.refs?Q._f.refs.every(K=>!Fp(K)):!Fp(Q._f.ref))&&ct(W)}X.unMount=new Set},_disableForm:W=>{na(W)&&(ye.state.next({disabled:W}),Sc(M,(Q,K)=>{const se=Gt(M,K);se&&(Q.disabled=se._f.disabled||W,Array.isArray(se._f.refs)&&se._f.refs.forEach(te=>{te.disabled=se._f.disabled||W}))},0,!1))},_subjects:ye,_proxyFormState:ne,get _fields(){return M},get _formValues(){return U},get _state(){return J},set _state(W){J=W},get _defaultValues(){return V},get _names(){return X},set _names(W){X=W},get _formState(){return B},get _options(){return F},set _options(W){F={...F,...W}}},subscribe:W=>(J.mount=!0,oe={...oe,...W.formState},Be({...W,formState:oe})),trigger:Ve,register:he,handleSubmit:ke,watch:(W,Q)=>Ni(W)?ye.state.subscribe({next:K=>W(Y(void 0,Q),K)}):Y(W,Q,!0),setValue:Pe,getValues:Ee,reset:ue,resetField:(W,Q={})=>{Gt(M,W)&&(Jo(Q.defaultValue)?Pe(W,Cr(Gt(V,W))):(Pe(W,Q.defaultValue),xo(V,W,Cr(Q.defaultValue))),Q.keepTouched||nr(B.touchedFields,W),Q.keepDirty||(nr(B.dirtyFields,W),B.isDirty=Q.defaultValue?ie(W,Cr(Gt(V,W))):ie()),Q.keepError||(nr(B.errors,W),ne.isValid&&xe()),ye.state.next({...B}))},clearErrors:W=>{W&&oc(W).forEach(Q=>nr(B.errors,Q)),ye.state.next({errors:W?B.errors:{}})},unregister:ct,setError:Xe,setFocus:(W,Q={})=>{const K=Gt(M,W),se=K&&K._f;if(se){const te=se.refs?se.refs[0]:se.ref;te.focus&&(te.focus(),Q.shouldSelect&&Ni(te.select)&&te.select())}},getFieldState:Re};return{...Ae,formControl:Ae}}(j);S.current={...A,formState:P}}const I=S.current.control;return I._options=j,CA(()=>{const z=I._subscribe({formState:I._proxyFormState,callback:()=>O({...I._formState}),reRenderRoot:!0});return O(A=>({...A,isReady:!0})),I._formState.isReady=!0,z},[I]),u.useEffect(()=>I._disableForm(j.disabled),[I,j.disabled]),u.useEffect(()=>{j.mode&&(I._options.mode=j.mode),j.reValidateMode&&(I._options.reValidateMode=j.reValidateMode)},[I,j.mode,j.reValidateMode]),u.useEffect(()=>{j.errors&&(I._setErrors(j.errors),I._focusError())},[I,j.errors]),u.useEffect(()=>{j.shouldUnregister&&I._subjects.state.next({values:I._getWatch()})},[I,j.shouldUnregister]),u.useEffect(()=>{if(I._proxyFormState.isDirty){const z=I._getDirty();z!==P.isDirty&&I._subjects.state.next({isDirty:z})}},[I,P.isDirty]),u.useEffect(()=>{j.values&&!Ua(j.values,k.current)?(I._reset(j.values,I._options.resetOptions),k.current=j.values,O(z=>({...z}))):I._resetDefaultValues()},[I,j.values]),u.useEffect(()=>{I._state.mount||(I._setValid(),I._state.mount=!0),I._state.watch&&(I._state.watch=!1,I._subjects.state.next({...I._formState})),I._removeUnmounted()}),S.current.formState=((z,A,D,F=!0)=>{const B={defaultValues:A._defaultValues};for(const M in z)Object.defineProperty(B,M,{get:()=>{const N=M;return A._proxyFormState[N]!==nc&&(A._proxyFormState[N]=!F||nc),z[N]}});return B})(P,I),S.current}({shouldUseNativeValidation:!1}),{handleSubmit:y,formState:x}=m,v=u.useRef(null),b=u.useRef(null),w=u.useRef(null),E=Cn(async j=>{let S;try{if(S=await Promise.resolve(a?.(j))??!0,S!==!0)return;await Promise.resolve(r?.(j,j===f,j===p)),i?.(j)}catch{}},[r,i,a,f,p]),C=Cn((j,S)=>{setTimeout(()=>{E(p)},180)},[E]),R=Cn(()=>{r?.(f,!0,!1),o?.(),i?.(null)},[r,f,o,i]),_=x&&(Object.keys(x.errors).length>0||x.disabled||x.isSubmitted),L=Cn((j,S)=>{const k=j===f,P={className:S?"defaultOption":"action",type:S?"submit":"button",style:{minWidth:"75px"},onClick:()=>{k?R():S||E(j)}};if(l)return l(j,P,S);const O={className:S?"defaultOption":"action",variant:S?"contained":"outlined",size:"small",disabled:!k&&_,color:"primary",...P};if(S||k){const I=S?v:b;O.touchRippleRef=I,O.onPointerDown=z=>{I.current?.start(z,{center:!1}),z.stopPropagation(),z.preventDefault()}}return s.jsx(Lc,{...O,children:s.jsx("div",{style:{paddingTop:"3px"},children:j})},`action:${j}`)},[c,p,f,l,x]),T=u.useMemo(()=>{const j=[];for(let S=0;S<c.length;S++){const k=c[S],P=p?k===p:S===0;j.push(L(k,P))}return j},[c,p,x]);return s.jsx(Lv,{onCancel:R,initialPosition:{y:wA==="touch"?"15":"35"},onDone:i,autoFocusSel:d,isModal:!0,PaperProps:{},...g,children:s.jsx(SA,{...m,children:s.jsxs("form",{ref:w,onSubmit:y(C),children:[s.jsx(Ex,{dividers:!0,onKeyDown:j=>{if(j.isDefaultPrevented())return;j.stopPropagation();let S=null,k=null;const P=j.which===xr.Escape&&f;if(P)S=f,k=b;else{if(_)return;j.which===xr.Enter&&(S=p??c[0],k=v)}S&&(k.current?.start(j,{center:!1}),setTimeout(()=>{k.current?.stop(j),P&&E(S)},180))},children:s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:j=>j.spacing(n||t?1.5:0)},children:[s.jsxs(Le,{sx:{display:"flex",flexDirection:"column"},children:[n,t]}),h]})}),s.jsx(YT,{sx:{paddingTop:j=>j.spacing(1),paddingBottom:j=>j.spacing(1),paddingLeft:j=>j.spacing(1),paddingRight:j=>j.spacing(1),backgroundColor:j=>pt(j.palette.action.hover,.03)},children:T})]})})})},jA=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Sh,default:Sh},Symbol.toStringTag,{value:"Module"})),RA=u.lazy(()=>Promise.resolve().then(()=>jA)),IA=u.lazy(()=>Promise.resolve().then(()=>require("./D5I2M8yOTfapq6d7.cjs"))),a0=u.memo(u.forwardRef((e,t)=>{const{command:n,disabled:o=!1,shortcut:r,children:i,...a}=e;return U3(n),s.jsx(br,{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(),...a,children:s.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:i})})})),qe=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,scope:r,context:i,icon:a,labelOverride:l,disabled:c=!1,variant:d=Si.Toolbar,shortcut:p,commandState:f,tooltipProps:h,...g}=e,m=u.useRef(null),y=u.useRef(!1),x=u.useMemo(()=>{const L={onExecute(T,j){o?.onExecute?.(T,j),y.current||(m.current?.start({center:!1}),setTimeout(()=>m.current?.stop({}),180)),y.current=!1},onError(T,j,S){o?.onError(T,j,S)}};return o?.beforeExecute&&(L.beforeExecute=o.beforeExecute),L},[o]),v=U3(n,x),b=u.useCallback(L=>{L.button===0&&L.preventDefault()},[]),w=u.useCallback(L=>{L.button===0&&n?.execute(f,o)},[v,o,f]),E=u.useCallback(L=>{L.keyCode!==xr.Enter&&L.keyCode!==xr.Space||n?.execute(f,o)},[v,o,f]),C=u.useMemo(()=>a||d===Si.Toolbar||n?.state()?typeof a=="function"?a(n):a:M2,[v,a]),R=u.useMemo(()=>({tabIndex:0,ref:t,selected:n?.state(),icon:d===Si.Toolbar?C:s.jsx(k1,{selected:n?.state()??!1,children:C}),touchRippleRef:m,disabled:c||!n||n.disabled(),onMouseDown:b,onMouseUp:w,onKeyDown:E}),[v,o,c,C]);let _;return _=d===Si.Menuitem?s.jsx(Gr,{...g,chips:n?.tags(),...R,children:l??n?.label(r,i)}):s.jsx(ii,{...g,...R}),(l||n?.label())&&((n.disabled()||c)&&(_=s.jsx("div",{children:_})),_=s.jsx(a0,{command:n,placement:d===Si.Toolbar?"bottom-start":"right-start",shortcut:p,...h,children:_})),_})),PA=u.memo(u.forwardRef((e,t)=>{const{command:n,scope:o,icon:r=M2,label:i,variant:a=Si.Toolbar,disabled:l=!1,commandHook:c,...d}=e,p=u.useRef(null),f=u.useRef(!1),h=u.useMemo(()=>{const _={onExecute(L,T){c?.onExecute?.(L,T),f.current||(p.current?.start({center:!1}),setTimeout(()=>p.current?.stop({}),180)),f.current=!1},onError(L,T,j){c?.onError(L,T,j)}};return c?.beforeExecute&&(_.beforeExecute=c.beforeExecute),_},[c]),g=U3(n,h),m=()=>n?.state()?.toString()||"0",[y,x]=u.useState(m),v=Cn(()=>{const _=parseFloat(y);isNaN(_)?x(m()):parseFloat(m())!==_&&n.execute(_,c)},[m,n,y,c]);u.useEffect(()=>{x(m())},[n?.state()]);const b=u.useMemo(()=>typeof r=="function"?r(n):r,[g,r]),w=u.useMemo(()=>i===void 0?n?.label(o):typeof i=="function"?i():i,[g]),E=u.useMemo(()=>s.jsx(Tr,{...d,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:_=>_.stopPropagation(),onMouseDown:_=>{_.button===0&&_.stopPropagation()},onMouseUp:_=>{_.button===0&&_.stopPropagation()},children:s.jsx(ql,{inputMode:"numeric",disabled:l||!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:_=>`${Math.round(_.typography.fontSize)}px`,width:_=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:y,onFocus:_=>{_.target?.select()},onKeyDown:_=>{if(_.which===xr.Enter)m()!==y&&(_.stopPropagation(),_.preventDefault(),v());else if(_.which===xr.Escape)m()!==y&&(x(m()),setTimeout(()=>{_.target?.select()},0),_.stopPropagation(),_.preventDefault());else{if(_.key.match("[-]")||_.key.match("[0-9.]")&&(y+_.key).length>4)return _.stopPropagation(),void _.preventDefault();if(_.which===xr.Space)return void _.preventDefault()}},onBlur:()=>{v()},onChange:_=>{if(_.target.value.length>4)return _.stopPropagation(),void _.preventDefault();x(_.target.value)}})}),[y,l,n]),C={tabIndex:0,ref:t,icon:b,touchRippleRef:p,disabled:l||!n||n.disabled(),onMouseDown:_=>{_.button===0&&_.preventDefault()},onMouseUp:_=>{_.button!==0||_.isPropagationStopped()||_.isDefaultPrevented()||_.isDefaultPrevented()||(_.preventDefault(),n?.execute(!n?.state?.(),h))},onKeyDown:_=>{_.keyCode!==xr.Enter&&_.keyCode!==xr.Space||n?.execute(!n?.state?.(),h)}};let R;return R=a===Si.Menuitem?s.jsxs(Gr,{...d,chips:n?.tags(),...C,children:[w,E]}):s.jsx(ii,{...d,...C}),n?.label()&&((n.disabled()||l)&&(R=s.jsx("div",{children:R})),R=s.jsx(a0,{command:n,placement:a===Si.Toolbar?"bottom-start":"right-start",children:R})),R})),Xn=u.memo(u.forwardRef((e,t)=>{const{variant:n=Si.Toolbar,quickCommand:o,onQuickClick:r,commands:i,commandState:a,commandHook:l,disabled:c,label:d,icon:p,createPopupPanel:f,tooltip:h,selected:g,scope:m,...y}=e,x=u.useRef(null),v=u.useRef(!1),b=u.useMemo(()=>{const j={onExecute(S,k){l?.onExecute?.(S,k),v.current||(x.current?.start({center:!1}),setTimeout(()=>x.current?.stop({}),180)),v.current=!1},onError(S,k,P){l?.onError(S,k,P)}};return l?.beforeExecute&&(j.beforeExecute=l.beforeExecute),j},[l]),w=q3(i,[o],null,[o]),E=w[0],{label:C,icon:R}=u.useMemo(()=>{let j=null;d&&(j=typeof d=="function"?d(E):d),j||(j=E?.label?.(m));let S=null;return p&&(S=typeof p=="function"?p(E):p),S||(S=E?.icon?.()),{label:j,icon:S}},[w,d,p]),_={disabled:c,scope:m,touchRippleRef:x,onQuickClick:r,tooltip:h,label:C,icon:R};(C||h)&&(_.createTooltip=({children:j},S)=>s.jsx(br,{label:C,description:h,disabled:S,children:j}));const L=Cn(j=>f?.(j,i),[f,w]),T=Cn(j=>E?.execute(a,b),[E]);return E?(_.quickButtonProps={},_.quickButtonProps.createTooltip=({children:j,placement:S},k)=>s.jsx(a0,{command:E,placement:S??n===Si.Toolbar?"bottom-start":"right-start",disabled:k,children:j}),_.disabled=_.disabled??E?.disabled(),r||(_.onQuickClick=T)):o&&(_.onQuickClick=()=>{}),_.selected=g??E?.state(),_.createPopupPanel=L,n===Si.Toolbar?s.jsx(Ui,{...y,..._,ref:t}):s.jsx(C1,{...y,..._,ref:t})}));Xn.displayName="CommandPopupButton";const Gs=e=>{const{command:t,label:n,scope:o,icon:r=s.jsx(j3,{}),sx:i,...a}=e;return s.jsxs(Le,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:l=>l.typography.subtitle2.fontSize,...i},...a,children:[r?ze(r):null,s.jsx(Mn,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:l=>l.spacing(.25),paddingRight:l=>l.spacing(.25),fontSize:"inherit"},children:t?.label(o)||n})]})},E1=u.memo(u.forwardRef((e,t)=>{const{sx:n,commands:o,commandButtonProps:r,parentFloat:i,createToolbarPalette:a,children:l,...c}=e,d=E2(t,()=>({}),[]),[p,f]=u.useState(null),{reference:h}=pa({label:"toolbar",anchor:d.current,parentFloat:i,createPopupPanel:null}),g=u.useCallback(()=>{const _=p;_&&requestAnimationFrame(()=>{d.current?.contains(document.activeElement)&&_.focus()})},[]),m=u.useMemo(()=>({dense:!0,outlined:!1}),[]),y=u.useMemo(()=>{const{commandHook:_,...L}=r||{};return{commandHook:{beforeExecute:(T,j)=>_?.beforeExecute?.(T,j)!==!1&&h.closeAll(),onExecute(T,j){_?.onExecute?.(T,j),g()},onError(T,j,S){_?.onError?.(T,j,S)}},...L}},[h,r]),x=u.useMemo(()=>({...m,...y}),[m,y]),[v,b]=u.useReducer(_=>_+1,0);q3(o,[],{onChange:()=>{b()}});const w=u.useMemo(()=>({commands:o,parentFloat:h,...y}),[v,x,h,r]);let E=0;m.dense||(E+=2),m.outlined&&E++;let C=2;m.dense||(C=4);const R=u.useMemo(()=>a({commands:o,commandButtonProps:x,commandPopupProps:{commands:o,...w,...r}}),[v,x,w,a]);return s.jsx(Dj,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${C}px`,paddingBottom:`${C}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:d,onFocus:_=>{_.relatedTarget&&!p&&f(_.relatedTarget)},onBlur:_=>{p&&!d?.current?.contains(_.relatedTarget)&&f(null)},onKeyDown:_=>{p&&_.which===xr.Escape&&p.focus()},...c,children:s.jsx("div",{ref:d,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${C}px`,columnGap:`${E}px`,alignItems:"center",maxWidth:"100%"},children:R})})}));E1.displayName="CommandToolbar";const OA=e=>{const{key:t,...n}=e;return s.jsx(qe,{...n},t)},sa=u.memo(u.forwardRef((e,t)=>{const{popupCommandKeys:n,renderCommandButton:o,scope:r,commands:i,icon:a,quickCommand:l,popupScope:c=l,commandState:d,commandHook:p,disabled:f=!1,...h}=e;q3(i,[l,...n]);const g=u.useCallback((m,y)=>{const x={variant:Si.Menuitem,commandHook:p,commandState:d,icon:a,scope:c,disabled:f},v=[];for(let b=0;b<n?.length;b++){const w=n[b];if(w===null||w==="-"){v.push(s.jsx(Ft,{orientation:"horizontal"},`element-${v.length}`));continue}const E=y.getCommand(w),C={key:`${w}-${v.length}`,command:E,...x},R=o?.(C)??OA(C);R&&v.push(R)}return Bn({...m,children:v})},[f,p,d,c,n,a,o]);return s.jsx(Xn,{ref:t,commands:i,disabled:f,commandHook:p,commandState:d,scope:r,quickCommand:l,icon:a,createPopupPanel:g,...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 Zv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["formatAlignLeftToggle","formatAlignCenterToggle","formatAlignRightToggle","formatAlignJustifyToggle","formatAlignCenterContinuousToggle","formatAlignFillToggle","formatAlignDistributedHorizontalToggle"]),d=u.useMemo(()=>{for(let g=0;g<c.length;g++)if(c[g]?.state())return c[g].key();return c[0]?.key()},[c]),p=u.useMemo(()=>{const g=new Map;return g.set("formatAlignLeftToggle",ze(s.jsx(X6,{}))),g.set("formatAlignCenterToggle",ze(s.jsx(Z6,{}))),g.set("formatAlignRightToggle",ze(s.jsx(sR,{}))),g.set("formatAlignJustifyToggle",ze(s.jsx(yc,{}))),g.set("formatAlignCenterContinuousToggle",ze(s.jsx(Z6,{}))),g.set("formatAlignFillToggle",ze(s.jsx(yc,{}))),g.set("formatAlignDistributedHorizontalToggle",ze(s.jsx(yc,{}))),g},[]),f=u.useMemo(()=>{if(!o)return null;const g={...o};return delete g.beforeExecute,g},[o]),h=u.useCallback((g,m)=>{const y={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...y,command:m.getCommand("formatAlignLeftToggle"),icon:p.get("formatAlignLeftToggle")}),s.jsx(qe,{...y,command:m.getCommand("formatAlignCenterToggle"),icon:p.get("formatAlignCenterToggle")}),s.jsx(qe,{...y,command:m.getCommand("formatAlignRightToggle"),icon:p.get("formatAlignRightToggle")}),s.jsx(qe,{...y,command:m.getCommand("formatAlignJustifyToggle"),icon:p.get("formatAlignJustifyToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...y,command:m.getCommand("formatAlignCenterContinuousToggle"),icon:p.get("formatAlignCenterContinuousToggle")}),s.jsx(qe,{...y,command:m.getCommand("formatAlignFillToggle"),icon:p.get("formatAlignFillToggle")}),s.jsx(qe,{...y,command:m.getCommand("formatAlignDistributedHorizontalToggle"),icon:p.get("formatAlignDistributedHorizontalToggle")})]}),v=s.jsxs(Le,{sx:{className:Eo("quick-buttons"),display:"flex",alignItems:"center",justifyContent:"center"},onClick:w=>w.stopPropagation(),children:[s.jsx(qe,{command:m.getCommand("formatIndentDecrease"),commandHook:f,scope:r,disabled:i,icon:ze(s.jsx(PO,{}))}),s.jsx(qe,{command:m.getCommand("formatIndentIncrease"),commandHook:f,scope:r,disabled:i,icon:ze(s.jsx(IO,{}))})]}),b=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...l,children:[v,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:x})]});return Bn({...g,children:b})},[i,o]);return s.jsx(Xn,{ref:t,parentFloat:a,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:d,icon:p.get(d)??s.jsx(X6,{}),...l})})),Xv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatAlignTopToggle","formatAlignMiddleToggle","formatAlignBottomToggle","formatAlignJustifyVerticalToggle","formatAlignDistributedVerticalToggle"]),c=u.useMemo(()=>{for(let f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatAlignTopToggle",ze(s.jsx(NO,{}))),f.set("formatAlignMiddleToggle",ze(s.jsx($O,{}))),f.set("formatAlignBottomToggle",ze(s.jsx(U7,{}))),f.set("formatAlignJustifyVerticalToggle",ze(s.jsx(yc,{}))),f.set("formatAlignDistributedVerticalToggle",ze(s.jsx(yc,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...g,command:h.getCommand("formatAlignTopToggle"),icon:d.get("formatAlignTopToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatAlignMiddleToggle"),icon:d.get("formatAlignMiddleToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatAlignBottomToggle"),icon:d.get("formatAlignBottomToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...g,command:h.getCommand("formatAlignJustifyVerticalToggle"),icon:d.get("formatAlignJustifyVerticalToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatAlignDistributedVerticalToggle"),icon:d.get("formatAlignDistributedVerticalToggle")})]});return Bn({...f,children:m})},[i,o,d]);return s.jsx(Xn,{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:d.get(c)??ze(s.jsx(U7,{})),...a})})),Yv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatTextOverflowVisibleToggle","formatTextOverflowWrapToggle","formatTextOverflowClipToggle","formatTextOverflowShrinkToggle"]),c=u.useMemo(()=>{for(let f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatTextOverflowVisibleToggle",ze(s.jsx(X4,{}))),f.set("formatTextOverflowWrapToggle",ze(s.jsx(_I,{}))),f.set("formatTextOverflowClipToggle",ze(s.jsx(jI,{}))),f.set("formatTextOverflowShrinkToggle",ze(s.jsx(RI,{}))),f},[]),p=_e((f,h)=>{const g={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...g,command:h.getCommand("formatTextOverflowVisibleToggle"),icon:d.get("formatTextOverflowVisibleToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatTextOverflowWrapToggle"),icon:d.get("formatTextOverflowWrapToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatTextOverflowClipToggle"),icon:d.get("formatTextOverflowClipToggle")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...g,command:h.getCommand("formatTextOverflowShrinkToggle"),icon:d.get("formatTextOverflowShrinkToggle")})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{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:d.get(c)??ze(s.jsx(X4,{})),...a})})),Jv=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatTextRotate0","formatTextRotate315","formatTextRotate45","formatTextRotate90","formatTextRotate270","formatSubscriptToggle","formatTextRotateCustom"]),c=u.useMemo(()=>{for(let h=0;h<l.length;h++)if(l[h]?.state())return l[h].key();return l[1]?.key()},[l]),d=u.useMemo(()=>{const h=new Map;return h.set("formatTextRotate0",ze(s.jsx(dd,{}))),h.set("formatTextRotate315",ze(s.jsx(dd,{}))),h.set("formatTextRotate45",ze(s.jsx($7,{}))),h.set("formatTextRotate90",ze(s.jsx(V7,{}))),h.set("formatTextRotate270",ze(s.jsx(H7,{}))),h.set("formatTextRotateCustom",ze(s.jsx(W7,{}))),h},[]),p=u.useCallback((h,g)=>{const m={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},y=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...m,command:g.getCommand("formatTextRotate0"),icon:ze(s.jsx(BO,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...m,command:g.getCommand("formatTextRotate315"),icon:ze(s.jsx(dd,{}))}),s.jsx(qe,{...m,command:g.getCommand("formatTextRotate45"),icon:ze(s.jsx($7,{}))}),s.jsx(qe,{...m,command:g.getCommand("formatTextRotate90"),icon:ze(s.jsx(V7,{}))}),s.jsx(qe,{...m,command:g.getCommand("formatTextRotate270"),icon:ze(s.jsx(H7,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(PA,{...m,command:g.getCommand("formatTextRotateCustom"),icon:ze(s.jsx(W7,{})),label:"Custom"})]});return Bn({...h,children:y})},[i,o,r]),f=u.useMemo(()=>(n.getCommand("formatTextRotateCustom")?.state()??0)!==0,[l]);return s.jsx(Xn,{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:ze(d.get(c)??s.jsx(dd,{})),...a})}));function Nl(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 Ya="$$material";var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},V8,H8,W8={exports:{}},ro={},Qv=(H8||(H8=1,W8.exports=function(){if(V8)return ro;V8=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=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(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type){case n:case r:case o:case c:case d:case h:return y;default:switch(y=y&&y.$$typeof){case a:case l:case f:case p:case i:return y;default:return x}}case t:return x}}}return ro.ContextConsumer=i,ro.ContextProvider=a,ro.Element=e,ro.ForwardRef=l,ro.Fragment=n,ro.Lazy=f,ro.Memo=p,ro.Portal=t,ro.Profiler=r,ro.StrictMode=o,ro.Suspense=c,ro.SuspenseList=d,ro.isContextConsumer=function(y){return m(y)===i},ro.isContextProvider=function(y){return m(y)===a},ro.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},ro.isForwardRef=function(y){return m(y)===l},ro.isFragment=function(y){return m(y)===n},ro.isLazy=function(y){return m(y)===f},ro.isMemo=function(y){return m(y)===p},ro.isPortal=function(y){return m(y)===t},ro.isProfiler=function(y){return m(y)===r},ro.isStrictMode=function(y){return m(y)===o},ro.isSuspense=function(y){return m(y)===c},ro.isSuspenseList=function(y){return m(y)===d},ro.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===r||y===o||y===c||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===a||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},ro.typeOf=m,ro}()),W8.exports);function Ca(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 ew(e){if(G.isValidElement(e)||Qv.isValidElementType(e)||!Ca(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ew(e[n])}),t}function ai(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ca(e)&&Ca(t)&&Object.keys(t).forEach(r=>{G.isValidElement(t[r])||Qv.isValidElementType(t[r])?o[r]=t[r]:Ca(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ca(e[r])?o[r]=ai(e[r],t[r],n):n.clone?o[r]=Ca(t[r])?ew(t[r]):t[r]:o[r]=t[r]}),o}function rf(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 tl(e){if(e.type)return e;if(e.charAt(0)==="#")return tl(function(i){i=i.slice(1);const a=new RegExp(`.{1,${i.length>=6?2:1}}`,"g");let l=i.match(a);return l&&l[0].length===1&&(l=l.map(c=>c+c)),l?`rgb${l.length===4?"a":""}(${l.map((c,d)=>d<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(Nl(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(Nl(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const rc=(e,t)=>{try{return(n=>{const o=tl(n);return o.values.slice(0,3).map((r,i)=>o.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")})(e)}catch{return e}};function _2(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 tw(e){e=tl(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(d,p=(d+n/30)%12)=>r-i*Math.max(Math.min(p-3,9-p,1),-1);let l="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return e.type==="hsla"&&(l+="a",c.push(t[3])),_2({type:l,values:c})}function Ch(e){let t=(e=tl(e)).type==="hsl"||e.type==="hsla"?tl(tw(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 fd(e,t,n){try{return function(o,r){return o=tl(o),r=rf(r),o.type!=="rgb"&&o.type!=="hsl"||(o.type+="a"),o.type==="color"?o.values[3]=`/${r}`:o.values[3]=r,_2(o)}(e,t)}catch{return e}}function af(e,t){if(e=tl(e),t=rf(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 _2(e)}function po(e,t,n){try{return af(e,t)}catch{return e}}function lf(e,t){if(e=tl(e),t=rf(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 _2(e)}function ho(e,t,n){try{return lf(e,t)}catch{return e}}function md(e,t,n){try{return function(o,r=.15){return Ch(o)>.5?af(o,r):lf(o,r)}(e,t)}catch{return e}}const Gc={black:"#000",white:"#fff"},DA={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"},U8="#d32f2f",q8="#42a5f5",K8="#0288d1";function nw(){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:Gc.white,default:Gc.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 AA=nw();function ow(){return{text:{primary:Gc.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:Gc.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 G8=ow();function Z8(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=lf(e.main,r):t==="dark"&&(e.dark=af(e.main,i)))}function sf(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:q8}:{main:"#1976d2",light:q8,dark:"#1565c0"}}(t),a=e.secondary||function(m="light"){return m==="dark"?{main:"#ce93d8",light:"#f3e5f5",dark:"#ab47bc"}:{main:"#9c27b0",light:"#ba68c8",dark:"#7b1fa2"}}(t),l=e.error||function(m="light"){return m==="dark"?{main:"#f44336",light:"#e57373",dark:U8}:{main:U8,light:"#ef5350",dark:"#c62828"}}(t),c=e.info||function(m="light"){return m==="dark"?{main:"#29b6f6",light:"#4fc3f7",dark:K8}:{main:K8,light:"#03a9f4",dark:"#01579b"}}(t),d=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(y,x){const v=Ch(y),b=Ch(x);return(Math.max(v,b)+.05)/(Math.min(v,b)+.05)}(m,G8.text.primary)>=n?G8.text.primary:AA.text.primary}const h=({color:m,name:y,mainShade:x=500,lightShade:v=300,darkShade:b=700})=>{if(!(m={...m}).main&&m[x]&&(m.main=m[x]),!m.hasOwnProperty("main"))throw new Error(Nl(11,y?` (${y})`:"",x));if(typeof m.main!="string")throw new Error(Nl(12,y?` (${y})`:"",JSON.stringify(m.main)));return Z8(m,"light",v,o),Z8(m,"dark",b,o),m.contrastText||(m.contrastText=f(m.main)),m};let g;return t==="light"?g=nw():t==="dark"&&(g=ow()),ai({common:{...Gc},mode:t,primary:h({color:i,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:d,name:"success"}),grey:DA,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:o,...g},r)}var X8,Y8,Bp,J8,Q8,e9={exports:{}};function LA(){if(J8)return Bp;J8=1;var e=Y8?X8:(Y8=1,X8="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Bp=function(){function o(a,l,c,d,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},Bp}function Zc(){return Q8||(Q8=1,e9.exports=LA()()),e9.exports}function Cc(e,t){return t?ai(e,t,{clone:!1}):e}function t9(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 j2={xs:0,sm:600,md:900,lg:1200,xl:1536},n9={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${j2[e]}px)`},zA={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:j2[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ja(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const r=o.breakpoints||n9;return t.reduce((i,a,l)=>(i[r.up(r.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const r=o.breakpoints||n9;return Object.keys(t).reduce((i,a)=>{if(l=r.keys,(c=a)==="@"||c.startsWith("@")&&(l.some(d=>c.startsWith(`@${d}`))||c.match(/^@\d/))){const d=function(p,f){const h=f.match(/^@([^/]+)?\/?(.+)?$/);if(!h)return null;const[,g,m]=h,y=Number.isNaN(+g)?g||0:+g;return p.containerQueries(m).up(y)}(o.containerQueries?o:zA,a);d&&(i[d]=n(t[a],a))}else if(Object.keys(r.values||j2).includes(a))i[r.up(a)]=n(t[a],a);else{const d=a;i[d]=t[d]}var l,c;return i},{})}return n(t)}function o9(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function rw(e){if(typeof e!="string")throw new Error(Nl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function R2(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 Au(e,t,n,o=n){let r;return r=typeof e=="function"?e(n):Array.isArray(e)?e[n]||o:R2(e,n)||o,t&&(r=t(r,o,e)),r}function qo(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],c=R2(a.theme,o)||{};return ja(a,l,d=>{let p=Au(c,r,d);return d===p&&typeof d=="string"&&(p=Au(c,r,`${t}${d==="default"?"":rw(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}const FA={m:"margin",p:"padding"},BA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},r9={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NA=function(){const e={};return t=>(e[t]===void 0&&(e[t]=(n=>{if(n.length>2){if(!r9[n])return[n];n=r9[n]}const[o,r]=n.split(""),i=FA[o],a=BA[r]||"";return Array.isArray(a)?a.map(l=>i+l):[i+a]})(t)),e[t])}(),iw=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aw=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function M1(e,t,n,o){const r=R2(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 a=Math.abs(i),l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:()=>{}}function cf(e){return M1(e,"spacing",8)}function T1(e,t){return typeof t=="string"||t==null?t:e(t)}function lw(e,t){const n=cf(e.theme);return Object.keys(e).map(o=>function(r,i,a,l){if(!i.includes(a))return null;const c=function(d,p){return f=>d.reduce((h,g)=>(h[g]=T1(p,f),h),{})}(NA(a),l);return ja(r,r[a],c)}(e,t,o,n)).reduce(Cc,{})}function Do(e){return lw(e,iw)}function Ao(e){return lw(e,aw)}Do.propTypes={},Do.filterProps=iw,Ao.propTypes={},Ao.filterProps=aw;const $A={borderRadius:4};function Lu(...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]?Cc(r,t[i](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function vi(e){return typeof e!="number"?e:`${e}px solid`}function Pi(e,t){return qo({prop:e,themeKey:"borders",transform:t})}const VA=Pi("border",vi),HA=Pi("borderTop",vi),WA=Pi("borderRight",vi),UA=Pi("borderBottom",vi),qA=Pi("borderLeft",vi),KA=Pi("borderColor"),GA=Pi("borderTopColor"),ZA=Pi("borderRightColor"),XA=Pi("borderBottomColor"),YA=Pi("borderLeftColor"),JA=Pi("outline",vi),QA=Pi("outlineColor"),Xd=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=M1(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:T1(t,o)});return ja(e,e.borderRadius,n)}return null};Xd.propTypes={},Xd.filterProps=["borderRadius"],Lu(VA,HA,WA,UA,qA,KA,GA,ZA,XA,YA,Xd,JA,QA);const zu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=M1(e.theme,"spacing",8),n=o=>({gap:T1(t,o)});return ja(e,e.gap,n)}return null};zu.propTypes={},zu.filterProps=["gap"];const Fu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=M1(e.theme,"spacing",8),n=o=>({columnGap:T1(t,o)});return ja(e,e.columnGap,n)}return null};Fu.propTypes={},Fu.filterProps=["columnGap"];const Yd=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=M1(e.theme,"spacing",8),n=o=>({rowGap:T1(t,o)});return ja(e,e.rowGap,n)}return null};function js(e,t){return t==="grey"?t:e}function ti(e){return e<=1&&e!==0?100*e+"%":e}Yd.propTypes={},Yd.filterProps=["rowGap"],Lu(zu,Fu,Yd,qo({prop:"gridColumn"}),qo({prop:"gridRow"}),qo({prop:"gridAutoFlow"}),qo({prop:"gridAutoColumns"}),qo({prop:"gridAutoRows"}),qo({prop:"gridTemplateColumns"}),qo({prop:"gridTemplateRows"}),qo({prop:"gridTemplateAreas"}),qo({prop:"gridArea"})),Lu(qo({prop:"color",themeKey:"palette",transform:js}),qo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:js}),qo({prop:"backgroundColor",themeKey:"palette",transform:js}));const eL=qo({prop:"width",transform:ti}),df=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||j2[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ti(n)}};return ja(e,e.maxWidth,t)}return null};df.filterProps=["maxWidth"];const tL=qo({prop:"minWidth",transform:ti}),nL=qo({prop:"height",transform:ti}),oL=qo({prop:"maxHeight",transform:ti}),rL=qo({prop:"minHeight",transform:ti});qo({prop:"size",cssProperty:"width",transform:ti}),qo({prop:"size",cssProperty:"height",transform:ti}),Lu(eL,df,tL,nL,oL,rL,qo({prop:"boxSizing"}));const I2={border:{themeKey:"borders",transform:vi},borderTop:{themeKey:"borders",transform:vi},borderRight:{themeKey:"borders",transform:vi},borderBottom:{themeKey:"borders",transform:vi},borderLeft:{themeKey:"borders",transform:vi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:vi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xd},color:{themeKey:"palette",transform:js},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:js},backgroundColor:{themeKey:"palette",transform:js},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:Do},mt:{style:Do},mr:{style:Do},mb:{style:Do},ml:{style:Do},mx:{style:Do},my:{style:Do},margin:{style:Do},marginTop:{style:Do},marginRight:{style:Do},marginBottom:{style:Do},marginLeft:{style:Do},marginX:{style:Do},marginY:{style:Do},marginInline:{style:Do},marginInlineStart:{style:Do},marginInlineEnd:{style:Do},marginBlock:{style:Do},marginBlockStart:{style:Do},marginBlockEnd:{style:Do},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:zu},rowGap:{style:Yd},columnGap:{style:Fu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ti},maxWidth:{style:df},minWidth:{transform:ti},height:{transform:ti},maxHeight:{transform:ti},minHeight:{transform:ti},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"}},l0=function(){function e(t,n,o,r){const i={[t]:n,theme:o},a=r[t];if(!a)return{[t]:n};const{cssProperty:l=t,themeKey:c,transform:d,style:p}=a;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[t]:n};const f=R2(o,c)||{};return p?p(i):ja(i,n,h=>{let g=Au(f,d,h);return h===g&&typeof h=="string"&&(g=Au(f,d,`${t}${h==="default"?"":rw(h)}`,h)),l===!1?g:{[l]:g}})}return function t(n){const{sx:o,theme:r={},nested:i}=n||{};if(!o)return null;const a=r.unstable_sxConfig??I2;function l(c){let d=c;if(typeof c=="function")d=c(r);else if(typeof c!="object")return c;if(!d)return null;const p=function(g={}){return g.keys?.reduce((m,y)=>(m[g.up(y)]={},m),{})||{}}(r.breakpoints),f=Object.keys(p);let h=p;return Object.keys(d).forEach(g=>{const m=typeof(y=d[g])=="function"?y(r):y;var y;if(m!=null)if(typeof m=="object")if(a[g])h=Cc(h,e(g,m,r,a));else{const x=ja({theme:r},m,v=>({[g]:v}));(function(...v){const b=v.reduce((E,C)=>E.concat(Object.keys(C)),[]),w=new Set(b);return v.every(E=>w.size===Object.keys(E).length)})(x,m)?h[g]=t({sx:m,theme:r,nested:!0}):h=Cc(h,x)}else h=Cc(h,e(g,m,r,a))}),!i&&r.modularCssLayers?{"@layer sx":t9(r,o9(f,h))}:t9(r,o9(f,h))}return Array.isArray(o)?o.map(l):l(o)}}();function iL(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 sw(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=function(d){const{values:p={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:f="px",step:h=5,...g}=d,m=(w=>{const E=Object.keys(w).map(C=>({key:C,val:w[C]}))||[];return E.sort((C,R)=>C.val-R.val),E.reduce((C,R)=>({...C,[R.key]:R.val}),{})})(p),y=Object.keys(m);function x(w){return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${f})`}function v(w){return`@media (max-width:${(typeof p[w]=="number"?p[w]:w)-h/100}${f})`}function b(w,E){const C=y.indexOf(E);return`@media (min-width:${typeof p[w]=="number"?p[w]:w}${f}) and (max-width:${(C!==-1&&typeof p[y[C]]=="number"?p[y[C]]:E)-h/100}${f})`}return{keys:y,values:m,up:x,down:v,between:b,only:function(w){return y.indexOf(w)+1<y.length?b(w,y[y.indexOf(w)+1]):x(w)},not:function(w){const E=y.indexOf(w);return E===0?x(y[1]):E===y.length-1?v(y[E]):b(w,y[y.indexOf(w)+1]).replace("@media","@media not all and")},unit:f,...g}}(n);let c=ai({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:function(d=8,p=cf({spacing:d})){if(d.mui)return d;const f=(...h)=>(h.length===0?[1]:h).map(g=>{const m=p(g);return typeof m=="number"?`${m}px`:m}).join(" ");return f.mui=!0,f}(r),shape:{...$A,...i}},a);return c=function(d){const p=(m,y)=>m.replace("@media",y?`@container ${y}`:"@container");function f(m,y){m.up=(...x)=>p(d.breakpoints.up(...x),y),m.down=(...x)=>p(d.breakpoints.down(...x),y),m.between=(...x)=>p(d.breakpoints.between(...x),y),m.only=(...x)=>p(d.breakpoints.only(...x),y),m.not=(...x)=>{const v=p(d.breakpoints.not(...x),y);return v.includes("not all and")?v.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):v}}const h={},g=m=>(f(h,m),h);return f(g),{...d,containerQueries:g}}(c),c.applyStyles=iL,c=t.reduce((d,p)=>ai(d,p),c),c.unstable_sxConfig={...I2,...a?.unstable_sxConfig},c.unstable_sx=function(d){return l0({sx:d,theme:this})},c}l0.filterProps=["sx"];const i9=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===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 Np(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};var l,c;return l=(d,p,f)=>{if(!(typeof p!="string"&&typeof p!="number"||o&&o(d,p))){const m=`--${n?`${n}-`:""}${d.join("-")}`,y=(h=d,typeof(g=p)=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(x=>h.includes(x))||h[h.length-1].toLowerCase().includes("opacity")?g:`${g}px`:g);Object.assign(r,{[m]:y}),i9(i,d,`var(${m})`,f),i9(a,d,`var(${m}, ${y})`,f)}var h,g},c=d=>d[0]==="vars",function d(p,f=[],h=[]){Object.entries(p).forEach(([g,m])=>{(!c||c&&!c([...f,g]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?d(m,[...f,g],Array.isArray(m)?[...h,g]:h):l([...f,g],m,h))})}(e),{css:r,vars:i,varsWithDefaults:a}}function aL(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 a9={textTransform:"uppercase"},l9='"Roboto", "Helvetica", "Arial", sans-serif';function cw(e,t){const{fontFamily:n=l9,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:p,...f}=typeof t=="function"?t(e):t,h=o/14,g=p||(x=>x/c*h+"rem"),m=(x,v,b,w,E)=>{return{fontFamily:n,fontWeight:x,fontSize:g(v),lineHeight:b,...n===l9?{letterSpacing:(C=w/v,Math.round(1e5*C)/1e5+"em")}:{},...E,...d};var C},y={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(a,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(a,14,1.75,.4,a9),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,a9),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ai({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...y},f,{clone:!1})}function ko(...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 lL=["none",ko(0,2,1,-1,0,1,1,0,0,1,3,0),ko(0,3,1,-2,0,2,2,0,0,1,5,0),ko(0,3,3,-2,0,3,4,0,0,1,8,0),ko(0,2,4,-1,0,4,5,0,0,1,10,0),ko(0,3,5,-1,0,5,8,0,0,1,14,0),ko(0,3,5,-1,0,6,10,0,0,1,18,0),ko(0,4,5,-2,0,7,10,1,0,2,16,1),ko(0,5,5,-3,0,8,10,1,0,3,14,2),ko(0,5,6,-3,0,9,12,1,0,3,16,2),ko(0,6,6,-3,0,10,14,1,0,4,18,3),ko(0,6,7,-4,0,11,15,1,0,4,20,3),ko(0,7,8,-4,0,12,17,2,0,5,22,4),ko(0,7,8,-4,0,13,19,2,0,5,24,4),ko(0,7,9,-4,0,14,21,2,0,5,26,4),ko(0,8,9,-5,0,15,22,2,0,6,28,5),ko(0,8,10,-5,0,16,24,2,0,6,30,5),ko(0,8,11,-5,0,17,26,2,0,6,32,5),ko(0,9,11,-5,0,18,28,2,0,7,34,6),ko(0,9,12,-6,0,19,29,2,0,7,36,6),ko(0,10,13,-6,0,20,31,3,0,8,38,7),ko(0,10,13,-6,0,21,33,3,0,8,40,7),ko(0,10,14,-6,0,22,35,3,0,8,42,7),ko(0,11,14,-7,0,23,36,3,0,9,44,8),ko(0,11,15,-7,0,24,38,3,0,9,46,8)],sL={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)"},cL={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function s9(e){return`${Math.round(e)}ms`}function dL(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function uL(e){const t={...sL,...e.easing},n={...cL,...e.duration};return{getAutoHeightDuration:dL,create:(o=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=r;return(Array.isArray(o)?o:[o]).map(d=>`${d} ${typeof i=="string"?i:s9(i)} ${a} ${typeof l=="string"?l:s9(l)}`).join(",")},...e,easing:t,duration:n}}const pL={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function hL(e){return Ca(e)||e===void 0||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function dw(e={}){const t={...e};return function n(o){const r=Object.entries(o);for(let i=0;i<r.length;i++){const[a,l]=r[i];!hL(l)||a.startsWith("unstable_")?delete o[a]:Ca(l)&&(o[a]={...l},n(o[a]))}}(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
147
-
148
- const theme = ${JSON.stringify(t,null,2)};
149
-
150
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
151
- theme.transitions = createTransitions(theme.transitions || {});
152
-
153
- export default theme;`}function kh(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:c,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Nl(20));const p=sf(i),f=sw(e);let h=ai(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:lL.slice(),typography:cw(p,l),transitions:uL(a),zIndex:{...pL}});var g,m;return h=ai(h,d),h=t.reduce((y,x)=>ai(y,x),h),h.unstable_sxConfig={...I2,...d?.unstable_sxConfig},h.unstable_sx=function(y){return l0({sx:y,theme:this})},h.toRuntimeSource=dw,h}function Vn(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const fL=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Vn(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function c9(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function d9(e){return e==="dark"?fL:[]}function mL(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 gL=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 l={};return(a=e.cssVarPrefix,[...[...Array(25)].map((c,d)=>`--${a?`${a}-`:""}overlays-${d}`),`--${a?`${a}-`:""}palette-AppBar-darkBg`,`--${a?`${a}-`:""}palette-AppBar-darkColor`]).forEach(c=>{l[c]=n[c],delete n[c]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:i?{[i.replace("%s",t)]:l,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}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 a;return o};function st(e,t,n){!e[t]&&n&&(e[t]=n)}function ic(e){return typeof e=="string"&&e.startsWith("hsl")?tw(e):e}function ya(e,t){`${t}Channel`in e||(e[`${t}Channel`]=rc(ic(e[t])))}const Ji=e=>{try{return e()}catch{}};function $p(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n)return void(e[o]=function(l){const{palette:c={mode:"light"},opacity:d,overlays:p,...f}=l,h=sf(c);return{palette:h,opacity:{...c9(h.mode),...d},overlays:p||d9(h.mode),...f}}({...t,palette:{mode:r,...t?.palette}}));const{palette:i,...a}=kh({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...c9(r),...t?.opacity},overlays:t?.overlays||d9(r)},a}function u9(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:sf({...n===!0?{}:n.palette,mode:t})})}function uw(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",c=r?.[l],d={...r,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return kh(e,...t);let p=n;"palette"in e||d[l]&&(d[l]!==!0?p=d[l].palette:l==="dark"&&(p={mode:"dark"}));const f=kh({...e,palette:p},...t);return f.defaultColorScheme=l,f.colorSchemes=d,f.palette.mode==="light"&&(f.colorSchemes.light={...d.light!==!0&&d.light,palette:f.palette},u9(f,"dark",d.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:f.palette},u9(f,"light",d.light)),f}return n||"light"in d||l!=="light"||(d.light=!0),function(p={},...f){const{colorSchemes:h={light:!0},defaultColorScheme:g,disableCssColorScheme:m=!1,cssVarPrefix:y="mui",shouldSkipGeneratingVar:x=mL,colorSchemeSelector:v=h.light&&h.dark?"media":void 0,rootSelector:b=":root",...w}=p,E=Object.keys(h)[0],C=g||(h.light&&E!=="light"?"light":E),R=((B="mui")=>c3(B))(y),{[C]:_,light:L,dark:T,...j}=h,S={...j};let k=_;if((C==="dark"&&!("dark"in h)||C==="light"&&!("light"in h))&&(k=!0),!k)throw new Error(Nl(21,C));const P=$p(S,k,w,C);L&&!S.light&&$p(S,L,void 0,"light"),T&&!S.dark&&$p(S,T,void 0,"dark");let O={defaultColorScheme:C,...P,cssVarPrefix:y,colorSchemeSelector:v,rootSelector:b,getCssVar:R,colorSchemes:S,font:{...aL(P.typography),...P.font},spacing:(I=w.spacing,typeof I=="number"?`${I}px`:typeof I=="string"||typeof I=="function"||Array.isArray(I)?I:"8px")};var I;Object.keys(O.colorSchemes).forEach(B=>{const M=O.colorSchemes[B].palette,N=U=>{const J=U.split("-"),X=J[1],H=J[2];return R(U,M[X][H])};var V;if(M.mode==="light"&&(st(M.common,"background","#fff"),st(M.common,"onBackground","#000")),M.mode==="dark"&&(st(M.common,"background","#000"),st(M.common,"onBackground","#fff")),V=M,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(U=>{V[U]||(V[U]={})}),M.mode==="light"){st(M.Alert,"errorColor",po(M.error.light,.6)),st(M.Alert,"infoColor",po(M.info.light,.6)),st(M.Alert,"successColor",po(M.success.light,.6)),st(M.Alert,"warningColor",po(M.warning.light,.6)),st(M.Alert,"errorFilledBg",N("palette-error-main")),st(M.Alert,"infoFilledBg",N("palette-info-main")),st(M.Alert,"successFilledBg",N("palette-success-main")),st(M.Alert,"warningFilledBg",N("palette-warning-main")),st(M.Alert,"errorFilledColor",Ji(()=>M.getContrastText(M.error.main))),st(M.Alert,"infoFilledColor",Ji(()=>M.getContrastText(M.info.main))),st(M.Alert,"successFilledColor",Ji(()=>M.getContrastText(M.success.main))),st(M.Alert,"warningFilledColor",Ji(()=>M.getContrastText(M.warning.main))),st(M.Alert,"errorStandardBg",ho(M.error.light,.9)),st(M.Alert,"infoStandardBg",ho(M.info.light,.9)),st(M.Alert,"successStandardBg",ho(M.success.light,.9)),st(M.Alert,"warningStandardBg",ho(M.warning.light,.9)),st(M.Alert,"errorIconColor",N("palette-error-main")),st(M.Alert,"infoIconColor",N("palette-info-main")),st(M.Alert,"successIconColor",N("palette-success-main")),st(M.Alert,"warningIconColor",N("palette-warning-main")),st(M.AppBar,"defaultBg",N("palette-grey-100")),st(M.Avatar,"defaultBg",N("palette-grey-400")),st(M.Button,"inheritContainedBg",N("palette-grey-300")),st(M.Button,"inheritContainedHoverBg",N("palette-grey-A100")),st(M.Chip,"defaultBorder",N("palette-grey-400")),st(M.Chip,"defaultAvatarColor",N("palette-grey-700")),st(M.Chip,"defaultIconColor",N("palette-grey-700")),st(M.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),st(M.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),st(M.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),st(M.LinearProgress,"primaryBg",ho(M.primary.main,.62)),st(M.LinearProgress,"secondaryBg",ho(M.secondary.main,.62)),st(M.LinearProgress,"errorBg",ho(M.error.main,.62)),st(M.LinearProgress,"infoBg",ho(M.info.main,.62)),st(M.LinearProgress,"successBg",ho(M.success.main,.62)),st(M.LinearProgress,"warningBg",ho(M.warning.main,.62)),st(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),st(M.Slider,"primaryTrack",ho(M.primary.main,.62)),st(M.Slider,"secondaryTrack",ho(M.secondary.main,.62)),st(M.Slider,"errorTrack",ho(M.error.main,.62)),st(M.Slider,"infoTrack",ho(M.info.main,.62)),st(M.Slider,"successTrack",ho(M.success.main,.62)),st(M.Slider,"warningTrack",ho(M.warning.main,.62));const U=md(M.background.default,.8);st(M.SnackbarContent,"bg",U),st(M.SnackbarContent,"color",Ji(()=>M.getContrastText(U))),st(M.SpeedDialAction,"fabHoverBg",md(M.background.paper,.15)),st(M.StepConnector,"border",N("palette-grey-400")),st(M.StepContent,"border",N("palette-grey-400")),st(M.Switch,"defaultColor",N("palette-common-white")),st(M.Switch,"defaultDisabledColor",N("palette-grey-100")),st(M.Switch,"primaryDisabledColor",ho(M.primary.main,.62)),st(M.Switch,"secondaryDisabledColor",ho(M.secondary.main,.62)),st(M.Switch,"errorDisabledColor",ho(M.error.main,.62)),st(M.Switch,"infoDisabledColor",ho(M.info.main,.62)),st(M.Switch,"successDisabledColor",ho(M.success.main,.62)),st(M.Switch,"warningDisabledColor",ho(M.warning.main,.62)),st(M.TableCell,"border",ho(fd(M.divider,1),.88)),st(M.Tooltip,"bg",fd(M.grey[700],.92))}if(M.mode==="dark"){st(M.Alert,"errorColor",ho(M.error.light,.6)),st(M.Alert,"infoColor",ho(M.info.light,.6)),st(M.Alert,"successColor",ho(M.success.light,.6)),st(M.Alert,"warningColor",ho(M.warning.light,.6)),st(M.Alert,"errorFilledBg",N("palette-error-dark")),st(M.Alert,"infoFilledBg",N("palette-info-dark")),st(M.Alert,"successFilledBg",N("palette-success-dark")),st(M.Alert,"warningFilledBg",N("palette-warning-dark")),st(M.Alert,"errorFilledColor",Ji(()=>M.getContrastText(M.error.dark))),st(M.Alert,"infoFilledColor",Ji(()=>M.getContrastText(M.info.dark))),st(M.Alert,"successFilledColor",Ji(()=>M.getContrastText(M.success.dark))),st(M.Alert,"warningFilledColor",Ji(()=>M.getContrastText(M.warning.dark))),st(M.Alert,"errorStandardBg",po(M.error.light,.9)),st(M.Alert,"infoStandardBg",po(M.info.light,.9)),st(M.Alert,"successStandardBg",po(M.success.light,.9)),st(M.Alert,"warningStandardBg",po(M.warning.light,.9)),st(M.Alert,"errorIconColor",N("palette-error-main")),st(M.Alert,"infoIconColor",N("palette-info-main")),st(M.Alert,"successIconColor",N("palette-success-main")),st(M.Alert,"warningIconColor",N("palette-warning-main")),st(M.AppBar,"defaultBg",N("palette-grey-900")),st(M.AppBar,"darkBg",N("palette-background-paper")),st(M.AppBar,"darkColor",N("palette-text-primary")),st(M.Avatar,"defaultBg",N("palette-grey-600")),st(M.Button,"inheritContainedBg",N("palette-grey-800")),st(M.Button,"inheritContainedHoverBg",N("palette-grey-700")),st(M.Chip,"defaultBorder",N("palette-grey-700")),st(M.Chip,"defaultAvatarColor",N("palette-grey-300")),st(M.Chip,"defaultIconColor",N("palette-grey-300")),st(M.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),st(M.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),st(M.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),st(M.LinearProgress,"primaryBg",po(M.primary.main,.5)),st(M.LinearProgress,"secondaryBg",po(M.secondary.main,.5)),st(M.LinearProgress,"errorBg",po(M.error.main,.5)),st(M.LinearProgress,"infoBg",po(M.info.main,.5)),st(M.LinearProgress,"successBg",po(M.success.main,.5)),st(M.LinearProgress,"warningBg",po(M.warning.main,.5)),st(M.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),st(M.Slider,"primaryTrack",po(M.primary.main,.5)),st(M.Slider,"secondaryTrack",po(M.secondary.main,.5)),st(M.Slider,"errorTrack",po(M.error.main,.5)),st(M.Slider,"infoTrack",po(M.info.main,.5)),st(M.Slider,"successTrack",po(M.success.main,.5)),st(M.Slider,"warningTrack",po(M.warning.main,.5));const U=md(M.background.default,.98);st(M.SnackbarContent,"bg",U),st(M.SnackbarContent,"color",Ji(()=>M.getContrastText(U))),st(M.SpeedDialAction,"fabHoverBg",md(M.background.paper,.15)),st(M.StepConnector,"border",N("palette-grey-600")),st(M.StepContent,"border",N("palette-grey-600")),st(M.Switch,"defaultColor",N("palette-grey-300")),st(M.Switch,"defaultDisabledColor",N("palette-grey-600")),st(M.Switch,"primaryDisabledColor",po(M.primary.main,.55)),st(M.Switch,"secondaryDisabledColor",po(M.secondary.main,.55)),st(M.Switch,"errorDisabledColor",po(M.error.main,.55)),st(M.Switch,"infoDisabledColor",po(M.info.main,.55)),st(M.Switch,"successDisabledColor",po(M.success.main,.55)),st(M.Switch,"warningDisabledColor",po(M.warning.main,.55)),st(M.TableCell,"border",po(fd(M.divider,1),.68)),st(M.Tooltip,"bg",fd(M.grey[700],.92))}ya(M.background,"default"),ya(M.background,"paper"),ya(M.common,"background"),ya(M.common,"onBackground"),ya(M,"divider"),Object.keys(M).forEach(U=>{const J=M[U];U!=="tonalOffset"&&J&&typeof J=="object"&&(J.main&&st(M[U],"mainChannel",rc(ic(J.main))),J.light&&st(M[U],"lightChannel",rc(ic(J.light))),J.dark&&st(M[U],"darkChannel",rc(ic(J.dark))),J.contrastText&&st(M[U],"contrastTextChannel",rc(ic(J.contrastText))),U==="text"&&(ya(M[U],"primary"),ya(M[U],"secondary")),U==="action"&&(J.active&&ya(M[U],"active"),J.selected&&ya(M[U],"selected")))})}),O=f.reduce((B,M)=>ai(B,M),O);const z={prefix:y,disableCssColorScheme:m,shouldSkipGeneratingVar:x,getSelector:gL(O)},{vars:A,generateThemeVars:D,generateStyleSheets:F}=function(B,M={}){const{getSelector:N=ce,disableCssColorScheme:V,colorSchemeSelector:U}=M,{colorSchemes:J={},components:X,defaultColorScheme:H="light",...ne}=B,{vars:oe,css:ye,varsWithDefaults:de}=Np(ne,M);let xe=de;const we={},{[H]:ve,...re}=J;if(Object.entries(re||{}).forEach(([Se,ie])=>{const{vars:Y,css:le,varsWithDefaults:ee}=Np(ie,M);xe=ai(xe,ee),we[Se]={css:le,vars:Y}}),ve){const{css:Se,vars:ie,varsWithDefaults:Y}=Np(ve,M);xe=ai(xe,Y),we[H]={css:Se,vars:ie}}function ce(Se,ie){let Y=U;if(U==="class"&&(Y=".%s"),U==="data"&&(Y="[data-%s]"),U?.startsWith("data-")&&!U.includes("%s")&&(Y=`[${U}="%s"]`),Se){if(Y==="media")return B.defaultColorScheme===Se?":root":{[`@media (prefers-color-scheme: ${J[Se]?.palette?.mode||Se})`]:{":root":ie}};if(Y)return B.defaultColorScheme===Se?`:root, ${Y.replace("%s",String(Se))}`:Y.replace("%s",String(Se))}return":root"}return{vars:xe,generateThemeVars:()=>{let Se={...oe};return Object.entries(we).forEach(([,{vars:ie}])=>{Se=ai(Se,ie)}),Se},generateStyleSheets:()=>{const Se=[],ie=B.defaultColorScheme||"light";function Y(Pe,Te){Object.keys(Te).length&&Se.push(typeof Pe=="string"?{[Pe]:{...Te}}:Pe)}Y(N(void 0,{...ye}),ye);const{[ie]:le,...ee}=we;if(le){const{css:Pe}=le,Te=J[ie]?.palette?.mode,rt=!V&&Te?{colorScheme:Te,...Pe}:{...Pe};Y(N(ie,{...rt}),rt)}return Object.entries(ee).forEach(([Pe,{css:Te}])=>{const rt=J[Pe]?.palette?.mode,Ve=!V&&rt?{colorScheme:rt,...Te}:{...Te};Y(N(Pe,{...Ve}),Ve)}),Se}}}(O,z);return O.vars=A,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([B,M])=>{O[B]=M}),O.generateThemeVars=D,O.generateStyleSheets=F,O.generateSpacing=function(){return l2(w.spacing,cf(this))},O.getColorSchemeSelector=function(B){return function(M){return B==="media"?`@media (prefers-color-scheme: ${M})`:B?B.startsWith("data-")&&!B.includes("%s")?`[${B}="${M}"] &`:B==="class"?`.${M} &`:B==="data"?`[data-${M}] &`:`${B.replace("%s",M)} &`:"&"}}(v),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=x,O.unstable_sxConfig={...I2,...w?.unstable_sxConfig},O.unstable_sx=function(B){return l0({sx:B,theme:this})},O.toRuntimeSource=dw,O}({...a,colorSchemes:d,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}const pw=uw();function qi(){const e=m1(pw);return e[Ya]||e}function yL({theme:e,...t}){const n=Ya in e?e[Ya]:void 0;return s.jsx(nx,{...t,themeId:n?Ya:void 0,theme:n||e})}const{CssVarsProvider:xL}=function(e){const{themeId:t,theme:n={},modeStorageKey:o=w5,colorSchemeStorageKey:r=S5,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=G.createContext(void 0),p={},f={},h=typeof a=="string"?a:a.light,g=typeof a=="string"?a:a.dark;return{CssVarsProvider:function(m){const{children:y,theme:x,modeStorageKey:v=o,colorSchemeStorageKey:b=r,disableTransitionOnChange:w=i,storageManager:E,storageWindow:C=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:L=!1,disableStyleSheetGeneration:T=!1,defaultMode:j="system",noSsr:S}=m,k=G.useRef(!1),P=s3(),O=G.useContext(d),I=!!O&&!L,z=G.useMemo(()=>x||(typeof n=="function"?n():n),[x]),A=z[t],D=A||z,{colorSchemes:F=p,components:B=f,cssVarPrefix:M}=D,N=Object.keys(F).filter(ee=>!!F[ee]).join(","),V=G.useMemo(()=>N.split(","),[N]),U=typeof a=="string"?a:a.light,J=typeof a=="string"?a:a.dark,X=F[U]&&F[J]?j:F[D.defaultColorScheme]?.palette?.mode||D.palette?.mode,{mode:H,setMode:ne,systemMode:oe,lightColorScheme:ye,darkColorScheme:de,colorScheme:xe,setColorScheme:we}=qE({supportedColorSchemes:V,defaultLightColorScheme:U,defaultDarkColorScheme:J,modeStorageKey:v,colorSchemeStorageKey:b,defaultMode:X,storageManager:E,storageWindow:C,noSsr:S});let ve=H,re=xe;I&&(ve=O.mode,re=O.colorScheme);const ce=G.useMemo(()=>{const ee=re||D.defaultColorScheme,Pe=D.generateThemeVars?.()||D.vars,Te={...D,components:B,colorSchemes:F,cssVarPrefix:M,vars:Pe};if(typeof Te.generateSpacing=="function"&&(Te.spacing=Te.generateSpacing()),ee){const rt=F[ee];rt&&typeof rt=="object"&&Object.keys(rt).forEach(Ve=>{rt[Ve]&&typeof rt[Ve]=="object"?Te[Ve]={...Te[Ve],...rt[Ve]}:Te[Ve]=rt[Ve]})}return l?l(Te):Te},[D,re,B,F,M]),Se=D.colorSchemeSelector;Br(()=>{if(re&&_&&Se&&Se!=="media"){const ee=Se;let Pe=Se;if(ee==="class"&&(Pe=".%s"),ee==="data"&&(Pe="[data-%s]"),ee?.startsWith("data-")&&!ee.includes("%s")&&(Pe=`[${ee}="%s"]`),Pe.startsWith("."))_.classList.remove(...V.map(Te=>Pe.substring(1).replace("%s",Te))),_.classList.add(Pe.substring(1).replace("%s",re));else{const Te=Pe.replace("%s",re).match(/\[([^\]]+)\]/);if(Te){const[rt,Ve]=Te[1].split("=");Ve||V.forEach(Ee=>{_.removeAttribute(rt.replace(re,Ee))}),_.setAttribute(rt,Ve?Ve.replace(/"|'/g,""):"")}else _.setAttribute(Pe,re)}}},[re,Se,_,V]),G.useEffect(()=>{let ee;if(w&&k.current&&R){const Pe=R.createElement("style");Pe.appendChild(R.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),R.head.appendChild(Pe),window.getComputedStyle(R.body),ee=setTimeout(()=>{R.head.removeChild(Pe)},1)}return()=>{clearTimeout(ee)}},[re,w,R]),G.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const ie=G.useMemo(()=>({allColorSchemes:V,colorScheme:re,darkColorScheme:de,lightColorScheme:ye,mode:ve,setColorScheme:we,setMode:ne,systemMode:oe}),[V,re,de,ye,ve,we,ne,oe,ce.colorSchemeSelector]);let Y=!0;(T||D.cssVariables===!1||I&&P?.cssVarPrefix===M)&&(Y=!1);const le=s.jsxs(G.Fragment,{children:[s.jsx(nx,{themeId:A?t:void 0,theme:ce,children:y}),Y&&s.jsx(Oy,{styles:ce.generateStyleSheets?.()||[]})]});return I?le:s.jsx(d.Provider,{value:ie,children:le})},useColorScheme:()=>G.useContext(d)||c,getInitColorSchemeScript:m=>function(y){const{defaultMode:x="system",defaultLightColorScheme:v="light",defaultDarkColorScheme:b="dark",modeStorageKey:w=w5,colorSchemeStorageKey:E=S5,attribute:C=HE,colorSchemeNode:R="document.documentElement",nonce:_}=y||{};let L="",T=C;if(C==="class"&&(T=".%s"),C==="data"&&(T="[data-%s]"),T.startsWith(".")){const S=T.substring(1);L+=`${R}.classList.remove('${S}'.replace('%s', light), '${S}'.replace('%s', dark));
154
- ${R}.classList.add('${S}'.replace('%s', colorScheme));`}const j=T.match(/\[([^\]]+)\]/);if(j){const[S,k]=j[1].split("=");k||(L+=`${R}.removeAttribute('${S}'.replace('%s', light));
155
- ${R}.removeAttribute('${S}'.replace('%s', dark));`),L+=`
156
- ${R}.setAttribute('${S}'.replace('%s', colorScheme), ${k?`${k}.replace('%s', colorScheme)`:'""'});`}else L+=`${R}.setAttribute('${T}', colorScheme);`;return s.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?_:"",dangerouslySetInnerHTML:{__html:`(function() {
157
- try {
158
- let colorScheme = '';
159
- const mode = localStorage.getItem('${w}') || '${x}';
160
- const dark = localStorage.getItem('${E}-dark') || '${b}';
161
- const light = localStorage.getItem('${E}-light') || '${v}';
162
- if (mode === 'system') {
163
- // handle system mode
164
- const mql = window.matchMedia('(prefers-color-scheme: dark)');
165
- if (mql.matches) {
166
- colorScheme = dark
167
- } else {
168
- colorScheme = light
169
- }
170
- }
171
- if (mode === 'light') {
172
- colorScheme = light;
173
- }
174
- if (mode === 'dark') {
175
- colorScheme = dark;
176
- }
177
- if (colorScheme) {
178
- ${L}
179
- }
180
- } catch(e){}})();`}},"mui-color-scheme-init")}({colorSchemeStorageKey:r,defaultLightColorScheme:h,defaultDarkColorScheme:g,modeStorageKey:o,...m})}}({themeId:Ya,theme:()=>uw({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{const t={...e,typography:cw(e.palette,e.typography)};return t.unstable_sx=function(n){return l0({sx:n,theme:this})},t}}),bL=xL;function hw({theme:e,...t}){const n=G.useMemo(()=>{if(typeof e=="function")return e;const o=Ya in e?e[Ya]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?s.jsx(yL,{theme:n,...t}):s.jsx(bL,{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 eo="up",to="down",Jn="left",Un="right",Bu="tl",Xc="t",Yc="l",Jr="c",Dr="text/html",La="text/plain",Vp="image/png",vL=Object.freeze({left:0,top:0}),wL=Object.freeze({left:0,top:0,bottom:0,right:0}),SL=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:SL,EmptyRect:wL,EmptyTopLeft:vL},Symbol.toStringTag,{value:"Module"}));const Hr="column",Ea="row",CL=Object.freeze({colIndex:0,rowIndex:0}),kL=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),fw=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,mw=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,EL=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,ML=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,p9=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,h9=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,gw=(e=Ea,t=!1)=>t?e!==Hr?EL:ML:e!==Hr?mw:fw,f9=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,Eh=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,Mh=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),m9=(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(!Eh(e[n],t[n]))return!1;return!0},Hp=(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),a=Math.max(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},g9=(e,t)=>{if(!t||t.length===0)return e;const n={...e};for(let o=0;o<t.length;o++){const r=t[o];Mh(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},TL=[null,null],_L=(e,t,n)=>{if(e[0].value===e[1].value)return t};function y9(e,t=2,n,o=Ea,r){let i=[...e];if(t<=0||e.length<=1)return i;let a=o===Hr,l=0,c=!1;do{const d=i.sort(gw(a?Ea:Hr));i=[],i.push(d[0]);const p=d.length;let f=0,h=d[0],g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;for(let v=1;v<p;v++){const b=d[v];let w=!1;if(w=a?h&&m===b.rowStart&&x===b.rowEnd&&y+1===b.colStart:h&&g===b.colStart&&y===b.colEnd&&x+1===b.rowStart,w){let E={colStart:g,rowStart:m,colEnd:a?b.colEnd:y,rowEnd:a?x:b.rowEnd};if(h.value!==void 0&&(E.value=h.value),n){const C=r??[null,null];C[0]=h,C[1]=b,E=n(C,E,o)}if(E){i[f]=E,c=!0,h=E,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd;continue}}i[++f]=b,h=b,g=h.colStart,m=h.rowStart,y=h.colEnd,x=h.rowEnd}l++,a=!a,l===1&&(c=!0)}while(l<t&&c&&i.length>1);return i}const Vt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:CL,EmptyRange:kL,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:p9,columnFirstRangeComparator:fw,createCellComparator:(e=Ea,t=!1)=>t?e!==Hr?(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!==Hr?h9:p9,createConflatingRanges:(e,t=!1)=>{const n=[];let o,r,i=Number.MIN_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER;return{append:(l,c,d)=>{let p=!0;const f=d!==void 0;if(f){const m=e?e(r,d,t):r===d?d:void 0;m===void 0?p=!1:d=m}if(p&&c===a+1&&l===i)return t?o.rowEnd=c:o.colEnd=c,a=c,void(r=d);o&&n.push(o);const h=t?l:c,g=t?c:l;o={colStart:h,rowStart:g,colEnd:h,rowEnd:g},f&&(o.value=d),i=l,a=c,r=d},done:l=>(o&&(n.push(o),o=null),l?y9(n,3,l===!0?_L:l,t?Hr:Ea,TL):n)}},createRangeComparator:gw,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:g9,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let n=e,o=null;for(;!Eh(n,o);)o=n,n=g9(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(Mh(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),a=Math.min(e.rowEnd,t.rowEnd);let l=n;return l?(l.colStart=o,l.rowStart=r,l.colEnd=i,l.rowEnd=a):l={colStart:o,rowStart:r,colEnd:i,rowEnd:a},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:f9,isEqualRanges:Eh,isEqualRangesArrays:m9,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!f9(e.cell,t.cell)&&m9(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:Mh,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:y9,rowFirstCellComparator:h9,rowFirstRangeComparator:mw,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:Hp,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=Hp(o,e[r],n);return t&&(o=Hp(o,t,n)),o}},Symbol.toStringTag,{value:"Module"})),jL=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function RL(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===jL}(e)}function ac(e,t){return t.clone!==!1&&t.isMergeableObject(e)?$l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function IL(e,t,n){return e.concat(t).map(function(o){return ac(o,n)})}function x9(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 b9(e,t){try{return t in e}catch{return!1}}function $l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||IL,n.isMergeableObject=n.isMergeableObject||RL,n.cloneUnlessOtherwiseSpecified=ac;const o=Array.isArray(t);return o===Array.isArray(e)?o?n.arrayMerge(e,t,n):function(r,i,a){const l={};return a.isMergeableObject(r)&&x9(r).forEach(function(c){l[c]=ac(r[c],a)}),x9(i).forEach(function(c){var d,p;b9(d=r,p=c)&&(!Object.hasOwnProperty.call(d,p)||!Object.propertyIsEnumerable.call(d,p))||(b9(r,c)&&a.isMergeableObject(i[c])?l[c]=function(f,h){if(!h.customMerge)return $l;const g=h.customMerge(f);return typeof g=="function"?g:$l}(c,a)(r[c],i[c],a):l[c]=ac(i[c],a))}),l}(e,t,n):ac(t,n)}$l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return $l(n,o,t)},{})};const PL=Object.freeze([]),OL=Object.freeze({}),v9=e=>e,Jd=()=>"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)}),yw=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((n,o)=>n===t[o]),B0=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,xw=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?xw(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),DL=(e,t)=>!(e!==t&&!yw(e,t)&&!e.isEqual?.(t)),bw=(e,t,n=DL)=>{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 a=o[i];bw(e[a],t?.[a],n)===null&&(r=!0,delete e[a])}return r&&Object.keys(e).length===0?null:void 0},w9=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),S9=e=>e==null,C9=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),k9=!(typeof window>"u"||!window.document||!window.document.createElement),Ar={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},Jc=()=>{if(vw())return Ar.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?Ar.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?Ar.MacOS:/(iphone|ipad|ipod)/i.test(e)?Ar.IOS:/android/.test(e)?Ar.Android:/linux/.test(e)?Ar.Linux:/^((?!chrome|android|).)*safari/i.test(e)?Ar.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?Ar.Firefox:Ar.Unknown:Ar.Unknown};function vw(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const E9=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),Qo=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:PL,EmptyObject:OL,OSType:Ar,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:k9,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>S9(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,a,l=0;function c(){let p=Date.now()-l;p<t&&p>=0?o=setTimeout(c,t-p):(o=null,n||(a=e.apply(i,r),i=r=null))}t==null&&(t=100);const d=function(){i=globalThis,r=arguments,l=Date.now();var p=n&&!o;return o||(o=setTimeout(c,t)),p&&(a=e.apply(i,r),i=r=null),a};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.flush=function(){o&&(a=e.apply(i,r),i=r=null,clearTimeout(o),o=null)},d},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 a=i[r];if(!(a==="_owner"&&t.$$typeof||e(t[a],n[a])))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:$l,diffValues:(e,t)=>{const n={},o=Object.keys(t),r=o.length;for(let i=0;i<r;i++){const a=o[i];e[a]!==t[a]&&(e[a]===void 0?n[a]=t[a]:n[a]=e[a])}return Object.keys(n).length===0?null:n},findEqualOrGreater:function(e,t,n=v9){let o=0,r=e.length-1;for(;o<=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a<t?o=i+1:r=i-1}return o},findEqualOrLesser:function(e,t,n=v9){let o=e.length-1,r=0;for(;o>=r;){let i=Math.floor((o+r)/2),a=n(e[i]);if(a===t)return i;a>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 a=o[i];if(typeof a=="function"&&(a=a.bind(o)()),!a||!B0(a))return a;o=a}return o??null},getOS:Jc,hasFocus:E9,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:yw,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:vw,isNullOrUndefined:S9,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:B0,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:C9,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!B0(e[t-1]))return e[t-1];let n=e[0]||{};for(let o=1;o<t;o++)n=$l(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(!k9)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:xw,removeEqualValues:bw,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const n=w9(),o={id:requestAnimationFrame(function r(){w9()-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 a=o[i];let l=r[a];if(l==null&&(l={},r[a]=l),!B0(l))throw new Error("Can not set path to a non object path.");r=l}if(typeof n!="number"&&typeof n!="boolean"&&typeof n!="string"&&!B0(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,a=1;if(o>5e-8)for(;i<8&&Math.abs(r/a-o)>5e-8;)i++,a*=10,r=Math.round(o*a);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(!C9(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})},a=()=>{t.bottom>r.top&&t.bottom<r.bottom&&(o.push({...r,top:t.bottom}),r={...r,bottom:t.bottom})},l=()=>{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(),l(),i(),a()):(i(),a(),l(),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:Jd,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=>{E9(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 ww=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")},Th=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:ww,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:Th},Symbol.toStringTag,{value:"Module"}));const Sw="data:image/png;base64,",Cw="Unable to resolve image.",M9=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(Cw)}),Wp="image/svg+xml";var T9,_9;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Sw,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 a=i.toDataURL("image/png",t);n({elemImg:r,dataUrl:a})}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(Cw)}),loadImageDetails:async(e,t=null)=>{let n=null;const o=async()=>{try{const i=t??"image/*",a=URL.createObjectURL(new Blob([e],{type:i})),l=await M9(a);n={mimeType:i,naturalDimensions:l,asUrl:a}}catch{}},r=async()=>{try{const i=new TextDecoder().decode(e),a=URL.createObjectURL(new Blob([i],{type:Wp})),l=await M9(a);n={mimeType:t??Wp,naturalDimensions:l,asUrl:a,asSVGText:i}}catch{}};if(t===Wp?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"})),(_9=T9||(T9={})).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,a=t?.arrayType??!1;let l=r;if(t&&t.merge&&l&&o)l=t.merge(l,o,n);else if(!a&&i){const c=Object.keys({...r,...o});l=null;for(let d=0;d<c.length;d++){const p=c[d];let f,h=r[p];if(h!==void 0){const g=i[p];f=g?(0,_9.resolveTypedUpdates)(h,g,n,o?.[p]):h}else f=o?.[p];f!=null&&(l=l??{},l[p]=f)}}return l};const j9=`The Safari browser does not support advanced copy and paste.
181
- Copy and paste will be limited to within the browser tab.
182
-
183
- Please use Chrome or Edge if external copy and paste is required.`,Up=`You do not have permissions to access the clipboard.
184
- All copy and paste operations will be limited to the browser tab.`,kw={Safari:`The Safari browser does not support advanced copy and paste.
185
- Copy and paste will be limited to within the browser tab.
186
-
187
- Please use Chrome or Edge if external copy and paste is required.`,Perms:Up,PermsWrite:Jc()===Ar.Safari?j9:Up,PermsRead:Jc()===Ar.Safari?j9:Up},qp=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),Kp=async(e,t,n)=>{if(Jc()===Ar.Safari)return await n(new Error(kw.Safari));try{const o=async a=>{try{return await a()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},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)}},Ew=async e=>{try{return await e.read({unsanitized:[Dr]})}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={},a=Object.keys(o);for(let l=0;l<a.length;l++){const c=a[l];let d=o[c];i[c]=typeof d=="string"?e(c,d):d}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 _h=async(e,t=Dr)=>new Promise(async(n,o)=>{try{const r=await(async(i,a)=>{if(!i)return null;const l=await Ew(i);let c=!1;for(let d=0;!c&&l&&d<l.length;d++)if(c=l[d].types.includes(a),c)return await l[d].getType(a);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)}}),R9=async(e,t=Dr)=>{const n=await _h(e,t);if(!n)return null;let o=null;try{o=new DOMParser().parseFromString(n,Dr)}catch{console.warn("Can't parse html from clipboard.")}return o},Qc="clipboard-uuid",is="web text/uuid",I9=e=>`<div style="display:none" ${Qc}="${e}"/>`,AL=(e,t)=>{let n=null;try{const o=new DOMParser().parseFromString(t,Dr);o.body.firstElementChild.setAttribute(Qc,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(o){console.warn("Can't embed uuid.",o)}return n},P9=(e,t)=>{if(!t||!e)return!1;try{const n=t.querySelectorAll(`[${Qc}="${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 Nu=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 Kp("clipboard-read",async()=>{await qp();const e=await _h(this._nativeClipboard,is);if(!this._state||e&&e===this._state.uuid)return!0;const t=await R9(this._nativeClipboard,Dr);return!this._state||(P9(this._state.uuid,t)||this.clear(),!0)},async e=>{e?.message==="denied"||e.message?.includes("Document is not focused")||Jc()===Ar.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 Kp("clipboard-read",async()=>{if(await qp(),this._state?.uuid){const t=await _h(this._nativeClipboard,is);if(t&&t===e._state.uuid)return!0;const n=await R9(this._nativeClipboard,Dr);if(P9(e._state?.uuid,n))return!0}return e._state={items:await Ew(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:Jd(),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 Kp("clipboard-write",async()=>{await qp(),o&&r.length===0&&(r.push(new ClipboardItem({[is]:new Blob([o],{type:is})})),r.push(new ClipboardItem({[Dr]:new Blob([I9(o)],{type:Dr})})));for(let a=0;a<Math.min(1,r.length);a++){const l=r[a];let c=l.types.indexOf(Dr),d=null;if(c!==-1){const h=await l.getType(Dr);d=await Th(h),d&&(d=AL(o,d))}if(!d&&l.types.includes(La)){const h=await l.getType(La);if(h){let g=null;typeof h=="string"?(console.warn("text as string",h),g=h):g=await Th(h),g&&(d=`<div ${Qc}="${o}">${g}</div>`)}}if(!d&&l.types.includes(Vp)){const h=await l.getType(Vp),g=ww(await h.arrayBuffer());d=`<div ${Qc}="${o}"><img src="${Sw+g}"/></div>`}!d&&o&&(d=I9(o));const p=new Blob([d??""],{type:Dr}),f={};for(let h=0;h<l.types.length;h++){const g=l.types[h];f[g]=h===c?p:l.getType(g)}d&&c===-1&&(f[Dr]=p),o&&(f[is]=new Blob([o],{type:is})),n.push(new ClipboardItem(f))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async a=>{a&&await a.writeText("")})(this._nativeClipboard)}catch(a){a.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",a)}return i(),!0},async a=>{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[La]=new Blob([r??""],{type:La}))}catch(r){t=r}try{const r=await e.toHtml?.()??null;r&&(n[Dr]=new Blob([r],{type:Dr}))}catch(r){t=r,console.warn("export to html",r)}try{const r=await e.toImage?.()??null;r&&(n[Vp]=r)}catch(r){t=r,console.warn("export to png",r)}const o=this._write({uuid:Jd(),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(La)&&(o=await n[i].getType(La));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({[La]:new Blob([e],{type:La})})];return this._write({uuid:Jd(),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(a){console.warn(a)}})};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 Gp;(Gp=Nu||(Nu={})).ErrorMessages=kw,Gp.Global=new Gp,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 lc={Left:"left",Right:"right",Center:"center"},Vo="shift",dl="alt",mr="ctrl",nl={Horizontal:"horizontal",Vertical:"vertical"};function Mw(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=Mw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function xs(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Mw(e))&&(o&&(o+=" "),o+=t);return o}var LL=function(){},Tw=typeof window<"u",zL=Tw?u.useLayoutEffect:u.useEffect,O9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Vl=Tw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(O9),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return zL(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[LL,O9]},wt=(e,t)=>{const n=u.useCallback((...i)=>e?.(...i),t),o=u.useRef(null);o.current=n;const r=u.useCallback((...i)=>o.current?.(...i),[]);if(o.current)return r},FL=e=>{const{style:t,orientation:n=nl.Vertical,...o}=e,r=n===nl.Vertical;return s.jsx("div",{style:{paddingBottom:"0px",paddingRight:"0px",paddingLeft:r?"0px":"3px",paddingTop:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button start`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},BL=e=>{const{style:t,orientation:n=nl.Vertical,...o}=e,r=n===nl.Vertical;return s.jsx("div",{style:{paddingLeft:"0px",paddingTop:"0px",paddingRight:r?"0px":"3px",paddingBottom:r?"3px":"0px",display:"flex",alignItems:"center",justifyContent:"center",...t},...o,children:s.jsx("button",{style:{padding:"0",display:"flex",alignItems:"center",justifyContent:"center",border:"none"},className:`scrollbar-button ${r?"vertical":"horizontal"} single-button end`,children:s.jsx("svg",{width:"9",height:"9",viewBox:"0 0 6 6",style:{opacity:"inherit"},children:s.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"})})})})},jh=(e,t,n,o,r=0)=>{for(let i=0;i<n.length;i++){const a=n[i].getBoundingClientRect();let l=a.left-t,c=l+a.width;if(o){if(l<e&&c>=e)return l}else if(Math.ceil(c)>Math.ceil(e)+2)return c}return r};Object.freeze(Object.defineProperty({__proto__:null,getScrollTo:jh},Symbol.toStringTag,{value:"Module"}));const uf=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,totalSize:o=0,viewportSize:r=0,style:i,className:a,orientation:l=nl.Vertical,onScrollOffset:c,onScroll:d,showCustomScrollButtons:p=!1,scrollButtonIncrement:f=200,scrollButtonInitialRepeatDelay:h=260,scrollButtonAdditionalRepeatDelay:g=120,createScrollStartButton:m=FL,createScrollEndButton:y=BL,...x}=e,v=wt(d,[d]),b=u.useRef(null),[w,{width:E,height:C}]=Vl(),[R,{width:_,height:L}]=Vl(),T=l===nl.Vertical,j=T?"top":"left",S=T?"scrollTop":"scrollLeft",k=T?C:E,P=T?L:_,[O,I]=u.useState(null);u.useEffect(()=>{O!==null&&b.current&&b.current.scrollTo({behavior:"smooth",[j]:O})},[O,T]);const z=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=ne?0:jh(H,ye[j],de,!0,Math.max(0,H-f));return I(xe),Math.max(0,xe)},[]),A=u.useCallback((H,ne=!1)=>{if(!b.current)return 0;const oe=b.current.querySelector(".scrollbar-viewport"),ye=oe.getBoundingClientRect(),de=oe.children,xe=Math.ceil(P-k),we=ne?xe:jh(H,ye[j],de,!1,Math.max(0,H+f));return I(we),Math.min(xe,we)},[P,k]),D=u.useRef(null),F=u.useCallback(H=>{D.current=n;const ne=H.target[S];c(ne,r,o),v?.(H)},[c,r,o,n]);u.useEffect(()=>{const H=D.current;D.current=null,n!==H&&(b.current[S]=n)},[n,S]);const B=u.useRef(null),M=u.useRef(null),N=u.useCallback(()=>{B.current&&(clearTimeout(B.current),B.current=null,M.current=null)},[]),V=u.useCallback((H,ne,oe,ye=h)=>{M.current=H,B.current=setTimeout(()=>{const de=oe?z(M.current||H):A(M.current||H);de!==M.current?V(de,!1,oe,g):N()},ne?0:ye)},[z,A,N]);u.useEffect(()=>()=>N(),[N]);const U=n,J=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(U)<=0||Math.floor(P-k)===0,onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!0)};return m?.(H)},[p,l,U,O,P,k]),X=u.useMemo(()=>{if(!p)return null;const H={orientation:l,disabled:Math.floor(P-k)<=Math.ceil(U),onMouseUp:N,onMouseLeave:N,onMouseDown:()=>V(U,!0,!1)};return y?.(H)},[p,l,U,O,P,k]);return s.jsxs("div",{ref:t,style:{display:"flex",flex:"1",flexDirection:T?"column":"row",padding:"0",...i},className:xs("_sheetxl-scrollbar_eblx4_6",a),...x,children:[J,s.jsx("div",{className:"pseudo-scrollbar",style:{flex:"1 1 100%",display:"flex",boxSizing:"content-box",flexDirection:T?"column":"row",justifyContent:"center",alignItems:"center"},ref:w,children:s.jsx("div",{tabIndex:-1,style:{flex:"1 1 100%",overflowY:T?"scroll":"hidden",overflowX:T?"hidden":"scroll",position:"relative",willChange:"transform"},onScroll:F,ref:b,children:s.jsx("div",{ref:R,style:{position:"absolute",height:T?o-r+(C??0):1,width:T?1:o-r+(E??0)},className:"scrollbar-viewport"})})}),X]})}));uf.displayName="Scrollbar";let D9=Date.now,qa={},NL=1;const N0=e=>{let t=qa[e]!==null;return t&&(qa[e]=null),t},A9=(e,t,n,o=0,r)=>{let i=D9(),a=i,l=0,c=0,d=0,p=NL++;if(p%20==0){const h={};for(let g in qa)h[g]=!0;qa=h}const f=function(h){let g=h!==!0,m=D9(),y=!0;try{y=(!t||t(p))??!0}catch{y=!1}if(!qa[p]||!y)return qa[p]=null,void n?.(60-c/((m-i)/1e3),p,!1);if(g){d=Math.round((m-a)/16.666666666666668)-1;for(let b=0;b<Math.min(d,4);b++)f(!0),c++}o&&(l=(m-i)/o,l>1&&(l=1));let x=r?r(l):l,v=!1;try{v=e(x,m,g)}catch{v=!1}v!==!1&&l!==1||!g?g&&(a=m,requestAnimationFrame(f)):(qa[p]=null,n?.(60-c/((m-i)/1e3),p,l===1||o==null))};return qa[p]=!0,requestAnimationFrame(f),p},$L=function(e){return Math.pow(e-1,3)+1},VL=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)};let HL=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&&(N0(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 a=e/i;let l=a*(this.__scrollLeft+n)-n,c=a*(this.__scrollTop+o)-o;l>this.__maxScrollLeft?l=this.__maxScrollLeft:l<0&&(l=0),c>this.__maxScrollTop?c=this.__maxScrollTop:c<0&&(c=0),this.__publish(l,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&&(N0(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&&(N0(this.__isDecelerating),this.__isDecelerating=0,this.__interruptedAnimation=!0),this.__isAnimating&&(N0(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 a=o-this.__lastTouchLeft,l=r-this.__lastTouchTop,c=this.__scrollLeft,d=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,d=(g+d)*p/f-g,this.__computeScrollMax(p)}}if(this.__enableScrollX){c-=a*this.options.speedMultiplier;let f=this.__maxScrollLeft;(c>f||c<0)&&(this.options.bouncing?c+=a/2*this.options.speedMultiplier:c=c>f?f:0)}if(this.__enableScrollY){d-=l*this.options.speedMultiplier;const f=this.__maxScrollTop;(d>f||d<0)&&(this.options.bouncing?d+=l/2*this.options.speedMultiplier:d=d>f?f:0)}i.length>60&&i.splice(0,30),i.push(c,d,t),this.__publish(c,d,p)}else{let a=this.options.locking?3:0,l=5,c=Math.abs(o-this.__initialTouchLeft),d=Math.abs(r-this.__initialTouchTop);this.__enableScrollX=this.options.scrollingX&&c>=a,this.__enableScrollY=this.options.scrollingY&&d>=a,i.push(this.__scrollLeft,this.__scrollTop,t),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(c>=l||d>=l),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],a=this.__scrollTop-t[o-1];this.__decelerationVelocityX=i/r*(1e3/60),this.__decelerationVelocityY=a/r*(1e3/60);const l=this.options.paging||this.options.snapping?4:1;(Math.abs(this.__decelerationVelocityX)>l||Math.abs(this.__decelerationVelocityY)>l)&&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&&(N0(r),this.__isAnimating=0),o&&this.options.animating){this.__scheduledLeft=e,this.__scheduledTop=t,this.__scheduledZoom=n;const i=this.__scrollLeft,a=this.__scrollTop,l=this.__zoomLevel,c=e-i,d=t-a,p=n-l,f=function(m,y,x){x&&(this.__scrollLeft=i+c*m,this.__scrollTop=a+d*m,this.__zoomLevel=l+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,y,x){y===this.__isAnimating&&(this.__isAnimating=!1),(this.__didDecelerationComplete||x)&&this.options.scrollingComplete?.(),this.options.zooming&&(this.__computeScrollMax(),this.__zoomComplete&&(this.__zoomComplete(),this.__zoomComplete=null))}.bind(this);this.__isAnimating=A9(f,h,g,this.options.animationDuration,r?$L:VL)}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),a=Math.max(Math.min(this.__scrollTop,this.__maxScrollTop),0),l=this.__clientWidth,c=this.__clientHeight;this.__minDecelerationScrollLeft=Math.floor(i/l)*l,this.__minDecelerationScrollTop=Math.floor(a/c)*c,this.__maxDecelerationScrollLeft=Math.ceil(i/l)*l,this.__maxDecelerationScrollTop=Math.ceil(a/c)*c}else this.__minDecelerationScrollLeft=0,this.__minDecelerationScrollTop=0,this.__maxDecelerationScrollLeft=this.__maxScrollLeft,this.__maxDecelerationScrollTop=this.__maxScrollTop;const t=function(i,a,l){this.__stepThroughDeceleration(l)}.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,a,l){this.__isDecelerating=0,this.__didDecelerationComplete&&this.options.scrollingComplete?.(),this.scrollTo(this.__scrollLeft,this.__scrollTop,this.options.snapping)}.bind(this);this.__isDecelerating=A9(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,a=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*a),r!==0&&(r*this.__decelerationVelocityY<=0?this.__decelerationVelocityY+=r*i:this.__decelerationVelocityY=r*a)}}};var li=typeof window<"u"?window:{screen:{},navigator:{}},Zs=(li.matchMedia||function(){return{matches:!1}}).bind(li),_w=!1,WL={get passive(){return _w=!0}},L9=function(){};li.addEventListener&&li.addEventListener("p",L9,WL),li.removeEventListener&&li.removeEventListener("p",L9,!1);var UL=_w,qL="PointerEvent"in li,pf="ontouchstart"in li,jw=pf||"TouchEvent"in li&&Zs("(any-pointer: coarse)").matches,z9=(li.navigator.maxTouchPoints||0)>0||jw,Rw=li.navigator.userAgent||"",KL=Zs("(pointer: coarse)").matches&&/iPad|Macintosh/.test(Rw)&&Math.min(li.screen.width||0,li.screen.height||0)>=768,Iw=(Zs("(pointer: coarse)").matches||!Zs("(pointer: fine)").matches&&pf)&&!/Windows.*Firefox/.test(Rw),GL=Zs("(any-pointer: fine)").matches||Zs("(any-hover: hover)").matches||KL||!pf,Rh=!z9||!GL&&Iw?z9?"touchOnly":"mouseOnly":"hybrid",ZL=Rh==="mouseOnly"?"mouse":Rh==="touchOnly"||Iw?"touch":"mouse";const XL=Object.freeze(Object.defineProperty({__proto__:null,deviceType:Rh,primaryInput:ZL,supportsPassiveEvents:UL,supportsPointerEvents:qL,supportsTouchEvents:jw},Symbol.toStringTag,{value:"Module"})),YL=new Set(["INPUT","TEXTAREA","SELECT"]),Pw={};function Ih(){return XL}const Qt=Object.freeze(Object.defineProperty({__proto__:null,EmptyCssProperties:Pw,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:Ih,focusableNodeNames:YL,toPrettyKeyCode:e=>e==="BracketLeft"?"[":e==="BracketRight"?"]":Qo.camelToPrettyCase(e)},Symbol.toStringTag,{value:"Module"})),JL=[];function P2(e,t,n=JL){const o=u.useRef(null);return u.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 a=Object.keys(i),l=a.length;for(let c=0;c<l;c++){const d=a[c],p=i[d];Object.defineProperty(r,d,{value:p,writable:!0,configurable:!0,enumerable:!0})}return r},n),o}const F9=e=>s.jsx(uf,{...e}),QL=({width:e,height:t})=>s.jsx("div",{className:"corner",style:{minWidth:`${e}px`,width:`${e}px`,minHeight:`${t}px`,height:`${t}px`}}),Ow=u.memo(u.forwardRef((e,t)=>{const{children:n,viewport:o,onScrollViewport:r,showHorizontalScrollbar:i=!0,showVerticalScrollbar:a=!0,createScrollCorner:l=QL,createHorizontalScrollbar:c=F9,createVerticalScrollbar:d=F9,style:p,touchElement:f,disableTouch:h,...g}=e,m=wt(r,[r]),y=P2(t,()=>({isScrollPane:()=>!0}),[]),x=u.useRef(null);u.useEffect(()=>{x.current&&(x.current.__scrollTop===o?.top&&x.current.__scrollLeft===o?.left||x.current.__isDecelerating||x.current?.scrollTo(o?.left,o?.top,!1))},[o?.left,o?.top,f]);const v=u.useCallback((k,P)=>{m?.({left:k,top:P})},[]),b=u.useCallback(k=>{x.current?.doTouchStart(k.touches,k.timeStamp)},[]),w=u.useCallback(k=>{k.preventDefault(),x.current?.doTouchMove(k.touches,k.timeStamp)},[]),E=u.useCallback(k=>{x.current?.doTouchEnd(k.timeStamp)},[]),C=u.useCallback(({containerWidth:k,containerHeight:P,totalWidth:O,totalHeight:I})=>{x.current.setDimensions(k,P,O,I)},[]);u.useEffect(()=>{const k=f??y.current;if(!h&&Ih().supportsTouchEvents&&k&&o){if(!x.current){const P={scrollingX:!0,scrollingY:!0,decelerationRate:.95,penetrationAcceleration:.08};x.current=new HL(v,P)}Ih().supportsTouchEvents&&(k.addEventListener("touchstart",b),k.addEventListener("touchend",E),k.addEventListener("touchmove",w)),C({containerWidth:o?.width,containerHeight:o?.height,totalWidth:o?.totalWidth,totalHeight:o?.totalHeight})}return()=>{k?.removeEventListener("touchstart",b),k?.removeEventListener("touchend",E),k?.removeEventListener("touchmove",w)}},[o?.width,o?.height,o?.totalWidth,o?.totalHeight,h,f]);const[R,{width:_}]=Vl(),[L,{height:T}]=Vl(),j=u.useMemo(()=>{const k=d({orientation:nl.Vertical,offset:o?.top,viewportSize:o?.height,totalSize:o?.totalHeight,onScrollOffset:P=>{m?.({top:P})}});return s.jsx("div",{style:{display:"flex",flex:"0"},ref:R,children:k})},[d,o?.top,o?.height,o?.totalHeight]),S=u.useMemo(()=>{const k=c({orientation:nl.Horizontal,offset:o?.left,viewportSize:o?.width,totalSize:o?.totalWidth,onScrollOffset:P=>m?.({left:P})});return s.jsxs("div",{style:{display:"flex",flex:"none",flexDirection:"row",alignItems:"stretch",justifyContent:"center"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",flexDirection:"column",width:`calc(100% - ${_}px)`},children:s.jsx("div",{ref:L,className:"sizer",children:k})}),a?l({width:_,height:T}):s.jsx(s.Fragment,{})]})},[c,o?.left,o?.width,o?.totalWidth,a,l,_,T]);return s.jsx("div",{style:{position:"relative",display:"flex",minWidth:a?`${_}px`:void 0,minHeight:i?`${T}px`:void 0,...p},...g,ref:y,children:s.jsxs("div",{style:{position:"relative",width:"100%",flex:"1 1 100%",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:[s.jsx("div",{style:{display:"flex",flex:"1 1 100%",overflow:"hidden"},children:n}),a?j:s.jsx(s.Fragment,{})]}),i?S:s.jsx(s.Fragment,{})]})})}));Ow.displayName="ScrollPane";const ez=()=>{const e=document.fullscreenElement;return e?e.querySelector(".fullscreen-portal-root")||e:document.body};let gd=0;function Dw(){return u.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 gd++,e(),document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),gd--,gd<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(t=>{t.parentNode&&t.parentNode.removeChild(t)}),gd=0)}},[]),{getPortalContainer:ez}}const tz=100,nz=100,oz=1e6,rz=100,iz=50,az=u.memo(u.forwardRef((e,t)=>{const{offset:n=0,viewportSize:o=0,totalSize:r=0,minSize:i=0,endGap:a=tz,endScrollIncrement:l=nz,style:c=Pw,onMouseDown:d,onScrollOffset:p,onScroll:f,scaleLimit:h=oz,scaleFactor:g=rz,precisionFactor:m=iz,...y}=e;f&&console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");const x=wt(d,[d]),v=()=>({offset:n,totalSize:h===0?r:Math.min(r??0,Math.max(i??0,(n??0)+(o??0))+(a??0))}),[b,w]=u.useState(v),E=h!==0&&b.totalSize>h?g:1,C=E/m,R=Math.ceil(b.totalSize/E),_=Math.ceil(b.offset/E),L=Math.ceil(o/E),T=u.useCallback(z=>{},[]),[j,S]=u.useState(!1),k=u.useRef(null);u.useLayoutEffect(()=>{if(!j){k.current={propTotalSize:r,propViewportSize:o,propOffset:n};const z=v();w(z)}},[r,o,n,j,i,a,l]);const P=wt((z,A,D)=>{const F=k.current;k.current=null,F&&F.propTotalSize===r&&F.propViewportSize===o&&F.propOffset===n||(Math.abs(z-_)<C&&(z=_),p?.(z*E,_,L))},[p,E,C,_,L]),O=u.useCallback(z=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O),S(!1)},[]),I=u.useCallback(z=>{x?.(z),S(!0),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("mouseup",O,{passive:!0})},[T,O]);return s.jsx(uf,{ref:t,style:{...c},...y,offset:_,totalSize:R,viewportSize:L,onMouseDown:I,onScrollOffset:P})}));function Zp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}az.displayName="VirtualScrollbar";var $u=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Zp(o,t),i=typeof r=="function";n.push(i?r:()=>Zp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Zp(n,t)}};u.memo(u.forwardRef((e,t)=>{const{refFocusStart:n,...o}=e,r=u.useRef(null),i=u.useCallback(()=>{if(n)return void n?.current?.focus();const a=r.current.parentElement.children;let l=[];for(let c=0;c<a.length&&a[c]!==r.current;c++){const d=a[c].getAttribute("tabindex");if(d==null||d==="-1"||a[c].getAttribute("disabled")==="true")continue;const p=a[c];p.focus&&l.push({tabindex:parseInt(d),child:p})}l.length!==0&&(l.sort(function(c,d){return c.tabindex-d.tabindex}),l[0].child.focus())},[n]);return s.jsx("div",{tabIndex:0,ref:$u([r,t]),onFocus:i,...o})})),u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,children:r,radius:i=4,strokeWidth:a=1,strokeColor:l="grey",...c}=e,[d,{width:p,height:f}]=Vl(),h=u.useRef(null),g=(v,b=0)=>{const w=v/2,E=f-w+b;return function(C,R,_=!1){if(R===0)return C;function L(O,I,z){let A=I.x-O.x,D=I.y-O.y,F=Math.sqrt(A*A+D*D);return T(O,I,Math.min(1,z/F))}function T(O,I,z){return{x:O.x+(I.x-O.x)*z,y:O.y+(I.y-O.y)*z}}function j(O,I){O.length>2&&(O[O.length-2]=I.x,O[O.length-1]=I.y)}function S(O){return{x:parseFloat(O[O.length-2]),y:parseFloat(O[O.length-1])}}let k=C.split(/[,\s]/).reduce(function(O,I){let z=I.match("([a-zA-Z])(.+)");return z?(O.push(z[1]),O.push(z[2])):O.push(I),O},[]).reduce(function(O,I){return parseFloat(I)==I&&O.length?O[O.length-1].push(I):O.push([I]),O},[]),P=[];if(k.length>1){let O=S(k[0]),I=null;k[k.length-1][0]==="Z"&&k[0].length>2&&(I=["L",O.x,O.y],k[k.length-1]=I),P.push(k[0]);for(let z=1;z<k.length;z++){let A=P[P.length-1],D=k[z],F=D===I?k[1]:k[z+1];if(F&&A&&A.length>2&&D[0]==="L"&&F.length>2&&F[0]==="L"){let B,M,N=S(A),V=S(D),U=S(F);_?(B=T(V,A.origPoint||N,R),M=T(V,F.origPoint||U,R)):(B=L(V,N,R),M=L(V,U,R)),j(D,B),D.origPoint=V,P.push(D);let J=T(B,V,.5),X=T(V,M,.5),H=["C",J.x,J.y,X.x,X.y,M.x,M.y];H.origPoint=V,P.push(H)}else P.push(D)}if(I){let z=S(P[P.length-1]);P.push(["Z"]),j(P[0],z)}}else P=k;return P.reduce(function(O,I){return O+I.join(" ")+" "},"")}(`M 0 ${w} L ${i-.5} ${w} 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} ${w} L ${p} ${w}`,i)},m=u.useMemo(()=>g(a),[p,f,i,a]),y=u.useMemo(()=>{if(i===0)return;const v=i/2;return g(i)+`L ${p} 0 L 0 0 L 0 ${v}`},[m,i,a]),x=u.useMemo(()=>({style:{clipPath:`path('${y}')`}}),[y]);return s.jsxs("div",{className:n,style:{display:"flex",flexDirection:"row",...o},...c,ref:$u([h,d,t]),children:[u.isValidElement(r)?u.cloneElement(r,x):s.jsx(s.Fragment,{}),s.jsx("svg",{style:{position:"absolute",top:0,left:0,pointerEvents:"none"},width:p,height:f,viewBox:`0 0 ${p} ${f}`,children:s.jsx("path",{d:m,stroke:l,fill:"none",vectorEffect:"non-scaling-stroke",strokeWidth:a})})]})}));const lz={},sz=e=>{const{onPointerDown:t,style:n,splitDirection:o,paddingBefore:r=0,paddingAfter:i=0,disabled:a,key:l,hitAreaProps:c=lz,...d}=e,p=o==="row",{style:f,className:h,...g}=c;return s.jsx("div",{style:{...n,position:"relative"},...d,children:s.jsx("div",{className:xs("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:a?void 0:t,...g})},l)},yd={},ul=(e,t,n=!0)=>e===null?null:e.pixels!==null?n?e.pixels:t-e.pixels:(n?e.percent:100-e.percent)/100*t,xd=(e,t=!0)=>e?.percent?`${t?e.percent:100-e.percent}%`:e?.pixels?`${e.pixels}px`:void 0,za=(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 Rs(e){if(!e)throw new Error("must have a PointerHandlerOptions");const{onPointerDown:t,onPointerUp:n,onPointerMoveOrWait:o,processTouch:r=!1,consumeTouch:i=!0}=e,a=wt(t,[t]),l=wt(n,[n]),c=wt(o,[o]),d=u.useRef(!1),p=e?.timerInitial??230,f=e?.timerContinuous??p/2,h=u.useRef(null),g=u.useRef(null),m=u.useRef(null),y=u.useRef(null),x=u.useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=null)},[]),v=u.useCallback(j=>{y.current=setTimeout(()=>{window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,h.current)}),v(f)},j??p)},[]);u.useEffect(()=>()=>x(),[]);const b=r?"pointer":"mouse",w=u.useCallback(j=>{j.stopPropagation(),j.stopImmediatePropagation(),j.preventDefault()},[]),E=wt(j=>{document.removeEventListener(`${b}move`,_),document.removeEventListener(`${b}up`,E),document.removeEventListener("keydown",L),document.removeEventListener("keyup",T),document.removeEventListener("touchstart",w,{capture:!0}),document.removeEventListener("touchmove",w,{capture:!0}),window.removeEventListener("blur",C),x(),window.requestAnimationFrame(()=>{d.current!==!1&&(d.current=!1,l?.(j,m.current,h.current),m.current=null)})},[]),C=u.useCallback(()=>{d.current!==!1&&(d.current=!1,E(g.current))},[]),R=wt(()=>{x(),v(f),window.requestAnimationFrame(()=>{d.current!==!1&&c?.(g.current,m.current,h.current)})},[f]),_=wt(j=>{g.current=j,R()},[]),L=wt(j=>{m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},R()},[]),T=wt(j=>{m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},R()},[f]);return wt(j=>{j.isDefaultPrevented()||(m.current={ctrlKey:j.ctrlKey,shiftKey:j.shiftKey,altKey:j.altKey,metaKey:j.metaKey},a(j,m.current)!==!1&&(h.current=j,g.current=j.nativeEvent,document.addEventListener(`${b}up`,E,{passive:!1}),document.addEventListener(`${b}move`,_,{passive:!1}),document.addEventListener("keydown",L,{passive:!1}),document.addEventListener("keyup",T,{passive:!1}),window.addEventListener("blur",C,{passive:!0}),r&&i&&(document.addEventListener("touchstart",w,{passive:!1,capture:!0}),document.addEventListener("touchmove",w,{passive:!1,capture:!0})),d.current=!0,v(p)))},[p,r])}u.memo(u.forwardRef((e,t)=>{const{elementBefore:n,elementAfter:o,splitDirection:r="row",fixedPane:i=null,position:a,onPositionChange:l,minBefore:c,maxBefore:d,minAfter:p,maxAfter:f,children:h,className:g,style:m,disabled:y=!1,onDragStart:x,onDragResize:v,onDragFinish:b,resizerProps:w=yd,paneProps:E=yd,paneBeforeProps:C=yd,paneAfterProps:R=yd,createResizer:_=sz}=e;if(h)throw new Error("Use elementBefore and elementAfter instead of children.");const L=u.useMemo(()=>u.isValidElement(o)&&u.isValidElement(n),[o,n]),T=u.useMemo(()=>{let ue=null;i&&(i==="before"?ue=0:i==="after"&&(ue=1));const De=ue===null;return{fixedPaneOffset:ue,isPercent:De,minBefore:za(c,De),maxBefore:za(d,De),minAfter:za(p,De),maxAfter:za(f,De)}},[c,d,p,f]),j=wt(l,[l]),[S,k]=u.useState(()=>za(a,i===null));u.useEffect(()=>{k(za(a,i===null))},[a,i]);const[P,{width:O,height:I}]=Vl(),[z,{width:A,height:D}]=Vl(),F=r==="row"?A:D,B=r==="row"?O:I,M=u.useMemo(()=>((ue,De,Ae,W)=>{const Q=[null,null],K=[null,null];if(ue||(ue={percent:W.fixedPaneOffset===null?50:null,pixels:W.fixedPaneOffset===null?null:0}),De===0)return ue?.pixels!=null?W.fixedPaneOffset!==1?(Q[0]=ue?.pixels,K[1]=100):(Q[1]=ue?.pixels-Ae,K[0]=100):ue?.percent!=null&&(W.fixedPaneOffset!==1?(K[0]=ue?.percent,K[1]=100-ue?.percent):(K[1]=ue?.percent,K[0]=100-ue?.percent)),{percents:K,pixels:Q,minBefore:xd(W.minBefore,!0),maxBefore:xd(W.maxBefore,!0),minAfter:xd(W.minAfter),maxAfter:xd(W.maxAfter)};let se=ul(ue,De,W.fixedPaneOffset!==1),te=De-Ae,ae=ul(W.minBefore,te,!0)??0,pe=ul(W.maxBefore,te,!0)??te,me=0,fe=0,je=0,Fe=te;me=(ul(W.maxAfter,De,!1)??Ae)-Ae,fe=ul(W.minAfter,De,!1)??De,je=Math.max(ae,me),Fe=Math.min(pe,fe),se=Math.max(je,Math.min(se,Fe)),fe=Math.min(te-se,ul(W.maxAfter,te-se,!0)??te),me=Math.min(te-se,ul(W.minAfter,te-se,!0)??te),Q[0]=se,Q[1]=te-Q[0];const Ge=Math.max(0,Math.min(100,se/te*100));return K[0]=Ge,K[1]=100-K[0],{percents:K,pixels:Q,minBefore:`${ae}px`,minAfter:`${me}px`,maxBefore:`${Q[0]}px`,maxAfter:`${Q[1]}px`}})(S,B,F,T),[T,S,B,F,r]),[N,V]=u.useState(!1),U=wt(x,[x]),J=wt(v,[v]),X=wt(b,[b]),H=u.useRef(null),ne=u.useRef(null),oe=u.useRef(null),{style:ye,className:de,...xe}=E,we={minWidth:0,minHeight:0,maxWidth:"100%",maxHeight:"100%",display:"flex",overflow:"hidden",...ye},{className:ve,style:re,...ce}=C,{className:Se,style:ie,...Y}=R,le={flex:"1 1 100%",width:"100%",...m,flexDirection:r,display:"flex"},{className:ee,style:Pe,onPointerDown:Te,...rt}=w,Ve=wt(ue=>{const De=za(ue,i===null);k(De)},[i]),Ee=wt(ue=>{if(y||!N)return;const De=Be.current?.getBoundingClientRect();let Ae=0;Ae=r==="row"?(ue.clientX??ue.touches?.[0]?.clientX)-De.x:(ue.clientY??ue.touches?.[0]?.clientY)-De.y,Ae=Math.max(0,Math.min(B,Ae)),T.fixedPaneOffset===1&&(Ae=B-Ae),a&&S.pixels===Ae||k({pixels:Ae,percent:null}),J?.(Ae),ue.stopPropagation(),ue.preventDefault()},[T,r,y,N,S,B]),Re=wt(ue=>{if(document.removeEventListener("pointermove",Ee),document.removeEventListener("touchmove",Ee),document.removeEventListener("pointerup",Re),N&&(V(!1),S)){if(X(S.pixels),!za(a,i===null)||S.pixels!==a){const De={...S};De.percent===null&&(De.percent=De.pixels/B*100),j(De)}ue.stopPropagation(),ue.preventDefault()}},[S,N,a,i,B]),Xe=wt(ue=>{Te?.(ue),ue.defaultPrevented||y||N||(V(!0),U(),document.addEventListener("pointermove",Ee,{passive:!1}),document.addEventListener("touchmove",Ee,{passive:!1}),document.addEventListener("pointerup",Re,{passive:!1}))},[Te]),Be=P2(t,()=>({setPosition:Ve,isSplitPane:()=>!0}),[]),ct=u.useMemo(()=>L?_?.({key:"resizer",ref:$u([z,ne]),className:xs("resizer",ee),onPointerDownCapture:Xe,style:{cursor:y?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,...Pe},splitDirection:r,disabled:y,...rt}):null,[L,ee,rt,r,Pe,y]),Qe=r==="row"?"Width":"Height",he={...we,...re,flex:T.fixedPaneOffset===0&&M?.pixels[0]!==null?`0 0 ${Math.round(M?.pixels[0])}px`:`1 1 ${Math.round(M?.percents[0]??100)}%`,[`min${Qe}`]:M?.minBefore,[`max${Qe}`]:o?M?.maxBefore:"100%"},Ye={...we,...ie,flex:T.fixedPaneOffset===1&&M?.pixels[1]!==null?`0 0 ${Math.round(M?.pixels[1])}px`:`1 1 ${Math.round(M?.percents[1]??100)}%`,[`min${Qe}`]:M?.minAfter,[`max${Qe}`]:n?M?.maxAfter:"100%"},ke=u.useMemo(()=>n?s.jsx("div",{ref:H,className:xs("before",de,ve),style:he,...xe,...ce,children:n},"before"):null,[n,E,C,T,M]),Ie=u.useMemo(()=>o?s.jsx("div",{ref:oe,className:xs("after",de,Se),style:Ye,...xe,...Y,children:o},"after"):null,[o,E,R,T,M]);return s.jsxs("div",{ref:$u([P,Be]),className:xs("splitPane",r==="row"?"vertical":"horizontal",{dragging:N},g),style:le,children:[ke,ct,Ie]})}));const cz=({initValue:e,useHookBody:t,applyStateChange:n})=>{const o=u.useRef(e);if(typeof t!="function")throw new Error("function expected as hook body parameter. got "+typeof t);const r=t();return u.useLayoutEffect(()=>{o.current!==r&&(o.current=r,n(r))},[n,r]),null},Ph=e=>{console&&console.warn&&console.warn(e)},Xp=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0;let dz=1,Oh=!1,Aw=!1;const Qd=[],bs=[],Vu=()=>{bs.forEach(e=>e())},uz=({automaticContainerInternalUseOnly:e})=>{const[t,n]=u.useState([]),o=u.useRef([]);return o.current=t,e||Oh!==!1||(Aw=!0),u.useEffect(()=>{let r=!0;function i(){if(r)return bs[0]!==i?(e||Oh!==!0||Ph("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."),void n(a=>[])):void n([...Qd])}return bs.push(i),Vu(),()=>{r=!1,o.current?.length>0&&Ph("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"),bs.splice(bs.indexOf(i),1),Vu()}},[e]),s.jsx(s.Fragment,{children:t.map(({hook:r,key:i})=>u.createElement(cz,{...r,key:i}))})},Lw=(e,t,n={})=>{let o,r,i=!1,a=!1,l=[],{unmountIfNoConsumers:c=!1}=n;const d=f=>{r=f,yo.unstable_batchedUpdates(()=>l.forEach(h=>h(f)))},p=()=>(a||(r=typeof e=="function"?e():e,a=!0),r);return()=>{const[f,h]=u.useState(p);return u.useEffect(()=>(i||(i=!0,o=(g=>{const m=dz++;return Qd.push({hook:g,key:m}),bs.length===0&&Aw===!1&&(Oh=!0,(y=>{if(Xp.document&&Xp.document.createElement){const x=Xp.document.createElement("div");Qu.createRoot(x).render(s.jsx(y,{automaticContainerInternalUseOnly:!0}))}else Ph("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")})(uz)),Vu(),()=>{Qd.splice(Qd.findIndex(y=>y.key===m),1),Vu()}})({initValue:e,useHookBody:t,applyStateChange:d})),l.push(h),r!==f&&h(r),()=>{l.splice(l.indexOf(h),1),l.length===0&&c&&(o(),i=!1)}),[]),f}};Lw(null,()=>{const[e,t]=u.useState(null);return e});let pz=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 bn extends pz{}Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),Qo.getOS()===Qo.OSType.MacOS||(Qo.getOS(),Qo.OSType.IOS),Lw({setClipboard:e=>{throw new Error("This is only available via the useClipboard.")},getClipboard:()=>Nu.Global,refNativeCopy:{current:null},refNativeLastKey:{current:null}},()=>{const[e,t]=u.useState(Nu.Global);return{setClipboard:n=>t(n),getClipboard:()=>e,refNativeCopy:u.useRef(null),refNativeLastKey:u.useRef(null)}});let Yp=!1,hz=0;var fz=typeof document<"u"?u.useLayoutEffect:u.useEffect;const B9=()=>"sheetxl-ui-"+hz++,mz=u.useId??function(){const[e,t]=u.useState(()=>Yp?B9():void 0);return fz(()=>{e==null&&t(B9())},[]),u.useEffect(()=>{Yp||(Yp=!0)},[]),e},vs=({itemType:e,index:t,itemSize:n,instanceProps:o,scale:r=1})=>{let i,a,l;e==="column"?(i=o.columnMetadataMap,a=o.lastMeasuredColumnIndex,l=o.recalcColumnIndices):(i=o.rowMetadataMap,a=o.lastMeasuredRowIndex,l=o.recalcRowIndices);const c=l.length>0;if(t>a){let d=0;if(a>=0){const p=i[a];d=p.offset+p.size}for(let p=a+1;p<=t;p++){let f=c?l.includes(p)?n(p)*r:i[p]?.size||n(p)*r:n(p)*r;i[p]={offset:d,size:f},d+=f}e==="column"?o.lastMeasuredColumnIndex=t:o.lastMeasuredRowIndex=t}return i[t],i[t]},N9=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,offset:r,scale:i})=>{let a,l;e==="column"?(a=o.columnMetadataMap,l=o.lastMeasuredColumnIndex):(a=o.rowMetadataMap,l=o.lastMeasuredRowIndex);let c=0;return c=(l>0?a[l].offset:0)>=r?zw({itemType:e,itemSize:t,instanceProps:o,high:l,low:0,offset:r,scale:i}):gz({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:Math.max(0,l),offset:r,scale:i}),c=Math.min(c,n),c},zw=({itemType:e,itemSize:t,instanceProps:n,high:o,low:r,offset:i,scale:a})=>{for(;r<=o;){const l=r+Math.floor((o-r)/2),c=vs({itemType:e,itemSize:t,index:l,instanceProps:n,scale:a}).offset;if(c===i)return l;c<i?r=l+1:c>i&&(o=l-1)}return r>0?r-1:0},gz=({itemType:e,itemSize:t,itemCount:n,instanceProps:o,index:r,offset:i,scale:a})=>{let l=1;for(;r<n&&vs({itemType:e,itemSize:t,index:r,instanceProps:o,scale:a}).offset<i;)r+=l,l*=2;return zw({itemType:e,itemSize:t,instanceProps:o,high:Math.min(r,n-1),low:Math.floor(r/2),offset:i,scale:a})},hf="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ~`!@#$%^&*()-_=+[{]};:'\",<.>/?|\\",$9=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"}},yz=e=>!0,xz=e=>!(!e||e.ctrlKey||e.metaKey||e.altKey||e.isComposing||(e.shiftKey||e.key!=="F2"&&e.key!==" "&&e.key!=="Backspace")&&(e.shiftKey&&e.key===" "||hf.indexOf(e.key)===-1)),bz=e=>!!e&&e.type==="dblclick"&&{editMode:!0},vz=e=>{const{session:t,refLatestCoords:n,handleSubmitEdit:o,handleCancelEdit:r,cellBounds:i,isInBounds:a,getCellEditor:l,propsEditor:c,borderStrokeFill:d="rgb(33, 115, 70)",borderStrokeWidth:p=2,alignment:f=lc.Left,style:h,...g}=e,m=u.useRef(null),y=u.useRef(null),[x,v]=u.useState(!1),b=t.coords,w=u.useCallback(async S=>{if(m.current?.getBoundingClientRect()){if(S.eventType==="keyboard"){const k=S.event,P=new KeyboardEvent(k.type,{bubbles:!0,cancelable:!0,view:window,key:k.key,code:k.code,location:k.location,repeat:k.repeat,isComposing:k.isComposing,charCode:k.charCode,keyCode:k.keyCode,which:k.which,ctrlKey:k.ctrlKey,shiftKey:k.shiftKey,altKey:k.altKey,metaKey:k.metaKey});P.isSynthetic=!0,P.key,y.current?.dispatchEvent(P)}else S.eventType==="pointer"||console.warn("unsupported event type",S);await new Promise(k=>requestAnimationFrame(k))}},[]);u.useEffect(()=>{const S=y.current;return v(!0),y.current.startEdit?.(t.startEvent),(async()=>{t.editorRefs.push(S),t.editorRefsDispatchEditorEvent.push(w);const k=[...t.events];for(let P=0;P<k.length;P++)await w(k[P]);t.onMount(S)})(),()=>{const k=t.editorRefs.indexOf(S);k!==-1&&t.editorRefs.splice(k,1),t.onUnmount(S)}},[]);const E=u.useCallback(()=>o(t),[]),C=u.useCallback(()=>{r(t)},[]),R=n.current&&Vt.isEqualCells(n.current,b),_=a&&R&&x,L=l({autoFocus:!!t.startEvent?.autoFocus,...c,onSubmitEdit:E,onCancelEdit:C,ref:y},b),T=i.x+Qt.boundPixel(-p/2),j=Qt.boundPixel(i.width+p/2,!0);return s.jsx("div",{tabIndex:0,ref:m,style:{background:void 0,...h,opacity:_?h?.opacity??1:0,pointerEvents:"auto",position:"absolute",boxSizing:"border-box",top:`${i.y+Qt.boundPixel(-p/2)}px`,height:Qt.boundPixel(i.height+p/2,!0),left:`${T}px`,width:j},...g,children:s.jsx("div",{className:"editor-container",style:{position:"absolute",boxSizing:"border-box",left:`${Qt.boundPixel(1)}px`,top:`${Qt.boundPixel(1)}px`,width:Qt.boundPixel(i.width-2,!0),height:Qt.boundPixel(i.height-2,!0),outline:`${p}px ${d} solid`,boxShadow:"rgba(60,64,67,.35) 2px 2px 6px 3px",maxHeight:"100%",overflow:"hidden",display:"flex"},children:L})})},qn=(e,t,n)=>{if(!e)return t;let o=t;const r=n===Un||n===to;for(;;){const i=e(o,!r);if(i===0)return o;r?o+=i:o-=i}},bd=(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},wz=(e,t,n,o,r,i)=>{if(!t)return i;let{rowIndex:a,colIndex:l}=e;switch(o){case to:{a=qn(n,Math.min(a+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a<i;)a=qn(n,Math.min(++a,i),o),c=t({rowIndex:a,colIndex:l});return a}case eo:{a=qn(n,Math.max(a-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&a>i;)a=qn(n,Math.max(--a,i),o),c=t({rowIndex:a,colIndex:l});return a}case Un:{l=qn(n,Math.min(l+1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l<i;)l=qn(n,Math.min(++l,i),o),c=t({rowIndex:a,colIndex:l});return l}case Jn:{l=qn(n,Math.max(l-1,i),o);let c=t({rowIndex:a,colIndex:l});for(;!c&&l>i;)l=qn(n,Math.max(--l,i),o),c=t({rowIndex:a,colIndex:l});return l}default:return i}},Sz=(e,t=()=>!0,n,o,r,i)=>{let{rowIndex:a,colIndex:l}=e;switch(o){case to:{a=qn(n,Math.min(a+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a<i;)a=qn(n,Math.min(++a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a-1}case eo:{a=qn(n,Math.max(a-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&a>i;)a=qn(n,Math.max(--a,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?a:a+1}case Un:{l=qn(n,Math.min(l+1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l<i;)l=qn(n,Math.min(++l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l-1}case Jn:{l=qn(n,Math.max(l-1,i),o);let c=t?.({rowIndex:a,colIndex:l});for(;c&&l>i;)l=qn(n,Math.max(--l,i),o),c=t?.({rowIndex:a,colIndex:l});return t?.({rowIndex:a,colIndex:l})?l:l+1}default:return null}},Cz=(e,t,n,o,r,i)=>{if(!t)return i;let a,{rowIndex:l,colIndex:c}=e;o===to?a={rowIndex:l+1,colIndex:c}:o===eo?a={rowIndex:l-1,colIndex:c}:o===Un?a={rowIndex:l,colIndex:c+1}:o===Jn&&(a={rowIndex:l,colIndex:c-1});const d=t(e);var p,f;return(f=t(a),!(p=d)&&!f||!p&&f||p&&!f?wz:Sz)(e,t,n,o,!1,i)??i},V9=(e,t)=>`${e}:${t}`,H9=(e,t,n,o,r,i)=>{if(n-t>=r-o)return o;let a=o;return e==="nearest"&&(o-t>0?e="start":n-r>0&&(e="end")),e==="start"?a=t:e==="end"?a=n-(r-o):e==="center"&&(a=t+(n-t)/2-(r-o)/2),Math.max(0,Math.min(a,i-(r-o)))},W9=(e,t,n,o)=>(console.log("todo: implement convertToVisibleRanges"),e),Dh=(e,t=Un,n,o,r,i=null)=>{if(i&&Vt.isEqualSelectionCoords(i,e))return e;const a=e.ranges[e.rangeIndex];if(!Vt.isRangesIntersect({rowStart:e.cell.rowIndex,colStart:e.cell.colIndex,rowEnd:e.cell.rowIndex,colEnd:e.cell.colIndex},a))return e;let l={...e.cell},c=e.rangeIndex;switch(t){case Un:l.colIndex=qn(r,l.colIndex+1,t);break;case Jn:l.colIndex=qn(r,l.colIndex-1,t);break;case to:l.rowIndex=qn(o,l.rowIndex+1,t);break;case eo:l.rowIndex=qn(o,l.rowIndex-1,t)}const d=h=>{if(h){c=e.rangeIndex>=e.ranges.length-1?0:e.rangeIndex+1;const g=e.ranges[c];l={colIndex:g.colStart,rowIndex:g.rowStart}}else{c=e.rangeIndex<=0?e.ranges.length-1:e.rangeIndex-1;const g=e.ranges[c];l={colIndex:g.colEnd,rowIndex:g.rowEnd}}};if(t===Un&&l.colIndex>a.colEnd&&l.rowIndex===a.rowEnd)d(!0);else if(t===Jn&&l.colIndex<a.colStart&&l.rowIndex===a.rowStart)d(!1);else if(t===to&&l.colIndex===a.colEnd&&l.rowIndex>a.rowEnd)d(!0);else if(t===eo&&l.colIndex===a.colStart&&l.rowIndex<a.rowStart)d(!1);else{let h=l.rowIndex,g=l.colIndex;switch(t){case Un:g>a.colEnd&&(h=qn(o,h+1,t),g=a.colStart,h>a.rowEnd&&(h=a.rowStart));break;case Jn:g<a.colStart&&(h=qn(o,h-1,t),g=a.colEnd,h<a.rowStart&&(h=a.rowEnd));break;case to:h>a.rowEnd&&(g=qn(r,g+1,t),h=a.rowStart,g>a.colEnd&&(g=a.colStart));break;case eo:h<a.rowStart&&(g=qn(r,g-1,t),h=a.rowEnd,g<a.colStart&&(g=a.colEnd))}l={rowIndex:h,colIndex:g}}let p=n(l);if(!Vt.isRangeWithinRange(p,a)){const h=Vt.intersectRanges(p,a);h&&(p=h)}let f={rowStart:qn(o,p.rowStart,to),colStart:qn(r,p.colStart,Un),rowEnd:qn(o,p.rowEnd,eo),colEnd:qn(r,p.colEnd,Jn)};if(f.rowStart!==l.rowIndex||f.colStart!==l.colIndex){switch(t){case Un:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(l.rowIndex=f.rowEnd),l.colIndex=f.colEnd;break;case Jn:e.ranges[c].colStart===f.colStart&&e.ranges[c].colEnd===f.colEnd&&(l.rowIndex=f.rowStart),l.rowIndex===f.rowStart?l.colIndex=f.colStart+1:l.colIndex=f.colStart;break;case to:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(l.colIndex=f.colEnd),l.rowIndex=f.rowEnd;break;case eo:e.ranges[c].rowStart===f.rowStart&&e.ranges[c].rowEnd===f.rowEnd&&(l.colIndex=f.colStart),l.colIndex===f.colStart?l.rowIndex=f.rowStart+1:l.rowIndex=f.rowStart}return Dh({cell:l,ranges:e.ranges,rangeIndex:c},t,n,o,r,i??e)}return{ranges:e.ranges,cell:l,rangeIndex:c}},U9=(e,t)=>{let n,o=0,r=0;return t.colStart<e.colStart?(n=Jn,o=e.colStart-t.colStart,r=t.colStart):t.colEnd>e.colEnd?(n=Un,o=t.colEnd-e.colEnd,r=t.colEnd):t.rowStart<e.rowStart?(n=eo,o=e.rowStart-t.rowStart,r=t.rowStart):t.rowEnd>e.rowEnd&&(n=to,o=t.rowEnd-e.rowEnd,r=t.rowEnd),{direction:n,amount:o,index:r}},Hu=(e,t=!1,n,o)=>{if(!n)return 0;const r=!t,i=r?1:-1;let a=n(r?e:e+1),l=n(r?e+1:e),c=e+(r?2:-1),d=0;for(;(l-a)*i<=0;){if(r&&c-1>o+1||!r&&c+1<o)return d;a=l,l=n(c),c+=i,d++}return d},q9=(e,t,n,o,r)=>{const i={};let a=null,l=null;for(let c=0;c<=n.length&&n[c]<=r;c++){const d=n[c];if(d<o)continue;const p=a===d?l:t?e.getColOffset(d):e.getRowOffset(d),f=t?e.getColOffset(d+1):e.getRowOffset(d+1);a=d+1,l=f,i[d]=Object.freeze({offset:p,size:f-p,spanIndex:c})}return Object.freeze(i)},K9=(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}},kz=(e,t,n)=>!!n&&!(e<n.x||e>n.x+n.width)&&!(t<n.y||t>n.y+n.height),Jp=(e,t=!0)=>`M ${Qt.boundPixel(e.left)} ${Qt.boundPixel(e.top)} L ${Qt.boundPixel(e.right,!0)} ${Qt.boundPixel(e.top)} L ${Qt.boundPixel(e.right,!0)} ${Qt.boundPixel(e.bottom,!0)} L ${Qt.boundPixel(e.left)} ${Qt.boundPixel(e.bottom,!0)} L ${Qt.boundPixel(e.left)} ${Qt.boundPixel(e.top)} ${t?"Z":""}`,ws=e=>{const{linePoints:t,bounds:n,pathProps:o,style:r,...i}=e;return s.jsx("svg",{width:`${Qt.boundPixel(n.width,!0)}`,height:`${Qt.boundPixel(n.height,!0)}`,viewBox:`0 0 ${Qt.boundPixel(n.width,!0)} ${Qt.boundPixel(n.height,!0)}`,style:{position:"absolute",left:`${Qt.boundPixel(n.x)}px`,top:`${Qt.boundPixel(n.y)}px`,width:`${Qt.boundPixel(n.width,!0)}px`,height:`${Qt.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:s.jsx("path",{d:`M ${Qt.boundPixel(t[0])} ${Qt.boundPixel(t[1])} L ${Qt.boundPixel(t[2])} ${Qt.boundPixel(t[3])}`,fill:"none",vectorEffect:"non-scaling-stroke",stroke:"black",...o})})},Ez=e=>{const{x:t=0,y:n=0,width:o=0,height:r=0,fill:i,stroke:a,strokeWidth:l=0,strokeDasharray:c,strokeDashoffset:d,clipPath:p,pathBounds:f,pathProps:h,style:g,...m}=e,y=n,x=t,v=o,b=r;let w=null;if(i){let E=Jp({top:0,left:0,bottom:b,right:v});f&&(E=E+" "+Jp({top:f.y-y,left:f.x-x,bottom:f.height+f.y-y,right:f.width+f.x-x})),w=[s.jsx("path",{d:E,fill:i,stroke:"none",fillRule:"evenodd"},"fill")]}return s.jsxs("svg",{width:`${Qt.boundPixel(o,!0)}`,height:`${Qt.boundPixel(r,!0)}`,viewBox:`0 0 ${Qt.boundPixel(o,!0)} ${Qt.boundPixel(r,!0)}`,preserveAspectRatio:"none",style:{position:"absolute",left:`${Qt.boundPixel(t)}px`,top:`${Qt.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:[w,s.jsx("path",{d:Jp({top:0,left:0,right:v,bottom:b}),fill:"none",strokeDasharray:c,strokeDashoffset:d,stroke:a,vectorEffect:"non-scaling-stroke",strokeWidth:l,...h})]})},Fw=e=>{const{key:t,...n}=e;return s.jsx(O2,{...n},t)},O2=u.memo(e=>{const{stroke:t,fill:n,x:o=0,y:r=0,width:i=0,height:a=0,style:l,isAnimatedStroke:c,animatedStrokeProps:d,range:p,cell:f,...h}=e,g=c||!!d,m={name:"walking-offset",dashGap:2,speed:50,dashLength:8,...d};let y=m.dashGap+m.dashLength;const x=m.speed*y,v=mz().replaceAll(":",""),b=`${m.name}-${v}`;let w;return u.useEffect(()=>{if(!g)return;const E=`@keyframes ${b} {
188
- to {
189
- stroke-dashoffset: 0px;
190
- }
191
- }`,C=document.createElement("style");return C.appendChild(document.createTextNode(E)),document.head.appendChild(C),C.sheet.insertRule(E,0),()=>{document.head.removeChild(C)}},[g]),g&&(w={strokeDasharray:`${m.dashLength}px ${m.dashGap}px`,strokeDashoffset:`${y}px`,animation:`${b} ${x}ms linear infinite`,willChange:"stroke-dashoffset"}),s.jsx(Ez,{x:o,y:r,width:i,height:a,stroke:t,fill:n,shapeRendering:"crispEdges",style:{...w,...l},...h})});function Bw(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=Bw(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Rl(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Bw(e))&&(o&&(o+=" "),o+=t);return o}O2.displayName="Selection";const Nw=u.memo(u.forwardRef((e,t)=>{const{x:n=0,y:o=0,borderWidth:r=1,size:i=6,borderStroke:a,corner:l,style:c,className:d,background:p,...f}=e;if(n===0||o===0)return null;let h=!0,g=!0,m=!0,y=!0;switch(l){case"tl":h=!1,g=!1;break;case"bl":h=!1,y=!1;break;case"br":m=!1,y=!1;break;case"tr":g=!1,m=!1}return s.jsx("div",{className:Rl("fill-handle",d),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 ${a}`:void 0,borderTop:g?`${r}px ${a}`:void 0,borderRight:m?`${r}px ${a}`:void 0,borderBottom:y?`${r}px ${a}`:void 0,background:p,cursor:"crosshair",pointerEvents:"all",transitionDuration:"0ms",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top",willChange:"left, top",...c},tabIndex:-1,...f})}));Nw.displayName="FillHandle";var Mz=function(){},$w=typeof window<"u",Tz=$w?u.useLayoutEffect:u.useEffect,G9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Vw=$w&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(G9),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return Tz(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[Mz,G9]};function Qp(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var _z=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=Qp(o,t),i=typeof r=="function";n.push(i?r:()=>Qp(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)Qp(n,t)}};const Ah=u.memo(u.forwardRef((e,t)=>{const{range:n,view:o,anchor:r,borderStroke:i="rgb(33, 115, 70)",background:a="white",borderWidth:l=1.5,size:c=22,style:d,className:p,selectionTouchPointerHandler:f,onTouchSelectStart:h,onTouchSelectEnd:g,currentTouchAnchor:m,scrollableElement:y,scrollableRoot:x=document.body,...v}=e,b=wt(h,[h]),w=wt(g,[g]),{bounds:E,coordsPivot:C,key:R}=u.useMemo(()=>{if(!n||!o)return null;let z=null,A=null;switch(r){case"tl":z={colIndex:n.colEnd,rowIndex:n.rowEnd},A={colIndex:n.colStart,rowIndex:n.rowStart};break;case"br":z={colIndex:n.colStart,rowIndex:n.rowStart},A={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"t":case"l":z={colIndex:n.colEnd,rowIndex:n.rowEnd};break;case"b":z={colIndex:n.colStart,rowIndex:n.rowStart};break;case"r":z={colIndex:n.colStart,rowIndex:n.rowEnd}}let D=o.getRangeCoordsBounds(A?{rowStart:A.rowIndex,colStart:A.colIndex,rowEnd:A.rowIndex,colEnd:A.colIndex}:n);const F=o.getBounds(),B=o.getViewportSize(),M=F.x,N=F.y,V=B.width,U=B.height;switch(r){case"tl":break;case"br":D.x=D.x+D.width,D.y=D.y+D.height;break;case"t":D.x=V/2-M;break;case"b":D.x=V/2-M,D.y=D.y+D.height;break;case"l":D.y=U/2-N;break;case"r":D.x=D.x+D.width,D.y=U/2-N}const J=o.toClipBounds(D,0);return!J||J.width<=0||J.height<=0||D.x<0||D.y<0||D.x>V||D.y>U?{bounds:null,coordsAnchor:null,coordsPivot:null,key:null}:{bounds:D,coordsAnchor:null,coordsPivot:z,key:"touchSelect-"+o.getAnchor()+"-"+r}},[n,o,r]),_=u.useRef(null),L=Rs(u.useMemo(()=>{const z=A=>r==="t"||r==="b"?{...A,colIndex:void 0}:r==="l"||r==="r"?{...A,rowIndex:void 0}:A;return{processTouch:!0,consumeTouch:!0,onPointerDown:(A,D)=>{const F=z(o.getCellCoordsFromClient(A.clientX,A.clientY));return _.current={coordsPivot:C},b?.(r),f.onSelectionPointerDown(A,D,o,F,C,!1,!0)},onPointerMoveOrWait:(A,D,F)=>{const B=z(o.getCellCoordsFromClient(A.clientX,A.clientY));return f.onSelectionPointerMoveOrWait(A,D,F,o,B,_.current?.coordsPivot,!0,!0)},onPointerUp:(A,D,F)=>(_.current=null,w?.(r),f.onPointerUp(A,D,F))}},[f,n,o,r])),[T,{y:j,x:S}]=Vw(),k=u.useRef(null),{getPortalContainer:P}=Dw(),[O,I]=u.useState(null);return u.useEffect(()=>{const z=k.current?.getBoundingClientRect();if(!z||!E)return void I(null);let A=0,D=0,F=y;for(;F;)A+=F.scrollLeft,D+=F.scrollTop,F=x&&F===x.parentElement?null:F.parentElement;I(yo.createPortal(s.jsx("div",{className:Rl("touch-select-handle",p),ref:t,style:{position:"absolute",left:A+(z?.x??0)-(c+l)/2,top:D+(z?.y??0)-(c+l)/2,width:c,height:c,borderWidth:`${l}px`,border:i,borderRadius:"50%",background:a,boxShadow:`0 0 0 1.5px ${a}`,cursor:"grab",pointerEvents:"all",opacity:m?0:1,transitionDuration:"160ms",transitionProperty:"opacity",...d},tabIndex:-1,onPointerDown:L,...v}),x??P(),R))},[j,S,E?.x,E?.y,E?.width,E?.height,p,m,a,c,l,i,y]),E?s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:_z([T,k]),style:{position:"absolute",left:E.x,top:E.y,opacity:0}}),O]}):null}));Ah.displayName="TouchSelectHandle";const Rr=-10,jz=Object.freeze({rowStart:0,colStart:0,rowEnd:0,colEnd:0}),Hw=Object.freeze({colIndex:0,rowIndex:0}),Lh=Object.freeze([]),Yr=e=>{if(e&&e.cell&&e.ranges&&e.rangeIndex>-1&&e.rangeIndex<=e.ranges.length)return e;const t={cell:null,ranges:e?.ranges??Lh};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=Hw),Vt.isEqualSelectionCoords(t,e)?e:t},vd=(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(Jr)),!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(Jr)),e.scrollCellCoordsIntoView(t)},Rz=()=>!1,Ww=({gridRef:e,commands:t,layout:n,selection:o,onSelectionChange:r,onSelectionDragStart:i,onSelectionDragEnd:a,selectionPolicy:l="multiple",newSelectionMode:c="clear",allowDeselectSelection:d=!0,onFillPreview:p,onFillCancel:f,onFillDone:h,onFill:g,disableFillDrag:m=!g,fillHandleBorderColor:y="white",hiddenRowsAt:x,hiddenColumnsAt:v,isContentfulCell:b,contentfulCellFinder:w=Cz,getDataCoords:E,alwaysScrollToActiveCoords:C=!1,selectionBounds:R,pointerDownInterceptor:_,pointerMoveInterceptor:L,mergedRanges:T,canSelectionSpanMergedCells:j=Rz,onMoveDragStart:S,onMoveDragUpdate:k,onMoveDragEnd:P,onMoveDragDone:O,selectionRenderer:I=Fw,disableMoveDrag:z=!P,getCellCoordsAsRangeCoords:A=Vt.cellToRange,moveDragHitSize:D=6,moveDragOutlineSize:F=4,selectionBackgroundColor:B="rgba(16, 124, 65, 0.1)",selectionBorderColor:M="rgb(33, 115, 70)",selectionRemoveBorderColor:N="rgb(255, 0, 0)",selectionRemoveBackgroundColor:V="rgba(250, 10, 10, 0.1)",disableTouchSelection:U=!1,touchSelectHandleProps:J})=>{const X=u.useCallback(()=>({top:R?.top??0,left:R?.left??0,bottom:e.current?.rowCount-1||0,right:e.current?.columnCount-1||0}),[]),H=wt(g,[g]),ne=wt(p,[p]),oe=wt(f,[f]),ye=wt(h,[h]),de=wt(b,[b]),xe=wt(I,[I]),we=wt((q,Ce=!1)=>Hu(q,Ce,n.getRowOffset,Ce?X().bottom:X().top),[n?.getRowOffset]),ve=wt(x??we,[x]),re=wt((q,Ce=!1)=>Hu(q,Ce,n.getColOffset,Ce?X().right:X().left),[n?.getColOffset]),ce=wt(v??re,[v]),[Se,ie]=u.useState(()=>Yr(o)),Y=u.useMemo(()=>Yr(Se),[Se]),le=u.useRef(Y),ee=u.useRef(!0);u.useLayoutEffect(Qo.throttle(()=>{ie(q=>{ee.current=!0;const Ce=Yr(o);return Vt.isEqualSelectionCoords(Ce,q)?q:Ce})},0),[o]),u.useLayoutEffect(()=>{le.current=Y},[Y]),u.useEffect(()=>{ee.current||!r||Vt.isEqualSelectionCoords(o,Y)||r(Y)},[Y]);const Pe=u.useCallback(q=>{ie(Ce=>{ee.current=!1,Ce=Yr(Ce);let Z=typeof q=="function"?q(Ce.ranges):q??Lh;if(Vt.isEqualRangesArrays(Z,Ce.ranges))return Ce;let ge=Math.max(Z.length?0:-1,Math.min(Ce.rangeIndex,Z.length-1)),We=Ce.cell;ge===-1||Vt.isCellWithinRange(We,Z[ge])||(We={rowIndex:Z[ge].rowStart,colIndex:Z[ge].colStart}),Z.length===1&&Vt.isSingleCell(Z[0])&&Vt.isCellWithinRange(We,Z[0])&&(Z=[],ge=-1);const mt={cell:We,ranges:Z,rangeIndex:ge};return Vt.isEqualSelectionCoords(mt,Ce)?Ce:mt})},[]),Te=wt(q=>{ie(Ce=>{ee.current=!1,Ce=Yr(Ce);const Z=q??Hw,ge=A(Z);if(!Vt.isSingleCell(ge)&&Ce.ranges.length===0)return{ranges:[ge],rangeIndex:0,cell:Z};if(Vt.isEqualCells(Z,Ce.cell))return Ce;let We=Ce.ranges,mt=Ce.rangeIndex;Ce.ranges.length===1&&(Vt.isSingleCell(Ce.ranges[0])&&Vt.isCellWithinRange(Z,Ce.ranges[0])||!Vt.isCellWithinRange(Z,Ce.ranges[0]))&&(We=[],mt=-1);const Ue={ranges:We,rangeIndex:mt,cell:Z};return Vt.isEqualSelectionCoords(Ue,Ce)?Ce:Ue})},[A]),[rt,Ve]=u.useState(null),[Ee,Re]=u.useState(null),Xe=u.useRef(null),[Be,ct]=u.useState(null),Qe=u.useRef(null),he=u.useRef(null),[Ye,ke]=u.useState(null),Ie=u.useRef(null),ue=u.useRef(null),De=u.useRef(T);u.useEffect(()=>{De.current=T},[T]);const Ae=wt((q,Ce={inline:"nearest",block:"nearest"})=>{let{rowIndex:Z,colIndex:ge}=q;Z===void 0&&Y?.cell&&(Z=Y.cell.rowIndex),ge===void 0&&Y?.cell&&(ge=Y.cell.colIndex),Z!==void 0&&ge!==void 0&&e.current?.scrollCellCoordsIntoView({rowIndex:Z,colIndex:ge},Ce)},[Y]),W=u.useCallback(q=>{const Ce=X();return q.rowIndex<Ce.top||q.colIndex<Ce.left||q.colIndex>Ce.right||q.rowIndex>Ce.bottom},[]),Q=wt((q,Ce)=>{if(!e?.current)return null;const Z={rowStart:Math.min(q.rowIndex,Ce.rowIndex),colStart:Math.min(q.colIndex,Ce.colIndex),rowEnd:Math.max(q.rowIndex,Ce.rowIndex),colEnd:Math.max(q.colIndex,Ce.colIndex)};if(j?.(Z))return Z;const ge=A(q),We=A(Ce),mt={rowStart:Math.min(ge.rowStart,We.rowStart),colStart:Math.min(ge.colStart,We.colStart),rowEnd:Math.max(ge.rowEnd,We.rowEnd),colEnd:Math.max(ge.colEnd,We.colEnd)};let Ue;return typeof De.current=="function"?Ue=De.current(mt):T&&(Ue=T),Ue?Vt.extendRangeToUnionRanges(mt,Ue):mt},[j,A]),K=wt((q,Ce,Z)=>{const ge=q.ranges.length>0?q.ranges[q.rangeIndex]:{rowStart:q.cell.rowIndex,colStart:q.cell.colIndex,rowEnd:q.cell.rowIndex,colEnd:q.cell.colIndex},We={rowStart:Math.min(Ce.rowIndex??ge.rowStart,Z.rowIndex??ge.rowStart),colStart:Math.min(Ce.colIndex??ge.colStart,Z.colIndex??ge.colStart),rowEnd:Math.max(Ce.rowIndex??ge.rowEnd,Z.rowIndex??ge.rowEnd),colEnd:Math.max(Ce.colIndex??ge.colEnd,Z.colIndex??ge.colEnd)},mt={rowIndex:We.rowStart,colIndex:We.colStart},Ue={rowIndex:We.rowEnd,colIndex:We.colEnd};if(!W(mt)&&!W(Ue))return Q(mt,Ue)},[Q]),se=wt((q,Ce,Z)=>{if(l==="single"||!le.current)return;const ge=K(le.current,q,Ce??le.current.cell);if(!ge)return;const We=le.current.rangeIndex;Pe(mt=>mt.length?mt.map((Ue,Ut)=>We===Ut?ge:Ue):[ge]),Z&&ge&&Te({colIndex:ge.colStart,rowIndex:ge.rowStart})},[]),te=u.useCallback((q,Ce,Z)=>{if(!le.current)return;q={...le.current?.cell,...q},Ce=Ce??q;const ge=K(le.current,q,Ce);if(!ge)return;const We={rowIndex:ge.rowStart,colIndex:ge.colStart},mt={...We,...Z};c==="clear"?(Ie.current=mt,pe()):c==="modify"?se(We):ae(We),Te(mt)},[]),ae=u.useCallback((q,Ce=q,Z)=>{l!=="multiple"||!q||W(q)||W(Ce)||ie(ge=>{ee.current=!1,ge=Yr(ge);const We=Q(q,Ce);if(!We)return ge;let mt=ge.ranges.length>0?[...ge.ranges]:[Q(ge.cell,ge.cell)];mt.push(We);const Ue={ranges:mt,cell:{rowIndex:We.rowStart,colIndex:We.colStart,...Z},rangeIndex:mt.length-1};return Vt.isEqualSelectionCoords(Ue,ge)?ge:Ue})},[]),pe=()=>{Pe(Lh)},me=Qt.detectIt().primaryInput==="touch",fe=u.useRef(null),je=u.useRef(null),Fe=u.useRef(null),Ge=u.useMemo(()=>({onPointerDown:q=>{if(!e||!e.current)return!1;const Ce=q.nativeEvent,Z=e.current.getViewFromClient(Ce.clientX,Ce.clientY);if(Ce.pointerType==="touch"||Ce.type==="touchstart")return je.current={topLeft:Z.getScrollTopLeft(),point:{x:Ce.clientX,y:Ce.clientY}},!0;const ge=Z.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!ge)return!1;fe.current={anchor:Z.getAnchor(),coords:ge},ue.current=null;const We=q.nativeEvent.which===3;if(We&&Vt.indexOfCoords(ge,Y.ranges)!==-1)return!1;const mt=q.nativeEvent.shiftKey,Ue=q.nativeEvent.ctrlKey||q.nativeEvent.metaKey,Ut=Ue,Mt=d,Bt=Y.ranges.length>0,qt=Ue&&Mt;if(_?.(q,ge,Y)===!1)return!1;i?.(le.current,q.nativeEvent);const fn=!We&&l!=="single";if(mt)return se(ge),fn;const Ht=Vt.isEqualCells(ge,Y.cell);if(Ut){if(Ht&&(!qt||!Bt))return fn;if(Ue&&Vt.indexOfCoords(ge,Y.ranges)!==-1&&Mt){Qe.current=ge;const Nt=Q(ge,ge);return he.current=Nt,ct(Nt),fn}return ae(ge),fn}C&&Ae(ge),Ht&&Y.ranges.length===0||te(ge)},onPointerMoveOrWait:Qo.throttle((q,Ce)=>{if(!e?.current||q.pointerType==="touch"||q.type==="touchmove"||!fe.current)return;const Z=fe.current.anchor;let ge=e.current.getViewFromLocation(Z),We=ge.getCellCoordsFromClient(q.clientX,q.clientY);if(!Vt.isEqualCells(We,fe.current?.coords)&&(fe.current={anchor:Z,coords:We},We&&L?.(q,We,le.current)!==!1)){if(Qe.current){const mt={rowStart:Math.min(We.rowIndex,Qe.current.rowIndex),colStart:Math.min(We.colIndex,Qe.current.colIndex),rowEnd:Math.max(We.rowIndex,Qe.current.rowIndex),colEnd:Math.max(We.colIndex,Qe.current.colIndex)},Ue={rowIndex:mt.rowStart,colIndex:mt.colStart},Ut={rowIndex:mt.rowEnd,colIndex:mt.colEnd};if(W(Ue)||W(Ut))return;const Mt=Q(Ue,Ut);he.current=Mt,ct(Mt)}else se(We);Fe.current=Ce,vd(ge,We,e)}},60),onPointerUp:q=>{if(fe.current=null,q.pointerType==="touch"||q.type==="touchend"){if(je.current){const Z=e.current.getViewFromClient(je.current.point.x,je.current.point.y),ge=Z.getScrollTopLeft();if(ge.left===je.current.topLeft.left&&ge.top===je.current.topLeft.top){const We=Z.getCellCoordsFromClient(je.current.point.x,je.current.point.y);te(We)}}return je.current=null,void(fe.current=null)}try{a?.(le.current,q)}catch(Z){console.warn(Z)}if(!Qe.current)return;const Ce=he.current;Qe.current=null,he.current=null,ct(null),ie(Z=>{if(ee.current=!1,(Z=Yr(Z)).ranges.length===0)return Z;let ge=[],We=-1,mt=Z.cell;for(let Ut=0;Ut<Z.ranges.length;Ut++){const Mt=Z.ranges[Ut];if(Vt.isRangesIntersect(Mt,Ce)){const Bt=Qo.subtractRect({top:Mt.rowStart,left:Mt.colStart,bottom:Mt.rowEnd+1,right:Mt.colEnd+1},{top:Ce.rowStart,left:Ce.colStart,bottom:Ce.rowEnd+1,right:Ce.colEnd+1});for(let qt=0;qt<Bt.length;qt++){const fn={rowStart:Bt[qt].top,colStart:Bt[qt].left,rowEnd:Bt[qt].bottom-1,colEnd:Bt[qt].right-1};ge.push(fn),Vt.isCellWithinRange(Z.cell,fn)&&(We=ge.length-1)}}else ge.push(Mt);ge.length>0&&We===-1&&Vt.isCellWithinRange(Z.cell,Mt)&&(We=ge.length-1,mt={rowIndex:ge[ge.length-1].rowStart,colIndex:ge[ge.length-1].colStart})}const Ue={cell:mt,rangeIndex:We,ranges:ge};return Vt.isEqualSelectionCoords(Ue,Z)?Z:Ue})},processTouch:!0,consumeTouch:!1}),[Y,l,d,C,c]),et=wt(Rs(Ge),[]),tt=u.useMemo(()=>({onSelectionPointerDown:(q,Ce,Z,ge,We=Y.cell,mt=C,Ue=q.nativeEvent.shiftKey,Ut=!1)=>{if(!e||!e.current)return!1;q.stopPropagation(),q.preventDefault(),q.nativeEvent.stopImmediatePropagation();const Mt=Z??e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),Bt=ge??Mt.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!Bt)return!1;fe.current={anchor:Mt.getAnchor(),coords:Bt},ue.current=null;const qt=q.nativeEvent.which===3;if(qt&&Vt.indexOfCoords(Bt,Y.ranges)!==-1)return!1;const fn=q.nativeEvent.ctrlKey||q.nativeEvent.metaKey,Ht=fn,Nt=d,io=Y.ranges.length>0,Ct=fn&&Nt;if(_?.(q,Bt,Y)===!1)return!1;i?.(le.current,q.nativeEvent);const an=!qt&&l!=="single";if(Ue)return se(Bt,We,Ut),an;const go=Vt.isEqualCells(Bt,We);if(Ht){if(go&&(!Ct||!io))return an;if(Ct&&Vt.indexOfCoords(Bt,Y.ranges)!==-1&&Nt){Qe.current=Bt;const dn=Q(Bt,Bt);return he.current=dn,ct(dn),an}return ae(Bt),an}mt&&Ae(Bt),go&&Y.ranges.length===0||te(Bt)},onSelectionPointerMoveOrWait:(q,Ce,Z,ge,We,mt=Y.cell,Ue=!0,Ut=!1)=>{if(!e?.current||(q.stopPropagation(),q.preventDefault(),q.stopImmediatePropagation(),!fe.current))return;const Mt=fe.current.anchor;let Bt=ge??e.current.getViewFromLocation(Mt),qt=We??Bt.getCellCoordsFromClient(q.clientX,q.clientY);if(!Vt.isEqualCells(qt,fe.current?.coords)&&(fe.current={anchor:Mt,coords:qt},qt&&L?.(q,qt,le.current)!==!1)){if(Qe.current){const fn={rowStart:Math.min(qt.rowIndex,Qe.current.rowIndex),colStart:Math.min(qt.colIndex,Qe.current.colIndex),rowEnd:Math.max(qt.rowIndex,Qe.current.rowIndex),colEnd:Math.max(qt.colIndex,Qe.current.colIndex)},Ht={rowIndex:fn.rowStart,colIndex:fn.colStart},Nt={rowIndex:fn.rowEnd,colIndex:fn.colEnd};if(W(Ht)||W(Nt))return;const io=Q(Ht,Nt);he.current=io,ct(io)}else se(qt,mt,Ut);Ue&&vd(Bt,qt,e)}},onPointerUp:q=>{fe.current=null,q.stopPropagation(),q.preventDefault(),q.stopImmediatePropagation();try{a?.(le.current,q)}catch(Z){console.warn(Z)}if(!Qe.current)return;const Ce=he.current;Qe.current=null,he.current=null,ct(null),ie(Z=>{if(ee.current=!1,(Z=Yr(Z)).ranges.length===0)return Z;let ge=[],We=-1,mt=Z.cell;for(let Ut=0;Ut<Z.ranges.length;Ut++){const Mt=Z.ranges[Ut];if(Vt.isRangesIntersect(Mt,Ce)){const Bt=Qo.subtractRect({top:Mt.rowStart,left:Mt.colStart,bottom:Mt.rowEnd+1,right:Mt.colEnd+1},{top:Ce.rowStart,left:Ce.colStart,bottom:Ce.rowEnd+1,right:Ce.colEnd+1});for(let qt=0;qt<Bt.length;qt++){const fn={rowStart:Bt[qt].top,colStart:Bt[qt].left,rowEnd:Bt[qt].bottom-1,colEnd:Bt[qt].right-1};ge.push(fn),Vt.isCellWithinRange(Z.cell,fn)&&(We=ge.length-1)}}else ge.push(Mt);ge.length>0&&We===-1&&Vt.isCellWithinRange(Z.cell,Mt)&&(We=ge.length-1,mt={rowIndex:ge[ge.length-1].rowStart,colIndex:ge[ge.length-1].colStart})}const Ue={cell:mt,rangeIndex:We,ranges:ge};return Vt.isEqualSelectionCoords(Ue,Z)?Z:Ue})}}),[Y,l,d,C,c]),it=wt((q,Ce=!1,Z=!1,ge=0)=>{if(!e.current||!Y.cell)return;let We=Y.cell,mt=Y.cell;if(Ce&&Y.ranges.length>0){const Ct=Y.ranges[Y.rangeIndex],an=Y.cell;switch(q){case eo:mt={rowIndex:an.rowIndex===Ct.rowStart?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colEnd},We={rowIndex:an.rowIndex===Ct.rowStart?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colStart};break;case to:mt={rowIndex:an.rowIndex===Ct.rowEnd?Ct.rowStart:Ct.rowEnd,colIndex:Ct.colEnd},We={rowIndex:an.rowIndex===Ct.rowEnd?Ct.rowEnd:Ct.rowStart,colIndex:Ct.colStart};break;case Jn:mt={rowIndex:Ct.rowEnd,colIndex:an.colIndex===Ct.colStart?Ct.colEnd:Ct.colStart},We={rowIndex:Ct.rowStart,colIndex:an.colIndex===Ct.colStart?Ct.colStart:Ct.colEnd};break;case Un:mt={rowIndex:Ct.rowEnd,colIndex:an.colIndex===Ct.colEnd?Ct.colStart:Ct.colEnd},We={rowIndex:Ct.rowStart,colIndex:an.colIndex===Ct.colEnd?Ct.colEnd:Ct.colStart}}}const Ue=A(mt);let{rowStart:Ut,colStart:Mt}=Ue;const Bt=X();if(ue.current)switch(q){case eo:case to:ue.current.colIndex>=Ue.colStart&&ue.current.colIndex<=Ue.colEnd&&(Mt=ue.current.colIndex);break;case Jn:case Un:ue.current.rowIndex>=Ue.rowStart&&ue.current.rowIndex<=Ue.rowEnd&&(Ut=ue.current.rowIndex)}if(!ge){switch(q){case eo:Ut=qn(ve,Math.max(Ue.rowStart-1,Bt.top),q);break;case to:Ut=qn(ve,Math.min(Ue.rowEnd+1,Bt.bottom),q);break;case Jn:Mt=qn(ce,Math.max(Ue.colStart-1,Bt.left),q);break;case Un:Mt=qn(ce,Math.min(Ue.colEnd+1,Bt.right),q)}if(Z)switch(q){case eo:Ut=w({...mt,colIndex:Y.cell.colIndex},de,ve,q,!1,Math.max(Bt.top,ve(Bt.top,!1)));break;case to:Ut=w({...mt,colIndex:Y.cell.colIndex},de,ve,q,!1,Math.min(Bt.bottom,Bt.bottom-ve(Bt.bottom,!0)));break;case Jn:Mt=w({...mt,rowIndex:Y.cell.rowIndex},de,ce,q,!1,Math.max(Bt.left,ce(Bt.left,!1)));break;case Un:Mt=w({...mt,rowIndex:Y.cell.rowIndex},de,ce,q,!1,Math.min(Bt.right,Bt.right-ce(Bt.right,!0)))}}let qt=null;if(ge){let Ct=0;switch(q){case eo:Ct=n.getRowOffset(Ut+1),Ut=Math.max(Bt.top,n.getRowIndex(Ct-ge)),qt={top:n.getRowOffset(Ut+1)-(Ct-e.current.getScrollPosition().top)};break;case to:Ct=n.getRowOffset(Ut),Ut=Math.min(Bt.bottom,n.getRowIndex(Ct+ge)),qt={top:n.getRowOffset(Ut)-(Ct-e.current.getScrollPosition().top)};break;case Jn:Ct=n.getColOffset(Mt+1),Mt=Math.max(Bt.left,n.getColIndex(Ct-ge)),qt={left:n.getColOffset(Mt+1)-(Ct-e.current.getScrollPosition().left)};break;case Un:Ct=n.getColOffset(Mt),Mt=Math.min(Bt.right,n.getColIndex(Ct+ge)),qt={left:n.getColOffset(Mt)-(Ct-e.current.getScrollPosition().left)}}}const fn={rowIndex:Ut,colIndex:Mt},Ht=A(fn),Nt={rowIndex:Ht.rowStart,colIndex:Ht.colStart};Ce||(ue.current=fn);const io=Vt.isEqualCells(Ie.current,Nt)&&Vt.isEqualCells(Ie.current,We);if(Ce&&!io?se(Nt,We):te(Nt),qt)e.current.scrollTo(qt);else{if(Ce&&Ie.current){const Ct=X();if(q===Un&&Ie.current.colIndex===Ct.left||q===Jn&&Ie.current.colIndex===Ct.right||q===eo&&Ie.current.rowIndex===Ct.bottom||q===to&&Ie.current.rowIndex===Ct.top)return}q===Jn||q===Un?Ae({colIndex:fn.colIndex}):q!==eo&&q!==to||Ae({rowIndex:fn.rowIndex})}},[Y,A]),At=wt(q=>{if(!e.current)return;if(Y.ranges.length===0)return void it(q);const Ce=A(Y.cell);if(Vt.isEqualRangesArrays([Ce],Y.ranges))return void it(q);const Z=Dh(Y,q,A,ve,ce);ie(ge=>{ee.current=!1,ge=Yr(ge);const We={...ge,cell:Z.cell,rangeIndex:Z.rangeIndex};return Vt.isEqualSelectionCoords(We,ge)?ge:We}),Z.cell&&Ae(Z.cell)},[Y,A]),Lt=u.useCallback(()=>{const q=X();se({rowIndex:q.top},{rowIndex:q.bottom})},[]),_t=u.useCallback(()=>{const q=X();se({colIndex:q.left},{colIndex:q.right})},[]),$t=wt(()=>{Y.cell&&e?.current&&Ae(Y.cell)},[Y.cell]),nn=u.useCallback((q=!1)=>{const Ce={rowIndex:X().top};q?se(Ce):te(Ce),Ae(Ce)},[]),Zt=u.useCallback((q=!1)=>{const Ce={rowIndex:X().bottom};q?se(Ce):te(Ce),Ae(Ce)},[]),Tn=u.useCallback((q=!1)=>{const Ce={colIndex:X().left};q?se(Ce):te(Ce),Ae(Ce)},[]),pn=u.useCallback((q=!1)=>{const Ce=X(),Z={rowIndex:Ce.top,colIndex:Ce.left};q?se(Z):te(Z),Ae(Z)},[]),En=u.useCallback((q=!1)=>{const Ce=X(),Z={colIndex:E?.()?.colEnd??Ce.right};q?se(Z):te(Z),Ae(Z)},[E]),kt=u.useCallback((q=!1)=>{const Ce=X(),Z={rowIndex:E?.()?.rowEnd??Ce.bottom,colIndex:E?.()?.colEnd??Ce.right};q?se(Z):te(Z),Ae(Z)},[E]),on=wt(q=>{if(!e.current||Y.ranges.length<=1)return;const Ce=q===Jn||q===eo;let Z=Y.rangeIndex+(Ce?-1:1);Z<0?Z=Y.ranges.length-1:Z>Y.ranges.length-1&&(Z=0);const ge=Y.ranges[Z],We=Dh({cell:{rowIndex:ge.rowEnd,colIndex:ge.colEnd},rangeIndex:0,ranges:[ge]},Un,A,ve,ce);ie(mt=>{ee.current=!1,mt=Yr(mt);const Ue={...mt,cell:We.cell,rangeIndex:Z};return Vt.isEqualSelectionCoords(Ue,mt)?mt:Ue}),We.cell&&Ae(We.cell)},[Y,A]),mn=wt(()=>{const q=W9(Y);ie(Ce=>{ee.current=!1,Ce=Yr(Ce);const Z={...Ce,visibleSelection:q};return Vt.isEqualSelectionCoords(Z,Ce)?Ce:Z}),q.cell&&Ae(q.cell)},[Y,A]),Ln=wt(()=>{if(!e.current||Y.ranges.length===0)return;const q=Y.cell,Ce=Y.ranges[Y.rangeIndex],Z=W9({cell:q,rangeIndex:0,ranges:[Ce]}),ge=Z.ranges[Z.rangeIndex];let We;We=ge.rowStart===q.rowIndex&&ge.colStart===q.colIndex?{rowIndex:ge.rowStart,colIndex:ge.colEnd}:ge.rowStart===q.rowIndex&&ge.colEnd===q.colIndex?{rowIndex:ge.rowEnd,colIndex:ge.colStart}:ge.rowEnd===q.rowIndex&&ge.colStart===q.colIndex?{rowIndex:ge.rowEnd,colIndex:ge.colEnd}:{rowIndex:ge.rowStart,colIndex:ge.colStart},ie(mt=>{mt=Yr(mt);const Ue={...mt,cell:We};return Vt.isEqualSelectionCoords(Ue,mt)?mt:Ue}),We&&Ae(We)},[Y,A]),Nn=u.useCallback((q=!1)=>{it(to,q,!1,e.current.getDimensions().containerHeight)},[]),hn=u.useCallback((q=!1)=>{it(eo,q,!1,e.current.getDimensions().containerHeight)},[]),fo=u.useCallback((q=!1)=>{it(Un,q,!1,e.current.getDimensions().containerWidth)},[]),bo=u.useCallback((q=!1)=>{it(Jn,q,!1,e.current.getDimensions().containerWidth)},[]),Fo=u.useCallback(()=>{At(Jn)},[]),tr=u.useCallback(()=>{At(Un)},[]),_r=u.useCallback(()=>{At(eo)},[]),jr=u.useCallback(()=>{At(to)},[]),ui=u.useCallback(()=>{on(Jn)},[]),Ki=u.useCallback(()=>{on(Un)},[]),pi=u.useCallback(()=>{Ln()},[]),pr=u.useCallback(()=>{it(Jn,!1,!1)},[]),nt=u.useCallback(()=>{it(Jn,!0,!1)},[]),ft=u.useCallback(()=>{it(Jn,!1,!0)},[]),gt=u.useCallback(()=>{it(Jn,!0,!0)},[]),ut=u.useCallback(()=>{it(Un,!1,!1)},[]),vt=u.useCallback(()=>{it(Un,!0,!1)},[]),jt=u.useCallback(()=>{it(Un,!1,!0)},[]),Pt=u.useCallback(()=>{it(Un,!0,!0)},[]),Rt=u.useCallback(()=>{it(eo,!1,!1)},[]),zt=u.useCallback(()=>{it(eo,!0,!1)},[]),Dt=u.useCallback(()=>{it(eo,!1,!0)},[]),gn=u.useCallback(()=>{it(eo,!0,!0)},[]),zn=u.useCallback(()=>{it(to,!1,!1)},[]),wn=u.useCallback(()=>{it(to,!0,!1)},[]),Ne=u.useCallback(()=>{it(to,!1,!0)},[]),yt=u.useCallback(()=>{it(to,!0,!0)},[]),Wt=u.useCallback(()=>{Pe(q=>q.slice(0,-1))},[]),en=u.useMemo(()=>{const q=X();return((Ce,Z,ge,We,mt)=>{for(let Ue=0;Ue<Ce.length;Ue++){const Ut=Ce[Ue];if(Ut.rowStart===Z&&Ut.colStart===ge&&Ut.rowEnd===We&&Ut.colEnd===mt)return!0}return!1})(Y.ranges,q.top,q.left,q.bottom,q.right)},[R,Y.ranges]),rn=u.useCallback((q,Ce=!0)=>{Ie.current=q,Te(q),Ce&&q&&e?.current&&Ae(q)},[]),It=wt((q=!0)=>{const Ce=Xe.current;if(!le.current?.cell)return;const Z=le.current?.ranges,ge=le.current?.cell;if(!ge||!Ce||!Ce)return;let We=null;if(We=Z.length>0?Z[Z.length-1]:A(ge),We.colEnd>=We.colStart&&We.rowEnd>=We.rowStart){const mt=U9(We,Ce);let Ue=q?H:ne;try{Ue?.(We,Ce,mt.direction)}catch(Ut){console.warn(Ut)}finally{q&&ye?.()}}},[A]),In=u.useRef(null),hr=Rs(u.useMemo(()=>({onPointerDown:(q,Ce)=>{if(Fe.current=Ce,!e||!e.current)return!1;const Z=e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),ge=Z?.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);ge&&(q.stopPropagation(),Ve("crosshair"),In.current={anchor:Z.getAnchor(),coords:ge})},onPointerMoveOrWait:(q,Ce)=>{if(m||!e?.current||!le.current||!In.current)return;const Z=In.current.anchor;let ge=e.current.getViewFromLocation(Z),We=ge.getCellCoordsFromClient(q.clientX,q.clientY);if(!We)return;In.current={anchor:Z,coords:We};const mt=le.current.ranges;let Ue=Q(le.current.cell,We);if(!Ue)return;const Ut=mt.length>0,Mt=Ut?mt[mt.length-1]:A(le.current.cell);if(!Ue)return;const Bt=Ue.rowStart<Mt.rowStart?eo:Ue.rowEnd>Mt.rowEnd?to:Ue.colEnd>Mt.colEnd?Un:Jn,qt=X();Bt===Jn&&(Ue={...Mt,colStart:Math.max(qt.left,Ue.colStart)}),Bt===eo&&(Ue={...Mt,rowStart:Math.max(qt.top,Ue.rowStart)}),Bt===Un&&(Ue={...Mt,colEnd:Math.min(qt.right,Ue.colEnd)}),Bt===to&&(Ue={...Mt,rowEnd:Math.min(qt.bottom,Ue.rowEnd)});const fn=U9(Mt,Ue);if(!j?.(Mt)){let Ht;typeof De.current=="function"?Ht=De.current(Mt):T&&(Ht=T),Ue=((Nt,io,Ct,an,go,dn)=>{const Kt={...io};if(Ct.length===0)return Kt;if(go===Jn){const vo=Nt.colEnd+1-Nt.colStart;Kt.colStart=Nt.colStart-Math.ceil(dn/vo)*vo,Kt.colStart<an.left&&(Kt.colStart=Kt.colStart+Math.ceil((an.left-Kt.colStart)/vo)*vo)}else if(go===Un){const vo=Nt.colEnd+1-Nt.colStart;Kt.colEnd=Nt.colEnd+Math.ceil(dn/vo)*vo,Kt.colEnd>an.right&&(Kt.colEnd=Kt.colEnd-Math.ceil((an.right-Kt.colEnd)/vo)*vo)}else if(go===eo){const vo=Nt.rowEnd+1-Nt.rowStart;Kt.rowStart=Nt.rowStart-Math.ceil(dn/vo)*vo,Kt.rowStart<an.top&&(Kt.rowStart=Kt.rowStart+Math.ceil((an.top-Kt.rowStart)/vo)*vo)}else if(go===to){const vo=Nt.rowEnd+1-Nt.rowStart;Kt.rowEnd=Nt.rowEnd+Math.ceil(dn/vo)*vo,Kt.rowEnd>an.bottom&&(Kt.rowEnd=Kt.rowEnd-Math.ceil((an.bottom-Kt.rowEnd)/vo)*vo)}return Kt})(Mt,Ue,Ht,qt,fn.direction,fn.amount)}if(Ut&&Vt.isRangeWithinRange(Ue,Mt)&&(Ue=null),!Vt.isEqualRanges(Ue,Xe.current)){if(Re(Ue),Xe.current=Ue,!Ue){try{oe?.()}catch{}return void ye?.()}It(!1)}Fe.current=Ce,vd(ge,We,e)},onPointerUp:(q,Ce)=>{Fe.current=Ce,Promise.resolve(It(!0)).finally(()=>{ye?.(),Re(null),Xe.current=null,In.current=null,Ve(null),e.current?.focus()})}}),[A])),vr=u.useMemo(()=>({onPointerDown:hr}),[hr]),[cn,Hn]=u.useState(null),Pn=u.useRef(null),Wn=Rs(u.useMemo(()=>({onPointerDown:(q,Ce)=>{if(Fe.current=Ce,!e||!e.current)return!1;const Z=e.current.getViewFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY),ge=Z?.getCellCoordsFromClient(q.nativeEvent.clientX,q.nativeEvent.clientY);if(!ge)return;if(_?.(q,ge,Y)===!1)return!1;q.stopPropagation(),Ve("default");const We=Z.getRelativePointFromClient(0,0),mt=le.current?.ranges[le.current?.ranges.length-1]??Vt.cellToRange(le.current?.cell),Ue=Z.toClipBounds(Z.getRangeCoordsBounds(mt)),Ut={x:0,y:0};Ue.x-We.x>q.nativeEvent.clientX?Ut.x=q.nativeEvent.clientX-(Ue.x-We.x):q.nativeEvent.clientX>=Ue.x-We.x+Ue.width&&(Ut.x=Math.max(0,q.nativeEvent.clientX-(Ue.x-We.x+Ue.width))+1),Ue.y-We.y>q.nativeEvent.clientY?Ut.y=q.nativeEvent.clientY-(Ue.y-We.y):q.nativeEvent.clientY>=Ue.y-We.y+Ue.height&&(Ut.y=Math.max(0,q.nativeEvent.clientY-(Ue.y-We.y+Ue.height))+1),S?.(mt,q.nativeEvent,Ce),Pn.current={range:mt,anchor:Z.getAnchor(),cell:ge,isMoving:!1,extrusion:Ut}},onPointerMoveOrWait:(q,Ce,Z)=>{if(z||!e?.current||!le.current||!Pn.current)return;const ge=q.clientX-Z.clientX,We=q.clientY-Z.clientY;if(Pn.current.isMoving=Pn.current.isMoving||Math.abs(ge)>Math.max(1,2)||Math.abs(We)>Math.max(1,2)||performance.now()-Z.timeStamp>500,!Pn.current.isMoving)return;const mt=Pn.current.anchor,Ue=Pn.current.extrusion;let Ut=e.current.getViewFromLocation(mt),Mt=Ut.getCellCoordsFromClient(q.clientX-Ue.x,q.clientY-Ue.y,!0);if(!Mt)return;const Bt=Pn.current.cell,qt=Pn.current.range,fn=X(),Ht=qt.colEnd-qt.colStart+1,Nt=Math.min(Math.max(0,Bt.colIndex-qt.colStart),Ht-1),io=Math.min(fn.right-Ht+1,Math.max(fn.left,Mt.colIndex-Nt)),Ct=qt.rowEnd-qt.rowStart+1,an=Math.min(Math.max(0,Bt.rowIndex-qt.rowStart),Ct-1),go=Math.min(fn.bottom-Ct+1,Math.max(fn.top,Mt.rowIndex-an)),dn={colStart:io,colEnd:io+Ht-1,rowStart:go,rowEnd:go+Ct-1};var Kt;Vt.isEqualRanges(cn,dn)&&!(!(Kt=q)||!Fe.current||Fe.current.ctrlKey!==Kt.ctrlKey||Fe.current.shiftKey!==Kt.shiftKey||Fe.current.altKey!==Kt.altKey||Fe.current.metaKey!==Kt.metaKey)||(Hn(dn),k?.(dn,q,Ce)),Fe.current=Ce,vd(Ut,Mt,e)},onPointerUp:(q,Ce)=>{Fe.current=Ce;const Z=()=>{Hn(null),Pn.current=null,Ve(null),e.current?.focus()};if(!Pn.current)return void Z();const ge=Pn.current.range,We=cn;P?.(ge,q,Ce),Promise.resolve(ge&&We&&O?.(ge,We,q,Ce)).finally(()=>{Z()})}}),[cn])),On=u.useMemo(()=>({onPointerDown:Wn}),[Wn]),mo=u.useRef(null),Ze=u.useMemo(()=>{const q=Vt.isEqualSelectionCoords(Y,mo.current)?mo.current:Y;return mo.current=q,q},[Y]),be=u.useCallback(q=>{let Ce=null,Z="br";const ge=[],We={stroke:y,fill:B,strokeWidth:.5},mt=(Ht,Nt,io)=>{const Ct=q.toClipBounds(q.getRangeCoordsBounds(Ht),Rr);if(!Ct)return;Ct.x=Ct.width>0?Ct.x:Ct.x-We.strokeWidth/2,Ct.y=Ct.height>0?Ct.y:Ct.y-We.strokeWidth/2,Ct.width=Math.max(Ct.width,We.strokeWidth),Ct.height=Math.max(Ct.height,We.strokeWidth);const an={key:`selection-fill-${Nt}`,range:Ht,...Ct,...We};if(io){const go=q.getCellCoordsAsRangeCoords(io);an.cell=io,an.pathBounds=q.toClipBounds(q.getRangeCoordsBounds(go),Rr),an.pathBounds&&(an.pathBounds.width<=0||an.pathBounds.height<=0)&&(delete an.pathBounds,delete an.cell)}return xe(an)};let Ue=Y?Yr(Y):null;const Ut=Ue?.cell?q.getCellCoordsAsRangeCoords(Ue?.cell):jz;!Ue||Ue.ranges&&Ue.ranges.length!==0||(Ue={ranges:[Ut],rangeIndex:0,cell:Ue.cell});for(let Ht=0;Ue&&Ht<Ue.ranges.length;Ht++){const Nt=Ue.ranges[Ht],io=mt(Nt,Ht,Ht===Ue.rangeIndex?Ue.cell:null);io&&ge.push(io);const Ct=2,an=.5,go=q.toClipBounds(q.getRangeCoordsBounds(Nt,{top:0,left:0,right:0,bottom:0}),Rr);if(go){const dn=(Ue.ranges.length,4);ge.push(xe({range:Nt,key:`selection-inside-edge-${Ht}`,x:go.x-1,y:go.y-1,width:Math.max(go.width+1,0),height:Math.max(go.height+1,0),style:{overflow:"hidden"},stroke:y,strokeWidth:dn}))}if(Ue.ranges.length===1){const dn=q.toClipBounds(q.getRangeCoordsBounds(Nt),Rr);if(dn){z||ge.push(xe({range:Nt,key:`move-selection-hit-box-${Ht}`,x:dn.width>1?dn.x:dn.x-(D/2+1),y:dn.height>1?dn.y:dn.y-(D/2+1),width:Math.max(dn.width+2,1),height:Math.max(dn.height+2,1),stroke:"transparent",style:{boxShadow:"none"},pathProps:{cursor:cn?void 0:"move",pointerEvents:"stroke"},strokeWidth:D,...On}));const Kt=Ct;ge.push(xe({range:Nt,key:`selection-single-${Ht}`,x:dn.x-Kt/2,y:dn.y-Kt/2,width:Math.max(dn.width+Kt/2,1),height:Math.max(dn.height+Kt/2,1),stroke:M,strokeWidth:Kt}))}}else{const dn=q.toClipBounds(q.getRangeCoordsBounds(Nt,{top:-1,left:-1,right:-2,bottom:-2}),Rr);dn&&ge.push(xe({range:Nt,key:`selection-multi-${Ht}`,x:dn.width>1?dn.x:dn.x-an/2,y:dn.height>1?dn.y:dn.y-an/2,width:Math.max(dn.width,an)+1,height:Math.max(dn.height,an)+1,stroke:M,style:{overflow:"hidden"},strokeWidth:2}))}if(Ue.ranges.length>1&&Ht===Ue.rangeIndex){const dn=q.getCellCoordsAsRangeCoords(Ue.cell),Kt=q.toClipBounds(q.getRangeCoordsBounds(dn,{top:1,left:1,right:-1,bottom:-1}),Rr);Kt&&ge.push(xe({range:Nt,key:`selection-anchor-${Ht}`,x:Kt.x,y:Kt.y,width:Math.max(Kt.width,an),height:Math.max(Kt.height,an),stroke:M,style:{overflow:"hidden"},strokeWidth:2}))}if(Ht===Ue.ranges.length-1){Ce=null,Z=null;const dn=Nt.rowStart===X().top&&Nt.rowEnd===X().bottom,Kt=Nt.colStart===X().left&&Nt.colEnd===X().right,vo=q.getRangeCoordsBounds(Nt);let Bo=null;if(dn||Kt){if(Bo=q.toClipBounds(vo,Rr),Object.keys(q.allViews()).length>1){const Kl=q.getVisibleRangeCoords(),Gl=q.allViews()[Bu],H2=q.allViews()[Xc],ar=q.allViews()[Yc],wo=q.getAnchor();(Kt&&(wo===Xc&&Gl||wo===Jr&&ar||!Vt.isCellWithinRange({colIndex:Nt.colStart,rowIndex:Nt.rowEnd},Kl)&&!Vt.isCellWithinRange({colIndex:Nt.colStart,rowIndex:Nt.rowEnd+1},Kl))||dn&&(wo===Yc&&Gl||wo===Jr&&H2||!Vt.isCellWithinRange({colIndex:Nt.colEnd,rowIndex:Nt.rowStart},Kl)&&!Vt.isCellWithinRange({colIndex:Nt.colEnd+1,rowIndex:Nt.rowStart},Kl)))&&(Bo=null)}}else Bo=q.toClipBounds(vo,Rr);if(!Bo||Bo.width===0||Bo.height===0)continue;Ce={x:Bo.x+Bo.width+1,y:Bo.y+Bo.height+1},Bo.width===0||Bo.height===0||Nt.rowStart===X().top&&Nt.colStart===X().left&&Nt.rowEnd===X().bottom&&Nt.colEnd===X().right||(dn?(Ce.y=Ct,Z="tr"):Kt&&(Ce.x=Ct,Z="bl"))}}let Mt=null;if(Be){const Ht=q.toClipBounds(q.getRangeCoordsBounds(Be,{top:0,left:0,right:0,bottom:0}),Rr);Ht&&(Mt=xe({...We,range:Be,key:"remove-selection",x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height,strokeWidth:2,stroke:N,fill:V}))}let Bt=null;if(Ee){const Ht=q.toClipBounds(q.getRangeCoordsBounds(Ee,{top:0,left:0,right:0,bottom:0}),Rr);Ht&&(Bt=xe({range:Ee,key:"selection-fill-outline",x:Ht.x-1,y:Ht.y-1,width:Ht.width+1,height:Ht.height+1,strokeWidth:2,stroke:M,strokeDasharray:"3 2"}))}let qt=null;!m&&Ce&&!cn&&(qt=u.createElement(Nw,{...Ce,corner:Z,size:7.5,borderStroke:`${y} solid`,style:{borderRadius:1},background:M,...vr,key:"fillHandle"}));const fn=[...ge];if(Mt&&fn.push(Mt),Bt&&fn.push(Bt),qt&&fn.push(qt),!U&&me&&Ue?.ranges.length===1&&Ue.ranges[Ue.ranges.length-1]){const Ht=Ue.ranges[Ue.ranges.length-1],Nt=Ht.rowStart===X().top&&Ht.rowEnd===X().bottom,io=Ht.colStart===X().left&&Ht.colEnd===X().right,Ct={view:q,range:Ht,borderStroke:`${M} solid`,background:y,selectionTouchPointerHandler:tt,...J,onTouchSelectStart:an=>ke(an),onTouchSelectEnd:()=>ke(null),currentTouchAnchor:Ye};fn.push(s.jsx(Ah,{anchor:io?"b":Nt?"r":"br",scrollableElement:e.current,...Ct},"touch-select-handle-after")),fn.push(s.jsx(Ah,{anchor:io?"t":Nt?"l":"tl",scrollableElement:e.current,...Ct},"touch-select-handle-before"))}if(cn){const Ht=q.toClipBounds(q.getRangeCoordsBounds(cn,{top:1,left:1,right:1,bottom:1}),Rr);Ht&&fn.push(xe({range:cn,key:"selection-move-outline",x:Ht.x-F/2,y:Ht.y-F/2,width:Math.max(Ht.width+F/2,1),height:Math.max(Ht.height+F/2,1),stroke:M,style:{boxShadow:"none",transitionDuration:"70ms",transitionTimingFunction:"ease-in",transitionProperty:"left, top, width, height",willChange:"left, top, width, height"},strokeWidth:F}))}return s.jsx("div",{children:fn},"selection")},[Ze,Be,m,Ee,z,cn,X,y,M,B,N,V,U,J,Ye]),St=u.useMemo(()=>{const q=()=>e.current;return[new bn("moveToPageDown",q,{label:"Page Down",description:"Shift viewport down one page.",shortcut:[{key:"PageDown"}]},()=>Nn(!1)),new bn("selectToPageDown",q,{label:"Select To Page Down",description:"Shift viewport and select down one page.",shortcut:[{key:"PageDown",modifiers:[Vo]}]},()=>Nn(!0)),new bn("moveToPageRight",q,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[dl]}]},()=>fo(!1)),new bn("selectToPageRight",q,{label:"Page Right",description:"Shift viewport right one page.",shortcut:[{key:"PageDown",modifiers:[dl,Vo]}]},()=>fo(!0)),new bn("moveToPageUp",q,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp"}]},()=>hn(!1)),new bn("selectToPageUp",q,{label:"Page Up",description:"Shift viewport up one page.",shortcut:[{key:"PageUp",modifiers:[Vo]}]},()=>hn(!0)),new bn("moveToPageLeft",q,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[dl]}]},()=>bo(!1)),new bn("selectToPageLeft",q,{label:"Page Left",description:"Shift viewport left one page.",shortcut:[{key:"PageUp",modifiers:[dl,Vo]}]},()=>bo(!0)),new bn("selectColumn",q,{label:"Select Column",description:"Select the columns for the selected cells.",shortcut:{key:"Space",modifiers:[mr]}},Lt),new bn("selectRow",q,{label:"Select Row",description:"Select the rows for the selected cells.",shortcut:{key:"Space",modifiers:[Vo]}},_t),new bn("selectToColumnStart",q,{label:"Select To Column Start",description:"Select the columns to the beginning of the sheet."},()=>nn(!0)),new bn("selectToColumnEnd",q,{label:"Select To Column End",description:"Select the columns to the end of the sheet."},()=>Zt(!0)),new bn("moveToRowStart",q,{label:"Move to Row Home",description:"Move to the beginning of the row.",shortcut:[{key:"Home"}]},()=>Tn(!1)),new bn("selectToRowStart",q,{label:"Select to Row Home",description:"Select to the beginning of the row.",shortcut:[{key:"Home",modifiers:[Vo]}]},()=>Tn(!0)),new bn("moveToSheetStart",q,{label:"Move to Sheet Home",description:"Move to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr]}]},()=>pn(!1)),new bn("selectToSheetStart",q,{label:"Select to Sheet Home",description:"Select to the beginning of the sheet.",shortcut:[{key:"Home",modifiers:[mr,Vo]}]},()=>pn(!0)),new bn("moveToRowEnd",q,{label:"Move to Row End",description:"Move to the end of the row.",shortcut:[{key:"End"}]},()=>En(!1)),new bn("selectToRowEnd",q,{label:"Select to Row End",description:"Select to the end of the row.",shortcut:[{key:"End",modifiers:[Vo]}]},()=>En(!0)),new bn("moveToSheetEnd",q,{label:"Move to Sheet End",description:"Move to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr]}]},()=>kt(!1)),new bn("selectToSheetEnd",q,{label:"Select to Sheet End",description:"Select to the end of the sheet.",shortcut:[{key:"End",modifiers:[mr,Vo]}]},()=>kt(!0)),new bn("scrollToActiveCoords",q,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell.",shortcut:{key:"Backspace",modifiers:[mr]}},$t),new bn("scrollToActiveCoordsClearSelection",q,{label:"Scroll to Active Cell",description:"Scroll to the Active Cell and clear selection.",shortcut:{key:"Backspace",modifiers:[Vo]}},()=>{pe(),rn(Y.cell,!0)}),new bn("traverseSelectionRight",q,{label:"Traverse Right",description:"Traverse the selection moving rightward.",shortcut:{key:"Tab"}},tr),new bn("traverseSelectionLeft",q,{label:"Traverse Left",description:"Traverse the selection moving leftward.",shortcut:{key:"Tab",modifiers:[Vo]}},Fo),new bn("traverseSelectionDown",q,{label:"Traverse Down",description:"Traverse the selection moving downward.",shortcut:[{key:"Enter"},{key:"NumpadEnter"}]},jr),new bn("traverseSelectionUp",q,{label:"Traverse Up",description:"Traverse the selection moving upward.",shortcut:[{key:"Enter",modifiers:[Vo]},{key:"NumpadEnter",modifiers:[Vo]}]},_r),new bn("moveLeft",q,{label:"Move Left",description:"Move active cell to the left.",shortcut:[{key:"ArrowLeft"}]},pr),new bn("selectLeft",q,{label:"Select Left",description:"Extend selection left.",shortcut:[{key:"ArrowLeft",modifiers:[Vo]}]},nt),new bn("moveContentfulLeft",q,{label:"Move Left Contentful",description:"Move left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr]}]},ft),new bn("selectContentfulLeft",q,{label:"Select Left Contentful",description:"Extend selection left to the next cell with content.",shortcut:[{key:"ArrowLeft",modifiers:[mr,Vo]}]},gt),new bn("moveRight",q,{label:"Move Right",description:"Move active cell to the right.",shortcut:[{key:"ArrowRight"}]},ut),new bn("selectRight",q,{label:"Select Right",description:"Extend selection right.",shortcut:[{key:"ArrowRight",modifiers:[Vo]}]},vt),new bn("moveContentfulRight",q,{label:"Move Right Contentful",description:"Move right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr]}]},jt),new bn("selectContentfulRight",q,{label:"Select Right Contentful",description:"Extend selection right to the next cell with content.",shortcut:[{key:"ArrowRight",modifiers:[mr,Vo]}]},Pt),new bn("moveUp",q,{label:"Move Up",description:"Move active cell to the up.",shortcut:[{key:"ArrowUp"}]},Rt),new bn("selectUp",q,{label:"Select Up",description:"Extend selection up.",shortcut:[{key:"ArrowUp",modifiers:[Vo]}]},zt),new bn("moveContentfulUp",q,{label:"Move Up Contentful",description:"Move up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr]}]},Dt),new bn("selectContentfulUp",q,{label:"Select Up Contentful",description:"Extend selection up to the next cell with content.",shortcut:[{key:"ArrowUp",modifiers:[mr,Vo]}]},gn),new bn("moveDown",q,{label:"Move Down",description:"Move active cell to the down.",shortcut:[{key:"ArrowDown"}]},zn),new bn("selectDown",q,{label:"Select Down",description:"Extend selection down.",shortcut:[{key:"ArrowDown",modifiers:[Vo]}]},wn),new bn("moveContentfulDown",q,{label:"Move Down Contentful",description:"Move down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr]}]},Ne),new bn("selectContentfulDown",q,{label:"Select Down Contentful",description:"Extend selection down to the next cell with content.",shortcut:[{key:"ArrowDown",modifiers:[mr,Vo]}]},yt),new bn("selectVisible",q,{label:"Select Visible",description:"Select visible cells only.",shortcut:{key:";",modifiers:[dl]}},mn),new bn("traverseSelectionPreviousRange",q,{label:"Traverse Previous Range",description:"Traverse the selection to the previous range.",shortcut:{key:"ArrowLeft",modifiers:[mr,dl]}},ui),new bn("traverseSelectionNextRange",q,{label:"Traverse Next Range",description:"Traverse the selection to the next range.",shortcut:{key:"ArrowRight",modifiers:[mr,dl]}},Ki),new bn("traverseSelectionCorners",q,{label:"Traverse Corners",description:"Traverse the selection through the corners of the selected range.",shortcut:{key:".",modifiers:[mr]}},pi)]},[]);return u.useMemo(()=>{t?.addCommands(St,!0)},[t]),{selection:Ze,setSelectionCell:rn,setSelectionRanges:Pe,overlay:be,cursor:rt,onPointerDown:et,clearLastSelection:Wt,newSelection:te,modifySelection:se,appendSelection:ae,clearSelections:pe,isEntire:en,navigate:it,navigateSelection:At}};function eu(e,t){if(!e)throw new Error("Invariant failed")}const Z9={"sheetxl-grid":"_sheetxl-grid_h9wwa_7"},Iz=Object.freeze({top:0,left:0}),Pz=Object.freeze({bottom:-4,right:-4}),Oz=Object.freeze({horizontal:!0,vertical:!0}),X9=[Bu,Xc,Yc,Jr],Qi=3e3,e5={},Uw=u.memo(u.forwardRef((e,t)=>{const{width:n,height:o,rowCount:r=1,columnCount:i=1,defaultRowHeight:a,defaultColumnWidth:l,getRowHeight:c,getColumnWidth:d,layout:p,onViewportScroll:f,onImmediateScroll:h,showGridLines:g=!0,gridLineColor:m="rgb(224, 224, 224)",gridLineRowsProps:y,gridLineColumnsProps:x,clipCells:v=!0,cursor:b,freezeLeft:w=0,freezeTop:E=0,freezeLeftProps:C,freezeTopProps:R,cellRenderer:_,onViewportChange:L,onFirstRender:T,overlayRenderer:j,overlayProps:S,overlays:k,overlaysProps:P,allowOverlaysOverflow:O=!1,stageProps:I,stageWrapper:z=null,hiddenRowsAt:A,hiddenColumnsAt:D,hiddenCellAt:F,getVisibleCells:B,zoom:M=1,enableMouseWheel:N=!0,onWheelScroll:V,getCellCoordsAsRangeCoords:U=Vt.cellToRange,scrollPoint:J=Iz,style:X={},...H}=e;eu(_),eu(!e?.children);const ne=wt(h,[h]),oe=wt(L,[L]),ye=wt(f,[f]),de=wt(V,[V]),xe=wt(T,[T]),we=u.useRef(null),ve=u.useRef(null),re=u.useRef(null),[ce,Se]=u.useReducer(nt=>nt+1,0),[ie,Y]=u.useState({left:J?.left??0,top:J?.top??0,horizontalScrollDirection:null,verticalScrollDirection:null}),le=u.useRef(null),ee=u.useRef(ie),{top:Pe,left:Te,verticalScrollDirection:rt,horizontalScrollDirection:Ve}=ie,Ee=u.useRef(!1),Re=(nt=>{const{rowCount:ft,columnCount:gt,defaultRowHeight:ut,getRowHeight:vt,defaultColumnWidth:jt,getColumnWidth:Pt}=nt||{},Rt=u.useRef({columnMetadataMap:{},rowMetadataMap:{},lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,recalcColumnIndices:[],recalcRowIndices:[]}),zt=wt(In=>N9({itemType:"row",itemCount:ft,itemSize:vt??(()=>ut??20),instanceProps:Rt.current,offset:In}),[ft,vt,ut]),Dt=wt(In=>In===-1?0:vs({itemType:"row",index:In,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).offset,[vt,ut]),gn=wt(In=>vs({itemType:"row",index:In,itemSize:vt??(()=>ut??20),instanceProps:Rt.current}).size,[vt,ut]),zn=wt(In=>N9({itemType:"column",itemCount:gt,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current,offset:In}),[gt,Pt,jt]),wn=wt(In=>In===-1?0:vs({itemType:"column",index:In,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current}).offset,[Pt,jt]),Ne=wt(In=>vs({itemType:"column",index:In,itemSize:Pt??(()=>jt??75),instanceProps:Rt.current}).size,[Pt,jt]),[yt,Wt]=u.useReducer(In=>In+1,0),en=()=>({getRowOffset:Dt,getColOffset:wn,getRowIndex:zt,getColIndex:zn}),[rn,It]=u.useState(()=>nt?en():null);return u.useEffect(()=>{It(nt?en():null)},[yt,ft,gt,jt,ut,gn,Ne]),rn})({rowCount:r,columnCount:i,defaultRowHeight:a,defaultColumnWidth:l,getRowHeight:c,getColumnWidth:d}),Xe=u.useRef(null),Be=u.useMemo(()=>{const nt=p||Re;return Xe.current=null,{getColOffset:ft=>nt.getColOffset(ft)*M,getColIndex:ft=>nt.getColIndex(ft/M),getRowOffset:ft=>nt.getRowOffset(ft)*M,getRowIndex:ft=>nt.getRowIndex(ft/M)}},[Re,p,M]),ct=(nt,ft,gt)=>{const ut=(ft?.left??0)+0,vt=(ft?.top??0)+0;return{getColOffset:jt=>nt.getColOffset(jt)-ut,getColIndex:jt=>nt.getColIndex(jt+ut),getRowOffset:jt=>nt.getRowOffset(jt)-vt,getRowIndex:jt=>nt.getRowIndex(jt+vt)}},Qe=u.useCallback((nt,ft=!1)=>Hu(nt,ft,Be.getRowOffset,ft?0:r),[r,Be?.getRowOffset]),he=wt(A??Qe,[A]),Ye=u.useCallback((nt,ft=!1)=>Hu(nt,ft,Be.getColOffset,ft?i:0),[i,Be?.getColOffset]),ke=wt(D??Ye,[D]),Ie=u.useMemo(()=>Math.min(n??800,Be.getColOffset(i)),[Be.getColOffset,i,n]),ue=u.useMemo(()=>Math.min(o??600,Be.getRowOffset(r)),[Be.getRowOffset,r,o]),De=u.useCallback(nt=>{Qo.canUseDOM&&setTimeout(()=>{we.current?.focus({preventScroll:!0,...nt})},0)},[]),Ae=u.useCallback(nt=>we.current?.contains(nt)||ve.current?.contains(nt),[]);u.useEffect(()=>{Ee.current&&(le.current&&le.current.left!==ee.current?.left&&le.current.top!==ee.current?.top||(le.current=null,ye?.({left:Te,top:Pe})))},[Te,Pe]);const W=wt(()=>({top:Pe,left:Te}),[Pe,Te]),Q=u.useMemo(()=>{const nt=[];let ft=0,gt=0;typeof E=="number"?ft=E:(ft=E.index??0,gt=(E.scrollOffset??0)*M);const ut=gt,vt=Be.getRowOffset(ft),jt=vt-ut;if(ft>0){const zn=ct(Be,{top:gt+Be.getRowOffset(0)}),wn=Be.getRowIndex(ut),Ne=Be.getRowIndex(vt-1);let yt;nt[1]={minIndex:wn,maxIndex:Ne,minCoord:0,maxCoord:ft-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(bd(he,wn,Ne)),yt),layout:zn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Pt=Math.max(0,ue-jt),Rt=ct(Be,{top:Pe+jt}),zt=Rt.getRowIndex(0),Dt=Rt.getRowIndex(Pt);let gn;return nt[0]={minIndex:zt,maxIndex:Dt,minCoord:ft,maxCoord:r-1,minBounds:jt,maxBounds:Pt,visibleIndices:()=>gn||(gn=Object.freeze(bd(he,zt,Dt)),gn),layout:Rt,maxVirtualBounds:Be.getRowOffset(r),scrollOffset:Pe,freezeOffset:(ft>0?Be.getRowOffset(ft):0)-gt},nt},[Be.getRowIndex,Be.getRowOffset,he,ue,r,E,Pe,M]),K=u.useMemo(()=>{const nt=[];let ft=0,gt=0;typeof w=="number"?ft=w:(ft=w.index??0,gt=(w.scrollOffset??0)*M);const ut=gt,vt=Be.getColOffset(ft),jt=vt-ut;if(ft>0){const zn=ct(Be,{left:gt+Be.getColOffset(0)}),wn=Be.getColIndex(ut),Ne=Be.getColIndex(vt-1);let yt;nt[1]={minIndex:wn,maxIndex:Ne,minCoord:0,maxCoord:ft-1,minBounds:0,maxBounds:jt,visibleIndices:()=>yt||(yt=Object.freeze(bd(ke,wn,Ne)),yt),layout:zn,maxVirtualBounds:vt,scrollOffset:gt,freezeOffset:gt}}const Pt=Math.max(0,Ie-jt),Rt=ct(Be,{left:Te+jt}),zt=Rt.getColIndex(0),Dt=Rt.getColIndex(Pt);let gn;return nt[0]={minIndex:zt,maxIndex:Dt,minCoord:ft,maxCoord:i-1,minBounds:jt,maxBounds:Pt,visibleIndices:()=>gn||(gn=Object.freeze(bd(ke,zt,Dt)),gn),layout:Rt,maxVirtualBounds:Be.getColOffset(i),scrollOffset:Te,freezeOffset:(ft>0?Be.getColOffset(ft):0)-gt},nt},[Be.getColIndex,Be.getColOffset,ke,Ie,i,w,Te,M]),se=u.useRef({}),te=u.useRef([]),ae=u.useMemo(()=>{let nt={};const ft=(ut,vt,jt,Pt,Rt)=>{const zt={vertical:Pt?.vertical||!1,horizontal:Pt?.horizontal||!1};if(ut>=K.length||vt>=Q.length)return null;const Dt={rowStart:Q[vt].minIndex,colStart:K[ut].minIndex,rowEnd:Q[vt].maxIndex,colEnd:K[ut].maxIndex};if(Dt.rowStart>Dt.rowEnd||Dt.colStart>Dt.colEnd)return null;const gn={getColIndex:cn=>K[ut].layout.getColIndex(cn),getColOffset:cn=>K[ut].layout.getColOffset(cn),getRowIndex:cn=>Q[vt].layout.getRowIndex(cn),getRowOffset:cn=>Q[vt].layout.getRowOffset(cn)},zn=Object.freeze({left:Rt?.left??0,top:Rt?.top??0,right:Rt?.right??0,bottom:Rt?.bottom??0}),wn=Object.freeze({x:K[ut].minBounds,y:Q[vt].minBounds,width:K[ut].maxBounds,height:Q[vt].maxBounds}),Ne=(cn,Hn)=>K9(gn,cn??Dt,Hn),yt={width:K[ut].maxVirtualBounds,height:Q[vt].maxVirtualBounds},Wt={left:K[ut].scrollOffset,top:Q[vt].scrollOffset},en={left:K[ut].freezeOffset,top:Q[vt].freezeOffset},rn={width:Ie,height:ue};let It=null,In=null;const hr=(en.top+(Pt.vertical?Wt.top:0))/M,vr=(en.left+(Pt.horizontal?Wt.left:0))/M;return{getStage:()=>we.current??null,getVisibleRangeCoords:()=>Dt,toClipBounds:(cn,Hn)=>{let Pn,Wn=0;return Hn===void 0||typeof Hn=="number"?(Pn=Ne(Dt),Wn=Hn):Pn=Hn,((On,mo,Ze=0)=>{if(On.x>mo.width||On.y>mo.height)return null;const be={left:On.x,top:On.y,bottom:On.height+On.y,right:On.width+On.x},St={left:mo.x+Ze,top:mo.y+Ze,bottom:mo.height-2*Ze+mo.y,right:mo.width-2*Ze+mo.x},q={left:Math.max(be.left,St.left),top:Math.max(be.top,St.top),bottom:Math.min(be.bottom,St.bottom),right:Math.min(be.right,St.right)},Ce={x:q.left,y:q.top,width:q.right-q.left,height:q.bottom-q.top};return Ce.height<0||Ce.width<0?null:Ce})(cn??{x:0,y:0,width:wn.width,height:wn.height},Pn,Wn)},toViewBounds:cn=>vr===0&&hr===0&&M===1?cn:{x:(cn.x-vr)*M,y:(cn.y-hr)*M,width:cn.width*M,height:cn.height*M},toAbsoluteBounds:cn=>vr===0&&hr===0&&M===1?cn:{x:cn.x/M+vr,y:cn.y/M+hr,width:cn.width/M,height:cn.height/M},getRelativePointFromClient:(cn,Hn)=>{const Pn=Ge(cn,Hn);return{x:Pn.x-wn.x,y:Pn.y-wn.y}},getLayout:()=>gn,getCellCoordsAsRangeCoords:U,getVisibleColumns:()=>K[ut].visibleIndices(),getVisibleRows:()=>Q[vt].visibleIndices(),getVisibleColumnOffsets:()=>(It||(It=q9(K[ut].layout,!0,K[ut].visibleIndices(),Dt.colStart,Dt.colEnd)),It),getVisibleRowOffsets:()=>(In||(In=q9(Q[vt].layout,!1,Q[vt].visibleIndices(),Dt.rowStart,Dt.rowEnd)),In),getTotalRangeCoords:()=>({colStart:K[ut].minCoord,colEnd:K[ut].maxCoord,rowStart:Q[vt].minCoord,rowEnd:Q[vt].maxCoord}),getRangeCoordsBounds:Ne,scrollCellCoordsIntoView:(cn,Hn)=>Tn(cn,Hn,jt),getCellCoordsFromClient:(cn,Hn,Pn=!1)=>{const Wn=Ge(cn,Hn);if(!Wn)return null;const On=gn.getColIndex(Wn.x-wn.x),mo={rowIndex:gn.getRowIndex(Wn.y-wn.y),colIndex:On};if(Pn)return mo;const Ze=U(mo);return{rowIndex:Ze.rowStart,colIndex:Ze.colStart}},getZoom:()=>M,getAnchor:()=>jt,getBounds:()=>wn,getInsets:()=>zn,getTotalSize:()=>yt,getViewportSize:()=>rn,getScrollTopLeft:()=>Wt,getFreezeTopLeft:()=>en,getScrollOrientation:()=>zt,allViews:()=>nt}};let gt=nt[Jr]=ft(0,0,Jr,Oz,Pz);return gt&&(nt[Jr]=gt),gt=ft(0,1,Xc,{horizontal:!0}),gt&&(nt[Xc]=gt),gt=ft(1,0,Yc,{vertical:!0}),gt&&(nt[Yc]=gt),gt=ft(1,1,Bu,{}),gt&&(nt[Bu]=gt),se.current=null,nt=Object.freeze(nt)},[Q,K,U]),pe=Object.keys(ae),me=K[0]?.maxVirtualBounds??0,fe=Q[0]?.maxVirtualBounds??0,je=u.useMemo(()=>({left:K[1]?K[1].layout.getColOffset(K[1].maxIndex+1):0,top:Q[1]?Q[1].layout.getRowOffset(Q[1].maxIndex+1):0}),[ae]);u.useEffect(()=>{if(te.current.length>0){for(let nt=0;nt<te.current.length;nt++)te.current[nt]();te.current=[]}},[ae]);const Fe=wt(()=>({containerWidth:Ie,containerHeight:ue,totalWidth:me,totalHeight:fe}),[Ie,ue,Be]);u.useEffect(()=>{!le.current&&Ee.current&&oe({top:Pe,left:Te,width:Ie,height:ue,totalWidth:me,totalHeight:fe})},[Pe,Te,me,fe]),u.useEffect(()=>{Ee.current&&oe({top:Pe,left:Te,width:Ie,height:ue,totalWidth:me,totalHeight:fe})},[Ie,ue]);const Ge=u.useCallback((nt,ft)=>{eu(typeof nt=="number"&&typeof ft=="number");const gt=we.current?.getBoundingClientRect();return gt?{x:nt-gt.x,y:ft-gt.y}:{x:nt,y:ft}},[]),et=wt(nt=>ae[nt]||null,[ae]),tt=wt((nt,ft)=>{if(Object.keys(ae).length===1)return ae[Jr];const gt=Ge(nt,ft);if(!gt)return null;const{x:ut,y:vt}=gt;let jt=null;const Pt=X9;for(let Rt=0;!jt&&Rt<Pt.length;Rt++){const zt=ae[Pt[Rt]];zt&&kz(ut,vt,zt.getBounds())&&(jt=zt)}return jt||(jt=ae[Jr]),jt},[ae,U]),it=wt(()=>ae[Jr].getVisibleRangeCoords(),[ae[Jr]]),At=u.useRef(null),Lt=u.useCallback(()=>{At.current!==null&&Qo.cancelTimeout(At.current),At.current=Qo.requestTimeout(_t,150)},[]),_t=u.useCallback(()=>{At.current=null,Y(nt=>{const ft={...nt,verticalScrollDirection:null,horizontalScrollDirection:null};return ee.current=ft,ft})},[]),$t=wt(nt=>{const ft=nt?.left??nt?.[0],gt=nt?.top??nt?.[1],ut=ft!==void 0?Math.min(me-Ie,Math.max(K?.[1]?.scrollOffset??0,ft)):ee.current.left,vt=gt!==void 0?Math.min(fe-ue,Math.max(Q?.[1]?.scrollOffset??0,gt)):ee.current.top;if(ee.current.left===ut&&ee.current.top===vt)return;let jt=null,Pt=null;ee.current.left>ut?jt=Jn:ee.current.left<ut&&(jt=Un),ee.current.top>vt?Pt=eo:ee.current.top<vt&&(Pt=to),Qo.throttle(()=>{Y(Rt=>{const zt={...Rt,left:ut,top:vt,horizontalScrollDirection:jt,verticalScrollDirection:Pt};return ee.current=zt,zt})},17)(),le.current?.top===vt&&le.current?.left===ut||(le.current={left:ut,top:vt},ne({left:ut,top:vt}),oe({left:ut,top:vt,width:Ie,height:ue,totalWidth:me,totalHeight:fe})),Lt()},[me,fe,Q,K]);u.useEffect(()=>{le.current||$t({left:Te,top:Pe})},[me,Ie,fe,ue]),u.useLayoutEffect(()=>{le.current={left:J?.left,top:J?.top},$t(le.current)},[J?.left,J?.top]);const nn=wt(nt=>{const ft=nt?.left??nt?.[0],gt=nt?.top??nt?.[1],ut=nt?.behavior??"auto",vt={left:ee.current.left+(ft??0),top:ee.current.top+(gt??0)};ut&&(vt.behavior=ut),$t(vt)},[me,Ie,fe,ue]),Zt=u.useCallback(nt=>{let ft=null;if(Object.keys(ae).length>1){const gt=X9;for(let ut=0;!ft&&ut<gt.length;ut++){const vt=ae[gt[ut]];vt&&Vt.isCellWithinRange(nt,vt.getVisibleRangeCoords())&&(ft=vt)}}return ft||(ft=ae[Jr]),ft},[ae]),Tn=wt((nt,ft={inline:"nearest",block:"nearest"},gt=null)=>{const ut={rowIndex:0,colIndex:0,...nt};let vt=null;if(gt!==null){if(vt=ae[gt],vt===null)return new Promise((en,rn)=>{rn("Invalid view")})}else vt=Zt(ut);const jt=U(ut),Pt=vt.getLayout(),Rt=Pt.getColOffset(jt.colStart),zt=Pt.getRowOffset(jt.rowStart),Dt=Pt.getColOffset(jt.colEnd+1),gn=Pt.getRowOffset(jt.rowEnd+1),zn=vt.getBounds(),wn=vt.getTotalSize(),Ne=vt.getScrollTopLeft(),yt={...((en,rn,It=!0)=>(It=It===!0?{block:"start",inline:"end"}:It===!1?{block:"end",inline:"end"}:{block:"end",inline:"end",...It},{left:H9(It.inline,en.x,en.x+en.width,rn.left,rn.left+rn.width,rn.totalWidth),top:H9(It.block,en.y,en.y+en.height,rn.top,rn.top+rn.height,rn.totalHeight)}))({x:Rt+Ne.left,y:zt+Ne.top,width:Dt-Rt,height:gn-zt},{left:Ne.left,top:Ne.top,width:zn.width,height:zn.height,totalWidth:wn.width,totalHeight:wn.height},ft)};yt.left>Te?yt.left+=20:yt.left<Te&&(yt.left-=0),yt.top>Pe?yt.top+=20:yt.top<Pe&&(yt.top-=0);const Wt=vt.getScrollOrientation();return Wt.horizontal&&nt.colIndex!==void 0||delete yt.left,Wt.vertical&&nt.rowIndex!==void 0||delete yt.top,new Promise((en,rn)=>{try{$t(yt),en(yt)}catch(It){rn(It)}})},[me,fe,ae,U]),pn=wt(nt=>{const ft=nt.shiftKey;nt.preventDefault();const{deltaX:gt,deltaY:ut,deltaMode:vt}=nt;if(re.current||de?.(nt)===!1)return;let jt=ft?ut:gt,Pt=ut;const Rt=ft||Math.abs(jt)>Math.abs(Pt);vt===1&&(Pt*=0),re.current=window.requestAnimationFrame(()=>{re.current=null,nn(Rt?{left:jt}:{top:Pt})})},[me,Ie,fe,ue,de]),En=u.useCallback((nt=null)=>{Xe.current=null,se.current=null,Se()},[]);u.useLayoutEffect(()=>{En()},[_]);const kt=P2(t,()=>({stage:we.current,focus:De,contains:Ae,invalidate:En,scrollTo:$t,scrollBy:nn,scrollCellCoordsIntoView:Tn,getScrollPosition:W,getDimensions:Fe,getViewport:it,handleWheel:pn,rowCount:r,columnCount:i,getLayout:()=>Be,getRelativePointFromClient:Ge,getViewFromClient:tt,getViewFromCellCoords:Zt,getViewFromLocation:et,onViewChangeOnce:nt=>{te.current.push(nt)}}),[r,i,ae]);u.useEffect(()=>(N&&kt.current?.addEventListener("wheel",pn,{passive:!1}),Ee.current=!0,le.current=null,()=>{kt.current?.removeEventListener("wheel",pn)}),[N]);const on=u.useRef([]),mn=(nt,ft)=>{!nt||!j||(on.current=[],ft.push((gt=>{const ut=`view:${gt.getAnchor()}:overlay:${ft.length}`,vt=j?.({key:ut,view:gt},Pt=>on.current[0]=Pt);if(!vt)return null;const jt=gt.getBounds();return s.jsx("div",{style:{position:"absolute",left:"0px",top:"0px",width:`${jt.width}px`,height:`${jt.height}px`,overflow:"hidden"},children:vt},`overlay-${gt.getAnchor()}-0`)})(nt)))},Ln=u.useMemo(()=>{const nt={},ft=Object.keys(ae);for(let gt=0;gt<ft.length;gt++){const ut=ft[gt],vt=[];mn(ae[ut],vt),nt[ut]={overlays:vt}}return nt},[ce,j,r,i,Q,K]),Nn=(nt,ft,gt,ut,vt,jt,Pt)=>{if(!nt)return;const Rt=nt.getVisibleColumns(),zt=nt.getVisibleRows();if(Rt.length===0||zt.length===0)return;let Dt=null;if(B)Dt=B(nt);else{Dt=[];for(let Hn=0;Hn<zt.length;Hn++)for(let Pn=0;Pn<Rt.length;Pn++){const Wn={rowIndex:zt[Hn],colIndex:Rt[Pn]};if(F?.(Wn))continue;const On={coords:Wn,range:U(Wn)};Dt.push(On)}}const gn=nt.getVisibleColumnOffsets(),zn=nt.getVisibleRowOffsets(),wn=nt.getScrollTopLeft(),Ne=nt.getFreezeTopLeft(),yt=wn.left+Ne.left,Wt=wn.top+Ne.top,en=Math.trunc(yt/Qi),rn=Math.trunc(Wt/Qi),It={},In=(Hn,Pn,Wn,On,mo)=>{const Ze=`view:${Hn.getAnchor()}:cell:${V9(Pn.rowIndex,Pn.colIndex)}`,be=On.x,St=On.y,q=Math.trunc((yt+be)/Qi)-en,Ce=Math.trunc((Wt+St)/Qi)-rn;It[Ce]||(It[Ce]={});let Z=It[Ce][q];Z||(Z=It[Ce][q]=[]);let ge=jt?.get(Ze);if(!ge){const We=(yt+be)%Qi,mt=(Wt+St)%Qi;ge=_({key:Ze,coords:Pn,bounds:On,zoom:M,range:Wn,view:Hn,value:mo,style:{left:Qt.boundPixel(We),top:Qt.boundPixel(mt),width:Qt.boundPixel(On.width,!0),height:Qt.boundPixel(On.height,!0)}})}Pt?.set(Ze,ge),Z.push(ge)};for(let Hn=0;Dt&&Hn<Dt.length;Hn++){const Pn=Dt[Hn],Wn=Pn?.coords??Pn;if(!Wn)continue;const On=Pn?.range??{rowStart:Wn.rowIndex,colStart:Wn.colIndex,rowEnd:Wn.rowIndex,colEnd:Wn.colIndex},mo=nt.getVisibleRangeCoords();if(!Vt.isRangesIntersect(On,mo)&&!Vt.isRangeWithinRange(On,mo))continue;const Ze=On&&!Vt.isSingleCell(On);if(!Ze&&F?.(Wn))continue;const be=Wn.rowIndex,St=Wn.colIndex,q=zn[be],Ce=gn[St];let Z=null;q&&Ce&&(Z={x:Ce.offset,y:q.offset,width:Ce.size,height:q.size});const ge=V9(On.rowStart,On.colStart);if(Ze){if(vt.has(ge))continue;vt.add(ge),On.rowEnd-On.rowStart>0&&gt.push(On),On.colEnd-On.colStart>0&&ut.push(On)}if(Ze&&(Z=K9(nt.getLayout(),On)),!Z){console.warn("no bounds for cell",ge);continue}const We=Pn?.value;In(nt,Wn,On,Z,We)}const hr=yt%Qi,vr=Wt%Qi,cn=Object.keys(It);for(let Hn=0;Hn<cn.length;Hn++){const Pn=It[cn[Hn]];if(!Pn)continue;const Wn=Object.keys(Pn);for(let On=0;On<Wn.length;On++){const mo=Pn[Wn[On]];if(!mo)continue;const Ze=parseInt(cn[Hn]),be=parseInt(Wn[On]),St=Ze+rn,q=be+en,Ce=`view:${nt.getAnchor()}:segment:${q}:${St}`;ft.push(s.jsx("div",{className:"cell-container",style:{transform:`translate(${Qt.boundPixel(be*Qi-hr,!0)}px, ${Qt.boundPixel(Ze*Qi-vr,!0)}px)`,willChange:"transform"},children:mo},Ce))}}},hn=u.useMemo(()=>{const nt=Xe.current,ft=new Map,gt={},ut=Object.keys(ae);for(let vt=0;vt<ut.length;vt++){const jt=ut[vt],Pt=[],Rt=[],zt=[];Nn(ae[jt],zt,Pt,Rt,new Set,nt,ft),gt[jt]={cells:zt,rangesH:Pt,rangesV:Rt}}return Xe.current=ft,gt},[ce,r,i,Q,K,g,X,v,F,B,U]),fo=(nt,ft,gt,ut,vt)=>{if(nt)if(ft){const jt=`view:${nt.getAnchor()}:hl:`,Pt=nt.getVisibleRows();if(!Pt||Pt.length===0)return;const Rt=0,zt=nt.getBounds().width;let Dt=[];const gn=vt.sort(Vt.rowFirstRangeComparator),zn=nt.getVisibleRangeCoords();for(let wn=0;wn<Pt.length&&Pt[wn]<=zn.rowEnd;wn++){const Ne=Pt[wn];if(Ne<zn.rowStart)continue;let yt=!1;for(;gn.length>0&&gn[0].rowStart<=Ne;){const It=gn.shift();It.rowEnd>Ne&&(Dt.push(It),yt=!0)}yt&&(Dt=Dt.sort(Vt.columnFirstRangeComparator));const Wt=nt.getLayout(),en=Wt.getRowOffset(Ne+1);let rn=Rt;for(let It=0;It<Dt.length+1;It++){let In=rn,hr=zt;const vr=Dt[It];It<Dt.length&&(hr=Math.min(zt,Wt.getColOffset(vr.colStart)),rn=Math.min(zt,Wt.getColOffset(vr.colEnd+1))),ut.push(u.createElement("path",{d:`M ${Qt.boundPixel(In)} ${Qt.boundPixel(en,!1,gt)} L ${Qt.boundPixel(hr)} ${Qt.boundPixel(en,!1,gt)}`,stroke:m,strokeWidth:1,vectorEffect:"non-scaling-stroke",...y,key:jt+Ne+":"+It}))}for(let It=Dt.length-1;It>=0;It--)Dt[It].rowEnd<=Pt[wn+1]&&Dt.splice(It,1)}}else{const jt=`view:${nt.getAnchor()}:vl:`,Pt=nt.getVisibleColumns();if(!Pt||Pt.length===0)return;const Rt=0,zt=nt.getBounds().height;let Dt=[];const gn=vt.sort(Vt.columnFirstRangeComparator),zn=nt.getVisibleRangeCoords();for(let wn=0;wn<Pt.length&&Pt[wn]<=zn.colEnd;wn++){const Ne=Pt[wn];if(Ne<zn.colStart)continue;let yt=!1;for(;gn.length>0&&gn[0].colStart<=Ne;){const It=gn.shift();It.colEnd>Ne&&(Dt.push(It),yt=!0)}yt&&(Dt=Dt.sort(Vt.rowFirstRangeComparator));const Wt=nt.getLayout(),en=Wt.getColOffset(Ne+1);let rn=Rt;for(let It=0;It<Dt.length+1;It++){let In=rn,hr=zt;const vr=Dt[It];It<Dt.length&&(hr=Math.min(zt,Wt.getRowOffset(vr.rowStart)),rn=Math.min(zt,Wt.getRowOffset(vr.rowEnd+1)));let cn=m;ut.push(s.jsx("path",{d:`M ${Qt.boundPixel(en,!1,gt)} ${Qt.boundPixel(In)} L ${Qt.boundPixel(en,!1,gt)} ${Qt.boundPixel(hr)}`,stroke:cn,strokeWidth:1,vectorEffect:"non-scaling-stroke",...x},jt+Ne+":"+It))}for(let It=Dt.length-1;It>=0;It--)Dt[It].colEnd<=Pt[wn+1]&&Dt.splice(It,1)}}},bo=nt=>{if(!hn)return;const ft={};for(let gt=0;gt<pe.length;gt++){const ut=pe[gt],vt=ae[ut],jt=[];fo(vt,nt,0,jt,nt?hn[ut].rangesH:hn[ut].rangesV);const Pt=vt.getRangeCoordsBounds(),Rt=Math.ceil(Pt.width),zt=Math.ceil(Pt.height);ft[ut]=s.jsx("svg",{width:`${Rt}`,height:`${zt}`,viewBox:`0 0 ${Rt} ${zt}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute"},children:jt})}return ft},Fo=u.useMemo(()=>g===!0||g?.horizontal===!0?bo(!0):null,[ce,g,Q,E,w,m,y,r,i,Ie,me,hn]),tr=u.useMemo(()=>g===!0||g?.vertical===!0?bo(!1):null,[ce,g,K,E,w,m,x,r,i,ue,fe,hn]),_r=u.useMemo(()=>je.left===0?null:s.jsx(ws,{linePoints:[0,0,0,ue+1],bounds:{x:je.left,y:0,width:1,height:ue+1},...C}),[ce,je.left,ue,C]),jr=u.useMemo(()=>je.top===0?null:s.jsx(ws,{linePoints:[0,0,Ie+1,0],bounds:{x:0,y:je.top,width:Ie+1,height:1},...R}),[ce,je.top,Ie,R]),ui=u.useMemo(()=>{const nt=[],ft=gt=>{if(!gt||!ae[gt])return;const ut=ae[gt].getBounds();return s.jsxs("div",{style:{position:"absolute",pointerEvents:"none",left:ut.x,top:ut.y,width:ut.width,height:ut.height,clip:`rect(0, ${ut.width+1}px, ${ut.height+1}px, 0)`},className:`view view-${gt}`,children:[Fo?.[gt],tr?.[gt],hn?.[gt].cells]},`view:${gt}`)};for(let gt=0;gt<pe.length;gt++)nt.push(ft(pe[gt]));return s.jsx(s.Fragment,{children:nt})},[ae,Fo,tr,hn]),Ki=u.useMemo(()=>{if(!t)return;const nt=(Pt,Rt,zt,Dt)=>{if(!Dt||Dt.length===0)return;const gn=[];for(let zn=0;zn<Dt.length;zn++){const wn=Dt[zn];let Ne=Pt?.get(wn);Ne!==e5&&(Ne=wn(zt)??e5),Rt.set(wn,Ne),Ne&&Ne!==e5&&gn.push(Ne)}return gn},ft=(Pt,Rt,zt)=>{if(!zt)return;const Dt=zt.getBounds(),gn=zt.getInsets(),zn=zt.getAnchor();return s.jsxs("div",{className:Rl("view",`view-${zn}`,Z9.view),style:{position:"absolute",pointerEvents:"none",left:Dt.x-gn.left,top:Dt.y-gn.top,width:Dt.width-(gn.left+gn.right),height:Dt.height-(gn.top+gn.bottom),clipPath:O?"inset(-2px)":"inset(0px)"},children:[nt(Pt,Rt,zt,k),Ln?.[zn].overlays]},`view:${zn}`)},gt=se.current,ut={},vt=[],jt=Object.keys(ae);for(let Pt=0;Pt<jt.length;Pt++){const Rt=jt[Pt],zt=gt?.[Rt],Dt=ut[Rt]=new Map;vt.push(ft(zt,Dt,ae[Rt]))}return se.current=ut,vt},[ce,ae,O,k]),pi=u.useMemo(()=>{const{style:nt,...ft}=I??{};return s.jsx("div",{style:{width:Ie,height:ue,...nt},className:"sheetxl-stage",tabIndex:0,ref:we,...ft,...H,children:z?z(ui):ui})},[Ie,ue,ui,I,z]),pr=u.useRef(!1);return u.useEffect(()=>{!pr.current&&hn&&(pr.current=!0,xe?.(kt.current))},[hn]),s.jsxs("div",{className:Rl("sheetxl-grid",Z9["sheetxl-grid"]),style:{overflow:"visible",cursor:b,maxWidth:Ie,maxHeight:ue,width:Ie,height:ue,...X},ref:kt,children:[pi,s.jsxs("div",{className:Rl("sheetxl-overlays"),ref:ve,...P,children:[Ki,_r,jr]})]})}));Uw.displayName="BaseGrid";const D2=u.memo(u.forwardRef((e,t)=>{const{width:n,height:o,style:r={},className:i,...a}=e,[l,{width:c,height:d}]=Vw();return s.jsx("div",{className:i,style:{...r},children:s.jsx("div",{style:{position:"relative",top:"0px",left:"0px",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",boxSizing:"content-box"},ref:l,children:s.jsx(Uw,{ref:t,width:n??c,height:o??d,...a})})})}));D2.displayName="Grid";const Dz=u.memo(u.forwardRef((e,t)=>{const{showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:a,viewport:l,onScrollViewport:c,style:d={},className:p,onScroll:f,...h}=e,[g,m]=u.useState(null),y=u.useRef(null),x=u.useRef(null);eu(!l),u.useImperativeHandle(t,()=>x.current&&y.current?Object.assign(x.current,y.current):null);const v=u.useCallback(b=>{x.current?.scrollTo(b),c?.(b)},[]);return s.jsx(Ow,{className:p,style:d,ref:y,showVerticalScrollbar:n,showHorizontalScrollbar:o,createHorizontalScrollbar:r,createVerticalScrollbar:i,createScrollCorner:a,viewport:g,onScrollViewport:v,children:s.jsx(D2,{style:{width:"100%",height:"100%"},...h,onViewportChange:b=>m(b),ref:x})})}));Dz.displayName="ScrollableGrid";const Y9=()=>!1,qw=u.memo(e=>{const{index:t,value:n,zoom:o,zoomScale:r=100,headerText:i=k=>`${k}`,headerStyle:a,headerStyleSelect:l=a,headerStyleSelectAll:c=l,headerStyleHover:d=c,verticalPadding:p=0,horizontalPadding:f=0,isSelected:h=Y9,isSelectedAll:g=Y9,coords:m,bounds:y,range:x,orientation:v,view:b,style:w,...E}=e,C=r/100,R=u.useRef(null),[_,L]=u.useState(!1),T=h?.(t)||!1,j=g?.(t)?c:T?l:a;let S=j;if(_){let k=d;typeof d=="function"&&(k=d(j)),S=Qo.mergeContentful(j,k)}return s.jsx("div",{ref:R,style:{background:S.fill,color:S.text?.fill,fontFamily:S.text?.fontFamily??a.text?.fontFamily,fontSize:96*(S.text?.fontSize??11)/72*C,fontStyle:S.text?.fontStyle,fontWeight:S.text?.fontWeight,lineHeight:1.2,display:"flex",justifyContent:"center",alignItems:"end",pointerEvents:"auto",paddingBottom:`${C}px`,...w,left:w.left-(v===Hr?1:0),top:w.top-(v===Ea?1:0),width:w.width+1,height:w.height+1,overflow:"hidden"},...E,onMouseMove:k=>{Qt.detectIt().primaryInput!=="touch"&&k.buttons===0&&L(!0)},onMouseOut:k=>{L(!1)},children:i(t)})});qw.displayName="HeaderRenderer";const Kw="ew-resize",Gw="ns-resize",Az=u.memo(u.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,className:i,style:a,disabled:l=!1,disabledResize:c=!1,isNextHidden:d,isHidden:p,isSelected:f,isSelectedAll:h,showTouchDivider:g,headerStyle:m,headerStyleSelect:y,headerStyleSelectAll:x,headerStyleHover:v,bounds:b,onPointerDown:w,onAutoFit:E,...C}=e,R=n===Hr;let _=m;f&&y&&(_=y),h&&x&&(_=x);const L=Qt.detectIt().primaryInput==="touch";let T=R?14:8,j=T/2,S=0;d&&(S=-2),p&&(S=2),p&&(T=T/2+S,j=2*S);let k=_.dividerStrokeFill??_.strokeFill;return!(f||h)&&S===0&&(k=`linear-gradient(${R?180:90}deg, ${_.fill}, ${k} 55%, ${k} 100%)`),s.jsxs("div",{className:Rl("header-divider",{disabled:l},i,`index-${r}`),ref:t,onPointerDown:L?void 0:w,onDoubleClick:L?void 0:()=>E?.(),style:{top:(R?0:-T/2+(S-1))+"px",left:(R?-T/2+(S-1):0)+"px",width:R?T:"calc(100% + 1px)",height:R?"calc(100% + 1px)":T,position:"absolute",overflow:"visible",pointerEvents:"all",cursor:l||c||L?void 0:R?Kw:Gw,...a},...C,children:[s.jsx("div",{style:{position:"relative",top:`${R?0:j}px`,left:`${R?j:0}px`,width:R?1:"100%",height:R?"100%":1,background:k},onDoubleClick:()=>E?.()}),g&&L?s.jsx("div",{style:{position:"absolute",cursor:"grab",zIndex:1,borderRadius:"4px",right:R?"-6px":"2px",bottom:R?"2px":"-9px",height:"24px",width:R?"24px":"18px",maxHeight:R?"calc(100% - 4px)":void 0,maxWidth:R?void 0:"calc(100% - 4px)",background:_.fill,border:`${x.edgeStrokeFill} solid 1px`,boxShadow:`0.5px 0.5px 0px 0px ${m.text.fill}`,display:"flex",alignItems:"center",justifyContent:"center"},onPointerDown:w,children:s.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(y.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:R?void 0:"rotate(90deg)"}})}):null]})})),Lz=(e,t)=>s.jsx(Az,{...e,ref:t}),zz=u.memo(u.forwardRef((e,t)=>{const{orientation:n,view:o,index:r,disabled:i=!1,disabledResize:a=!1,resizeThreshold:l=1,dividerRenderer:c=Lz,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g,onDividerAutoFit:m,onPointerDown:y,...x}=e,v=wt(y,[y]),b=wt(m,[m]),w=n===Hr;let E=w?o.getVisibleColumns():o.getVisibleRows(),C=null;E.length>0&&(w?C=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}),C=o.toClipBounds(C,Rr));const R=u.useRef(null),[_,L]=u.useState(null),T=(A,D)=>w?A.clientX-D.clientX:A.clientY-D.clientY,j=o.getLayout(),S=w?j.getColOffset(r+1):j.getRowOffset(r+1),k=Rs({processTouch:!0,onPointerDown:A=>{if(v?.(A),!i&&!a){const D=w?j.getColOffset(r):j.getRowOffset(r),F=S-D;R.current={isResizing:!1,startSize:F,index:r,view:o,orientation:n,onDividerMouseDown:d,onDividerResizeStart:p,onDividerResize:f,onDividerResizeEnd:h,onDividerMouseUp:g},L(R.current),d?.(r,F)}A.stopPropagation(),A.preventDefault()},onPointerUp:(A,D,F)=>{if(!R.current)return;R.current.isResizing&&R.current.onDividerResizeEnd?.(R.current.index,Math.max(0,R.current.startSize+T(A,F)),R.current.startSize);const B=R.current;R.current=null,L(R.current),B.onDividerMouseUp?.(B.index)},onPointerMoveOrWait:(A,D,F)=>{if(!R.current)return;const B=T(A,F);R.current.isResizing?R.current.onDividerResize?.(R.current.index,Math.max(0,R.current.startSize+B),R.current.startSize):Math.abs(B)>Math.max(1,l)&&(R.current={...R.current,isResizing:!0},L(R.current),R.current.onDividerResizeStart?.(R.current.index,Math.max(0,R.current.startSize+B))),A.stopPropagation(),A.preventDefault()}}),P=wt(()=>{b?.(r)},[r]);if(!C)return;const O=c({bounds:C,orientation:n,view:o,index:r,disabled:i,disabledResize:a,onAutoFit:P,onPointerDown:k,...x},t);if(!O)return;const{getPortalContainer:I}=Dw();let z=null;return _&&_.isResizing&&_.index===r&&(z=yo.createPortal(s.jsx("div",{style:{position:"absolute",cursor:w?Kw:Gw,left:0,top:0,width:"100%",height:"100%"}}),I(),"divider:"+r)),s.jsxs(s.Fragment,{children:[z,s.jsx("div",{className:Rl("header-divider-anchor"),style:{position:"absolute",pointerEvents:"auto",top:`${w?C.y:S}px`,left:`${w?S:C.x}px`,width:(w?0:C.width-1)+"px",height:(w?C.height-1:0)+"px",display:"flex"},tabIndex:-1,children:O})]})}));let Fz=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(`
192
- `);for(let l=0;l<i.length;l++){let c=document.createElement("span");r.appendChild(c),c.textContent=i[l]}i.length!==0&&i[i.length-1].length!==0||r.appendChild(document.createElement("br")),document.body.appendChild(r);let a=r.getBoundingClientRect();return r.remove(),{width:a.width,height:a.height,maxLineHeight:1.2*(t.paintableText?.fontSize||1056/72)}}};const Bz=Object.freeze({clean:Nz,dirty:void 0,editMode:!1});var Nz;u.memo(u.forwardRef((e,t)=>{const{editState:n=Bz,defaultTextStyle:o,onStartEdit:r,onChangeEdit:i,onSubmitEdit:a,onCancelEdit:l,onDoneEdit:c,containerBounds:d,setNaturalDimensions:p,onNavigate:f,textProperties:h,style:g,autoFocus:m,...y}=e,x=u.useRef(null),{width:v=0}=d??{},[b,w]=u.useState(()=>n);u.useEffect(()=>{w(n)},[n]);const E=h?.align||"left",C=h?.vAlign||"middle",R=h?.fill||"#040404",_=h?.wrap||"wrap",L=h?.fontFamily||"Calibri",T=h?.fontSize||11,j=h?.fontWeight||400,S=h?.fontStyle||"normal",k=b.dirty??b.clean??"";let P=2;const O=96*T/72,I=1.2*O;C==="right"&&(P+=1);const z=u.useMemo(()=>new Fz().naturalDimensions(k,{maxWidth:_==="wrap"?v-P:void 0,lineHeight:`${I}px`,paintableText:{fontStyle:S,wrap:_,letterSpacing:-.25}}),[k,_,P,O,L,j,S,p,v]),A=u.useCallback(()=>z.maxLineHeight?z.maxLineHeight+"px":"1.2",[z]),[D,F]=u.useState(A);u.useLayoutEffect(()=>{F(A())},[d,z]),u.useLayoutEffect(()=>{p?.({width:_==="wrap"?void 0:z.width+P,height:z.height})},[z,p]);const B=wt(i,[i]),M=wt(oe=>{if(b.dirty===oe)return;const ye={...b};ye.dirty=oe,x.current,w(ye),B?.(ye)},[b]),N=wt(oe=>{if(b.editMode===oe)return;const ye={...b};ye.editMode=oe,w(ye),B?.(ye)},[b]),V=wt(()=>{try{return a?.(b),c?.(),!0}catch{return!1}},[a,b]),U=wt(()=>{w(n),l?.(),c?.()},[l,n]),J=wt(oe=>{if(!x.current)return;if(oe.isDefaultPrevented(),!(oe.isTrusted||oe.nativeEvent.ctrlKey||oe.nativeEvent.metaKey||oe.nativeEvent.altKey||oe.nativeEvent.isComposing)&&hf.indexOf(oe.nativeEvent.key)!==-1){const de={...b};return de.dirty=oe.nativeEvent.key==="Backspace"?"":(de.dirty??"")+oe.key,w(de),B?.(de),void oe.preventDefault()}const ye=oe.nativeEvent.shiftKey;if(oe.which===27)return oe.preventDefault(),void U();if(oe.which===113)return N(!0),void oe.preventDefault();if(oe.which===13&&(oe.preventDefault(),V()&&f?.(ye?eo:to)),oe.which===9)return oe.preventDefault(),void(V()&&f?.(ye?Jn:Un));if(!b.editMode){let de=null;switch(oe.which){case 37:de=Jn;break;case 39:de=Un;break;case 38:de=eo;break;case 40:de=to}if(de)return void V()}},[b,f]),[X,H]=u.useState(!m);u.useEffect(()=>{H(!1)},[]);const ne=P2(t,()=>({startEdit(oe){let ye=oe?.initialSelection;if(!ye){const xe=x.current.value.length??0;ye={start:xe,end:xe,direction:"forward"}}x.current?.setSelectionRange(ye.start,ye.end,ye.direction);const de={...n,editMode:oe?.editMode??!1};oe?.text!==void 0&&(de.dirty=oe.text),de.editMode===n.editMode&&de.dirty===n.dirty||(w(de),B?.(de))},submitEdit:()=>V(),cancelEdit(){U()},autoFocus(){x.current?.focus()},getLineHeight:()=>z?.maxLineHeight??I,dispatchEvent:oe=>x.current.dispatchEvent(oe)}),[n,r]);return s.jsx("div",{ref:ne,...y,style:{background:"transparent",display:"flex",flexGrow:1,alignSelf:"center",height:z.height,maxWidth:"100%",maxHeight:"100%",...g},children:s.jsx("textarea",{spellCheck:"false",ref:x,value:k,autoFocus:!1,disabled:X,name:"cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",position:"relative",fontSize:`${O}px`,fontFamily:`${L}`,fontWeight:`${j}`,fontStyle:`${S}`,padding:"0px",marginRight:E==="right"?"3px":"0px",marginLeft:E==="left"?"2px":"0px",lineHeight:D,height:z.height,textRendering:"geometricPrecision",letterSpacing:"-0.25px",boxSizing:"border-box",borderWidth:0,outline:"none",resize:"none",overflow:"hidden",verticalAlign:"baseline",textAlign:E,background:"transparent",color:R,marginBottom:"0px",userSelect:"text",maxHeight:"100%",whiteSpace:_==="wrap"?"break-spaces":"pre",wordWrap:"break-word"},onChange:oe=>{M(oe.target.value)},onDoubleClick:oe=>{oe.isTrusted},onMouseDown:oe=>{N(!0)},onKeyDown:J})})})),u.memo(e=>{const{value:t,view:n,bounds:o,range:r,zoom:i,children:a,style:l,...c}=e;return s.jsx("div",{style:{padding:"2px 4px",fontFamily:"Calibri",letterSpacing:-.25,lineHeight:1.2,fontSize:l?.fontSize||1056/72,...l},...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 e1=(e=6e4)=>new Date(Math.floor(Date.now()/e)*e);Object.freeze(Object.defineProperty({__proto__:null,nowWithPrecision:e1},Symbol.toStringTag,{value:"Module"}));const Zw=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]),zh=(e,t=!0,n=Zw)=>{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=Xt.findEqualOrGreater(n,e);return t?(n[o]===e&&(o+=1),n[o]||(o-=1),n[o]):(o-=1,n[o])},$z=Object.freeze(Object.defineProperty({__proto__:null,DefaultFontSizes:Zw,findNextFontSize:zh},Symbol.toStringTag,{value:"Module"})),J9=u.memo(e=>{const{anchorLocation:t=zo.TopLeft,cellWidth:n,cellHeight:o,size:r=7,inset:i=1,darkMode:a,fill:l,pathProps:c,style:d,...p}=e,f=r,h=i;let g="red",m=[],y=[];return t===zo.TopLeft?(g=a?"rgb(255, 198, 246)":"green",m.push(h),y.push(h),m.push(h+f),y.push(h),m.push(h),y.push(h+f)):t===zo.TopRight?(g=a?"rgb(0, 255, 255)":"red",m.push(n-h),y.push(h),m.push(n-(h+f)),y.push(h),m.push(n-h),y.push(h+f)):t===zo.BottomRight?(g=a?"rgb(236, 252, 211)":"purple",m.push(n-h),y.push(o-h),m.push(n-(h+f)),y.push(o-h),m.push(n-h),y.push(o-(h+f))):t===zo.BottomLeft&&(g=a?"rgb(255, 236, 183)":"blue",m.push(h),y.push(o-h),m.push(h+f),y.push(o-h),m.push(h),y.push(o-(h+f))),s.jsx("svg",{width:`${n}`,height:`${o}`,viewBox:`0 0 ${n} ${o}`,style:{position:"absolute",width:`${n}px`,height:`${o}px`,pointerEvents:"none",...d},...p,children:s.jsx("path",{d:`M ${m[0]} ${y[0]} L ${m[1]} ${y[1]} L ${m[2]} ${y[2]} L ${m[0]} ${y[0]} Z`,fill:l??g,...c})})}),Vz=e=>{const{renderBounds:t,darkMode:n,zoom:o,disabled:r,filter:i,onFilterButtonMouseDown:a,style:l,...c}=e,d=u.useMemo(()=>{let g=null;const m=i.getSortField();m&&(g=m.reverse);const y=i.getField(),x=y&&y.criteria&&y.criteria.length>0;return g===!0?x?"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?x?"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":x?"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]=u.useState(!1),h=Math.min(Math.min(18,t.height-8),t.width);return s.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",...l},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),onMouseDown:g=>{a?.(g,i)},...c,children:s.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:s.jsx("path",{d})})})},Hz=e=>{const{value:t,coords:n,bounds:o,children:r,style:i,range:a,zoom:l=1,view:c,bodyStyle:d,normalStyle:p,showFormulas:f,showZeros:h,docTheme:g,onLinkMouseDown:m,onFilterButtonMouseDown:y,filterButtonProps:x,createFilterButton:v=Vz,...b}=e,w=o.height/l,E=o.width/l,C=t,R=C.getValue(),_=t.getStyle(),L=d?.darkMode??!1;let T,j;const S=R&&R.isFormulaError,k=S&&R instanceof $.FormulaError.Parse;let P,O=f||k;if(O)if(C.isSpillOverflow())j="";else{const Qe=C.getFormulaText();Qe?j=Qe:T=C.getNumberFormat($.NumberFormat.Type.General)}else T=C.getNumberFormat();O||(P=C.getTextOverflow());const I=P?P.colBounds.width+P.leftOffset+P.rightOffset:E,z=P?P.anchorBounds.x-P.leftOffset:0,A=P?P.anchorBounds.width:E,D=P?P.anchorBounds.x:0;let F,B=C.getRenderHorizontalAlignment();T&&(F=T?.formattedRuns,j=F?.runs[0]?.text??T.displayText);const M=C.getCalcStatus()===$.ICell.CalcStatus.Pending;let N=null,V=_.getFill().toCSS(L,o),U=0,J=0;if(!_.getBorder().isEmpty()){const Qe=_.getBorder().getRight();!Qe.isNone()&&$.IBorder.BuiltInDefinitions.get(Qe.getStyle()).width>1&&(U=1);const he=_.getBorder().getBottom();!he.isNone()&&$.IBorder.BuiltInDefinitions.get(he.getStyle()).width>1&&(J=1)}let X=null;if(E!==A||U||J||typeof V?.backgroundPosition=="number"){const{backgroundPosition:Qe,...he}=V,Ye=Qe??0,ke=c?.getScrollTopLeft(),Ie=Ye?-(o.x+(ke.left??0))%Ye:0,ue=Ye?-(o.y+(ke.top??0))%Ye:0;(Qe!==void 0||U||J||E!==A)&&(Object.keys(he).length===1&&he.background==="none"||(V=null,X=s.jsx("div",{className:"fill",style:{marginLeft:`${Ie}px`,marginTop:`${ue}px`,left:D*l,width:_n.boundPixel(A*l-Ie+1+U),height:_n.boundPixel(o.height-ue+1+J),...he}},"background")))}let H=null;const ne=C.getComments(),oe=C.getWarnings(),ye=C.getErrors();if(ne||S||ye.length>0||oe.length>0){const Qe={size:7*l,darkMode:L,cellWidth:A*l+2,cellHeight:w*l+2,style:{top:-1,left:D*l-1}};H=H??[],(oe.length>0||ye.length>0||S)&&H.push(s.jsx(J9,{anchorLocation:zo.TopLeft,...Qe},`indicator-${H.length}`)),ne&&H.push(s.jsx(J9,{anchorLocation:zo.TopRight,...Qe},`indicator-${H.length}`))}const de=_.getFont();let xe=T?.conditionalColor;const we=_.getAlignment(),ve=we.getHorizontal()===$.ITextFrame.HorizontalAlignment.Fill,re=we.getHorizontal()===$.ITextFrame.HorizontalAlignment.CenterContinuous||ve,ce=re||O?0:we.getRotation(),Se=C.getInsets(),ie=Se.top+Se.bottom;let Y=Se.left,le=Se.right;const ee={...i,left:i.left-1,top:i.top-1,width:i.width+1+U,height:i.height+1+J},Pe=C.getColumnFilter(),Te=Pe&&!Pe?.hasHiddenButton();let rt=null;M&&(rt=s.jsxs("div",{className:"slider",children:[s.jsx("div",{className:"line"}),s.jsx("div",{className:"subline inc"})]},"pending"));const Ve=!(M||Te||X||r||H||F?.runs.length>1||P||ce%360!=0);V?.background==="none"&&(V=null);let Ee=re||!(!P||!(P.rightIndex>0||P.leftIndex>0||P.colSpan>1));if(!Ee){const Qe=C.getSpans();(Qe.width>1||Qe.height>1)&&(Ee=!0)}const Re={...V,...ee,pointerEvents:m?"auto":void 0};if(!Xt.isEmpty(j)||!Xt.isEmpty(T?.repeatPlaceholder)){const Qe=T?.canWrap??!1;let he=null,Ye=null,ke=null,Ie=[],ue=!0;h||O||R!==0||(ue=!1);const De=C.getTextFrame(O);if(ue&&De){let Ae=I-1-(Y+le);if(ce){he=De.layout().bounds;const fe={x:0,y:0,width:I-1,height:w};if(F){let je=F.width;if(T.repeatPlaceholder||T.repeatChars.length>0){const Fe=$.GeomUtils.boundsToPoints(fe),Ge=$.GeomUtils.rotatePoints(Fe,-ce);je=$.GeomUtils.minBoundingRect(Ge).width}he={...he,width:je}}ke=$.GeomUtils.clipToOuterRect({...he,width:he.width+1+Y+le},fe,ce),Ae=ke.width-1-(Y+le)+.01}let W=null;Qe&&(W={width:Ae});let Q=null,K=T?.repeatPlaceholder;const se=De.layout(W);if(he=se.bounds,O?he={...he,width:0}:F&&(he={...he,width:T.repeatPlaceholder||T.repeatChars.length>0?Ae:F.width}),ce&&Qe){let fe=null;se.visitLines({visitTextLine:(je,Fe)=>{let Ge=je.bounds;const et=$.GeomUtils.boundsToPoints(Ge),tt=$.GeomUtils.rotatePoints(et,ce),it=$.GeomUtils.minBoundingRect(tt);Ge={...Ge,x:(it.width-Ge.width)/2,y:(it.height-Ge.height)/2},fe=fe?$.GeomUtils.unionBounds(fe,Ge):Ge}}),he={...fe,width:fe.width+Y+le}}if(!K&&C.getType()!==$.ScalarType.String&&Math.floor(he.width)>Ae){if(_.getNumberFormat()==="General"&&C.getType()===$.ScalarType.Number){const fe=_.measureText("0"),je=Math.floor(Ae/fe.width),Fe=R,Ge=Xt.splitNumber(Fe),et=Math.min(10,je-(Math.max(1,Ge.ipLength)+1)-(Fe<0?1:0));if(et>=-1){const tt=`0${et>0?".":""}${"#".repeat(Math.max(0,et))}`;Q=C.getNumberFormat(tt).displayText,Q==="0"&&Fe<0&&(Q="-0")}else if(Math.abs(Fe)>=Math.pow(10,5)||Math.abs(Fe)<=Math.pow(10,-5)){const tt=je-5-(Fe<0?1:0);if(tt>=0){const it=`0.${"0".repeat(Math.max(0,tt-1))}E+00`;Q=C.getNumberFormat(it).displayText}}}Q||(K="#")}if(!K&&F?.lastRepeatIndex>=0&&F?.width>Ae&&(K="#"),K&&Ae>0){const fe=_.measureText(K),je=Math.floor((Ae||1)/(fe?.width||1));Q=je>0?K.repeat(je):""}if(O&&(B=$.ITextFrame.HorizontalAlignment.Left),Q){const fe=_.measureText(Q).width;fe&&(he={...he,width:fe})}if(Ye={...he,width:he.width+Y+le,height:he.height},ce&&!Qe){const fe=$.GeomUtils.boundsToPoints(Ye),je=$.GeomUtils.rotatePoints(fe,ce),Fe=$.GeomUtils.minBoundingRect(je);Ye.width=Fe.width,Ye.height=Fe.height}B===$.ITextFrame.HorizontalAlignment.Center||B===$.ITextFrame.HorizontalAlignment.CenterContinuous?Ye.x=(I-Ye.width)/2:B===$.ITextFrame.HorizontalAlignment.Right?Ye.x=I-Ye.width-.5:Ye.x=.5,we.getVertical()===$.ITextFrame.VerticalAlignment.Center?Ye.y=(w-Ye.height)/2:we.getVertical()===$.ITextFrame.VerticalAlignment.Bottom?Ye.y=w-Ye.height-ie:Ye.y=ie;const te=Ve?{...b}:void 0,ae={style:{left:i.left-1,top:i.top-1,width:i.width+1,height:i.height+1,transform:ce?`rotate(${ce}deg)`:void 0,cursor:m?"pointer":void 0,pointerEvents:m?"auto":void 0,zIndex:Ee?1:void 0,...V},onMouseDown:m,onDoubleClick:m?fe=>{fe.stopPropagation(),fe.preventDefault()}:null,...te};k&&(ae.style.textDecorationStyle="wavy",ae.style.textDecorationColor=L?"rgb(0, 255, 255)":"red",ae.style.textDecorationLine="underline");const pe=de.getSize(),me=(fe,je,Fe,Ge,et,tt,it,At=null)=>{let Lt=pe*l,_t=Fe,$t=it?.runs?it.runs:[{type:$.NumberFormat.ParseRunType.Text,text:fe,width:_.measureText(fe,Lt).width}];it&&it?.width!==he.width&&(he={...he,width:it?.width});let nn=Y;if(it?.lastRepeatIndex>=0&&Ae>it?.width){const En=it.runs[it.lastRepeatIndex];if(En){const kt=[...$t],on=Math.max(0,Ae-1-it.width);let mn=0,Ln="";if(on>0){const Nn=Math.floor(on/En.width);Ln=Nn>0?En.text.repeat(Nn):"",mn=on}kt[it.lastRepeatIndex]={type:$.NumberFormat.ParseRunType.Repeat,text:Ln,width:mn},$t=kt,he={...he,width:it.width+mn}}}const Zt=(En,kt,on,mn,Ln,Nn,hn,fo,bo,Fo=null)=>{let tr,_r=_t.width;et===$.ITextFrame.HorizontalAlignment.Justify?(_r=Ln,tt||(tr="justify")):et===$.ITextFrame.HorizontalAlignment.Distributed&&(_r=Ln,tr=tt||En.text.split(" ").length-1==0?"center":"justify");const{style:jr,className:ui,...Ki}=Fo;let pi=En.text;if(et===$.ITextFrame.HorizontalAlignment.Fill&&T?.repeatChars.length===0){const Rt=Math.max(1,Math.floor((_t?.width??0)/(hn?.width??1)));pi=pi.repeat(Rt)}let pr=_t.height;const nt=de.getVerticalAlignment(),ft=nt===$.IFont.VerticalAlignment.Sub,gt=nt===$.IFont.VerticalAlignment.Super;if(ft||gt){const Rt=de.getSuperSubScale();Lt*=Rt,pr*=Rt}const ut={textAlign:tr,textAlignLast:tr,background:void 0,...jr,...de.toCSS(L,l,!0),fontSize:Lt*$.IFont.getDeviceScale()};xe&&(ut.color=xe.toCSS(L));const vt=nn+kt;let jt=Se.top+_t.y+0;if(ft&&(jt+=bo-Lt),Nn){const Rt=(hn.x+vt)*l+1,zt=(hn.y+jt)*l+1;zt<0?ut.marginTop=zt:ut.paddingTop=zt,Rt<0?(ut.width=(jr?.width??0)-Rt,ut.left=(jr?.left??0)+Rt):ut.paddingLeft=Rt,ut.paddingRight=Math.max(0,(jr?.width??0)-_r*l-Rt),ut.paddingBottom=Math.max(0,(jr?.height??0)-_t.height*l-zt),ut.height=(jr?.height??0)+(zt<0?-zt:0),(zt<0||Rt<0)&&(ut.clipPath=`inset(${zt<0?-zt:0}px 0px 0px ${Rt<0?1-Rt:0}px)`)}else if(ut.left=(hn.x+vt)*l+1,ut.top=(hn.y+jt)*l+1,ut.width=hn.width*l,ut.height=hn.height*l,ce&&!Qe){ut.left=(hn.x+kt)*l+1,ut.top=(hn.y+(_t.y+0))*l+1;const Rt=$.GeomUtils.centerPoint({x:nn+kt,y:0,width:En.width,height:_t.height}),zt=$.GeomUtils.centerPoint({x:nn,y:0,width:Ln,height:_t.height}),Dt=$.GeomUtils.rotatePoints([Rt],ce,zt),gn={x:Dt[0].x-Rt.x,y:Dt[0].y-Rt.y};ut.left=ut.left+gn.x*l,ut.top=ut.top+gn.y*l;const zn={..._t,x:nn,y:Se.top,width:_t.width+(Y+le)},wn=$.GeomUtils.boundsToPoints(zn),Ne=$.GeomUtils.rotatePoints(wn,ce),yt=$.GeomUtils.minBoundingRect(Ne);zn.width=yt.width,zn.height=yt.height;const Wt=$.GeomUtils.centerPoint(zn),en={x:Wt.x-zt.x,y:Wt.y-zt.y};ut.left=ut.left+en.x*l,ut.top=ut.top+en.y*l}ut.lineHeight=pr*l+"px";const Pt=Ve?void 0:"text-line";Ie.push(s.jsx("div",{className:ui?`${ui} ${Pt}`:Pt,style:ut,...Ki,children:pi},`text-${_t.y}-${mn}-${on}`))};if(we.getOverflow()===$.ITextFrame.Overflow.Shrink&&Ae>0){let En=he?.width??0,kt=0;for(;En>1&&En>Ae&&Lt>2&&kt<100;)Lt*=Ae/En,En=_.measureText(fe,Lt).width,kt++;he={...he,width:En}}let Tn=_t.x;et===$.ITextFrame.HorizontalAlignment.Right?Tn+=he.width-_t.width:et!==$.ITextFrame.HorizontalAlignment.Center&&et!==$.ITextFrame.HorizontalAlignment.CenterContinuous||(Tn+=(he.width-_t.width)/2),it?.lastRepeatIndex>=0&&(Tn=_t.x);const pn=$t.length;for(let En=0;En<pn;En++){const kt=$t[En];(kt.type===$.NumberFormat.ParseRunType.Text||kt.type===$.NumberFormat.ParseRunType.Repeat)&&(kt.type,$.NumberFormat.ParseRunType.Repeat,Zt(kt,Tn,En,je,et===$.ITextFrame.HorizontalAlignment.Justify||et===$.ITextFrame.HorizontalAlignment.Distributed||it?.lastRepeatIndex>=0?Ae:_t.width,Ve,{x:Ye.x+z,y:Ye.y,width:kt.width,height:he.height},0,Ge,At)),Tn+=kt.width}};Q?me(Q,0,{x:0,y:0,...he},se.lines[0].baseline,B,!0,null,ae):se.visitLines({visitTextLine:(fe,je,Fe)=>{const Ge=fe.runs[0].text.replace(/\s+$/,""),et=je===Fe-1;let tt=B===$.ITextFrame.HorizontalAlignment.Justify&&(et||fe.runs[0].text.endsWith(`
193
- `))?$.ITextFrame.HorizontalAlignment.Left:B,it=0;je>0&&(we.getVertical()===$.ITextFrame.VerticalAlignment.Distributed||we.getVertical()===$.ITextFrame.VerticalAlignment.Justify)&&(it=Math.max(0,(w-(ie+3)-fe.bounds.height*Fe)/(Fe-1)*je)),we.getVertical()===$.ITextFrame.VerticalAlignment.Distributed&&ce&&ce%90==0&&ce%180!=0&&(tt=$.ITextFrame.HorizontalAlignment.Distributed),tt!==$.ITextFrame.HorizontalAlignment.Justify&&tt!==$.ITextFrame.HorizontalAlignment.Distributed&&tt!==$.ITextFrame.HorizontalAlignment.Fill||(he={...he,width:Ae});const At={...fe.bounds,y:fe.bounds.y+it+0,width:ve||T&&(T.repeatChars.length>0||T.spacingChars.length>0)?he.width:fe.bounds.width};me(Ge,je,At,De.lines[0].baseline,tt,et,Fe===1?F:null,Ve&&je>0?{...ae,style:{...ae.style,background:void 0}}:ae)}})}Ie.length>0&&(N=Ie)}if(Ve)return N&&N.length>0?N:s.jsx("div",{style:Re,...b});let Xe=m?"auto":ee.pointerEvents,Be=null;if(Te){const Qe={x:D*l-1,y:-1,width:A*l+1,height:w*l+1};Xe="auto",Be=v({renderBounds:Qe,darkMode:L,className:"filter-button",disabled:!C.isEditAllowed(),zoom:l,filter:C.getColumnFilter(),onFilterButtonMouseDown:y,...x}),Be&&(Be=s.jsx("div",{style:{...Qe,position:"absolute",zIndex:2,display:"flex",alignItems:"end"},onDoubleClick:he=>{he.stopPropagation(),he.preventDefault()},children:Be},"filterButton"))}M&&!N&&(N=s.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 ct=[X,N,r,H,rt,Be];return s.jsx("div",{style:{...V,...ee,pointerEvents:Xe},...b,children:ct})},Q9={text:"",placeholder:""},eg=(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)))},Wz=Object.freeze([tn.Delete,tn.Home,tn.End]),Xw=u.memo(u.forwardRef((e,t)=>{const{editState:n,onStartEdit:o,onChangeEdit:r,onSubmitEdit:i,onCancelEdit:a,onDoneEdit:l,defaultTextStyle:c,useRichStyling:d=!0,bodyStyle:p,activeCoords:f,sheet:h,commands:g,containerBounds:m,setNaturalDimensions:y,onFocus:x,disabled:v,style:b,zoom:w=1,linesVisible:E,autoFocus:C=!1,...R}=e,{height:_=0,width:L=0}=m??{},T=p?.darkMode??!1,j=u.useRef(null),[S,k]=u.useState(!1),[P,O]=u.useState(null),[I,z]=u.useState(()=>n);u.useEffect(()=>{J.current=!1,z(n)},[n]);const A=u.useMemo(()=>{const he=I.clean();let Ye=he.getStyle();d||(Ye=Ye.createTemporaryStyle({font:{size:c?.fontSize}}));const ke=he.getFormula(),Ie=Ye.getAlignment(),ue=ke?$.ITextFrame.HorizontalAlignment.Left:Ie.getHorizontal(),De=Ie.getVertical(),Ae=Ie.getOverflow()===$.ITextFrame.Overflow.Wrap||he.getType()===$.ScalarType.String&&(ue===$.ITextFrame.HorizontalAlignment.Justify||ue===$.ITextFrame.HorizontalAlignment.Distributed||De===$.ITextFrame.VerticalAlignment.Justify||De===$.ITextFrame.VerticalAlignment.Distributed),W=(se=>{if(!se)return Q9;const te=se.clean();if(!te)return Q9;let ae=te.getStyle()?.getQuotePrefix();if(se.dirty===void 0||se.dirty===null){let pe="",me=te.getFormulaText();me&&(pe=me,ae=!1),pe||(pe=te.toTextUnformatted(!0)??"");let fe="";if(!se.editMode&&te.isSpillOverflow()){const je=te.getSpill();if(je){const Fe=je.getCell(),Ge=Fe.getFormulaText();Fe.isEqual(te)||(fe=Ge)}}return ae&&(pe="'"+pe),{text:pe,placeholder:fe}}return{text:se.dirty??"",placeholder:""}})(I),Q=W.text,K=$.ITextFrame.toCSSHorizontalTextAlign(d&&!ke?I.clean()?.getRenderHorizontalAlignment():$.ITextFrame.HorizontalAlignment.Left);return{style:Ye,isWrapped:Ae,textValue:Q,formula:ke,frameVertAlign:De,placeholder:W.placeholder,insets:d?he.getInsets():Fc.EmptyRect,textAlign:K}},[I,c,T,w,d]),D=u.useRef(null),F=ir(t,()=>({startEdit:he=>{j.current=he?.initialSelection;const Ye={...n,editMode:he?.editMode??!1};he?.text!==void 0&&(Ye.dirty=he.text),Ye.editMode===n.editMode&&Ye.dirty===n.dirty||(z(Ye),N?.(Ye))},submitEdit:()=>X(),cancelEdit(){H()},autoFocus(){D.current.focus()},dispatchEvent:he=>D.current.dispatchEvent(he),focus(){D.current.focus()},getLineHeight:M}),[o,n]);u.useLayoutEffect(()=>{if(!P||!S)return;const he=D.current;A.textValue,he&&he.setSelectionRange(P.start,P.end,P.direction)},[D.current,P,A.textValue]);const B=u.useMemo(()=>{const he=I?.clean(),Ye=A.style.createTemporaryTextFrame(A.textValue,he?.getType()===$.ScalarType.String),ke=d?he.getInsets().right+he.getInsets().left:0;let Ie=null;return A.isWrapped&&(Ie={width:L-ke}),Ye.layout(Ie)},[A,L,I,d]),M=_e(()=>Math.ceil(B?.lines[0]?.bounds.height),[B]);u.useLayoutEffect(()=>{if(!B)return;const he=A.style,Ye=he.getInsets()??Fc.EmptyRect,ke=d?Ye.left+Ye.right:0,Ie=d?.04*he.getFont().getSize():1,ue=Math.round(A.isWrapped?void 0:B.bounds.width+ke+Ie),De=Math.round(B.bounds.height);y?.({width:ue,height:De})},[B,y,A,d,I]);const N=_e(r,[r]),V=_e(he=>{if(I.dirty===he)return;const Ye={...I};Ye.dirty=he,D.current,z(Ye),N?.(Ye)},[I]),U=_e(he=>{if(I.editMode===he)return;const Ye={...I};Ye.editMode=he,z(Ye),N?.(Ye)},[I]),J=u.useRef(!1),X=_e(()=>{if(J.current)return!1;try{i?.(I),l?.(),J.current=!0}catch{return!1}return!0},[i,I]),H=_e(()=>{J.current=!0,z(n),a?.(),l?.()},[a,n]),ne=_e(he=>{if(!D.current)return;if(he.key,he.isDefaultPrevented(),!(he.isTrusted||he.nativeEvent.ctrlKey||he.nativeEvent.metaKey||he.nativeEvent.altKey||he.nativeEvent.isComposing||hf.indexOf(he.nativeEvent.key)===-1&&he.nativeEvent.key!=="Backspace")){const W={...I};let Q=0;return eg(W,W.dirty)&&!isNaN(parseFloat(he.key))?(W.dirty?.endsWith("%")?W.dirty=(W.dirty.substring(0,W.dirty.length-1)??"")+he.key+"%":W.dirty=(W.dirty??"")+he.key+"%",Q=W.dirty.length-1):he.nativeEvent.key==="Backspace"?(W.dirty="",Q=W.dirty.length):(W.dirty=(W.dirty??"")+he.key,Q=W.dirty.length),D.current.value=W?.dirty,j.current={start:Q,end:Q,direction:"forward"},D.current?.setSelectionRange(Q,Q,"forward"),z(W),N?.(W),void he.preventDefault()}const Ye=he.nativeEvent.ctrlKey,ke=he.nativeEvent.shiftKey,Ie=he.nativeEvent.altKey,ue=he.nativeEvent.metaKey;if(Ye&&he.key==="z"&&he.stopPropagation(),he.which===tn.Escape)return he.preventDefault(),void H();if(he.which===tn.F2)return U(!0),void he.preventDefault();const De=he.target;if(he.key==="%"&&De.selectionStart===De.selectionEnd&&De.value[De.selectionStart]==="%"&&I?.clean().getStyle().numberFormat.includes("%"))return O({start:De.selectionStart+1,end:De.selectionEnd+1,direction:De.selectionDirection}),void he.preventDefault();if(he.which===tn.Enter){if(he.preventDefault(),ue||Ie){const W=A.textValue.substring(0,De.selectionStart)+`
194
- `+A.textValue.substring(De.selectionEnd);return V(W),void O({start:De.selectionStart+1,end:De.selectionStart+1,direction:De.selectionDirection})}return void(X()&&h.getSelection().traverse($.IRange.Orientation.Column,ke))}if(he.which===tn.Tab)return he.preventDefault(),void(X()&&h.getSelection().traverse($.IRange.Orientation.Row,ke));let Ae=null;switch(he.which){case tn.Left:Ae=$.IRange.Direction.Left;break;case tn.Right:Ae=$.IRange.Direction.Right;break;case tn.Up:Ae=$.IRange.Direction.Up;break;case tn.Down:Ae=$.IRange.Direction.Down}!Ae||Ye||ke||Ie||ue||I.editMode?I.editMode&&(Ae||Wz.includes(he.which))&&he.stopPropagation():X()},[I,h,A]),oe=u.useCallback(()=>{D.current?.focus(),setTimeout(()=>{D.current?.select()},0)},[]),ye=u.useCallback(()=>{D.current?.focus(),console.log("implement toggleRelativeReferences")},[]),de=_e(()=>{const he=D.current?.value;let Ye="";if(f.rowIndex>0){const ke=h.getRange({rowIndex:f.rowIndex-1,colIndex:f.colIndex}).getCell();ke&&(Ye=ke.toTextUnformatted(!0))}V(he+Ye)},[f,h]);u.useEffect(()=>h.getRange(f).addListener(()=>{const he={...I,clean:()=>h.getRange(f).getCell()};z(he),N?.(he)}),[f,h]);const xe=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:e1(),style:{numberFormat:"Medium Time"}}).toText();V((D.current?.value??"")+he)},[h]),we=u.useCallback(()=>{const he=I.clean().createTemporaryCell({value:e1(),style:{numberFormat:"Short Date"}}).toText();V((D.current?.value??"")+he)},[h]),ve=u.useMemo(()=>({element:()=>D.current,doCopy:he=>{const Ye=D.current.value.substring(D.current.selectionStart,D.current.selectionEnd);if(he?.isCut){const ke=D.current.value.substring(0,D.current.selectionStart)+D.current.value.substring(D.current.selectionEnd,D.current.value.length);V(ke)}return Ye}}),[D.current]),re=u.useMemo(()=>({element:()=>D.current,doPaste:async(he,Ye)=>{const ke=await he.toText?.();if(!ke)return!0;const Ie=D.current.value.substring(0,D.current.selectionStart)+ke+D.current.value.substring(D.current.selectionEnd,D.current.value.length);return V(Ie),O({start:D.current.selectionStart+ke.length,end:D.current.selectionStart+ke.length,direction:"forward"}),!0}}),[D.current]),ce=u.useMemo(()=>({contains:he=>D.current?.contains(he)||!1,focus(){D.current.focus()}}),[]),Se=u.useMemo(()=>[new Tt("selectAll",ce,{label:"Select All",description:"Select all of the text in cell.",shortcut:{key:"a",modifiers:[$e.Ctrl]}},oe),new Tt("startEditValueAbove",ce,{label:"Copy From Above",description:"Copy the value from the cell above the active cell into the cell or the formula bar.",shortcut:[{key:'"',modifiers:[$e.Ctrl]},{key:'"',modifiers:[$e.Ctrl,$e.Shift]}]},de),new Tt("startEditCurrentTime",ce,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},xe),new Tt("startEditCurrentDate",ce,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},we),new He("relativeReferencesToggle",ce,{label:"Toggle References",description:"Toggles cell references from relative to absolute, to partially absolute, back to relative again.",shortcut:{key:"F4"}},ye),new He("toggleEditorFocus",ce,{label:"Toggle Editor Focus",description:"Moves focus between editors such as formula editor and inline editor.",shortcut:{key:"F2",modifiers:[$e.Ctrl]}})],[]),ie=u.useMemo(()=>{let he=null;const Ye=()=>({contains:ke=>D.current?.contains(ke)||!1,focus(){D.current.focus()}});return he=g?g.createChildGroup(Ye,"editor",!1):new r0(Ye,"editor"),he.addCommands(Se,!0),he},[g,Se]),Y=u.useMemo(()=>({notifier:null,source:ve,target:re,commands:ie}),[ve,re,ie]);fb(Y);const[le,ee]=u.useState(!C);u.useEffect(()=>{ee(!1)},[]);const Pe=_e(he=>{k(!0),ie?.activate();const Ye=j.current;if(Ye!==!1){let ke,Ie;const ue=D.current.value;eg(I,ue)&&(ke=ue.length-1,Ie=ue.length-1),ke=Ye?.start??ke??ue.length,Ie=Ye?.end??Ie??ue.length,j.current=!1,O({start:ke,end:Ie,direction:"forward"})}x?.(he)},[x,I]),Te=A.insets;let rt=Te.left+1;const Ve=Te.left+Te.right+2-1,Ee=B?.bounds.height??0;let Re,Xe=Te.top;A.frameVertAlign===$.ITextFrame.VerticalAlignment.Center?Xe=Math.max(0,(_-(Te.top+Te.bottom)-Ee)/2):A.frameVertAlign===$.ITextFrame.VerticalAlignment.Bottom&&(Xe=Math.max(0,_-(Te.top+Te.bottom)-Ee)),E!==void 0&&B?.lines[0]?.bounds&&(Re=B?.lines[0]?.bounds.height*E);const Be=A.style.getFont();let ct=Be.getSize();Be.isSuperSub()&&(ct*=Be.getSuperSubScale()),ct*=$.IFont.getDeviceScale()*w;const Qe=d?Be.toCSS(T,w):null;return s.jsx("div",{className:"sheet-cell-editor",onMouseDown:he=>{D.current&&document.activeElement!==D.current&&requestAnimationFrame(()=>{D.current.focus()})},ref:F,...R,style:{display:"flex",flexGrow:1,alignSelf:"stretch",height:"100%",width:"100%",maxWidth:"100%",maxHeight:"100%",cursor:"initial",...b},children:s.jsx("div",{className:"editor-placement",style:{display:"flex",flexGrow:1,position:"relative",top:Xe*w+1,left:rt*w,width:`calc(100% - ${Ve*w}px)`,maxWidth:`calc(100% - ${Ve*w}px)`,height:(Re??Ee)*w,maxHeight:(Re??Ee)*w},children:s.jsx("textarea",{spellCheck:"false",placeholder:A.placeholder,ref:D,value:A.textValue,disabled:le,readOnly:v,name:"sheet-cell-editor",autoComplete:"off",autoCapitalize:"off",style:{flex:"1 1 100%",font:"inherit",...Qe,fontSize:ct?`${ct}px`:"inherit",textAlign:A.textAlign,lineHeight:(B?.lines[0]?.bounds.height??0)*w+"px",height:(B?.bounds.height??0)*w,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:A.isWrapped?"normal":"pre",wordWrap:"break-word"},onFocus:Pe,onBlur:()=>{k(!1)},onSelect:he=>{},onChange:he=>{D.current&&!J.current&&(j.current=!1,V(he.target.value),A.textValue,he.target.value,he.target.selectionStart,he.target.selectionEnd,he.target.selectionDirection,O({start:he.target.selectionStart,end:he.target.selectionEnd,direction:he.target.selectionDirection}))},onMouseDown:he=>{S&&U(!0)},onKeyDown:ne})})})})),Yw=(e,t)=>({clean:e,dirty:t,editMode:!1}),Jw=e=>{const{length:t=0,width:n=1,dashArray:o=null,dashArrayAdditional:r=null,isDouble:i=!1,isAngled:a=!1,offsetX:l=0,offsetY:c=0,isVertical:d=!1,...p}=e,f=b=>{let w=null;if(b&&n>0){w="";for(let E=0;E<b.length;E++)w+=b[E],E<b.length-1&&(w+=",")}return w},h=f(o);let g=h;r&&(g=f(r));let m=n,y=t,x=null;if(i){m=Math.floor(n/2);const b=m+m/2+1;let w=null;w=d?`M ${_n.boundPixel(l+b)} ${_n.boundPixel(c)} L ${_n.boundPixel(l+b)} ${_n.boundPixel(c+y)}`:`M ${_n.boundPixel(l)} ${_n.boundPixel(c+b)} L ${_n.boundPixel(l+y)} ${_n.boundPixel(c+b)}`,x=s.jsx("path",{strokeWidth:m,strokeDasharray:g,d:w,...p})}if(a){m=n/2;const b=m+m/2;let w=g,E=null;E=d?`M ${_n.boundPixel(l+b)} ${_n.boundPixel(c)} L ${_n.boundPixel(l+b)} ${_n.boundPixel(c+y)}`:`M ${_n.boundPixel(l)} ${_n.boundPixel(c+b)} L ${_n.boundPixel(l+y)} ${_n.boundPixel(c+b)}`,x=s.jsx("path",{strokeWidth:m,strokeDasharray:w,strokeDashoffset:"1",shapeRendering:"crispEdges",d:E,...p})}let v=null;return v=d?`M ${_n.boundPixel(l+m/2)} ${_n.boundPixel(c)} L ${_n.boundPixel(l+m/2)} ${_n.boundPixel(c+y)}`:`M ${_n.boundPixel(l)} ${_n.boundPixel(c+m/2)} L ${_n.boundPixel(l+y)} ${_n.boundPixel(c+m/2)}`,s.jsxs(s.Fragment,{children:[s.jsx("path",{strokeWidth:m,strokeDasharray:h,d:v,...p}),x]})};function t5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var s0=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=t5(o,t),i=typeof r=="function";n.push(i?r:()=>t5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)t5(n,t)}},Uz=function(){},Qw=typeof window<"u",sc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qz=Qw?u.useLayoutEffect:u.useEffect,tg={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const Hl=Qw&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(tg),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return qz(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[Uz,tg]},Kz=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,Gz=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Zz=e=>{const{key:t,points:n,range:o,stroke:r,darkMode:i,forceThinBorder:a=!1,shiftIfWide:l=!1,isVertical:c=!1,intersections:d,layout:p}=e,f=$.IBorder.BuiltInDefinitions.get(a?$.IBorder.StrokeStyle.Thin:r.getStyle());if(!f)return null;const h=n[0],g=n[1],m=n[2],y=n[3];let x=1+(c?y-g:m-h),v=0;const b=r.getColor().toRGBA(i).toString(),w=f.description.toLowerCase().includes("double");let E,C;const R=c?"rowStart":"colStart",_=c?"rowEnd":"colEnd",L=c?g:h;if(d?.length>0){const k=d[0];if(k?.range[R]===o[R]){const P=$.IBorder.BuiltInDefinitions.get(k.stroke.getStyle());v=Math.floor(P.width/2)}if(d[d.length-1]?.range[_]===o[_]){const P=$.IBorder.BuiltInDefinitions.get(d[d.length-1].stroke.getStyle());x=Math.floor(x+(P.width===2?0:P.width/2))}if(w){const P=c?"colStart":"rowStart",O=c?"colEnd":"rowEnd",I=c?p?.getRowOffset:p?.getColOffset;let z=0,A=0;E=[],C=[];for(let D=0;D<d.length;D++){const F=d[D];if(F.stroke.getStyle()===$.IBorder.StrokeStyle.Double&&I){const B=I(F.range[R])-(L-v);F.range[P]<o[P]&&(E.push(B-z),z=B,E.push(1),z++),F.range[O]>o[O]&&(C.push(B-A),A=B,C.push(1),A++)}}E.length>0&&z<x&&E.push(x-z),C.length>0&&A<x&&C.push(x-A)}}let T=c?-Math.floor(f.width/2):-v,j=c?-v:-Math.floor(f.width/2);const S=l&&f.width>2?-1:0;return s.jsx(Jw,{offsetX:h+T+S,offsetY:g+j+S,length:x+v,isVertical:c,stroke:b,width:f.width,dashArray:E??f.pattern,dashArrayAdditional:C,isDouble:w,isAngled:f.description.toLowerCase().includes("slant")},t)},eS=({getBorderAt:e,borderRenderer:t=Zz,getVisibleCells:n,darkMode:o,forceThinBorder:r=!1,defaultColor:i="black",shiftIfWide:a=!1})=>{const l=_e(n,[n]);return{overlay:u.useMemo(()=>c=>{const d=c.toClipBounds(c.getRangeCoordsBounds(),-3);if(!d)return;const p=l(c);if(p.length===0)return;const f=c.getVisibleColumnOffsets(),h=c.getVisibleRowOffsets();let g=[],m=[];const y=c.getVisibleColumns(),x=c.getVisibleRows(),v=[],b=[],w=[],E=(L,T,j,S,k,P,O)=>{const I={index:S,stroke:k,visibleIndex:j,edge:P,length:O};L[T]||(L[T]=[]),L[T].length>0&&L[T][L[T].length-1]?.index===S?L[T][L[T].length-1]=I:L[T].push(I)};for(let L=0;L<p.length;L++){const T=p[L],j=T.coords;if(!j)continue;const S=T?.range??{rowStart:j.rowIndex,colStart:j.colIndex,rowEnd:j.rowIndex,colEnd:j.colIndex},k=c.getVisibleRangeCoords();if(!Go.isRangesIntersect(S,k)&&!Go.isRangeWithinRange(S,k))continue;const P=j.colIndex,O=j.rowIndex,I=f[P],z=h[O];if(S.rowEnd!==S.rowStart){const H=h[S.rowStart]?.spanIndex??-1,ne=h[S.rowEnd]?.spanIndex??h[x[x.length-1]].spanIndex+1;g.push({...S,rowStart:H,rowEnd:ne})}if(S.colEnd!==S.colStart){const H=f[S.colStart]?.spanIndex??-1,ne=f[S.colEnd]?.spanIndex??f[y[y.length-1]].spanIndex+1;m.push({...S,colStart:H,colEnd:ne})}const A=T.value,D=e(A,L);if(!D||D.isEmpty())continue;const F=D.getLeft(),B=D.getTop(),M=D.getRight(),N=D.getBottom();let V=1,U=1;if(!I||!z)continue;const J=I.spanIndex,X=z.spanIndex;F.isNone()||E(v,J,X,O,F,$.IBorder.Edge.Left,V),B.isNone()||E(b,X,J,P,B,$.IBorder.Edge.Top,U),M.isNone()||E(v,J+U,X,O,M,$.IBorder.Edge.Right,V),N.isNone()||E(b,X+V,J,P,N,$.IBorder.Edge.Bottom,U)}const C=(L,T,j)=>{const S=[];return L.forEach((k,P)=>{let O=null;k.sort((I,z)=>I.visibleIndex-z.visibleIndex);for(let I=0;I<k.length;I++){const z=k[I];if(!z?.stroke||T[P]===void 0&&T[P-1]===void 0)continue;let A=!1;if(j)for(let M=0;!A&&M<g.length;M++){let N=g[M];N.colStart<=z.index&&N.colEnd>=z.index&&N.rowStart<P&&N.rowEnd>=P&&(A=!0)}else for(let M=0;!A&&M<m.length;M++){let N=m[M];N.rowStart<=z.index&&N.rowEnd>=z.index&&N.colStart<P&&N.colEnd>=P&&(A=!0)}if(A)continue;const D=z.stroke?.getColor(),F=D?D.toRGBA().toString():i,B=z.stroke.getStyle()+":"+F;(B!==O?.key||O&&O.visibleIndex+1<z.visibleIndex)&&(O&&S.push(O),O={key:B,index:T[P]??T[P-1]+1,visibleIndex:z.visibleIndex,edge:z.edge,stroke:z.stroke,from:z.index,to:z.index+z.length-1,intersections:[],length:1}),O.to=z.index+z.length-1,O.visibleIndex=z.visibleIndex}O&&S.push(O)}),S};g=g.sort(Gz),m=m.sort(Kz);const R=C(v,y,!1),_=C(b,x,!0);if(R.length===0&&_.length===0)return null;for(let L=0;L<_.length;L++){const T=_[L];let j=Xt.findEqualOrGreater(R,T.from,k=>k.index),S=!1;for(;!S;){const k=R[j++];k&&k.index>=T.from&&k.index<=T.to+1&&k.from<=T.index&&k.to+1>=T.index&&(T.intersections.push({stroke:k.stroke,range:{rowStart:k.from,rowEnd:k.to+1,colStart:k.index,colEnd:k.index}}),k.intersections.push({stroke:T.stroke,range:{rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1}})),S=!k||k.index>T.to+1}}for(let L=0;L<_.length;L++){const T=_[L];let j=T.stroke;const S=`rBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,k={rowStart:T.index,rowEnd:T.index,colStart:T.from,colEnd:T.to+1},P=c.getLayout(),O=!1,I=P.getColOffset(k.colStart),z=P.getRowOffset(k.rowStart),A=[I,z,P.getColOffset(k.colEnd),z];w.push(t({key:S,points:A,stroke:j,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:k,intersections:T.intersections,layout:P,isVertical:O}))}for(let L=0;L<R.length;L++){const T=R[L];let j=T.stroke;const S=`cBorder:${T.index}:${T.from}:${T.to}:${T.edge}`,k={rowStart:T.from,rowEnd:T.to+1,colStart:T.index,colEnd:T.index},P=c.getLayout(),O=!0,I=P.getColOffset(k.colStart),z=[I,P.getRowOffset(k.rowStart),I,P.getRowOffset(k.rowEnd)];w.push(t({key:S,stroke:j,points:z,darkMode:o,forceThinBorder:r,shiftIfWide:a,range:k,intersections:T.intersections,layout:P,isVertical:O}))}return s.jsx("svg",{width:`${d.width}`,height:`${d.height}`,viewBox:`0 0 ${d.width} ${d.height}`,preserveAspectRatio:"none",shapeRendering:"crispEdges",style:{position:"absolute",left:"0px",top:"0px",width:`${d.width}px`,height:`${d.height}px`,pointerEvents:"none",transitionTimingFunction:"linear",transitionDelay:"0",transitionProperty:"left, top, width, height",willChange:"left, top, width, height, stroke-dashoffset",overflow:"visible"},children:w},"borders")},[e,o])}},ng=zo.Center,Xz=Object.freeze({horizontal:!1,vertical:!1}),og=Fc.EmptyTopLeft,Yz=(e,t)=>Go.EmptyCell,Jz=(e,t)=>new Promise((n,o)=>{o("StaticBorderRenderer does not support scrolling")}),ff=u.memo(e=>{const{getBorderAt:t,width:n,height:o,style:r,rowCount:i=2,columnCount:a=2,darkMode:l,forceThinBorder:c,children:d,...p}=e,f=u.useRef(null),[h,{width:g,height:m}]=Hl(),y=n??g,x=o??m,v=u.useMemo(()=>{const I=[];for(let z=0;z<i;z++)for(let A=0;A<a;A++){const D={colIndex:A,rowIndex:z};I.push({coords:D,value:D})}return I},[]),b=u.useCallback(I=>v,[v]),{overlay:w}=eS({getVisibleCells:b,getBorderAt:t,darkMode:l,forceThinBorder:c}),E=Math.floor(y/a),C=Math.floor(x/i),R={getColOffset:I=>Math.ceil(I*E)+0,getRowOffset:I=>Math.ceil(I*C)+0,getColIndex:I=>Math.floor((I-0)/E)-1,getRowIndex:I=>Math.floor((I-0)/C)-1},_={rowStart:0,colStart:0,rowEnd:i,colEnd:a},L={x:0,y:0,width:Math.max(0,y)+0,height:Math.max(0,x)+0},T=u.useMemo(()=>{const I={},z=Math.floor(y/a);for(let A=0;A<a;A++)I[A]={offset:A*z,size:z,spanIndex:A};return I},[y,x]),j=u.useMemo(()=>{const I={},z=Math.floor(x/i);for(let A=0;A<i;A++)I[A]={offset:A*z,size:z,spanIndex:A};return I},[y,x]);if(!w)return null;const S={width:y,height:x},k={width:y,height:x},P={getStage:()=>f.current,getTotalSize:()=>S,getViewportSize:()=>k,getLayout:()=>R,getCellCoordsAsRangeCoords:Go.cellToRange,getVisibleRangeCoords:()=>_,getVisibleRows:()=>{const I=[];for(let z=0;z<i;z++)I.push(z);return I},getTotalRangeCoords:()=>_,getRelativePointFromClient:(I,z)=>({x:I,y:z}),getVisibleColumns:()=>{const I=[];for(let z=0;z<a;z++)I.push(z);return I},toClipBounds:(I,z)=>L,toViewBounds:I=>I,toAbsoluteBounds:I=>I,getBounds:()=>L,getInsets:()=>null,getRangeCoordsBounds:(I,z)=>null,getVisibleColumnOffsets:()=>T,getVisibleRowOffsets:()=>j,allViews:()=>({[ng]:P}),getAnchor:()=>ng,getZoom:()=>1,scrollCellCoordsIntoView:Jz,getCellCoordsFromClient:Yz,getScrollOrientation:()=>Xz,getScrollTopLeft:()=>og,getFreezeTopLeft:()=>og},O=w(P);return s.jsxs("div",{style:{...r,position:"relative",display:"flex"},...p,children:[s.jsx("div",{ref:s0([f,h]),style:{flex:"1 1 100%",display:"flex",maxWidth:"100%",maxHeight:"100%"},children:d}),O]})});function tS(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=tS(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Zr(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=tS(e))&&(o&&(o+=" "),o+=t);return o}const Qz=e=>{const{style:t,...n}=e??{};return s.jsxs("svg",{style:{width:"135px",height:"37px",...t},viewBox:"0 0 135 37",...n,children:[s.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"}),s.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"}),s.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"}),s.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"}),s.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"})]})},eF=u.memo(e=>{const{colorLicensee:t="blue",colorError:n="red",colorCredits:o="grey",credits:r="All rights reserved - Michael Ford",feature:i,style:a,...l}=e??{},[c,d]=u.useState(null);u.useEffect(()=>{(async()=>{const C=await $.LicenseManager.getDetails();d(C)})()},[]);const[p,f]=u.useState(!1),h={opacity:.65},g=u.useMemo(()=>{if(!(c?.exceptions().length>0))return null;const C=[];for(let R=0;R<c.exceptions().length;R++){const _=c.exceptions()[R];C.push(s.jsx("div",{style:{opacity:.8,fontSize:"16px",textAlign:"left",color:n},children:_},R))}return C},[c,n]);if(c==null||c.isValidFor(i))return null;const m=c.type(),y=!g&&m.endsWith("ity"),x=c.licensee(),v=y?1.6:1,b=135/v,w=37/v;let E=null;return!m&&x?.length>0&&(E=s.jsx("div",{style:{opacity:.7,fontWeight:"500",fontSize:"16px",textAlign:"left",color:t},children:x})),s.jsx("div",{style:{pointerEvents:"none",display:"flex",flexDirection:"column",overflow:"hidden",...a},...l,children:s.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column"},children:[p?s.jsx(Qz,{style:h}):s.jsx("svg",{width:b,height:w,style:h,children:s.jsx("image",{style:{width:b,height:w},href:"https://www.sheetxl.com/watermark.svg",onError:()=>f(!0)})}),s.jsxs("div",{children:[E,g,s.jsx("div",{style:{height:"0px",fontSize:"16px",textAlign:"left",width:"0px",opacity:.8,color:o},children:r})]})]})})}),sn=(e,t,n)=>{const o=u.useRef(t);o.current=t;const r=n?.fireOnModelChange??!0;u.useEffect(()=>{if(!e||!o.current)return;const i=Object.keys(o.current),a={};for(let c=0;c<i.length;c++){const d=i[c];a[d]=(p,f)=>{o.current[d]?.(p,f)}}const l=e.addListeners(a,n);if(r)for(let c=0;c<i.length;c++)a[i[c]](e);return()=>{l?.()}},[e])},wd=new $.Color("transparent");var rg,ig;(function(){if(ig)return rg;ig=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 sc=="object"&&sc&&sc.Object===Object&&sc,a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")(),c=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return l.Date.now()};function h(m){var y=typeof m;return!!m&&(y=="object"||y=="function")}function g(m){if(typeof m=="number")return m;if(typeof(y=m)=="symbol"||function(b){return!!b&&typeof b=="object"}(y)&&c.call(y)=="[object Symbol]")return NaN;var y;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 v=n.test(m);return v||o.test(m)?r(m.slice(2),v?2:8):t.test(m)?NaN:+m}rg=function(m,y,x){var v,b,w,E,C,R,_=0,L=!1,T=!1,j=!0;if(typeof m!="function")throw new TypeError("Expected a function");function S(z){var A=v,D=b;return v=b=void 0,_=z,E=m.apply(D,A)}function k(z){var A=z-R;return R===void 0||A>=y||A<0||T&&z-_>=w}function P(){var z,A,D=f();if(k(D))return O(D);C=setTimeout(P,(A=y-((z=D)-R),T?p(A,w-(z-_)):A))}function O(z){return C=void 0,j&&v?S(z):(v=b=void 0,E)}function I(){var z,A=f(),D=k(A);if(v=arguments,b=this,R=A,D){if(C===void 0)return _=z=R,C=setTimeout(P,y),L?S(z):E;if(T)return C=setTimeout(P,y),S(R)}return C===void 0&&(C=setTimeout(P,y)),E}return y=g(y)||0,h(x)&&(L=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,j="trailing"in x?!!x.trailing:j),I.cancel=function(){C!==void 0&&clearTimeout(C),_=0,v=R=b=C=void 0},I.flush=function(){return C===void 0?E:O(f())},I}})();var ag,lg,sg={};lg||(lg=1,function(){if(ag)return sg;ag=1;var e=u,t=typeof Object.is=="function"?Object.is:function(c,d){return c===d&&(c!==0||1/c==1/d)||c!=c&&d!=d},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function a(c){var d=c.getSnapshot;c=c.value;try{var p=d();return!t(c,p)}catch{return!0}}var l=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,d){return d()}:function(c,d){var p=d(),f=n({inst:{value:p,getSnapshot:d}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=d,a(h)&&g({inst:h})},[c,p,d]),o(function(){return a(h)&&g({inst:h}),c(function(){a(h)&&g({inst:h})})},[c]),i(p),p};sg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var cg,dg,Sd={exports:{}},ds={exports:{}},tF=ds.exports;function ug(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}(function(){if(dg)return Sd.exports;dg=1;for(var e=(cg||(cg=1,function(){var f,h,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?ds.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ds.exports=function(){return(f()-y)/1e6},h=process.hrtime,m=(f=function(){var v;return 1e9*(v=h())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(ds.exports=function(){return Date.now()-g},g=Date.now()):(ds.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(tF)),ds.exports),t=typeof window>"u"?sc:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],a=0;!r&&a<n.length;a++)r=t[n[a]+"Request"+o],i=t[n[a]+"Cancel"+o]||t[n[a]+"CancelRequest"+o];if(!r||!i){var l=0,c=0,d=[],p=1e3/60;r=function(f){if(d.length===0){var h=e(),g=Math.max(0,p-(h-l));l=g+h,setTimeout(function(){var m=d.slice(0);d.length=0;for(var y=0;y<m.length;y++)if(!m[y].cancelled)try{m[y].callback(l)}catch(x){setTimeout(function(){throw x},0)}},Math.round(g))}return d.push({handle:++c,callback:f,cancelled:!1}),c},i=function(f){for(var h=0;h<d.length;h++)d[h].handle===f&&(d[h].cancelled=!0)}}Sd.exports=function(f){return r.call(t,f)},Sd.exports.cancel=function(){i.apply(t,arguments)},Sd.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();const Wu=u.memo(u.forwardRef((e,t)=>{const{style:n=_n.EmptyCssProperties,orientation:o,sheet:r,onShowTooltip:i,onCloseTooltip:a,onScrollOffset:l,showCustomScrollButtons:c=!1,offset:d=0,totalSize:p=0,viewportSize:f=0,...h}=e;if(!r)throw new Error("SheetScrollBar needs a sheet model");const[g]=Hl(),m=_e(i,[i]),y=_e(a,[a]),x=u.useMemo(()=>v===null&&b===null?null:V=>{ug(v,V),ug(b,V)},[v=g,b=t]);var v,b;const[w,E]=u.useState(()=>{const V=r.getView().getTopLeft();return o===yr.Vertical?V.top:V.left}),C=()=>{const V=r.getView().getFreezePanes();return o===yr.Vertical?V.coords.rowIndex===0?{shift:0,scroll:0}:{shift:r.getRowHeaders().findOffset(V.coords.rowIndex)-V.topLeft.top,scroll:V.topLeft.top}:V.coords.colIndex===0?{shift:0,scroll:0}:{shift:r.getColumnHeaders().findOffset(V.coords.colIndex)-V.topLeft.left,scroll:V.topLeft.left}},[R,_]=u.useState(C),[L,T]=u.useState(null),[j,S]=u.useState(!1),k=o===yr.Vertical?r.getRowHeaders():r.getColumnHeaders(),P=()=>{const V=r.getUsedRange()?.getCoords()??Go.EmptyRange,U=r.getSelection().getCoords().cell;return{colIndex:Math.max(V.colEnd,U.colIndex),rowIndex:Math.max(V.rowEnd,U.rowIndex)}},[O,I]=u.useState(P),z=O?(o===yr.Vertical?O.rowIndex:O.colIndex)+1:0,A=()=>{const V=P();Go.isEqualCells(O,V)||I(V)};sn(r.getView(),{onFreezeSplitChange:()=>{_(C)}}),sn(r.getSelection(),{onChange:A}),sn(r,{onUsedRangeChange:A}),u.useEffect(()=>{I(P())},[r]),u.useEffect(()=>{if(!L)return j&&y?.(),void S(!1);const V=k.getTextAt(k.findIndex(w/(r.getView().getZoomScale()/100)+R.scroll+R.shift));S(!0),m?.({...L,display:(o===yr.Vertical?"Row":"Column")+": "+V})},[d,w,R,o,L,k,j,r]);const D=_e((V,U,J)=>{E(V);const X=V+R.scroll,H=U+R.shift,ne=J+R.shift+R.scroll;l?.(X,H,ne)},[l,R]),F=d-R.scroll,B=f-R.shift,M=p-(R.shift+R.scroll),N=k.findOffset(z)*(r.getView().getZoomScale()/100)-(R.scroll+R.shift);return s.jsx(sb,{ref:x,style:n,offset:F,viewportSize:B,totalSize:M,orientation:o,showCustomScrollButtons:c,onMouseDown:V=>{T({anchor:{x:V.clientX,y:V.clientY}}),V.preventDefault()},onScrollOffset:D,onMouseOut:()=>{T(null)},onMouseUp:()=>{T(null)},minSize:N,...h})}));Wu.displayName="SheetScrollbar";const pg=(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},hg=u.memo(u.forwardRef((e,t)=>{const{sheetHeader:n,gridRef:o,sheetElement:r,commands:i,oppositeSize:a=30,containerWidth:l,containerHeight:c,headerText:d,freezeStart:p,gridStyle:f,verticalPadding:h,horizontalPadding:g,onSheetContextMenu:m,onResizeHeadersStart:y,onResizeHeaders:x,onResizeHeadersEnd:v,onResizeHeadersDown:b,onResizeHeadersUp:w,scrollPoint:E,onSelectionStart:C,onSelectionEnd:R}=e,_=u.useMemo(()=>n.getOrientation(),[n]),L=u.useRef(null),[T,j]=u.useReducer(ke=>ke+1,0),[S,k]=u.useReducer(ke=>ke+1,0),P=n?.getSheet(),O=u.useRef(!1);u.useLayoutEffect(()=>{O.current=!0},[n]);const I=u.useMemo(()=>n.getEntireRange().getCoords().max+1,[n]),z=u.useMemo(()=>{const ke=_===$.IRange.Orientation.Column;return{left:ke?E.left:0,top:ke?0:E.top}},[E]),[A,D]=u.useState(P?.getView().getZoomScale()/100),[F,B]=u.useState(null);sn(n,{onSizesChange:ke=>{D(P?.getView().getZoomScale()/100),Se(re())}});const M=u.useCallback(()=>{L.current?.invalidate(),k()},[]),N=u.useCallback(Xt.debounce(()=>{M()},10),[]),[V,U]=u.useState(null);sn(n.getSheet(),{onSelectionChange(){U(P?.getSelection().getCoords()),N()},onProtectionChange(){M()},onViewChange(){N()}}),u.useLayoutEffect(()=>{Se(re())},[_,A,a]),u.useLayoutEffect(()=>{B(null),D(n?.getSheet().getView().getZoomScale()/100),Se(re())},[n]);const J=u.useCallback(ke=>n.at(ke)?.isHidden()||n.at(ke)?.getSize()===0,[n]),X=u.useCallback((ke,Ie)=>n.hiddenHeadersAt(ke,Ie),[J]),H=_e(ke=>n.isSelected(ke),[n]),ne=_e(ke=>n.isSelectedAll(ke),[n]),oe=u.useCallback(()=>n.getMinSize(),[n]),ye=u.useCallback(()=>n.getMaxSize(),[n]),de=_e((ke,Ie,ue)=>{Ie/=A;const De={size:Ie=Math.max(oe(),Math.min(Xt.roundAccurately(Ie,oe()),ye())),hidden:!1},Ae=[];if(Ie<=0&&(De.hidden=!0,De.size=ue),Ae.push({address:{min:ke,max:ke},update:De}),Ie<0){const W=_===$.IRange.Orientation.Column,Q=W?ce.getColOffset:ce.getRowOffset,K=W?ce.getColIndex:ce.getRowIndex,se=Q(ke);let te=K(se+Ie);const ae=Q(te);ae===se+Ie?te--:Ae.push({address:{min:te,max:te},update:{size:se-ae+Ie}}),ke-te>1&&Ae.push({address:{min:te+1,max:ke-1},update:{hidden:!0}})}n.updateHeaderPairs(Ae),x?.(ke,Ie,ue)},[T,n,A,x]),xe=_e((ke,Ie,ue)=>{const De=_===$.IRange.Orientation.Column;let Ae=null,W={min:ke,max:ke};if(n.isSelectedAll(ke)){const Q=n.getSelectedRuns();Q.length>1?Ae="Resize "+(De?"Columns":"Rows"):W=Q[0];const K={hidden:Ie<=0,size:(Ie<=0?ue:Ie)/A};n.updateHeaderPairs(pg(Q,K,ke))}if(W){const Q=W.max-W.min+1;let K;K=Q===1?n.getRange(W).at(0).getDisplayText():n.getRange(W).toString(),Ae=`Resize ${De?"Column":"Row"}${Q>1?"s":""} '${K}'`}v?.(ke,Ie,Ae)},[T,n,v]),we=_e((ke,Ie)=>{const ue=_===$.IRange.Orientation.Column;y(ke,Ie,`Resize ${ue?"Column":"Row"}(s)`)},[y]),ve=_e(ke=>{let Ie=!1;const ue=_===$.IRange.Orientation.Column,De=n.getSheet().getEntireRange().getCoords(),Ae=[],W=n.getSelectedRuns(),Q=K=>{let se;se=ue?{colStart:K.min,rowStart:De.rowStart,colEnd:K.max,rowEnd:De.rowEnd}:{colStart:De.colStart,rowStart:K.min,colEnd:De.colEnd,rowEnd:K.max},Ae.push(se)};for(let K=0;K<W.length;K++){const se=W[K];se.value.isSelectedAll&&(se.min<=ke&&se.max>=ke&&(Ie=!0),Q(se))}if(Ie||Q({min:ke,max:ke}),n.getSheet().getRanges(Ae).autoFit({orientations:ue?$.IRange.Orientations.Column:$.IRange.Orientations.Row}),J(ke)){const K={hidden:null},se=pg(W,K);Ie||se.push({address:ke,update:K}),n.updateHeaderPairs(se)}v?.(ke,null,"Resize Column(s)")},[T,n,v,J]),re=()=>{const ke=_===$.IRange.Orientation.Column;return{getColOffset:Ie=>ke?n.findOffset(Ie):Ie===0?0:a/A,getColIndex:Ie=>ke?n.findIndex(Ie):0,getRowOffset:Ie=>ke?Ie===0?0:a/A:n.findOffset(Ie),getRowIndex:Ie=>ke?0:n.findIndex(Ie)}},[ce,Se]=u.useState(()=>re()),ie=u.useCallback((ke,Ie)=>ke.nativeEvent.which!==3||!ne(_===$.IRange.Orientation.Column?Ie.colIndex:Ie.rowIndex),[_,ne]),Y=_e(ke=>{r.focusSheet()},[r]),le=_e(ke=>{P?.getSelection().updateCoords(ke)},[P]),{...ee}=Ww({gridRef:o,commands:null,layout:ce,selection:V,fillHandleBorderColor:f.body.fill,selectionBackgroundColor:f.selection.fill,selectionBorderColor:f.selection.strokeFill,selectionRemoveBackgroundColor:f.selectionRemove.fill,selectionRemoveBorderColor:f.selectionRemove.strokeFill,disableTouchSelection:!0,onSelectionChange:le,canSelectionSpanMergedCells:ke=>{const Ie=P.getRange(ke);return Ie.isEntireColumns()||Ie.isEntireRows()}}),Pe=_e(()=>{C?.();const ke=P?.getSelection();ke&&ke.setAdjusting(ke.getCoords())},[P,C]),Te=_e(async()=>{P?.getSelection().setAdjusting(null),R?.()},[P,R]),{...rt}=(({gridRef:ke,gridMainRef:Ie,orientation:ue=Ea,headerCount:De,selectionPolicy:Ae="multiple",newSelectionMode:W="clear",alwaysScrollToActiveCoords:Q=!0,onDragStart:K,onDragEnd:se,pointerDownInterceptor:te,pointerMoveInterceptor:ae,onPointerUp:pe,newSelection:me,modifySelection:fe,appendSelection:je,clearSelections:Fe})=>{const Ge=De??((ue===Ea?ke.current?.rowCount:ke.current?.columnCount)||0),et=u.useRef(null),tt=u.useRef(null),it=u.useRef(!1),At=u.useRef(null),Lt=u.useCallback(kt=>ue===Hr?{rowIndex:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:0},[ue]),_t=u.useCallback(kt=>ue===Hr?{rowIndex:Ie.current?Ie.current.rowCount-1:0,colIndex:kt.colIndex}:{rowIndex:kt.rowIndex,colIndex:Ie.current?Ie.current.columnCount-1:0},[ue]),$t=kt=>{tt.current=_t(kt),fe(tt.current,et.current)},nn=u.useCallback((kt,on)=>{if(!ke.current)return;const mn=ke.current.getViewFromClient(kt,on)?.getCellCoordsFromClient(kt,on);return mn?(ue===Hr?mn.rowIndex=Ie.current.getViewport().rowStart:mn.colIndex=Ie.current.getViewport().colStart,mn):void 0},[]),Zt=u.useCallback((kt,on=!1)=>{let mn=kt;return on||(mn={...kt},ue===Ea?delete mn.colIndex:delete mn.rowIndex),Ie.current?.scrollCellCoordsIntoView(mn)},[ue]),Tn=wt(se,[se]),pn=wt(K,[K]),En=u.useMemo(()=>({onPointerDown:kt=>{if(!ke||!ke.current||kt.nativeEvent.defaultPrevented)return;const on=nn(kt.nativeEvent.clientX,kt.nativeEvent.clientY);if(!on)return;kt.nativeEvent.which;const mn=kt.nativeEvent.shiftKey,Ln=kt.nativeEvent.ctrlKey||kt.nativeEvent.metaKey;if(te?.(kt,on)===!1)return;pn?.(),it.current=!0;const Nn=Ie.current?.getViewFromClient(kt.nativeEvent.clientX,kt.nativeEvent.clientY),hn=(fo=on,bo=Nn.getVisibleRangeCoords(),ue===Hr?{...fo,rowIndex:bo.rowStart}:{...fo,colIndex:bo.colStart});var fo,bo;if(mn)$t(on);else{if(Ln)return((Fo,tr=Fo,_r)=>{et.current=Lt(Fo),tt.current=_t(tr),je(et.current,tt.current,_r)})(on,on,hn),void(Q&&Zt(hn,!0));((Fo,tr=Fo,_r)=>{et.current=Lt(Fo),tt.current=_t(tr),me(et.current,tt.current,_r)})(on,on,hn),$t(on),Q&&Zt(hn,!0)}},onPointerMoveOrWait:Qo.throttle(kt=>{if(!it.current||!ke?.current)return;const on=nn(kt.clientX,kt.clientY);if(on&&ae?.(kt,on)!==!1){if(Vt.isEqualCells(At.current,on))return Fe();$t(on),Zt(on)}},60),onPointerUp:kt=>{it.current=!1,Tn?.(),pe?.(kt)},processTouch:!0,consumeTouch:!0}),[Ae,Q,Ge,W,Fe,te,pe]);return{onPointerDown:wt(Rs(En),[]),getCellCoordsFromClient:nn}})({orientation:_,headerCount:I,gridRef:L,gridMainRef:o,newSelection:ee?.newSelection,modifySelection:ee?.modifySelection,appendSelection:ee?.appendSelection,clearSelections:ee?.clearSelections,pointerDownInterceptor:ie,onPointerUp:Y,onDragStart:Pe,onDragEnd:Te}),Ve=f.selection?.strokeFill;u.useEffect(()=>{if(!L.current)return void B(null);const ke=_===$.IRange.Orientation.Column,Ie=n.getSelectedRuns(),ue=n.isProtected()?null:de,De=(W,Q,K)=>{if(K)return s.jsx("div",ke?{style:{position:"absolute",borderBottom:`${f.headerSelection.strokeWidth}px solid ${Ve}`,pointerEvents:"none",top:`${_n.boundPixel(-f.headerSelection.strokeWidth/2)}px`,left:`${_n.boundPixel(K.x-f.headerSelection.strokeWidth)}px`,width:`${_n.boundPixel(K.width+f.headerSelection.strokeWidth+1,!0)}px`,height:a+f.headerSelection.strokeWidth-.5+"px"}}:{style:{position:"absolute",borderRight:`${f.headerSelection.strokeWidth}px solid ${Ve}`,pointerEvents:"none",top:`${_n.boundPixel(K.y-f.headerSelection.strokeWidth)}px`,left:`${_n.boundPixel(-f.headerSelection.strokeWidth/2)}px`,width:a+f.headerSelection.strokeWidth-.5+"px",height:`${_n.boundPixel(K.height+f.headerSelection.strokeWidth+1,!0)}px`}},W)},Ae=(W,Q,K)=>{const se={x:0,y:0,width:0,height:0};if(ke){const te=K.toClipBounds(K.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:W,colEnd:Math.min(I,Q)}),Rr);if(!te)return;se.x=te.x,se.width=te.width}else{const te=K.toClipBounds(K.getRangeCoordsBounds({rowStart:W,rowEnd:Math.min(I,Q),colStart:0,colEnd:0}),Rr);if(!te)return;se.y=te.y,se.height=te.height}return{x:se.x,y:se.y,width:se.width,height:se.height}};B([W=>{const Q=[];let K=null,se=ke?W.getVisibleColumns():W.getVisibleRows();const te=ke?W.getTotalRangeCoords().colStart:W.getTotalRangeCoords().rowStart;se.length>0&&se[0]>te&&(se=[se[0]-1,...se]);let ae=[];const pe=[];for(let Ge=0;Ge<se.length;Ge++){const et=se[Ge],tt=Ge<se.length-1?se[Ge+1]:et+X(et+1,!1)+1,it=et+1!==tt;if(!K||K.max<et)if(Ie.length>0&&Ie[Ie.length-1].max>=et){const _t=Xt.findEqualOrGreater(Ie,et,$t=>$t.max);K=Ie[_t]}else K=null;let At=!1,Lt=!1;if(K?.value&&(K.min<=et||K.min<=tt&&!it)&&(At=!0,Lt=K.value.isSelectedAll),et===te){let _t=!1,$t=!1;K?.value&&K.min<=et&&(_t=!0,$t=K.value.isSelectedAll),et>0&&pe.push({index:et-1,isNextHidden:it,isSelected:_t,isSelectedAll:$t,disabledResize:!0})}if(Lt&&ae.push(pe.length),pe.push({index:et,isHidden:Ge===0&&X(et,!1)>0,isNextHidden:it,isSelected:At,isSelectedAll:Lt,onDividerMouseDown:b,onDividerResizeStart:we,onDividerResize:ue,onDividerMouseUp:w,onDividerResizeEnd:xe,onDividerAutoFit:ve}),it){let _t=!1,$t=!1;if(K&&K.min>=et&&K.max<=tt-1&&K.value.isSelectedAll&&ae.push(pe.length),!(K?.value&&K.max>=tt))if(Ie.length>0&&Ie[Ie.length-1].max>=tt){const nn=Xt.findEqualOrGreater(Ie,tt,Zt=>Zt.max);K=Ie[nn]}else K=null;K?.value&&K.min<=tt&&(_t=K.value.isSelected,$t=K.value.isSelectedAll),tt>0&&pe.push({index:tt-1,isHidden:!0,isSelected:_t,isSelectedAll:$t,onDividerMouseDown:b,onDividerResizeStart:we,onDividerResize:ue,onDividerMouseUp:w,onDividerResizeEnd:xe,onDividerAutoFit:ve})}}if(ae.length>0){let Ge=ae.length-1;if(ae.length>0){const it=pe[ae[Ge]].index;let At=null;ke?(At=W.getRangeCoordsBounds({rowStart:0,rowEnd:0,colStart:it,colEnd:it}),At.x+At.width>W.getBounds().width&&(Ge-=1,Ge===0&&(Ge=-1))):(At=W.getRangeCoordsBounds({rowStart:it,rowEnd:it,colStart:0,colEnd:0}),At.y+At.height>W.getBounds().height&&(Ge-=1,Ge===0&&(Ge=-1)))}const et=Ie?.[Ie.length-1],tt=W.getAnchor();if(tt==="t"||tt==="l"){const it=pe[ae[Math.max(0,ae.length-1)]];it.showTouchDivider=et&&et.max<=it.index}else Ge>=0&&(pe[ae[Ge]].showTouchDivider=!0)}const{header:me,headerSelect:fe,headerSelectAll:je,headerHover:Fe}=f??{};for(let Ge=0;Ge<pe.length;Ge++)Q.push(s.jsx(zz,{orientation:_,view:W,headerStyle:me,headerStyleSelect:fe,headerStyleSelectAll:je,headerStyleHover:Fe,disabled:n.isProtected(),...pe[Ge]},`divider${Ge}`));return Q},W=>{const Q=[];for(let K=0;Ie&&K<Ie.length;K++)Q.push(De(`selection:${W.getAnchor()}:${K}`,0,Ae(Ie[K].min,Ie[K].max,W)));return Q}])},[S,!0,Ve,f,ce,I,p,T,A]),u.useEffect(()=>{L.current?.invalidate()},[T]);const Ee=_e(ke=>d?d(ke):n.getTextAt(ke),[d,n]),Re=_e(ke=>{const{header:Ie,headerSelect:ue,headerSelectAll:De,headerHover:Ae}=f??{},{range:W,key:Q,...K}=ke;return s.jsx(qw,{orientation:_,index:_===$.IRange.Orientation.Column?W.colStart:W.rowStart,isSelected:H,isSelectedAll:ne,zoomScale:100*A,headerText:Ee,headerStyle:Ie,headerStyleSelect:ue,headerStyleSelectAll:De,headerStyleHover:Ae,verticalPadding:h,horizontalPadding:g,...K},Q)},[T,I,f,A,n]),Xe=Hi(),Be=u.useMemo(()=>{const ke="white",Ie="black",ue={};if(_n.detectIt().primaryInput!=="touch"){let De=_===$.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='${Ie}' fill='${ke}'/%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='${Ie}' fill='${ke}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`;Xe.getMode()?.key==="formatPainter"&&(De=`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='${Ie}' fill='${ke}'/%3E%3C/g%3E%3C/svg%3E%0A") 7 12, pointer`),ue.cursor=De}return ue.backgroundColor=f?.header?.fill||"transparent",ue},[_,T,Xe,f]),ct=ir(t,()=>({scrollTo:ke=>{L.current?.scrollTo(ke)},forceRender:()=>{j()},getGridElement:()=>L.current}),[]),Qe=u.useCallback(ke=>{rt.onPointerDown(ke)},[rt]),he=u.useCallback(ke=>{const Ie=rt.getCellCoordsFromClient(ke.clientX,ke.clientY);if(!Ie||!m)return;const ue=_===$.IRange.Orientation.Column;m({originalEvent:ke,clientX:ke.clientX,clientY:ke.clientY,rowIndex:ue?-1:Ie.rowIndex,colIndex:ue?Ie.colIndex:-1}),ke.stopPropagation(),ke.preventDefault()},[rt,m]),Ye=u.useMemo(()=>{const ke=_===$.IRange.Orientation.Column;return s.jsx("div",{ref:ct,children:s.jsx(D2,{className:"sheet-header",style:Be,ref:L,scrollPoint:z,columnCount:ke?I:1,rowCount:ke?1:I,width:ke?l:a,height:ke?a:c,freezeLeft:ke?p:void 0,freezeTop:ke?void 0:p,hiddenColumnsAt:ke?X:void 0,hiddenRowsAt:ke?void 0:X,showGridLines:!1,layout:ce,clipCells:!1,allowOverlaysOverflow:!0,enableMouseWheel:!1,onContextMenu:he,onPointerDown:Qe,zoom:A,cellRenderer:Re,overlays:F})})},[F,ce,l,c,z,Be,S]);return u.useEffect(()=>{O.current=!1,L.current?.invalidate(),k()},[n,f]),Ye})),nF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,getVisibleCells:r,gridStyle:i}=e,a=_e((d,p)=>d.getStyle().getBorder(),[]),{overlay:l}=eS({getVisibleCells:r,getBorderAt:a,darkMode:i.body.darkMode,shiftIfWide:!0}),c=l(n);return c&&n?c:null})),oF={key:"copy",description:"'Copy' Select destination and press ENTER or choose Paste."},rF={key:"cut",description:"'Cut' Select destination and press ENTER or choose Paste."},iF={type:$.ICell.Content.Values},aF={fitDestination:!0,type:$.ICell.Content.Formats},lF={fitDestination:!0,type:$.ICell.Content.Formulas},sF={transpose:!0},cF={fitDestination:!0,adjustCells:(e,t,n)=>({value:`=${t.getA1({$colIndex:!0,$rowIndex:!0})}`})},dF=u.memo(u.forwardRef((e,t)=>{const{view:n,element:o,sheet:r,gridStyle:i,commands:a,notifier:l}=e,c=i.body??{},d=r.getView(),{overlays:p}=(({element:f,sheet:h,sheetView:g,commands:m,onClipboardUpdate:y,onPaste:x,selectionRenderer:v=Fw,copyForegroundColor:b="rgb(33, 115, 70)",cutForegroundColor:w="rgb(33, 115, 70)",copyBackgroundColor:E="white",cutBackgroundColor:C="white",notifier:R,..._})=>{const L=_e(v,[v]),T=u.useRef(null),j=Hi(),S=j.getMode(),k=u.useMemo(()=>({element:f,doCopy:A=>{const D=h.getSelectedRanges().getSnapshot(A);return new $.RangeClipboardItem(D)}}),[h,g,f]),P=u.useMemo(()=>({element:f,importFromExternal:async(A,D)=>{const F=new $.ExternalRangeClipboardItem(A,D,h.getStyles(),h.isDate1904());return await F.parse()?F:null},doPaste:async(A,D)=>{if(A?.getItemType()!=="range")return;D?.contentsOnly&&delete(D={...D,type:$.ICell.Content.Values}).contentsOnly;const F=h.getSelectedRange(),B=A.getItem(),M=B.getName();return await F.doBatch(async()=>{const N=await F.copyFrom(B,D);!N||N.isEntireRows()||N.isEntireColumns()||N.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0})},{description:"Paste"+(M?` ${M}`:""),autoSelect:!0}),!0}}),[h,g,R,f]),{clipboard:O,...I}=fb({..._,source:k,commands:m,target:P,notifier:R,onClipboardUpdate:A=>{const D=A?.getItemType()==="range"?A:null;if(D){const F=A.editMode?.(),B={...A?.isCut?.()?rF:oF,...F,args:{isClipboard:!0,...F?.args},onModeChange:M=>{M?.args?.isClipboard||O.clear(!0),F?.onModeChange?.(M)}};j.setMode(B)}T.current=D,y?.(D)},onPaste:(A,D)=>{if(A?.getItemType()!=="range")return;let F=j.getMode()?.key==="cut"||A.isCut?.();if(!F&&j.getMode()?.key==="copy"){const B=A.getItem().getCoords(),M=h.getSelectedRanges().getCoords();let N=!1;if(!N&&B&&M&&A.getItem().getSource?.()===h)for(let V=0;!N&&V<M.length;V++)N=Go.isRangesIntersect(B,M[V]);F=N}F&&j.setMode(null),f?.()?.focus(),x?.(A,D)}});u.useMemo(()=>{const A=f;if(!m)return;const D=[new He("pasteValues",A,{label:"Paste Values",scopedLabels:{paste:"Values"},description:`Paste only the values of the selected cells.
195
-
196
- The formatting is not applied.`,shortcut:{key:"V",modifiers:[$e.Ctrl,$e.Shift]}}),new He("pasteFormats",A,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
197
-
198
- The content is not applied.`}),new He("pasteFormulas",A,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied."}),new He("pasteTranspose",A,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped."}),new He("pasteLinks",A,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells."})];m.addCommands(D,!0)},[m,f]),u.useEffect(()=>{if(!m)return;const A={disabled:!h.getProtection().isFormatCellsAllowed()};m.getCommand("pasteValues").updateCallback(D=>I.paste({...iF,...D})).update(A),m.getCommand("pasteFormats").updateCallback((D,F)=>I.paste({...aF,description:F.label(),...D})).update(A),m.getCommand("pasteFormulas").updateCallback((D,F)=>I.paste({...lF,description:F.label(),...D})).update(A),m.getCommand("pasteTranspose").updateCallback((D,F)=>I.paste({...sF,description:F.label(),...D})).update(A),m.getCommand("pasteLinks").updateCallback((D,F)=>I.paste({...cF,description:F.label(),...D})).update(A),m.getCommand("cut").update(A),m.getCommand("paste").update(A)},[h,m]);const z=u.useMemo(()=>{if(!S||!T.current)return;const A=S.key;if(A!=="copy"&&A!=="cut"&&A!=="formatPainter")return;const D=T.current.getItem();if(D.getSource()!==h)return;const F=T.current.isCut?.(),B=F?C:E,M=F?w:b,N=D.getCoords(),V=N?[N]:null;return V&&V.length!==0?U=>{const J=[];for(let X=0;X<V.length;X++){const H=V[X],ne=U.toClipBounds(U.getRangeCoordsBounds(H,{top:0,left:0,right:1,bottom:1}),Rr);ne&&(J.push(L({range:H,key:`copy-selection-background-${X}`,x:ne.x,y:ne.y,width:Math.max(ne.width,0),height:Math.max(ne.height,0),stroke:B,strokeWidth:2})),J.push(L({range:H,key:`copy-selection-foreground-${X}`,x:ne.x+(ne.width<=2?-1:0),y:ne.y,width:Math.max(ne.width,3),height:Math.max(ne.height,3),stroke:M,strokeWidth:2,isAnimatedStroke:!0})))}return J}:null},[S,h,g,b,E,w,C]);return{...I,clipboard:O,overlays:z}})({element:o,sheet:r,sheetView:d,commands:a,copyForegroundColor:i.selection.strokeFill,copyBackgroundColor:c.fill,cutForegroundColor:i.selectionRemove.strokeFill,cutBackgroundColor:c.fill,notifier:l});return sn(r?.getSelection(),{onChange(f){}}),u.useEffect(()=>{n?.getStage()},[n?.getStage()]),p&&n?p(n):null})),uF={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},pF={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},hF={key:"dragCopy",description:"Drag selection to copy cell contents."},fF={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},fg=(e,t)=>t.ctrlKey&&t.shiftKey?fF:t.ctrlKey?hF:t.shiftKey?pF:uF,mF={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},gF=u.memo(u.forwardRef((e,t)=>{const{view:n,commands:o,className:r,onFirstRender:i,notifier:a,onShowTooltip:l,onCloseTooltip:c,sheet:d,gridRef:p,gridStyle:f,isActive:h,editingCoords:g,...m}=e,y=n?.getBounds(),x=_e(l,[l]),v=_e(c,[c]),[b,w]=u.useState(()=>d?.getSelection().getCoords()),E=_e(de=>{Go.isEqualSelectionCoords(de,b)||d&&d.getSelection().updateCoords(de)},[d,b]),C=Hi(),R=u.useRef(null),[_,L]=u.useState(d?.getProtection().isLocked()),[T,j]=u.useState(d?.getView().getMovableSelection().length>0),S=_n.detectIt().primaryInput==="touch",k=!S&&h,P=g!==null||T,O=_e(de=>{const xe=Go.cellToRange(de);if(d.isClosed())return xe;const we=d.getRange(xe,{excludeHidden:!0}).getMerges();return we.length===0?xe:we[0]},[d]),I=_e((de,xe,we,ve,re,ce)=>{const Se=d.getSelectedRange().getExtended(ve,de).getCoords();switch(ve){case $.IRange.Direction.Up:return Se.rowStart;case $.IRange.Direction.Down:return Se.rowEnd;case $.IRange.Direction.Left:return Se.colStart;case $.IRange.Direction.Right:return Se.colEnd}},[d]),z=_e(()=>{const de=d.getUsedRange()?.getCoords(),xe=d.getRowHeaders().getUsedRange()?.getCoords(),we=d.getColumnHeaders().getUsedRange()?.getCoords();return{...de,colEnd:Math.max(de?.colEnd??0,we?.max??0),rowEnd:Math.max(de?.rowEnd??0,xe?.max??0)}},[d]),A=_e((de,xe)=>d.getRowHeaders().hiddenHeadersAt(de,xe),[d]),D=_e((de,xe)=>d.getColumnHeaders().hiddenHeadersAt(de,xe),[d]),F=_e(de=>d.getRange(de,{excludeHidden:!0}).getMerges(),[d]),B=_e(de=>{d?.getSelection().setAdjusting(de)},[d]),M=_e(async()=>{d?.getSelection().setAdjusting(null),C.getMode()?.key==="formatPainter"&&(await o?.getCommand("pasteFormats")?.execute({}),C.setMode(null))},[C,b,d,o]),N=u.useMemo(()=>{const de=C.getMode();return de?.key==="cut"||de?.key==="copy"},[C]);sn(d?.getView(),{onMovableSelectionChange:()=>{j(d.getView().getMovableSelection().length>0)}}),sn(d?.getSelection(),{onChange(de){const xe=d.getSelection().getCoords();w(xe)}}),sn(d,{onProtectionChange:()=>{L(d.getProtection().isLocked())}});const{body:V={}}=f||{},U=n.getLayout(),J=!(k&&b.ranges.length<=1&&g===null&&!_&&(!C.getMode()||N)),{overlay:X,onPointerDown:H}=Ww({gridRef:p,commands:o,layout:U,getCellCoordsAsRangeCoords:O,selection:b,fillHandleBorderColor:V.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:J,disableMoveDrag:S||!(h&&b.ranges.length<=1&&g===null&&!_),disableTouchSelection:P,onSelectionChange:E,onSelectionDragStart:B,onSelectionDragEnd:M,onMoveDragStart:(de,xe,we)=>{C.setMode(fg(0,we))},onMoveDragUpdate:(de,xe,we)=>{C.setMode(fg(0,we))},onMoveDragEnd:(de,xe)=>{C.setMode(null)},onMoveDragDone:async(de,xe,we)=>{if(Go.isEqualRanges(de,xe))return;const ve=d.getRange(xe);if(a?.showOptions){const Y=ve.getDifferences(de);let le=!1;for(let ee=0;!le&&ee<Y.getCount();ee++)le=Y.at(ee).isContentful();if(le&&await a?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const re=!we.ctrlKey,ce=we.shiftKey,Se=ce?re?"Insert Moved Cells":"Insert Copied Cells":re?"Move Cells":"Copy Cells",ie=await a?.showBusy?.(Se);try{const Y=d.getRange(de);await ve.doBatch(async()=>{ce?await ve.insertFrom(de,{isCut:re,undoRange:Y}):await ve.copyFrom(de,{isCut:re,undoRange:Y}),Y.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0}),ve.autoFit({skipCustomSize:!0,orientations:$.IRange.Orientations.Row,minContent:!0})},{description:Se,autoSelect:!0})}catch(Y){a?.showError?.(Y)}finally{ie?.()}},contentfulCellFinder:I,hiddenRowsAt:A,hiddenColumnsAt:D,mergedRanges:F,getDataCoords:z,canSelectionSpanMergedCells:de=>{const xe=d.getRange(de);return xe.isEntireColumns()||xe.isEntireRows()},onFill:async(de,xe)=>{const we="Auto Fill",ve=await a?.showBusy?.(we);try{await d.doBatch(()=>{d.getRange(de).autoFill(xe),d.getRange(xe).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:we,autoSelect:!0})}catch(re){a?.showError?.(re)}finally{R.current=null,ve?.()}},onFillPreview:(de,xe,we)=>{if(p.current&&x){C.setMode(mF);try{R.current?.direction!==we&&(R.current=null,d.getRange(de).autoFill(xe,{previewOnly:ee=>{R.current={callback:ee,direction:we}}}));const ve=R.current?.callback?.(xe);if(!ve||ve.isEmpty())return;const re=ve.toText();if(!re)return;const ce=Go.cellToRange(ve.getCoords()),Se=n.getRelativePointFromClient(0,0);let ie=0,Y=0,le=fp;if(we===$.IRange.Direction.Down){ie=U.getColOffset(ce.colEnd+1)-Se.x;const ee=U.getRowOffset(ce.rowEnd),Pe=U.getRowOffset(ce.rowEnd+1);Y=Pe-(Pe-ee)/2-Se.y,le=U5}else if(we===$.IRange.Direction.Right){Y=U.getRowOffset(ce.rowEnd+1)-Se.y;const ee=U.getColOffset(ce.colEnd),Pe=U.getColOffset(ce.colEnd+1);ie=Pe-(Pe-ee)/2-Se.x,le=fp}else if(we===$.IRange.Direction.Up){ie=U.getColOffset(ce.colEnd+1)-Se.x;const ee=U.getRowOffset(ce.rowStart),Pe=U.getRowOffset(ce.rowStart+1);Y=Pe-(Pe-ee)/2-Se.y,le=U5}else if(we===$.IRange.Direction.Left){Y=U.getRowOffset(ce.rowEnd+1)-Se.y;const ee=U.getColOffset(ce.colStart),Pe=U.getColOffset(ce.colStart+1);ie=Pe-(Pe-ee)/2-Se.x,le=fp}x({anchor:{x:ie,y:Y},display:re,placement:le})}catch(ve){a?.showError?.(ve)}}},onFillDone:()=>{R.current=null,C.setMode(null),v?.()}}),ne=_e(de=>{H(_n.createSyntheticEvent(de))},[H,g]);u.useEffect(()=>{const de=n?.getStage();if(de)return de.addEventListener("pointerdown",ne),()=>{de.removeEventListener("pointerdown",ne)}},[n?.getStage()]);const oe=ir(t,()=>({}),[]),ye=u.useRef(null);return s.jsx("div",{className:Zr(r,"sheet-selection","_sheet-selection_12wyx_5"),style:{position:"absolute",width:y?.width,height:y?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:s0([oe,ye]),...m,children:X(n)})})),Cd=Object.freeze({x:0,y:0,width:0,height:0}),yF={fireOnModelChange:!1},xF=u.memo(u.forwardRef((e,t)=>{const{children:n,view:o,movable:r,onRefLoad:i,onRefUnload:a,onHide:l,onShow:c,onUnFocus:d,isDragging:p,updateFrameBounds:f,dragStart:h,style:g,disabled:m,renderMovable:y,...x}=e,[v,b]=u.useState(Cd),[w,E]=u.useState(null),[C,R]=u.useState(!1),_=u.useRef(null);u.useLayoutEffect(()=>{if(r.isClosed())return;const T=r.getBounds();if(!T)return;const j=o.toViewBounds(T);b(j??Cd),f(j??Cd)},[o?.getBounds()]),sn(r,{onBoundsChange:T=>{const j=T.getBounds();if(!j)return;const S=o.toViewBounds(j);b(S??Cd),f(S)},onSelectionChange:()=>{const T=Xt.hasFocus(_.current,!0);!C&&!T||r.isSelected()||d()}}),sn(r,{onRequestFocus:()=>Xt.whenFocus(_.current,!0)},yF),u.useEffect(()=>{const T=_.current;return i(T),()=>{a(T)}},[]);const L=u.useMemo(()=>{if(!v)return null;let{width:T,height:j}=v;return y({view:o,movable:r,disabled:m,isDragging:p,style:{position:"relative",left:0,top:0,width:T,height:j},onHide:l,onShow:c})},[o,r,v.width,v.height,m,p]);return s.jsx("div",{className:"movable",tabIndex:0,ref:s0([_,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:v.x,top:v.y,width:v.width,height:v.height,...g},onMouseDown:async T=>{const j=T.shiftKey||T.ctrlKey,S=r.isSelected(),k=T.currentTarget;j&&S?r.unselect():(S&&!j||await r.select({addToSelection:j}),h(T.nativeEvent,k),k.focus())},onFocus:T=>{T.relatedTarget&&!w&&E(T.relatedTarget),R(!0)},onBlur:T=>{w&&!_?.current?.contains(T.relatedTarget)&&E(null),T.relatedTarget&&R(!1)},...x,children:L})})),bF=u.memo(u.forwardRef((e,t)=>{const{view:n,movables:o,movablesView:r,renderMovable:i,transactional:a,onUnFocus:l,onFocus:c,disabled:d=!1,disableDrag:p=!1,disableResize:f=!1,className:h,style:g,renderDirections:m=["nw","n","ne","w","e","sw","s","se"],onFirstRender:y,...x}=e,v=n.getBounds(),b=_e(y,[y]),w=_e(l,[l]),E=_e(c,[c]),[C,R]=u.useState([]),[_,L]=u.useState(!1),[T,j]=u.useState(!1),S=u.useRef(!0),k=u.useRef(new Map),P=u.useRef(new Map),O=u.useRef(new Map),I=u.useRef(new Map),z=u.useRef(new Map),A=u.useRef({onRequestFocus:Ee=>(we(Ee),null)}),D=u.useRef(null),F=u.useRef(null),B=u.useRef(null),[M,N]=u.useReducer(Ee=>Ee+1,0);u.useLayoutEffect(()=>{N()},[n,o]),sn(o,{onCollectionChange:()=>{const Ee=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0}),Re=z.current;Re.forEach(Be=>{Be()}),Re.clear();const Xe=A.current;for(let Be=0;Be<Ee.length;Be++){const ct=Ee[Be];if(ct.isClosed())continue;const Qe=ct.addListeners(Xe);Re.set(ct,Qe)}N()},onInvalidated:()=>{N()}}),sn(r,{onMovableSelectionChange(Ee){U(),N()}});const V=u.useCallback((Ee,Re)=>{const Xe=O.current.get(Ee);B.current&&(B.current.getTargets().forEach(Be=>{if(Be===Xe)return Be.style.left=Re.x+"px",Be.style.top=Re.y+"px",Be.style.width=Re.width+"px",void(Be.style.height=Re.height+"px")}),B.current.updateRect())},[]),U=()=>{const Ee=[],Re=r.getMovableSelection();Re.forEach(Xe=>{const Be=O.current.get(Xe);Be&&Re.indexOf(Xe)!==-1&&Ee.push(Be)}),R(Xe=>Xt.isEqualArrays(Xe,Ee)?Xe:Ee)},J=u.useRef(null),X=u.useMemo(()=>new Promise(Ee=>{J.current=Ee}),[]),H=u.useRef(null),ne=_e(async(Ee,Re)=>{H.current=Re,await(async()=>!(!await X.then()||!B.current))()&&H.current===Re&&B.current.dragStart(Ee,Re)},[C]),[oe,ye]=u.useState(!1),de=u.useRef(null),xe=u.useRef(null),we=_e(async(Ee=null)=>{if(Ee||(Ee=r.getMovableSelection()[0]),!Ee)return w?.(),!1;const Re=O.current.get(Ee);Re?(await Xt.whenFocus(Re),Re.focus(),xe.current=Re,de.current=null):de.current=Ee},[r]);u.useEffect(()=>{oe&&C.length>0&&xe.current!==C[0]&&we(),S.current&&(b?.(),S.current=!1)},[C]);const ve=u.useMemo(()=>{const Ee=o.search({address:n.getVisibleRangeCoords(),excludeHidden:!0});if(Ee.length===0&&k.current.size===0)return null;const Re=(he,Ye,ke,Ie=!0)=>{const ue=he.isSelected(),De={tabIndex:ke,view:n,movable:he,onRefLoad:Ae=>{de.current===he&&(Ae.focus(),xe.current=Ae,de.current=null),O.current.set(he,Ae),P.current.set(Ae,he),Ye.rendered=!0,U()},onRefUnload:Ae=>{O.current.delete(he),P.current.delete(Ae),Ye.rendered=!1,U()},onUnFocus:w,onHide:Ae=>{Ye.onHide=Ae},onShow:Ae=>{Ye.onShow=Ae},isDragging:ue&&(T||_),disabled:d,renderMovable:i,updateFrameBounds:Ae=>{V(he,Ae)},dragStart:ne,onMouseUp:()=>{if(H.current=null,F.current){L(!1),j(!1);let Ae=!1;I.current?.forEach(W=>{Xt.isEqualBounds(W.movable.getBounds(),W.startBounds)||(Ae=!0)}),Ae?ce():Se()}},style:{opacity:Ie?_&&ue?.7:void 0:0,zIndex:_&&ue?he.getZIndex()+Ee.length:void 0,pointerEvents:Ie?void 0:"none",cursor:T&&ue?"grabbing":d||p?"initial":"move",boxShadow:!ue||T&&!_?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(xF,{...De},`movable-${he.getUUID()}`)},Xe=k.current,Be=new Map,ct=[];for(let he=0;he<Ee.length;he++){const Ye=Ee[he];if(Ye.isClosed())continue;let ke=Xe.get(Ye);ke||(ke={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(Ie,ue)=>{if(!ue||ue.shown===!0)return;ue.shown=!0;const De=++ue.visibilityRequestId;requestAnimationFrame(()=>{const Ae=k.current.get(Ie);Ae&&De===ue.visibilityRequestId&&(ue.onShow?.(Ie),Ae.shown=!0)})},doHide:async(Ie,ue)=>{if(!ue||ue?.shown===!1)return;ue.shown=!1;const De=++ue.visibilityRequestId,Ae=await Promise.resolve(ue.onHide?.(Ie));De===ue.visibilityRequestId&&Ae!==!1&&(ue.shown=!1,k.current.delete(Ie),N())},visibilityRequestId:0}),ke.frame=Re(Ye,ke,he,!0),ct.push(ke.frame),ke.doShow(Ye,ke),Xe.delete(Ye),Be.set(Ye,ke)}const Qe=[];return r.getMovableSelection().forEach(he=>{const Ye=Xe.get(he);Ye&&(Ye.frame=Re(he,Ye,-1,!1),Qe.push(Ye.frame),Xe.delete(he),Be.set(he,Ye))}),Xe.forEach((he,Ye)=>{he.frame=Re(Ye,he,-1,!1),Qe.push(he.frame),he.doHide(Ye,he),Xe.delete(Ye),Be.set(Ye,he)}),k.current=Be,U(),[...Qe,...ct]},[M,n,i,d,p,f,_,T]),re=_e((Ee,Re)=>{const Xe=`${Re} ${C.length===1?$.TextUtils.capitalize(P.current?.get(C[0]).getContent().getType()):"Drawings"}`;F.current&&(console.warn(`Transaction ${F.current.getDescription()} is being replaced by ${Xe}`),F.current.rollback(),F.current=null),F.current=a.beginCommit({description:Xe}),I.current.clear();for(let Be=0;Be<C.length;Be++){const ct=C[Be],Qe=P.current?.get(ct);Qe?I.current.set(ct,{movable:Qe,startBounds:n.toViewBounds(Qe.getBounds())}):console.warn("invalid element",Qe)}},[a,n,C]),ce=u.useCallback(()=>{if(!F.current)return;const Ee=[];I.current?.forEach(Re=>{Ee.push(Re.movable)}),F.current.commit({viewAfter:{view:r,movableSelection:Ee}}),I.current.clear(),F.current=null},[]),Se=u.useCallback(()=>{F.current&&(F.current.rollback(),F.current=null)},[]),ie=u.useRef(null);u.useEffect(()=>{ie.current&&(ie.current.onscroll=Ee=>{Ee.preventDefault(),Ee.srcElement.scrollTop=0,Ee.srcElement.scrollLeft=0})},[ie.current]);const Y=ir(t,()=>({isMovableArea:()=>!0,focusMovable:we,focus:()=>{we()}}),[r]),[le,ee]=u.useState(null),Pe=u.useRef(!1),Te=u.useRef(!1),rt=u.useRef(!1);u.useEffect(()=>{if(d||C.length===0||rt.current||Pe.current)return;if(Te.current)return void requestAnimationFrame(()=>{B.current&&D.current&&B.current.refTargets.length>0&&(rt.current=!0,J.current?.(!0)),R([...C])});Pe.current=!0;const Ee=u.lazy(async()=>{try{const Re=await Promise.resolve().then(()=>require("./DDFDUxH5Mew5rcdT.cjs"));return Pe.current=!1,Te.current=!0,R([...C]),Re}catch(Re){return console.warn(Re),J.current?.(!1),null}});ee(Ee)},[C,d,p,f]);const Ve=u.useMemo(()=>!le||d?null:s.jsx(u.Suspense,{children:s.jsx(le,{className:Zr({dragging:_||T,resizing:_,moving:T}),container:null,ref:B,target:B.current?C:[],draggable:!d&&!p,resizable:!d&&!f,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:m,onResizeStart:Ee=>{re(Ee.target,"Resize")},onResize:Ee=>{if(!F.current)return Ee.stopDrag(),void N();L(!0);const Re=Ee.direction[0]!==0&&Ee.direction[1]!==0;let Xe=0,Be=0;for(let ct=0;ct<C.length;ct++){const Qe=C[ct],he=I.current.get(Qe),Ye=P.current.get(Qe);if(!he||!Ye){console.warn("invalid element");continue}let ke=Ee.dist[0],Ie=Ee.dist[1],ue=Ee.drag.dist[0],De=Ee.drag.dist[1],Ae=he.startBounds.width,W=he.startBounds.height;ct===0?(Xe=Ae,Be=W):(ke*=Ae/Xe,ue*=Ae/Xe,Ie*=W/Be,De*=W/Be);const Q={...he.startBounds};if(Q.width=Math.max(0,Ae+ke),Q.height=Math.max(0,W+Ie),Ee.direction[0]===-1&&(Q.width=Math.max(0,Math.min(he.startBounds.x+Ae,Ae-ue))),Ee.direction[1]===-1&&(Q.height=Math.max(0,Math.min(he.startBounds.y+W,W-De))),Re&&(Ye.isLockAspectRatio()||Ee.inputEvent?.shiftKey)){const K=Ae/W,se=Q.width/Q.height;se>K?Q.height=Q.width/K:se<K&&(Q.width=Q.height*K)}Ee.direction[0]===-1&&(Q.x=Math.max(0,Math.min(he.startBounds.x+Ae,he.startBounds.x+Ae-Q.width))),Ee.direction[1]===-1&&(Q.y=Math.min(he.startBounds.y+W,he.startBounds.y+W-Q.height)),he.movable.setBounds(n.toAbsoluteBounds(Q))}},onResizeEnd:Ee=>{L(!1),ce()},onDragStart:Ee=>{re(Ee.target,"Move")},onDrag:Ee=>{if(!F.current)return Ee.stopDrag(),void N();j(!0);for(let Re=0;Re<C.length;Re++){const Xe=C[Re],Be=I.current.get(Xe);Be?Be.movable.setBounds(n.toAbsoluteBounds({...Be.startBounds,x:Be.startBounds.x+Ee.translate[0],y:Be.startBounds.y+Ee.translate[1]})):console.warn("invalid element")}},onDragEnd:Ee=>{},onMouseUp:Ee=>{}})}),[M,le,C,n,d,p,f,_,T]);return s.jsx("div",{className:Zr(h,"movable-area","_movable-area_314c6_5"),style:{width:v.width,height:v.height,...g,position:"absolute",overflow:"hidden",willChange:"transform"},ref:s0([Y,ie]),...x,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:v.width,height:v.height},...x,children:s.jsxs("div",{ref:D,style:{position:"absolute",pointerEvents:"auto"},onFocus:Ee=>{E?.(),ye(!0)},onBlur:Ee=>{ye(!1)},onKeyDownCapture:Ee=>{if(Ee.isDefaultPrevented())return;const Re=Ee.nativeEvent.ctrlKey,Xe=Ee.nativeEvent.altKey,Be=Ee.nativeEvent.shiftKey;if(Ee.which===tn.Escape){const ke=r.getMovableSelection();let Ie=[...ke];return C.forEach(ue=>{if(Ie.length===0)return;const De=P.current.get(ue);let Ae=Ie.indexOf(De);Ie.splice(Ae,1)}),Ie.length!==ke.length&&r.selectMovables(Ie),Ie.length===0&&w?.(),void Ee.preventDefault()}const ct=.1,Qe=ke=>{o.updateSelected(Ie=>{Ie.setRotation(Ie.getRotation()+ke)},"Rotate")},he=(ke,Ie=!0)=>{o.updateSelected(ue=>{const De=ue.getBounds();let Ae=1+ke;Ie||(Ae=1/Ae);const W=Math.sqrt(Math.pow(De.width,2)+Math.pow(De.height,2)),Q=Math.atan2(De.height,De.width),K=Ae*W;if(K<10)return;const se=K*Math.cos(Q),te=K*Math.sin(Q),ae={x:De.x+(De.width-se)/2,y:De.y+(De.height-te)/2,width:se,height:te};ue.setBounds(ae)},"Resize")},Ye=ke=>{o.updateSelected(Ie=>{const ue=Ie.getBounds(),De={x:ue.x+(ke.x??0),y:ue.y+(ke.y??0),width:ue.width+(ke.width??0),height:ue.height+(ke.height??0)};Ie.setBounds(De)},"Nudge")};if(Ee.which===tn.Delete)o.updateSelected(ke=>{ke.delete()},"Delete"),Ee.preventDefault();else if(Ee.key==="a"&&Re){const ke=r.getMovableSelection();r.selectMovables(o.search(),!0),r.selectMovables(ke,!0),Ee.preventDefault()}else Ee.key==="ArrowLeft"?(Be?he(ct,!1):Xe?Qe(-10):Ye({x:Re?-10:-1}),Ee.preventDefault()):Ee.key==="ArrowRight"?(Be?he(ct,!0):Xe?Qe(10):Ye({x:Re?10:1}),Ee.preventDefault()):Ee.key==="ArrowUp"?(Be?he(ct,!0):Ye({y:Re?-10:-1}),Ee.preventDefault()):Ee.key==="ArrowDown"&&(Be?he(ct,!1):Ye({y:Re?10:1}),Ee.preventDefault())},children:[ve,Ve]})})})})),as=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 a=e[i].getBounds();t=Math.min(a.x,t),n=Math.min(a.y,n),o=Math.max(a.x+a.width,o),r=Math.max(a.y+a.height,r)}return{x:t,y:n,width:o-t,height:r-n}},mg=(e,t=!0)=>{const n=[],o=t?"x":"y",r=t?"y":"x",i=t?"width":"height";let a=0,l=Number.MAX_SAFE_INTEGER,c=0;for(let f=0;f<e.length;f++){const h=e[f],g=h.getBounds();a+=g[i],l=Math.min(g[o],l),c=Math.max(g[o]+g[i],c),n.push({bounds:g,movable:h})}const d=(c-l-a)/(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]+d,n[f].bounds=g,p.set(n[f].movable,g)}return p.set(n[n.length-1].movable,n[n.length-1].bounds),p},vF=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,description:r,view:i,isDragging:a,onHide:l,onShow:c,...d}=e;u.useEffect(()=>{},[r]);const p=ir(t,()=>({isEmptyFrame:()=>!0}),[]),[f,{height:h,width:g}]=Hl();return s.jsx("div",{...d,ref:s0([p,f]),children:s.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:a?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:r})})})})),wF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,movableProps:r,renderMovable:i,commands:a,target:l,notifier:c,onRepeatCommandChange:d}=e,p=function(h){const{movables:g,movablesView:m,transactional:y,commands:x,target:v,onRepeatCommandChange:b,notifier:w}=h,E=Hi();u.useRef(E.getMode()).current=E.getMode();const C=_e(async(I,z,A=null,D=!0)=>{const F=async()=>{const B=await Promise.resolve(w?.showBusy?.(I.label()));try{await z();const M=A??I?.label?.();if(b){let N=null;I&&M!==!1&&(N=new Tt(I.key(),v,{label:M,description:M},F)),b(N)}B?.(),D&&E.setMode(null)}catch(M){B?.(),w?.showError?.(M)}};await F()},[b,w]),[R,_]=u.useReducer(I=>I+1,0),L=_e((I,z,A)=>{if(!m)return;const D=m.getMovableSelection();if(D.length===0)return;let F="Drawings";if(D.length===1){const M=D[0];F=$.TextUtils.capitalize(M.getContent().getType())??"Drawing"}const B=`${I.label()} ${F}`;C(I,()=>{let M=null;y&&(M=y.beginCommit(B));const N=m.getMovableSelection();if(N.length===0)return;const V=A?.(N);for(let U=0;U<N.length;U++){const J=N[U];z(J,V)}M?.commit()})},[m,y]),[T,j]=u.useState(m.getMovableSelection()[0]??null),[S,k]=u.useState(!T||T?.isProtected()),P=u.useMemo(()=>[new He("moveToFront",v,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",shortcut:{key:"BracketRight",modifiers:[$e.Ctrl,$e.Shift]}},function(){L(this,I=>{I.moveToFront()})}),new He("moveForward",v,{label:"Bring Forward",description:"Move forward one layer in the z order.",shortcut:{key:"BracketRight",modifiers:[$e.Ctrl]}},function(){L(this,I=>{I.moveForward()})}),new He("moveToBack",v,{label:"Send to Back",description:"Move to the back of all of the other drawings.",shortcut:{key:"BracketLeft",modifiers:[$e.Ctrl,$e.Shift]}},function(){L(this,I=>{I.moveToBack()})}),new He("moveBackward",v,{label:"Send Backward",description:"Move backwards one layer in the z order.",shortcut:{key:"BracketLeft",modifiers:[$e.Ctrl]}},function(){L(this,I=>{I.moveBackward()})}),new He("toggleLockAspectRatio",v,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners."},function(){L(this,I=>{I.setLockAspectRatio(!I.isLockAspectRatio())})}),new He("formatAnchorTypeTwoCell",v,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.TwoCell)})}),new He("formatAnchorTypeOneCell",v,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.OneCell)})}),new He("formatAnchorTypeAbsolute",v,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes."},function(){L(this,I=>{I.setAnchorType($.IAnchored.Type.Absolute)})}),new He("formatDrawAlignLeft",v,{label:"Align Left",description:"Align the selected drawings to the left."},function(){L(this,(I,z)=>{I.setBounds({x:z.x})},as)}),new He("formatDrawAlignCenter",v,{label:"Align Center",description:"Align the selected drawings vertically relative to each other."},function(){L(this,(I,z)=>{I.setBounds({x:(z.width-I.getBounds().width)/2+z.x})},as)}),new He("formatDrawAlignRight",v,{label:"Align Right",description:"Align the selected drawings to the right."},function(){L(this,(I,z)=>{I.setBounds({x:z.width-I.getBounds().width+z.x})},as)}),new He("formatDrawAlignTop",v,{label:"Align Top",description:"Align the selected drawings to the top."},function(){L(this,(I,z)=>{I.setBounds({y:z.y})},as)}),new He("formatDrawAlignMiddle",v,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other."},function(){L(this,(I,z)=>{I.setBounds({y:(z.height-I.getBounds().height)/2+z.y})},as)}),new He("formatDrawAlignBottom",v,{label:"Align Bottom",description:"Align the selected drawings to the bottom."},function(){L(this,(I,z)=>{I.setBounds({y:z.height-I.getBounds().height+z.y})},as)}),new He("formatDrawDistributeHorz",v,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each."},function(){L(this,(I,z)=>{I.setBounds(z.get(I))},I=>mg(I))}),new He("formatDrawDistributeVert",v,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each."},function(){L(this,(I,z)=>{I.setBounds(z.get(I))},I=>mg(I,!1))}),new He("formatDrawFlipHorz",v,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new He("formatDrawFlipVert",v,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new He("formatDrawGroup",v,{label:"Group",description:"Group the selected drawings into a single drawing."}),new He("formatDrawUngroup",v,{label:"Ungroup",description:"Break the group of a drawing into individual drawings."}),new He("formatDrawSwapShapes",v,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new He("formatDrawSwapShapesHorz",v,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new He("formatDrawSwapShapesVert",v,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[m,T]);u.useEffect(()=>{},[E]);const O=u.useMemo(()=>{let I=null;return I=x?x.createChildGroup(v,"movable",!1):new r0(v,"movable"),I.addCommands(P,!0),I},[x,P]);return sn(T,{onAnyChange:()=>{O.getCommand("formatAnchorTypeTwoCell").update({state:T?.getAnchorType()===$.IAnchored.Type.TwoCell}),O.getCommand("formatAnchorTypeOneCell").update({state:T?.getAnchorType()===$.IAnchored.Type.OneCell}),O.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),O.getCommand("formatAnchorTypeAbsolute").update({state:T?.getAnchorType()===$.IAnchored.Type.Absolute}),O.getCommand("toggleLockAspectRatio").update({state:T?.isLockAspectRatio()})},onProtectedChange:I=>{k(I.isProtected())},onDelete:()=>{}}),sn(m,{onMovableSelectionChange:()=>{const I=m.getMovableSelection()[0]??null;j(I),k(!I||I.isProtected()),_()}}),sn(g,{onCollectionChange:()=>{_()}}),u.useEffect(()=>{const I={disabled:S};O.getCommand("formatAnchorTypeTwoCell").update(I),O.getCommand("formatAnchorTypeOneCell").update(I),O.getCommand("formatAnchorTypeAbsolute").update(I),O.getCommand("toggleLockAspectRatio").update(I);const z=g.getCount(),A=m.getMovableSelection(),D=S||z<=1||A.length===0;let F={disabled:D},B=F;if(!D&&A.length===1){const V=A[0];V.getZIndex()===0&&(F={disabled:!0}),V.getZIndex()===z-1&&(B={disabled:!0})}O.getCommand("moveToFront").update(B),O.getCommand("moveForward").update(B),O.getCommand("moveToBack").update(F),O.getCommand("moveBackward").update(F);const M={disabled:S||A.length<=1};O.getCommand("formatDrawAlignLeft").update(M),O.getCommand("formatDrawAlignCenter").update(M),O.getCommand("formatDrawAlignRight").update(M),O.getCommand("formatDrawAlignTop").update(M),O.getCommand("formatDrawAlignMiddle").update(M),O.getCommand("formatDrawAlignBottom").update(M),O.getCommand("formatDrawFlipHorz").update(M),O.getCommand("formatDrawFlipVert").update(M),O.getCommand("formatDrawGroup").update(M),O.getCommand("formatDrawUngroup").update(M),O.getCommand("formatDrawSwapShapes").update(M),O.getCommand("formatDrawSwapShapesHorz").update(M),O.getCommand("formatDrawSwapShapesVert").update(M);const N={disabled:S||A.length<=2};O.getCommand("formatDrawDistributeHorz").update(N),O.getCommand("formatDrawDistributeVert").update(N)},[R,S,R]),O}({movables:o.getMovables(),movablesView:o?.getView(),transactional:o,onRepeatCommandChange:d,commands:a,target:l,notifier:c});u.useEffect(()=>{n?.getStage()},[n?.getStage()]);const f=u.useMemo(()=>s.jsx(bF,{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,a,p]);return f&&n?f:null})),SF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,gridStyle:r,getCellEditor:i,showProtectedError:a,setEditingCoords:l,commands:c,notifier:d=yu}=e,p=Hi(),[f,h]=u.useState(null),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),[w,E]=u.useState(null);u.useLayoutEffect(()=>{if(y===null)return b(null),void E(null);const A=()=>{const D=o.getRange(y).getCell(),F=D.getStyle();let B,M=F.getFill()?.toCSS(r.body.darkMode);M.background!=="none"&&M.background!=="transparent"||(M=o.getStyles().getNormal().getFill().toCSS(r.body.darkMode)),M.background!=="none"&&M.background!=="transparent"||(M={background:r.body.fill}),b({style:M}),D&&!D.getFormula()&&(B=D?.getRenderHorizontalAlignment()),E(B??"left")};return A(),o.getRange(y).addListener(()=>{A()})},[o,y,r?.body]);const C=_e(()=>{let A=g.editState.dirty??"";if(g.editState.dirty!==void 0){const D=$.TextUtils.clampString(A);try{const F=g.sheet.getRange(g.coords),B=`Typing '${D}' into ${F.toString()}`;return F.setValue(A,{description:B,autoFit:!0}),x(null),m(null),p.setMode(null),l(null),!0}catch(F){throw d.showError(new Error(`Unable to enter '${D}'.`,{cause:F})),F}}},[o,g,d]),R=_e(A=>o.getRange(A).getCell().getExtrusions()??Go.cellToRange(A),[o]);_e(A=>{let D=$.IRange.Orientation.Row,F=!1;A!==$.IRange.Direction.Up&&A!==$.IRange.Direction.Down||(D=$.IRange.Orientation.Column),A!==$.IRange.Direction.Left&&A!==$.IRange.Direction.Up||(F=!0),o.getSelection().traverse(D,F)},[o]);const _=u.useCallback((A,D)=>{if(i)return i(A,D);if(!o)return null;const{ref:F,...B}=A;return s.jsx(Xw,{ref:F,...B,sheet:o,bodyStyle:r?.body,activeCoords:D,commands:c,onChangeEdit:M=>{const N={sheet:o,coords:D,editState:M};p.setMode(V=>({...V,description:N.editState.editMode?"Edit":"Enter",args:{...V?.args,stateAndCoords:N}}))},editState:g.editState})},[o,v,i,g,y]),{overlay:L,startEdit:T,submitEdit:j,cancelEdit:S,onKeyboardEventNative:k,onPointerEventNative:P}=(A=>{const{view:D,canEdit:F=yz,getCellEditor:B,onBeforeStartEdit:M,onStartEdit:N,onSubmitEdit:V,onCancelEdit:U,onDoneEdit:J,isEditorStartKeyEvent:X=xz,isEditorStartPointerEvent:H=bz,containerProps:ne,borderStrokeFill:oe,borderStrokeWidth:ye=2,getRangeCoords:de=null,activeCoords:xe,alignment:we=lc.Left}=A,[ve,re]=u.useState(!1),[ce,Se]=u.useState(void 0),ie=wt((K,se,te,ae,pe,me)=>{if(!se)return null;const fe=pe?.(se,K),je=K.getRangeCoordsBounds(fe),Fe=K.toClipBounds(je),Ge=je,et=K.getZoom();if(!Fe)return null;te&&(te*=et),ae&&(ae*=et);let tt=Ge,it=!1;if(te!==void 0){let _t={...fe},$t=0;for(;!it&&tt.width<=te&&$t<20;){$t++,$t>19&&console.warn("max width reached");const nn=K.getTotalRangeCoords(),Zt=K.getLayout();me===lc.Left?_t.colEnd+1<nn.colEnd?_t.colEnd=Zt.getColIndex(tt.x+te):it=!0:me===lc.Right?_t.colStart-1>=0?_t.colStart=Zt.getColIndex(tt.x-(te-tt.width)):it=!0:me===lc.Center&&_t.colEnd+1<nn.colEnd&&_t.colStart-1>=0?(_t.colStart=Zt.getColIndex(tt.x-(te-tt.width)/2),_t.colEnd=Zt.getColIndex(tt.x+tt.width+(te-tt.width)/2)):it=!0,it||(tt=K.getRangeCoordsBounds(_t))}}tt.height=Ge.height,ae!==void 0&&(tt.height=Math.max(ae+1,Ge.height));const{width:At,height:Lt}=K.getViewportSize();return{x:tt.x??0,y:tt.y??0,height:Math.min(Lt-tt.y,tt.height)+1,width:Math.min(At-tt.x,tt.width)+1}},[we]),Y=wt(F,[F]),le=u.useCallback(()=>{D?.getStage()?.focus()},[D]),ee=u.useRef(null),Pe=wt(K=>{M?.(K),Ye(),re(!0),ee.current=null},[M]),Te=wt(K=>{N?.(K.coords)},[N]),rt=wt(K=>{K.isSubmitted||K.isCancelled||(Re.current.isEditorClosed=!0,le(),K.isCancelled=!0,U?.(K.coords),Ye())},[U]),Ve=wt(K=>{if(K.isSubmitted||K.isCancelled)return!1;try{return ee.current=K.coords,K.isEditorClosing=!0,K.isSubmitted=!0,K.isEditorSubmitted||(K.isEditorSubmitted=!0,K.editorRefs[0]?.submitEdit?.()),K.coords,V?.(K.coords),K.isEditorClosed=!0,le(),Ye(),!0}catch(se){throw K.isEditorClosing=!1,K.isSubmitted=!1,se}},[V]),Ee=wt(K=>{re(!1),J?.(K.coords),Ye()},[J]),Re=u.useRef(null),Xe=u.useRef(null),Be=u.useRef(null),ct=u.useRef([]),[Qe,he]=u.useReducer(K=>K+1,0),Ye=u.useCallback(K=>{K&&ct.current.push(K),he()},[]),ke=wt(K=>{if(K.defaultPrevented||K.isSynthetic||!D)return;const se=D?.getCellCoordsFromClient(K.clientX,K.clientY);se&&Ye({eventType:"pointer",event:K,coords:se})},[D]),Ie=wt(K=>{const se=K.nativeEvent;ke(se)},[D]),ue=wt(K=>{if(K.defaultPrevented||K.isSynthetic||!D?.getStage())return;const se=Xe.current;X(K,se)&&(K.stopPropagation(),K.preventDefault()),K.key,Ye({eventType:"keyboard",event:K,coords:se})},[D]);u.useLayoutEffect(()=>{const K=(ae,pe)=>{const me=pe?.cell??ae;if(!me)return null;const fe=me;if(!Y(me))return null;Pe?.(me);const je=Qo.uuidV4();pe=Object.freeze({autoFocus:!0,...pe}),Be.current=me;const Fe={coords:fe,startEvent:pe,uuid:je,isMounted:!1,isStarted:!1,isSubmitted:!1,isEditorSubmitted:!1,isEditorClosing:!1,isEditorClosed:!1,isCancelled:!1,events:[],editorRefsDispatchEditorEvent:[],editorRefs:[],onMount:Ge=>{Fe.isMounted||(Fe.isMounted=!0,Ye())},onUnmount:Ge=>{if(Fe.editorRefs.length===0){const et=()=>{Fe.isMounted=!1,Ye()};if(document.activeElement!==document.body)et();else{const tt=it=>{it.defaultPrevented||it.target!==document.body||ue(it)};window.addEventListener("keydown",tt,!0),D.getStage()?.addEventListener("focusin",()=>{window.removeEventListener("keydown",tt),et()},{once:!0}),le()}}}};return Fe};if(ct.current.length<=0&&!Re.current)return;const se=ct.current[0];$9(se),(ae=>{const pe=[],me=ae?.length??0;for(let fe=0;fe<me;fe++){const je=ae[fe];pe.push($9(je))}})(ct.current),Re.current,Re.current;let te=Re.current;if(Re.current){if(Re.current.isDone)Re.current=null;else if(Re.current.isSubmitted||Re.current.isCancelled){if(Re.current.isMounted)return;Re.current.isDone||(Ee(Re.current),Re.current.isDone=!0)}}if(se){if(se.eventType==="start"){const ae=se,pe=ae.startEvent?.cell??Xe.current;Re.current&&Vt.isEqualCells(Re.current.coords,pe)||(Re.current=K(pe,ae.startEvent))}else if(se.eventType==="keyboard"){const ae=se.event;if(Re.current){let pe=!1;switch(ae.which){case 37:case 39:case 38:case 40:case 13:case 9:pe=!0}if(!pe){Re.current.events.push(se);for(let me=0;me<Re.current.editorRefsDispatchEditorEvent.length;me++)Re.current.editorRefsDispatchEditorEvent[me](se)}}else if(X(ae,se.coords)){const pe=K(Xe.current,void 0);pe&&pe.events.push(se),Re.current=pe}}else if(se.eventType==="pointer"){const ae=se.event;if(Re.current){Re.current.events.push(se);for(let pe=0;pe<Re.current.editorRefsDispatchEditorEvent.length;pe++)Re.current.editorRefsDispatchEditorEvent[pe](se)}else{const pe=se?.coords??Xe.current,me=H(ae,pe);if(me){let fe;typeof fe!="boolean"&&(fe=me);const je=K(pe,fe);je&&je.events.push(se),Re.current=je}}}else if(se.eventType==="submit"){if(Re.current&&!Re.current.isSubmitted&&!Re.current.isCancelled){if(!Re.current.isMounted)return;Ve(Re.current)}}else if(se.eventType==="cancel"){if(Re.current&&!Re.current.isSubmitted&&!Re.current.isCancelled){if(!Re.current.isMounted)return;rt(Re.current)}}else if(se.eventType==="coordsChange"){const ae=se;if(Xe.current=ae.activeCoords,Re.current,Re.current&&!Re.current.isSubmitted&&!Re.current.isCancelled){if(!Re.current.isMounted)return;try{Ve(Re.current)}catch{}}}}ct.current.length>0&&(ct.current.shift(),Ye()),ct.current.length===0&&(!Re.current||Re.current.isEditorClosing||Re.current.isEditorClosed?!Re.current&&te&&le():Re.current.isMounted&&!Re.current.isStarted&&(Re.current.isStarted=!0,Re.current.startEvent.autoFocus&&(typeof Re.current.startEvent.autoFocus=="string"?Re.current.editorRefs[0]?.autoFocus(Re.current.startEvent.autoFocus):Re.current.editorRefs[0]?.autoFocus()),Te?.(Re.current),requestAnimationFrame(()=>{D&&Re.current?.coords&&D.scrollCellCoordsIntoView(Re.current.coords)})))},[Qe]),u.useEffect(()=>{Be.current=xe;const K=Re.current?.coords;Vt.isEqualCells(K,xe)||(Re.current&&(Re.current.isEditorClosing=!0),Ye({eventType:"coordsChange",activeCoords:xe}))},[xe]);const De=u.useCallback(K=>{ue(K.nativeEvent)},[]),{width:Ae=0,height:W=0}=ce??{width:0,height:0},Q=wt(B,[B]);return{overlay:wt(K=>{if(!Re.current||Re.current.isEditorClosed)return Re.current,null;Re.current.coords;let se=ie(K,Re.current.coords,Ae,W,de,we),te=!0;se&&se.width!==0&&se.height!==0||(se={x:0,y:0,width:Ae,height:Ae},te=!1);const ae=K.getZoom(),pe={containerBounds:{x:0,y:0,width:se.width/ae,height:se.height/ae},setNaturalDimensions:Se,zoom:ae};return s.jsx(vz,{session:Re.current,refLatestCoords:Be,handleSubmitEdit:Ve,handleCancelEdit:rt,cellBounds:se,borderStrokeWidth:ye,borderStrokeFill:oe,isInBounds:te,getCellEditor:Q,propsEditor:pe,alignment:we,...ne},"editor:"+Re.current.uuid)},[B,de,Qe,Ae,W,we,ye,oe]),startEdit:u.useCallback(K=>{Ye({eventType:"start",startEvent:K})},[]),submitEdit:u.useCallback(()=>{Ye({eventType:"submit"})},[]),cancelEdit:u.useCallback(()=>{Ye({eventType:"cancel"})},[]),onKeyboardEvent:De,onPointerEvent:Ie,onKeyboardEventNative:ue,onPointerEventNative:ke,isEditing:ve}})({view:n,activeCoords:f,getCellEditor:_,canEdit:()=>{const A=!o.getProtection().isLocked();return A||a(),A},onBeforeStartEdit:A=>{const D=Yw(()=>o.getRange(A).getCell()),F={sheet:o,coords:A,editState:Object.freeze(D)};p.setMode({key:"edit",args:{stateAndCoords:F}}),m(F)},onStartEdit:A=>{x(A),l(A)},onSubmitEdit:C,onCancelEdit:A=>{x(null),m(null),p.setMode(null),l(null)},onDoneEdit:A=>{p.setMode(null)},containerProps:v,borderStrokeFill:r.selection?.strokeFill,borderStrokeWidth:o?.getSelection().getCoords().ranges?.length>1?1:2,alignment:w,getRangeCoords:R});sn(o.getSelection(),{onChange(A){h(o.getSelection().getCoords().cell)}});const O=_e(A=>{P(A),y&&j()},[P,S,y]),I=u.useCallback(A=>{P(A)},[P]),z=u.useCallback(A=>{k(A)},[k]);return u.useEffect(()=>{const A=n?.getStage();if(A)return A.addEventListener("pointerdown",O),A.addEventListener("dblclick",I),A.addEventListener("keydown",z),()=>{A.removeEventListener("pointerdown",O),A.removeEventListener("dblclick",I),A.removeEventListener("keydown",z)}},[n?.getStage()]),u.useEffect(()=>{const A=p.getMode(),D=A?.key;D==="edit"||D==="enter"?g?A.args?.cancel?S():A.args?.submit?j():m(A.args?.stateAndCoords):T(A.args?.start):y&&S()},[p]),L(n,t)})),nS="white",oS="black",CF=`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='${oS}' fill='${nS}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,kF=`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='${oS}' fill='${nS}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,EF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o}=e,[r,i]=u.useState(o.getTables().getCount()>0),[a,l]=u.useState(null),[c,d]=u.useState(null),[p,f]=u.useState(null),[h,g]=u.useState(null),m=_e(()=>{if(o.getTables().getCount()>0){i(!0);const C=o.getTables().search({address:n.getVisibleRangeCoords()});l(C.length>0?C:null)}else i(!1),l(null)},[o,n]),y=_e(C=>{C.preventDefault(),C.stopPropagation();const R=n.getCellCoordsFromClient(C.clientX,C.clientY),_=o.getTables().search({address:R});_.length===1&&_[0].select()},[n,o]),x=_e(C=>{C.preventDefault(),C.stopPropagation();const R=n.getCellCoordsFromClient(C.clientX,C.clientY),_=o.getTables().search({address:R});if(_.length===1){const L=_[0].getRange().getCoords(),T={colStart:L.colStart,rowStart:R.rowIndex,colEnd:L.colEnd,rowEnd:R.rowIndex};o.getRange(T).select()}},[n,o]),v=_e(()=>{if(!r)return;const C=o.getTables().search({address:n.getVisibleRangeCoords()});l(C.length>0?C:null)},[o,r,n]);sn(o?.getSelection(),{onChange(C){d(o.getSelection().getCoords().cell)}}),sn(p,{onAnyChange(C){m(),v()}}),sn(h,{onAnyChange(C){v()}}),sn(o,{onTablesChange(C){m(),v()},onInvalidated(C){m(),v()}});const b=u.useMemo(()=>Xt.debounce(Xt.throttle(v,300),300),[]);u.useEffect(()=>{b()},[n]),u.useEffect(()=>{let C=null;if(a)for(let R=0;R<a.length&&!C;R++){const _=a[R],L=_.getRange().getCoords();$.CoordUtils.isCellWithinRange(c,L)&&(C=_)}f(C)},[c,a]);const w=_e(C=>{let R=null;if(a)for(let _=0;_<a.length;_++){const L=a[_],T=L.getRange().getCoords();let j=n.getRangeCoordsBounds(T);const S=n.getRelativePointFromClient(C.clientX,C.clientY),k=S.x,P=S.y;if(k>=j.x&&k<=j.x+j.width&&P>=j.y&&P<=j.y+j.height){const O=n.getViewportSize();k<=0||P<=0||k>=O.width||P>=O.height||(R=L)}}g(R)},[n,a]);if(u.useEffect(()=>{const C=n?.getStage();if(C&&a)return C.addEventListener("mousemove",w),C.addEventListener("mouseleave",w),()=>{C.removeEventListener("mousemove",w),C.removeEventListener("mouseleave",w)}},[a,n?.getStage()]),!n||!a||a.length===0)return null;const E=[];for(let C=0;C<a.length;C++){const R=a[C];if(R.isClosed())continue;const _=R===h,L=R===p,T=R.getRange().getCoords(),j=n.getRangeCoordsBounds(T);let S;if(_||L){const k=R.getStyle().getProperties(),P=k.headerRow?.fill?.background??k.wholeTable?.border?.top?.color?.toString();if(P&&o){const O=o.getStyles().parseColor(P);O&&(S=O.toCSS())}S||(S="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}E.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:j.height,pointerEvents:"all",cursor:CF},onMouseDown:x},`table-select-row-${R.getName()}`)),E.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:Math.min(16,j.height),pointerEvents:"all",cursor:kF},onMouseDown:y},`table-select-${R.getName()}`)),E.push(s.jsx(O2,{x:j.x,y:j.y,width:j.width,height:j.height,range:T,strokeWidth:L?.5:0,stroke:S??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:_?`${S} 0px 0px 1px 1px`:void 0}},`table-outline-${R.getName()}`))}return E})),MF=u.memo(u.forwardRef((e,t)=>{const{view:n,sheet:o,animationTime:r=60}=e,[i,a]=u.useState(null),[l,c]=u.useState(null),d=u.useRef(null),p=_e(()=>{const x=o.getSelectedCell(),v=x.getSpill()?.getCoords()??null;Go.isEqualRanges(v,i)||(c(v?{transition:i?"move":"in",bounds:n.getRangeCoordsBounds(v),coords:v}:{transition:"out",bounds:n.getRangeCoordsBounds(i),coords:i}),a(v))},[o,n,i]);u.useEffect(()=>(d.current&&(clearTimeout(d.current),d.current=null),l&&(d.current=setTimeout(()=>{c(null),d.current=null},r)),()=>{d.current&&(clearTimeout(d.current),d.current=null)}),[l,r]);const f=u.useMemo(()=>Xt.debounce(Xt.throttle(p,80),80),[]);if(sn(o?.getSelection(),{onChange(x){f()}}),sn(o,{onSpillsChange(x){p()},onInvalidated(x){p()}}),!n||!i&&!l)return null;const h=o.getRange(i).getValue()instanceof $.FormulaError.Spill,g=[];let m=l?.bounds??n.getRangeCoordsBounds(i);if(l&&!Xt.isEqualBounds(l.bounds,n.getRangeCoordsBounds(l.coords))&&c(null),m=n.toClipBounds(m,-10),!m)return;const y="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return g.push(s.jsx(O2,{x:m.x,y:m.y,width:m.width,height:m.height,range:i,strokeWidth:1,stroke:y,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:h?"6 3":void 0,opacity:l?.transition==="out"?0:1,transition:l?.transition?l.transition==="in"||l.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:`${y} 0px 0px 4px 0px`}},"spill-outline}")),g})),TF={position:"absolute",top:0,left:0,bottom:0,right:0},gg=(e,t)=>{const n={...e},o=t?.getNormal().getFont(),r=o?.toCSS(),i={text:{fontFamily:r?.fontFamily,fontSize:o?.getSize()}},a=n.body=Xt.mergeContentful(e.body,i);return n.body=Xt.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},a),n.buttonSurface=Xt.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=Xt.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=Xt.mergeContentful(n.header,i),n.headerSelect=Xt.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=Xt.mergeContentful(n.headerSelect,i),n.headerSelectAll=Xt.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=Xt.mergeContentful(n.headerSelectAll,i),n},_F={fireOnModelChange:!1},yg={},rS=u.memo(u.forwardRef((e,t)=>{const{sheet:n,gridStyle:o=yg,headersStyle:r=yg,onSheetContextMenu:i,showColumnHeaders:a,columnHeaderProps:l,showRowHeaders:c,rowHeaderProps:d,showScrollbars:p=!0,scrollPaneProps:f,onViewportChange:h,commands:g,onRepeatCommandChange:m,onMoveCell:y,overlays:x,renderMovable:v,viewportComponent:b,onElementLoad:w,getCellEditor:E,onFocus:C,onBlur:R,style:_=_n.EmptyCssProperties,notifier:L,onShowTooltip:T,onShowColumnTooltip:j,onShowRowTooltip:S,onCloseTooltip:k,gridProps:P,cellRenderProps:O,...I}=e;if(u.useEffect(()=>{$.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[z,A]=u.useReducer(Ze=>Ze+1,0),[D,{width:F,height:B}]=Hl(),M=_e(T,[T]),N=_e(j,[j]),V=_e(S,[S]),U=_e(k,[k]),J=u.useRef(!1);u.useLayoutEffect(()=>{J.current=!0},[n]);const X=n?.getStyles(),H=u.useMemo(()=>gg(o,X),[o,X]),ne=u.useMemo(()=>gg(r,X),[r,X]),{body:oe={},buttonSurface:ye={}}=H,{header:de={},headerSelect:xe={},headerSelectAll:we={}}=ne,ve=u.useRef(null),[re,ce]=u.useState(()=>n?.getView()),Se=(re?.getZoomScale()??100)/100,ie=u.useMemo(()=>({vertical:re.isShowColumnGridlines()&&Se>=.4,horizontal:re.isShowRowGridlines()&&Se>=.4}),[re?.isShowColumnGridlines(),re?.isShowRowGridlines(),Se]),Y=u.useMemo(()=>{if(re?.getGridLineColor())return{strokeDasharray:"1,1"}},[re?.getGridLineColor(),H]),le=a??re?.isShowColumnHeaders(),ee=c??re?.isShowRowHeaders(),[Pe,Te]=u.useState({width:0,height:0}),rt=u.useMemo(()=>{let Ze=40,be=20;const St=n?.getStyles().getNormal().getFont();if(Pe.width>0&&Pe.height>0){const q=St?.toCSS()?.fontFamily??H.header.text.fontFamily,Ce=St?.getSize()??H.header.text.fontSize,Z=$.IFont.getSharedMeasurer()(""+Pe.height,Math.ceil(Ce*$.IFont.getDeviceScale()),q);Ze=Z.width,be=Z.lineHeight}return{width:Math.round(Ze+5),height:Math.round(be+3)}},[Pe,H?.header.text,n]),Ve=ee?Se*rt.width:de.edgeStrokeWidth,Ee=le?Se*rt.height:de.edgeStrokeWidth,Re=Math.max(F,(n?.getColumnHeaders().getDefaultSize()??rt.width)+Ve+1),Xe=Math.max(B,(n?.getRowHeaders().getDefaultSize()??rt.height)+Ee+1),Be=u.useRef(new Map),ct=u.useRef(null),Qe=()=>({getColOffset:Ze=>n.getColumnHeaders().findOffset(Ze),getColIndex:Ze=>n.getColumnHeaders().findIndex(Ze),getRowOffset:Ze=>n.getRowHeaders().findOffset(Ze),getRowIndex:Ze=>n.getRowHeaders().findIndex(Ze)}),[he,Ye]=u.useState(()=>Qe()),[ke,Ie]=u.useState(!1),[ue,De]=u.useState(null),Ae=!0,W=H.selection?.strokeFill,Q=u.useCallback(()=>pr.current,[]),[K,se]=u.useState(),te=_e(Ze=>{se(Ze),n&&n.getView()&&n.getView().setTopLeft(Ze?{left:Ze.left,top:Ze.top}:null),h?.(Ze)},[n,h]),ae=u.useRef(null);u.useEffect(()=>{if(!K||!n)return;const Ze=n.getRangeAtBounds({x:K.left,y:K.top,width:K.width,height:K.height});ae.current?.(),ae.current=Ze.addListener(()=>{const be=Ze.getCoords();ve?.current?.invalidate(be)})},[K,n]);const[pe,me]=u.useState(()=>n?.getView().getTopLeft()),fe=_e(Ze=>{const be=Go.cellToRange(Ze);if(n.isClosed())return be;const St=n.getRange(be,{excludeHidden:!0}).getMerges();return St.length===0?be:St[0]},[n]),je=Ze=>{if(!Ze||Ze.coords.colIndex===0&&Ze.coords.rowIndex===0)return null;const be={};return Ze.coords.colIndex>0&&(be[zo.Left]={index:Ze.coords.colIndex,scrollOffset:Ze.topLeft.left}),Ze.coords.rowIndex>0&&(be[zo.Top]={index:Ze.coords.rowIndex,scrollOffset:Ze.topLeft.top}),be},[Fe,Ge]=u.useState(()=>je(n.getView().getFreezePanes())),et=Hi(),tt=u.useCallback(()=>ve.current,[]),it=_e(Ze=>{et.setMode(be=>be?.key==="edit"?{...be,args:{...be.args}}:{key:"edit",args:{stateAndCoords:null,start:Ze}})},[]),At=_e(()=>K,[K]),Lt=function(Ze){const{sheet:be,onRepeatCommandChange:St,bodyStyle:q,commands:Ce,target:Z,notifier:ge,onStartEdit:We,getViewport:mt}=Ze,[Ue,Ut]=u.useState(null),[Mt,Bt]=u.useState(null),qt=u.useRef(null),fn=_e(We,[We]),Ht=_e(mt,[mt]),[Nt,io]=u.useState(),[Ct,an]=u.useState(()=>be?.getStyles().parseColor($.IColor.Scheme.Bg2)),[go,dn]=u.useState(()=>be?.getStyles().getNormal().getFont().getFill()),Kt=Hi();u.useRef(Kt.getMode()).current=Kt.getMode();const vo=hb(),[Bo,Kl]=u.useState(Xt.EmptyArray),Gl=u.useCallback(()=>{if(qt.current!==be)return;const Me=be.getSelectedRanges();let ot=null;Bo.length>0&&Go.isCellWithinRange(Ue,Bo[0].getRange().getCoords())&&(ot=Bo[0]);const dt=be?.getSelectedCell(),Ke=dt?.getCoords()??null;yo.unstable_batchedUpdates(()=>{W2(ot),Ut(Ke),Bt(Me)})},[be,Bo,Mt,Ue]),H2=u.useCallback(Xt.debounce(Gl,210),[Gl]);u.useEffect(()=>{qt.current=be,Gl()},[be]);const ar=_e(()=>be.getRange(Ue).getCell(),[be,Ue]),wo=_e(async(Me,ot,dt=null,Ke=!1,ht=!0)=>{const bt=Me?.label?.(),yn=async()=>{const un=await Promise.resolve(ht&&ge?.showBusy?.(bt??"Busy..."));try{await be.doBatch(async()=>ot(be),bt),Ke&&Kt.setMode(null),un&&un()}catch(ao){if(un&&un(),!ao)return;ge?.showError?.(ao)}},xn=[];let ln=!1;const Sn=async()=>(xn.push(yn),(async()=>{if(!ln){for(ln=!0;xn.length>0;){const un=xn.shift();un&&await un()}ln=!1}})());if(St){let un=null;if(dt!==!1&&Me){const ao=dt??bt;un=new Tt(Me.key(),Z,{label:ao,description:ao},Sn)}St(un)}return Sn()},[be,St,ge]),Jt=_e((Me,ot,dt=!1,Ke)=>wo(Me,ht=>{const bt=ht.getSelectedRanges();dt&&bt.updateStyle(null,Ke),bt.updateStyle(ot,Ke),bt.autoFit({expandOnly:$.IRange.Orientation.Column,minContent:!0,skipCustomSize:!0})}),[be]),Yf=_e((Me,ot,dt)=>{wo(Me,Ke=>{let ht=ot;(dt||ot?.address)&&(ht=ht??{},!dt&&ot?.address?.startsWith("#")?dt=ot?.address.substring(1):dt&&(ht.displayText=dt)),Ke.getSelectedRange().setHyperlink(ht)})},[be]),Jf=_e((Me,ot)=>{wo(Me,dt=>{dt.getSelectedRange().setComments(ot)})},[be]),u0=_e((Me,ot)=>{wo(Me,dt=>{dt.getSelectedRanges().clear(ot)})},[be]),rl=_e(async(Me,ot,dt=!1,Ke=!1)=>wo(Me,async ht=>{let bt=ht.getSelectedRanges();dt&&(ot===$.IRange.Orientation.Row?bt=bt.getEntireRows(Ke):ot===$.IRange.Orientation.Column&&(bt=bt.getEntireColumns(Ke)));let yn=null;const xn=Kt.getMode()?.key;if(xn==="copy"||xn==="cut"){const ln=await vo.getClipboard().readReference();ln&&ln.getItemType()==="range"&&(yn=ln.getItem(),yn.getCoords()||(yn=null))}if(yn){const ln=await bt.insertFrom(yn,{...yn.getMarkOptions(),orientation:ot,autoSelect:!0});!ln||ln.isEntireRows()||ln.isEntireColumns()||ln.autoFit({orientations:$.IRange.Orientations.Row,minContent:!0}),Kt.setMode(null)}else bt.insert(ot,{autoSelect:!0})},"Insert Cells",!1),[Kt]),[ha,W2]=u.useState(null),BC=_e(Me=>be.getStyles().setDefaultTableStyle(Me),[be]),NC=_e(Me=>{be.getStyles().getTableStyle(Me)?.delete()},[be]),p0=_e((Me,ot)=>{wo(Me,async dt=>{const Ke=dt.getSelectedRange(),ht=dt.getSelectedCell().getCoords();let bt=null,yn=0;const xn=ht.rowIndex>0?dt.getRange({rowIndex:ht.rowIndex,colIndex:ht.colIndex}).getExtended($.IRange.Direction.Up):null;xn&&dt.getRange({colStart:ht.colIndex,rowStart:xn.getCoords().rowStart,colEnd:ht.colIndex,rowEnd:xn.getCoords().rowStart}).isContentful()&&(bt=$.IRange.Direction.Up,yn=ht.rowIndex-xn.getCoords().rowEnd);const ln=ht.colIndex>0?dt.getRange({rowIndex:ht.rowIndex,colIndex:ht.colIndex-1}).getExtended($.IRange.Direction.Left):null;if(ln&&dt.getRange({colStart:ln.getCoords().colStart,rowStart:ht.rowIndex,colEnd:ln.getCoords().colStart,rowEnd:ht.rowIndex}).isContentful()){const un=ht.colIndex-ln.getCoords().colEnd;(un<yn||!bt)&&(bt=$.IRange.Direction.Left,yn=un)}let Sn=null;if(bt===$.IRange.Direction.Up){if(Sn={...xn.getCoords()},(Sn.rowEnd===ht.rowIndex||!dt.getRange({colIndex:ht.colIndex,rowIndex:ht.rowIndex-1}).isContentful())&&Sn.rowStart>0&&dt.getRange({colIndex:ht.colIndex,rowIndex:Sn.rowStart-1}).isContentful()){const un=xn.getExtended($.IRange.Direction.Up);Sn={colStart:ht.colIndex,rowStart:un.getCoords().rowStart,colEnd:ht.colIndex,rowEnd:xn.getCoords().rowEnd}}Sn.rowEnd=ht.rowIndex-1}else if(bt===$.IRange.Direction.Left){if(Sn={...ln.getCoords()},(Sn.colEnd===ht.colIndex||!dt.getRange({colIndex:ht.colIndex-1,rowIndex:ht.rowIndex}).isContentful())&&Sn.colStart>0&&dt.getRange({colIndex:Sn.colStart-1,rowIndex:ht.rowIndex}).isContentful()){const un=ln.getExtended($.IRange.Direction.Left);Sn={colStart:un.getCoords().colStart,rowStart:ht.rowIndex,colEnd:un.getCoords().colEnd,rowEnd:ht.rowIndex}}Sn.colEnd=ht.colIndex-1}if(Ke.size!==1&&bt){const un=Ke.getCoords(),ao=Ke.startIncrementalUpdates({orientation:$.IRange.Orientation.Column}),jo={...Sn},wr=un.rowStart,Di=un.rowEnd,Ai=un.colStart,Li=un.colEnd,Nr=bt===$.IRange.Direction.Up;for(let fr=Ai;fr<=Li;fr++){jo.colStart=Nr?fr:Sn.colStart+(fr-Ai),jo.colEnd=Nr?fr:Sn.colEnd+(fr-Ai);for(let No=wr;No<=Di;No++){jo.rowStart=Nr?Sn.rowStart+(No-wr):No,jo.rowEnd=Nr?Sn.rowEnd+(No-wr):No;const Dn=dt.getRange(jo).toString();ao.pushAt(No,fr,`=${ot}(${Dn})`)}}ao.apply()}else{const un=Sn?dt.getRange(Sn).toString():"",ao=`=${ot}(`;fn?.({text:`${ao}${un})`,editMode:!0,initialSelection:{start:ao.length,end:ao.length+un.length}})}},!1)},[be]),j1=_e((Me,ot,dt=!1,Ke=!0)=>{wo(Me,async ht=>{let bt=null;if(ha)return void ha.updateStyleOptions(ot);{const ln=ht.getSelectedRanges().getFixed(!0),Sn=ht.getSelectedRange().getDefaultSortCriteria();let un={ranges:ln,hasHeader:Sn?.options?.hasHeader??!1};bt=Ke?new Promise((ao,jo)=>{const wr={tableOptions:un,onCancel:()=>{jo()},onDone:Di=>{ao(Di)},context:{getNames:()=>ht.getNames()}};ge.showWindow?.("tableNew",wr)}):{option:"Ok",tableOptions:un}}const yn=await Promise.resolve(bt);if(yn?.option!=="Ok")throw null;const xn=await Promise.resolve(ge?.showBusy?.(Me.label()));try{await ht.getTables().add(yn.tableOptions.ranges.at(0),{styleName:ot?.name,clearFormatting:dt,hasHeader:yn.tableOptions.hasHeader}).getRange().select()}catch(ln){xn(),ge?.showError?.(ln)}xn()},!1,!0,!1)},[ha]),Qf=_e(()=>q,[q]),em=_e(Me=>({styles:()=>be.getStyles(),table:()=>Me,bodyStyle:Qf,getNames:()=>be.getNames()}),[be]),$C=_e(async(Me,ot,dt,Ke=!0)=>{let ht=null;if(!ot){let bt=be.getSelectedRange();bt.size===1&&(bt=bt.getSurrounding());let yn=be.getTables().search({address:be.getSelectedRange()});yn.length>0&&(ot=yn[0]),await bt.select()}if(ot){if(Ke){try{dt&&await ot.select()}catch{}ht=new Promise(async(bt,yn)=>{Me.update({context:em(ot)});const xn={command:Me,commands:Oe,notifier:ge,onDone:Sn=>{bt(Sn)}},ln=await ge.showWindow?.("tableDetails",xn,{disableAutoDestroy:!0});setTimeout(()=>{ln.focus()},180)})}Promise.resolve(ht).then(bt=>{},bt=>{ge?.showError?.(bt)})}},[ge]),tm=_e(async(Me,ot,dt=!1)=>{let Ke=null;if(ot)ot.isITable?Ke=ot:ot.getValue()&&(Ke=ot.getValue());else{const ht=be.getTables().search({address:be.getSelectedRange()});ht.length>0&&(Ke=ht[0])}if(Ke){if(!dt){const ht=Ke.getRange().getCoords(),bt=(ht.colEnd-ht.colStart+1)*(ht.rowEnd-ht.rowStart+1);if(bt>1e4&&await ge?.showOptions({title:"Confirm",description:`Converting a table to range with '${bt}' cells will set a large number of cell styles and may affect performance.
199
- Continue?`,options:["Convert","Cancel"],defaultOption:"Convert"})!=="Convert")return}wo(Me,async()=>{dt?Ke.delete():Ke.convertToRange()},!1,!0)}},[ge]),U2=_e((Me,ot,dt)=>{wo(Me,async Ke=>{let ht=Ke.getSelectedRanges();if(ht.getCount()>1)throw new Error("Can not sort on multiple cell ranges. Please select a single range and try again.");let bt=ht.at(0);bt.size===1&&(bt=bt.getSurrounding());const yn=Ke.getSelection().getCoords().cell;let xn=bt.getDefaultSortCriteria($.IRange.Orientation.Row,yn);if(!xn){if(dt)throw new Error("Invalid sort selection. Sort requires a single range with data.");return}let ln=xn.options;if(dt&&(ln=new Promise((un,ao)=>{const jo={range:bt,options:xn.options,cell:yn,onCancel:()=>{ao()},onDone:wr=>{wr?un(wr.options):ao()}};ge.showWindow?.("sort",jo)})),ln=await Promise.resolve(ln),!ln)return;const Sn=await Promise.resolve(ge?.showBusy?.(Me.label()));try{bt.doBatch(()=>{const un={...ln,...ot};bt.sort(un),bt.autoFit({orientations:un?.orientation===$.IRange.Orientation.Column?$.IRange.Orientations.Column:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},Me?.label?.())}catch(un){Sn(),ge?.showError?.(un)}Sn()},!1,!1,!1)},[ge]),VC=_e(()=>{console.log("compactedSelection");const Me=be.getSelection().getCoords(),ot=be.getSelectedRanges().getFlattened().getCoords(),dt=(()=>{const bt=new Blob(["console.log('hello from worker');"],{type:"application/javascript"}),yn=URL.createObjectURL(bt),xn=new Worker(yn);return URL.revokeObjectURL(yn),xn})();setTimeout(()=>{dt.terminate(),console.log("Worker terminated")},5e3);let Ke=-1;for(let bt=0;Ke===-1&&bt<ot.length;bt++)Go.isCellWithinRange(Me.cell,ot[bt])&&(Ke=bt);if(Go.isEqualRangesArrays(Me.ranges,ot))return;const ht={cell:Me.cell,ranges:ot,rangeIndex:Ke};be.getSelection().updateCoords(ht)},[be]),HC=_e(()=>{console.log("selectComments")},[be]),nm=_e(async(Me=!1,ot=!1)=>{let dt=null;if(ot)dt=be.getEntireRange();else{const Ke=be.getSelectedRange();if(Ke.isEntireRange()){const ht=be.getSelection().getCoords().cell,bt=be.getRange(ht);dt=bt.getSurrounding(),dt.isEntireRange()&&(dt=bt)}else dt=Ke.getSurrounding({contentOnly:Me})}dt&&await dt.select()},[be]),h0=_e((Me,ot,dt)=>{wo(Me,async Ke=>{let ht=Ke.getSelectedRanges();dt&&(ot===$.IRange.Orientation.Row?ht=ht.getEntireRows():ot===$.IRange.Orientation.Column&&(ht=ht.getEntireColumns())),ht.delete(ot)},"Delete Cells")},[be]);_e(async Me=>{let ot=null;const dt=Ht(),Ke=Math.min(dt.width-8,480),ht=Math.min(dt.height-8,288);try{be.getSelectedRanges(),ot=await be.getMovables().add({bounds:{x:dt.left+(dt.width-Ke)/2,y:dt.top+(dt.height-ht)/2,width:Ke,height:ht},type:"chart",json:Me.template}),ot.select(),Kt.setMode(null)}catch(bt){ge?.showError?.(bt)}return ot},[be,ge]);const om=_e(async(Me,ot,dt)=>{const Ke=await ge?.showBusy?.(Me.label());try{const ht=await be.getMovables().addImage(ot,{autoSelect:!0,...dt});return Ke(),Kt.setMode(null),ht}catch(ht){Ke();let bt=ht;typeof bt!="string"&&(console.warn(ht),bt="Unable to resolve image."),ge?.showMessage?.(bt,{type:ua.Error})}},[be,ge]),R1=_e((Me,ot)=>{wo(Me,async dt=>{const Ke=dt.getSelectedRanges();Ke.doBatch(()=>{const ht=ot===$.IRange.Direction.Up||ot===$.IRange.Direction.Down,bt=Ke.getCoords().slice().sort(Go.createRangeComparator(ht?$.IRange.Orientation.Row:$.IRange.Orientation.Column));for(let yn=0;yn<bt.length;yn++){const xn=bt[yn];let ln=xn;const Sn=dt.getRange(ln).getMerges();let un=0,ao=0;if(Sn.length>0){const jo=Sn[0];un=jo.rowEnd-jo.rowStart,ao=jo.colEnd-jo.colStart}ot===$.IRange.Direction.Left?ln={...xn,colStart:xn.colEnd+ao}:ot===$.IRange.Direction.Right?ln={...xn,colEnd:xn.colStart+ao}:ot===$.IRange.Direction.Up?ln={...xn,rowStart:xn.rowEnd+un}:ot===$.IRange.Direction.Down&&(ln={...xn,rowEnd:xn.rowStart+un}),dt.getRange(ln).autoFill(xn,{filler:$.AutoFill.Types.Copy}),dt.getRange(xn).autoFit({orientations:$.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})}},{autoSelect:!0,description:Me.label()})})},[ge]),WC=_e(()=>{let Me=null;const ot=be.getSelectedCell().getCoords();if(ot?.rowIndex>0){const dt=be.getRange({rowIndex:ot.rowIndex-1,colIndex:ot.colIndex}).getCell();dt&&(Me=dt.toTextUnformatted(!0))}fn?.({text:Me})},[be]),[f0,UC]=u.useReducer(Me=>Me+1,0),[I1,Zl]=u.useReducer(Me=>Me+1,0),rm=u.useMemo(()=>[new He("gridlinesToggle",Z,{label:"Gridlines",scopedLabels:{view:"Gridlines"},description:"Toggle whether the lines between rows and columns in the sheet are displayed."}),new He("sheetViewToggleGridlinesRows",Z,{label:"Row Gridlines",scopedLabels:{view:"Row Gridlines",gridlines:"Rows"},description:"Toggle whether the lines between rows in the sheet are displayed."}),new He("sheetViewToggleGridlinesColumns",Z,{label:"Column Gridlines",scopedLabels:{view:"Columns Gridlines",gridlines:"Columns"},description:"Toggle whether the lines between columns in the sheet are displayed."}),new He("sheetViewFormatGridlinesColor",Z,{label:"Gridlines Color",description:"Color the rows and column gridlines."}),new He("sheetViewToggleShowHeadings",Z,{label:"Headings",scopedLabels:{view:"Headings"},description:"Toggle whether the row and column headings are displayed."}),new He("sheetViewToggleShowHeadingRows",Z,{label:"Row Headings",scopedLabels:{view:"Row Headings",headings:"Rows"},description:"Toggle whether the row headings are displayed."}),new He("sheetViewToggleShowHeadingColumns",Z,{label:"Column Headings",scopedLabels:{view:"Columns Headings",headings:"Columns"},description:"Toggle whether the column headings are displayed."}),new He("sheetViewToggleShowHeadingsNumeric",Z,{label:"Numeric Headers",description:"Toggle whether cell headings show numbers or A1 conventions.",shortcut:{key:"h",modifiers:[$e.Ctrl,$e.Shift]}}),new He("sheetViewToggleFormulaView",Z,{label:"Show Formulas",description:"Toggle whether cells show formula or values.",shortcut:[{key:"`",modifiers:[$e.Ctrl]},{key:"`",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("sheetViewToggleShowZeros",Z,{label:"Show Zeros",description:"Toggle whether cell with zero value shows '0' or blank."}),new Tt("selectComments",Z,{label:"Select Comments",description:"Select the cells with comments.",shortcut:{key:"O",modifiers:[$e.Ctrl,$e.Shift]}},()=>HC()),new He("selectAll",Z,{label:"Select All",description:"Select the closest data or the entire sheet if no data is nearby.",shortcut:[{key:"A",modifiers:[$e.Ctrl]},{key:"Space",modifiers:[$e.Ctrl,$e.Shift]}]},(Me=!1)=>nm(!1,Me)),new Tt("selectRegion",Z,{label:"Select Region",description:"Select the closest data.",shortcut:{key:"*",modifiers:[$e.Ctrl,$e.Shift]}},()=>nm(!0,!1)),new Tt("breakSelection",Z,{label:"Select Visible",description:"Break the selection based on hidden rows and columns.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Alt]}},()=>VC()),new Tt("formatTextRotate0",Z,{label:"No Text Rotation",description:"Remove all text rotation."}),new Tt("formatTextRotate45",Z,{label:"Angle Clockwise",description:"Angle text 45 degrees downward."}),new Tt("formatTextRotate90",Z,{label:"Rotate Text Down",description:"Angle your text so that it aligns with the left."}),new Tt("formatTextRotate270",Z,{label:"Rotate Text Up",description:"Angle your text so that it aligns with the right."}),new Tt("formatTextRotate315",Z,{label:"Angle Counterclockwise",description:"Angle text 45 degrees upward."}),new He("formatTextRotateCustom",Z,{label:"Custom Text Rotation",description:"Angle your text using a custom angle."}),new Tt("formatTextRotateVertical",Z,{label:"Vertical Text",description:"Stack text vertically."}),new Tt("sortAscending",Z,{label:"Sort Ascending",scopedLabels:{sort:"Ascending"},description:"Lowest to Highest."},function(){U2(this,{reverse:!1},!1)}),new Tt("sortDescending",Z,{label:"Sort Descending",scopedLabels:{sort:"Descending"},description:"Highest to Lowest."},function(){U2(this,{reverse:!0},!1)}),new Tt("sortCustom",Z,{label:"Custom Sort…",scopedLabels:{sort:"Custom…"},description:"Choose more options, such as sorting by multiple columns or rows, and case-sensitive sorts."},function(){U2(this,{},!0)}),new He("protectionSheetToggle",Z,{label:"Protect Sheet",scopedLabels:{sheet:"Protected"},description:`Prevent unwanted changes from others by limiting their ability to edit.
200
- For example, you can prevent people from editing locked cells or making formatting changes.`}),new He("formatSheetTabColor",Z,{label:"Tab Color",description:"Color the tab to help differentiate for other sheets."}),new He("formatCellStyle",Z,{label:"Cell Styles",scopedLabels:{cellStyle:"Apply"},description:"A colorful style is a great way to make important data stand out on the sheet."},function(Me){Jt(this,{named:Me.getName()},!0)}),new He("formatTableStyle",Z,{label:"Format as Table",scopedLabels:{table:"Apply (Keep Styles)"},description:"Create a table or apply style to the current table."},function(Me){j1(this,Me)}),new He("formatTableStyleClearCellStyles",Z,{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(Me){j1(this,Me,!0)}),new He("formatTableStyleClearTableStyle",Z,{label:"Clear Table Style",scopedLabels:{table:"Clear Style"},description:"Remove all the styling that is specific for the table."},function(){j1(this,{name:null},!0)}),new He("setDefaultTableStyle",Z,{label:"Set Default Table Style",scopedLabels:{table:"Set As Default"},description:"Sets the default table style used when a table is inserted."},BC),new He("deleteTableStyle",Z,{label:"Delete Table Style",scopedLabels:{table:"Delete"},description:"Remove the current table style."},NC),new He("formatBorder",Z,{label:"Border",description:"Create an outline border."},function(Me){Jt(this,{border:Me})}),new He("formatFillColor",Z,{label:"Fill Color",description:"Color the background of the cells to make them stand out."},function(Me){Jt(this,{fill:Me})}),new He("formatFontColor",Z,{label:"Font Color",description:"Change the color of your text."},function(Me){Jt(this,{font:{fill:Me}})}),new He("formatBoldToggle",Z,{label:"Bold",description:"Toggle bold formatting of text.",shortcut:[{key:"B",modifiers:[$e.Ctrl]},{key:"2",modifiers:[$e.Ctrl]}]}),new He("formatItalicToggle",Z,{label:"Italic",description:"Toggle italic formatting of text.",shortcut:[{key:"I",modifiers:[$e.Ctrl]},{key:"3",modifiers:[$e.Ctrl]}]}),new He("formatUnderlinedToggle",Z,{label:"Underline",scopedLabels:{underline:"Single"},description:"Underline the text.",shortcut:[{key:"u",modifiers:[$e.Ctrl]},{key:"4",modifiers:[$e.Ctrl]}]}),new He("formatUnderlinedDoubleToggle",Z,{label:"Double Underline",scopedLabels:{underline:"Double"},description:"Double underline the text."}),new He("formatUnderlinedAccountingToggle",Z,{label:"Accounting Underline",scopedLabels:{underline:"Accounting"},description:"Use accounting underline for the text."}),new He("formatUnderlinedAccountingDoubleToggle",Z,{label:"Double Accounting Underline",scopedLabels:{underline:"Double Accounting"},description:"Use accounting double underline the text."}),new He("formatStrikeThroughToggle",Z,{label:"Strikethrough",description:"Toggle strike-through formatting of text.",shortcut:{key:"5",modifiers:[$e.Ctrl]}}),new He("formatSuperscriptToggle",Z,{label:"Superscript",description:"Format your text to be smaller and sit at the top of the line."}),new He("formatSubscriptToggle",Z,{label:"Subscript",description:"Format your text to be smaller and sit at the bottom of the line."}),new He("formatAlignTopToggle",Z,{label:"Align Top",description:"Align text to the top."}),new He("formatTextOverflowVisibleToggle",Z,{label:"Overflow Text",description:"Overflow text to the next cells."}),new He("formatTextOverflowWrapToggle",Z,{label:"Wrap Text",description:"Wrap text with the existing cell and increase the height as required."}),new He("formatTextOverflowClipToggle",Z,{label:"Clip Text",description:"Clip text that falls outside of the existing cell."}),new He("formatTextOverflowShrinkToggle",Z,{label:"Shrink Text",description:"Shrink the text font to fit within existing cell."}),new He("formatTextOverflowEllipsisToggle",Z,{label:"Ellipsis Text",description:"Add a trailing '…' to the text to indicate text is partially hidden."}),new He("formatAlignMiddleToggle",Z,{label:"Align Middle",description:"Align text so that it is centered between the top and bottom of the cell."}),new He("formatAlignBottomToggle",Z,{label:"Align Bottom",description:"Align text to the bottom."}),new He("formatAlignJustifyVerticalToggle",Z,{label:"Justify Vertically",description:"Each 'word' in each line of text inside the cell is evenly distributed across the height of the cell."}),new He("formatAlignDistributedVerticalToggle",Z,{label:"Distribute Vertically",description:"Justify your content vertically."}),new He("formatAlignLeftToggle",Z,{label:"Align Left",description:"Align your content to the left."}),new He("formatAlignCenterToggle",Z,{label:"Align Center",description:"Center your content."}),new He("formatAlignRightToggle",Z,{label:"Align Right",description:"Align your content to the right."}),new He("formatAlignJustifyToggle",Z,{label:"Align Justify",description:"Justify your content."}),new He("formatAlignCenterContinuousToggle",Z,{label:"Center Across",description:"Center your content across multiple cells."}),new He("formatAlignFillToggle",Z,{label:"Fill Across",description:"Repeat the value to fill the entire cell."}),new He("formatAlignDistributedHorizontalToggle",Z,{label:"Distribute Horizontally",description:"Each 'word' in each line of text inside the cell is evenly distributed across the width of the cell."}),new Tt("formatFontSizeIncrease",Z,{label:"Increase Font Size",description:"Make your text a bit bigger.",shortcut:{key:">",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,Me=>({font:{size:zh(Me.getFont().getSize(),!0)}}))}),new Tt("formatFontSizeDecrease",Z,{label:"Decrease Font Size",description:"Make your text a bit smaller.",shortcut:{key:"<",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,Me=>({font:{size:zh(Me.getFont().getSize(),!1)}}))}),new He("formatFontFamily",Z,{label:"Font",description:"Select the font your text."},function(Me){Jt(this,{font:{family:Me}})}),new He("formatFontSize",Z,{label:"Font Size",description:"Change the size of your text."},function(Me){Jt(this,{font:{size:Me}})}),new He("formatNumberDialog",Z,{label:"Custom Number Format",scopedLabels:{numberFormat:"Custom"},description:"Create a custom number format.",shortcut:[{key:"1",modifiers:[$e.Ctrl]},{key:"1",modifiers:[$e.Ctrl,$e.Alt]}]},function(Me,ot){const dt=this,Ke={initialValue:Me??ot.state(),context:ot.context(),onInputOption:(ht,bt)=>{Jt(dt,{numberFormat:ht})}};ge.showWindow?.("numberFormat",Ke)}),new He("formatNumberFormat",Z,{label:"Number Format",description:"Choose the format for your cells, such as percentage, currency, date or time."},function(Me){Jt(this,{numberFormat:Me})}),new He("formatNumberFormatGeneralStyle",Z,{label:"General Style",description:"Remove all specific formatting.",shortcut:{key:"Backquote",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:$.NumberFormat.Type.General})}),new He("formatNumberFormatNumberStyle",Z,{label:"Number Style",description:"Format as number with two decimals and comma.",shortcut:{key:"1",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:"#,##0.00"})}),new He("formatNumberFormatTimeStyle",Z,{label:"Time Style",description:"Format as time with hour and minute, and AM or PM.",shortcut:{key:"2",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:"h:mm AM/PM"})}),new He("formatNumberFormatDateStyle",Z,{label:"Date Style",description:"Format as date with day, month, and year.",shortcut:{key:"3",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:"d-mmm-yy"})}),new He("formatNumberFormatAccountingStyle",Z,{label:"Accounting Style",description:"Format as Dollars, Euros, or other currency.",shortcut:{key:"4",modifiers:[$e.Ctrl,$e.Shift]}},function(Me){Jt(this,{numberFormat:Me??'_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)'})}),new He("formatNumberFormatPercentStyle",Z,{label:"Percent Style",description:"Format as a percent with no decimal places.",shortcut:{key:"5",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:"0%"})}),new He("formatNumberFormatScientificStyle",Z,{label:"Scientific Style",description:"Format as a scientific number with two decimal places .",shortcut:{key:"6",modifiers:[$e.Ctrl,$e.Shift]}},function(){Jt(this,{numberFormat:"0.00E+00"})}),new He("formatNumberFormatCommaStyle",Z,{label:"Comma Style",description:"Format with a thousands separator.",shortcut:{key:",",modifiers:[$e.Ctrl]}},function(){Jt(this,{numberFormat:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)'})}),new He("formatNumberFormatIncreaseDecimal",Z,{label:"Increase Decimal",description:"Show more decimal places for a more precise value."},function(){Jt(this,Me=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Me.getNumberFormat(),1)}))}),new He("formatNumberFormatDecreaseDecimal",Z,{label:"Decrease Decimal",description:"Show few decimal places."},function(){Jt(this,Me=>({numberFormat:$.NumberFormat.Parser.adjustDecimalPlaces(Me.getNumberFormat(),-1)}))}),new He("displayPlaceholdersToggle",Z,{label:"Display Placeholders",description:"Switch between hiding objects, displaying objects, and displaying placeholders for objects.",shortcut:{key:"6",modifiers:[$e.Ctrl]}}),new Tt("noOp",Z,{label:"Do nothing",description:"Do Nothing.",shortcut:{key:"7",modifiers:[$e.Ctrl]}},function(){}),new He("displayOutlineSymbolsToggle",Z,{label:"Display Outline Symbols",description:"Display or hide the outline symbols.",shortcut:{key:"8",modifiers:[$e.Ctrl]}}),new He("hideRows",Z,{label:"Hide Rows",description:"Hide the rows.",shortcut:{key:"9",modifiers:[$e.Ctrl]}}),new He("unhideRows",Z,{label:"Unhide Rows",description:"Unhide the rows.",shortcut:{key:"(",modifiers:[$e.Ctrl,$e.Shift]}}),new He("hideColumns",Z,{label:"Hide Columns",description:"Hide the columns.",shortcut:[{key:"0",modifiers:[$e.Ctrl]},{key:"0",modifiers:[$e.Ctrl,$e.Alt]}]}),new He("unhideColumns",Z,{label:"Unhide Columns",description:"Unhide the columns.",shortcut:{key:")",modifiers:[$e.Ctrl,$e.Shift]}}),new He("quickFormulaSum",Z,{label:"Quick Sum",scopedLabels:{quickFormula:"Sum"},description:"Quick sum of the cells.",shortcut:{key:"=",modifiers:[$e.Alt]}},function(){p0(this,"SUM")}),new He("quickFormulaAverage",Z,{label:"Quick Average",scopedLabels:{quickFormula:"Average"},description:"Quick average of the cells."},function(){p0(this,"AVERAGE")}),new He("quickFormulaCount",Z,{label:"Quick Count",scopedLabels:{quickFormula:"Count Numbers"},description:"Quick count of the cells."},function(){p0(this,"COUNT")}),new He("quickFormulaMax",Z,{label:"Quick Max",scopedLabels:{quickFormula:"Max"},description:"Quick maximum of the cells."},function(){p0(this,"MAX")}),new He("quickFormulaMin",Z,{label:"Quick Min",scopedLabels:{quickFormula:"Min"},description:"Quick minimum of the cells."},function(){p0(this,"MIN")}),new He("startEditCurrentTime",Z,{label:"Current Time",description:"Insert the current time.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl,$e.Shift]}},function(){fn?.({text:be.createTemporaryCell({value:e1(),style:{numberFormat:"Medium Time"}}).toText()})}),new He("startEditCurrentDate",Z,{label:"Current Date",description:"Insert the current date.",shortcut:{key:"Semicolon",modifiers:[$e.Ctrl]}},function(){fn?.({text:be.createTemporaryCell({value:e1(),style:{numberFormat:"Short Date"}}).toText()})}),new Tt("sheetZoomOut",Z,{label:"Zoom Out",description:"Zoom out to see less detail but more area.",shortcut:[{key:"-",modifiers:[$e.Ctrl,$e.Alt]},{key:"NumpadSubtract",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("sheetZoomIn",Z,{label:"Zoom In",description:"Zoom in to see more detail but less area.",shortcut:[{key:"=",modifiers:[$e.Ctrl,$e.Alt]},{key:"NumpadAdd",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("sheetZoom100",Z,{label:"Zoom 100%",description:"Zoom document to 100%.",shortcut:{key:"o",modifiers:[$e.Ctrl,$e.Alt]}}),new He("insertFunction",Z,{label:"Insert Function",disabled:!0,scopedLabels:{insert:"Function",quickFormula:"More Functions..."},description:"Work with the formula in the current cell.",shortcut:{key:"F3",modifiers:[$e.Shift]}},function(Me,ot){console.log("insertFunction")}),new He("updateHyperlink",Z,{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:()=>ar,shortcut:[{key:"K",modifiers:[$e.Ctrl]},{key:"K",modifiers:[$e.Ctrl,$e.Alt]}]},async function(Me,ot){const dt=this,Ke={context:ot.context(),onUpdateHyperlink:(ht,bt)=>{Yf(dt,ht,bt)}};ge.showWindow?.("hyperlink",Ke)}),new He("openHyperlink",Z,{label:"Open Link",scopedLabels:{hyperlink:"Open"},shortcut:{key:"Enter",modifiers:[$e.Ctrl]},description:"Open the hyperlink or goto another location within this document.",context:()=>ar},async(Me,ot)=>{const dt=ot.context()();if(!dt)return;const Ke=dt.getHyperlink();if(Ke)try{await Ke.open()}catch(ht){ge?.showError?.(ht)}}),new He("deleteHyperlink",Z,{label:"Delete Link",scopedLabels:{hyperlink:"Delete"},description:"Remove the hyperlink.",context:()=>ar},function(Me,ot){Yf(this,null,null)}),new Tt("insertNote",Z,{label:"Insert Note",scopedLabels:{contextMenu:"Insert Note…",insert:"Note"},shortcut:{key:"F2",modifiers:[$e.Shift]},description:"Add a note to the cell."},(Me,ot)=>{var dt,Ke;dt=ge,Ke=ot.label(),dt?.showMessage?.(s.jsxs("p",{style:{marginTop:"0px",marginBottom:"0px"},children:[Ke," is not yet implemented.",s.jsx("br",{}),s.jsx("br",{}),"Please see the ",s.jsx("a",{style:{whiteSpace:"nowrap"},href:"https://www.sheetxl.com/docs/introduction/roadmap",target:"_blank",rel:"noopener",children:"SheetXL Roadmap"}),"."]}))}),new He("updateComments",Z,{label:"Comments",scopedLabels:{contextMenu:"Insert Comments…",insert:"Comments…"},shortcut:{key:"M",modifiers:[$e.Ctrl,$e.Alt]},description:"Add a comment to the current cell.",context:()=>ar},async function(Me,ot){const dt=this,Ke={context:ot.context(),onUpdateComments:ht=>{Jf(dt,ht)}};ge.showWindow?.("comments",Ke)}),new He("deleteComments",Z,{label:"Delete Comments",description:"Remove any comments.",context:()=>ar},function(Me,ot){Jf(this,null)}),new He("insertImageFromFile",Z,{label:"Insert Image",scopedLabels:{contextMenu:"Insert Image…",insert:"Image…",insertImage:"From Device…"},description:"Insert a picture from your device."},async function(Me=null){let ot=null,dt=null;typeof Me=="string"?dt=Me:ot=Me?.file?Me.file:Me,(ot||(ot=await Xt.openFileDialog(dt??"image/*"),ot))&&await om(this,{file:ot},Me?.options)}),new He("insertImageFromURL",Z,{label:"Insert Image From Web",scopedLabels:{insert:"Image From Web",insertImage:"From the Web…"},description:"Insert a picture from the web."},async function(Me){if(!Me){const ot=await ge?.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(ot.option!=="Insert")return;Me=ot.input}Me&&om(this,{fetch:Me})}),new Tt("insertTable",Z,{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:[$e.Ctrl]},{key:"T",modifiers:[$e.Alt,$e.Ctrl]}]},function(){j1(this)}),new He("editTable",Z,{label:"Edit Table…",scopedLabels:{table:"Edit…",namedItem:"Edit…"},description:"Edit the table to adjust formatting, sorting, filtering, or other advanced features."},function(Me){let ot=null,dt=!1;Me.isITable?ot=Me:Me.getValue()&&(ot=Me.getValue(),dt=!0),$C(this,ot,dt)}),new He("deleteTable",Z,{label:"Delete Table",scopedLabels:{delete:"Table",table:"Delete",namedItem:"Delete"},description:`Remove the table.
201
-
202
- The table and table specific styling will be removed but the values will be preserved.`},function(Me){tm(this,Me,!0)}),new He("convertTableToRange",Z,{label:"Convert To Range",description:`Convert the table into a normal range of cells.
203
-
204
- The values and the formatting are preserved.`},function(Me){tm(this,Me,!1)}),new He("tableTotalRowToggle",Z,{label:"Toggle Table Total Row",description:"Toggle Total Row on/off.",scopedLabels:{table:"Total Row"},shortcut:{key:"T",modifiers:[$e.Ctrl,$e.Alt]}},function(){const Me=this.context().table();Me&&Me.setShowTotals(!Me.getShowTotals())}),new He("tableHeaderRowToggle",Z,{label:"Toggle Table Header Row",description:"Toggle Header Row on/off.",scopedLabels:{table:"Header Row"}},function(){const Me=this.context().table();Me&&Me.setShowHeaders(!Me.getShowHeaders())}),new He("autoFilterToggle",Z,{label:"Toggle Filter",scopedLabels:{filter:"Filter"},description:"Toggle Auto Filter on/off.",shortcut:{key:"L",modifiers:[$e.Ctrl,$e.Shift]}},function(){const Me=this.context().table();Me&&Me.setShowFilterButton(!Me.getShowFilterButton())}),new He("autoFilterReapply",Z,{label:"Reapply Filter",scopedLabels:{filter:"Reapply"},description:"Reapply the filter and sort with the latest changes.",shortcut:{key:"L",modifiers:[$e.Ctrl,$e.Alt]}}),new He("autoFilterClear",Z,{label:"Clear Filter",scopedLabels:{filter:"Clear"},description:"Clear the filters criteria from the current filter.."}),new Tt("startEditValueAbove",Z,{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:[$e.Ctrl]},{key:'"',modifiers:[$e.Ctrl,$e.Shift]}]},WC),new He("formatPainterToggle",Z,{label:"Format Painter",description:"Apply style to another part of your workbook."}),new Tt("insertCells",Z,{label:"Insert Cells",scopedLabels:{insertCells:"At Selection"},description:"Inserts cells at the current selection.",shortcut:{key:"=",modifiers:[$e.Ctrl,$e.Shift]}},function(){rl(this)}),new Tt("insertCellsShiftRight",Z,{label:"Insert Cells (Shift Right)",scopedLabels:{insertCells:"Shift Right"},description:"Insert cells to the left and shift the current cells to the right."},function(){rl(this,$.IRange.Orientation.Column)}),new Tt("insertCellsShiftDown",Z,{label:"Insert Cells (Shift Down)",scopedLabels:{insertCells:"Shift Down"},description:"Insert cells above and shift the current cells downward."},function(){return rl(this,$.IRange.Orientation.Row)}),new Tt("insertRows",Z,{label:"Insert Row(s)",scopedLabels:{insertCells:"Row(s)"},description:"Insert a row above the current position."},function(){return rl(this,$.IRange.Orientation.Row,!0)}),new Tt("insertColumns",Z,{label:"Insert Column(s)",scopedLabels:{insertCells:"Column(s)"},description:"Insert a column before the current position."},function(){return rl(this,$.IRange.Orientation.Column,!0)}),new Tt("insertRowsAfter",Z,{label:"Insert Row Below",scopedLabels:{insertCells:"Row Below"},description:"Insert a row below the current position."},function(){return rl(this,$.IRange.Orientation.Row,!0,!0)}),new Tt("insertColumnsAfter",Z,{label:"Insert Column After",scopedLabels:{insertCells:"Column After"},description:"Insert a column after the current position."},function(){return rl(this,$.IRange.Orientation.Column,!0,!0)}),new Tt("deleteCells",Z,{label:"Delete Cells",scopedLabels:{deleteCells:"At Selection"},description:"Delete the cells.",shortcut:{key:"-",modifiers:[$e.Ctrl]}},function(){return h0(this)}),new Tt("deleteCellsShiftUp",Z,{label:"Delete Cells (Shift Up)",scopedLabels:{deleteCells:"Shift up"},description:"Delete cells the current current downward."},function(){return h0(this,$.IRange.Orientation.Row)}),new Tt("deleteCellsShiftLeft",Z,{label:"Delete Cells (Shift Left)",scopedLabels:{deleteCells:"Shift Left"},description:"Delete cells the current cells to the right."},function(){return h0(this,$.IRange.Orientation.Column)}),new Tt("deleteRows",Z,{label:"Delete Rows",scopedLabels:{deleteCells:"Rows"},description:"Delete the rows at the current selection."},function(){return h0(this,$.IRange.Orientation.Row,!0)}),new Tt("deleteColumns",Z,{label:"Delete Columns",scopedLabels:{deleteCells:"Columns"},description:"Delete the columns at the current selection."},function(){return h0(this,$.IRange.Orientation.Column,!0)}),new Tt("flashFill",Z,{label:"Flash Fill",description:"Do a flash fill.",shortcut:[{key:"e",modifiers:[$e.Ctrl]},{key:"e",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("fillDown",Z,{label:"Fill Down",description:"Copy the top-most value from the selection to the bottom of the selection.",shortcut:{key:"d",modifiers:[$e.Ctrl]}},function(){return R1(this,$.IRange.Direction.Down)}),new Tt("fillRight",Z,{label:"Fill Right",description:"Copy the left-most value from the selection to the right of the selection.",shortcut:[{key:"r",modifiers:[$e.Ctrl]}]},function(){return R1(this,$.IRange.Direction.Right)}),new Tt("fillUp",Z,{label:"Fill Up",description:"Copy the bottom-most value from the selection to the top of the selection."},function(){return R1(this,$.IRange.Direction.Up)}),new Tt("fillLeft",Z,{label:"Fill Left",description:"Copy the right-most value from the selection to the left of the selection."},function(){return R1(this,$.IRange.Direction.Left)}),new Tt("formatBorderAddOutline",Z,{label:"Add Outline Border",description:"Apply an outline border.",shortcut:{key:"7",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Jt(this,{border:{left:{style:$.IBorder.StrokeStyle.Thin,color:null},top:{style:$.IBorder.StrokeStyle.Thin,color:null},right:{style:$.IBorder.StrokeStyle.Thin,color:null},bottom:{style:$.IBorder.StrokeStyle.Thin,color:null}}})}),new Tt("formatBorderClearOutline",Z,{label:"Remove Outline Border",description:"Remove the outline border.",shortcut:{key:"_",modifiers:[$e.Ctrl,$e.Shift]}},function(){return Jt(this,{border:null})}),new Tt("formatIndentDecrease",Z,{label:"Decrease Indent",description:"Move your content closer to the border."},function(){return Jt(this,Me=>{const ot=Me.getAlignment().getIndent()-1;return{alignment:{indent:ot>0?ot:0}}})}),new Tt("formatIndentIncrease",Z,{label:"Increase Indent",description:"Move your content further from the border."},function(){return Jt(this,Me=>{const ot={alignment:{indent:Me.getAlignment().getIndent()+1}};return Me.getAlignment().getHorizontal()===$.ITextFrame.HorizontalAlignment.General&&(ot.alignment.horizontal=$.ITextFrame.HorizontalAlignment.Left),ot})}),new He("mergeToggle",Z,{label:"Merge",description:"Combine and center the contents into a single cell.",shortcut:{key:"m",modifiers:[$e.Ctrl]}}),new Tt("mergeHorizontal",Z,{label:"Merge Horizontally",description:"Combine the contents into horizontal rows."}),new Tt("mergeVertical",Z,{label:"Merge Vertically",description:"Combine the contents into vertical columns."}),new Tt("unmerge",Z,{label:"Unmerge",description:"Split merged cells into multiple cells."}),new Tt("clearContents",Z,{label:"Clear Contents",scopedLabels:{clear:"Contents"},description:`Clear only the contents in the cells.
205
-
206
- The formatting is not cleared.`,shortcut:{key:"Delete"}},function(){u0(this,$.ICell.Content.Values)}),new Tt("clearFormats",Z,{label:"Clear Formats",scopedLabels:{clear:"Formats"},description:"Clear only the formatting that is applied to the cells."},function(){u0(this,$.ICell.Content.Formats)}),new Tt("clearHyperlinks",Z,{label:"Clear Hyperlinks",scopedLabels:{clear:"Hyperlinks"},description:"Clear only the hyperlinks in the cells."},function(){u0(this,$.ICell.Content.Hyperlinks)}),new Tt("clearComments",Z,{label:"Clear Comments",scopedLabels:{clear:"Comments"},description:"Clear the comments from the cells."},function(){u0(this,$.ICell.Content.Comments)}),new Tt("clearAll",Z,{label:"Clear All",scopedLabels:{clear:"All"},description:`Clears everything from the cells.
207
-
208
- All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[$e.Ctrl,$e.Shift]}},function(){u0(this)}),new He("freezeToggle",Z,{label:"Freeze Panes",description:"Keep rows and columns visible while the rest of the sheet scrolls (based on current selection)."}),new He("freezeToggleHorizontal",Z,{label:"Freeze Top Rows",description:"Keep the top rows visible while scrolling through the rest of the sheet."}),new He("freezeToggleVertical",Z,{label:"Freeze Left Columns",description:"Keep the left columns visible while scrolling through the rest of the sheet."}),new Tt("unfreeze",Z,{label:"Unfreeze Panes",description:"Unfreeze both the rows and columns."}),new Tt("autoFitRows",Z,{label:"Autofit Rows",description:"Adjust the rows to the best height."}),new Tt("autoFitColumns",Z,{label:"Autofit Columns",description:"Adjust the columns to the best width."})],[]),Oe=u.useMemo(()=>{let Me=null;return Me=Ce?Ce.createChildGroup(Z,"sheet",!1):new r0(Z,"sheet"),Me.addCommands(rm,!0),Me},[Ce,rm]),[m0,qC]=u.useState(!1),[g0,KC]=u.useState(!1);u.useEffect(()=>{if(qt.current!==be||!Mt)return;const Me=Mt.getCoords(),ot=be.getTables().search({address:Me[0]});Kl(yn=>Xt.isEqualArrays(yn,ot)?yn:ot),Ue&&ot[0]&&Go.isCellWithinRange(Ue,ot[0].getRange().getCoords())?W2(ot[0]??null):W2(null);const dt=be.getSelectedRanges(),Ke=dt.getMerges().length>0,ht=dt.isOverlapping();let bt=!0;for(let yn=0;bt&&yn<Me.length;yn++)bt=Go.isSingleCell(Me[yn]);KC(ht),qC(ot.length===0&&!ht&&(Ke||!bt))},[I1,Mt,be]),_o(Ce,null,{onChange:()=>{const Me=Kt.getMode()?.key==="formatPainter";Oe.getCommand("formatPainterToggle").update({disabled:!Ce?.getCommand("copy"),state:()=>Me}).updateCallback(()=>Me?void Kt.setMode(null):Oe.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`}}))}},[Kt,f0,Ce]),sn(be.getView(),{onFreezeSplitChange:()=>{Zl()}}),sn(be.getSelection(),{onChange:()=>{H2()}});const P1=()=>{Oe.getCommand("sheetViewFormatGridlinesColor").update({state:()=>be.getView().getGridLineColor(),context:()=>({onColorSelect:Me=>{},darkMode:q.darkMode,autoColor:be.getStyles().parseColor(q.strokeFill),schemeLookup:be.getStyles().schemeLookup(),recentColors:()=>be.getStyles().recentColors(),addRecentColor:Me=>be.getStyles().addRecentColor(Me),clearRecentColors:()=>be.getStyles().clearRecentColors()})}),Oe.getCommand("formatSheetTabColor").updateCallback(Me=>{be.setTabColor(Me)}).update({state:()=>be?.getTabColor()??wd,context:()=>({onColorSelect:Me=>{},darkMode:q.darkMode,autoColor:wd,schemeLookup:be.getStyles().schemeLookup(),recentColors:()=>be.getStyles().recentColors(),addRecentColor:Me=>be.getStyles().addRecentColor(Me),clearRecentColors:()=>be.getStyles().clearRecentColors()})})},q2=()=>{Oe.getCommand("formatBorder").update({context:()=>({onBorderSelect:Me=>{io(Me)},darkMode:q.darkMode,quickBorder:Nt,autoColor:be.getStyles().getNormal().getFont().getFill(),autoStyle:$.IBorder.StrokeStyle.Thin,createTemporaryBorder:Me=>be.getStyles().getNormal().createTemporaryStyle({border:Me}).getBorder(),schemeLookup:be.getStyles().schemeLookup()})})};u.useEffect(()=>{q2()},[Nt]),u.useEffect(()=>{const Me=!be.getProtection().isInsertHyperlinksAllowed();Oe.getCommand("openHyperlink").update({disabled:!ar().getHyperlink()}),Oe.getCommand("deleteHyperlink").update({disabled:Me||!ar().getHyperlink()});const ot=ar().getHyperlink()?"Edit":"Insert",dt="Link";Oe.getCommand("updateHyperlink").update({label:()=>(ar().getHyperlink(),`${ot} ${dt}`),scopedLabels:{contextMenu:`${ot} ${dt}…`,insert:`${dt}…`,hyperlink:`${ot}…`},disabled:Me})},[ar()?.getHyperlink(),f0]),u.useEffect(()=>{const Me=ar().getComments(),ot=()=>Me?"Edit":"Insert",dt=()=>Me?"Comments":"Comment";Oe.getCommand("updateComments").update({label:()=>`${ot()} ${dt()}`,scopedLabels:{contextMenu:`${ot()} ${dt()}…`,insert:`${dt()}…`}})},[ar()?.getComments(),f0]),sn(be,{onViewChange:()=>{const Me=be.getView();Oe.getCommand("sheetViewToggleFormulaView").update({state:Me.isShowFormulas()}),Oe.getCommand("sheetViewToggleShowZeros").update({state:Me.isShowZeros()}),Oe.getCommand("gridlinesToggle").update({state:Me.isShowColumnGridlines()||Me.isShowRowGridlines()}),Oe.getCommand("sheetViewToggleGridlinesColumns").update({state:Me.isShowColumnGridlines()}),Oe.getCommand("sheetViewToggleGridlinesRows").update({state:Me.isShowRowGridlines()}),Oe.getCommand("sheetViewToggleShowHeadings").update({state:Me.isShowColumnHeaders()||Me.isShowRowHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingColumns").update({state:Me.isShowColumnHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingRows").update({state:Me.isShowRowHeaders()}),Oe.getCommand("sheetViewToggleShowHeadingsNumeric").update({state:()=>be.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&be.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero}),P1()},onTabColorChange:()=>{P1()},onMergesChange:()=>{Zl()},onMovablesChange:()=>{Zl()},onTablesChange:()=>{Zl()},onProtectionChange:()=>{Zl(),UC()},onStyleChange:()=>{P1(),q2(),Zl()}}),u.useEffect(()=>{P1(),q2()},[q]),u.useEffect(()=>{const Me=!be.getProtection().isFormatCellsAllowed(),ot=Bo.length>0&&!ha||Me,dt=em(ha),Ke={context:dt};Oe.getCommand("editTable").update(Ke),Oe.getCommand("deleteTable").update(Ke),Oe.getCommand("convertTableToRange").update(Ke);const ht={context:dt,disabled:ot};Oe.getCommand("formatTableStyle").update({label:ha?"Apply Table Style":"Format As Table",...ht}),Oe.getCommand("formatTableStyleClearCellStyles").update(ht),Oe.getCommand("deleteTableStyle").update(ht),Oe.getCommand("convertTableToRange").update(ht),Oe.getCommand("insertTable").update({disabled:ot||Bo.length>0});const bt={context:dt,disabled:ot||Bo.length===0};Oe.getCommand("tableHeaderRowToggle").update(bt),Oe.getCommand("tableTotalRowToggle").update(bt),Oe.getCommand("autoFilterToggle").update(bt),Oe.getCommand("formatTableStyleClearTableStyle").update({...bt,disabled:bt.disabled||!ha||ha.getStyleOptions().name===null})},[ha,Bo,f0]),u.useEffect(()=>{Oe.getCommand("sheetZoomOut").updateCallback(()=>{be.getView().update({zoomScale:Xt.findNextStep(be.getView().getZoomScale(),!1)})}),Oe.getCommand("sheetZoomIn").updateCallback(()=>{be.getView().update({zoomScale:Xt.findNextStep(be.getView().getZoomScale())})}),Oe.getCommand("sheetZoom100").updateCallback(()=>{be.getView().update({zoomScale:100})}),Oe.getCommand("gridlinesToggle").updateCallback(()=>{const Me=be.getView().isShowColumnGridlines()&&be.getView().isShowRowGridlines();be.getView().update({showColumnGridlines:!Me,showRowGridlines:!Me})}),Oe.getCommand("sheetViewToggleGridlinesRows").updateCallback(()=>{be.getView().update({showRowGridlines:!be.getView().isShowRowGridlines()})}),Oe.getCommand("sheetViewToggleGridlinesColumns").updateCallback(()=>{be.getView().update({showColumnGridlines:!be.getView().isShowColumnGridlines()})}),Oe.getCommand("sheetViewFormatGridlinesColor").updateCallback(Me=>{be.getView().update({gridLineColor:Me})}),Oe.getCommand("sheetViewToggleShowHeadings").updateCallback(()=>{const Me=be.getView().isShowColumnHeaders()&&be.getView().isShowRowHeaders();be.getView().update({showColumnHeaders:!Me,showRowHeaders:!Me})}),Oe.getCommand("sheetViewToggleShowHeadingColumns").updateCallback(()=>{be.getView().update({showColumnHeaders:!be.getView().isShowColumnHeaders()})}),Oe.getCommand("sheetViewToggleShowHeadingRows").updateCallback(()=>{be.getView().update({showRowHeaders:!be.getView().isShowRowHeaders()})}),Oe.getCommand("sheetViewToggleShowHeadingsNumeric").updateCallback(()=>{const Me=be.getView().getColumnHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero&&be.getView().getRowHeaderStyle()===$.ISheetView.HeaderTextStyle.Zero;be.getView().update({columnHeaderStyle:Me?$.ISheetView.HeaderTextStyle.A1:$.ISheetView.HeaderTextStyle.Zero,rowHeaderStyle:Me?$.ISheetView.HeaderTextStyle.One:$.ISheetView.HeaderTextStyle.Zero})}),Oe.getCommand("sheetViewToggleFormulaView").updateCallback(()=>{be.getView().update({showFormulas:!be.getView().isShowFormulas()})}),Oe.getCommand("sheetViewToggleShowZeros").updateCallback(()=>{be.getView().update({showZeros:!be.getView().isShowZeros()})})},[be]),u.useEffect(()=>{const Me=be.getView().getFreezePanes(),ot=()=>Me.coords.rowIndex!==0,dt=()=>Me.coords.colIndex!==0,Ke=()=>Me.coords.rowIndex!==0||Me.coords.colIndex!==0;Oe.getCommand("freezeToggle").updateCallback(()=>{Ke()?be.getView().setFreezePanes(null):Ke()?dt()?be.getView().setFreezePanes({coords:{rowIndex:Ue.rowIndex}}):ot()&&be.getView().setFreezePanes({coords:{colIndex:Ue.colIndex}}):be.getView().setFreezePanes({coords:Ue})}).update({state:Ke,disabled:()=>!Ue||!Ke()&&Ue.rowIndex===0&&Ue.colIndex===0}),Oe.getCommand("freezeToggleHorizontal").updateCallback(()=>{be.getView().setFreezePanes({coords:{rowIndex:ot()?0:Ue.rowIndex}})}).update({state:ot,disabled:()=>!Ue||!ot()&&Ue.rowIndex===0}),Oe.getCommand("freezeToggleVertical").updateCallback(()=>{be.getView().setFreezePanes({coords:{colIndex:dt()?0:Ue.colIndex}})}).update({state:dt,disabled:()=>!Ue||!dt()&&Ue.colIndex===0}),Oe.getCommand("unfreeze").updateCallback(()=>{be.getView().setFreezePanes(null)}).update({disabled:()=>!Ke()})},[I1,Ue,be,q]);const Xl=ar().getStyle(),Yo=Xl.getFont(),O1=Xl.getAlignment(),Oi=O1.getHorizontal(),y0=O1.getVertical(),x0=O1.getOverflow(),Yl=O1.getRotation();return u.useEffect(()=>{Oe.getCommand("formatCellStyle").update({context:()=>({styles:()=>be.getStyles(),named:()=>ar().getStyle(!0).getNamed(),bodyStyle:Qf,createTemporaryCell:Dn=>be.createTemporaryCell(Dn)})}),Oe.getCommand("formatFillColor").update({state:()=>{let Dn=null;const lr=Xl.getFill();return lr?.getType()===$.IFill.Type.Solid?Dn=lr.getColor():lr?.getType()===$.IFill.Type.Gradient?Dn=lr.getStops()?.[0]?.getColor():lr?.getType()===$.IFill.Type.Pattern&&(Dn=lr.getBackground()),Dn},context:()=>{const Dn=be.getStyles();return{onColorSelect:lr=>{an(lr??wd)},darkMode:q.darkMode,quickColor:Ct,autoColor:wd,schemeLookup:Dn.schemeLookup(),recentColors:Dn.recentColors(),addRecentColor:lr=>Dn.addRecentColor(lr),clearRecentColors:()=>Dn.clearRecentColors()}}}),Oe.getCommand("formatFontColor").update({state:()=>Yo.toJSON()?.fill?Yo.getFill():null,context:()=>{const Dn=be.getStyles();return{onColorSelect:lr=>{dn(lr)},darkMode:q.darkMode,quickColor:go,autoColor:Dn.getNormal().getFont().getFill(),schemeLookup:Dn.schemeLookup(),recentColors:Dn.recentColors(),addRecentColor:lr=>Dn.addRecentColor(lr),clearRecentColors:()=>Dn.clearRecentColors()}}}),Oe.getCommand("formatNumberFormat").update({state:()=>Xl.getNumberFormat(),context:()=>ar}),Oe.getCommand("formatNumberDialog").update({state:()=>Xl.getNumberFormat(),context:()=>ar}),Oe.getCommand("formatFontFamily").update({state:()=>Yo.getFamily()}),Oe.getCommand("formatFontSize").update({state:()=>Yo.getSize()});const Me=function(){const Dn=Yo.getWeight()||0;return!isNaN(Dn)&&Dn>500};Oe.getCommand("formatBoldToggle").updateCallback(function(){Jt(this,{font:{weight:Me()?400:700}})}).update({state:Me});const ot=function(){return Yo.getStyle()===$.IFont.Style.Italic};Oe.getCommand("formatItalicToggle").updateCallback(function(){Jt(this,{font:{style:ot()?$.IFont.Style.Normal:$.IFont.Style.Italic}})}).update({state:ot}),Oe.getCommand("formatStrikeThroughToggle").updateCallback(function(){Jt(this,{font:{strike:!Yo.getStrike()}})}).update({state:Yo.getStrike()}),Oe.getCommand("formatUnderlinedToggle").updateCallback(function(){Jt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Single?$.IFont.UnderlineStyle.Single:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Single}),Oe.getCommand("formatUnderlinedDoubleToggle").updateCallback(function(){Jt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.Double?$.IFont.UnderlineStyle.Double:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.Double}),Oe.getCommand("formatUnderlinedAccountingToggle").updateCallback(function(){Jt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.SingleAccounting?$.IFont.UnderlineStyle.SingleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.SingleAccounting}),Oe.getCommand("formatUnderlinedAccountingDoubleToggle").updateCallback(function(){Jt(this,{font:{underline:Yo.getUnderline()!==$.IFont.UnderlineStyle.DoubleAccounting?$.IFont.UnderlineStyle.DoubleAccounting:$.IFont.UnderlineStyle.None}})}).update({state:Yo.getUnderline()===$.IFont.UnderlineStyle.DoubleAccounting}),Oe.getCommand("formatSuperscriptToggle").updateCallback(function(){Jt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Super?$.IFont.VerticalAlignment.Super:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Super}),Oe.getCommand("formatSubscriptToggle").updateCallback(function(){Jt(this,{font:{verticalAlign:Yo.getVerticalAlignment()!==$.IFont.VerticalAlignment.Sub?$.IFont.VerticalAlignment.Sub:$.IFont.VerticalAlignment.Baseline}})}).update({state:Yo.getVerticalAlignment()===$.IFont.VerticalAlignment.Sub});const dt=()=>x0===$.ITextFrame.Overflow.Visible;Oe.getCommand("formatTextOverflowVisibleToggle").updateCallback(function(){Jt(this,{alignment:{overflow:(dt(),$.ITextFrame.Overflow.Visible)}})}).update({state:dt});const Ke=()=>x0===$.ITextFrame.Overflow.Wrap;Oe.getCommand("formatTextOverflowWrapToggle").updateCallback(function(){Jt(this,{alignment:{overflow:Ke()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Wrap}})}).update({state:Ke});const ht=function(){return x0===$.ITextFrame.Overflow.Clip};Oe.getCommand("formatTextOverflowClipToggle").updateCallback(function(){Jt(this,{alignment:{overflow:ht()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Clip}})}).update({state:ht});const bt=function(){return x0===$.ITextFrame.Overflow.Shrink};Oe.getCommand("formatTextOverflowShrinkToggle").updateCallback(function(){Jt(this,{alignment:{overflow:bt()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Shrink}})}).update({state:bt});const yn=function(){return x0===$.ITextFrame.Overflow.Shrink};Oe.getCommand("formatTextOverflowEllipsisToggle").updateCallback(function(){Jt(this,{alignment:{overflow:yn()?$.ITextFrame.Overflow.Visible:$.ITextFrame.Overflow.Ellipsis}})}).update({state:yn,disabled:!0});const xn=function(){return y0===$.ITextFrame.VerticalAlignment.Top};Oe.getCommand("formatAlignTopToggle").updateCallback(function(){Jt(this,{alignment:{vertical:xn()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Top}})}).update({state:xn});const ln=function(){return y0===$.ITextFrame.VerticalAlignment.Center};Oe.getCommand("formatAlignMiddleToggle").updateCallback(function(){Jt(this,{alignment:{vertical:ln()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Center}})}).update({state:ln});const Sn=function(){return y0===$.ITextFrame.VerticalAlignment.Bottom};Oe.getCommand("formatAlignBottomToggle").updateCallback(function(){Jt(this,{alignment:{vertical:(Sn(),$.ITextFrame.VerticalAlignment.Bottom)}})}).update({state:Sn});const un=function(){return y0===$.ITextFrame.VerticalAlignment.Justify};Oe.getCommand("formatAlignJustifyVerticalToggle").updateCallback(function(){Jt(this,{alignment:{vertical:un()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Justify}})}).update({state:un});const ao=function(){return y0===$.ITextFrame.VerticalAlignment.Distributed};Oe.getCommand("formatAlignDistributedVerticalToggle").updateCallback(function(){Jt(this,{alignment:{vertical:ao()?$.ITextFrame.VerticalAlignment.Bottom:$.ITextFrame.VerticalAlignment.Distributed}})}).update({state:ao});const jo=function(){return Oi===$.ITextFrame.HorizontalAlignment.Left};Oe.getCommand("formatAlignLeftToggle").updateCallback(function(){Jt(this,{alignment:{horizontal:jo()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Left}})}).update({state:jo});const wr=function(){return Oi===$.ITextFrame.HorizontalAlignment.Center};Oe.getCommand("formatAlignCenterToggle").updateCallback(function(){Jt(this,{alignment:{horizontal:wr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Center}})}).update({state:wr});const Di=function(){return Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous};Oe.getCommand("formatAlignCenterContinuousToggle").updateCallback(function(){const Dn={alignment:{horizontal:Di()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.CenterContinuous,rotation:null}};Jt(this,Dn)}).update({state:Di});const Ai=function(){return Oi===$.ITextFrame.HorizontalAlignment.Fill};Oe.getCommand("formatAlignFillToggle").updateCallback(function(){const Dn={alignment:{horizontal:Ai()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Fill,rotation:null}};Jt(this,Dn)}).update({state:Ai});const Li=function(){return Oi===$.ITextFrame.HorizontalAlignment.Distributed};Oe.getCommand("formatAlignDistributedHorizontalToggle").updateCallback(function(){Jt(this,{alignment:{horizontal:Li()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Distributed}})}).update({state:Li});const Nr=function(){return Oi===$.ITextFrame.HorizontalAlignment.Right};Oe.getCommand("formatAlignRightToggle").updateCallback(function(){Jt(this,{alignment:{horizontal:Nr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Right}})}).update({state:Nr});const fr=function(){return Oi===$.ITextFrame.HorizontalAlignment.Justify};Oe.getCommand("formatAlignJustifyToggle").updateCallback(function(){Jt(this,{alignment:{horizontal:fr()?$.ITextFrame.HorizontalAlignment.General:$.ITextFrame.HorizontalAlignment.Justify}})}).update({state:fr});const No=Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous||Oi===$.ITextFrame.HorizontalAlignment.Fill;Oe.getCommand("formatTextRotate0").updateCallback(function(Dn){Jt(this,{alignment:{rotation:0}})}).update({disabled:No,state:Yl===0}),Oe.getCommand("formatTextRotate45").updateCallback(function(Dn){Jt(this,{alignment:{rotation:Dn??1?45:0}})}).update({disabled:No,state:Yl===45}),Oe.getCommand("formatTextRotate90").updateCallback(function(Dn){Jt(this,{alignment:{rotation:Dn??1?90:0}})}).update({disabled:No,state:Yl===90}),Oe.getCommand("formatTextRotate270").updateCallback(function(Dn){Jt(this,{alignment:{rotation:Dn??1?270:0}})}).update({disabled:No,state:Yl===270}),Oe.getCommand("formatTextRotate315").updateCallback(function(Dn){Jt(this,{alignment:{rotation:Dn??1?315:0}})}).update({disabled:No,state:Yl===315}),Oe.getCommand("formatTextRotateCustom").updateCallback(function(Dn){Jt(this,{alignment:{rotation:Dn}})}).update({disabled:No,state:Yl??0})},[Xl,be,q,Ct,go]),u.useEffect(()=>{const Me=!be.getProtection().isFormatCellsAllowed(),ot=be.getSelectedRanges().getMerges().length>0,dt=async(Mo,D1)=>{wo(D1,async Jl=>{const A1=async(L1=!1)=>{const GC=await Promise.resolve(ge?.showBusy?.(D1.label()));try{const z1=Jl.getSelectedRanges();if(z1.merge({orientations:Mo,discardMultipleValues:L1}),Mo===$.IRange.Orientations.Both){const ZC={alignment:{horizontal:$.ITextFrame.HorizontalAlignment.Center}};z1.updateStyle(ZC)}}catch(z1){throw z1}finally{GC?.()}};let lm;try{await A1()}catch(L1){if(L1.type!=="discardMultipleValues")throw L1;lm=!0}if(lm&&ge?.showOptions){if(await ge?.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 A1(!0)}},void 0,void 0,!1)},Ke=Mo=>{wo(Mo,async D1=>{try{const Jl=D1.getSelectedRanges();Jl.unmerge();const A1={alignment:{horizontal:null}};Jl.updateStyle(A1)}catch(Jl){throw Jl}})};Oe.getCommand("mergeToggle").updateCallback(function(){Go.isSingleCell(be.getSelectedRange().getCoords())||(ot?Ke(this):dt($.IRange.Orientations.Both,this))}).update({state:ot,disabled:!m0||Me}),Oe.getCommand("mergeHorizontal").updateCallback(function(){dt($.IRange.Orientations.Column,this)}).update({disabled:!m0||Me}),Oe.getCommand("mergeVertical").updateCallback(function(){dt($.IRange.Orientations.Row,this)}).update({disabled:!m0}),Oe.getCommand("unmerge").updateCallback(function(){Ke(this)}).update({disabled:!ot||!m0||Me});const ht={disabled:Me};Oe.getCommand("hideRows").updateCallback(function(){wo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ht),Oe.getCommand("hideColumns").updateCallback(function(){wo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!0)})}).update(ht),Oe.getCommand("unhideRows").updateCallback(function(){wo(this,Mo=>{Mo.getRowHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ht),Oe.getCommand("unhideColumns").updateCallback(function(){wo(this,Mo=>{Mo.getColumnHeaders().setHidden(Mo.getSelectedRanges().getCoords(),!1)})}).update(ht),Oe.getCommand("autoFitRows").updateCallback(function(){wo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Row})})}).update(ht),Oe.getCommand("autoFitColumns").updateCallback(function(){wo(this,Mo=>{Mo.getSelectedRanges().autoFit({orientations:$.IRange.Orientations.Column})})}).update(ht);let bt=!1,yn=0,xn=!1,ln=!1,Sn=0,un=!1;!Mt||Me||g0||(bt=Mt.isEntireColumnsAny(),bt&&!Mt.isEntireColumns()?xn=!0:yn=Mt.getColumnCount(),ln=Mt.isEntireRowsAny(),ln&&!Mt.isEntireRows()?un=!0:Sn=Mt.getRowCount());const ao={disabled:Me||Mt&&Mt.getCount()!==1};Oe.getCommand("sortAscending").update(ao),Oe.getCommand("sortDescending").update(ao);const jo={disabled:bt||ln||Me||g0},wr=bt||Me||g0||un;wr&&(yn=1);const Di=ln||Me||g0||xn;Di&&(Sn=1);let Ai="",Li="",Nr="",fr="",No="",Dn="",lr="",K2="",G2="";yn>1&&(Dn=Li=yn+" ",lr=Nr="s"),Sn>1&&(K2=fr=Sn+" ",G2=No="s"),Kt.getMode()?.key==="copy"?(Ai=fr=Li="Copied ",Nr=No="s"):Kt.getMode()?.key==="cut"&&(Ai=fr=Li="Cut ",Nr=No="s");let im="",am="";if(Mt){const Mo=Mt.getDefaultShiftOrientation()===$.IRange.Orientation.Column;im=` (${Mo?"Shift Right":"Shift Down"})`,am=` (${Mo?"Shift Left":"Shift up"})`,Oe.getCommand("deleteCells").update({label:`Delete Cells${am}`})}Oe.getCommand("insertCells").update({label:`Insert ${Ai}Cells${im}`,scopedLabels:{insertCells:`${Ai}At Selection`}}),Oe.getCommand("insertCellsShiftRight").update(jo),Oe.getCommand("insertCellsShiftDown").update(jo),Oe.getCommand("deleteCellsShiftUp").update(jo),Oe.getCommand("deleteCellsShiftLeft").update(jo),Oe.getCommand("insertRows").update({label:`Insert ${fr}Row${No}`,scopedLabels:{insertCells:`${fr}Row${No}`},disabled:Di}),Oe.getCommand("insertRowsAfter").update({label:`Insert ${fr}Row${No} Below`,disabled:Di}),Oe.getCommand("insertColumns").update({label:`Insert ${Li}Column${Nr}`,scopedLabels:{insertCells:`${Li}Column${Nr}`},disabled:wr}),Oe.getCommand("insertColumnsAfter").update({label:`Insert ${Li}Column${Nr} After`,disabled:wr}),Oe.getCommand("deleteRows").update({label:`Delete ${K2}Row${G2}`,scopedLabels:{deleteCells:`${K2}Row${G2}`},disabled:Di}),Oe.getCommand("deleteColumns").update({label:`Delete ${Dn}Column${lr}`,scopedLabels:{deleteCells:`${Dn}Column${lr}`},disabled:wr})},[I1,m0,g0,Mt,Kt,ge,f0]),u.useEffect(()=>{const Me=be.getProtection(),ot=be.getProtection().isLocked(),dt=!Me.isFormatCellsAllowed(),Ke={disabled:dt};Oe.getCommand("protectionSheetToggle").updateCallback(async(yn,xn)=>{let ln=null;try{if(ot){let Sn=null;if(Me.hasPassword()){const un=await ge?.showInputOptions({title:"Password Required",description:"Enter a password to unprotected",options:["Unprotect","Cancel"],defaultOption:"Unprotect",inputType:"password"});if(un.option!=="Unprotect")return;Sn=un.input}ln=await Promise.resolve(ge?.showBusy?.(xn.label())),await Me.unlock(Sn)}else ln=await Promise.resolve(ge?.showBusy?.(xn.label())),await Me.lock();ln?.()}catch(Sn){ln?.(),ge?.showError?.(Sn)}}).update({state:ot,label:()=>ot?"Unprotect Sheet":"Protect Sheet",scopedLabels:{sheet:ot?"Unprotect":"Protect"}}),Oe.getCommand("deleteTable").update(Ke),Oe.getCommand("sortAscending").update(Ke),Oe.getCommand("sortDescending").update(Ke),Oe.getCommand("sortCustom")?.update(Ke),Oe.getCommand("updateComments").update(Ke),Oe.getCommand("deleteComments").update(Ke),Oe.getCommand("insertChart")?.update(Ke),Oe.getCommand("insertImageFromFile").update(Ke),Oe.getCommand("insertImageFromURL").update(Ke),Oe.getCommand("formatBorder").update(Ke),Oe.getCommand("formatFillColor").update(Ke),Oe.getCommand("formatFontColor").update(Ke),Oe.getCommand("formatBoldToggle").update(Ke),Oe.getCommand("formatItalicToggle").update(Ke),Oe.getCommand("formatUnderlinedToggle").update(Ke),Oe.getCommand("formatStrikeThroughToggle").update(Ke),Oe.getCommand("formatSuperscriptToggle").update(Ke),Oe.getCommand("formatSubscriptToggle").update(Ke),Oe.getCommand("formatAlignTopToggle").update(Ke),Oe.getCommand("formatTextOverflowVisibleToggle").update(Ke),Oe.getCommand("formatTextOverflowWrapToggle").update(Ke),Oe.getCommand("formatTextOverflowClipToggle").update(Ke),Oe.getCommand("formatTextOverflowShrinkToggle").update(Ke),Oe.getCommand("formatAlignMiddleToggle").update(Ke),Oe.getCommand("formatAlignBottomToggle").update(Ke),Oe.getCommand("formatAlignDistributedVerticalToggle").update(Ke),Oe.getCommand("formatAlignJustifyVerticalToggle").update(Ke),Oe.getCommand("formatAlignLeftToggle").update(Ke),Oe.getCommand("formatAlignCenterToggle").update(Ke),Oe.getCommand("formatAlignRightToggle").update(Ke),Oe.getCommand("formatAlignJustifyToggle").update(Ke),Oe.getCommand("formatAlignCenterContinuousToggle").update(Ke),Oe.getCommand("formatAlignDistributedHorizontalToggle").update(Ke),Oe.getCommand("formatAlignFillToggle").update(Ke),Oe.getCommand("formatFontSizeIncrease").update(Ke),Oe.getCommand("formatFontSizeDecrease").update(Ke),Oe.getCommand("formatFontFamily").update(Ke),Oe.getCommand("formatFontSize").update(Ke),Oe.getCommand("formatNumberFormat").update(Ke),Oe.getCommand("formatNumberFormatGeneralStyle").update(Ke),Oe.getCommand("formatNumberFormatNumberStyle").update(Ke),Oe.getCommand("formatNumberFormatTimeStyle").update(Ke),Oe.getCommand("formatNumberFormatDateStyle").update(Ke),Oe.getCommand("formatNumberFormatAccountingStyle").update(Ke),Oe.getCommand("formatNumberFormatPercentStyle").update(Ke),Oe.getCommand("formatNumberFormatScientificStyle").update(Ke),Oe.getCommand("formatNumberFormatCommaStyle").update(Ke),Oe.getCommand("formatNumberFormatIncreaseDecimal").update(Ke),Oe.getCommand("formatNumberFormatDecreaseDecimal").update(Ke),Oe.getCommand("hideColumns").update(Ke),Oe.getCommand("unhideColumns").update(Ke),Oe.getCommand("hideRows").update(Ke),Oe.getCommand("unhideRows").update(Ke),Oe.getCommand("quickFormulaSum").update(Ke),Oe.getCommand("quickFormulaAverage").update(Ke),Oe.getCommand("quickFormulaCount").update(Ke),Oe.getCommand("quickFormulaMax").update(Ke),Oe.getCommand("quickFormulaMin").update(Ke),Oe.getCommand("startEditCurrentTime").update(Ke),Oe.getCommand("startEditCurrentDate").update(Ke),Oe.getCommand("startEditValueAbove").update(Ke),Oe.getCommand("fillDown").update(Ke),Oe.getCommand("fillRight").update(Ke),Oe.getCommand("fillUp").update(Ke),Oe.getCommand("fillLeft").update(Ke),Oe.getCommand("formatCellStyle").update(Ke),Oe.getCommand("formatTableStyle").update(Ke),Oe.getCommand("formatBorderAddOutline").update(Ke),Oe.getCommand("formatBorderClearOutline").update(Ke),Oe.getCommand("formatIndentDecrease").update(Ke),Oe.getCommand("formatIndentIncrease").update(Ke),Oe.getCommand("clearContents").update(Ke),Oe.getCommand("clearFormats").update(Ke),Oe.getCommand("clearAll").update(Ke);const ht=Oi===$.ITextFrame.HorizontalAlignment.CenterContinuous||Oi===$.ITextFrame.HorizontalAlignment.Fill,bt={disabled:dt||ht};Oe.getCommand("formatTextRotate0").update(bt),Oe.getCommand("formatTextRotate45").update(bt),Oe.getCommand("formatTextRotate90").update(bt),Oe.getCommand("formatTextRotate270").update(bt),Oe.getCommand("formatTextRotate315").update(bt),Oe.getCommand("formatTextRotateCustom").update(bt),Oe.getCommand("formatTextRotateVertical").update(bt)},[I1]),Oe}({sheet:n,commands:g,target:tt,onRepeatCommandChange:m,bodyStyle:oe,notifier:L,onStartEdit:it,getViewport:At}),[_t,$t]=u.useState(n.getSelection().isEntire()),[nn,Zt]=u.useState(re?.getMovableSelection().length>0),Tn=ue!==null||nn,pn=null,[En,kt]=u.useState(!1);u.useEffect(()=>{kt(!1)},[n.getProtection()]);const on=_e(()=>{En||(kt(!0),L.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:ua.Error}))},[L,En]),mn=u.useMemo(()=>{const Ze=et.getMode();return Ze?.cursor?Ze.cursor:null},[pn,et]),[Ln,Nn]=u.useState(null),hn=u.useRef(!1),[fo,bo]=u.useState([]),Fo=u.useRef(null),[tr,_r]=u.useState(Fc.EmptyTopLeft),[jr,ui]=u.useState(Fc.EmptyTopLeft);u.useEffect(()=>{_r({left:pe?.left,top:0})},[pe?.left]),u.useEffect(()=>{ui({left:0,top:pe?.top})},[pe?.top]),sn(n?.getView(),{onFreezeSplitChange:()=>{Ge(je(n.getView().getFreezePanes()))},onTopLeftChange:()=>{me(n.getView().getTopLeft())},onMovableSelectionChange:()=>{Zt(n.getView().getMovableSelection().length>0)}}),sn(n?.getSelection(),{onChange:()=>{$t(n.getSelection().isEntire())}}),sn(n,{onViewChange(){ce(n.getView()),Ye(Qe())},onLayoutChange:()=>{const Ze=n.getEntireRange();Te({height:Ze.getRowCount(),width:Ze.getColumnCount()}),Ye(Qe())},onStyleChange:()=>{nt()},onMovablesChange:()=>{},onInvalidated:()=>{nt()}}),sn(n,{onRequestScrollIntoView:async(Ze,be)=>{if(!be)return;const St={colIndex:be?.coords.colStart,rowIndex:be?.coords.rowStart};return await ve.current?.scrollCellCoordsIntoView(St,be?.scroll),!0},onRequestFocus:()=>Xt.whenFocus(pr.current)},_F);const Ki=u.useMemo(()=>{const Ze=(St,q)=>{hn.current=!0,Nn([Ce=>{if(!Ce.toClipBounds(Ce.getRangeCoordsBounds({rowStart:0,rowEnd:Pe.height,colStart:St,colEnd:St})))return;const Z=Ce.getLayout(),ge=Math.max(0,Z.getColOffset(St)),We=Ce.getBounds(),mt=Math.min(We.x+We.width,Z.getColOffset(St+1)),Ue=Ce.getAnchor();if(q!==null&&(Ue===zo.Left||Ue===zo.Center||Ue===zo.Right)){const Ht=Xt.roundAccurately(q*Xt.getDPI(),0),Nt=Xt.roundAccurately(n?.getColumnWidthAsFontUnit(q/Se),2).toFixed(2),io="Width: "+(q?Nt+" ("+Ht+" pixels)":"Hidden"),Ct=Wt.current.getGridElement().getRelativePointFromClient(0,0),an=0-Ct.y,go=0-Ct.y+Ee,dn={x:ge-(Ct.x-We.x),y:an,width:mt-ge,height:go-an};requestAnimationFrame(()=>{hn.current&&N?.({anchor:dn,display:io})})}const Ut=[0,0,0,We.height],Mt={style:{boxShadow:`0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Bt={x:ge-1,y:0,width:1,height:We.height},qt={style:{boxShadow:`-0.5px 0px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},fn={x:mt-1,y:0,width:1,height:We.height};return s.jsxs(u.Fragment,{children:[s.jsx(ws,{linePoints:Ut,bounds:Bt,...Mt}),s.jsx(ws,{linePoints:Ut,bounds:fn,...qt})]},"resize-dividers")}])};let be=null;return{onResizeHeadersStart:(St,q,Ce)=>{be=n.beginCommit(Ce),Ze(St,q)},onResizeHeaders:(St,q,Ce)=>{Ze(St,q)},onResizeHeadersDown:(St,q)=>{Ze(St,q)},onResizeHeadersEnd:(St,q,Ce)=>{be?.commit({description:Ce}),be=null,requestAnimationFrame(()=>U?.()),hn.current=!1,Nn(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),hn.current=!1,Nn(null)},...l}},[n,l,Ee,Ln]),pi=u.useMemo(()=>{const Ze=(St,q)=>{hn.current=!0,Nn([Ce=>{if(!Ce.toClipBounds(Ce.getRangeCoordsBounds({rowStart:St,rowEnd:St,colStart:0,colEnd:Pe.width})))return;const Z=Ce.getLayout(),ge=Math.max(0,Z.getRowOffset(St)),We=Ce.getBounds(),mt=Math.min(We.y+We.height,Z.getRowOffset(St+1)),Ue=Ce.getAnchor();if(q!==null&&(Ue===zo.Top||Ue===zo.Center||Ue===zo.Bottom)){const Ht=Math.floor(10*Xt.getDPI())/10,Nt=Xt.roundAccurately(q*Ht,0),io=Xt.roundAccurately(Nt/Se/(n?.getRowHeaders().getScaleFactor()*Xt.getDPI()),2).toFixed(2),Ct="Height: "+(q?io+" ("+Nt+" pixels)":"Hidden"),an=Ne.current.getGridElement().getRelativePointFromClient(0,0),go=0-an.x,dn=0-an.x+Ve,Kt={x:go,y:ge-(an.y-We.y),width:dn-go,height:mt-ge};requestAnimationFrame(()=>{hn.current&&V?.({anchor:Kt,display:Ct})})}const Ut=[0,0,We.width,0],Mt={style:{boxShadow:`0px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},Bt={x:0,y:ge-1,width:We.width,height:1},qt={style:{boxShadow:`0px -0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:W}},fn={x:0,y:mt-1,width:We.width,height:1};return s.jsxs(u.Fragment,{children:[s.jsx(ws,{linePoints:Ut,bounds:Bt,...Mt}),s.jsx(ws,{linePoints:Ut,bounds:fn,...qt})]},"resize-dividers")}])};let be=null;return{onResizeHeadersStart:(St,q,Ce)=>{be=n.beginCommit(Ce),Ze(St,q)},onResizeHeaders:(St,q,Ce)=>{Ze(St,q)},onResizeHeadersDown:(St,q)=>{Ze(St,q)},onResizeHeadersEnd:(St,q,Ce)=>{be?.commit({description:Ce}),be=null,requestAnimationFrame(()=>U?.()),hn.current=!1,Nn(null)},onResizeHeadersUp:St=>{requestAnimationFrame(()=>U?.()),hn.current=!1,Nn(null)},...d}},[n,d,Ve]),pr=ir(t,()=>{const Ze=St=>{n?.getView()&&n.getView().selectMovables([]),ct.current=null,ve?.current?.focus(St)},be=async(St=null)=>{if(St||(St=n?.getView().getMovableSelection()[0]),!St)return!1;const q=St.getAnchorCoords();if(!q)return!1;const Ce=ve.current?.getViewFromCellCoords({colIndex:q.colStart,rowIndex:q.rowStart});if(!Ce)return!1;const Z=Ce.getAnchor();n?.getView().getMovableSelection().indexOf(St)===-1&&n?.getView().selectMovables([St]);let ge=Be.current?.get(Z);return ge?.current?(await ge.current.focusMovable(St),!0):(ct.current={movable:St,anchor:Z},!0)};return{getGridElement:()=>ve.current,getRowHeaderElement:()=>Ne.current,getColumnHeaderElement:()=>Wt.current,rowHeaderHeight:()=>Ee,colHeaderWidth:()=>Ve,startEdit:it,submitEdit:()=>{et.setMode(St=>St?.key!=="edit"?St:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{et.setMode(St=>St?.key!=="edit"?St:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:ue!==null,focus:St=>{n?.getView().getMovableSelection().length>0&&be()||Ze(St)},focusSheet:Ze,focusMovable:be,contains:St=>ve?.current?.contains?.(St),invalidate:nt,isSheetElement:()=>!0,getSheet:()=>n}},[n]),nt=u.useCallback(Ze=>{J.current||(ve?.current?.invalidate(Ze),A?.())},[]);u.useEffect(()=>{nt()},[H]);const ft=_t?we.edgeStrokeFill:de.fill,gt=_t?xe.fill:typeof H.headerHover=="function"?H.headerHover(de)?.fill:de.fill,ut=u.useMemo(()=>b?s.jsx("div",{className:Zr("sheetxl-viewport-overlay","_viewport-overlay_1qeq6_6"),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:b}):s.jsx(s.Fragment,{}),[b]);let vt=null;le&&ee&&(vt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${Ee}px`,width:`${Ve}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:Ze=>{let be=!Ze.ctrlKey;Lt?.getCommand("selectAll")?.execute(!be||Ze.button!==0),Ze.nativeEvent.which===3?i?.({originalEvent:Ze,clientX:Ze.clientX,clientY:Ze.clientY,rowIndex:-1,colIndex:-1}):ve.current?.focus()},children:[s.jsx("div",{style:{height:Ee-5+"px",width:Ee-5+"px",clipPath:`path('M${Ee-5} 0 L0 ${Ee-5} L${Ee-5} ${Ee-5} L${Ee-5} 0 Z')`,borderRight:`2px solid ${ft}`,borderBottom:`2px solid ${ft}`,background:`${gt}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${Ee}px`,width:`${Ve}px`,boxSizing:"border-box",borderRight:`solid 1px ${de.strokeFill}`,borderBottom:`solid 1px ${de.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const jt=_e(({_left:Ze,_top:be})=>{},[]),Pt=_e(Ze=>{if(!i)return;const be=ve.current.getViewFromClient(Ze.clientX,Ze.clientY)?.getCellCoordsFromClient(Ze.clientX,Ze.clientY);be&&(i({originalEvent:Ze,clientX:Ze.clientX,clientY:Ze.clientY,rowIndex:be.rowIndex,colIndex:be.colIndex}),Ze.stopPropagation(),Ze.preventDefault())},[i]),Rt=_e(Ze=>{if(Ze.shiftKey||!Ze.ctrlKey&&!Ze.metaKey)return;const{deltaY:be}=Ze;return be>0?Lt.getCommand("sheetZoomOut")?.execute():be<0&&Lt.getCommand("sheetZoomIn")?.execute(),be===0},[Lt]);u.useEffect(()=>{bo(null),Fo.current=null,hn.current=!1,Nn(null);const Ze=n?.getView().getTopLeft();jt(Ze),ve.current?.scrollTo(Ze),me(Ze),ce(n.getView()),Ge(je(n.getView().getFreezePanes())),Ye(Qe()),A()},[n?.getView()]);const zt=_e(Ze=>{const be=Ze.getVisibleRangeCoords();if(!be)return null;const St=[];return n.getRange(be).forEach((q,Ce)=>{const Z=Ce.getCoords(),ge=Ce.getCell();(We=>{if(We.isEmpty())return!1;const mt=We.getSpans();if(mt.width>1||mt.height>1||We.getStyle().hasVisibleStyling()||re.isShowFormulas()&&We.getFormula()!==null)return!0;const Ue=We.getValue();return Ue!==null&&!(!re.isShowZeros()&&Ue===0&&We.getType()===$.ScalarType.Number)})(ge)&&St.push({coords:Z,value:ge,range:re.isShowFormulas()?null:ge.getExtrusions()})},{excludeHidden:!0,includeMergeOverflow:!0}),St},[n,re.isShowZeros(),re.isShowFormulas(),ue]);u.useEffect(()=>{const Ze=[];x&&Ze.push(...x),Ln&&Ze.push(...Ln),Xt.isEqualArrays(Ze,Fo.current)||(Fo.current=Ze,bo(Ze))},[x,Ln,H]);const Dt=u.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${o?.body?.fill}`},pathProps:{stroke:o?.body?.text?.fill??"black"}}),[H?.header?.edgeStrokeFill]),gn=_e(Ze=>{Ze.isDefaultPrevented()||Ze.isPropagationStopped()||(ct.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),zn=u.useMemo(()=>{const Ze=et.getMode();return Ze?.key==="cut"||Ze?.key==="copy"},[et]),wn=_e(async Ze=>{const be=et.getMode();return Ze.keyCode===tn.Escape&&be?(Ze.preventDefault(),void et.setMode(null)):Ze.keyCode===tn.Enter&&zn?(Ze.preventDefault(),await Lt?.getCommand("paste")?.execute(),void et.setMode(null)):void Lt?.dispatchToFocusedCommand(Ze)},[Lt,et]),Ne=u.useRef(null),yt=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ee+1}px`,width:`${Ve+de.edgeStrokeWidth}px`,minWidth:`${Ve+de.edgeStrokeWidth}px`,borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,height:`calc(100% - ${Ee}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(hg,{ref:Ne,sheetElement:pr.current,gridRef:ve,freezeStart:Fe?.[zo.Top],oppositeSize:Ve,containerWidth:Ve,containerHeight:Xe,sheetHeader:n.getRowHeaders(),gridStyle:ne,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jr,onSheetContextMenu:i,tabIndex:-1,style:{position:"relative",flex:"0",top:`${Ee+1}px`,width:`${Ve+de.edgeStrokeWidth}px`,minWidth:`${Ve+de.edgeStrokeWidth}px`,borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,height:`calc(100% - ${Ee}px)`,boxSizing:"border-box",zIndex:"2",...pi?.style},...pi})}),[Ve,Ee,Xe,n,jr,Fe?.[zo.Top],H,Ae,i,de.fill,d]),Wt=u.useRef(null),en=u.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${Ee+de.edgeStrokeWidth}px`,minHeight:`${Ee+de.edgeStrokeWidth}px`,borderBottom:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(hg,{ref:Wt,sheetElement:pr.current,gridRef:ve,freezeStart:Fe?.[zo.Left],oppositeSize:Ee,containerWidth:Re,containerHeight:Ee,sheetHeader:n.getColumnHeaders(),gridStyle:ne,scrollPoint:tr,onSheetContextMenu:i,...Ki,style:{...Ki?.style,position:"relative",left:"0px",width:"100%",height:`${Ee+de.edgeStrokeWidth}px`,minHeight:`${Ee+de.edgeStrokeWidth}px`,borderBottom:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[Ee,Re,n,tr,Fe?.[zo.Left],H,de.fill,Ae,i,l]),rn=_e(Ze=>{const{value:be,key:St,...q}=Ze;let Ce=be,Z=ue;if(!Z||Z.colIndex===Ze.coords.colIndex&&Z.rowIndex===Ze.coords.rowIndex||(Z=null),!Ce){const mt=Ze.range;if(Ce=n.getRange({rowIndex:mt.rowStart,colIndex:mt.colStart}).getCell(),Ce.isEmpty())return null}let ge=null;Ce.getHyperlink()&&(ge=async mt=>{if(O?.onLinkMouseDown?.(mt),mt.button===0&&!mt.isDefaultPrevented()){mt.stopPropagation(),mt.preventDefault();try{await Ce.getHyperlink()?.open()}catch(Ue){L?.showError?.(Ue)}}}),Z&&Z.colIndex===Ze.range.colStart&&Z.rowIndex===Ze.range.rowStart&&(Ce=Ce.createTemporaryCell({value:null}));const We=n.getStyles();return u.createElement(Hz,{...q,key:St,bodyStyle:oe,docTheme:We.getTheme(),normalStyle:We.getNormal(),showFormulas:re.isShowFormulas(),showZeros:re.isShowZeros(),onLinkMouseDown:ge,...O,value:Ce})},[n,he,oe,ue,re?.isShowFormulas(),re.isShowZeros()]),It=u.useCallback((Ze,be)=>{const{key:St,...q}=Ze;return[s.jsx(nF,{ref:be,getVisibleCells:zt,sheet:n,gridStyle:H,...q},`border-${St}`),s.jsx(EF,{ref:be,sheet:n,commands:Lt,...q},`table-${St}`),s.jsx(MF,{ref:be,sheet:n,...q},`spill-${St}`),s.jsx(gF,{ref:be,sheet:n,commands:Lt,notifier:L,onShowTooltip:M,onCloseTooltip:U,gridStyle:H,gridRef:ve,editingCoords:ue,isActive:Ae,...q},`selection-${St}`),s.jsx(dF,{ref:be,sheet:n,commands:Lt,gridStyle:H,element:Q,notifier:L,...q},`copy-paste-${St}`),s.jsx(wF,{ref:be,sheet:n,commands:Lt,target:tt,notifier:L,renderMovable:v,movableProps:{onUnFocus:()=>{pr.current.focus()}},...q},`movable-${St}`),s.jsx(SF,{ref:be,sheet:n,commands:Lt,notifier:L,gridStyle:H,getCellEditor:E,showProtectedError:on,setEditingCoords:De,...q},`editor-${St}`)]},[n,ve.current,H,E,Lt,L]),[In,hr]=u.useState(!1),vr=u.useMemo(()=>{if(Re===0||Xe===0)return null;const Ze=n.getStyles().getNormal(),be=Ze.getFont(),St=Ze.getFill(),q=Ze.getBorder(),Ce=Ze.getFill().getType()===$.IFill.Type.None;let Z=Y,ge=Y;const We=(Ue,Ut,Mt)=>Mt?{stroke:q.getBottom().isNone()?"none":Ue.getColor().toRGBA(oe.darkMode).toString(),...Ut}:Ut;ge=We(q.getBottom(),ge,!q.getBottom().isNone()),ge=We(q.getTop(),ge,!q.getTop().isNone()),Z=We(q.getRight(),Z,!q.getRight().isNone()),Z=We(q.getLeft(),Z,!q.getLeft().isNone());let mt=re?.getGridLineColor()?.toRGBA(oe.darkMode).toString()??oe.strokeFill;return Ce||(ge=We(q.getBottom(),ge,!0),ge=We(q.getTop(),ge,!0),Z=We(q.getRight(),Z,!0),Z=We(q.getLeft(),Z,!0)),s.jsx(D2,{className:"sheetxl-sheet-primary",style:{...TF,...St.toCSS(oe.darkMode),...be.toCSS(oe.darkMode,Se),"--sxl-app-color-background":oe.fill,"--sxl-app-color-shadow":H.colorShadow,"--sxl-app-color-grey":H.colorGrey,"--sxl-app-color-button-fill":ye.fill,"--sxl-app-color-button-text":ye.text?.fill,"--sxl-app-color-button-border":ye.edgeStrokeFill,"--sxl-app-color-primary-dark":H.selection.strokeFill},ref:ve,zoom:Se,...P,onFirstRender:Ue=>{hr(!0),P?.onFirstRender?.(Ue),Lt?.activate()},showGridLines:ie,gridLineColor:mt,gridLineColumnsProps:Z,gridLineRowsProps:ge,freezeLeft:Fe?.[zo.Left],freezeLeftProps:Dt,freezeTop:Fe?.[zo.Top],freezeTopProps:Dt,width:Re,height:Xe,columnCount:Pe.width,rowCount:Pe.height,cursor:mn??pn??"cell",clipCells:!0,layout:he,cellRenderer:rn,overlayRenderer:It,getCellCoordsAsRangeCoords:fe,getVisibleCells:zt,onWheelScroll:Rt,onPointerDown:gn,onKeyDown:wn,onViewportChange:te,onImmediateScroll:jt,scrollPoint:pe,stageProps:{onFocus:()=>{Lt?.activate()}},overlays:fo})},[z]);u.useEffect(()=>{J.current||A()},[he,Fe,Se,Lt,pe?.left,pe?.top,oe,P,Re,Xe,mn,fo,Ae,pn]);let cn={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};p||(cn={...cn,..._});const Hn=u.useMemo(()=>{const Ze=n.getStyles().getTheme(),be=Ze.getColorScheme(),St=Ze.getFontScheme();return{"--sxl-doc-color-dk1":be.getDk1().toCSS(oe.darkMode),"--sxl-doc-color-dk2":be.getDk2().toCSS(oe.darkMode),"--sxl-doc-color-lt1":be.getLt1().toCSS(oe.darkMode),"--sxl-doc-color-lt2":be.getLt2().toCSS(oe.darkMode),"--sxl-doc-color-accent1":be.getAccent1().toCSS(oe.darkMode),"--sxl-doc-color-accent2":be.getAccent2().toCSS(oe.darkMode),"--sxl-doc-color-accent3":be.getAccent3().toCSS(oe.darkMode),"--sxl-doc-color-accent4":be.getAccent4().toCSS(oe.darkMode),"--sxl-doc-color-accent5":be.getAccent5().toCSS(oe.darkMode),"--sxl-doc-color-accent6":be.getAccent6().toCSS(oe.darkMode),"--sxl-doc-color-hlink":be.getHlink().toCSS(oe.darkMode),"--sxl-doc-color-fol-hlink":be.getFolHlink().toCSS(oe.darkMode),"--sxl-doc-font-major":St.getMajorFont(),"--sxl-doc-font-minor":St.getMinorFont()}},[n.getStyles().getTheme()]);let Pn=s.jsx("div",{style:cn,onTouchStart:()=>{mo()},onFocus:Ze=>{Ie(!0),C?.(Ze)},onBlur:Ze=>{Ie(!1),R?.(Ze)},ref:pr,...I,children:s.jsx("div",{className:Zr("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",...Hn},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[vt,yt,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[en,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${de.edgeStrokeWidth}px ${de.edgeStrokeFill}`,backgroundColor:oe.fill},ref:D,onContextMenu:Pt,children:[vr,ut,s.jsx(eF,{style:{position:"absolute",right:24,bottom:4},colorLicensee:H?.selection?.strokeFill,colorCredits:H?.body?.text?.fill})]})]})]})})});if(p){const Ze=be=>s.jsx(Wu,{...be,sheet:n});Pn=s.jsx(_3,{style:{flex:"1 1 100%",overflow:"hidden",background:`${de.fill}`,minHeight:2*rt.height,minWidth:2*rt.width,..._},viewport:K,touchElement:ve.current?.stage,disableTouch:Tn,onScrollViewport:be=>{ve.current?.scrollTo(be)},createHorizontalScrollbar:Ze,createVerticalScrollbar:Ze,...f,children:Pn})}u.useEffect(()=>{J.current=!1,A?.(),ke&&pr.current?.focus()},[n]);const[Wn,On]=u.useState(!1),mo=_e(()=>{Wn||On(!0)},[Wn]);return u.useEffect(()=>{if(In)return typeof w=="function"&&w(),_n.detectIt().primaryInput==="touch"&&mo(),()=>{}},[w,In,Wn]),Pn}));rS.displayName="SheetElement",Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const xg="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=",iS=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,style:r,picture:i,description:a,isDragging:l,view:c,onHide:d,onShow:p,onKeyDownCapture:f,onFocus:h,onBlur:g,loadingPanel:m,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(null),[E,C]=u.useState(null),[R,_]=u.useState(null);u.useEffect(()=>{C(null),i.getDetails().then(j=>{v(!1),C(j.asUrl()),j.asSVGText?.()&&_(j.asSVGText())}).catch(j=>{console.warn(j),v(!0),C(xg),_(null)})},[i]);const L=ir(t,()=>({isPictureEditor:()=>!0}),[]),T=u.useMemo(()=>{if(E||R)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:x?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:x?"var(--sxl-app-color-background, white)":void 0,boxShadow:x?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:x?"contain":void 0,opacity:b?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:E,onLoad:()=>{w(!0)},onError:({currentTarget:j})=>{console.log("error"),j.onerror=null,C(xg),v(!0)},alt:a??`${i.getType()}`})},[b,i,E,R,l]);if(!i.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:l?"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,...y,onKeyDownCapture:j=>{f?.(j)},ref:L,children:[b||x?void 0:m,T]})}));iS.displayName="PictureEditor";const jF=u.memo(u.forwardRef((e,t)=>{const{children:n,disabled:o,chart:r,view:i,isDragging:a,onHide:l,onShow:c,...d}=e;u.useEffect(()=>{},[r]);const p=ir(t,()=>({isChartEditor:()=>!0}),[]),[f,{height:h,width:g}]=Hl();if(!r.isClosed())return s.jsx("div",{...d,ref:s0([p,f]),children:s.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:a?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:r.getDescription()})})})})),RF=e=>s.jsx("input",{...e}),IF=u.memo(u.forwardRef((e,t)=>{const{style:n={},className:o,value:r="",onSubmit:i,onChange:a,onCancel:l,createInput:c=RF,notifier:d,styleHover:p={},dragging:f,maxLength:h,disabled:g=!1,readOnly:m=!1,...y}=e,[x,v]=u.useState(!1),[b,w]=u.useState(!1),[E,C]=u.useState(r);u.useEffect(()=>{C(r)},[r]);const R=u.useRef(null),[_,L]=u.useState(null),T=u.useCallback(function(z){const A=z.message;_!==A&&(d?.showMessage?.(A,{type:ua.Error}),L(A))},[d,_]),j=u.useCallback(z=>{let A=!1;try{A=i?.(z)??!0}catch(D){T(D)}return A?(R.current=null,w(!1),C(z),A):(setTimeout(()=>{R.current?.focus()},0),A)},[i]),S=_e(()=>{C(r),R.current=null,w(!1),l?.()},[l,r]),k=u.useMemo(()=>{if(!b)return null;const z={className:Zr("_editable-input_1bqx6_6"),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:h,type:"text",value:E,onFocus:A=>{R.current||(R.current=A.target,setTimeout(()=>{A.target?.select()},0))},onBlur:A=>{R.current&&j(E)},onChange:A=>{b&&C(A.target.value)},onMouseDown:A=>A.stopPropagation(),onKeyDown:A=>A.code==="Escape"?(A.preventDefault(),void S()):A.code==="Enter"?(A.preventDefault(),void j(A.target.value)):void(A.code!=="Tab"?A.stopPropagation():j(A.target.value))};return s.jsx(s.Fragment,{children:c(z)})},[b,E,j,S,c,g]),[P,O]=u.useState();u.useLayoutEffect(()=>{let z=Object.assign({},n);(f||x)&&(z=Object.assign(z,p)),O(z)},[f,x,p,n]),u.useEffect(()=>{k&&a?.(E)},[k,a,E]);const I=ir(t,()=>({startEdit(){g||m||w(!0)},cancel(){S()}}),[]);return s.jsxs("div",{...y,ref:I,style:{flexDirection:"column",display:"flex",...P},className:Zr(o),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{g||m||w(!0)},onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:b?0:1},children:E}),k]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...p},children:E})]})})),A2=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function c0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function mf(e){return"nodeType"in e}function Fr(e){var t,n;return e?c0(e)?e:mf(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function gf(e){const{Document:t}=Fr(e);return e instanceof t}function _1(e){return!c0(e)&&e instanceof Fr(e).HTMLElement}function aS(e){return e instanceof Fr(e).SVGElement}function Xs(e){return e?c0(e)?e.document:mf(e)?gf(e)?e:_1(e)||aS(e)?e.ownerDocument:document:document:document}const $i=A2?u.useLayoutEffect:u.useEffect;function L2(e){const t=u.useRef(e);return $i(()=>{t.current=e}),u.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 kc(e,t){t===void 0&&(t=[e]);const n=u.useRef(e);return $i(()=>{n.current!==e&&(n.current=e)},t),n}function cc(e,t){const n=u.useRef();return u.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function tu(e){const t=L2(e),n=u.useRef(null),o=u.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function Uu(e){const t=u.useRef();return u.useEffect(()=>{t.current=e},[e]),t.current}let n5={};function t1(e,t){return u.useMemo(()=>{if(t)return t;const n=n5[e]==null?0:n5[e]+1;return n5[e]=n,e+"-"+n},[e,t])}function lS(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,a)=>{const l=Object.entries(a);for(const[c,d]of l){const p=i[c];p!=null&&(i[c]=p+e*d)}return i},{...t})}}const Ss=lS(1),n1=lS(-1);function z2(e){if(!e)return!1;const{KeyboardEvent:t}=Fr(e.target);return t&&e instanceof t}function qu(e){if(function(n){if(!n)return!1;const{TouchEvent:o}=Fr(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 Wl=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[Wl.Translate.toString(e),Wl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),bg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function PF(e){return e.matches(bg)?e:e.querySelector(bg)}const OF={display:"none"};function DF(e){let{id:t,value:n}=e;return u.createElement("div",{id:t,style:OF},n)}function AF(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return u.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 sS=u.createContext(null),LF={draggable:`
209
- To pick up a draggable item, press the space bar.
210
- While dragging, use the arrow keys to move the item.
211
- Press space again to drop the item in its new position, or press escape to cancel.
212
- `},zF={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 FF(e){let{announcements:t=zF,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=LF}=e;const{announce:i,announcement:a}=function(){const[f,h]=u.useState("");return{announce:u.useCallback(g=>{g!=null&&h(g)},[]),announcement:f}}(),l=t1("DndLiveRegion"),[c,d]=u.useState(!1);if(u.useEffect(()=>{d(!0)},[]),function(f){const h=u.useContext(sS);u.useEffect(()=>{if(!h)throw new Error("useDndMonitor must be used within a children of <DndContext>");return h(f)},[f,h])}(u.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=u.createElement(u.Fragment,null,u.createElement(DF,{id:o,value:r.draggable}),u.createElement(AF,{id:l,announcement:a}));return n?yo.createPortal(p,n):p}var or;function Ku(){}function o5(e,t){return u.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"})(or||(or={}));const Wi=Object.freeze({x:0,y:0});function cS(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function BF(e,t){const n=qu(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function dS(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function NF(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function vg(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 uS(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function wg(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 $F=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=wg(t,t.left,t.top),i=[];for(const a of o){const{id:l}=a,c=n.get(l);if(c){const d=cS(wg(c),r);i.push({id:l,data:{droppableContainer:a,value:d}})}}return i.sort(dS)};function VF(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),a=r-o,l=i-n;if(o<r&&n<i){const c=t.width*t.height,d=e.width*e.height,p=a*l;return Number((p/(c+d-p)).toFixed(4))}return 0}const HF=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const i of o){const{id:a}=i,l=n.get(a);if(l){const c=VF(l,t);c>0&&r.push({id:a,data:{droppableContainer:i,value:c}})}}return r.sort(NF)};function Sg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wi}const WF=function(){return 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 n.reduce((r,i)=>({...r,top:r.top+1*i.y,bottom:r.bottom+1*i.y,left:r.left+1*i.x,right:r.right+1*i.x}),{...e})}}();function pS(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 UF={ignoreTransform:!1};function d0(e,t){t===void 0&&(t=UF);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:p}=Fr(e).getComputedStyle(e);d&&(n=function(f,h,g){const m=pS(h);if(!m)return f;const{scaleX:y,scaleY:x,x:v,y:b}=m,w=f.left-v-(1-y)*parseFloat(g),E=f.top-b-(1-x)*parseFloat(g.slice(g.indexOf(" ")+1)),C=y?f.width/y:f.width,R=x?f.height/x:f.height;return{width:C,height:R,top:E,right:w+C,bottom:E+R,left:w}}(n,d,p))}const{top:o,left:r,width:i,height:a,bottom:l,right:c}=n;return{top:o,left:r,width:i,height:a,bottom:l,right:c}}function Cg(e){return d0(e,{ignoreTransform:!0})}function F2(e,t){const n=[];return e?function o(r){if(t!=null&&n.length>=t||!r)return n;if(gf(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!_1(r)||aS(r)||n.includes(r))return n;const i=Fr(e).getComputedStyle(r);return r!==e&&function(c,d){d===void 0&&(d=Fr(c).getComputedStyle(c));const p=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(f=>{const h=d[f];return typeof h=="string"&&p.test(h)})}(r,i)&&n.push(r),a=r,(l=i)===void 0&&(l=Fr(a).getComputedStyle(a)),l.position==="fixed"?n:o(r.parentNode);var a,l}(e):n}function hS(e){const[t]=F2(e,1);return t??null}function r5(e){return A2&&e?c0(e)?e:mf(e)?gf(e)||e===Xs(e).scrollingElement?window:_1(e)?e:null:null:null}function fS(e){return c0(e)?e.scrollX:e.scrollLeft}function mS(e){return c0(e)?e.scrollY:e.scrollTop}function Fh(e){return{x:fS(e),y:mS(e)}}var sr;function gS(e){return!(!A2||!e)&&e===document.scrollingElement}function yS(e){const t={x:0,y:0},n=gS(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"})(sr||(sr={}));const qF={x:.2,y:.2};function KF(e,t,n,o,r){let{top:i,left:a,right:l,bottom:c}=n;o===void 0&&(o=10),r===void 0&&(r=qF);const{isTop:d,isBottom:p,isLeft:f,isRight:h}=yS(e),g={x:0,y:0},m={x:0,y:0},y=t.height*r.y,x=t.width*r.x;return!d&&i<=t.top+y?(g.y=sr.Backward,m.y=o*Math.abs((t.top+y-i)/y)):!p&&c>=t.bottom-y&&(g.y=sr.Forward,m.y=o*Math.abs((t.bottom-y-c)/y)),!h&&l>=t.right-x?(g.x=sr.Forward,m.x=o*Math.abs((t.right-x-l)/x)):!f&&a<=t.left+x&&(g.x=sr.Backward,m.x=o*Math.abs((t.left+x-a)/x)),{direction:g,speed:m}}function GF(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}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 xS(e){return e.reduce((t,n)=>Ss(t,Fh(n)),Wi)}function bS(e,t){if(t===void 0&&(t=d0),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);hS(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const ZF=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+fS(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+mS(n),0)}]];class Bh{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=F2(n),r=xS(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,l]of ZF)for(const c of a)Object.defineProperty(this,c,{get:()=>{const d=l(o),p=r[i]-d;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ec{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 i5(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 yi,$n;function kg(e){e.preventDefault()}function XF(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"})(yi||(yi={})),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"}($n||($n={}));const vS={start:[$n.Space,$n.Enter],cancel:[$n.Esc],end:[$n.Space,$n.Enter,$n.Tab]},YF=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case $n.Right:return{...n,x:n.x+25};case $n.Left:return{...n,x:n.x-25};case $n.Down:return{...n,y:n.y+25};case $n.Up:return{...n,y:n.y-25}}};class yf{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 Ec(Xs(n)),this.windowListeners=new Ec(Fr(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(yi.Resize,this.handleCancel),this.windowListeners.add(yi.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(yi.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&bS(o),n(Wi)}handleKeyDown(t){if(z2(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:i=vS,coordinateGetter:a=YF,scrollBehavior:l="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:d}=o.current,p=d?{x:d.left,y:d.top}:Wi;this.referenceCoordinates||(this.referenceCoordinates=p);const f=a(t,{active:n,context:o.current,currentCoordinates:p});if(f){const h=n1(f,p),g={x:0,y:0},{scrollableAncestors:m}=o.current;for(const y of m){const x=t.code,{isTop:v,isRight:b,isLeft:w,isBottom:E,maxScroll:C,minScroll:R}=yS(y),_=GF(y),L={x:Math.min(x===$n.Right?_.right-_.width/2:_.right,Math.max(x===$n.Right?_.left:_.left+_.width/2,f.x)),y:Math.min(x===$n.Down?_.bottom-_.height/2:_.bottom,Math.max(x===$n.Down?_.top:_.top+_.height/2,f.y))},T=x===$n.Right&&!b||x===$n.Left&&!w,j=x===$n.Down&&!E||x===$n.Up&&!v;if(T&&L.x!==f.x){const S=y.scrollLeft+h.x,k=x===$n.Right&&S<=C.x||x===$n.Left&&S>=R.x;if(k&&!h.y)return void y.scrollTo({left:S,behavior:l});g.x=k?y.scrollLeft-S:x===$n.Right?y.scrollLeft-C.x:y.scrollLeft-R.x,g.x&&y.scrollBy({left:-g.x,behavior:l});break}if(j&&L.y!==f.y){const S=y.scrollTop+h.y,k=x===$n.Down&&S<=C.y||x===$n.Up&&S>=R.y;if(k&&!h.x)return void y.scrollTo({top:S,behavior:l});g.y=k?y.scrollTop-S:x===$n.Down?y.scrollTop-C.y:y.scrollTop-R.y,g.y&&y.scrollBy({top:-g.y,behavior:l});break}}this.handleMove(t,Ss(n1(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 Eg(e){return!(!e||!("distance"in e))}function Mg(e){return!(!e||!("delay"in e))}yf.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=vS,onActivation:r}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(o.start.includes(a)){const l=i.activatorNode.current;return!(l&&e.target!==l||(e.preventDefault(),r?.({event:e.nativeEvent}),0))}return!1}}];class xf{constructor(t,n,o){var r;o===void 0&&(o=function(l){const{EventTarget:c}=Fr(l);return l instanceof c?l:Xs(l)}(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:a}=i;this.props=t,this.events=n,this.document=Xs(a),this.documentListeners=new Ec(this.document),this.listeners=new Ec(o),this.windowListeners=new Ec(Fr(a)),this.initialCoordinates=(r=qu(i))!=null?r:Wi,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(yi.Resize,this.handleCancel),this.windowListeners.add(yi.DragStart,kg),this.windowListeners.add(yi.VisibilityChange,this.handleCancel),this.windowListeners.add(yi.ContextMenu,kg),this.documentListeners.add(yi.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Mg(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Eg(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(yi.Click,XF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(yi.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:i}=this,{onMove:a,options:{activationConstraint:l}}=i;if(!r)return;const c=(n=qu(t))!=null?n:Wi,d=n1(r,c);if(!o&&l){if(Eg(l)){if(l.tolerance!=null&&i5(d,l.tolerance))return this.handleCancel();if(i5(d,l.distance))return this.handleStart()}return Mg(l)&&i5(d,l.tolerance)?this.handleCancel():void this.handlePending(l,d)}t.cancelable&&t.preventDefault(),a(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===$n.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const JF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class wS extends xf{constructor(t){const{event:n}=t,o=Xs(n.target);super(t,JF,o)}}wS.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||n.button!==0||(o?.({event:n}),0))}}];const QF={move:{name:"mousemove"},end:{name:"mouseup"}};var Nh;(function(e){e[e.RightClick=2]="RightClick"})(Nh||(Nh={}));class SS extends xf{constructor(t){super(t,QF,Xs(t.event.target))}}SS.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Nh.RightClick&&(o?.({event:n}),!0)}}];const a5={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class CS extends xf{constructor(t){super(t,a5)}static setup(){return window.addEventListener(a5.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(a5.move.name,t)};function t(){}}}var Mc,Gu;CS.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"}(Mc||(Mc={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Gu||(Gu={}));const eB={x:{[sr.Backward]:!1,[sr.Forward]:!1},y:{[sr.Backward]:!1,[sr.Forward]:!1}};var o1,$h;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(o1||(o1={})),($h||($h={})).Optimized="optimized";const Tg=new Map;function Vh(e,t){return cc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Zu(e){let{callback:t,disabled:n}=e;const o=L2(t),r=u.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:i}=window;return new i(o)},[n]);return u.useEffect(()=>()=>r?.disconnect(),[r]),r}function tB(e){return new Bh(d0(e),e)}function _g(e,t,n){t===void 0&&(t=tB);const[o,r]=u.useState(null);function i(){r(c=>{if(!e)return null;var d;if(e.isConnected===!1)return(d=c??n)!=null?d:null;const p=t(e);return JSON.stringify(c)===JSON.stringify(p)?c:p})}const a=function(c){let{callback:d,disabled:p}=c;const f=L2(d),h=u.useMemo(()=>{if(p||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:g}=window;return new g(f)},[f,p]);return u.useEffect(()=>()=>h?.disconnect(),[h]),h}({callback(c){if(e)for(const d of c){const{type:p,target:f}=d;if(p==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),l=Zu({callback:i});return $i(()=>{i(),e?(l?.observe(e),a?.observe(document.body,{childList:!0,subtree:!0})):(l?.disconnect(),a?.disconnect())},[e]),o}const jg=[];function Rg(e,t){t===void 0&&(t=[]);const n=u.useRef(null);return u.useEffect(()=>{n.current=null},t),u.useEffect(()=>{const o=e!==Wi;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?n1(e,n.current):Wi}function Ig(e){return u.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 Pg=[];function kS(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return _1(t)?t:e}const nB=[{sensor:wS,options:{}},{sensor:yf,options:{}}],oB={current:{}},nu={draggable:{measure:Cg},droppable:{measure:Cg,strategy:o1.WhileDragging,frequency:$h.Optimized},dragOverlay:{measure:d0}};class Tc 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 rB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Tc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ku},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:nu,measureDroppableContainers:Ku,windowRect:null,measuringScheduled:!1},ES={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ku,draggableNodes:new Map,over:null,measureDroppableContainers:Ku},r1=u.createContext(ES),MS=u.createContext(rB);function iB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Tc}}}function aB(e,t){switch(t.type){case or.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case or.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 or.DragEnd:case or.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case or.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new Tc(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case or.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const a=new Tc(e.droppable.containers);return a.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:a}}}case or.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new Tc(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function lB(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=u.useContext(r1),i=Uu(o),a=Uu(n?.id);return u.useEffect(()=>{if(!t&&!o&&i&&a!=null){if(!z2(i)||document.activeElement===i.target)return;const l=r.get(a);if(!l)return;const{activatorNode:c,node:d}=l;if(!c.current&&!d.current)return;requestAnimationFrame(()=>{for(const p of[c.current,d.current]){if(!p)continue;const f=PF(p);if(f){f.focus();break}}})}},[o,t,r,a,i]),null}function TS(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,i)=>i({transform:r,...o}),n):n}const B2=u.createContext({...Wi,scaleX:1,scaleY:1});var Ka;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ka||(Ka={}));const sB=u.memo(function(e){var t,n,o,r;let{id:i,accessibility:a,autoScroll:l=!0,children:c,sensors:d=nB,collisionDetection:p=HF,measuring:f,modifiers:h,...g}=e;const m=u.useReducer(aB,void 0,iB),[y,x]=m,[v,b]=function(){const[te]=u.useState(()=>new Set),ae=u.useCallback(pe=>(te.add(pe),()=>te.delete(pe)),[te]);return[u.useCallback(pe=>{let{type:me,event:fe}=pe;te.forEach(je=>{var Fe;return(Fe=je[me])==null?void 0:Fe.call(je,fe)})},[te]),ae]}(),[w,E]=u.useState(Ka.Uninitialized),C=w===Ka.Initialized,{draggable:{active:R,nodes:_,translate:L},droppable:{containers:T}}=y,j=R!=null?_.get(R):null,S=u.useRef({initial:null,translated:null}),k=u.useMemo(()=>{var te;return R!=null?{id:R,data:(te=j?.data)!=null?te:oB,rect:S}:null},[R,j]),P=u.useRef(null),[O,I]=u.useState(null),[z,A]=u.useState(null),D=kc(g,Object.values(g)),F=t1("DndDescribedBy",i),B=u.useMemo(()=>T.getEnabled(),[T]),M=u.useMemo(()=>({draggable:{...nu.draggable,...N?.draggable},droppable:{...nu.droppable,...N?.droppable},dragOverlay:{...nu.dragOverlay,...N?.dragOverlay}}),[(N=f)==null?void 0:N.draggable,N?.droppable,N?.dragOverlay]);var N;const{droppableRects:V,measureDroppableContainers:U,measuringScheduled:J}=function(te,ae){let{dragging:pe,dependencies:me,config:fe}=ae;const[je,Fe]=u.useState(null),{frequency:Ge,measure:et,strategy:tt}=fe,it=u.useRef(te),At=function(){switch(tt){case o1.Always:return!1;case o1.BeforeDragging:return pe;default:return!pe}}(),Lt=kc(At),_t=u.useCallback(function(Zt){Zt===void 0&&(Zt=[]),Lt.current||Fe(Tn=>Tn===null?Zt:Tn.concat(Zt.filter(pn=>!Tn.includes(pn))))},[Lt]),$t=u.useRef(null),nn=cc(Zt=>{if(At&&!pe)return Tg;if(!Zt||Zt===Tg||it.current!==te||je!=null){const Tn=new Map;for(let pn of te){if(!pn)continue;if(je&&je.length>0&&!je.includes(pn.id)&&pn.rect.current){Tn.set(pn.id,pn.rect.current);continue}const En=pn.node.current,kt=En?new Bh(et(En),En):null;pn.rect.current=kt,kt&&Tn.set(pn.id,kt)}return Tn}return Zt},[te,je,pe,At,et]);return u.useEffect(()=>{it.current=te},[te]),u.useEffect(()=>{At||_t()},[pe,At]),u.useEffect(()=>{je&&je.length>0&&Fe(null)},[JSON.stringify(je)]),u.useEffect(()=>{At||typeof Ge!="number"||$t.current!==null||($t.current=setTimeout(()=>{_t(),$t.current=null},Ge))},[Ge,At,_t,...me]),{droppableRects:nn,measureDroppableContainers:_t,measuringScheduled:je!=null}}(B,{dragging:C,dependencies:[L.x,L.y],config:M.droppable}),X=function(te,ae){const pe=ae!=null?te.get(ae):void 0,me=pe?pe.node.current:null;return cc(fe=>{var je;return ae==null?null:(je=me??fe)!=null?je:null},[me,ae])}(_,R),H=u.useMemo(()=>z?qu(z):null,[z]),ne=function(){const te=O?.autoScrollEnabled===!1,ae=typeof l=="object"?l.enabled===!1:l===!1,pe=C&&!te&&!ae;return typeof l=="object"?{...l,enabled:pe}:{enabled:pe}}(),oe=(ye=X,de=M.draggable.measure,Vh(ye,de));var ye,de;(function(te){let{activeNode:ae,measure:pe,initialRect:me,config:fe=!0}=te;const je=u.useRef(!1),{x:Fe,y:Ge}=typeof fe=="boolean"?{x:fe,y:fe}:fe;$i(()=>{if(!Fe&&!Ge||!ae)return void(je.current=!1);if(je.current||!me)return;const et=ae?.node.current;if(!et||et.isConnected===!1)return;const tt=Sg(pe(et),me);if(Fe||(tt.x=0),Ge||(tt.y=0),je.current=!0,Math.abs(tt.x)>0||Math.abs(tt.y)>0){const it=hS(et);it&&it.scrollBy({top:tt.y,left:tt.x})}},[ae,Fe,Ge,me,pe])})({activeNode:R!=null?_.get(R):null,config:ne.layoutShiftCompensation,initialRect:oe,measure:M.draggable.measure});const xe=_g(X,M.draggable.measure,oe),we=_g(X?X.parentElement:null),ve=u.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:V,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),re=T.getNodeFor((t=ve.current.over)==null?void 0:t.id),ce=function(te){let{measure:ae}=te;const[pe,me]=u.useState(null),fe=Zu({callback:u.useCallback(et=>{for(const{target:tt}of et)if(_1(tt)){me(it=>{const At=ae(tt);return it?{...it,width:At.width,height:At.height}:At});break}},[ae])}),je=u.useCallback(et=>{const tt=kS(et);fe?.disconnect(),tt&&fe?.observe(tt),me(tt?ae(tt):null)},[ae,fe]),[Fe,Ge]=tu(je);return u.useMemo(()=>({nodeRef:Fe,rect:pe,setRef:Ge}),[pe,Fe,Ge])}({measure:M.dragOverlay.measure}),Se=(n=ce.nodeRef.current)!=null?n:X,ie=C?(o=ce.rect)!=null?o:xe:null,Y=!(!ce.nodeRef.current||!ce.rect),le=Sg(ee=Y?null:xe,Vh(ee));var ee;const Pe=Ig(Se?Fr(Se):null),Te=function(te){const ae=u.useRef(te),pe=cc(me=>te?me&&me!==jg&&te&&ae.current&&te.parentNode===ae.current.parentNode?me:F2(te):jg,[te]);return u.useEffect(()=>{ae.current=te},[te]),pe}(C?re??X:null),rt=function(te,ae){ae===void 0&&(ae=d0);const[pe]=te,me=Ig(pe?Fr(pe):null),[fe,je]=u.useState(Pg);function Fe(){je(()=>te.length?te.map(et=>gS(et)?me:new Bh(ae(et),et)):Pg)}const Ge=Zu({callback:Fe});return $i(()=>{Ge?.disconnect(),Fe(),te.forEach(et=>Ge?.observe(et))},[te]),fe}(Te),Ve=TS(h,{transform:{x:L.x-le.x,y:L.y-le.y,scaleX:1,scaleY:1},activatorEvent:z,active:k,activeNodeRect:xe,containerNodeRect:we,draggingNodeRect:ie,over:ve.current.over,overlayNodeRect:ce.rect,scrollableAncestors:Te,scrollableAncestorRects:rt,windowRect:Pe}),Ee=H?Ss(H,L):null,Re=function(te){const[ae,pe]=u.useState(null),me=u.useRef(te),fe=u.useCallback(je=>{const Fe=r5(je.target);Fe&&pe(Ge=>Ge?(Ge.set(Fe,Fh(Fe)),new Map(Ge)):null)},[]);return u.useEffect(()=>{const je=me.current;if(te!==je){Fe(je);const Ge=te.map(et=>{const tt=r5(et);return tt?(tt.addEventListener("scroll",fe,{passive:!0}),[tt,Fh(tt)]):null}).filter(et=>et!=null);pe(Ge.length?new Map(Ge):null),me.current=te}return()=>{Fe(te),Fe(je)};function Fe(Ge){Ge.forEach(et=>{r5(et)?.removeEventListener("scroll",fe)})}},[fe,te]),u.useMemo(()=>te.length?ae?Array.from(ae.values()).reduce((je,Fe)=>Ss(je,Fe),Wi):xS(te):Wi,[te,ae])}(Te),Xe=Rg(Re),Be=Rg(Re,[xe]),ct=Ss(Ve,Xe),Qe=ie?WF(ie,Ve):null,he=k&&Qe?p({active:k,collisionRect:Qe,droppableRects:V,droppableContainers:B,pointerCoordinates:Ee}):null,Ye=uS(he,"id"),[ke,Ie]=u.useState(null),ue=function(te,ae,pe){return{...te,scaleX:ae&&pe?ae.width/pe.width:1,scaleY:ae&&pe?ae.height/pe.height:1}}(Y?Ve:Ss(Ve,Be),(r=ke?.rect)!=null?r:null,xe),De=u.useRef(null),Ae=u.useCallback((te,ae)=>{let{sensor:pe,options:me}=ae;if(P.current==null)return;const fe=_.get(P.current);if(!fe)return;const je=te.nativeEvent,Fe=new pe({active:P.current,activeNode:fe,event:je,options:me,context:ve,onAbort(et){if(!_.get(et))return;const{onDragAbort:tt}=D.current,it={id:et};tt?.(it),v({type:"onDragAbort",event:it})},onPending(et,tt,it,At){if(!_.get(et))return;const{onDragPending:Lt}=D.current,_t={id:et,constraint:tt,initialCoordinates:it,offset:At};Lt?.(_t),v({type:"onDragPending",event:_t})},onStart(et){const tt=P.current;if(tt==null)return;const it=_.get(tt);if(!it)return;const{onDragStart:At}=D.current,Lt={activatorEvent:je,active:{id:tt,data:it.data,rect:S}};yo.unstable_batchedUpdates(()=>{At?.(Lt),E(Ka.Initializing),x({type:or.DragStart,initialCoordinates:et,active:tt}),v({type:"onDragStart",event:Lt}),I(De.current),A(je)})},onMove(et){x({type:or.DragMove,coordinates:et})},onEnd:Ge(or.DragEnd),onCancel:Ge(or.DragCancel)});function Ge(et){return async function(){const{active:tt,collisions:it,over:At,scrollAdjustedTranslate:Lt}=ve.current;let _t=null;if(tt&&Lt){const{cancelDrop:$t}=D.current;_t={activatorEvent:je,active:tt,collisions:it,delta:Lt,over:At},et===or.DragEnd&&typeof $t=="function"&&await Promise.resolve($t(_t))&&(et=or.DragCancel)}P.current=null,yo.unstable_batchedUpdates(()=>{x({type:et}),E(Ka.Uninitialized),Ie(null),I(null),A(null),De.current=null;const $t=et===or.DragEnd?"onDragEnd":"onDragCancel";if(_t){const nn=D.current[$t];nn?.(_t),v({type:$t,event:_t})}})}}De.current=Fe},[_]),W=u.useCallback((te,ae)=>(pe,me)=>{const fe=pe.nativeEvent,je=_.get(me);if(P.current!==null||!je||fe.dndKit||fe.defaultPrevented)return;const Fe={active:je};te(pe,ae.options,Fe)===!0&&(fe.dndKit={capturedBy:ae.sensor},P.current=me,Ae(pe,ae))},[_,Ae]),Q=function(te,ae){return u.useMemo(()=>te.reduce((pe,me)=>{const{sensor:fe}=me;return[...pe,...fe.activators.map(je=>({eventName:je.eventName,handler:ae(je.handler,me)}))]},[]),[te,ae])}(d,W);(function(te){u.useEffect(()=>{if(!A2)return;const ae=te.map(pe=>{let{sensor:me}=pe;return me.setup==null?void 0:me.setup()});return()=>{for(const pe of ae)pe?.()}},te.map(ae=>{let{sensor:pe}=ae;return pe}))})(d),$i(()=>{xe&&w===Ka.Initializing&&E(Ka.Initialized)},[xe,w]),u.useEffect(()=>{const{onDragMove:te}=D.current,{active:ae,activatorEvent:pe,collisions:me,over:fe}=ve.current;if(!ae||!pe)return;const je={active:ae,activatorEvent:pe,collisions:me,delta:{x:ct.x,y:ct.y},over:fe};yo.unstable_batchedUpdates(()=>{te?.(je),v({type:"onDragMove",event:je})})},[ct.x,ct.y]),u.useEffect(()=>{const{active:te,activatorEvent:ae,collisions:pe,droppableContainers:me,scrollAdjustedTranslate:fe}=ve.current;if(!te||P.current==null||!ae||!fe)return;const{onDragOver:je}=D.current,Fe=me.get(Ye),Ge=Fe&&Fe.rect.current?{id:Fe.id,rect:Fe.rect.current,data:Fe.data,disabled:Fe.disabled}:null,et={active:te,activatorEvent:ae,collisions:pe,delta:{x:fe.x,y:fe.y},over:Ge};yo.unstable_batchedUpdates(()=>{Ie(Ge),je?.(et),v({type:"onDragOver",event:et})})},[Ye]),$i(()=>{ve.current={activatorEvent:z,active:k,activeNode:X,collisionRect:Qe,collisions:he,droppableRects:V,draggableNodes:_,draggingNode:Se,draggingNodeRect:ie,droppableContainers:T,over:ke,scrollableAncestors:Te,scrollAdjustedTranslate:ct},S.current={initial:ie,translated:Qe}},[k,X,he,Qe,_,Se,ie,V,T,ke,Te,ct]),function(te){let{acceleration:ae,activator:pe=Mc.Pointer,canScroll:me,draggingRect:fe,enabled:je,interval:Fe=5,order:Ge=Gu.TreeOrder,pointerCoordinates:et,scrollableAncestors:tt,scrollableAncestorRects:it,delta:At,threshold:Lt}=te;const _t=function(mn){let{delta:Ln,disabled:Nn}=mn;const hn=Uu(Ln);return cc(fo=>{if(Nn||!hn||!fo)return eB;const bo=Math.sign(Ln.x-hn.x),Fo=Math.sign(Ln.y-hn.y);return{x:{[sr.Backward]:fo.x[sr.Backward]||bo===-1,[sr.Forward]:fo.x[sr.Forward]||bo===1},y:{[sr.Backward]:fo.y[sr.Backward]||Fo===-1,[sr.Forward]:fo.y[sr.Forward]||Fo===1}}},[Nn,Ln,hn])}({delta:At,disabled:!je}),[$t,nn]=function(){const mn=u.useRef(null);return[u.useCallback((Ln,Nn)=>{mn.current=setInterval(Ln,Nn)},[]),u.useCallback(()=>{mn.current!==null&&(clearInterval(mn.current),mn.current=null)},[])]}(),Zt=u.useRef({x:0,y:0}),Tn=u.useRef({x:0,y:0}),pn=u.useMemo(()=>{switch(pe){case Mc.Pointer:return et?{top:et.y,bottom:et.y,left:et.x,right:et.x}:null;case Mc.DraggableRect:return fe}},[pe,fe,et]),En=u.useRef(null),kt=u.useCallback(()=>{const mn=En.current;if(!mn)return;const Ln=Zt.current.x*Tn.current.x,Nn=Zt.current.y*Tn.current.y;mn.scrollBy(Ln,Nn)},[]),on=u.useMemo(()=>Ge===Gu.TreeOrder?[...tt].reverse():tt,[Ge,tt]);u.useEffect(()=>{if(je&&tt.length&&pn){for(const mn of on){if(me?.(mn)===!1)continue;const Ln=tt.indexOf(mn),Nn=it[Ln];if(!Nn)continue;const{direction:hn,speed:fo}=KF(mn,Nn,pn,ae,Lt);for(const bo of["x","y"])_t[bo][hn[bo]]||(fo[bo]=0,hn[bo]=0);if(fo.x>0||fo.y>0)return nn(),En.current=mn,$t(kt,Fe),Zt.current=fo,void(Tn.current=hn)}Zt.current={x:0,y:0},Tn.current={x:0,y:0},nn()}else nn()},[ae,kt,me,nn,je,Fe,JSON.stringify(pn),JSON.stringify(_t),$t,tt,on,it,JSON.stringify(Lt)])}({...ne,delta:L,draggingRect:Qe,pointerCoordinates:Ee,scrollableAncestors:Te,scrollableAncestorRects:rt});const K=u.useMemo(()=>({active:k,activeNode:X,activeNodeRect:xe,activatorEvent:z,collisions:he,containerNodeRect:we,dragOverlay:ce,draggableNodes:_,droppableContainers:T,droppableRects:V,over:ke,measureDroppableContainers:U,scrollableAncestors:Te,scrollableAncestorRects:rt,measuringConfiguration:M,measuringScheduled:J,windowRect:Pe}),[k,X,xe,z,he,we,ce,_,T,V,ke,U,Te,rt,M,J,Pe]),se=u.useMemo(()=>({activatorEvent:z,activators:Q,active:k,activeNodeRect:xe,ariaDescribedById:{draggable:F},dispatch:x,draggableNodes:_,over:ke,measureDroppableContainers:U}),[z,Q,k,xe,x,F,_,ke,U]);return u.createElement(sS.Provider,{value:b},u.createElement(r1.Provider,{value:se},u.createElement(MS.Provider,{value:K},u.createElement(B2.Provider,{value:ue},c)),u.createElement(lB,{disabled:a?.restoreFocus===!1})),u.createElement(FF,{...a,hiddenTextDescribedById:F}))}),cB=u.createContext(null),Og="button";function _S(){return u.useContext(MS)}const dB={timeout:25};function uB(e){let{animation:t,children:n}=e;const[o,r]=u.useState(null),[i,a]=u.useState(null),l=Uu(n);return n||o||!l||r(l),$i(()=>{if(!i)return;const c=o?.key,d=o?.props.id;c!=null&&d!=null?Promise.resolve(t(d,i)).then(()=>{r(null)}):r(null)},[t,o,i]),u.createElement(u.Fragment,null,n,o?u.cloneElement(o,{ref:a}):null)}const pB={x:0,y:0,scaleX:1,scaleY:1};function hB(e){let{children:t}=e;return u.createElement(r1.Provider,{value:ES},u.createElement(B2.Provider,{value:pB},t))}const fB={position:"fixed",touchAction:"none"},mB=e=>z2(e)?"transform 250ms ease":void 0,gB=u.forwardRef((e,t)=>{let{as:n,activatorEvent:o,adjustScale:r,children:i,className:a,rect:l,style:c,transform:d,transition:p=mB}=e;if(!l)return null;const f=r?d:{...d,scaleX:1,scaleY:1},h={...fB,width:l.width,height:l.height,top:l.top,left:l.left,transform:Wl.Transform.toString(f),transformOrigin:r&&o?BF(o,l):void 0,transition:typeof p=="function"?p(o):p,...c};return u.createElement(n,{className:a,style:h,ref:t},i)}),jS={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Wl.Transform.toString(t)},{transform:Wl.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:o}=t;const r={},{styles:i,className:a}=e;if(i!=null&&i.active)for(const[l,c]of Object.entries(i.active))c!==void 0&&(r[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,c));if(i!=null&&i.dragOverlay)for(const[l,c]of Object.entries(i.dragOverlay))c!==void 0&&o.node.style.setProperty(l,c);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&o.node.classList.add(a.dragOverlay),function(){for(const[l,c]of Object.entries(r))n.node.style.setProperty(l,c);a!=null&&a.active&&n.node.classList.remove(a.active)}})({styles:{active:{opacity:"0"}}})};let Dg=0;const yB=u.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:r,transition:i,modifiers:a,wrapperElement:l="div",className:c,zIndex:d=999}=e;const{activatorEvent:p,active:f,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:y,dragOverlay:x,over:v,measuringConfiguration:b,scrollableAncestors:w,scrollableAncestorRects:E,windowRect:C}=_S(),R=u.useContext(B2),_=(k=f?.id,u.useMemo(()=>{if(k!=null)return Dg++,Dg},[k])),L=TS(a,{activatorEvent:p,active:f,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:x.rect,over:v,overlayNodeRect:x.rect,scrollableAncestors:w,scrollableAncestorRects:E,transform:R,windowRect:C}),T=Vh(h),j=function(P){let{config:O,draggableNodes:I,droppableContainers:z,measuringConfiguration:A}=P;return L2((D,F)=>{if(O===null)return;const B=I.get(D);if(!B)return;const M=B.node.current;if(!M)return;const N=kS(F);if(!N)return;const{transform:V}=Fr(F).getComputedStyle(F),U=pS(V);if(!U)return;const J=typeof O=="function"?O:function(X){const{duration:H,easing:ne,sideEffects:oe,keyframes:ye}={...jS,...X};return de=>{let{active:xe,dragOverlay:we,transform:ve,...re}=de;if(!H)return;const ce=we.rect.left-xe.rect.left,Se=we.rect.top-xe.rect.top,ie={scaleX:ve.scaleX!==1?xe.rect.width*ve.scaleX/we.rect.width:1,scaleY:ve.scaleY!==1?xe.rect.height*ve.scaleY/we.rect.height:1},Y={x:ve.x-ce,y:ve.y-Se,...ie},le=ye({...re,active:xe,dragOverlay:we,transform:{initial:ve,final:Y}}),[ee]=le,Pe=le[le.length-1];if(JSON.stringify(ee)===JSON.stringify(Pe))return;const Te=oe?.({active:xe,dragOverlay:we,...re}),rt=we.node.animate(le,{duration:H,easing:ne,fill:"forwards"});return new Promise(Ve=>{rt.onfinish=()=>{Te?.(),Ve()}})}}(O);return bS(M,A.draggable.measure),J({active:{id:D,data:B.data,node:M,rect:A.draggable.measure(M)},draggableNodes:I,dragOverlay:{node:F,rect:A.dragOverlay.measure(N)},droppableContainers:z,measuringConfiguration:A,transform:U})})}({config:o,draggableNodes:m,droppableContainers:y,measuringConfiguration:b}),S=T?x.setRef:void 0;var k;return u.createElement(hB,null,u.createElement(uB,{animation:j},f&&_?u.createElement(gB,{key:_,id:f.id,ref:S,as:l,activatorEvent:p,adjustScale:t,className:c,transition:i,rect:T,style:{zIndex:d,...r},transform:L},n):null))});function bf(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function xB(e,t){return e.reduce((n,o,r)=>{const i=t.get(o);return i&&(n[r]=i),n},Array(e.length))}function kd(e){return e!==null&&e>=0}const Ed={scaleX:1,scaleY:1},bB=e=>{var t;let{rects:n,activeNodeRect:o,activeIndex:r,overIndex:i,index:a}=e;const l=(t=n[r])!=null?t:o;if(!l)return null;const c=function(d,p,f){const h=d[p],g=d[p-1],m=d[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,a,r);if(a===r){const d=n[i];return d?{x:r<i?d.left+d.width-(l.left+l.width):d.left-l.left,y:0,...Ed}:null}return a>r&&a<=i?{x:-l.width-c,y:0,...Ed}:a<r&&a>=i?{x:l.width+c,y:0,...Ed}:{x:0,y:0,...Ed}},vf=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=bf(t,o,n),a=t[r],l=i[r];return l&&a?{x:l.left-a.left,y:l.top-a.top,scaleX:l.width/a.width,scaleY:l.height/a.height}:null},RS="Sortable",IS=u.createContext({activeIndex:-1,containerId:RS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:vf,disabled:{draggable:!1,droppable:!1}});function vB(e){let{children:t,id:n,items:o,strategy:r=vf,disabled:i=!1}=e;const{active:a,dragOverlay:l,droppableRects:c,over:d,measureDroppableContainers:p}=_S(),f=t1(RS,n),h=l.rect!==null,g=u.useMemo(()=>o.map(R=>typeof R=="object"&&"id"in R?R.id:R),[o]),m=a!=null,y=a?g.indexOf(a.id):-1,x=d?g.indexOf(d.id):-1,v=u.useRef(g),b=!function(R,_){if(R===_)return!0;if(R.length!==_.length)return!1;for(let L=0;L<R.length;L++)if(R[L]!==_[L])return!1;return!0}(g,v.current),w=x!==-1&&y===-1||b,E=function(R){return typeof R=="boolean"?{draggable:R,droppable:R}:R}(i);$i(()=>{b&&m&&p(g)},[b,g,m,p]),u.useEffect(()=>{v.current=g},[g]);const C=u.useMemo(()=>({activeIndex:y,containerId:f,disabled:E,disableTransforms:w,items:g,overIndex:x,useDragOverlay:h,sortedRects:xB(g,c),strategy:r}),[y,f,E.draggable,E.droppable,w,g,x,c,h,r]);return u.createElement(IS.Provider,{value:C},t)}const wB=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return bf(n,o,r).indexOf(t)},SB=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:d}=e;return!(!d||!o||l!==i&&r===a||!n&&(a===r||t!==c))},CB={duration:200,easing:"ease"},PS="transform",kB=Wl.Transition.toString({property:PS,duration:0,easing:"linear"}),EB={roleDescription:"sortable"};function Xu(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 MB=[$n.Down,$n.Right,$n.Up,$n.Left],TB=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:a,scrollableAncestors:l}}=t;if(MB.includes(e.code)){if(e.preventDefault(),!n||!o)return;const p=[];i.getEnabled().forEach(g=>{if(!g||g!=null&&g.disabled)return;const m=r.get(g.id);if(m)switch(e.code){case $n.Down:o.top<m.top&&p.push(g);break;case $n.Up:o.top>m.top&&p.push(g);break;case $n.Left:o.left>m.left&&p.push(g);break;case $n.Right:o.left<m.left&&p.push(g)}});const f=(g=>{let{collisionRect:m,droppableRects:y,droppableContainers:x}=g;const v=vg(m),b=[];for(const w of x){const{id:E}=w,C=y.get(E);if(C){const R=vg(C),_=v.reduce((T,j,S)=>T+cS(R[S],j),0),L=Number((_/4).toFixed(4));b.push({id:E,data:{droppableContainer:w,value:L}})}}return b.sort(dS)})({collisionRect:o,droppableRects:r,droppableContainers:p});let h=uS(f,"id");if(h===a?.id&&f.length>1&&(h=f[1].id),h!=null){const g=i.get(n.id),m=i.get(h),y=m?r.get(m.id):null,x=m?.node.current;if(x&&y&&g&&m){const v=F2(x).some((R,_)=>l[_]!==R),b=Ag(g,m),w=(d=m,!!(Xu(c=g)&&Xu(d)&&Ag(c,d))&&c.data.current.sortable.index<d.data.current.sortable.index),E=v||!b?{x:0,y:0}:{x:w?o.width-y.width:0,y:w?o.height-y.height:0},C={x:y.left,y:y.top};return E.x&&E.y?C:n1(C,E)}}}var c,d};function Ag(e,t){return!(!Xu(e)||!Xu(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const _B=e=>{let{transform:t}=e;return{...t,y:0}},jB=u.memo(u.forwardRef((e,t)=>{const{children:n,style:o,className:r,index:i,editing:a,editable:l,selectedIndex:c,background:d,activeColor:p,borderColor:f,borderWidth:h,dragging:g,...m}=e;return s.jsxs("div",{ref:t,className:Zr(r),style:{...o,display:"flex",flexDirection:"column",background:c===i?"white":d,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===i?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...m,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===i?"0px":"-1px",marginTop:c===i?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===i?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===i&&p?p?.toCSS():"none",minHeight:"2px"}})]})})),zi={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"},OS=u.memo(u.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:o,fadeIn:r,handle:i,height:a,index:l,listeners:c,onRemove:d,renderItem:p,sorting:f,style:h,transition:g,transform:m,value:y,wrapperStyle:x,...v},b)=>{u.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=p?p({dragOverlay:!!t,dragging:!!n,sorting:!!f,index:l,fadeIn:!!r,listeners:c,ref:b,style:h,transform:m,transition:g,value:y}):s.jsx(s.Fragment,{children:y});return s.jsx("div",{className:Zr("tab-item",zi.Wrapper,r&&zi.fadeIn,f&&zi.sorting,t&&zi.dragOverlay),style:{...x,transition:[g,x?.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":l},ref:b,children:s.jsx("div",{className:Zr(zi.Item,n&&zi.dragging,i&&zi.withHandle,t&&zi.dragOverlay,o&&zi.disabled,e&&zi.color,"dragging"),style:h,"data-cypress":"draggable-item",...i?void 0:c,...v,tabIndex:i?void 0:-1,children:w})})})),Lg={Row:"_Row_1kr10_1"},RB=u.memo(u.forwardRef(({children:e,horizontal:t,style:n},o)=>s.jsx("div",{ref:o,style:{...n},className:Zr(Lg.Row,t&&Lg.horizontal),children:e}))),IB={...jS},PB=u.memo(u.forwardRef((e,t)=>{const{className:n,activationConstraint:o,animateLayoutChanges:r,adjustScale:i=!1,collisionDetection:a=$F,coordinateGetter:l=TB,dropAnimation:c=IB,getItemStyles:d=()=>({}),getNewIndex:p,handle:f=!1,items:h,onMove:g,isDisabled:m=()=>!1,measuring:y,modifiers:x,renderItem:v,renderDivider:b,reorderItems:w=bf,strategy:E=vf,style:C,useDragOverlay:R=!0,onDragStart:_,wrapperStyle:L=()=>({})}=e,[T,j]=u.useState(()=>h);u.useEffect(()=>{j(h)},[h]);const[S,k]=u.useState(null),P=function(){for(var D=arguments.length,F=new Array(D),B=0;B<D;B++)F[B]=arguments[B];return u.useMemo(()=>[...F].filter(M=>M!=null),[...F])}(o5(SS,{activationConstraint:o}),o5(CS,{activationConstraint:o}),o5(yf,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:l})),O=T.indexOf.bind(T),I=S?O(S):-1,z=[];T.map((D,F)=>{z.push(s.jsx(OB,{id:D,handle:f,index:F,style:d,wrapperStyle:L,disabled:m(D),renderItem:v,animateLayoutChanges:r,useDragOverlay:R,getNewIndex:p},D+"-"+F));const B=b?.({key:"divider-"+F});B&&z.push(B)});const{getPortalContainer:A}=(u.useEffect(()=>{function D(){const F=document.fullscreenElement;if(!F)return;let B=F.querySelector(".fullscreen-portal-root");B||(B=document.createElement("div"),B.className="fullscreen-portal-root _fullscreen-portal-root_1mjsr_4",F.appendChild(B))}return Q1++,D(),document.addEventListener("fullscreenchange",D),()=>{document.removeEventListener("fullscreenchange",D),Q1--,Q1<=0&&(document.querySelectorAll(".fullscreen-portal-root").forEach(F=>{F.parentNode&&F.parentNode.removeChild(F)}),Q1=0)}},[]),{getPortalContainer:XR});return s.jsxs(sB,{sensors:P,collisionDetection:a,onDragStart:D=>{const{active:F}=D;F&&(_?.(D),k(F.id))},autoScroll:{canScroll:D=>!0},onDragEnd:D=>{if(k(null),D.over){const F=O(D.over.id);I!==F&&(j(B=>w(B,I,F)),g?.(I,F))}},onDragCancel:()=>{k(null)},measuring:y,modifiers:x,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...C},className:Zr(n,zi.Wrapper),children:s.jsx(vB,{items:T,strategy:E,children:s.jsx(RB,{ref:t,children:z})})}),R?yo.createPortal(s.jsx(yB,{adjustScale:i,dropAnimation:c,children:S?s.jsx(OS,{value:T[I],handle:f,renderItem:v,wrapperStyle:L({index:I,isDragging:!0,id:T[I]}),index:I,dragging:!0,style:d({id:T[I],index:I,isSorting:S!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),A()):null]})}));function OB({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:o,id:r,index:i,onRemove:a,style:l,renderItem:c,useDragOverlay:d,wrapperStyle:p}){const{attributes:f,isDragging:h,isSorting:g,listeners:m,overIndex:y,setNodeRef:x,transform:v,transition:b}=function(w){let{animateLayoutChanges:E=SB,attributes:C,disabled:R,data:_,getNewIndex:L=wB,id:T,strategy:j,resizeObserverConfig:S,transition:k=CB}=w;const{items:P,containerId:O,activeIndex:I,disabled:z,disableTransforms:A,sortedRects:D,overIndex:F,useDragOverlay:B,strategy:M}=u.useContext(IS),N=(he=z,typeof(Qe=R)=="boolean"?{draggable:Qe,droppable:!1}:{draggable:(Ye=Qe?.draggable)!=null?Ye:he.draggable,droppable:(ke=Qe?.droppable)!=null?ke:he.droppable}),V=P.indexOf(T),U=u.useMemo(()=>({sortable:{containerId:O,index:V,items:P},..._}),[O,_,V,P]),J=u.useMemo(()=>P.slice(P.indexOf(T)),[P,T]),{rect:X,node:H,isOver:ne,setNodeRef:oe}=function(Ie){let{data:ue,disabled:De=!1,id:Ae,resizeObserverConfig:W}=Ie;const Q=t1("Droppable"),{active:K,dispatch:se,over:te,measureDroppableContainers:ae}=u.useContext(r1),pe=u.useRef({disabled:De}),me=u.useRef(!1),fe=u.useRef(null),je=u.useRef(null),{disabled:Fe,updateMeasurementsFor:Ge,timeout:et}={...dB,...W},tt=kc(Ge??Ae),it=Zu({callback:u.useCallback(()=>{me.current?(je.current!=null&&clearTimeout(je.current),je.current=setTimeout(()=>{ae(Array.isArray(tt.current)?tt.current:[tt.current]),je.current=null},et)):me.current=!0},[et]),disabled:Fe||!K}),At=u.useCallback((nn,Zt)=>{it&&(Zt&&(it.unobserve(Zt),me.current=!1),nn&&it.observe(nn))},[it]),[Lt,_t]=tu(At),$t=kc(ue);return u.useEffect(()=>{it&&Lt.current&&(it.disconnect(),me.current=!1,it.observe(Lt.current))},[Lt,it]),u.useEffect(()=>(se({type:or.RegisterDroppable,element:{id:Ae,key:Q,disabled:De,node:Lt,rect:fe,data:$t}}),()=>se({type:or.UnregisterDroppable,key:Q,id:Ae})),[Ae]),u.useEffect(()=>{De!==pe.current.disabled&&(se({type:or.SetDroppableDisabled,id:Ae,key:Q,disabled:De}),pe.current.disabled=De)},[Ae,Q,De,se]),{active:K,rect:fe,isOver:te?.id===Ae,node:Lt,over:te,setNodeRef:_t}}({id:T,data:U,disabled:N.droppable,resizeObserverConfig:{updateMeasurementsFor:J,...S}}),{active:ye,activatorEvent:de,activeNodeRect:xe,attributes:we,setNodeRef:ve,listeners:re,isDragging:ce,over:Se,setActivatorNodeRef:ie,transform:Y}=function(Ie){let{id:ue,data:De,disabled:Ae=!1,attributes:W}=Ie;const Q=t1("Draggable"),{activators:K,activatorEvent:se,active:te,activeNodeRect:ae,ariaDescribedById:pe,draggableNodes:me,over:fe}=u.useContext(r1),{role:je=Og,roleDescription:Fe="draggable",tabIndex:Ge=0}=W??{},et=te?.id===ue,tt=u.useContext(et?B2:cB),[it,At]=tu(),[Lt,_t]=tu(),$t=(Zt=K,Tn=ue,u.useMemo(()=>Zt.reduce((pn,En)=>{let{eventName:kt,handler:on}=En;return pn[kt]=mn=>{on(mn,Tn)},pn},{}),[Zt,Tn])),nn=kc(De);var Zt,Tn;return $i(()=>(me.set(ue,{id:ue,key:Q,node:it,activatorNode:Lt,data:nn}),()=>{const pn=me.get(ue);pn&&pn.key===Q&&me.delete(ue)}),[me,ue]),{active:te,activatorEvent:se,activeNodeRect:ae,attributes:u.useMemo(()=>({role:je,tabIndex:Ge,"aria-disabled":Ae,"aria-pressed":!(!et||je!==Og)||void 0,"aria-roledescription":Fe,"aria-describedby":pe.draggable}),[Ae,je,Ge,et,Fe,pe.draggable]),isDragging:et,listeners:Ae?void 0:$t,node:it,over:fe,setNodeRef:At,setActivatorNodeRef:_t,transform:tt}}({id:T,data:U,attributes:{...EB,...C},disabled:N.draggable}),le=function(){for(var Ie=arguments.length,ue=new Array(Ie),De=0;De<Ie;De++)ue[De]=arguments[De];return u.useMemo(()=>Ae=>{ue.forEach(W=>W(Ae))},ue)}(oe,ve),ee=!!ye,Pe=ee&&!A&&kd(I)&&kd(F),Te=!B&&ce,rt=Pe?(Te&&Pe?Y:null)??(j??M)({rects:D,activeNodeRect:xe,activeIndex:I,overIndex:F,index:V}):null,Ve=kd(I)&&kd(F)?L({id:T,items:P,activeIndex:I,overIndex:F}):V,Ee=ye?.id,Re=u.useRef({activeId:Ee,items:P,newIndex:Ve,containerId:O}),Xe=P!==Re.current.items,Be=E({active:ye,containerId:O,isDragging:ce,isSorting:ee,id:T,index:V,items:P,newIndex:Re.current.newIndex,previousItems:Re.current.items,previousContainerId:Re.current.containerId,transition:k,wasDragging:Re.current.activeId!=null}),ct=function(Ie){let{disabled:ue,index:De,node:Ae,rect:W}=Ie;const[Q,K]=u.useState(null),se=u.useRef(De);return $i(()=>{if(!ue&&De!==se.current&&Ae.current){const te=W.current;if(te){const ae=d0(Ae.current,{ignoreTransform:!0}),pe={x:te.left-ae.left,y:te.top-ae.top,scaleX:te.width/ae.width,scaleY:te.height/ae.height};(pe.x||pe.y)&&K(pe)}}De!==se.current&&(se.current=De)},[ue,De,Ae,W]),u.useEffect(()=>{Q&&K(null)},[Q]),Q}({disabled:!Be,index:V,node:H,rect:X});var Qe,he,Ye,ke;return u.useEffect(()=>{ee&&Re.current.newIndex!==Ve&&(Re.current.newIndex=Ve),O!==Re.current.containerId&&(Re.current.containerId=O),P!==Re.current.items&&(Re.current.items=P)},[ee,Ve,O,P]),u.useEffect(()=>{if(Ee===Re.current.activeId)return;if(Ee!=null&&Re.current.activeId==null)return void(Re.current.activeId=Ee);const Ie=setTimeout(()=>{Re.current.activeId=Ee},50);return()=>clearTimeout(Ie)},[Ee]),{active:ye,activeIndex:I,attributes:we,data:U,rect:X,index:V,newIndex:Ve,items:P,isOver:ne,isSorting:ee,isDragging:ce,listeners:re,node:H,overIndex:F,over:Se,setNodeRef:le,setActivatorNodeRef:ie,setDroppableNodeRef:oe,setDraggableNodeRef:ve,transform:ct??rt,transition:ct||Xe&&Re.current.newIndex===V?kB:Te&&!z2(de)||!k||!ee&&!Be?void 0:Wl.Transition.toString({...k,property:PS})}}({id:r,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(OS,{ref:x,value:r,disabled:e,dragging:h,sorting:g,handle:o,renderItem:c,index:i,style:l({index:i,id:r,isDragging:h,isSorting:g,overIndex:y}),onRemove:a?()=>a(r):void 0,transform:v,transition:b,wrapperStyle:p({index:i,isDragging:h,id:r}),listeners:m,"data-index":i,"data-id":r,dragOverlay:!d&&h,...f})}const DB=new $.Color("rgb(33, 115, 70)"),AB="#eee",LB=e=>s.jsx(jB,{...e}),DS=u.memo(u.forwardRef((e,t)=>{const{children:n,style:o,className:r,selectedTabIndex:i=0,tabNames:a=[],onSelectedTabIndexChange:l,onTabNameChange:c,onTabMove:d,createScrollStartButton:p=eb,createScrollEndButton:f=tb,createScrollEdgeButton:h=AR,createTabButton:g=LB,createTabDivider:m,editLabelProps:y,disabled:x=!1,disableDrag:v=!1,background:b="white",activeColor:w=DB,borderColor:E=AB,borderWidth:C=1}=e,[R,_]=u.useState(i),[L,T]=u.useState(a),j=u.useCallback(ie=>{const Y=A.current?.[ie]?.closest(".tab-item")??A.current?.[ie];Y&&U.current?.scrollTo({top:Y.offsetTop,left:Y.offsetLeft,behavior:"smooth"})},[]);u.useEffect(()=>{j(i)},[i]);const S=u.useCallback((ie,Y)=>{Y!==R&&(_(Y),l?.(Y)),j(Y)},[l,R]),k=u.useCallback((ie,Y)=>{d?.(ie,Y)},[d]),P=u.useRef(null),[O,I]=u.useState(-1),z=u.useCallback((ie,Y)=>{c?.(ie,Y)},[c]);u.useLayoutEffect(()=>{_(i)},[i]),u.useLayoutEffect(()=>{T(a)},[a]);const A=u.useRef([]),D=u.useRef(null);u.useImperativeHandle(t,()=>Object.assign({startEdit(ie){A.current?.[ie]?.startEdit()},cancel(ie){A.current?.[ie]?.cancel()}},D.current),[R,O]);const F=u.useCallback(({value:ie,index:Y,dragging:le})=>{const{style:ee,maxLength:Pe,...Te}=y||{},rt=s.jsx(IF,{ref:Ve=>{A.current[Y]=Ve},value:ie,disabled:x,maxLength:Pe,style:{color:R===Y&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...ee},styleHover:{},onSubmit:Ve=>(P.current=!1,I(-1),z(Y,Ve)),onCancel:()=>{P.current=!1,I(-1)},onChange:Ve=>{P.current=!0,I(Y)},...Te});return g({onClick:Ve=>S(Ve,Y),value:ie,index:Y,editing:O===Y&&P.current,editable:!0,disabled:x,selectedIndex:R,background:b,activeColor:w,borderColor:E,borderWidth:C,dragging:le,children:rt})},[R,z,S,y,x,O,g]),[B,{width:M}]=Hl(),[N,{width:V}]=Hl(),U=u.useRef(null),[J,X]=u.useState({left:0,top:0,width:0,height:0}),[H,ne]=u.useState(null);u.useEffect(()=>{H!==null&&U.current&&U.current.scrollTo({left:H,behavior:"smooth"})},[H]);const oe=u.useCallback((ie,Y=!1)=>{if(!U.current)return 0;let le=U.current.firstChild.getBoundingClientRect(),ee=U.current.firstChild.firstChild.children,Pe=0;return Pe=Y?0:b4.getScrollTo(ie,le.left,ee,!0,Math.max(0,ie-200)),ne(Pe),Math.max(0,Pe)},[]),ye=u.useCallback((ie,Y=!1)=>{if(!U.current)return 0;let le=U.current.firstChild.getBoundingClientRect(),ee=U.current.firstChild.firstChild.children,Pe=0;const Te=Math.ceil(V-M);return Pe=Y?Te:b4.getScrollTo(ie,le.left,ee,!1,Math.max(0,ie+200)),ne(Pe),Math.min(Te,Pe)},[V,M]),de=u.useRef(null),xe=u.useRef(null),we=u.useCallback(()=>{xe.current&&(clearTimeout(xe.current),xe.current=null,de.current=null)},[]),ve=u.useCallback((ie,Y,le=260)=>{de.current=ie,xe.current=setTimeout(()=>{const ee=Y?oe(de.current||ie):ye(de.current||ie);ee!==de.current?ve(ee,Y,120):we()},le)},[oe,ye,we]);u.useEffect(()=>()=>we(),[we]);const re=u.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(J.left)<=0||Math.floor(V-M)===0,orientation:yr.Horizontal,onMouseUp:we,onMouseLeave:we,onMouseDown:()=>ve(U.current.scrollLeft,!0),onClick:ie=>oe(Math.min(U.current.scrollLeft,H??Number.MAX_SAFE_INTEGER),ie.ctrlKey)}),[J,H,V,M]),ce=u.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(V-M)<=Math.ceil(J.left),orientation:yr.Horizontal,onMouseUp:we,onMouseLeave:we,onMouseDown:()=>ve(U.current.scrollLeft,!1),onClick:ie=>ye(Math.max(U.current.scrollLeft,H??0),ie.ctrlKey)}),[J,H,V,M]),Se=u.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,h?.(re)]}),[re,ce,p,f,n,h]);return s.jsxs("div",{style:{...o,display:"flex",alignItems:"stretch"},className:Zr("_TabStrip_3x0dp_1",r),ref:D,children:[s.jsx("div",{style:{borderTop:`solid ${E} ${C}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Se}),s.jsx("div",{className:"Tabs",ref:B,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:U,onScroll:ie=>{X({left:ie.target.scrollLeft,top:ie.target.scrollTop,width:ie.target.scrollWidth,height:ie.target.scrollHeight})},children:s.jsx(PB,{isDisabled:ie=>x||v,items:L,strategy:bB,modifiers:[_B],ref:N,renderItem:F,renderDivider:m,onMove:k,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:h(ce)})]})}));DS.displayName="TabStrip";const zB=u.createContext(null),wf=()=>{const e=u.useContext(zB),[t]=u.useState(()=>new $.ThemeCollection);return u.useMemo(()=>e||t,[e])},FB=u.lazy(()=>Promise.resolve().then(()=>require("./DGlLxziqSNTW0c6v.cjs"))),BB={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"},zg=async(e,t,n)=>{const o=e.getModel();if(!o)return;const r=await t.languages.typescript.getTypeScriptWorker(),i=await r(o.uri),a=await i.getNavigationTree(o.uri.toString()),l=e.getPosition();let c={...l};c.lineNumber=1,c.column=1;let d=!1;for(let y=l.lineNumber;y>=1;y--)if(o.getLineContent(y).trim()===""){const x=Sf(a,o.getOffsetAt({lineNumber:y,column:1}),"function");if(!x||$B(x)){d=!0,c.lineNumber=y+1;break}{const v=x.spans[0].start;y=o.getPositionAt(v).lineNumber,c.lineNumber=y}}let p=n,f=!1;!d&&!p.startsWith(`
213
- `)&&c.lineNumber>1&&(p=`
214
- `+p,f=!0);let h=!1;o.getLineCount()>1&&(p.endsWith(`
215
-
216
- `)||(p+=`
217
-
218
- `,h=!0));const g=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${p}`}];let m=null;o.pushEditOperations([],g,y=>(m=y[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 NB(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 Hh(e,t,n,o,r=[]){if(o.kind==="function"&&o.kindModifiers==="export"){const i=o.spans[0].start,a=e.getPositionAt(i);r.push({name:o.text,type:NB(n,o),lineNumber:a.lineNumber})}if(o.childItems)for(const i of o.childItems)Hh(e,t,n,i,r);return r}function Sf(e,t,n="function",o){const r=e.spans;for(let i=0;i<r.length;i++){const a=r[i];if(a.start<=t&&t<a.start+a.length){if(e.kind===n&&(!o||e.kindModifiers===o))return e;for(const l of e.childItems||[]){const c=Sf(l,t,n,o);if(c)return c}}return null}}function $B(e){return e.kind==="comment"}const VB=u.memo(u.forwardRef((e,t)=>{const{className:n,style:o,commands:r,readOnly:i=!1,onClose:a,darkMode:l,loadingPanel:c,autoFocus:d=!0,onStatusChange:p,...f}=e,h=u.useRef(null),g=_e(a,[a]),m=u.useRef(!1),y=u.useMemo(()=>({contains(D){if(!h.current)return;const F=h.current.editor;return F&&F.getDomNode()?.contains(D)},focus(){if(!h.current)return;const D=h.current.editor;return D&&D.getDomNode()?.focus()}}),[]),x=u.useMemo(()=>[new He("help",y,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),v=u.useMemo(()=>{let D=null;const F=()=>y;return D=r?r.createChildGroup(F,"scriptEditor",!1):new r0(F,"scriptEditor"),D.addCommands(x,!0),D},[r,x]),b=_o(v,["executeSelectedScript"])[0],w=b?.context(),E=_e(D=>{b?.execute(D)},[b]),C=u.useRef(""),[R,_]=u.useState(!1),L=_e(async()=>{if(!h.current)return null;const D=h.current,F=D.editor;if(!F)return null;const B=D.monaco,M=await(async(N,V,U="export")=>{const J=N.getModel();if(!J)return null;const X=await V.languages.typescript.getTypeScriptWorker(),H=await X(J.uri),ne=await H.getNavigationTree(J.uri.toString());let oe=null,ye=N.getSelection();const de=ye.startLineNumber===ye.endLineNumber&&ye.startColumn===ye.endColumn?J.getLineCount():Math.min(ye.endLineNumber,J.getLineCount());for(let xe=ye.startLineNumber;!oe&&xe<=de;xe++){const we=Sf(ne,J.getOffsetAt({lineNumber:xe,column:1}),"function",U);we&&(oe=we.text)}return oe})(F,B);return p?.({message:(M??"").toUpperCase()}),M?{source:F.getValue(),name:M}:null},[p]),T=_e(async(D,F,B)=>{const M=await w.getScripts().createModule({source:B?.getValue(),declarationsOnly:!0}),N=M?M.getFunctions().search():Xt.EmptyArray;M&&(async function(V,U){const J=[];for(let X=1;X<V.getLineCount()+1;X++){const H={startLineNumber:X,startColumn:1,endLineNumber:X,endColumn:V.getLineLength(X)+1},ne=V.getValueInRange(H).indexOf("modelt");ne!==-1&&J.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:U.MarkerSeverity.Hint,startLineNumber:H.startLineNumber,startColumn:ne+1,endLineNumber:H.startLineNumber,endColumn:ne+5})}U.editor.setModelMarkers(V,"owner",J)}(D,F),async function(V,U,J,X){const H=await U.languages.typescript.getTypeScriptWorker(),ne=await H(V.uri),oe=await ne.getNavigationTree(V.uri.toString()),ye=Hh(V,U,X,oe).map(de=>{let xe=null,we=null;return de.type==="formula"?(xe="formula.margin-icon",we="Formula"):de.type==="macro"?(xe="macro.margin-icon",we="Macro"):de.type==="autoRun"&&(xe="autorun.margin-icon",we="Auto Run"),{range:new U.Range(de.lineNumber,1,de.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:xe,glyphMarginHoverMessage:we,stickiness:U.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});P.current&&P.current.clear(),P.current=J.createDecorationsCollection(ye)}(D,F,B,N))},[w]),j=_e(Xt.debounce(T,580),[]),S=_e(async(D=void 0)=>{if(!h.current||!w)return;const F=h.current.editor.getPosition(),B={cursor:F?F.toString():""};D!==void 0&&(B.message=D),p?.(B);const M=L();w.setSelectedFunction(M)},[w,p]);u.useEffect(()=>{if(!w)return;const D={insertSnippet:B=>{h.current?.editor&&(R?zg(h.current.editor,h.current.monaco,B):C.current=B)}};w.setEditor(D),w.setSelectedFunction(L());const F=w.addContainerListener({onBeforeSave:async()=>{if(!h.current?.editor||!w)return;const B=h.current.editor,M=w?.getScripts().getModules().getByName("scripting"),N=M?.getSource(),V=B.getValue();if((N?.length??0)===V.length&&N===V)return;await w.saveSource(B.getValue());const U=(N?.length??0)!==V.length||N!==V;p?.({dirty:U})},onReadonlyChange(){},onScriptChange:async()=>{if(!h.current?.editor||!w)return;const B=h.current.editor,M=w.getScripts().getModules().search()[0]?.getSource()??"";B.setValue(M)}});return()=>{F(),w.setSelectedFunction(null),w.setEditor(null)}},[w,R]),u.useEffect(()=>()=>{if(!h.current?.editor)return;const D=h.current.editor;w?.saveSource(D.getValue())},[]);const k=_e(D=>{const F=h.current;if(!F)return!1;const B=F.editor;return!!B&&(B.focus(),!0)},[]),P=u.useRef(null),O=_e((D,F)=>{h.current={monaco:F,editor:D},_(!0),S("Loading Types");const B=w.getScripts().getModules().search()[0]?.getSource()??"";D.setValue(B),Promise.resolve().then(()=>require("./CQAkk0gbl342HFs-.cjs")).then(V=>V.c).then(V=>{S(""),V.AutoTypings.create(D,{shareCache:!0,monaco:F,onError:U=>{U==="Not implemented yet"&&(U="Compile Errors"),console.warn("Error compiling types",U)}}).then(async U=>{const J=D.getModel();j(J,F,D)})}),D.addCommand("executeScript",function(V,...U){U?.[0]&&E({functionName:U?.[0]})},""),D.addAction({id:"executeScript",label:"Execute",keybindings:[F.KeyCode.F8],run:async V=>{const U=L();w.setSelectedFunction(U);const J=await U;E(J)}}),D.addAction({id:"saveScript",label:"Save Script",keybindings:[F.KeyMod.CtrlCmd|F.KeyCode.KeyS],run:V=>{w?.saveSource(D.getValue()).then(()=>{const U=w?.getScripts().getModules().getByName("scripting"),J=U?.getSource(),X=D.getValue(),H=(J?.length??0)!==X.length||J!==X;p?.({dirty:H})})}}),D.onMouseDown(async V=>{if(V.target.type===F.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const U=V.target.position.lineNumber,J=await F.languages.typescript.getTypeScriptWorker(),X=await J(M.uri),H=await X.getNavigationTree(M.uri.toString()),ne=D?.getValue(),oe=(await w?.saveSource(ne)).getFunctions().search(),ye=Hh(M,F,oe,H).find(de=>de.lineNumber===U);if(ye){const de=V.event.browserEvent.button;de===0?ye.type==="macro"||ye.type==="autoRun"?E({functionName:ye.name}):ye.type==="formula"&&w.quickInsertFunction?.(ye.name):de===2&&(console.log("Context menu for function:",ye.name),V.event.browserEvent.preventDefault())}}}),D.onDidChangeModelContent(()=>{const V=D.getModel();j(V,F,D)});const M=D.getModel();var N;(N=F).languages.registerInlayHintsProvider("typescript",{provideInlayHints(V,U,J){const X=[];for(let H=1;H<V.getLineCount()+1;H++){const ne={startLineNumber:H,startColumn:1,endLineNumber:H,endColumn:V.getLineLength(H)+1},oe="hint",ye=V.getValueInRange(ne).indexOf("hint");ye!==-1&&X.push({kind:N.languages.InlayHintKind.Type,position:{lineNumber:ne.startLineNumber,column:ye+oe.length+1},label:"[hint]"})}return{hints:X,dispose:()=>{}}}}),M.onDidChangeContent(V=>{const U=w?.getScripts().getModules().getByName("scripting"),J=U?.getSource(),X=D.getValue(),H=(J?.length??0)!==X.length||J!==X;p?.({dirty:H})}),D.onDidChangeCursorPosition(V=>{S()})},[w,p]),I=u.useMemo(()=>R?null:c||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[R,c]),z=u.useMemo(()=>{const D=w?.getScripts().getModules().getByName("scripting")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(u.Suspense,{children:s.jsx(FB,{theme:l?"extended-dark":"extended",options:{...BB,fixedOverflowWidgets:!0,readOnly:i},language:"typescript",value:D,onValidate:F=>{let B=!1;for(let M=0;!B&&M<F?.length;M++)F[M].severity===8&&(B=!0)},beforeMount:F=>{F.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),F.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),F.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),F.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let B=!1;try{const N=await(async()=>await(await fetch("https://cdn.jsdelivr.net/npm/@sheetxl/sdk/types/scripting.d.ts")).text())(),V=F.Uri.parse('inmemory://model/"sheetxl-models".d.ts'),U=F.editor.createModel(N,"typescript",V);F.editor.setModelMarkers(U,"default",[]),B=!0}catch(N){console.warn("cant load types",N)}F.languages.registerLinkProvider("*",{provideLinks:(N,V)=>{const U=[],J={links:U},X=N.getLinesContent();for(let H=1;H<=X.length;H++){const ne=X[H-1],oe=F.editor.tokenize(ne,"typescript");for(let ye=0;ye<oe[0].length;ye++){const de=oe[0]?.[ye];if(de&&de.type.startsWith("string")){let xe=de.offset,we=oe[0]?.[ye+1]?.offset??ne.length,ve=new F.Range(H,xe+1,H,we+1),re=N.getValueInRange(ve);const ce=re[0];ce!=="`"&&ce!=="'"&&ce!=='"'||(xe++,re=re.substring(1));const Se=re[re.length-1];Se!=="`"&&Se!=="'"&&Se!=='"'||(xe++,re=re.substring(0,re.length-1));try{w.getRanges(re)&&U.push({range:{endColumn:we,endLineNumber:H,startColumn:xe,startLineNumber:H},tooltip:`Goto range '${re}'`,url:`/range/${re}`})}catch(ie){console.warn(ie)}}}}return J}}),F.editor.registerLinkOpener({open(N){if(N?.path?.startsWith("/range/")){try{w.getRanges(N.path.substring(7))?.select()}catch(V){console.warn("invalid range",V)}return!0}return!1}});const M=F.languages.typescript.typescriptDefaults.getCompilerOptions();F.languages.typescript.typescriptDefaults.setCompilerOptions({...M,target:F.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:F.languages.typescript.ModuleResolutionKind.Classic,baseUrl:"inmemory://model/",allowNonTsExtensions:!0}),C.current&&(await zg(h.current.editor,h.current.monaco,C.current),C.current=null),m.current&&requestAnimationFrame(async()=>{m.current&&F.editor.focus()}),F.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1}),_(!0)})()},onMount:O})}),I]})},[w,v,i,I,l]),A=ir(t,()=>({isScriptEditorElement:()=>!0,focus:D=>{k(D)},close:()=>{g?.()},getEditor:()=>w?.getEditor()}),[w]);return u.useEffect(()=>(d&&requestAnimationFrame(()=>{k()}),()=>{h.current?.editor&&requestAnimationFrame(()=>{A.current?.contains(document.activeElement)&&k()})}),[]),s.jsx("div",{className:Zr("script-editor","_script-editor_iy654_5",n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:A,...f,children:z})})),AS={Preset:"preset",Custom:"custom"},Is={Start:"start",End:"end"},l5={},HB=(e,t,n,o)=>{const r=e+"-"+t+"-"+n+(o?"-server":"");if(l5[r])return l5[r];const i=((a,l,c,d)=>{if(typeof document>"u"&&!d)return null;const p=d?new d:document.createElement("canvas");p.width=2*c,p.height=2*c;const f=p.getContext("2d");return f?(f.fillStyle=a,f.fillRect(0,0,p.width,p.height),f.fillStyle=l,f.fillRect(0,0,c,c),f.translate(c,c),f.fillRect(0,0,c,c),p.toDataURL()):null})(e,t,n,o);return l5[r]=i,i},WB={},LS=u.memo(e=>{const{className:t,style:n=_n.EmptyCssProperties,white:o="transparent",grey:r="grey",size:i=8,borderRadius:a,boxShadow:l,renderers:c=WB,children:d,...p}=e,f=d,h=u.useMemo(()=>Object.assign({borderRadius:a,boxShadow:l,position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",background:`url(${HB(o,r,i,c?.canvas)}) center left`},n),[o,r,i,c]);return u.isValidElement(d)?u.cloneElement(d,{...f.props}):s.jsx("div",{style:h,...p})}),UB=u.memo(e=>{const{selectedColor:t,onSelectColor:n,onPreviewColor:o,onClick:r,onKeyDown:i,onMouseOver:a,onMouseLeave:l,onFocus:c,style:d=_n.EmptyCssProperties,children:p,alphaWhite:f,alphaGrey:h,darkMode:g,alphaCheckSize:m=7,...y}=e;if(!t)throw new Error("a selectedColor is required");const x=u.useCallback(R=>{r?.(R),R.isDefaultPrevented()||(R.ctrlKey?o?.(t.toRGBA()):n?.(t.toRGBA()))},[n,o,r,t]),v=u.useCallback(R=>{a?.(R),R.isDefaultPrevented()||o?.(t.toRGBA())},[o,a,t]),b=u.useCallback(R=>{l?.(R),R.isDefaultPrevented()},[o,l]),w=u.useCallback(R=>{c?.(R),R.isDefaultPrevented()||o?.(t.toRGBA())},[o,c,t]),E=u.useCallback(R=>{i?.(R),R.isDefaultPrevented()||R.keyCode===tn.Enter&&n?.(t.toRGBA())},[n,i,t]),C=u.useMemo(()=>t.toRGBA().alpha===1?null:s.jsx(LS,{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 s.jsxs("div",{style:{position:"absolute",height:"100%",width:"100%",top:"0px",left:"0px",cursor:"pointer",outline:"none",...d},tabIndex:0,...y,onClick:x,onKeyDown:E,onMouseOver:v,onMouseLeave:b,onFocus:w,children:[C,s.jsx("div",{style:{position:"absolute",top:"0px",left:"0px",height:"100%",width:"100%",background:t.toCSS(g)},children:p})]})}),N2=u.memo(e=>{const{schemeColorLookup:t,selectedColor:n,previewColor:o,colorDef:r,onSelectColorDef:i,onPreviewColorDef:a,swatchProps:l,defaultButtonSize:c=24,isLarge:d=!1,compareRGB:p=!1,darkMode:f=!1,...h}=e,g=new $.Color({val:r.definition.val,adjs:r.definition.adjs},C=>t(C)),m=p?g.toRGBA().toString():g.toString(),y=n&&(p?n.toRGBA().toString():n.toString())===m,x=o&&(p?o.toRGBA().toString():o.toString())===m,v=[];v.push({[$.IColor.AdjustmentType.Inv]:!0}),v.push({[$.IColor.AdjustmentType.Alpha]:100});const b=g.adjust(v),w=u.useCallback(()=>{i?.(r)},[i,r]),E=u.useCallback(C=>{a?.(C?r:null)},[a,r]);return s.jsx(di,{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:s.jsx("div",{style:{width:c*(d?1.2:1)+"px",height:c*(d?1.2:1)+"px",position:"relative",boxSizing:"border-box",cursor:"pointer",outline:"none"},...h,children:s.jsxs(UB,{selectedColor:g,title:null,onSelectColor:w,onPreviewColor:E,alphaCheckSize:d?9:void 0,darkMode:f,...l,children:[s.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:y?"1":"0"}}),s.jsx("div",{style:{position:"absolute",width:.33*c*(d?1.2:1)+"px",height:.33*c*(d?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:x?"1":"0"}})]})})})}),Md=u.memo(e=>{const{title:t,schemeColorLookup:n,colorDefs:o,selectedColor:r,previewColor:i,onSelectColorDef:a,onPreviewColorDef:l,style:c=_n.EmptyCssProperties,compareRGB:d=!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=u.useCallback(b=>{a?.(b)},[a]),y=u.useCallback(b=>{l?.(b)},[l]),x=u.useMemo(()=>{let b=[];for(let w=0;w<g.length;w++){let E=[],C=g[w];for(let _=0;_<C.length;_++){let L=C[_];E.push(s.jsx(N2,{schemeColorLookup:n,colorDef:L,selectedColor:r,previewColor:i,onSelectColorDef:m,onPreviewColorDef:y,swatchProps:f,compareRGB:d,darkMode:p},w+" "+_))}let R=s.jsx(Le,{className:"button-col",sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:_=>_.shadows[2],borderRadius:"2px",overflow:"hidden"},children:E},""+w);b.push(R)}return b},[g,r,i,m,y]),v=u.useMemo(()=>t?s.jsx(Mn,{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 s.jsxs(Le,{style:{...c},children:[v,s.jsx(Le,{sx:{display:"flex",flexDirection:"row",gap:"6px",marginBottom:"14px",flexWrap:"wrap",justifyContent:"flex-start"},...h,children:x})]})}),Fi=(e,t)=>({description:e,definition:{val:t,adjs:[]}}),Ho=(e,t,n,o,r,i)=>{const a=Fi(e,t);o?.push(a);const l=new $.Color({val:a.definition.val,adjs:a.definition.adjs},n),c=l.toString();r?.set(c,l);const d=l.toRGBA().toString();i?.set(d,l)},qB=u.lazy(()=>Promise.resolve().then(()=>require("./BBuQH_geF9Xg5HPn.cjs"))),zS=u.memo(u.forwardRef((e,t)=>{const{selectedColor:n=null,previewColor:o=e.selectedColor??null,recentColors:r,schemeLookup:i,disableAlpha:a=!1,previewDebounceTime:l=100,initialPanelType:c,defaultButtonSize:d=24,width:p,onElementLoad:f,onDone:h,onEyeDropStart:g,onEyeDropStop:m,onPreviewColor:y,onPreviewColorImmediate:x,onSelectColor:v,autoColor:b,autoColorLabel:w="Automatic",autoColorPosition:E=Is.Start,compareRGB:C=!1,darkMode:R=!1,..._}=e,L=o||n,T=_e(y,[y]),j=_e(x,[x]),S=_e(v,[v]),k=_e(g,[g]),P=_e(m,[m]),[O,I]=u.useState(!1),z=qi(),A=u.useMemo(()=>i||$.Color.getDefaultSchemeLookup(),[i]),D=u.useMemo(()=>{const re=new Map,ce=new Map,Se=[];Ho("Primary Background","bg1",A,Se,re,ce),Ho("Primary Text","tx1",A,Se,re,ce),Ho("Secondary Background","bg2",A,Se,re,ce),Ho("Secondary Text","tx2",A,Se,re,ce),Ho("Accent 1","accent1",A,Se,re,ce),Ho("Accent 2","accent2",A,Se,re,ce),Ho("Accent 3","accent3",A,Se,re,ce),Ho("Accent 4","accent4",A,Se,re,ce),Ho("Accent 5","accent5",A,Se,re,ce),Ho("Accent 6","accent6",A,Se,re,ce);const ie=$.ITheme.buildPalette(Se,A,re,ce),Y=[];if(Ho("Dark Red","C00000",A,Y,re,ce),Ho("Red","FF0000",A,Y,re,ce),Ho("Orange","FFC000",A,Y,re,ce),Ho("Yellow","FFFF00",A,Y,re,ce),Ho("Light Green","92D050",A,Y,re,ce),Ho("Green","00B050",A,Y,re,ce),Ho("Light Blue","00B0F0",A,Y,re,ce),Ho("Blue","0070C0",A,Y,re,ce),Ho("Dark Blue","002060",A,Y,re,ce),a?Ho("Purple Is A Fruit","7030A0",A,Y,re,ce):Ho("Transparent","00000000",A,Y,re,ce),b){const Te=b.toString();re.set(Te,b)}const le=new Map,ee=typeof r=="function"?r():r,Pe=[];for(let Te=0;ee&&Te<ee.length;Te++){const rt=ee[Te].toString();le.set(rt,ee[Te]),Pe.push({description:"Recent "+(Te+1),definition:{val:ee[Te].toString()}})}return{primaryColors:Se,modifiedPresets:ie,standardColors:Y,recentColorsLimited:Pe,mapAllPresets:re,mapAllPresetsRGB:ce,mapRecent:le}},[A,r,a,b]);u.useEffect(()=>{f?.()},[]);const[F,B]=u.useState(!1),M=u.useCallback(()=>{B(re=>!re)},[]);u.useEffect(()=>{if(c)B(c===AS.Custom);else if(n){let re=n.toString(),ce=D.mapAllPresets.get(re);ce||(re=n.toRGBA().toString(),ce=D.mapAllPresetsRGB.get(re));const Se=D.mapRecent.get(re);B(!ce&&!Se)}},[n,c]);const N=u.useCallback($.CommonUtils.debounce(re=>{T?.(re)},l),[T,l]),[V,U]=u.useState();u.useEffect(()=>{U(o||n)},[o,n]);const J=_e(re=>{j&&(j(re),N(re))},[j]),X=_e(re=>{J(re?new $.Color({val:re.definition.val,adjs:re.definition.adjs},A):null)},[A]),H=u.useCallback(re=>{re.ctrlKey&&B(!0)},[]),ne=_e(re=>{let ce=!1;if(re){const Se=re.toString();ce=!D.mapAllPresets.has(Se)}S?.(re,ce)},[S,D]),oe=_e(re=>{const ce=re?new $.Color({val:re.definition.val,adjs:re.definition.adjs},A):null;Promise.resolve(h?.()).then(()=>{ne(ce)})},[A,h]),ye=_e(re=>{J(re?new $.Color(re,A):null)},[A]),de=u.useMemo(()=>window.EyeDropper===void 0?s.jsx(s.Fragment,{}):s.jsx(Tr,{"aria-label":"eye dropper",size:"small",sx:{color:re=>re.palette.text.icon??re.palette.action.active},onClick:async()=>{I(!0),k?.(),await new EyeDropper().open().then(re=>{I(!1),P?.();let ce=new $.Color(re.sRGBHex),Se=ce.toString(),ie=D.mapAllPresets.get(Se);if(ie||(Se=ce.toRGBA().toString(),ie=D.mapAllPresetsRGB.get(Se)),!ie){const Y=ce.toRGBA(),le=3;let ee=255;D.mapAllPresetsRGB.forEach((Pe,Te)=>{const rt=Pe.toRGBA(),Ve=Math.abs(rt.red-Y.red)+Math.abs(rt.blue-Y.blue)+Math.abs(rt.green-Y.green);Ve<le&&Ve<ee&&(ie=Pe)})}B(!ie),J(ie||ce)}).catch(re=>{I(!1),re?.name!=="AbortError"&&console.error(re)})},children:s.jsx(rR,{})}),[D,R]),xe=u.useMemo(()=>{if(!F)return;const re={opacity:F?1:"0",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",boxSizing:"border-box"};return s.jsx(u.Suspense,{fallback:s.jsx("div",{style:re,children:s.jsx(i0,{})}),children:s.jsx(qB,{style:re,selectedColor:L?L.toRGBA().toString():"transparent",onColorChange:ye,disableAlpha:a})})},[F,L]),we=u.useMemo(()=>({onClick:H,alphaGrey:z.palette.text.icon??z.palette.action.active}),[H,z]),ve=u.useMemo(()=>{if(!b)return null;const re={description:w,definition:{val:b.getVal(),adjs:b.getAdjustments()}};return s.jsx(s.Fragment,{children:s.jsxs(b1,{sx:{display:"flex",color:ce=>ce.palette.text.secondary},onMouseOver:()=>{X(null)},onClick:()=>{oe(null)},children:[s.jsx(Le,{sx:{flex:"none",boxShadow:ce=>ce.shadows[2],borderRadius:ce=>ce.spacing(.5),overflow:"hidden"},children:s.jsx(N2,{schemeColorLookup:A,colorDef:re,selectedColor:n===null?b:n,previewColor:o===null?b:o,defaultButtonSize:d,isLarge:!0,darkMode:R,compareRGB:C,swatchProps:we})}),s.jsx(Mn,{noWrap:!0,component:"div",style:{display:"flex",flex:"1 1 100%",marginLeft:"8px",userSelect:"none"},children:w})]})})},[b,w,A,n,o]);return s.jsxs(Le,{ref:t,sx:{width:p,outline:"none",padding:"10px 10px",overflow:"hidden",boxSizing:"content-box"},..._,children:[s.jsxs("div",{style:{position:"relative",display:"flex"},children:[s.jsxs("div",{style:{opacity:F?"0":1},children:[ve&&E===Is.Start?s.jsxs(s.Fragment,{children:[ve,s.jsx(va,{light:!0,style:{marginTop:"2px",marginBottom:"10px"}})]}):null,s.jsx(Md,{title:"Theme Colors",schemeColorLookup:A,colorDefs:D.primaryColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:we,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:C,darkMode:R}),s.jsx(Md,{schemeColorLookup:A,colorDefs:D.modifiedPresets,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:we,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:C,darkMode:R}),s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Md,{title:"Standard Colors",schemeColorLookup:A,colorDefs:D.standardColors,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:we,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:C,darkMode:R}),s.jsxs("div",{style:{opacity:D.recentColorsLimited.length===0?"0":void 0,display:D.recentColorsLimited.length===0?"none":void 0},children:[s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsx(Md,{title:"Recent Colors",schemeColorLookup:A,colorDefs:D.recentColorsLimited,selectedColor:n,previewColor:o===void 0?n:o,swatchProps:we,onPreviewColorDef:X,onSelectColorDef:oe,compareRGB:C,darkMode:R})]}),ve&&E===Is.End?s.jsxs(s.Fragment,{children:[s.jsx(va,{light:!0,sx:{marginTop:"2px",marginBottom:"2px"}}),ve,s.jsx("div",{style:{marginBottom:"2px"}})]}):null]}),xe]}),s.jsx(va,{light:!0,style:{marginBottom:"10px"}}),s.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-around",gap:"8px",paddingLeft:"2px",paddingRight:"2px"},children:[de,s.jsx("div",{style:{flex:"1 1 100%",background:"pink"}}),s.jsx(Lc,{style:{minWidth:"75px",maxWidth:"75px"},value:"check",variant:"outlined",size:"small",onClick:()=>{M()},children:s.jsx("div",F?{children:"Preset"}:{children:"Custom"})}),s.jsx(Lc,{variant:"contained",size:"small",style:{minWidth:"75px"},onClick:()=>{Promise.resolve(h?.()).then(()=>{ne(V)})},children:"Done"})]})]})})),KB=s.jsx(e=>{const{sx:t,...n}=e;return s.jsxs(Je,{sx:{overflow:"visible","& .activeColor":{filter:S1},...t},...n,children:[s.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"}),s.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"}),s.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"})]})},{}),Cf=u.memo(u.forwardRef((e,t)=>{const{selectedColor:n,quickColor:o,icon:r=KB,tooltip:i,label:a,onPreviewColor:l,onPreviewColorImmediate:c,onSelectColor:d,variant:p=ji.Toolbar,panelProps:f,shouldCloseFloatAll:h=!0,compareRGB:g=!1,darkMode:m=!1,...y}=e,x=_e(l,[l]),v=_e(c,[c]),b=_e(d,[d]),[w,E]=u.useState(()=>{}),C=o||w||n||f?.autoColor,R=r,_=u.useRef(!1),L=u.useCallback(()=>{},[]),T=_e(()=>{E(n)},[n]),j=_e(F=>{_.current||(E(F),x?.(F))},[x]),S=_e(F=>{_.current||(E(F),v?.(F))},[v]),k=_e((F,B)=>{_.current||(E(void 0),b?.(F,B))},[b]),P=u.useMemo(()=>s.jsx(Le,{sx:{width:"24px",height:"24px",color:"inherit","--sxl-color-active":`${C?.toCSS(m)??"transparent"}`,"& .activeColor":{fill:`${C?.toCSS(m)??"transparent"}`},"& .style_grey":{fill:F=>F.palette.text.icon??F.palette.action.active}},children:R}),[C,R,m]),O=_e(F=>{b?.(o,!1)},[b,o]),[I,z]=u.useState(!1),A=u.useCallback(F=>{const{closeFloat:B,closeFloatAll:M}=F;return s.jsx(zS,{...f,selectedColor:n,previewColor:w,onDone:h?M:B,onKeyDown:N=>{N.which===tn.Enter&&(h?M():B())},onPreviewColorImmediate:S,onPreviewColor:j,onSelectColor:k,onEyeDropStart:()=>z(!0),onEyeDropStop:()=>z(!1),compareRGB:g,darkMode:m})},[n,w,h,C,f?.autoColor,m]),D={onQuickClick:o?O:void 0,createPopupPanel:A,popupProps:{popperProps:{resizeOnOverflow:!1}},onPopupOpen:T,onPopupClose:L,tooltip:i||a||"Color",label:a,icon:P,...y};return p===ji.Toolbar?s.jsx(Ui,{ref:t,...D}):s.jsx(C1,{ref:t,...D})})),ou=82,Wh=e=>{const{styleColor:t,length:n=ou,width:o=1,dashArray:r=null,sx:i,isDouble:a=!1,isAngled:l=!1,darkMode:c=!1,...d}=e;return s.jsx(Je,{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}`,...d,children:s.jsx(Jw,{length:n,width:o,dashArray:r,isDouble:a,isAngled:l,className:"activeColor"})})},FS=u.memo(u.forwardRef((e,t)=>{const{variant:n,showLabels:o=!1,disabled:r=!1,createPopupPanel:i,styleColor:a,selectedStyle:l,onSelectStyle:c,showNone:d=!0,darkMode:p,sx:f,...h}=e,g=_e(c,[]),m=u.useCallback(b=>{const{popupContainer:w,floatReference:E,closeFloat:C,...R}=b,_=[],L=$.IBorder.BuiltInDefinitionsArray;for(let T=0;T<L.length;T++){const j=L[T];if(j.description==="None"&&!d)continue;const S=s.jsx(Wh,{styleColor:a,length:ou,width:j.width,darkMode:p,dashArray:j.pattern,isDouble:j.description.toLowerCase().includes("double"),isAngled:j.description.toLowerCase().includes("slant")});let k=null;k=o?s.jsxs(s.Fragment,{children:[s.jsx(Le,{sx:{marginRight:"6px"},children:j.description}),s.jsxs(Le,{sx:{marginLeft:"6px",marginRight:"6px",display:"flex",alignItems:"center",flex:"1 1 100%"},children:[s.jsx("div",{style:{flex:"1 1 100%"}}),S]})]}):j.description==="None"?"None":S,_.push(s.jsx(Gr,{className:"border-stroke",tabIndex:0,sx:{height:"28px","& svg path.activeColor":{filter:C7(4)},paddingLeft:"16px",background:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},tooltipProps:{description:o?"":j.description},icon:null,disabled:r,onMouseDown:P=>P.preventDefault(),onMouseUp:()=>{C(),g(j.style)},onKeyDown:P=>{P.which===tn.Enter&&C()},selected:j.style===l,parentFloat:E,children:k},T))}return s.jsx(Le,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:_})},[r,d,a,l,p]),y=u.useMemo(()=>{const b=$.IBorder.BuiltInDefinitions.get(l);let w;return w=b.description==="None"?s.jsx(Le,{sx:{minWidth:`${ou}px`},children:"None"}):s.jsx(Wh,{styleColor:a,length:ou,width:b.width,dashArray:b.pattern,darkMode:p,isDouble:b.description.toLowerCase().includes("double"),isAngled:b.description.toLowerCase().includes("slant")}),s.jsx(Le,{className:"border-stroke",sx:{paddingLeft:"12px",marginLeft:"4px",marginRight:"4px",height:"24px",display:"flex",alignItems:"center","& svg path.activeColor":{filter:C7()}},children:w})},[l,a]),x=u.useMemo(()=>$.IBorder.BuiltInDefinitions.get(l),[l]),v={disabled:r,icon:y,tooltip:"Border Style: "+x.description,sx:{background:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,...f},createPopupPanel:m,...h};return n===ji.Toolbar?s.jsx(Ui,{...v}):s.jsx(C1,{...v})})),BS=u.memo(u.forwardRef((e,t)=>{const{autoColor:n=null,schemeLookup:o,autoStrokeStyle:r=$.IBorder.StrokeStyle.Thin,disabled:i=!1,darkMode:a=!1,showStylingBefore:l=!0,onSelectBorder:c,onPreviewBorder:d,selectedBorder:p,createTemporaryBorder:f,...h}=e,g=_e(c,[c]),m=_e(d,[d]),[y,x]=u.useState(),[v,b]=u.useState(),w=y??r,E=v??n,C=p||{bottom:{style:r,color:n?.toString()}},R=_e(k=>{const P={},O=k?Object.keys(k):[];let I=!1;for(let V=0;V<O.length;V++)k[O[V]]?.style&&(P[O[V]]={style:k[O[V]].style,color:k[O[V]].color},I||P[O[V]].style===$.IBorder.StrokeStyle.None||(I=!0));O.length<6&&(I=!0);const z=I?P.left:null,A=I?P.top:null,D=I?P.right:null,F=I?P.bottom:null,B=I?P.vertical:null,M=I?P.horizontal:null;let N="";return A||z||(N+="M 3,5 H 5 V 3 H 3 "),A||(N+="M 7,5 H 9 V 3 H 7 "),A||B||(N+="M 11,5 h 2 V 3 h -2 "),A||(N+="M 15,5 h 2 V 3 h -2 "),A||D||(N+="M 19,5 h 2 V 3 h -2 "),z||(N+="M 3,9 H 5 V 7 H 3 "),B||(N+="M 11,9 h 2 V 7 h -2 "),D||(N+="M 19,9 h 2 V 7 h -2 "),M||z||(N+="M 3,13 H 5 V 11 H 3 "),M||(N+="M 7,13 H 9 V 11 H 7 "),M||B||(N+="M 11,13 h 2 v -2 h -2 "),M||D||(N+="M 19,13 h 2 v -2 h -2 "),M||(N+="M 15,13 h 2 v -2 h -2 "),z||(N+="M 3,17 H 5 V 15 H 3 "),B||(N+="M 11,17 h 2 v -2 h -2 "),D||(N+="M 19,17 h 2 v -2 h -2 "),F||z||(N+="M 3,21 H 5 V 19 H 3 "),F||(N+="M 7,21 H 9 V 19 H 7 "),F||B||(N+="M 11,21 h 2 v -2 h -2 "),F||(N+="M 15,21 h 2 v -2 h -2 "),F||D||(N+="M 19,21 h 2 v -2 h -2 "),s.jsxs("div",{style:{width:"24px",height:"24px",position:"relative"},children:[s.jsx(Je,{sx:{position:"absolute",top:"0px",left:"0px","& path":{opacity:"0.8",transform:"translate(-0.5px, -0.5px)"}},children:s.jsx("path",{d:N})}),s.jsx(Le,{sx:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"-1px",left:"-1px","& svg path":{filter:S1}},children:s.jsx(ff,{getBorderAt:(V,U)=>{if(!f||O.length===0)return null;const J=V.rowIndex,X=V.colIndex,H={};return J===0?(H.top=P.top,H.bottom=P.horizontal):(H.top=P.horizontal,H.bottom=P.bottom),X===0?(H.left=P.left,H.right=P.vertical):(H.left=P.vertical,H.right=P.right),f?.(H)},width:18,height:18,darkMode:a,style:{top:"0px",left:"0px",width:"18px",height:"18px",minWidth:"18px",minHeight:"18px",position:"relative"}})})]})},[E,w,a]),_=u.useCallback((k,P,O)=>{let I=null;if(k&&k.length>0){let z=null;(P||O)&&(z={style:O,color:P?.toString()??null}),I={};for(let A=0;A<k.length;A++)I[k[A]]=z}return I},[]),L=u.useCallback(k=>{g?.(k)},[]),T=u.useCallback(k=>{m?.(k)},[]),j=u.useCallback(k=>{const{closeFloatAll:P,floatReference:O}=k,I=(D,F,B="bottom",M=!1)=>{const N=_(D,E??null,M?$.IBorder.StrokeStyle.None:w??null),V=M?_([],E??null,w??null):N;return s.jsx(ii,{icon:R(V),sx:{background:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},tooltipProps:{label:F,simple:!0,placement:B},onClick:()=>{P(),T(N),L(N)}})},z=s.jsxs(s.Fragment,{children:[s.jsxs(Le,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom,$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical],"All Borders","top"),I([$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical],"Inner Borders","top"),I([$.IBorder.Edge.Horizontal],"Inside Horizontal Borders","top"),I([$.IBorder.Edge.Vertical],"Inside Vertical Borders","top"),I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom],"Outside Borders","top")]}),s.jsxs(Le,{sx:{display:"flex",padding:"6px 16px",justifyContent:"center",rowGap:"2px",gap:"2px"},children:[I([$.IBorder.Edge.Left],"Left Borders"),I([$.IBorder.Edge.Top],"Top Borders"),I([$.IBorder.Edge.Right],"Right Borders"),I([$.IBorder.Edge.Bottom],"Bottom Borders"),I([$.IBorder.Edge.Left,$.IBorder.Edge.Top,$.IBorder.Edge.Right,$.IBorder.Edge.Bottom,$.IBorder.Edge.Horizontal,$.IBorder.Edge.Vertical,$.IBorder.Edge.DiagonalUp,$.IBorder.Edge.DiagonalDown],"No Borders","bottom",!0)]})]}),A=s.jsx(s.Fragment,{children:s.jsxs(Le,{sx:{display:"flex",padding:"6px 16px",flexDirection:"row",gap:"6px"},children:[s.jsx(Cf,{variant:ji.Toolbar,icon:s.jsx(N3,{}),selectedColor:w===$.IBorder.StrokeStyle.None?new $.Color("transparent"):E,onPreviewColor:D=>{b(D)},onSelectColor:(D,F)=>{b(D)},darkMode:a,tooltip:"Border Color",panelProps:{disableAlpha:!0,autoColor:n,schemeLookup:o},disabled:i||w===$.IBorder.StrokeStyle.None,parentFloat:O,shouldCloseFloatAll:!1}),s.jsx(FS,{selectedStyle:w,onSelectStyle:x,styleColor:E,darkMode:a,variant:ji.Toolbar,parentFloat:O})]})});return s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},onClick:D=>D.stopPropagation(),children:[l?A:z,s.jsx(Ft,{orientation:"horizontal"}),l?z:A]})},[w,E,n,o,a]),S=u.useMemo(()=>R(C),[C,a]);return s.jsx(Ui,{ref:t,createPopupPanel:j,popupProps:{popperProps:{resizeOnOverflow:!1}},createTooltip:({children:k},P)=>s.jsx(br,{label:"Borders",description:"Set the borders.",disabled:P,children:k}),onQuickClick:()=>{g?.(C)},quickButtonProps:{sx:{}},disabled:i,icon:S,...h})})),NS=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,variant:i=Yt.Toolbar,disabled:a=!1,autoColor:l,autoStrokeStyle:c,schemeLookup:d,createTemporaryBorder:p,selectedBorder:f,onSelectBorder:h,darkMode:g,...m}=e,y=_o(n,["formatBorder"]),x=o??y[0],v=x?.context()??null,b=v?.autoColor??l,w=v?.autoStyle??c,E=f??v?.quickBorder,C=g??v?.darkMode,R=p??v?.createTemporaryBorder,_=d??v?.schemeLookup,L=_e(j=>{v?.onBorderSelect&&v.onBorderSelect(j),h?.(j),x?.execute(j,r)},[x,h,r]),T=u.useCallback((j,S)=>{const{children:k,title:P,...O}=j;let I=j.children;return(x?.disabled()||a)&&(I=s.jsx("div",{children:I})),s.jsx(a0,{command:x,placement:i===Yt.Toolbar?"bottom-start":"right-start",disabled:S,...O,children:I})},[x,a]);return s.jsx(BS,{ref:t,autoColor:b,darkMode:C,autoStrokeStyle:w,createTemporaryBorder:R,schemeLookup:_,selectedBorder:E,onSelectBorder:L,createTooltip:T,disabled:a||!x||x.disabled(),...m})})),$S=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("mergeToggle"),icon:ze(s.jsx(k7,{}))}),s.jsx(qe,{...p,command:d.getCommand("mergeHorizontal"),icon:ze(s.jsx(MP,{}))}),s.jsx(qe,{...p,command:d.getCommand("mergeVertical"),icon:ze(s.jsx(TP,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...p,command:d.getCommand("unmerge"),icon:ze(s.jsx(Ub,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,quickCommand:"mergeToggle",commandHook:o,scope:r,tooltip:"Combine or split cells.",createPopupPanel:l,icon:ze(s.jsx(k7,{})),...a})})),VS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("freezeToggle"),icon:ze(s.jsx(IP,{}))}),s.jsx(qe,{...p,command:d.getCommand("freezeToggleHorizontal"),icon:ze(s.jsx(jP,{}))}),s.jsx(qe,{...p,command:d.getCommand("freezeToggleVertical"),icon:ze(s.jsx(RP,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...p,command:d.getCommand("unfreeze"),icon:s.jsx(Ub,{})})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,createPopupPanel:l,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:s.jsx(_P,{}),...a})})),HS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:r,disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("find"),icon:ze(s.jsx(q7,{}))}),s.jsx(qe,{...p,command:d.getCommand("findReplace"),icon:ze(s.jsx(av,{}))}),s.jsx(qe,{...p,command:d.getCommand("goto"),icon:ze(s.jsx(YO,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,createPopupPanel:l,label:"Find & Select",tooltip:"Find and replace cells or go to a specific location.",quickCommand:"find",icon:ze(s.jsx(q7,{})),...a})})),WS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,showQuickButtons:r=!!e.commands,commands:i,fontSizes:a=$z.DefaultFontSizes,disabled:l=!1,parentFloat:c,sx:d,...p}=e;ol(n);const f=()=>n?.state()?.toString()||"11",[h,g]=u.useState(f),m=_e(()=>{const R=parseFloat(h);isNaN(R)?g(f()):parseFloat(f())!==R&&n.execute(R,o)},[f,n,h,o]);u.useEffect(()=>{g(f())},[n?.state()]);const y=u.useMemo(()=>{if(!o)return null;const R={...o};return delete R.beforeExecute,R},[o]),x=_o(i,["formatFontSizeIncrease","formatFontSizeDecrease"]),v=u.useMemo(()=>x?s.jsxs(Le,{className:Eo("quick-buttons",{}),sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:R=>R.stopPropagation(),children:[s.jsx(qe,{command:x[0],commandHook:y,icon:ze(s.jsx(AO,{}))}),s.jsx(qe,{command:x[1],icon:ze(s.jsx(LO,{}))})]}):null,[x]),b=qi(),w=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("12.3",Math.round(b.typography.fontSize),b.typography.fontFamily).width}px`,[b]),E=u.useCallback(R=>{const{onMouseDown:_,onMouseUp:L,...T}=R;return s.jsx(Tr,{component:"div",...T,disableRipple:!0,children:s.jsx(ql,{inputMode:"numeric",disabled:l||!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:j=>`1px solid ${j.palette.text.icon??j.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:j=>`1px solid ${j.palette.error.main}`},"::after":{borderBottom:j=>`1px solid ${j.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:j=>`${Math.round(j.typography.fontSize)}px`,width:w,color:j=>j.palette.text.secondary,input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:j=>j.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:j=>j.palette.text.primary}},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:h,onFocus:j=>{j.target?.select()},onKeyDown:j=>{if(j.which===tn.Enter)f()!==h&&(j.stopPropagation(),j.preventDefault(),m());else if(j.which===tn.Escape)f()!==h&&(g(f()),setTimeout(()=>{j.target?.select()},0),j.stopPropagation(),j.preventDefault());else{if(j.key.match("[-]")||j.key.match("[0-9.]")&&(h+j.key).length>4)return j.stopPropagation(),void j.preventDefault();if(j.which===tn.Space)return void j.preventDefault()}},onBlur:()=>{m()},onChange:j=>{if(j.target.value.length>4)return j.stopPropagation(),void j.preventDefault();g(j.target.value)}})})},[h,l,n]),C=u.useCallback(R=>{const _=S=>{n?.execute(S,o)},L=n?.state(),T=[];for(let S=0;S<a.length;S++){const k=a[S]===L;T.push(s.jsx(Gr,{selected:k,icon:k?s.jsx(k1,{}):void 0,disabled:l||!n||n.disabled(),onMouseDown:P=>{P.button===0&&P.preventDefault()},onMouseUp:P=>{P.button===0&&_(a[S])},onKeyDown:P=>{P.keyCode!==tn.Enter&&P.keyCode!==tn.Space||_(a[S])},sx:{paddingTop:"4px",paddingBottom:"4px"},children:s.jsx(Le,{sx:{display:"flex",flex:"1 1 100%",justifyContent:"end"},children:a[S]})},"fontSize-"+S))}const j=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[v,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:T})]});return Bn({...R,children:j})},[l,n?.state(),o]);return s.jsx(Ui,{ref:t,sx:{...d},tabIndex:-1,outlined:!0,disabled:l,parentFloat:c,createPopupPanel:C,createTooltip:({children:R},_)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:_||n?.disabled(),children:R}),createQuickButton:E,...p})})),Fg=u.memo(e=>{const{selected:t,disabled:n,formattedValue:o,handleSetFormat:r,format:i,sx:a,...l}=e;return s.jsx(Gr,{sx:{maxWidth:"360px",display:"flex","*":{lineHeight:"1.2"},...a},disabled:n,selected:t,icon:t?s.jsx(k1,{}):void 0,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(i.numberFormat)},onKeyDown:c=>{c.keyCode!==tn.Enter&&c.keyCode!==tn.Space||r(i.numberFormat)},...l,children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[s.jsxs(Mn,{component:"div",children:[i.formatType,i.formatType===$.NumberFormat.Type.Custom?"…":""]}),s.jsx(Mn,{variant:"caption",component:"div",sx:{color:c=>pt(c.palette.text.primary,.6),paddingTop:o&&o.length>0?"1px":void 0,overflow:"hidden",textOverflow:"ellipsis"},children:o&&o.length>0?o:" "})]})})}),US=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,sx:i,disabled:a=!1,parentFloat:l,...c}=e,d=_o(n,["formatNumberFormat"])[0],p=d?.state()?$.NumberFormat.Styles.lookupStyle(d?.state()).formatType:$.NumberFormat.Type.General,f=u.useMemo(()=>{if(!o)return null;const y={...o};return delete y.beforeExecute,y},[o]),h=u.useCallback((y,x)=>{const v=j=>{o?.beforeExecute?.(d,d?.state()),d.execute(j,o),o?.onExecute?.(d,d?.state())},b=d?.context()(),w=$.NumberFormat.Styles.lookupPrimary(),E=[];for(let j=0;j<w.length;j++){let S="";if(b&&!b.isEmpty())try{S=b.getNumberFormat(w[j].numberFormat).displayText}catch(P){console.warn(P)}S===""&&w[j].formatType===$.NumberFormat.Type.General&&(S="No specific format");const k=w[j].formatType===p;E.push(s.jsx(Fg,{selected:k,disabled:a||!d||d.disabled(),formattedValue:S,handleSetFormat:v,format:w[j]},w[j].formatType))}const C={numberFormat:"",formatType:$.NumberFormat.Type.Custom},R=p===$.NumberFormat.Type.Custom,_=s.jsx(Fg,{selected:R,disabled:a||!d||d.disabled(),formattedValue:R?b.getNumberFormat().displayText:"",handleSetFormat:()=>{o?.beforeExecute?.(d,d?.state()),x.getCommand("formatNumberDialog")?.execute(d?.state()),o?.onExecute?.(d,d?.state())},format:C,sx:{flex:"0",width:"100%"}},$.NumberFormat.Type.Custom),L=s.jsxs(Le,{className:"quick-buttons",sx:{display:"flex",alignItems:"center",justifyContent:"center"},onClick:j=>j.stopPropagation(),children:[s.jsx(qe,{command:x.getCommand("formatNumberFormatAccountingStyle"),commandHook:f,scope:r,icon:s.jsx(LP,{})}),s.jsx(qe,{command:x.getCommand("formatNumberFormatPercentStyle"),commandHook:f,scope:r,icon:s.jsx(OP,{})}),s.jsx(qe,{command:x.getCommand("formatNumberFormatCommaStyle"),commandHook:f,scope:r,icon:s.jsx(PP,{})}),s.jsx(qe,{command:x.getCommand("formatNumberFormatIncreaseDecimal"),commandHook:f,scope:r,icon:ze(s.jsx(DP,{}))}),s.jsx(qe,{command:x.getCommand("formatNumberFormatDecreaseDecimal"),commandHook:f,scope:r,icon:ze(s.jsx(AP,{}))})]}),T=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...c,children:[L,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:E}),s.jsx(Ft,{orientation:"horizontal"}),_]});return Bn({...y,children:T})},[d?.context(),d?.state(),o,r]),g=qi(),m=u.useMemo(()=>{const y=$.NumberFormat.Type.MediumTime;return`${$.IFont.getSharedMeasurer()(y,Math.round(g.typography.fontSize),g.typography.fontFamily).width}px`},[g]);return s.jsx(Xn,{ref:t,commands:n,sx:i,outlined:!0,disabled:a,parentFloat:l,createPopupPanel:h,createTooltip:({children:y},x)=>s.jsx(br,{label:d?.label(),description:d?.description(),disabled:x,children:y}),icon:s.jsx(Le,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:y=>`${Math.round(y.typography.fontSize)}px`,color:y=>y.palette.text.secondary,fontFamily:y=>y.typography.fontFamily,width:m},children:s.jsx(Le,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:p})}),...c})})),kf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:"clear",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("clearAll"),icon:s.jsx(Y4,{})}),s.jsx(qe,{...p,command:d.getCommand("clearFormats"),icon:ze(s.jsx(_b,{}))}),s.jsx(qe,{...p,command:d.getCommand("clearContents"),icon:ze(s.jsx(OI,{}))}),s.jsx(qe,{...p,command:d.getCommand("clearComments")}),s.jsx(qe,{...p,command:d.getCommand("clearHyperlinks")})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{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:l,icon:s.jsx(Y4,{}),...a})})),qS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:"fill",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("fillDown"),icon:ze(s.jsx(I0,{}))}),s.jsx(qe,{...p,command:d.getCommand("fillRight"),icon:ze(s.jsx(I0,{sx:{transform:"rotate(270deg)"}}))}),s.jsx(qe,{...p,command:d.getCommand("fillUp"),icon:ze(s.jsx(I0,{sx:{transform:"rotate(180deg)"}}))}),s.jsx(qe,{...p,command:d.getCommand("fillLeft"),icon:ze(s.jsx(I0,{sx:{transform:"rotate(90deg)"}}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,disabled:i,commandHook:o,label:"Fill",tooltip:"Fill the selected cells with the value from one of the corners.",createPopupPanel:l,icon:ze(s.jsx(I0,{})),...a})})),Ef=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:a=!1,preferSingleMenu:l=!0,showQuickButton:c=!0,variant:d=Yt.Toolbar,...p}=e,f=["insertCellsShiftDown","insertCellsShiftRight","insertRows","insertColumns"],h=_o(n,f),{singleCommand:g,allDisabled:m}=u.useMemo(()=>{let v=null,b=0;for(let w=0;w<h.length;w++)h[w]&&!h[w]?.disabled()&&(l&&d===Yt.Menuitem&&(v=b===0?h[w]:null),b++);return{singleCommand:v,allDisabled:b===0}},[h]),y=u.useMemo(()=>{const v=new Map;return v.set("insertCellsShiftDown",ze(s.jsx(O7,{}))),v.set("insertCellsShiftRight",ze(s.jsx(O7,{sx:{transform:"rotate(270deg)"}}))),v.set("insertRows",ze(s.jsx(jO,{}))),v.set("insertColumns",ze(s.jsx(D7,{}))),v},[]),x=u.useCallback((v,b)=>{let w=null;const E={variant:Yt.Menuitem,commandHook:o,scope:"insertCells",disabled:i};a||(w=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...E,command:b.getCommand("addSheet"),icon:ze(s.jsx(Hs,{}))})]}));const C=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...E,command:h[0],icon:y.get(f[0])}),s.jsx(qe,{...E,command:h[1],icon:y.get(f[1])}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...E,command:h[2],icon:y.get(f[2])}),s.jsx(qe,{...E,command:h[3],icon:y.get(f[3])}),w]});return Bn({...v,children:C})},[i,h,o,r,y]);return g?s.jsx(qe,{ref:t,variant:d,commandHook:o,disabled:i,command:g,icon:y.get(g.key()),...p}):s.jsx(Xn,{ref:t,variant:d,quickCommand:"insertCells",commands:n,commandHook:o,scope:r,disabled:i||m,tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Insert new cells, rows or columns to your workbook."}),s.jsx("br",{}),s.jsx("span",{children:"To insert multiple rows or columns at a time, select multiple rows or columns in the sheet and click Insert."})]}),createPopupPanel:x,icon:ze(s.jsx(D7,{})),...p})})),Mf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,disableSheet:a=!1,preferSingleMenu:l=!0,showQuickButton:c=!0,variant:d=Yt.Toolbar,...p}=e,f=_o(n,["deleteCellsShiftUp","deleteCellsShiftLeft","deleteRows","deleteColumns"]),{singleCommand:h,allDisabled:g}=u.useMemo(()=>{let x=null,v=0;for(let b=0;b<f.length;b++)f[b]&&!f[b]?.disabled()&&(l&&d===Yt.Menuitem&&(x=v===0?f[b]:null),v++);return{singleCommand:x,allDisabled:v===0}},[f]),m=u.useMemo(()=>{const x=new Map;return x.set("deleteCellsShiftUp",ze(s.jsx(A7,{sx:{transform:"rotate(0deg)"}}))),x.set("deleteCellsShiftLeft",ze(s.jsx(A7,{sx:{transform:"rotate(270deg)"}}))),x.set("deleteRows",ze(s.jsx(RO,{}))),x.set("deleteColumns",ze(s.jsx(L7,{}))),x},[]),y=u.useCallback((x,v)=>{const b={variant:Yt.Menuitem,commandHook:o,scope:"deleteCells",disabled:i};let w=null;a||(w=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...b,command:v.getCommand("deleteSheet"),icon:ze(s.jsx(Hs,{}))})]}));const E=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...b,command:v.getCommand("deleteCellsShiftUp"),icon:m.get("deleteCellsShiftUp")}),s.jsx(qe,{...b,command:v.getCommand("deleteCellsShiftLeft"),icon:m.get("deleteCellsShiftLeft")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...b,command:v.getCommand("deleteRows"),icon:m.get("deleteRows")}),s.jsx(qe,{...b,command:v.getCommand("deleteColumns"),icon:m.get("deleteColumns")}),w]});return Bn({...x,children:E})},[i,o,r,m]);return h?s.jsx(qe,{ref:t,variant:d,commandHook:o,disabled:i,command:h,icon:m.get(h.key()),...p}):s.jsx(Xn,{ref:t,variant:d,quickCommand:"deleteCells",commands:n,commandHook:o,scope:r,disabled:i||g,tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Delete cells, rows, columns or sheets from your workbook."}),s.jsx("br",{}),s.jsx("span",{children:"To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete."})]}),createPopupPanel:y,icon:ze(s.jsx(L7,{})),...p})})),Ys=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,onSelectColor:r,disabled:i=!1,variant:a=Yt.Toolbar,quickColor:l,panelProps:c,isSplit:d=!1,darkMode:p,icon:f,...h}=e,{autoColor:g,schemeLookup:m,recentColors:y,...x}=c;if(h.selectedColor)throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");ol(n);const v=n?.context();let b=l??v?.quickColor;d&&!b&&(b=new $.Color("transparent"));const w=g??v?.autoColor,E=m??v?.schemeLookup,C=y??v?.recentColors,R=p??v?.darkMode,_=u.useMemo(()=>({autoColor:w,schemeLookup:E,recentColors:C,darkMode:R,...x}),[w,E,C,R]),L=_e((j,S)=>{j&&S&&v?.addRecentColor&&v.addRecentColor(j),v?.onColorSelect&&v.onColorSelect(j),r?.(j,S),n?.execute(j,o)},[n,r,o,v]),T=u.useCallback((j,S)=>{const{children:k,title:P,...O}=j;let I=j.children;return(n?.disabled()||i)&&(I=s.jsx("div",{children:I})),s.jsx(a0,{command:n,placement:a===Yt.Toolbar?"bottom-start":"right-start",disabled:S,...O,children:I})},[n,i]);return s.jsx(Cf,{ref:t,panelProps:_,icon:f,quickColor:b,selectedColor:n?.state(),onSelectColor:L,variant:a===Yt.Menuitem?ji.Menuitem:ji.Toolbar,createTooltip:T,label:n?.label(),disabled:i||!n||n.disabled(),compareRGB:!0,darkMode:R,...h})}));Ys.displayName="ColorCommandButton";const KS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["gridlinesToggle","sheetViewToggleGridlinesColumns","sheetViewToggleGridlinesRows"]),d=u.useCallback((p,f)=>{const h={variant:Yt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...h,command:f.getCommand("gridlinesToggle")}),s.jsx(Ys,{...h,command:f.getCommand("sheetViewFormatGridlinesColor"),icon:s.jsx(N3,{}),panelProps:{disableAlpha:!0}}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleGridlinesColumns")}),s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleGridlinesRows")})]});return Bn({...p,children:g})},[i,o]);return s.jsx(Xn,{ref:t,parentFloat:a,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:d,label:"Gridlines",tooltip:"Configure how the lines between rows and columns in the sheet are displayed.",icon:s.jsx(Gs,{command:c[0],scope:"view"}),...l})})),Tf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=d.getCommand("sortCustom"),h=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:d.getCommand("sortAscending"),icon:ze(s.jsx(uh,{}))}),s.jsx(qe,{...p,command:d.getCommand("sortDescending"),icon:ze(s.jsx(nv,{}))}),f?s.jsx(qe,{...p,command:f,icon:ze(s.jsx(DO,{}))}):null,s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(oh,{}))}),s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx($3,{}))}),s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(qb,{}))})]});return Bn({...c,children:h})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Sort",tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Organize your data so it's easier to analyze."}),s.jsx("br",{}),s.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:l,icon:ze(s.jsx(uh,{})),...a})})),GB=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=u.useCallback((c,d)=>{const p={variant:Yt.Menuitem,commandHook:o,scope:"sort",disabled:i},f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterToggle"),icon:ze(s.jsx(oh,{}))}),s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterClear"),icon:ze(s.jsx($3,{}))}),s.jsx(qe,{...p,scope:"filter",command:d.getCommand("autoFilterReapply"),icon:ze(s.jsx(qb,{}))})]});return Bn({...c,children:f})},[i,o,r]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,scope:r,disabled:i,label:"Filter",tooltip:s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"Organize your data so it's easier to analyze."}),s.jsx("br",{}),s.jsx("span",{children:"You can sort the selected data from smallest to largest or largest to smallest."})]}),createPopupPanel:l,icon:ze(s.jsx(oh,{})),...a})})),_f=u.memo(u.forwardRef((e,t)=>{const{quickCommand:n,icon:o,isRedo:r=!1,nestRedo:i=!0,undoManager:a,scope:l,sx:c,disabled:d,commands:p,...f}=e,h=[n];!r&&i&&h.push("redo");const g=_o(p,h),m=g[0],y=g[1],x=a??m?.context?.()?.undoManager;let v=d;d||(v=!m||m.disabled(),y&&!y.disabled()&&(v=!1));const[b,w]=u.useState(0),E=u.useCallback((C,R)=>{let _=b===0?"Cancel":`${m.label()} ${b} Action${b===1?"":"s"}`,L=!1;x||(L=!0),L||(L=i?!x.hasRedo()&&!x.hasUndo():!x.hasRedo());const T=I=>{m.execute(I)},j=s.jsx(Gr,{sx:{display:"flex",flex:"none",alignItems:"center",justifyContent:"center",padding:L?void 0:"0 0",minWidth:"180px"},icon:null,onMouseEnter:()=>{w(0)},onMouseDown:I=>{I.button===0&&I.preventDefault()},onMouseUp:I=>{I.button===0&&T(b)},onKeyDown:I=>{I.isDefaultPrevented()||I.keyCode!==tn.Enter&&I.keyCode!==tn.Space||T(b)},children:s.jsx(Mn,{component:"div",variant:"caption",sx:{fontSize:"0.875rem",letterSpacing:"0.01071em"},children:_})});if(L)return j;const S=r?x?.getRedoDescriptions():x?.getUndoDescriptions(),k=[];for(let I=0;I<S.length;I++){const z=S[I];k.push(s.jsx(Gr,{sx:{maxWidth:"360px",display:"flex"},icon:s.jsx(Hs,{}),disabled:v,selected:I<b,onMouseEnter:()=>{w(I+1)},onMouseDown:A=>{A.button===0&&A.preventDefault()},onMouseUp:A=>{A.button===0&&T(I+1)},onKeyDown:A=>{A.isDefaultPrevented()||A.keyCode!==tn.Enter&&A.keyCode!==tn.Space||T(I+1)},children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",alignItems:"center",overflow:"hidden"},children:[s.jsx(Mn,{component:"div",children:z}),s.jsx(Hs,{})]})},`action:${I}`))}let P=null;if(!r&&i){const I={scope:"undo",commands:R,variant:Yt.Menuitem,parentFloat:C.floatReference};P=[],P.push(s.jsx(_f,{...I,quickCommand:"redo",isRedo:!0},"nested:redo")),x.hasRedo()&&x.hasUndo()&&P.push(s.jsx(Ft,{orientation:"horizontal"},"action:redo-div"))}const O=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},onClick:()=>{C.closeFloatAll()},onMouseLeave:()=>{w(0)},children:[P,s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:k}),s.jsx(Ft,{orientation:"horizontal"}),j]});return Bn({...C,children:O})},[m?.context(),m?.state(),l,x,b,v]);return s.jsx(Xn,{ref:t,commands:p,quickCommand:n,scope:l,disabled:v,label:m?.label()??(r?"Redo":"Undo"),tooltip:s.jsx(s.Fragment,{children:s.jsx("span",{children:`${m?.label()??"No"} last actions.`})}),createPopupPanel:E,icon:o??ze(s.jsx(r?vD:bD,{})),selected:!1,...f})})),Ps=$.IFontCollection.getFontList(),GS=new Map;for(let e=0;e<Ps.length;e++)GS.set(Ps[e].fontRef.getFamily(),Ps[e]);const ZS=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,sx:r,disabled:i=!1,parentFloat:a,...l}=e;ol(n);const c=n?.state(),d=qi(),p=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("Times New Roman",Math.round(d.typography.fontSize),d.typography.fontFamily).width}px`,[d]),f=u.useCallback(h=>{const g=v=>{n?.execute(v,o)},m=[];for(let v=0;v<Ps.length;v++)m.push({key:Ps[v].fontRef.getFamily(),description:Ps[v].fontRef.getFamily()});GS.get(c)||m.unshift({key:c,description:c});const y=[];for(let v=0;v<m.length;v++){const b=m[v].key===c;y.push(s.jsx(Gr,{sx:{display:"flex",paddingTop:"4px",paddingBottom:"4px"},selected:b,disabled:i||!n||n.disabled(),icon:b?s.jsx(k1,{}):void 0,onMouseUp:w=>{w.button===0&&g(m[v].key)},onMouseDown:w=>{w.button===0&&w.preventDefault()},onKeyDown:w=>{w.keyCode!==tn.Enter&&w.keyCode!==tn.Space||g(m[v].key)},children:s.jsx(Le,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:s.jsx(Mn,{component:"div",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontFamily:()=>m[v]?.key},children:m[v].description})})},v+""+m[v].key))}const x=s.jsx(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},...l,children:s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:y})});return Bn({...h,children:x})},[i,n?.state()]);return s.jsx(Ui,{ref:t,sx:{...r},outlined:!0,disabled:i,parentFloat:a,createPopupPanel:f,createTooltip:({children:h},g)=>s.jsx(br,{label:n?.label(),description:n?.description(),disabled:g,children:h}),icon:s.jsx(Le,{sx:{display:"flex",paddingLeft:"4px",paddingRight:"4px",fontSize:h=>`${Math.round(h.typography.fontSize)}px`,fontFamily:h=>h.typography.fontFamily,color:h=>h.palette.text.secondary,width:p},children:s.jsx(Le,{sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"pre"},children:c})}),...l})})),XS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatStrikeThroughToggle","formatSuperscriptToggle","formatSubscriptToggle"]),c=u.useMemo(()=>{for(let f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatStrikeThroughToggle",ze(s.jsx(z7,{}))),f.set("formatSuperscriptToggle",ze(s.jsx(zO,{}))),f.set("formatSubscriptToggle",ze(s.jsx(FO,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Yt.Menuitem,commandHook:o,scope:"textEffects",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...g,command:h.getCommand("formatStrikeThroughToggle"),icon:d.get("formatStrikeThroughToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatSuperscriptToggle"),icon:d.get("formatSuperscriptToggle")}),s.jsx(qe,{...g,command:h.getCommand("formatSubscriptToggle"),icon:d.get("formatSubscriptToggle")})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{ref:t,quickCommand:c,commands:n,commandHook:o,createPopupPanel:p,label:"Text Effects",tooltip:"Style your text to differentiate it.",icon:d.get(c)??ze(s.jsx(z7,{})),...a})})),YS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["formatUnderlinedToggle","formatUnderlinedDoubleToggle","formatUnderlinedAccountingToggle","formatUnderlinedAccountingDoubleToggle"]),c=u.useMemo(()=>{for(let f=0;f<l.length;f++)if(l[f]?.state())return l[f].key();return l[0]?.key()},[l]),d=u.useMemo(()=>{const f=new Map;return f.set("formatUnderlinedToggle",ze(s.jsx(Ip,{}))),f.set("formatUnderlinedDoubleToggle",ze(s.jsx(F7,{}))),f.set("formatUnderlinedAccountingToggle",ze(s.jsx(B7,{}))),f.set("formatUnderlinedAccountingDoubleToggle",ze(s.jsx(N7,{}))),f},[]),p=u.useCallback((f,h)=>{const g={variant:Yt.Menuitem,commandHook:o,scope:"underline",disabled:i},m=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...g,command:h.getCommand("formatUnderlinedToggle"),icon:ze(s.jsx(Ip,{}))}),s.jsx(qe,{...g,command:h.getCommand("formatUnderlinedDoubleToggle"),icon:ze(s.jsx(F7,{}))}),s.jsx(qe,{...g,command:h.getCommand("formatUnderlinedAccountingToggle"),commandHook:o,icon:ze(s.jsx(B7,{}))}),s.jsx(qe,{...g,command:h.getCommand("formatUnderlinedAccountingDoubleToggle"),icon:ze(s.jsx(N7,{}))})]});return Bn({...f,children:m})},[i,o,r]);return s.jsx(Xn,{ref:t,quickCommand:c,commands:n,commandHook:o,label:"Underline",tooltip:"All underline stylings.",createPopupPanel:p,icon:d.get(c)??ze(s.jsx(Ip,{})),...a})})),jf=u.memo(u.forwardRef((e,t)=>{const{command:n,commands:o,commandHook:r,scope:i,includePasteAllInPopup:a=!0,disabled:l=!1,...c}=e,d=_e((p,f)=>{const h={variant:Yt.Menuitem,commandHook:r,scope:"paste",disabled:l},g=[];return a&&(g.push(u.createElement(qe,{...h,command:f.getCommand("paste"),key:"paste",icon:s.jsx(P7,{})})),g.push(s.jsx(Ft,{orientation:"horizontal"},"paste-div"))),g.push(u.createElement(qe,{...h,command:f.getCommand("pasteValues"),key:"pasteValues",icon:ze(s.jsx(vO,{}))})),g.push(u.createElement(qe,{...h,command:f.getCommand("pasteFormats"),key:"pasteFormats",icon:ze(s.jsx(wO,{}))})),g.push(u.createElement(qe,{...h,command:f.getCommand("pasteFormulas"),key:"pasteFormulas",icon:ze(s.jsx(SO,{}))})),g.push(u.createElement(qe,{...h,command:f.getCommand("pasteTranspose"),key:"pasteTranspose",icon:ze(s.jsx(CO,{}))})),g.push(u.createElement(qe,{...h,command:f.getCommand("pasteLinks"),key:"pasteLinks",icon:ze(s.jsx(kO,{}))})),Bn({...p,children:g})},[l,r,i,a]);return s.jsx(Xn,{ref:t,commands:o,commandHook:r,scope:i,createPopupPanel:d,label:"Paste",tooltip:"Add content to the clipboard to your document.",quickCommand:"paste",icon:s.jsx(P7,{}),...c})})),JS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,parentFloat:a,...l}=e,c=_o(n,["sheetViewToggleShowHeadings","sheetViewToggleShowHeadingColumns","sheetViewToggleShowHeadingRows"]),d=u.useCallback((p,f)=>{const h={variant:Yt.Menuitem,parentFloat:p.floatReference,commandHook:o,scope:r,disabled:i},g=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleShowHeadings")}),s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleShowHeadingsNumeric")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleShowHeadingColumns")}),s.jsx(qe,{...h,command:f.getCommand("sheetViewToggleShowHeadingRows")})]});return Bn({...p,children:g})},[i,o,r]);return s.jsx(Xn,{ref:t,parentFloat:a,quickCommand:c[0]?.key(),commands:n,commandHook:o,createPopupPanel:d,label:"Headings",tooltip:"Configure how the column and rows headings in the sheet are displayed.",icon:s.jsx(Gs,{command:c[0],scope:"view"}),...l})})),QS=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r="view",disabled:i=!1,...a}=e,l=u.useCallback(c=>{const d={variant:Yt.Menuitem,parentFloat:c.floatReference,commandHook:o,scope:r,disabled:i},p=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...d,command:n.getCommand("workbookViewToggleShowFormulaBar")}),s.jsx(qe,{...d,command:n.getCommand("workbookViewToggleShowTabs")}),s.jsx(qe,{...d,command:n.getCommand("workbookViewToggleShowStatusBar")}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...d,command:n.getCommand("workbookViewToggleShowHorizontalScrollBar")}),s.jsx(qe,{...d,command:n.getCommand("workbookViewToggleShowVerticalScrollBar")})]});return Bn({...c,children:p})},[i,n,o,r]);return s.jsx(Xn,{ref:t,commands:n,disabled:i,commandHook:o,scope:r,label:"Workbook View",tooltip:"Options to configure how the workbook is displayed.",createPopupPanel:l,icon:s.jsx(Gs,{icon:null,label:"Workbook View"}),...a})})),eC=u.memo(u.forwardRef((e,t)=>{const{value:n,cellStyle:o,styles:r,createTemporaryCell:i,bodyStyle:a,sx:l,borderProps:c,disabled:d,...p}=e,f=u.useMemo(()=>i({value:n,style:o}),[n,o,i]),h=u.useMemo(()=>f.getStyle(),[f,a]),g=u.useMemo(()=>h.getFill().toCSS(a?.darkMode??!1),[h]),m=h.getInsets(),y=h.getFont(),x=u.useCallback(()=>h.getBorder(),[h]);return s.jsx(Le,{ref:t,sx:{width:"100px",textOverflow:"ellipsis",display:"flex",alignItems:"stretch",background:a?.fill,filter:d?"grayscale(0.4) opacity(0.8);":"none","& .fill":{flex:"1 1 100%",overflow:"hidden",...g},"& .text":{flex:"1 1 100%",...y.toCSS(a?.darkMode??!1,1),boxSizing:"border-box",padding:`${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`,margin:"0px",outline:"none",resize:"none",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"baseline",textDecoration:y.toCSS().textDecoration,textAlign:$.ITextFrame.toCSSHorizontalTextAlign(f.getRenderHorizontalAlignment()),background:"transparent",maxHeight:"100%",whiteSpace:"pre",wordWrap:"break-word"},...l},...p,children:s.jsx(ff,{getBorderAt:x,darkMode:a?.darkMode??!1,rowCount:1,columnCount:1,style:{display:"flex",flex:"1 1 100%",width:"100%",maxWidth:"100%",justifyContent:"start",alignItems:"stretch",...c?.style},...c,children:s.jsx(Le,{className:"fill",sx:{paddingLeft:"4px",paddingRight:"4px",marginLeft:"-1px",marginTop:"-1px",marginRight:"-1px",marginBottom:"-1px",overflow:"hidden",display:"flex",alignItems:"center"},children:s.jsx(Le,{className:"text",children:n})})})})})),ZB=u.memo(e=>{const{styles:t,namedStyle:n,selectedNamed:o,hasContextMenu:r=!0,bodyStyle:i,onSelectNamed:a,createTemporaryCell:l,parentFloat:c,commands:d,disabled:p,commandHook:f,...h}=e,g=u.useCallback(x=>{const v={variant:Yt.Menuitem,commandHook:f,context:"cellStyle"},b=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...v,sx:{fontWeight:550},command:d.getCommand("formatCellStyle"),commandState:n,disabled:p,icon:ze(s.jsx(Kc,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...v,command:d.getCommand("modifyCellStyle"),commandState:{named:n}}),s.jsx(qe,{...v,command:d.getCommand("deleteCellStyle"),commandState:n,disabled:p||n?.getName()===$.IStyle.BuiltInName.Normal})]});return Bn({...x,children:s.jsx(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:b})})})},[]),m=n?.getName()===o?.getName();let y=s.jsx(ii,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:x=>`solid ${m?x.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName(),placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{a?.(n)},...h,children:s.jsx(eC,{value:n.getName(),cellStyle:{named:n.getName()},styles:t,createTemporaryCell:l,bodyStyle:i})},n.getName());return r&&(y=s.jsx(Cv,{label:n.getName(),parentFloat:c,createPopupPanel:g,children:y})),y}),tC=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedNamed:i,onSelectNamed:a,disabled:l=!1,bodyStyle:c,usePreviewIcon:d=!0,...p}=e;ol(o);const f=o?.context(),h=f?.styles,g=i??f?.named(),m=c??f?.bodyStyle(),y=_e(E=>{a?.(E),o?.execute(E,r)},[o,a,r]),x=u.useCallback((E,C)=>{const R={onSelectNamed:y,styles:h(),parentFloat:E.floatReference},_=h().getCustomNamed(),L=new Map,T=[];for(let A=0;A<_.length;A++)L.set(_[A].getName(),_[A]),h().getNamed(_[A].getName()).getBuiltInID()===null&&T.push(_[A].getName());const j=A=>{let D=L.get(A);return D||(D=h().getNamed(A)),!D||D.isHidden()?null:s.jsx(ZB,{namedStyle:D,selectedNamed:g,bodyStyle:f.bodyStyle(),createTemporaryCell:f.createTemporaryCell,commands:n,commandHook:r,...R},A)},S=(A,D,F=!0)=>{const B=[];for(let M=0;M<D.length;M++){const N=j(D[M]);N&&B.push(N)}return B.length===0?null:s.jsxs(Le,{children:[F?s.jsx(Ft,{orientation:"horizontal"}):null,s.jsx(qs,{children:A},A+"-header"),s.jsx(Le,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"646px",maxWidth:"100%"},children:B},A+"-presets")]},A)},k=(A,D)=>{const F=[];for(let B=0;B<D.length;B++){const M=j(D[B]);M&&F.push(M)}return F.length===0?null:s.jsx(Le,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",flexDirection:"column",flex:"0 0 0%"},children:F},A+"-presets")},P=[];P.push(S("Custom",T,!1)),P.push(S("Good, Bad and Neutral",[$.IStyle.BuiltInName.Normal,$.IStyle.BuiltInName.Bad,$.IStyle.BuiltInName.Good,$.IStyle.BuiltInName.Neutral],T.length>0)),P.push(S("Data and Model",[$.IStyle.BuiltInName.Calculation,$.IStyle.BuiltInName.CheckCell,$.IStyle.BuiltInName.ExplanatoryText,$.IStyle.BuiltInName.FollowedHyperlink,$.IStyle.BuiltInName.Hyperlink,$.IStyle.BuiltInName.Input,$.IStyle.BuiltInName.LinkedCell,$.IStyle.BuiltInName.Note,$.IStyle.BuiltInName.Output,$.IStyle.BuiltInName.WarningText])),P.push(S("Titles and Headings",[$.IStyle.BuiltInName.Heading1,$.IStyle.BuiltInName.Heading2,$.IStyle.BuiltInName.Heading3,$.IStyle.BuiltInName.Heading4,$.IStyle.BuiltInName.Title,$.IStyle.BuiltInName.Total]));let O=[];var I,z;return O.push(k("Accent 1",[$.IStyle.BuiltInName.Accent1_20,$.IStyle.BuiltInName.Accent1_40,$.IStyle.BuiltInName.Accent1_60,$.IStyle.BuiltInName.Accent1])),O.push(k("Accent 2",[$.IStyle.BuiltInName.Accent2_20,$.IStyle.BuiltInName.Accent2_40,$.IStyle.BuiltInName.Accent2_60,$.IStyle.BuiltInName.Accent2])),O.push(k("Accent 3",[$.IStyle.BuiltInName.Accent3_20,$.IStyle.BuiltInName.Accent3_40,$.IStyle.BuiltInName.Accent3_60,$.IStyle.BuiltInName.Accent3])),O.push(k("Accent 4",[$.IStyle.BuiltInName.Accent4_20,$.IStyle.BuiltInName.Accent4_40,$.IStyle.BuiltInName.Accent4_60,$.IStyle.BuiltInName.Accent4])),O.push(k("Accent 5",[$.IStyle.BuiltInName.Accent5_20,$.IStyle.BuiltInName.Accent5_40,$.IStyle.BuiltInName.Accent5_60,$.IStyle.BuiltInName.Accent5])),O.push(k("Accent 6",[$.IStyle.BuiltInName.Accent6_20,$.IStyle.BuiltInName.Accent6_40,$.IStyle.BuiltInName.Accent6_60,$.IStyle.BuiltInName.Accent6])),P.push((I="Themed Cell Styles",z=O,s.jsxs(Le,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qs,{children:I},I+"-header"),s.jsx(Le,{sx:{display:"flex",gap:"2px",flexWrap:"wrap",alignItems:"start",flexDirection:"row"},children:z},I+"-presets")]},I))),P.push(S("Number Format",[$.IStyle.BuiltInName.Comma,$.IStyle.BuiltInName.Comma0,$.IStyle.BuiltInName.Currency,$.IStyle.BuiltInName.Currency0,$.IStyle.BuiltInName.Percent])),s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:A=>`${A.shape.borderRadius}px`,paddingBottom:A=>`${A.shape.borderRadius}px`},children:[s.jsx(Le,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",paddingTop:"6px",paddingBottom:"0px",paddingLeft:"16px",paddingRight:"16px"},children:P}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{variant:Yt.Menuitem,commandState:g,command:C.getCommand("newCellStyle"),context:"styles",commandHook:r,disabled:l,icon:ze(s.jsx(VO,{}))})]})},[g,h?.().getTheme(),m]),v=_e(E=>{const C=18/$.IFont.getDeviceScale(),R=f?.createTemporaryCell(E);return R.getStyle().getFont().getSize()<=C?R:R.createTemporaryCell({style:{font:{size:C}}})},[f?.createTemporaryCell]),b=l||!o||o.disabled(),w=u.useMemo(()=>f&&d?s.jsx(eC,{value:g?.getName()??"Custom",cellStyle:g?{named:g.getName()}:void 0,styles:f.styles(),createTemporaryCell:v,bodyStyle:f.bodyStyle(),className:"outline-hover",disabled:b,sx:{maxHeight:"24px",height:"24px",marginRight:"2px",outline:E=>`1px solid ${E.palette.action.hover}`},borderProps:{}}):ze(s.jsx(Kc,{})),[g,m,b]);return s.jsx(Xn,{ref:t,createPopupPanel:x,outlined:d,commands:n,createTooltip:({children:E},C)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:C,children:E}),selected:!1,disabled:b,label:o?.label(),icon:w,...p})})),nC="_sheetxl-reset_ods65_1",XB=10,Rf=u.memo(u.forwardRef((e,t)=>{const{styles:n,table:o,tableStyle:r=o?.getStyle()??n.getDefaultTableStyle(),bodyStyle:i,sx:a,disabled:l,className:c,forceThinBorder:d,cellHeight:p=XB,isLive:f=!1,...h}=e,g=Math.ceil(1.3*p),[m,y]=u.useReducer(E=>E+1,0);u.useEffect(()=>{if(f&&o)return o.addListeners({onAnyChange:()=>{y()}})},[o,f]);const x=u.useMemo(()=>{let E=o?.toJSON()??{};const C={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return E&&(E.styleOptions={...E.styleOptions,name:r.getName()}),E.ref=C,new $.Table({initialAnchor:C,json:E,styles:n})},[m,o,r,n]),v=u.useMemo(()=>{const E=[];for(let C=0;C<5;C++)for(let R=0;R<5;R++){const _=x.getStyleAt({colIndex:R,rowIndex:C});E.push(_)}return E},[x]),b=u.useMemo(()=>{const E=(R,_,L)=>{let T=L.getFill().toCSS(i?.darkMode??!1);const j=g-(_<4?1:0),S=p-(R<4?1:0),k=L.getFont().getFill().toCSS(i?.darkMode??!1);return T={...T,position:"absolute",boxSizing:"border-box",left:_*(g-1),top:R*(p-1),width:j,height:S},s.jsx("td",{className:`table-style-fill ${R}-${_}`,style:T,children:s.jsx("div",{className:`table-style-text ${R}-${_}`,style:{position:"absolute",boxSizing:"border-box",width:"6px",left:(j-6)/2,top:(S-1)/2,borderTop:`1px solid ${k}`}})},`${R}-${_}`)},C=[];for(let R=0;R<5;R++){const _=[];for(let L=0;L<5;L++){const T=v[5*R+L];_.push(E(R,L,T))}C.push(s.jsx("tr",{children:_},R))}return C},[x,r,i]),w=u.useCallback((E,C)=>v[C].getBorder()??null,[v]);return s.jsx(Le,{ref:t,className:"table-format-preview",sx:{background:i?.fill,filter:l?"grayscale(0.4) opacity(0.8);":"none","& .styled-element":{position:"absolute"},...a},...h,children:s.jsx(ff,{getBorderAt:w,rowCount:5,columnCount:5,forceThinBorder:d,width:5*(g-1)+1,height:5*(p-1)+1,darkMode:i?.darkMode??!1,style:{pointerEvents:"none"},children:s.jsx("table",{className:Eo(c,"sheetxl-table-preview",nC),style:{borderCollapse:"collapse",width:5*(g-1)+1,height:5*(p-1)+1},children:s.jsx("tbody",{children:b})})})})})),$0=(e,t,n,o,r)=>{e.beginPath(),e.moveTo(t+.5,n+.5),e.lineTo(o+.5,r+.5),e.stroke()},oC=u.memo(u.forwardRef((e,t)=>{const{table:n,tableStyle:o,styles:r,bodyStyle:i,disabled:a,style:l,className:c,canvas:d,...p}=e,f=u.useMemo(()=>{const m=n.toJSON(),y={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return m.styleOptions={...m.styleOptions,name:o.getName()},m.ref=y,new $.Table({initialAnchor:y,json:m,styles:r})},[n,o,r]),h=u.useMemo(()=>{const m=[];for(let y=0;y<5;y++)for(let x=0;x<5;x++){const v=f.getStyleAt({colIndex:x,rowIndex:y});m.push(v)}return m},[f]),g=u.useMemo(()=>{let m=d;if(d||(m=document.createElement("canvas")),!m)return null;m.width!==61&&(m.width=61),m.height!==46&&(m.height=46);const y=m.getContext("2d",{alpha:!1});if(!y)return null;const x=12,v=i?.darkMode??!1;for(let b=0;b<5;b++)for(let w=0;w<5;w++){const E=h[5*b+w].getFill();let C=i?.fill;E.getType()===$.IFill.Type.Solid?C=E.getColor().toCSS(v,!1):E.getType()===$.IFill.Type.Gradient?C=E.getStops[0]?.color.toCSS(v,!1):E.getType()===$.IFill.Type.Pattern&&(C=E.getForeground().toCSS(v,!1)),y.fillStyle=C;const R=w*x,_=9*b;y.fillRect(R,_,13,10)}y.lineWidth=1;for(let b=0;b<5;b++)for(let w=0;w<5;w++){const E=h[5*b+w],C=w*x,R=9*b,_=E.getBorder();if(!_.isEmpty()){const j=_.getLeft();j.isNone()||(y.strokeStyle=j.getColor().toCSS(v,!1),$0(y,C,R,C,R+9));const S=_.getTop();S.isNone()||(y.strokeStyle=S.getColor().toCSS(v,!1),$0(y,C,R,C+x,9*b));const k=_.getRight();k.isNone()||(y.strokeStyle=k.getColor().toCSS(v,!1),$0(y,C+x,R,C+x,R+9));const P=_.getBottom();P.isNone()||(y.strokeStyle=P.getColor().toCSS(v,!1),$0(y,C,R+9,C+x,R+9))}y.strokeStyle=E.getFont().getFill().toCSS(v,!1);const L=4,T=2.5;$0(y,w*x+T,9*b+L,w*x+T+7,9*b+L)}return`url(${m.toDataURL()})`},[d,f,o,i]);return s.jsx("div",{ref:t,className:Eo("table-style-preview",c),style:{backgroundImage:g,width:61,height:46,...l},...p})})),rC=u.memo(u.forwardRef((e,t)=>{const{styleOptions:n,onStyleOptionsChange:o,showHeaderRow:r,onShowHeaderRowChange:i,showTotalRow:a,onShowTotalRowChange:l,showFilterButton:c,onShowFilterButtonChange:d,sx:p,disabled:f,...h}=e;return s.jsxs(Le,{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&&s.jsx(Na,{control:s.jsx(Ba,{checked:r??!1,indeterminate:r==null,onChange:()=>i(!r),disabled:f||r==null}),label:"Header Row",labelPlacement:"end"}),l&&s.jsx(Na,{control:s.jsx(Ba,{checked:a??!1,indeterminate:a==null,onChange:()=>l(!a),disabled:f||a==null}),label:"Total Row",labelPlacement:"end"}),s.jsx(Na,{control:s.jsx(Ba,{checked:n?.showRowStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showRowStripes:!n?.showRowStripes})}}),label:"Banded Rows",labelPlacement:"end"}),s.jsx(Na,{control:s.jsx(Ba,{checked:n?.showFirstColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showFirstColumn:!n?.showFirstColumn})}}),label:"First Column",labelPlacement:"end"}),s.jsx(Na,{control:s.jsx(Ba,{checked:n?.showLastColumn??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showLastColumn:!n?.showLastColumn})}}),label:"Last Column",labelPlacement:"end"}),s.jsx(Na,{control:s.jsx(Ba,{checked:n?.showColumnStripes??!1,indeterminate:!n,disabled:f||!n,onChange:()=>{o?.({...n,showColumnStripes:!n?.showColumnStripes})}}),label:"Banded Columns",labelPlacement:"end"}),d&&s.jsx(Na,{control:s.jsx(Ba,{checked:c??!1,indeterminate:c==null,disabled:f||!n||c==null,onChange:()=>d(!c)}),label:"Filter Button",labelPlacement:"end"})]})})),YB=u.memo(e=>{const{table:t,tableStyle:n,selectedTableStyleName:o,onSelectTableStyleName:r,styles:i,hasContextMenu:a=!0,bodyStyle:l,parentFloat:c,commands:d,disabled:p,commandHook:f,useCanvasPreview:h=!0,canvas:g,...m}=e,y=u.useCallback(w=>{const E={variant:Yt.Menuitem,commandHook:f,context:"table"},C=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...E,command:d.getCommand("formatTableStyleClearCellStyles"),commandState:n,disabled:p,icon:ze(s.jsx(Kc,{}))}),s.jsx(qe,{...E,sx:{fontWeight:550},command:d.getCommand("formatTableStyle"),commandState:{name:n.getName()},disabled:p,icon:ze(s.jsx(Kc,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...E,command:d.getCommand("setDefaultTableStyle"),commandState:n.getName(),disabled:p}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...E,command:d.getCommand("deleteTableStyle"),commandState:n?.getName(),disabled:p||!n||n.isBuiltIn()})]});return Bn({...w,children:s.jsx(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:C})})})},[d]),x=n?.getName()===o,v=u.useMemo(()=>{const w={table:t,tableStyle:n,styles:i,bodyStyle:l};return h?s.jsx(oC,{canvas:g,...w}):s.jsx(Rf,{...w})},[t,n,i,l]);let b=s.jsx(ii,{sx:{borderRadius:"2px",padding:"2px",margin:"0px 0px",display:"flex",border:w=>`solid ${x?w.palette.primary.dark:"transparent"} 1px`},tooltipProps:{label:n.getName()??"None",placement:"bottom-start"},disabled:p,icon:null,onClick:()=>{r?.(n?.getName())},...m,children:v},n.getName());return a&&(b=s.jsx(Cv,{label:t.getStyleOptions().name,parentFloat:c,createPopupPanel:y,children:b})),b}),iC=u.memo(u.forwardRef((e,t)=>{const{commands:n,command:o,commandHook:r,selectedTable:i,onSelectTableStyleName:a,disabled:l=!1,bodyStyle:c,usePreviewIcon:d=!1,...p}=e;ol(o);const f=o?.context(),h=f?.styles,g=i??f?.table?.();let m="insertTable";g&&(m="editTable");const y=u.useMemo(()=>((T,j)=>{const S={rowStart:0,colStart:0,rowEnd:4,colEnd:4};return new $.Table({initialAnchor:S,styles:j,json:{name:"PreviewTable",ref:S,description:"PreviewTable",headerRowCount:1,totalsRowCount:0,styleOptions:T}})})(g?.getStyleOptions(),h?.()),[h?.().getDefaultTableStyle(),g?.getStyleOptions()]),x=g??y,[v,b]=u.useState(x);u.useEffect(()=>{b(x)},[x]);const w=c??f?.bodyStyle(),E=_e(T=>{a?.(T),o?.execute({name:T},r)},[o,a,r]),C=u.useRef(null),R=u.useCallback((T,j)=>{const S={onSelectTableStyleName:E,styles:h(),parentFloat:T.floatReference};C.current||(C.current=document.createElement("canvas"));const k=M=>{const N=h().getTableStyle(M);return N?s.jsx(YB,{table:v,tableStyle:N,selectedTableStyleName:v.getStyleOptions().name,bodyStyle:f.bodyStyle(),commands:j,commandHook:r,canvas:C.current,...S},M):null},P=(M,N,V=!0)=>{const U=[];for(let J=0;J<N.length;J++){const X=k(N[J]);X&&U.push(X)}return U.length===0?null:s.jsxs(Le,{children:[V?s.jsx(Ft,{orientation:"horizontal"}):null,s.jsx(qs,{children:M},M+"-header"),s.jsx(Le,{sx:{display:"flex",gap:"2px",marginBottom:"6px",flexWrap:"wrap",width:"481px",maxWidth:"100%"},children:U},M+"-presets")]},M)},O=[],I=h().getCustomTableStyles(),z=[];if(I.length>0){for(let M=0;M<I.length;M++)I[M].isShownInTableStyles()&&z.push(I[M].getName());O.push(P("Custom",z,!1))}const A=[];g&&!g.getStyleOptions().name&&A.push(null);for(let M=0;M<21;M++)A.push("TableStyleLight"+(M+1));O.push(P("Light",A,z.length>0));const D=[];for(let M=0;M<28;M++)D.push("TableStyleMedium"+(M+1));O.push(P("Medium",D));const F=[];for(let M=0;M<11;M++)F.push("TableStyleDark"+(M+1));O.push(P("Dark",F));let B=null;return g&&(B=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{variant:Yt.Menuitem,command:j.getCommand("formatTableStyleClearTableStyle"),commandHook:r,disabled:l,icon:ze(s.jsx(_b,{}))})]})),s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",paddingTop:M=>`${M.shape.borderRadius}px`,paddingBottom:M=>`${M.shape.borderRadius}px`},children:[s.jsx(Le,{onContextMenu:()=>{},sx:{display:"flex",flexDirection:"column",padding:"6px 16px"},children:O}),B]})},[h,h?.().getTheme(),w,v]),_=l||!o||o.disabled(),L=u.useMemo(()=>{if(!f||!d)return ze(s.jsx(Kc,{}))},[v,w,_]);return s.jsx(Xn,{ref:t,quickCommand:m,createPopupPanel:R,commands:n,label:o?.label(),commandState:g,commandHook:r,selected:g!==null,createTooltip:({children:T},j)=>s.jsx(br,{label:o?.label(),description:o?.description(),disabled:j,children:T}),disabled:_,icon:L,...p})})),mi=[];mi.push(Fi("Primary Background","bg1")),mi.push(Fi("Primary Text","tx1")),mi.push(Fi("Secondary Background","bg2")),mi.push(Fi("Secondary Text","tx2")),mi.push(Fi("Accent 1","accent1")),mi.push(Fi("Accent 2","accent2")),mi.push(Fi("Accent 3","accent3")),mi.push(Fi("Accent 4","accent4")),mi.push(Fi("Accent 5","accent5")),mi.push(Fi("Accent 6","accent6"));const aC=e=>{const{docTheme:t,onSelectTheme:n,darkMode:o,isSelected:r,outlined:i,sx:a,...l}=e,c=qi(),d=u.useMemo(()=>{let p=[];for(let f=0;f<mi.length;f++){const h=mi[f];p.push(s.jsx(N2,{schemeColorLookup:t.schemeLookup(),colorDef:h,darkMode:o,selectedColor:null},f+"-colorDef"))}return s.jsx(Le,{sx:{display:"flex",flexDirection:"row",flex:"none"},children:s.jsx(Le,{sx:{display:"flex",boxShadow:f=>f.shadows[2]},children:p})})},[t,c]);return s.jsx(ii,{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,...l,children:s.jsxs(Le,{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:[s.jsx(Le,{sx:{},children:t.getName()}),s.jsxs(Le,{sx:{paddingTop:"6px",paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",alignItems:"stretch"},children:[d,s.jsx(Le,{sx:{flex:"1 1 100%",textOverflow:"ellipsis",overflow:"hidden",marginTop:"2px",whiteSpace:"pre",fontFamily:()=>t.getFontScheme().getMajorFont()},children:s.jsx(di,{disableInteractive:!0,PopperProps:{style:{pointerEvents:"none"},disablePortal:!0,popperOptions:{strategy:"fixed",modifiers:[{name:"preventOverflow",enabled:!0,options:{boundariesElement:"viewport"}}]}},title:s.jsx("div",{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"pre"},children:`The font used for the body.
219
- The heading font is '${t.getFontScheme().getMajorFont()}'.`}),placement:"bottom-start",children:s.jsx("div",{children:t.getFontScheme().getMinorFont()})})})]})]})})},lC=u.memo(u.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,sx:i,disabled:a=!1,darkMode:l,...c}=e,d=u.useMemo(()=>{const p=n?.search({selected:o})??[],f=[];if(p.length===0)return s.jsx(qs,{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(),y=p[h+1];y&&y.isCustom()!==g.isCustom()&&f.push(s.jsx(Ft,{orientation:"horizontal",sx:{marginBottom:"4px"}},`divider-${h}`)),f.push(s.jsx(aC,{docTheme:g,onSelectTheme:()=>r(g),isSelected:m,disabled:a,darkMode:l,onMouseDown:x=>{x.button===0&&x.preventDefault()},onMouseUp:x=>{x.button===0&&r(g)},onKeyDown:x=>{x.keyCode!==tn.Enter&&x.keyCode!==tn.Space||r(g)}},g.getName()))}return f},[o,r,l]);return s.jsx(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%"},ref:t,...c,children:s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",overflow:"hidden"},children:[s.jsx(qs,{sx:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"4px",paddingBottom:"2px"},children:"Themes"}),s.jsx(Ft,{}),s.jsx(Le,{sx:{flex:"1 1 100%",overflow:"auto",padding:"6px 16px"},children:d})]})})})),sC=u.memo(u.forwardRef((e,t)=>{const{themes:n,selectedTheme:o,onSelectTheme:r,icon:i,tooltip:a,label:l,variant:c=ji.Toolbar,darkMode:d,panelProps:p,...f}=e,h=i||ze(s.jsx(ov,{})),g={createPopupPanel:u.useCallback(m=>{const{closeFloatAll:y}=m;return s.jsx(lC,{...p,themes:n,selectedTheme:o,onSelectTheme:r,darkMode:d,onKeyDown:x=>{x.which===tn.Enter&&y()}})},[n,o,r,p,d]),tooltip:a||l||"Theme",label:l,icon:h,...f};return c===ji.Toolbar?s.jsx(Ui,{ref:t,...g}):s.jsx(C1,{ref:t,...g})})),cC=u.memo(u.forwardRef((e,t)=>{const{command:n,commandHook:o,selectedTheme:r,onSelectTheme:i,disabled:a=!1,darkMode:l,variant:c,...d}=e;ol(n);const p=n?.context()?.themes,f=r||n?.context()?.theme,h=l??n?.context()?.darkMode,g=_e(y=>{i?.(y),n?.execute(y,o)},[i,o]),m=u.useCallback((y,x)=>{const{children:v,title:b,...w}=y;let E=y.children;return(n?.disabled()||a)&&(E=s.jsx("div",{children:E})),s.jsx(a0,{command:n,placement:c===Yt.Toolbar?"bottom-start":"right-start",disabled:x,...w,children:E})},[n,a]);return s.jsx(sC,{ref:t,themes:p,selectedTheme:f,onSelectTheme:g,variant:c===Yt.Menuitem?ji.Menuitem:ji.Toolbar,createTooltip:m,disabled:a,darkMode:h,icon:ze(s.jsx(ov,{})),...d})})),dC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["themeMode"])[0],c=l?.state(),d=l?.state()!==null,p=w_("(prefers-color-scheme: dark)"),f=c==="dark"||c===null&&p,h=_e((g,m)=>{const y={variant:Yt.Menuitem,commandHook:o,scope:"appearance",disabled:i},x=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...y,command:l,icon:ze(s.jsx(f?G6:Y6,{}))}),s.jsx(qe,{...y,command:m.getCommand("defaultThemeMode"),icon:ze(s.jsx(p?UO:qO,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...y,command:m.getCommand("forceLightGrid")}),s.jsx(qe,{...y,command:m.getCommand("forceLightImages")})]});return Bn({...g,children:x})},[i,l,o,r,p,c,d]);return s.jsx(Xn,{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:()=>{l?.execute(f?"light":"dark",o)},selected:d,icon:ze(s.jsx(f?G6:Y6,{})),...a})})),uC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,sx:a,...l}=e,c=u.useCallback((d,p)=>{const f={variant:Yt.Menuitem,scope:"help",commandHook:{...o,beforeExecute:(g,m)=>o?.beforeExecute?.(g,m)!==!1&&d.floatReference.closeAll()},disabled:i},h=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...f,command:p.getCommand("showKeyboardShortcuts"),icon:ze(s.jsx(cR,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...f,command:p.getCommand("gotoUrlGithub"),icon:ze(s.jsx(XO,{}))}),s.jsx(qe,{...f,command:p.getCommand("gotoUrlDiscord"),icon:ze(s.jsx(ZO,{}))}),s.jsx(qe,{...f,command:p.getCommand("gotoUrlDocumentation"),icon:ze(s.jsx(iv,{}))}),s.jsx(qe,{...f,command:p.getCommand("gotoUrlIssue"),icon:ze(s.jsx(GO,{}))})]});return Bn({...d,children:h})},[i,o]);return s.jsx(Xn,{ref:t,sx:a,commands:n,disabled:i,commandHook:o,scope:r,label:"Help",tooltip:"Help, feedback, and keyboard shortcuts.",createPopupPanel:c,icon:ze(s.jsx(KO,{sx:{transform:"scale(0.75)"}})),...l})})),If=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,preferSingleMenu:a=!0,showQuickButton:l=!0,variant:c=Yt.Toolbar,...d}=e,p=_o(n,["insertImageFromFile","insertImageFromURL"]),{singleMenuCommand:f,allDisabled:h}=u.useMemo(()=>{let m=null,y=0;for(let x=0;x<p.length;x++)p[x]&&!p[x]?.disabled()&&(a&&c===Yt.Menuitem&&(m=y===0?p[x]:null),y++);return{singleMenuCommand:m,allDisabled:y===0}},[p]),g=u.useCallback((m,y)=>{const x={variant:Yt.Menuitem,commandHook:o,scope:"insertImage",disabled:i},v=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...x,command:y.getCommand("insertImageFromFile"),icon:ze(s.jsx(cd,{}))}),s.jsx(qe,{...x,command:y.getCommand("insertImageFromURL"),icon:ze(s.jsx(cd,{}))})]});return Bn({...m,children:v})},[i,o,r]);return f?s.jsx(qe,{ref:t,variant:c,commandHook:o,disabled:i,command:f,icon:ze(s.jsx(cd,{})),...d}):s.jsx(Xn,{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:ze(s.jsx(cd,{})),...d})})),$2=u.memo(u.forwardRef((e,t)=>{const{command:n,...o}=e,r=Hi(),[i,a]=u.useState(!1),[l,c]=u.useState("info");return u.useEffect(()=>{const d=r.getMode();a(d?.key==="copy"||d?.key==="cut"),c(d?.key==="cut"?"warning":"info")},[r]),s.jsx(qe,{ref:t,command:n,icon:ze(s.jsx(bO,{isWalking:i,themedType:l})),...o})})),JB=u.memo(u.forwardRef((e,t)=>{const{...n}=e;return s.jsx(sa,{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 ze(s.jsx(CD,{}));case"insertFunction":return ze(s.jsx(SD,{}));default:return null}}})})),pC=u.createContext(null);pC.displayName="HookFormContext";const hC=()=>u.useContext(pC),Pf=u.memo(u.forwardRef((e,t)=>{const{disabled:n,style:o,className:r,sx:i,defaultInput:a,value:l,formName:c,formOptions:d,onChangeInput:p,onValidate:f,onKeyDown:h,...g}=e,m=hC(),y=c&&m?m.register(c,d):null,[x,v]=u.useState(""),[b,w]=u.useState(""),[E,C]=u.useState(l);u.useEffect(()=>{C(l),w("")},[l]);const R=_e(S=>{let k="";try{C(S),f?.(S),p?.(S)}catch(P){k=P.message??"Invalid Name"}c&&m&&(k?m.setError(c,{message:k}):m.clearErrors(c)),w(k)},[l,f,p]),_=_e(async S=>{S.keyCode===tn.Escape&&x!==l&&(R(x),m?.setValue(c,x),m?.clearErrors(c),S.stopPropagation()),h?.(S)},[h,x,l,m]),L=_e(S=>{v(S.target.value??"")},[]),T=_e(S=>{v(""),y?.onBlur(S)},[]),j=u.useCallback(S=>{R(S.target.value),y?.onChange(S)},[y]);return s.jsx(x1,{sx:{paddingTop:S=>S.spacing(1.5),minWidth:135,width:"100%",...i},size:"small",ref:t,className:Eo("named-input",r),...g,children:s.jsx(k3,{label:"Name",placeholder:a,onFocus:L,onBlur:T,inputRef:y?.ref,disabled:n,error:!!b,helperText:b||" ",sx:{"& .MuiFormHelperText-root":{marginTop:S=>S.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",name:c,spellCheck:!1,autoComplete:"off",readOnly:n,sx:{paddingTop:S=>S.spacing(1.25),paddingBottom:S=>S.spacing(.75),backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`}}},value:E??"",onChange:j,onKeyDownCapture:_,onContextMenu:S=>{S.stopPropagation()}})})}));Pf.displayName="NamedInput";const Td=e=>e===null?"":e.toString(),Of=u.memo(u.forwardRef((e,t)=>{const{formName:n,formOptions:o,disabled:r,style:i,className:a,sx:l,onKeyDown:c,value:d,onChangeInput:p,resolvedAddress:f,...h}=e,g=hC(),m=n&&g?g.register(n,o):null,[y,x]=u.useState(""),[v,b]=u.useState(!1),[w,E]=u.useState(()=>Td(d));u.useEffect(()=>{E(Td(d)),x(""),n&&g&&g.clearErrors(n),b(!1)},[d]);const C=_e(k=>{let P="";try{E(k);const O=Td(d),I=f(k);I.toString()!==O&&p?.(I)}catch{P="Invalid Range"}n&&g&&(P?g.setError(n,{message:P}):g.clearErrors(n)),x(P),b(!0)},[w,p,n,g]),R=_e(async k=>{if(v&&k.keyCode===tn.Escape){const P=Td(d);E(P),x(""),b(!1),k.stopPropagation()}c?.(k)},[d,p,c,v]),_=_e(k=>{m?.onBlur(k)},[m]),L=u.useCallback(k=>{C(k.target.value),m?.onChange(k)},[m]),[T,j]=u.useState(!1),S=u.useMemo(()=>s.jsx(Tx,{tabIndex:-1,sx:{display:"flex",position:"relative",flex:"0"},position:"end",children:s.jsx(kv,{disabled:!0,selected:T,onSelectToggle:k=>{j(k)},label:"Select Range",icon:ze(s.jsx(xD,{}))})}),[T]);return s.jsx(x1,{sx:{paddingTop:k=>k.spacing(1.5),minWidth:135,width:"100%",...l},size:"small",ref:t,className:Eo("range-input",a),...h,children:s.jsx(k3,{label:"Range",placeholder:"Enter Range",onBlur:_,disabled:r,error:!!y,inputRef:m?.ref,helperText:y||" ",sx:{"& .MuiFormHelperText-root":{marginTop:k=>k.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",readOnly:r,name:n,sx:{paddingTop:k=>k.spacing(1.25),paddingBottom:k=>k.spacing(.75)}},sx:{backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},endAdornment:S},value:w??"",onChange:L,onKeyDownCapture:R,onContextMenu:k=>{k.stopPropagation()}})})}));Of.displayName="RangeInput";const Df=u.memo(u.forwardRef((e,t)=>{const{sheet:n,className:o,debounceDelay:r=220,sx:i,...a}=e,[l,c]=u.useState(()=>n.getView().getZoomScale()),[d,p]=u.useState(null),f=u.useRef(0);sn(n,{onViewChange:()=>{p(!0),f.current===0&&c(n.getView().getZoomScale())}}),u.useEffect(()=>{f.current=0,p(!1),c(n.getView().getZoomScale())},[n]),u.useEffect(()=>{f.current!==0&&$.CommonUtils.debounce(()=>{l===f.current&&(f.current=0,n.getView().update({zoomScale:l}))},r)()},[l,r]);const h=_e(_=>{let L=_;_<100?L=Math.round(_/(10/9)+10):_>100&&(L=Math.round(3*_-200)),f.current=L,p(!0),c(L)},[n]),g=_=>{let L=_;return _<100?L=10/9*(_-10):_>100&&(L=(_+200)/3),L},m=g(l),[y,x]=u.useState(null),v=u.useRef(null),b=u.useCallback(()=>{const _=y;_&&requestAnimationFrame(()=>{v.current?.contains(document.activeElement)&&_.focus()})},[]),w=M4(()=>{h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10)))}),E=M4(()=>h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10)))),C=qi(),R=u.useMemo(()=>`${$.IFont.getSharedMeasurer()("100%",Math.round(C.typography.fontSize),C.typography.fontFamily).width}px`,[C]);return s.jsxs(Le,{ref:t,className:Eo(o),sx:{padding:"0px 0px",display:"flex",alignItems:"center",color:_=>_.palette.text.secondary,...i},onFocus:_=>{_.relatedTarget&&!y&&x(_.relatedTarget)},onBlur:_=>{y&&!v?.current?.contains(_.relatedTarget)&&x(null)},onMouseDown:_=>{_.button===0&&_.preventDefault()},onMouseUp:_=>{_.button===0&&b()},...a,children:[s.jsx(di,{disableInteractive:!0,title:"Zoom Out",children:s.jsx(Tr,{sx:{padding:"0","&:hover:not([disabled])":{color:_=>_.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:_=>{_.button!==0?_.preventDefault():w(_)},children:s.jsx(pR,{})})}),s.jsx(Cj,{ref:v,sx:{flex:"1 1 100%",padding:"6px 0px !important",marginRight:"2px",marginLeft:"2px","& .MuiSlider-thumb":{height:14,width:6,borderRadius:.75,"&.Mui-focusVisible":{boxShadow:_=>`0px 0px 0px 3px ${yh(_.palette.primary.main,.16)}`},"&:focus, &:hover, &.Mui-active":{boxShadow:_=>`0px 0px 0px 2px ${yh(_.palette.primary.main,.16)}`}},"& .MuiSlider-mark":{width:"1px",height:"8px"},"& .MuiSlider-markActive":{backgroundColor:"currentColor"},"& .MuiSlider-thumb:not(.MuiSlider-active)":{transition:d?"left 260ms ease-in":"none"}},valueLabelDisplay:"auto",size:"small",track:!1,min:0,step:1,value:m,max:200,marks:[{value:100}],onAnimationEnd:()=>p(!1),onWheel:_=>{h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),_.deltaY<0,10)))},onKeyDown:_=>{_.which===tn.Down||_.which===tn.Right?(h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!0,10))),_.preventDefault()):_.which===tn.Up||_.which===tn.Left?(h(g($.CommonUtils.findNextStep(n.getView().getZoomScale(),!1,10))),_.preventDefault()):_.which!==tn.Enter&&_.which!==tn.Escape||b()},onChange:(_,L)=>{Math.abs(L-100)<3?h(100):h(L)},valueLabelFormat:(_,L)=>`Zoom: ${Math.round(l)}%`}),s.jsx(di,{disableInteractive:!0,title:"Zoom In",children:s.jsx(Tr,{sx:{padding:"0","&:hover:not([disabled])":{color:_=>_.palette.primary.main},"& svg":{width:"12px",height:"12px"}},size:"small",onPointerDown:_=>{_.button!==0?_.preventDefault():E(_)},children:s.jsx(Qj,{})})}),s.jsxs(Le,{sx:{display:"flex",flexDirection:"row"},children:[s.jsx(Le,{sx:{minWidth:"8px"}}),s.jsx(Mn,{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:R},children:s.jsx("div",{children:Math.round(l)+"%"})})]})]})}));Df.displayName="SheetZoomScale";const Af=u.memo(u.forwardRef((e,t)=>{const{sx:n,sheet:o,gridStyle:r,children:i,childrenEnd:a,...l}=e;u.useImperativeHandle(t,()=>({}));const c=u.useRef(null);u.useEffect(()=>{const g=m=>m.preventDefault();return c.current?.addEventListener("wheel",g,{passive:!1}),()=>{c.current?.removeEventListener("wheel",g)}},[]);const d=Hi(),p=u.useMemo(()=>{const g=d.getMode();return g?.description?g.description:"Ready"},[d]),[f,h]=u.useState(!1);return s.jsxs(Le,{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),...l,children:[i,s.jsx("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"end",overflow:"hidden"},children:s.jsx(Mn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",color:g=>g.palette.text.secondary},variant:"caption",children:p})}),a?s.jsx(Le,{sx:{display:"flex",alignItems:"center"},children:a}):null,s.jsx(Ft,{style:{marginTop:"6px",marginBottom:"6px"}}),s.jsx(Df,{sx:{paddingLeft:"4px",minWidth:"175px"},sheet:o})]})}));Af.displayName="StatusBar";var Bg,Ng,_d={exports:{}},V0={},H0={exports:{}},$g={},jd={exports:{}},Wo={},pl={};function Yu(){return Ng||(Ng=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.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.`)},pl.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]},pl.int=function(e){return parseInt(e,10)},pl.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},pl.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),pl}var Vg,Hg,Fa={};function Uh(){if(Hg)return Wo;Hg=1,Object.defineProperty(Wo,"__esModule",{value:!0}),Wo.addClassName=a,Wo.addEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.addEventListener?c.addEventListener(d,p,h):c.attachEvent?c.attachEvent("on"+d,p):c["on"+d]=p},Wo.addUserSelectStyles=function(c){if(!c)return;let d=c.getElementById("react-draggable-style-el");d||(d=c.createElement("style"),d.type="text/css",d.id="react-draggable-style-el",d.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
220
- `,d.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
221
- `,c.getElementsByTagName("head")[0].appendChild(d)),c.body&&a(c.body,"react-draggable-transparent-selection")},Wo.createCSSTransform=function(c,d){const p=r(c,d,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:p}},Wo.createSVGTransform=function(c,d){return r(c,d,"")},Wo.getTouch=function(c,d){return c.targetTouches&&(0,e.findInArray)(c.targetTouches,p=>d===p.identifier)||c.changedTouches&&(0,e.findInArray)(c.changedTouches,p=>d===p.identifier)},Wo.getTouchIdentifier=function(c){return c.targetTouches&&c.targetTouches[0]?c.targetTouches[0].identifier:c.changedTouches&&c.changedTouches[0]?c.changedTouches[0].identifier:void 0},Wo.getTranslation=r,Wo.innerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingTop),d-=(0,e.int)(p.paddingBottom),d},Wo.innerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d-=(0,e.int)(p.paddingLeft),d-=(0,e.int)(p.paddingRight),d},Wo.matchesSelector=o,Wo.matchesSelectorAndParentsTo=function(c,d,p){let f=c;do{if(o(f,d))return!0;if(f===p)return!1;f=f.parentNode}while(f);return!1},Wo.offsetXYFromParent=function(c,d,p){const f=d===d.ownerDocument.body?{left:0,top:0}:d.getBoundingClientRect();return{x:(c.clientX+d.scrollLeft-f.left)/p,y:(c.clientY+d.scrollTop-f.top)/p}},Wo.outerHeight=function(c){let d=c.clientHeight;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderTopWidth),d+=(0,e.int)(p.borderBottomWidth),d},Wo.outerWidth=function(c){let d=c.clientWidth;const p=c.ownerDocument.defaultView.getComputedStyle(c);return d+=(0,e.int)(p.borderLeftWidth),d+=(0,e.int)(p.borderRightWidth),d},Wo.removeClassName=l,Wo.removeEvent=function(c,d,p,f){if(!c)return;const h={capture:!0,...f};c.removeEventListener?c.removeEventListener(d,p,h):c.detachEvent?c.detachEvent("on"+d,p):c["on"+d]=null},Wo.scheduleRemoveUserSelectStyles=function(c){window.requestAnimationFrame?window.requestAnimationFrame(()=>{i(c)}):i(c)};var e=Yu(),t=function(c){if(typeof WeakMap=="function")var d=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=d){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(Vg)return Fa;Vg=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.browserPrefixToKey=p,Fa.browserPrefixToStyle=function(f,h){return h?`-${h.toLowerCase()}-${f}`:f},Fa.default=void 0,Fa.getPrefix=d;const c=["Moz","Webkit","O","ms"];function d(){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="",y=!0;for(let x=0;x<g.length;x++)y?(m+=g[x].toUpperCase(),y=!1):g[x]==="-"?y=!0:m+=g[x];return m}(f)}`:f}return Fa.default=d(),Fa}());let n="";function o(c,d){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](d)}function r(c,d,p){let{x:f,y:h}=c,g=`translate(${f}${p},${h}${p})`;return d&&(g=`translate(${typeof d.x=="string"?d.x:d.x+p}, ${typeof d.y=="string"?d.y:d.y+p})`+g),g}function i(c){if(c)try{if(c.body&&l(c.body,"react-draggable-transparent-selection"),c.selection)c.selection.empty();else{const d=(c.defaultView||window).getSelection();d&&d.type!=="Caret"&&d.removeAllRanges()}}catch{}}function a(c,d){c.classList?c.classList.add(d):c.className.match(new RegExp(`(?:^|\\s)${d}(?!\\S)`))||(c.className+=` ${d}`)}function l(c,d){c.classList?c.classList.remove(d):c.className=c.className.replace(new RegExp(`(?:^|\\s)${d}(?!\\S)`,"g"),"")}return Wo}var Wg,ea={};function Ug(){if(Wg)return ea;Wg=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.canDragX=function(o){return o.props.axis==="both"||o.props.axis==="x"},ea.canDragY=function(o){return o.props.axis==="both"||o.props.axis==="y"},ea.createCoreData=function(o,r,i){const a=!(0,e.isNum)(o.lastX),l=n(o);return a?{node:l,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:l,deltaX:r-o.lastX,deltaY:i-o.lastY,lastX:o.lastX,lastY:o.lastY,x:r,y:i}},ea.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}},ea.getBoundPosition=function(o,r,i){if(!o.props.bounds)return[r,i];let{bounds:a}=o.props;var l;a=typeof a=="string"?a:{left:(l=a).left,top:l.top,right:l.right,bottom:l.bottom};const c=n(o);if(typeof a=="string"){const{ownerDocument:d}=c,p=d.defaultView;let f;if(f=a==="parent"?c.parentNode:c.getRootNode().querySelector(a),!(f instanceof p.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=f,g=p.getComputedStyle(c),m=p.getComputedStyle(h);a={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)(a.right)&&(r=Math.min(r,a.right)),(0,e.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,e.isNum)(a.left)&&(r=Math.max(r,a.left)),(0,e.isNum)(a.top)&&(i=Math.max(i,a.top)),[r,i]},ea.getControlPosition=function(o,r,i){const a=typeof r=="number"?(0,t.getTouch)(o,r):null;if(typeof r=="number"&&!a)return null;const l=n(i),c=i.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,t.offsetXYFromParent)(a||o,c,i.props.scale)},ea.snapToGrid=function(o,r,i){return[Math.round(r/o[0])*o[0],Math.round(i/o[1])*o[1]]};var e=Yu(),t=Uh();function n(o){const r=o.findDOMNode();if(!r)throw new Error("<DraggableCore>: Unmounted during event!");return r}return ea}var qg,Kg,Gg,Zg,W0={},s5={};function Xg(){return qg||(qg=1,Object.defineProperty(s5,"__esModule",{value:!0}),s5.default=function(){}),s5}function QB(){return Gg||(Gg=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 y=new WeakMap;return function(x){if(x&&x.__esModule)return x;var v,b,w={__proto__:null,default:x};if(x===null||typeof x!="object"&&typeof x!="function")return w;if(v=y){if(v.has(x))return v.get(x);v.set(x,w)}for(const E in x)E!=="default"&&{}.hasOwnProperty.call(x,E)&&((b=(v=Object.defineProperty)&&Object.getOwnPropertyDescriptor(x,E))&&(b.get||b.set)?v(w,E,b):w[E]=x[E]);return w}(m)}(u),n=p(Zc()),o=p(yo),r=function(){if(Bg)return jd.exports;function m(x){var v,b,w="";if(typeof x=="string"||typeof x=="number")w+=x;else if(typeof x=="object")if(Array.isArray(x)){var E=x.length;for(v=0;v<E;v++)x[v]&&(b=m(x[v]))&&(w&&(w+=" "),w+=b)}else for(b in x)x[b]&&(w&&(w+=" "),w+=b);return w}function y(){for(var x,v,b=0,w="",E=arguments.length;b<E;b++)(x=arguments[b])&&(v=m(x))&&(w&&(w+=" "),w+=v);return w}return Bg=1,jd.exports=y,jd.exports.clsx=y,jd.exports}(),i=Uh(),a=Ug(),l=Yu(),c=p(function(){if(Kg)return W0;Kg=1,Object.defineProperty(W0,"__esModule",{value:!0}),W0.default=void 0;var m=function(S){if(typeof WeakMap=="function")var k=new WeakMap;return function(P){if(P&&P.__esModule)return P;var O,I,z={__proto__:null,default:P};if(P===null||typeof P!="object"&&typeof P!="function")return z;if(O=k){if(O.has(P))return O.get(P);O.set(P,z)}for(const A in P)A!=="default"&&{}.hasOwnProperty.call(P,A)&&((I=(O=Object.defineProperty)&&Object.getOwnPropertyDescriptor(P,A))&&(I.get||I.set)?O(z,A,I):z[A]=P[A]);return z}(S)}(u),y=C(Zc()),x=C(yo),v=Uh(),b=Ug(),w=Yu(),E=C(Xg());function C(S){return S&&S.__esModule?S:{default:S}}function R(S,k,P){return(k=typeof(O=function(I,z){if(typeof I!="object"||!I)return I;var A=I[Symbol.toPrimitive];if(A!==void 0){var D=A.call(I,z);if(typeof D!="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}(k,"string"))=="symbol"?O:O+"")in S?Object.defineProperty(S,k,{value:P,enumerable:!0,configurable:!0,writable:!0}):S[k]=P,S;var O}const _={start:"touchstart",move:"touchmove",stop:"touchend"},L={start:"mousedown",move:"mousemove",stop:"mouseup"};let T=L,j=class extends m.Component{constructor(){super(...arguments),R(this,"dragging",!1),R(this,"lastX",NaN),R(this,"lastY",NaN),R(this,"touchIdentifier",null),R(this,"mounted",!1),R(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const k=this.findDOMNode();if(!k||!k.ownerDocument||!k.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:P}=k;if(this.props.disabled||!(S.target instanceof P.defaultView.Node)||this.props.handle&&!(0,v.matchesSelectorAndParentsTo)(S.target,this.props.handle,k)||this.props.cancel&&(0,v.matchesSelectorAndParentsTo)(S.target,this.props.cancel,k))return;S.type!=="touchstart"||this.props.allowMobileScroll||S.preventDefault();const O=(0,v.getTouchIdentifier)(S);this.touchIdentifier=O;const I=(0,b.getControlPosition)(S,O,this);if(I==null)return;const{x:z,y:A}=I,D=(0,b.createCoreData)(this,z,A);(0,E.default)("DraggableCore: handleDragStart: %j",D),(0,E.default)("calling",this.props.onStart),this.props.onStart(S,D)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,v.addUserSelectStyles)(P),this.dragging=!0,this.lastX=z,this.lastY=A,(0,v.addEvent)(P,T.move,this.handleDrag),(0,v.addEvent)(P,T.stop,this.handleDragStop))}),R(this,"handleDrag",S=>{const k=(0,b.getControlPosition)(S,this.touchIdentifier,this);if(k==null)return;let{x:P,y:O}=k;if(Array.isArray(this.props.grid)){let z=P-this.lastX,A=O-this.lastY;if([z,A]=(0,b.snapToGrid)(this.props.grid,z,A),!z&&!A)return;P=this.lastX+z,O=this.lastY+A}const I=(0,b.createCoreData)(this,P,O);if((0,E.default)("DraggableCore: handleDrag: %j",I),this.props.onDrag(S,I)!==!1&&this.mounted!==!1)this.lastX=P,this.lastY=O;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const z=document.createEvent("MouseEvents");z.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(z)}}),R(this,"handleDragStop",S=>{if(!this.dragging)return;const k=(0,b.getControlPosition)(S,this.touchIdentifier,this);if(k==null)return;let{x:P,y:O}=k;if(Array.isArray(this.props.grid)){let A=P-this.lastX||0,D=O-this.lastY||0;[A,D]=(0,b.snapToGrid)(this.props.grid,A,D),P=this.lastX+A,O=this.lastY+D}const I=(0,b.createCoreData)(this,P,O);if(this.props.onStop(S,I)===!1||this.mounted===!1)return!1;const z=this.findDOMNode();z&&this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(z.ownerDocument),(0,E.default)("DraggableCore: handleDragStop: %j",I),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,z&&((0,E.default)("DraggableCore: Removing handlers"),(0,v.removeEvent)(z.ownerDocument,T.move,this.handleDrag),(0,v.removeEvent)(z.ownerDocument,T.stop,this.handleDragStop))}),R(this,"onMouseDown",S=>(T=L,this.handleDragStart(S))),R(this,"onMouseUp",S=>(T=L,this.handleDragStop(S))),R(this,"onTouchStart",S=>(T=_,this.handleDragStart(S))),R(this,"onTouchEnd",S=>(T=_,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,v.addEvent)(S,_.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:k}=S;(0,v.removeEvent)(k,L.move,this.handleDrag),(0,v.removeEvent)(k,_.move,this.handleDrag),(0,v.removeEvent)(k,L.stop,this.handleDragStop),(0,v.removeEvent)(k,_.stop,this.handleDragStop),(0,v.removeEvent)(S,_.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,v.scheduleRemoveUserSelectStyles)(k)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:x.default.findDOMNode(this)}render(){return m.cloneElement(m.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return W0.default=j,R(j,"displayName","DraggableCore"),R(j,"propTypes",{allowAnyClick:y.default.bool,allowMobileScroll:y.default.bool,children:y.default.node.isRequired,disabled:y.default.bool,enableUserSelectHack:y.default.bool,offsetParent:function(S,k){if(S[k]&&S[k].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:y.default.arrayOf(y.default.number),handle:y.default.string,cancel:y.default.string,nodeRef:y.default.object,onStart:y.default.func,onDrag:y.default.func,onStop:y.default.func,onMouseDown:y.default.func,scale:y.default.number,className:w.dontSetMe,style:w.dontSetMe,transform:w.dontSetMe}),R(j,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),W0}()),d=p(Xg());function p(m){return m&&m.__esModule?m:{default:m}}function f(){return f=Object.assign?Object.assign.bind():function(m){for(var y=1;y<arguments.length;y++){var x=arguments[y];for(var v in x)({}).hasOwnProperty.call(x,v)&&(m[v]=x[v])}return m},f.apply(null,arguments)}function h(m,y,x){return(y=typeof(v=function(b,w){if(typeof b!="object"||!b)return b;var E=b[Symbol.toPrimitive];if(E!==void 0){var C=E.call(b,w);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(b)}(y,"string"))=="symbol"?v:v+"")in m?Object.defineProperty(m,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[y]=x,m;var v}class g extends t.Component{static getDerivedStateFromProps(y,x){let{position:v}=y,{prevPropsPosition:b}=x;return!v||b&&v.x===b.x&&v.y===b.y?null:((0,d.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:b}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(y){super(y),h(this,"onDragStart",(x,v)=>{if((0,d.default)("Draggable: onDragStart: %j",v),this.props.onStart(x,(0,a.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),h(this,"onDrag",(x,v)=>{if(!this.state.dragging)return!1;(0,d.default)("Draggable: onDrag: %j",v);const b=(0,a.createDraggableData)(this,v),w={x:b.x,y:b.y,slackX:0,slackY:0};if(this.props.bounds){const{x:E,y:C}=w;w.x+=this.state.slackX,w.y+=this.state.slackY;const[R,_]=(0,a.getBoundPosition)(this,w.x,w.y);w.x=R,w.y=_,w.slackX=this.state.slackX+(E-w.x),w.slackY=this.state.slackY+(C-w.y),b.x=w.x,b.y=w.y,b.deltaX=w.x-this.state.x,b.deltaY=w.y-this.state.y}if(this.props.onDrag(x,b)===!1)return!1;this.setState(w)}),h(this,"onDragStop",(x,v)=>{if(!this.state.dragging||this.props.onStop(x,(0,a.createDraggableData)(this,v))===!1)return!1;(0,d.default)("Draggable: onDragStop: %j",v);const b={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:w,y:E}=this.props.position;b.x=w,b.y=E}this.setState(b)}),this.state={dragging:!1,dragged:!1,x:y.position?y.position.x:y.defaultPosition.x,y:y.position?y.position.y:y.defaultPosition.y,prevPropsPosition:{...y.position},slackX:0,slackY:0,isElementSVG:!1},!y.position||y.onDrag||y.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:y,bounds:x,children:v,defaultPosition:b,defaultClassName:w,defaultClassNameDragging:E,defaultClassNameDragged:C,position:R,positionOffset:_,scale:L,...T}=this.props;let j={},S=null;const k=!R||this.state.dragging,P=R||b,O={x:(0,a.canDragX)(this)&&k?this.state.x:P.x,y:(0,a.canDragY)(this)&&k?this.state.y:P.y};this.state.isElementSVG?S=(0,i.createSVGTransform)(O,_):j=(0,i.createCSSTransform)(O,_);const I=(0,r.clsx)(v.props.className||"",w,{[E]:this.state.dragging,[C]:this.state.dragged});return t.createElement(c.default,f({},T,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:I,style:{...v.props.style,...j},transform:S}))}}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:l.dontSetMe,style:l.dontSetMe,transform:l.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})}($g)),$g}function fC(){if(Zg)return H0.exports;Zg=1;const{default:e,DraggableCore:t}=QB();return H0.exports=e,H0.exports.default=e,H0.exports.DraggableCore=t,H0.exports}var Yg,Rd={},Jg,Qg,U0={};function mC(){if(Jg)return U0;Jg=1,U0.__esModule=!0,U0.resizableProps=void 0;var e,t=(e=Zc())&&e.__esModule?e:{default:e};fC();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 a,l=r[0];return l.axis==="both"||l.axis==="y"?(a=t.default.number).isRequired.apply(a,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 a,l=r[0];return l.axis==="both"||l.axis==="x"?(a=t.default.number).isRequired.apply(a,r):t.default.number.apply(t.default,r)}};return U0.resizableProps=n,U0}function ey(){if(Qg)return V0;Qg=1,V0.__esModule=!0,V0.default=void 0;var e=function(h){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=i(void 0);if(g&&g.has(h))return g.get(h);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!=="default"&&Object.prototype.hasOwnProperty.call(h,x)){var v=y?Object.getOwnPropertyDescriptor(h,x):null;v&&(v.get||v.set)?Object.defineProperty(m,x,v):m[x]=h[x]}return m.default=h,g&&g.set(h,m),m}(u),t=fC(),n=function(){if(Yg)return Rd;Yg=1,Rd.__esModule=!0,Rd.cloneElement=function(v,b){return b.style&&v.props.style&&(b.style=y(y({},v.props.style),b.style)),b.className&&v.props.className&&(b.className=v.props.className+" "+b.className),g.default.cloneElement(v,b)};var h,g=(h=u)&&h.__esModule?h:{default:h};function m(v,b){var w=Object.keys(v);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(v);b&&(E=E.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),w.push.apply(w,E)}return w}function y(v){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?m(Object(w),!0).forEach(function(E){x(v,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(w)):m(Object(w)).forEach(function(E){Object.defineProperty(v,E,Object.getOwnPropertyDescriptor(w,E))})}return v}function x(v,b,w){return(b=typeof(E=function(C,R){if(typeof C!="object"||C===null)return C;var _=C[Symbol.toPrimitive];if(_!==void 0){var L=_.call(C,R);if(typeof L!="object")return L;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(b,"string"))=="symbol"?E:String(E))in v?Object.defineProperty(v,b,{value:w,enumerable:!0,configurable:!0,writable:!0}):v[b]=w,v;var E}return Rd}(),o=mC(),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(y){return y?m:g})(h)}function a(){return a=Object.assign?Object.assign.bind():function(h){for(var g=1;g<arguments.length;g++){var m=arguments[g];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(h[y]=m[y])}return h},a.apply(this,arguments)}function l(h,g){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);g&&(y=y.filter(function(x){return Object.getOwnPropertyDescriptor(h,x).enumerable})),m.push.apply(m,y)}return m}function c(h){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?l(Object(m),!0).forEach(function(y){d(h,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(m,y))})}return h}function d(h,g,m){return(g=typeof(y=function(x,v){if(typeof x!="object"||x===null)return x;var b=x[Symbol.toPrimitive];if(b!==void 0){var w=b.call(x,v);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(x)}(g,"string"))=="symbol"?y:String(y))in h?Object.defineProperty(h,g,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[g]=m,h;var y}function p(h,g){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,y){return m.__proto__=y,m})(h,g)}var f=function(h){var g,m;function y(){for(var v,b=arguments.length,w=new Array(b),E=0;E<b;E++)w[E]=arguments[E];return(v=h.call.apply(h,[this].concat(w))||this).handleRefs={},v.lastHandleRect=null,v.slack=null,v}m=h,(g=y).prototype=Object.create(m.prototype),g.prototype.constructor=g,p(g,m);var x=y.prototype;return x.componentWillUnmount=function(){this.resetData()},x.resetData=function(){this.lastHandleRect=this.slack=null},x.runConstraints=function(v,b){var w=this.props,E=w.minConstraints,C=w.maxConstraints,R=w.lockAspectRatio;if(!E&&!C&&!R)return[v,b];if(R){var _=this.props.width/this.props.height,L=v-this.props.width,T=b-this.props.height;Math.abs(L)>Math.abs(T*_)?b=v/_:v=b*_}var j=v,S=b,k=this.slack||[0,0],P=k[0],O=k[1];return v+=P,b+=O,E&&(v=Math.max(E[0],v),b=Math.max(E[1],b)),C&&(v=Math.min(C[0],v),b=Math.min(C[1],b)),this.slack=[P+(j-v),O+(S-b)],[v,b]},x.resizeHandler=function(v,b){var w=this;return function(E,C){var R=C.node,_=C.deltaX,L=C.deltaY;v==="onResizeStart"&&w.resetData();var T=(w.props.axis==="both"||w.props.axis==="x")&&b!=="n"&&b!=="s",j=(w.props.axis==="both"||w.props.axis==="y")&&b!=="e"&&b!=="w";if(T||j){var S=b[0],k=b[b.length-1],P=R.getBoundingClientRect();w.lastHandleRect!=null&&(k==="w"&&(_+=P.left-w.lastHandleRect.left),S==="n"&&(L+=P.top-w.lastHandleRect.top)),w.lastHandleRect=P,k==="w"&&(_=-_),S==="n"&&(L=-L);var O=w.props.width+(T?_/w.props.transformScale:0),I=w.props.height+(j?L/w.props.transformScale:0),z=w.runConstraints(O,I);O=z[0],I=z[1];var A=O!==w.props.width||I!==w.props.height,D=typeof w.props[v]=="function"?w.props[v]:null;D&&!(v==="onResize"&&!A)&&(E.persist==null||E.persist(),D(E,{node:R,size:{width:O,height:I},handle:b})),v==="onResizeStop"&&w.resetData()}}},x.renderResizeHandle=function(v,b){var w=this.props.handle;if(!w)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+v,ref:b});if(typeof w=="function")return w(v,b);var E=c({ref:b},typeof w.type=="string"?{}:{handleAxis:v});return e.cloneElement(w,E)},x.render=function(){var v=this,b=this.props,w=b.children,E=b.className,C=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 R=b.resizeHandles;b.transformScale;var _=function(L,T){if(L==null)return{};var j,S,k={},P=Object.keys(L);for(S=0;S<P.length;S++)j=P[S],T.indexOf(j)>=0||(k[j]=L[j]);return k}(b,r);return(0,n.cloneElement)(w,c(c({},_),{},{className:(E?E+" ":"")+"react-resizable",children:[].concat(w.props.children,R.map(function(L){var T,j=(T=v.handleRefs[L])!=null?T:v.handleRefs[L]=e.createRef();return e.createElement(t.DraggableCore,a({},C,{nodeRef:j,key:"resizableHandle-"+L,onStop:v.resizeHandler("onResizeStop",L),onStart:v.resizeHandler("onResizeStart",L),onDrag:v.resizeHandler("onResize",L)}),v.renderResizeHandle(L,j))}))}))},y}(e.Component);return V0.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},V0}var ty,ny,q0={},eN=(ny||(ny=1,_d.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},_d.exports.Resizable=ey().default,_d.exports.ResizableBox=function(){if(ty)return q0;ty=1,q0.__esModule=!0,q0.default=void 0;var e=function(g){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var m=a(void 0);if(m&&m.has(g))return m.get(g);var y={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in g)if(v!=="default"&&Object.prototype.hasOwnProperty.call(g,v)){var b=x?Object.getOwnPropertyDescriptor(g,v):null;b&&(b.get||b.set)?Object.defineProperty(y,v,b):y[v]=g[v]}return y.default=g,m&&m.set(g,y),y}(u),t=i(Zc()),n=i(ey()),o=mC(),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 a(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,y=new WeakMap;return(a=function(x){return x?y:m})(g)}function l(){return l=Object.assign?Object.assign.bind():function(g){for(var m=1;m<arguments.length;m++){var y=arguments[m];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(g[x]=y[x])}return g},l.apply(this,arguments)}function c(g,m){var y=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);m&&(x=x.filter(function(v){return Object.getOwnPropertyDescriptor(g,v).enumerable})),y.push.apply(y,x)}return y}function d(g){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?c(Object(y),!0).forEach(function(x){p(g,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(y,x))})}return g}function p(g,m,y){return(m=typeof(x=function(v,b){if(typeof v!="object"||v===null)return v;var w=v[Symbol.toPrimitive];if(w!==void 0){var E=w.call(v,b);if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}(m,"string"))=="symbol"?x:String(x))in g?Object.defineProperty(g,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[m]=y,g;var x}function f(g,m){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,x){return y.__proto__=x,y})(g,m)}var h=function(g){var m,y;function x(){for(var v,b=arguments.length,w=new Array(b),E=0;E<b;E++)w[E]=arguments[E];return(v=g.call.apply(g,[this].concat(w))||this).state={width:v.props.width,height:v.props.height,propsWidth:v.props.width,propsHeight:v.props.height},v.onResize=function(C,R){var _=R.size;v.props.onResize?(C.persist==null||C.persist(),v.setState(_,function(){return v.props.onResize&&v.props.onResize(C,R)})):v.setState(_)},v}return y=g,(m=x).prototype=Object.create(y.prototype),m.prototype.constructor=m,f(m,y),x.getDerivedStateFromProps=function(v,b){return b.propsWidth!==v.width||b.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null},x.prototype.render=function(){var v=this.props,b=v.handle,w=v.handleSize;v.onResize;var E=v.onResizeStart,C=v.onResizeStop,R=v.draggableOpts,_=v.minConstraints,L=v.maxConstraints,T=v.lockAspectRatio,j=v.axis;v.width,v.height;var S=v.resizeHandles,k=v.style,P=v.transformScale,O=function(I,z){if(I==null)return{};var A,D,F={},B=Object.keys(I);for(D=0;D<B.length;D++)A=B[D],z.indexOf(A)>=0||(F[A]=I[A]);return F}(v,r);return e.createElement(n.default,{axis:j,draggableOpts:R,handle:b,handleSize:w,height:this.state.height,lockAspectRatio:T,maxConstraints:L,minConstraints:_,onResizeStart:E,onResize:this.onResize,onResizeStop:C,resizeHandles:S,transformScale:P,width:this.state.width},e.createElement("div",l({},O,{style:d(d({},k),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},x}(e.Component);return q0.default=h,h.propTypes=d(d({},o.resizableProps),{},{children:t.default.element}),q0}().default),_d.exports);function c5(e,t){if(typeof e=="function")return e(t);e&&(e.current=t)}var V2=parseInt(u.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const o of e){const r=c5(o,t),i=typeof r=="function";n.push(i?r:()=>c5(o,null))}return()=>{for(const o of n)o()}}}:function(e){return t=>{for(const n of e)c5(n,t)}};const Lf=u.memo(u.forwardRef((e,t)=>{const{disabled:n,names:o,workbook:r,restoreFocus:i,disabled:a=!1,commandPopupButtonProps:l,sx:c,notifier:d,...p}=e,[f,h]=u.useState(null),[g,m]=u.useState(()=>r.getSelectedRanges().getCoords()),[y,x]=u.useState(!1),{reference:v}=pa({parentFloat:l?.parentFloat}),b=()=>f?.text??"",[w,E]=u.useState(b),C=_e(()=>{if(v?.closeAll(),!w){const N=b();return E(b()),N}if(b()===w)return w;const F=w.trim().toLowerCase();if(F==="r"||F==="c")return w;try{const N=r.getRanges(w);if(N)return N.toString()}catch{}const B=o.getByName(w);if(B&&B.getRanges())return w;let M=null;try{const N=r.getRanges(w).getCoords().map(V=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V}));M=r.getRanges(N)}catch{}if(!M){const N=r.getSelectedRanges().getCoords().map(V=>({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V}));M=r.getRanges(N)}try{let N=o.getByName(w);N||(N=o.addReference(w,M)),h({text:N.getName()})}catch(N){E(b()),d.showMessage?.(N.message,{type:ua.Error})}return null},[w,o,v]),R=_e(()=>{if(r.isClosed())return;const F=[];for(let N=0;N<g.length;N++){const V=g[N];F.push({$colEnd:!0,$rowEnd:!0,$colStart:!0,$rowStart:!0,...V})}let B=null;try{B=o.lookupByRanges(F)}catch{}let M=null;M=B?.length>0?B[0].getName():r.getSelectedSheet().getSelectedRange().toString(),h({text:M})},[r,g]),[_,L]=u.useState(()=>o?.search()??null);sn(o,{onCollectionChange(F){L(o.search()),R()},onClose(F){L([])}}),u.useEffect(()=>{E(b())},[f,g]);const[T,j]=u.useState(r?.getSelectedSheet());sn(r,{onSheetsChange:F=>{j(F?.getSelectedSheet())},onViewChange(F){j(F?.getSelectedSheet())}});const[S,k]=u.useState(null),P=_e($.CommonUtils.debounce(R,S?320:0),[]);sn(T.getSelection(),{onChange:()=>{m(F=>{const B=r.getSelectedRanges().getCoords();return $.CoordUtils.isEqualRangesArrays(B,F)?F:B})},onAdjustingChange:F=>{k(F.getAdjusting())}}),u.useEffect(()=>{if(S){const F=r.getSelectedRange(),B=F.getRowCount(),M=F.getColumnCount();let N=`${B}R x ${M}C`;if(N.length>17&&(N=`${B}x${M}`),B>1||M>1)return void h({text:N,fontStyle:"italic",justifyContent:"center"})}h({text:r.getSelectedSheet().getSelectedRange().toString()}),P()},[g,r,S]);const O=u.useRef(null),I=u.useCallback(F=>{const{onMouseDown:B,onMouseUp:M,...N}=F;return s.jsx(Tr,{...N,sx:{...N?.sx,display:"flex",flex:"1 1 100%"},disableRipple:!0,children:s.jsx(ql,{inputMode:"text",inputProps:{tabIndex:0,name:"input-named-range",maxLength:255,className:"input",autoFocus:!1,spellCheck:!1,autoComplete:"off",ref:O},sx:{"&::before":{borderBottom:"1px solid transparent"},"&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before":{borderBottom:V=>`1px solid ${V.palette.text.icon??V.palette.action.active}`},"&:hover:not(.Mui-disabled):not(.Mui-error):before":{borderBottom:V=>`1px solid ${V.palette.primary.main}`},"::after":{borderBottom:V=>`1px solid ${V.palette.primary.main}`},paddingTop:"0px",paddingBottom:"0px",fontSize:11*$.IFont.getDeviceScale(),fontStyle:f?.fontStyle,paddingLeft:V=>V.spacing(.75),paddingRight:V=>V.spacing(.75),boxShadow:"none",flex:"1",color:V=>V.palette.text.secondary,input:{padding:"0",textAlign:"left","&:hover:not(.Mui-disabled):not(.Mui-error)":{color:V=>V.palette.text.primary},"&:focus:not(.Mui-disabled):not(.Mui-error)":{color:V=>V.palette.text.primary}}},value:w,onFocus:V=>{V.target?.select()},onKeyDown:V=>{if(V.which===tn.Enter||V.which===tn.Tab){let U=w;b()!==w&&(V.stopPropagation(),V.preventDefault(),U=C()),U?z(U):i?.()}else if(V.which===tn.Escape)b()!==w?(E(b()),setTimeout(()=>{V.target?.select()},0),V.stopPropagation(),V.preventDefault()):i?.();else if(V.which===tn.Space)return void V.stopPropagation()},onBlur:()=>{E(b())},onChange:V=>{E(V.target.value)}})})},[w,f]),z=_e(async F=>{try{v?.closeAll();const B=o.lookupByRanges(F)?.[0];B&&await B?.select(),await r.getRanges(F)?.select()}catch(B){d.showMessage?.(B.message,{type:ua.Error})}},[o,d,r]),A=u.useCallback(F=>{setTimeout(()=>{x(!0)},0);const B={variant:Yt.Menuitem,parentFloat:F.floatReference,commandHook:{...l?.commandHook,beforeExecute:(U,J)=>(v?.closeAll(),l?.commandHook?.beforeExecute?.(U,J))},scope:l?.scope,commands:l?.commands};let M=o.search({scope:r?.getSelectedSheet().getName()});M=M.sort((U,J)=>U.getType()===J.getType()?U.getName().localeCompare(J.getName()):U.getType()==="range"?-1:1);const N=[];for(let U=0;U<M.length;U++){const J=M[U],X=J.getRanges();if(!X||J.isHidden())continue;const H=J.getType();H!==M[U-1]?.getType()&&(U>0&&N.push(s.jsx(Ft,{orientation:"horizontal"},`type-divider-${N.length}`)),N.push(s.jsx(qs,{variant:"subtitle2",sx:{paddingLeft:"16px"},children:J.getType()==="reference"?"Ranges":"Tables"},`type-header-${N.length}`))),H==="reference"?N.push(u.createElement(sa,{...B,key:"named-"+N.length,popupCommandKeys:["editNamedReference","deleteNamedReference"],popupScope:"namedItem",scope:"namedItem",commandState:J,commands:l?.commands,label:J.getName(),quickCommand:"selectNamed",disabled:!J.getRanges()||a,icon:ne=>{switch(ne.key()){case"editNamedReference":return ze(s.jsx(nD,{}));case"deleteNamedReference":return ze(s.jsx(oD,{}));default:return ze(s.jsx(eD,{}))}}})):H==="table"&&N.push(u.createElement(sa,{...B,key:"namedItem-"+N.length,popupCommandKeys:["editTable",null,"convertTableToRange","deleteTable"],popupScope:"namedItem",scope:"namedItem",commands:l?.commands,commandState:J,label:J.getName(),quickCommand:"selectNamed",disabled:!X||a,icon:ne=>(ne.key(),ze(s.jsx(qc,{})))}))}const V=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},...p,children:[s.jsx(qe,{...B,scope:"namedItem",command:l?.commands.getCommand("addNamedReference"),icon:ze(s.jsx(tD,{}))}),N&&N.length>0?s.jsxs(s.Fragment,{children:[s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:N})]}):null]});return Bn({...F,children:V})},[r,_,o,f]),D=ir(t,()=>({focus(F){O.current?.focus(F)}}),[]);return s.jsx(Le,{className:"outer",sx:{minWidth:120,flex:"1 1 100%",display:"flex",alignItems:"center",justifyContent:"start",...c},ref:V2([D,t]),...p,children:s.jsx(Ui,{className:"outer-button",sx:{display:"flex",flex:"1 1 100%","& .tooltip-wrapper":{display:"flex",flex:"1 1 100%",width:"100%",height:"27px"},...c},buttonProps:{sx:{backgroundColor:F=>F.palette.background.paper,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`}},tabIndex:-1,outlined:{color:F=>n?F.palette.action.disabled:pt(F.palette.divider,.2)},parentFloat:v,createPopupPanel:A,onPopupOpen:()=>x(!0),onPopupClose:()=>x(!1),createTooltip:({children:F},B)=>s.jsx(br,{title:B||y?"":"Name Box",disabled:B,leaveDelay:0,sx:{opacity:B||y?0:1},children:F}),createQuickButton:I})})}));Lf.displayName="NamedCollectionEditor";const tN=(e,t)=>s.jsx(Lf,{ref:t,...e}),zf=u.memo(u.forwardRef((e,t)=>{const{sx:n,workbook:o,sheetElement:r,gridStyle:i,showNamedCollectionEditor:a=!0,NamedCollectionEditorProps:l,renderNamedCollectionEditor:c=tN,disabled:d,commands:p,...f}=e,[h,g]=u.useState(o?.getSelectedSheet());sn(o,{onSheetsChange:X=>{g(X?.getSelectedSheet())},onViewChange(X){g(X?.getSelectedSheet())}});const[m,y]=u.useState(h.getSelection().getCoords().cell),x=h.getRange(m).getCell(),v=d||!x.isEditAllowed(),b=u.useRef(null),w=u.useMemo(()=>({fontSize:11}),[]);sn(h.getSelection(),{onChange:()=>{y(h.getSelection().getCoords().cell)}}),sn(h,{onProtectionChange(){y(h.getSelection().getCoords().cell)}});const E=b.current?.getLineHeight()??20,[C,R]=u.useState(E),[_,L]=u.useState(5),[T,j]=u.useState(1),S=_e((X,{size:H})=>{X.preventDefault(),X.stopPropagation();const ne=Math.floor(H.height/E);R(ne*E+1),ne>1&&L(ne)},[E]),k=_e((X,{size:H})=>{const ne=Math.floor(H.height/E);j(ne)},[E]),P=Hi(),O=P.getMode();let I=null;O?.key==="edit"&&(I=O.args?.stateAndCoords);const z=u.useMemo(()=>{let X=I?.editState;return X||(X=Yw(()=>h.getRange(m).getCell())),s.jsx(Le,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"row",gap:4},children:s.jsx(Xw,{ref:b,activeCoords:m,sheet:h,onFocus:()=>{r?.startEdit({autoFocus:!1,editMode:!0,cell:m})},defaultTextStyle:w,useRichStyling:!1,disabled:v,onChangeEdit:H=>{if(H.dirty!==void 0){const ne={sheet:h,coords:m,editState:H};P.setMode(oe=>({...oe,args:{...oe?.args,stateAndCoords:ne}}))}},editState:X,commands:p,onCancelEdit:()=>{r?.cancelEdit(),r?.focus()},onSubmitEdit:()=>{r?.submitEdit(),r?.focus()},linesVisible:T})})},[h,I,m,T,r]),A=u.useRef(null),D=u.useMemo(()=>a?c({names:o.getNames(),workbook:o,...l},A):null,[c,l,a,h,o,v]),F=u.useMemo(()=>s.jsxs(Mi,{elevation:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:0,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,border:X=>`solid ${v?X.palette.action.disabled:pt(X.palette.divider,.2)} 1px`},children:[s.jsx(ii,{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:ze(s.jsx(JO,{})),tooltipProps:{label:"Cancel",simple:!0},disabled:v||I===null,onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{r.cancelEdit()}}),s.jsx(ii,{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:ze(s.jsx(QO,{})),tooltipProps:{label:"Enter",simple:!0},disabled:v||I===null,onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{r.submitEdit()}}),s.jsx(ii,{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:ze(s.jsx(wD,{sx:{transform:"scale(0.85)"}})),tooltipProps:{label:"Insert Function",simple:!0},onMouseDown:X=>{X.button===0&&X.preventDefault()}})]}),[v,I]),B=qi(),[M,N]=u.useState(!1),V=u.useMemo(()=>s.jsxs(Le,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",gap:X=>X.spacing(.5),alignItems:"start"},children:[F,s.jsxs(Mi,{elevation:0,sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",fontFamily:X=>X.typography.fontFamily,fontSize:11*$.IFont.getDeviceScale(),"& .editor-placement":{top:"2px !important"},boxShadow:"none",borderRadius:X=>`${X.shape.borderRadius}px`,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,border:X=>`solid ${v?X.palette.action.disabled:pt(X.palette.divider,.2)} 1px`,"& textarea":{color:X=>v?`${X.palette.text.disabled} !important`:X.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:()=>N(!0),onBlur:()=>N(!1),onMouseDown:X=>{X.target?.classList.contains("react-resizable-handle")&&X.preventDefault()},children:[s.jsx(Le,{className:"formula-editor",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",alignSelf:"baseline",paddingLeft:X=>X.spacing(1),paddingRight:X=>X.spacing(1)},children:s.jsx(eN.ResizableBox,{height:C,draggableOpts:{grid:[E,E]},minConstraints:[E,E],maxConstraints:[15*E,15*E],onResize:k,onResizeStop:S,resizeHandles:["s"],axis:"y",style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:z})}),s.jsx(ii,{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:ze(s.jsx(T>1?lR:Lx,{})),tooltipProps:{label:(T>1?"Collapse":"Expand")+" Formula Bar",simple:!0},onMouseDown:X=>{X.button===0&&X.preventDefault()},onClick:()=>{const X=T>1?1:_;R(X*E+1),j(X)}}),s.jsx(Le,{sx:{position:"absolute",width:"100%",height:"2px",bottom:"0",willChange:"opacity",transition:"opacity 60ms ease-in",opacity:M?1:0,borderBottomWidth:"2px",borderBottomStyle:"solid",borderBottomColor:X=>X.palette.primary.main,borderRadius:X=>`${X.shape.borderRadius}px`}})]})]}),[F,z,M,T,E]),U=u.useMemo(()=>D||V?!D&&V?V:D&&!V?D:s.jsx(s.Fragment,{children:s.jsx(q5,{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='${B.palette.text.icon??B.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:D,elementAfter:V})}):null,[D,V]),J=ir(t,()=>({isFormulaBarElement:()=>!0,getNamedCollectionEditorElement:()=>A.current}),[]);return s.jsx(Le,{sx:{display:"flex",flexDirection:"row",gap:X=>X.spacing(.5),...n},ref:J,...f,children:U})}));zf.displayName="FormulaBar";const Ff=u.memo(u.forwardRef((e,t)=>{const{filter:n,commands:o,disabled:r,sx:i,floatReference:a,...l}=e,c=u.useMemo(()=>({}),[]),d=u.useMemo(()=>({commandHook:{beforeExecute:(h,g)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:a}),[r,a]),p=u.useMemo(()=>({...c,...d,variant:Yt.Menuitem}),[c,d]),f=s.jsxs(s.Fragment,{children:[s.jsx(qe,{...p,command:o.getCommand("sortAscending"),icon:ze(s.jsx(uh,{}))}),s.jsx(qe,{...p,command:o.getCommand("sortDescending"),icon:ze(s.jsx(nv,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...p,command:o.getCommand("autoFilterClear"),icon:ze(s.jsx($3,{}))}),[]]});return s.jsx(Le,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",display:"flex",flexDirection:"column",...i},...l,children:f})}));Ff.displayName="FilterColumnMenu";const gC=u.memo(u.forwardRef((e,t)=>{const{children:n,className:o,disabled:r,style:i,filter:a,...l}=e,c=ir(t,()=>({isFilters:()=>!0}),[]);return s.jsx("div",{ref:c,className:Eo("filters",o),style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",...i},...l,children:s.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:[s.jsx("div",{children:a.getName()}),s.jsx("div",{children:"Filter Widget"})]})})}));gC.displayName="Filters";const Bf=u.memo(u.forwardRef((e,t)=>{const{children:n,sheet:o,style:r,className:i,value:a,index:l,editing:c,editable:d,disabled:p,selectedIndex:f,dragging:h,borderColor:g,borderWidth:m,activeColor:y,background:x="white",tabRadius:v=4,gridTheme:b,...w}=e,[E,C]=u.useState(()=>!!o&&o.getProtection().isLocked()),[R,_]=u.useState(()=>o?o.getTabColor():null);sn(o,{onProtectionChange:()=>{C(o.getProtection().isLocked())},onTabColorChange:()=>{_(o.getTabColor())},onStyleChange:()=>{_(o.getTabColor())}});const L=qi(),T=f===l;let j=null,S=null;if(R||h){let O=x;R?(S=R.toBlackOrWhite().toCSS(),O=R?.toCSS()):T||(O=L.palette.background.paper),j=s.jsx(Le,{sx:{position:"absolute",boxSizing:"border-box",top:"3px",left:"4px",right:"4.5px",bottom:"1.5px",opacity:T?"50%":"100%",borderRadius:"4px",border:I=>T?`${x} solid 1px`:`${I.palette.divider} solid 1px`,background:T&&R?`linear-gradient(0deg, ${O} 0%, transparent)`:O}})}let k=null;typeof g=="string"?k=g:g?.toCSS&&(k=g.toCSS());const P=T?s.jsx(Le,{sx:{width:"100%",borderRadius:"4px",minWidth:"4px",height:"2px",backgroundColor:O=>O.palette.primary.main}}):null;return s.jsx(hw,{theme:T?b??L:L,children:s.jsx(Le,{ref:t,className:Eo(i),sx:{...r,display:"flex",flexDirection:"column",minHeight:"0px",fontWeight:T?"700":"400",fontSize:"0.85rem",letterSpacing:"0",lineHeight:"1",textTransform:"none",minWidth:"unset",cursor:h?"grabbing":void 0},...w,children:s.jsx(nI,{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},radius:v,strokeColor:T?k:"transparent",children:s.jsx(Lc,{sx:{textTransform:"none",borderRadius:"0px",minHeight:"0px",paddingLeft:"11px",paddingRight:"12px",paddingTop:"3px",flex:"1 1 100%",paddingBottom:"3px",fontWeight:T?"700":"400",fontSize:"0.85rem",letterSpacing:"0",transition:"none",cursor:h?"grabbing":void 0,color:T?"primary":S||"text.secondary",backgroundColor:T?x:"transparent","&:hover:not([disabled])":{backgroundColor:T?x:"transparent"},"& input":{color:O=>`${O.palette.text.primary}`,textAlign:"center",fontWeight:"500"},marginTop:"0px",minWidth:"unset"},disabled:p,disableRipple:c,component:"div",children:s.jsxs(s.Fragment,{children:[j,s.jsxs(Le,{sx:{zIndex:"1",display:"flex",flexDirection:"row",alignItems:"center"},children:[s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",alignItems:"center",rowGap:"1px",lineHeight:"1",marginTop:T?void 0:"1px"},children:[n,P]}),E?s.jsx(v2,{sx:{scale:"0.80",marginLeft:"2px",width:"22px",height:"22px"},color:"secondary"}):s.jsx(Le,{sx:{minHeight:"22px"}})]})]})},a+":"+l)})})})}));Bf.displayName="SheetTab";const Nf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,index:o,commands:r,scope:i="sheet",disabled:a,floatReference:l,sx:c,className:d,tabStripRef:p,...f}=e,[h,g]=u.useState(n?.getProtection());sn(n,{onProtectionChange:b=>{g(b?.getProtection())}});const m=u.useMemo(()=>({}),[]),y=u.useMemo(()=>({commandHook:{beforeExecute:(b,w)=>l.closeAll(),onExecute(){},onError(){console.log("onError")}},scope:i,commandState:o,disabled:a||o===void 0,parentFloat:l}),[a,l]),x=u.useMemo(()=>({...m,...y}),[m,y]),v=s.jsxs(s.Fragment,{children:[s.jsx(qe,{command:r.getCommand("addSheet"),commandState:o,...x,variant:Yt.Menuitem}),s.jsx(qe,{command:r.getCommand("deleteSheet"),...x,variant:Yt.Menuitem}),s.jsxs(Gr,{onMouseDown:b=>{b.button===0&&b.preventDefault()},onMouseUp:()=>{Promise.resolve(l.closeAll()).then(()=>{p?.startEdit(o)})},disabled:a||!h.isStructureAllowed(),parentFloat:l,children:["Rename",i!=="sheet"?" Sheet":""]}),s.jsx(qe,{command:r.getCommand("duplicateSheet"),...x,variant:Yt.Menuitem}),s.jsx(qe,{command:r?.getCommand("protectionSheetToggle"),...x,variant:Yt.Menuitem,icon:s.jsx(v2,{})}),s.jsx(Ys,{variant:Yt.Menuitem,command:r.getCommand("formatSheetTabColor"),icon:s.jsx(N3,{}),panelProps:{disableAlpha:!0,autoColorLabel:"No Tab Color",autoColorPosition:Is.End},parentFloat:l}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{command:r.getCommand("hideSheet"),...x,variant:Yt.Menuitem,icon:ze(s.jsx(rv,{}))})]});return s.jsx(Le,{ref:t,className:Eo("menu",d),sx:{...c},...f,children:v})}));Nf.displayName="SheetTabMenu";const $f=u.memo(u.forwardRef((e,t)=>{const{workbook:n,gridStyle:o,floatReference:r,closeFloatAll:i,className:a,...l}=e,[c,d]=u.useState(n?.getSheets().search()),[p,f]=u.useState(n?.getProtection());sn(n,{onSheetsChange:g=>{d(g.getSheets().search())},onProtectionChange:g=>{f(g?.getProtection())}});const h=u.useMemo(()=>{const g=[],m=n.getSheets().search({visibility:$.ISheet.Visibility.Hidden}),y=n.getSelectedSheet();for(let x=0;x<m.length;x++){const v=m[x],b=v.getVisibility();if(b===$.ISheet.Visibility.VeryHidden)continue;const w=y===v,E=v.getProtection().isLocked(),C=v.getTabColor(),R=o?.body.fill??"transparent";let _=null,L=null,T=R;C&&(T=C.toCSS(),w||(L=C.toBlackOrWhite().toCSS()),_=s.jsx(Le,{sx:{position:"absolute",display:"flex",flexDirection:"column",top:"4px",left:"40px",right:"8px",bottom:"4px",background:w?T:"transparent",borderRadius:"4px",border:`solid 1px ${o.header.edgeStrokeFill}`},children:s.jsx(Le,{sx:{flex:"1 1 100%",boxSizing:"content-box",opacity:w||b===$.ISheet.Visibility.Hidden?"50%":"100%",border:S=>w?`${R} solid 1.5px`:`${S.palette.divider} solid 1px`,background:w&&C?`linear-gradient(0deg, ${T} 0%, ${R})`:T,borderRadius:"4px"}})}));let j=null;E&&(j=s.jsx(v2,{color:"secondary"})),b!==$.ISheet.Visibility.Visible&&(j=ze(s.jsx(rv,{style:{opacity:p.isStructureAllowed()?1:.7},color:"secondary"}))),j&&(j=s.jsx(Le,{sx:{display:"flex",flex:"1 1 100%",alignItems:"center",ml:"16px","& *":{lineHeight:"1em",fontSize:"1.3em"}},children:j})),g.push(s.jsx(Gr,{disabled:!p.isStructureAllowed()&&b===$.ISheet.Visibility.Hidden,sx:{color:S=>{let k=w?S.palette.primary.main:S.palette.text.secondary;return L&&(k=L),b===$.ISheet.Visibility.Hidden&&(k=pt(k,S.palette.action.disabledOpacity)),k},borderLeft:S=>`${w?S.palette.primary.main:"transparent"} solid 2px`,paddingLeft:"4px",fontWeight:w?"700":"400","&:hover":{fontWeight:"700"}},icon:w?s.jsx(k1,{}):void 0,onMouseDown:S=>S.preventDefault(),onMouseUp:()=>{Promise.resolve(r.closeAll()).then(()=>{try{v.select()}catch(S){console.error(S)}})},children:s.jsxs(s.Fragment,{children:[_,s.jsxs(Le,{sx:{paddingRight:"0px",paddingLeft:"4px",display:"flex",flexDirection:"row",flex:"1 1 100%",overflow:"hidden",alignItems:"center",zIndex:2},children:[s.jsxs(Le,{className:"sheet-name",sx:{display:"flex",flexDirection:"column",paddingLeft:"8px",paddingRight:"8px",alignItems:"center"},children:[v.getName(),s.jsx(Le,{sx:{height:"0px",opacity:"0",fontWeight:"700"},children:v.getName()})]}),j]})]})},""+x))}return g},[n,p,c,r,o]);return s.jsx(Le,{ref:t,className:Eo("menu",a),...l,children:h})}));$f.displayName="SheetsAllMenu";var nN=function(){},yC=typeof window<"u",oN=yC?u.useLayoutEffect:u.useEffect,oy={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};const i1=yC&&window.ResizeObserver!==void 0?function(){var e=u.useState(null),t=e[0],n=e[1],o=u.useState(oy),r=o[0],i=o[1],a=u.useMemo(function(){return new window.ResizeObserver(function(l){if(l[0]){var c=l[0].contentRect,d=c.x,p=c.y,f=c.width,h=c.height,g=c.top,m=c.left,y=c.bottom,x=c.right;i({x:d,y:p,width:f,height:h,top:g,left:m,bottom:y,right:x})}})},[]);return oN(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,r]}:function(){return[nN,oy]};function Ju(){return Ju=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},Ju.apply(null,arguments)}function Vf(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 Hf(e,t){return(Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n})(e,t)}function xC(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}function ry(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const bC=u.createContext(null);var vC=function(e){return e.scrollTop},dc="unmounted",gl="exited",yl="entering",us="entered",qh="exiting",ba=function(e){function t(o,r){var i;i=e.call(this,o,r)||this;var a,l=r&&!r.isMounting?o.enter:o.appear;return i.appearStatus=null,o.in?l?(a=gl,i.appearStatus=yl):a=us:a=o.unmountOnExit||o.mountOnEnter?dc:gl,i.state={status:a},i.nextCallback=null,i}xC(t,e),t.getDerivedStateFromProps=function(o,r){return o.in&&r.status===dc?{status:gl}: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!==yl&&i!==us&&(r=yl):i!==yl&&i!==us||(r=qh)}this.updateStatus(!1,r)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o,r,i,a=this.props.timeout;return o=r=i=a,a!=null&&typeof a!="number"&&(o=a.exit,r=a.enter,i=a.appear!==void 0?a.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===yl){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);i&&vC(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gl&&this.setState({status:dc})},n.performEnter=function(o){var r=this,i=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[yo.findDOMNode(this),a],c=l[0],d=l[1],p=this.getTimeouts(),f=a?p.appear:p.enter;o||i?(this.props.onEnter(c,d),this.safeSetState({status:yl},function(){r.props.onEntering(c,d),r.onTransitionEnd(f,function(){r.safeSetState({status:us},function(){r.props.onEntered(c,d)})})})):this.safeSetState({status:us},function(){r.props.onEntered(c)})},n.performExit=function(){var o=this,r=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:yo.findDOMNode(this);r?(this.props.onExit(a),this.safeSetState({status:qh},function(){o.props.onExiting(a),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:gl},function(){o.props.onExited(a)})})})):this.safeSetState({status:gl},function(){o.props.onExited(a)})},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(a){i&&(i=!1,r.nextCallback=null,o(a))},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:yo.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(i&&!a){if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)}else setTimeout(this.nextCallback,0)},n.render=function(){var o=this.state.status;if(o===dc)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 a=Vf(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return u.createElement(bC.Provider,{value:null},typeof i=="function"?i(o,a):u.cloneElement(u.Children.only(i),a))},t}(u.Component);function ls(){}ba.contextType=bC,ba.propTypes={},ba.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ls,onEntering:ls,onEntered:ls,onExit:ls,onExiting:ls,onExited:ls},ba.UNMOUNTED=dc,ba.EXITED=gl,ba.ENTERING=yl,ba.ENTERED=us,ba.EXITING=qh;var d5=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=ry(o.className,r):o.setAttribute("class",ry(o.className&&o.className.baseVal||"",r)));var o,r})},Kh=function(e){function t(){for(var o,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(o=e.call.apply(e,[this].concat(i))||this).appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(l,c){var d=o.resolveArguments(l,c),p=d[0],f=d[1];o.removeClasses(p,"exit"),o.addClass(p,f?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(l,c)},o.onEntering=function(l,c){var d=o.resolveArguments(l,c),p=d[0],f=d[1]?"appear":"enter";o.addClass(p,f,"active"),o.props.onEntering&&o.props.onEntering(l,c)},o.onEntered=function(l,c){var d=o.resolveArguments(l,c),p=d[0],f=d[1]?"appear":"enter";o.removeClasses(p,f),o.addClass(p,f,"done"),o.props.onEntered&&o.props.onEntered(l,c)},o.onExit=function(l){var c=o.resolveArguments(l)[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(l)},o.onExiting=function(l){var c=o.resolveArguments(l)[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(l)},o.onExited=function(l){var c=o.resolveArguments(l)[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(l)},o.resolveArguments=function(l,c){return o.props.nodeRef?[o.props.nodeRef.current,l]:[l,c]},o.getClassNames=function(l){var c=o.props.classNames,d=typeof c=="string",p=d?(d&&c?c+"-":"")+l:c[l];return{baseClassName:p,activeClassName:d?p+"-active":c[l+"Active"],doneClassName:d?p+"-done":c[l+"Done"]}},o}xC(t,e);var n=t.prototype;return n.addClass=function(o,r,i){var a,l,c=this.getClassNames(r)[i+"ClassName"],d=this.getClassNames("enter").doneClassName;r==="appear"&&i==="done"&&d&&(c+=" "+d),i==="active"&&o&&vC(o),c&&(this.appliedClasses[r][i]=c,l=c,(a=o)&&l&&l.split(" ").forEach(function(p){return m=p,void((g=a).classList?g.classList.add(m):(f=g,h=m,(f.classList?!!h&&f.classList.contains(h):(" "+(f.className.baseVal||f.className)+" ").indexOf(" "+h+" ")!==-1)||(typeof g.className=="string"?g.className=g.className+" "+m:g.setAttribute("class",(g.className&&g.className.baseVal||"")+" "+m))));var f,h,g,m}))},n.removeClasses=function(o,r){var i=this.appliedClasses[r],a=i.base,l=i.active,c=i.done;this.appliedClasses[r]={},a&&d5(o,a),l&&d5(o,l),c&&d5(o,c)},n.render=function(){var o=this.props;o.classNames;var r=Vf(o,["classNames"]);return u.createElement(ba,Ju({},r,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(u.Component);Kh.defaultProps={classNames:""},Kh.propTypes={};const wC={Light:"light",Dark:"dark"},u5=.12,Gh=(e,t)=>{const n={},o=c=>{const d=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:d,strokeFill:fi(d,u5,c.palette?.mode),darkMode:c.palette.mode==="dark"}},r=o(t);n.body=o(e),n.header={...n.body,strokeFill:fi(n.body.fill,u5,e.palette?.mode),fill:t&&e.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?n.body.fill:fi(n.body.fill,.055,e.palette?.mode),edgeStrokeFill:e.palette.mode==="dark"?n.body.strokeFill:fi(n.body.fill,.328,e.palette?.mode)},n.headerHover=c=>({...n.header,strokeFill:fi(c?.fill??n.body.fill,.22,e.palette?.mode),fill:fi(c?.fill??n.header.fill,.065,e.palette?.mode),text:{...c?.text,fontWeight:e.typography?.fontWeightBold}});const i=fi(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:pt(i,.2),text:{...n.header.text,fill:e.palette.primary.main},dividerStrokeFill:pt(i,.7)},n.headerSelectAll={...n.headerSelect,fill:pt(i,.9),text:{...n.headerSelect.text,fill:e.palette.primary.contrastText},edgeStrokeFill:n.headerSelect.strokeFill},n.buttonSurface={...r,strokeFill:fi(r.fill,u5,t.palette?.mode),fill:t&&t.palette.mode==="dark"&&t.palette.mode!==e.palette.mode?r.fill:fi(r.fill,.055,t.palette?.mode),edgeStrokeFill:t.palette.mode==="dark"?r.strokeFill:fi(r.fill,.328,t.palette?.mode)},n.headerSelection={fill:e.palette?.primary?.main?pt(e.palette?.primary?.main,.1):void 0,strokeFill:e.palette?.primary?.main},n.headerSelectionInactive={...n.headerSelection,fill:e.palette?.divider?pt(e.palette?.divider,.05):void 0,strokeFill:"transparent"};const a=t??e,l=a.palette.mode==="dark";return n.selection={fill:a.palette?.primary?.main?pt(a.palette?.primary?.main,.1):void 0,strokeFill:a.palette?.primary?.main},n.selectionInactive={...n.selection,fill:a.palette?.divider?pt(a.palette?.divider,.05):void 0,strokeFill:"transparent"},n.selectionRemove={...n.selection,fill:pt(a.palette.warning.light,.05),strokeFill:a.palette.warning.dark},t&&(n.body=o(t)),n.colorShadow=pt(a.palette.action.active,.5),n.colorGrey=a.palette.action.active,n.filterDarkInvert=l?"hue-rotate(180deg) invert(1) brightness(95%)":"none",n};function SC(e){const{mode:t}=e||{},[n,o]=u.useState(()=>{if(t==="light"||t==="dark")return{themeMode:t,source:"prop"};if(typeof document<"u"){const r=iy();if(r)return{themeMode:r,source:"class"}}return{themeMode:ay(),source:"media"}});return u.useEffect(()=>{if(t&&t!==n?.themeMode)return void o({themeMode:t,source:"prop"});const r=()=>{const c=iy();if(c)o({themeMode:c,source:"class"});else{const d=ay();o({themeMode:d,source:"media"})}},i=new MutationObserver(r),a=[document.documentElement,document.body].filter(Boolean);for(const c of a)i.observe(c,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",r),r(),()=>{i.disconnect(),l.removeEventListener("change",r)}},[t]),n}function iy(){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 ay(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const a1=u.memo(u.forwardRef((e,t)=>{const{children:n,sx:o,parentFloat:r,...i}=e,a=ir(t,()=>({}),[]),[l,c]=i1(),d=u.useRef(null),p=u.useRef(null),[f,h]=u.useReducer(C=>C+1,0),[g,m]=u.useState(null),[y,x]=u.useState(null),[v,b]=u.useState(null),{reference:w}=pa({parentFloat:r,label:"overflow"});u.useLayoutEffect(()=>{p.current={refs:[]};const C=[],R=u.Children.toArray(n);let _=0;R.forEach((L,T)=>{C.push(s.jsx(Le,{sx:{display:"flex"},ref:j=>{_++,_===R.length&&h();const S={current:null};S.current=j,p.current.refs[T]=S},children:L},T))}),m(C)},[n,c]),u.useLayoutEffect(()=>{if(!g)return;const C=p.current.refs;if(!a.current||!C||C.length===0)return x(null),void b(null);const R=a.current?.getBoundingClientRect(),_=[],L=[];let T=0,j=!1;for(let k=0;!j&&k<C.length;k++){const P=C[k];if(!P)continue;if(!P.current){j=!0;continue}const O=P.current.getBoundingClientRect();T+=O?.width,T>R.width&&(j=!0)}if(!j)return x(null),void b([]);const S=d.current?.getBoundingClientRect();T=0;for(let k=0;k<C.length;k++){const P=C[k];let O=!1;if(P.current){const I=P.current.getBoundingClientRect();T+=I?.width,T<R.width-S.width&&(O=!0)}O?_.push(g[k]):L.push(g[k])}x(_.length>0?_:null),b(L.length>0?L:null)},[n,g,c,w,f]);const E=_e(C=>{const R=[];for(let L=0;L<v.length;L++){let T=u.Children.toArray(v[L]);const j=T[0];T=u.Children.toArray(j.props.children?.props.children??j.props.children);const S=T[0],k={...S.props};k.parentFloat&&(k.parentFloat=C.floatReference);const P=u.cloneElement(S,k);R.push(P)}const _=s.jsx(Le,{className:"overflow-palette-popup-panel",sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",paddingTop:L=>L.spacing(.5),paddingBottom:L=>L.spacing(.5),paddingLeft:L=>L.spacing(1),paddingRight:L=>L.spacing(1),overflow:"hidden"},children:R});return Bn({...C,children:_})},[v]);return s.jsxs(Le,{className:"overflow-palette",sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",width:"100%",maxWidth:"100%",...o},ref:V2([a,l,t]),...i,children:[s.jsx(Le,{sx:{flexDirection:"row",display:"flex",maxWidth:"100%",flex:"1 1 100%"},children:y??g}),s.jsx(Le,{sx:{display:v!==null&&v.length===0?"none":"flex",flex:"1 1 0"},children:s.jsx(Ui,{createPopupPanel:E,ref:d,parentFloat:w,createTooltip:({children:C},R)=>s.jsx(br,{label:"More",description:"More toolbar options…",disabled:R,children:C}),icon:s.jsx(Wb,{children:s.jsx(uR,{})})})})]})})),CC="https://unpkg.com/@sheetxl/scripting-templates/dist",rN=[{key:"SheetXL",description:"SheetXL",mimeType:".sxl",exts:["sxl"],isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DNQqhDlfagjGC2sO.cjs"))).fromBufferJSON(e,t)},{key:"CSV",description:"Comma Delimited",mimeType:"text/csv",exts:["csv"],handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DsuUTTVqL23hXXxq.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("./HCih5BN1MZGUuqGG.cjs")).then(n=>n.i)).fromBufferXLSX(e,t)}],iN=[{key:"SheetXL",mimeType:"application/vnd.sheetxl.sheet",description:"SheetXL",ext:"sxl",isDefault:!0,handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DNQqhDlfagjGC2sO.cjs"))).toBufferJSON(e,t)},{key:"CSV",mimeType:"text/csv",description:"Comma Delimited",ext:"csv",handler:async(e,t)=>(await Promise.resolve().then(()=>require("./DsuUTTVqL23hXXxq.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("./HCih5BN1MZGUuqGG.cjs")).then(n=>n.i)).toBufferXLSX(e,t)}];class kC{constructor(t=rN,n=iN){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 a={...o,...o?.typedConstructorOptions?.[n]};let l;delete a.typedConstructorOptions;try{l=await i(t,a)}catch(c){throw new Error("Unable to import",{cause:c})}return l}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 a=n;return await this._fromFile(a,t)}case"base64":{let a;if(n&&typeof n=="object"&&"base64"in n)a=n.base64;else if(typeof n=="string"&&n.startsWith("data:")){const[,d]=n.split(",");a=d}else a=n;const l=_R.base64ToArrayBuffer(a),c=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!c)throw new Error("No import type available for base64 input.");return{workbook:await this._fromArrayBuffer(l,c.key,t),title:o||"imported-file",formatType:c}}case"fetch":{let a,l,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 y=n;c=y.input,a=y.init,l=y.timeout}}const d=l||3e4,p=new AbortController,f=setTimeout(()=>p.abort(),d),h=typeof c=="string"?c:c.toString(),g=r||$.TextUtils.getFileNameExtension(h),m=this.getReadFormatTypeForExt(g)||this._readFormatTypes[0];try{const y=await fetch(c,{...a,signal:p.signal});if(clearTimeout(f),!y.ok)throw new Error(`Failed to fetch: ${y.status} ${y.statusText}`);const x=await y.arrayBuffer();if(!m)throw new Error(`Unable to determine import type for fetched content: ${h}`);return{workbook:await this._fromArrayBuffer(x,m.key,t),title:o||$.TextUtils.getBaseName(h,!0)||"fetched-file",formatType:m}}catch(y){throw clearTimeout(f),y.name==="AbortError"?new Error(`Fetch timeout after ${d}ms: ${h}`):y}}case"buffer":{const a=n,l=this.getReadFormatTypeForExt(r)||this._readFormatTypes[0];if(!l)throw new Error("No import type available for buffer input.");return{workbook:await this._fromArrayBuffer(a,l.key,t),title:o||"buffer-file",formatType:l}}case"stream":{const a=n.getReader(),l=[];let c=0;try{for(;;){const{done:g,value:m}=await a.read();if(g)break;l.push(m),c+=m.length}}finally{a.releaseLock()}const d=new ArrayBuffer(c),p=new Uint8Array(d);let f=0;for(const g of l)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(d,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=`${$.TextUtils.getBaseName(t.name)}`);const i=this.getReadFormatTypeForExt($.TextUtils.getFileNameExtension(t?.name));if(!i)throw new Error(`Unknown file type: ${$.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);const a=await t.arrayBuffer(),l={...n,...n?.typedConstructorOptions?.[i.key]};delete l.typedConstructorOptions;const c=i.handler;if(!c)throw new Error(`Unable to resolve handler for type: ${i?.description??$.TextUtils.getFileNameExtension(t?.name)??t?.name??"(empty)"}.`);await l.onStart?.(r);const d=await c(a,l);o=new aN(t,d,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=$.TextUtils.getFileNameExtension(t);r&&(t=t.slice(0,t.length-r.length-1));let i=null;o?.formatType&&(i=this.getWriteFormatType(o.formatType));const a=this.getWriteFormats(),l=a.length;for(let p=0;!i&&p<l;p++)(a[p].ext===r||!r&&a[p].isDefault)&&(i=a[p]);if(!i)throw new Error(`Unable to determine export type for '${t}'.`);const c=t+"."+i.ext;let d=null;try{d=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 y=URL.createObjectURL(g),x=document.createElement("a");x.style.display="none",x.href=y,x.download=m,document.body.appendChild(x),x.click(),document.body.removeChild(x),URL.revokeObjectURL(y)}(new Blob([h],{type:"application/octet-stream"}),p)})(c,d)}catch(p){throw new Error("Unable to write file.",{cause:p})}return!0}}class aN{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 lN=new kC;var ly,sy,sN=function(){if(sy)return ly;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,a="",l=0,c=-1,d=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&&d!==1)if(c!==p-1&&d===2){if(a.length<2||l!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var f=a.lastIndexOf("/");if(f!==a.length-1){f===-1?(a="",l=0):l=(a=a.slice(0,f)).length-1-a.lastIndexOf("/"),c=p,d=0;continue}}else if(a.length===2||a.length===1){a="",l=0,c=p,d=0;continue}}r&&(a.length>0?a+="/..":a="..",l=2)}else a.length>0?a+="/"+o.slice(c+1,p):a=o.slice(c+1,p),l=p-c-1;c=p,d=0}else i===46&&d!==-1?++d:d=-1}return a}sy=1;var n={resolve:function(){for(var o,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var l;a>=0?l=arguments[a]:(o===void 0&&(o=process.cwd()),l=o),e(l),l.length!==0&&(r=l+"/"+r,i=l.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 a=o.length,l=a-i,c=1;c<r.length&&r.charCodeAt(c)===47;++c);for(var d=r.length-c,p=l<d?l:d,f=-1,h=0;h<=p;++h){if(h===p){if(d>p){if(r.charCodeAt(c+h)===47)return r.slice(c+h+1);if(h===0)return r.slice(c+h)}else l>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<=a;++h)h!==a&&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,a=-1,l=!0,c=o.length-1;c>=1;--c)if((r=o.charCodeAt(c))===47){if(!l){a=c;break}}else l=!1;return a===-1?i?"/":".":i&&a===1?"//":o.slice(0,a)},basename:function(o,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');e(o);var i,a=0,l=-1,c=!0;if(r!==void 0&&r.length>0&&r.length<=o.length){if(r.length===o.length&&r===o)return"";var d=r.length-1,p=-1;for(i=o.length-1;i>=0;--i){var f=o.charCodeAt(i);if(f===47){if(!c){a=i+1;break}}else p===-1&&(c=!1,p=i+1),d>=0&&(f===r.charCodeAt(d)?--d===-1&&(l=i):(d=-1,l=p))}return a===l?l=p:l===-1&&(l=o.length),o.slice(a,l)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===47){if(!c){a=i+1;break}}else l===-1&&(c=!1,l=i+1);return l===-1?"":o.slice(a,l)},extname:function(o){e(o);for(var r=-1,i=0,a=-1,l=!0,c=0,d=o.length-1;d>=0;--d){var p=o.charCodeAt(d);if(p!==47)a===-1&&(l=!1,a=d+1),p===46?r===-1?r=d:c!==1&&(c=1):r!==-1&&(c=-1);else if(!l){i=d+1;break}}return r===-1||a===-1||c===0||c===1&&r===a-1&&r===i+1?"":o.slice(r,a)},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,a=r.base||(r.name||"")+(r.ext||""),i?i===r.root?i+a:i+"/"+a:a;var r,i,a},parse:function(o){e(o);var r={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return r;var i,a=o.charCodeAt(0),l=a===47;l?(r.root="/",i=1):i=0;for(var c=-1,d=0,p=-1,f=!0,h=o.length-1,g=0;h>=i;--h)if((a=o.charCodeAt(h))!==47)p===-1&&(f=!1,p=h+1),a===46?c===-1?c=h:g!==1&&(g=1):c!==-1&&(g=-1);else if(!f){d=h+1;break}return c===-1||p===-1||g===0||g===1&&c===p-1&&c===d+1?p!==-1&&(r.base=r.name=d===0&&l?o.slice(1,p):o.slice(d,p)):(d===0&&l?(r.name=o.slice(1,c),r.base=o.slice(1,p)):(r.name=o.slice(d,c),r.base=o.slice(d,p)),r.ext=o.slice(c,p)),d>0?r.dir=o.slice(0,d-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,ly=n}();const cy=/^(con|prn|aux|nul|com\d|lpt\d)$/i,dy=/[<>:"/\\|?*\u0000-\u001F]/g,El=Object.freeze(Object.defineProperty({__proto__:null,MAX_WORKBOOK_NAME_SIZE:96,WINDOW_FILENAME_CHAR_RESERVED_REGEX:dy,WINDOW_FILENAME_RESERVED_REGEX:cy,isValidWindowsFilename:e=>!(!e||e.length>255||dy.test(e)||cy.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 sN.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"})),uy=Object.freeze(Object.defineProperty({__proto__:null,DefaultWorkbookIO:kC,IOUtils:El,WorkbookIO:lN},Symbol.toStringTag,{value:"Module"})),cN=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(" "))},EC=async e=>{const t=El.relativePath(e,"./manifest.json"),n=await fetch(t);if(!n.ok)throw new N5(`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 N5(`Failed to retrieve directory at '${e}'`);let r;try{r=JSON.parse(o)}catch(a){throw new Error(`Failed to parse directory: ${a.message}. Ensure the file is valid JSON.`)}const i=r.map(async a=>{try{const l=El.relativePath(e,a.path),c=await fetch(l);if(!c.ok)throw new Error(`Failed to fetch file at '${a.path}': ${c.statusText}`);const d=await c.text();let p=a.metadata;return p?.title||(p={title:cN(a),...p}),{path:a.path,content:d,metadata:p}}catch(l){console.error(l.message)}return null});return(await Promise.all(i)).filter(a=>a!==null)},p5={fontSize:"0.8rem",marginRight:"4px"},dN=u.memo(e=>{const{disabled:t,snippet:n,description:o,handleInsert:r,sx:i,...a}=e;let l;return l=n.metadata?.icon==="formula"?s.jsx(lv,{sx:p5}):n.metadata?.icon==="macro"?s.jsx(K3,{sx:p5}):s.jsx(zx,{sx:p5}),s.jsx(Gr,{sx:{maxWidth:"460px",display:"flex","*":{lineHeight:"1.2"},...i},disabled:t,icon:l,onMouseDown:c=>{c.button===0&&c.preventDefault()},onMouseUp:c=>{c.button===0&&r(n)},onKeyDown:c=>{c.keyCode!==tn.Enter&&c.keyCode!==tn.Space||r(n)},...a,children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden"},children:[s.jsx(Mn,{component:"div",children:n.metadata?.title??n.path}),s.jsx(Mn,{variant:"caption",component:"div",sx:{color:c=>pt(c.palette.text.secondary??c.palette.text.primary,.6),overflow:"hidden",textOverflow:"ellipsis"},children:n.metadata?.summary})]})})}),MC=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,scriptPath:a=CC,...l}=e,[c,d]=u.useState([]),[p,f]=u.useState(!0),h=_o(n,["executeSelectedScript"]),g=h[0]?.context?.();u.useEffect(()=>{(async()=>{try{const y=await EC(a);d(y)}catch{}finally{f(!1)}})()},[a]);const m=u.useCallback((y,x)=>{if(p)return s.jsx("div",{children:"Loading..."});const v={variant:Yt.Menuitem,commandHook:o,scope:"scripts",disabled:i},b=C=>{g.getEditor()?.insertSnippet(C.content),y.closeFloat()},w=[];for(let C=0;C<c.length;C++){const R=c[C];R&&w.push(s.jsx(dN,{handleInsert:b,snippet:R},R.path))}const E=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[w.length>0?s.jsxs(s.Fragment,{children:[s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:w}),s.jsx(Ft,{orientation:"horizontal"})]}):null,u.createElement(qe,{...v,key:"help",command:n.getCommand("help"),icon:ze(s.jsx(iv,{}))})]});return Bn({...y,children:E})},[i,o,r,p,g]);return s.jsx(Xn,{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:ze(s.jsx(ED,{})),...l})})),Wf=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=_e(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flex:"1 1 100%"},children:[s.jsx("div",{children:s.jsx(a1,{parentFloat:o,style:{},children:s.jsx(qe,{...c,command:n.getCommand("saveScripts"),icon:ze(s.jsx(MD,{}))})})}),s.jsx("div",{style:{flex:"1 1 100%"}}),s.jsx("div",{children:s.jsx(a1,{parentFloat:o,style:{},children:s.jsx(MC,{...c,commands:n})})})]})})},[n]);return s.jsx(E1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})}));Wf.displayName="ScriptEditorToolbar";const h5={fontSize:"1rem"},TC=u.memo(u.forwardRef((e,t)=>{const{scriptPath:n=CC,onScriptSelect:o,sx:r=_n.EmptyCssProperties,className:i,buttonMinWidth:a=210,buttonMinHeight:l=80,gap:c=12,...d}=e,[p,f]=u.useState([]),[h,g]=u.useState(!0),[m,y]=u.useState(null);if(u.useEffect(()=>{(async()=>{const b=[{path:null,metadata:{title:"Blank Template...",summary:"Start with an empty script."},content:""}];try{g(!0),y(null);const w=await EC(n);for(let E=0;E<w.length;E++){const C=w[E];C&&b.push(C)}}catch(w){y(w instanceof Error?w.message:"Failed to load scripts"),w instanceof N5||console.error("Error loading scripts:",w)}finally{f(b),g(!1)}})()},[n]),h)return s.jsx(Le,{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",className:Eo(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,...r},...d,children:s.jsx(p3,{})});let x=null;m&&(x=s.jsxs(Le,{display:"flex",justifyContent:"center",alignItems:"center",className:Eo(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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},...d,children:[s.jsx(Mn,{color:"error",variant:"h6",component:"div",gutterBottom:!0,children:"Error loading Templates"}),s.jsx(Mn,{color:"error",component:"div",children:m})]}));const v=b=>{const w=b.metadata?.icon;return w==="macro"?s.jsx(K3,{sx:h5}):w==="formula"?s.jsx(lv,{sx:h5}):w==="autostart"?s.jsx(zx,{sx:h5}):null};return s.jsxs(Le,{ref:t,className:Eo(i,"script-select"),sx:{background:b=>b.palette.background.paper,zIndex:1e3,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,...r},...d,children:[s.jsxs(Le,{p:3,className:"script-select-content",sx:{overflow:"auto",flex:"1 1 auto"},children:[s.jsx(Mn,{variant:"h6",gutterBottom:!0,children:"Script Template"}),s.jsx(Mn,{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."}),s.jsx(Mn,{variant:"body2",component:"div",color:"text.secondary",gutterBottom:!0,children:"Templates provide a foundation to customize and meet your specific needs."}),s.jsx(Le,{sx:{display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${a}px, 1fr))`,gap:`${c}px`,padding:2,paddingLeft:"0px",paddingRight:"0px"},children:p.map((b,w)=>s.jsxs(Lc,{variant:"outlined",sx:{minWidth:a,minHeight:l,display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"flex-start",textAlign:"left",padding:2,textTransform:"none",overflow:"hidden",...w===0&&{borderStyle:"dashed",marginBottom:"8px"},...w===1&&{gridColumn:"1"}},onClick:()=>o?.(b),children:[s.jsxs(Le,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%",marginBottom:.5},children:[s.jsx(Mn,{variant:"subtitle2",component:"div",children:b.metadata?.title||b.path.split("/").pop()?.replace(/\.\w+$/,"")||"Untitled"}),v(b)]}),b.metadata?.summary&&s.jsx(Mn,{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}-${w}`))})]}),x]})}));TC.displayName="TemplateSelectPanel";const Uf=u.memo(u.forwardRef((e,t)=>{const{className:n,sx:o,editorProps:r,commands:i,readOnly:a=!1,onClose:l,autoFocusSel:c,autoFocus:d=!0,scripts:p,...f}=e,h=qi(),[g,m]=u.useState(!1),y=u.useRef(!1),[x,v]=u.useState({message:"Loading",cursor:"",dirty:!1}),[b,w]=u.useState(null);u.useEffect(()=>{let D=!1;return w(null),async function(){if(p&&(await p.start(),!D)){const F=p.getModules().search()[0]?.getSource();w({source:F||null})}}(),()=>{D=!0}},[p]);const E=u.useCallback(D=>{v(F=>({...F,...D}))},[]),C=u.useRef(null),R=u.useRef(null),[_,L]=u.useState(null),T=u.useRef(null),j=_e(D=>{if(_)return _.focus(D),!0;if(c){const F=R.current?.querySelectorAll?.(c);if(F&&F.length>0)return F[0]?.focus?.(D),!0}return R.current?.focus?.(D),!1},[_,c,d]),S=u.useMemo(()=>s.jsx(i0,{transitionDelay:"160ms",style:{position:"absolute",width:"100%",height:"100%"},transparentBackground:!1}),[]),k=u.useMemo(()=>s.jsx(Mi,{elevation:1,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,marginLeft:D=>D.spacing(.5),marginRight:D=>D.spacing(.5),marginTop:D=>D.spacing(1),marginBottom:D=>D.spacing(1)},children:s.jsx(Wf,{commands:i})}),[h,i]),P=u.useMemo(()=>s.jsx(Le,{className:Eo("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:s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center"},children:[s.jsx(Mn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 100%",color:D=>D.palette.text.secondary},variant:"caption",children:x.message}),s.jsx(Mn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",color:D=>D.palette.text.secondary},variant:"caption",children:x.dirty?"Unsaved":""}),s.jsx(Mn,{component:"div",sx:{userSelect:"none",whiteSpace:"pre",overflow:"hidden",textOverflow:"ellipsis",flex:"none",marginLeft:"8px",minWidth:"90px",display:"flex",justifyContent:"end",color:D=>D.palette.text.secondary},variant:"caption",children:x.cursor})]})}),[x]),O=u.useMemo(()=>s.jsxs(Le,{className:Eo("script-editor-content"),sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"column",boxSizing:"border-box"},children:[k,s.jsx(Le,{sx:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:s.jsx(VB,{ref:R,loadingPanel:S,readOnly:a,onClose:l,autoFocus:d,commands:i,onStatusChange:E,darkMode:h.palette.mode==="dark",...r})}),P]}),[h,i,k,P,g,S,a,r,d,c,l,E]),I=u.useMemo(()=>s.jsx(Mx,{className:Eo({"Mui-selected":y.current}),sx:{display:"flex",color:D=>D.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:D=>`${D.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:D=>D.transitions.duration.shortest/2+"ms"},backgroundColor:D=>pt(D.palette.action.hover,.03),borderBottom:D=>`solid ${pt(D.palette.divider,.2)} 1px`},onPointerDown:D=>{D.isDefaultPrevented()||(D.preventDefault(),j())},children:s.jsxs(Le,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:D=>D.spacing(.25),marginBottom:D=>D.spacing(.25),marginLeft:D=>D.spacing(1),marginRight:D=>D.spacing(1)},children:[s.jsx(Le,{sx:{flex:"1 1 100%",paddingLeft:D=>D.spacing(1)},children:"Script (Typescript)"}),s.jsx(br,{label:"Close",children:s.jsx(Tr,{"aria-label":"close",sx:{color:D=>D.palette.text.icon??D.palette.action.active},touchRippleRef:C,onPointerDown:D=>{C.current?.start(D,{center:!1}),D.stopPropagation(),D.preventDefault()},onPointerUp:()=>{R.current?.close()},children:s.jsx(E3,{})})})]})}),[h,g]),z=u.useMemo(()=>{let D;return b===null?null:(b.source===null&&(D=s.jsx(TC,{sx:{display:"flex",flex:"1 1 100%",flexDirection:"column",overflow:"hidden",position:"absolute",boxSizing:"border-box",width:"100%",height:"100%"},onScriptSelect:F=>{R.current?.getEditor().insertSnippet(F.content),w({source:F.content??""})}})),s.jsxs(Le,{tabIndex:0,className:Eo("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(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},onPointerDown:F=>{F.isDefaultPrevented()||R.current?.focus()},children:[I,s.jsxs(Le,{sx:{flex:"1 1 100%",position:"relative",display:"flex"},children:[O,D]})]}))},[k,O,n,b]),A=ir(t,()=>({isScriptWorkspaceElement:()=>!0,focus:D=>{j(D)}}),[]);return s.jsx(Le,{sx:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...o},ref:A,...f,onFocus:D=>{m(!0),y.current=!0,A.current?.contains(D.target)&&D.target!==A.current&&L(D.target),D.relatedTarget&&!T.current&&(T.current=D.relatedTarget),f?.onFocus?.(D)},onBlur:D=>{A?.current?.contains(D.relatedTarget)||A?.current===D.relatedTarget||(T.current=null,y.current=!1,m(!1)),f?.onBlur?.(D)},children:z})}));Uf.displayName="ScriptWorkspace";const qf=u.memo(u.forwardRef((e,t)=>{const{commands:n,commandHook:o,scope:r,disabled:i=!1,...a}=e,l=_o(n,["executeScript"])[0].context();_o(n,["showScriptEditor"]);const c=u.useCallback((d,p)=>{const f={variant:Yt.Menuitem,commandHook:o,scope:"scripts",disabled:i,shortcut:null},h=l?.getScripts(),g=h?.searchFunction({type:"macro"}),m=[];if(g)for(let x=0;x<g.length;x++){const v=g[x];m.push(s.jsx(qe,{...f,command:p.getCommand("executeScript"),commandState:{declaration:v},tooltipProps:{description:`Execute ${v.getName()??"script"}`},icon:ze(s.jsx(K3,{})),labelOverride:v.getName()??`Script '${v.getName()}'`},`script-${v.getName()}-${x}`))}const y=s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden"},children:[m.length>0?s.jsxs(s.Fragment,{children:[s.jsx(Le,{sx:{overflow:"auto",flex:"1 1 100%"},children:m}),s.jsx(Ft,{orientation:"horizontal"})]}):null,u.createElement(qe,{...f,key:"show-editor",command:p.getCommand("showScriptEditor"),icon:ze(s.jsx(yD,{}))})]});return Bn({...d,children:y})},[i,l,o,r]);return s.jsx(Xn,{ref:t,commands:n,commandHook:o,createPopupPanel:c,selected:n.getCommand("showScriptEditor").state(),label:"Macros",tooltip:"Run or manage macros.",quickCommand:"showScriptEditor",icon:ze(s.jsx(kD,{})),...a})})),uN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=_o(n,["executeScript","showScriptEditor"]),l=a[0]?.context?.(),c=u.useCallback(d=>{const{commandButtonProps:p,commandPopupProps:f}=d,h=s.jsx(Ys,{...f,command:n.getCommand("formatFontColor"),icon:s.jsx(EP,{}),isSplit:!0,panelProps:{disableAlpha:!0}}),g=s.jsx(Ys,{...f,command:n.getCommand("formatFillColor"),icon:s.jsx(kP,{}),isSplit:!0,panelProps:{disableAlpha:!0,autoColorLabel:"No Fill",autoColorPosition:Is.End}}),m=n.getCommand("undo")?s.jsx(s.Fragment,{children:s.jsx(_f,{...f,quickCommand:"undo"})}):null,y=n.getCommand("find")?s.jsx(s.Fragment,{children:s.jsx(HS,{...f})}):null;let x=null;const v=l?.getScripts();if(a[1]?.state?.()||v){let b=a[1]?.state?.();const w=v?.searchFunction({type:"macro"});for(let E=0;w&&!b&&E<w?.length;E++)b=!0;b&&(x=s.jsxs(s.Fragment,{children:[s.jsx(Ft,{}),s.jsx(qf,{...f})]}))}return s.jsxs(a1,{parentFloat:o,children:[m,null,m?s.jsx(Ft,{}):null,s.jsx(jf,{...f,command:n.getCommand("paste")}),s.jsx(qe,{...p,command:n.getCommand("formatPainterToggle"),icon:ze(s.jsx(OO,{}))}),s.jsx($2,{...p,command:n.getCommand("copy")}),s.jsx(Ft,{}),s.jsx(ZS,{...f,command:n.getCommand("formatFontFamily")}),s.jsx(WS,{...f,command:n.getCommand("formatFontSize")}),s.jsx(qe,{...p,command:n.getCommand("formatBoldToggle"),icon:s.jsx(PI,{})}),s.jsx(qe,{...p,command:n.getCommand("formatItalicToggle"),icon:s.jsx(II,{})}),s.jsx(YS,{...f}),s.jsx(XS,{...f}),h,s.jsx(Ft,{}),g,s.jsx(NS,{...f}),s.jsx($S,{...f}),s.jsx(Ft,{}),s.jsx(Zv,{...f}),s.jsx(Xv,{...f}),s.jsx(Yv,{...f}),s.jsx(Jv,{...f}),s.jsx(Ft,{}),s.jsx(US,{...f}),s.jsx(tC,{command:n.getCommand("formatCellStyle"),...f}),s.jsx(iC,{command:n.getCommand("formatTableStyle"),...f}),s.jsx(Ft,{}),s.jsx(Ef,{...f}),s.jsx(Mf,{...f}),s.jsx(Ft,{}),s.jsx(qS,{...f}),null,s.jsx(kf,{...f}),s.jsx(Tf,{...f}),y,x]})},[n,a]);return s.jsx(E1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:c,...i})})),pN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=_e(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsxs(a1,{parentFloat:o,children:[null,s.jsx(qe,{...c,command:n.getCommand("updateHyperlink"),icon:ze(s.jsx(ch,{}))}),s.jsx(qe,{...c,command:n.getCommand("updateComments"),icon:ze(s.jsx(dh,{}))}),s.jsx(If,{...d}),s.jsx(qe,{...c,command:n.getCommand("insertTable"),icon:ze(s.jsx(qc,{}))})]})},[n]);return s.jsx(E1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),hN=u.memo(u.forwardRef((e,t)=>{const{commands:n,parentFloat:o,commandButtonProps:r,...i}=e,a=_e(l=>{const{commandButtonProps:c,commandPopupProps:d}=l;return s.jsxs(a1,{parentFloat:o,children:[s.jsx(VS,{...d}),s.jsx(qe,{...c,command:n.getCommand("protectionSheetToggle"),icon:s.jsx(v2,{color:"secondary"})}),s.jsx(Ft,{}),s.jsx(KS,{...d}),s.jsx(JS,{...d}),s.jsx(Ft,{}),s.jsx(qe,{...c,command:n.getCommand("sheetViewToggleFormulaView"),scope:"view",icon:s.jsx(Gs,{command:n.getCommand("sheetViewToggleFormulaView"),scope:"view"})}),s.jsx(qe,{...c,command:n.getCommand("sheetViewToggleShowZeros"),scope:"view",icon:s.jsx(Gs,{command:n.getCommand("sheetViewToggleShowZeros"),scope:"view"})}),s.jsx(Ft,{}),s.jsx(QS,{...d}),s.jsx(cC,{command:n.getCommand("selectTheme"),...d}),s.jsx(Ft,{}),s.jsx(qf,{...d,scope:"view"}),s.jsx(Ft,{}),s.jsx(qe,{...c,command:n.getCommand("fullScreenToggle"),scope:"view",icon:()=>ze(n.getCommand("fullScreenToggle").state()?s.jsx(WO,{}):s.jsx(HO,{}))})]})},[n]);return s.jsx(E1,{ref:t,commands:n,parentFloat:o,commandButtonProps:r,createToolbarPalette:a,...i})})),_C=e=>s.jsx(yN,{...e}),fN=u.memo(e=>{const{sx:t,...n}=e;return s.jsxs(Le,{sx:{display:"flex",flexDirection:"column",position:"relative","&:hover:not([disabled]) .indicator":{borderBottom:o=>`${pt(o.palette.primary.main,.35)} solid 2px`}},children:[s.jsx(Ij,{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}),s.jsx(Le,{className:"indicator",sx:{width:"90%",borderRadius:"4px",minWidth:"4px",position:"absolute",bottom:"0",alignSelf:"center",display:"flex"}})]})}),mN=u.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,sx:r,...i}=e,a=u.useMemo(()=>{const l=[];for(let c=0;c<t.length;c++)l.push(s.jsx(fN,{label:t[c].label},t[c].label));return l},[t]);return s.jsx(Zj,{value:n,onChange:(l,c)=>{o?.(c)},variant:"scrollable",scrollButtons:!1,sx:{paddingLeft:l=>l.spacing(1.5),paddingRight:l=>l.spacing(1.5),paddingTop:l=>l.spacing(0),paddingBottom:l=>l.spacing(0),minHeight:"26px",alignItems:"center","& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{width:"90%",borderRadius:"4px",minWidth:"4px",backgroundColor:l=>l.palette.primary.main},"& .MuiTab-root":{marginRight:"0px"},...r},TabIndicatorProps:{children:s.jsx("span",{className:"MuiTabs-indicatorSpan"})},...i,children:a})}),gN=u.memo(e=>{const{toolbars:t,value:n,onToolbarChange:o,selectProps:r,...i}=e,a=u.useCallback(c=>{o?.(c.target.value)},[o]),l=u.useMemo(()=>{const c=[];for(let d=0;d<t.length;d++){const p=t[d].label;c.push(s.jsx(b1,{value:d,sx:{color:f=>{if(n===d)return f.palette.primary.main}},children:p},p))}return c},[t,n]);return s.jsx(x1,{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:s.jsx(b2,{value:n,onChange:a,variant:"outlined",sx:{backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`},...i,children:l})})}),yN=u.memo(u.forwardRef((e,t)=>{const{commands:n,selectWrapper:o,selectProps:r={},renderCompact:i=!1,paletteWrapper:a,toolbarsProps:l,paletteProps:c={},workbook:d,sx:p,...f}=e,h=u.useMemo(()=>{const C=[],{ref:R,..._}=l?.Home||{};C.push({label:"Home",component:s.jsx(uN,{commands:n,..._})});const{ref:L,...T}=l?.Insert||{};C.push({label:"Insert",component:s.jsx(pN,{commands:n,...T})});const{ref:j,...S}=l?.View||{};return C.push({label:"View",component:s.jsx(hN,{commands:n,...S})}),C},[n]),g=u.useMemo(()=>{const C=[];for(let R=0;R<h.length;R++)C.push(u.cloneElement(h[R].component,{...h[R].component.props,key:h[R].key??h[R].label}));return C},[h]),[m,y]=u.useState(0),x=C=>{y(C)},v=u.useMemo(()=>s.jsx(i?gN:mN,{toolbars:h,value:m,onToolbarChange:x,sx:r}),[h,m,r,i]),{sx:b,...w}=c,E=s.jsx(Mi,{elevation:2,tabIndex:0,sx:{display:"flex",alignItems:"center",userSelect:"none",flexGrow:1,backgroundImage:`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`,marginLeft:C=>C.spacing(1),marginRight:C=>C.spacing(1),marginTop:C=>C.spacing(.5),marginBottom:C=>C.spacing(.5),...b},...w,children:g[m]});return s.jsxs(Le,{ref:t,className:"toolbarWrappers",sx:{display:"flex",flexDirection:"column",paddingTop:C=>C.spacing(.5),"*":{userSelect:"none"},...p},...f,children:[o?o(v):v,a?a(E):E]})})),xN=e=>s.jsx(Nf,{...e}),bN=e=>s.jsx($f,{...e}),vN=e=>s.jsx(Bf,{...e}),Kf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,commands:o,onBeforeUserChange:r,onUserChange:i,disabled:a=!1,readOnly:l=!1,contextMenuProps:c,renderContextMenu:d=xN,sheetsAllProps:p,renderSheetsAll:f=bN,sheetTabProps:h,renderSheetTab:g,background:m="transparent",className:y,notifier:x,sx:v,borderWidth:b,borderColor:w,gridTheme:E,gridStyle:C,...R}=e,[_,L]=u.useState(n?.getSelectedSheetIndex()),[T,j]=u.useState(n?.getSheets().search()),[S,k]=u.useState(n?.getProtection());sn(n,{onViewChange(ve){L(ve?.getSelectedSheetIndex())},onSheetsChange:ve=>{j(ve.getSheets().search())},onProtectionChange:ve=>{k(ve?.getProtection())}});const P=u.useMemo(()=>{const ve=[];for(let re=0;re<T.length;re++)ve.push(T[re].getName());return ve},[T]),O=u.useCallback(ve=>{r?.(ve)!==!1&&(n.getSheetAt(ve).select(),i?.(ve))},[n,r,i]),I=u.useCallback((ve,re)=>{n.getSheetAt(ve).setName(re),i?.(ve)},[n,i]),z=u.useCallback((ve,re)=>{n.getSheetAt(ve).setPosition(re),i?.(re)},[n,i]),A=_e(()=>{if(r?.(_)===!1)return;const ve=_+1;n.getSheets().add({name:void 0,autoSelect:!0}),i?.(ve)},[n,r,i,_]),D=u.useMemo(()=>({placement:"top-start"}),[]),F=u.useRef(null),[B,M]=u.useState(!1),N=u.useCallback(ve=>{const{closeFloatAll:re,floatReference:ce}=ve;return f({workbook:n,gridStyle:C,floatReference:ce,closeFloatAll:re,...p})},[f,p,a,n,C]),{reference:V,component:U}=pa({label:"allSheet",popperProps:D,anchor:F.current,onOpen:()=>M(!0),onClose:()=>M(!1),createPopupPanel:N}),J=u.useRef(null),[X,H]=u.useState(null),ne=u.useCallback(ve=>{const{floatReference:re}=ve;return d?.({workbook:n,index:X?.index,tabStripRef:J.current,commands:o,disabled:a,floatReference:re,...c})},[d,c,a,n,o,X]),{reference:oe,component:ye}=pa({label:"sheetTab",popperProps:D,anchor:{getBoundingClientRect:()=>new DOMRect(X?.left||0,X?.top||0,0,0)},onClose:()=>H(null),createPopupPanel:ne});u.useEffect(()=>{X?oe.open(0):oe.close(0)},[X]);const de=u.useCallback((ve,re)=>{ve.preventDefault(),H({left:ve.clientX-2,top:ve.clientY-4,index:re})},[]),xe=_e(ve=>{let re;try{re=n?.getSheetAt(ve.index)}catch{}return re?(g??vN)({sheet:re,gridTheme:E,onContextMenu:ce=>{O(ve.index),de(ce,ve.index)},...ve,...h}):null},[g,h,n,E]),we=u.useMemo(()=>l||!S?.isStructureAllowed()?null:s.jsx(di,{disableInteractive:!0,title:"New sheet",children:s.jsx(Tr,{disabled:a,component:"div",sx:{padding:"0","&:hover:not([disabled])":{color:ve=>ve.palette.primary.main},color:ve=>ve.palette.text.icon??ve.palette.action.active,"& svg":{width:"18px",height:"18px"}},"aria-label":"addTab",size:"small",onMouseDown:ve=>{ve.button===0&&ve.preventDefault()},onClick:()=>A(),children:s.jsx(eR,{})})}),[l,a,S,A]);return s.jsxs(Le,{ref:t,className:Eo(y),sx:{position:"relative",display:"flex",alignItems:"stretch",flex:"1 1 100%",maxWidth:"100%",...v},...R,children:[s.jsx(DS,{ref:J,selectedTabIndex:_,tabNames:P,onSelectedTabIndexChange:O,onTabNameChange:I,onTabMove:z,background:m,borderColor:w,borderWidth:b,activeColor:null,disabled:a,disableDrag:l||!S.isStructureAllowed(),createScrollStartButton:_D,createScrollEndButton:jD,createScrollEdgeButton:TD,createTabButton:xe,createTabDivider:ve=>{const{key:re,...ce}=ve;return s.jsx(Ft,{sx:{marginLeft:"-1px",marginRight:"0px",marginTop:"6px",marginBottom:"6px",background:Se=>pt(Se.palette.divider,.25)},...ce},re)},editLabelProps:{maxLength:31,styleHover:{fontWeight:"700"},onKeyPress:ve=>{n.isValidSheetNameCharacter(ve.key)||ve.preventDefault()},onCancel:()=>{i?.(_)},notifier:x},children:s.jsx(di,{disableInteractive:!0,title:B?"":"List all sheets",children:s.jsx(ii,{sx:{padding:"0px",ml:.5,mr:0,mt:0,mb:0,"& svg":{transform:"scale(0.8, 1)"},color:ve=>ve.palette.text.icon??ve.palette.action.active},ref:F,dense:!0,outlined:!1,selected:B,color:"primary","aria-label":"menu",onMouseDown:ve=>{ve.button===0&&ve.preventDefault()},onClick:()=>{B?V.close(0):V.open(0)},icon:s.jsx(dR,{})})})}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,minWidth:"4px"}}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,flex:"none",display:"flex",alignItems:"center"},children:we}),s.jsx("div",{style:{borderTop:`solid ${w} ${b}px`,flex:1,minWidth:"24px"}}),ye,U]})}));Kf.displayName="WorkbookStrip";const Gf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,commands:o,disabled:r,sx:i,floatReference:a,className:l,...c}=e,[d,p]=u.useReducer(k=>k+1,0),[f,h]=u.useState(n.getSelectedSheet()),[g,m]=u.useState(f.getSelectedRanges()),[y,x]=u.useState(f.getSelectedCell());sn(n,{onSheetsChange(){h(n.getSelectedSheet())}}),sn(f.getSelection(),{onChange(){m(f.getSelectedRanges()),x(f.getSelectedCell())}}),_o(o,[],{onChange:()=>{p()}});const v=u.useMemo(()=>({}),[]),b=u.useMemo(()=>({commandHook:{beforeExecute:(k,P)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,scope:"contextMenu",parentFloat:a}),[r,a]),w=u.useMemo(()=>({...v,...b,variant:Yt.Menuitem}),[v,b]),E=u.useMemo(()=>({commands:o,variant:Yt.Menuitem,parentFloat:a,...b}),[o,b,a]),C=[];let R=g.isEntireRows(),_=g.isEntireColumns();g&&(R&&(C.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+C.length)),C.push(u.createElement(qe,{command:o.getCommand("hideColumns"),...w,icon:ze(s.jsx(MO,{})),key:"context:"+C.length})),C.push(u.createElement(qe,{command:o.getCommand("unhideColumns"),...w,icon:ze(s.jsx(EO,{})),key:"context:"+C.length}))),_&&(C.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+C.length)),C.push(u.createElement(qe,{command:o.getCommand("hideRows"),...w,icon:ze(s.jsx(_O,{})),key:"context:"+C.length})),C.push(u.createElement(qe,{command:o.getCommand("unhideRows"),...w,icon:ze(s.jsx(TO,{})),key:"context:"+C.length}))),(R||_)&&C.push(s.jsx(Ft,{orientation:"horizontal"},"context:"+C.length)),R&&C.push(u.createElement(qe,{command:o.getCommand("autoFitColumns"),...w,icon:ze(s.jsx(rD,{})),key:"context:"+C.length})),_&&C.push(u.createElement(qe,{command:o.getCommand("autoFitRows"),...w,icon:ze(s.jsx(iD,{})),key:"context:"+C.length})));const L=[],T=o.getCommand("formatTableStyle"),j=T?.context()?.table();if(ol(T),!R&&!_){if(L.push(s.jsx(Ft,{orientation:"horizontal"},"contextBefore:"+L.length)),y?.getHyperlink())L.push(u.createElement(sa,{...E,popupCommandKeys:["updateHyperlink","deleteHyperlink"],popupScope:"hyperlink",key:"contextBefore:action"+L.length,quickCommand:"openHyperlink",icon:k=>k.key()==="openHyperlink"?ze(s.jsx(ch,{})):null}));else{const k=o.getCommand("updateHyperlink");L.push(u.createElement(qe,{command:k,...w,icon:ze(s.jsx(ch,{})),key:"contextBefore:"+L.length}))}if(y?.getComments())L.push(u.createElement(sa,{...E,popupCommandKeys:["deleteComments"],key:"contextBefore:action"+L.length,quickCommand:"updateComments",icon:k=>k.key()==="updateComments"?ze(s.jsx(dh,{})):null}));else{const k=o.getCommand("updateComments");L.push(u.createElement(qe,{command:k,...w,icon:ze(s.jsx(dh,{})),key:"contextBefore:"+L.length}))}j?L.push(u.createElement(sa,{...E,variant:Yt.Menuitem,key:"contextBefore:"+L.length,popupCommandKeys:["convertTableToRange","deleteTable"],popupScope:"table",scope:"context",commandState:j,quickCommand:"editTable",icon:k=>(k.key(),ze(s.jsx(qc,{})))})):L.push(u.createElement(qe,{command:o.getCommand("insertTable"),...w,icon:ze(s.jsx(qc,{})),key:"context:"+C.length})),L.push(u.createElement(If,{...E,key:"contextBefore:"+L.length}))}const S=s.jsxs(s.Fragment,{children:[s.jsx(qe,{command:o.getCommand("cut"),...w,icon:s.jsx(zP,{})}),s.jsx($2,{command:o.getCommand("copy"),...w}),s.jsx(jf,{command:o.getCommand("paste"),...E,includePasteAllInPopup:!1}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Tf,{...E}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(Ef,{commands:o,...E,disableSheet:!0}),s.jsx(Mf,{commands:o,...E,disableSheet:!0}),s.jsx(kf,{...E}),L,C]});return s.jsx(Le,{ref:t,className:Eo("menu",l),sx:{...i},...c,children:S})}));var py,hy;Gf.displayName="WorkbookContextMenu",function(){if(hy)return py;hy=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 ys=="object"&&ys&&ys.Object===Object&&ys,a=typeof self=="object"&&self&&self.Object===Object&&self,l=i||a||Function("return this")(),c=Object.prototype.toString,d=Math.max,p=Math.min,f=function(){return l.Date.now()};function h(m){var y=typeof m;return!!m&&(y=="object"||y=="function")}function g(m){if(typeof m=="number")return m;if(typeof(y=m)=="symbol"||function(b){return!!b&&typeof b=="object"}(y)&&c.call(y)=="[object Symbol]")return NaN;var y;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 v=n.test(m);return v||o.test(m)?r(m.slice(2),v?2:8):t.test(m)?NaN:+m}py=function(m,y,x){var v,b,w,E,C,R,_=0,L=!1,T=!1,j=!0;if(typeof m!="function")throw new TypeError("Expected a function");function S(z){var A=v,D=b;return v=b=void 0,_=z,E=m.apply(D,A)}function k(z){var A=z-R;return R===void 0||A>=y||A<0||T&&z-_>=w}function P(){var z,A,D=f();if(k(D))return O(D);C=setTimeout(P,(A=y-((z=D)-R),T?p(A,w-(z-_)):A))}function O(z){return C=void 0,j&&v?S(z):(v=b=void 0,E)}function I(){var z,A=f(),D=k(A);if(v=arguments,b=this,R=A,D){if(C===void 0)return _=z=R,C=setTimeout(P,y),L?S(z):E;if(T)return C=setTimeout(P,y),S(R)}return C===void 0&&(C=setTimeout(P,y)),E}return y=g(y)||0,h(x)&&(L=!!x.leading,w=(T="maxWait"in x)?d(g(x.maxWait)||0,y):w,j="trailing"in x?!!x.trailing:j),I.cancel=function(){C!==void 0&&clearTimeout(C),_=0,v=R=b=C=void 0},I.flush=function(){return C===void 0?E:O(f())},I}}();var fy,my,gy={};my||(my=1,function(){if(fy)return gy;fy=1;var e=u,t=typeof Object.is=="function"?Object.is:function(c,d){return c===d&&(c!==0||1/c==1/d)||c!=c&&d!=d},n=e.useState,o=e.useEffect,r=e.useLayoutEffect,i=e.useDebugValue;function a(c){var d=c.getSnapshot;c=c.value;try{var p=d();return!t(c,p)}catch{return!0}}var l=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?function(c,d){return d()}:function(c,d){var p=d(),f=n({inst:{value:p,getSnapshot:d}}),h=f[0].inst,g=f[1];return r(function(){h.value=p,h.getSnapshot=d,a(h)&&g({inst:h})},[c,p,d]),o(function(){return a(h)&&g({inst:h}),c(function(){a(h)&&g({inst:h})})},[c]),i(p),p};gy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l}());var yy,xy,Id={exports:{}},ps={exports:{}},wN=ps.exports;(function(){if(xy)return Id.exports;xy=1;for(var e=(yy||(yy=1,function(){var f,h,g,m,y,x;typeof performance<"u"&&performance!==null&&performance.now?ps.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(ps.exports=function(){return(f()-y)/1e6},h=process.hrtime,m=(f=function(){var v;return 1e9*(v=h())[0]+v[1]})(),x=1e9*process.uptime(),y=m-x):Date.now?(ps.exports=function(){return Date.now()-g},g=Date.now()):(ps.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}.call(wN)),ps.exports),t=typeof window>"u"?ys:window,n=["moz","webkit"],o="AnimationFrame",r=t["request"+o],i=t["cancel"+o]||t["cancelRequest"+o],a=0;!r&&a<n.length;a++)r=t[n[a]+"Request"+o],i=t[n[a]+"Cancel"+o]||t[n[a]+"CancelRequest"+o];if(!r||!i){var l=0,c=0,d=[],p=1e3/60;r=function(f){if(d.length===0){var h=e(),g=Math.max(0,p-(h-l));l=g+h,setTimeout(function(){var m=d.slice(0);d.length=0;for(var y=0;y<m.length;y++)if(!m[y].cancelled)try{m[y].callback(l)}catch(x){setTimeout(function(){throw x},0)}},Math.round(g))}return d.push({handle:++c,callback:f,cancelled:!1}),c},i=function(f){for(var h=0;h<d.length;h++)d[h].handle===f&&(d[h].cancelled=!0)}}Id.exports=function(f){return r.call(t,f)},Id.exports.cancel=function(){i.apply(t,arguments)},Id.exports.polyfill=function(f){f||(f=t),f.requestAnimationFrame=r,f.cancelAnimationFrame=i}})();var ta={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 jC=e=>{const{workbook:t,workbookElement:n,notifier:o,commandTarget:r,commands:i,darkMode:a,onShowSidebar:l,onNewWorkbook:c=RC}=e,[d,p]=u.useState(t?.getSelectedSheet()),[f,h]=u.useState(t?.getSheets().search()),g=_e(l,[l]),m=_e(c,[c]),y=u.useMemo(()=>[new Tt("workbookStatistics",r,{label:"Workbook Statistics",description:"Show the workbook statistics.",shortcut:{key:"G",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("showFormat",r,{label:"Show Format",description:"Open the format pane.",shortcut:{key:"F",modifiers:[$e.Ctrl,$e.Shift]}}),new He("newCellStyle",r,{label:"New Cell Style…",scopedLabels:{cellStyle:"New Cell Style"},description:"Create a new named style can can be quickly used later."}),new He("deleteCellStyle",r,{label:"Delete Cell Style",scopedLabels:{cellStyle:"Delete"},description:"Remove a named style that is no longer needed."}),new He("modifyCellStyle",r,{label:"Modify Cell Style",scopedLabels:{cellStyle:"Modify"},description:"Update a style with the currently style."}),new Tt("find",r,{label:"Find",description:"Open the Find window.",shortcut:[{key:"F",modifiers:[$e.Ctrl]},{key:"F5",modifiers:[$e.Shift]}]}),new Tt("findReplace",r,{label:"Find & Replace",description:"Open the Find & Replace window.",shortcut:[{key:"H",modifiers:[$e.Ctrl]},{key:"H",modifiers:[$e.Ctrl,$e.Alt]}]}),new Tt("goto",r,{label:"Go To",description:"Open the 'Go To' window.",shortcut:[{key:"G",modifiers:[$e.Ctrl]}]}),new Tt("workbookViewToggleExpandFormulaBar",r,{label:"Toggle Expand Formula bar",description:"Expand or collapse the formula bar.",shortcut:{key:"U",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("workbookViewToggleShowFormulaBar",r,{label:"View Formula bar",scopedLabels:{view:"Formula Bar"},description:"Show or hide the formula bar."}),new Tt("workbookViewToggleShowTabs",r,{label:"View Sheet Tabs",description:"Show or hide the sheet tabs.",scopedLabels:{view:"Sheet Tabs"}}),new Tt("workbookViewToggleShowStatusBar",r,{label:"View Status Bar",description:"Show or hide the status bar.",scopedLabels:{view:"Status Bar"}}),new Tt("workbookViewToggleShowHorizontalScrollBar",r,{label:"View Horizontal Scrollbar",description:"Show or hide the horizontal scrollbar.",scopedLabels:{view:"Horizontal Scrollbar"}}),new Tt("workbookViewToggleShowVerticalScrollBar",r,{label:"View Vertical Scrollbar",description:"Show or hide the vertical scrollbar.",scopedLabels:{view:"Vertical Scrollbar"}}),new He("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 He("deleteSheet",r,{label:"Delete Sheet",scopedLabels:{sheet:"Delete"},description:"Delete the sheet and all the data."}),new He("addSheet",r,{label:"Insert Sheet",scopedLabels:{sheet:"Insert"},description:"Insert sheet before the current sheet.",shortcut:[{key:"F11",modifiers:[$e.Shift]},{key:"F1",modifiers:[$e.Alt,$e.Shift]}]}),new He("duplicateSheet",r,{label:"Duplicate Sheet",description:"Duplicate the current sheet.",scopedLabels:{sheet:"Duplicate"}}),new He("nextSheet",r,{label:"Next Sheet",scopedLabels:{sheet:"Next"},description:"Activate the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl]}]}),new He("previousSheet",r,{label:"Previous Sheet",scopedLabels:{sheet:"Previous"},description:"Activate the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl]}]}),new He("selectNextSheet",r,{label:"Select Next Sheet",scopedLabels:{sheet:"Select Next"},description:"Select the next sheet.",shortcut:[{key:"PageDown",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("selectPreviousSheet",r,{label:"Select Previous Sheet",scopedLabels:{sheet:"Select Previous"},description:"Select the previous sheet.",shortcut:[{key:"PageUp",modifiers:[$e.Ctrl,$e.Shift]}]}),new He("selectTheme",r,{label:"Theme",description:"Select a theme that coveys a style suitable for your data."}),new He("selectNamed",r,{label:k=>k?.getName()??"Select Named Item",scopedLabels:{namedItem:k=>k?.getName()??"Select"},description:"Select the item."}),new He("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 He("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 He("deleteNamedReference",r,{label:"Delete Named Reference",scopedLabels:{namedItem:"Delete"},description:"Remove the named reference."}),new Tt("activeNameBox",r,{label:"Activate Name Box",description:"Move the focus to the name box.",shortcut:{key:"F3",modifiers:[$e.Alt]}}),new Tt("createNamedReferenceFromSelection",r,{label:"Create from Selection",description:"Automatically generate names from the selected cells.",shortcut:{key:"F3",modifiers:[$e.Ctrl,$e.Shift]}}),new Tt("activeNameManager",r,{label:"Activate Name Manager",description:`Create, edit, delete, and find all the names used in the workbook.
222
-
223
- Names can be used as a substitute for cell references.`,shortcut:{key:"F3",modifiers:[$e.Ctrl]}}),new He("fullScreenToggle",r,{label:"FullScreen",description:"Toggle showing the workbook using the full screen.",shortcut:{key:"F11"}}),new He("showScriptEditor",r,{label:"Scripts",scopedLabels:{scripts:"Script Editor…"},description:"Show the script editor.",shortcut:[{key:"F11",modifiers:[$e.Alt]}]},function(k=!0){g?.()}),new He("executeScript",r,{label:"Run Script",description:"Run the selected or last executed script.",shortcut:{key:"F8"}}),new He("executeSelectedScript",r,{label:"Run Script",description:"Run the selected script.",shortcut:{key:"F8"}}),new He("saveScripts",r,{label:"Save Script",description:"Save the current scripts."}),new He("maximumWorkbookToggle",r,{label:"Maximize",description:"Toggle showing the workbook maximized.",shortcut:{key:"F10",modifiers:[$e.Ctrl]}}),new He("spellCheck",r,{label:"Spell Check",description:"Check the workbook for spelling mistakes.",shortcut:{key:"F7"}}),new He("calculateAll",r,{label:"Calculate Now",description:"Recalculate all formulas.",shortcut:{key:"F9"}}),new Tt("calculate",r,{label:"Calculate Sheet",description:"Recalculate the formulas on the current sheet.",shortcut:{key:"=",modifiers:[$e.Ctrl]}}),new Tt("closeWorkbook",r,{label:"Close Workbook",description:"Close the workbook.",shortcut:{key:"W",modifiers:[$e.Ctrl]}}),new Tt("newWorkbook",r,{label:"New Workbook",description:"Create a new workbook in another tab.",shortcut:{key:"N",modifiers:[$e.Ctrl]}})],[]),x=u.useMemo(()=>{let k=null;return k=i?i.createChildGroup(r,"workbook",!1):new r0(r,"workbook"),k.addCommands(y,!0),k},[i,y]),v=Hi(),b=u.useRef(null),w=_e(()=>{let k,P=null;const O=x.getCommand("executeScript");if(O.update({disabled:!1,context:{getScripts:()=>t.getScripts()}}),!O)return;const I=x.getCommand("executeSelectedScript");if(!I)return;const z={saveSource:async A=>{let D=null,F=null;const B=t.getScripts();try{A&&(F=await o?.showBusy?.("Saving Scripts..."),D=await B.createModule({source:A})),B.addModule("scripts",D,{replace:!0}),F?.()}catch(M){F?.(),console.warn("Unable to compile",M),o?.showError?.(M)}return D},addContainerListener:A=>(E.current=A,()=>{E.current=null}),setSelectedFunction:A=>{k=A??b.current??null,Promise.resolve(k).then(D=>{I.update({disabled:D===null})})},quickInsertFunction:A=>{const D=`=${A.toUpperCase()}(`,F={text:D+")",editMode:!0,initialSelection:{start:D.length,end:D.length+0}};v.setMode(B=>B?.key==="edit"?{...B,args:{...B.args}}:{key:"edit",args:{stateAndCoords:null,start:F}})},getSelectedFunction:()=>k,setEditor:A=>{P=A??null,x.getCommand("showScriptEditor")?.update({state:A!==null})},getEditor:()=>P,getRanges:A=>{try{return t.getRanges(A)}catch{}return null},getScripts:()=>t.getScripts(),isReadonly:()=>t.getProtection().isStructureAllowed()===!1};I.update({context:z})},[x,t,n,o]),E=u.useRef(null);sn(t,{onBeforeSave:async()=>{await E.current?.onBeforeSave()},onProtectionChange:()=>{E.current?.onReadonlyChange()},onLoad:()=>{(async()=>(await t.getCalculation().start(),t.getScripts().start(),E.current?.onScriptChange()))()}}),sn(t,{onSheetsChange:k=>{h(k.getSheets().search())},onViewChange(k){p(k?.getSelectedSheet())},onProtectionChange:k=>{const P={disabled:!k.getProtection().isStructureAllowed()};x.getCommand("hideSheet").update(P),x.getCommand("deleteSheet").update(P),x.getCommand("addSheet").update(P),x.getCommand("duplicateSheet").update(P)},onScriptsChange:k=>{w()}});const{isFullscreenAvailable:C,isFullscreenEnabled:R,toggleFullscreen:_}=function(k={}){const{target:P,onChange:O,onError:I,requestFullScreenOptions:z}=k,[A,D]=u.useState(!1),[F,B]=u.useState(null),[M,N]=u.useState(!1),V=u.useCallback(()=>ta.requestFullscreen(P?.current||null,z),[P,z]),U=u.useCallback(()=>ta.exitFullscreen(),[]),J=u.useCallback(()=>ta.fullscreenElement?U():V(),[V,U]),X=u.useCallback(ne=>{const oe=ta.fullscreenElement;B(oe),N(!!oe),O?.(ne)},[O]),H=u.useCallback(ne=>{const oe=ta.fullscreenElement;B(oe),N(!!oe),I?.(ne)},[I]);return u.useEffect(()=>{D(ta.fullscreenEnabled)},[]),u.useEffect(()=>(ta.on("change",X),ta.on("error",H),()=>{ta.off("change",X),ta.off("error",H)}),[X,H]),{isFullscreenAvailable:A,fullscreenElement:F,isFullscreenEnabled:M,enableFullscreen:V,disableFullscreen:U,toggleFullscreen:J}}({target:{current:n??document.body}}),L=wf();u.useEffect(()=>{x.getCommand("selectTheme").update({state:()=>t.getTheme(),context:()=>({theme:t.getTheme(),themes:L,darkMode:a})})},[t?.getTheme(),a]);const T=_e(async function(k,P){let O=null;const I=t.getScripts();if(k?.declaration||k?.functionName){const z=k.declaration?k.declaration.getName():k.functionName;I.searchFunction({name:z}).length>0&&(O=z)}if(O)try{await I.executeMacro(O),b.current=Promise.resolve({source:null,name:O})}catch(z){return void o?.showError?.(z)}},[t,o]);u.useEffect(()=>{x.getCommand("newCellStyle").updateCallback(k=>{o?.showInputOptions?.({initialValue:(()=>{let P=0;for(;;){P++;const O=`Style ${P}`;try{return t.getStyles().validateStyleName(O,!0),O}catch{}}})(),title:x.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(P,O)=>{let I=null;try{t.getStyles().validateStyleName(P,!1)}catch(D){I=D.message}let z=t.getStyles().getNamed(P),A=I;return!A&&z&&(A=`Update style '${z.getName()}'.`),{valid:I===null,message:A}}}).then(({input:P,option:O})=>{const I=t.getSelectedSheet().getSelectedRange();if(O!=="Ok")return;const z=t.getStyles().setNamed({name:P,style:I.getCell().getStyle()});I.updateStyle({named:z.getName()})})}),x.getCommand("deleteCellStyle").updateCallback(k=>{k.delete()}),x.getCommand("modifyCellStyle").updateCallback(({named:k})=>{const P=t.getSelectedSheet().getSelectedRange();t.getStyles().setNamed({name:k.getName(),style:P.getCell().getStyle()})}),x.getCommand("hideSheet").updateCallback(k=>{t.getSheetAt(k).setVisibility($.ISheet.Visibility.Hidden)}),x.getCommand("deleteSheet").updateCallback(async k=>{t.getSheetAt(k??t.getSelectedSheetIndex())?.delete()}),x.getCommand("addSheet").updateCallback(k=>{t.getSheets().add({index:k,autoSelect:!0})}),x.getCommand("duplicateSheet").updateCallback(async k=>{(await t.getSheetAt(k??t.getSelectedSheetIndex())?.duplicate())?.select()}),x.getCommand("nextSheet").updateCallback(k=>{t.getNextSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("previousSheet").updateCallback(k=>{t.getPreviousSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectNextSheet").updateCallback(k=>{t.getNextSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectPreviousSheet").updateCallback(k=>{t.getPreviousSheet(k??t.getSelectedSheetIndex()).select()}),x.getCommand("selectTheme").updateCallback(k=>{t.setTheme(k)}),x.getCommand("calculateAll").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),x.getCommand("calculate").updateCallback(()=>{t.getSelectedSheet().getEntireRange().calculate(!0)}),x.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()}),x.getCommand("newWorkbook").updateCallback(()=>{m?.()}),x.getCommand("executeScript").updateCallback(T),x.getCommand("executeSelectedScript").updateCallback(T)},[t,o]);const j=_e(async k=>{let P=0,O=null,I="Find & Replace";k?.replace&&!k?.replaceOptions?.maxCount&&(I="Replace All");const z=await o?.showBusy?.(I);try{const A=k?.scope??"sheet";let D=null;const F={from:t.getSelectedSheet().getSelectedCell(),...k.findOptions};if(D=A==="sheet"?t.getSelectedSheet().find(k.findText,F):t.find(k.findText,F),k.replace){const B=t.replace(D,k.replaceText,k.replaceOptions);P=B.count,k.replaceOptions.maxCount&&(O=B.last)}else{let B=D.next();B.done||(P++,O=B.value)}O?.select({autoFocus:!1}),z?.(),!k.replaceOptions.maxCount&&P>1&&o?.showMessage?.(`We replaced ${P} cells.`)}catch(A){z?.(),o?.showError?.(A)}return P},[t,n]),S=_e(k=>{const P={value:k,context:{selection:()=>{const O=t.getSelectedRanges(),I=[];for(let z=0;z<O.getCount();z++){const A=O.at(z).getFixed(!0).getCoords();I.push(A)}return t.getRanges(I)},getNames:()=>t.getNames()},onUpdate:async O=>{try{await O.select()}catch(I){o?.showMessage?.(I.message,{type:ua.Error})}}};return o.showWindow?.("namedDetails",P)},[o,t,n]);return u.useEffect(()=>{const k=(P=!1)=>{const O=t.getSelectedCell(),I={onFindOrReplace:j,onKeyDown:z=>{x.findCommandByEvent(z)!==x.getCommand("find")&&x.findCommandByEvent(z)!==x.getCommand("findReplace")||z.preventDefault()},findOptions:{},findText:O.toTextUnformatted(!0)};I.replace=P,o.showWindow?.("find",I,{disableAutoDestroy:!0})};x.getCommand("find")?.update({disabled:!o?.showWindow}).updateCallback(()=>{k()}),x.getCommand("findReplace")?.update({disabled:!o?.showWindow}).updateCallback(()=>{k(!0)}),x.getCommand("goto")?.update({disabled:!o}).updateCallback(()=>{const P={onInputOption:async O=>{try{await t.getRanges(O).select()}catch(I){o?.showMessage?.(I.message,{type:ua.Error})}},onKeyDown:O=>{x.findCommandByEvent(O)===x.getCommand("goto")&&O.preventDefault()},title:x.getCommand("goto")?.label(),inputLabel:"Location",options:["Go To"]};o?.showInputOptions?.(P)}),x.getCommand("selectNamed")?.update({disabled:!o}).updateCallback(async P=>{if(P)try{await P.select()}catch(O){o?.showError?.(O)}}),x.getCommand("addNamedReference")?.updateCallback(async function(P){S(null)}),x.getCommand("editNamedReference")?.updateCallback(async function(P){S(P)}),x.getCommand("deleteNamedReference")?.updateCallback(async function(P){P?.delete?.()}),x.getCommand("activeNameBox")?.updateCallback(async function(){n?.getFormulaBarElement()?.getNamedCollectionEditorElement()?.focus()})},[n,t,o]),sn(t?.getView(),{onViewChange:k=>{x.getCommand("workbookViewToggleShowFormulaBar").update({state:k.isShowFormulaBar()}).updateCallback(()=>{k.setShowFormulaBar(!k.isShowFormulaBar())}),x.getCommand("workbookViewToggleShowTabs").update({state:k.isShowTabs()}).updateCallback(()=>{k.setShowTabs(!k.isShowTabs())}),x.getCommand("workbookViewToggleShowStatusBar").update({state:k.isShowStatusBar()}).updateCallback(()=>{k.setShowStatusBar(!k.isShowStatusBar())}),x.getCommand("workbookViewToggleShowHorizontalScrollBar").update({state:k.isShowHorizontalScrollbar()}).updateCallback(()=>{k.setShowHorizontalScrollbar(!k.isShowHorizontalScrollbar())}),x.getCommand("workbookViewToggleShowVerticalScrollBar").update({state:k.isShowVerticalScrollbar()}).updateCallback(()=>{k.setShowVerticalScrollbar(!k.isShowVerticalScrollbar())})}}),u.useEffect(()=>{x.getCommand("fullScreenToggle").update({state:R,disabled:!C}).updateCallback(()=>{_()})},[R,C]),u.useEffect(()=>{const k=t.getProtection().isStructureAllowed();x.getCommand("hideSheet").update({disabled:f.length<=1||!k}),x.getCommand("deleteSheet").update({disabled:f.length<=1||!k})},[f,d]),x},RC=()=>{window.open(window.origin.toString(),"sheetxl-"+$.CommonUtils.uuidV4(),"popup=true")},IC=u.memo(u.forwardRef((e,t)=>{const{movable:n,commands:o,disabled:r,sx:i,floatReference:a,...l}=e;sn(n,{onAnyChange(m){}});const c=u.useMemo(()=>({}),[]),d=u.useMemo(()=>({commandHook:{beforeExecute:(m,y)=>a.closeAll(),onExecute(){},onError(){console.log("onError")}},disabled:r,parentFloat:a}),[r,a]),p=u.useMemo(()=>({variant:Yt.Menuitem,...c,...d}),[c,d]),f=u.useMemo(()=>({commands:o,variant:Yt.Menuitem,parentFloat:a,...d}),[o,d,a]),h=m=>{switch(m?.key()){case"moveToFront":return ze(s.jsx(lD,{}));case"moveForward":return ze(s.jsx(sD,{}));case"moveToBack":return ze(s.jsx(aD,{}));case"moveBackward":return ze(s.jsx(cD,{}));case"toggleLockAspectRatio":return ze(s.jsx(K7,{}));case"formatDrawAlignLeft":return ze(s.jsx(Z7,{}));case"formatDrawAlignCenter":return ze(s.jsx(dD,{}));case"formatDrawAlignRight":return ze(s.jsx(uD,{}));case"formatDrawAlignTop":return ze(s.jsx(pD,{}));case"formatDrawAlignMiddle":return ze(s.jsx(hD,{}));case"formatDrawAlignBottom":return ze(s.jsx(fD,{}));case"formatDrawDistributeHorz":return ze(s.jsx(mD,{}));case"formatDrawDistributeVert":return ze(s.jsx(gD,{}));case"formatAnchorTypeTwoCell":case"formatAnchorTypeOneCell":case"formatAnchorTypeAbsolute":return ze(s.jsx(G7,{}));default:return null}},g=s.jsxs(s.Fragment,{children:[s.jsx($2,{command:o.getCommand("copy"),...p,variant:Yt.Menuitem}),[],s.jsx(Ft,{orientation:"horizontal"}),s.jsx(sa,{...f,popupCommandKeys:["moveToFront","moveForward"],quickCommand:"moveToFront",icon:h}),s.jsx(sa,{...f,popupCommandKeys:["moveToBack","moveBackward"],quickCommand:"moveToBack",icon:h}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(qe,{...p,command:o.getCommand("toggleLockAspectRatio"),icon:ze(s.jsx(K7,{}))}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(sa,{...f,popupCommandKeys:["formatDrawAlignLeft","formatDrawAlignCenter","formatDrawAlignRight",null,"formatDrawAlignTop","formatDrawAlignMiddle","formatDrawAlignBottom",null,"formatDrawDistributeHorz","formatDrawDistributeVert"],label:"Align",icon:m=>h(m)||ze(s.jsx(Z7,{})),tooltip:"Quickly change the placement of your drawings."}),s.jsx(Ft,{orientation:"horizontal"}),s.jsx(sa,{...f,popupCommandKeys:["formatAnchorTypeTwoCell","formatAnchorTypeOneCell","formatAnchorTypeAbsolute"],label:"Sizing",icon:m=>h(m)||ze(s.jsx(G7,{})),tooltip:"Determine how the drawing size will adjust as the cell sizes adjust."}),[]]});return s.jsx(Le,{ref:t,sx:{paddingTop:"4px",paddingBottom:"4px",...i},...l,children:g})}));IC.displayName="MovableContextMenu";const SN={fireOnModelChange:!1},f5={flex:"1 1 100%",display:"flex"},CN=e=>s.jsx(Af,{...e}),kN=e=>s.jsx(Kf,{...e}),EN=e=>s.jsx(IC,{...e}),MN=e=>s.jsx(Gf,{...e}),TN=e=>s.jsx(Ff,{...e}),_N=(e,t)=>s.jsx(zf,{ref:t,...e}),jN=e=>s.jsx(i0,{...e}),RN=(e,t)=>s.jsx(rS,{ref:t,...e}),Zf=u.memo(u.forwardRef((e,t)=>{const{workbook:n,createWorkbookOptions:o,onNewWorkbook:r,onElementLoad:i,notifier:a,autoFocus:l=!1,sx:c,style:d,className:p,onFocus:f,onBlur:h,onKeyDown:g,onRepeatCommandChange:m,commands:y,showFormulaBar:x,formulaBarProps:v,renderFormulaBar:b=_N,showTabs:w,tabsProps:E,renderTabs:C=kN,showStatusBar:R,statusBarProps:_,renderStatusBar:L=CN,toolbarProps:T,renderToolbar:j=_C,contextMenuSx:S,renderContextMenu:k=MN,renderFilterMenu:P=TN,renderMovableMenu:O=EN,renderLoadingPanel:I=jN,loadingPanelProps:z,sheetProps:A,renderSheet:D=RN,showHorizontalScrollbar:F,showVerticalScrollbar:B,gridTheme:M,headersTheme:N,forceLightImages:V,...U}=e,J=qi(),X=wf(),H=u.useMemo(()=>{const Ne={theme:X.getDefaultTheme(),...o};return n??new $.Workbook(Ne)},[n]),ne=u.useRef(null),[oe,ye]=u.useState(!1),de=u.useRef(null),xe=u.useMemo(()=>s.jsx(Le,{className:"sheetxl-viewport",sx:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute",pointerEvents:"none !important","& > :first-of-type":{position:"relative"}},ref:de}),[]),[we,ve]=u.useState(!1),[re,ce]=u.useState(!1),Se=u.useCallback(()=>{ve(!0)},[]),ie=u.useRef(null),Y=ir(t,()=>({isWorkbookElement:()=>!0,getWorkbook:()=>H,getSheetElement:()=>ne.current,getViewportElement:()=>de.current,getFormulaBarElement:()=>ie.current,focus(){ne&&ne.current&&ne.current.focus()}}),[H]),le=u.useRef(null);u.useLayoutEffect(()=>{we&&Y.current&&(ce(!0),le.current!==i&&(i?.({source:Y.current}),le.current=i))},[we,Y.current]),Y.current;const ee=u.useCallback(Ne=>(ne.current?.submitEdit(),!0),[]),Pe=u.useCallback(()=>{requestAnimationFrame(()=>{ne?.current?.focus()})},[]),[Te,rt]=u.useState(H?.getSelectedSheet()),[Ve,Ee]=u.useState(H?.getProtection());sn(H,{onSheetsChange:Ne=>{rt(Ne?.getSelectedSheet())},onViewChange(Ne){rt(Ne?.getSelectedSheet())},onProtectionChange:Ne=>{Ee(Ne?.getProtection())}}),sn(H,{onRequestSelect:async(Ne,yt)=>new Promise(Wt=>{ne.current.getSheet()!==yt?ne.current.getGridElement()?.onViewChangeOnce(()=>{ne.current.getSheet()!==yt&&Wt(!1),Wt(!0)}):Wt(!0)})},SN);const[Re,Xe]=u.useReducer(Ne=>Ne+1,0),Be=H?.getView();sn(Be,{onViewChange:Ne=>{Xe()}});const ct=M??J,Qe=u.useMemo(()=>Gh(J,ct),[J,ct]),he=N??J,Ye=u.useMemo(()=>Gh(J,he),[J,he]),[ke,Ie]=u.useState(null);u.useCallback(()=>{ne.current.focus()},[]);const[ue,De]=u.useState(!1),Ae=u.useRef(null),W=jC({workbook:H,workbookElement:Y.current,commandTarget:()=>ne.current,notifier:a,commands:y,darkMode:Qe.body.darkMode,onNewWorkbook:r,onShowSidebar:()=>{ue?Ae.current?.focus():De(!0)}}),Q=u.useRef(null),[K,se]=u.useState(!1),[te,ae]=u.useState(null),[pe,me]=u.useState(mp),[fe,je]=u.useState($.TypesUtils.EmptyBounds),Fe=()=>{se(!1),ae(null)},Ge=(Ne,yt,Wt=mp)=>{je(Ne),me(Wt),ae(yt),Q.current!==null&&Q.current.update(),se(!0)},[et,tt]=u.useState("sheet"),it=w??Be?.isShowTabs(),At=F??Be?.isShowHorizontalScrollbar(),Lt=x??Be?.isShowFormulaBar(),_t=R??Be?.isShowStatusBar(),$t=B??Be?.isShowVerticalScrollbar(),nn=Qe?.header?.edgeStrokeFill||"rgb(171,171,171)",Zt=u.useMemo(()=>_t?L({sheet:Te,gridStyle:Qe,..._}):null,[L,_,_t,Qe,Te]),Tn=u.useMemo(()=>j({commands:W,workbook:Y.current,...T}),[W,j,T,J]),[pn,{width:En}]=i1(),kt=En===0||En>560,on=u.useMemo(()=>{if(!it)return null;let Ne=C({background:Qe.body.fill,borderWidth:1,borderColor:nn,gridTheme:ct,gridStyle:Qe,onBeforeUserChange:ee,onUserChange:Pe,workbook:H,commands:W,sheetTabProps:{},notifier:a,...E});return kt||(Ne=s.jsx("div",{style:{flex:"none",display:"flex"},children:Ne})),Ne},[C,E,a,J,H,ct,kt,W,it]),mn=u.useCallback(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;let Wt=null,en=null,rn=null;if(At&&(en=s.jsx("div",{style:{display:"flex",flex:"1 1 100%",borderTop:`solid ${nn} 1px`,maxWidth:"100%"},children:s.jsx(Wu,{style:{alignItems:"center",borderTop:(yt?6:3)+"px solid transparent",borderBottom:(kt?6:3)+"px solid transparent",borderLeft:(yt?3:0)+"px solid transparent",borderRight:(yt?3:0)+"px solid transparent"},...Ne,endGap:700,sheet:Te,showCustomScrollButtons:!yt,onShowTooltip:It=>{Ge({x:It.anchor.x,y:It.anchor.y,width:0,height:0},It.display,It.placement)},onCloseTooltip:()=>Fe()})})),it&&kt&&(rn=on),it&&kt&&!At&&(rn=s.jsxs(Le,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:[rn,s.jsx(Le,{sx:{borderTop:`solid ${nn} 1px`,flex:"1"}})]})),rn&&At)Wt=s.jsx(q5,{position:H.getView().getTabRatio()/10+"%",onPositionChange:({percent:It})=>{H.getView().setTabRatio(Math.round(10*It))},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='${J.palette.text.icon??J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 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 ${nn} 1px`,borderBottom:"solid 3px transparent"}},elementBefore:rn,elementAfter:en});else if(At)Wt=en;else{if(!rn)return s.jsx(Le,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center",height:"1px",borderTop:_t?null:`solid ${nn} 1px`}});Wt=rn}return s.jsx(Le,{sx:{display:"flex",flex:"1",position:"relative",alignContent:"center"},children:Wt})},[Te,ee,H,Qe,ct,W,it,At,_t,kt]),[Ln,Nn]=u.useState(null),hn=u.useMemo(()=>({placement:"right-start",...Ln?.popperProps}),[Ln?.popperProps]),{reference:fo,component:bo}=pa({label:"contextMenu",popperProps:hn,anchor:Ln?.anchor??{getBoundingClientRect:()=>new DOMRect(Ln?.clientX||0,Ln?.clientY||0)},onClose:()=>Nn(null),createPopupPanel:Ln?.createPopupPanel});u.useEffect(()=>{Ln?fo.open(0):fo.close(0)},[Ln]);const Fo=_e((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),Ln&&Ln.anchor===Ne.currentTarget?Nn(null):Nn({anchor:Ne.currentTarget,popperProps:{offsets:[-4,2]},createPopupPanel:Wt=>{const{floatReference:en}=Wt;return P({filter:yt,commands:W,floatReference:en,sx:{...S}})}})},[P,S,W,H,Ln]),tr=_e(Ne=>{if(Ne.originalEvent?.isDefaultPrevented())return!0;Ne.originalEvent?.preventDefault(),Nn({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:yt=>{const{floatReference:Wt}=yt;return k({commands:W,workbook:H,floatReference:Wt,sx:{...S}})}})},[k,S,W,H]),_r=_e((Ne,yt)=>{if(Ne?.isDefaultPrevented())return!0;Ne.preventDefault(),Nn({clientX:Ne.clientX,clientY:Ne.clientY,createPopupPanel:Wt=>{const{floatReference:en}=Wt;return O({movable:yt,commands:W,floatReference:en,sx:{...S}})}})},[O,S,W]);u.useMemo(()=>{const Ne=[new Tt("openContextMenu",()=>ne.current,{label:"Context Menu",description:"Open the context menu.",shortcut:[{key:"F10",modifiers:[$e.Shift]},{key:"ContextMenu"}]})];W.addCommands(Ne,!0)},[W]),u.useEffect(()=>{W.getCommand("openContextMenu").updateCallback(()=>{const Ne=Te.getSelection().getCoords().cell;ne.current?.getGridElement()?.scrollCellCoordsIntoView(Ne).then(yt=>{requestAnimationFrame(()=>{const Wt=Te.getView().getZoomScale()/100,en=Te.getColumnHeaders().findOffset(Ne.colIndex+1)*Wt,rn=Te.getRowHeaders().findOffset(Ne.rowIndex+1)*Wt,It=ne.current?.getGridElement()?.getRelativePointFromClient(0,0)||{x:0,y:0};tr({clientX:en-It.x-yt.left+6,clientY:rn-It.y-yt.top+6})})})})},[Te]);const jr=_e(Ne=>{W?.dispatchToFocusedCommand(Ne)},[W]),ui=_e(()=>{Y.current},[H,Y.current]),Ki=u.useCallback(()=>{tt("sheet")},[]),pi=u.useCallback(()=>{tt("formulaBar")},[]),pr=_e(Ne=>{const yt=$.CommonUtils.getOS()===$.CommonUtils.OSType.Firefox;return s.jsx(Wu,{style:{borderLeft:"3px solid transparent",borderRight:"0px solid transparent",borderTop:(yt?3:0)+"px solid transparent",borderBottom:(yt?3:0)+"px solid transparent",width:yt?"13px":void 0},...Ne,sheet:Te,endGap:700,showCustomScrollButtons:!yt,onShowTooltip:Wt=>{Ge(Wt.anchor,Wt.display,"left")},onCloseTooltip:()=>Fe()})},[Te]);u.useEffect(()=>{l&&ne&&ne.current&&ne.current.focus()},[]);const[nt,ft]=u.useState(null),gt=u.useCallback(Ne=>{W?.getCommand("openWorkbook")&&(Ne.type==="dragenter"||Ne.type==="dragover"?Ne.dataTransfer?.types.includes("Files")?Ne.dataTransfer.files[0]?.type?.startsWith("image/")||Ne.dataTransfer.items[0]?.type?.startsWith("image/")||Ne.dataTransfer.types.length===1&&ft("Drop to open"):(Ne.dataTransfer?.types.includes("text/html")||Ne.dataTransfer?.types.includes("text/plain"),Ne.dataTransfer.effectAllowed="none",Ne.dataTransfer.dropEffect="none"):Ne.type==="dragleave"&&ft(null),Ne.preventDefault())},[W]),ut=_e(Ne=>{if(W?.getCommand("openWorkbook")&&(Ne.preventDefault(),Ne.stopPropagation(),ft(null),Ne.dataTransfer.files&&Ne.dataTransfer.files.length>0)){const yt=Ne.dataTransfer.files[0];if(!yt)return;if(yt?.type?.startsWith("image/")){const Wt=ne.current?.getGridElement().getViewFromClient(Ne.clientX,Ne.clientY);if(!Wt)return;const en=Wt.getRelativePointFromClient(Ne.clientX,Ne.clientY),rn=Wt.toAbsoluteBounds({...en,width:0,height:0}),It=Wt.getCellCoordsFromClient(Ne.clientX,Ne.clientY);if(!It)return;W?.getCommand("insertImageFromFile")?.execute({file:yt,options:{bounds:{x:rn.x,y:rn.y}},goto:{range:{...It}}})}else W?.getCommand("openWorkbook")?.execute(yt)}},[W,nt]),vt=u.useMemo(()=>nt?s.jsx(Le,{sx:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",pointerEvents:"none",display:"flex",justifyContent:"center",alignItems:"center",background:Ne=>Ne.palette.divider,color:Ne=>Ne.palette.primary.dark},children:s.jsx(Mn,{variant:"h4",children:nt})}):null,[nt]),jt=u.useRef(null),Pt=u.useMemo(()=>s.jsx(Kh,{in:!re,nodeRef:jt,timeout:500,classNames:"animating",unmountOnExit:!0,children:I({ref:jt,transitionDelay:"0",transparentBackground:!1,sx:{opacity:re?0:c?.opacity,pointerEvents:re?"none":c?.pointerEvents,position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%",...z}})}),[re,I,z]),Rt=u.useMemo(()=>b({sx:{marginTop:Ne=>Ne.spacing(.25),marginLeft:Ne=>Ne.spacing(1),marginRight:Ne=>Ne.spacing(1)},workbook:H,sheetElement:ne.current,gridStyle:Qe,onFocus:pi,...v,NamedCollectionEditorProps:{restoreFocus:Ne=>ne.current.focus(Ne),notifier:a,...v?.NamedCollectionEditorProps,commandPopupButtonProps:{commands:W,...v?.NamedCollectionEditorProps?.commandPopupButtonProps}}},ie),[b,v,H,Qe,W,re]),zt=u.useCallback(Ne=>{const{movable:yt,...Wt}=Ne,en={movable:yt,onContextMenuCapture:In=>{_r(In,yt)},...Wt},rn=yt.getContent().getType();let It=null;if(rn==="picture")return s.jsx(iS,{loadingPanel:s.jsx(i0,{transitionDelay:"100",style:{position:"absolute"},sx:{border:In=>`solid 1px ${In.palette.action.active}`}}),picture:yt.getContent(),description:yt.getDescription()??yt?.getName(),...en});if(rn==="chart"){const In={...en,chart:yt.getContent()};return s.jsx(jF,{...In})}if(It=`Float of type '${rn}'.`,typeof It=="string"){const In={...en,description:It};It=s.jsx(vF,{...In})}return s.jsx("div",{style:{position:"absolute",clipPath:"inset(0px)",display:"flex",alignItems:"stretch",justifyContent:"stretch",pointerEvents:"all"},children:It},yt.getUUID())},[]),Dt=u.useMemo(()=>D({style:f5,onFocus:Ki,notifier:a,gridStyle:Qe,headersStyle:Ye,sheet:Te,commands:W,onSheetContextMenu:tr,onViewportChange:Ne=>{Ie(Ne)},showScrollbars:!1,viewportComponent:xe,onRepeatCommandChange:m,onElementLoad:Se,onShowColumnTooltip:Ne=>{Ge(Ne.anchor,Ne.display,mp)},onShowRowTooltip:Ne=>{Ge(Ne.anchor,Ne.display,U5)},onShowTooltip:Ne=>{Ge({x:Ne.anchor.x,y:Ne.anchor.y,width:0,height:0},Ne.display,Ne.placement)},onCloseTooltip:()=>Fe(),renderMovable:zt,...A,cellRenderProps:{onFilterButtonMouseDown:(Ne,yt)=>{A?.cellRenderProps?.onFilterButtonMouseDown(Ne,yt),Fo(Ne,yt)},...A?.cellRenderProps}},ne),[D,W,A,Te,Qe,a,m]),gn=u.useMemo(()=>{if(!ue)return null;const Ne=!Ve.isStructureAllowed();return s.jsx(Uf,{sx:{marginBottom:yt=>yt.spacing(.5),border:yt=>`solid ${Ne?yt.palette.action.disabled:pt(yt.palette.divider,.2)} 1px`,borderRadius:yt=>`${yt.shape.borderRadius}px`,overflow:"hidden"},onClose:()=>{De(!1),requestAnimationFrame(()=>{ne.current.focus()})},readOnly:Ne,commands:W,ref:Ae,scripts:H.getScripts()})},[ue,W,H,a,Ve]),zn=u.useMemo(()=>{const Ne=s.jsx(_3,{style:{...f5,marginRight:gn&&kt?"0px":"6px"},viewport:ke,touchElement:ne.current?.getGridElement()?.stage,onScrollViewport:It=>{ne.current?.getGridElement()?.scrollTo(It)},showHorizontalScrollbar:At||it,showVerticalScrollbar:$t,createHorizontalScrollbar:mn,createVerticalScrollbar:pr,children:Dt});let yt=Ne;kt||(yt=s.jsxs(s.Fragment,{children:[Ne,on]}));let Wt=null,en=4,rn=13;return kt?Wt="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":(Wt="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",en=13,rn=4),s.jsx(q5,{fixedPane:"after",position:"40%",minAfter:kt?"280px":"120px",splitDirection:kt?"row":"column",style:f5,ref:pn,resizerProps:{className:"styled-resizer",style:{minWidth:kt?"6px":void 0,minHeight:kt?void 0:"6px",maskImage:`url("data:image/svg+xml,%3Csvg width='${en}' height='${rn}' viewBox='0 0 ${en} ${rn}' version='1.1' fill='${J.palette.text.icon??J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${Wt}' /%3E%3C/svg%3E%0A")`,maskRepeat:"no-repeat",maskPosition:kt?"left center":"top center"}},elementBefore:yt,paneBeforeProps:{style:{flexDirection:"column"}},elementAfter:gn,paneAfterProps:{style:{marginLeft:kt?"0px":"4px",marginRight:kt?"8px":"4px"}}})},[At,it,mn,$t,ke,gn,Dt,on,J,kt]),wn=u.useMemo(()=>({boxSizing:"border-box",background:Ne=>Ne.palette.mode!=="dark"?Qe.header.fill:Ne.palette.background.paper,"& *":{...Y3(J),fontWeight:400},"&.Mui-focusVisible":{},"& .viewport-overlay":{borderRight:`solid ${nn} 1px`},...c}),[c,Qe]);return s.jsxs(Mi,{className:Eo("sheetxl-workbook","_sheetxl-workbook_1j3lu_5",{"Mui-focusVisible":oe},"_sheetxl-theme_4opcr_2",p),sx:wn,style:d,square:!1,...U,ref:Y,onFocus:Ne=>{ye(!0),ui(),f?.(Ne)},onBlur:Ne=>{ye(!1),h?.(Ne)},onKeyDown:Ne=>{jr(Ne),g?.(Ne)},onDragStart:Ne=>{if(Ne.target.src){const yt=new Image;yt.src=Ne.target.src,Ne.dataTransfer.setDragImage(yt,1,1)}},onDragEnter:gt,onDragLeave:gt,onDragOver:gt,onDrop:ut,children:[s.jsxs("div",{className:Eo(nC),style:{flex:"1 1 100%",display:"flex",flexDirection:"column",opacity:re?void 0:0,"--sxl-app-color-high-contrast":J.palette.primary.main,"--sxl-app-color-primary":J.palette.primary.main,"--sxl-app-color-primary-dark":J.palette.primary.dark,"--sxl-app-color-primary-light":J.palette.primary.light,"--sxl-app-color-info":J.palette.info.main,"--sxl-app-color-info-dark":J.palette.info.dark,"--sxl-app-color-info-light":J.palette.info.light,"--sxl-app-color-secondary":J.palette.secondary.main,"--sxl-app-color-secondary-dark":J.palette.secondary.dark,"--sxl-app-color-secondary-light":J.palette.secondary.light,"--sxl-app-color-success":J.palette.success.main,"--sxl-app-color-success-dark":J.palette.success.dark,"--sxl-app-color-success-light":J.palette.success.light,"--sxl-app-color-warning":J.palette.warning.main,"--sxl-app-color-warning-dark":J.palette.warning.dark,"--sxl-app-color-warning-light":J.palette.warning.light,"--sxl-app-color-error":J.palette.error.main,"--sxl-app-color-error-dark":J.palette.error.dark,"--sxl-app-color-error-light":J.palette.error.light,"--sxl-app-color-text":J.palette.text.primary,"--sxl-app-color-text-secondary":J.palette.text.secondary,"--sxl-app-color-text-disabled":J.palette.text.disabled,"--sxl-app-color-background":J.palette.background.paper,"--sxl-app-color-button-surface":J.palette.grey[600],"--sxl-app-color-shadow":J.palette.action.focus,"--sxl-app-color-grey":J.palette.grey[500],"--sxl-app-filter-dark-invert":Qe.body.darkMode&&!V?"hue-rotate(180deg) invert(1) brightness(95%)":"none","--sxl-app-image-background":Qe.body.darkMode?`linear-gradient(${pt("#fff",Vn(5))}, ${pt("#fff",Vn(5))})`:void 0},children:[Tn,Lt?Rt:null,s.jsx(Le,{sx:{marginBottom:Ne=>Ne.spacing(.75)}}),zn,Zt,s.jsx(di,{arrow:!0,disableInteractive:!0,open:K,title:s.jsx(Mn,{variant:"subtitle2",component:"div",children:te}),placement:pe,TransitionProps:{timeout:{exit:0}},PopperProps:{popperRef:Q,sx:{"& .MuiTooltip-tooltip":{padding:"2px 6px","& .MuiTooltip-arrow":{display:K?"visible":"none"}}},anchorEl:{getBoundingClientRect:()=>new DOMRect(fe.x,fe.y,fe.width,fe.height)},modifiers:[{name:"offset",options:{offset:[0,0]}}]},children:s.jsx(Le,{})}),bo,vt]}),Pt]})}));Zf.displayName="WorkbookElement";const IN=(e=!1,t=!1)=>t?null:{"& input:not(:focus):not(:hover)":{color:n=>n.palette.text.secondary},backgroundColor:n=>pt(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`}},Xf=u.memo(u.forwardRef((e,t)=>{const{sx:n,workbook:o,title:r="",placeHolder:i="Untitled",onTitleChange:a,readOnly:l=!1,hidden:c,...d}=e,[p,f]=u.useState(!1),[h,g]=u.useState(!1),[m,y]=u.useState(r??""),[x,v]=u.useState(""),[b,{width:w}]=i1(),[E,{width:C}]=i1(),[R,_]=u.useState(!1),L=u.useRef(null),T=u.useRef(null),j=ir(t,()=>({requestWorkbookTitle:(S=null,k)=>{T.current={onAccept:S,requestReason:k?.requestReason},k?.selectAll&&L.current?.select(),L.current?.focus(k)},focus:S=>{L.current?.focus(S)}}),[]);return u.useLayoutEffect(()=>{_(r!==m),v(r),y(r)},[r]),u.useEffect(()=>{R&&w!==0&&Xt.debounce(()=>{_(!1)},300)()},[R,w]),u.useEffect(()=>{g(m&&!El.isValidWindowsFilename(m))},[m]),c?null:s.jsx(Le,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",opacity:R?"0":"1",transition:R?void 0:"opacity .25s ease-in","& .tooltip-wrapper":{maxWidth:"100%"}},ref:V2([j,E,t]),...d,children:s.jsx(br,{label:T.current?.requestReason??"Workbook Name",children:s.jsxs(Le,{className:Eo({"Mui-focusVisible":p}),sx:{visibility:w===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",...IN(!0,l),...n},children:[l?s.jsx(Mn,{variant:"subtitle1",component:"div",sx:{whiteSpace:"nowrap",fontStyle:m!==x?"italic":void 0,userSelect:"none",textOverflow:"ellipsis",lineHeight:"1.4375em",border:"transparent 1px solid",color:S=>h?S.palette.error.dark:void 0},children:r??i}):s.jsx(ql,{sx:{width:`${Math.min(w+3,Math.max(C,j.current?.getBoundingClientRect()?.width))}px`,overflow:"hidden",whiteSpace:"nowrap",fontWeight:"600",maxWidth:"100%",border:"none",padding:"0px",margin:"0px",color:S=>h?S.palette.error.dark:void 0,fontStyle:m!==x?"italic":void 0,"& input":{paddingTop:"0px",paddingBottom:"0px",textOverflow:"ellipsis"}},disableUnderline:!0,fullWidth:!1,multiline:!1,readOnly:l,spellCheck:!1,placeholder:i,onFocus:S=>{f(!0),S.target?.select()},inputProps:{name:"input-workbook-title",autoComplete:"off",ref:L},onBlur:()=>{f(!1),h?y(x):(m!==x&&(a?.(m),m&&T.current?.onAccept?.(m,"blur")),T.current=null)},onChange:S=>{if(S.target.value.length>El.MAX_WORKBOOK_NAME_SIZE)return S.stopPropagation(),void S.preventDefault();y(S.target.value)},onKeyDown:S=>{(El.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(S.key)||S.target?.value.length>El.MAX_WORKBOOK_NAME_SIZE)&&S.preventDefault(),S.which===tn.Enter||S.which===tn.Tab?(h?y(x):(a?.(m),m&&(T.current?.onAccept?.(m,"keydown"),T.current=null)),S.stopPropagation(),S.preventDefault(),o?.focus()):S.which===tn.Escape&&(m===x?o?.focus():(y(x),setTimeout(()=>{S.target?.select()},0)),T.current=null,S.stopPropagation(),S.preventDefault())},value:m}),s.jsx(Le,{ref:b,sx:{position:"absolute",visibility:"hidden",top:"-9999px",fontWeight:"600 !important",whiteSpace:"pre",fontStyle:m!==x?"italic":void 0,fontFamily:S=>S.typography.fontFamily,letterSpacing:"0.00938em"},children:m||i})]})})})}));Xf.displayName="WorkbookTitle";const PN=u.lazy(()=>Promise.resolve().then(()=>require("./BoG6Gi-uqIbSJdRv.cjs")).then(e=>e.BQoEwYUY9khnxsGk).then(e=>e.E)),PC=u.memo(u.forwardRef((e,t)=>{const{sx:n,style:o,className:r,licenseKey:i,...a}=e;return i&&$.LicenseManager.setLicenseKey(i),s.jsx(s.Fragment,{children:s.jsx(PN,{...a,className:r,sx:n,style:o,ref:t})})}));PC.displayName="StandaloneWorkbook";const ON=[{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}],DN=[{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 OC{constructor(t=ON,n=DN){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(()=>uy)).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(()=>uy)}catch(a){throw a}try{return await r.WorkbookIO.read({...t,async onStart(a){await t?.onStart?.(a),o=await n?.showBusy?.(`Opening '${a}'...`)}})}catch(a){throw i?.(),o?.(),a}finally{i?.(),o?.()}}}const DC=new OC;(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const AC=Object.freeze(Object.defineProperty({__proto__:null,AppearanceCommandButton:dC,AutoColorPosition:Is,BorderCommandButton:NS,BorderPopupButton:BS,BorderStyleButton:FS,ClearCommandButton:kf,ColorButton:N2,ColorCommandButton:Ys,ColorPanel:zS,ColorPanelType:AS,ColorPopupButton:Cf,DeleteCellsCommandButton:Mf,DocThemeCommandButton:cC,FillCommandButton:qS,FilterColumnMenu:Ff,FilterCommandButton:GB,Filters:gC,FindCommandButton:HS,FontFamilyCommandButton:ZS,FontSizeCommandButton:WS,FormulaBar:zf,FreezeCommandButton:VS,HelpCommandButton:uC,HorizontalAlignCommandButton:Zv,InsertCellsCommandButton:Ef,InsertImageCommandButton:If,InsertScriptCommandButton:MC,LicenseManager:$.LicenseManager,MergeCommandButton:$S,NamedCollectionEditor:Lf,NamedInput:Pf,NumberFormatCommandButton:US,PasteCommandButton:jf,PresetCellStylesCommandButton:tC,PresetTableStylesCommandButton:iC,QuickFormulaSumCommandPopupButton:JB,RangeInput:Of,RunScriptCommandButton:qf,ScriptEditorToolbar:Wf,ScriptWorkspace:Uf,SheetTab:Bf,SheetTabMenu:Nf,SheetZoomScale:Df,SheetsAllMenu:$f,SortFilterCommandButton:Tf,StandaloneWorkbook:PC,StatusBar:Af,StyledStrokeIcon:Wh,TableStyleCanvasPreview:oC,TableStyleOptionsPanel:rC,TableStylePreview:Rf,TextEffectsCommandButton:XS,TextOverflowCommandButton:Yv,TextRotateCommandButton:Jv,ThemeMode:wC,ThemeSelectButton:aC,ThemeSelectPanel:lC,ThemeSelectPopupButton:sC,UnderlineCommandButton:YS,UndoRedoCommandButton:_f,VerticalAlignCommandButton:Xv,ViewGridLinesCommandButton:KS,ViewHeadingsCommandButton:JS,WalkingCopyCommandButton:$2,WorkbookContextMenu:Gf,WorkbookElement:Zf,WorkbookIO:DC,WorkbookStrip:Kf,WorkbookTitle:Xf,WorkbookViewCommandButton:QS,_WorkbookIO:OC,createGridStyleFromMUITheme:Gh,defaultNewWorkbook:RC,useResolvedThemeMode:SC,useWorkbookCommands:jC},Symbol.toStringTag,{value:"Module"})),Zh=new Map,LC=(e,t={})=>{const{message:n,icon:o,customElement:r,hide:i=!1,className:a,cssVars:l={}}=t;if(i)return;const c=typeof e=="string"?document.querySelector(e):e;if(!c)return void console.warn(`Element with selector "${e}" not found for panel.`);let d;if(l1(e),r)d=r;else{d=document.createElement("div"),d.className=a?`sheetxl-panel ${a}`:"sheetxl-panel";const p=Object.entries(l).map(([g,m])=>`--sheetxl-panel-${g}: ${m};`).join(" "),f=`
224
- @keyframes sheetxl-spin {
225
- from { transform: rotate(0deg); }
226
- to { transform: rotate(360deg); }
227
- }
228
- .sheetxl-panel {
229
- position: absolute;
230
- top: 0;
231
- left: 0;
232
- right: 0;
233
- bottom: 0;
234
- display: flex;
235
- flex-direction: column;
236
- align-items: center;
237
- justify-content: center;
238
- backdrop-filter: blur(4px);
239
- border-radius: 4px;
240
- z-index: 9999;
241
- gap: 16px;
242
-
243
- /* CSS variables with fallbacks */
244
- color: var(--sheetxl-panel-color, #333);
245
- }
246
-
247
- .sheetxl-panel.dark {
248
- color: var(--sheetxl-panel-color, #e0e0e0);
249
- }
250
-
251
- .sheetxl-icon {
252
- width: 24px;
253
- height: 24px;
254
- color: var(--sheetxl-panel-icon-color, #1976d2);
255
- }
256
-
257
- .sheetxl-panel.loading {
258
- /* Loading panel defaults */
259
- color: var(--sheetxl-panel-color, #333);
260
- }
261
-
262
- .sheetxl-panel.loading.dark {
263
- color: var(--sheetxl-panel-color, #e0e0e0);
264
- }
265
-
266
- .sheetxl-panel.error {
267
- /* Error panel defaults */
268
- color: var(--sheetxl-panel-color, #d32f2f);
269
- }
270
-
271
- .sheetxl-panel.error.dark {
272
- color: var(--sheetxl-panel-color, #f44336);
273
- }
274
-
275
- .sheetxl-panel.error .sheetxl-icon {
276
- color: var(--sheetxl-panel-icon-color, #d32f2f);
277
- }
278
-
279
- .sheetxl-panel.error.dark .sheetxl-icon {
280
- color: var(--sheetxl-panel-icon-color, #f44336);
281
- }
282
-
283
- .sheetxl-message {
284
- font-size: 1.1em;
285
- font-weight: 500;
286
- letter-spacing: 0.1px;
287
- text-align: center;
288
- margin: 0;
289
- }
290
- `,h=document.createElement("style");if(h.textContent=f,d.appendChild(h),o){const g=document.createElement("div");g.className="sheetxl-icon",typeof o=="string"?g.innerHTML=o:o instanceof HTMLElement&&g.appendChild(o),d.appendChild(g)}if(n){const g=document.createElement("div");g.className="sheetxl-message",g.textContent=n,d.appendChild(g)}p&&(d.style.cssText+=p),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&d.classList.add("dark")}window.getComputedStyle(c).position==="static"&&(c.style.position="relative"),c.appendChild(d),Zh.set(e,d)},l1=e=>{const t=Zh.get(e);t&&t.parentNode&&(t.parentNode.removeChild(t),Zh.delete(e))},zC=(e,t={})=>{LC(e,{message:"Loading SheetXL...",icon:`
291
- <svg width="24" height="24" viewBox="0 0 24 24" style="animation: sheetxl-spin 1s linear infinite;">
292
- <circle cx="12" cy="12" r="10" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="31.416" stroke-dashoffset="31.416">
293
- <animate attributeName="stroke-dasharray" dur="2s" values="0 31.416;15.708 15.708;0 31.416" repeatCount="indefinite"/>
294
- <animate attributeName="stroke-dashoffset" dur="2s" values="0;-15.708;-31.416" repeatCount="indefinite"/>
295
- </circle>
296
- </svg>
297
- `,className:"loading",...t})},FC=(e,t={})=>{LC(e,{message:"Failed to load SheetXL",icon:`
298
- <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor">
299
- <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/>
300
- </svg>
301
- `,className:"error",...t})},Pd=new Map;let Os;const by=async e=>Os||(Os=await(async(t,n)=>{try{if(n?.selector&&zC(n?.selector,n?.loading),!t){const{resolveDependencies:o}=await Promise.resolve().then(()=>require("./00LGtBNvHHqHMD_7.cjs"));t=await o(n?.dependencies)}n?.licenseKey&&await t.StudioMUI.LicenseManager.setLicenseKey(n.licenseKey),n?.selector&&l1(n?.selector)}catch(o){throw n?.selector&&(l1(n.selector),FC(n.selector,{message:`Failed to initialize: ${o instanceof Error?o.message:String(o)}`,...n?.error})),console.error("Failed to initialize:",o),o}return t})({React:u,ReactJSXTransform:XC,ReactDOM:sm,ReactDOMClient:sm,StudioMUI:AC},typeof e=="object"?e:void 0),Os),AN={attachWorkbook:async(e,t)=>(Os||(Os=await by(e)),(async(n,o,r,i)=>{if(!o)throw new Error("Either a 'selector' or a 'InitializationOptions' must be provided to attach.");const a=typeof o=="string"?o:o.selector||"#sheetxl",l=typeof a=="string"?document.querySelector(a):a;if(!l)throw new Error(`Element with selector "${a}" not found.`);if(Pd.has(a)&&Pd.get(a)!==null)throw new Error(`SheetXL already attached to "${a}". Detach first if you want to re-attach.`);const c=typeof o=="object"?o:null;zC(a,c?.loading);try{l1(a);const d=n.ReactDOMClient.createRoot(l),p=n.React.createRef(),f=n.StudioMUI[r];let h=null;await new Promise(x=>{d.render(n.React.createElement(f,{...i,ref:v=>{v&&(h=v,x())}}))});const m={runtime:n,root:d};Pd.set(a,m);let y=!1;return new Proxy(h,{get(x,v,b){if(y)throw new Error(`SheetXL instance attached to "${a}" has been detached. Cannot access properties.`);return v==="update"?w=>{const E={...i,...w,ref:p};return d.render(n.React.createElement(f,E)),Promise.resolve()}:v==="detach"?()=>(Pd.delete(a),d.unmount(),y=!0,Promise.resolve()):Reflect.get(x,v,b)}})}catch(d){throw l1(a),FC(a,{message:`Failed to initialize: ${d instanceof Error?d.message:String(d)}`,...c?.error}),console.error("Failed to initialize:",d),d}})(Os,e,"StandaloneWorkbook",t)),async initialize(e){await by(e)}};exports.$R=uC,exports.$n=Vn,exports.$t=Ft,exports.AR=()=>{const{showModal:e}=ud();return t=>{const{defaultOption:n=t.options?.[0],cancelOption:o="Cancel",...r}=t;return new Promise(i=>{const a=e(IA,{defaultOption:n,cancelOption:o,...r,onOption(l){r?.onOption?.(l,l===o,l===n),i({input:"",option:l})},onInputOption(l,c){r?.onInputOption?.(l,c),i({input:l,option:c})},onDone:()=>{r?.onDone?.(),a.hide()}})})}},exports.BR=rC,exports.Box=Le,exports.Bu=ud,exports.CR=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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.Checkbox=Ba,exports.DM=_C,exports.DR=(e,t)=>{let n=nh({palette:{mode:e?"dark":"light"}}),o={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:pt(n.palette.text.secondary,.75),icon:e?pt(n.palette.text.secondary,.7):pt(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=cr(o,t)),nh(r)},exports.DialogContent=Ex,exports.E0=qi,exports.ER=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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.Fn=Bn,exports.FormControl=x1,exports.FormControlLabel=Na,exports.GC=pw,exports.Go=rr,exports.HR=dC,exports.IR=function(e){var t=e.children,n=e.legacy,o=n!==void 0&&n,r=e.suspense,i=r===void 0||r,a=e.fallback,l=a===void 0?null:a,c=u.useReducer(XD,ZD),d=c[0],p=c[1],f=u.useCallback(function(v,b){var w=Ev(b,YD);v?p({type:Ci.UPDATE,payload:{id:v,props:w}}):console.error(Ap)},[p]),h=u.useCallback(function(v){v?p({type:Ci.HIDE,payload:{id:v}}):console.error(Ap)},[p]),g=u.useCallback(function(v){v?p({type:Ci.DESTROY,payload:{id:v}}):console.error(Ap)},[p]),m=u.useCallback(function(v){v?p({type:Ci.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[p]),y=u.useCallback(function(v,b,w){var E=Tv(8);return w&&w.rootId&&(E=w.rootId+"."+E),p({type:Ci.SHOW,payload:{id:E,component:v,props:b,options:w}}),{id:E,hide:function(){return h(E)},destroy:function(){return g(E)},update:function(C){return f(E,C)}}},[p,h,g,f]),x=i?u.Suspense:u.Fragment;return u.createElement(Mv.Provider,{value:{state:d,updateModal:f,hideModal:h,destroyModal:g,showModal:y,destroyModalsByRootId:m}},t,u.createElement(x,Object.assign({},i&&{fallback:l}),Object.keys(d).map(function(v){var b,w=d[v],E=w.component,C=w.props,R=w.options,_=function(){var L,T;C!=null&&C.onExited&&C.onExited.apply(C,arguments),C!=null&&(L=C.TransitionProps)!=null&&L.onExited&&(T=C.TransitionProps).onExited.apply(T,arguments),g(v)};return b=o?{onExited:_}:{TransitionProps:Er({},C?.TransitionProps,{onExited:_})},u.createElement(E,Object.assign({},C,{key:v,onClose:function(){R&&R.hideOnClose&&h(v),R&&R.destroyOnClose&&R.hideOnClose&&g(v),C&&C.onClose&&C.onClose.apply(C,arguments)}},R&&!R.destroyOnClose&&b))})))},exports.IT=LS,exports.IconButton=Tr,exports.Ie=He,exports.InputAdornment=Tx,exports.InputLabel=_x,exports.JM=Zf,exports.Jt=Xt,exports.Kn=Xn,exports.L9=Z3,exports.LR=()=>{const{showModal:e}=ud();return t=>new Promise(n=>{const o=e(RA,{...t,onOption(r){t?.onOption?.(r,r===t.cancelOption,r===t.defaultOption),n(r)},onDone:()=>{t?.onDone?.(),o.hide()}})})},exports.MR=e=>s.jsxs(Je,{...e,children:[s.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"}),s.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"})]}),exports.MenuItem=b1,exports.Mn=_n,exports.N0=pa,exports.NR=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.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"}),s.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"}),s.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"}),s.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.OR=function(){const[e,t]=u.useState(()=>new Map),{showModal:n,updateModal:o,destroyModal:r,hideModal:i}=ud({disableAutoDestroy:!0});return(a,l,c,d)=>new Promise((p,f)=>{const h={...c,onHide:()=>{const x=e.get(a);c?.onHide?.(),t(v=>(v.delete(a),v)),i(x.id)},onDone:x=>{const v=e.get(a);t(b=>(b.delete(a),b)),c?.onDone?.(x),v&&v.id&&!d?.disableAutoDestroy&&r(v.id)},onShown:x=>{t(v=>{const b=v.get(a);return v.set(a,{...b,element:x}),v}),p(x)},open:!0},g=e.get(a);if(g)return o(g.id,h),void p(g.element);if(!l)return void f("invalid function");const m=u.lazy(l),y=n(m,h,{destroyOnClose:!d?.disableAutoDestroy});t(x=>(x.set(a,{id:y.id,element:null}),x))})},exports.Oe=qe,exports.PC=sw,exports.PR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},exports.Paper=Mi,exports.Px=kv,exports.Qt=Yt,exports.RR=PD,exports.Re=$e,exports.SR=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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.Sa=ys,exports.Select=b2,exports.SheetXL=AN,exports.StudioMUI=AC,exports.SvgIcon=Je,exports.TR=e=>s.jsx(Je,{...e,children:s.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.Tc=Zc,exports.TextField=k3,exports.Transition=Bi,exports.Tt=Tt,exports.Typography=Mn,exports.UR=SC,exports.WR=wC,exports.Xf=wf,exports.Xn=Lx,exports.Yb=Vb,exports.Yi=ol,exports._R=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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"}),s.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._o=E3,exports.alpha=pt,exports.ar=br,exports.au=Hf,exports.b4=Sh,exports.bR=e=>s.jsx(Je,{...e,children:s.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"})}),exports.bs=i0,exports.cM=Of,exports.capitalize=xt,exports.clsx=Ot,exports.cn=sn,exports.composeClasses=Rn,exports.createSvgIcon=Kn,exports.darken=Pl,exports.duration=ix,exports.eM=Rf,exports.eR=Xf,exports.es=Gs,exports.fc=i1,exports.fs=r0,exports.gR=({manager:e,commands:t,disabled:n,notifier:o=yu})=>{const r=_e(a=>{try{e?.undo(a)}catch(l){o.showError?.(l)}},[e]),i=_e(a=>{try{e?.redo(a)}catch(l){o.showError?.(l)}},[e]);return u.useMemo(()=>{if(!t)return;const a={contains:c=>!0,focus(){}},l=[new He("undo",a,{label:"Undo",description:T4,shortcut:{key:"z",modifiers:[$e.Ctrl]},disabled:!0},r),new He("redo",a,{label:"Redo",description:_4,shortcut:[{key:"y",modifiers:[$e.Ctrl]},{key:"F4"},{key:"Enter",modifiers:[$e.Alt]}],disabled:!0},i)];t?.addCommands(l,!0)},[t]),u.useEffect(()=>{if(!t)return;const a=()=>{const c=e?.getTopUndoDescription(),d={};var p;t.getCommand("undo").update({disabled:n||!e||!e.hasUndo(),description:c?(p=c,`Undo ${p}`):T4,state:d,context:{undoManager:e}});const f=e?.getTopRedoDescription();t.getCommand("redo").update({disabled:n||!e||!e.hasRedo(),description:f?uI(f):_4,state:d,context:{undoManager:e}})};if(a(),!e)return;const l=e.addListener({onStackChange(){a()}});return()=>l?.()},[e,t,n]),{undo:r,redo:i}},exports.generateUtilityClass=jn,exports.generateUtilityClasses=kn,exports.getTransitionProps=Oc,exports.globalCss=sx,exports.h5=V2,exports.internal_mutateStyles=o3,exports.internal_serializeStyles=Mr,exports.ir=xr,exports.j1=qc,exports.kR=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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.km=Vf,exports.kn=Cn,exports.ks=l0,exports.lS=Lv,exports.li=Ca,exports.lighten=Ol,exports.lu=Ju,exports.me=_e,exports.memoTheme=vn,exports.nk=hw,exports.q9=J3,exports.qR=DC,exports.rn=tn,exports.sM=Pf,exports.styled=Et,exports.styled$1=r2,exports.useDefaultProps=An,exports.useForkRef=Xo,exports.useTheme=o0,exports.useTimeout=bl,exports.vR=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"}),s.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.ve=ze,exports.wR=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"}),s.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.xR=e=>s.jsxs(Je,{...e,children:[s.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 "}),s.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"}),s.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.xx=uv,exports.yR=e=>s.jsxs(Je,{...e,children:[s.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"}),s.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.yo=Eo,exports.yu=yu,exports.z0=ua,exports.zi=Ya,exports.zv=av;