@sheetxl/studio-vanilla 0.8.0-beta.1 → 0.8.0-beta.10
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.
- package/browser/esm/-LoBx7J6imeqaxCq.mjs +236 -0
- package/browser/esm/8-jmVNNbOHuXFdVQ.mjs +392 -0
- package/browser/esm/{CJPemkFUzhcAD_qR.mjs → B00ixdmb8-O5ijEp.mjs} +1 -1
- package/{cdn/assets/Bv_96nwOEMHN9Sa0.js → browser/esm/B0Wjc3lwtjKMwnvn.mjs} +27 -29
- package/browser/esm/B3Ii8x6RquHW1jMc.mjs +299 -0
- package/{cdn/assets/C_Io1QC4CeLGRBrz.js → browser/esm/B7iV5qzlmJlM2nQv.mjs} +179 -202
- package/{cdn/assets/D_t53-8k73CNpV-p2.js → browser/esm/BAH_cWcQEIBKWnl6.mjs} +94 -74
- package/browser/esm/BAdRecWK1maKGOZd.mjs +142 -0
- package/browser/esm/BBjgqNlHm-ssbSAG.mjs +47 -0
- package/browser/esm/BCWTI3jdTPG37r8W.mjs +46 -0
- package/browser/esm/{Dnx3_xXfRlD6ECfZ2.mjs → BMlPFJ1glExv-70Z.mjs} +5 -5
- package/browser/esm/{DBL3Qp5jyPrFg7KI2.mjs → BN2d5U1nw7pRtOrn.mjs} +1 -1
- package/browser/esm/BNIInlJQbJjH8B6G.mjs +84250 -0
- package/browser/esm/BPrHgyAsm2Htx15h.mjs +67 -0
- package/browser/esm/BRfat1fV3oGLwvin.mjs +76 -0
- package/browser/esm/{8V-VceXEjpADM8qK2.mjs → BSCja5yvevmKZPBB.mjs} +1 -1
- package/browser/esm/BThOwSja2ra4xejQ.mjs +6306 -0
- package/browser/esm/BVJUL2HhoedhbwVy.mjs +77 -0
- package/browser/esm/{CfvrjQGuf7vXiQCB.mjs → BWo1N4YbK_zGU0nu.mjs} +1 -1
- package/browser/esm/B_HB4y7AA88Z775Z.mjs +91 -0
- package/browser/esm/BaEZmurTZnX_yfKD.mjs +1082 -0
- package/browser/esm/BeMLfv6hWo15VCIL.mjs +239 -0
- package/{cdn/assets/C1ZePT2B182vSnxW.js → browser/esm/BhkeuRcx8RlLCQ5E.mjs} +1 -1
- package/browser/esm/Bi5-feQLtwpV6Ai8.mjs +57 -0
- package/browser/esm/BlPn_DXaEXOPxMxC.mjs +540 -0
- package/browser/esm/{B4iT_CduJeJunwBc.mjs → BsUrrzAgfyAdcCJW.mjs} +28 -13
- package/browser/esm/{47Yv4X226-93If7L.mjs → BtGmrIqU9W1L8zfZ.mjs} +1 -1
- package/browser/esm/BtdRr6IbtO6Gypsk.mjs +27 -0
- package/browser/esm/BwOxnbR61WFJwy0A.mjs +607 -0
- package/browser/esm/BxhKgo_rPQ2d12HT.mjs +35 -0
- package/browser/esm/By3a43qwWICwXRmw.mjs +8035 -0
- package/browser/esm/{BqTFwWLbXXJ0Fu-X2.mjs → ByUcqyCNfqi5Mm7w.mjs} +2 -2
- package/browser/esm/{Blc1T4zLkp8bRC_n2.mjs → ByqhqEMBLrnkaPKE.mjs} +28 -27
- package/{cdn/assets/8f9hCbpXTTYEgG31.js → browser/esm/C-0viTjg1dT2F-sk.mjs} +2 -2
- package/{cdn/assets/BMRav2VAqEzDSp3r.js → browser/esm/C3r_9RqlWrEmlXZ1.mjs} +37 -3
- package/browser/esm/C4VT6lNbpaDXCpBb.mjs +8820 -0
- package/browser/esm/{Be4QC65cR8N84rTn.mjs → C5EKgE9Owsc_juw-.mjs} +1 -1
- package/browser/esm/{1guzFZp1LHz_FwfL.mjs → C9NyIoUahFiyRCxP.mjs} +2 -2
- package/{cdn/assets/BykiUmcpDgSRNQI1.js → browser/esm/CBdNC7BOfc5TewHU.mjs} +1 -1
- package/browser/esm/CCd192S7yVpc6iOe.mjs +118 -0
- package/browser/esm/{BLcn1kGRsjURZSzk.mjs → CDsuiN--qdALFyql.mjs} +179 -202
- package/{cdn/assets/BDkVAo0CDCTE04ZJ.js → browser/esm/CFvKDDbrL3wpXnQH.mjs} +1 -1
- package/browser/esm/{CH0of3GZTzHviuQV.mjs → CHMqT9DzYKTxPfP6.mjs} +2 -2
- package/browser/esm/{CEN8dYSpN2oew8HH.mjs → CMxbiQ5J79M3n1tk.mjs} +604 -405
- package/browser/esm/{vcRSnmAqjwKglEkY.mjs → CQOyeq_-pg3CM-uA.mjs} +6 -7
- package/browser/esm/CQuv-nk5jtXUfu7C.mjs +7 -0
- package/browser/esm/CRAzVh3CaAa16avf.mjs +521 -0
- package/{cdn/assets/hFSDx-LnUOObv-6h.js → browser/esm/CSEMxasVyGCekxKf.mjs} +6 -7
- package/browser/esm/CTI-mCJbJzitJZwj.mjs +25 -0
- package/{cdn/assets/CdMv3f8Gyxh8q2RR.js → browser/esm/CTdFZ_I-41Vr6Dy4.mjs} +1 -1
- package/browser/esm/CVcCUfSRsiZ1-6hs.mjs +119 -0
- package/browser/esm/CVxlfyE-gnJM8hOz.mjs +177 -0
- package/browser/esm/CWJzHmEgahdOfNjH.mjs +527 -0
- package/browser/esm/CWoPWWRwMgkGPFFP.mjs +7393 -0
- package/browser/esm/CZOJogyZqMfUxcXj.mjs +1141 -0
- package/{cdn/assets/DLEdaT0MmrOxMa2h2.js → browser/esm/CaS8_J5HfBRk5_Nw.mjs} +94 -94
- package/browser/esm/CdeXXPCp5cCYvGyD.mjs +14 -0
- package/browser/esm/{BVRzmIk5PujkT_Ap.mjs → CfltjY8hY-RPwwpd.mjs} +582 -551
- package/browser/esm/Chr_TXM-48IsK8Va.mjs +155 -0
- package/browser/esm/{DTaVECXVrgvC48BE.mjs → ClJvUf8aR8vNC_3Z.mjs} +6 -6
- package/browser/esm/Clx8vvGDOTWK_M2l.mjs +484 -0
- package/browser/esm/CnWNviK4qlX2GVl6.mjs +73 -0
- package/browser/esm/{CQM87ZBN7Yzn4Yxr.mjs → Cpza4AeltEVHASij.mjs} +3 -3
- package/browser/esm/{BceIETi6JJRW6Ss62.mjs → CqoHxlGpZ3yzPj5V.mjs} +22 -21
- package/{cdn/assets/iXWgTu3qpYZHcx1J.js → browser/esm/CtZPEkaldpJpoGtW.mjs} +2197 -2013
- package/browser/esm/CvWGtHslTdesJik-.mjs +69 -0
- package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +36 -0
- package/browser/esm/CxCipDFamYSOctBo.mjs +299 -0
- package/browser/esm/Cy00y9b9j17Txyv1.mjs +466 -0
- package/browser/esm/D-55MlIn7Wo_hdjI.mjs +905 -0
- package/browser/esm/D-9f1NKcpuYSgond.mjs +412 -0
- package/browser/esm/D-KZpU6HMaP4VUva.mjs +357 -0
- package/browser/esm/D0r2MPlWLnStWJNW.mjs +622 -0
- package/browser/esm/{9_bymSfTn_rR_v6W.mjs → D2aQPiGg0ZoMYzuf.mjs} +22 -21
- package/{cdn/assets/DKeLjEJPO9nT3bpr.js → browser/esm/D2coM-dNrlLpnUu5.mjs} +1000 -1010
- package/browser/esm/D7CGuQcwpkiuesEI.mjs +229 -0
- package/browser/esm/{RW23HF8taEtW8q9D.mjs → D7DWH3-5fBNx8jtc.mjs} +182 -132
- package/browser/esm/D7kkzIFPqKBK94kO.mjs +17952 -0
- package/browser/esm/D88StfSjZJi5E8Xb.mjs +5153 -0
- package/browser/esm/D8exjrado9TJrBp-.mjs +1946 -0
- package/browser/esm/DAE3Kv0Vs0VuBecT.mjs +32 -0
- package/browser/esm/DAprxR00V9qvNLL2.mjs +6607 -0
- package/browser/esm/DEvZj68igS7Q8SZE.mjs +763 -0
- package/browser/esm/DG3BfxRsbjey-B7E.mjs +441 -0
- package/browser/esm/DGCOPbZbEmt0x9z0.mjs +155 -0
- package/browser/esm/DGcvio2uhlrsE3ZY.mjs +236 -0
- package/browser/esm/DGuynZFJ9tqziqQs.mjs +92 -0
- package/browser/esm/DJqj66SnUcx0QmSN.mjs +15 -0
- package/browser/esm/DLhK_oSGg71ry6-m.mjs +86 -0
- package/{cdn/assets/D9-wpGVbTS9rRpxx.js → browser/esm/DLqc11Pf8vaE4Q5B.mjs} +2 -2
- package/browser/esm/DNCqTF9EbT-U1TdV.mjs +20 -0
- package/browser/esm/{R5bs6kCQSZmsCXz-.mjs → DNaPo7BQu6hr1fWq.mjs} +1 -1
- package/browser/esm/{BCkXtOM3yKocv7L-2.mjs → DQEjvIGMgEkiaP6J.mjs} +1 -1
- package/{cdn/assets/CAPgMrAKg07EREFD2.js → browser/esm/DQIRFXG4MveFkK3I.mjs} +1 -1
- package/browser/esm/{DrUEYcXg6N2D2s1Z2.mjs → DRm1R4uVOkaMfXNI.mjs} +51 -11
- package/browser/esm/DSf-Db1h8rlW2A6n.mjs +122 -0
- package/browser/esm/DSviq1TNoiIAGW7W.mjs +32 -0
- package/{cdn/assets/UYgwKnPX3US3Cj2k2.js → browser/esm/DTn9oYyiIYgyijAk.mjs} +110 -83
- package/{cdn/assets/Clfp7SznkOrJoQvL.js → browser/esm/DVpi1vC8ixXvUQG_.mjs} +3 -3
- package/browser/esm/{BOl4FzJRD7MplCU72.mjs → DWgp4t9N9u0eWthH.mjs} +1 -1
- package/{cdn/assets/B5ZqqASTcBEV5L9K.js → browser/esm/DXo8mR6t5HGsmTcu.mjs} +1 -1
- package/browser/esm/DZRmBfjn2TgOTu5e.mjs +3604 -0
- package/browser/esm/{DVZ_UnchuMRveDG32.mjs → D_7BWdsu8yejhUxy.mjs} +184 -11
- package/browser/esm/D_thhK0vSez8Yfle.mjs +798 -0
- package/browser/esm/DaMKWQQTgIF08cT7.mjs +105 -0
- package/browser/esm/Db6Tvr45TS9J5Qsb.mjs +259 -0
- package/{cdn/assets/EwzqnZl1lTr56hH-.js → browser/esm/Dc2ZwgbIEgYWwAsF.mjs} +1 -1
- package/{cdn/assets/DQ4o4dG7gWbL1X8F.js → browser/esm/DeUXRggj8Oz9ru_i.mjs} +2 -2
- package/{cdn/assets/DRc_Wi5c7WdKHTVN.js → browser/esm/DfESVLC8CAi8m8A7.mjs} +6 -6
- package/browser/esm/{D3G3tI3DVCUF3Gdk.mjs → DjdkGy-EI1kSo226.mjs} +7 -5
- package/browser/esm/DjtXfgbmXjUAoG0y.mjs +58 -0
- package/browser/esm/DlOVZD0OiAjouS6-.mjs +3563 -0
- package/browser/esm/Dme0qpRinBnhzp53.mjs +519 -0
- package/browser/esm/DnyZmrwPxShyeUjm.mjs +849 -0
- package/browser/esm/DoS1sE431fEhdOQb.mjs +216 -0
- package/browser/esm/DqBj-9o7UdXu4qhb.mjs +33 -0
- package/browser/esm/{DZbR5R1fNikjgqYb.mjs → DrI_S0A9TQvriTua.mjs} +1 -1
- package/browser/esm/Dv2z0548SZRGTN3l.mjs +149 -0
- package/browser/esm/{D6SKy2BtcWkhfiA02.mjs → Dv8aQFTTaQBJKDDk.mjs} +2 -5
- package/browser/esm/DvWCBuY0jAL-RmJV.mjs +3363 -0
- package/browser/esm/Dwxz0s23ra1tRtsH.mjs +7 -0
- package/browser/esm/{Cbw0JeJURvQyxIoa.mjs → DxcRLd7wmBGDgJsA.mjs} +1 -1
- package/{cdn/assets/DOsbSsKsexrBoeXa2.js → browser/esm/DxwprgjYhcmfDbXH.mjs} +24 -24
- package/browser/esm/{Dc0BDcQUGy_WIVFa.mjs → Dy44qJVkwNseMG-3.mjs} +1 -1
- package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +89 -0
- package/browser/esm/{BD7RxHQgrqy_4tb5.mjs → ErIXJFPDFXwGEL8V.mjs} +2 -2
- package/{cdn/assets/COA_SZY2x8q6t4BD.js → browser/esm/FO1Jezau486fH4kN.mjs} +7 -6
- package/browser/esm/FjNOhkR7-JAIaRP6.mjs +19 -0
- package/browser/esm/H-JnJQMcZQbpvjdb.mjs +2706 -0
- package/browser/esm/J9i3r1fU0H10b2hX.mjs +1001 -0
- package/browser/esm/LAbUYeLiPG8z9cmA.mjs +277 -0
- package/browser/esm/M7RYrx20B_Yl_euJ.mjs +400 -0
- package/browser/esm/{Gy0CHZTvn4hY-rkx2.mjs → PtGiIWFBYP-ujLmf.mjs} +1 -1
- package/browser/esm/RLU85PsAYtKPUf6N.mjs +71 -0
- package/browser/esm/{qG5zdZZAe6mQIJo32.mjs → RfHd1JATBlcsfLPv.mjs} +5 -5
- package/{cdn/assets/CtXoSHbCUKMY-tSJ2.js → browser/esm/SNze-adFJwKuGSQW.mjs} +48 -2
- package/browser/esm/UTZcodQydbuMfCOS.mjs +171 -0
- package/browser/esm/{BHmYoIIbNW3GdcqV2.mjs → VwGokBaawZfZiV2X.mjs} +1 -1
- package/browser/esm/WMYR09ZOR8JbZEnx.mjs +4748 -0
- package/browser/esm/{DW72HwfnJtQxzoGa.mjs → ZbGPiRN9j0629JJQ.mjs} +2 -2
- package/browser/esm/{CR3jgkduTLczbMjH2.mjs → ZxsFYopF0_WWqw4Q.mjs} +1 -1
- package/browser/esm/_MPToH4oMe4rhTdZ.mjs +63 -0
- package/{cdn/assets/BHBJtVTiQByD_y9j2.js → browser/esm/_t0Mx-mUFVtmVNkU.mjs} +2 -2
- package/browser/esm/{B0HA_dHcr0kKfudQ.mjs → _zRV52yhE4gPf3XI.mjs} +213 -190
- package/browser/esm/aUREGNA8H7p4BpMK.mjs +33 -0
- package/browser/esm/cwuYkcKwsKkPe3gG.mjs +598 -0
- package/browser/esm/{NekeSGoazNCraGNC2.mjs → djM9mJznx8GzVq51.mjs} +16 -15
- package/browser/esm/{DuPdSe-EXFTx9dsc2.mjs → f1OJemsiZnbwnds-.mjs} +16 -15
- package/{cdn/assets/DQ-0yyFAwoWtxmhV2.js → browser/esm/i0P63Wd0RRlgJotb.mjs} +1 -1
- package/browser/esm/{B4vYIE3kSPTxCgpf2.mjs → iC69oOND5T8khIWf.mjs} +18 -17
- package/browser/esm/index.mjs +644 -48
- package/browser/esm/{7rixDGGrR72lXkMV.mjs → kVBPUUnVyZfb8pf3.mjs} +52 -52
- package/{cdn/assets/BCZjYGV8AqIZghBH.js → browser/esm/lqknEt3DTma5Juxs.mjs} +69 -4
- package/browser/esm/mZ92wNrHVpYdli1U.mjs +182 -0
- package/browser/esm/{DtXC6uPF2LLktqFE.mjs → pKc_RPdZPLAgvNDh.mjs} +2 -2
- package/browser/esm/{BPv6Pw1hW-sV5Fya.mjs → pc49xtHdprXZLW2X.mjs} +1 -1
- package/browser/esm/px-aQ8dMjiWag_pV.mjs +167 -0
- package/browser/esm/qYca4mdySLkACfo1.mjs +37 -0
- package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +398 -0
- package/browser/esm/{DXWmgQSeh0_HDxZj.mjs → rY-dC3WB558TIbum.mjs} +4 -4
- package/browser/esm/rkTVQiYG3wd8oPom.mjs +2452 -0
- package/browser/esm/sDVzjXC1mS5rucF5.mjs +2447 -0
- package/browser/esm/sxxbiJiCMOW2Eivd.mjs +24952 -0
- package/{cdn/assets/CopfZ7Y1Zn_PDNXK.js → browser/esm/vGKTE7yjY8y-XnsW.mjs} +16 -11
- package/browser/esm/{CG5v2hAwGR5Ptufn.mjs → x6GcENwqoUVbd60j.mjs} +1 -1
- package/{cdn/assets/CGqvy5LwQ4z9J2oD.js → browser/esm/ycmpAs4kQfeh78Pa.mjs} +1 -1
- package/browser/esm/ztqpWR65YYMZ3EPk.mjs +811 -0
- package/cdn/assets/0vqRTRN0wEzWao1c.js +522 -0
- package/cdn/assets/514mXPTuNvdNgw35.js +412 -0
- package/{browser/esm/DVQNQmjI2PKkwiOw2.mjs → cdn/assets/7Sg0ht_ZCMJkPurt.js} +89 -87
- package/cdn/assets/{mtrwY1hjJeYlmzC-.js → 7i4WSxDsu2ApJJ2_.js} +6 -6
- package/cdn/assets/AjMG7Fb9r4Fk7Hsf.js +78 -0
- package/cdn/assets/{CJPemkFUzhcAD_qR.js → B00ixdmb8-O5ijEp.js} +1 -1
- package/{browser/esm/Bv_96nwOEMHN9Sa02.mjs → cdn/assets/B0Wjc3lwtjKMwnvn.js} +27 -29
- package/cdn/assets/B27vTQlxbHhSQJx8.js +24953 -0
- package/cdn/assets/B3NWCYKXucbHhOix.js +93 -0
- package/{browser/esm/D_t53-8k73CNpV-p.mjs → cdn/assets/BAH_cWcQEIBKWnl6.js} +94 -74
- package/cdn/assets/BAdRecWK1maKGOZd.js +142 -0
- package/cdn/assets/BB4MW8sSYEXjPvvf.js +64 -0
- package/cdn/assets/BBjgqNlHm-ssbSAG.js +47 -0
- package/cdn/assets/BI6afPOpgNYkzIWv.js +6609 -0
- package/cdn/assets/{CF8m5SqeMaRkGIYM.js → BIsbcP5RXRU2XPfx.js} +2 -2
- package/cdn/assets/{Dnx3_xXfRlD6ECfZ.js → BMlPFJ1glExv-70Z.js} +5 -5
- package/cdn/assets/{DBL3Qp5jyPrFg7KI.js → BN2d5U1nw7pRtOrn.js} +1 -1
- package/cdn/assets/BNsqqoZY7a4N1wWC.js +905 -0
- package/cdn/assets/BPrHgyAsm2Htx15h.js +67 -0
- package/cdn/assets/{8V-VceXEjpADM8qK.js → BSCja5yvevmKZPBB.js} +1 -1
- package/cdn/assets/{CfvrjQGuf7vXiQCB2.js → BWo1N4YbK_zGU0nu.js} +1 -1
- package/cdn/assets/B_3Musz0q2MSZ5H-.js +799 -0
- package/cdn/assets/Ba8taVvLslFcKS72.js +119 -0
- package/cdn/assets/{CBuvbUg67ah_3BOZ.js → BeQ95CzwR65il0CK.js} +2 -2
- package/cdn/assets/BelX6bvQPsGuo-x3.js +7 -0
- package/cdn/assets/{C8mUyjJ26jsHGl_D.js → Bgbi7BFR3rN5qj51.js} +22 -21
- package/cdn/assets/BgyY4zVPZSXljoCZ.js +14 -0
- package/{browser/esm/C1ZePT2B182vSnxW2.mjs → cdn/assets/BhkeuRcx8RlLCQ5E.js} +1 -1
- package/cdn/assets/BlIZ30huelIxNo6S.js +91 -0
- package/cdn/assets/BlPn_DXaEXOPxMxC.js +540 -0
- package/cdn/assets/BoFx07POTorOb5g-.js +7393 -0
- package/cdn/assets/{-2S675KWulPRlVNb2.js → BpZ7P0CO148rR4zW.js} +23 -22
- package/cdn/assets/BsTFy_iJXJYmaO3Z.js +763 -0
- package/cdn/assets/{j8nXVEYbO2kPuEYQ.js → Bsn-tUx172sEG2kR.js} +59 -47
- package/cdn/assets/{47Yv4X226-93If7L2.js → BtGmrIqU9W1L8zfZ.js} +1 -1
- package/cdn/assets/BuYS_ZjSlcvWZ1JC.js +8035 -0
- package/cdn/assets/BvlfKrfrDhE9Jw4d.js +598 -0
- package/cdn/assets/BwOxnbR61WFJwy0A.js +607 -0
- package/cdn/assets/BxqXOiOyI_XiOmvN.js +156 -0
- package/cdn/assets/{BqTFwWLbXXJ0Fu-X.js → ByUcqyCNfqi5Mm7w.js} +2 -2
- package/{browser/esm/CsufM5aF6VTLKDWM.mjs → cdn/assets/BzbP4jaN13wC9aSi.js} +58 -55
- package/{browser/esm/8f9hCbpXTTYEgG312.mjs → cdn/assets/C-0viTjg1dT2F-sk.js} +2 -2
- package/cdn/assets/C0CeCYdLWLjySEFe.js +123 -0
- package/cdn/assets/{B55nrhIK6gAAu4ZA.js → C32co-XulWTkEKrW.js} +2 -2
- package/{browser/esm/BMRav2VAqEzDSp3r2.mjs → cdn/assets/C3r_9RqlWrEmlXZ1.js} +37 -3
- package/cdn/assets/{Be4QC65cR8N84rTn2.js → C5EKgE9Owsc_juw-.js} +1 -1
- package/cdn/assets/C6INLvBy8kdzFpsX.js +2447 -0
- package/cdn/assets/C7fu6LrSMBlHqwUy.js +46 -0
- package/{browser/esm/DMX-ZlC_ljcf7oUN.mjs → cdn/assets/C9NyIoUahFiyRCxP.js} +2 -2
- package/{browser/esm/BykiUmcpDgSRNQI12.mjs → cdn/assets/CBdNC7BOfc5TewHU.js} +1 -1
- package/cdn/assets/{DZDynaLqNeVaDoiH2.js → CCvBdPu7W2ZF6A9J.js} +3 -3
- package/cdn/assets/{Chq4BwbjH0sbIkJN2.js → CDAYVaQYywqaxg4O.js} +28 -13
- package/cdn/assets/CEYyp6Qrr_IopxpL.js +22597 -0
- package/cdn/assets/CFBgmXap8kmumhoz.js +622 -0
- package/{browser/esm/BDkVAo0CDCTE04ZJ2.mjs → cdn/assets/CFvKDDbrL3wpXnQH.js} +1 -1
- package/cdn/assets/{1guzFZp1LHz_FwfL2.js → CHMqT9DzYKTxPfP6.js} +2 -2
- package/cdn/assets/CILUMtSddGz7WXEv.js +240 -0
- package/cdn/assets/{DnzDlqizzNkbhJP7.js → CIyaijfp6itgRpFM.js} +95 -87
- package/cdn/assets/{DW7JlG-SQEdLYNar2.js → CL6Tgu_rUO6G-fyq.js} +183 -10
- package/cdn/assets/CMVTwWHsRgyfSEDM.js +300 -0
- package/cdn/assets/{CEN8dYSpN2oew8HH2.js → CMxbiQ5J79M3n1tk.js} +604 -405
- package/cdn/assets/COMOqucXq7X1vi0P.js +230 -0
- package/cdn/assets/{vcRSnmAqjwKglEkY2.js → CQOyeq_-pg3CM-uA.js} +6 -7
- package/cdn/assets/{c6VvwMHfXubjjtyj.js → CRXSrbGNABtzf532.js} +141 -126
- package/{browser/esm/hFSDx-LnUOObv-6h2.mjs → cdn/assets/CSEMxasVyGCekxKf.js} +6 -7
- package/cdn/assets/CSIZpJClc66_20kP.js +849 -0
- package/cdn/assets/CTI-mCJbJzitJZwj.js +25 -0
- package/{browser/esm/CdMv3f8Gyxh8q2RR2.mjs → cdn/assets/CTdFZ_I-41Vr6Dy4.js} +1 -1
- package/cdn/assets/CTvPIYWTcjwlJeEA.js +237 -0
- package/cdn/assets/CU5cKipVT1X8Xz7F.js +156 -0
- package/cdn/assets/CVcCUfSRsiZ1-6hs.js +119 -0
- package/cdn/assets/CWJzHmEgahdOfNjH.js +527 -0
- package/cdn/assets/CZOJogyZqMfUxcXj.js +1141 -0
- package/{browser/esm/D4VqLbEWag8lTWzC2.mjs → cdn/assets/CakrxSS_RXtKmcUX.js} +123 -94
- package/{browser/esm/Bl6bX86tSq8hfyb2.mjs → cdn/assets/CbTN0q6XnYGJqyEp.js} +2215 -2027
- package/cdn/assets/{gspQcUnmlRIwG609.js → Cfg4Dtndwurxv9LM.js} +8 -8
- package/cdn/assets/{BhDLR-jtbOOG-tl12.js → ChAKLV5zrGAHAof2.js} +28 -27
- package/cdn/assets/{CpnA5TZRkPDt4HnM2.js → CsrTRThObSryov1b.js} +182 -132
- package/cdn/assets/Cv5PLuhEmh5IDHjb.js +75 -0
- package/cdn/assets/Cw-4uoMuq_m7ziA3.js +36 -0
- package/cdn/assets/Cw7AJWd0S2sjRmr6.js +6309 -0
- package/cdn/assets/CwqRA5h1u92Cyit-.js +7 -0
- package/cdn/assets/Cy00y9b9j17Txyv1.js +466 -0
- package/cdn/assets/{CT3G9YRPVfKtHWwf2.js → D-bNmX0QsA8SuT0m.js} +32 -31
- package/{browser/esm/Dg5wjQp0fArKXlM3.mjs → cdn/assets/D-yz3V2UC54rwctD.js} +16 -11
- package/cdn/assets/D32D_biNXRCZ24vG.js +87 -0
- package/cdn/assets/D8DghdqjOtBzO2Wx.js +35 -0
- package/cdn/assets/DAE3Kv0Vs0VuBecT.js +32 -0
- package/cdn/assets/DCnWyVXikb_8Dat3.js +61 -0
- package/cdn/assets/DHH_uKVzQ_kRYO2N.js +57 -0
- package/cdn/assets/DHugYwX4_ZyqGn-C.js +1947 -0
- package/cdn/assets/DJqj66SnUcx0QmSN.js +15 -0
- package/cdn/assets/{R5bs6kCQSZmsCXz-2.js → DNaPo7BQu6hr1fWq.js} +1 -1
- package/cdn/assets/DOHh3pUXxMM09UY5.js +3604 -0
- package/cdn/assets/DONxZZT2Iwu7psS5.js +27 -0
- package/cdn/assets/{BCkXtOM3yKocv7L-.js → DQEjvIGMgEkiaP6J.js} +1 -1
- package/{browser/esm/CAPgMrAKg07EREFD.mjs → cdn/assets/DQIRFXG4MveFkK3I.js} +1 -1
- package/cdn/assets/DQjxp9lDP9DzP8ah.js +357 -0
- package/cdn/assets/{DrUEYcXg6N2D2s1Z.js → DRm1R4uVOkaMfXNI.js} +51 -11
- package/cdn/assets/DSXJHEORGmMQX_Mb.js +8391 -0
- package/cdn/assets/DSviq1TNoiIAGW7W.js +32 -0
- package/{browser/esm/Clfp7SznkOrJoQvL.mjs → cdn/assets/DVpi1vC8ixXvUQG_.js} +3 -3
- package/cdn/assets/{BOl4FzJRD7MplCU7.js → DWgp4t9N9u0eWthH.js} +1 -1
- package/{browser/esm/B5ZqqASTcBEV5L9K2.mjs → cdn/assets/DXo8mR6t5HGsmTcu.js} +1 -1
- package/cdn/assets/DYvBgX17ZerZSHEJ.js +300 -0
- package/cdn/assets/DZRm4H75lnEtOG8e.js +260 -0
- package/cdn/assets/D_pMOq6FdH4RSBLc.js +3364 -0
- package/{browser/esm/EwzqnZl1lTr56hH-2.mjs → cdn/assets/Dc2ZwgbIEgYWwAsF.js} +1 -1
- package/cdn/assets/DckmFyHxGX4Y1gOq.js +70 -0
- package/{browser/esm/oYdWyqsKo9ejAdVm.mjs → cdn/assets/De2z8LdHaWRFiR5T.js} +179 -202
- package/{browser/esm/DQ4o4dG7gWbL1X8F2.mjs → cdn/assets/DeUXRggj8Oz9ru_i.js} +2 -2
- package/{browser/esm/DRc_Wi5c7WdKHTVN2.mjs → cdn/assets/DfESVLC8CAi8m8A7.js} +6 -6
- package/cdn/assets/DicTo_3G-KZyWDiE.js +1084 -0
- package/cdn/assets/{D3G3tI3DVCUF3Gdk2.js → DjdkGy-EI1kSo226.js} +7 -5
- package/cdn/assets/DjtXfgbmXjUAoG0y.js +58 -0
- package/cdn/assets/DlpgIJxNq2V4gdDq.js +74 -0
- package/cdn/assets/{DaBczM5xU9ev5_or.js → Dp-GJXOMz_b8qAxD.js} +2 -2
- package/cdn/assets/DqBj-9o7UdXu4qhb.js +33 -0
- package/cdn/assets/{DZbR5R1fNikjgqYb.js → DrI_S0A9TQvriTua.js} +1 -1
- package/cdn/assets/DuAbY54w5gJpQgss.js +84250 -0
- package/cdn/assets/{D6SKy2BtcWkhfiA0.js → Dv8aQFTTaQBJKDDk.js} +2 -5
- package/cdn/assets/DviEoeWW0EvDg1hr.js +149 -0
- package/cdn/assets/{Cbw0JeJURvQyxIoa.js → DxcRLd7wmBGDgJsA.js} +1 -1
- package/cdn/assets/DxisV9_27l_WU-nk.js +21 -0
- package/cdn/assets/{Dc0BDcQUGy_WIVFa.js → Dy44qJVkwNseMG-3.js} +1 -1
- package/cdn/assets/ENtt4kmaU9mJfVEp.js +236 -0
- package/{browser/esm/COA_SZY2x8q6t4BD.mjs → cdn/assets/FO1Jezau486fH4kN.js} +7 -6
- package/cdn/assets/FjNOhkR7-JAIaRP6.js +19 -0
- package/cdn/assets/{DbEGszSW_J_k96KJ.js → G5z0uVlyF6CLw_PA.js} +179 -202
- package/cdn/assets/H-JnJQMcZQbpvjdb.js +2706 -0
- package/cdn/assets/J3hutJxqQiHENpIe.js +392 -0
- package/cdn/assets/J9i3r1fU0H10b2hX.js +1001 -0
- package/cdn/assets/{Gy0CHZTvn4hY-rkx.js → PtGiIWFBYP-ujLmf.js} +1 -1
- package/cdn/assets/PzWqv-oXxEuzKdaT.js +484 -0
- package/cdn/assets/QJ4AkDD269D1MzmI.js +89 -0
- package/cdn/assets/{qG5zdZZAe6mQIJo3.js → RfHd1JATBlcsfLPv.js} +5 -5
- package/{browser/esm/CtXoSHbCUKMY-tSJ.mjs → cdn/assets/SNze-adFJwKuGSQW.js} +48 -2
- package/cdn/assets/UTZcodQydbuMfCOS.js +171 -0
- package/{browser/esm/DzDwSOBdJh_lx_NM.mjs → cdn/assets/VCiu_neIjCTg2NUa.js} +998 -1006
- package/cdn/assets/{BHmYoIIbNW3GdcqV.js → VwGokBaawZfZiV2X.js} +1 -1
- package/cdn/assets/W1d6GQyySAHrtjEu.js +3563 -0
- package/cdn/assets/ZSYS1J3uR7UQuHwZ.js +217 -0
- package/cdn/assets/{CR3jgkduTLczbMjH.js → ZxsFYopF0_WWqw4Q.js} +1 -1
- package/{browser/esm/BHBJtVTiQByD_y9j.mjs → cdn/assets/_t0Mx-mUFVtmVNkU.js} +2 -2
- package/cdn/assets/aHTKr1ijZ6bRi3Zg.js +33 -0
- package/cdn/assets/anQDUZhHMDPi1eha.js +812 -0
- package/cdn/assets/{tVOVNvOs6ro8FXqa2.js → dn69mDhY7Xcc91kF.js} +20 -19
- package/cdn/assets/fm3mUdTDo-STB36M.js +4749 -0
- package/cdn/assets/gpQ4FdJMbIScKnS_.js +400 -0
- package/cdn/assets/{EjOJX5m8OEL-IjPB.js → hg8WYI0Yy4WPPPoP.js} +28 -27
- package/{browser/esm/DQ-0yyFAwoWtxmhV2.mjs → cdn/assets/i0P63Wd0RRlgJotb.js} +1 -1
- package/cdn/assets/lWY3TbG2NDscy9He.js +72 -0
- package/{browser/esm/BCZjYGV8AqIZghBH.mjs → cdn/assets/lqknEt3DTma5Juxs.js} +69 -4
- package/cdn/assets/mK8HcIZyXkOTvL6E.js +2453 -0
- package/cdn/assets/{BPv6Pw1hW-sV5Fya.js → pc49xtHdprXZLW2X.js} +1 -1
- package/cdn/assets/px-aQ8dMjiWag_pV.js +167 -0
- package/cdn/assets/qYca4mdySLkACfo1.js +37 -0
- package/{browser/esm/BqwvP0318zI2izeL2.mjs → cdn/assets/w5IQWbJETgHhqMsY.js} +33 -31
- package/cdn/assets/wM7DzeOpoEGBVDBe.js +441 -0
- package/cdn/assets/{CG5v2hAwGR5Ptufn2.js → x6GcENwqoUVbd60j.js} +1 -1
- package/cdn/assets/xlXDq-qoj7eOE6_T.js +5153 -0
- package/{browser/esm/CGqvy5LwQ4z9J2oD2.mjs → cdn/assets/ycmpAs4kQfeh78Pa.js} +1 -1
- package/cdn/index.js +2 -2
- package/package.json +13 -14
- package/browser/cjs/1XrWGMP3GmsQOMIX2.cjs +0 -1
- package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +0 -7
- package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
- package/browser/cjs/4nReftSsKWmnRdtf2.cjs +0 -1
- package/browser/cjs/507hQYooKKjnRzsZ2.cjs +0 -1
- package/browser/cjs/B19QM3SGmPKKwD_o.cjs +0 -1
- package/browser/cjs/B4JJfKSI4ppwU8552.cjs +0 -1
- package/browser/cjs/B5YBx0GqLor3i0O1.cjs +0 -1
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/B9EI7wviSkHS9ZkH.cjs +0 -1
- package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
- package/browser/cjs/BC2gCQkR1iykfAuC.cjs +0 -1
- package/browser/cjs/BEJFcqVMDMKOvs11.cjs +0 -1
- package/browser/cjs/BEVqcFGFU6Ri9y8T.cjs +0 -5
- package/browser/cjs/BEzaum_kgG4yAOx0.cjs +0 -1
- package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +0 -1
- package/browser/cjs/BIQZDBQfv3Qm5iC8.cjs +0 -4
- package/browser/cjs/BK0SCfN_VZYqBxoQ2.cjs +0 -1
- package/browser/cjs/BSCgCfORdZz1Ii5S.cjs +0 -2
- package/browser/cjs/BWDfauDHqB6U_2ka2.cjs +0 -1
- package/browser/cjs/BZr-IqNS1skh1hr6.cjs +0 -21
- package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
- package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +0 -3
- package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +0 -1
- package/browser/cjs/BnccBYHCCq9TGFx4.cjs +0 -8
- package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
- package/browser/cjs/BvG8N7G_8CXIAlT-.cjs +0 -1
- package/browser/cjs/BwLx9ix5Sq7suAYP2.cjs +0 -1
- package/browser/cjs/BziOCn_XEGT4ynN5.cjs +0 -1
- package/browser/cjs/C-HOJozu5NgCil1q.cjs +0 -1
- package/browser/cjs/C-bW8lKUTFFUVap4.cjs +0 -1
- package/browser/cjs/C2oTW2DjZypuqq7x.cjs +0 -1
- package/browser/cjs/C2uDl8VIJqh58YF_.cjs +0 -1
- package/browser/cjs/C5rQELB0TUeXY6VM.cjs +0 -1
- package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +0 -33
- package/browser/cjs/C9C-pr-T_ThweQX92.cjs +0 -1
- package/browser/cjs/CHFOXPbNUaeZbrXn.cjs +0 -1
- package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
- package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
- package/browser/cjs/CPcBvw4ZPwHVTUZF.cjs +0 -1
- package/browser/cjs/CPgCih_KEqnUZ9Rv.cjs +0 -3
- package/browser/cjs/CRx1WvmgBjT8WVyB2.cjs +0 -1
- package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +0 -5
- package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
- package/browser/cjs/CW-b31_-r-_raT8Y2.cjs +0 -1
- package/browser/cjs/CXlzsh_WHCOsErJ12.cjs +0 -1
- package/browser/cjs/C_7w8EJZpHw8ueuq.cjs +0 -1
- package/browser/cjs/C_IEgjM-hSJCv6Gm.cjs +0 -1
- package/browser/cjs/CbLXP9WY38wTcGn5.cjs +0 -10
- package/browser/cjs/CcneNtiqtKppCa-p.cjs +0 -57
- package/browser/cjs/CeF0DZ-k4DB8M47I.cjs +0 -1
- package/browser/cjs/Ci8Uu7_b4lwwRLAD2.cjs +0 -1
- package/browser/cjs/Clu7XiAsCB48GDXN2.cjs +0 -1
- package/browser/cjs/Cm21F18ga8TluA9h.cjs +0 -1
- package/browser/cjs/CnZfa45XxA-9Jhmp.cjs +0 -1
- package/browser/cjs/CojEXZgX08waZOoq.cjs +0 -1
- package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
- package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +0 -88
- package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
- package/browser/cjs/Cty5pi0fwToP1GWe.cjs +0 -7
- package/browser/cjs/CvV18ZJgssoHMkdf2.cjs +0 -2
- package/browser/cjs/Cy-4IMt-AbR-ifP3.cjs +0 -126
- package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +0 -7
- package/browser/cjs/CzgwTfy2072Dmt5u.cjs +0 -1
- package/browser/cjs/D19RglhKiroWfpQn2.cjs +0 -1
- package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
- package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
- package/browser/cjs/DDnGLOLTqLFsdUDS2.cjs +0 -1
- package/browser/cjs/DEOu_cHJ1FfTA9R_2.cjs +0 -1
- package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +0 -1
- package/browser/cjs/DG-AY_xO8RKHtEBE.cjs +0 -2
- package/browser/cjs/DG2kqsWRUtVugjay2.cjs +0 -1
- package/browser/cjs/DH3WXPfGHwWJW0nH.cjs +0 -1
- package/browser/cjs/DIbdDzNf_3S2RYZN.cjs +0 -1
- package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
- package/browser/cjs/DM7-R_ltoLbA9jde2.cjs +0 -1
- package/browser/cjs/DNCC-QNp2I7saV-I.cjs +0 -1
- package/browser/cjs/DNKyaSruDogoBd2H2.cjs +0 -1
- package/browser/cjs/DNy-UU3NKNqQQngF.cjs +0 -1
- package/browser/cjs/DPjEO7dwhCFd8DHR2.cjs +0 -2
- package/browser/cjs/DYqvGm5rx1DB53p7.cjs +0 -1
- package/browser/cjs/DZSvmqU8nRas1uz62.cjs +0 -1
- package/browser/cjs/DfMJOaJ0GcUiSn4Q.cjs +0 -1
- package/browser/cjs/DiZDRPIgbO3sQ8Vb.cjs +0 -1
- package/browser/cjs/DsFZgtSQpC75d1M02.cjs +0 -1
- package/browser/cjs/DsIHLUKUrSrYhFHl.cjs +0 -1
- package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
- package/browser/cjs/DvSvfeo9V0Abfd3q2.cjs +0 -1
- package/browser/cjs/Dx79LP1-YCQg8B87.cjs +0 -1
- package/browser/cjs/DxQkFYAFNZubVdn22.cjs +0 -1
- package/browser/cjs/E-IqDztfMb_xdszH.cjs +0 -1
- package/browser/cjs/EeOVMRq7TuptFKTc2.cjs +0 -1
- package/browser/cjs/ElcoSB--cCpS6i7R2.cjs +0 -1
- package/browser/cjs/JfM6P_qoQQTWakZf.cjs +0 -1
- package/browser/cjs/KNCocKN9uPR0tvUS.cjs +0 -1
- package/browser/cjs/Kr8f1inOTt-MICaP2.cjs +0 -1
- package/browser/cjs/Kvn916ebqGc4t6hv2.cjs +0 -1
- package/browser/cjs/NcNz8RfT5V889CMT.cjs +0 -10
- package/browser/cjs/PM3PrEWG3WHKxaDx.cjs +0 -1
- package/browser/cjs/YG320hBA20Dl3HoU2.cjs +0 -1
- package/browser/cjs/Ytzw6iUYx5f19wfK.cjs +0 -9
- package/browser/cjs/_H5j4dU7HOBYTawU.cjs +0 -1
- package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +0 -1
- package/browser/cjs/aONv0Ys3C8xmnaR82.cjs +0 -1
- package/browser/cjs/aYuNpndpwcZG5eik2.cjs +0 -20
- package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +0 -1
- package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +0 -1
- package/browser/cjs/bM25C5avKgBAJVfk2.cjs +0 -1
- package/browser/cjs/fqTQ_p3ehzUvc1tF2.cjs +0 -1
- package/browser/cjs/h3dw1jAp2J5Pu4p32.cjs +0 -1
- package/browser/cjs/hzUo76TXMOBqsI3U2.cjs +0 -1
- package/browser/cjs/i2VboqjlOcozI9MQ.cjs +0 -12
- package/browser/cjs/index.cjs +0 -79
- package/browser/cjs/jev6VGWTdgEgm4Yk2.cjs +0 -1
- package/browser/cjs/lEQC21-Sk4lwHy2r2.cjs +0 -1
- package/browser/cjs/ppSJKdLn646BZOzg.cjs +0 -1
- package/browser/cjs/xBcvszV6x7ys-m532.cjs +0 -1
- package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +0 -1
- package/browser/cjs/z_rZE1OHFPpdGBh42.cjs +0 -1
- package/browser/esm/-vgNEEXiEad4bltZ.mjs +0 -28782
- package/browser/esm/3y_bCend8tkaewDG2.mjs +0 -106
- package/browser/esm/At60x9FEPePwPP_J.mjs +0 -51151
- package/browser/esm/B1NoGosH2YQh01g7.mjs +0 -105
- package/browser/esm/B4h6iO7hQ9lCR7kj.mjs +0 -11273
- package/browser/esm/BBtOlJMVlsWorNJH.mjs +0 -824
- package/browser/esm/BQDXkeSabbxB5DUB2.mjs +0 -47
- package/browser/esm/BUCKq_2lHPd1ndvw.mjs +0 -149
- package/browser/esm/BVjXdv_wkL1x_8ZJ2.mjs +0 -1149
- package/browser/esm/BX4f6i2WMBMKFVCq.mjs +0 -99
- package/browser/esm/BZsx0QHg1RZlM9ZN.mjs +0 -15
- package/browser/esm/BhxX7CZWSOlV2Dsz.mjs +0 -224
- package/browser/esm/BhzLZRz2N8RxjQ_U.mjs +0 -34
- package/browser/esm/BjTf3XA9Swj0ngpH.mjs +0 -7813
- package/browser/esm/BkSb_vyWe-AhyEDa.mjs +0 -4423
- package/browser/esm/Bp9qFBIcpIGXvMgo.mjs +0 -134
- package/browser/esm/C0rS1uBqfsj-gPR8.mjs +0 -152
- package/browser/esm/C6CK_4GD9IpxKglV2.mjs +0 -6713
- package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +0 -87
- package/browser/esm/CGyydD3tRb0ik50l2.mjs +0 -20
- package/browser/esm/CPUlpDM6aAzZzCat2.mjs +0 -471
- package/browser/esm/CU1d8OvDv5TU6fSd.mjs +0 -2211
- package/browser/esm/CY1zykikO58_ADk8.mjs +0 -3188
- package/browser/esm/CZWIS7FuqNjbheSw.mjs +0 -235
- package/browser/esm/Cb-FUOYcyRSkHG6u2.mjs +0 -238
- package/browser/esm/Cc5IufffX4N-8QpE.mjs +0 -6104
- package/browser/esm/Cd8HXAJlflkkTXxc.mjs +0 -53
- package/browser/esm/CfuhUkrvOq11d9FR.mjs +0 -44
- package/browser/esm/Ckl3FLCOeqw7yhkP2.mjs +0 -82
- package/browser/esm/CpjX81WsWJbXMUoT.mjs +0 -3655
- package/browser/esm/D9-wpGVbTS9rRpxx.mjs +0 -24
- package/browser/esm/DDOO4tcrO4OfMUDe.mjs +0 -25
- package/browser/esm/DDUYQ8FPeh1TJU24.mjs +0 -538
- package/browser/esm/DFdU1DsC1lXOrejZ.mjs +0 -8260
- package/browser/esm/DMLwXmjo28k_iNEU.mjs +0 -4740
- package/browser/esm/DVJd6McdAG5udItH.mjs +0 -27
- package/browser/esm/D_zNx76HGunFi7xJ.mjs +0 -509
- package/browser/esm/DfRGH6mEtIVDWEYN2.mjs +0 -304
- package/browser/esm/DnuaqN0xfgqzl8qG.mjs +0 -2687
- package/browser/esm/fJ1McMt7xzRA_lUX.mjs +0 -383
- package/browser/esm/nguMxPB9LKexKBRX.mjs +0 -219
- package/browser/esm/qzhFT2j-mpQEQnKs.mjs +0 -16386
- package/cdn/assets/2CuCH0wi9XPgVzE42.js +0 -44
- package/cdn/assets/2UHIeioUPXrwtZy-2.js +0 -83
- package/cdn/assets/BAhvL7M7ZcgZ8eDc2.js +0 -48
- package/cdn/assets/BJEpPEyFWtLzMIq-2.js +0 -3655
- package/cdn/assets/BKEzd89UphJ8q1pp2.js +0 -2211
- package/cdn/assets/BM7OqAUEUk-up7_82.js +0 -134
- package/cdn/assets/BNuoKAzs4zkxSocG2.js +0 -44
- package/cdn/assets/BNybEGR813e3aNIv.js +0 -8263
- package/cdn/assets/BU6uQhQhpaLElTT82.js +0 -225
- package/cdn/assets/BVgTMDEoPgsWFmku.js +0 -510
- package/cdn/assets/BVjXdv_wkL1x_8ZJ2.js +0 -1149
- package/cdn/assets/BWlMK76Aj2d4ygsH.js +0 -538
- package/cdn/assets/BZsx0QHg1RZlM9ZN2.js +0 -15
- package/cdn/assets/BixsQGDDf3Iv_PtW2.js +0 -4740
- package/cdn/assets/Bl6C6xWT8E6b7OwJ2.js +0 -239
- package/cdn/assets/BzUU8y1IFjREzgog2.js +0 -107
- package/cdn/assets/CGyydD3tRb0ik50l.js +0 -20
- package/cdn/assets/CH0of3GZTzHviuQV.js +0 -24
- package/cdn/assets/CH0of3GZTzHviuQV2.js +0 -24
- package/cdn/assets/CHttngK66Ido5dWW.js +0 -106
- package/cdn/assets/Ce5A_D4YBgi_s2KF.js +0 -176
- package/cdn/assets/CpYlf4dXa_V2v-iS2.js +0 -3188
- package/cdn/assets/Crkvq5j5KIa6eTLI2.js +0 -51151
- package/cdn/assets/Cv-KXN9kl0UeMezQ.js +0 -824
- package/cdn/assets/CvtkpvGzCHhNuwTm.js +0 -16386
- package/cdn/assets/D-fJXasEYyfRUcj2.js +0 -6104
- package/cdn/assets/D1MA2ed2cLMt7hV9.js +0 -236
- package/cdn/assets/D9gETGi23d14kT7u2.js +0 -99
- package/cdn/assets/D9joTG0Z2zdWHAEa2.js +0 -4423
- package/cdn/assets/DC9obE_EVmxtvXCf.js +0 -11275
- package/cdn/assets/DCnA2-zB7W_QB-tD2.js +0 -2199
- package/cdn/assets/DDNivpFWzQ3AIJia.js +0 -2687
- package/cdn/assets/DDOO4tcrO4OfMUDe.js +0 -25
- package/cdn/assets/DEUY_zuVwmptMX4l.js +0 -150
- package/cdn/assets/DIQf1pX-j-dWQu_e.js +0 -472
- package/cdn/assets/DJwQ9abZkyFO9Doy.js +0 -7404
- package/cdn/assets/DTCtbG90ip7Z7LaG.js +0 -220
- package/cdn/assets/DVS_5oDniuAFH3vT2.js +0 -6715
- package/cdn/assets/D_HeH7AJqWoxehn52.js +0 -53
- package/cdn/assets/DfRGH6mEtIVDWEYN.js +0 -304
- package/cdn/assets/DvItgGbf8IOWPyxd.js +0 -28784
- package/cdn/assets/DvlpP6sUZ9Qzl9s22.js +0 -616
- package/cdn/assets/WLUhtyUNK5QJ7Pff.js +0 -34
- package/cdn/assets/c7aIqKLOO4pvUsV12.js +0 -220
- package/cdn/assets/mtI43hWjdp4E3Z_-.js +0 -152
- package/cdn/assets/nmR_PgTW7GrlbHHZ.js +0 -27
- package/cdn/assets/vTCuFafvRlSaT9wy.js +0 -87
|
@@ -1,2199 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.1
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { r as e } from "./D9-wpGVbTS9rRpxx.js";
|
|
8
|
-
import { t } from "./DnzDlqizzNkbhJP7.js";
|
|
9
|
-
import { t as n } from "./j8nXVEYbO2kPuEYQ.js";
|
|
10
|
-
import { t as r } from "./CBuvbUg67ah_3BOZ.js";
|
|
11
|
-
import { t as i } from "./BNybEGR813e3aNIv.js";
|
|
12
|
-
import { t as a } from "./D3G3tI3DVCUF3Gdk2.js";
|
|
13
|
-
var o = e(t(), 1), s = r(), c = e(n(), 1), l = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
|
|
14
|
-
function u(e) {
|
|
15
|
-
let t = Object.prototype.toString.call(e);
|
|
16
|
-
return t === "[object Window]" || t === "[object global]";
|
|
17
|
-
}
|
|
18
|
-
function d(e) {
|
|
19
|
-
return "nodeType" in e;
|
|
20
|
-
}
|
|
21
|
-
function f(e) {
|
|
22
|
-
var t;
|
|
23
|
-
return e ? u(e) ? e : d(e) && (t = e.ownerDocument?.defaultView) != null ? t : window : window;
|
|
24
|
-
}
|
|
25
|
-
function p(e) {
|
|
26
|
-
let { Document: t } = f(e);
|
|
27
|
-
return e instanceof t;
|
|
28
|
-
}
|
|
29
|
-
function m(e) {
|
|
30
|
-
return !u(e) && e instanceof f(e).HTMLElement;
|
|
31
|
-
}
|
|
32
|
-
function h(e) {
|
|
33
|
-
return e instanceof f(e).SVGElement;
|
|
34
|
-
}
|
|
35
|
-
function g(e) {
|
|
36
|
-
return e ? u(e) ? e.document : d(e) ? p(e) ? e : m(e) || h(e) ? e.ownerDocument : document : document : document;
|
|
37
|
-
}
|
|
38
|
-
var _ = l ? o.useLayoutEffect : o.useEffect;
|
|
39
|
-
function v(e) {
|
|
40
|
-
let t = (0, o.useRef)(e);
|
|
41
|
-
return _(() => {
|
|
42
|
-
t.current = e;
|
|
43
|
-
}), (0, o.useCallback)(function() {
|
|
44
|
-
var e = [...arguments];
|
|
45
|
-
return t.current == null ? void 0 : t.current(...e);
|
|
46
|
-
}, []);
|
|
47
|
-
}
|
|
48
|
-
function y(e, t) {
|
|
49
|
-
t === void 0 && (t = [e]);
|
|
50
|
-
let n = (0, o.useRef)(e);
|
|
51
|
-
return _(() => {
|
|
52
|
-
n.current !== e && (n.current = e);
|
|
53
|
-
}, t), n;
|
|
54
|
-
}
|
|
55
|
-
function b(e, t) {
|
|
56
|
-
let n = (0, o.useRef)();
|
|
57
|
-
return (0, o.useMemo)(() => {
|
|
58
|
-
let t = e(n.current);
|
|
59
|
-
return n.current = t, t;
|
|
60
|
-
}, [...t]);
|
|
61
|
-
}
|
|
62
|
-
function x(e) {
|
|
63
|
-
let t = v(e), n = (0, o.useRef)(null);
|
|
64
|
-
return [n, (0, o.useCallback)((e) => {
|
|
65
|
-
e !== n.current && t?.(e, n.current), n.current = e;
|
|
66
|
-
}, [])];
|
|
67
|
-
}
|
|
68
|
-
function S(e) {
|
|
69
|
-
let t = (0, o.useRef)();
|
|
70
|
-
return (0, o.useEffect)(() => {
|
|
71
|
-
t.current = e;
|
|
72
|
-
}, [e]), t.current;
|
|
73
|
-
}
|
|
74
|
-
var C = {};
|
|
75
|
-
function ee(e, t) {
|
|
76
|
-
return (0, o.useMemo)(() => {
|
|
77
|
-
if (t) return t;
|
|
78
|
-
let n = C[e] == null ? 0 : C[e] + 1;
|
|
79
|
-
return C[e] = n, e + "-" + n;
|
|
80
|
-
}, [e, t]);
|
|
81
|
-
}
|
|
82
|
-
function w(e) {
|
|
83
|
-
return function(t) {
|
|
84
|
-
return [...arguments].slice(1).reduce((t, n) => {
|
|
85
|
-
let r = Object.entries(n);
|
|
86
|
-
for (let [n, i] of r) {
|
|
87
|
-
let r = t[n];
|
|
88
|
-
r != null && (t[n] = r + e * i);
|
|
89
|
-
}
|
|
90
|
-
return t;
|
|
91
|
-
}, { ...t });
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
var T = w(1), E = w(-1);
|
|
95
|
-
function D(e) {
|
|
96
|
-
if (!e) return !1;
|
|
97
|
-
let { KeyboardEvent: t } = f(e.target);
|
|
98
|
-
return t && e instanceof t;
|
|
99
|
-
}
|
|
100
|
-
function te(e) {
|
|
101
|
-
if (function(e) {
|
|
102
|
-
if (!e) return !1;
|
|
103
|
-
let { TouchEvent: t } = f(e.target);
|
|
104
|
-
return t && e instanceof t;
|
|
105
|
-
}(e)) {
|
|
106
|
-
if (e.touches && e.touches.length) {
|
|
107
|
-
let { clientX: t, clientY: n } = e.touches[0];
|
|
108
|
-
return {
|
|
109
|
-
x: t,
|
|
110
|
-
y: n
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
if (e.changedTouches && e.changedTouches.length) {
|
|
114
|
-
let { clientX: t, clientY: n } = e.changedTouches[0];
|
|
115
|
-
return {
|
|
116
|
-
x: t,
|
|
117
|
-
y: n
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return function(e) {
|
|
122
|
-
return "clientX" in e && "clientY" in e;
|
|
123
|
-
}(e) ? {
|
|
124
|
-
x: e.clientX,
|
|
125
|
-
y: e.clientY
|
|
126
|
-
} : null;
|
|
127
|
-
}
|
|
128
|
-
var O = Object.freeze({
|
|
129
|
-
Translate: { toString(e) {
|
|
130
|
-
if (!e) return;
|
|
131
|
-
let { x: t, y: n } = e;
|
|
132
|
-
return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
|
|
133
|
-
} },
|
|
134
|
-
Scale: { toString(e) {
|
|
135
|
-
if (!e) return;
|
|
136
|
-
let { scaleX: t, scaleY: n } = e;
|
|
137
|
-
return "scaleX(" + t + ") scaleY(" + n + ")";
|
|
138
|
-
} },
|
|
139
|
-
Transform: { toString(e) {
|
|
140
|
-
if (e) return [O.Translate.toString(e), O.Scale.toString(e)].join(" ");
|
|
141
|
-
} },
|
|
142
|
-
Transition: { toString(e) {
|
|
143
|
-
let { property: t, duration: n, easing: r } = e;
|
|
144
|
-
return t + " " + n + "ms " + r;
|
|
145
|
-
} }
|
|
146
|
-
}), ne = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
147
|
-
function re(e) {
|
|
148
|
-
return e.matches(ne) ? e : e.querySelector(ne);
|
|
149
|
-
}
|
|
150
|
-
var k = { display: "none" };
|
|
151
|
-
function A(e) {
|
|
152
|
-
let { id: t, value: n } = e;
|
|
153
|
-
return o.createElement("div", {
|
|
154
|
-
id: t,
|
|
155
|
-
style: k
|
|
156
|
-
}, n);
|
|
157
|
-
}
|
|
158
|
-
function ie(e) {
|
|
159
|
-
let { id: t, announcement: n, ariaLiveType: r = "assertive" } = e;
|
|
160
|
-
return o.createElement("div", {
|
|
161
|
-
id: t,
|
|
162
|
-
style: {
|
|
163
|
-
position: "fixed",
|
|
164
|
-
top: 0,
|
|
165
|
-
left: 0,
|
|
166
|
-
width: 1,
|
|
167
|
-
height: 1,
|
|
168
|
-
margin: -1,
|
|
169
|
-
border: 0,
|
|
170
|
-
padding: 0,
|
|
171
|
-
overflow: "hidden",
|
|
172
|
-
clip: "rect(0 0 0 0)",
|
|
173
|
-
clipPath: "inset(100%)",
|
|
174
|
-
whiteSpace: "nowrap"
|
|
175
|
-
},
|
|
176
|
-
role: "status",
|
|
177
|
-
"aria-live": r,
|
|
178
|
-
"aria-atomic": !0
|
|
179
|
-
}, n);
|
|
180
|
-
}
|
|
181
|
-
var j, M, ae = (0, o.createContext)(null), N = { draggable: "\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n " }, oe = {
|
|
182
|
-
onDragStart(e) {
|
|
183
|
-
let { active: t } = e;
|
|
184
|
-
return "Picked up draggable item " + t.id + ".";
|
|
185
|
-
},
|
|
186
|
-
onDragOver(e) {
|
|
187
|
-
let { active: t, over: n } = e;
|
|
188
|
-
return n ? "Draggable item " + t.id + " was moved over droppable area " + n.id + "." : "Draggable item " + t.id + " is no longer over a droppable area.";
|
|
189
|
-
},
|
|
190
|
-
onDragEnd(e) {
|
|
191
|
-
let { active: t, over: n } = e;
|
|
192
|
-
return n ? "Draggable item " + t.id + " was dropped over droppable area " + n.id : "Draggable item " + t.id + " was dropped.";
|
|
193
|
-
},
|
|
194
|
-
onDragCancel(e) {
|
|
195
|
-
let { active: t } = e;
|
|
196
|
-
return "Dragging was cancelled. Draggable item " + t.id + " was dropped.";
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
function se(e) {
|
|
200
|
-
let { announcements: t = oe, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = N } = e, { announce: a, announcement: s } = function() {
|
|
201
|
-
let [e, t] = (0, o.useState)("");
|
|
202
|
-
return {
|
|
203
|
-
announce: (0, o.useCallback)((e) => {
|
|
204
|
-
e != null && t(e);
|
|
205
|
-
}, []),
|
|
206
|
-
announcement: e
|
|
207
|
-
};
|
|
208
|
-
}(), l = ee("DndLiveRegion"), [u, d] = (0, o.useState)(!1);
|
|
209
|
-
if ((0, o.useEffect)(() => {
|
|
210
|
-
d(!0);
|
|
211
|
-
}, []), function(e) {
|
|
212
|
-
let t = (0, o.useContext)(ae);
|
|
213
|
-
(0, o.useEffect)(() => {
|
|
214
|
-
if (!t) throw Error("useDndMonitor must be used within a children of <DndContext>");
|
|
215
|
-
return t(e);
|
|
216
|
-
}, [e, t]);
|
|
217
|
-
}((0, o.useMemo)(() => ({
|
|
218
|
-
onDragStart(e) {
|
|
219
|
-
let { active: n } = e;
|
|
220
|
-
a(t.onDragStart({ active: n }));
|
|
221
|
-
},
|
|
222
|
-
onDragMove(e) {
|
|
223
|
-
let { active: n, over: r } = e;
|
|
224
|
-
t.onDragMove && a(t.onDragMove({
|
|
225
|
-
active: n,
|
|
226
|
-
over: r
|
|
227
|
-
}));
|
|
228
|
-
},
|
|
229
|
-
onDragOver(e) {
|
|
230
|
-
let { active: n, over: r } = e;
|
|
231
|
-
a(t.onDragOver({
|
|
232
|
-
active: n,
|
|
233
|
-
over: r
|
|
234
|
-
}));
|
|
235
|
-
},
|
|
236
|
-
onDragEnd(e) {
|
|
237
|
-
let { active: n, over: r } = e;
|
|
238
|
-
a(t.onDragEnd({
|
|
239
|
-
active: n,
|
|
240
|
-
over: r
|
|
241
|
-
}));
|
|
242
|
-
},
|
|
243
|
-
onDragCancel(e) {
|
|
244
|
-
let { active: n, over: r } = e;
|
|
245
|
-
a(t.onDragCancel({
|
|
246
|
-
active: n,
|
|
247
|
-
over: r
|
|
248
|
-
}));
|
|
249
|
-
}
|
|
250
|
-
}), [a, t])), !u) return null;
|
|
251
|
-
let f = o.createElement(o.Fragment, null, o.createElement(A, {
|
|
252
|
-
id: r,
|
|
253
|
-
value: i.draggable
|
|
254
|
-
}), o.createElement(ie, {
|
|
255
|
-
id: l,
|
|
256
|
-
announcement: s
|
|
257
|
-
}));
|
|
258
|
-
return n ? (0, c.createPortal)(f, n) : f;
|
|
259
|
-
}
|
|
260
|
-
function P() {}
|
|
261
|
-
function ce(e, t) {
|
|
262
|
-
return (0, o.useMemo)(() => ({
|
|
263
|
-
sensor: e,
|
|
264
|
-
options: t ?? {}
|
|
265
|
-
}), [e, t]);
|
|
266
|
-
}
|
|
267
|
-
function le() {
|
|
268
|
-
var e = [...arguments];
|
|
269
|
-
return (0, o.useMemo)(() => [...e].filter((e) => e != null), [...e]);
|
|
270
|
-
}
|
|
271
|
-
(M = j ||= {}).DragStart = "dragStart", M.DragMove = "dragMove", M.DragEnd = "dragEnd", M.DragCancel = "dragCancel", M.DragOver = "dragOver", M.RegisterDroppable = "registerDroppable", M.SetDroppableDisabled = "setDroppableDisabled", M.UnregisterDroppable = "unregisterDroppable";
|
|
272
|
-
var F = Object.freeze({
|
|
273
|
-
x: 0,
|
|
274
|
-
y: 0
|
|
275
|
-
});
|
|
276
|
-
function I(e, t) {
|
|
277
|
-
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
278
|
-
}
|
|
279
|
-
function L(e, t) {
|
|
280
|
-
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
281
|
-
return n - r;
|
|
282
|
-
}
|
|
283
|
-
function R(e, t) {
|
|
284
|
-
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
285
|
-
return r - n;
|
|
286
|
-
}
|
|
287
|
-
function ue(e, t, n) {
|
|
288
|
-
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
289
|
-
x: t + .5 * e.width,
|
|
290
|
-
y: n + .5 * e.height
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
var z = (e) => {
|
|
294
|
-
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = ue(t, t.left, t.top), a = [];
|
|
295
|
-
for (let e of r) {
|
|
296
|
-
let { id: t } = e, r = n.get(t);
|
|
297
|
-
if (r) {
|
|
298
|
-
let n = I(ue(r), i);
|
|
299
|
-
a.push({
|
|
300
|
-
id: t,
|
|
301
|
-
data: {
|
|
302
|
-
droppableContainer: e,
|
|
303
|
-
value: n
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
return a.sort(L);
|
|
309
|
-
};
|
|
310
|
-
function B(e, t) {
|
|
311
|
-
let n = Math.max(t.top, e.top), r = Math.max(t.left, e.left), i = Math.min(t.left + t.width, e.left + e.width), a = Math.min(t.top + t.height, e.top + e.height), o = i - r, s = a - n;
|
|
312
|
-
if (r < i && n < a) {
|
|
313
|
-
let n = t.width * t.height, r = e.width * e.height, i = o * s;
|
|
314
|
-
return Number((i / (n + r - i)).toFixed(4));
|
|
315
|
-
}
|
|
316
|
-
return 0;
|
|
317
|
-
}
|
|
318
|
-
var V = (e) => {
|
|
319
|
-
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
|
|
320
|
-
for (let e of r) {
|
|
321
|
-
let { id: r } = e, a = n.get(r);
|
|
322
|
-
if (a) {
|
|
323
|
-
let n = B(a, t);
|
|
324
|
-
n > 0 && i.push({
|
|
325
|
-
id: r,
|
|
326
|
-
data: {
|
|
327
|
-
droppableContainer: e,
|
|
328
|
-
value: n
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
return i.sort(R);
|
|
334
|
-
};
|
|
335
|
-
function de(e, t) {
|
|
336
|
-
return e && t ? {
|
|
337
|
-
x: e.left - t.left,
|
|
338
|
-
y: e.top - t.top
|
|
339
|
-
} : F;
|
|
340
|
-
}
|
|
341
|
-
var H, fe = function(e) {
|
|
342
|
-
return function(t) {
|
|
343
|
-
return [...arguments].slice(1).reduce((t, n) => ({
|
|
344
|
-
...t,
|
|
345
|
-
top: t.top + e * n.y,
|
|
346
|
-
bottom: t.bottom + e * n.y,
|
|
347
|
-
left: t.left + e * n.x,
|
|
348
|
-
right: t.right + e * n.x
|
|
349
|
-
}), { ...t });
|
|
350
|
-
};
|
|
351
|
-
}(1), pe = { ignoreTransform: !1 };
|
|
352
|
-
function me(e, t) {
|
|
353
|
-
t === void 0 && (t = pe);
|
|
354
|
-
let n = e.getBoundingClientRect();
|
|
355
|
-
if (t.ignoreTransform) {
|
|
356
|
-
let { transform: t, transformOrigin: r } = f(e).getComputedStyle(e);
|
|
357
|
-
t && (n = function(e, t, n) {
|
|
358
|
-
let r = function(e) {
|
|
359
|
-
if (e.startsWith("matrix3d(")) {
|
|
360
|
-
let t = e.slice(9, -1).split(/, /);
|
|
361
|
-
return {
|
|
362
|
-
x: +t[12],
|
|
363
|
-
y: +t[13],
|
|
364
|
-
scaleX: +t[0],
|
|
365
|
-
scaleY: +t[5]
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
if (e.startsWith("matrix(")) {
|
|
369
|
-
let t = e.slice(7, -1).split(/, /);
|
|
370
|
-
return {
|
|
371
|
-
x: +t[4],
|
|
372
|
-
y: +t[5],
|
|
373
|
-
scaleX: +t[0],
|
|
374
|
-
scaleY: +t[3]
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
return null;
|
|
378
|
-
}(t);
|
|
379
|
-
if (!r) return e;
|
|
380
|
-
let { scaleX: i, scaleY: a, x: o, y: s } = r, c = e.left - o - (1 - i) * parseFloat(n), l = e.top - s - (1 - a) * parseFloat(n.slice(n.indexOf(" ") + 1)), u = i ? e.width / i : e.width, d = a ? e.height / a : e.height;
|
|
381
|
-
return {
|
|
382
|
-
width: u,
|
|
383
|
-
height: d,
|
|
384
|
-
top: l,
|
|
385
|
-
right: c + u,
|
|
386
|
-
bottom: l + d,
|
|
387
|
-
left: c
|
|
388
|
-
};
|
|
389
|
-
}(n, t, r));
|
|
390
|
-
}
|
|
391
|
-
let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
|
|
392
|
-
return {
|
|
393
|
-
top: r,
|
|
394
|
-
left: i,
|
|
395
|
-
width: a,
|
|
396
|
-
height: o,
|
|
397
|
-
bottom: s,
|
|
398
|
-
right: c
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
function he(e) {
|
|
402
|
-
return me(e, { ignoreTransform: !0 });
|
|
403
|
-
}
|
|
404
|
-
function ge(e, t) {
|
|
405
|
-
let n = [];
|
|
406
|
-
return e ? function r(i) {
|
|
407
|
-
if (t != null && n.length >= t || !i) return n;
|
|
408
|
-
if (p(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
|
|
409
|
-
if (!m(i) || h(i) || n.includes(i)) return n;
|
|
410
|
-
let a = f(e).getComputedStyle(i);
|
|
411
|
-
return i !== e && function(e, t) {
|
|
412
|
-
t === void 0 && (t = f(e).getComputedStyle(e));
|
|
413
|
-
let n = /(auto|scroll|overlay)/;
|
|
414
|
-
return [
|
|
415
|
-
"overflow",
|
|
416
|
-
"overflowX",
|
|
417
|
-
"overflowY"
|
|
418
|
-
].some((e) => {
|
|
419
|
-
let r = t[e];
|
|
420
|
-
return typeof r == "string" && n.test(r);
|
|
421
|
-
});
|
|
422
|
-
}(i, a) && n.push(i), function(e, t) {
|
|
423
|
-
return t === void 0 && (t = f(e).getComputedStyle(e)), t.position === "fixed";
|
|
424
|
-
}(i, a) ? n : r(i.parentNode);
|
|
425
|
-
}(e) : n;
|
|
426
|
-
}
|
|
427
|
-
function _e(e) {
|
|
428
|
-
let [t] = ge(e, 1);
|
|
429
|
-
return t ?? null;
|
|
430
|
-
}
|
|
431
|
-
function ve(e) {
|
|
432
|
-
return l && e ? u(e) ? e : d(e) ? p(e) || e === g(e).scrollingElement ? window : m(e) ? e : null : null : null;
|
|
433
|
-
}
|
|
434
|
-
function U(e) {
|
|
435
|
-
return u(e) ? e.scrollX : e.scrollLeft;
|
|
436
|
-
}
|
|
437
|
-
function ye(e) {
|
|
438
|
-
return u(e) ? e.scrollY : e.scrollTop;
|
|
439
|
-
}
|
|
440
|
-
function be(e) {
|
|
441
|
-
return {
|
|
442
|
-
x: U(e),
|
|
443
|
-
y: ye(e)
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function xe(e) {
|
|
447
|
-
return !(!l || !e) && e === document.scrollingElement;
|
|
448
|
-
}
|
|
449
|
-
function W(e) {
|
|
450
|
-
let t = {
|
|
451
|
-
x: 0,
|
|
452
|
-
y: 0
|
|
453
|
-
}, n = xe(e) ? {
|
|
454
|
-
height: window.innerHeight,
|
|
455
|
-
width: window.innerWidth
|
|
456
|
-
} : {
|
|
457
|
-
height: e.clientHeight,
|
|
458
|
-
width: e.clientWidth
|
|
459
|
-
}, r = {
|
|
460
|
-
x: e.scrollWidth - n.width,
|
|
461
|
-
y: e.scrollHeight - n.height
|
|
462
|
-
};
|
|
463
|
-
return {
|
|
464
|
-
isTop: e.scrollTop <= t.y,
|
|
465
|
-
isLeft: e.scrollLeft <= t.x,
|
|
466
|
-
isBottom: e.scrollTop >= r.y,
|
|
467
|
-
isRight: e.scrollLeft >= r.x,
|
|
468
|
-
maxScroll: r,
|
|
469
|
-
minScroll: t
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
(function(e) {
|
|
473
|
-
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
474
|
-
})(H ||= {});
|
|
475
|
-
var G, K, Se = {
|
|
476
|
-
x: .2,
|
|
477
|
-
y: .2
|
|
478
|
-
};
|
|
479
|
-
function q(e, t, n, r, i) {
|
|
480
|
-
let { top: a, left: o, right: s, bottom: c } = n;
|
|
481
|
-
r === void 0 && (r = 10), i === void 0 && (i = Se);
|
|
482
|
-
let { isTop: l, isBottom: u, isLeft: d, isRight: f } = W(e), p = {
|
|
483
|
-
x: 0,
|
|
484
|
-
y: 0
|
|
485
|
-
}, m = {
|
|
486
|
-
x: 0,
|
|
487
|
-
y: 0
|
|
488
|
-
}, h = t.height * i.y, g = t.width * i.x;
|
|
489
|
-
return !l && a <= t.top + h ? (p.y = H.Backward, m.y = r * Math.abs((t.top + h - a) / h)) : !u && c >= t.bottom - h && (p.y = H.Forward, m.y = r * Math.abs((t.bottom - h - c) / h)), !f && s >= t.right - g ? (p.x = H.Forward, m.x = r * Math.abs((t.right - g - s) / g)) : !d && o <= t.left + g && (p.x = H.Backward, m.x = r * Math.abs((t.left + g - o) / g)), {
|
|
490
|
-
direction: p,
|
|
491
|
-
speed: m
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
function Ce(e) {
|
|
495
|
-
if (e === document.scrollingElement) {
|
|
496
|
-
let { innerWidth: e, innerHeight: t } = window;
|
|
497
|
-
return {
|
|
498
|
-
top: 0,
|
|
499
|
-
left: 0,
|
|
500
|
-
right: e,
|
|
501
|
-
bottom: t,
|
|
502
|
-
width: e,
|
|
503
|
-
height: t
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
let { top: t, left: n, right: r, bottom: i } = e.getBoundingClientRect();
|
|
507
|
-
return {
|
|
508
|
-
top: t,
|
|
509
|
-
left: n,
|
|
510
|
-
right: r,
|
|
511
|
-
bottom: i,
|
|
512
|
-
width: e.clientWidth,
|
|
513
|
-
height: e.clientHeight
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
function we(e) {
|
|
517
|
-
return e.reduce((e, t) => T(e, be(t)), F);
|
|
518
|
-
}
|
|
519
|
-
var Te = [[
|
|
520
|
-
"x",
|
|
521
|
-
["left", "right"],
|
|
522
|
-
function(e) {
|
|
523
|
-
return e.reduce((e, t) => e + U(t), 0);
|
|
524
|
-
}
|
|
525
|
-
], [
|
|
526
|
-
"y",
|
|
527
|
-
["top", "bottom"],
|
|
528
|
-
function(e) {
|
|
529
|
-
return e.reduce((e, t) => e + ye(t), 0);
|
|
530
|
-
}
|
|
531
|
-
]], Ee = class {
|
|
532
|
-
constructor(e, t) {
|
|
533
|
-
this.rect = void 0, this.width = void 0, this.height = void 0, this.top = void 0, this.bottom = void 0, this.right = void 0, this.left = void 0;
|
|
534
|
-
let n = ge(t), r = we(n);
|
|
535
|
-
this.rect = { ...e }, this.width = e.width, this.height = e.height;
|
|
536
|
-
for (let [e, t, i] of Te) for (let a of t) Object.defineProperty(this, a, {
|
|
537
|
-
get: () => {
|
|
538
|
-
let t = i(n), o = r[e] - t;
|
|
539
|
-
return this.rect[a] + o;
|
|
540
|
-
},
|
|
541
|
-
enumerable: !0
|
|
542
|
-
});
|
|
543
|
-
Object.defineProperty(this, "rect", { enumerable: !1 });
|
|
544
|
-
}
|
|
545
|
-
}, J = class {
|
|
546
|
-
constructor(e) {
|
|
547
|
-
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
548
|
-
this.listeners.forEach((e) => this.target?.removeEventListener(...e));
|
|
549
|
-
}, this.target = e;
|
|
550
|
-
}
|
|
551
|
-
add(e, t, n) {
|
|
552
|
-
var r;
|
|
553
|
-
(r = this.target) == null || r.addEventListener(e, t, n), this.listeners.push([
|
|
554
|
-
e,
|
|
555
|
-
t,
|
|
556
|
-
n
|
|
557
|
-
]);
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
function De(e, t) {
|
|
561
|
-
let n = Math.abs(e.x), r = Math.abs(e.y);
|
|
562
|
-
return typeof t == "number" ? Math.sqrt(n ** 2 + r ** 2) > t : "x" in t && "y" in t ? n > t.x && r > t.y : "x" in t ? n > t.x : "y" in t && r > t.y;
|
|
563
|
-
}
|
|
564
|
-
function Y(e) {
|
|
565
|
-
e.preventDefault();
|
|
566
|
-
}
|
|
567
|
-
function Oe(e) {
|
|
568
|
-
e.stopPropagation();
|
|
569
|
-
}
|
|
570
|
-
(function(e) {
|
|
571
|
-
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
572
|
-
})(G ||= {}), function(e) {
|
|
573
|
-
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
574
|
-
}(K ||= {});
|
|
575
|
-
var ke = {
|
|
576
|
-
start: [K.Space, K.Enter],
|
|
577
|
-
cancel: [K.Esc],
|
|
578
|
-
end: [
|
|
579
|
-
K.Space,
|
|
580
|
-
K.Enter,
|
|
581
|
-
K.Tab
|
|
582
|
-
]
|
|
583
|
-
}, Ae = (e, t) => {
|
|
584
|
-
let { currentCoordinates: n } = t;
|
|
585
|
-
switch (e.code) {
|
|
586
|
-
case K.Right: return {
|
|
587
|
-
...n,
|
|
588
|
-
x: n.x + 25
|
|
589
|
-
};
|
|
590
|
-
case K.Left: return {
|
|
591
|
-
...n,
|
|
592
|
-
x: n.x - 25
|
|
593
|
-
};
|
|
594
|
-
case K.Down: return {
|
|
595
|
-
...n,
|
|
596
|
-
y: n.y + 25
|
|
597
|
-
};
|
|
598
|
-
case K.Up: return {
|
|
599
|
-
...n,
|
|
600
|
-
y: n.y - 25
|
|
601
|
-
};
|
|
602
|
-
}
|
|
603
|
-
}, je = class {
|
|
604
|
-
constructor(e) {
|
|
605
|
-
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
|
|
606
|
-
let { event: { target: t } } = e;
|
|
607
|
-
this.props = e, this.listeners = new J(g(t)), this.windowListeners = new J(f(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
608
|
-
}
|
|
609
|
-
attach() {
|
|
610
|
-
this.handleStart(), this.windowListeners.add(G.Resize, this.handleCancel), this.windowListeners.add(G.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(G.Keydown, this.handleKeyDown));
|
|
611
|
-
}
|
|
612
|
-
handleStart() {
|
|
613
|
-
let { activeNode: e, onStart: t } = this.props, n = e.node.current;
|
|
614
|
-
n && function(e, t) {
|
|
615
|
-
if (t === void 0 && (t = me), !e) return;
|
|
616
|
-
let { top: n, left: r, bottom: i, right: a } = t(e);
|
|
617
|
-
_e(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
618
|
-
block: "center",
|
|
619
|
-
inline: "center"
|
|
620
|
-
});
|
|
621
|
-
}(n), t(F);
|
|
622
|
-
}
|
|
623
|
-
handleKeyDown(e) {
|
|
624
|
-
if (D(e)) {
|
|
625
|
-
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = ke, coordinateGetter: a = Ae, scrollBehavior: o = "smooth" } = r, { code: s } = e;
|
|
626
|
-
if (i.end.includes(s)) return void this.handleEnd(e);
|
|
627
|
-
if (i.cancel.includes(s)) return void this.handleCancel(e);
|
|
628
|
-
let { collisionRect: c } = n.current, l = c ? {
|
|
629
|
-
x: c.left,
|
|
630
|
-
y: c.top
|
|
631
|
-
} : F;
|
|
632
|
-
this.referenceCoordinates ||= l;
|
|
633
|
-
let u = a(e, {
|
|
634
|
-
active: t,
|
|
635
|
-
context: n.current,
|
|
636
|
-
currentCoordinates: l
|
|
637
|
-
});
|
|
638
|
-
if (u) {
|
|
639
|
-
let t = E(u, l), r = {
|
|
640
|
-
x: 0,
|
|
641
|
-
y: 0
|
|
642
|
-
}, { scrollableAncestors: i } = n.current;
|
|
643
|
-
for (let n of i) {
|
|
644
|
-
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = W(n), p = Ce(n), m = {
|
|
645
|
-
x: Math.min(i === K.Right ? p.right - p.width / 2 : p.right, Math.max(i === K.Right ? p.left : p.left + p.width / 2, u.x)),
|
|
646
|
-
y: Math.min(i === K.Down ? p.bottom - p.height / 2 : p.bottom, Math.max(i === K.Down ? p.top : p.top + p.height / 2, u.y))
|
|
647
|
-
}, h = i === K.Right && !s || i === K.Left && !c, g = i === K.Down && !l || i === K.Up && !a;
|
|
648
|
-
if (h && m.x !== u.x) {
|
|
649
|
-
let e = n.scrollLeft + t.x, a = i === K.Right && e <= d.x || i === K.Left && e >= f.x;
|
|
650
|
-
if (a && !t.y) return void n.scrollTo({
|
|
651
|
-
left: e,
|
|
652
|
-
behavior: o
|
|
653
|
-
});
|
|
654
|
-
r.x = a ? n.scrollLeft - e : i === K.Right ? n.scrollLeft - d.x : n.scrollLeft - f.x, r.x && n.scrollBy({
|
|
655
|
-
left: -r.x,
|
|
656
|
-
behavior: o
|
|
657
|
-
});
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
if (g && m.y !== u.y) {
|
|
661
|
-
let e = n.scrollTop + t.y, a = i === K.Down && e <= d.y || i === K.Up && e >= f.y;
|
|
662
|
-
if (a && !t.x) return void n.scrollTo({
|
|
663
|
-
top: e,
|
|
664
|
-
behavior: o
|
|
665
|
-
});
|
|
666
|
-
r.y = a ? n.scrollTop - e : i === K.Down ? n.scrollTop - d.y : n.scrollTop - f.y, r.y && n.scrollBy({
|
|
667
|
-
top: -r.y,
|
|
668
|
-
behavior: o
|
|
669
|
-
});
|
|
670
|
-
break;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
this.handleMove(e, T(E(u, this.referenceCoordinates), r));
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
handleMove(e, t) {
|
|
678
|
-
let { onMove: n } = this.props;
|
|
679
|
-
e.preventDefault(), n(t);
|
|
680
|
-
}
|
|
681
|
-
handleEnd(e) {
|
|
682
|
-
let { onEnd: t } = this.props;
|
|
683
|
-
e.preventDefault(), this.detach(), t();
|
|
684
|
-
}
|
|
685
|
-
handleCancel(e) {
|
|
686
|
-
let { onCancel: t } = this.props;
|
|
687
|
-
e.preventDefault(), this.detach(), t();
|
|
688
|
-
}
|
|
689
|
-
detach() {
|
|
690
|
-
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
function Me(e) {
|
|
694
|
-
return !(!e || !("distance" in e));
|
|
695
|
-
}
|
|
696
|
-
function Ne(e) {
|
|
697
|
-
return !(!e || !("delay" in e));
|
|
698
|
-
}
|
|
699
|
-
je.activators = [{
|
|
700
|
-
eventName: "onKeyDown",
|
|
701
|
-
handler: (e, t, n) => {
|
|
702
|
-
let { keyboardCodes: r = ke, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
|
|
703
|
-
if (r.start.includes(o)) {
|
|
704
|
-
let t = a.activatorNode.current;
|
|
705
|
-
return !(t && e.target !== t || (e.preventDefault(), i?.({ event: e.nativeEvent }), 0));
|
|
706
|
-
}
|
|
707
|
-
return !1;
|
|
708
|
-
}
|
|
709
|
-
}];
|
|
710
|
-
var X, Z = class {
|
|
711
|
-
constructor(e, t, n) {
|
|
712
|
-
n === void 0 && (n = function(e) {
|
|
713
|
-
let { EventTarget: t } = f(e);
|
|
714
|
-
return e instanceof t ? e : g(e);
|
|
715
|
-
}(e.event.target)), this.props = void 0, this.events = void 0, this.autoScrollEnabled = !0, this.document = void 0, this.activated = !1, this.initialCoordinates = void 0, this.timeoutId = null, this.listeners = void 0, this.documentListeners = void 0, this.windowListeners = void 0, this.props = e, this.events = t;
|
|
716
|
-
let { event: r } = e, { target: i } = r;
|
|
717
|
-
this.props = e, this.events = t, this.document = g(i), this.documentListeners = new J(this.document), this.listeners = new J(n), this.windowListeners = new J(f(i)), this.initialCoordinates = te(r) ?? F, this.handleStart = this.handleStart.bind(this), this.handleMove = this.handleMove.bind(this), this.handleEnd = this.handleEnd.bind(this), this.handleCancel = this.handleCancel.bind(this), this.handleKeydown = this.handleKeydown.bind(this), this.removeTextSelection = this.removeTextSelection.bind(this), this.attach();
|
|
718
|
-
}
|
|
719
|
-
attach() {
|
|
720
|
-
let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
|
|
721
|
-
if (this.listeners.add(e.move.name, this.handleMove, { passive: !1 }), this.listeners.add(e.end.name, this.handleEnd), e.cancel && this.listeners.add(e.cancel.name, this.handleCancel), this.windowListeners.add(G.Resize, this.handleCancel), this.windowListeners.add(G.DragStart, Y), this.windowListeners.add(G.VisibilityChange, this.handleCancel), this.windowListeners.add(G.ContextMenu, Y), this.documentListeners.add(G.Keydown, this.handleKeydown), t) {
|
|
722
|
-
if (n != null && n({
|
|
723
|
-
event: this.props.event,
|
|
724
|
-
activeNode: this.props.activeNode,
|
|
725
|
-
options: this.props.options
|
|
726
|
-
})) return this.handleStart();
|
|
727
|
-
if (Ne(t)) return this.timeoutId = setTimeout(this.handleStart, t.delay), void this.handlePending(t);
|
|
728
|
-
if (Me(t)) return void this.handlePending(t);
|
|
729
|
-
}
|
|
730
|
-
this.handleStart();
|
|
731
|
-
}
|
|
732
|
-
detach() {
|
|
733
|
-
this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
|
|
734
|
-
}
|
|
735
|
-
handlePending(e, t) {
|
|
736
|
-
let { active: n, onPending: r } = this.props;
|
|
737
|
-
r(n, e, this.initialCoordinates, t);
|
|
738
|
-
}
|
|
739
|
-
handleStart() {
|
|
740
|
-
let { initialCoordinates: e } = this, { onStart: t } = this.props;
|
|
741
|
-
e && (this.activated = !0, this.documentListeners.add(G.Click, Oe, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(G.SelectionChange, this.removeTextSelection), t(e));
|
|
742
|
-
}
|
|
743
|
-
handleMove(e) {
|
|
744
|
-
let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
|
|
745
|
-
if (!n) return;
|
|
746
|
-
let o = te(e) ?? F, s = E(n, o);
|
|
747
|
-
if (!t && a) {
|
|
748
|
-
if (Me(a)) {
|
|
749
|
-
if (a.tolerance != null && De(s, a.tolerance)) return this.handleCancel();
|
|
750
|
-
if (De(s, a.distance)) return this.handleStart();
|
|
751
|
-
}
|
|
752
|
-
return Ne(a) && De(s, a.tolerance) ? this.handleCancel() : void this.handlePending(a, s);
|
|
753
|
-
}
|
|
754
|
-
e.cancelable && e.preventDefault(), i(o);
|
|
755
|
-
}
|
|
756
|
-
handleEnd() {
|
|
757
|
-
let { onAbort: e, onEnd: t } = this.props;
|
|
758
|
-
this.detach(), this.activated || e(this.props.active), t();
|
|
759
|
-
}
|
|
760
|
-
handleCancel() {
|
|
761
|
-
let { onAbort: e, onCancel: t } = this.props;
|
|
762
|
-
this.detach(), this.activated || e(this.props.active), t();
|
|
763
|
-
}
|
|
764
|
-
handleKeydown(e) {
|
|
765
|
-
e.code === K.Esc && this.handleCancel();
|
|
766
|
-
}
|
|
767
|
-
removeTextSelection() {
|
|
768
|
-
var e;
|
|
769
|
-
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
770
|
-
}
|
|
771
|
-
}, Pe = {
|
|
772
|
-
cancel: { name: "pointercancel" },
|
|
773
|
-
move: { name: "pointermove" },
|
|
774
|
-
end: { name: "pointerup" }
|
|
775
|
-
}, Fe = class extends Z {
|
|
776
|
-
constructor(e) {
|
|
777
|
-
let { event: t } = e, n = g(t.target);
|
|
778
|
-
super(e, Pe, n);
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
Fe.activators = [{
|
|
782
|
-
eventName: "onPointerDown",
|
|
783
|
-
handler: (e, t) => {
|
|
784
|
-
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
785
|
-
return !(!n.isPrimary || n.button !== 0 || (r?.({ event: n }), 0));
|
|
786
|
-
}
|
|
787
|
-
}];
|
|
788
|
-
var Q = {
|
|
789
|
-
move: { name: "mousemove" },
|
|
790
|
-
end: { name: "mouseup" }
|
|
791
|
-
};
|
|
792
|
-
(function(e) {
|
|
793
|
-
e[e.RightClick = 2] = "RightClick";
|
|
794
|
-
})(X ||= {});
|
|
795
|
-
var Ie, Le, Re = class extends Z {
|
|
796
|
-
constructor(e) {
|
|
797
|
-
super(e, Q, g(e.event.target));
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
Re.activators = [{
|
|
801
|
-
eventName: "onMouseDown",
|
|
802
|
-
handler: (e, t) => {
|
|
803
|
-
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
804
|
-
return n.button !== X.RightClick && (r?.({ event: n }), !0);
|
|
805
|
-
}
|
|
806
|
-
}];
|
|
807
|
-
var ze, Be, Ve = {
|
|
808
|
-
cancel: { name: "touchcancel" },
|
|
809
|
-
move: { name: "touchmove" },
|
|
810
|
-
end: { name: "touchend" }
|
|
811
|
-
}, He = class extends Z {
|
|
812
|
-
constructor(e) {
|
|
813
|
-
super(e, Ve);
|
|
814
|
-
}
|
|
815
|
-
static setup() {
|
|
816
|
-
return window.addEventListener(Ve.move.name, e, {
|
|
817
|
-
capture: !1,
|
|
818
|
-
passive: !1
|
|
819
|
-
}), function() {
|
|
820
|
-
window.removeEventListener(Ve.move.name, e);
|
|
821
|
-
};
|
|
822
|
-
function e() {}
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
function Ue(e) {
|
|
826
|
-
let { acceleration: t, activator: n = Ie.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: s = 5, order: c = Le.TreeOrder, pointerCoordinates: l, scrollableAncestors: u, scrollableAncestorRects: d, delta: f, threshold: p } = e, m = function(e) {
|
|
827
|
-
let { delta: t, disabled: n } = e, r = S(t);
|
|
828
|
-
return b((e) => {
|
|
829
|
-
if (n || !r || !e) return We;
|
|
830
|
-
let i = Math.sign(t.x - r.x), a = Math.sign(t.y - r.y);
|
|
831
|
-
return {
|
|
832
|
-
x: {
|
|
833
|
-
[H.Backward]: e.x[H.Backward] || i === -1,
|
|
834
|
-
[H.Forward]: e.x[H.Forward] || i === 1
|
|
835
|
-
},
|
|
836
|
-
y: {
|
|
837
|
-
[H.Backward]: e.y[H.Backward] || a === -1,
|
|
838
|
-
[H.Forward]: e.y[H.Forward] || a === 1
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
}, [
|
|
842
|
-
n,
|
|
843
|
-
t,
|
|
844
|
-
r
|
|
845
|
-
]);
|
|
846
|
-
}({
|
|
847
|
-
delta: f,
|
|
848
|
-
disabled: !a
|
|
849
|
-
}), [h, g] = function() {
|
|
850
|
-
let e = (0, o.useRef)(null);
|
|
851
|
-
return [(0, o.useCallback)((t, n) => {
|
|
852
|
-
e.current = setInterval(t, n);
|
|
853
|
-
}, []), (0, o.useCallback)(() => {
|
|
854
|
-
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
855
|
-
}, [])];
|
|
856
|
-
}(), _ = (0, o.useRef)({
|
|
857
|
-
x: 0,
|
|
858
|
-
y: 0
|
|
859
|
-
}), v = (0, o.useRef)({
|
|
860
|
-
x: 0,
|
|
861
|
-
y: 0
|
|
862
|
-
}), y = (0, o.useMemo)(() => {
|
|
863
|
-
switch (n) {
|
|
864
|
-
case Ie.Pointer: return l ? {
|
|
865
|
-
top: l.y,
|
|
866
|
-
bottom: l.y,
|
|
867
|
-
left: l.x,
|
|
868
|
-
right: l.x
|
|
869
|
-
} : null;
|
|
870
|
-
case Ie.DraggableRect: return i;
|
|
871
|
-
}
|
|
872
|
-
}, [
|
|
873
|
-
n,
|
|
874
|
-
i,
|
|
875
|
-
l
|
|
876
|
-
]), x = (0, o.useRef)(null), C = (0, o.useCallback)(() => {
|
|
877
|
-
let e = x.current;
|
|
878
|
-
if (!e) return;
|
|
879
|
-
let t = _.current.x * v.current.x, n = _.current.y * v.current.y;
|
|
880
|
-
e.scrollBy(t, n);
|
|
881
|
-
}, []), ee = (0, o.useMemo)(() => c === Le.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
882
|
-
(0, o.useEffect)(() => {
|
|
883
|
-
if (a && u.length && y) {
|
|
884
|
-
for (let e of ee) {
|
|
885
|
-
if (!1 === r?.(e)) continue;
|
|
886
|
-
let n = u.indexOf(e), i = d[n];
|
|
887
|
-
if (!i) continue;
|
|
888
|
-
let { direction: a, speed: o } = q(e, i, y, t, p);
|
|
889
|
-
for (let e of ["x", "y"]) m[e][a[e]] || (o[e] = 0, a[e] = 0);
|
|
890
|
-
if (o.x > 0 || o.y > 0) return g(), x.current = e, h(C, s), _.current = o, void (v.current = a);
|
|
891
|
-
}
|
|
892
|
-
_.current = {
|
|
893
|
-
x: 0,
|
|
894
|
-
y: 0
|
|
895
|
-
}, v.current = {
|
|
896
|
-
x: 0,
|
|
897
|
-
y: 0
|
|
898
|
-
}, g();
|
|
899
|
-
} else g();
|
|
900
|
-
}, [
|
|
901
|
-
t,
|
|
902
|
-
C,
|
|
903
|
-
r,
|
|
904
|
-
g,
|
|
905
|
-
a,
|
|
906
|
-
s,
|
|
907
|
-
JSON.stringify(y),
|
|
908
|
-
JSON.stringify(m),
|
|
909
|
-
h,
|
|
910
|
-
u,
|
|
911
|
-
ee,
|
|
912
|
-
d,
|
|
913
|
-
JSON.stringify(p)
|
|
914
|
-
]);
|
|
915
|
-
}
|
|
916
|
-
He.activators = [{
|
|
917
|
-
eventName: "onTouchStart",
|
|
918
|
-
handler: (e, t) => {
|
|
919
|
-
let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
|
|
920
|
-
return !(i.length > 1 || (r?.({ event: n }), 0));
|
|
921
|
-
}
|
|
922
|
-
}], function(e) {
|
|
923
|
-
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
924
|
-
}(Ie ||= {}), function(e) {
|
|
925
|
-
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
926
|
-
}(Le ||= {});
|
|
927
|
-
var We = {
|
|
928
|
-
x: {
|
|
929
|
-
[H.Backward]: !1,
|
|
930
|
-
[H.Forward]: !1
|
|
931
|
-
},
|
|
932
|
-
y: {
|
|
933
|
-
[H.Backward]: !1,
|
|
934
|
-
[H.Forward]: !1
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
(function(e) {
|
|
938
|
-
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
939
|
-
})(ze ||= {}), (Be ||= {}).Optimized = "optimized";
|
|
940
|
-
var Ge = /* @__PURE__ */ new Map();
|
|
941
|
-
function Ke(e, t) {
|
|
942
|
-
return b((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
943
|
-
}
|
|
944
|
-
function qe(e) {
|
|
945
|
-
let { callback: t, disabled: n } = e, r = v(t), i = (0, o.useMemo)(() => {
|
|
946
|
-
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
|
|
947
|
-
let { ResizeObserver: e } = window;
|
|
948
|
-
return new e(r);
|
|
949
|
-
}, [n]);
|
|
950
|
-
return (0, o.useEffect)(() => () => i?.disconnect(), [i]), i;
|
|
951
|
-
}
|
|
952
|
-
function Je(e) {
|
|
953
|
-
return new Ee(me(e), e);
|
|
954
|
-
}
|
|
955
|
-
function Ye(e, t, n) {
|
|
956
|
-
t === void 0 && (t = Je);
|
|
957
|
-
let [r, i] = (0, o.useState)(null);
|
|
958
|
-
function a() {
|
|
959
|
-
i((r) => {
|
|
960
|
-
if (!e) return null;
|
|
961
|
-
if (!1 === e.isConnected) return r ?? n ?? null;
|
|
962
|
-
let i = t(e);
|
|
963
|
-
return JSON.stringify(r) === JSON.stringify(i) ? r : i;
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
let s = function(e) {
|
|
967
|
-
let { callback: t, disabled: n } = e, r = v(t), i = (0, o.useMemo)(() => {
|
|
968
|
-
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
|
|
969
|
-
let { MutationObserver: e } = window;
|
|
970
|
-
return new e(r);
|
|
971
|
-
}, [r, n]);
|
|
972
|
-
return (0, o.useEffect)(() => () => i?.disconnect(), [i]), i;
|
|
973
|
-
}({ callback(t) {
|
|
974
|
-
if (e) for (let n of t) {
|
|
975
|
-
let { type: t, target: r } = n;
|
|
976
|
-
if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
|
|
977
|
-
a();
|
|
978
|
-
break;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
} }), c = qe({ callback: a });
|
|
982
|
-
return _(() => {
|
|
983
|
-
a(), e ? (c?.observe(e), s?.observe(document.body, {
|
|
984
|
-
childList: !0,
|
|
985
|
-
subtree: !0
|
|
986
|
-
})) : (c?.disconnect(), s?.disconnect());
|
|
987
|
-
}, [e]), r;
|
|
988
|
-
}
|
|
989
|
-
var Xe = [];
|
|
990
|
-
function Ze(e, t) {
|
|
991
|
-
t === void 0 && (t = []);
|
|
992
|
-
let n = (0, o.useRef)(null);
|
|
993
|
-
return (0, o.useEffect)(() => {
|
|
994
|
-
n.current = null;
|
|
995
|
-
}, t), (0, o.useEffect)(() => {
|
|
996
|
-
let t = e !== F;
|
|
997
|
-
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
998
|
-
}, [e]), n.current ? E(e, n.current) : F;
|
|
999
|
-
}
|
|
1000
|
-
function Qe(e) {
|
|
1001
|
-
return (0, o.useMemo)(() => e ? function(e) {
|
|
1002
|
-
let t = e.innerWidth, n = e.innerHeight;
|
|
1003
|
-
return {
|
|
1004
|
-
top: 0,
|
|
1005
|
-
left: 0,
|
|
1006
|
-
right: t,
|
|
1007
|
-
bottom: n,
|
|
1008
|
-
width: t,
|
|
1009
|
-
height: n
|
|
1010
|
-
};
|
|
1011
|
-
}(e) : null, [e]);
|
|
1012
|
-
}
|
|
1013
|
-
var $e = [];
|
|
1014
|
-
function et(e) {
|
|
1015
|
-
let { measure: t } = e, [n, r] = (0, o.useState)(null), i = qe({ callback: (0, o.useCallback)((e) => {
|
|
1016
|
-
for (let { target: n } of e) if (m(n)) {
|
|
1017
|
-
r((e) => {
|
|
1018
|
-
let r = t(n);
|
|
1019
|
-
return e ? {
|
|
1020
|
-
...e,
|
|
1021
|
-
width: r.width,
|
|
1022
|
-
height: r.height
|
|
1023
|
-
} : r;
|
|
1024
|
-
});
|
|
1025
|
-
break;
|
|
1026
|
-
}
|
|
1027
|
-
}, [t]) }), [a, s] = x((0, o.useCallback)((e) => {
|
|
1028
|
-
let n = function(e) {
|
|
1029
|
-
if (!e) return null;
|
|
1030
|
-
if (e.children.length > 1) return e;
|
|
1031
|
-
let t = e.children[0];
|
|
1032
|
-
return m(t) ? t : e;
|
|
1033
|
-
}(e);
|
|
1034
|
-
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
|
|
1035
|
-
}, [t, i]));
|
|
1036
|
-
return (0, o.useMemo)(() => ({
|
|
1037
|
-
nodeRef: a,
|
|
1038
|
-
rect: n,
|
|
1039
|
-
setRef: s
|
|
1040
|
-
}), [
|
|
1041
|
-
n,
|
|
1042
|
-
a,
|
|
1043
|
-
s
|
|
1044
|
-
]);
|
|
1045
|
-
}
|
|
1046
|
-
var $, tt = [{
|
|
1047
|
-
sensor: Fe,
|
|
1048
|
-
options: {}
|
|
1049
|
-
}, {
|
|
1050
|
-
sensor: je,
|
|
1051
|
-
options: {}
|
|
1052
|
-
}], nt = { current: {} }, rt = {
|
|
1053
|
-
draggable: { measure: he },
|
|
1054
|
-
droppable: {
|
|
1055
|
-
measure: he,
|
|
1056
|
-
strategy: ze.WhileDragging,
|
|
1057
|
-
frequency: Be.Optimized
|
|
1058
|
-
},
|
|
1059
|
-
dragOverlay: { measure: me }
|
|
1060
|
-
}, it = class extends Map {
|
|
1061
|
-
get(e) {
|
|
1062
|
-
var t;
|
|
1063
|
-
return e != null && (t = super.get(e)) != null ? t : void 0;
|
|
1064
|
-
}
|
|
1065
|
-
toArray() {
|
|
1066
|
-
return Array.from(this.values());
|
|
1067
|
-
}
|
|
1068
|
-
getEnabled() {
|
|
1069
|
-
return this.toArray().filter((e) => {
|
|
1070
|
-
let { disabled: t } = e;
|
|
1071
|
-
return !t;
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
getNodeFor(e) {
|
|
1075
|
-
return this.get(e)?.node.current ?? void 0;
|
|
1076
|
-
}
|
|
1077
|
-
}, at = {
|
|
1078
|
-
activatorEvent: null,
|
|
1079
|
-
active: null,
|
|
1080
|
-
activeNode: null,
|
|
1081
|
-
activeNodeRect: null,
|
|
1082
|
-
collisions: null,
|
|
1083
|
-
containerNodeRect: null,
|
|
1084
|
-
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1085
|
-
droppableRects: /* @__PURE__ */ new Map(),
|
|
1086
|
-
droppableContainers: new it(),
|
|
1087
|
-
over: null,
|
|
1088
|
-
dragOverlay: {
|
|
1089
|
-
nodeRef: { current: null },
|
|
1090
|
-
rect: null,
|
|
1091
|
-
setRef: P
|
|
1092
|
-
},
|
|
1093
|
-
scrollableAncestors: [],
|
|
1094
|
-
scrollableAncestorRects: [],
|
|
1095
|
-
measuringConfiguration: rt,
|
|
1096
|
-
measureDroppableContainers: P,
|
|
1097
|
-
windowRect: null,
|
|
1098
|
-
measuringScheduled: !1
|
|
1099
|
-
}, ot = (0, o.createContext)({
|
|
1100
|
-
activatorEvent: null,
|
|
1101
|
-
activators: [],
|
|
1102
|
-
active: null,
|
|
1103
|
-
activeNodeRect: null,
|
|
1104
|
-
ariaDescribedById: { draggable: "" },
|
|
1105
|
-
dispatch: P,
|
|
1106
|
-
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1107
|
-
over: null,
|
|
1108
|
-
measureDroppableContainers: P
|
|
1109
|
-
}), st = (0, o.createContext)(at);
|
|
1110
|
-
function ct() {
|
|
1111
|
-
return {
|
|
1112
|
-
draggable: {
|
|
1113
|
-
active: null,
|
|
1114
|
-
initialCoordinates: {
|
|
1115
|
-
x: 0,
|
|
1116
|
-
y: 0
|
|
1117
|
-
},
|
|
1118
|
-
nodes: /* @__PURE__ */ new Map(),
|
|
1119
|
-
translate: {
|
|
1120
|
-
x: 0,
|
|
1121
|
-
y: 0
|
|
1122
|
-
}
|
|
1123
|
-
},
|
|
1124
|
-
droppable: { containers: new it() }
|
|
1125
|
-
};
|
|
1126
|
-
}
|
|
1127
|
-
function lt(e, t) {
|
|
1128
|
-
switch (t.type) {
|
|
1129
|
-
case j.DragStart: return {
|
|
1130
|
-
...e,
|
|
1131
|
-
draggable: {
|
|
1132
|
-
...e.draggable,
|
|
1133
|
-
initialCoordinates: t.initialCoordinates,
|
|
1134
|
-
active: t.active
|
|
1135
|
-
}
|
|
1136
|
-
};
|
|
1137
|
-
case j.DragMove: return e.draggable.active == null ? e : {
|
|
1138
|
-
...e,
|
|
1139
|
-
draggable: {
|
|
1140
|
-
...e.draggable,
|
|
1141
|
-
translate: {
|
|
1142
|
-
x: t.coordinates.x - e.draggable.initialCoordinates.x,
|
|
1143
|
-
y: t.coordinates.y - e.draggable.initialCoordinates.y
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
case j.DragEnd:
|
|
1148
|
-
case j.DragCancel: return {
|
|
1149
|
-
...e,
|
|
1150
|
-
draggable: {
|
|
1151
|
-
...e.draggable,
|
|
1152
|
-
active: null,
|
|
1153
|
-
initialCoordinates: {
|
|
1154
|
-
x: 0,
|
|
1155
|
-
y: 0
|
|
1156
|
-
},
|
|
1157
|
-
translate: {
|
|
1158
|
-
x: 0,
|
|
1159
|
-
y: 0
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
};
|
|
1163
|
-
case j.RegisterDroppable: {
|
|
1164
|
-
let { element: n } = t, { id: r } = n, i = new it(e.droppable.containers);
|
|
1165
|
-
return i.set(r, n), {
|
|
1166
|
-
...e,
|
|
1167
|
-
droppable: {
|
|
1168
|
-
...e.droppable,
|
|
1169
|
-
containers: i
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1173
|
-
case j.SetDroppableDisabled: {
|
|
1174
|
-
let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
|
|
1175
|
-
if (!a || r !== a.key) return e;
|
|
1176
|
-
let o = new it(e.droppable.containers);
|
|
1177
|
-
return o.set(n, {
|
|
1178
|
-
...a,
|
|
1179
|
-
disabled: i
|
|
1180
|
-
}), {
|
|
1181
|
-
...e,
|
|
1182
|
-
droppable: {
|
|
1183
|
-
...e.droppable,
|
|
1184
|
-
containers: o
|
|
1185
|
-
}
|
|
1186
|
-
};
|
|
1187
|
-
}
|
|
1188
|
-
case j.UnregisterDroppable: {
|
|
1189
|
-
let { id: n, key: r } = t, i = e.droppable.containers.get(n);
|
|
1190
|
-
if (!i || r !== i.key) return e;
|
|
1191
|
-
let a = new it(e.droppable.containers);
|
|
1192
|
-
return a.delete(n), {
|
|
1193
|
-
...e,
|
|
1194
|
-
droppable: {
|
|
1195
|
-
...e.droppable,
|
|
1196
|
-
containers: a
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
default: return e;
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
function ut(e) {
|
|
1204
|
-
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = (0, o.useContext)(ot), a = S(r), s = S(n?.id);
|
|
1205
|
-
return (0, o.useEffect)(() => {
|
|
1206
|
-
if (!t && !r && a && s != null) {
|
|
1207
|
-
if (!D(a) || document.activeElement === a.target) return;
|
|
1208
|
-
let e = i.get(s);
|
|
1209
|
-
if (!e) return;
|
|
1210
|
-
let { activatorNode: t, node: n } = e;
|
|
1211
|
-
if (!t.current && !n.current) return;
|
|
1212
|
-
requestAnimationFrame(() => {
|
|
1213
|
-
for (let e of [t.current, n.current]) {
|
|
1214
|
-
if (!e) continue;
|
|
1215
|
-
let t = re(e);
|
|
1216
|
-
if (t) {
|
|
1217
|
-
t.focus();
|
|
1218
|
-
break;
|
|
1219
|
-
}
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
}, [
|
|
1224
|
-
r,
|
|
1225
|
-
t,
|
|
1226
|
-
i,
|
|
1227
|
-
s,
|
|
1228
|
-
a
|
|
1229
|
-
]), null;
|
|
1230
|
-
}
|
|
1231
|
-
var dt = (0, o.createContext)({
|
|
1232
|
-
...F,
|
|
1233
|
-
scaleX: 1,
|
|
1234
|
-
scaleY: 1
|
|
1235
|
-
});
|
|
1236
|
-
(function(e) {
|
|
1237
|
-
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
1238
|
-
})($ ||= {});
|
|
1239
|
-
var ft = (0, o.memo)(function(e) {
|
|
1240
|
-
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: a = tt, collisionDetection: s = V, measuring: u, modifiers: d, ...p } = e, [m, h] = (0, o.useReducer)(lt, void 0, ct), [g, v] = function() {
|
|
1241
|
-
let [e] = (0, o.useState)(() => /* @__PURE__ */ new Set()), t = (0, o.useCallback)((t) => (e.add(t), () => e.delete(t)), [e]);
|
|
1242
|
-
return [(0, o.useCallback)((t) => {
|
|
1243
|
-
let { type: n, event: r } = t;
|
|
1244
|
-
e.forEach((e) => e[n]?.call(e, r));
|
|
1245
|
-
}, [e]), t];
|
|
1246
|
-
}(), [x, S] = (0, o.useState)($.Uninitialized), C = x === $.Initialized, { draggable: { active: w, nodes: E, translate: D }, droppable: { containers: O } } = m, ne = w == null ? null : E.get(w), re = (0, o.useRef)({
|
|
1247
|
-
initial: null,
|
|
1248
|
-
translated: null
|
|
1249
|
-
}), k = (0, o.useMemo)(() => w == null ? null : {
|
|
1250
|
-
id: w,
|
|
1251
|
-
data: ne?.data ?? nt,
|
|
1252
|
-
rect: re
|
|
1253
|
-
}, [w, ne]), A = (0, o.useRef)(null), [ie, M] = (0, o.useState)(null), [N, oe] = (0, o.useState)(null), P = y(p, Object.values(p)), ce = ee("DndDescribedBy", t), le = (0, o.useMemo)(() => O.getEnabled(), [O]), I = (0, o.useMemo)(() => ({
|
|
1254
|
-
draggable: {
|
|
1255
|
-
...rt.draggable,
|
|
1256
|
-
...L?.draggable
|
|
1257
|
-
},
|
|
1258
|
-
droppable: {
|
|
1259
|
-
...rt.droppable,
|
|
1260
|
-
...L?.droppable
|
|
1261
|
-
},
|
|
1262
|
-
dragOverlay: {
|
|
1263
|
-
...rt.dragOverlay,
|
|
1264
|
-
...L?.dragOverlay
|
|
1265
|
-
}
|
|
1266
|
-
}), [
|
|
1267
|
-
(L = u)?.draggable,
|
|
1268
|
-
L?.droppable,
|
|
1269
|
-
L?.dragOverlay
|
|
1270
|
-
]);
|
|
1271
|
-
var L;
|
|
1272
|
-
let { droppableRects: R, measureDroppableContainers: ue, measuringScheduled: z } = function(e, t) {
|
|
1273
|
-
let { dragging: n, dependencies: r, config: i } = t, [a, s] = (0, o.useState)(null), { frequency: c, measure: l, strategy: u } = i, d = (0, o.useRef)(e), f = function() {
|
|
1274
|
-
switch (u) {
|
|
1275
|
-
case ze.Always: return !1;
|
|
1276
|
-
case ze.BeforeDragging: return n;
|
|
1277
|
-
default: return !n;
|
|
1278
|
-
}
|
|
1279
|
-
}(), p = y(f), m = (0, o.useCallback)(function(e) {
|
|
1280
|
-
e === void 0 && (e = []), p.current || s((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
|
|
1281
|
-
}, [p]), h = (0, o.useRef)(null), g = b((t) => {
|
|
1282
|
-
if (f && !n) return Ge;
|
|
1283
|
-
if (!t || t === Ge || d.current !== e || a != null) {
|
|
1284
|
-
let t = /* @__PURE__ */ new Map();
|
|
1285
|
-
for (let n of e) {
|
|
1286
|
-
if (!n) continue;
|
|
1287
|
-
if (a && a.length > 0 && !a.includes(n.id) && n.rect.current) {
|
|
1288
|
-
t.set(n.id, n.rect.current);
|
|
1289
|
-
continue;
|
|
1290
|
-
}
|
|
1291
|
-
let e = n.node.current, r = e ? new Ee(l(e), e) : null;
|
|
1292
|
-
n.rect.current = r, r && t.set(n.id, r);
|
|
1293
|
-
}
|
|
1294
|
-
return t;
|
|
1295
|
-
}
|
|
1296
|
-
return t;
|
|
1297
|
-
}, [
|
|
1298
|
-
e,
|
|
1299
|
-
a,
|
|
1300
|
-
n,
|
|
1301
|
-
f,
|
|
1302
|
-
l
|
|
1303
|
-
]);
|
|
1304
|
-
return (0, o.useEffect)(() => {
|
|
1305
|
-
d.current = e;
|
|
1306
|
-
}, [e]), (0, o.useEffect)(() => {
|
|
1307
|
-
f || m();
|
|
1308
|
-
}, [n, f]), (0, o.useEffect)(() => {
|
|
1309
|
-
a && a.length > 0 && s(null);
|
|
1310
|
-
}, [JSON.stringify(a)]), (0, o.useEffect)(() => {
|
|
1311
|
-
f || typeof c != "number" || h.current !== null || (h.current = setTimeout(() => {
|
|
1312
|
-
m(), h.current = null;
|
|
1313
|
-
}, c));
|
|
1314
|
-
}, [
|
|
1315
|
-
c,
|
|
1316
|
-
f,
|
|
1317
|
-
m,
|
|
1318
|
-
...r
|
|
1319
|
-
]), {
|
|
1320
|
-
droppableRects: g,
|
|
1321
|
-
measureDroppableContainers: m,
|
|
1322
|
-
measuringScheduled: a != null
|
|
1323
|
-
};
|
|
1324
|
-
}(le, {
|
|
1325
|
-
dragging: C,
|
|
1326
|
-
dependencies: [D.x, D.y],
|
|
1327
|
-
config: I.droppable
|
|
1328
|
-
}), B = function(e, t) {
|
|
1329
|
-
let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
|
|
1330
|
-
return b((e) => t == null ? null : r ?? e ?? null, [r, t]);
|
|
1331
|
-
}(E, w), H = (0, o.useMemo)(() => N ? te(N) : null, [N]), pe = function() {
|
|
1332
|
-
let e = !1 === ie?.autoScrollEnabled, t = typeof r == "object" ? !1 === r.enabled : !1 === r, n = C && !e && !t;
|
|
1333
|
-
return typeof r == "object" ? {
|
|
1334
|
-
...r,
|
|
1335
|
-
enabled: n
|
|
1336
|
-
} : { enabled: n };
|
|
1337
|
-
}(), he = function(e, t) {
|
|
1338
|
-
return Ke(e, t);
|
|
1339
|
-
}(B, I.draggable.measure);
|
|
1340
|
-
(function(e) {
|
|
1341
|
-
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = (0, o.useRef)(!1), { x: s, y: c } = typeof i == "boolean" ? {
|
|
1342
|
-
x: i,
|
|
1343
|
-
y: i
|
|
1344
|
-
} : i;
|
|
1345
|
-
_(() => {
|
|
1346
|
-
if (!s && !c || !t) return void (a.current = !1);
|
|
1347
|
-
if (a.current || !r) return;
|
|
1348
|
-
let e = t?.node.current;
|
|
1349
|
-
if (!e || !1 === e.isConnected) return;
|
|
1350
|
-
let i = de(n(e), r);
|
|
1351
|
-
if (s || (i.x = 0), c || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
|
|
1352
|
-
let t = _e(e);
|
|
1353
|
-
t && t.scrollBy({
|
|
1354
|
-
top: i.y,
|
|
1355
|
-
left: i.x
|
|
1356
|
-
});
|
|
1357
|
-
}
|
|
1358
|
-
}, [
|
|
1359
|
-
t,
|
|
1360
|
-
s,
|
|
1361
|
-
c,
|
|
1362
|
-
r,
|
|
1363
|
-
n
|
|
1364
|
-
]);
|
|
1365
|
-
})({
|
|
1366
|
-
activeNode: w == null ? null : E.get(w),
|
|
1367
|
-
config: pe.layoutShiftCompensation,
|
|
1368
|
-
initialRect: he,
|
|
1369
|
-
measure: I.draggable.measure
|
|
1370
|
-
});
|
|
1371
|
-
let U = Ye(B, I.draggable.measure, he), ye = Ye(B ? B.parentElement : null), W = (0, o.useRef)({
|
|
1372
|
-
activatorEvent: null,
|
|
1373
|
-
active: null,
|
|
1374
|
-
activeNode: B,
|
|
1375
|
-
collisionRect: null,
|
|
1376
|
-
collisions: null,
|
|
1377
|
-
droppableRects: R,
|
|
1378
|
-
draggableNodes: E,
|
|
1379
|
-
draggingNode: null,
|
|
1380
|
-
draggingNodeRect: null,
|
|
1381
|
-
droppableContainers: O,
|
|
1382
|
-
over: null,
|
|
1383
|
-
scrollableAncestors: [],
|
|
1384
|
-
scrollAdjustedTranslate: null
|
|
1385
|
-
}), G = O.getNodeFor(W.current.over?.id), K = et({ measure: I.dragOverlay.measure }), Se = K.nodeRef.current ?? B, q = C ? K.rect ?? U : null, Ce = !(!K.nodeRef.current || !K.rect), Te = de(J = Ce ? null : U, Ke(J));
|
|
1386
|
-
var J;
|
|
1387
|
-
let De = Qe(Se ? f(Se) : null), Y = function(e) {
|
|
1388
|
-
let t = (0, o.useRef)(e), n = b((n) => e ? n && n !== Xe && e && t.current && e.parentNode === t.current.parentNode ? n : ge(e) : Xe, [e]);
|
|
1389
|
-
return (0, o.useEffect)(() => {
|
|
1390
|
-
t.current = e;
|
|
1391
|
-
}, [e]), n;
|
|
1392
|
-
}(C ? G ?? B : null), Oe = function(e, t) {
|
|
1393
|
-
t === void 0 && (t = me);
|
|
1394
|
-
let [n] = e, r = Qe(n ? f(n) : null), [i, a] = (0, o.useState)($e);
|
|
1395
|
-
function s() {
|
|
1396
|
-
a(() => e.length ? e.map((e) => xe(e) ? r : new Ee(t(e), e)) : $e);
|
|
1397
|
-
}
|
|
1398
|
-
let c = qe({ callback: s });
|
|
1399
|
-
return _(() => {
|
|
1400
|
-
c?.disconnect(), s(), e.forEach((e) => c?.observe(e));
|
|
1401
|
-
}, [e]), i;
|
|
1402
|
-
}(Y), ke = function(e, t) {
|
|
1403
|
-
let { transform: n, ...r } = t;
|
|
1404
|
-
return e != null && e.length ? e.reduce((e, t) => t({
|
|
1405
|
-
transform: e,
|
|
1406
|
-
...r
|
|
1407
|
-
}), n) : n;
|
|
1408
|
-
}(d, {
|
|
1409
|
-
transform: {
|
|
1410
|
-
x: D.x - Te.x,
|
|
1411
|
-
y: D.y - Te.y,
|
|
1412
|
-
scaleX: 1,
|
|
1413
|
-
scaleY: 1
|
|
1414
|
-
},
|
|
1415
|
-
activatorEvent: N,
|
|
1416
|
-
active: k,
|
|
1417
|
-
activeNodeRect: U,
|
|
1418
|
-
containerNodeRect: ye,
|
|
1419
|
-
draggingNodeRect: q,
|
|
1420
|
-
over: W.current.over,
|
|
1421
|
-
overlayNodeRect: K.rect,
|
|
1422
|
-
scrollableAncestors: Y,
|
|
1423
|
-
scrollableAncestorRects: Oe,
|
|
1424
|
-
windowRect: De
|
|
1425
|
-
}), Ae = H ? T(H, D) : null, je = function(e) {
|
|
1426
|
-
let [t, n] = (0, o.useState)(null), r = (0, o.useRef)(e), i = (0, o.useCallback)((e) => {
|
|
1427
|
-
let t = ve(e.target);
|
|
1428
|
-
t && n((e) => e ? (e.set(t, be(t)), new Map(e)) : null);
|
|
1429
|
-
}, []);
|
|
1430
|
-
return (0, o.useEffect)(() => {
|
|
1431
|
-
let t = r.current;
|
|
1432
|
-
if (e !== t) {
|
|
1433
|
-
a(t);
|
|
1434
|
-
let o = e.map((e) => {
|
|
1435
|
-
let t = ve(e);
|
|
1436
|
-
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, be(t)]) : null;
|
|
1437
|
-
}).filter((e) => e != null);
|
|
1438
|
-
n(o.length ? new Map(o) : null), r.current = e;
|
|
1439
|
-
}
|
|
1440
|
-
return () => {
|
|
1441
|
-
a(e), a(t);
|
|
1442
|
-
};
|
|
1443
|
-
function a(e) {
|
|
1444
|
-
e.forEach((e) => {
|
|
1445
|
-
ve(e)?.removeEventListener("scroll", i);
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
}, [i, e]), (0, o.useMemo)(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => T(e, t), F) : we(e) : F, [e, t]);
|
|
1449
|
-
}(Y), Me = Ze(je), Ne = Ze(je, [U]), X = T(ke, Me), Z = q ? fe(q, ke) : null, Pe = k && Z ? s({
|
|
1450
|
-
active: k,
|
|
1451
|
-
collisionRect: Z,
|
|
1452
|
-
droppableRects: R,
|
|
1453
|
-
droppableContainers: le,
|
|
1454
|
-
pointerCoordinates: Ae
|
|
1455
|
-
}) : null, Fe = function(e) {
|
|
1456
|
-
if (!e || e.length === 0) return null;
|
|
1457
|
-
let [t] = e;
|
|
1458
|
-
return t.id;
|
|
1459
|
-
}(Pe), [Q, Ie] = (0, o.useState)(null), Le = function(e, t, n) {
|
|
1460
|
-
return {
|
|
1461
|
-
...e,
|
|
1462
|
-
scaleX: t && n ? t.width / n.width : 1,
|
|
1463
|
-
scaleY: t && n ? t.height / n.height : 1
|
|
1464
|
-
};
|
|
1465
|
-
}(Ce ? ke : T(ke, Ne), Q?.rect ?? null, U), Re = (0, o.useRef)(null), Be = (0, o.useCallback)((e, t) => {
|
|
1466
|
-
let { sensor: n, options: r } = t;
|
|
1467
|
-
if (A.current == null) return;
|
|
1468
|
-
let i = E.get(A.current);
|
|
1469
|
-
if (!i) return;
|
|
1470
|
-
let a = e.nativeEvent, o = new n({
|
|
1471
|
-
active: A.current,
|
|
1472
|
-
activeNode: i,
|
|
1473
|
-
event: a,
|
|
1474
|
-
options: r,
|
|
1475
|
-
context: W,
|
|
1476
|
-
onAbort(e) {
|
|
1477
|
-
if (!E.get(e)) return;
|
|
1478
|
-
let { onDragAbort: t } = P.current, n = { id: e };
|
|
1479
|
-
t?.(n), g({
|
|
1480
|
-
type: "onDragAbort",
|
|
1481
|
-
event: n
|
|
1482
|
-
});
|
|
1483
|
-
},
|
|
1484
|
-
onPending(e, t, n, r) {
|
|
1485
|
-
if (!E.get(e)) return;
|
|
1486
|
-
let { onDragPending: i } = P.current, a = {
|
|
1487
|
-
id: e,
|
|
1488
|
-
constraint: t,
|
|
1489
|
-
initialCoordinates: n,
|
|
1490
|
-
offset: r
|
|
1491
|
-
};
|
|
1492
|
-
i?.(a), g({
|
|
1493
|
-
type: "onDragPending",
|
|
1494
|
-
event: a
|
|
1495
|
-
});
|
|
1496
|
-
},
|
|
1497
|
-
onStart(e) {
|
|
1498
|
-
let t = A.current;
|
|
1499
|
-
if (t == null) return;
|
|
1500
|
-
let n = E.get(t);
|
|
1501
|
-
if (!n) return;
|
|
1502
|
-
let { onDragStart: r } = P.current, i = {
|
|
1503
|
-
activatorEvent: a,
|
|
1504
|
-
active: {
|
|
1505
|
-
id: t,
|
|
1506
|
-
data: n.data,
|
|
1507
|
-
rect: re
|
|
1508
|
-
}
|
|
1509
|
-
};
|
|
1510
|
-
(0, c.unstable_batchedUpdates)(() => {
|
|
1511
|
-
r?.(i), S($.Initializing), h({
|
|
1512
|
-
type: j.DragStart,
|
|
1513
|
-
initialCoordinates: e,
|
|
1514
|
-
active: t
|
|
1515
|
-
}), g({
|
|
1516
|
-
type: "onDragStart",
|
|
1517
|
-
event: i
|
|
1518
|
-
}), M(Re.current), oe(a);
|
|
1519
|
-
});
|
|
1520
|
-
},
|
|
1521
|
-
onMove(e) {
|
|
1522
|
-
h({
|
|
1523
|
-
type: j.DragMove,
|
|
1524
|
-
coordinates: e
|
|
1525
|
-
});
|
|
1526
|
-
},
|
|
1527
|
-
onEnd: s(j.DragEnd),
|
|
1528
|
-
onCancel: s(j.DragCancel)
|
|
1529
|
-
});
|
|
1530
|
-
function s(e) {
|
|
1531
|
-
return async function() {
|
|
1532
|
-
let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = W.current, o = null;
|
|
1533
|
-
if (t && i) {
|
|
1534
|
-
let { cancelDrop: s } = P.current;
|
|
1535
|
-
o = {
|
|
1536
|
-
activatorEvent: a,
|
|
1537
|
-
active: t,
|
|
1538
|
-
collisions: n,
|
|
1539
|
-
delta: i,
|
|
1540
|
-
over: r
|
|
1541
|
-
}, e === j.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = j.DragCancel);
|
|
1542
|
-
}
|
|
1543
|
-
A.current = null, (0, c.unstable_batchedUpdates)(() => {
|
|
1544
|
-
h({ type: e }), S($.Uninitialized), Ie(null), M(null), oe(null), Re.current = null;
|
|
1545
|
-
let t = e === j.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
1546
|
-
if (o) {
|
|
1547
|
-
let e = P.current[t];
|
|
1548
|
-
e?.(o), g({
|
|
1549
|
-
type: t,
|
|
1550
|
-
event: o
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
});
|
|
1554
|
-
};
|
|
1555
|
-
}
|
|
1556
|
-
Re.current = o;
|
|
1557
|
-
}, [E]), Ve = function(e, t) {
|
|
1558
|
-
return (0, o.useMemo)(() => e.reduce((e, n) => {
|
|
1559
|
-
let { sensor: r } = n;
|
|
1560
|
-
return [...e, ...r.activators.map((e) => ({
|
|
1561
|
-
eventName: e.eventName,
|
|
1562
|
-
handler: t(e.handler, n)
|
|
1563
|
-
}))];
|
|
1564
|
-
}, []), [e, t]);
|
|
1565
|
-
}(a, (0, o.useCallback)((e, t) => (n, r) => {
|
|
1566
|
-
let i = n.nativeEvent, a = E.get(r);
|
|
1567
|
-
if (A.current !== null || !a || i.dndKit || i.defaultPrevented) return;
|
|
1568
|
-
let o = { active: a };
|
|
1569
|
-
!0 === e(n, t.options, o) && (i.dndKit = { capturedBy: t.sensor }, A.current = r, Be(n, t));
|
|
1570
|
-
}, [E, Be]));
|
|
1571
|
-
(function(e) {
|
|
1572
|
-
(0, o.useEffect)(() => {
|
|
1573
|
-
if (!l) return;
|
|
1574
|
-
let t = e.map((e) => {
|
|
1575
|
-
let { sensor: t } = e;
|
|
1576
|
-
return t.setup == null ? void 0 : t.setup();
|
|
1577
|
-
});
|
|
1578
|
-
return () => {
|
|
1579
|
-
for (let e of t) e?.();
|
|
1580
|
-
};
|
|
1581
|
-
}, e.map((e) => {
|
|
1582
|
-
let { sensor: t } = e;
|
|
1583
|
-
return t;
|
|
1584
|
-
}));
|
|
1585
|
-
})(a), _(() => {
|
|
1586
|
-
U && x === $.Initializing && S($.Initialized);
|
|
1587
|
-
}, [U, x]), (0, o.useEffect)(() => {
|
|
1588
|
-
let { onDragMove: e } = P.current, { active: t, activatorEvent: n, collisions: r, over: i } = W.current;
|
|
1589
|
-
if (!t || !n) return;
|
|
1590
|
-
let a = {
|
|
1591
|
-
active: t,
|
|
1592
|
-
activatorEvent: n,
|
|
1593
|
-
collisions: r,
|
|
1594
|
-
delta: {
|
|
1595
|
-
x: X.x,
|
|
1596
|
-
y: X.y
|
|
1597
|
-
},
|
|
1598
|
-
over: i
|
|
1599
|
-
};
|
|
1600
|
-
(0, c.unstable_batchedUpdates)(() => {
|
|
1601
|
-
e?.(a), g({
|
|
1602
|
-
type: "onDragMove",
|
|
1603
|
-
event: a
|
|
1604
|
-
});
|
|
1605
|
-
});
|
|
1606
|
-
}, [X.x, X.y]), (0, o.useEffect)(() => {
|
|
1607
|
-
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = W.current;
|
|
1608
|
-
if (!e || A.current == null || !t || !i) return;
|
|
1609
|
-
let { onDragOver: a } = P.current, o = r.get(Fe), s = o && o.rect.current ? {
|
|
1610
|
-
id: o.id,
|
|
1611
|
-
rect: o.rect.current,
|
|
1612
|
-
data: o.data,
|
|
1613
|
-
disabled: o.disabled
|
|
1614
|
-
} : null, l = {
|
|
1615
|
-
active: e,
|
|
1616
|
-
activatorEvent: t,
|
|
1617
|
-
collisions: n,
|
|
1618
|
-
delta: {
|
|
1619
|
-
x: i.x,
|
|
1620
|
-
y: i.y
|
|
1621
|
-
},
|
|
1622
|
-
over: s
|
|
1623
|
-
};
|
|
1624
|
-
(0, c.unstable_batchedUpdates)(() => {
|
|
1625
|
-
Ie(s), a?.(l), g({
|
|
1626
|
-
type: "onDragOver",
|
|
1627
|
-
event: l
|
|
1628
|
-
});
|
|
1629
|
-
});
|
|
1630
|
-
}, [Fe]), _(() => {
|
|
1631
|
-
W.current = {
|
|
1632
|
-
activatorEvent: N,
|
|
1633
|
-
active: k,
|
|
1634
|
-
activeNode: B,
|
|
1635
|
-
collisionRect: Z,
|
|
1636
|
-
collisions: Pe,
|
|
1637
|
-
droppableRects: R,
|
|
1638
|
-
draggableNodes: E,
|
|
1639
|
-
draggingNode: Se,
|
|
1640
|
-
draggingNodeRect: q,
|
|
1641
|
-
droppableContainers: O,
|
|
1642
|
-
over: Q,
|
|
1643
|
-
scrollableAncestors: Y,
|
|
1644
|
-
scrollAdjustedTranslate: X
|
|
1645
|
-
}, re.current = {
|
|
1646
|
-
initial: q,
|
|
1647
|
-
translated: Z
|
|
1648
|
-
};
|
|
1649
|
-
}, [
|
|
1650
|
-
k,
|
|
1651
|
-
B,
|
|
1652
|
-
Pe,
|
|
1653
|
-
Z,
|
|
1654
|
-
E,
|
|
1655
|
-
Se,
|
|
1656
|
-
q,
|
|
1657
|
-
R,
|
|
1658
|
-
O,
|
|
1659
|
-
Q,
|
|
1660
|
-
Y,
|
|
1661
|
-
X
|
|
1662
|
-
]), Ue({
|
|
1663
|
-
...pe,
|
|
1664
|
-
delta: D,
|
|
1665
|
-
draggingRect: Z,
|
|
1666
|
-
pointerCoordinates: Ae,
|
|
1667
|
-
scrollableAncestors: Y,
|
|
1668
|
-
scrollableAncestorRects: Oe
|
|
1669
|
-
});
|
|
1670
|
-
let He = (0, o.useMemo)(() => ({
|
|
1671
|
-
active: k,
|
|
1672
|
-
activeNode: B,
|
|
1673
|
-
activeNodeRect: U,
|
|
1674
|
-
activatorEvent: N,
|
|
1675
|
-
collisions: Pe,
|
|
1676
|
-
containerNodeRect: ye,
|
|
1677
|
-
dragOverlay: K,
|
|
1678
|
-
draggableNodes: E,
|
|
1679
|
-
droppableContainers: O,
|
|
1680
|
-
droppableRects: R,
|
|
1681
|
-
over: Q,
|
|
1682
|
-
measureDroppableContainers: ue,
|
|
1683
|
-
scrollableAncestors: Y,
|
|
1684
|
-
scrollableAncestorRects: Oe,
|
|
1685
|
-
measuringConfiguration: I,
|
|
1686
|
-
measuringScheduled: z,
|
|
1687
|
-
windowRect: De
|
|
1688
|
-
}), [
|
|
1689
|
-
k,
|
|
1690
|
-
B,
|
|
1691
|
-
U,
|
|
1692
|
-
N,
|
|
1693
|
-
Pe,
|
|
1694
|
-
ye,
|
|
1695
|
-
K,
|
|
1696
|
-
E,
|
|
1697
|
-
O,
|
|
1698
|
-
R,
|
|
1699
|
-
Q,
|
|
1700
|
-
ue,
|
|
1701
|
-
Y,
|
|
1702
|
-
Oe,
|
|
1703
|
-
I,
|
|
1704
|
-
z,
|
|
1705
|
-
De
|
|
1706
|
-
]), We = (0, o.useMemo)(() => ({
|
|
1707
|
-
activatorEvent: N,
|
|
1708
|
-
activators: Ve,
|
|
1709
|
-
active: k,
|
|
1710
|
-
activeNodeRect: U,
|
|
1711
|
-
ariaDescribedById: { draggable: ce },
|
|
1712
|
-
dispatch: h,
|
|
1713
|
-
draggableNodes: E,
|
|
1714
|
-
over: Q,
|
|
1715
|
-
measureDroppableContainers: ue
|
|
1716
|
-
}), [
|
|
1717
|
-
N,
|
|
1718
|
-
Ve,
|
|
1719
|
-
k,
|
|
1720
|
-
U,
|
|
1721
|
-
h,
|
|
1722
|
-
ce,
|
|
1723
|
-
E,
|
|
1724
|
-
Q,
|
|
1725
|
-
ue
|
|
1726
|
-
]);
|
|
1727
|
-
return o.createElement(ae.Provider, { value: v }, o.createElement(ot.Provider, { value: We }, o.createElement(st.Provider, { value: He }, o.createElement(dt.Provider, { value: Le }, i)), o.createElement(ut, { disabled: !1 === n?.restoreFocus })), o.createElement(se, {
|
|
1728
|
-
...n,
|
|
1729
|
-
hiddenTextDescribedById: ce
|
|
1730
|
-
}));
|
|
1731
|
-
}), pt = (0, o.createContext)(null), mt = "button", ht = { timeout: 25 }, gt = (e) => {
|
|
1732
|
-
let { transform: t } = e;
|
|
1733
|
-
return {
|
|
1734
|
-
...t,
|
|
1735
|
-
x: 0
|
|
1736
|
-
};
|
|
1737
|
-
};
|
|
1738
|
-
function _t(e, t, n) {
|
|
1739
|
-
let r = e.slice();
|
|
1740
|
-
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
1741
|
-
}
|
|
1742
|
-
function vt(e, t) {
|
|
1743
|
-
return e.reduce((e, n, r) => {
|
|
1744
|
-
let i = t.get(n);
|
|
1745
|
-
return i && (e[r] = i), e;
|
|
1746
|
-
}, Array(e.length));
|
|
1747
|
-
}
|
|
1748
|
-
function yt(e) {
|
|
1749
|
-
return e !== null && e >= 0;
|
|
1750
|
-
}
|
|
1751
|
-
var bt = (e) => {
|
|
1752
|
-
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = _t(t, r, n), o = t[i], s = a[i];
|
|
1753
|
-
return s && o ? {
|
|
1754
|
-
x: s.left - o.left,
|
|
1755
|
-
y: s.top - o.top,
|
|
1756
|
-
scaleX: s.width / o.width,
|
|
1757
|
-
scaleY: s.height / o.height
|
|
1758
|
-
} : null;
|
|
1759
|
-
}, xt = {
|
|
1760
|
-
scaleX: 1,
|
|
1761
|
-
scaleY: 1
|
|
1762
|
-
}, St = (e) => {
|
|
1763
|
-
let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
|
|
1764
|
-
if (!o) return null;
|
|
1765
|
-
if (r === t) {
|
|
1766
|
-
let e = i[a];
|
|
1767
|
-
return e ? {
|
|
1768
|
-
x: 0,
|
|
1769
|
-
y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
|
|
1770
|
-
...xt
|
|
1771
|
-
} : null;
|
|
1772
|
-
}
|
|
1773
|
-
let s = function(e, t, n) {
|
|
1774
|
-
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
1775
|
-
return r ? n < t ? i ? r.top - (i.top + i.height) : a ? a.top - (r.top + r.height) : 0 : a ? a.top - (r.top + r.height) : i ? r.top - (i.top + i.height) : 0 : 0;
|
|
1776
|
-
}(i, r, t);
|
|
1777
|
-
return r > t && r <= a ? {
|
|
1778
|
-
x: 0,
|
|
1779
|
-
y: -o.height - s,
|
|
1780
|
-
...xt
|
|
1781
|
-
} : r < t && r >= a ? {
|
|
1782
|
-
x: 0,
|
|
1783
|
-
y: o.height + s,
|
|
1784
|
-
...xt
|
|
1785
|
-
} : {
|
|
1786
|
-
x: 0,
|
|
1787
|
-
y: 0,
|
|
1788
|
-
...xt
|
|
1789
|
-
};
|
|
1790
|
-
}, Ct = "Sortable", wt = o.createContext({
|
|
1791
|
-
activeIndex: -1,
|
|
1792
|
-
containerId: Ct,
|
|
1793
|
-
disableTransforms: !1,
|
|
1794
|
-
items: [],
|
|
1795
|
-
overIndex: -1,
|
|
1796
|
-
useDragOverlay: !1,
|
|
1797
|
-
sortedRects: [],
|
|
1798
|
-
strategy: bt,
|
|
1799
|
-
disabled: {
|
|
1800
|
-
draggable: !1,
|
|
1801
|
-
droppable: !1
|
|
1802
|
-
}
|
|
1803
|
-
});
|
|
1804
|
-
function Tt(e) {
|
|
1805
|
-
let { children: t, id: n, items: r, strategy: i = bt, disabled: a = !1 } = e, { active: s, dragOverlay: c, droppableRects: l, over: u, measureDroppableContainers: d } = (0, o.useContext)(st), f = ee(Ct, n), p = c.rect !== null, m = (0, o.useMemo)(() => r.map((e) => typeof e == "object" && "id" in e ? e.id : e), [r]), h = s != null, g = s ? m.indexOf(s.id) : -1, v = u ? m.indexOf(u.id) : -1, y = (0, o.useRef)(m), b = !function(e, t) {
|
|
1806
|
-
if (e === t) return !0;
|
|
1807
|
-
if (e.length !== t.length) return !1;
|
|
1808
|
-
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
1809
|
-
return !0;
|
|
1810
|
-
}(m, y.current), x = v !== -1 && g === -1 || b, S = function(e) {
|
|
1811
|
-
return typeof e == "boolean" ? {
|
|
1812
|
-
draggable: e,
|
|
1813
|
-
droppable: e
|
|
1814
|
-
} : e;
|
|
1815
|
-
}(a);
|
|
1816
|
-
_(() => {
|
|
1817
|
-
b && h && d(m);
|
|
1818
|
-
}, [
|
|
1819
|
-
b,
|
|
1820
|
-
m,
|
|
1821
|
-
h,
|
|
1822
|
-
d
|
|
1823
|
-
]), (0, o.useEffect)(() => {
|
|
1824
|
-
y.current = m;
|
|
1825
|
-
}, [m]);
|
|
1826
|
-
let C = (0, o.useMemo)(() => ({
|
|
1827
|
-
activeIndex: g,
|
|
1828
|
-
containerId: f,
|
|
1829
|
-
disabled: S,
|
|
1830
|
-
disableTransforms: x,
|
|
1831
|
-
items: m,
|
|
1832
|
-
overIndex: v,
|
|
1833
|
-
useDragOverlay: p,
|
|
1834
|
-
sortedRects: vt(m, l),
|
|
1835
|
-
strategy: i
|
|
1836
|
-
}), [
|
|
1837
|
-
g,
|
|
1838
|
-
f,
|
|
1839
|
-
S.draggable,
|
|
1840
|
-
S.droppable,
|
|
1841
|
-
x,
|
|
1842
|
-
m,
|
|
1843
|
-
v,
|
|
1844
|
-
l,
|
|
1845
|
-
p,
|
|
1846
|
-
i
|
|
1847
|
-
]);
|
|
1848
|
-
return o.createElement(wt.Provider, { value: C }, t);
|
|
1849
|
-
}
|
|
1850
|
-
var Et = (e) => {
|
|
1851
|
-
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
|
|
1852
|
-
return _t(n, r, i).indexOf(t);
|
|
1853
|
-
}, Dt = (e) => {
|
|
1854
|
-
let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
|
|
1855
|
-
return !(!l || !r || s !== a && i === o || !n && (o === i || t !== c));
|
|
1856
|
-
}, Ot = {
|
|
1857
|
-
duration: 200,
|
|
1858
|
-
easing: "ease"
|
|
1859
|
-
}, kt = "transform", At = O.Transition.toString({
|
|
1860
|
-
property: kt,
|
|
1861
|
-
duration: 0,
|
|
1862
|
-
easing: "linear"
|
|
1863
|
-
}), jt = { roleDescription: "sortable" };
|
|
1864
|
-
function Mt(e) {
|
|
1865
|
-
let { animateLayoutChanges: t = Dt, attributes: n, disabled: r, data: i, getNewIndex: a = Et, id: s, strategy: c, resizeObserverConfig: l, transition: u = Ot } = e, { items: d, containerId: f, activeIndex: p, disabled: m, disableTransforms: h, sortedRects: g, overIndex: v, useDragOverlay: b, strategy: S } = (0, o.useContext)(wt), C = function(e, t) {
|
|
1866
|
-
return typeof e == "boolean" ? {
|
|
1867
|
-
draggable: e,
|
|
1868
|
-
droppable: !1
|
|
1869
|
-
} : {
|
|
1870
|
-
draggable: e?.draggable ?? t.draggable,
|
|
1871
|
-
droppable: e?.droppable ?? t.droppable
|
|
1872
|
-
};
|
|
1873
|
-
}(r, m), w = d.indexOf(s), T = (0, o.useMemo)(() => ({
|
|
1874
|
-
sortable: {
|
|
1875
|
-
containerId: f,
|
|
1876
|
-
index: w,
|
|
1877
|
-
items: d
|
|
1878
|
-
},
|
|
1879
|
-
...i
|
|
1880
|
-
}), [
|
|
1881
|
-
f,
|
|
1882
|
-
i,
|
|
1883
|
-
w,
|
|
1884
|
-
d
|
|
1885
|
-
]), E = (0, o.useMemo)(() => d.slice(d.indexOf(s)), [d, s]), { rect: te, node: ne, isOver: re, setNodeRef: k } = function(e) {
|
|
1886
|
-
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = ee("Droppable"), { active: s, dispatch: c, over: l, measureDroppableContainers: u } = (0, o.useContext)(ot), d = (0, o.useRef)({ disabled: n }), f = (0, o.useRef)(!1), p = (0, o.useRef)(null), m = (0, o.useRef)(null), { disabled: h, updateMeasurementsFor: g, timeout: _ } = {
|
|
1887
|
-
...ht,
|
|
1888
|
-
...i
|
|
1889
|
-
}, v = y(g ?? r), b = qe({
|
|
1890
|
-
callback: (0, o.useCallback)(() => {
|
|
1891
|
-
f.current ? (m.current != null && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
1892
|
-
u(Array.isArray(v.current) ? v.current : [v.current]), m.current = null;
|
|
1893
|
-
}, _)) : f.current = !0;
|
|
1894
|
-
}, [_]),
|
|
1895
|
-
disabled: h || !s
|
|
1896
|
-
}), [S, C] = x((0, o.useCallback)((e, t) => {
|
|
1897
|
-
b && (t && (b.unobserve(t), f.current = !1), e && b.observe(e));
|
|
1898
|
-
}, [b])), w = y(t);
|
|
1899
|
-
return (0, o.useEffect)(() => {
|
|
1900
|
-
b && S.current && (b.disconnect(), f.current = !1, b.observe(S.current));
|
|
1901
|
-
}, [S, b]), (0, o.useEffect)(() => (c({
|
|
1902
|
-
type: j.RegisterDroppable,
|
|
1903
|
-
element: {
|
|
1904
|
-
id: r,
|
|
1905
|
-
key: a,
|
|
1906
|
-
disabled: n,
|
|
1907
|
-
node: S,
|
|
1908
|
-
rect: p,
|
|
1909
|
-
data: w
|
|
1910
|
-
}
|
|
1911
|
-
}), () => c({
|
|
1912
|
-
type: j.UnregisterDroppable,
|
|
1913
|
-
key: a,
|
|
1914
|
-
id: r
|
|
1915
|
-
})), [r]), (0, o.useEffect)(() => {
|
|
1916
|
-
n !== d.current.disabled && (c({
|
|
1917
|
-
type: j.SetDroppableDisabled,
|
|
1918
|
-
id: r,
|
|
1919
|
-
key: a,
|
|
1920
|
-
disabled: n
|
|
1921
|
-
}), d.current.disabled = n);
|
|
1922
|
-
}, [
|
|
1923
|
-
r,
|
|
1924
|
-
a,
|
|
1925
|
-
n,
|
|
1926
|
-
c
|
|
1927
|
-
]), {
|
|
1928
|
-
active: s,
|
|
1929
|
-
rect: p,
|
|
1930
|
-
isOver: l?.id === r,
|
|
1931
|
-
node: S,
|
|
1932
|
-
over: l,
|
|
1933
|
-
setNodeRef: C
|
|
1934
|
-
};
|
|
1935
|
-
}({
|
|
1936
|
-
id: s,
|
|
1937
|
-
data: T,
|
|
1938
|
-
disabled: C.droppable,
|
|
1939
|
-
resizeObserverConfig: {
|
|
1940
|
-
updateMeasurementsFor: E,
|
|
1941
|
-
...l
|
|
1942
|
-
}
|
|
1943
|
-
}), { active: A, activatorEvent: ie, activeNodeRect: M, attributes: ae, setNodeRef: N, listeners: oe, isDragging: se, over: P, setActivatorNodeRef: ce, transform: le } = function(e) {
|
|
1944
|
-
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = ee("Draggable"), { activators: s, activatorEvent: c, active: l, activeNodeRect: u, ariaDescribedById: d, draggableNodes: f, over: p } = (0, o.useContext)(ot), { role: m = mt, roleDescription: h = "draggable", tabIndex: g = 0 } = i ?? {}, v = l?.id === t, b = (0, o.useContext)(v ? dt : pt), [S, C] = x(), [w, T] = x(), E = function(e, t) {
|
|
1945
|
-
return (0, o.useMemo)(() => e.reduce((e, n) => {
|
|
1946
|
-
let { eventName: r, handler: i } = n;
|
|
1947
|
-
return e[r] = (e) => {
|
|
1948
|
-
i(e, t);
|
|
1949
|
-
}, e;
|
|
1950
|
-
}, {}), [e, t]);
|
|
1951
|
-
}(s, t), D = y(n);
|
|
1952
|
-
return _(() => (f.set(t, {
|
|
1953
|
-
id: t,
|
|
1954
|
-
key: a,
|
|
1955
|
-
node: S,
|
|
1956
|
-
activatorNode: w,
|
|
1957
|
-
data: D
|
|
1958
|
-
}), () => {
|
|
1959
|
-
let e = f.get(t);
|
|
1960
|
-
e && e.key === a && f.delete(t);
|
|
1961
|
-
}), [f, t]), {
|
|
1962
|
-
active: l,
|
|
1963
|
-
activatorEvent: c,
|
|
1964
|
-
activeNodeRect: u,
|
|
1965
|
-
attributes: (0, o.useMemo)(() => ({
|
|
1966
|
-
role: m,
|
|
1967
|
-
tabIndex: g,
|
|
1968
|
-
"aria-disabled": r,
|
|
1969
|
-
"aria-pressed": !(!v || m !== mt) || void 0,
|
|
1970
|
-
"aria-roledescription": h,
|
|
1971
|
-
"aria-describedby": d.draggable
|
|
1972
|
-
}), [
|
|
1973
|
-
r,
|
|
1974
|
-
m,
|
|
1975
|
-
g,
|
|
1976
|
-
v,
|
|
1977
|
-
h,
|
|
1978
|
-
d.draggable
|
|
1979
|
-
]),
|
|
1980
|
-
isDragging: v,
|
|
1981
|
-
listeners: r ? void 0 : E,
|
|
1982
|
-
node: S,
|
|
1983
|
-
over: p,
|
|
1984
|
-
setNodeRef: C,
|
|
1985
|
-
setActivatorNodeRef: T,
|
|
1986
|
-
transform: b
|
|
1987
|
-
};
|
|
1988
|
-
}({
|
|
1989
|
-
id: s,
|
|
1990
|
-
data: T,
|
|
1991
|
-
attributes: {
|
|
1992
|
-
...jt,
|
|
1993
|
-
...n
|
|
1994
|
-
},
|
|
1995
|
-
disabled: C.draggable
|
|
1996
|
-
}), F = function() {
|
|
1997
|
-
var e = [...arguments];
|
|
1998
|
-
return (0, o.useMemo)(() => (t) => {
|
|
1999
|
-
e.forEach((e) => e(t));
|
|
2000
|
-
}, e);
|
|
2001
|
-
}(k, N), I = !!A, L = I && !h && yt(p) && yt(v), R = !b && se, ue = L ? (R && L ? le : null) ?? (c ?? S)({
|
|
2002
|
-
rects: g,
|
|
2003
|
-
activeNodeRect: M,
|
|
2004
|
-
activeIndex: p,
|
|
2005
|
-
overIndex: v,
|
|
2006
|
-
index: w
|
|
2007
|
-
}) : null, z = yt(p) && yt(v) ? a({
|
|
2008
|
-
id: s,
|
|
2009
|
-
items: d,
|
|
2010
|
-
activeIndex: p,
|
|
2011
|
-
overIndex: v
|
|
2012
|
-
}) : w, B = A?.id, V = (0, o.useRef)({
|
|
2013
|
-
activeId: B,
|
|
2014
|
-
items: d,
|
|
2015
|
-
newIndex: z,
|
|
2016
|
-
containerId: f
|
|
2017
|
-
}), de = d !== V.current.items, H = t({
|
|
2018
|
-
active: A,
|
|
2019
|
-
containerId: f,
|
|
2020
|
-
isDragging: se,
|
|
2021
|
-
isSorting: I,
|
|
2022
|
-
id: s,
|
|
2023
|
-
index: w,
|
|
2024
|
-
items: d,
|
|
2025
|
-
newIndex: V.current.newIndex,
|
|
2026
|
-
previousItems: V.current.items,
|
|
2027
|
-
previousContainerId: V.current.containerId,
|
|
2028
|
-
transition: u,
|
|
2029
|
-
wasDragging: V.current.activeId != null
|
|
2030
|
-
}), fe = function(e) {
|
|
2031
|
-
let { disabled: t, index: n, node: r, rect: i } = e, [a, s] = (0, o.useState)(null), c = (0, o.useRef)(n);
|
|
2032
|
-
return _(() => {
|
|
2033
|
-
if (!t && n !== c.current && r.current) {
|
|
2034
|
-
let e = i.current;
|
|
2035
|
-
if (e) {
|
|
2036
|
-
let t = me(r.current, { ignoreTransform: !0 }), n = {
|
|
2037
|
-
x: e.left - t.left,
|
|
2038
|
-
y: e.top - t.top,
|
|
2039
|
-
scaleX: e.width / t.width,
|
|
2040
|
-
scaleY: e.height / t.height
|
|
2041
|
-
};
|
|
2042
|
-
(n.x || n.y) && s(n);
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
n !== c.current && (c.current = n);
|
|
2046
|
-
}, [
|
|
2047
|
-
t,
|
|
2048
|
-
n,
|
|
2049
|
-
r,
|
|
2050
|
-
i
|
|
2051
|
-
]), (0, o.useEffect)(() => {
|
|
2052
|
-
a && s(null);
|
|
2053
|
-
}, [a]), a;
|
|
2054
|
-
}({
|
|
2055
|
-
disabled: !H,
|
|
2056
|
-
index: w,
|
|
2057
|
-
node: ne,
|
|
2058
|
-
rect: te
|
|
2059
|
-
});
|
|
2060
|
-
return (0, o.useEffect)(() => {
|
|
2061
|
-
I && V.current.newIndex !== z && (V.current.newIndex = z), f !== V.current.containerId && (V.current.containerId = f), d !== V.current.items && (V.current.items = d);
|
|
2062
|
-
}, [
|
|
2063
|
-
I,
|
|
2064
|
-
z,
|
|
2065
|
-
f,
|
|
2066
|
-
d
|
|
2067
|
-
]), (0, o.useEffect)(() => {
|
|
2068
|
-
if (B === V.current.activeId) return;
|
|
2069
|
-
if (B != null && V.current.activeId == null) return void (V.current.activeId = B);
|
|
2070
|
-
let e = setTimeout(() => {
|
|
2071
|
-
V.current.activeId = B;
|
|
2072
|
-
}, 50);
|
|
2073
|
-
return () => clearTimeout(e);
|
|
2074
|
-
}, [B]), {
|
|
2075
|
-
active: A,
|
|
2076
|
-
activeIndex: p,
|
|
2077
|
-
attributes: ae,
|
|
2078
|
-
data: T,
|
|
2079
|
-
rect: te,
|
|
2080
|
-
index: w,
|
|
2081
|
-
newIndex: z,
|
|
2082
|
-
items: d,
|
|
2083
|
-
isOver: re,
|
|
2084
|
-
isSorting: I,
|
|
2085
|
-
isDragging: se,
|
|
2086
|
-
listeners: oe,
|
|
2087
|
-
node: ne,
|
|
2088
|
-
overIndex: v,
|
|
2089
|
-
over: P,
|
|
2090
|
-
setNodeRef: F,
|
|
2091
|
-
setActivatorNodeRef: ce,
|
|
2092
|
-
setDroppableNodeRef: k,
|
|
2093
|
-
setDraggableNodeRef: N,
|
|
2094
|
-
transform: fe ?? ue,
|
|
2095
|
-
transition: fe || de && V.current.newIndex === w ? At : R && !D(ie) || !u || !I && !H ? void 0 : O.Transition.toString({
|
|
2096
|
-
...u,
|
|
2097
|
-
property: kt
|
|
2098
|
-
})
|
|
2099
|
-
};
|
|
2100
|
-
}
|
|
2101
|
-
K.Down, K.Right, K.Up, K.Left;
|
|
2102
|
-
var Nt = ({ containerNodeRect: e, draggingNodeRect: t, transform: n }) => {
|
|
2103
|
-
if (!t || !e) return n;
|
|
2104
|
-
let r = { ...n }, i = e.top + 4, a = e.top + e.height - 4;
|
|
2105
|
-
return t.top + n.y <= i ? r.y = i - t.top : t.bottom + n.y >= a && (r.y = a - t.bottom), r;
|
|
2106
|
-
}, Pt = (0, o.memo)((e) => {
|
|
2107
|
-
let { ids: t, onMove: n, scrollRef: r, children: i } = e;
|
|
2108
|
-
return (0, s.jsx)(ft, {
|
|
2109
|
-
sensors: le(ce(Re, { activationConstraint: { distance: 6 } }), ce(He, { activationConstraint: {
|
|
2110
|
-
delay: 200,
|
|
2111
|
-
tolerance: 6
|
|
2112
|
-
} })),
|
|
2113
|
-
collisionDetection: z,
|
|
2114
|
-
modifiers: [gt, Nt],
|
|
2115
|
-
autoScroll: { canScroll: (e) => {
|
|
2116
|
-
if (e === document.scrollingElement || e === document.documentElement || e === document.body) return !1;
|
|
2117
|
-
let t = r.current;
|
|
2118
|
-
return !!t && (e === t || e.contains(t));
|
|
2119
|
-
} },
|
|
2120
|
-
onDragEnd: (e) => {
|
|
2121
|
-
let { active: r, over: i } = e;
|
|
2122
|
-
if (!i || r.id === i.id) return;
|
|
2123
|
-
let a = t.indexOf(String(r.id)), o = t.indexOf(String(i.id));
|
|
2124
|
-
a !== -1 && o !== -1 && a !== o && n(a, o);
|
|
2125
|
-
},
|
|
2126
|
-
children: (0, s.jsx)(Tt, {
|
|
2127
|
-
items: t,
|
|
2128
|
-
strategy: St,
|
|
2129
|
-
children: i
|
|
2130
|
-
})
|
|
2131
|
-
});
|
|
2132
|
-
});
|
|
2133
|
-
Pt.displayName = "SortableCards";
|
|
2134
|
-
var Ft = "data-sxl-flip";
|
|
2135
|
-
function It(e, t, n) {
|
|
2136
|
-
let r = (0, o.useRef)(/* @__PURE__ */ new Map());
|
|
2137
|
-
_(() => {
|
|
2138
|
-
if (!t || !e.current) return void (r.current = /* @__PURE__ */ new Map());
|
|
2139
|
-
let i = r.current, a = /* @__PURE__ */ new Map(), o = [], s = e.current.querySelectorAll(`[${Ft}]`);
|
|
2140
|
-
for (let e = 0; e < s.length; e++) {
|
|
2141
|
-
let t = s[e], n = t.getAttribute(Ft), r = t.offsetTop;
|
|
2142
|
-
a.set(n, r);
|
|
2143
|
-
let c = i.get(n);
|
|
2144
|
-
c !== void 0 && c !== r && o.push({
|
|
2145
|
-
element: t,
|
|
2146
|
-
delta: c - r
|
|
2147
|
-
});
|
|
2148
|
-
}
|
|
2149
|
-
if (r.current = a, o.length !== 0) if (n.current) n.current = !1;
|
|
2150
|
-
else {
|
|
2151
|
-
for (let { element: e, delta: t } of o) e.style.transition = "none", e.style.transform = `translateY(${t}px)`;
|
|
2152
|
-
e.current.offsetHeight;
|
|
2153
|
-
for (let { element: e } of o) e.style.transition = "transform 200ms ease", e.style.transform = "", e.addEventListener("transitionend", function t() {
|
|
2154
|
-
e.style.transition = "", e.removeEventListener("transitionend", t);
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
var Lt = (0, o.memo)((e) => {
|
|
2160
|
-
let { id: t, disabled: n, children: r } = e, { setNodeRef: c, transform: l, transition: u, isDragging: d, listeners: f } = Mt({
|
|
2161
|
-
id: t,
|
|
2162
|
-
disabled: n
|
|
2163
|
-
});
|
|
2164
|
-
return (0, s.jsx)(i, {
|
|
2165
|
-
ref: c,
|
|
2166
|
-
...(0, o.useMemo)(() => {
|
|
2167
|
-
if (!f) return f;
|
|
2168
|
-
let e = {};
|
|
2169
|
-
for (let [t, n] of Object.entries(f)) e[t] = (e, ...t) => {
|
|
2170
|
-
(e?.target)?.closest?.("button, input, textarea, select, a[href], [contenteditable=\"true\"], [role=\"combobox\"]") || n(e, ...t);
|
|
2171
|
-
};
|
|
2172
|
-
return e;
|
|
2173
|
-
}, [f]),
|
|
2174
|
-
[Ft]: t,
|
|
2175
|
-
className: a("sxl-sortable-card", { "sxl-dragging": d }),
|
|
2176
|
-
sx: {
|
|
2177
|
-
flex: "0 0 auto",
|
|
2178
|
-
borderRadius: (e) => e.spacing(1.25),
|
|
2179
|
-
boxShadow: d ? 6 : void 0,
|
|
2180
|
-
...n ? null : {
|
|
2181
|
-
cursor: d ? "grabbing" : "grab",
|
|
2182
|
-
"&:active": { cursor: "grabbing" }
|
|
2183
|
-
},
|
|
2184
|
-
...d ? { "& *": { cursor: "grabbing !important" } } : null
|
|
2185
|
-
},
|
|
2186
|
-
style: {
|
|
2187
|
-
transform: O.Translate.toString(l),
|
|
2188
|
-
transition: u,
|
|
2189
|
-
touchAction: "manipulation",
|
|
2190
|
-
...d ? {
|
|
2191
|
-
position: "relative",
|
|
2192
|
-
zIndex: 1
|
|
2193
|
-
} : null
|
|
2194
|
-
},
|
|
2195
|
-
children: r
|
|
2196
|
-
});
|
|
2197
|
-
});
|
|
2198
|
-
Lt.displayName = "SortableCard";
|
|
2199
|
-
export { Pt as n, It as r, Lt as t };
|