@sheetxl/sdk 0.4.10 → 0.4.12

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 (167) hide show
  1. package/browser/cjs/39ybckEYrSwofEL8.cjs +7 -0
  2. package/browser/cjs/7F9Y23ZviM83MrLB.cjs +7 -0
  3. package/browser/cjs/9OWmR6t6tmtR3HKs.cjs +7 -0
  4. package/browser/cjs/AoftwE84s7sGV4YJ.cjs +7 -0
  5. package/browser/cjs/BJZM9I81r8nRPehZ.cjs +7 -0
  6. package/browser/cjs/BLHJddfDq44WHNs6.cjs +7 -0
  7. package/browser/cjs/BdbcopQNFs0VAYoZ.cjs +7 -0
  8. package/browser/cjs/C2McR1ZSNpfPMaI1.cjs +7 -0
  9. package/browser/cjs/CAC1euA3bA1IpMhZ.cjs +7 -0
  10. package/browser/cjs/CDwPpmyZAYF_aBaX.cjs +7 -0
  11. package/browser/cjs/CP2yuwDM2Fzm2bQy.cjs +7 -0
  12. package/browser/cjs/CSn-hMrEUwFcYpBT.cjs +13 -0
  13. package/browser/cjs/CeuXJMoeKjSnby5j.cjs +7 -0
  14. package/browser/cjs/Ch5W6IQIqcVy3CUV.cjs +10 -0
  15. package/browser/cjs/CtaH9jllSQmzD2AZ.cjs +7 -0
  16. package/browser/cjs/Ctw9E_2VE0l2P6Yk.cjs +7 -0
  17. package/browser/cjs/Czl-z-_3jRiufzFq.cjs +7 -0
  18. package/browser/cjs/D-HLMUqMDuHV5fFD.cjs +7 -0
  19. package/browser/cjs/D5pK8FbUHJmgHMVR.cjs +7 -0
  20. package/browser/cjs/DA7BmT8kgTnFcBps.cjs +7 -0
  21. package/browser/cjs/DBBaD9qGTCHmDZzt.cjs +7 -0
  22. package/browser/cjs/DD24B_zQQtT3iqLe.cjs +7 -0
  23. package/browser/cjs/DKwnqzohEhfP9-D8.cjs +7 -0
  24. package/browser/cjs/DO-igV-beWuURc9q.cjs +7 -0
  25. package/browser/cjs/DR2yNdWmKOx4XEn_.cjs +7 -0
  26. package/browser/cjs/D_PNelhiuhC_pYQe.cjs +7 -0
  27. package/{node/esm/Dk3ABmYKlVup4l-u.mjs → browser/cjs/Dg4inQb_qTGcwKWj.cjs} +2 -5
  28. package/browser/cjs/KlMBkdsOI1TbINZi.cjs +7 -0
  29. package/browser/cjs/Me1cXPMFZnMqu9Ni.cjs +10 -0
  30. package/browser/cjs/P1V-5yUNwU9r5yLw.cjs +7 -0
  31. package/browser/cjs/Vkjfeba56sx1eWi0.cjs +7 -0
  32. package/browser/cjs/dwUVhGNDSgZfRm3P.cjs +7 -0
  33. package/browser/cjs/index.cjs +4 -3
  34. package/browser/cjs/txLIAZHRWIU9kf0I.cjs +7 -0
  35. package/browser/esm/30SRICLt1PAxlGS8.mjs +7 -0
  36. package/browser/esm/{CsPZhcz5eLf-CbkJ.mjs → 9jeiH8SVL_ZJYLxo.mjs} +2 -7
  37. package/browser/esm/B-xoX7KIAUytU1_U.mjs +7 -0
  38. package/browser/esm/B_bzVKesE_JRp6EW.mjs +7 -0
  39. package/browser/esm/BbO1W_XgpJnqTSty.mjs +7 -0
  40. package/browser/esm/BngRU84kl6oeKeYG.mjs +7 -0
  41. package/browser/esm/BuJVzVii6s-ETLFo.mjs +7 -0
  42. package/browser/esm/ByHA0yF73W3Lubv1.mjs +13 -0
  43. package/browser/esm/C9XmeyBj3CidGuuQ.mjs +7 -0
  44. package/browser/esm/CGlSMtRCaIAn2kcK.mjs +7 -0
  45. package/browser/esm/CNZEHpuUipSLJnir.mjs +7 -0
  46. package/browser/esm/CUDgLpRqpHPjfaCi.mjs +7 -0
  47. package/browser/esm/ChB6ZgoNr49oUuh9.mjs +7 -0
  48. package/browser/esm/D0HYMuygnYvY7Atx.mjs +7 -0
  49. package/browser/esm/D1PWaFTHEZfGGXTb.mjs +7 -0
  50. package/browser/esm/D2zmZcBdOoyixeUA.mjs +7 -0
  51. package/browser/esm/D525g_2eyexUf3Zf.mjs +7 -0
  52. package/browser/esm/DMJw8DmfeX6u2glN.mjs +7 -0
  53. package/browser/esm/DfHQEyIlLlv5P49Q.mjs +7 -0
  54. package/browser/esm/Dhvtq8jHg8BxOR0C.mjs +7 -0
  55. package/browser/esm/DkPPc6PpShDjAHJV.mjs +7 -0
  56. package/browser/esm/DqEqprkW8poZvfjh.mjs +7 -0
  57. package/browser/esm/DtSj65a0yyYL8HUw.mjs +7 -0
  58. package/browser/esm/Dw0Okzcg5hIcHUcc.mjs +7 -0
  59. package/browser/esm/Dzo7yK5H2NRkocTa.mjs +7 -0
  60. package/browser/esm/G_2bOLOa20d7iobX.mjs +7 -0
  61. package/browser/esm/MRXgg6FvbB08Ze4M.mjs +7 -0
  62. package/browser/esm/SePiM6uWrcY09dym.mjs +7 -0
  63. package/browser/esm/eCZnrKI7SxPgdErZ.mjs +7 -0
  64. package/browser/esm/index.mjs +2 -84
  65. package/browser/esm/nE8H93zlwoi3F8Ii.mjs +10 -0
  66. package/browser/esm/ui3SG2ZyuCKIR0An.mjs +7 -0
  67. package/browser/esm/vk7TdrD0zPqtT8_n.mjs +7 -0
  68. package/browser/esm/yM_d2jrPPN_EupI0.mjs +10 -0
  69. package/licenses/dependencies.txt +3 -3
  70. package/{browser/esm/70MScShy9oEFZGC-.mjs → node/esm/BJvhZja9zXr81ch6.mjs} +1 -1
  71. package/node/esm/{YqgO5dqnNDu6tJAq.mjs → BK_7sJa3fTDIKVsK.mjs} +2 -2
  72. package/node/esm/{CdbncxwuP2LcomiC.mjs → BPhIhbwKpbuhJ5n5.mjs} +1 -1
  73. package/node/esm/{BYw54CVi5Zykf7P_.mjs → BQb_TIMVKb4ap8qn.mjs} +1 -1
  74. package/node/esm/{B2GPpiwGDiHZ4Mnx.mjs → BW1-l-HQdvRTQ7Bm.mjs} +4 -4
  75. package/{browser/esm/Dk3ABmYKlVup4l-u.mjs → node/esm/Bkj8joA7ej1p4iQv.mjs} +1 -1
  76. package/node/esm/{BD4U7piuPUWGdmvF.mjs → BnQS3_N8ZEyMLfgn.mjs} +1 -1
  77. package/node/esm/{CYs7VtVLEbhMy_iG.mjs → Bs1vmYEblngyWvkW.mjs} +1 -1
  78. package/node/esm/{BWm5puKy7haAGpHu.mjs → BtDgmaUXSuZwZauR.mjs} +2 -2
  79. package/node/esm/{Blozz9cX9jUqOnkK.mjs → C2nQBB-2yJ1qfKsG.mjs} +1 -1
  80. package/node/esm/{mkuXwkQcdkBHUMsY.mjs → CEBBIejO4nn_eoLE.mjs} +1 -1
  81. package/{browser/esm/3AEwlfYXdvg1zUXm.mjs → node/esm/CEBaRGnJ6Pau61Z3.mjs} +1 -1
  82. package/node/esm/{CxkMMFqIme5dCX9o.mjs → CSr4e1I9DtTv2w79.mjs} +1 -1
  83. package/node/esm/CWUmgm7_b5VypIPN.mjs +80 -0
  84. package/node/esm/{BW04nsyJWeVHBcFW.mjs → Cb2A-sSxQbrq7_st.mjs} +1 -1
  85. package/node/esm/{DQwOIKwLzYjUwPmT.mjs → CfSD4cLmkg0FqnhQ.mjs} +1 -1
  86. package/node/esm/{C8OHYChkHQk2jVzy.mjs → ChgW0mo5gCgLQ4qn.mjs} +1 -1
  87. package/node/esm/{Br_wraXbAu-VOj0p.mjs → Cl6j-EVdzk8MvmYu.mjs} +1 -1
  88. package/node/esm/{CXhWG2Dg31l6Mo8r.mjs → Cvzp8bwJnKvjvZSp.mjs} +1 -1
  89. package/node/esm/{BJgxNxKnNgVBP4Hp.mjs → D-7D30G3TPv5yZHW.mjs} +1 -1
  90. package/node/esm/{0OTV9xpta6cm7Yx6.mjs → DPWAK-dKa7BGHzhV.mjs} +1 -1
  91. package/{browser/esm/DbezlvRyCGtHZgSZ.mjs → node/esm/DaA9EfLaa4eAL5v5.mjs} +1 -1
  92. package/{browser/esm/sUZorY3sws86BcMb.mjs → node/esm/DdQQdRO6WRU-o7fW.mjs} +1 -1
  93. package/{browser/esm/BLET1HFCb5u0-_Eo.mjs → node/esm/DqzaLjnlgJ73P6fj.mjs} +1 -1
  94. package/node/esm/{DXj8p7NZndUJBRAj.mjs → KTvP9pq_hIePsIcs.mjs} +1 -1
  95. package/node/esm/{Dq32tysuLIKWEFO_.mjs → R6sbyZ3F8U46a2pT.mjs} +1 -1
  96. package/node/esm/{DrU-yP_Fb9i7w1lb.mjs → RjYTditNvvkkhvec.mjs} +1 -1
  97. package/{browser/esm/CCcaxwoCKpK91TYc.mjs → node/esm/Ru2U-PXJ-wtFJVIi.mjs} +1 -1
  98. package/{browser/esm/CA504N_MgS6GSFmG.mjs → node/esm/_50UNzbNjsJJ5JeA.mjs} +1 -1
  99. package/node/esm/{Cyb9hq0LVkNm7yoj.mjs → ebMdiumtVWrujqaH.mjs} +1 -1
  100. package/node/esm/index.mjs +8 -8
  101. package/node/esm/{BelMCqHHX_Ln7ik4.mjs → wYdBXNtyuqNnNqw7.mjs} +2 -2
  102. package/package.json +4 -4
  103. package/browser/cjs/-4uKwgMCs2uA4zYY.cjs +0 -6
  104. package/browser/cjs/23Opade9fWTWmOw5.cjs +0 -6
  105. package/browser/cjs/6SNZR9WEya-Mi0Ec.cjs +0 -1501
  106. package/browser/cjs/7lk46bEggXm0Adux.cjs +0 -6
  107. package/browser/cjs/B0U3u9iqqnQvnw_Z.cjs +0 -6
  108. package/browser/cjs/BEQPlpKfeBPKELfa.cjs +0 -6
  109. package/browser/cjs/BKdxsyIZAckH_1Rs.cjs +0 -6
  110. package/browser/cjs/BKu_2G3LBpnvF7WK.cjs +0 -6
  111. package/browser/cjs/BTWYrYyq7P04Hhgy.cjs +0 -6
  112. package/browser/cjs/BVgdgozKIof0HqZa.cjs +0 -6
  113. package/browser/cjs/BXi-7ztAEss53BNW.cjs +0 -6
  114. package/browser/cjs/BzzSS21ndAnpHnTK.cjs +0 -6
  115. package/browser/cjs/C-JX44FribP4xuCm.cjs +0 -6
  116. package/browser/cjs/C12NQkp7rKKeLgpL.cjs +0 -60
  117. package/browser/cjs/CIisU9Fr1gqlOapx.cjs +0 -13
  118. package/browser/cjs/CRjnB0UGZizopxIy.cjs +0 -7
  119. package/browser/cjs/CfmxldeTiQsDhe4k.cjs +0 -6
  120. package/browser/cjs/CrkVZFNUXb_YVEfl.cjs +0 -6
  121. package/browser/cjs/Csmvu-Gg7GIET2fx.cjs +0 -124
  122. package/browser/cjs/D5kea7N3qYrpyi6Z.cjs +0 -6
  123. package/browser/cjs/DDPVADUPfi4JqKY9.cjs +0 -15
  124. package/browser/cjs/DJSDSOdIMakiUL9U.cjs +0 -6
  125. package/browser/cjs/DgJG2zU2CpBE2JKD.cjs +0 -6
  126. package/browser/cjs/DqHT7AmlwwAApU0v.cjs +0 -32
  127. package/browser/cjs/DqdKJmCBZ3tiiTyS.cjs +0 -6
  128. package/browser/cjs/Dy_w3ejsXCUjhwLi.cjs +0 -6
  129. package/browser/cjs/EAjldglgyKcpKzX6.cjs +0 -6
  130. package/browser/cjs/QraWsiDLYuP865Pt.cjs +0 -6
  131. package/browser/cjs/TMXcSm2F77kJ6GbS.cjs +0 -6
  132. package/browser/cjs/g9Un0PdQLp8LcMP-.cjs +0 -6
  133. package/browser/cjs/hNHT5yLsXAZ-mS5K.cjs +0 -6
  134. package/browser/cjs/o_FLjAWENTjXcsuZ.cjs +0 -6
  135. package/browser/cjs/rBPqKMZ7T6poaL7T.cjs +0 -6
  136. package/browser/esm/3-pvLx1jF0RJ56jT.mjs +0 -472
  137. package/browser/esm/3kB3KaOgV-3ox4C3.mjs +0 -426
  138. package/browser/esm/BJgxNxKnNgVBP4Hp.mjs +0 -10
  139. package/browser/esm/BO-YRuEp35GIVL4O.mjs +0 -10
  140. package/browser/esm/BOL-jxmJyje4-Hxe.mjs +0 -10
  141. package/browser/esm/BSFibAPQFeBovPl3.mjs +0 -10
  142. package/browser/esm/BW04nsyJWeVHBcFW.mjs +0 -10
  143. package/browser/esm/BaGFns-M8bCUjgnc.mjs +0 -3974
  144. package/browser/esm/BifIJRmeTJJLYCr-.mjs +0 -24
  145. package/browser/esm/Br_wraXbAu-VOj0p.mjs +0 -10
  146. package/browser/esm/BvE9cJg2esqHIr98.mjs +0 -10
  147. package/browser/esm/CMO8yX7mxIaFV5GC.mjs +0 -820
  148. package/browser/esm/Cqf8ZomeNI_0U-UD.mjs +0 -29
  149. package/browser/esm/DQwOIKwLzYjUwPmT.mjs +0 -10
  150. package/browser/esm/DXj8p7NZndUJBRAj.mjs +0 -10
  151. package/browser/esm/DcPcMjMOmfyIGaSN.mjs +0 -1575
  152. package/browser/esm/DhqkybSwX2wqkqcf.mjs +0 -24009
  153. package/browser/esm/DpJLw2aGOg6yuBjH.mjs +0 -10
  154. package/browser/esm/Dq32tysuLIKWEFO_.mjs +0 -10
  155. package/browser/esm/DrU-yP_Fb9i7w1lb.mjs +0 -10
  156. package/browser/esm/WY6tkuqX7I-Tw85_.mjs +0 -5651
  157. package/browser/esm/mkuXwkQcdkBHUMsY.mjs +0 -10
  158. package/browser/esm/skZ-cAv6270PFv3k.mjs +0 -10
  159. package/browser/esm/xUdz3zy_nz-hMfhq.mjs +0 -21
  160. package/node/esm/3AEwlfYXdvg1zUXm.mjs +0 -10
  161. package/node/esm/70MScShy9oEFZGC-.mjs +0 -10
  162. package/node/esm/BLET1HFCb5u0-_Eo.mjs +0 -10
  163. package/node/esm/CA504N_MgS6GSFmG.mjs +0 -10
  164. package/node/esm/CCcaxwoCKpK91TYc.mjs +0 -10
  165. package/node/esm/CSgS-BWwvF8YA6gv.mjs +0 -80
  166. package/node/esm/DbezlvRyCGtHZgSZ.mjs +0 -10
  167. package/node/esm/sUZorY3sws86BcMb.mjs +0 -10
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ const t={CONVERT:{s:"Converts a number from one measurement system to another",p:{number:{d:"is the value in from_unit to convert."},fromUnit:{d:"is the units for number."},toUnit:{d:"is the units for the result"}}}};export{t as default};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ const e={DELAY:{s:"Returns the input value after a delay.",p:{time:{d:"the delay time in milliseconds. Default is 1000ms (1 second)."},input:{d:"returns the input."},label:{d:"optional label for the delay function.",v:"No label"}},h:"Testing"},WAIT:{s:"Starts waiting for event",p:{type:{d:"the type of message."},input:{d:"an optional dependency."}},h:"Testing"}};export{e as default};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ const t="text/html",e="text/plain",r="image/png",n=Object.freeze({left:0,top:0}),o=Object.freeze({left:0,top:0,bottom:0,right:0}),a=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:a,EmptyRect:o,EmptyTopLeft:n},Symbol.toStringTag,{value:"Module"}));const i="column",l="row",s=Object.freeze({colIndex:0,rowIndex:0}),c=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),u=(t,e)=>t.colStart===e.colStart?t.rowStart-e.rowStart:t.colStart-e.colStart,d=(t,e)=>t.rowStart===e.rowStart?t.colStart-e.colStart:t.rowStart-e.rowStart,f=(t,e)=>t.rowEnd===e.rowEnd?e.colEnd-t.colEnd:e.rowEnd-t.rowEnd,p=(t,e)=>t.colEnd===e.colEnd?e.rowEnd-t.rowEnd:e.colEnd-t.colEnd,w=(t,e)=>t.colIndex===e.colIndex?t.rowIndex-e.rowIndex:t.colIndex-e.colIndex,h=(t,e)=>t.rowIndex===e.rowIndex?t.colIndex-e.colIndex:t.rowIndex-e.rowIndex,y=(t=l,e=!1)=>e?t!==i?f:p:t!==i?d:u,g=(t,e)=>t===e||!(!t||!e)&&t.rowIndex===e.rowIndex&&t.colIndex===e.colIndex,b=(t,e)=>t===e||!(!t||!e)&&t.rowStart===e.rowStart&&t.rowEnd===e.rowEnd&&t.colStart===e.colStart&&t.colEnd===e.colEnd,m=(t,e)=>!(!t||!e||t.colStart>e.colEnd||e.colStart>t.colEnd||t.rowStart>e.rowEnd||e.rowStart>t.rowEnd),E=(t,e)=>{if(t===e)return!0;if(!t||!e||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!b(t[r],e[r]))return!1;return!0},S=(t,e,r)=>{if(!t&&!e)return null;if(!t)return r?e:{...e};if(!e)return r?t:{...t};const n=Math.min(t.colStart,e.colStart),o=Math.min(t.rowStart,e.rowStart),a=Math.max(t.colEnd,e.colEnd),i=Math.max(t.rowEnd,e.rowEnd);let l=r;return l?(l.colStart=n,l.rowStart=o,l.colEnd=a,l.rowEnd=i):l={colStart:n,rowStart:o,colEnd:a,rowEnd:i},l},v=(t,e)=>{if(!e||0===e.length)return t;const r={...t};for(let t=0;t<e.length;t++){const n=e[t];m(r,n)&&(r.rowStart=Math.min(r.rowStart,n.rowStart),r.colStart=Math.min(r.colStart,n.colStart),r.rowEnd=Math.max(r.rowEnd,n.rowEnd),r.colEnd=Math.max(r.colEnd,n.colEnd))}return r},x=[null,null],_=(t,e,r)=>{if(t[0].value===t[1].value)return e};function O(t,e=2,r,n=l,o){let a=[...t];if(e<=0||t.length<=1)return a;let s=n===i,c=0,u=!1;do{const t=a.sort(y(s?l:i));a=[],a.push(t[0]);const e=t.length;let d=0,f=t[0],p=f.colStart,w=f.rowStart,h=f.colEnd,g=f.rowEnd;for(let i=1;i<e;i++){const e=t[i];let l=!1;if(l=s?f&&w===e.rowStart&&g===e.rowEnd&&h+1===e.colStart:f&&p===e.colStart&&h===e.colEnd&&g+1===e.rowStart,l){let t={colStart:p,rowStart:w,colEnd:s?e.colEnd:h,rowEnd:s?g:e.rowEnd};if(void 0!==f.value&&(t.value=f.value),r){const a=o??[null,null];a[0]=f,a[1]=e,t=r(a,t,n)}if(t){a[d]=t,u=!0,f=t,p=f.colStart,w=f.rowStart,h=f.colEnd,g=f.rowEnd;continue}}a[++d]=e,f=e,p=f.colStart,w=f.rowStart,h=f.colEnd,g=f.rowEnd}c++,s=!s,1===c&&(u=!0)}while(c<e&&u&&a.length>1);return a}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:s,EmptyRange:c,cellToRange:(t,e)=>{if(!t)return null;let r=e;return r||(r={...t},delete r.colIndex,delete r.rowIndex),r.colStart=t.colIndex??0,r.rowStart=t.rowIndex??0,r.colEnd=t.colIndex??0,r.rowEnd=t.rowIndex??0,r},columnFirstCellComparator:w,columnFirstRangeComparator:u,createCellComparator:(t=l,e=!1)=>e?t!==i?(t,e)=>t.rowIndex===e.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex:(t,e)=>t.colIndex===e.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex:t!==i?h:w,createConflatingRanges:(t,e=!1)=>{const r=[];let n,o,a=Number.MIN_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;return{append:(i,l,c)=>{let u=!0;const d=void 0!==c;if(d){const r=t?t(o,c,e):o===c?c:void 0;void 0===r?u=!1:c=r}if(u&&l===s+1&&i===a)return e?n.rowEnd=l:n.colEnd=l,s=l,void(o=c);n&&r.push(n);const f=e?i:l,p=e?l:i;n={colStart:f,rowStart:p,colEnd:f,rowEnd:p},d&&(n.value=c),a=i,s=l,o=c},done:t=>(n&&(r.push(n),n=null),t?O(r,3,!0===t?_:t,e?i:l,x):r)}},createRangeComparator:y,defaultRange:(t,e,r)=>t?r?(r.colStart=t.colStart??e.colStart,r.rowStart=t.rowStart??e.rowStart,r.colEnd=t.colEnd??e.colEnd,r.rowEnd=t.rowEnd??e.rowEnd,r):{colStart:t.colStart??e.colStart,rowStart:t.rowStart??e.rowStart,colEnd:t.colEnd??e.colEnd,rowEnd:t.rowEnd??e.rowEnd}:e,extendRangeToIntersectingRanges:v,extendRangeToUnionRanges:(t,e)=>{if(!e||0===e.length)return t;let r=t,n=null;for(;!b(r,n);)n=r,r=v(n,e);return r},indexOfCoords:(t,e)=>{const r={colStart:t.colIndex,rowStart:t.rowIndex,colEnd:t.colIndex,rowEnd:t.rowIndex};for(let t=e.length-1;t>=0;t--)if(m(r,e[t]))return t;return-1},intersectRanges:(t,e,r)=>{if(!t)return r?e:{...e};if(!e)return r?t:{...t};if(!t&&!e||t.rowStart>e.rowEnd||t.rowEnd<e.rowStart||t.colStart>e.colEnd||t.colEnd<e.colStart)return null;const n=Math.max(t.colStart,e.colStart),o=Math.max(t.rowStart,e.rowStart),a=Math.min(t.colEnd,e.colEnd),i=Math.min(t.rowEnd,e.rowEnd);let l=r;return l?(l.colStart=n,l.rowStart=o,l.colEnd=a,l.rowEnd=i):l={colStart:n,rowStart:o,colEnd:a,rowEnd:i},l},isCellWithinRange:(t,e)=>!(!t||!e||t.rowIndex<e.rowStart||t.rowIndex>e.rowEnd||t.colIndex<e.colStart||t.colIndex>e.colEnd),isEqualCells:g,isEqualRanges:b,isEqualRangesArrays:E,isEqualSelectionCoords:(t,e)=>t===e||!(!t||!e)&&t.rangeIndex===e.rangeIndex&&!!g(t.cell,e.cell)&&E(t.ranges,e.ranges),isRangeWithinRange:(t,e)=>!(t.rowStart<e.rowStart||t.rowEnd>e.rowEnd||t.colStart<e.colStart||t.colEnd>e.colEnd),isRangesIntersect:m,isSingleCell:t=>!!t&&t.rowEnd===t.rowStart&&t.colStart===t.colEnd,isValidRange:t=>!(!t||"number"!=typeof t.colStart||t.colStart<0||"number"!=typeof t.colEnd||t.colEnd<t.colStart||"number"!=typeof t.rowStart||t.rowStart<0||"number"!=typeof t.rowEnd||t.rowEnd<t.rowStart),mergeRangedValues:O,rowFirstCellComparator:h,rowFirstRangeComparator:d,sanitizeRange:t=>t?{colStart:t.colIndex??t.colStart??0,rowStart:t.rowIndex??t.rowStart??0,colEnd:t.colIndex??t.colEnd??0,rowEnd:t.rowIndex??t.rowEnd??0}:null,translateRange:(t,e=-t.rowStart,r=-t.colStart,n)=>n?(n.colStart=t.colStart+r,n.rowStart=t.rowStart+e,n.colEnd=t.colEnd+r,n.rowEnd=t.rowEnd+e,n):{colStart:t.colStart+r,rowStart:t.rowStart+e,colEnd:t.colEnd+r,rowEnd:t.rowEnd+e},unionRanges:S,unionRangesArrays:(t,e,r)=>{if(!t||0===t.length)return null;if(1===t.length&&!e)return t[0];let n=t[0];for(let e=1;e<t.length;e++)n=S(n,t[e],r);return e&&(n=S(n,e,r)),n}},Symbol.toStringTag,{value:"Module"}));const I="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function j(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){const e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||t.$$typeof===I}(t)}function T(t,e){return!1!==e.clone&&e.isMergeableObject(t)?A((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function C(t,e,r){return t.concat(e).map(function(t){return T(t,r)})}function M(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]));var e}function R(t,e){try{return e in t}catch{return!1}}function A(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||C,r.isMergeableObject=r.isMergeableObject||j,r.cloneUnlessOtherwiseSpecified=T;const n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){const n={};return r.isMergeableObject(t)&&M(t).forEach(function(e){n[e]=T(t[e],r)}),M(e).forEach(function(o){var a,i;R(a=t,i=o)&&(!Object.hasOwnProperty.call(a,i)||!Object.propertyIsEnumerable.call(a,i))||(R(t,o)&&r.isMergeableObject(e[o])?n[o]=function(t,e){if(!e.customMerge)return A;const r=e.customMerge(t);return"function"==typeof r?r:A}(o,r)(t[o],e[o],r):n[o]=T(e[o],r))}),n}(t,e,r):T(e,r)}A.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,r){return A(t,r,e)},{})};const F=Object.freeze([]),L=Object.freeze({}),U=t=>t,P=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),k=(t,e)=>t===e||!(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)&&t.every((t,r)=>t===e[r]),N=t=>"object"==typeof t&&!Array.isArray(t)&&null!==t,B=t=>"object"!=typeof t||Array.isArray(t)||null===t?t:(Object.keys(t).forEach(function(e){t[e]&&"object"==typeof t[e]?B(t[e]):null!==t[e]&&void 0!==t[e]||delete t[e],"object"==typeof t[e]&&0===Object.keys(t[e]).length&&delete t[e]}),0===Object.keys(t).length?null:t),z=(t,e)=>!(t!==e&&!k(t,e)&&!t.isEqual?.(e)),q=(t,e,r=z)=>{if(null==t||t===e)return null;if(!t||"object"!=typeof t||Array.isArray(t)||t.isImmutable?.())return r(t,e)?null:t;const n=Object.keys(t);if(0===n.length)return null;let o=!1;for(let a=0;a<n.length;a++){const i=n[a];null===q(t[i],e?.[i],r)&&(o=!0,delete t[i])}return o&&0===Object.keys(t).length?null:void 0},D="object"==typeof performance&&"function"==typeof performance.now?()=>performance.now():()=>Date.now(),$=t=>null==t,W=(t,e)=>!(e.left>t.right||e.right<t.left||e.top>t.bottom||e.bottom<t.top),V=!(typeof window>"u"||!window.document||!window.document.createElement),G={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},J=()=>{if(H())return G.Node;const t=void 0!==globalThis.navigator&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return t?/(win32|win64|windows|wince)/i.test(t)?G.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(t)?G.MacOS:/(iphone|ipad|ipod)/i.test(t)?G.IOS:/android/.test(t)?G.Android:/linux/.test(t)?G.Linux:/^((?!chrome|android|).)*safari/i.test(t)?G.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(t)?G.Firefox:G.Unknown:G.Unknown};function H(){return typeof process<"u"&&"node"===process.release?.name||(typeof process<"u"&&process.browser,!1)}const K=(t,e=!1)=>(document.hasFocus()||e)&&(t===document.activeElement||t?.contains(document.activeElement)),Y=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:F,EmptyObject:L,OSType:G,arrayMove:function(t,e,r){const n=t.slice();return n.splice(r<0?n.length+r:r,0,n.splice(e,1)[0]),n},asNumber:t=>{const e=1*t;return Number.isFinite(e)?e:0},camelToPrettyCase:t=>1===t.length?t.toUpperCase():t.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:V,cancelTimeout:t=>{cancelAnimationFrame(t.id)},castToString:t=>null==t||void 0===t?"":"string"!=typeof t?""+t:t,cloneObject:t=>$(t)?t:JSON.parse(JSON.stringify(t)),consoleWithNoSource:(...t)=>new Promise(e=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,t),e()})}),debounce:function(t,e=300,r=!1){let n,o,a,i,l=0;function s(){let c=Date.now()-l;c<e&&c>=0?n=setTimeout(s,e-c):(n=null,r||(i=t.apply(a,o),a=o=null))}null==e&&(e=100);const c=function(){a=globalThis,o=arguments,l=Date.now();var c=r&&!n;return n||(n=setTimeout(s,e)),c&&(i=t.apply(a,o),a=o=null),i};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(i=t.apply(a,o),a=o=null,clearTimeout(n),n=null)},c},deepEqual:function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;let n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;0!==o--;)if(!t(e[o],r[o]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(o of e.entries())if(!r.has(o[0]))return!1;for(o of e.entries())if(!t(o[1],r.get(o[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(o of e.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;0!==o--;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!==o--;){let n=a[o];if(!("_owner"===n&&e.$$typeof||t(e[n],r[n])))return!1}return!0}return e!=e&&r!=r},deepFreeze:function t(e){return Object.freeze(e),Object.keys(e).forEach(r=>{"object"!=typeof e[r]||null===e[r]||Object.isFrozen(e[r])||t(e[r])}),e},deepMerge:A,diffValues:(t,e)=>{const r={},n=Object.keys(e),o=n.length;for(let a=0;a<o;a++){const o=n[a];t[o]!==e[o]&&(void 0===t[o]?r[o]=e[o]:r[o]=t[o])}return 0===Object.keys(r).length?null:r},findEqualOrGreater:function(t,e,r=U){let n=0,o=t.length-1;for(;n<=o;){let a=Math.floor((n+o)/2),i=r(t[a]);if(i===e)return a;i<e?n=a+1:o=a-1}return n},findEqualOrLesser:function(t,e,r=U){let n=t.length-1,o=0;for(;n>=o;){let a=Math.floor((n+o)/2),i=r(t[a]);if(i===e)return a;i>e?n=a-1:o=a+1}return n},findNextStep:(t,e=!0,r=15,n=10,o=400)=>{const a=Math.max(t-n,0)+(e?1:-1);return Math.min(o,Math[e?"ceil":"floor"](a/r)*r+n)},getDPI:()=>{let t=1;return"object"==typeof window&&(t=window.devicePixelRatio||1),t},getFromPath:(t,e)=>{const r=e.split(".");let n=t;for(let t=0;t<r.length;t++){const e=r[t];if(!n)return null;let o=n[e];if("function"==typeof o&&(o=o.bind(n)()),!o||!N(o))return o;n=o}return n??null},getOS:J,hasFocus:K,isDefined:t=>null!=t,isEmpty:t=>null==t||""===t,isEqualArrays:k,isEqualBounds:(t,e)=>t===e||!(t&&!e||e&&!t)&&t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height,isEqualObjectKeys:(t,e)=>{if(t===e)return!0;if(t&&!e||e&&!t)return!1;const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!1;for(let n=0;n<r.length;n++)if(t[r[n]]!==e[r[n]])return!1;return!0},isNode:H,isNullOrUndefined:$,isNumeric:t=>{const e=1*t;return Number.isFinite(e)&&"number"==typeof e},isObject:N,isPromiseLike:t=>!!t&&"function"==typeof t.then,isRectInsideRect:(t,e)=>t.top>=e.top&&t.bottom<=e.bottom&&t.left>=e.left&&t.right<=e.right,isRectIntersect:W,mergeContentful:(...t)=>{const e=t.length;if(e>0&&void 0!==t[e-1]&&!N(t[e-1]))return t[e-1];let r=t[0]||{};for(let n=1;n<e;n++)r=A(r,t[n]||{},{arrayMerge:(t,e)=>[...e]});return r},nextTick:t=>{typeof window<"u"&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(()=>{t()}):("function"==typeof setImmediate?setImmediate:setTimeout)(()=>{t()})},openFileDialog:(t="*.*")=>new Promise((e,r)=>{if(!V)return void r("Unable to open dialog with no dom.");const n=document.createElement("input");n.type="file",n.accept=t;let o=null,a=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{o||a||(a=!0,e(null))},1e3)},{once:!0,passive:!0}),n.onchange=()=>{if(o=n.files[0],o){if(a)return void console.warn("File open detected after faux cancel.",o);e(o)}},n.autofocus=!0,n.click()}),rafThrottle:t=>{let e,r=!1,n=function(){r=!1,t(e)};return function(t){e=t,e&&e.persist&&e.persist(),r||(r=!0,requestAnimationFrame(n))}},removeEmptyProperties:B,removeEqualValues:q,removeListenerAll:t=>{if(!t)return[];for(let e=0;e<t.length;e++)t[e]&&t[e]();return[]},requestTimeout:(t,e)=>{const r=D(),n={id:requestAnimationFrame(function o(){D()-r>=e?t.call(null):n.id=requestAnimationFrame(o)})};return n},roundAccurately:(t,e=0)=>{if(null==t||!isFinite(t))return null;const r=10**e;return Number(Math.round(t*r)/r)},setToPath:(t,e,r)=>{const n=e.split(".");let o=t;if(!o)throw new Error("Can not set path to a null path.");for(let t=0;o&&t<n.length-1;t++){const e=n[t];let r=o[e];if(null==r&&(r={},o[e]=r),!N(r))throw new Error("Can not set path to a non object path.");o=r}if("number"!=typeof r&&"boolean"!=typeof r&&"string"!=typeof r&&!N(r))throw new Error(`Can not set path to ${r} that is not a a supported primitive.`);return o[n[n.length-1]]=r,t},splitNumber:t=>{let e=Math.abs(t);if(isNaN(e)||!isFinite(t))return null;let r=0|e,n=e-r,o=0,a=0,i=1;if(n>5e-8)for(;a<8&&Math.abs(o/i-n)>5e-8;)a++,i*=10,o=Math.round(n*i);return{ip:Math.trunc(t),fp:o,ipLength:Math.ceil(Math.log10(r+1)),fpLength:a}},subtractRect:(t,e,r=!1)=>{if(!e)return[t];if(!W(t,e))return[];const n=[];let o=t;const a=()=>{e.top>o.top&&e.top<o.bottom&&(n.push({...o,bottom:e.top}),o={...o,top:e.top})},i=()=>{e.bottom>o.top&&e.bottom<o.bottom&&(n.push({...o,top:e.bottom}),o={...o,bottom:e.bottom})},l=()=>{e.right>o.left&&e.right<o.right&&(n.push({...o,left:e.right}),o={...o,right:e.right})},s=()=>{e.left>o.left&&e.left<o.right&&(n.push({...o,right:e.left}),o={...o,left:e.left})};return r?(s(),l(),a(),i()):(a(),i(),l(),s()),n},textToKey:t=>t.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(t,e){let r=null;return(...n)=>{const o=Date.now();(!r||o-r>=e)&&(r=o,t(...n))}},toSafeJSON:function t(e){if(null===e||"object"!=typeof e)return e;if("function"==typeof e.toJSON)return e.toJSON();if(Array.isArray(e))return e.map(e=>t(e));if("function"==typeof e.toString&&e.toString!==Object.prototype.toString)return e.toString();const r={};for(const n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n]));return r},transpose:t=>{if(!t)return t;const e=t.length,r=t[0].length,n=[];for(let t=0;t<r;t++)n[t]=Array(e);for(let o=0;o<e;o++)for(let e=0;e<r;e++)n[e][o]=t[o][e];return n},uuidV4:P,validEnumValue:(t,e)=>{if(!Object.values(t).includes(e))throw new Error(`Invalid type: ${e??"null"}. Must be one of: ${Object.values(e).join(", ")}.`)},whenFocus:async(t,e=!1)=>new Promise(r=>{K(t,e)?r(!0):t.addEventListener("focusin",()=>{r(!0)},{once:!0}),t.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:t=>`Invalid argument: '${t}'.`},Symbol.toStringTag,{value:"Module"}));const Z=t=>{const e=new Uint8Array(t),r=e.byteLength;let n="";for(let t=0;t<r;t++)n+=String.fromCharCode(e[t]);if(typeof window<"u"&&"function"==typeof globalThis.btoa)return globalThis.btoa(n);if(typeof Buffer<"u")return Buffer.from(n,"binary").toString("base64");throw new Error("Unsupported environment")},X=t=>new Promise((e,r)=>{if(t)if(typeof FileReader<"u"){const n=new FileReader;n.onload=()=>{e(n.result)},n.onerror=()=>{r(n.error)},n.readAsText(t)}else if(typeof Buffer<"u"){const n=t=>Buffer.from(t).toString("utf-8");t.arrayBuffer().then(t=>{e(n(t))}).catch(t=>{r(t)})}else r(new Error("Unsupported environment"));else e("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:Z,base64ToArrayBuffer:t=>{const e=typeof window<"u"&&"function"==typeof globalThis.atob?globalThis.atob(t):Buffer.from(t,"base64").toString("binary"),r=e.length,n=new Uint8Array(r);for(let t=0;t<r;t++)n[t]=e.charCodeAt(t);return n.buffer},blobToString:X},Symbol.toStringTag,{value:"Module"}));const Q="data:image/png;base64,",tt="Unable to resolve image.",et=t=>new Promise(async(e,r)=>{let n=null;try{n=new Image,n.src=t,n.addEventListener("load",function(){e({width:n.naturalWidth,height:n.naturalHeight})},{once:!0}),n.addEventListener("error",function(){URL.revokeObjectURL(t),r("Invalid Image")},{once:!0}),await n.decode("sync")}catch{n?.src&&URL.revokeObjectURL(n.src)}n||r(tt)}),rt="image/svg+xml";var nt,ot;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Q,getImageDataUrl:(t,e=1)=>new Promise(async(r,n)=>{let o=null;try{o=new Image,o.src=t,o.addEventListener("load",function(){try{const t=document.createElement("canvas");t.width=o.naturalWidth,t.height=o.naturalHeight,t.getContext("2d").drawImage(o,0,0);const n=t.toDataURL("image/png",e);r({elemImg:o,dataUrl:n})}catch(e){URL.revokeObjectURL(t),n(e)}},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(t),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(tt)}),loadImageDetails:async(t,e=null)=>{let r=null;const n=async()=>{try{const n=e??"image/*",o=URL.createObjectURL(new Blob([t],{type:n})),a=await et(o);r={mimeType:n,naturalDimensions:a,asUrl:o}}catch{}},o=async()=>{try{const n=(new TextDecoder).decode(t),o=URL.createObjectURL(new Blob([n],{type:rt})),a=await et(o);r={mimeType:e??rt,naturalDimensions:a,asUrl:o,asSVGText:n}}catch{}};if(e===rt?await o():e.startsWith("image/")?await n():(await n(),r||await o()),!r)throw new Error("Failed to load image");return r}},Symbol.toStringTag,{value:"Module"})),(ot=nt||(nt={})).resolveTypedUpdates=(t,e,r,n)=>{if(null===t)return t;if(void 0===t)return n;let o=t;if(e?.shorthand){const n=e?.shorthand(t,r);void 0!==n&&(o=n)}if(null!==o&&e?.getSubType){const t=e.getSubType(o);t&&(e=t)}const a=e?.properties,i=e?.arrayType??!1;let l=o;if(e&&e.merge&&l&&n)l=e.merge(l,n,r);else if(!i&&a){const t=Object.keys({...o,...n});l=null;for(let e=0;e<t.length;e++){const i=t[e];let s,c=o[i];if(void 0!==c){const t=a[i];s=t?(0,ot.resolveTypedUpdates)(c,t,r,n?.[i]):c}else s=n?.[i];null!=s&&(l=l??{},l[i]=s)}}return l};const at="The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",it="You do not have permissions to access the clipboard.\nAll copy and paste operations will be limited to the browser tab.",lt={Safari:"The Safari browser does not support advanced copy and paste.\nCopy and paste will be limited to within the browser tab.\n\nPlease use Chrome or Edge if external copy and paste is required.",Perms:it,PermsWrite:J()===G.Safari?at:it,PermsRead:J()===G.Safari?at:it},st=async()=>new Promise(t=>{document.hasFocus()?t():globalThis.addEventListener?.("focus",()=>{t()},{once:!0}),document.activeElement.focus?.()}),ct=async(t,e,r)=>{if(J()===G.Safari)return await r(new Error(lt.Safari));try{const n=async t=>{try{return await t()}catch(t){if(t.message?.includes("Document is not focused"))return!1;throw t}},o=await(globalThis?.navigator?.permissions?.query({name:t,allowWithoutGesture:!0,allowWithoutSanitization:!0}));let a=!1;if("prompt"===o.state&&(a=await n(e)),a||"granted"!==o.state||(a=await e()),!a)return await r(new Error(o.state))}catch(t){return"No valid data on clipboard"===t.message||"DataError"===t.name?void 0:await r(t)}},ut=async e=>{try{return await e.read({unsanitized:[t]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const t=(t,e)=>new Blob([e],{type:t});class e{constructor(e,r){this._items={},this._types=Object.keys(e);const n={},o=Object.keys(e);for(let r=0;r<o.length;r++){const a=o[r];let i=e[a];n[a]="string"==typeof i?t(a,i):i}this._items=n,this._presentationStyle=r?.presentationStyle??"unspecified"}get types(){return this._types}getType(t){return Promise.resolve(this._items[t])}supports(t){return!0}}globalThis.ClipboardItem=e}const dt=async(e,r=t)=>new Promise(async(t,n)=>{try{const n=await(async(t,e)=>{if(!t)return null;const r=await ut(t);let n=!1;for(let t=0;!n&&r&&t<r.length;t++)if(n=r[t].types.includes(e),n)return await r[t].getType(e);return n?void 0:null})(e,r);if(n){const e=new FileReader;e.onload=()=>{t(e.result)},e.onerror=()=>{t("")},e.readAsText(n)}else t("")}catch(t){n(t)}}),ft=async(e,r=t)=>{const n=await dt(e,r);if(!n)return null;let o=null;try{o=(new DOMParser).parseFromString(n,t)}catch{console.warn("Can't parse html from clipboard.")}return o},pt="clipboard-uuid",wt="web text/uuid",ht=t=>`<div style="display:none" ${pt}="${t}"/>`,yt=(e,r)=>{let n=null;try{const o=(new DOMParser).parseFromString(r,t);o.body.firstElementChild.setAttribute(pt,e),n=o.getElementsByTagName("body")[0].innerHTML}catch(t){console.warn("Can't embed uuid.",t)}return n},gt=(t,e)=>{if(!e||!t)return!1;try{const r=e.querySelectorAll(`[${pt}="${t}"]`);if(r&&1===r.length)return!0;if(e.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class bt{constructor(t){if(void 0===t?.nativeClipboard||!0===t?.nativeClipboard)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{!0===t?.nativeClipboard&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=!1===t?.nativeClipboard?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await ct("clipboard-read",async()=>{await st();const e=await dt(this._nativeClipboard,wt);if(!this._state||e&&e===this._state.uuid)return!0;const r=await ft(this._nativeClipboard,t);return!this._state||(gt(this._state.uuid,r)||this.clear(),!0)},async t=>{"denied"===t?.message||t.message?.includes("Document is not focused")||J()===G.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",e=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const e=this;return await ct("clipboard-read",async()=>{if(await st(),this._state?.uuid){const r=await dt(this._nativeClipboard,wt);if(r&&r===e._state.uuid)return!0;const n=await ft(this._nativeClipboard,t);if(gt(e._state?.uuid,n))return!0}return e._state={items:await ut(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:P(),items:t,ref:null})}async _write(n){if(!this._nativeClipboard)return this._state=n,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const o=this,a=[],i=n.uuid;let l=n.items??[];const s=()=>{o._state={uuid:i,ref:n.ref,items:a},o.dispatchEvent(new Event("clipboardwrite")),o.dispatchEvent(new Event("clipboardchange"))};await ct("clipboard-write",async()=>{await st(),i&&0===l.length&&(l.push(new ClipboardItem({[wt]:new Blob([i],{type:wt})})),l.push(new ClipboardItem({[t]:new Blob([ht(i)],{type:t})})));for(let n=0;n<Math.min(1,l.length);n++){const o=l[n];let s=o.types.indexOf(t),c=null;if(-1!==s){const e=await o.getType(t);c=await X(e),c&&(c=yt(i,c))}if(!c&&o.types.includes(e)){const t=await o.getType(e);if(t){let e=null;"string"==typeof t?(console.warn("text as string",t),e=t):e=await X(t),e&&(c=`<div ${pt}="${i}">${e}</div>`)}}if(!c&&o.types.includes(r)){const t=await o.getType(r),e=Z(await t.arrayBuffer());c=`<div ${pt}="${i}"><img src="${Q+e}"/></div>`}!c&&i&&(c=ht(i));const u=new Blob([c??""],{type:t}),d={};for(let t=0;t<o.types.length;t++){const e=o.types[t];d[e]=t===s?u:o.getType(e)}c&&-1===s&&(d[t]=u),i&&(d[wt]=new Blob([i],{type:wt})),a.push(new ClipboardItem(d))}try{a&&0!==a.length?await this._nativeClipboard.write(a):await(async t=>{t&&await t.writeText("")})(this._nativeClipboard)}catch(t){t.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",t)}return s(),!0},async t=>{this.dispatchEvent(new Event("clipboarderrorwrite")),s()})}async writeReference(n){if(!n)return void this.clear();let o=null;const a={};try{const t=await(n.toText?.())??null;t&&(a[e]=new Blob([t??""],{type:e}))}catch(t){o=t}try{const e=await(n.toHtml?.())??null;e&&(a[t]=new Blob([e],{type:t}))}catch(t){o=t,console.warn("export to html",t)}try{const t=await(n.toImage?.())??null;t&&(a[r]=t)}catch(t){o=t,console.warn("export to png",t)}const i=this._write({uuid:P(),ref:n,items:Object.keys(a).length>0?[new ClipboardItem(a)]:null});if(o)throw o;return i}clear(t=!1){this._state&&(this._state=null,t&&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(t,r)=>{const n=await this.read();let o=null;for(let t=0;!o&&n&&t<n.length;t++)n[t].types.includes(e)&&(o=await n[t].getType(e));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=t=>{r(t)}})}async writeText(t){const r=[new ClipboardItem({[e]:new Blob([t],{type:e})})];return this._write({uuid:P(),items:r,ref:null})}addEventListener(t,e,r={}){const n=r?.capture?this._listenersCapture:this._listeners;let o=n.get(t);o||(o=new Map,n.set(t,o)),o.set(e,"boolean"==typeof r?{}:r)}dispatchEvent(t){if(!t)return;const e=e=>{const r=e.get(t.type);r&&r.forEach((e,n)=>{try{"function"==typeof n?n(t):n.handleEvent&&n.handleEvent(t),e.once&&r.delete(n)}catch(t){console.warn(t)}})};return e(this._listenersCapture),e(this._listeners),!0}removeEventListener(t,e,r){const n=r?.capture?this._listenersCapture:this._listeners,o=n.get(t);o&&(o.delete(e),0===o.size&&n.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var mt;(mt=bt||(bt={})).ErrorMessages=lt,mt.Global=new mt;let Et=null,St=null,vt=null;const xt=Object.freeze({compileTypescript:async function(t){if(!t?.source)return null;if(St&&Y.deepEqual(St,t))return Et;const e=await async function(){if(vt)return vt;const{TypeScriptCompiler:t}=await import("./eCZnrKI7SxPgdErZ.mjs");return vt=new t,vt}(),r=await e.compileModule(t);return Et=r,St=t,r}}),_t=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:xt},Symbol.toStringTag,{value:"Module"}));export{Y as $,_t as i};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ const e={ACOS:{s:"Returns the arccosine of a number, in radians in the range 0 to Pi. The arccosine is the angle whose cosine is Number",p:{number:{d:"is the cosine of the angle you want and must be from -1 to 1"}}},ACOSH:{s:"Returns the inverse hyperbolic cosine of a number",p:{number:{d:"is any real number equal to or greater than 1"}}},ACOT:{s:"Returns the arccotangent of a number, in radians in the range 0 to Pi.",p:{number:{d:"is the cotangent of the angle you want"}}},ACOTH:{s:"Returns the inverse hyperbolic cotangent of a number",p:{number:{d:"is the hyperbolic cotangent of the angle that you want"}}},ASIN:{s:"Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2",p:{number:{d:"is the sine of the angle you want and must be from -1 to 1"}}},ASINH:{s:"Returns the inverse hyperbolic sine of a number",p:{number:{d:"is any real number equal to or greater than 1"}}},ATAN:{s:"Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2",p:{number:{d:"is the tangent of the angle you want"}}},ATAN2:{s:"Returns the arctangent of the specified x- and y- coordinates, in radians between -Pi and Pi, excluding -Pi",p:{x:{d:"is the x-coordinate of the point"},y:{d:"is the y-coordinate of the point"}}},ATANH:{s:"Returns the inverse hyperbolic tangent of a number",p:{number:{d:"is any real number between -1 and 1 excluding -1 and 1"}}},COS:{s:"Returns the cosine of an angle",p:{number:{d:"is the angle in radians for which you want the cosine"}}},COSH:{s:"Returns the hyperbolic cosine of a number",p:{number:{d:"is any real number"}}},COT:{s:"Returns the cotangent of an angle",p:{number:{d:"is the angle in radians for which you want the cotangent"}}},COTH:{s:"Returns the hyperbolic cotangent of a number",p:{number:{d:"is the angle in radians for which you want the hyperbolic cotangent"}}},CSC:{s:"Returns the cosecant of an angle",p:{number:{d:"is the angle in radians for which you want the cosecant"}}},CSCH:{s:"Returns the hyperbolic cosecant of an angle",p:{number:{d:"is the angle in radians for which you want the hyperbolic cosecant"}}},SEC:{s:"Returns the secant of an angle",p:{number:{d:"is the angle in radians for which you want the secant"}}},SECH:{s:"Returns the hyperbolic secant of an angle",p:{number:{d:"is the angle in radians for which you want the hyperbolic secant"}}},SIN:{s:"Returns the sine of an angle",p:{number:{d:"is the angle in radians for which you want the sine. Degrees * PI()/180 = radians"}}},SINH:{s:"Returns the hyperbolic sine of a number",p:{number:{d:"is any real number"}}},TAN:{s:"Returns the tangent of an angle",p:{number:{d:"is the angle in radians for which you want the tangent. Degrees * PI()/180 = radians"}}},TANH:{s:"Returns the hyperbolic tangent of a number",p:{number:{d:"is any real number"}}}};export{e as default};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ class r{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await import("./C9XmeyBj3CidGuuQ.mjs");return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(r){throw console.error("Failed to compile using worker:",r),r}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}}export{r as TypeScriptCompiler};
@@ -1,89 +1,7 @@
1
- import { ah as e, V as o, O as r, X as t, ag as l, k as n, l as i, a1 as I, Z as C, Y as m, K as c, i as d, W as u, ay as b, z as S, n as T, J as g, ac as p, ao as F, a2 as U, af as h, ai as y, ak as E, aj as R, a0 as x, ap as A, _ as O, S as f, R as M, al as k, ad as N, P as w, w as B, az as P, aw as v, am as j, a7 as D, aq as L, a4 as V, a5 as W, as as q, at as z, Q as G, u as H, o as J, L as K, p as Q, q as X, s as Y, a6 as Z, j as _, v as $, x as aa, ae as sa, ax as ea, y as oa, H as ra, a9 as ta, aa as la, M as na, aA as ia, U as Ia, an as Ca, ab as ma, I as ca, a8 as da, ar as ua, a3 as ba, au as Sa, av as Ta, D as ga, E as pa, N as Fa, A as Ua, B as ha, G as ya, C as Ea, $ as Ra, aC as xa, aB as Aa } from "./DhqkybSwX2wqkqcf.mjs";
2
1
  /**
3
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
4
3
  *
5
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
5
  * License: The license can be found at https://www.sheetxl.com/license.
7
6
  */
8
- export {
9
- e as AddressUtils,
10
- o as AnchorLocation,
11
- r as AutoFill,
12
- t as BufferUtils,
13
- l as Calculation,
14
- n as ChainedError,
15
- i as ClipboardUtils,
16
- I as Color,
17
- C as CommonMessages,
18
- m as CommonUtils,
19
- c as CoordUtils,
20
- d as Deferred,
21
- u as Direction,
22
- b as ExternalRangeClipboardItem,
23
- S as FormulaContext,
24
- T as FormulaError,
25
- g as GeomUtils,
26
- p as IAnchored,
27
- F as IAutoFilter,
28
- U as IBorder,
29
- h as ICalculation,
30
- y as ICell,
31
- E as ICellHeaderRange,
32
- R as ICellRange,
33
- x as IColor,
34
- A as IConditionalFormat,
35
- O as IFill,
36
- f as IFont,
37
- M as IFontCollection,
38
- k as IMovable,
39
- N as IPicture,
40
- w as IPrint,
41
- B as IRange,
42
- P as ISheet,
43
- v as ISheetView,
44
- j as ISort,
45
- D as IStyle,
46
- L as ITableStyle,
47
- V as IText,
48
- W as ITextFrame,
49
- q as ITheme,
50
- z as IThemeCollection,
51
- G as ImageUtils,
52
- H as InternalClipboard,
53
- J as JSONStableStringify,
54
- K as LicenseManager,
55
- Q as MimeType,
56
- X as NotImplementedError,
57
- Y as NullNotAllowedError,
58
- Z as NumberFormat,
59
- _ as Observable,
60
- $ as OutOfBoundsError,
61
- aa as PartialError,
62
- sa as Picture,
63
- ea as RangeClipboardItem,
64
- oa as RangeOrientation,
65
- ra as RangeOrientations,
66
- ta as Resource,
67
- la as ResourceCollection,
68
- na as ScalarType,
69
- ia as Sheet,
70
- Ia as SimpleFontFace,
71
- Ca as Sort,
72
- ma as StringCollection,
73
- ca as StubbedFormulaContext,
74
- da as StyleCollection,
75
- ua as Table,
76
- ba as TextUtils,
77
- Sa as Theme,
78
- Ta as ThemeCollection,
79
- ga as TransactionStore,
80
- pa as TransactionUndoManager,
81
- Fa as Tuple,
82
- Ua as TypedError,
83
- ha as TypedObject,
84
- ya as TypesUtils,
85
- Ea as UndoManager,
86
- Ra as UserError,
87
- xa as Workbook,
88
- Aa as WorkbookView
89
- };
7
+ export{ah as AddressUtils,q as AnchorLocation,W as AutoFill,s as BufferUtils,ag as Calculation,w as ChainedError,M as ClipboardUtils,a1 as Color,u as CommonMessages,a as CommonUtils,j as CoordUtils,v as Deferred,x as Direction,ay as ExternalRangeClipboardItem,o as FormulaContext,n as FormulaError,U as GeomUtils,ac as IAnchored,ao as IAutoFilter,a2 as IBorder,af as ICalculation,ai as ICell,ak as ICellHeaderRange,aj as ICellRange,a0 as IColor,ap as IConditionalFormat,$ as IFill,Z as IFont,Y as IFontCollection,al as IMovable,ad as IPicture,X as IPrint,l as IRange,az as ISheet,aw as ISheetView,am as ISort,a7 as IStyle,aq as ITableStyle,a4 as IText,a5 as ITextFrame,as as ITheme,at as IThemeCollection,y as ImageUtils,P as InternalClipboard,z as JSONStableStringify,R as LicenseManager,A as MimeType,E as NotImplementedError,B as NullNotAllowedError,a6 as NumberFormat,C as Observable,D as OutOfBoundsError,G as PartialError,ae as Picture,ax as RangeClipboardItem,H as RangeOrientation,I as RangeOrientations,a9 as Resource,aa as ResourceCollection,e as ScalarType,aA as Sheet,_ as SimpleFontFace,an as Sort,ab as StringCollection,p as StubbedFormulaContext,a8 as StyleCollection,ar as Table,a3 as TextUtils,au as Theme,av as ThemeCollection,O as TransactionStore,Q as TransactionUndoManager,V as Tuple,S as TypedError,J as TypedObject,K as TypesUtils,L as UndoManager,N as UserError,aC as Workbook,aB as WorkbookView}from"./nE8H93zlwoi3F8Ii.mjs";