@sheetxl/studio-vanilla 0.4.13 → 0.4.14

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 (314) hide show
  1. package/README.md +2 -2
  2. package/browser/cjs/10IK8MFijJb-yvV6.cjs +7 -0
  3. package/browser/cjs/1bCMnueqxHW3rn0c.cjs +6 -0
  4. package/browser/cjs/AnJTeEGq7VP4T1b7.cjs +161 -0
  5. package/browser/cjs/BH3MYcOF7rxLX3Bk.cjs +15 -0
  6. package/browser/cjs/BQ4QeJYaIhLaInyR.cjs +6 -0
  7. package/browser/cjs/BU5k1OZewc-Z-kR9.cjs +6 -0
  8. package/browser/cjs/BlwK-VslgEVH2cgX.cjs +145 -0
  9. package/browser/cjs/Bm9fNNMIOLIwq-94.cjs +6 -0
  10. package/browser/cjs/BtiY-n4sGy6WaqNg.cjs +32 -0
  11. package/browser/cjs/BxgDhdrrKrJMEaXd.cjs +6 -0
  12. package/browser/cjs/BzT1y15V6Zs7c_zX.cjs +6 -0
  13. package/browser/cjs/C0ySf2emOB0Mslc-.cjs +6 -0
  14. package/browser/cjs/CE5U7gB5L-PE17gV.cjs +6 -0
  15. package/browser/cjs/CHd9vauNLHnOLflj.cjs +6 -0
  16. package/browser/cjs/CJZtyunL_qaXFylY.cjs +12 -0
  17. package/browser/cjs/CJoJ19i1z94kndlS.cjs +19 -0
  18. package/browser/cjs/CNcsGELwCAV-A5oH.cjs +16 -0
  19. package/browser/cjs/CTuM_aZX8wZICUe_.cjs +6 -0
  20. package/browser/cjs/CWW_yQpIswo7DEAT.cjs +6 -0
  21. package/browser/cjs/CXIHULOe7x4DYKXw.cjs +12 -0
  22. package/browser/cjs/CYLnJHryQcQO4XoG.cjs +6 -0
  23. package/browser/cjs/C_mbaid3FQ52usBI.cjs +6 -0
  24. package/browser/cjs/Cj_1qUo5cZ3FnOpK.cjs +6 -0
  25. package/browser/cjs/Cl0XSnWVDoaHTIlF.cjs +6 -0
  26. package/browser/cjs/CnLdhURNkVXo_0Eg.cjs +6 -0
  27. package/browser/cjs/CpIIsygD5mnJyl47.cjs +1501 -0
  28. package/browser/cjs/CpRfx14is2_4Wgp3.cjs +6 -0
  29. package/browser/cjs/Cuq8Nim-ol5Gdehe.cjs +6 -0
  30. package/browser/cjs/D4NcrJlqcLExwCNT.cjs +124 -0
  31. package/browser/cjs/D4vbOk4hD8-b-c10.cjs +6 -0
  32. package/browser/cjs/D5YUIQeOcujtq6XS.cjs +7 -0
  33. package/browser/cjs/D6uIvR-6Y690_Em2.cjs +11 -0
  34. package/browser/cjs/DAbScbuk-sjZXMIC.cjs +11 -0
  35. package/browser/cjs/DBNXGIWfZmgb_sHL.cjs +6 -0
  36. package/browser/cjs/DCd5OZXj2IRbxEF2.cjs +6 -0
  37. package/browser/cjs/DFNisISrsMnZrV4B.cjs +6 -0
  38. package/browser/cjs/DIYOARVcGtRjKpjZ.cjs +6 -0
  39. package/browser/cjs/DL4HgriZ3TY2K-QP.cjs +6 -0
  40. package/browser/cjs/DPbzY4ppgKPrdbWc.cjs +6 -0
  41. package/browser/cjs/DQGdVVTxixgptLdj.cjs +366 -0
  42. package/browser/cjs/DWzQm8Q32qNP7qKL.cjs +6 -0
  43. package/browser/cjs/D_7RtbQABH1zdcjr.cjs +7 -0
  44. package/browser/cjs/D_Q0s9KLnWHwKxTK.cjs +6 -0
  45. package/browser/cjs/DdTcwutSPJMeCIv3.cjs +6 -0
  46. package/browser/cjs/DlnKrZRyxBfbqaTi.cjs +13 -0
  47. package/browser/cjs/DtpB0PMEtamaB-Hv.cjs +6 -0
  48. package/browser/cjs/Dv8SE05ABKNLPY6A.cjs +6 -0
  49. package/browser/cjs/DxBLU16_E62Umowp.cjs +6 -0
  50. package/browser/cjs/VU_KaqGTjvnisS9e.cjs +6 -0
  51. package/browser/cjs/bS_BOH9cvVCFy36v.cjs +6 -0
  52. package/browser/cjs/dbUUj8LyIitsdYpk.cjs +6 -0
  53. package/browser/cjs/eZGLUWbfY3JdZRM5.cjs +6 -0
  54. package/browser/cjs/index.cjs +3 -4
  55. package/browser/cjs/mBk4Z4LZ65b3f58_.cjs +6 -0
  56. package/browser/cjs/rIOsSIPwxoXlIawS.cjs +6 -0
  57. package/browser/cjs/sMBG5eQ3-iacLXUm.cjs +6 -0
  58. package/browser/cjs/tShlMZrIxsGZSeHX.cjs +42 -0
  59. package/browser/cjs/xDqIifM_--oXscCV.cjs +6 -0
  60. package/browser/cjs/yBSdtSSuNERefFhR.cjs +15 -0
  61. package/{cdn/assets/DHydjLSnijEgtpyU.js → browser/esm/4eRu4yzXkvCBip8J.mjs} +1 -1
  62. package/browser/esm/73gcCsbqgbW3KIoA.mjs +1346 -0
  63. package/browser/esm/B383N9irNfyfYC2l.mjs +20 -0
  64. package/{cdn/assets/C3EFzvmp0DcC_HAx.js → browser/esm/B4ji-HZTY0uvH8r7.mjs} +1 -1
  65. package/{cdn/assets/D-5VYBO5_VEh6fEW.js → browser/esm/B8TNpfJ8ymQcPriE.mjs} +1 -1
  66. package/browser/esm/BBDu-GNDE7ZA-1sJ.mjs +56 -0
  67. package/{cdn/assets/BwpBFv8Ks2ka07ch.js → browser/esm/BF5nlSYZ38RJ0dPX.mjs} +1 -1
  68. package/{cdn/assets/B1Iys8a964LGNZKf.js → browser/esm/BHy77Km4i4t5U7ka.mjs} +1 -1
  69. package/{cdn/assets/BMiA9p1uOrwnooVT.js → browser/esm/BIUVt79NHXdZx2Dz.mjs} +1 -1
  70. package/browser/esm/BP6hA-zc0dMuMOIA.mjs +3755 -0
  71. package/{cdn/assets/BUwNyHytF9St68tJ.js → browser/esm/BPen6C7JE2sWVgdi.mjs} +1 -1
  72. package/{cdn/assets/DvFNLgeMJ9LdQROu.js → browser/esm/BUqd1uVUNoWmepd2.mjs} +54 -55
  73. package/browser/esm/BXABqQEa6kQQcjmt.mjs +820 -0
  74. package/{cdn/assets/BL6TUDSeou6wPejW.js → browser/esm/BZxAttR2mi9td3k1.mjs} +1 -1
  75. package/{cdn/assets/C4vStn7wNlvrxdsp.js → browser/esm/B_pEA9HeXKvEOCdS.mjs} +1 -1
  76. package/browser/esm/BbW_1O3cEhZ4aSgS.mjs +55785 -0
  77. package/browser/esm/BdFNxdtES-3_yQ9R.mjs +421 -0
  78. package/{cdn/assets/BciokME96sykArSM.js → browser/esm/BfFDvyaRcdKS0wPD.mjs} +1 -1
  79. package/browser/esm/Bqqcb80cNalBs-sB.mjs +939 -0
  80. package/browser/esm/BrEcIDq0-c5AiQEf.mjs +21 -0
  81. package/{cdn/assets/CrLrvmlJhYpNpXqR.js → browser/esm/BvYUsRgBXLSuaQ-S.mjs} +1 -1
  82. package/{cdn/assets/C-Z8wvIy20kJ7R-k.js → browser/esm/BzE-61bmpRQzEVPt.mjs} +1 -1
  83. package/browser/esm/C28AZ0Rwo79iGg0v.mjs +13208 -0
  84. package/browser/esm/C5GgK_mW25DZYw-I.mjs +2344 -0
  85. package/{cdn/assets/XysyS9rk9tFdbzZh.js → browser/esm/CHjb5a2xwEWs4RgS.mjs} +505 -513
  86. package/{cdn/assets/DXtbonLk2ESfF4Dh.js → browser/esm/CITPwlsNzJvv551I.mjs} +1 -1
  87. package/browser/esm/CJiHNujoVUdO_G7X.mjs +46 -0
  88. package/{cdn/assets/C5q0qaKi2eeDgoO8.js → browser/esm/CN73n4VDayKh_l1J.mjs} +1 -1
  89. package/{cdn/assets/B2RAJJJFkcaWUfUW.js → browser/esm/CcARDY0PFSWkqsG9.mjs} +1 -1
  90. package/browser/esm/CeF0ZRfeSy83i80_.mjs +1575 -0
  91. package/{cdn/assets/BBJxLS-wB_nXRnI2.js → browser/esm/Cmtx4dAVZrwq5cVO.mjs} +1 -1
  92. package/browser/esm/Crza3kRJdEVylOfk.mjs +29 -0
  93. package/browser/esm/D3L89e08b7ewR6mt.mjs +21 -0
  94. package/browser/esm/D4G17ip9xxOX5jDd.mjs +3934 -0
  95. package/{cdn/assets/CuNqTH3P8mCglRiz.js → browser/esm/D9eVsUckA6bWBHni.mjs} +1 -1
  96. package/browser/esm/DAscSzG63-mM5p50.mjs +41 -0
  97. package/browser/esm/DCyJNVtrh6kEt73Q.mjs +84 -0
  98. package/{cdn/assets/DFHruAftzuzBZ71r.js → browser/esm/DFwxjsVr4xKLPTGf.mjs} +65 -68
  99. package/{cdn/assets/9-cIcj6CRJx5HTn9.js → browser/esm/DHPHhaCxihdR9Hl6.mjs} +1 -1
  100. package/browser/esm/DKbJ-iVPuUbr3iZ_.mjs +47 -0
  101. package/browser/esm/DQLk_UmdpJBt-zZi.mjs +5582 -0
  102. package/browser/esm/DR7oVoNSe0FFWHOr.mjs +48 -0
  103. package/{cdn/assets/CKA4s2hlzSnrdWSD.js → browser/esm/DVRMAeHUj0-TY-vK.mjs} +1 -1
  104. package/{cdn/assets/N3pWBoccPrTedAw-.js → browser/esm/DXIWAG-DUKHzNlRl.mjs} +1 -1
  105. package/browser/esm/DbZJQpjZJIcz2ypV.mjs +39 -0
  106. package/{cdn/assets/KDGtuIzSpkf1vsmH.js → browser/esm/Dft4BSeY0bp0A6z0.mjs} +1 -1
  107. package/browser/esm/DgO85Q5iHe-ZmvtQ.mjs +633 -0
  108. package/browser/esm/DwRHGEuscm3FvnkM.mjs +1665 -0
  109. package/browser/esm/HyTvrvH0vItPFnFG.mjs +472 -0
  110. package/{cdn/assets/F6zW9Vj410C4yRVG.js → browser/esm/Pkb6GWdyZdze_XAw.mjs} +167 -166
  111. package/browser/esm/QZikWr_NQfcFWCBV.mjs +44 -0
  112. package/{cdn/assets/5XdpCWQ6AcxZ6oY1.js → browser/esm/aLv-xujBO4X6ilhV.mjs} +1 -1
  113. package/{cdn/assets/Gz4u4ewyWfB-Pf-a.js → browser/esm/c9fba0RuWGogsH0X.mjs} +4 -5
  114. package/browser/esm/index.mjs +6 -2
  115. package/{cdn/assets/BxblmHGC7YxZcuak.js → browser/esm/jkSJc6Omxbf-rPQY.mjs} +1 -1
  116. package/{cdn/assets/CT0d1P-Aav62lUvV.js → browser/esm/uuCmCmYQQXgwyRSd.mjs} +1 -1
  117. package/{cdn/assets/DD3csu4pddGtMp3n.js → browser/esm/w3TGaFTjdsc4XTcz.mjs} +537 -539
  118. package/browser/esm/wV8riZWKJE7AoKQk.mjs +1365 -0
  119. package/{cdn/assets/CsorxCiOoe7qX9j1.js → browser/esm/wxvli1IH1NkfqE6-.mjs} +1 -1
  120. package/cdn/assets/{C9eQW5GKgPRmKKgJ.js → 0fI22OQK5IczUH6s.js} +2 -2
  121. package/cdn/assets/4eRu4yzXkvCBip8J.js +10 -0
  122. package/cdn/assets/5HYy7pIZxQRDUQl-.js +50 -0
  123. package/cdn/assets/6oc_f4xkoSmftsRd.js +22 -0
  124. package/cdn/assets/73gcCsbqgbW3KIoA.js +1346 -0
  125. package/cdn/assets/B3TPDOzYf_VRBIr6.js +2177 -0
  126. package/cdn/assets/B4HW_cy7gbE01jar.js +390 -0
  127. package/cdn/assets/B4ji-HZTY0uvH8r7.js +10 -0
  128. package/cdn/assets/B7Ky6m4VWP8vxhPt.js +1702 -0
  129. package/cdn/assets/B8TNpfJ8ymQcPriE.js +24 -0
  130. package/cdn/assets/BEfetwH6zTr6B51I.js +3755 -0
  131. package/cdn/assets/BF5nlSYZ38RJ0dPX.js +10 -0
  132. package/cdn/assets/BHy77Km4i4t5U7ka.js +10 -0
  133. package/cdn/assets/BIUVt79NHXdZx2Dz.js +10 -0
  134. package/cdn/assets/BPen6C7JE2sWVgdi.js +10 -0
  135. package/cdn/assets/BS1p7DgoyO-WkvB8.js +41 -0
  136. package/cdn/assets/BZxAttR2mi9td3k1.js +10 -0
  137. package/cdn/assets/B_pEA9HeXKvEOCdS.js +10 -0
  138. package/cdn/assets/BdFNxdtES-3_yQ9R.js +421 -0
  139. package/cdn/assets/BfFDvyaRcdKS0wPD.js +10 -0
  140. package/cdn/assets/{quOP5QFyTT9soNIl.js → BiKaXKU3o287mgkN.js} +1 -1
  141. package/cdn/assets/BvYUsRgBXLSuaQ-S.js +10 -0
  142. package/cdn/assets/BzE-61bmpRQzEVPt.js +10 -0
  143. package/cdn/assets/{CV8UjJPDVplXjK1E.js → C0yI-QYraFhnJUdD.js} +19 -19
  144. package/cdn/assets/C28AZ0Rwo79iGg0v.js +13208 -0
  145. package/cdn/assets/{BDE7FUo2oiivrvBL.js → C3FTuqvfGalOVHql.js} +15 -15
  146. package/cdn/assets/C3W0xsNrt-Was9g-.js +84 -0
  147. package/cdn/assets/C8rQWD8C7ccUHNZL.js +3934 -0
  148. package/cdn/assets/CITPwlsNzJvv551I.js +10 -0
  149. package/cdn/assets/CN73n4VDayKh_l1J.js +10 -0
  150. package/cdn/assets/{0j_nQmV1Bb0lJ6sB.js → CWkF-50YF43t7qge.js} +4 -4
  151. package/cdn/assets/{8U2WVdbZHYCBnd9L.js → CaKPs_ILqLIWfUUN.js} +13 -13
  152. package/cdn/assets/CcARDY0PFSWkqsG9.js +21 -0
  153. package/cdn/assets/{Xwyp21e7L5fTeb_y.js → Cdx6LrqtHZKbwl63.js} +186 -184
  154. package/cdn/assets/{6JtXguBKwGj6dqfy.js → ChB-XZno7w9v221u.js} +385 -387
  155. package/cdn/assets/CkY7wM_4OGwZvJ4f.js +942 -0
  156. package/cdn/assets/Cmtx4dAVZrwq5cVO.js +10 -0
  157. package/cdn/assets/{BlYoycYtR-sUp0iC.js → CrBywNOOyPHSBoTT.js} +4 -4
  158. package/cdn/assets/D9eVsUckA6bWBHni.js +10 -0
  159. package/cdn/assets/{DPQqTIMsRLhMxPIy.js → DBpku3D2DSTmW4II.js} +2 -2
  160. package/cdn/assets/DEOxG6u6itV8bGym.js +2346 -0
  161. package/cdn/assets/DHPHhaCxihdR9Hl6.js +10 -0
  162. package/cdn/assets/{DXHirQMr483hJBil.js → DMWARnjq06oQnfrL.js} +15 -15
  163. package/cdn/assets/{BNh9nSR83reiVMKt.js → DRa6yXWuTlAjuaKT.js} +2 -2
  164. package/cdn/assets/DVRMAeHUj0-TY-vK.js +10 -0
  165. package/{browser/esm/CVeyOpbAhaBhDRye.mjs → cdn/assets/DXIWAG-DUKHzNlRl.js} +7 -2
  166. package/cdn/assets/{0e9wDKSn4SFxSmP5.js → DYowHOSLHcADsXuK.js} +3 -3
  167. package/cdn/assets/{f3_QXO8z0p-q4nJo.js → DZNoPrlxULASVlOi.js} +4 -4
  168. package/cdn/assets/DaUJajqmQYuM0Gew.js +150 -0
  169. package/cdn/assets/DcdQwhlGoI1knRUy.js +46 -0
  170. package/cdn/assets/Dft4BSeY0bp0A6z0.js +10 -0
  171. package/cdn/assets/DgO85Q5iHe-ZmvtQ.js +633 -0
  172. package/cdn/assets/{CR01MBraUPYPpwy4.js → Dm0hrXCbV7DITOhi.js} +2 -2
  173. package/cdn/assets/{BgnlshX157Ob6RLs.js → DnWjhq4ZlgIuFcii.js} +2 -2
  174. package/cdn/assets/DwRHGEuscm3FvnkM.js +1665 -0
  175. package/cdn/assets/DzyNujjbHLXo9UmH.js +1466 -0
  176. package/cdn/assets/{B_2bXmyji3Dr7LRM.js → EYTSqAG9YOdb1vKx.js} +21832 -23233
  177. package/cdn/assets/{BVYDmdUGWvMG5gNK.js → Ux2jUY_EwSsYBCov.js} +1 -1
  178. package/cdn/assets/{Bsa9-Itkf_SdDBM9.js → XoKiuP2ZFq0cNGkH.js} +4 -4
  179. package/cdn/assets/{2mxiQm6dELsqQoX7.js → Zi3E5Kzxw2FPtLVL.js} +1376 -1418
  180. package/cdn/assets/aLv-xujBO4X6ilhV.js +10 -0
  181. package/cdn/assets/jkSJc6Omxbf-rPQY.js +10 -0
  182. package/cdn/assets/uuCmCmYQQXgwyRSd.js +10 -0
  183. package/cdn/assets/wV8riZWKJE7AoKQk.js +1365 -0
  184. package/cdn/assets/wxvli1IH1NkfqE6-.js +10 -0
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +3 -3
  188. package/types/index.d.ts +1 -0
  189. package/browser/cjs/-DkdmW3XP1ICRY25.cjs +0 -7
  190. package/browser/cjs/B-KQs1Bf48nEucW7.cjs +0 -7
  191. package/browser/cjs/B1xnY7pDnbnNzknG.cjs +0 -7
  192. package/browser/cjs/B6A5w_aWHkigBc6j.cjs +0 -7
  193. package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +0 -110
  194. package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +0 -7
  195. package/browser/cjs/BG2uV2RpxrfZyCuV.cjs +0 -7
  196. package/browser/cjs/BGCPG4Ip5ZijUQwi.cjs +0 -7
  197. package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +0 -7
  198. package/browser/cjs/BLBNzBvRVl9VLynf.cjs +0 -7
  199. package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +0 -7
  200. package/browser/cjs/BMaq_2S3IFrE5XeJ.cjs +0 -7
  201. package/browser/cjs/BO7Pbclmywy-QCSV.cjs +0 -13
  202. package/browser/cjs/BPlthbyKkqCDjgxO.cjs +0 -7
  203. package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +0 -7
  204. package/browser/cjs/BdHdXCz_K1djQgI4.cjs +0 -7
  205. package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +0 -7
  206. package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +0 -7
  207. package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +0 -7
  208. package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +0 -7
  209. package/browser/cjs/BsSNzyN8kOGCKzso.cjs +0 -7
  210. package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +0 -7
  211. package/browser/cjs/BwHquG4sSd7OJjxz.cjs +0 -7
  212. package/browser/cjs/BywNBbTVRYbgRbNI.cjs +0 -7
  213. package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +0 -7
  214. package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +0 -7
  215. package/browser/cjs/CBpt1PBR1VfBegko.cjs +0 -7
  216. package/browser/cjs/CED8Az5C8GWF7pUT.cjs +0 -7
  217. package/browser/cjs/CbD4Wa5QLTdRCYcz.cjs +0 -7
  218. package/browser/cjs/CbILz9Skl6lWf6yR.cjs +0 -7
  219. package/browser/cjs/CoFQQqIzuvS9PM77.cjs +0 -7
  220. package/browser/cjs/CpDNo2Lhwr5ZHECs.cjs +0 -7
  221. package/browser/cjs/CsamfGfFsItvSgo_.cjs +0 -7
  222. package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +0 -7
  223. package/browser/cjs/CxLvGnG44-qNI36G.cjs +0 -7
  224. package/browser/cjs/D-xyWit7jxctQCpR.cjs +0 -7
  225. package/browser/cjs/D4XQsK7d7DRctaOO.cjs +0 -7
  226. package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +0 -7
  227. package/browser/cjs/DES2NmIRVZg-HXgs.cjs +0 -7
  228. package/browser/cjs/DFxeLNhACFIHb0nv.cjs +0 -7
  229. package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +0 -7
  230. package/browser/cjs/DJ6L43osbaMzEV5K.cjs +0 -7
  231. package/browser/cjs/DMjLN_HDktNzzUB8.cjs +0 -7
  232. package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +0 -7
  233. package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +0 -7
  234. package/browser/cjs/Dh_dFnagz7dMZlGh.cjs +0 -7
  235. package/browser/cjs/DpF6vgGka2d-RKkb.cjs +0 -10
  236. package/browser/cjs/DtY0Jzlwnr_YKnV4.cjs +0 -7
  237. package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +0 -7
  238. package/browser/cjs/Dy5_viRzFls9rOzN.cjs +0 -7
  239. package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +0 -7
  240. package/browser/cjs/aN3KCqswA1SdJIMq.cjs +0 -7
  241. package/browser/cjs/hLJbgylpETByV4wc.cjs +0 -7
  242. package/browser/cjs/qumqKlVHFx89iLeu.cjs +0 -7
  243. package/browser/cjs/rKZjTYQ0WpTriIv6.cjs +0 -7
  244. package/browser/cjs/xjKotAOVt3JH36U7.cjs +0 -7
  245. package/browser/cjs/ymbPxio09Fw7I2BW.cjs +0 -7
  246. package/browser/esm/2P5dQT7wZToOh-n9.mjs +0 -7
  247. package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +0 -110
  248. package/browser/esm/7_x68v6PpvRDox_Z.mjs +0 -7
  249. package/browser/esm/9icgSuuzXq6mlgM8.mjs +0 -7
  250. package/browser/esm/B354iAatN9y9AIIP.mjs +0 -7
  251. package/browser/esm/B5EVyoxm3aSlAnxN.mjs +0 -7
  252. package/browser/esm/BD8rE7MUxuHXsdcf.mjs +0 -7
  253. package/browser/esm/BGFWI1a1PmU8_hCE.mjs +0 -7
  254. package/browser/esm/BI6JAQCQx1V0F2aC.mjs +0 -7
  255. package/browser/esm/BIYg30d_9HaluFFz.mjs +0 -7
  256. package/browser/esm/BKL-uyBp_OE47lXd.mjs +0 -7
  257. package/browser/esm/BMwJCtLAYUW8wExX.mjs +0 -13
  258. package/browser/esm/BNOfK-lGWF2S8vQE.mjs +0 -7
  259. package/browser/esm/Ba433v6lQUMtECiY.mjs +0 -7
  260. package/browser/esm/BbZWfDW2LUyjqUDy.mjs +0 -7
  261. package/browser/esm/C238uBmZN1XXqMUb.mjs +0 -7
  262. package/browser/esm/C34whwRkHO0lhq4-.mjs +0 -7
  263. package/browser/esm/C6FEpAqSZoW5Hgte.mjs +0 -7
  264. package/browser/esm/COlW5ULL29SUKN1Z.mjs +0 -7
  265. package/browser/esm/CRyxOj2xPj9qe9LK.mjs +0 -7
  266. package/browser/esm/CVyVvtlJuCTn4MDh.mjs +0 -7
  267. package/browser/esm/CapeIfjWq-_BHMlE.mjs +0 -7
  268. package/browser/esm/CcQqGNgK2CsgNtuD.mjs +0 -7
  269. package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +0 -7
  270. package/browser/esm/CdchvB_wAbv_6Whw.mjs +0 -7
  271. package/browser/esm/Cf8eDl3Tu5NAWWwG.mjs +0 -7
  272. package/browser/esm/Cfq9tttQlsKvfaCr.mjs +0 -7
  273. package/browser/esm/ClR6uLJoM-xKVYEc.mjs +0 -7
  274. package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +0 -7
  275. package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +0 -7
  276. package/browser/esm/CuV-bwi1vcXAqFUY.mjs +0 -7
  277. package/browser/esm/CwVE0qelO_xgf-l1.mjs +0 -7
  278. package/browser/esm/D1Dzlta8ZVy08ng6.mjs +0 -7
  279. package/browser/esm/D1TjRQiHLWhpl-dl.mjs +0 -7
  280. package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +0 -10
  281. package/browser/esm/DTDXNEbHVnnZONNL.mjs +0 -7
  282. package/browser/esm/DTWfi8Dl-c2s5moT.mjs +0 -7
  283. package/browser/esm/DYVBXcu1r5KRLB-1.mjs +0 -7
  284. package/browser/esm/DZjWyWMvr2XHQrBg.mjs +0 -7
  285. package/browser/esm/DhHK4QmASvgAq9Xy.mjs +0 -7
  286. package/browser/esm/DoFV2S6Su86IN5Ul.mjs +0 -7
  287. package/browser/esm/Dq3ybkgattcCsF_4.mjs +0 -7
  288. package/browser/esm/DqWoZ4TjweoJWX3o.mjs +0 -7
  289. package/browser/esm/DtXxHirBm16ldE1l.mjs +0 -7
  290. package/browser/esm/DtuWZG6c_8vKRSdr.mjs +0 -7
  291. package/browser/esm/FBG8XXdIMd9PfUIo.mjs +0 -7
  292. package/browser/esm/Nh7JiwvF01PblHQ0.mjs +0 -7
  293. package/browser/esm/PVYiH9vBQM6rqXI4.mjs +0 -7
  294. package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +0 -7
  295. package/browser/esm/XhQDWZu47oe6bwHh.mjs +0 -7
  296. package/browser/esm/_BjU6TtI-mQfFpfy.mjs +0 -7
  297. package/browser/esm/gOUfyCw957TzcbNB.mjs +0 -7
  298. package/browser/esm/lmkbfs9sNc7f0oe5.mjs +0 -7
  299. package/browser/esm/naa0kcRwxHEYGaQB.mjs +0 -7
  300. package/browser/esm/qxOkQutRxmAi1vRh.mjs +0 -7
  301. package/browser/esm/tMSro0g2GM5BBTIH.mjs +0 -7
  302. package/cdn/assets/B-kFRtzNNkf4_SiP.js +0 -1701
  303. package/cdn/assets/BAzGoI9gE2G3F3on.js +0 -637
  304. package/cdn/assets/BLqaorJ5Wl-1YOoy.js +0 -3875
  305. package/cdn/assets/BQON-ToGsIBPrPkM.js +0 -1371
  306. package/cdn/assets/CHTspRZD2v_dU_eV.js +0 -22
  307. package/cdn/assets/CMBDD1Mjde6UL5ep.js +0 -84
  308. package/cdn/assets/CwdMjMPFdIs8SAV0.js +0 -1358
  309. package/cdn/assets/DUtu7r6CzW4dtW3E.js +0 -50
  310. package/cdn/assets/Dr5X-ng9wbwUWVr4.js +0 -41
  311. package/cdn/assets/Dvj7UEckqOBrgs9i.js +0 -3947
  312. package/cdn/assets/KtKlo5mM4kTTfFgi.js +0 -46
  313. package/cdn/assets/NTINjW8JjyZudT8s.js +0 -13449
  314. package/cdn/assets/R9RwlorPWfftoboH.js +0 -2373
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=null;exports.initialize=async function(){return e||(e=new Promise(async(e,i)=>{try{const i="0.20.2",t=`https://esm.sh/esbuild-wasm@${i}`,s=`https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`,r=(await import(
8
- /* webpackIgnore: true */
9
- /* @vite-ignore */
10
- t)).default;await r.initialize({wasmURL:s,worker:!1}),e(r)}catch(e){console.error("Error initializing esbuild:",e),i(e)}}),e)};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./B9jxuOg1CXcmbi9J.cjs");function e(t,e){for(var n=t.length,r=0;r<n;++r)if(e(t[r],r))return!0;return!1}function n(t,e){for(var n=t.length,r=0;r<n;++r)if(e(t[r],r))return t[r];return null}function r(t){var e=t;if(void 0===e){if("undefined"==typeof navigator||!navigator)return"";e=navigator.userAgent||""}return e.toLowerCase()}function i(t,e){try{return new RegExp(t,"g").exec(e)}catch(t){return null}}function o(t){return t.replace(/_/g,".")}function a(t,n){var r=null,a="-1";return e(t,function(t){var e=i("("+t.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",n);return!(!e||t.brand||(r=t,a=e[3]||"-1",t.versionAlias?a=t.versionAlias:t.versionTest&&(a=function(t,e){var n=i("("+t+")((?:\\/|\\s|:)([0-9|\\.|_]+))",e);return n?n[3]:""}(t.versionTest.toLowerCase(),n)||a),a=o(a),0))}),{preset:r,version:a}}function s(t,n){var r={brand:"",version:"-1"};return e(t,function(t){var e=u(n,t);return!!e&&(r.brand=t.id,r.version=t.versionAlias||e.version,"-1"!==r.version)}),r}function u(t,e){return n(t,function(t){var n=t.brand;return i(""+e.test,n.toLowerCase())})}var c=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],l=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],f=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],p=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],d=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function h(t){return!!a(p,t).preset}function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.map(function(e){return e.split(" ").map(function(e){return e?""+t+e:""}).join(" ")}).join(" ")}function v(t,e){return function(n){n&&(t[e]=n)}}function m(t,e,n){return function(r){r&&(t[e][n]=r)}}var b="undefined",x=typeof window!==b,y=typeof document!==b&&document,E=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],w=1e-7,D={cm:function(t){return 96*t/2.54},mm:function(t){return 96*t/254},in:function(t){return 96*t},pt:function(t){return 96*t/72},pc:function(t){return 96*t/6},"%":function(t,e){return t*e/100},vw:function(t,e){return void 0===e&&(e=window.innerWidth),t/100*e},vh:function(t,e){return void 0===e&&(e=window.innerHeight),t/100*e},vmax:function(t,e){return void 0===e&&(e=Math.max(window.innerWidth,window.innerHeight)),t/100*e},vmin:function(t,e){return void 0===e&&(e=Math.min(window.innerWidth,window.innerHeight)),t/100*e}};function S(t,e,n,r){return(t*r+e*n)/(n+r)}function M(t){return typeof t===b}function C(t){return t&&"object"==typeof t}function _(t){return Array.isArray(t)}function T(t){return"string"==typeof t}function O(t){return"number"==typeof t}function P(t){return"function"==typeof t}function R(t,e,n,r,i){return k(t,e,n)?n:function(t,e,n,r,i){for(var o,a=function(n){var a=e[n].trim();if(a===t.close&&!k(t,e,n))return{value:n};var s=n,u=N(i,function(t){return t.open===a});if(u&&(s=R(u,e,n,r,i)),-1===s)return o=n,"break";o=n=s},s=n;s<r;++s){var u=a(s);if(s=o,"object"==typeof u)return u.value;if("break"===u)break}return-1}(t,e,n+1,r,i)}function k(t,e,n){if(!t.ignore)return null;var r=e.slice(Math.max(n-3,0),n+3).join("");return new RegExp(t.ignore).exec(r)}function F(t,e){var n=T(e)?{separator:e}:e,r=n.separator,i=void 0===r?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,u=void 0===s?a:s,c=n.openCloseCharacters,l=void 0===c?E:c,f=l.map(function(t){var e=t.open,n=t.close;return e===n?e:e+"|"+n}).join("|"),p=new RegExp("(\\s*"+i+"\\s*|"+f+"|\\s+)","g"),d=t.split(p).filter(function(t){return t&&"undefined"!==t}),h=d.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var b,x=function(e){var n=d[e].trim(),r=e,s=N(l,function(t){return t.open===n}),c=N(l,function(t){return t.close===n});if(s){if(-1!==(r=R(s,d,e,h,l))&&u)return m()&&o?(b=e,"break"):(g.push(d.slice(e,r+1).join("")),e=r,o?(b=e,"break"):(b=e,"continue"))}else{if(c&&!k(c,d,e)){var f=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(l);return f.splice(l.indexOf(c),1),{value:F(t,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:u,openCloseCharacters:f})}}if(function(t,e){return(""===e||" "==e)&&(""===t||" "==t)||t===e}(n,i)&&!a)return m(),o?(b=e,"break"):(b=e,"continue")}-1===r&&(r=h-1),v.push(d.slice(e,r+1).join("")),b=e=r},y=0;y<h;++y){var w=x(y);if(y=b,"object"==typeof w)return w.value;if("break"===w)break}return v.length&&g.push(v.join("")),g}function B(t){return F(t,"")}function G(t){return F(t,",")}function A(t){var e=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(t);if(!e)return{prefix:"",unit:"",value:NaN};var n=e[1],r=e[2];return{prefix:n,unit:e[3],value:parseFloat(r)}}function z(){return Date.now?Date.now():(new Date).getTime()}function I(t,e,n){void 0===n&&(n=-1);for(var r=t.length,i=0;i<r;++i)if(e(t[i],i,t))return i;return n}function N(t,e,n){var r=I(t,e);return r>-1?t[r]:n}var Y,X,W,H=(Y=z(),(X=x&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?X.bind(window):function(t){var e=z();return setTimeout(function(){t(e-Y)},1e3/60)}),q=(W=x&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?W.bind(window):function(t){clearTimeout(t)};function j(t){return Object.keys(t)}function L(t,e){var n=A(t),r=n.value,i=n.unit;if(C(e)){var o=e[i];if(o){if(P(o))return o(r);if(D[i])return D[i](r,o)}}else if("%"===i)return r*e/100;return D[i]?D[i](r):r}function V(t,e,n){return Math.max(e,Math.min(t,n))}function U(t,e,n,r){return void 0===r&&(r=t[0]/t[1]),[[Q(e[0],w),Q(e[0]/r,w)],[Q(e[1]*r,w),Q(e[1],w)]].filter(function(t){return t.every(function(t,r){var i=e[r],o=Q(i,w);return n?t<=i||t<=o:t>=i||t>=o})})[0]||t}function Z(t){for(var e=t.length,n=0,r=e-1;r>=0;--r)n+=t[r];return e?n/e:0}function K(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=Math.atan2(r,n);return i>=0?i:i+2*Math.PI}function $(t){var e=function(t){return[0,1].map(function(e){return Z(t.map(function(t){return t[e]}))})}(t),n=K(e,t[0]),r=K(e,t[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function J(t,e){return Math.sqrt(Math.pow((e?e[0]:0)-t[0],2)+Math.pow((e?e[1]:0)-t[1],2))}function Q(t,e){if(!e)return t;var n=1/e;return Math.round(t/e)/n}function tt(t,e){return t.forEach(function(n,r){t[r]=Q(t[r],e)}),t}function et(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function nt(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function rt(t,e){if(t.classList)t.classList.remove(e);else{var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}function it(t,e,n,r){t.addEventListener(e,n,r)}function ot(t,e,n,r){t.removeEventListener(e,n,r)}function at(t){return(null==t?void 0:t.ownerDocument)||y}function st(t){return at(t).documentElement}function ut(t){return at(t).body}function ct(t){var e;return(null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView)||window}function lt(t){return t&&"postMessage"in t&&"blur"in t&&"self"in t}function ft(t){return C(t)&&t.nodeName&&t.nodeType&&"ownerDocument"in t}function pt(t,e,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,u=r+a*i;t[s]+=t[u]*o,e[s]+=e[u]*o}}function dt(t,e,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,u=t[a],c=e[a];t[a]=t[s],t[s]=u,e[a]=e[s],e[s]=c}}function ht(t,e,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;t[a]/=i,e[a]/=i}}function gt(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var n=t.slice(),r=kt(e),i=0;i<e;++i){var o=e*i+i;if(!Q(n[o],w))for(var a=i+1;a<e;++a)if(n[e*i+a]){dt(n,r,i,a,e);break}if(!Q(n[o],w))return[];for(ht(n,r,i,e,n[o]),a=0;a<e;++a){var s=a,u=n[a+i*e];Q(u,w)&&i!==a&&pt(n,r,s,i,e,-u)}}return r}function vt(t,e){for(var n=t.slice(),r=t.length;r<e-1;++r)n[r]=0;return n[e-1]=1,n}function mt(t,e,n){if(void 0===e&&(e=Math.sqrt(t.length)),e===n)return t;for(var r=kt(n),i=Math.min(e,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=t[o*e+a];r[(o+1)*n-1]=t[(o+1)*e-1],r[(n-1)*n+o]=t[(e-1)*e+o]}return r[n*n-1]=t[e*e-1],r}function bt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=kt(t);return e.forEach(function(e){r=xt(r,e,t)}),r}function xt(t,e,n){void 0===n&&(n=Math.sqrt(t.length));var r=[],i=t.length/n,o=e.length/i;if(!i)return e;if(!o)return t;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var u=0;u<i;++u)r[s*n+a]+=t[u*n+a]*e[s*i+u]}return r}function yt(t,e){for(var n=Math.min(t.length,e.length),r=t.slice(),i=0;i<n;++i)r[i]=r[i]+e[i];return r}function Et(t,e){for(var n=Math.min(t.length,e.length),r=t.slice(),i=0;i<n;++i)r[i]=r[i]-e[i];return r}function wt(t,e){return void 0===e&&(e=6===t.length),e?[t[0],t[1],0,t[2],t[3],0,t[4],t[5],1]:t}function Dt(t,e){return void 0===e&&(e=9===t.length),e?[t[0],t[1],t[3],t[4],t[6],t[7]]:t}function St(t,e,n){void 0===n&&(n=e.length);var r=xt(t,e,n),i=r[n-1];return r.map(function(t){return t/i})}function Mt(t,e){return xt(t,[1,0,0,0,0,Math.cos(e),Math.sin(e),0,0,-Math.sin(e),Math.cos(e),0,0,0,0,1],4)}function Ct(t,e){return xt(t,[Math.cos(e),0,-Math.sin(e),0,0,1,0,0,Math.sin(e),0,Math.cos(e),0,0,0,0,1],4)}function _t(t,e){return xt(t,Rt(e,4))}function Tt(t,e){var n=e[0],r=void 0===n?1:n,i=e[1],o=void 0===i?1:i,a=e[2];return xt(t,[r,0,0,0,0,o,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Ot(t,e){var n=e[0],r=void 0===n?0:n,i=e[1],o=void 0===i?0:i,a=e[2];return xt(t,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,void 0===a?0:a,1],4)}function Pt(t,e){return xt(t,e,4)}function Rt(t,e){var n=Math.cos(t),r=Math.sin(t),i=kt(e);return i[0]=n,i[1]=r,i[e]=-r,i[e+1]=n,i}function kt(t){for(var e=t*t,n=[],r=0;r<e;++r)n[r]=r%(t+1)?0:1;return n}function Ft(t,e){for(var n=kt(e),r=Math.min(t.length,e-1),i=0;i<r;++i)n[(e+1)*i]=t[i];return n}function Bt(t,e){for(var n=kt(e),r=Math.min(t.length,e-1),i=0;i<r;++i)n[e*(e-1)+i]=t[i];return n}function Gt(t,e,n,r,i,o,a,s){var u=t[0],c=t[1],l=e[0],f=e[1],p=n[0],d=n[1],h=r[0],g=r[1],v=i[0],m=i[1],b=o[0],x=o[1],y=a[0],E=a[1],w=s[0],D=s[1],S=gt([u,0,l,0,p,0,h,0,c,0,f,0,d,0,g,0,1,0,1,0,1,0,1,0,0,u,0,l,0,p,0,h,0,c,0,f,0,d,0,g,0,1,0,1,0,1,0,1,-v*u,-m*u,-b*l,-x*l,-y*p,-E*p,-w*h,-D*h,-v*c,-m*c,-b*f,-x*f,-y*d,-E*d,-w*g,-D*g],8);if(!S.length)return[];var M=xt(S,[v,m,b,x,y,E,w,D],8);return M[8]=1,mt(function(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var n=[],r=0;r<e;++r)for(var i=0;i<e;++i)n[i*e+r]=t[e*r+i];return n}(M),3,4)}var At=function(){return At=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},At.apply(this,arguments)};function zt(t,e){return void 0===e&&(e=0),It(Nt(t,e))}function It(t){var e=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(t){var n=t.matrixFunction,r=t.functionValue;n&&(e=n(e,r))}),e}function Nt(t,e){return void 0===e&&(e=0),(_(t)?t:B(t)).map(function(t){var n,r=!(n=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(t))||n.length<4?{}:{prefix:n[1],value:n[2],suffix:n[3]},i=r.prefix,o=r.value,a=null,s=i,u="";if("translate"===i||"translateX"===i||"translate3d"===i){var c=C(e)?At(At({},e),{"o%":e["%"]}):{"%":e,"o%":e},l=G(o).map(function(t,n){return c["%"]=0===n&&"x%"in c?e["x%"]:1===n&&"y%"in c?e["y%"]:e["o%"],L(t,c)}),f=l[0],p=l[1],d=void 0===p?0:p,h=l[2];a=Ot,u=[f,d,void 0===h?0:h]}else if("translateY"===i)a=Ot,u=[0,d=L(o,C(e)?At({"%":e["y%"]},e):{"%":e}),0];else if("translateZ"===i)a=Ot,u=[0,0,parseFloat(o)];else if("scale"===i||"scale3d"===i){var g=G(o).map(function(t){return parseFloat(t)}),v=g[0],m=g[1],b=void 0===m?v:m,x=g[2];a=Tt,u=[v,b,void 0===x?1:x]}else if("scaleX"===i)a=Tt,u=[v=parseFloat(o),1,1];else if("scaleY"===i)a=Tt,u=[1,b=parseFloat(o),1];else if("scaleZ"===i)a=Tt,u=[1,1,parseFloat(o)];else if("rotate"===i||"rotateZ"===i||"rotateX"===i||"rotateY"===i){var y=A(o),E=y.unit,w=y.value;"rotate"===i||"rotateZ"===i?(s="rotateZ",a=_t):"rotateX"===i?a=Mt:"rotateY"===i&&(a=Ct),u="rad"===E?w:w*Math.PI/180}else if("matrix3d"===i)a=Pt,u=G(o).map(function(t){return parseFloat(t)});else if("matrix"===i){var D=G(o).map(function(t){return parseFloat(t)});a=Pt,u=[D[0],D[1],0,0,D[2],D[3],0,0,0,0,1,0,D[4],D[5],0,1]}else s="";return{name:i,functionName:s,value:o,matrixFunction:a,functionValue:u}})}var Yt=function(){function t(){this.keys=[],this.values=[]}var e=t.prototype;return e.get=function(t){return this.values[this.keys.indexOf(t)]},e.set=function(t,e){var n=this.keys,r=this.values,i=n.indexOf(t),o=-1===i?n.length:i;n[o]=t,r[o]=e},t}(),Xt=function(){function t(){this.object={}}var e=t.prototype;return e.get=function(t){return this.object[t]},e.set=function(t,e){this.object[t]=e},t}(),Wt="function"==typeof Map,Ht=function(){function t(){}var e=t.prototype;return e.connect=function(t,e){this.prev=t,this.next=e,t&&(t.next=this),e&&(e.prev=this)},e.disconnect=function(){var t=this.prev,e=this.next;t&&(t.next=e),e&&(e.prev=t)},e.getIndex=function(){for(var t=this,e=-1;t;)t=t.prev,++e;return e},t}(),qt=function(){function t(t,e,n,r,i,o,a,s){this.prevList=t,this.list=e,this.added=n,this.removed=r,this.changed=i,this.maintained=o,this.changedBeforeAdded=a,this.fixed=s}var e=t.prototype;return Object.defineProperty(e,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(e,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),e.caculateOrdered=function(){var t=function(t,e){var n=[],r=[];return t.forEach(function(t){var e=t[0],i=t[1],o=new Ht;n[e]=o,r[i]=o}),n.forEach(function(t,e){t.connect(n[e-1])}),t.filter(function(t,n){return!e[n]}).map(function(t,e){var i=t[0],o=t[1];if(i===o)return[0,0];var a=n[i],s=r[o-1],u=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[u,a.getIndex()]})}(this.changedBeforeAdded,this.fixed),e=this.changed,n=[];this.cacheOrdered=t.filter(function(t,r){var i=t[0],o=t[1],a=e[r],s=a[0],u=a[1];if(i!==o)return n.push([s,u]),!0}),this.cachePureChanged=n},t}();function jt(t,e,n){var r=Wt?Map:n?Xt:Yt,i=n||function(t){return t},o=[],a=[],s=[],u=t.map(i),c=e.map(i),l=new r,f=new r,p=[],d=[],h={},g=[],v=0,m=0;return u.forEach(function(t,e){l.set(t,e)}),c.forEach(function(t,e){f.set(t,e)}),u.forEach(function(t,e){var n=f.get(t);void 0===n?(++m,a.push(e)):h[n]=m}),c.forEach(function(t,e){var n=l.get(t);void 0===n?(o.push(e),++v):(s.push([n,e]),m=h[e]||0,p.push([n-m,e-v]),d.push(e===n),n!==e&&g.push([n,e]))}),a.reverse(),new qt(t,e,o,a,g,s,p,d)}var Lt,Vt=function(){function t(t,e){void 0===t&&(t=[]),this.findKeyCallback=e,this.list=[].slice.call(t)}return t.prototype.update=function(t){var e=[].slice.call(t),n=jt(this.list,e,this.findKeyCallback);return this.list=e,n},t}(),Ut=function(t,e){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Ut(t,e)},Zt="function"==typeof Map?void 0:(Lt=0,function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++Lt)}),Kt=function(t){function e(e){return void 0===e&&(e=[]),t.call(this,e,Zt)||this}return function(t,e){function n(){this.constructor=t}Ut(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Vt),$t=function(){return $t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},$t.apply(this,arguments)},Jt=function(){function t(){this._events={}}var e=t.prototype;return e.on=function(t,e){if(C(t))for(var n in t)this.on(n,t[n]);else this._addEvent(t,e,{});return this},e.off=function(t,e){if(t)if(C(t))for(var n in t)this.off(n);else if(e){var r=this._events[t];if(r){var i=I(r,function(t){return t.listener===e});i>-1&&r.splice(i,1)}}else this._events[t]=[];else this._events={};return this},e.once=function(t,e){var n=this;return e&&this._addEvent(t,e,{once:!0}),new Promise(function(e){n._addEvent(t,e,{once:!0})})},e.emit=function(t,e){var n=this;void 0===e&&(e={});var r=this._events[t];if(!t||!r)return!0;var i=!1;return e.eventType=t,e.stop=function(){i=!0},e.currentTarget=this,function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(r).forEach(function(r){r.listener(e),r.once&&n.off(t,r.listener)}),!i},e.trigger=function(t,e){return void 0===e&&(e={}),this.emit(t,e)},e._addEvent=function(t,e,n){var r=this._events;r[t]=r[t]||[],r[t].push($t({listener:e},n))},t}();function Qt(t){return Q(t,w)}function te(t){return t.length<3?0:Math.abs(function(t){for(var e=0,n=t.length-1;n>=0;--n)e+=t[n];return e}(t.map(function(e,n){var r=t[n+1]||t[0];return e[0]*r[1]-r[0]*e[1]})))/2}function ee(t,e){var n=e.width,r=e.height,i=e.left,o=e.top,a=ne(t),s=a.minX,u=a.minY,c=a.maxX,l=a.maxY,f=n/(c-s),p=r/(l-u);return t.map(function(t){return[i+(t[0]-s)*f,o+(t[1]-u)*p]})}function ne(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(Math,e),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,e),maxY:Math.max.apply(Math,n)}}function re(t,e,n){var r=t[0],i=t[1],o=ne(e),a=o.minX,s=o.maxX,u=[[a,i],[s,i]],c=ie(u[0],u[1]),l=se(e),f=[];if(l.forEach(function(e){var n,r=ie(e[0],e[1]),o=e[0];n=r,c.every(function(t,e){return 0===Qt(t-n[e])})?f.push({pos:t,line:e,type:"line"}):ae(oe(c,r),[u,e]).forEach(function(t){e.some(function(e){return r=t,!Qt((n=e)[0]-r[0])&&!Qt(n[1]-r[1]);var n,r})?f.push({pos:t,line:e,type:"point"}):0!==Qt(o[1]-i)&&f.push({pos:t,line:e,type:"intersection"})})}),N(f,function(t){return t[0]===r}))return!0;var p=0,d={};return f.forEach(function(t){var e=t.pos,n=t.type,o=t.line;if(!(e[0]>r))if("intersection"===n)++p;else{if("line"===n)return;if("point"===n){var a=N(o,function(t){return t[1]!==i}),s=d[e[0]],u=a[1]>i?1:-1;s?s!==u&&++p:d[e[0]]=u}}}),p%2==1}function ie(t,e){var n=t[0],r=t[1],i=e[0]-n,o=e[1]-r;Math.abs(i)<w&&(i=0),Math.abs(o)<w&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=-(a=-o/i)*n-r):(s=1,u=-r):o&&(a=-1,u=n),[a,s,u]}function oe(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],u=0===n&&0===o,c=0===r&&0===a,l=[];if(u&&c)return[];if(u){var f=-i/r;return f!==-s/a?[]:[[-1/0,f],[1/0,f]]}if(c){var p=-i/n;return p!==-s/o?[]:[[p,-1/0],[p,1/0]]}if(0===n)l=[[d=-(a*(h=-i/r)+s)/o,h]];else if(0===o)l=[[d=-(r*(h=-s/a)+i)/n,h]];else if(0===r)l=[[d=-i/n,h=-(o*d+s)/a]];else if(0===a)l=[[d=-s/o,h=-(n*d+i)/r]];else{var d,h;l=[[d=(r*s-a*i)/(a*n-r*o),h=-(n*d+i)/r]]}return l.map(function(t){return[t[0],t[1]]})}function ae(t,e){var n=e.map(function(t){return[0,1].map(function(e){return[Math.min(t[0][e],t[1][e]),Math.max(t[0][e],t[1][e])]})}),r=[];if(2===t.length){var i=t[0],o=i[0],a=i[1];if(Qt(o-t[1][0])){if(!Qt(a-t[1][1])){var s=Math.max.apply(Math,n.map(function(t){return t[0][0]})),u=Math.min.apply(Math,n.map(function(t){return t[0][1]}));if(Qt(s-u)>0)return[];r=[[s,a],[u,a]]}}else{var c=Math.max.apply(Math,n.map(function(t){return t[1][0]})),l=Math.min.apply(Math,n.map(function(t){return t[1][1]}));if(Qt(c-l)>0)return[];r=[[o,c],[o,l]]}}return r.length||(r=t.filter(function(t){var e=t[0],r=t[1];return n.every(function(t){return 0<=Qt(e-t[0][0])&&0<=Qt(t[0][1]-e)&&0<=Qt(r-t[1][0])&&0<=Qt(t[1][1]-r)})})),r.map(function(t){return[Qt(t[0]),Qt(t[1])]})}function se(t){return function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(t.slice(1),[t[0]]).map(function(e,n){return[t[n],e]})}var ue=function(t,e){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ue(t,e)},ce=function(){return ce=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},ce.apply(this,arguments)};function le(t){return 180*(e=[t[0].clientX,t[0].clientY],r=(n=[t[1].clientX,t[1].clientY])[0]-e[0],i=n[1]-e[1],((o=Math.atan2(i,r))>=0?o:o+2*Math.PI)/Math.PI);var e,n,r,i,o}function fe(t){return t?t.touches?function(t){for(var e=Math.min(t.length,2),n=[],r=0;r<e;++r)n.push(he(t[r]));return n}(t.touches):[he(t)]:[]}function pe(t,e,n){var r=n.length,i=ge(t,r),o=i.clientX,a=i.clientY,s=i.originalClientX,u=i.originalClientY,c=ge(e,r),l=c.clientX,f=c.clientY,p=ge(n,r);return{clientX:s,clientY:u,deltaX:o-l,deltaY:a-f,distX:o-p.clientX,distY:a-p.clientY}}function de(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}function he(t){return{clientX:t.clientX,clientY:t.clientY}}function ge(t,e){void 0===e&&(e=t.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(t.length,e),i=0;i<r;++i){var o=t[i];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return e?{clientX:n.clientX/e,clientY:n.clientY/e,originalClientX:n.originalClientX/e,originalClientY:n.originalClientY/e}:n}var ve=function(){function t(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return t.prototype.getAngle=function(t){return void 0===t&&(t=this.prevClients),le(t)},t.prototype.getRotation=function(t){return void 0===t&&(t=this.prevClients),le(t)-le(this.startClients)},t.prototype.getPosition=function(t,e){void 0===t&&(t=this.prevClients);var n=pe(t||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,i=n.deltaY;return this.movement+=Math.sqrt(r*r+i*i),this.prevClients=t,n},t.prototype.getPositions=function(t){void 0===t&&(t=this.prevClients);for(var e=this.prevClients,n=this.startClients,r=Math.min(this.length,e.length),i=[],o=0;o<r;++o)i[o]=pe([t[o]],[e[o]],[n[o]]);return i},t.prototype.getMovement=function(t){var e=this.movement;if(!t)return e;var n=ge(t,this.length),r=ge(this.prevClients,this.length),i=n.clientX-r.clientX,o=n.clientY-r.clientY;return Math.sqrt(i*i+o*o)+e},t.prototype.getDistance=function(t){return void 0===t&&(t=this.prevClients),de(t)},t.prototype.getScale=function(t){return void 0===t&&(t=this.prevClients),de(t)/de(this.startClients)},t.prototype.move=function(t,e){this.startClients.forEach(function(n){n.clientX-=t,n.clientY-=e}),this.prevClients.forEach(function(n){n.clientX-=t,n.clientY-=e})},t}(),me=["textarea","input"],be=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(t,e){if(void 0===e&&(e=!0),r.flag||!1!==t.cancelable){var n=t.type.indexOf("drag")>=-1;if(!r.flag||!n){r._isDragAPI=!0;var i=r.options,o=i.container,a=i.pinchOutside,s=i.preventWheelClick,u=i.preventRightClick,c=i.preventDefault,l=i.checkInput,f=i.dragFocusedInput,p=i.preventClickEventOnDragStart,d=i.preventClickEventOnDrag,h=i.preventClickEventByCondition,g=r._useTouch,v=!r.flag;if(r._isSecondaryButton=3===t.which||2===t.button,s&&(2===t.which||1===t.button)||u&&(3===t.which||2===t.button))return r.stop(),!1;if(v){var m=r._window.document.activeElement,b=t.target;if(b){var x=b.tagName.toLowerCase(),y=me.indexOf(x)>-1,E=b.isContentEditable;if(y||E){if(l||!f&&m===b)return!1;if(m&&(m===b||E&&m.isContentEditable&&m.contains(b))){if(!f)return!1;b.blur()}}else if((c||"touchstart"===t.type)&&m){var w=m.tagName.toLowerCase();(m.isContentEditable||me.indexOf(w)>-1)&&m.blur()}(p||d||h)&&it(r._window,"click",r._onClick,!0)}r.clientStores=[new ve(fe(t))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=e,r._dragFlag=!0,r._prevInputEvent=t,r.data={},r.doubleFlag=z()-r.prevTime<200,r._isMouseEvent=function(t){return t&&(t.type.indexOf("mouse")>-1||"button"in t)}(t),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),!1===(r._preventMouseEvent||r.emit("dragStart",ce(ce({data:r.data,datas:r.data,inputEvent:t,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:e,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){t.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))&&r.stop(),r._isMouseEvent&&r.flag&&c&&t.preventDefault()}if(!r.flag)return!1;var D=0;if(v?(r._attchDragEvent(),g&&a&&(D=setTimeout(function(){it(o,"touchstart",r.onDragStart,{passive:!1})}))):g&&a&&ot(o,"touchstart",r.onDragStart),r.flag&&function(t){return t.touches&&t.touches.length>=2}(t)){if(clearTimeout(D),v&&t.touches.length!==t.changedTouches.length)return;r.pinchFlag||r.onPinchStart(t)}}}},r.onDrag=function(t,e){if(r.flag){var n=r.options.preventDefault;!r._isMouseEvent&&n&&t.preventDefault(),r._prevInputEvent=t;var i=fe(t),o=r.moveClients(i,t,!1);if(r._dragFlag){if((r.pinchFlag||o.deltaX||o.deltaY)&&!1===(r._preventMouseEvent||r.emit("drag",ce(ce({},o),{isScroll:!!e,inputEvent:t}))))return void r.stop();r.pinchFlag&&r.onPinch(t,i)}r.getCurrentStore().getPosition(i,!0)}},r.onDragEnd=function(t){if(r.flag){var e=r.options,n=e.pinchOutside,i=e.container,o=e.preventClickEventOnDrag,a=e.preventClickEventOnDragStart,s=e.preventClickEventByCondition,u=r.isDrag;(o||a||s)&&requestAnimationFrame(function(){r._allowClickEvent()}),s||a||!o||u||r._allowClickEvent(),r._useTouch&&n&&ot(i,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(t);var c=(null==t?void 0:t.touches)?fe(t):[];0!==c.length&&r.options.keepDragging?r._addStore(new ve(c)):r.flag=!1;var l=r._getPosition(),f=z(),p=!u&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=u||p?0:f,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",ce({data:r.data,datas:r.data,isDouble:p,isDrag:u,isClick:!u,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:t,isTrusted:r._isTrusted},l)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout(function(){r._preventMouseEvent=!1},200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){ot(r._window,"click",r._onClick,!0)},r._onClick=function(t){r._allowClickEvent(),r._allowMouseEvent();var e=r.options.preventClickEventByCondition;(null==e?void 0:e(t))||(t.stopPropagation(),t.preventDefault())},r._onContextMenu=function(t){r.options.preventRightClick?r.onDragEnd(t):t.preventDefault()},r._passCallback=function(){};var i=[].concat(e),o=i[0];r._window=lt(o)?o:ct(o),r.options=ce({checkInput:!1,container:o&&!("document"in o)?ct(o):o,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,s=a.container,u=a.events,c=a.checkWindowBlur;if(r._useDrag=u.indexOf("drag")>-1,r._useTouch=u.indexOf("touch")>-1,r._useMouse=u.indexOf("mouse")>-1,r.targets=i,r._useDrag&&i.forEach(function(t){it(t,"dragstart",r.onDragStart)}),r._useMouse&&(i.forEach(function(t){it(t,"mousedown",r.onDragStart),it(t,"mousemove",r._passCallback)}),it(s,"contextmenu",r._onContextMenu)),c&&it(ct(),"blur",r.onBlur),r._useTouch){var l={passive:!1};i.forEach(function(t){it(t,"touchstart",r.onDragStart,l),it(t,"touchmove",r._passCallback,l)})}return r}return function(t,e){function n(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},e.prototype.getMovement=function(t){return this.getCurrentStore().getMovement(t)+this.clientStores.slice(1).reduce(function(t,e){return t+e.movement},0)},e.prototype.isDragging=function(){return this.isDrag},e.prototype.isIdle=function(){return this._isIdle},e.prototype.isFlag=function(){return this.flag},e.prototype.isPinchFlag=function(){return this.pinchFlag},e.prototype.isDoubleFlag=function(){return this.doubleFlag},e.prototype.isPinching=function(){return this.isPinch},e.prototype.scrollBy=function(t,e,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(t,e),r&&this.onDrag(n,!0))},e.prototype.move=function(t,e){var n=t[0],r=t[1],i=this.getCurrentStore().prevClients;return this.moveClients(i.map(function(t){var e=t.clientX,i=t.clientY;return{clientX:e+n,clientY:i+r,originalClientX:e,originalClientY:i}}),e,!0)},e.prototype.triggerDragStart=function(t){this.onDragStart(t,!1)},e.prototype.setEventData=function(t){var e=this.data;for(var n in t)e[n]=t[n];return this},e.prototype.setEventDatas=function(t){return this.setEventData(t)},e.prototype.getCurrentEvent=function(t){return void 0===t&&(t=this._prevInputEvent),ce(ce({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:t})},e.prototype.getEventData=function(){return this.data},e.prototype.getEventDatas=function(){return this.data},e.prototype.unset=function(){var t=this,e=this.targets,n=this.options.container;this.off(),ot(this._window,"blur",this.onBlur),this._useDrag&&e.forEach(function(e){ot(e,"dragstart",t.onDragStart)}),this._useMouse&&(e.forEach(function(e){ot(e,"mousedown",t.onDragStart)}),ot(n,"contextmenu",this._onContextMenu)),this._useTouch&&(e.forEach(function(e){ot(e,"touchstart",t.onDragStart)}),ot(n,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},e.prototype.onPinchStart=function(t){var e=this,n=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>n)){var r=new ve(fe(t));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",ce(ce({data:this.data,datas:this.data,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition()),{inputEvent:t,isTrusted:this._isTrusted,preventDefault:function(){t.preventDefault()},preventDrag:function(){e._dragFlag=!1}}))&&(this.pinchFlag=!1)}},e.prototype.onPinch=function(t,e){if(this.flag&&this.pinchFlag&&!(e.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",ce(ce({data:this.data,datas:this.data,movement:this.getMovement(e),angle:n.getAngle(e),rotation:n.getRotation(e),touches:n.getPositions(e),scale:n.getScale(e),distance:n.getDistance(e)},n.getPosition(e)),{inputEvent:t,isTrusted:this._isTrusted}))}},e.prototype.onPinchEnd=function(t){if(this.pinchFlag){var e=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",ce(ce({data:this.data,datas:this.data,isPinch:e,touches:n.getPositions()},n.getPosition()),{inputEvent:t}))}},e.prototype.getCurrentStore=function(){return this.clientStores[0]},e.prototype.moveClients=function(t,e,n){var r=this._getPosition(t,n),i=this.isDrag;(r.deltaX||r.deltaY)&&(this.isDrag=!0);var o=!1;return!i&&this.isDrag&&(o=!0),ce(ce({data:this.data,datas:this.data},r),{movement:this.getMovement(t),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:e,isTrusted:this._isTrusted,isFirstDrag:o})},e.prototype._addStore=function(t){this.clientStores.splice(0,0,t)},e.prototype._getPosition=function(t,e){var n=this.getCurrentStore().getPosition(t,e),r=this.clientStores.slice(1).reduce(function(t,e){var n=e.getPosition();return t.distX+=n.distX,t.distY+=n.distY,t},n),i=r.distX,o=r.distY;return ce(ce({},n),{distX:i,distY:o})},e.prototype._attchDragEvent=function(){var t=this._window,e=this.options.container,n={passive:!1};this._isDragAPI&&(it(e,"dragover",this.onDrag,n),it(t,"dragend",this.onDragEnd)),this._useMouse&&(it(e,"mousemove",this.onDrag),it(t,"mouseup",this.onDragEnd)),this._useTouch&&(it(e,"touchmove",this.onDrag,n),it(t,"touchend",this.onDragEnd,n),it(t,"touchcancel",this.onDragEnd,n))},e.prototype._dettachDragEvent=function(){var t=this._window,e=this.options.container;this._isDragAPI&&(ot(e,"dragover",this.onDrag),ot(t,"dragend",this.onDragEnd)),this._useMouse&&(ot(e,"mousemove",this.onDrag),ot(t,"mouseup",this.onDragEnd)),this._useTouch&&(ot(e,"touchstart",this.onDragStart),ot(e,"touchmove",this.onDrag),ot(t,"touchend",this.onDragEnd),ot(t,"touchcancel",this.onDragEnd))},e.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},e}(Jt);var xe=function(){return xe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},xe.apply(this,arguments)};function ye(e,n){var r=function(t){var e="rCS"+function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(t).toString(36);return{className:e,inject:function(n,r){void 0===r&&(r={});var i=function(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(e,'"]'));if(o){var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}else o=function(t,e,n,r,i){var o=at(r),a=o.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",t),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=function(t,e,n){return n.original?e:e.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(e,n){var r=n.trim();return(r?G(r):[""]).map(function(e){var n=e.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?"".concat(n.replace(/\:host/g,".".concat(t))):n?".".concat(t," ").concat(n):".".concat(t)}).join(", ")+" {"})}(t,e,n),(i||o.head||o.body).appendChild(a),a}(e,t,r,n,i);return{destroy:function(){var t,e=parseFloat(o.getAttribute("data-styled-count"))||0;e<=1?(o.remove?o.remove():null===(t=o.parentNode)||void 0===t||t.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(e-1))}}}}}(n),i=r.className;return t.reactExports.forwardRef(function(n,o){var a=n.className,s=void 0===a?"":a;n.cspNonce;var u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(n,["className","cspNonce"]),c=t.reactExports.useRef();return t.reactExports.useImperativeHandle(o,function(){return c.current},[]),t.reactExports.useEffect(function(){var t=r.inject(c.current,{nonce:n.cspNonce});return function(){t.destroy()}},[]),t.reactExports.createElement(e,xe({ref:c,"data-styled-id":i,className:"".concat(s," ").concat(i)},u))})}var Ee=function(t,e){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Ee(t,e)};function we(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Ee(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var De=function(){return De=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},De.apply(this,arguments)};function Se(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Me(t,e,n){if(2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function Ce(t,e){return De({events:[],props:[],name:t},e)}var _e,Te,Oe=["n","w","s","e"],Pe=["n","w","s","e","nw","ne","sw","se"],Re=function(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var t=navigator.userAgentData,e=t.brands||t.uaList;return!(!e||!e.length)}()?function(){var t=navigator.userAgentData,i=(t.uaList||t.brands).slice(),a=t.mobile||!1,g=i[0],v=(t.platform||navigator.platform).toLowerCase(),m={name:g.brand,version:g.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!s(p,i).brand||h(r())},b={name:"unknown",version:"-1",majorVersion:-1};m.webkit=!m.chromium&&e(f,function(t){return u(i,t)});var x=s(l,i);if(m.chromium=!!x.brand,m.chromiumVersion=x.version||"-1",!m.chromium){var y=s(f,i);m.webkit=!!y.brand,m.webkitVersion=y.version||"-1"}var E=n(d,function(t){return new RegExp(""+t.test,"g").exec(v)});b.name=E?E.id:"";var w=s(c,i);return m.name=w.brand||m.name,m.version=(w.brand,w.version),m.webkit&&(b.name=a?"ios":"mac"),"ios"===b.name&&m.webview&&(m.version="-1"),b.version=o(b.version),m.version=o(m.version),b.majorVersion=parseInt(b.version,10),m.majorVersion=parseInt(m.version,10),{browser:m,os:b,isMobile:a,isHints:!0}}():function(){var t=r(undefined),e=!!/mobi/g.exec(t),n={name:"unknown",version:"-1",majorVersion:-1,webview:h(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},o=a(c,t),s=o.preset,u=o.version,p=a(d,t),g=p.preset,v=p.version,m=a(l,t);if(n.chromium=!!m.preset,n.chromiumVersion=m.version,!n.chromium){var b=a(f,t);n.webkit=!!b.preset,n.webkitVersion=b.version}return g&&(i.name=g.id,i.version=v,i.majorVersion=parseInt(v,10)),s&&(n.name=s.id,n.version=u,n.webview&&"ios"===i.name&&"safari"!==n.name&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:e,isHints:!1}}(),ke=Re.browser.webkit,Fe=ke&&(_e="undefined"==typeof window?{userAgent:""}:window.navigator,!!(Te=/applewebkit\/([^\s]+)/g.exec(_e.userAgent.toLowerCase()))&&parseFloat(Te[1])<605),Be=Re.browser.name,Ge=parseInt(Re.browser.version,10),Ae="chrome"===Be,ze=Re.browser.chromium,Ie=parseInt(Re.browser.chromiumVersion,10)||0,Ne=Ae&&Ge>=109||ze&&Ie>=109,Ye="firefox"===Be,Xe=parseInt(Re.browser.webkitVersion,10)>=612||Ge>=15,We="moveable-",He=Pe.map(function(t){var e="",n="",r="center",i="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return t.indexOf("n")>-1&&(e="top: ".concat(o,";"),i="bottom"),t.indexOf("s")>-1&&(e="top: 0px;",i="top"),t.indexOf("w")>-1&&(n="left: ".concat(o,";"),r="right"),t.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(t,'"] {\n ').concat(n).concat(e,"\n transform-origin: ").concat(r," ").concat(i,";\n }")}).join("\n"),qe="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(He,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map(function(t){return'\n.direction[data-rotation="'.concat(t,'"], :global .view-control-rotation').concat(t," {\n").concat(function(t){var e=function(t,e){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32,'px" height="').concat(32,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(e,'deg);transform-origin: 16px 16px"></path></svg>')}(0,t),n=45*Math.round(t/45)%180,r="ns-resize";return 135===n?r="nwse-resize":45===n?r="nesw-resize":90===n&&(r="ew-resize"),"cursor:".concat(r,";cursor: url('").concat(e,"') 16 16, ").concat(r,";")}(t),"\n}\n")}).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat(Fe?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),je=1e-4,Le=1e-7,Ve=Math.pow(10,10),Ue=-Ve,Ze={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},Ke={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},$e=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function Je(t,e,n,r,i,o){var a,s,u=null!==(s=null===(a=e.gestos[o])||void 0===a?void 0:a.move(n,t.inputEvent))&&void 0!==s?s:{},c=u.originalDatas||u.datas,l=c[o]||(c[o]={});return De(De({},u),{isPinch:!!r,parentEvent:!0,datas:l,originalDatas:t.originalDatas})}var Qe=function(){function t(t){var e;void 0===t&&(t="draggable"),this.ableName=t,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((e={})[t]={},e)}return t.prototype.dragStart=function(t,e){this.isDrag=!1,this.isFlag=!1;var n=e.originalDatas;return this.datas=n,n[this.ableName]||(n[this.ableName]={}),De(De({},this.move(t,e.inputEvent)),{type:"dragstart"})},t.prototype.drag=function(t,e){return this.move([t[0]-this.prevX,t[1]-this.prevY],e)},t.prototype.move=function(t,e){var n,r,i=!1;if(this.isFlag){var o=this.isDrag;n=this.prevX+t[0],r=this.prevY+t[1],(t[0]||t[1])&&(this.isDrag=!0),!o&&this.isDrag&&(i=!0)}else this.prevX=t[0],this.prevY=t[1],this.startX=t[0],this.startY=t[1],n=t[0],r=t[1],this.isFlag=!0;return this.prevX=n,this.prevY=r,{type:"drag",clientX:n,clientY:r,inputEvent:e,isFirstDrag:i,isDrag:this.isDrag,distX:n-this.startX,distY:r-this.startY,deltaX:t[0],deltaY:t[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},t}();function tn(t,e,n,r){var i=16===t.length?4:3,o=Se(mr(t,n,r,i),4),a=Se(o[0],2),s=a[0],u=a[1],c=Se(o[1],2),l=c[0],f=c[1],p=Se(o[2],2),d=p[0],h=p[1],g=Se(o[3],2),v=g[0],m=g[1],b=Se(vr(t,e,i),2),x=b[0],y=b[1],E=Math.min(s,l,d,v),w=Math.min(u,f,h,m),D=Math.max(s,l,d,v);return s=s-E||0,{left:E,top:w,right:D,bottom:Math.max(u,f,h,m),origin:[x=x-E||0,y=y-w||0],pos1:[s,u=u-w||0],pos2:[l=l-E||0,f=f-w||0],pos3:[d=d-E||0,h=h-w||0],pos4:[v=v-E||0,m=m-w||0],direction:Jr(t[0]*t[i+1])}}function en(t,e){var n=e.datas,r=t.state,i=r.allMatrix,o=r.beforeMatrix,a=r.is3d,s=r.left,u=r.top,c=r.origin,l=r.offsetMatrix,f=r.targetMatrix,p=r.transformOrigin,d=a?4:3;n.is3d=a,n.matrix=i,n.targetMatrix=f,n.beforeMatrix=o,n.offsetMatrix=l,n.transformOrigin=p,n.inverseMatrix=gt(i,d),n.inverseBeforeMatrix=gt(o,d),n.absoluteOrigin=vt(yt([s,u],c),d),n.startDragBeforeDist=St(n.inverseBeforeMatrix,n.absoluteOrigin,d),n.startDragDist=St(n.inverseMatrix,n.absoluteOrigin,d)}function nn(t,e,n){var r=e.datas,i=e.originalDatas.beforeRenderable,o=r.transformIndex,a=i.nextTransforms,s=a.length,u=i.nextTransformAppendedIndexes,c=-1;-1===o?(-1==(c=0)&&(c=a.length),r.transformIndex=c):c=N(u,function(t){return t.index===o&&t.functionName===n})?o:o+u.filter(function(t){return t.index<o}).length;var l=function(t,e,n){var r,i=Nt(t,{"x%":function(t){return t/100*e.offsetWidth},"y%":function(t){return t/100*e.offsetHeight}}),o=t.slice(0,n<0?void 0:n),a=t.slice(0,n<0?void 0:n+1),s=t[n]||"",u=n<0?[]:t.slice(n),c=n<0?[]:t.slice(n+1),l=i.slice(0,n<0?void 0:n),f=i.slice(0,n<0?void 0:n+1),p=null!==(r=i[n])&&void 0!==r?r:Nt([""])[0],d=n<0?[]:i.slice(n),h=n<0?[]:i.slice(n+1),g=p?[p]:[],v=It(l),m=It(f),b=It(d),x=It(h),y=xt(v,b,4);return{transforms:t,beforeFunctionMatrix:v,beforeFunctionMatrix2:m,targetFunctionMatrix:It(g),afterFunctionMatrix:b,afterFunctionMatrix2:x,allFunctionMatrix:y,beforeFunctions:l,beforeFunctions2:f,targetFunction:g[0],afterFunctions:d,afterFunctions2:h,beforeFunctionTexts:o,beforeFunctionTexts2:a,targetFunctionText:s,afterFunctionTexts:u,afterFunctionTexts2:c}}(a,t.state,c),f=l.targetFunction,p=n;r.beforeFunctionTexts=l.beforeFunctionTexts,r.afterFunctionTexts=l.afterFunctionTexts,r.beforeTransform=l.beforeFunctionMatrix,r.beforeTransform2=l.beforeFunctionMatrix2,r.targetTansform=l.targetFunctionMatrix,r.afterTransform=l.afterFunctionMatrix,r.afterTransform2=l.afterFunctionMatrix2,r.targetAllTransform=l.allFunctionMatrix,f.functionName===p?(r.afterFunctionTexts.splice(0,1),r.isAppendTransform=!1):s>c&&(r.isAppendTransform=!0,i.nextTransformAppendedIndexes=Me(Me([],Se(u),!1),[{functionName:n,index:c,isAppend:!0}],!1))}function rn(t){var e=t.datas,n=t.distX,r=t.distY,i=e.inverseBeforeMatrix,o=e.is3d,a=e.startDragBeforeDist,s=o?4:3;return Et(St(i,yt(e.absoluteOrigin,[n,r]),s),a)}function on(t,e){var n=t.datas,r=t.distX,i=t.distY;n.inverseBeforeMatrix;var o=n.inverseMatrix,a=n.is3d;n.startDragBeforeDist;var s=n.startDragDist,u=a?4:3;return Et(St(o,yt(n.absoluteOrigin,[r,i]),u),s)}function an(t,e){var n=(e+1)/2;return[S(t[0][0],t[1][0],n,1-n),S(t[0][1],t[1][1],n,1-n)]}function sn(t,e){var n=an([t[0],t[1]],e[0]),r=an([t[2],t[3]],e[0]);return an([n,r],e[1])}function un(t,e,n,r){return xt(t,or(e,r,n),r)}function cn(t,e,n){var r=ln(e),i=e.datas;if(i.transformIndex=n,-1!==n){var o=r.startTransforms[n];if(o){var a=t.state,s=Nt([o],{"x%":function(t){return t/100*a.offsetWidth},"y%":function(t){return t/100*a.offsetHeight}});i.startValue=s[0].functionValue}}}function ln(t){return t.originalDatas.beforeRenderable}function fn(t){return t.originalDatas.beforeRenderable.nextTransforms}function pn(t){return(fn(t)||[]).join(" ")}function dn(t){return ln(t).nextStyle}function hn(t,e,n,r,i,o){var a=t.props.groupable,s=t.state,u=s.transformOrigin,c=s.offsetMatrix,l=s.is3d,f=s.width,p=s.height,d=s.left,h=s.top,g=o.fixedDirection,v=o.nextTargetMatrix||s.targetMatrix,m=l?4:3,b=function(t,e,n,r,i,o){return void 0===r&&(r=e),void 0===i&&(i=n),void 0===o&&(o=[0,0]),t?t.map(function(t,a){var s=A(t),u=s.value,c=s.unit,l=a?i:r,f=a?n:e;return"%"===t||isNaN(u)?f*(l?o[a]/l:0):"%"!==c?u:f*u/100}):o}(i,e,n,f,p,u),x=a?d:0,y=a?h:0,E=function(t,e,n,r,i,o){var a=sn(mr(e,n,r,i),o);return[t[0]-a[0],t[1]-a[1]]}(r,un(c,v,b,m),e,n,m,g);return Et(E,[x,y])}function gn(t){if(t&&t.getRootNode){var e=t.getRootNode();if(11===e.nodeType)return e}}function vn(t){var e=t("scale"),n=t("rotate"),r=t("translate"),i=[];return r&&"0px"!==r&&"none"!==r&&i.push("translate(".concat(r.split(/\s+/).join(","),")")),n&&"1"!==n&&"none"!==n&&i.push("rotate(".concat(n,")")),e&&"1"!==e&&"none"!==e&&i.push("scale(".concat(e.split(/\s+/).join(","),")")),i}function mn(t,e,n){for(var r,i,o,a=t,s=[],u=st(t)||ut(t),c=!n&&t===e||t===u,l=c,f=!1,p=3,d=!1,h=ur(e,e,!0).offsetParent,g=1;a&&!l;){l=c;var v=wn(a),m=v("position"),b=sr(a),x="fixed"===m,y=vn(v),E=wt(ir(b)),w=void 0,D=!1,S=!1,M=0,C=0,_=0,T=0,O={hasTransform:!1,fixedContainer:null};x&&(d=!0,h=(O=pr(a)).fixedContainer);var P=E.length;f||16!==P&&!y.length||(f=!0,p=4,fr(s),o&&(o=mt(o,3,4))),f&&9===P&&(E=mt(E,3,4));var R=cr(a,t),k=R.tagName,F=R.hasOffset,B=R.isSVG,G=R.origin,A=R.targetOrigin,z=Se(R.offset,2),I=z[0],N=z[1];"svg"===k&&!a.ownerSVGElement&&o&&(s.push({type:"target",target:a,matrix:gr(a,p)}),s.push({type:"offset",target:a,matrix:kt(p)}));var Y=parseFloat(v("zoom"))||1;if(x)w=O.fixedContainer,D=!0;else{var X=ur(a,e,!1,!0,v),W=X.offsetZoom;if(w=X.offsetParent,D=X.isEnd,S=X.isStatic,g*=W,(X.isCustomElement||1!==W)&&S)I-=w.offsetLeft,N-=w.offsetTop;else if((Ye||Ne)&&X.parentSlotElement){for(var H=w,q=0,j=0;H&&gn(H);)q+=H.offsetLeft,j+=H.offsetTop,H=H.offsetParent;I-=q,N-=j}}if(!ke||Xe||!F||B||!S||"relative"!==m&&"static"!==m||(I-=w.offsetLeft,N-=w.offsetTop,c=c||D),x)F&&O.hasTransform&&(_=w.clientLeft,T=w.clientTop);else if(F&&h!==w&&(M=w.clientLeft,C=w.clientTop),F&&w===u){var L=lr(a,!1);I+=L[0],N+=L[1]}if(s.push({type:"target",target:a,matrix:or(E,p,G)}),y.length&&(s.push({type:"offset",target:a,matrix:kt(p)}),s.push({type:"target",target:a,matrix:or(zt(y),p,G)})),F){var V=a===t,U=V?0:a.scrollLeft,Z=V?0:a.scrollTop;s.push({type:"offset",target:a,matrix:Bt([I-U+M-_,N-Z+C-T],p)})}else s.push({type:"offset",target:a,origin:G});if(1!==Y&&s.push({type:"zoom",target:a,matrix:or(Ft([Y,Y],p),p,[0,0])}),o||(o=E),r||(r=G),i||(i=A),l||x)break;a=w,c=D,n&&a!==u||(l=c)}return o||(o=kt(p)),r||(r=[0,0]),i||(i=[0,0]),{zoom:g,offsetContainer:h,matrixes:s,targetMatrix:o,transformOrigin:r,targetOrigin:i,is3d:f,hasFixed:d}}var bn=null,xn=null,yn=null;function En(t){t?(window.Map&&(bn=new Map,xn=new Map),yn=[]):(bn=null,yn=null,xn=null)}function wn(t){var e=null==bn?void 0:bn.get(t);if(!e){var n=ct(t).getComputedStyle(t);if(!bn)return function(t){return n[t]};e={style:n,cached:{}},bn.set(t,e)}var r=e.cached,i=e.style;return function(t){return t in r||(r[t]=i[t]),r[t]}}function Dn(t,e,n){var r=n.originalDatas;r.groupable=r.groupable||{};var i=r.groupable;i.childDatas=i.childDatas||[];var o=i.childDatas;return t.moveables.map(function(t,r){return o[r]=o[r]||{},o[r][e]=o[r][e]||{},De(De({},n),{isRequestChild:!0,datas:o[r][e],originalDatas:o[r]})})}function Sn(t,e,n,r,i,o,a){var s=!!n.match(/Start$/g),u=!!n.match(/End$/g),c=i.isPinch,l=i.datas,f=Dn(t,e.name,i),p=t.moveables,d=[],h=f.map(function(t,i){var o=p[i],f=o.state,h=f.gestos,g=t;if(s)g=new Qe(a).dragStart(r,t),d.push(g);else{if(h[a]||(h[a]=l.childGestos[i]),!h[a])return;g=Je(t,f,r,c,0,a),d.push(g)}var v=e[n](o,De(De({},g),{parentFlag:!0}));return u&&(h[a]=null),v});return s&&(l.childGestos=p.map(function(t){return t.state.gestos[a]})),{eventParams:h,childEvents:d}}function Mn(t,e,n,r,i,o){void 0===i&&(i=function(t,e){return e});var a=!!n.match(/End$/g),s=Dn(t,e.name,r),u=t.moveables;return s.map(function(t,r){var o,s=u[r];o=i(s,t);var c=e[n](s,De(De({},o),{parentFlag:!0}));return a&&(s.state.gestos={}),c})}function Cn(t,e,n,r){var i=n.fixedDirection,o=n.fixedPosition,a=sn(r.datas.startPositions||Or(e.state),i),s=Se(St(Rt(-t.rotation/180*Math.PI,3),[a[0]-o[0],a[1]-o[1],1],3),2),u=s[0],c=s[1];return r.datas.originalX=u,r.datas.originalY=c,r}function _n(t,e,n,r){var i=Dr(t.props,n),o=i.renderDirections,a=void 0===o?e:o,s=i.displayAroundControls;if(!a)return[];var u=!0===a?Pe:a;return Me(Me([],Se(s?function(t,e,n,r){var i=t.renderState;i.renderDirectionMap||(i.renderDirectionMap={});var o=t.getState(),a=o.renderPoses,s=o.rotation,u=o.direction,c=i.renderDirectionMap,l=t.props.zoom,f=Jr(u),p=s/Math.PI*180;return(r||j(c)).map(function(t){var r=Ze[t];if(!r)return null;var i=(Q(p,15)+f*Ke[t]+720)%180,o=["around-control"];return n&&o.push("direction",n),e.createElement("div",{className:nr.apply(void 0,Me([],Se(o),!1)),"data-rotation":i,"data-direction":t,key:"direction-around-".concat(t),style:wr.apply(void 0,Me([s,l],Se(r.map(function(t){return a[t]})),!1))})})}(t,r,n,u):[]),!1),Se(function(t,e,n,r){var i,o=t.getState(),a=o.renderPoses,s=o.rotation,u=o.direction,c=Dr(t.props,e).zoom,l=((i=s/Math.PI*180)<0&&(i=i%360+360),i%360),f={},p=t.renderState;p.renderDirectionMap||(p.renderDirectionMap={});var d=p.renderDirectionMap;n.forEach(function(t){var e=t.dir;f[e]=!0});var h=Jr(u);return n.map(function(t){var n=t.data,i=t.classNames,o=t.dir,u=Ze[o];if(!u||!f[o])return null;d[o]=!0;var p=(Q(l,15)+h*Ke[o]+720)%180,g={};return j(n).forEach(function(t){g["data-".concat(t)]=n[t]}),r.createElement("div",De({className:nr.apply(void 0,Me(["control","direction",o,e],Se(i),!1)),"data-rotation":p,"data-direction":o},g,{key:"direction-".concat(o),style:wr.apply(void 0,Me([s,c],Se(u.map(function(t){return a[t]})),!1))}))})}(t,n,u.map(function(t){return{data:{},classNames:[],dir:t}}),r)),!1)}function Tn(t,e,n,r,i,o){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var u=K(n,r),c=e?Q(u/Math.PI*180,15)%180:-1;return t.createElement("div",{key:"line-".concat(o),className:nr.apply(void 0,Me(["line","direction",e?"edge":"",e],Se(a),!1)),"data-rotation":c,"data-line-key":o,"data-direction":e,style:Er(n,r,i,u)})}function On(t,e,n,r,i){return(!0===n?Oe:n).map(function(n,o){var a=Se(Ze[n],2),s=a[0],u=a[1];if(null!=u)return Tn(t,n,r[s],r[u],i,"".concat(e,"Edge").concat(o),e)}).filter(Boolean)}function Pn(t,e){var n=t.state,r=n.containerClientRect,i=r.clientHeight,o=r.clientWidth,a=r.clientLeft,s=r.clientTop,u=n.snapOffset,c=u.left,l=u.top,f=u.right,p=u.bottom,d=t.props.bounds||{},h="css"===(d.position||"client"),g=d.left,v=void 0===g?-1/0:g,m=d.top,b=void 0===m?-1/0:m,x=d.right,y=void 0===x?h?-1/0:1/0:x,E=d.bottom,w=void 0===E?h?-1/0:1/0:E;return h&&(y=o+f-c-y,w=i+p-l-w),{left:v+c-a,right:y+c-a,top:b+l-s,bottom:w+l-s}}function Rn(t,e,n){var r=t[n?"left":"top"],i=t[n?"right":"bottom"],o=Math.min.apply(Math,Me([],Se(e),!1)),a=Math.max.apply(Math,Me([],Se(e),!1)),s=[];return r+1>o&&s.push({direction:"start",isBound:!0,offset:o-r,pos:r}),i-1<a&&s.push({direction:"end",isBound:!0,offset:a-i,pos:i}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort(function(t,e){return Qr(e.offset)-Qr(t.offset)})}var kn=["left","right","center"],Fn=["top","bottom","middle"];function Bn(t,e){var n=t.props,r=n.snappable,i=n.bounds,o=n.innerBounds,a=n.verticalGuidelines,s=n.horizontalGuidelines,u=n.snapGridWidth,c=n.snapGridHeight,l=t.state,f=l.guidelines,p=l.enableSnap;return!(!r||!p||e&&!0!==r&&r.indexOf(e)<0||!(u||c||i||o||f&&f.length||a&&a.length||s&&s.length))}function Gn(t){return!1===t?{}:!0!==t&&t?t:{left:!0,right:!0,top:!0,bottom:!0}}function An(t,e,n,r,i,o,a){var s;void 0===r&&(r=[]),void 0===i&&(i=[]);var u=t.props,c=(null===(s=t.state.snapThresholdInfo)||void 0===s?void 0:s.multiples)||[1,1],l=Nr(a,u.snapHorizontalThreshold,5),f=Nr(o,u.snapVerticalThreshold,5);return function(t,e,n,r,i,o,a,s){return{vertical:In(t,"vertical",e,a*s[0],r),horizontal:In(t,"horizontal",n,o*s[1],i)}}(t.state.guidelines,e,n,r,i,l,f,c)}function zn(t){var e=t.isSnap;if(!e)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var n=t.posInfos[0],r=n.guidelineInfos[0],i=r.offset,o=r.dist,a=r.guideline;return{isSnap:e,offset:i,dist:o,pos:n.pos,guideline:a}}function In(t,e,n,r,i){var o,a;if(void 0===i&&(i=[]),!t||!t.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===e?0:1,u=n.map(function(n,o){var a=i[o]||"",u=t.map(function(t){var e=t.pos,r=n-e[s];return{offset:r,dist:Qr(r),guideline:t,direction:a}}).filter(function(t){var n=t.guideline,i=t.dist;return!(n.type!==e||i>r)}).sort(function(t,e){return t.dist-e.dist});return{pos:n,index:o,guidelineInfos:u,direction:a}}).filter(function(t){return t.guidelineInfos.length>0}).sort(function(t,e){return t.guidelineInfos[0].dist-e.guidelineInfos[0].dist}),c=u.length>0;return{isSnap:c,index:c?u[0].index:-1,direction:null!==(a=null===(o=u[0])||void 0===o?void 0:o.direction)&&void 0!==a?a:"",posInfos:u}}function Nn(t,e){return t.slice().sort(function(t,n){var r=t.sign[e],i=n.sign[e],o=t.offset[e],a=n.offset[e];return r?i?function(t,e){var n=Qr(t.offset),r=Qr(e.offset);return t.isBound&&e.isBound?r-n:t.isBound?-1:e.isBound?1:t.isSnap&&e.isSnap?r-n:t.isSnap?-1:e.isSnap||n<Le?1:r<Le?-1:n-r}({isBound:t.isBound,isSnap:t.isSnap,offset:o},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1})[0]}function Yn(t,e){var n,r,i=Se(e,2),o=i[0],a=i[1],s=a[0]-o[0],u=a[1]-o[1];return Qr(s)<Le&&(s=0),Qr(u)<Le&&(u=0),s?u?(n=u/s*(t[0]-o[0])+o[1],r=t[1]):(n=o[1],r=t[1]):(n=o[0],r=t[0]),n-r}function Xn(t,e,n,r,i){return void 0===i&&(i=0),r&&e-i<=t||!r&&t<=n+i?{isBound:!0,offset:r?e-t:n-t}:{isBound:!1,offset:0}}function Wn(t,e,n,r,i,o){var a,s,u=Se(e,2),c=u[0],l=u[1],f=t[0],p=n[0],d=n[1],h=qr(d[1]-p[1]),g=l,v=-c/l;return qr(d[0]-p[0])?h?{isBound:!1,offset:0}:c?Xn((p[1]-f[1])/v+f[0],p[0],d[0],r,i):{isBound:s=Qr(a=p[1]-f[1])<=0,offset:s?a:0}:g?Xn(v*(p[0]-f[0])+f[1],p[1],d[1],r,i):{isBound:s=Qr(a=p[0]-f[0])<=0,offset:s?a:0}}function Hn(t,e,n){return e.map(function(e){var r=function(t,e){var n=e.line,r=e.centerSign,i=e.verticalSign,o=e.horizontalSign,a=e.lineConstants,s=t.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var u=s.left,c=s.top,l=s.width,f=s.height,p=[[u,c],[u,c+f]],d=[[u,c],[u+l,c]],h=[[u+l,c],[u+l,c+f]],g=[[u,c+f],[u+l,c+f]];if(function(t,e,n,r){return void 0===r&&(r=Le),t.every(function(t){var i=Yn(t,e);return i<=0===n||Qr(i)<=r})}([[u,c],[u+l,c],[u,c+f],[u+l,c+f]],n,r))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var v=Wn(n,a,d,i),m=Wn(n,a,g,i),b=Wn(n,a,p,o),x=Wn(n,a,h,o),y=v.isBound&&m.isBound,E=v.isBound||m.isBound,w=b.isBound&&x.isBound,D=b.isBound||x.isBound,S=Xr(v.offset,m.offset),M=Xr(b.offset,x.offset),C=[0,0],_=!1,T=!1;return Qr(M)<Qr(S)?(C=[S,0],_=E,T=y):(C=[0,M],_=D,T=w),{isAllBound:T,isVerticalBound:E,isHorizontalBound:D,isBound:_,offset:C}}(t,e),i=r.isBound,o=r.offset,a=r.isVerticalBound,s=r.isHorizontalBound,u=e.multiple,c=on({datas:n,distX:o[0],distY:o[1]}).map(function(t,e){return t*(u[e]?2/u[e]:0)});return{sign:u,isBound:i,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:c}})}function qn(t,e,n,r){var i=t.state,o=mr(i.allMatrix,100,100,i.is3d?4:3),a=sn(o,[0,0]);return function(t,e){var n=[],r=t[0],i=t[1];return r&&i?n.push([[0,2*i],t,[-r,i]],[[2*r,0],t,[r,-i]]):r?(n.push([[2*r,0],[r,1],[r,-1]]),e&&n.push([[0,-1],[r,-1],[-r,-1]],[[0,1],[r,1],[-r,1]])):i?(n.push([[0,2*i],[1,i],[-1,i]]),e&&n.push([[-1,0],[-1,i],[-1,-i]],[[1,0],[1,i],[1,-i]])):n.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),n}(n,r).map(function(t){var n=Se(t,3),r=n[0],i=n[1],s=n[2],u=[sn(o,i),sn(o,s)],c=function(t){var e=Se(t,2),n=e[0],r=e[1],i=r[0]-n[0],o=r[1]-n[1];Math.abs(i)<w&&(i=0),Math.abs(o)<w&&(o=0);var a=0,s=0,u=0;return i?o?(s=1,u=(a=-o/i)*n[0]-n[1]):(s=1,u=-n[1]):(a=-1,u=n[0]),[a,s,u].map(function(t){return Q(t,w)})}(u),l=function(t,e){var n=Z([e[0][0],e[1][0]]),r=Z([e[0][1],e[1][1]]);return{vertical:n<=t[0],horizontal:r<=t[1]}}(a,u),f=l.vertical,p=l.horizontal;return{multiple:r,centerSign:Yn(a,u)<=0,verticalSign:f,horizontalSign:p,lineConstants:c,line:[sn(e,i),sn(e,s)]}})}function jn(t,e,n,r,i){var o=function(t,e,n,r){var i=e[0]-t[0],o=e[1]-t[1];if(Qr(i)<w&&(i=0),Qr(o)<w&&(o=0),!i)return r?[0,0]:[0,n];if(!o)return r?[n,0]:[0,0];var a=o/i,s=t[1]-a*t[0];return r?[n,a*(e[0]+n)+s-e[1]]:[(e[1]+n-s)/a-e[0],n]}(t,e,n,r);if(!o)return{isOutside:!1,offset:[0,0]};var a=J(t,e),s=J(o,t),u=J(o,e),c=s>a||u>a,l=Se(on({datas:i,distX:o[0],distY:o[1]}),2);return{offset:[l[0],l[1]],isOutside:c}}function Ln(t,e){return t.isBound?t.offset:e.isSnap?zn(e).offset:0}function Vn(t,e,n,r,i,o){if(!Bn(t,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=Tr(o.absolutePoses,[e,n]),s=br(a),u=s.left,c=s.right,l=s.top,f=s.bottom,p={horizontal:a.map(function(t){return t[1]}),vertical:a.map(function(t){return t[0]})},d=Un(t,i,function(t,e){var n=function(t,e){var n=Gn(t),r={};for(var i in n)i in e&&n[i]&&(r[i]=e[i]);return r}(t,e),r=Fn.filter(function(t){return t in n}),i=kn.filter(function(t){return t in n});return{horizontalNames:r,verticalNames:i,horizontal:r.map(function(t){return n[t]}),vertical:i.map(function(t){return n[t]})}}(Gn(t.props.snapDirections),{left:u,right:c,top:l,bottom:f,center:(u+c)/2,middle:(l+f)/2}),p),h=d.vertical,g=d.horizontal,v=function(t,e,n){var r,i=Hn(t,qn(t,e,[0,0],!1).map(function(t){return De(De({},t),{multiple:t.multiple.map(function(t){return 2*Qr(t)})})}),n),o=Nn(i,0),a=Nn(i,1),s=0,u=0,c=o.isVerticalBound||a.isVerticalBound,l=o.isHorizontalBound||a.isHorizontalBound;return(c||l)&&(r=Se(function(t){var e=t.datas,n=t.distX,r=t.distY;e.beforeMatrix;var i=e.matrix,o=e.is3d;e.startDragBeforeDist;var a=e.startDragDist,s=e.absoluteOrigin,u=o?4:3;return Et(St(i,yt(a,[n,r]),u),s)}({datas:n,distX:-o.offset[0],distY:-a.offset[1]}),2),s=r[0],u=r[1]),{vertical:{isBound:c,offset:s},horizontal:{isBound:l,offset:u}}}(t,a,o),m=v.vertical,b=v.horizontal,x=h.isSnap,y=g.isSnap,E=h.isBound||m.isBound,D=g.isBound||b.isBound,S=Se(function(t,e,n,r,i){var o=Se(e,2),a=o[0],s=o[1],u=Se(n,2),c=u[0],l=u[1],f=Se(r,2),p=f[0],d=f[1],h=Se(i,2),g=h[0],v=h[1],m=-g,b=-v;if(t&&a&&s){m=0,b=0;var x=[];if(c&&l?x.push([0,v],[g,0]):c?x.push([g,0]):l?x.push([0,v]):p&&d?x.push([0,v],[g,0]):p?x.push([g,0]):d&&x.push([0,v]),x.length){x.sort(function(t,e){return yr(Et([a,s],t))-yr(Et([a,s],e))});var y=x[0];if(y[0]&&Qr(a)>w)m=-y[0],b=s*Qr(a+m)/Qr(a)-s;else if(y[1]&&Qr(s)>w){var E=s;b=-y[1],m=a*Qr(s+b)/Qr(E)-a}if(t&&l&&c)if(Qr(m)>w&&Qr(m)<Qr(g))m*=D=Qr(g)/Qr(m),b*=D;else if(Qr(b)>w&&Qr(b)<Qr(v)){var D;m*=D=Qr(v)/Qr(b),b*=D}else m=Xr(-g,m),b=Xr(-v,b)}}else m=a||c?-g:0,b=s||l?-v:0;return[m,b]}(r,[e,n],[E,D],[x,y],[Xr(h.offset,m.offset),Xr(g.offset,b.offset)]),2);return[{isBound:E,isSnap:x,offset:S[0]},{isBound:D,isSnap:y,offset:S[1]}]}function Un(t,e,n,r){void 0===r&&(r=n);var i=function(t,e,n){var r=t||{},i=r.position,o=void 0===i?"client":i,a=r.left,s=void 0===a?-1/0:a,u=r.top,c=void 0===u?-1/0:u,l=r.right,f=void 0===l?1/0:l,p=r.bottom,d={position:o,left:s,top:c,right:f,bottom:void 0===p?1/0:p};return{vertical:Rn(d,e,!0),horizontal:Rn(d,n,!1)}}(Pn(t),r.vertical,r.horizontal),o=i.horizontal,a=i.vertical,s=e?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:An(t,n.vertical,n.horizontal,void 0,void 0,void 0,void 0),u=s.horizontal,c=s.vertical,l=Ln(o[0],u),f=Ln(a[0],c),p=Qr(l),d=Qr(f);return{horizontal:{isBound:o[0].isBound,isSnap:u.isSnap,snapIndex:u.index,offset:l,dist:p,bounds:o,snap:u},vertical:{isBound:a[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:f,dist:d,bounds:a,snap:c}}}function Zn(t,e){return t.isBound?t.offset:e.isSnap?e.offset:0}var Kn,$n={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(t,e){var n=t.props,r=n.hideThrottleDragRotateLine,i=n.throttleDragRotate,o=n.zoom,a=t.getState(),s=a.dragInfo,u=a.beforeOrigin;if(r||!i||!s)return[];var c=s.dist;if(!c[0]&&!c[1])return[];var l=yr(c),f=K(c,[0,0]);return[e.createElement("div",{className:nr("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(l,"px"),transform:"translate(".concat(u[0],"px, ").concat(u[1],"px) rotate(").concat(f,"rad) scaleY(").concat(o,")")}})]},dragStart:function(t,e){var n=e.datas,r=e.parentEvent,i=e.parentGesto,o=t.state,a=o.gestos,s=o.style;if(a.draggable)return!1;a.draggable=i||t.targetGesto,n.datas={},n.left=parseFloat(s.left||"")||0,n.top=parseFloat(s.top||"")||0,n.bottom=parseFloat(s.bottom||"")||0,n.right=parseFloat(s.right||"")||0,n.startValue=[0,0],en(t,e),function(t,e){cn(t,e,I(ln(e).startTransforms,function(t){return 0===t.indexOf("".concat("translate","("))}))}(t,e),function(t,e){e.absolutePoses=Or(t.state)}(t,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var u=Fr(t,e,De({set:function(t){n.startValue=t}},function(t,e){var n=ln(e);return{setTransform:function(r,i){void 0===i&&(i=-1),n.startTransforms=_(r)?r:B(r),cn(t,e,i)},setTransformIndex:function(n){cn(t,e,n)}}}(t,e)));return!1!==(r||Gr(t,"onDragStart",u))?(n.isDrag=!0,t.state.dragInfo={startRect:t.getRect(),dist:[0,0]}):(a.draggable=null,n.isPinch=!1),!!n.isDrag&&u},drag:function(t,e){if(e){nn(t,e,"translate");var n=e.datas,r=e.parentEvent,i=e.parentFlag,o=e.isPinch,a=e.deltaOffset,s=e.useSnap,u=e.isRequest,c=e.isGroup,l=e.parentThrottleDrag,f=e.distX,p=e.distY,d=n.isDrag,h=n.prevDist,g=n.prevBeforeDist,v=n.startValue;if(d){a&&(f+=a[0],p+=a[1]);var m=t.props,b=m.parentMoveable,x=c?0:m.throttleDrag||l||0,y=r?0:m.throttleDragRotate||0,E=0,w=!1,D=!1,S=!1,M=!1;if(!r&&y>0&&(f||p)){var C=m.startDragRotate||0,_=Q(C+180*K([0,0],[f,p])/Math.PI,y)-C,T=p*Math.abs(Math.cos((_-90)/180*Math.PI)),O=yr([f*Math.abs(Math.cos(_/180*Math.PI)),T]);E=_*Math.PI/180,f=O*Math.cos(E),p=O*Math.sin(E)}if(!o&&!r&&!i){var P=Se(Vn(t,f,p,y,!s&&u||a,n),2),R=P[0],k=P[1];w=R.isSnap,D=R.isBound,S=k.isSnap,M=k.isBound,f+=R.offset,p+=k.offset}var F=yt(rn({datas:n,distX:f,distY:p}),v),G=yt(function(t){var e=t.datas,n=Se(rn({datas:e,distX:t.distX,distY:t.distY}),2),r=function(t,e){var n=t.beforeTransform,r=t.afterTransform;t.beforeTransform2,t.afterTransform2;var i=xt(e,t.targetAllTransform,4),o=xt(gt(n,4),i,4);return xt(o,gt(r,4),4)}(e,function(t){for(var e=kt(4),n=0;n<3;++n)e[12+n]=t[n]||0;return e}([n[0],n[1]]));return St(r,vt([0,0,0],4),4)}({datas:n,distX:f,distY:p}),v);tt(G,Le),tt(F,Le),y||(w||D||(G[0]=Q(G[0],x),F[0]=Q(F[0],x)),S||M||(G[1]=Q(G[1],x),F[1]=Q(F[1],x)));var A=Et(F,v),z=Et(G,v),I=Et(z,h),N=Et(A,g);n.prevDist=z,n.prevBeforeDist=A,n.passDelta=I,n.passDist=z;var Y=n.left+A[0],X=n.top+A[1],W=n.right-A[0],H=n.bottom-A[1],q=function(t,e,n){return"".concat(t.beforeFunctionTexts.join(" ")," ").concat(t.isAppendTransform?n:e," ").concat(t.afterFunctionTexts.join(" "))}(n,"translate(".concat(G[0],"px, ").concat(G[1],"px)"),"translate(".concat(z[0],"px, ").concat(z[1],"px)"));if(function(t,e){ln(t).nextTransforms=B(e)}(e,q),t.state.dragInfo.dist=r?[0,0]:z,r||b||!I.every(function(t){return!t})||!N.some(function(t){return!t})){var j=t.state,L=j.width,V=j.height,U=Fr(t,e,De({transform:q,dist:z,delta:I,translate:G,beforeDist:A,beforeDelta:N,beforeTranslate:F,left:Y,top:X,right:W,bottom:H,width:L,height:V,isPinch:o},kr({transform:q},e)));return!r&&Gr(t,"onDrag",U),U}}}},dragAfter:function(t,e){var n=e.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(t,De(De({},e),{deltaOffset:r})))},dragEnd:function(t,e){var n=e.parentEvent,r=e.datas;if(t.state.dragInfo=null,r.isDrag){r.isDrag=!1;var i=Br(t,e,{});return!n&&Gr(t,"onDragEnd",i),i}},dragGroupStart:function(t,e){var n,r,i=e.datas,o=e.clientX,a=e.clientY,s=this.dragStart(t,e);if(!s)return!1;var u=Sn(t,this,"dragStart",[o||0,a||0],e,0,"draggable"),c=u.childEvents,l=u.eventParams,f=Gr(t,"onDragGroupStart",De(De({},s),{targets:t.props.targets,events:l}));i.isDrag=!1!==f;var p=null!==(r=null===(n=c[0])||void 0===n?void 0:n.datas.startValue)&&void 0!==r?r:[0,0];return i.throttleOffset=[p[0]%1,p[1]%1],!!i.isDrag&&s},dragGroup:function(t,e){if(e.datas.isDrag){var n=this.drag(t,De(De({},e),{parentThrottleDrag:t.props.throttleDrag})),r=Sn(t,this,"drag",e.datas.passDelta,e,0,"draggable").eventParams;if(n){var i=De({targets:t.props.targets,events:r},n);return Gr(t,"onDragGroup",i),i}}},dragGroupEnd:function(t,e){var n=e.isDrag;if(e.datas.isDrag){this.dragEnd(t,e);var r=Sn(t,this,"dragEnd",[0,0],e,0,"draggable").eventParams;return Gr(t,"onDragGroupEnd",Br(t,e,{targets:t.props.targets,events:r})),n}},request:function(t){var e={},n=t.getRect(),r=0,i=0,o=!1;return{isControl:!1,requestStart:function(t){return o=t.useSnap,{datas:e,useSnap:o}},request:function(t){return"x"in t?r=t.x-n.left:"deltaX"in t&&(r+=t.deltaX),"y"in t?i=t.y-n.top:"deltaY"in t&&(i+=t.deltaY),{datas:e,distX:r,distY:i,useSnap:o}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:o}}}},unset:function(t){t.state.gestos.draggable=null,t.state.dragInfo=null}},Jn=jr("resizable"),Qn={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:(Kn="resizable",function(t,e){var n=Dr(t.props,Kn).edge;return n&&(!0===n||n.length)?Me(Me([],Se(On(e,Kn,n,t.getState().renderPoses,t.props.zoom)),!1),Se(function(t,e,n){return _n(t,["nw","ne","sw","se"],Kn,n)}(t,0,e)),!1):function(t,e,n){return _n(t,Pe,Kn,n)}(t,0,e)}),dragControlCondition:Jn,viewClassName:function(t){return function(e){if(!e.isDragging(t))return"";var n=function(t,e){var n,r=t.targetGesto,i=t.controlGesto;return(null==r?void 0:r.isFlag())&&(n=r.getEventData()[e]),!n&&(null==i?void 0:i.isFlag())&&(n=i.getEventData()[e]),n||{}}(e,t),r=n.deg;return r?nr("view-control-rotation".concat(r)):""}}("resizable"),dragControlStart:function(t,e){var n,r=e.inputEvent,i=e.isPinch,o=e.isGroup,a=e.parentDirection,s=e.parentGesto,u=e.datas,c=e.parentFixedDirection,l=e.parentEvent,f=function(t,e,n,r){var i;return i=t||(e?[0,0]:function(t,e){if(t){var n=t.getAttribute("data-rotation")||"",r=t.getAttribute("data-direction");if(e.deg=n,r){var i=[0,0];return r.indexOf("w")>-1&&(i[0]=-1),r.indexOf("e")>-1&&(i[0]=1),r.indexOf("n")>-1&&(i[1]=-1),r.indexOf("s")>-1&&(i[1]=1),i}}}(n.target,r)),i}(a,i,r,u),p=t.state,d=p.target,h=p.width,g=p.height,v=p.gestos;if(!f||!d)return!1;if(v.resizable)return!1;v.resizable=s||t.controlGesto,!i&&en(t,e),u.datas={},u.direction=f,u.startOffsetWidth=h,u.startOffsetHeight=g,u.prevWidth=0,u.prevHeight=0,u.minSize=[0,0],u.startWidth=p.inlineCSSWidth||p.cssWidth,u.startHeight=p.inlineCSSHeight||p.cssHeight,u.maxSize=[1/0,1/0],o||(u.minSize=[p.minOffsetWidth,p.minOffsetHeight],u.maxSize=[p.maxOffsetWidth,p.maxOffsetHeight]);var m=t.props.transformOrigin||"% %";function b(t){u.ratio=t&&isFinite(t)?t:0}function x(t){var e=function(t,e){return{fixedPosition:sn(t,e),fixedDirection:e,fixedOffset:[0,0]}}(u.startPositions,t);u.fixedDirection=e.fixedDirection,u.fixedPosition=e.fixedPosition,u.fixedOffset=e.fixedOffset}function y(e){var n=function(t,e){var n=t.allMatrix,r=t.is3d,i=t.width,o=t.height,a=r?4:3,s=function(t,e,n){return[e?t[0]/(e/2)-1:0,n?t[1]/(n/2)-1:0]}(e,i,o);return{fixedPosition:vr(n,e,a),fixedDirection:s,fixedOffset:[i?0:e[0],o?0:e[1]]}}(t.state,e);u.fixedDirection=n.fixedDirection,u.fixedPosition=n.fixedPosition,u.fixedOffset=n.fixedOffset}function E(t){u.minSize=[L("".concat(t[0]),0)||0,L("".concat(t[1]),0)||0]}function w(t){var e=[t[0]||1/0,t[1]||1/0];O(e[0])&&!isFinite(e[0])||(e[0]=L("".concat(e[0]),0)||1/0),O(e[1])&&!isFinite(e[1])||(e[1]=L("".concat(e[1]),0)||1/0),u.maxSize=e}u.transformOrigin=T(m)?m.split(" "):m,u.startOffsetMatrix=p.offsetMatrix,u.startTransformOrigin=p.transformOrigin,u.isWidth=null!==(n=null==e?void 0:e.parentIsWidth)&&void 0!==n?n:!f[0]&&!f[1]||f[0]||!f[1],u.startPositions=Or(t.state),b(h/g),x(c||[-f[0],-f[1]]),u.setFixedDirection=x,u.setFixedPosition=y,u.setMin=E,u.setMax=w;var D=Fr(t,e,{direction:f,startRatio:u.ratio,set:function(t){var e=Se(t,2),n=e[0],r=e[1];u.startWidth=n,u.startHeight=r},setMin:E,setMax:w,setRatio:b,setFixedDirection:x,setFixedPosition:y,setOrigin:function(t){u.transformOrigin=t},dragStart:$n.dragStart(t,(new Qe).dragStart([0,0],e))}),S=l||Gr(t,"onResizeStart",D);return u.startFixedDirection=u.fixedDirection,u.startFixedPosition=u.fixedPosition,!1!==S&&(u.isResize=!0,t.state.snapRenderInfo={request:e.isRequest,direction:f}),!!u.isResize&&D},dragControl:function(t,e){var n,r=e.datas,i=e.parentFlag,o=e.isPinch,a=e.parentKeepRatio,s=e.dragClient,u=e.parentDist,c=e.useSnap,l=e.isRequest,f=e.isGroup,p=e.parentEvent,d=e.resolveMatrix,h=r.isResize,g=r.transformOrigin,v=r.startWidth,m=r.startHeight,b=r.prevWidth,x=r.prevHeight,y=r.minSize,E=r.maxSize,w=r.ratio,D=r.startOffsetWidth,S=r.startOffsetHeight,M=r.isWidth;if(h){if(d){var C=t.state.is3d,_=r.startOffsetMatrix,T=r.startTransformOrigin,P=C?4:3,R=zt(fn(e)),k=Math.sqrt(R.length);P!==k&&(R=mt(R,k,P));var F=un(_,R,T,P),B=mr(F,D,S,P);r.startPositions=B,r.nextTargetMatrix=R,r.nextAllMatrix=F}var G=Dr(t.props,"resizable"),A=G.resizeFormat,z=G.throttleResize,I=void 0===z?i?0:1:z,N=G.parentMoveable,Y=G.keepRatioFinally,X=r.direction,W=X,H=0,q=0;X[0]||X[1]||(W=[1,1]);var j=w&&(null!=a?a:G.keepRatio)||!1,L=Se(dt(),2),Z=L[0],$=L[1];p||(r.setFixedDirection(r.fixedDirection),Gr(t,"onBeforeResize",Fr(t,e,{startFixedDirection:r.startFixedDirection,startFixedPosition:r.startFixedPosition,setFixedDirection:function(t){var e;return r.setFixedDirection(t),e=Se(dt(),2),Z=e[0],$=e[1],[Z,$]},setFixedPosition:function(t){var e;return r.setFixedPosition(t),e=Se(dt(),2),Z=e[0],$=e[1],[Z,$]},boundingWidth:Z,boundingHeight:$,setSize:function(t){var e;e=Se(t,2),Z=e[0],$=e[1]}},!0)));var J=s;s||(J=!i&&o?function(t){return sn(Or(t.state),[0,0])}(t):r.fixedPosition);var tt=[0,0];if(o||(tt=function(t,e,n,r,i,o,a){if(!Bn(t,"resizable"))return[0,0];var s=a.fixedDirection,u=a.nextAllMatrix,c=t.state,l=c.allMatrix,f=c.is3d;return function(t,e,n,r,i,o,a,s){for(var u=Or(t.state),c=t.props.keepRatio,l=0,f=0,p=0;p<2;++p){var d=er(t,e(l,f),i,c,a,s),h=d.width,g=d.height,v=h.isBound,m=g.isBound,b=h.offset,x=g.offset;if(1===p&&(v||(b=0),m||(x=0)),0===p&&a&&!v&&!m)return[0,0];if(c){var y=Qr(b)*(n?1/n:1),E=Qr(x)*(r?1/r:1);(v&&m?y<E:m||!v&&y<E)?b=n*x/r:x=r*b/n}l+=b,f+=x}if(!c&&i[0]&&i[1]){var w=function(t,e,n,r,i){var o=[-n[0],-n[1]],a=t.state,s=a.width,u=a.height,c=t.props.bounds,l=1/0,f=1/0;if(c){var p=[[n[0],-n[1]],[-n[0],n[1]]],d=c.left,h=void 0===d?-1/0:d,g=c.top,v=void 0===g?-1/0:g,m=c.right,b=void 0===m?1/0:m,x=c.bottom,y=void 0===x?1/0:x;p.forEach(function(t){var n=t[0]!==o[0],a=t[1]!==o[1],c=sn(e,t),p=360*K(r,c)/Math.PI;if(a){var d=c.slice();(Qr(p-360)<2||Qr(p-180)<2)&&(d[1]=r[1]);var g=jn(r,d,(r[1]<c[1]?y:v)-c[1],!1,i),m=Se(g.offset,2)[1],x=g.isOutside;isNaN(m)||(f=u+(x?1:-1)*Qr(m))}if(n){d=c.slice(),(Qr(p-90)<2||Qr(p-270)<2)&&(d[0]=r[0]);var E=jn(r,d,(r[0]<c[0]?b:h)-c[0],!0,i),w=Se(E.offset,1)[0],D=E.isOutside;isNaN(w)||(l=s+(D?1:-1)*Qr(w))}})}return{maxWidth:l,maxHeight:f}}(t,u,i,o,s),D=w.maxWidth,S=w.maxHeight,M=Se(function(t,e,n,r,i,o,a,s,u){var c=sn(e,a),l=Un(t,s,{vertical:[c[0]],horizontal:[c[1]]}),f=l.horizontal.offset,p=l.vertical.offset;if(Q(p,je)||Q(f,je)){var d=Se(on({datas:u,distX:-p,distY:-f}),2),h=d[0],g=d[1];return[Math.min(i||1/0,n+a[0]*h)-n,Math.min(o||1/0,r+a[1]*g)-r]}return[0,0]}(t,e(l,f).map(function(t){return t.map(function(t){return Q(t,je)})}),n+l,r+f,D,S,i,a,s),2);l+=b=M[0],f+=x=M[1]}return[l,f]}(t,function(t,r){return function(t,e,n,r,i,o){var a=mr(t,e,n,o?4:3);return Tr(a,Et(i,sn(a,r)))}(u||l,e+t,n+r,s,i,f)},e,n,r,i,o,a)}(t,Z,$,X,J,!c&&l,r)),u&&(!u[0]&&(tt[0]=0),!u[1]&&(tt[1]=0)),j){W[0]&&W[1]&&tt[0]&&tt[1]&&(Qr(tt[0])>Qr(tt[1])?tt[1]=0:tt[0]=0);var et=!tt[0]&&!tt[1];et&&ht(),W[0]&&!W[1]||tt[0]&&!tt[1]||et&&M?(Z+=tt[0],$=Z/w):(!W[0]&&W[1]||!tt[0]&&tt[1]||et&&!M)&&($+=tt[1],Z=$*w)}else Z+=tt[0],$+=tt[1],Z=Math.max(0,Z),$=Math.max(0,$);n=Se(function(t,e,n,r){if(!r)return t.map(function(t,r){return V(t,e[r],n[r])});var i=t[0],o=t[1],a=!0===r?i/o:r,s=U(t,e,!1,a),u=s[0],c=s[1],l=U(t,n,!0,a),f=l[0],p=l[1];return i<u||o<c?(i=u,o=c):(i>f||o>p)&&(i=f,o=p),[i,o]}([Z,$],y,E,!!j&&w),2),Z=n[0],$=n[1],ht(),j&&(f||Y)&&(M?$=Z/w:Z=$*w);var nt=[(H=Z-D)-b,(q=$-S)-x];r.prevWidth=H,r.prevHeight=q;var rt=hn(t,Z,$,J,g,r);if(N||!nt.every(function(t){return!t})||!rt.every(function(t){return!t})){var it,ot,at,st,ut=$n.drag(t,Je(e,t.state,rt,!!o,0,"draggable")),ct=ut.transform,lt=v+H,ft=m+q,pt=Fr(t,e,De({width:lt,height:ft,offsetWidth:Math.round(Z),offsetHeight:Math.round($),startRatio:w,boundingWidth:Z,boundingHeight:$,direction:X,dist:[H,q],delta:nt,isPinch:!!o,drag:ut},(it={style:{width:"".concat(lt,"px"),height:"".concat(ft,"px")},transform:ct},at=e,st=(ot=ut).afterTransform||ot.transform,De(De({},kr(De(De(De({},it.style),ot.style),{transform:st}),at)),{afterTransform:st,transform:it.transform}))));return!p&&Gr(t,"onResize",pt),pt}}function dt(){var t=r.fixedDirection,n=function(t,e,n,r){var i,o=n.ratio,a=n.startOffsetWidth,s=n.startOffsetHeight,u=0,c=0,l=r.distX,f=r.distY,p=r.pinchScale,d=r.parentDistance,h=r.parentDist,g=r.parentScale,v=n.fixedDirection,m=[0,1].map(function(e){return Qr(t[e]-v[e])}),b=[0,1].map(function(t){var e=m[t];return 0!==e&&(e=2/e),e});if(h)u=h[0],c=h[1],e&&(u?c||(c=u/o):u=c*o);else if(O(p))u=(p-1)*a,c=(p-1)*s;else if(g)u=(g[0]-1)*a,c=(g[1]-1)*s;else if(d){var x=a*m[0],y=s*m[1],E=yr([x,y]);u=d/E*x*b[0],c=d/E*y*b[1]}else{var w=on({datas:n,distX:l,distY:f});w=b.map(function(t,e){return w[e]*t}),i=Se(function(t,e,n,r,i){var o=Se(t,2),a=o[0],s=o[1],u=0,c=0;if(i&&a&&s){var l=K([0,0],e),f=K([0,0],r),p=yr(e),d=Math.cos(l-f)*p;if(r[0])if(r[1]){var h=r[0]*a,g=r[1]*s,v=Math.atan2(h+e[0],g+e[1]),m=Math.atan2(h,g);v<0&&(v+=2*Math.PI),m<0&&(m+=2*Math.PI);var b=0;(b=Qr(v-m)<Math.PI/2||Qr(v-m)>Math.PI/2*3?v-m:v-(m+=Math.PI))>2*Math.PI?b-=2*Math.PI:b>Math.PI?b=2*Math.PI-b:b<-Math.PI&&(b=-2*Math.PI-b);var x=yr([h+e[0],g+e[1]])*Math.cos(b);u=x*Math.sin(m)-h,c=x*Math.cos(m)-g,r[0]<0&&(u*=-1),r[1]<0&&(c*=-1)}else c=(u=d)/n;else u=(c=d)*n}else u=r[0]*e[0],c=r[1]*e[1];return[u,c]}([a,s],w,o,t,e),2),u=i[0],c=i[1]}return{distWidth:u,distHeight:c}}(W,j,r,e);H=n.distWidth,q=n.distHeight;var i=W[0]-t[0]||j?Math.max(D+H,Le):D,o=W[1]-t[1]||j?Math.max(S+q,Le):S;return j&&D&&S&&(M?o=i/w:i=o*w),[i,o]}function ht(){var t;A&&(t=Se(A([Z,$]),2),Z=t[0],$=t[1]),Z=Q(Z,I),$=Q($,I)}},dragControlAfter:function(t,e){var n=e.datas,r=n.isResize,i=n.startOffsetWidth,o=n.startOffsetHeight,a=n.prevWidth,s=n.prevHeight;if(r&&!1!==t.props.checkResizableError){var u=t.state,c=u.width-(i+a),l=u.height-(o+s),f=Qr(c)>3,p=Qr(l)>3;return f&&(n.startWidth+=c,n.startOffsetWidth+=c,n.prevWidth+=c),p&&(n.startHeight+=l,n.startOffsetHeight+=l,n.prevHeight+=l),f||p?this.dragControl(t,e):void 0}},dragControlEnd:function(t,e){var n=e.datas,r=e.parentEvent;if(n.isResize){n.isResize=!1;var i=Br(t,e,{});return!r&&Gr(t,"onResizeEnd",i),i}},dragGroupControlCondition:Jn,dragGroupControlStart:function(t,e){var n=e.datas,r=this.dragControlStart(t,De(De({},e),{isGroup:!0}));if(!r)return!1;var i=Dn(t,"resizable",e),o=n.startOffsetWidth,a=n.startOffsetHeight;function s(){var t=n.minSize;i.forEach(function(e){var n=e.datas,r=n.minSize,i=n.startOffsetWidth,s=n.startOffsetHeight,u=o*(i?r[0]/i:0),c=a*(s?r[1]/s:0);t[0]=Math.max(t[0],u),t[1]=Math.max(t[1],c)})}function u(){var t=n.maxSize;i.forEach(function(e){var n=e.datas,r=n.maxSize,i=n.startOffsetWidth,s=n.startOffsetHeight,u=o*(i?r[0]/i:0),c=a*(s?r[1]/s:0);t[0]=Math.min(t[0],u),t[1]=Math.min(t[1],c)})}var c=Mn(t,this,"dragControlStart",e,function(e,r){return Cn(t,e,n,r)});s(),u();var l=function(e){r.setFixedDirection(e),c.forEach(function(r,o){r.setFixedDirection(e),Cn(t,r.moveable,n,i[o])})};n.setFixedDirection=l;var f=De(De({},r),{targets:t.props.targets,events:c.map(function(t){return De(De({},t),{setMin:function(e){t.setMin(e),s()},setMax:function(e){t.setMax(e),u()}})}),setFixedDirection:l,setMin:function(t){r.setMin(t),s()},setMax:function(t){r.setMax(t),u()}}),p=Gr(t,"onResizeGroupStart",f);return n.isResize=!1!==p,!!n.isResize&&r},dragGroupControl:function(t,e){var n=e.datas;if(n.isResize){var r=Dr(t.props,"resizable");!function(t,e,n){t._emitter.on("onBeforeResize",n)}(t,0,function(n){Gr(t,"onBeforeResizeGroup",Fr(t,e,De(De({},n),{targets:r.targets}),!0))});var i=this.dragControl(t,De(De({},e),{isGroup:!0}));if(i){var o=i.boundingWidth,a=i.boundingHeight,s=i.dist,u=r.keepRatio,c=[o/(o-s[0]),a/(a-s[1])],l=n.fixedPosition,f=Mn(t,this,"dragControl",e,function(e,n){var r=Se(St(Rt(t.rotation/180*Math.PI,3),[n.datas.originalX*c[0],n.datas.originalY*c[1],1],3),2),i=r[0],o=r[1];return De(De({},n),{parentDist:null,parentScale:c,dragClient:yt(l,[i,o]),parentKeepRatio:u})}),p=De({targets:r.targets,events:f},i);return Gr(t,"onResizeGroup",p),p}}},dragGroupControlEnd:function(t,e){var n=e.isDrag;if(e.datas.isResize){this.dragControlEnd(t,e);var r=Mn(t,this,"dragControlEnd",e);return Gr(t,"onResizeGroupEnd",Br(t,e,{targets:t.props.targets,events:r})),n}},request:function(t){var e={},n=0,r=0,i=!1,o=t.getRect();return{isControl:!0,requestStart:function(t){var n;return i=t.useSnap,{datas:e,parentDirection:t.direction||[1,1],parentIsWidth:null===(n=null==t?void 0:t.horizontal)||void 0===n||n,useSnap:i}},request:function(t){return"offsetWidth"in t?n=t.offsetWidth-o.offsetWidth:"deltaWidth"in t&&(n+=t.deltaWidth),"offsetHeight"in t?r=t.offsetHeight-o.offsetHeight:"deltaHeight"in t&&(r+=t.deltaHeight),{datas:e,parentDist:[n,r],parentKeepRatio:t.keepRatio,useSnap:i}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:i}}}},unset:function(t){t.state.gestos.resizable=null}};function tr(t){return t?t/Qr(t):0}function er(t,e,n,r,i,o){var a=function(t,e,n){var r=[];if(n)1!==Qr(e[0])||1!==Qr(e[1])?r.push([e,[-1,-1]],[e,[-1,1]],[e,[1,-1]],[e,[1,1]]):r.push([e,[t[0],-t[1]]],[e,[-t[0],t[1]]]),r.push([e,t]);else if(t[0]&&t[1]||!t[0]&&!t[1]){var i=t[0]?t:[1,1];[1,-1].forEach(function(t){[1,-1].forEach(function(n){var o=[t*i[0],n*i[1]];e[0]===o[0]&&e[1]===o[1]||r.push([e,o])})})}else t[0]?(1===Qr(e[0])?[1]:[1,-1]).forEach(function(n){r.push([[e[0],-1],[n*t[0],-1]],[[e[0],0],[n*t[0],0]],[[e[0],1],[n*t[0],1]])}):t[1]&&(1===Qr(e[1])?[1]:[1,-1]).forEach(function(n){r.push([[-1,e[1]],[-1,n*t[1]]],[[0,e[1]],[0,n*t[1]]],[[1,e[1]],[1,n*t[1]]])});return r}(n,o.fixedDirection,r),s=qn(t,e,n,r),u=Me(Me([],Se(function(t,e,n,r,i,o){return n.map(function(n){var a=Se(n,2),s=a[0],u=a[1],c=sn(e,s),l=sn(e,u),f=r?function(t,e,n,r){var i=function(t,e,n){var r=Pn(t),i=r.left,o=r.top,a=r.right,s=r.bottom,u=Se(n,2),c=u[0],l=u[1],f=Se(Et(n,e),2),p=f[0],d=f[1];Qr(p)<Le&&(p=0),Qr(d)<Le&&(d=0);var h=d>0,g=p>0,v={isBound:!1,offset:0,pos:0},m={isBound:!1,offset:0,pos:0};if(0===p&&0===d)return{vertical:v,horizontal:m};if(0===p)h?s<l&&(m.pos=s,m.offset=l-s):o>l&&(m.pos=o,m.offset=l-o);else if(0===d)g?a<c&&(v.pos=a,v.offset=c-a):i>c&&(v.pos=i,v.offset=c-i);else{var b=d/p,x=n[1]-b*c,y=0,E=0,w=!1;g&&a<=c?(y=b*a+x,E=a,w=!0):!g&&c<=i&&(y=b*i+x,E=i,w=!0),w&&(y<o||y>s)&&(w=!1),w||(h&&s<=l?(E=((y=s)-x)/b,w=!0):!h&&l<=o&&(E=((y=o)-x)/b,w=!0)),w&&(v.isBound=!0,v.pos=E,v.offset=c-E,m.isBound=!0,m.pos=y,m.offset=l-y)}return{vertical:v,horizontal:m}}(t,e,n),o=i.horizontal,a=i.vertical,s=r?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(t,e,n){var r=Se(n,2),i=r[0],o=r[1],a=Se(e,2),s=a[0],u=a[1],c=Se(Et(n,e),2),l=c[0],f=c[1],p=f>0,d=l>0;l=qr(l),f=qr(f);var h={isSnap:!1,offset:0,pos:0},g={isSnap:!1,offset:0,pos:0};if(0===l&&0===f)return{vertical:h,horizontal:g};var v=An(t,l?[i]:[],f?[o]:[],[],[],void 0,void 0),m=v.vertical,b=v.horizontal;m.posInfos.filter(function(t){var e=t.pos;return d?e>=s:e<=s}),b.posInfos.filter(function(t){var e=t.pos;return p?e>=u:e<=u}),m.isSnap=m.posInfos.length>0,b.isSnap=b.posInfos.length>0;var x=zn(m),y=x.isSnap,E=x.guideline,w=zn(b),D=w.isSnap,S=w.guideline,M=D?S.pos[1]:0,C=y?E.pos[0]:0;if(0===l)D&&(g.isSnap=!0,g.pos=S.pos[1],g.offset=o-g.pos);else if(0===f)y&&(h.isSnap=!0,h.pos=C,h.offset=i-C);else{var _=f/l,T=n[1]-_*i,O=0,P=0,R=!1;y?(O=_*(P=C)+T,R=!0):D&&(P=((O=M)-T)/_,R=!0),R&&(h.isSnap=!0,h.pos=P,h.offset=i-P,g.isSnap=!0,g.pos=O,g.offset=o-O)}return{vertical:h,horizontal:g}}(t,e,n),u=s.horizontal,c=s.vertical,l=Zn(o,u),f=Zn(a,c),p=Qr(l),d=Qr(f);return{horizontal:{isBound:o.isBound,isSnap:u.isSnap,offset:l,dist:p},vertical:{isBound:a.isBound,isSnap:c.isSnap,offset:f,dist:d}}}(t,c,l,i):Un(t,i,{vertical:[l[0]],horizontal:[l[1]]}),p=f.horizontal,d=p.offset,h=p.isBound,g=p.isSnap,v=f.vertical,m=v.offset,b=v.isBound,x=v.isSnap,y=Et(u,s);if(!m&&!d)return{isBound:b||h,isSnap:x||g,sign:y,offset:[0,0]};var E=function(t,e,n,r){var i=K(t,e)/Math.PI*180,o=n.vertical,a=o.isBound,s=o.isSnap,u=o.dist,c=n.horizontal,l=c.isBound,f=c.isSnap,p=i%180,d=p<3||p>177,h=p>87&&p<93;return c.dist<u&&(a||s&&!h&&(!r||!d))?"vertical":!l&&(!f||d||r&&h)?"":"horizontal"}(c,l,f,r);if(!E)return{sign:y,isBound:!1,isSnap:!1,offset:[0,0]};var w="vertical"===E,D=[0,0];return D=(D=r||1!==Qr(u[0])||1!==Qr(u[1])||s[0]===u[0]||s[1]===u[1]?jn(c,l,-(w?m:d),w,o).offset:on({datas:o,distX:-m,distY:-d})).map(function(t,e){return t*(y[e]?2/y[e]:0)}),{sign:y,isBound:w?b:h,isSnap:w?x:g,offset:D}})}(t,e,a,r,i,o)),!1),Se(Hn(t,s,o)),!1),c=Nn(u,0),l=Nn(u,1);return{width:{isBound:c.isBound,offset:c.offset[0]},height:{isBound:l.isBound,offset:l.offset[1]}}}function nr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g.apply(void 0,Me([We],Se(t),!1))}function rr(t){t()}function ir(t){return t&&"none"!==t?C(t)?t:zt(t):[1,0,0,1,0,0]}function or(t,e,n){return bt(e,Bt(n,e),t,Bt(n.map(function(t){return-t}),e))}function ar(t){return t?t.split(" "):["0","0"]}function sr(t){var e=wn(t)("transform");if(e&&"none"!==e)return e;if("transform"in t){var n=t.transform.baseVal;if(!n)return"";var r=n.length;if(!r)return"";for(var i=[],o=function(t){var e=n[t].matrix;i.push("matrix(".concat(["a","b","c","d","e","f"].map(function(t){return e[t]}).join(", "),")"))},a=0;a<r;++a)o(a);return i.join(" ")}return""}function ur(t,e,n,r,i){var o,a,s,u,c=st(t)||ut(t),l=!1;if(!t||n)s=t;else{var f=null===(o=null==t?void 0:t.assignedSlot)||void 0===o?void 0:o.parentElement,p=t.parentElement;f?(l=!0,u=p,s=f):s=p}for(var d=!1,h=t===e||s===e,g="relative",v=1,m=parseFloat(null==i?void 0:i("zoom"))||1,b=null==i?void 0:i("position");s&&s!==c;){e===s&&(h=!0);var x=wn(s),y=s.tagName.toLowerCase(),E=sr(s),w=x("willChange"),D=parseFloat(x("zoom"))||1;if(g=x("position"),r&&1!==D){v=D;break}if(!n&&r&&1!==m&&b&&"absolute"!==b||"svg"===y||"foreignobject"===y||"static"!==g||E&&"none"!==E||"transform"===w)break;var S=null===(a=null==t?void 0:t.assignedSlot)||void 0===a?void 0:a.parentNode,M=s.parentNode;S&&(l=!0,u=M);var C=M;if(C&&11===C.nodeType){d=!0,g=wn(s=C.host)("position");break}s=C,g="relative"}return{offsetZoom:v,hasSlot:l,parentSlotElement:u,isCustomElement:d,isStatic:"static"===g,isEnd:h||!s||s===c,offsetParent:s||c}}function cr(t,e){var n,r,i,o=t.tagName.toLowerCase(),a=t.offsetLeft,s=t.offsetTop,u=wn(t),c=M(a),l=!c;return l||"svg"===o&&!t.ownerSVGElement?i=(r=ar(u("transformOrigin")).map(function(t){return parseFloat(t)})).slice():(i=(r=Fe?function(t){return ar(Ar(t,":before").transformOrigin).map(function(e,n){var r=A(e),i=r.value,o=r.unit;return i*function(t,e,n){return"%"===e?hr(t.ownerSVGElement)[n?"width":"height"]/100:1}(t,o,0===n)})}(t):ar(u("transformOrigin")).map(function(t){return parseFloat(t)})).slice(),l=!0,"svg"===o?(a=0,s=0):(n=Se(function(t,e,n){var r=t.tagName.toLowerCase();if(!t.getBBox||!n&&"g"===r)return[0,0,0,0];var i="fill-box"===wn(t)("transform-box"),o=t.getBBox(),a=hr(t.ownerSVGElement),s=o.x,u=o.y;"foreignobject"!==r||s||u||(s=parseFloat(t.getAttribute("x"))||0,u=parseFloat(t.getAttribute("y"))||0);var c=s-a.x,l=u-a.y;return[c,l,i?e[0]:e[0]-c,i?e[1]:e[1]-l]}(t,r,t===e&&"g"===e.tagName.toLowerCase()),4),a=n[0],s=n[1],r[0]=n[2],r[1]=n[3])),{tagName:o,isSVG:c,hasOffset:l,offset:[a||0,s||0],origin:r,targetOrigin:i}}function lr(t,e){var n=wn(t),r=wn(ut(t)),i=r("position");if(!(e||i&&"static"!==i))return[0,0];var o=parseInt(r("marginLeft"),10),a=parseInt(r("marginTop"),10);return"absolute"===n("position")&&("auto"===n("top")&&"auto"===n("bottom")||(a=0),"auto"===n("left")&&"auto"===n("right")||(o=0)),[o,a]}function fr(t){t.forEach(function(t){var e=t.matrix;e&&(t.matrix=mt(e,3,4))})}function pr(t){for(var e=t.parentElement,n=!1,r=ut(t);e;){var i=Ar(e).transform;if(i&&"none"!==i){n=!0;break}if(e===r)break;e=e.parentElement}return{fixedContainer:e||r,hasTransform:n}}function dr(t,e){return void 0===e&&(e=t.length>9),"".concat(e?"matrix3d":"matrix","(").concat(Dt(t,!e).join(","),")")}function hr(t){var e=t.clientWidth,n=t.clientHeight;if(!t)return{x:0,y:0,width:0,height:0,clientWidth:e,clientHeight:n};var r=t.viewBox,i=r&&r.baseVal||{x:0,y:0,width:0,height:0};return{x:i.x,y:i.y,width:i.width||e,height:i.height||n,clientWidth:e,clientHeight:n}}function gr(t,e){var n,r=hr(t),i=r.width,o=r.height,a=r.clientWidth,s=r.clientHeight,u=a/i,c=s/o,l=t.preserveAspectRatio.baseVal,f=l.align,p=l.meetOrSlice,d=[0,0],h=[u,c],g=[0,0];if(1!==f){var v=(f-2)%3,m=Math.floor((f-2)/3);d[0]=i*v/2,d[1]=o*m/2;var b=2===p?Math.max(c,u):Math.min(u,c);h[0]=b,h[1]=b,g[0]=(a-i)/2*v,g[1]=(s-o)/2*m}var x=Ft(h,e);return n=Se(g,2),x[e*(e-1)]=n[0],x[e*(e-1)+1]=n[1],or(x,e,d)}function vr(t,e,n){return St(t,vt(e,n),n)}function mr(t,e,n,r){return[[0,0],[e,0],[0,n],[e,n]].map(function(e){return vr(t,e,r)})}function br(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]}),r=Math.min.apply(Math,Me([],Se(e),!1)),i=Math.min.apply(Math,Me([],Se(n),!1)),o=Math.max.apply(Math,Me([],Se(e),!1)),a=Math.max.apply(Math,Me([],Se(n),!1));return{left:r,top:i,right:o,bottom:a,width:o-r,height:a-i}}function xr(t,e,n,r){return br(mr(t,e,n,r))}function yr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Er(t,e,n,r){void 0===n&&(n=1),void 0===r&&(r=K(t,e));var i=function(t,e){return yr([e[0]-t[0],e[1]-t[1]])}(t,e);return{transform:"translateY(-50%) translate(".concat(t[0],"px, ").concat(t[1],"px) rotate(").concat(r,"rad) scaleY(").concat(n,")"),width:"".concat(i,"px")}}function wr(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n.length,o=n.reduce(function(t,e){return t+e[0]},0)/i,a=n.reduce(function(t,e){return t+e[1]},0)/i;return{transform:"translateZ(0px) translate(".concat(o,"px, ").concat(a,"px) rotate(").concat(t,"rad) scale(").concat(e,")")}}function Dr(t,e){var n=t[e];return C(n)?De(De({},t),n):t}function Sr(t){var e=t&&!M(t.offsetWidth),n=0,r=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,p=0,d=0,h=1/0,g=1/0,v=1/0,m=1/0,b=0,x=0,y=!1;if(t)if(!e&&t.ownerSVGElement){var E=t.getBBox();y=!0,a=n=E.width,s=r=E.height,u=n,c=r,i=n,o=r}else{var w=wn(t),D=t.style,S="border-box"===w("boxSizing"),C=parseFloat(w("borderLeftWidth"))||0,_=parseFloat(w("borderRightWidth"))||0,T=parseFloat(w("borderTopWidth"))||0,O=parseFloat(w("borderBottomWidth"))||0,P=(parseFloat(w("paddingLeft"))||0)+(parseFloat(w("paddingRight"))||0),R=(parseFloat(w("paddingTop"))||0)+(parseFloat(w("paddingBottom"))||0),k=P+(C+_),F=R+(T+O),B=w("position"),G=0,A=0;if("clientLeft"in t){var z;if(z="absolute"===B?ur(t,ut(t)).offsetParent:t.parentElement){var I=wn(z);G=parseFloat(I("width")),A=parseFloat(I("height"))}}l=Math.max(P,L(w("minWidth"),G)||0),f=Math.max(R,L(w("minHeight"),A)||0),h=L(w("maxWidth"),G),g=L(w("maxHeight"),A),isNaN(h)&&(h=1/0),isNaN(g)&&(g=1/0),b=L(D.width,0)||0,x=L(D.height,0)||0,a=parseFloat(w("width"))||0,s=parseFloat(w("height"))||0,n=u=Qr(a-b)<1?V(l,b||a,h):a,r=c=Qr(s-x)<1?V(f,x||s,g):s,i=u,o=c,S?(v=h,m=g,p=l,d=f,u=n-k,c=r-F):(v=h+k,m=g+F,p=l+k,d=f+F,n=u+k,r=c+F),i=u+P,o=c+R}return{svg:y,offsetWidth:n,offsetHeight:r,clientWidth:i,clientHeight:o,contentWidth:u,contentHeight:c,inlineCSSWidth:b,inlineCSSHeight:x,cssWidth:a,cssHeight:s,minWidth:l,minHeight:f,maxWidth:h,maxHeight:g,minOffsetWidth:p,minOffsetHeight:d,maxOffsetWidth:v,maxOffsetHeight:m}}function Mr(t,e){var n=t===ut(t)||t===st(t),r={clientLeft:t.clientLeft,clientTop:t.clientTop,clientWidth:t.clientWidth,clientHeight:t.clientHeight,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,overflow:!1};return n&&(r.clientHeight=Math.max(e.height,r.clientHeight),r.scrollHeight=Math.max(e.height,r.scrollHeight)),r.overflow="visible"!==wn(t)("overflow"),De(De({},e),r)}function Cr(t,e,n,r){var i=t.left,o=t.right,a=t.top,s=t.bottom,u=e.top,c=e.left,l={left:c+i,top:u+a,right:c+o,bottom:u+s,width:o-i,height:s-a};return n&&r?Mr(n,l):l}function _r(t,e){var n=0,r=0,i=0,o=0;if(t){var a=t.getBoundingClientRect();n=a.left,r=a.top,i=a.width,o=a.height}var s={left:n,top:r,width:i,height:o,right:n+i,bottom:r+o};return t&&e?Mr(t,s):s}function Tr(t,e){return[yt(e,t[0]),yt(e,t[1]),yt(e,t[2]),yt(e,t[3])]}function Or(t){var e=t.left,n=t.top;return Tr([t.pos1,t.pos2,t.pos3,t.pos4],[e,n])}function Pr(t,e){t[e?"controlAbles":"targetAbles"].forEach(function(e){e.unset&&e.unset(t)})}function Rr(t,e){var n=e?"controlGesto":"targetGesto",r=t[n];!1===(null==r?void 0:r.isIdle())&&Pr(t,e),null==r||r.unset(),t[n]=null}function kr(t,e){if(e){var n=ln(e);n.nextStyle=De(De({},n.nextStyle),t)}return{style:t,cssText:j(t).map(function(e){return"".concat((n=e,n.replace(/([a-z])([A-Z])/g,function(t,e,n){return e+"-"+n.toLowerCase()})),": ").concat(t[e],";");var n}).join("")}}function Fr(t,e,n,r){var i=e.datas;i.datas||(i.datas={});var o=De(De({},n),{target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,moveable:t,datas:i.datas,isRequest:e.isRequest,isRequestChild:e.isRequestChild,isFirstDrag:!!e.isFirstDrag,isTrusted:!1!==e.isTrusted,stopAble:function(){i.isEventStart=!1},stopDrag:function(){var t;null===(t=e.stop)||void 0===t||t.call(e)}});return i.isStartEvent?r||(i.lastEvent=o):i.isStartEvent=!0,o}function Br(t,e,n){var r=e.datas,i="isDrag"in n?n.isDrag:e.isDrag;return r.datas||(r.datas={}),De(De({isDrag:i},n),{moveable:t,target:t.state.target,clientX:e.clientX,clientY:e.clientY,inputEvent:e.inputEvent,currentTarget:t,lastEvent:r.lastEvent,isDouble:e.isDouble,datas:r.datas,isFirstDrag:!!e.isFirstDrag})}function Gr(t,e,n,r,i){return t.triggerEvent(e,n,r,i)}function Ar(t,e){return ct(t).getComputedStyle(t,e)}function zr(t,e,n){var r={},i={};return t.filter(function(t){var o=t.name;if(r[o]||!e.some(function(e){return t[e]}))return!1;if(!n&&t.ableGroup){if(i[t.ableGroup])return!1;i[t.ableGroup]=!0}return r[o]=!0,!0})}function Ir(t,e){return t===e||null==t&&null==e}function Nr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t.length-1,r=0;r<n;++r){var i=t[r];if(!M(i))return i}return t[n]}function Yr(t){return t.reduce(function(t,e){return t.concat(e)},[])}function Xr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.sort(function(t,e){return Qr(e)-Qr(t)}),t[0]}function Wr(t,e,n){return St(gt(t,n),vt(e,n),n)}function Hr(t,e,n,r){if(!n[0]&&!n[1])return e;var i=vr(t,[tr(n[0]||1),0],r),o=vr(t,[0,tr(n[1]||1)],r);return yt(e,vr(t,[n[0]/yr(i),n[1]/yr(o)],r))}function qr(t){return Qr(t)<=Le?0:t}function jr(t,e){return void 0===e&&(e=[t]),function(n,r){if(r.isRequest)return!!e.some(function(t){return r.requestAble===t})&&r.parentDirection;var i=r.inputEvent.target;return et(i,nr("direction"))&&(!t||et(i,nr(t)))}}function Lr(t,e){return t?ft(t)?t:T(t)?e?document.querySelector(t):t:P(t)?t():lt(t)?t:"current"in t?t.current:t:null}function Vr(t,e){return t?((n=t)&&C(n)&&!ft(n)&&(_(n)||"length"in n)?[].slice.call(t):[t]).reduce(function(t,n){return _(n)?t.push(Vr(n,e)):t.push(Lr(n,e)),t},[]):[];var n}function Ur(t,e){if(e){if("left"===t)return{x:"0%",y:"50%"};if("top"===t)return{x:"50%",y:"50%"};if("center"===t)return{x:"50%",y:"50%"};if("right"===t)return{x:"100%",y:"50%"};if("bottom"===t)return{x:"50%",y:"100%"};var n=Se(t.split(" "),2),r=n[0],i=n[1],o=Ur(r||""),a=Ur(i||""),s=De(De({},o),a),u={x:"50%",y:"50%"};return s.x&&(u.x=s.x),s.y&&(u.y=s.y),s.value&&(s.x&&!s.y&&(u.y=s.value),!s.x&&s.y&&(u.x=s.value)),u}return"left"===t?{x:"0%"}:"right"===t?{x:"100%"}:"top"===t?{y:"0%"}:"bottom"===t?{y:"100%"}:t?"center"===t?{value:"50%"}:{value:t}:{}}function Zr(t,e,n){var r=Ur(t,!0),i=r.x,o=r.y;return[L(i,e)||0,L(o,n)||0]}function Kr(t,e){return t.length===e.length&&t.every(function(t,n){var r=e[n],i=_(t),o=_(r);return i&&o?Kr(t,r):!i&&!o&&t===r})}function $r(t,e,n,r,i){var o=t._store,a=o[e];return!(e in o)||a!==n&&r(a)!==r(n)?(o[e]=n,n):a}function Jr(t){return t>=0?1:-1}function Qr(t){return Math.abs(t)}function ti(t){return O(t)?{top:t,left:t,right:t,bottom:t}:{left:t.left||0,top:t.top||0,right:t.right||0,bottom:t.bottom||0}}jr("",["resizable","scalable"]),Ce("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(t,e){var n=e.datas,r=e.targets,i=e.angle,o=e.originalDatas,a=t.props,s=a.pinchable,u=a.ables;if(!s)return!1;var c="onPinch".concat(r?"Group":"","Start"),l="drag".concat(r?"Group":"","ControlStart"),f=(!0===s?t.controlAbles:u.filter(function(t){return s.indexOf(t.name)>-1})).filter(function(t){return t.canPinch&&t[l]}),p=Fr(t,e,{});r&&(p.targets=r);var d=Gr(t,c,p);n.isPinch=!1!==d,n.ables=f;var h=n.isPinch;return!!h&&(f.forEach(function(n){if(o[n.name]=o[n.name]||{},n[l]){var r=De(De({},e),{datas:o[n.name],parentRotate:i,isPinch:!0});n[l](t,r)}}),t.state.snapRenderInfo={request:e.isRequest,direction:[0,0]},h)},pinch:function(t,e){var n=e.datas,r=e.scale,i=e.distance,o=e.originalDatas,a=e.inputEvent,s=e.targets,u=e.angle;if(n.isPinch){var c=i*(1-1/r),l=Fr(t,e,{});s&&(l.targets=s);var f="onPinch".concat(s?"Group":"");Gr(t,f,l);var p=n.ables,d="drag".concat(s?"Group":"","Control");return p.forEach(function(n){n[d]&&n[d](t,De(De({},e),{datas:o[n.name],inputEvent:a,resolveMatrix:!0,pinchScale:r,parentDistance:c,parentRotate:u,isPinch:!0}))}),l}},pinchEnd:function(t,e){var n=e.datas,r=e.isPinch,i=e.inputEvent,o=e.targets,a=e.originalDatas;if(n.isPinch){var s="onPinch".concat(o?"Group":"","End"),u=Br(t,e,{isDrag:r});o&&(u.targets=o),Gr(t,s,u);var c=n.ables,l="drag".concat(o?"Group":"","ControlEnd");return c.forEach(function(n){n[l]&&n[l](t,De(De({},e),{isDrag:r,datas:a[n.name],inputEvent:i,isPinch:!0}))}),r}},pinchGroupStart:function(t,e){return this.pinchStart(t,De(De({},e),{targets:t.props.targets}))},pinchGroup:function(t,e){return this.pinch(t,De(De({},e),{targets:t.props.targets}))},pinchGroupEnd:function(t,e){return this.pinchEnd(t,De(De({},e),{targets:t.props.targets}))}}),jr("scalable");var ei=nr("area-pieces"),ni=nr("area-piece"),ri=nr("avoid"),ii=nr("view-dragging");function oi(t){var e=t.areaElement;if(e){var n=t.state,r=n.width,i=n.height;rt(e,ri),e.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(i,"px")}}function ai(t){return t.createElement("div",{key:"area_pieces",className:ei},t.createElement("div",{className:ni}),t.createElement("div",{className:ni}),t.createElement("div",{className:ni}),t.createElement("div",{className:ni}))}var si={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(t,e){var n=t.props,r=n.target,i=n.dragArea,o=n.groupable,a=n.passDragArea,s=t.getState(),u=s.width,c=s.height,l=s.renderPoses,f=a?nr("area","pass"):nr("area");if(o)return[e.createElement("div",{key:"area",ref:v(t,"areaElement"),className:f}),ai(e)];if(!r||!i)return[];var p=Gt([0,0],[u,0],[0,c],[u,c],l[0],l[1],l[2],l[3]),d=p.length?dr(p,!0):"none";return[e.createElement("div",{key:"area",ref:v(t,"areaElement"),className:f,style:{top:"0px",left:"0px",width:"".concat(u,"px"),height:"".concat(c,"px"),transformOrigin:"0 0",transform:d}}),ai(e)]},dragStart:function(t,e){var n=e.datas,r=e.clientX,i=e.clientY;if(!e.inputEvent)return!1;n.isDragArea=!1;var o=t.areaElement,a=t.state,s=a.moveableClientRect,u=a.renderPoses,c=a.rootMatrix,l=a.is3d,f=s.left,p=s.top,d=br(u),h=d.left,g=d.top,v=d.width,m=d.height,b=Se(Wr(c,[r-f,i-p],l?4:3),2),x=b[0],y=b[1],E=[{left:h,top:g,width:v,height:(y-=g)-10},{left:h,top:g,width:(x-=h)-10,height:m},{left:h,top:g+y+10,width:v,height:m-y-10},{left:h+x+10,top:g,width:v-x-10,height:m}],w=[].slice.call(o.nextElementSibling.children);E.forEach(function(t,e){w[e].style.cssText="left: ".concat(t.left,"px;top: ").concat(t.top,"px; width: ").concat(t.width,"px; height: ").concat(t.height,"px;")}),nt(o,ri),a.disableNativeEvent=!0},drag:function(t,e){var n=e.datas,r=e.inputEvent;if(this.enableNativeEvent(t),!r)return!1;n.isDragArea||(n.isDragArea=!0,oi(t))},dragEnd:function(t,e){this.enableNativeEvent(t);var n=e.inputEvent,r=e.datas;if(!n)return!1;r.isDragArea||oi(t)},dragGroupStart:function(t,e){return this.dragStart(t,e)},dragGroup:function(t,e){return this.drag(t,e)},dragGroupEnd:function(t,e){return this.dragEnd(t,e)},unset:function(t){oi(t),t.state.disableNativeEvent=!1},enableNativeEvent:function(t){var e=t.state;e.disableNativeEvent&&H(function(){e.disableNativeEvent=!1})}};Ce("origin",{props:["origin","svgOrigin"],render:function(t,e){var n,r=t.props,i=r.zoom,o=r.svgOrigin,a=r.groupable,s=t.getState(),u=s.beforeOrigin,c=s.rotation,l=s.svg,f=s.allMatrix,p=s.is3d,d=s.left,h=s.top,g=s.offsetWidth,v=s.offsetHeight;if(!a&&l&&o){var m=Se(Zr(o,g,v),2);n=wr(c,i,Et(vr(f,[m[0],m[1]],p?4:3),[d,h]))}else n=wr(c,i,u);return[e.createElement("div",{className:nr("control","origin"),style:n,key:"beforeOrigin"})]}});var ui={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","preventRightClick","preventWheelClick","requestStyles"],events:["changeTargets"]};Ce("padding",{props:["padding"],render:function(t,e){var n=t.props;if(n.dragArea)return[];var r=ti(n.padding||{}),i=r.left,o=r.top,a=r.right,s=r.bottom,u=t.getState(),c=u.renderPoses,l=[u.pos1,u.pos2,u.pos3,u.pos4],f=[];return i>0&&f.push([0,2]),o>0&&f.push([0,1]),a>0&&f.push([1,3]),s>0&&f.push([2,3]),f.map(function(t,n){var r=Se(t,2),i=r[0],o=r[1],a=Gt([0,0],[100,0],[0,100],[100,100],l[i],l[o],c[i],c[o]);if(a.length)return e.createElement("div",{key:"padding".concat(n),className:nr("padding"),style:{transform:dr(a,!0)}})})}});var ci={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(t,e){var n=t.state,r=n.is3d,i=n.targetMatrix,o=n.inlineTransform,a=r?"matrix3d(".concat(i.join(","),")"):"matrix(".concat(Dt(i,!0),")"),s=o&&"none"!==o?o:a;e.datas.startTransforms=function(t,e){var n=kt(e?4:3);return t==="matrix".concat(e?"3d":"","(").concat(n.join(","),")")||"matrix(1,0,0,1,0,0)"===t}(s,r)?[]:B(s)},resetStyle:function(t){var e=t.datas;e.nextStyle={},e.nextTransforms=t.datas.startTransforms,e.nextTransformAppendedIndexes=[]},fillDragStartParams:function(t,e){return Fr(t,e,{setTransform:function(t){e.datas.startTransforms=_(t)?t:B(t)},isPinch:!!e.isPinch})},fillDragParams:function(t,e){return Fr(t,e,{isPinch:!!e.isPinch})},dragStart:function(t,e){this.setTransform(t,e),this.resetStyle(e),Gr(t,"onBeforeRenderStart",this.fillDragStartParams(t,e))},drag:function(t,e){e.datas.startTransforms||this.setTransform(t,e),this.resetStyle(e),Gr(t,"onBeforeRender",Fr(t,e,{isPinch:!!e.isPinch}))},dragEnd:function(t,e){e.datas.startTransforms||(this.setTransform(t,e),this.resetStyle(e)),Gr(t,"onBeforeRenderEnd",Fr(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag}))},dragGroupStart:function(t,e){var n=this;this.dragStart(t,e);var r=Dn(t,"beforeRenderable",e),i=t.moveables,o=r.map(function(t,e){var r=i[e];return n.setTransform(r,t),n.resetStyle(t),n.fillDragStartParams(r,t)});Gr(t,"onBeforeRenderGroupStart",Fr(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,setTransform:function(){},events:o}))},dragGroup:function(t,e){var n=this;this.drag(t,e);var r=Dn(t,"beforeRenderable",e),i=t.moveables,o=r.map(function(t,e){var r=i[e];return n.resetStyle(t),n.fillDragParams(r,t)});Gr(t,"onBeforeRenderGroup",Fr(t,e,{isPinch:!!e.isPinch,targets:t.props.targets,events:o}))},dragGroupEnd:function(t,e){this.dragEnd(t,e),Gr(t,"onBeforeRenderGroupEnd",Fr(t,e,{isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets}))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)}},li={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(t,e){Gr(t,"onRenderStart",Fr(t,e,{isPinch:!!e.isPinch}))},drag:function(t,e){Gr(t,"onRender",this.fillDragParams(t,e))},dragAfter:function(t,e){return this.drag(t,e)},dragEnd:function(t,e){Gr(t,"onRenderEnd",this.fillDragEndParams(t,e))},dragGroupStart:function(t,e){Gr(t,"onRenderGroupStart",Fr(t,e,{isPinch:!!e.isPinch,targets:t.props.targets}))},dragGroup:function(t,e){var n=this,r=Dn(t,"beforeRenderable",e),i=t.moveables,o=r.map(function(t,e){var r=i[e];return n.fillDragParams(r,t)});Gr(t,"onRenderGroup",Fr(t,e,De(De({isPinch:!!e.isPinch,targets:t.props.targets,transform:pn(e),transformObject:{}},kr(dn(e))),{events:o})))},dragGroupEnd:function(t,e){var n=this,r=Dn(t,"beforeRenderable",e),i=t.moveables,o=r.map(function(t,e){var r=i[e];return n.fillDragEndParams(r,t)});Gr(t,"onRenderGroupEnd",Fr(t,e,De({isPinch:!!e.isPinch,isDrag:e.isDrag,targets:t.props.targets,events:o,transformObject:{},transform:pn(e)},kr(dn(e)))))},dragControlStart:function(t,e){return this.dragStart(t,e)},dragControl:function(t,e){return this.drag(t,e)},dragControlAfter:function(t,e){return this.dragAfter(t,e)},dragControlEnd:function(t,e){return this.dragEnd(t,e)},dragGroupControlStart:function(t,e){return this.dragGroupStart(t,e)},dragGroupControl:function(t,e){return this.dragGroup(t,e)},dragGroupControlEnd:function(t,e){return this.dragGroupEnd(t,e)},fillDragParams:function(t,e){var n={};return Nt(fn(e)||[]).forEach(function(t){n[t.name]=t.functionValue}),Fr(t,e,De({isPinch:!!e.isPinch,transformObject:n,transform:pn(e)},kr(dn(e))))},fillDragEndParams:function(t,e){var n={};return Nt(fn(e)||[]).forEach(function(t){n[t.name]=t.functionValue}),Fr(t,e,De({isPinch:!!e.isPinch,isDrag:e.isDrag,transformObject:n,transform:pn(e)},kr(dn(e))))}};function fi(t,e,n,r,i,o,a){o.clientDistX=o.distX,o.clientDistY=o.distY;var s="Start"===i,u="End"===i,c="After"===i,l=t.state.target,f=o.isRequest,p=r.indexOf("Control")>-1;if(!l||s&&p&&!f&&t.areaElement===o.inputEvent.target)return!1;var d=Me([],Se(e),!1);if(f){var h=o.requestAble;d.some(function(t){return t.name===h})||d.push.apply(d,Me([],Se(t.props.ables.filter(function(t){return t.name===h})),!1))}if(!d.length||d.every(function(t){return t.dragRelation}))return!1;var g,v=o.inputEvent;u&&v&&(g=document.elementFromPoint(o.clientX,o.clientY)||v.target);var m=!1,b=function(){var t;m=!0,null===(t=o.stop)||void 0===t||t.call(o)},x=s&&(!t.targetGesto||!t.controlGesto||!t.targetGesto.isFlag()||!t.controlGesto.isFlag());x&&t.updateRect(i,!0,!1);var y=o.datas,E=p?"controlGesto":"targetGesto",w=t[E],D=function(e,n,r){if(!(n in e)||w!==t[E])return!1;var i=e.name,a=y[i]||(y[i]={});if(s&&(a.isEventStart=!r||!e[r]||e[r](t,o)),!a.isEventStart)return!1;var u=e[n](t,De(De({},o),{stop:b,datas:a,originalDatas:y,inputTarget:g}));return t._emitter.off(),s&&!1===u&&(a.isEventStart=!1),u};x&&d.forEach(function(e){e.unset&&e.unset(t)}),D(ci,"drag".concat(r).concat(i));var S=0,M=0;n.forEach(function(e){if(m)return!1;var n="".concat(e).concat(r).concat(i),a="".concat(e).concat(r,"Condition");""!==i||f||function(t,e){var n,r=t.is3d?4:3;n=Se(Wr(t.rootMatrix,[e.distX,e.distY],r),2),e.distX=n[0],e.distY=n[1]}(t.state,o);var u=d.filter(function(t){return t[n]}),c=(u=u.filter(function(t,e){return t.name&&u.indexOf(t)===e})).filter(function(t){return D(t,n,a)}).length;m&&++S,c&&++M,!m&&s&&u.length&&!c&&(S+=u.filter(function(t){var e=t.name;return!!y[e].isEventStart&&"strong"!==t.dragRelation}).length?1:0)}),c&&!M||D(li,"drag".concat(r).concat(i));var C=w!==t[E]||S===n.length;return(u||m||C)&&(t.state.gestos={},t.moveables&&t.moveables.forEach(function(t){t.state.gestos={}}),d.forEach(function(e){e.unset&&e.unset(t)})),s&&!C&&!f&&M&&t.props.preventDefault&&(null==o||o.preventDefault()),!t.isUnmounted&&!C&&((!s&&M&&!a||u)&&(t.props.flushSync||rr)(function(){t.updateRect(u?i:"",!0,!1),t.forceUpdate()}),s||u||c||!M||a||fi(t,e,n,r,i+"After",o),!0)}function pi(t,e){return function(n,r){var i;void 0===r&&(r=n.inputEvent.target);var o=r,a=t.areaElement,s=t._dragTarget;return!(!s||!e&&(null===(i=t.controlGesto)||void 0===i?void 0:i.isFlag()))&&(o===s||s.contains(o)||o===a||!t.isMoveableElement(o)&&!t.controlBox.contains(o)||et(o,"moveable-area")||et(o,"moveable-padding")||et(o,"moveable-edgeDraggable"))}}function di(t,e,n){var r=t.controlBox,i=[],o=t.props,a=o.dragArea,s=t.state.target,u=o.dragTarget;i.push(r),a&&!u||i.push(e),!a&&u&&s&&e!==s&&o.dragTargetSelf&&i.push(s);var c=pi(t);return gi(t,i,"targetAbles",n,{dragStart:c,pinchStart:c})}function hi(t,e){var n=t.controlBox,r=[];r.push(n);var i=pi(t,!0),o=function(t,e){return void 0===e&&(e=t.inputEvent.target),e===n||!i(t,e)};return gi(t,r,"controlAbles",e,{dragStart:o,pinchStart:o})}function gi(t,e,n,r,i){void 0===i&&(i={});var o="targetAbles"===n,a=t.props,s=a.pinchOutside,u=a.pinchThreshold,c=a.preventClickEventOnDrag,l=a.preventClickDefault,f=a.checkInput,p=a.dragFocusedInput,d=a.preventDefault,h=void 0===d||d,g=a.preventRightClick,v=void 0===g||g,m=a.preventWheelClick,b={preventDefault:h,preventRightClick:v,preventWheelClick:void 0===m||m,container:Lr(a.dragContainer,!0)||ct(t.getControlBoxElement()),pinchThreshold:u,pinchOutside:s,preventClickEventOnDrag:!!o&&c,preventClickEventOnDragStart:!!o&&l,preventClickEventByCondition:o?null:function(e){return t.controlBox.contains(e.target)},checkInput:!!o&&f,dragFocusedInput:p},x=new be(e,b),y="Control"===r;return["drag","pinch"].forEach(function(e){["Start","","End"].forEach(function(o){x.on("".concat(e).concat(o),function(a){var s,u=a.eventType,c="drag"===e&&a.isPinch;if(!i[u]||i[u](a)){if(!c){var l="drag"===e?[e]:["drag",e],f=Me([],Se(t[n]),!1);fi(t,f,l,r,o,a)?(t.props.stopPropagation||"Start"===o&&y)&&(null===(s=null==a?void 0:a.inputEvent)||void 0===s||s.stopPropagation()):a.stop()}}else a.stop()})})}),x}var vi=function(){function t(t,e,n){var r=this;this.target=t,this.moveable=e,this.eventName=n,this.ables=[],this._onEvent=function(t){var e=r.eventName,n=r.moveable;n.state.disableNativeEvent||r.ables.forEach(function(r){r[e](n,{inputEvent:t})})},t.addEventListener(n.toLowerCase(),this._onEvent)}return t.prototype.setAbles=function(t){this.ables=t},t.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},t}();function mi(t,e,n,r,i,o){void 0===o&&(o=[]);var a=1,s=[0,0],u={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},l={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},f={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},p=[0,0],d={},h=function(t,e,n,r){void 0===n&&(n=e);var i,o,a=0,s=0,u=0,c={},l=Sr(t);if(t&&(a=l.offsetWidth,s=l.offsetHeight),t){var f=function(t,e,n,r){var i;void 0===n&&(n=e);var o=mn(t,e),a=o.matrixes,s=o.is3d,u=o.targetMatrix,c=o.transformOrigin,l=o.targetOrigin,f=o.offsetContainer,p=o.hasFixed,d=o.zoom,h=function(t,e){if(yn){var n=N(yn,function(n){return n[0][0]==t&&n[0][1]==e});if(n)return n[1]}var r=mn(t,e,!0);return yn&&yn.push([[t,e],r]),r}(f,n),g=h.matrixes,v=h.is3d,m=h.offsetContainer,b=h.zoom,x=r,y="svg"!==t.tagName.toLowerCase()&&"ownerSVGElement"in t,E=u,w=kt(4),D=kt(4),S=kt(4),M=kt(4),C=a.length,_=g.map(function(t){return De(De({},t),{matrix:t.matrix?Me([],Se(t.matrix),!1):void 0})}).reverse();a.reverse(),!s&&x&&(E=mt(E,3,4),fr(a)),!v&&x&&fr(_),_.forEach(function(t){D=xt(D,t.matrix,4)});var T=n||ut(t),O=(null===(i=_[0])||void 0===i?void 0:i.target)||ur(T,T,!0).offsetParent,P=_.slice(1).reduce(function(t,e){return xt(t,e.matrix,4)},kt(4));a.forEach(function(t,e){if(C-2===e&&(S=w.slice()),C-1===e&&(M=w.slice()),!t.matrix){var n=function(t,e,n,r,i){var o,a=t.target,s=t.origin,u=e.matrix,c=Sr(a),l=c.offsetWidth,f=c.offsetHeight,p=n.getBoundingClientRect(),d=[0,0];n===ut(n)&&(d=lr(a,!0));for(var h=a.getBoundingClientRect(),g=h.left-p.left+n.scrollLeft-(n.clientLeft||0)+d[0],v=h.top-p.top+n.scrollTop-(n.clientTop||0)+d[1],m=h.width,b=h.height,x=bt(4,i,u),y=xr(x,l,f,4),E=y.left,w=y.top,D=y.width,S=y.height,M=vr(x,s,4),C=Et(M,[E,w]),_=[g+C[0]*m/D,v+C[1]*b/S],T=[0,0],O=0;++O<10;){var P=gt(i,4);o=Se(Et(vr(P,_,4),vr(P,M,4)),2),T[0]=o[0],T[1]=o[1];var R=xr(bt(4,i,Bt(T,4),u),l,f,4),k=R.left-g,F=R.top-v;if(Qr(k)<2&&Qr(F)<2)break;_[0]-=k,_[1]-=F}return T.map(function(t){return Math.round(t)})}(t,a[e+1],O,0,xt(P,w,4));t.matrix=Bt(n,4)}w=xt(w,t.matrix,4)});var R=!y&&s;E||(E=kt(R?4:3));var k=dr(y&&16===E.length?mt(E,4,3):E,R),F=D;return D=function(t){for(var e=t.slice(),n=0;n<4;++n)e[4*n+4-1]=0,e[12+n]=0;return e[15]=1,e}(D),{hasZoom:1!==d||1!==b,hasFixed:p,matrixes:a,rootMatrix:D,originalRootMatrix:F,beforeMatrix:S,offsetMatrix:M,allMatrix:w,targetMatrix:E,targetTransform:k,inlineTransform:t.style.transform,transformOrigin:c,targetOrigin:l,is3d:x,offsetContainer:f,offsetRootContainer:m}}(t,e,n,r),p=tn(f.allMatrix,f.transformOrigin,a,s);c=De(De({},f),p);var d=tn(f.allMatrix,[50,50],100,100);i=[d.pos1,d.pos2],u=K((o=d.direction)>0?i[0]:i[1],o>0?i[1]:i[0])}return De(De(De({hasZoom:!1,width:a,height:s,rotation:u},l),{originalRootMatrix:kt(4),rootMatrix:kt(4),beforeMatrix:kt(4),offsetMatrix:kt(4),allMatrix:kt(4),targetMatrix:kt(4),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!0,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),c)}(e,n,i,!0);if(e){var g=wn(e);o.forEach(function(t){d[t]=g(t)});var v=h.is3d?4:3,m=tn(h.offsetMatrix,yt(h.transformOrigin,function(t,e){void 0===e&&(e=Math.sqrt(t.length));for(var n=[],r=t[e*e-1],i=0;i<e-1;++i)n[i]=t[e*(e-1)+i]/r;return n[e-1]=0,n}(h.targetMatrix,v)),h.width,h.height);a=m.direction,s=yt(m.origin,[m.left-h.left,m.top-h.top]),f=_r(h.offsetRootContainer);var b=ur(r,r,!0).offsetParent||h.offsetRootContainer;if(h.hasZoom){var x=tn(xt(h.originalRootMatrix,h.allMatrix),h.transformOrigin,h.width,h.height),y=tn(h.originalRootMatrix,ar(wn(b)("transformOrigin")).map(function(t){return parseFloat(t)}),b.offsetWidth,b.offsetHeight);if(u=Cr(x,f),l=Cr(y,f,b,!0),t){var E=x.left,w=x.top;c=Cr({left:E,top:w,bottom:w,right:w},f)}}else{u=_r(e),l=function(t){var e=null==xn?void 0:xn.get(t);if(e)return e;var n=_r(t,!0);return xn&&xn.set(t,n),n}(b),t&&(c=_r(t));var D=l.left,S=l.top,M=l.clientLeft,C=l.clientTop,_=[u.left-D,u.top-S];p=Et(Wr(h.rootMatrix,_,4),[M+h.left,C+h.top])}}return De({targetClientRect:u,containerClientRect:l,moveableClientRect:c,rootContainerClientRect:f,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:e,style:d,offsetDelta:p},h)}function bi(t){var e=t.pos1,n=t.pos2,r=t.pos3,i=t.pos4;if(!(e&&n&&r&&i))return null;var o=ne([e,n,r,i]),a=[o.minX,o.minY],s=Et(t.origin,a);return e=Et(e,a),n=Et(n,a),r=Et(r,a),i=Et(i,a),De(De({},t),{left:t.left,top:t.top,posDelta:a,pos1:e,pos2:n,pos3:r,pos4:i,origin:s,beforeOrigin:s,isPersisted:!0})}var xi=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=De({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},mi(null)),t.renderState={},t.enabledAbles=[],t.targetAbles=[],t.controlAbles=[],t.rotation=0,t.scale=[1,1],t.isMoveableMounted=!1,t.isUnmounted=!1,t.events={mouseEnter:null,mouseLeave:null},t._emitter=new Jt,t._prevOriginalDragTarget=null,t._originalDragTarget=null,t._prevDragTarget=null,t._dragTarget=null,t._prevPropTarget=null,t._propTarget=null,t._prevDragArea=!1,t._isPropTargetChanged=!1,t._hasFirstTarget=!1,t._reiszeObserver=null,t._observerId=0,t._mutationObserver=null,t._rootContainer=null,t._viewContainer=null,t._viewClassNames=[],t._store={},t.checkUpdateRect=function(){if(!t.isDragging()){var e=t.props.parentMoveable;e?e.checkUpdateRect():(q(t._observerId),t._observerId=H(function(){t.isDragging()||t.updateRect()}))}},t._onPreventClick=function(t){t.stopPropagation(),t.preventDefault()},t}return we(n,e),n.prototype.render=function(){var e=this.props,n=this.getState(),r=e.parentPosition,i=e.className,o=e.target,a=e.zoom,s=e.cspNonce,u=e.translateZ,c=e.cssStyled,l=e.groupable,f=e.linePadding,p=e.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var d=Se(r||[0,0],2),h=d[0],g=d[1],m=n.left,b=n.top,x=n.target,y=n.direction,E=n.hasFixed,w=n.offsetDelta,D=e.targets,S=this.isDragging(),M={};this.getEnabledAbles().forEach(function(t){M["data-able-".concat(t.name.toLowerCase())]=!0});var C=this._getAbleClassName(),_=D&&D.length&&(x||l)||o||!this._hasFirstTarget&&this.state.isPersisted,T=this.controlBox||this.props.firstRenderState||this.props.persistData,O=[m-h,b-g];!l&&e.useAccuratePosition&&(O[0]+=w[0],O[1]+=w[1]);var P={position:E?"fixed":"absolute",display:_?"block":"none",visibility:T?"visible":"hidden",transform:"translate3d(".concat(O[0],"px, ").concat(O[1],"px, ").concat(u,")"),"--zoom":a,"--zoompx":"".concat(a,"px")};return f&&(P["--moveable-line-padding"]=f),p&&(P["--moveable-control-padding"]=p),t.reactExports.createElement(c,De({cspNonce:s,ref:v(this,"controlBox"),className:"".concat(nr("control-box",-1===y?"reverse":"",S?"dragging":"")," ").concat(C," ").concat(i)},M,{onClick:this._onPreventClick,style:P}),this.renderAbles(),this._renderLines())},n.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var t=this.props,e=t.parentMoveable,n=t.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),n||e||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},n.prototype.componentDidUpdate=function(t){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(t)},n.prototype.componentWillUnmount=function(){var t,e;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(t=this._reiszeObserver)||void 0===t||t.disconnect(),null===(e=this._mutationObserver)||void 0===e||e.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),Rr(this,!1),Rr(this,!0);var n=this.events;for(var r in n){var i=n[r];i&&i.destroy()}},n.prototype.getTargets=function(){var t=this.props.target;return t?[t]:[]},n.prototype.getAble=function(t){return N(this.props.ables||[],function(e){return e.name===t})},n.prototype.getContainer=function(){var t=this.props,e=t.parentMoveable,n=t.wrapperMoveable;return t.container||n&&n.getContainer()||e&&e.getContainer()||this.controlBox.parentElement},n.prototype.getControlBoxElement=function(){return this.controlBox},n.prototype.getDragElement=function(){return this._dragTarget},n.prototype.isMoveableElement=function(t){var e;return t&&((null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"class"))||"").indexOf(We)>-1},n.prototype.dragStart=function(t,e){void 0===e&&(e=t.target);var n=this.targetGesto,r=this.controlGesto;return n&&pi(this)({inputEvent:t},e)?n.isFlag()||n.triggerDragStart(t):r&&this.isMoveableElement(e)&&(r.isFlag()||r.triggerDragStart(t)),this},n.prototype.hitTest=function(t){var e,n=this.state,r=n.target,i=n.pos1,o=n.pos2,a=n.pos3,s=n.pos4,u=n.targetClientRect;if(!r)return 0;if(ft(t)){var c=t.getBoundingClientRect();e={left:c.left,top:c.top,width:c.width,height:c.height}}else e=De({width:0,height:0},t);var l=e.left,f=e.top,p=e.width,d=e.height,h=ee([i,o,s,a],u),g=te(function(t,e){var n=function(t,e){var n=t.slice(),r=e.slice();-1===$(n)&&n.reverse(),-1===$(r)&&r.reverse();var i=se(n),o=se(r),a=i.map(function(t){return ie(t[0],t[1])}),s=o.map(function(t){return ie(t[0],t[1])}),u=[];a.forEach(function(t,e){var n=i[e],a=[];s.forEach(function(r,i){var s=ae(oe(t,r),[n,o[i]]);a.push.apply(a,s.map(function(t){return{index1:e,index2:i,pos:t,type:"intersection"}}))}),a.sort(function(t,e){return J(n[0],t.pos)-J(n[0],e.pos)}),u.push.apply(u,a),re(n[1],r)&&u.push({index1:e,index2:-1,pos:n[1],type:"inside"})}),o.forEach(function(t,e){if(re(t[1],n)){var r=!1,i=I(u,function(t){return t.index2===e?(r=!0,!1):!!r});-1===i&&(r=!1,i=I(u,function(t){var n=t.index1,i=t.index2;return-1===n&&i+1===e?(r=!0,!1):!!r})),-1===i?u.push({index1:-1,index2:e,pos:t[1],type:"inside"}):u.splice(i,0,{index1:-1,index2:e,pos:t[1],type:"inside"})}});var c={};return u.filter(function(t){var e=t.pos,n=e[0]+"x"+e[1];return!c[n]&&(c[n]=!0,!0)})}(t,e);return n.map(function(t){return t.pos})}(h,[[l,f],[l+p,f],[l+p,f+d],[l,f+d]])),v=te(h);return g&&v?Math.min(100,g/v*100):0},n.prototype.isInside=function(t,e){var n=this.state,r=n.target,i=n.pos1,o=n.pos2,a=n.pos3,s=n.pos4,u=n.targetClientRect;return!!r&&re([t,e],ee([i,o,s,a],u))},n.prototype.updateRect=function(t,e,n){void 0===n&&(n=!0);var r=this.props,i=!r.parentPosition&&!r.wrapperMoveable;i&&En(!0);var o=r.parentMoveable,a=this.state.target||r.target,s=this.getContainer(),u=o?o._rootContainer:this._rootContainer,c=mi(this.controlBox,a,s,s,u||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&r.persistData){var l=bi(r.persistData);for(var f in l)c[f]=l[f]}i&&En(),this.updateState(c,!o&&n)},n.prototype.isDragging=function(t){var e,n,r=this.targetGesto,i=this.controlGesto;return(null==r?void 0:r.isFlag())?!t||!!(null===(e=r.getEventData()[t])||void 0===e?void 0:e.isEventStart):!(!(null==i?void 0:i.isFlag())||t&&!(null===(n=i.getEventData()[t])||void 0===n?void 0:n.isEventStart))},n.prototype.updateTarget=function(t){this.updateRect(t,!0)},n.prototype.getRect=function(){var t=this.state,e=Or(this.state),n=Se(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=br(e),u=t.width,c=t.height,l=s.width,f=s.height,p=s.left,d=s.top,h=[t.left,t.top],g=yt(h,t.origin);return{width:l,height:f,left:p,top:d,pos1:r,pos2:i,pos3:o,pos4:a,offsetWidth:u,offsetHeight:c,beforeOrigin:yt(h,t.beforeOrigin),origin:g,transformOrigin:t.transformOrigin,rotation:this.getRotation()}},n.prototype.getManager=function(){return this},n.prototype.stopDrag=function(t){var e;t&&"target"!==t||(!1===(null==(e=this.targetGesto)?void 0:e.isIdle())&&Pr(this,!1),null==e||e.stop()),t&&"control"!==t||(!1===(null==(e=this.controlGesto)?void 0:e.isIdle())&&Pr(this,!0),null==e||e.stop())},n.prototype.getRotation=function(){var t=this.state;return function(t,e,n){var r=K(t,e)/Math.PI*180;return(r=n>=0?r:180-r)>=0?r:360+r}(t.pos1,t.pos2,t.direction)},n.prototype.request=function(t,e,n){void 0===e&&(e={});var r=this,i=r.props,o=i.parentMoveable||i.wrapperMoveable||r,a=o.props.ables,s=i.groupable,u=N(a,function(e){return e.name===t});if(this.isDragging()||!u||!u.request)return{request:function(){return this},requestEnd:function(){return this}};var c=u.request(r),l=n||e.isInstant,f=c.isControl?"controlAbles":"targetAbles",p="".concat(s?"Group":"").concat(c.isControl?"Control":""),d=Me([],Se(o[f]),!1),h={request:function(e){return fi(r,d,["drag"],p,"",De(De({},c.request(e)),{requestAble:t,isRequest:!0}),l),h},requestEnd:function(){return fi(r,d,["drag"],p,"End",De(De({},c.requestEnd()),{requestAble:t,isRequest:!0}),l),h}};return fi(r,d,["drag"],p,"Start",De(De({},c.requestStart(e)),{requestAble:t,isRequest:!0}),l),l?h.request(e).requestEnd():h},n.prototype.getMoveables=function(){return[this]},n.prototype.destroy=function(){this.componentWillUnmount()},n.prototype.updateRenderPoses=function(){var t=this.getState(),e=this.props,n=e.padding,r=t.originalBeforeOrigin,i=t.transformOrigin,o=t.allMatrix,a=t.is3d,s=t.pos1,u=t.pos2,c=t.pos3,l=t.pos4,f=t.left,p=t.top,d=t.isPersisted,h=e.zoom||1;if(!n&&h<=1)return t.renderPoses=[s,u,c,l],void(t.renderLines=[[s,u],[u,l],[l,c],[c,s]]);var g=ti(n||{}),v=g.left,m=g.top,b=g.bottom,x=g.right,y=a?4:3,E=bt(y,Bt((d?i:this.controlBox&&e.groupable?r:yt(r,[f,p])).map(function(t){return-t}),y),o,Bt(i,y)),w=Hr(E,s,[-v,-m],y),D=Hr(E,u,[x,-m],y),S=Hr(E,c,[-v,b],y),M=Hr(E,l,[x,b],y);t.renderPoses=[w,D,S,M],t.renderLines=[[w,D],[D,M],[M,S],[S,w]];var C=h/2;t.renderLines=[[Hr(E,s,[-v-C,-m],y),Hr(E,u,[x+C,-m],y)],[Hr(E,u,[x,-m-C],y),Hr(E,l,[x,b+C],y)],[Hr(E,l,[x+C,b],y),Hr(E,c,[-v-C,b],y)],[Hr(E,c,[-v,b+C],y),Hr(E,s,[-v,-m-C],y)]]},n.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var t=this.props,e=t.target,n=t.container,r=t.parentMoveable,i=this.state,o=i.target,a=i.container;if(o||e){this.updateAbles();var s=!Ir(o,e);if(s||!Ir(a,n)){var u=n||this.controlBox;u&&this.unsetAbles(),this.updateState({target:e,container:n}),!r&&u&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},n.prototype.waitToChangeTarget=function(){return new Promise(function(){})},n.prototype.triggerEvent=function(t,e){var n=this.props;if(this._emitter.trigger(t,e),n.parentMoveable&&e.isRequest&&!e.isRequestChild)return n.parentMoveable.triggerEvent(t,e,!0);var r=n[t];return r&&r(e)},n.prototype.useCSS=function(t,e){var n=this.props.customStyledMap,r=t+e;return n[r]||(n[r]=ye(t,e)),n[r]},n.prototype.getState=function(){var t,e=this.props;(e.target||(null===(t=e.targets)||void 0===t?void 0:t.length))&&(this._hasFirstTarget=!0);var n=this.controlBox,r=e.persistData,i=e.firstRenderState;if(i&&!n)return i;if(!this._hasFirstTarget&&r){var o=bi(r);if(o)return this.updateState(o,!1),this.state}return this.state.isPersisted=!1,this.state},n.prototype.updateSelectors=function(){},n.prototype.unsetAbles=function(){var t=this;this.targetAbles.forEach(function(e){e.unset&&e.unset(t)})},n.prototype.updateAbles=function(t,e){void 0===t&&(t=this.props.ables),void 0===e&&(e="");var n=this.props.triggerAblesSimultaneously,r=this.getEnabledAbles(t),i="drag".concat(e,"Start"),o="pinch".concat(e,"Start"),a="drag".concat(e,"ControlStart"),s=zr(r,[i,o],n),u=zr(r,[a],n);this.enabledAbles=r,this.targetAbles=s,this.controlAbles=u},n.prototype.updateState=function(t,e){if(e){if(this.isUnmounted)return;this.setState(t)}else{var n=this.state;for(var r in t)n[r]=t[r]}},n.prototype.getEnabledAbles=function(t){void 0===t&&(t=this.props.ables);var e=this.props;return t.filter(function(t){return t&&(t.always&&!1!==e[t.name]||e[t.name])})},n.prototype.renderAbles=function(){var e,n,r,i,o=this,a=this.props.triggerAblesSimultaneously,s={createElement:t.reactExports.createElement};return this.renderState={},(e=Yr(zr(this.getEnabledAbles(),["render"],a).map(function(t){return(0,t.render)(o,s)||[]})).filter(function(t){return t}),n=function(t){return t.key},r=[],i={},e.forEach(function(t,e){var o=n(t),a=i[o];a||(a=[],i[o]=a,r.push(a)),a.push(t)}),r).map(function(t){return t[0]})},n.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},n.prototype._getRequestStyles=function(){return this.getEnabledAbles().reduce(function(t,e){var n,r,i=null!==(r=null===(n=e.requestStyle)||void 0===n?void 0:n.call(e))&&void 0!==r?r:[];return Me(Me([],Se(t),!1),Se(i),!1)},Me([],Se(this.props.requestStyles||[]),!1))},n.prototype._updateObserver=function(t){this._updateResizeObserver(t),this._updateMutationObserver(t)},n.prototype._updateEvents=function(){var t=this.targetAbles.length,e=this.controlAbles.length,n=this._dragTarget;(!t&&this.targetGesto||this._isTargetChanged(!0))&&(Rr(this,!1),this.updateState({gestos:{}})),e||Rr(this,!0),n&&t&&!this.targetGesto&&(this.targetGesto=di(this,n,"")),!this.controlGesto&&e&&(this.controlGesto=hi(this,"Control"))},n.prototype._updateTargets=function(){var t=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=t.dragArea,this._propTarget=t.target,this._originalDragTarget=t.dragTarget||t.target,this._dragTarget=Lr(this._originalDragTarget,!0)},n.prototype._renderLines=function(){var e=this.props,n=e.zoom,r=e.hideDefaultLines,i=e.hideChildMoveableDefaultLines,o=e.parentMoveable;if(r||o&&i)return[];var a=this.getState(),s={createElement:t.reactExports.createElement};return a.renderLines.map(function(t,e){return Tn(s,"",t[0],t[1],n,"render-line-".concat(e))})},n.prototype._isTargetChanged=function(t){var e=this.props,n=e.dragTarget||e.target,r=this._prevOriginalDragTarget,i=this._prevDragArea,o=e.dragArea;return!o&&r!==n||(t||o)&&i!==o||this._prevPropTarget!=this._propTarget},n.prototype._updateNativeEvents=function(){var t=this,e=this.props.dragArea?this.areaElement:this.state.target,n=this.events,r=j(n);if(this._isTargetChanged())for(var i in n){var o=n[i];o&&o.destroy(),n[i]=null}if(e){var a=this.enabledAbles;r.forEach(function(r){var i=zr(a,[r]),o=i.length>0,s=n[r];o?(s||(s=new vi(e,t,r),n[r]=s),s.setAbles(i)):s&&(s.destroy(),n[r]=null)})}},n.prototype._checkUpdateRootContainer=function(){var t=this.props.rootContainer;!this._rootContainer&&t&&(this._rootContainer=Lr(t,!0))},n.prototype._checkUpdateViewContainer=function(){var t=this.props.viewContainer;!this._viewContainer&&t&&(this._viewContainer=Lr(t,!0)),this._viewContainer&&this._changeAbleViewClassNames(Me(Me([],Se(this._getAbleViewClassNames()),!1),[this.isDragging()?ii:""],!1))},n.prototype._changeAbleViewClassNames=function(t){var e,n,r,i=this._viewContainer,o=(e=t.filter(Boolean),n=[],r=[],e.forEach(function(t,e){var i=t,o=r.indexOf(i),a=n[o]||[];-1===o&&(r.push(i),n.push(a)),a.push(t)}),n).map(function(t){return Se(t,1)[0]}),a=this._viewClassNames,s=jt(a,o),u=s.removed,c=s.added;u.forEach(function(t){rt(i,a[t])}),c.forEach(function(t){nt(i,o[t])}),this._viewClassNames=o},n.prototype._getAbleViewClassNames=function(){var t=this;return(this.getEnabledAbles().map(function(e){var n;return(null===(n=e.viewClassName)||void 0===n?void 0:n.call(e,t))||""}).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},n.prototype._getAbleClassName=function(t){var e=this;void 0===t&&(t="");var n=this.getEnabledAbles(),r=this.targetGesto,i=this.controlGesto,o=(null==r?void 0:r.isFlag())?r.getEventData():{},a=(null==i?void 0:i.isFlag())?i.getEventData():{};return n.map(function(n){var r,i,s,u=n.name,c=(null===(r=n.className)||void 0===r?void 0:r.call(n,e))||"";return((null===(i=o[u])||void 0===i?void 0:i.isEventStart)||(null===(s=a[u])||void 0===s?void 0:s.isEventStart))&&(c+=" ".concat(nr("".concat(u).concat(t,"-dragging")))),c.trim()}).filter(Boolean).join(" ")},n.prototype._updateResizeObserver=function(t){var e,n=this.props,r=n.target,i=ct(this.getControlBoxElement());if(i.ResizeObserver&&r&&n.useResizeObserver){if(t.target!==r||!this._reiszeObserver){var o=new i.ResizeObserver(this.checkUpdateRect);o.observe(r,{box:"border-box"}),this._reiszeObserver=o}}else null===(e=this._reiszeObserver)||void 0===e||e.disconnect()},n.prototype._updateMutationObserver=function(t){var e,n=this,r=this.props,i=r.target,o=ct(this.getControlBoxElement());if(o.MutationObserver&&i&&r.useMutationObserver){if(t.target!==i||!this._mutationObserver){var a=new o.MutationObserver(function(t){var e,r;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value;"attributes"===a.type&&"style"===a.attributeName&&n.checkUpdateRect()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}});a.observe(i,{attributes:!0}),this._mutationObserver=a}}else null===(e=this._mutationObserver)||void 0===e||e.disconnect()},n.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,preventRightClick:!0,preventWheelClick:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:rr,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},n}(t.reactExports.PureComponent),yi={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(t,e){var n,r=t.props,i=r.targets||[],o=t.getState(),a=o.left,s=o.top,u=o.isPersisted,c=r.zoom||1,l=t.renderGroupRects,f=(null===(n=r.persistData)||void 0===n?void 0:n.children)||[];u?i=f.map(function(){return null}):f=[];var p=$r(t,"parentPosition",[a,s],function(t){return t.join(",")}),d=$r(t,"requestStyles",t.getRequestChildStyles(),function(t){return t.join(",")});return t.moveables=t.moveables.slice(0,i.length),Me(Me([],Se(i.map(function(n,i){return e.createElement(xi,{key:"moveable"+i,ref:m(t,"moveables",i),target:n,origin:!1,requestStyles:d,cssStyled:r.cssStyled,customStyledMap:r.customStyledMap,useResizeObserver:r.useResizeObserver,useMutationObserver:r.useMutationObserver,hideChildMoveableDefaultLines:r.hideChildMoveableDefaultLines,parentMoveable:t,parentPosition:[a,s],persistData:f[i],zoom:c})})),!1),Se(Yr(l.map(function(t,n){var r=[t.pos1,t.pos2,t.pos3,t.pos4];return[[0,1],[1,3],[3,2],[2,0]].map(function(t,i){var o=Se(t,2),a=o[0],s=o[1];return Tn(e,"",Et(r[a],p),Et(r[s],p),c,"group-rect-".concat(n,"-").concat(i))})}))),!1)}};function Ei(t){var e=t.originalDatas.draggable;return e||(t.originalDatas.draggable={},e=t.originalDatas.draggable),De(De({},t),{datas:e})}Ce("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(t,e){e.datas.inputTarget=e.inputEvent&&e.inputEvent.target},dragEnd:function(t,e){var n=t.props.target,r=e.inputEvent,i=e.inputTarget,o=!t.isMoveableElement(i)&&t.controlBox.contains(i);if(r&&i&&!e.isDrag&&!t.isMoveableElement(i)&&!o){var a=n.contains(i);Gr(t,"onClick",Fr(t,e,{isDouble:e.isDouble,inputTarget:i,isTarget:n===i,moveableTarget:t.props.target,containsTarget:a}))}},dragGroupEnd:function(t,e){var n=e.inputEvent,r=e.inputTarget;if(n&&r&&!e.isDrag&&!t.isMoveableElement(r)&&e.datas.inputTarget!==r){var i=t.props.targets,o=i.indexOf(r),a=o>-1,s=!1;-1===o&&(s=(o=I(i,function(t){return t.contains(r)}))>-1),Gr(t,"onClickGroup",Fr(t,e,{isDouble:e.isDouble,targets:i,inputTarget:r,targetIndex:o,isTarget:a,containsTarget:s,moveableTarget:i[o]}))}},dragControlEnd:function(t,e){this.dragEnd(t,e)},dragGroupControlEnd:function(t,e){this.dragEnd(t,e)}}),Ce("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(t,e){var n=t.props,r=n.edgeDraggable;return r?On(e,"edgeDraggable",r,t.getState().renderPoses,n.zoom):[]},dragCondition:function(t,e){var n,r=t.props,i=null===(n=e.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!i)&&!r.draggable&&et(i,nr("direction"))&&et(i,nr("edge"))&&et(i,nr("edgeDraggable"))},dragStart:function(t,e){return $n.dragStart(t,Ei(e))},drag:function(t,e){return $n.drag(t,Ei(e))},dragEnd:function(t,e){return $n.dragEnd(t,Ei(e))},dragGroupCondition:function(t,e){var n,r=t.props,i=null===(n=e.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!i)&&!r.draggable&&et(i,nr("direction"))&&et(i,nr("line"))},dragGroupStart:function(t,e){return $n.dragGroupStart(t,Ei(e))},dragGroup:function(t,e){return $n.dragGroup(t,Ei(e))},dragGroupEnd:function(t,e){return $n.dragGroupEnd(t,Ei(e))},unset:function(t){return $n.unset(t)}});var wi={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]};function Di(t,e){var n=Se(t,3),r=n[0],i=n[1],o=n[2];return(r*e[0]+i*e[1]+o)/Math.sqrt(r*r+i*i)}function Si(t,e){var n=Se(t,2),r=n[0],i=n[1];return-r*e[0]-i*e[1]}function Mi(t,e){return Math.max.apply(Math,Me([],Se(t.map(function(t){var n=Se(t,4),r=n[0],i=n[1],o=n[2],a=n[3];return Math.max(r[e],i[e],o[e],a[e])})),!1))}function Ci(t,e){return Math.min.apply(Math,Me([],Se(t.map(function(t){var n=Se(t,4),r=n[0],i=n[1],o=n[2],a=n[3];return Math.min(r[e],i[e],o[e],a[e])})),!1))}function _i(t,e){var n=e.map(function(e){if(_(e)){var n=_i(t,e),r=n.length;return r>1?n:1===r?n[0]:null}var i=N(t,function(t){return t.manager.props.target===e});return i?(i.finded=!0,i.manager):null}).filter(Boolean);return 1===n.length&&_(n[0])?n[0]:n}var Ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.differ=new Kt,e.moveables=[],e.transformOrigin="50% 50%",e.renderGroupRects=[],e._targetGroups=[],e._hasFirstTargets=!1,e}return we(e,t),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this)},e.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},e.prototype.getTargets=function(){return this.props.targets},e.prototype.updateRect=function(t,e,n){var r;void 0===n&&(n=!0);var i=this.state;if(this.controlBox&&!i.isPersisted){En(!0),this.moveables.forEach(function(e){e.updateRect(t,!1,!1)});var o=this.props,a=this.moveables,s=i.target||o.target,u=a.map(function(t){return{finded:!1,manager:t}}),c=this.props.targetGroups||[],l=_i(u,c),f=o.useDefaultGroupRotate;l.push.apply(l,Me([],Se(u.filter(function(t){return!t.finded}).map(function(t){return t.manager})),!1));var p=[],d=!e||""!==t&&o.updateGroup,h=o.defaultGroupRotate||0;if(!this._hasFirstTargets){var g=null===(r=o.persistData)||void 0===r?void 0:r.rotation;null!=g&&(h=g)}var v=function t(e,n,r){var i,o=e.map(function(e){if(_(e)){var r=t(e,n),i=[r.pos1,r.pos2,r.pos3,r.pos4];return p.push(r),{poses:i,rotation:r.rotation}}return{poses:Or(e.state),rotation:e.getRotation()}}),a=o.map(function(t){return t.rotation}),s=a[0],u=a.every(function(t){return Math.abs(s-t)<.1});i=d?!f&&u?s:h:f||r||!u?n:s;var c=o.map(function(t){return t.poses}),l=function(t,e){var n,r,i,o=[0,0],a=[0,0],s=[0,0],u=[0,0],c=0,l=0;if(!t.length)return{pos1:o,pos2:a,pos3:s,pos4:u,minX:0,minY:0,maxX:0,maxY:0,width:c,height:l,rotation:e};var f=Q(e,Le);if(f%90){var p=f/180*Math.PI,d=Math.tan(p),h=-1/d,g=[Ve,Ue],v=[[0,0],[0,0]],m=[Ve,Ue],b=[[0,0],[0,0]];t.forEach(function(t){t.forEach(function(t){var e=Di([-d,1,0],t),n=Di([-h,1,0],t);g[0]>e&&(v[0]=t,g[0]=e),g[1]<e&&(v[1]=t,g[1]=e),m[0]>n&&(b[0]=t,m[0]=n),m[1]<n&&(b[1]=t,m[1]=n)})});var x=Se(v,2),y=x[0],E=x[1],w=Se(b,2),D=w[0],S=w[1],M=[-d,1,Si([-d,1],y)],C=[-d,1,Si([-d,1],E)],_=[-h,1,Si([-h,1],D)],T=[-h,1,Si([-h,1],S)];n=Se([[M,_],[M,T],[C,_],[C,T]].map(function(t){var e=Se(t,2);return oe(e[0],e[1])[0]}),4),o=n[0],a=n[1],s=n[2],u=n[3],c=m[1]-m[0],l=g[1]-g[0]}else{var O=Ci(t,0),P=Ci(t,1),R=Mi(t,0),k=Mi(t,1);o=[O,P],a=[R,P],s=[O,k],u=[R,k],c=R-O,l=k-P,f%180&&(o=(r=Se([s,o,u,a],4))[0],a=r[1],s=r[2],u=r[3],c=k-P,l=R-O)}f%360>180&&(o=(i=Se([u,s,a,o],4))[0],a=i[1],s=i[2],u=i[3]);var F=ne([o,a,s,u]);return{pos1:o,pos2:a,pos3:s,pos4:u,width:c,height:l,minX:F.minX,minY:F.minY,maxX:F.maxX,maxY:F.maxY,rotation:e}}(c,i);return l}(l,this.rotation,!0);d&&(this.rotation=v.rotation,this.transformOrigin=o.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=c,this.renderGroupRects=p;var m=this.transformOrigin,b=this.rotation,x=this.scale,y=v.width,E=v.height,w=v.minX,D=v.minY,S=ne(function(t,e,n){var r=t.map(function(t){return Et(t,e)}),i=r.map(function(t){return function(t,e){return St(Rt(e,3),vt(t,3))}(t,n)});return{prev:r,next:i,result:i.map(function(t){return yt(t,e)})}}([[0,0],[y,0],[0,E],[y,E]],Zr(m,y,E),this.rotation/180*Math.PI).result),M=S.minX,C=S.minY,T=" rotate(".concat(b,"deg)")+" scale(".concat(Jr(x[0]),", ").concat(Jr(x[1]),")"),O="translate(".concat(-M,"px, ").concat(-C,"px)").concat(T);this.controlBox.style.transform="translate3d(".concat(w,"px, ").concat(D,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(m,";")+"width:".concat(y,"px;height:").concat(E,"px;")+"transform: ".concat(O),i.width=y,i.height=E;var P=this.getContainer(),R=mi(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||P,[]),k=[R.left,R.top],F=Se(Or(R),4),B=F[0],G=F[1],A=F[2],z=F[3],I=ne([B,G,A,z]),N=[I.minX,I.minY],Y=Jr(x[0]*x[1]);R.pos1=Et(B,N),R.pos2=Et(G,N),R.pos3=Et(A,N),R.pos4=Et(z,N),R.left=w-R.left+N[0],R.top=D-R.top+N[1],R.origin=Et(yt(k,R.origin),N),R.beforeOrigin=Et(yt(k,R.beforeOrigin),N),R.originalBeforeOrigin=yt(k,R.originalBeforeOrigin),R.transformOrigin=Et(yt(k,R.transformOrigin),N),s.style.transform="translate(".concat(-M-N[0],"px, ").concat(-C-N[1],"px)")+T,En(),this.updateState(De(De({},R),{posDelta:N,direction:Y,beforeDirection:Y}),n)}},e.prototype.getRect=function(){return De(De({},t.prototype.getRect.call(this)),{children:this.moveables.map(function(t){return t.getRect()})})},e.prototype.triggerEvent=function(e,n,r){if(r||e.indexOf("Group")>-1)return t.prototype.triggerEvent.call(this,e,n);this._emitter.trigger(e,n)},e.prototype.getRequestChildStyles=function(){return this.getEnabledAbles().reduce(function(t,e){var n,r,i=null!==(r=null===(n=e.requestChildStyle)||void 0===n?void 0:n.call(e))&&void 0!==r?r:[];return Me(Me([],Se(t),!1),Se(i),!1)},[])},e.prototype.getMoveables=function(){return Me([],Se(this.moveables),!1)},e.prototype.updateAbles=function(){t.prototype.updateAbles.call(this,Me(Me([],Se(this.props.ables),!1),[yi],!1),"Group")},e.prototype._updateTargets=function(){t.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=Lr(this._originalDragTarget,!0)},e.prototype._updateEvents=function(){var t=this.state,e=this.props,n=this._prevDragTarget,r=e.dragTarget||this.areaElement,i=e.targets,o=this.differ.update(i),a=o.added,s=o.changed,u=o.removed,c=a.length||u.length;(c||this._prevOriginalDragTarget!==this._originalDragTarget)&&(Rr(this,!1),Rr(this,!0),this.updateState({gestos:{}})),n!==r&&(t.target=null),t.target||(t.target=this.areaElement,this.controlBox.style.display="block"),t.target&&(this.targetGesto||(this.targetGesto=di(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=hi(this,"GroupControl")));var l=!Ir(t.container,e.container);l&&(t.container=e.container),(l||c||this.transformOrigin!==(e.defaultGroupOrigin||"50% 50%")||s.length||i.length&&!Kr(this._targetGroups,e.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!c},e.prototype._updateObserver=function(){},e.defaultProps=De(De({},xi.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),e}(xi),Oi=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}return we(n,e),n.prototype.render=function(){var e,n=this,r=this.props,i=r.cspNonce,o=r.cssStyled,a=r.persistData,s=r.targets||[],u=s.length,c=this.isUnmounted||!u,l=null!==(e=null==a?void 0:a.children)&&void 0!==e?e:[];return c&&!u&&l.length?s=l.map(function(){return null}):c||(l=[]),t.reactExports.createElement(o,{cspNonce:i,ref:v(this,"controlBox"),className:nr("control-box")},s.map(function(e,i){var o,a,s=null!==(a=null===(o=r.individualGroupableProps)||void 0===o?void 0:o.call(r,e,i))&&void 0!==a?a:{};return t.reactExports.createElement(xi,De({key:"moveable"+i,ref:m(n,"moveables",i)},r,s,{target:e,wrapperMoveable:n,isWrapperMounted:n.isMoveableMounted,persistData:l[i]}))}))},n.prototype.componentDidMount=function(){},n.prototype.componentDidUpdate=function(){},n.prototype.getTargets=function(){return this.props.targets},n.prototype.updateRect=function(t,e,n){void 0===n&&(n=!0),En(!0),this.moveables.forEach(function(r){r.updateRect(t,e,n)}),En()},n.prototype.getRect=function(){return De(De({},e.prototype.getRect.call(this)),{children:this.moveables.map(function(t){return t.getRect()})})},n.prototype.request=function(t,e,n){void 0===e&&(e={});var r=this.moveables.map(function(n){return n.request(t,De(De({},e),{isInstant:!1}),!1)}),i={request:function(t){return r.forEach(function(e){return e.request(t)}),this},requestEnd:function(){return r.forEach(function(t){return t.requestEnd()}),this}};return n||e.isInstant?i.request(e).requestEnd():i},n.prototype.dragStart=function(t,e){void 0===e&&(e=t.target);var n=e,r=N(this.moveables,function(t){var e=t.getTargets()[0],r=t.getControlBoxElement(),i=t.getDragElement();return!(!e||!i)&&(i===n||i.contains(n)||i!==e&&e===n||e.contains(n)||r===n||r.contains(n))});return r&&r.dragStart(t,e),this},n.prototype.hitTest=function(){return 0},n.prototype.isInside=function(){return!1},n.prototype.isDragging=function(){return!1},n.prototype.getDragElement=function(){return null},n.prototype.getMoveables=function(){return Me([],Se(this.moveables),!1)},n.prototype.updateRenderPoses=function(){},n.prototype.checkUpdate=function(){},n.prototype.triggerEvent=function(){},n.prototype.updateAbles=function(){},n.prototype._updateEvents=function(){},n.prototype._updateObserver=function(){},n}(xi);function Pi(t,e){var n=[];return t.forEach(function(t){t&&(T(t)?e[t]&&n.push.apply(n,Me([],Se(e[t]),!1)):_(t)?n.push.apply(n,Me([],Se(Pi(t,e)),!1)):n.push(t))}),n}function Ri(t,e){var n=[];return t.forEach(function(t){t&&(T(t)?e[t]&&n.push.apply(n,Me([],Se(e[t]),!1)):_(t)?n.push(Ri(t,e)):n.push(t))}),n}function ki(t,e){return t.length!==e.length||t.some(function(t,n){var r=e[n];return!(!t&&!r)&&t!=r&&(!_(t)||!_(r)||ki(t,r))})}var Fi=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t._differ=new Kt,t._elementTargets=[],t._tmpRefTargets=[],t._tmpSelectorMap={},t._onChangeTargets=null,t}var r,i;return we(n,e),n.makeStyled=function(){var t={};this.getTotalAbles().forEach(function(e){var n=e.css;n&&n.forEach(function(e){t[e]=!0})});var e=j(t).join("\n");this.defaultStyled=ye("div",function(t,e){return e.replace(/([^}{]*){/gm,function(e,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+t+"$1")+"{"})}(We,qe+e))},n.getTotalAbles=function(){return Me([ui,yi,wi,si],Se(this.defaultAbles),!1)},n.prototype.render=function(){var e,n=this.constructor;n.defaultStyled||n.makeStyled();var r=this.props,i=r.ables,o=r.props,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(r,["ables","props"]),s=Se(this._updateRefs(!0),2),u=s[0],c=s[1],l=Pi(u,c),f=l.length>1,p=Me(Me([],Se(n.getTotalAbles()),!1),Se(i||[]),!1),d=De(De(De({},a),o||{}),{ables:p,cssStyled:n.defaultStyled,customStyledMap:n.customStyledMap});this._elementTargets=l;var h=null,g=this.moveable,m=a.persistData;if((null==m?void 0:m.children)&&(f=!0),a.individualGroupable)return t.reactExports.createElement(Oi,De({key:"individual-group",ref:v(this,"moveable")},d,{target:null,targets:l}));if(f){var b=Ri(u,c);if(g&&!g.props.groupable&&!g.props.individualGroupable){var x=g.props.target;x&&l.indexOf(x)>-1&&(h=De({},g.state))}return t.reactExports.createElement(Ti,De({key:"group",ref:v(this,"moveable")},d,null!==(e=a.groupableProps)&&void 0!==e?e:{},{target:null,targets:l,targetGroups:b,firstRenderState:h}))}var y=l[0];if(g&&(g.props.groupable||g.props.individualGroupable)){var E=N(g.moveables||[],function(t){return t.props.target===y});E&&(h=De({},E.state))}return t.reactExports.createElement(xi,De({key:"single",ref:v(this,"moveable")},d,{target:y,firstRenderState:h}))},n.prototype.componentDidMount=function(){this._checkChangeTargets()},n.prototype.componentDidUpdate=function(){this._checkChangeTargets()},n.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},n.prototype.getTargets=function(){var t,e;return null!==(e=null===(t=this.moveable)||void 0===t?void 0:t.getTargets())&&void 0!==e?e:[]},n.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs(),this.forceUpdate()},n.prototype.waitToChangeTarget=function(){var t,e=this;return this._onChangeTargets=function(){e._onChangeTargets=null,t()},new Promise(function(e){t=e})},n.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},n.prototype.getManager=function(){return this.moveable},n.prototype.getMoveables=function(){return this.moveable.getMoveables()},n.prototype.getDragElement=function(){return this.moveable.getDragElement()},n.prototype._updateRefs=function(t){var e=this.refTargets,n=Vr(this.props.target||this.props.targets),r="undefined"!=typeof document,i=ki(e,n),o=this.selectorMap,a={};return this.refTargets.forEach(function t(e){T(e)?o[e]?a[e]=o[e]:r&&(i=!0,a[e]=[].slice.call(document.querySelectorAll(e))):_(e)&&e.forEach(t)}),this._tmpRefTargets=n,this._tmpSelectorMap=a,[n,a,!t&&i]},n.prototype._checkChangeTargets=function(){var t,e,n;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var r=this._differ.update(this._elementTargets),i=r.added,o=r.removed;(i.length||o.length)&&(null===(e=(t=this.props).onChangeTargets)||void 0===e||e.call(t,{moveable:this.moveable,targets:this._elementTargets}),null===(n=this._onChangeTargets)||void 0===n||n.call(this));var a=Se(this._updateRefs(),3),s=a[0],u=a[1],c=a[2];this.refTargets=s,this.selectorMap=u,c&&this.forceUpdate()},n.defaultAbles=[],n.customStyledMap={},n.defaultStyled=null,function(t,e,n,r){var i,o=arguments.length,a=o<3?e:r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);o>3&&a&&Object.defineProperty(e,n,a)}([(r=$e,void 0===i&&(i={}),function(t,e){r.forEach(function(n){var r=i[n]||n;r in t||(t[r]=function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=(t=this[e])[n].apply(t,r);return o===this[e]?this:o})})})],n.prototype,"moveable",void 0),n}(t.reactExports.PureComponent);const Bi=(Gi=[$n,Qn],Ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return we(e,t),e}(Fi),Ai.defaultAbles=Gi,Ai);var Gi,Ai;exports.default=Bi;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B9jxuOg1CXcmbi9J.cjs"),t=({range:t,options:n,cell:o,onDone:s,...i})=>{const[l,r]=e.reactExports.useState(n??e.Pl.DefaultRangeOptions),a=e.go(e=>{let t=null;"Sort"===e&&(t={...n,options:l}),s?.(t)},[l,s,n]);return e.jsxRuntimeExports.jsx(e.sb,{title:"Sort",options:["Sort","Cancel"],onDone:a,...i,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:!l.reverse,onChange:()=>r(e=>({...e,reverse:!e.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.hasHeader,onChange:()=>r(e=>({...e,hasHeader:!e.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.collatorOptions?.sensitivity===e.Pl.CaseSensitiveOptions.sensitivity,onChange:()=>r(t=>({...t,collatorOptions:l.collatorOptions?.sensitivity===e.Pl.CaseSensitiveOptions.sensitivity?e.Pl.CaseInsensitiveOptions:e.Pl.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.orientation===e.e.Orientation.Row,onChange:()=>r(n=>{const s=n.orientation===e.e.Orientation.Row?e.e.Orientation.Column:e.e.Orientation.Row;return{...t.getDefaultSortCriteria(s,o).options,includeHidden:n.includeHidden,reverse:n.reverse,orientation:s}})}),label:"Row Sort",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:l.includeHidden,onChange:()=>r(e=>({...e,includeHidden:!e.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=t,exports.default=t;
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={FILTERXML:{s:"Returns specific data from XML content using the specified XPath.",p:{xml:{d:"is a string in valid XML format."},xpath:{d:"is a string in standard XPath format."}}}};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DATE:{s:"Returns the number that represents the date in Microsoft Excel date-time code",p:{year:{d:"is a number from 1900 or 1904 (depending on the workbook's date system) to 9999"},month:{d:"is a number from 1 to 12 representing the month of the year"},day:{d:"is a number from 1 to 31 representing the day of the month"}}},DATEDIF:{s:"Returns the number of days between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},unit:{d:"is a string that specifies the unit of time to use"}},h:"Legacy"},DATESTRING:{s:"Returns NA.",p:{number:{d:"is a number that is ignored"}},h:"Legacy"},DATEVALUE:{s:"Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code",p:{dateText:{d:"is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999"}}},DAY:{s:"Returns the day of the month, a number from 1 to 31.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},DAYS:{s:"Returns the number of days between the two dates.",p:{endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"}}},DAYS360:{s:"Returns the number of days between two dates based on a 360-day year (twelve 30-day months)",p:{startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},method:{d:"is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.",v:!1}}},EDATE:{s:"Returns the serial number of the date that is the indicated number of months before or after the start date",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after start_date"}}},EOMONTH:{s:"Returns the serial number of the last day of the month before or after a specified number of months",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after the start_date"}}},HOUR:{s:"Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},ISOWEEKNUM:{s:"Returns the ISO week number in the year for a given date",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MINUTE:{s:"Returns the minute, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MONTH:{s:"Returns the month, a number from 1 (January) to 12 (December).",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},NETWORKDAYS:{s:"Returns the number of whole workdays between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"NETWORKDAYS.INTL":{s:"Returns the number of whole workdays between two dates with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},NOW:{s:"Returns the current date and time formatted as a date and time.",p:{}},SECOND:{s:"Returns the second, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM"}}},TIME:{s:"Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format",p:{hour:{d:"is a number from 0 to 23 representing the hour"},minute:{d:"is a number from 0 to 59 representing the minute"},second:{d:"is a number from 0 to 59 representing the second"}}},TIMEVALUE:{s:"Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula",p:{timeText:{d:"is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)"}}},TODAY:{s:"Returns the current date formatted as a date.",p:{}},WEEKDAY:{s:"Returns a number from 1 to 7 identifying the day of the week of a date.",p:{serialOrString:{d:"is a number that represents a date"},returnType:{d:"is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3",v:1}}},WEEKNUM:{s:"Returns the week number in the year",p:{serialOrString:{d:"is the date-time code used by Excel for date and time calculation"},returnType:{d:"is a number (1 or 2) that determines the type of the return value",v:1}}},WORKDAY:{s:"Returns the serial number of the date before or after a specified number of workdays",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"WORKDAY.INTL":{s:"Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},YEAR:{s:"Returns the year of a date, an integer in the range 1900 - 9999.",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},YEARFRAC:{s:"Returns the year fraction representing the number of whole days between start_date and end_date",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},basis:{d:"is the type of day count basis to use",v:0}}}};
@@ -1,7 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={"BETA.DIST":{s:"Returns the beta probability distribution function",p:{x:{d:"is the value between A and B at which to evaluate the function"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}}},BETADIST:{s:"Returns the cumulative beta probability density function",p:{x:{d:"is the value between A and B at which to evaluate the function"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}},c:"Compatibility"},"BETA.INV":{s:"Returns the inverse of the cumulative beta probability density function (BETA.DIST)",p:{probability:{d:"is a probability associated with the beta distribution"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}}},BETAINV:{s:"Returns the inverse of the cumulative beta probability density function (BETADIST)",p:{probability:{d:"is a probability associated with the beta distribution"},alpha:{d:"is a parameter to the distribution and must be greater than 0"},beta:{d:"is a parameter to the distribution and must be greater than 0"},a:{d:"lower bound to the interval of x",v:0},b:{d:"upper bound to the interval of x",v:1}},c:"Compatibility"},"BINOM.DIST":{s:"Returns the individual term binomial distribution probability",p:{numberS:{d:"is the number of successes in trials"},trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},BINOMDIST:{s:"Returns the individual term binomial distribution probability",p:{numberS:{d:"is the number of successes in trials"},trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}},c:"Compatibility"},"BINOM.DIST.RANGE":{s:"Returns the probability of a trial result using a binomial distribution",p:{trials:{d:"is the number of independent trials"},probabilityS:{d:"is the probability of success on each trial"},numberS:{d:"is the number of successes in trials"},numberS2:{d:"if provided this function returns the probability that the number of successful trials shall lie between number_s and number_s2",v:"numberS"}}},"BINOM.INV":{s:"Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value",p:{trials:{d:"is the number of Bernoulli trials"},probabilityS:{d:"is the probability of success on each trial, a number between 0 and 1 inclusive"},alpha:{d:"is the criterion value, a number between 0 and 1 inclusive"}}},"CHISQ.DIST":{s:"Returns the left-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE",v:!1}}},CHIDIST:{s:"Returns the right-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"CHISQ.DIST.RT":{s:"Returns the right-tailed probability of the chi-squared distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"CHISQ.INV":{s:"Returns the inverse of the left-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},CHIINV:{s:"Returns the inverse of the right-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"CHISQ.INV.RT":{s:"Returns the right-tailed probability of the chi-squared distribution",p:{probability:{d:"is a probability associated with the chi-squared distribution, a value between 0 and 1 inclusive"},degFreedom:{d:"is the number of degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"CHISQ.TEST":{s:"Returns the test for independence: the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom",p:{actualRange:{d:"is the range of data that contains observations to test against expected values"},expectedRange:{d:"is the range of data that contains the ratio of the product of row totals and column totals to the grand total"}}},CHITEST:{s:"Returns the test for independence: the value from the chi-squared distribution for the statistic and the appropriate degrees of freedom",p:{actualRange:{d:"is the range of data that contains observations to test against expected values"},expectedRange:{d:"is the range of data that contains the ratio of the product of row totals and column totals to the grand total"}},c:"Compatibility"},"CONFIDENCE.NORM":{s:"Returns the confidence interval for a population mean, using a normal distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},standardDev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}}},CONFIDENCE:{s:"Returns the confidence interval for a population mean, using a normal distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},std:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},dev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}},c:"Compatibility"},"CONFIDENCE.T":{s:"Returns the confidence interval for a population mean, using a Student's T distribution",p:{alpha:{d:"is the significance level used to compute the confidence level, a number greater than 0 and less than 1"},standardDev:{d:"is the population standard deviation for the data range and is assumed to be known. Standard_dev must be greater than 0"},size:{d:"is the sample size"}}},CORREL:{s:"Returns the correlation coefficient between two data sets",p:{array1:{d:"is a cell range of values. The values should be numbers, names, arrays, or references that contain numbers"},array2:{d:"is a second cell range of values. The values should be numbers, names, arrays, or references that contain numbers"}}},"COVARIANCE.P":{s:"Returns population covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}}},COVARIANCE:{s:"Returns population covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}},c:"Compatibility"},"COVARIANCE.S":{s:"Returns sample covariance, the average of the products of deviations for each data point pair in two data sets",p:{array1:{d:"is the first cell range of integers and must be numbers, arrays, or references that contain numbers"},array2:{d:"is the second cell range of integers and must be numbers, arrays, or references that contain numbers"}}},CRITBINOM:{s:"Returns the smallest value for which the cumulative binomial distribution is greater than or equal to a criterion value",p:{trails:{d:"is the number of Bernoulli trials"},probabilityS:{d:"is the probability of success on each trial, a number between 0 and 1 inclusive"},alpha:{d:"is the criterion value, a number between 0 and 1 inclusive"}},c:"Compatibility",h:"Unimplemented"},DEVSQ:{s:"Returns the sum of squares of deviations of data points from their sample mean",p:{number:{d:"number1,number2,... are 1 to 255 arguments, or an array or array reference, on which you want DEVSQ to calculate"}}},"EXPON.DIST":{s:"Returns the exponential distribution",p:{x:{d:"is the value of the function, a nonnegative number"},lambda:{d:"is the parameter value, a positive number"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},EXPONDIST:{s:"Returns the exponential distribution",p:{x:{d:"is the value of the function, a nonnegative number"},lambda:{d:"is the parameter value, a positive number"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}},c:"Compatibility"},"F.DIST":{s:"Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},FDIST:{s:"Returns the (left-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"F.DIST.RT":{s:"Returns the (right-tailed) F probability distribution (degree of diversity) for two data sets",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"F.INV":{s:"Returns the inverse of the (left-tailed) F probability distribution: if p = F.DIST(x,...), then F.INV(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},FINV:{s:"Returns the inverse of the (left-tailed) F probability distribution: if p = F.DIST(x,...), then F.INV(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}},c:"Compatibility"},"F.INV.RT":{s:"Returns the inverse of the (right-tailed) F probability distribution: if p = F.DIST.RT(x,...), then F.INV.RT(p,...) = x",p:{probability:{d:"is a probability associated with the F cumulative distribution, a number between 0 and 1 inclusive"},degFreedom1:{d:"is the numerator degrees of freedom, a number between 1 and 10^10, excluding 10^10"},degFreedom2:{d:"is the denominator degrees of freedom, a number between 1 and 10^10, excluding 10^10"}}},"F.TEST":{s:"Returns the result of an F-test, the two-tailed probability that the variances in Array1 and Array2 are not significantly different",p:{array1:{d:"is the first array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"},array2:{d:"is the second array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"}}},FTEST:{s:"Returns the result of an F-test, the two-tailed probability that the variances in Array1 and Array2 are not significantly different",p:{array1:{d:"is the first array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"},array2:{d:"is the second array or range of data and can be numbers or names, arrays, or references that contain numbers (blanks are ignored)"}},c:"Compatibility"},FISHER:{s:"Returns the Fisher transformation",p:{x:{d:"is the value for which you want the transformation, a number between -1 and 1, excluding -1 and 1"}}},FISHERINV:{s:"Returns the inverse of the Fisher transformation: if y = FISHER(x), then FISHERINV(y) = x",p:{y:{d:"is the value for which you want to perform the inverse of the transformation"}}},FORECAST:{s:"Calculates, or predicts, a future value along a linear trend by using existing values",p:{x:{d:"is the data point for which you want to predict a value and must be a numeric value"},knownYs:{d:"is the dependent array or range of numeric data",v:null},knownXs:{d:"is the independent array or range of numeric data. The variance of Known_x's must not be zero",v:null}},c:"Compatibility"},"FORECAST.ETS":{s:"Returns the forecasted value for a specific future target date using exponential smoothing method",p:{targetDate:{d:"is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline"},values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:.95},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.CONFINT":{s:"Retursn a confidence interval for the forecasted value at the specified target date",p:{targetDate:{d:"is the data point for which you want to predict a value. It should carry on the pattern of values in the timeline"},values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},confiedenceLevel:{d:"is a number value that indicates the confidence level for the forecasted value. It must be between 0 and 1, where 0 means no confidence and 1 means full confidence",v:.95},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:.95},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.SEASONALITY":{s:"Returns the length of the repetitive pattern in the data for the specific time series.",p:{values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.ETS.STAT":{s:"Returns the requested statistic for the forecast",p:{values:{d:"is the array or range of numberic data you're predicting"},timeline:{d:"is the independent array or range of numberic data. The dtes in the timeline must have a consistent step between them and can't be zero."},statisticType:{d:"is a number between 1 and 8 that indicates the type of statistic to return:"},seasonality:{d:"is a number value that indicates the length of the seasonal pattern in the data. It must be between 0 and 1, where 0 means no seasonality and 1 means full seasonality",v:1},dataCompletion:{d:"is a number value that indicates how much of the data is complete. It must be between 0 and 1, where 0 means no data is complete and 1 means all data is complete",v:1},aggregation:{d:"is a number value that indicates how the data should be aggregated. It must be between 0 and 1, where 0 means no aggregation and 1 means full aggregation",v:1}},h:"Unimplemented"},"FORECAST.LINEAR":{s:"Calculates, or predicts, a future value along a linear trend by using existing values",p:{x:{d:"is the data point for which you want to predict a value and must be a numeric value"},knownYs:{d:"is the dependent array or range of numeric data"},knownXs:{d:"is the independent array or range of numeric data. The variance of Known_x's must not be zero",v:null}},h:"Unimplemented"},FREQUENCY:{s:"Calculates how often values occur within a range of values and then returns a vertical array of numbers having one more element than Bins_array",p:{dataArray:{d:"is an array of or reference to a set of values for which you want to count frequencies (blanks and text are ignored)"},binsArray:{d:"is an array of or reference to intervals into which you want to group the values in data_array"}}},GAMMA:{s:"Returns the Gamma function value",p:{x:{d:"is the value for which you want to calculate Gamma"}}},"GAMMA.DIST":{s:"Returns the gamma distribution",p:{x:{d:"is the value at which you want to evaluate the distribution, a nonnegative number"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number. If beta = 1, GAMMA.DIST returns the standard gamma distribution"},cumulative:{d:"is a logical value: return the cumulative distribution function = TRUE; return the probability mass function = FALSE",v:!1}}},"GAMMA.INV":{s:"Returns the inverse of the gamma cumulative distribution: if p = GAMMA.DIST(x,...), then GAMMA.INV(p,...) = x",p:{probability:{d:"is the probability associated with the gamma distribution, a number between 0 and 1, inclusive"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number. If beta = 1, GAMMA.DIST returns the standard gamma distribution"}}},GAMMALN:{s:"Returns the natural logarithm of the gamma function",p:{x:{d:"is the value for which you want to calculate GAMMALN, a positive number"}}},"GAMMALN.PRECISE":{s:"Returns the natural logarithm of the gamma function",p:{x:{d:"is the value for which you want to calculate GAMMALN.PRECISE, a positive number"}}},GAUSS:{s:"Returns 0.5 less than the standard normal cumulative distribution",p:{x:{d:"is the value for which you want the distribution"}}},GEOMEAN:{s:"Returns the geometric mean of an array or range of positive numeric data",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the mean"}}},GROWTH:{s:"Returns numbers in an exponential growth trend matching known data points",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = b*m^x, an array or range of positive numbers"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = b*m^x, an array or range the same size as Known_y's",v:null},newXs:{d:"are new x-values for which you want GROWTH to return corresponding y-values",v:null},useConst:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 1 if Const = FALSE",v:!0}}},HARMEAN:{s:"Returns the harmonic mean of a data set of positive numbers: the reciprocal of the arithmetic mean of reciprocals",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the harmonic mean"}}},"HYPGEOM.DIST":{s:"Returns the hypergeometric distribution",p:{sampleS:{d:"is the number of successes in the sample"},numberSample:{d:"is the size of the sample"},populationS:{d:"is the number of successes in the population"},numberPop:{d:"is the population size"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},INTERCEPT:{s:"Calculates the point at which a line will intersect the y-axis by using a best-fit regression line plotted through the known x-values and y-values",p:{knownYs:{d:"is the dependent set of observations or data and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is the independent set of observations or data and can be numbers or names, arrays, or references that contain numbers"}}},KURT:{s:"Returns the kurtosis of a data set",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the kurtosis"}}},LINEST:{s:"Returns statistics that describe a linear trend matching known data points, by fitting a straight line using the least squares method",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = mx + b"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = mx + b",v:null},constant:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 0 if Const = FALSE",v:!0},stats:{d:"is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE",v:!1}}},LOGEST:{s:"Returns statistics that describe an exponential curve matching known data points",p:{knownYs:{d:"is the set of y-values you already know in the relationship y = b*m^x"},knownXs:{d:"is an optional set of x-values that you may already know in the relationship y = b*m^x",v:null},constant:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 1 if Const = FALSE",v:!0},stats:{d:"is a logical value: return additional regression statistics = TRUE; return m-coefficients and the constant b = FALSE",v:!1}},h:"Unimplemented Buggy"},"LOGNORM.DIST":{s:"Returns the lognormal distribution of x, where ln(x) is normally distributed with parameters Mean and Standard_dev",p:{x:{d:"is the value at which to evaluate the function, a positive number"},mean:{d:"is the mean of ln(x)"},standardDev:{d:"is the standard deviation of ln(x), a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"LOGNORM.INV":{s:"Returns the inverse of the lognormal cumulative distribution function of x, where ln(x) is normally distributed with parameters Mean and Standard_dev",p:{probability:{d:"is a probability associated with the lognormal distribution, a number between 0 and 1, inclusive"},mean:{d:"is the mean of ln(x)"},standardDev:{d:"is the standard deviation of ln(x), a positive number"}}},"MODE.MULT":{s:"Returns a vertical array of the most frequently occurring, or repetitive, values in an array or range of data. For a horizontal array, use =TRANSPOSE(MODE.MULT(number1,number2,...))",p:{number:{d:'<div class="param-538">number1,number2,... are 1 to 255 numbers, or names, arrays, or references that contain numbers for which you want the mode</div>'}},h:"Unimplemented"},"MODE.SNGL":{s:"Returns the most frequently occurring, or repetitive, value in an array or range of data",p:{number:{d:"number1,number2,... are 1 to 255 numbers, or names, arrays, or references that contain numbers for which you want the mode"}},h:"Unimplemented"},"NEGBINOM.DIST":{s:"Returns the negative binomial distribution, the probability that there will be Number_f failures before the Number_s-th success, with Probability_s probability of a success",p:{numberF:{d:"is the number of failures"},numberS:{d:"is the threshold number of successes"},probabilityS:{d:"is the probability of a success; a number between 0 and 1"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},"NORM.DIST":{s:"Returns the normal distribution for the specified mean and standard deviation",p:{x:{d:"is the value for which you want the distribution"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"NORM.INV":{s:"Returns the inverse of the normal cumulative distribution for the specified mean and standard deviation",p:{probability:{d:"is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"}}},"NORM.S.DIST":{s:"Returns the standard normal distribution (has a mean of zero and a standard deviation of one)",p:{z:{d:"is the value for which you want the distribution"},cumulative:{d:"is a logical value for the function to return: the cumulative distribution function = TRUE; the probability density function = FALSE"}}},"NORM.S.INV":{s:"Returns the inverse of the standard normal cumulative distribution (has a mean of zero and a standard deviation of one)",p:{probability:{d:"is a probability corresponding to the normal distribution, a number between 0 and 1 inclusive"}}},PEARSON:{s:"Returns the Pearson product moment correlation coefficient, r",p:{array1:{d:"is a set of independent values"},array2:{d:"is a set of dependent values"}}},"PERCENTILE.EXC":{s:"Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive",p:{array:{d:"is the array or range of data that defines relative standing"},k:{d:"is the percentile value that is between 0 through 1, inclusive"}},h:"Unimplemented"},"PERCENTILE.INC":{s:"Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive",p:{array:{d:"is the array or range of data that defines relative standing"},k:{d:"is the percentile value that is between 0 through 1, inclusive"}},h:"Unimplemented"},"PERCENTRANK.EXC":{s:"Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set",p:{array:{d:"is the array or range of data with numeric values that defines relative standing"},x:{d:"is the value for which you want to know the rank"},significance:{d:"is an optional value that identifies the number of significant digits for the returned percentage",v:3}},h:"Unimplemented"},"PERCENTRANK.INC":{s:"Returns the rank of a value in a data set as a percentage (0..1, inclusive) of the data set",p:{array:{d:"is the array or range of data with numeric values that defines relative standing"},x:{d:"is the value for which you want to know the rank"},significance:{d:"is an optional value that identifies the number of significant digits for the returned percentage",v:3}},h:"Unimplemented"},PHI:{s:"Returns the value of the density function for a standard normal distribution",p:{x:{d:"is the number for which you want the density of the standard normal distribution"}}},"POISSON.DIST":{s:"Returns the Poisson distribution",p:{x:{d:"is the number of events"},mean:{d:"is the expected numeric value, a positive number"},cumulative:{d:"is a logical value: for the cumulative Poisson probability, use TRUE; for the Poisson probability mass function, use FALSE"}}},PROB:{s:"Returns the probability that values in a range are between two limits or equal to a lower limit",p:{xRange:{d:"is the range of numeric values of x with which there are associated probabilities"},probRange:{d:"is the set of probabilities associated with values in X_range, values between 0 and 1 and excluding 0"},lowerLimit:{d:"is the lower bound on the value for which you want a probability"},upperLimit:{d:"is the optional upper bound on the value. If omitted, PROB returns the probability that X_range values are equal to Lower_limit"}}},"QUARTILE.EXC":{s:"Returns the quartile of a data set, based on percentile values from 0..1, exclusive",p:{array:{d:"is the array or cell range of numeric values for which you want the quartile value"},quart:{d:"is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4"}},h:"Unimplemented"},"QUARTILE.INC":{s:"Returns the quartile of a data set, based on percentile values from 0..1, inclusive",p:{array:{d:"is the array or cell range of numeric values for which you want the quartile value"},quart:{d:"is a number: minimum value = 0; 1st quartile = 1; median value = 2; 3rd quartile = 3; maximum value = 4"}},h:"Unimplemented"},"RANK.AVG":{s:"Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the average rank is returned",p:{number:{d:"is the number for which you want to find the rank"},ref:{d:"is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored"},order:{d:"is a number: rank in the list sorted descending = 0; rank in the list sorted ascending = any nonzero value",v:0}},h:"Unimplemented"},"RANK.EQ":{s:"Returns the rank of a number in a list of numbers: its size relative to other values in the list; if more than one value has the same rank, the top rank of that set of values is returned",p:{number:{d:"is the number for which you want to find the rank"},ref:{d:"is an array of, or a reference to, a list of numbers. Nonnumeric values are ignored"},order:{d:"is a number: rank in the list sorted descending = 0; rank in the list sorted ascending = any nonzero value",v:0}},h:"Unimplemented"},RSQ:{s:"Returns the square of the Pearson product moment correlation coefficient through the given data points",p:{knownYs:{d:"is an array or range of data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is an array or range of data points and can be numbers or names, arrays, or references that contain numbers"}},h:"Unimplemented"},SKEW:{s:"Returns the skewness of a distribution: a characterization of the degree of asymmetry of a distribution around its mean",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the skewness"}},h:"Unimplemented"},"SKEW.P":{s:"Returns the skewness of a distribution based on a population: a characterization of the degree of asymmetry of a distribution around its mean",p:{number:{d:"number1,number2,... are 1 to 254 numbers or names, arrays, or references that contain numbers for which you want the population skewness"}},h:"Unimplemented"},SLOPE:{s:"Returns the slope of the linear regression line through the given data points",p:{knownYs:{d:"is an array or cell range of numeric dependent data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"iis the set of independent data points and can be numbers or names, arrays, or references that contain numbers"}}},STANDARDIZE:{s:"Returns a normalized value from a distribution characterized by a mean and standard deviation",p:{x:{d:"is the value you want to normalize"},mean:{d:"is the arithmetic mean of the distribution"},standardDev:{d:"is the standard deviation of the distribution, a positive number"}}},"STDEV.P":{s:"Calculates standard deviation based on the entire population given as arguments (ignores logical values and text)",p:{number:{d:"number1,number2,... are 1 to 255 numbers corresponding to a population and can be numbers or references that contain numbers"}},h:"Unimplemented"},"STDEV.S":{s:"Estimates standard deviation based on a sample (ignores logical values and text in the sample)",p:{number:{d:"number1,number2,... are 1 to 255 numbers corresponding to a sample of a population and can be numbers or references that contain numbers"}}},STDEVA:{s:"Estimates standard deviation based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 values corresponding to a sample of a population and can be values or names or references to values"}},h:"Unimplemented"},STDEVPA:{s:"Calculates standard deviation based on an entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 values corresponding to a population and can be values, names, arrays, or references that contain values"}},h:"Unimplemented"},STEYX:{s:"Returns the standard error of the predicted y-value for each x in a regression",p:{knownYs:{d:"is an array or range of dependent data points and can be numbers or names, arrays, or references that contain numbers"},knownXs:{d:"is an array or range of independent data points and can be numbers or names, arrays, or references that contain numbers"}},h:"Unimplemented"},"T.DIST":{s:"Returns the left-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability density function, use FALSE"}}},"T.DIST.2T":{s:"Returns the two-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"}}},"T.DIST.RT":{s:"Returns the right-tailed Student's t-distribution",p:{x:{d:"is the numeric value at which to evaluate the distribution"},degFreedom:{d:"is an integer indicating the number of degrees of freedom that characterize the distribution"}}},"T.INV":{s:"Returns the left-tailed inverse of the Student's t-distribution",p:{probability:{d:"is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive"},degFreedom:{d:"is a positive integer indicating the number of degrees of freedom to characterize the distribution"}}},"T.INV.2T":{s:"Returns the two-tailed inverse of the Student's t-distribution",p:{probability:{d:"is the probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive"},degFreedom:{d:"is a positive integer indicating the number of degrees of freedom to characterize the distribution"}}},"T.TEST":{s:"Returns the probability associated with a Student's t-Test",p:{array1:{d:"is the first data set"},array2:{d:"is the second data set"},tails:{d:"specifies the number of distribution tails to return: one-tailed distribution = 1; two-tailed distribution = 2"},type:{d:"is the kind of t-test: paired = 1, two-sample equal variance (homoscedastic) = 2, two-sample unequal variance = 3"}},h:"Unimplemented"},TREND:{s:"Returns numbers in a linear trend matching known data points, using the least squares method",p:{knownYs:{d:"is a range or array of y-values you already know in the relationship y = mx + b"},knownXs:{d:"is an optional range or array of x-values that you know in the relationship y = mx + b, an array the same size as Known_y's",v:null},newXs:{d:"is a range or array of new x-values for which you want TREND to return corresponding y-values",v:null},consts:{d:"is a logical value: the constant b is calculated normally if Const = TRUE; b is set equal to 0 if Const = FALSE",v:!0}},h:"Unimplemented"},TRIMMEAN:{s:"Returns the mean of the interior portion of a set of data values",p:{array:{d:"is the range or array of values to trim and average"},percent:{d:"is the fractional number of data points to exclude from the top and bottom of the data set"}},h:"Unimplemented"},"VAR.P":{s:"Calculates variance based on the entire population (ignores logical values and text in the population)",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments corresponding to a population"}}},"VAR.S":{s:"Estimates variance based on a sample (ignores logical values and text in the sample)",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments corresponding to a sample of a population"}}},VARA:{s:"Estimates variance based on a sample, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 value arguments corresponding to a sample of a population"}}},VARPA:{s:"Calculates variance based on the entire population, including logical values and text. Text and the logical value FALSE have the value 0; the logical value TRUE has the value 1",p:{value:{d:"value1,value2,... are 1 to 255 value arguments corresponding to a population"}}},"WEIBULL.DIST":{s:"Returns the Weibull distribution",p:{x:{d:"is the value at which to evaluate the function, a nonnegative number"},alpha:{d:"is a parameter to the distribution, a positive number"},beta:{d:"is a parameter to the distribution, a positive number"},cumulative:{d:"is a logical value: for the cumulative distribution function, use TRUE; for the probability mass function, use FALSE"}}},"Z.TEST":{s:"Returns the one-tailed P-value of a z-test",p:{array:{d:"is the array or range of data against which to test X"},x:{d:"is the value to test"},sigma:{d:"is the population (known) standard deviation. If omitted, the sample standard deviation is used",v:0}}}};