@sheetxl/studio-vanilla 0.8.0-beta.10 → 0.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/1oQRbol_4RzeM8pE.mjs +12 -0
- package/{cdn/assets/CwqRA5h1u92Cyit-.js → browser/esm/30kI2LkOs3zgefE5.mjs} +2 -2
- package/browser/esm/{BCWTI3jdTPG37r8W.mjs → 4JJNcz4YU6jhtSoO.mjs} +3 -3
- package/browser/esm/4o4C9bFlmQd0jPCw.mjs +310 -0
- package/browser/esm/6bLEYJYXAK-pOt4_.mjs +294 -0
- package/{cdn/assets/J3hutJxqQiHENpIe.js → browser/esm/8j7_68o_ftwk3Slv.mjs} +120 -118
- package/browser/esm/{BN2d5U1nw7pRtOrn.mjs → 9MTXF6MTjOgoHb-7.mjs} +1 -1
- package/browser/esm/9nCLSPKkGRmkIcuH.mjs +1694 -0
- package/browser/esm/{Dwxz0s23ra1tRtsH.mjs → 9wo9OtQmIPqM31Sy.mjs} +2 -2
- package/browser/esm/B-O2rWzzFV43__aU.mjs +9523 -0
- package/browser/esm/{B7iV5qzlmJlM2nQv.mjs → B-iVqSEgzuf6m47x.mjs} +2 -2
- package/browser/esm/{x6GcENwqoUVbd60j.mjs → B0ko2JVTNhsWWWTe.mjs} +1 -1
- package/{cdn/assets/pc49xtHdprXZLW2X.js → browser/esm/B1SstI4rcUe8OJ-b.mjs} +1 -1
- package/browser/esm/{CqoHxlGpZ3yzPj5V.mjs → B31Krc6W_iL-2TQt.mjs} +12 -12
- package/browser/esm/{B00ixdmb8-O5ijEp.mjs → B3ZFz_Z4E28AFJS3.mjs} +1 -1
- package/browser/esm/{PtGiIWFBYP-ujLmf.mjs → B5XpACGLcy3zYqlT.mjs} +1 -1
- package/browser/esm/{BsUrrzAgfyAdcCJW.mjs → B5cwFaYPxXTSh6vo.mjs} +2 -2
- package/browser/esm/{BAdRecWK1maKGOZd.mjs → B8VbElyA5zbjFNs1.mjs} +1 -1
- package/browser/esm/B90jZwl6n7fpLoRK.mjs +89 -0
- package/browser/esm/{ZbGPiRN9j0629JJQ.mjs → BBS47_AI2p2r0QxX.mjs} +2 -2
- package/browser/esm/BBrVIUFf4NJSXblH.mjs +3716 -0
- package/browser/esm/{DRm1R4uVOkaMfXNI.mjs → BDWKrgmyLVPkX3h0.mjs} +1 -1
- package/browser/esm/{qYca4mdySLkACfo1.mjs → BF9tQV6iUGvJK6QH.mjs} +1 -1
- package/browser/esm/{CRAzVh3CaAa16avf.mjs → BFL9_-ur7Lhhkg2F.mjs} +36 -35
- package/browser/esm/{ErIXJFPDFXwGEL8V.mjs → BFvZ5JI-hBk3FNJW.mjs} +2 -2
- package/browser/esm/{CSEMxasVyGCekxKf.mjs → BGDndra6U64QPYm4.mjs} +1 -1
- package/browser/esm/BHAYf-zNKfoCTsTT.mjs +86 -0
- package/browser/esm/{ClJvUf8aR8vNC_3Z.mjs → BHKm0iIUckEaUMLV.mjs} +3 -3
- package/browser/esm/{_MPToH4oMe4rhTdZ.mjs → BIo-ELlYF8kzkLvH.mjs} +3 -3
- package/browser/esm/{CCd192S7yVpc6iOe.mjs → BJKUgLha2XmF08mO.mjs} +17 -16
- package/browser/esm/{DvWCBuY0jAL-RmJV.mjs → BKS9kx_PEanwLUuU.mjs} +793 -787
- package/browser/esm/BLoUmwvJ5t1eBdZ8.mjs +104 -0
- package/browser/esm/{DSviq1TNoiIAGW7W.mjs → BN630GsmoKmNU7ur.mjs} +1 -1
- package/browser/esm/{CVxlfyE-gnJM8hOz.mjs → BNWxTMoiH1NkkmAh.mjs} +8 -8
- package/{cdn/assets/DQIRFXG4MveFkK3I.js → browser/esm/BNavcunnTVMpcxDs.mjs} +1 -1
- package/browser/esm/BRXV-NrDDC3ZrpMt.mjs +55466 -0
- package/browser/esm/{FO1Jezau486fH4kN.mjs → BRxDfB_xWCqmT-hR.mjs} +1 -1
- package/browser/esm/{DnyZmrwPxShyeUjm.mjs → BT-Bqh_7C0pZ5FlX.mjs} +118 -269
- package/{cdn/assets/DfESVLC8CAi8m8A7.js → browser/esm/BUWDOAY73JPQoNzs.mjs} +1 -1
- package/browser/esm/{CHMqT9DzYKTxPfP6.mjs → BV2wamfivt6aMUhk.mjs} +1 -1
- package/browser/esm/BWQqT6R8MZkUWAe9.mjs +7 -0
- package/browser/esm/BYBEZ_hZVBDv3eEU.mjs +1389 -0
- package/browser/esm/B_9GaCdaUs6AlWf3.mjs +1417 -0
- package/browser/esm/BaNdc_0Lf4FVPUW5.mjs +9715 -0
- package/{cdn/assets/BuYS_ZjSlcvWZ1JC.js → browser/esm/BaWDPv9pjRGmAQva.mjs} +2667 -2091
- package/{cdn/assets/i0P63Wd0RRlgJotb.js → browser/esm/BaaB1nz3Z8IIy5XL.mjs} +1 -1
- package/browser/esm/BbUF-CQBg3zQ_h9S.mjs +323 -0
- package/browser/esm/{cwuYkcKwsKkPe3gG.mjs → BdN5nsKULzTfOgkY.mjs} +2 -2
- package/{cdn/assets/DXo8mR6t5HGsmTcu.js → browser/esm/Bdt5IdX6u9CLkJdC.mjs} +1 -1
- package/browser/esm/BfyWJYjj89_N0zfg.mjs +213 -0
- package/browser/esm/{sDVzjXC1mS5rucF5.mjs → BgE-AWbezo3ZcNQU.mjs} +576 -696
- package/browser/esm/Bi8dy2A1euGZeE4C.mjs +780 -0
- package/browser/esm/{f1OJemsiZnbwnds-.mjs → BiJSAELjvcGbbrB5.mjs} +15 -15
- package/browser/esm/{sxxbiJiCMOW2Eivd.mjs → BiLb98_m7AwaRkX6.mjs} +7477 -5995
- package/{cdn/assets/FjNOhkR7-JAIaRP6.js → browser/esm/BiSGu7XE2wP-COS-.mjs} +1 -1
- package/browser/esm/Bj5v_mMZnT65-EYm.mjs +521 -0
- package/browser/esm/Bkf3SJynCJKiDDk9.mjs +1552 -0
- package/browser/esm/{iC69oOND5T8khIWf.mjs → BlC9vz791AaVSbC5.mjs} +6 -6
- package/browser/esm/{vGKTE7yjY8y-XnsW.mjs → BldyCakCtPYtGXcm.mjs} +2 -2
- package/{cdn/assets/DVpi1vC8ixXvUQG_.js → browser/esm/BovxopS-62ImjzWq.mjs} +1 -1
- package/browser/esm/BpJup_wq5-qM4TIN.mjs +390 -0
- package/browser/esm/Bqf1HNOGA-pPTdl2.mjs +322 -0
- package/browser/esm/{BlPn_DXaEXOPxMxC.mjs → Br1Vf_O1YcX7sOJE.mjs} +1 -1
- package/{cdn/assets/W1d6GQyySAHrtjEu.js → browser/esm/BsVFvNqmAQw6ai0x.mjs} +1626 -1018
- package/browser/esm/Bt4FhwPuIE1PRsBM.mjs +193 -0
- package/{cdn/assets/C3r_9RqlWrEmlXZ1.js → browser/esm/Bx9qg5bL1Fzbvk1z.mjs} +1 -1
- package/browser/esm/BzZWDsHSEnXClrlJ.mjs +7 -0
- package/browser/esm/{CaS8_J5HfBRk5_Nw.mjs → C02QWvfYw-El2r9j.mjs} +32 -32
- package/{cdn/assets/BSCja5yvevmKZPBB.js → browser/esm/C4Vjb-3d4J7GxBGw.mjs} +1 -1
- package/{cdn/assets/DjtXfgbmXjUAoG0y.js → browser/esm/C635yBozh_t0DPLr.mjs} +1 -1
- package/browser/esm/{djM9mJznx8GzVq51.mjs → C7GZIkD5Jz7A5r_a.mjs} +14 -14
- package/{cdn/assets/_t0Mx-mUFVtmVNkU.js → browser/esm/C7Yr6jxJx_xXDUR2.mjs} +1 -1
- package/browser/esm/C8XNRmzAp2MWyeej.mjs +42 -0
- package/{cdn/assets/CQOyeq_-pg3CM-uA.js → browser/esm/C9oBHe1kBAevREtg.mjs} +1 -1
- package/browser/esm/{_zRV52yhE4gPf3XI.mjs → C9oIU866QVMlgGyQ.mjs} +55 -55
- package/browser/esm/{SNze-adFJwKuGSQW.mjs → CAeD2o0Ls4sIyokt.mjs} +1 -1
- package/browser/esm/{C9NyIoUahFiyRCxP.mjs → CBRVZmrwcMfEHc5P.mjs} +1 -1
- package/browser/esm/{DTn9oYyiIYgyijAk.mjs → CDWuursC7HDw-bO8.mjs} +25 -24
- package/browser/esm/{DoS1sE431fEhdOQb.mjs → CF6TsrZkUX12RY9E.mjs} +4 -4
- package/browser/esm/{C4VT6lNbpaDXCpBb.mjs → CFPaTEuxUxH48Dnc.mjs} +2 -2
- package/browser/esm/{Dy44qJVkwNseMG-3.mjs → CHGtyPsxQrhRB5bz.mjs} +1 -1
- package/browser/esm/{pKc_RPdZPLAgvNDh.mjs → CI2oW6QUhftq4Zxe.mjs} +2 -2
- package/browser/esm/CIoNg-5VkB5Nf7xb.mjs +256 -0
- package/browser/esm/{CnWNviK4qlX2GVl6.mjs → CJJ6JyOoWWElIIFf.mjs} +12 -13
- package/{cdn/assets/gpQ4FdJMbIScKnS_.js → browser/esm/CJdgS3TQ_2BcjCW6.mjs} +8 -8
- package/browser/esm/{DNaPo7BQu6hr1fWq.mjs → CK5tMP35Iv98na5Z.mjs} +1 -1
- package/browser/esm/CLesyjpCdfNlo_s3.mjs +210 -0
- package/browser/esm/CMCV8PICIpUjWafw.mjs +12816 -0
- package/browser/esm/{D2coM-dNrlLpnUu5.mjs → CN1_Dq2VdyHJ8cMR.mjs} +6 -6
- package/browser/esm/{DLhK_oSGg71ry6-m.mjs → CNTmB0u0Mmzslqit.mjs} +6 -6
- package/browser/esm/{D-55MlIn7Wo_hdjI.mjs → CNsG-HP7MrYv4ANy.mjs} +328 -110
- package/browser/esm/{DAE3Kv0Vs0VuBecT.mjs → COtPL6l443kTvLpc.mjs} +1 -1
- package/browser/esm/{D7DWH3-5fBNx8jtc.mjs → CP_GYwZVbwA9vzxA.mjs} +2 -2
- package/{cdn/assets/CFvKDDbrL3wpXnQH.js → browser/esm/CRc3MloTINO1cx9Y.mjs} +1 -1
- package/browser/esm/{C5EKgE9Owsc_juw-.mjs → CSUhHtPXRx-MiOJ0.mjs} +1 -1
- package/browser/esm/CVB9R-zt99a3DSPN.mjs +3091 -0
- package/{cdn/assets/BoFx07POTorOb5g-.js → browser/esm/CVGsocXM6EdK3av8.mjs} +2538 -1728
- package/browser/esm/CVg6x0dnCUjr2iMY.mjs +7723 -0
- package/browser/esm/{DxwprgjYhcmfDbXH.mjs → CWLvkJU2bOMidhWV.mjs} +17 -17
- package/browser/esm/{BBjgqNlHm-ssbSAG.mjs → C_lz-BVnapcDsXH0.mjs} +1 -1
- package/browser/esm/C_x94fC0O4_OpNRB.mjs +101 -0
- package/browser/esm/CczQS-TJwiXbRhYC.mjs +200 -0
- package/{cdn/assets/RfHd1JATBlcsfLPv.js → browser/esm/CdOK8MepIC51cdz1.mjs} +1 -1
- package/browser/esm/{rkTVQiYG3wd8oPom.mjs → Cdg4TpupUeYIiz2B.mjs} +3 -3
- package/browser/esm/Cf-LLddGP5wUU4hH.mjs +8 -0
- package/browser/esm/Cf5dlM0Pkqz1y7Nw.mjs +387 -0
- package/{cdn/assets/BI6afPOpgNYkzIWv.js → browser/esm/CfGCIpWOVrKyroeI.mjs} +1775 -1731
- package/browser/esm/Cgff_mU98dEc-kSv.mjs +1723 -0
- package/browser/esm/{CvWGtHslTdesJik-.mjs → ChTKR1wEz8hgPWRE.mjs} +10 -9
- package/{cdn/assets/BAH_cWcQEIBKWnl6.js → browser/esm/Cl1bVTUk0rQUQT9p.mjs} +1 -1
- package/browser/esm/{CDsuiN--qdALFyql.mjs → ClKS_5IuXertzGEp.mjs} +2 -2
- package/browser/esm/{CWJzHmEgahdOfNjH.mjs → Cnx0vOv2ePi94hMN.mjs} +1 -1
- package/browser/esm/{BVJUL2HhoedhbwVy.mjs → CpUZbIdONEC6mghF.mjs} +11 -10
- package/browser/esm/{BxhKgo_rPQ2d12HT.mjs → CpzzMIebww7p4m_V.mjs} +4 -4
- package/browser/esm/CtX8ODZQGoUqUie3.mjs +162 -0
- package/browser/esm/{BeMLfv6hWo15VCIL.mjs → CwIcsETflE-gpYF6.mjs} +23 -23
- package/{cdn/assets/CVcCUfSRsiZ1-6hs.js → browser/esm/CzpnOqHBXxESl5Ts.mjs} +1 -1
- package/browser/esm/{mZ92wNrHVpYdli1U.mjs → D3HgYapmfdL-RhEV.mjs} +5 -5
- package/browser/esm/{ByUcqyCNfqi5Mm7w.mjs → D46u8d3O49bDLflJ.mjs} +1 -1
- package/browser/esm/{px-aQ8dMjiWag_pV.mjs → D5KlrP1rlBZO7HyP.mjs} +1 -1
- package/{cdn/assets/DONxZZT2Iwu7psS5.js → browser/esm/D5wm_fLXLK3Ve1ir.mjs} +6 -5
- package/browser/esm/{DLqc11Pf8vaE4Q5B.mjs → D90zUAjsvdYt4zAc.mjs} +1 -1
- package/browser/esm/DAEoN5lF7Xw1VMoH.mjs +520 -0
- package/browser/esm/DCA1pexOA5sUcYVT.mjs +181 -0
- package/browser/esm/{D0r2MPlWLnStWJNW.mjs → DD6l6wL5lCLFdLOw.mjs} +144 -134
- package/browser/esm/DFFX8FaN8Xyq2YvS.mjs +131 -0
- package/browser/esm/DFzpsLSn8pIrTlLO.mjs +95 -0
- package/browser/esm/DJMHQzwcPgTpS0f5.mjs +1240 -0
- package/browser/esm/{VwGokBaawZfZiV2X.mjs → DJhxuNvyE7FzNXTv.mjs} +1 -1
- package/{cdn/assets/H-JnJQMcZQbpvjdb.js → browser/esm/DK3BYp4NTX8n36q5.mjs} +1 -1
- package/browser/esm/DKXz55ACPsNADpJo.mjs +9 -0
- package/browser/esm/{CZOJogyZqMfUxcXj.mjs → DKxCeh3yib-owCxs.mjs} +1 -1
- package/browser/esm/{ycmpAs4kQfeh78Pa.mjs → DL57MpyMuNosTcrB.mjs} +1 -1
- package/browser/esm/DN14h84frphTmQnr.mjs +367 -0
- package/browser/esm/{Cpza4AeltEVHASij.mjs → DPE3kSrS3RMPgCwe.mjs} +3 -3
- package/browser/esm/DQsUwoGymfvPjfBo.mjs +86 -0
- package/browser/esm/{DJqj66SnUcx0QmSN.mjs → DUZyG-8cyY9A0Zg-.mjs} +1 -1
- package/browser/esm/{DNCqTF9EbT-U1TdV.mjs → DWlIofDXtKiTFRl3.mjs} +3 -3
- package/browser/esm/{CfltjY8hY-RPwwpd.mjs → DWs_Iccs4ADzMYw7.mjs} +7 -7
- package/browser/esm/DZU9jkqaNCYuvDzi.mjs +8196 -0
- package/browser/esm/DZxgKlZVMKS5Ta04.mjs +199 -0
- package/browser/esm/D_RNoIZHUhzXpaw6.mjs +232 -0
- package/{cdn/assets/anQDUZhHMDPi1eha.js → browser/esm/DaJhQHZ8na6yCHir.mjs} +149 -149
- package/{cdn/assets/BWo1N4YbK_zGU0nu.js → browser/esm/DagxhIjpKea9MwI8.mjs} +1 -1
- package/browser/esm/{DjdkGy-EI1kSo226.mjs → DbewMnLKZoGLGFNh.mjs} +1 -1
- package/browser/esm/DcuXU4w8jFVnuLgh.mjs +60 -0
- package/browser/esm/Df4WRA6refKZ9x9I.mjs +141 -0
- package/browser/esm/Dg8kGViumXiDAGwT.mjs +569 -0
- package/{cdn/assets/DWgp4t9N9u0eWthH.js → browser/esm/DhLN5r1sTHL_BWeH.mjs} +1 -1
- package/browser/esm/{ZxsFYopF0_WWqw4Q.mjs → DhU_l9pcEddg9s24.mjs} +1 -1
- package/browser/esm/{CTI-mCJbJzitJZwj.mjs → DiabpzKzIUUyat-1.mjs} +1 -1
- package/browser/esm/Dic2cHiohtgkK2jT.mjs +89 -0
- package/browser/esm/DizmXzo0RwB1aISW.mjs +86 -0
- package/browser/esm/{DrI_S0A9TQvriTua.mjs → Dl29uXIaOLiBIDEI.mjs} +1 -1
- package/browser/esm/{BtGmrIqU9W1L8zfZ.mjs → Dl40S1lFKvsN0DvK.mjs} +1 -1
- package/{cdn/assets/DxcRLd7wmBGDgJsA.js → browser/esm/DlWoVcsWZHiN-EYf.mjs} +1 -1
- package/{cdn/assets/DQjxp9lDP9DzP8ah.js → browser/esm/DmkrxPsGTgcfP5Rz.mjs} +56 -56
- package/browser/esm/{rY-dC3WB558TIbum.mjs → Dn6OF7owJvTQrrts.mjs} +4 -4
- package/browser/esm/DpRsbOf9X17if0J7.mjs +1645 -0
- package/browser/esm/Drw9hD1JE7JCMign.mjs +422 -0
- package/browser/esm/{BThOwSja2ra4xejQ.mjs → DsHzYBPSadCXZi-n.mjs} +1466 -1388
- package/browser/esm/{LAbUYeLiPG8z9cmA.mjs → DtegXHCQSKTTGQeu.mjs} +15 -15
- package/browser/esm/{C-0viTjg1dT2F-sk.mjs → Dut7EHGO0G5wuZvA.mjs} +2 -2
- package/browser/esm/{kVBPUUnVyZfb8pf3.mjs → DwhGTfGva3F7vuwp.mjs} +5 -5
- package/{cdn/assets/DYvBgX17ZerZSHEJ.js → browser/esm/DxwdHqgA78DuBgP5.mjs} +30 -31
- package/browser/esm/{aUREGNA8H7p4BpMK.mjs → DychvmektExlalXS.mjs} +3 -3
- package/{cdn/assets/CBdNC7BOfc5TewHU.js → browser/esm/DyeYHUP9q10K48wL.mjs} +1 -1
- package/{cdn/assets/BsTFy_iJXJYmaO3Z.js → browser/esm/DyvMwqOmBhQFYxOo.mjs} +5 -5
- package/browser/esm/{Cy00y9b9j17Txyv1.mjs → DzF6mYUZfggTAjhM.mjs} +1 -1
- package/browser/esm/Dzj3KK6YPVXSha8q.mjs +5117 -0
- package/browser/esm/Dzyz_pks7xPGZbyH.mjs +23434 -0
- package/browser/esm/{Dv8aQFTTaQBJKDDk.mjs → GA5X6vLsOcXufGyF.mjs} +1 -1
- package/browser/esm/Hx70AIfSA_0RVX86.mjs +415 -0
- package/browser/esm/{DaMKWQQTgIF08cT7.mjs → JIICfCUe6qam-nnP.mjs} +7 -7
- package/browser/esm/{UTZcodQydbuMfCOS.mjs → Jn0_AtebABdIzyQ8.mjs} +1 -1
- package/browser/esm/{CtZPEkaldpJpoGtW.mjs → KG-A3VX4kcf2uLJI.mjs} +67 -67
- package/browser/esm/{CMxbiQ5J79M3n1tk.mjs → PD_ckP5IyZurtALu.mjs} +723 -373
- package/{cdn/assets/lqknEt3DTma5Juxs.js → browser/esm/PFd1HLX9x3NbZS0Q.mjs} +1 -1
- package/browser/esm/{D2aQPiGg0ZoMYzuf.mjs → Q4gowihHveaVg346.mjs} +5 -5
- package/browser/esm/TEqlVdpb4Wjm-WJR.mjs +281 -0
- package/browser/esm/{DGcvio2uhlrsE3ZY.mjs → Ub7lo1Zsgc4OkWHw.mjs} +10 -10
- package/browser/esm/{CxCipDFamYSOctBo.mjs → VHANuEgclliEVOJy.mjs} +48 -46
- package/browser/esm/{Db6Tvr45TS9J5Qsb.mjs → WGYh_LRO1dkbp-TV.mjs} +35 -33
- package/browser/esm/{ByqhqEMBLrnkaPKE.mjs → WeD0V8DDCj3KQ_8p.mjs} +26 -24
- package/browser/esm/{DG3BfxRsbjey-B7E.mjs → XYN8zIYF95HfOLO2.mjs} +2 -2
- package/browser/esm/XvS1NvLqAFQgx6eS.mjs +7 -0
- package/{cdn/assets/Dc2ZwgbIEgYWwAsF.js → browser/esm/Z10MZFA0Sc2Zcelz.mjs} +1 -1
- package/browser/esm/{-LoBx7J6imeqaxCq.mjs → bFtJ6ds2ojy78Wre.mjs} +7 -7
- package/browser/esm/{DqBj-9o7UdXu4qhb.mjs → bTZCD31OE4KkUy4u.mjs} +1 -1
- package/browser/esm/{CQuv-nk5jtXUfu7C.mjs → bYlwY2JZnvT1cbtL.mjs} +2 -2
- package/browser/esm/{BaEZmurTZnX_yfKD.mjs → buJRIWKU9gQ4TTK_.mjs} +323 -369
- package/{cdn/assets/BPrHgyAsm2Htx15h.js → browser/esm/c6MwBF7fqj-4Wqct.mjs} +1 -1
- package/browser/esm/d3pzf6IOaGjo_S-F.mjs +2213 -0
- package/browser/esm/{DSf-Db1h8rlW2A6n.mjs → e5QfIq2gAzQVRtfG.mjs} +5 -5
- package/browser/esm/{DGuynZFJ9tqziqQs.mjs → gTTt3H5M0Lh8VxjO.mjs} +7 -7
- package/browser/esm/index.mjs +49 -645
- package/{cdn/assets/BhkeuRcx8RlLCQ5E.js → browser/esm/lPeOxAutCOlSB-aC.mjs} +1 -1
- package/browser/esm/{BRfat1fV3oGLwvin.mjs → mjkAWxWBrwQpoEkc.mjs} +15 -15
- package/browser/esm/{Bi5-feQLtwpV6Ai8.mjs → nmaneEnoRhUuMliV.mjs} +5 -5
- package/browser/esm/{DeUXRggj8Oz9ru_i.mjs → oLOwgPmipnKc68nJ.mjs} +1 -1
- package/browser/esm/{BMlPFJ1glExv-70Z.mjs → oY2yN-_0_AcCI46E.mjs} +1 -1
- package/browser/esm/szeZ7VgnRHyi2DxR.mjs +381 -0
- package/{cdn/assets/CTdFZ_I-41Vr6Dy4.js → browser/esm/tQAwA9RKsgzjziNe.mjs} +1 -1
- package/{cdn/assets/J9i3r1fU0H10b2hX.js → browser/esm/t_7A_GdY394OUV4v.mjs} +1 -1
- package/browser/esm/uBm_7th3ordJJKKM.mjs +1298 -0
- package/browser/esm/vY2ZLR024kVOwWej.mjs +36 -0
- package/browser/esm/{DQEjvIGMgEkiaP6J.mjs → xUNkyQFYnzQAzsVs.mjs} +1 -1
- package/browser/esm/xhVehZswNSGVAhdd.mjs +195 -0
- package/{cdn/assets/BwOxnbR61WFJwy0A.js → browser/esm/y-iW7vsJV47pYbw4.mjs} +1 -1
- package/browser/esm/y5zzqXzWZt9iBT17.mjs +5632 -0
- package/{cdn/assets/B0Wjc3lwtjKMwnvn.js → browser/esm/y8mfWM7VlyfJEEwg.mjs} +1 -1
- package/{browser/esm/M7RYrx20B_Yl_euJ.mjs → cdn/assets/03NnLxMlQLUwCU6J.js} +8 -8
- package/cdn/assets/1oQRbol_4RzeM8pE.js +12 -0
- package/cdn/assets/{CILUMtSddGz7WXEv.js → 3Oqq1u2C8zC0TeW9.js} +84 -84
- package/cdn/assets/4uPsJWrLx7xRHQAh.js +639 -0
- package/cdn/assets/{ENtt4kmaU9mJfVEp.js → 6GgPtwsOcxg8XpRN.js} +10 -10
- package/cdn/assets/{D8DghdqjOtBzO2Wx.js → 7twUDisI3AH_vo2v.js} +4 -4
- package/cdn/assets/{BeQ95CzwR65il0CK.js → 8CW-puLLSNyeaGce.js} +2 -3
- package/cdn/assets/{BB4MW8sSYEXjPvvf.js → 8yRVrfAZmWoSynP2.js} +5 -5
- package/cdn/assets/{BN2d5U1nw7pRtOrn.js → 9MTXF6MTjOgoHb-7.js} +1 -1
- package/cdn/assets/9zx-c-XsXQJu3H6F.js +237 -0
- package/cdn/assets/B-aF0nVKMi0rBQ-X.js +257 -0
- package/cdn/assets/{x6GcENwqoUVbd60j.js → B0ko2JVTNhsWWWTe.js} +1 -1
- package/{browser/esm/pc49xtHdprXZLW2X.mjs → cdn/assets/B1SstI4rcUe8OJ-b.js} +1 -1
- package/cdn/assets/{B00ixdmb8-O5ijEp.js → B3ZFz_Z4E28AFJS3.js} +1 -1
- package/cdn/assets/B4zK-38sPk49SiBE.js +9524 -0
- package/cdn/assets/{PtGiIWFBYP-ujLmf.js → B5XpACGLcy3zYqlT.js} +1 -1
- package/cdn/assets/B6hsm_RseP5jRKxa.js +100 -0
- package/cdn/assets/{DHH_uKVzQ_kRYO2N.js → B71MtA2mmixmeooi.js} +18 -18
- package/cdn/assets/B7L2gEZlcb8lr2A4.js +8196 -0
- package/cdn/assets/{BAdRecWK1maKGOZd.js → B8VbElyA5zbjFNs1.js} +1 -1
- package/cdn/assets/B9dUWlxApLMvjz60.js +220 -0
- package/cdn/assets/B9w9g_nectPJhun5.js +1724 -0
- package/cdn/assets/{AjMG7Fb9r4Fk7Hsf.js → BCypA6VuKdd2n_ru.js} +19 -18
- package/cdn/assets/{DRm1R4uVOkaMfXNI.js → BDWKrgmyLVPkX3h0.js} +1 -1
- package/cdn/assets/BETDm_1AaWuW6BVj.js +516 -0
- package/cdn/assets/{C32co-XulWTkEKrW.js → BEvqzG-mTBe_4aVC.js} +2 -2
- package/cdn/assets/{qYca4mdySLkACfo1.js → BF9tQV6iUGvJK6QH.js} +1 -1
- package/cdn/assets/BFKaVO5u424S8iQa.js +86 -0
- package/cdn/assets/{CSEMxasVyGCekxKf.js → BGDndra6U64QPYm4.js} +1 -1
- package/cdn/assets/BI1IDPvx--ARef3O.js +196 -0
- package/cdn/assets/{Cw7AJWd0S2sjRmr6.js → BJ5RRYxWA_yTbVpr.js} +1478 -1400
- package/cdn/assets/BJV4kSnvZHNfd68y.js +193 -0
- package/cdn/assets/BK2u8-YC8sG_k5G1.js +1299 -0
- package/cdn/assets/{DSviq1TNoiIAGW7W.js → BN630GsmoKmNU7ur.js} +1 -1
- package/{browser/esm/DQIRFXG4MveFkK3I.mjs → cdn/assets/BNavcunnTVMpcxDs.js} +1 -1
- package/cdn/assets/BORHWDUKR6caukc5.js +199 -0
- package/cdn/assets/BOeafp2_IuiQUCy9.js +7 -0
- package/cdn/assets/{FO1Jezau486fH4kN.js → BRxDfB_xWCqmT-hR.js} +1 -1
- package/{browser/esm/DfESVLC8CAi8m8A7.mjs → cdn/assets/BUWDOAY73JPQoNzs.js} +1 -1
- package/cdn/assets/{0vqRTRN0wEzWao1c.js → BUsC6YAGDNArajFL.js} +75 -74
- package/{browser/esm/ztqpWR65YYMZ3EPk.mjs → cdn/assets/BV13zVUdMca1rMPB.js} +120 -118
- package/cdn/assets/{C9NyIoUahFiyRCxP.js → BV2wamfivt6aMUhk.js} +1 -1
- package/cdn/assets/BWbSAM8vJA9oOVLo.js +46 -0
- package/cdn/assets/{De2z8LdHaWRFiR5T.js → BXVCl_xwTk61fpO9.js} +2 -2
- package/cdn/assets/BZEFRQpz68GXn6T9.js +96 -0
- package/cdn/assets/{wM7DzeOpoEGBVDBe.js → B_sANJqcUwqmlTx5.js} +2 -2
- package/{browser/esm/i0P63Wd0RRlgJotb.mjs → cdn/assets/BaaB1nz3Z8IIy5XL.js} +1 -1
- package/cdn/assets/{DckmFyHxGX4Y1gOq.js → BbO2UBFWu05VAtNb.js} +18 -17
- package/cdn/assets/{CCvBdPu7W2ZF6A9J.js → BdW05SsbRlVhxGr6.js} +3 -3
- package/cdn/assets/BdnTLvN0grpQAsLF.js +8 -0
- package/{browser/esm/DXo8mR6t5HGsmTcu.mjs → cdn/assets/Bdt5IdX6u9CLkJdC.js} +1 -1
- package/cdn/assets/Bebab8nHNHqve2AI.js +233 -0
- package/{browser/esm/FjNOhkR7-JAIaRP6.mjs → cdn/assets/BiSGu7XE2wP-COS-.js} +1 -1
- package/cdn/assets/BjAnEBtnBD5O0-sc.js +106 -0
- package/cdn/assets/{hg8WYI0Yy4WPPPoP.js → BmWMHgdcbZuZUGtm.js} +11 -11
- package/{browser/esm/DVpi1vC8ixXvUQG_.mjs → cdn/assets/BovxopS-62ImjzWq.js} +1 -1
- package/cdn/assets/Bqlj5Zz-vJpMDs6i.js +311 -0
- package/cdn/assets/{BlPn_DXaEXOPxMxC.js → Br1Vf_O1YcX7sOJE.js} +1 -1
- package/cdn/assets/{CSIZpJClc66_20kP.js → BuHsbgcxlvkOHGGR.js} +118 -269
- package/{browser/esm/C3r_9RqlWrEmlXZ1.mjs → cdn/assets/Bx9qg5bL1Fzbvk1z.js} +1 -1
- package/cdn/assets/BzZTldYRBXUqOINX.js +781 -0
- package/cdn/assets/C-_jzDXetpu0rH2K.js +8 -0
- package/cdn/assets/C2ydnpxcrFknfLw1.js +214 -0
- package/{browser/esm/BSCja5yvevmKZPBB.mjs → cdn/assets/C4Vjb-3d4J7GxBGw.js} +1 -1
- package/{browser/esm/DjtXfgbmXjUAoG0y.mjs → cdn/assets/C635yBozh_t0DPLr.js} +1 -1
- package/cdn/assets/C7FA7N-GON7DscOD.js +19 -0
- package/{browser/esm/_t0Mx-mUFVtmVNkU.mjs → cdn/assets/C7Yr6jxJx_xXDUR2.js} +1 -1
- package/cdn/assets/C7fZFw4yQ9VNHtnV.js +17 -0
- package/cdn/assets/C8XNRmzAp2MWyeej.js +42 -0
- package/{browser/esm/DAprxR00V9qvNLL2.mjs → cdn/assets/C9_WZzkqVDNPA1d0.js} +1708 -1660
- package/{browser/esm/CQOyeq_-pg3CM-uA.mjs → cdn/assets/C9oBHe1kBAevREtg.js} +1 -1
- package/cdn/assets/{SNze-adFJwKuGSQW.js → CAeD2o0Ls4sIyokt.js} +1 -1
- package/cdn/assets/{CHMqT9DzYKTxPfP6.js → CBRVZmrwcMfEHc5P.js} +1 -1
- package/cdn/assets/CBsadiIVpXoTVHLj.js +183 -0
- package/{browser/esm/D88StfSjZJi5E8Xb.mjs → cdn/assets/CDv_hXnUZNB1HY3N.js} +2384 -1905
- package/cdn/assets/{CFBgmXap8kmumhoz.js → CELW1QxGUlPfcuHG.js} +144 -134
- package/cdn/assets/CF6YxjWkuaqaHcCi.js +2230 -0
- package/cdn/assets/{CbTN0q6XnYGJqyEp.js → CGklNVK7pkjOQ6XF.js} +261 -261
- package/cdn/assets/{Dy44qJVkwNseMG-3.js → CHGtyPsxQrhRB5bz.js} +1 -1
- package/cdn/assets/{D32D_biNXRCZ24vG.js → CIa9t2NsEFKqvGac.js} +10 -10
- package/cdn/assets/CIfJsifn66BBcj2W.js +86 -0
- package/cdn/assets/CIscj5V7u9g5ZxM3.js +7 -0
- package/cdn/assets/{BNsqqoZY7a4N1wWC.js → CJgN6A7fquRRWJ9h.js} +328 -110
- package/cdn/assets/{DNaPo7BQu6hr1fWq.js → CK5tMP35Iv98na5Z.js} +1 -1
- package/cdn/assets/CLDXVyr5jbJC7Ldf.js +7 -0
- package/cdn/assets/CLesyjpCdfNlo_s3.js +210 -0
- package/cdn/assets/{Dp-GJXOMz_b8qAxD.js → CMRiIxUHB5XcDtA8.js} +2 -2
- package/cdn/assets/{DAE3Kv0Vs0VuBecT.js → COtPL6l443kTvLpc.js} +1 -1
- package/{browser/esm/CFvKDDbrL3wpXnQH.mjs → cdn/assets/CRc3MloTINO1cx9Y.js} +1 -1
- package/cdn/assets/CS7L0XE_IvJKdpQH.js +416 -0
- package/cdn/assets/{C5EKgE9Owsc_juw-.js → CSUhHtPXRx-MiOJ0.js} +1 -1
- package/cdn/assets/{D-yz3V2UC54rwctD.js → CSpWGMyjLegYuwTq.js} +2 -2
- package/cdn/assets/CVCFVKDhgOFbBNWn.js +382 -0
- package/cdn/assets/{DSXJHEORGmMQX_Mb.js → CViBm-zHl4k8Znzm.js} +12 -12
- package/cdn/assets/{DZRm4H75lnEtOG8e.js → CWRXS9rkz8fCwbZH.js} +48 -46
- package/cdn/assets/CZ0iN5i3edmVHcRK.js +323 -0
- package/cdn/assets/{B3NWCYKXucbHhOix.js → C_Q71OCVP6nPyP4U.js} +26 -26
- package/cdn/assets/{BBjgqNlHm-ssbSAG.js → C_lz-BVnapcDsXH0.js} +1 -1
- package/cdn/assets/CbKXmBz5CY-IwYsS.js +132 -0
- package/cdn/assets/CbqZMJ1c683b5iE7.js +278 -0
- package/cdn/assets/CdDIc0DsAwHzxpeO.js +5117 -0
- package/{browser/esm/RfHd1JATBlcsfLPv.mjs → cdn/assets/CdOK8MepIC51cdz1.js} +1 -1
- package/cdn/assets/{C6INLvBy8kdzFpsX.js → CdW0mis0FyG90paw.js} +576 -696
- package/cdn/assets/{DicTo_3G-KZyWDiE.js → CevaeSbWdKO5qeRu.js} +294 -340
- package/cdn/assets/{DxisV9_27l_WU-nk.js → CeySvrdNiT00QQJC.js} +5 -5
- package/cdn/assets/Cf-LLddGP5wUU4hH.js +8 -0
- package/cdn/assets/{CIyaijfp6itgRpFM.js → Cf0bbHHOW6iwvyXg.js} +2 -2
- package/cdn/assets/CixdB4xXcQhebm5U.js +73 -0
- package/cdn/assets/{BelX6bvQPsGuo-x3.js → Cj2lJ05kVoDb5HGx.js} +2 -2
- package/cdn/assets/{CsrTRThObSryov1b.js → CkfqUcoAlpPupbbK.js} +2 -2
- package/cdn/assets/CkgK3CrVsGp5FE2i.js +2213 -0
- package/{browser/esm/BAH_cWcQEIBKWnl6.mjs → cdn/assets/Cl1bVTUk0rQUQT9p.js} +1 -1
- package/cdn/assets/Cl3d4ILjFxp4IdO9.js +3716 -0
- package/cdn/assets/ClY9HTqosClkllrU.js +522 -0
- package/cdn/assets/Cllqhal9LBm1K8Yq.js +391 -0
- package/cdn/assets/CnVY0qezymE7-eML.js +89 -0
- package/cdn/assets/{CWJzHmEgahdOfNjH.js → Cnx0vOv2ePi94hMN.js} +1 -1
- package/cdn/assets/{C7fu6LrSMBlHqwUy.js → CqmrD2Xs8MKJTO4v.js} +4 -4
- package/cdn/assets/Cw6ozEzvtFq_HVef.js +8 -0
- package/cdn/assets/{BzbP4jaN13wC9aSi.js → CzG0p4x8L99XEdym.js} +40 -40
- package/{browser/esm/CVcCUfSRsiZ1-6hs.mjs → cdn/assets/CzpnOqHBXxESl5Ts.js} +1 -1
- package/cdn/assets/D-hAYmuTa0x0_oI-.js +1552 -0
- package/{browser/esm/By3a43qwWICwXRmw.mjs → cdn/assets/D2H92O2Ji36qebTp.js} +2667 -2091
- package/cdn/assets/{ByUcqyCNfqi5Mm7w.js → D46u8d3O49bDLflJ.js} +1 -1
- package/cdn/assets/D51TEwta0ZXmlNrx.js +570 -0
- package/cdn/assets/{px-aQ8dMjiWag_pV.js → D5KlrP1rlBZO7HyP.js} +1 -1
- package/cdn/assets/{Cfg4Dtndwurxv9LM.js → D7g9SLSLSONiRP8_.js} +8 -8
- package/cdn/assets/D8fBDoXy-QzJqIfC.js +132 -0
- package/cdn/assets/D97AuczhOIBnqMXI.js +55466 -0
- package/cdn/assets/DBnswN0nPHV8TM2q.js +8 -0
- package/cdn/assets/DE9bhDAlUdLUngdj.js +1646 -0
- package/cdn/assets/{D_pMOq6FdH4RSBLc.js → DG4PyKuuGu6RkAEv.js} +810 -804
- package/cdn/assets/DG8R6bLrQPHjouy2.js +86 -0
- package/cdn/assets/{VwGokBaawZfZiV2X.js → DJhxuNvyE7FzNXTv.js} +1 -1
- package/{browser/esm/H-JnJQMcZQbpvjdb.mjs → cdn/assets/DK3BYp4NTX8n36q5.js} +1 -1
- package/cdn/assets/{CZOJogyZqMfUxcXj.js → DKxCeh3yib-owCxs.js} +1 -1
- package/cdn/assets/{ycmpAs4kQfeh78Pa.js → DL57MpyMuNosTcrB.js} +1 -1
- package/{browser/esm/Dme0qpRinBnhzp53.mjs → cdn/assets/DLEPPn_cPPydMrpU.js} +150 -148
- package/cdn/assets/{D-bNmX0QsA8SuT0m.js → DP1jRSok-1NvqrBz.js} +34 -34
- package/cdn/assets/{DJqj66SnUcx0QmSN.js → DUZyG-8cyY9A0Zg-.js} +1 -1
- package/cdn/assets/{Cv5PLuhEmh5IDHjb.js → DWoFVKQrI917IanL.js} +23 -23
- package/cdn/assets/DXhizwpX3GUT2ECx.js +90 -0
- package/cdn/assets/DYbOfw0BRA2hWOCP.js +1390 -0
- package/cdn/assets/DZo_DGKkHCqIyM5N.js +388 -0
- package/{browser/esm/DlOVZD0OiAjouS6-.mjs → cdn/assets/D_d2cK3aSl0eMBpj.js} +1626 -1018
- package/{browser/esm/BWo1N4YbK_zGU0nu.mjs → cdn/assets/DagxhIjpKea9MwI8.js} +1 -1
- package/cdn/assets/{DjdkGy-EI1kSo226.js → DbewMnLKZoGLGFNh.js} +1 -1
- package/{browser/esm/8-jmVNNbOHuXFdVQ.mjs → cdn/assets/DdXikMOzMIALd8bz.js} +120 -118
- package/cdn/assets/Dg3UJabBou63ReiH.js +12816 -0
- package/cdn/assets/Dg9ALylpMhftKvuI.js +23434 -0
- package/cdn/assets/DgQFdPeLRIkg5O3C.js +3093 -0
- package/{browser/esm/DWgp4t9N9u0eWthH.mjs → cdn/assets/DhLN5r1sTHL_BWeH.js} +1 -1
- package/cdn/assets/{ZxsFYopF0_WWqw4Q.js → DhU_l9pcEddg9s24.js} +1 -1
- package/cdn/assets/{CTI-mCJbJzitJZwj.js → DiabpzKzIUUyat-1.js} +1 -1
- package/cdn/assets/{DrI_S0A9TQvriTua.js → Dl29uXIaOLiBIDEI.js} +1 -1
- package/cdn/assets/{BtGmrIqU9W1L8zfZ.js → Dl40S1lFKvsN0DvK.js} +1 -1
- package/{browser/esm/DxcRLd7wmBGDgJsA.mjs → cdn/assets/DlWoVcsWZHiN-EYf.js} +1 -1
- package/cdn/assets/{B27vTQlxbHhSQJx8.js → DliTwLXIImeC0eub.js} +7803 -6320
- package/cdn/assets/{aHTKr1ijZ6bRi3Zg.js → DsRSG0tf_a2zWfcu.js} +4 -4
- package/cdn/assets/{7i4WSxDsu2ApJJ2_.js → DsXc1EO6csuKfV4l.js} +3 -3
- package/cdn/assets/DtO07D35O2tAh7f4.js +1241 -0
- package/cdn/assets/{C-0viTjg1dT2F-sk.js → Dut7EHGO0G5wuZvA.js} +2 -2
- package/cdn/assets/DvBV9E2CaadV0-OK.js +104 -0
- package/cdn/assets/{CakrxSS_RXtKmcUX.js → Dw7mCCAZtWzy1kDg.js} +99 -98
- package/{browser/esm/DEvZj68igS7Q8SZE.mjs → cdn/assets/DwITQzYKh_c7vCO8.js} +5 -5
- package/cdn/assets/{C0CeCYdLWLjySEFe.js → DwTdBuvtngstv-Ee.js} +15 -15
- package/cdn/assets/{CMVTwWHsRgyfSEDM.js → Dwb9z-Om5vH_9GFX.js} +67 -65
- package/{browser/esm/D-KZpU6HMaP4VUva.mjs → cdn/assets/Dwd9mENEUTKk45OD.js} +56 -56
- package/cdn/assets/{BvlfKrfrDhE9Jw4d.js → Dwm4Q509nQKTAHZp.js} +2 -2
- package/cdn/assets/{mK8HcIZyXkOTvL6E.js → DxI14nqCsNi-yexx.js} +7 -7
- package/cdn/assets/Dy07J9xUgFU8srvP.js +7723 -0
- package/{browser/esm/CBdNC7BOfc5TewHU.mjs → cdn/assets/DyeYHUP9q10K48wL.js} +1 -1
- package/cdn/assets/{Cy00y9b9j17Txyv1.js → DzF6mYUZfggTAjhM.js} +1 -1
- package/cdn/assets/{BpZ7P0CO148rR4zW.js → Dzlfx9-RfNxYludH.js} +20 -20
- package/cdn/assets/FjjP2q5AOiFod5IL.js +282 -0
- package/cdn/assets/{Dv8aQFTTaQBJKDDk.js → GA5X6vLsOcXufGyF.js} +1 -1
- package/cdn/assets/Ga_dmEQPXt-tMjfv.js +7 -0
- package/cdn/assets/HMCOTgDNR6bpWL7f.js +163 -0
- package/cdn/assets/{UTZcodQydbuMfCOS.js → Jn0_AtebABdIzyQ8.js} +1 -1
- package/cdn/assets/{CMxbiQ5J79M3n1tk.js → PD_ckP5IyZurtALu.js} +723 -373
- package/{browser/esm/lqknEt3DTma5Juxs.mjs → cdn/assets/PFd1HLX9x3NbZS0Q.js} +1 -1
- package/{browser/esm/B3Ii8x6RquHW1jMc.mjs → cdn/assets/PlCjmMBePH7hotkL.js} +12 -11
- package/cdn/assets/{Bgbi7BFR3rN5qj51.js → RZYxEHY1tap8fDMU.js} +22 -22
- package/cdn/assets/{w5IQWbJETgHhqMsY.js → V3xJfVu5YgTJE15l.js} +33 -33
- package/cdn/assets/{dn69mDhY7Xcc91kF.js → VtDou2czLTs_x_lJ.js} +20 -20
- package/cdn/assets/Xr_m9JQCcD2iBqdf.js +324 -0
- package/cdn/assets/{VCiu_neIjCTg2NUa.js → Y0Uf_lVRToNYi395.js} +634 -634
- package/{browser/esm/Dc2ZwgbIEgYWwAsF.mjs → cdn/assets/Z10MZFA0Sc2Zcelz.js} +1 -1
- package/cdn/assets/ZHMYKkw9GtA9PmwP.js +61 -0
- package/cdn/assets/ZaFy1hzL6cnNlROy.js +1302 -0
- package/cdn/assets/__mMW0v3QyR1pQYO.js +294 -0
- package/cdn/assets/{DqBj-9o7UdXu4qhb.js → bTZCD31OE4KkUy4u.js} +1 -1
- package/{browser/esm/BPrHgyAsm2Htx15h.mjs → cdn/assets/c6MwBF7fqj-4Wqct.js} +1 -1
- package/cdn/assets/csh4FIrA7Yz0oQR4.js +9 -0
- package/cdn/assets/{CDAYVaQYywqaxg4O.js → eyjrmBPp0a3kmDM1.js} +2 -2
- package/{browser/esm/BtdRr6IbtO6Gypsk.mjs → cdn/assets/hlphmhe3M3MZPvOh.js} +6 -5
- package/cdn/assets/jJoDPeW_80P8c7ET.js +201 -0
- package/cdn/assets/kLmFvtw68s1_Kbq9.js +142 -0
- package/cdn/assets/kTq1x8_s5V2PwKeX.js +9715 -0
- package/{browser/esm/BhkeuRcx8RlLCQ5E.mjs → cdn/assets/lPeOxAutCOlSB-aC.js} +1 -1
- package/cdn/assets/{DeUXRggj8Oz9ru_i.js → oLOwgPmipnKc68nJ.js} +1 -1
- package/cdn/assets/{BMlPFJ1glExv-70Z.js → oY2yN-_0_AcCI46E.js} +1 -1
- package/cdn/assets/{G5z0uVlyF6CLw_PA.js → pS2054G_Le7EvgyY.js} +2 -2
- package/cdn/assets/qwL1y5daLJePT9OL.js +7 -0
- package/cdn/assets/rNuTuxLduwMl4Fyb.js +182 -0
- package/cdn/assets/sCeaYn7GnW1N9bKn.js +423 -0
- package/cdn/assets/{Bsn-tUx172sEG2kR.js → t8Ps76FWzb3VX_wg.js} +20 -20
- package/{browser/esm/CTdFZ_I-41Vr6Dy4.mjs → cdn/assets/tQAwA9RKsgzjziNe.js} +1 -1
- package/{browser/esm/J9i3r1fU0H10b2hX.mjs → cdn/assets/t_7A_GdY394OUV4v.js} +1 -1
- package/{browser/esm/CWoPWWRwMgkGPFFP.mjs → cdn/assets/u8iMUyjw60ayROFo.js} +2538 -1728
- package/cdn/assets/ubUqS2NO2sn4DX3v.js +1694 -0
- package/cdn/assets/vY2ZLR024kVOwWej.js +36 -0
- package/cdn/assets/{DQEjvIGMgEkiaP6J.js → xUNkyQFYnzQAzsVs.js} +1 -1
- package/{browser/esm/BwOxnbR61WFJwy0A.mjs → cdn/assets/y-iW7vsJV47pYbw4.js} +1 -1
- package/{browser/esm/B0Wjc3lwtjKMwnvn.mjs → cdn/assets/y8mfWM7VlyfJEEwg.js} +1 -1
- package/cdn/assets/{BIsbcP5RXRU2XPfx.js → yI2dKrysDG0lqxjX.js} +2 -2
- package/cdn/assets/{Ba8taVvLslFcKS72.js → yzl98RXbYvgX5DfY.js} +28 -27
- package/cdn/assets/z4XcPMxN5hfqRHIt.js +367 -0
- package/cdn/assets/{ZSYS1J3uR7UQuHwZ.js → zm4ZwKXeSetbtx9Z.js} +10 -10
- package/cdn/index.js +27 -17
- package/package.json +3 -3
- package/types/src/sheetxl.d.ts +1 -0
- package/browser/esm/BNIInlJQbJjH8B6G.mjs +0 -84250
- package/browser/esm/B_HB4y7AA88Z775Z.mjs +0 -91
- package/browser/esm/CdeXXPCp5cCYvGyD.mjs +0 -14
- package/browser/esm/Chr_TXM-48IsK8Va.mjs +0 -155
- package/browser/esm/Clx8vvGDOTWK_M2l.mjs +0 -484
- package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +0 -36
- package/browser/esm/D-9f1NKcpuYSgond.mjs +0 -412
- package/browser/esm/D7CGuQcwpkiuesEI.mjs +0 -229
- package/browser/esm/D7kkzIFPqKBK94kO.mjs +0 -17952
- package/browser/esm/D8exjrado9TJrBp-.mjs +0 -1946
- package/browser/esm/DGCOPbZbEmt0x9z0.mjs +0 -155
- package/browser/esm/DZRmBfjn2TgOTu5e.mjs +0 -3604
- package/browser/esm/D_7BWdsu8yejhUxy.mjs +0 -2353
- package/browser/esm/D_thhK0vSez8Yfle.mjs +0 -798
- package/browser/esm/Dv2z0548SZRGTN3l.mjs +0 -149
- package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +0 -89
- package/browser/esm/RLU85PsAYtKPUf6N.mjs +0 -71
- package/browser/esm/WMYR09ZOR8JbZEnx.mjs +0 -4748
- package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +0 -398
- package/cdn/assets/514mXPTuNvdNgw35.js +0 -412
- package/cdn/assets/7Sg0ht_ZCMJkPurt.js +0 -516
- package/cdn/assets/B_3Musz0q2MSZ5H-.js +0 -799
- package/cdn/assets/BgyY4zVPZSXljoCZ.js +0 -14
- package/cdn/assets/BlIZ30huelIxNo6S.js +0 -91
- package/cdn/assets/BxqXOiOyI_XiOmvN.js +0 -156
- package/cdn/assets/CEYyp6Qrr_IopxpL.js +0 -22597
- package/cdn/assets/CL6Tgu_rUO6G-fyq.js +0 -2352
- package/cdn/assets/COMOqucXq7X1vi0P.js +0 -230
- package/cdn/assets/CRXSrbGNABtzf532.js +0 -399
- package/cdn/assets/CTvPIYWTcjwlJeEA.js +0 -237
- package/cdn/assets/CU5cKipVT1X8Xz7F.js +0 -156
- package/cdn/assets/ChAKLV5zrGAHAof2.js +0 -130
- package/cdn/assets/Cw-4uoMuq_m7ziA3.js +0 -36
- package/cdn/assets/DCnWyVXikb_8Dat3.js +0 -61
- package/cdn/assets/DHugYwX4_ZyqGn-C.js +0 -1947
- package/cdn/assets/DOHh3pUXxMM09UY5.js +0 -3604
- package/cdn/assets/DlpgIJxNq2V4gdDq.js +0 -74
- package/cdn/assets/DuAbY54w5gJpQgss.js +0 -84250
- package/cdn/assets/DviEoeWW0EvDg1hr.js +0 -149
- package/cdn/assets/PzWqv-oXxEuzKdaT.js +0 -484
- package/cdn/assets/QJ4AkDD269D1MzmI.js +0 -89
- package/cdn/assets/fm3mUdTDo-STB36M.js +0 -4749
- package/cdn/assets/lWY3TbG2NDscy9He.js +0 -72
- package/cdn/assets/xlXDq-qoj7eOE6_T.js +0 -5153
|
@@ -0,0 +1,2230 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.11
|
|
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 { n as e } from "./C7fZFw4yQ9VNHtnV.js";
|
|
8
|
+
import { t } from "./Cf0bbHHOW6iwvyXg.js";
|
|
9
|
+
import { t as n } from "./t8Ps76FWzb3VX_wg.js";
|
|
10
|
+
import { t as r } from "./8CW-puLLSNyeaGce.js";
|
|
11
|
+
import { t as i } from "./DbewMnLKZoGLGFNh.js";
|
|
12
|
+
import { t as a } from "./DxI14nqCsNi-yexx.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 w(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 T(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 E = T(1), D = T(-1);
|
|
95
|
+
function O(e) {
|
|
96
|
+
if (!e) return !1;
|
|
97
|
+
let { KeyboardEvent: t } = f(e.target);
|
|
98
|
+
return t && e instanceof t;
|
|
99
|
+
}
|
|
100
|
+
function ee(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 k = 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 [k.Translate.toString(e), k.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
|
+
}), te = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
|
|
147
|
+
function ne(e) {
|
|
148
|
+
return e.matches(te) ? e : e.querySelector(te);
|
|
149
|
+
}
|
|
150
|
+
var A = { display: "none" };
|
|
151
|
+
function j(e) {
|
|
152
|
+
let { id: t, value: n } = e;
|
|
153
|
+
return o.createElement("div", {
|
|
154
|
+
id: t,
|
|
155
|
+
style: A
|
|
156
|
+
}, n);
|
|
157
|
+
}
|
|
158
|
+
function re(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 M, N, ie = (0, o.createContext)(null), P = { 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 " }, ae = {
|
|
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 oe(e) {
|
|
200
|
+
let { announcements: t = ae, container: n, hiddenTextDescribedById: r, screenReaderInstructions: i = P } = 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 = w("DndLiveRegion"), [u, d] = (0, o.useState)(!1);
|
|
209
|
+
if ((0, o.useEffect)(() => {
|
|
210
|
+
d(!0);
|
|
211
|
+
}, []), function(e) {
|
|
212
|
+
let t = (0, o.useContext)(ie);
|
|
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(j, {
|
|
252
|
+
id: r,
|
|
253
|
+
value: i.draggable
|
|
254
|
+
}), o.createElement(re, {
|
|
255
|
+
id: l,
|
|
256
|
+
announcement: s
|
|
257
|
+
}));
|
|
258
|
+
return n ? (0, c.createPortal)(f, n) : f;
|
|
259
|
+
}
|
|
260
|
+
function F() {}
|
|
261
|
+
function se(e, t) {
|
|
262
|
+
return (0, o.useMemo)(() => ({
|
|
263
|
+
sensor: e,
|
|
264
|
+
options: t ?? {}
|
|
265
|
+
}), [e, t]);
|
|
266
|
+
}
|
|
267
|
+
(N = M ||= {}).DragStart = "dragStart", N.DragMove = "dragMove", N.DragEnd = "dragEnd", N.DragCancel = "dragCancel", N.DragOver = "dragOver", N.RegisterDroppable = "registerDroppable", N.SetDroppableDisabled = "setDroppableDisabled", N.UnregisterDroppable = "unregisterDroppable";
|
|
268
|
+
var I = Object.freeze({
|
|
269
|
+
x: 0,
|
|
270
|
+
y: 0
|
|
271
|
+
});
|
|
272
|
+
function ce(e, t) {
|
|
273
|
+
return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
|
|
274
|
+
}
|
|
275
|
+
function L(e, t) {
|
|
276
|
+
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
277
|
+
return n - r;
|
|
278
|
+
}
|
|
279
|
+
function R(e, t) {
|
|
280
|
+
let { data: { value: n } } = e, { data: { value: r } } = t;
|
|
281
|
+
return r - n;
|
|
282
|
+
}
|
|
283
|
+
function z(e, t, n) {
|
|
284
|
+
return t === void 0 && (t = e.left), n === void 0 && (n = e.top), {
|
|
285
|
+
x: t + .5 * e.width,
|
|
286
|
+
y: n + .5 * e.height
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
var le = (e) => {
|
|
290
|
+
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = z(t, t.left, t.top), a = [];
|
|
291
|
+
for (let e of r) {
|
|
292
|
+
let { id: t } = e, r = n.get(t);
|
|
293
|
+
if (r) {
|
|
294
|
+
let n = ce(z(r), i);
|
|
295
|
+
a.push({
|
|
296
|
+
id: t,
|
|
297
|
+
data: {
|
|
298
|
+
droppableContainer: e,
|
|
299
|
+
value: n
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
return a.sort(L);
|
|
305
|
+
};
|
|
306
|
+
function B(e, t) {
|
|
307
|
+
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;
|
|
308
|
+
if (r < i && n < a) {
|
|
309
|
+
let n = t.width * t.height, r = e.width * e.height, i = o * s;
|
|
310
|
+
return Number((i / (n + r - i)).toFixed(4));
|
|
311
|
+
}
|
|
312
|
+
return 0;
|
|
313
|
+
}
|
|
314
|
+
var V = (e) => {
|
|
315
|
+
let { collisionRect: t, droppableRects: n, droppableContainers: r } = e, i = [];
|
|
316
|
+
for (let e of r) {
|
|
317
|
+
let { id: r } = e, a = n.get(r);
|
|
318
|
+
if (a) {
|
|
319
|
+
let n = B(a, t);
|
|
320
|
+
n > 0 && i.push({
|
|
321
|
+
id: r,
|
|
322
|
+
data: {
|
|
323
|
+
droppableContainer: e,
|
|
324
|
+
value: n
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return i.sort(R);
|
|
330
|
+
};
|
|
331
|
+
function H(e, t) {
|
|
332
|
+
return e && t ? {
|
|
333
|
+
x: e.left - t.left,
|
|
334
|
+
y: e.top - t.top
|
|
335
|
+
} : I;
|
|
336
|
+
}
|
|
337
|
+
var U, ue = function(e) {
|
|
338
|
+
return function(t) {
|
|
339
|
+
return [...arguments].slice(1).reduce((t, n) => ({
|
|
340
|
+
...t,
|
|
341
|
+
top: t.top + e * n.y,
|
|
342
|
+
bottom: t.bottom + e * n.y,
|
|
343
|
+
left: t.left + e * n.x,
|
|
344
|
+
right: t.right + e * n.x
|
|
345
|
+
}), { ...t });
|
|
346
|
+
};
|
|
347
|
+
}(1), de = { ignoreTransform: !1 };
|
|
348
|
+
function fe(e, t) {
|
|
349
|
+
t === void 0 && (t = de);
|
|
350
|
+
let n = e.getBoundingClientRect();
|
|
351
|
+
if (t.ignoreTransform) {
|
|
352
|
+
let { transform: t, transformOrigin: r } = f(e).getComputedStyle(e);
|
|
353
|
+
t && (n = function(e, t, n) {
|
|
354
|
+
let r = function(e) {
|
|
355
|
+
if (e.startsWith("matrix3d(")) {
|
|
356
|
+
let t = e.slice(9, -1).split(/, /);
|
|
357
|
+
return {
|
|
358
|
+
x: +t[12],
|
|
359
|
+
y: +t[13],
|
|
360
|
+
scaleX: +t[0],
|
|
361
|
+
scaleY: +t[5]
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
if (e.startsWith("matrix(")) {
|
|
365
|
+
let t = e.slice(7, -1).split(/, /);
|
|
366
|
+
return {
|
|
367
|
+
x: +t[4],
|
|
368
|
+
y: +t[5],
|
|
369
|
+
scaleX: +t[0],
|
|
370
|
+
scaleY: +t[3]
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
return null;
|
|
374
|
+
}(t);
|
|
375
|
+
if (!r) return e;
|
|
376
|
+
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;
|
|
377
|
+
return {
|
|
378
|
+
width: u,
|
|
379
|
+
height: d,
|
|
380
|
+
top: l,
|
|
381
|
+
right: c + u,
|
|
382
|
+
bottom: l + d,
|
|
383
|
+
left: c
|
|
384
|
+
};
|
|
385
|
+
}(n, t, r));
|
|
386
|
+
}
|
|
387
|
+
let { top: r, left: i, width: a, height: o, bottom: s, right: c } = n;
|
|
388
|
+
return {
|
|
389
|
+
top: r,
|
|
390
|
+
left: i,
|
|
391
|
+
width: a,
|
|
392
|
+
height: o,
|
|
393
|
+
bottom: s,
|
|
394
|
+
right: c
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
function pe(e) {
|
|
398
|
+
return fe(e, { ignoreTransform: !0 });
|
|
399
|
+
}
|
|
400
|
+
function me(e, t) {
|
|
401
|
+
let n = [];
|
|
402
|
+
return e ? function r(i) {
|
|
403
|
+
if (t != null && n.length >= t || !i) return n;
|
|
404
|
+
if (p(i) && i.scrollingElement != null && !n.includes(i.scrollingElement)) return n.push(i.scrollingElement), n;
|
|
405
|
+
if (!m(i) || h(i) || n.includes(i)) return n;
|
|
406
|
+
let a = f(e).getComputedStyle(i);
|
|
407
|
+
return i !== e && function(e, t) {
|
|
408
|
+
t === void 0 && (t = f(e).getComputedStyle(e));
|
|
409
|
+
let n = /(auto|scroll|overlay)/;
|
|
410
|
+
return [
|
|
411
|
+
"overflow",
|
|
412
|
+
"overflowX",
|
|
413
|
+
"overflowY"
|
|
414
|
+
].some((e) => {
|
|
415
|
+
let r = t[e];
|
|
416
|
+
return typeof r == "string" && n.test(r);
|
|
417
|
+
});
|
|
418
|
+
}(i, a) && n.push(i), function(e, t) {
|
|
419
|
+
return t === void 0 && (t = f(e).getComputedStyle(e)), t.position === "fixed";
|
|
420
|
+
}(i, a) ? n : r(i.parentNode);
|
|
421
|
+
}(e) : n;
|
|
422
|
+
}
|
|
423
|
+
function he(e) {
|
|
424
|
+
let [t] = me(e, 1);
|
|
425
|
+
return t ?? null;
|
|
426
|
+
}
|
|
427
|
+
function ge(e) {
|
|
428
|
+
return l && e ? u(e) ? e : d(e) ? p(e) || e === g(e).scrollingElement ? window : m(e) ? e : null : null : null;
|
|
429
|
+
}
|
|
430
|
+
function _e(e) {
|
|
431
|
+
return u(e) ? e.scrollX : e.scrollLeft;
|
|
432
|
+
}
|
|
433
|
+
function W(e) {
|
|
434
|
+
return u(e) ? e.scrollY : e.scrollTop;
|
|
435
|
+
}
|
|
436
|
+
function ve(e) {
|
|
437
|
+
return {
|
|
438
|
+
x: _e(e),
|
|
439
|
+
y: W(e)
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
function ye(e) {
|
|
443
|
+
return !(!l || !e) && e === document.scrollingElement;
|
|
444
|
+
}
|
|
445
|
+
function be(e) {
|
|
446
|
+
let t = {
|
|
447
|
+
x: 0,
|
|
448
|
+
y: 0
|
|
449
|
+
}, n = ye(e) ? {
|
|
450
|
+
height: window.innerHeight,
|
|
451
|
+
width: window.innerWidth
|
|
452
|
+
} : {
|
|
453
|
+
height: e.clientHeight,
|
|
454
|
+
width: e.clientWidth
|
|
455
|
+
}, r = {
|
|
456
|
+
x: e.scrollWidth - n.width,
|
|
457
|
+
y: e.scrollHeight - n.height
|
|
458
|
+
};
|
|
459
|
+
return {
|
|
460
|
+
isTop: e.scrollTop <= t.y,
|
|
461
|
+
isLeft: e.scrollLeft <= t.x,
|
|
462
|
+
isBottom: e.scrollTop >= r.y,
|
|
463
|
+
isRight: e.scrollLeft >= r.x,
|
|
464
|
+
maxScroll: r,
|
|
465
|
+
minScroll: t
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
(function(e) {
|
|
469
|
+
e[e.Forward = 1] = "Forward", e[e.Backward = -1] = "Backward";
|
|
470
|
+
})(U ||= {});
|
|
471
|
+
var G, K, q = {
|
|
472
|
+
x: .2,
|
|
473
|
+
y: .2
|
|
474
|
+
};
|
|
475
|
+
function xe(e, t, n, r, i) {
|
|
476
|
+
let { top: a, left: o, right: s, bottom: c } = n;
|
|
477
|
+
r === void 0 && (r = 10), i === void 0 && (i = q);
|
|
478
|
+
let { isTop: l, isBottom: u, isLeft: d, isRight: f } = be(e), p = {
|
|
479
|
+
x: 0,
|
|
480
|
+
y: 0
|
|
481
|
+
}, m = {
|
|
482
|
+
x: 0,
|
|
483
|
+
y: 0
|
|
484
|
+
}, h = t.height * i.y, g = t.width * i.x;
|
|
485
|
+
return !l && a <= t.top + h ? (p.y = U.Backward, m.y = r * Math.abs((t.top + h - a) / h)) : !u && c >= t.bottom - h && (p.y = U.Forward, m.y = r * Math.abs((t.bottom - h - c) / h)), !f && s >= t.right - g ? (p.x = U.Forward, m.x = r * Math.abs((t.right - g - s) / g)) : !d && o <= t.left + g && (p.x = U.Backward, m.x = r * Math.abs((t.left + g - o) / g)), {
|
|
486
|
+
direction: p,
|
|
487
|
+
speed: m
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function J(e) {
|
|
491
|
+
if (e === document.scrollingElement) {
|
|
492
|
+
let { innerWidth: e, innerHeight: t } = window;
|
|
493
|
+
return {
|
|
494
|
+
top: 0,
|
|
495
|
+
left: 0,
|
|
496
|
+
right: e,
|
|
497
|
+
bottom: t,
|
|
498
|
+
width: e,
|
|
499
|
+
height: t
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
let { top: t, left: n, right: r, bottom: i } = e.getBoundingClientRect();
|
|
503
|
+
return {
|
|
504
|
+
top: t,
|
|
505
|
+
left: n,
|
|
506
|
+
right: r,
|
|
507
|
+
bottom: i,
|
|
508
|
+
width: e.clientWidth,
|
|
509
|
+
height: e.clientHeight
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function Se(e) {
|
|
513
|
+
return e.reduce((e, t) => E(e, ve(t)), I);
|
|
514
|
+
}
|
|
515
|
+
var Ce = [[
|
|
516
|
+
"x",
|
|
517
|
+
["left", "right"],
|
|
518
|
+
function(e) {
|
|
519
|
+
return e.reduce((e, t) => e + _e(t), 0);
|
|
520
|
+
}
|
|
521
|
+
], [
|
|
522
|
+
"y",
|
|
523
|
+
["top", "bottom"],
|
|
524
|
+
function(e) {
|
|
525
|
+
return e.reduce((e, t) => e + W(t), 0);
|
|
526
|
+
}
|
|
527
|
+
]], we = class {
|
|
528
|
+
constructor(e, t) {
|
|
529
|
+
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;
|
|
530
|
+
let n = me(t), r = Se(n);
|
|
531
|
+
this.rect = { ...e }, this.width = e.width, this.height = e.height;
|
|
532
|
+
for (let [e, t, i] of Ce) for (let a of t) Object.defineProperty(this, a, {
|
|
533
|
+
get: () => {
|
|
534
|
+
let t = i(n), o = r[e] - t;
|
|
535
|
+
return this.rect[a] + o;
|
|
536
|
+
},
|
|
537
|
+
enumerable: !0
|
|
538
|
+
});
|
|
539
|
+
Object.defineProperty(this, "rect", { enumerable: !1 });
|
|
540
|
+
}
|
|
541
|
+
}, Y = class {
|
|
542
|
+
constructor(e) {
|
|
543
|
+
this.target = void 0, this.listeners = [], this.removeAll = () => {
|
|
544
|
+
this.listeners.forEach((e) => this.target?.removeEventListener(...e));
|
|
545
|
+
}, this.target = e;
|
|
546
|
+
}
|
|
547
|
+
add(e, t, n) {
|
|
548
|
+
var r;
|
|
549
|
+
(r = this.target) == null || r.addEventListener(e, t, n), this.listeners.push([
|
|
550
|
+
e,
|
|
551
|
+
t,
|
|
552
|
+
n
|
|
553
|
+
]);
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
function Te(e, t) {
|
|
557
|
+
let n = Math.abs(e.x), r = Math.abs(e.y);
|
|
558
|
+
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;
|
|
559
|
+
}
|
|
560
|
+
function Ee(e) {
|
|
561
|
+
e.preventDefault();
|
|
562
|
+
}
|
|
563
|
+
function X(e) {
|
|
564
|
+
e.stopPropagation();
|
|
565
|
+
}
|
|
566
|
+
(function(e) {
|
|
567
|
+
e.Click = "click", e.DragStart = "dragstart", e.Keydown = "keydown", e.ContextMenu = "contextmenu", e.Resize = "resize", e.SelectionChange = "selectionchange", e.VisibilityChange = "visibilitychange";
|
|
568
|
+
})(G ||= {}), function(e) {
|
|
569
|
+
e.Space = "Space", e.Down = "ArrowDown", e.Right = "ArrowRight", e.Left = "ArrowLeft", e.Up = "ArrowUp", e.Esc = "Escape", e.Enter = "Enter", e.Tab = "Tab";
|
|
570
|
+
}(K ||= {});
|
|
571
|
+
var De = {
|
|
572
|
+
start: [K.Space, K.Enter],
|
|
573
|
+
cancel: [K.Esc],
|
|
574
|
+
end: [
|
|
575
|
+
K.Space,
|
|
576
|
+
K.Enter,
|
|
577
|
+
K.Tab
|
|
578
|
+
]
|
|
579
|
+
}, Oe = (e, t) => {
|
|
580
|
+
let { currentCoordinates: n } = t;
|
|
581
|
+
switch (e.code) {
|
|
582
|
+
case K.Right: return {
|
|
583
|
+
...n,
|
|
584
|
+
x: n.x + 25
|
|
585
|
+
};
|
|
586
|
+
case K.Left: return {
|
|
587
|
+
...n,
|
|
588
|
+
x: n.x - 25
|
|
589
|
+
};
|
|
590
|
+
case K.Down: return {
|
|
591
|
+
...n,
|
|
592
|
+
y: n.y + 25
|
|
593
|
+
};
|
|
594
|
+
case K.Up: return {
|
|
595
|
+
...n,
|
|
596
|
+
y: n.y - 25
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
}, ke = class {
|
|
600
|
+
constructor(e) {
|
|
601
|
+
this.props = void 0, this.autoScrollEnabled = !1, this.referenceCoordinates = void 0, this.listeners = void 0, this.windowListeners = void 0, this.props = e;
|
|
602
|
+
let { event: { target: t } } = e;
|
|
603
|
+
this.props = e, this.listeners = new Y(g(t)), this.windowListeners = new Y(f(t)), this.handleKeyDown = this.handleKeyDown.bind(this), this.handleCancel = this.handleCancel.bind(this), this.attach();
|
|
604
|
+
}
|
|
605
|
+
attach() {
|
|
606
|
+
this.handleStart(), this.windowListeners.add(G.Resize, this.handleCancel), this.windowListeners.add(G.VisibilityChange, this.handleCancel), setTimeout(() => this.listeners.add(G.Keydown, this.handleKeyDown));
|
|
607
|
+
}
|
|
608
|
+
handleStart() {
|
|
609
|
+
let { activeNode: e, onStart: t } = this.props, n = e.node.current;
|
|
610
|
+
n && function(e, t) {
|
|
611
|
+
if (t === void 0 && (t = fe), !e) return;
|
|
612
|
+
let { top: n, left: r, bottom: i, right: a } = t(e);
|
|
613
|
+
he(e) && (i <= 0 || a <= 0 || n >= window.innerHeight || r >= window.innerWidth) && e.scrollIntoView({
|
|
614
|
+
block: "center",
|
|
615
|
+
inline: "center"
|
|
616
|
+
});
|
|
617
|
+
}(n), t(I);
|
|
618
|
+
}
|
|
619
|
+
handleKeyDown(e) {
|
|
620
|
+
if (O(e)) {
|
|
621
|
+
let { active: t, context: n, options: r } = this.props, { keyboardCodes: i = De, coordinateGetter: a = Oe, scrollBehavior: o = "smooth" } = r, { code: s } = e;
|
|
622
|
+
if (i.end.includes(s)) return void this.handleEnd(e);
|
|
623
|
+
if (i.cancel.includes(s)) return void this.handleCancel(e);
|
|
624
|
+
let { collisionRect: c } = n.current, l = c ? {
|
|
625
|
+
x: c.left,
|
|
626
|
+
y: c.top
|
|
627
|
+
} : I;
|
|
628
|
+
this.referenceCoordinates ||= l;
|
|
629
|
+
let u = a(e, {
|
|
630
|
+
active: t,
|
|
631
|
+
context: n.current,
|
|
632
|
+
currentCoordinates: l
|
|
633
|
+
});
|
|
634
|
+
if (u) {
|
|
635
|
+
let t = D(u, l), r = {
|
|
636
|
+
x: 0,
|
|
637
|
+
y: 0
|
|
638
|
+
}, { scrollableAncestors: i } = n.current;
|
|
639
|
+
for (let n of i) {
|
|
640
|
+
let i = e.code, { isTop: a, isRight: s, isLeft: c, isBottom: l, maxScroll: d, minScroll: f } = be(n), p = J(n), m = {
|
|
641
|
+
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)),
|
|
642
|
+
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))
|
|
643
|
+
}, h = i === K.Right && !s || i === K.Left && !c, g = i === K.Down && !l || i === K.Up && !a;
|
|
644
|
+
if (h && m.x !== u.x) {
|
|
645
|
+
let e = n.scrollLeft + t.x, a = i === K.Right && e <= d.x || i === K.Left && e >= f.x;
|
|
646
|
+
if (a && !t.y) return void n.scrollTo({
|
|
647
|
+
left: e,
|
|
648
|
+
behavior: o
|
|
649
|
+
});
|
|
650
|
+
r.x = a ? n.scrollLeft - e : i === K.Right ? n.scrollLeft - d.x : n.scrollLeft - f.x, r.x && n.scrollBy({
|
|
651
|
+
left: -r.x,
|
|
652
|
+
behavior: o
|
|
653
|
+
});
|
|
654
|
+
break;
|
|
655
|
+
}
|
|
656
|
+
if (g && m.y !== u.y) {
|
|
657
|
+
let e = n.scrollTop + t.y, a = i === K.Down && e <= d.y || i === K.Up && e >= f.y;
|
|
658
|
+
if (a && !t.x) return void n.scrollTo({
|
|
659
|
+
top: e,
|
|
660
|
+
behavior: o
|
|
661
|
+
});
|
|
662
|
+
r.y = a ? n.scrollTop - e : i === K.Down ? n.scrollTop - d.y : n.scrollTop - f.y, r.y && n.scrollBy({
|
|
663
|
+
top: -r.y,
|
|
664
|
+
behavior: o
|
|
665
|
+
});
|
|
666
|
+
break;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
this.handleMove(e, E(D(u, this.referenceCoordinates), r));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
handleMove(e, t) {
|
|
674
|
+
let { onMove: n } = this.props;
|
|
675
|
+
e.preventDefault(), n(t);
|
|
676
|
+
}
|
|
677
|
+
handleEnd(e) {
|
|
678
|
+
let { onEnd: t } = this.props;
|
|
679
|
+
e.preventDefault(), this.detach(), t();
|
|
680
|
+
}
|
|
681
|
+
handleCancel(e) {
|
|
682
|
+
let { onCancel: t } = this.props;
|
|
683
|
+
e.preventDefault(), this.detach(), t();
|
|
684
|
+
}
|
|
685
|
+
detach() {
|
|
686
|
+
this.listeners.removeAll(), this.windowListeners.removeAll();
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
function Ae(e) {
|
|
690
|
+
return !(!e || !("distance" in e));
|
|
691
|
+
}
|
|
692
|
+
function je(e) {
|
|
693
|
+
return !(!e || !("delay" in e));
|
|
694
|
+
}
|
|
695
|
+
ke.activators = [{
|
|
696
|
+
eventName: "onKeyDown",
|
|
697
|
+
handler: (e, t, n) => {
|
|
698
|
+
let { keyboardCodes: r = De, onActivation: i } = t, { active: a } = n, { code: o } = e.nativeEvent;
|
|
699
|
+
if (r.start.includes(o)) {
|
|
700
|
+
let t = a.activatorNode.current;
|
|
701
|
+
return !(t && e.target !== t || (e.preventDefault(), i?.({ event: e.nativeEvent }), 0));
|
|
702
|
+
}
|
|
703
|
+
return !1;
|
|
704
|
+
}
|
|
705
|
+
}];
|
|
706
|
+
var Me, Z = class {
|
|
707
|
+
constructor(e, t, n) {
|
|
708
|
+
n === void 0 && (n = function(e) {
|
|
709
|
+
let { EventTarget: t } = f(e);
|
|
710
|
+
return e instanceof t ? e : g(e);
|
|
711
|
+
}(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;
|
|
712
|
+
let { event: r } = e, { target: i } = r;
|
|
713
|
+
this.props = e, this.events = t, this.document = g(i), this.documentListeners = new Y(this.document), this.listeners = new Y(n), this.windowListeners = new Y(f(i)), this.initialCoordinates = ee(r) ?? I, 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();
|
|
714
|
+
}
|
|
715
|
+
attach() {
|
|
716
|
+
let { events: e, props: { options: { activationConstraint: t, bypassActivationConstraint: n } } } = this;
|
|
717
|
+
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, Ee), this.windowListeners.add(G.VisibilityChange, this.handleCancel), this.windowListeners.add(G.ContextMenu, Ee), this.documentListeners.add(G.Keydown, this.handleKeydown), t) {
|
|
718
|
+
if (n != null && n({
|
|
719
|
+
event: this.props.event,
|
|
720
|
+
activeNode: this.props.activeNode,
|
|
721
|
+
options: this.props.options
|
|
722
|
+
})) return this.handleStart();
|
|
723
|
+
if (je(t)) return this.timeoutId = setTimeout(this.handleStart, t.delay), void this.handlePending(t);
|
|
724
|
+
if (Ae(t)) return void this.handlePending(t);
|
|
725
|
+
}
|
|
726
|
+
this.handleStart();
|
|
727
|
+
}
|
|
728
|
+
detach() {
|
|
729
|
+
this.listeners.removeAll(), this.windowListeners.removeAll(), setTimeout(this.documentListeners.removeAll, 50), this.timeoutId !== null && (clearTimeout(this.timeoutId), this.timeoutId = null);
|
|
730
|
+
}
|
|
731
|
+
handlePending(e, t) {
|
|
732
|
+
let { active: n, onPending: r } = this.props;
|
|
733
|
+
r(n, e, this.initialCoordinates, t);
|
|
734
|
+
}
|
|
735
|
+
handleStart() {
|
|
736
|
+
let { initialCoordinates: e } = this, { onStart: t } = this.props;
|
|
737
|
+
e && (this.activated = !0, this.documentListeners.add(G.Click, X, { capture: !0 }), this.removeTextSelection(), this.documentListeners.add(G.SelectionChange, this.removeTextSelection), t(e));
|
|
738
|
+
}
|
|
739
|
+
handleMove(e) {
|
|
740
|
+
let { activated: t, initialCoordinates: n, props: r } = this, { onMove: i, options: { activationConstraint: a } } = r;
|
|
741
|
+
if (!n) return;
|
|
742
|
+
let o = ee(e) ?? I, s = D(n, o);
|
|
743
|
+
if (!t && a) {
|
|
744
|
+
if (Ae(a)) {
|
|
745
|
+
if (a.tolerance != null && Te(s, a.tolerance)) return this.handleCancel();
|
|
746
|
+
if (Te(s, a.distance)) return this.handleStart();
|
|
747
|
+
}
|
|
748
|
+
return je(a) && Te(s, a.tolerance) ? this.handleCancel() : void this.handlePending(a, s);
|
|
749
|
+
}
|
|
750
|
+
e.cancelable && e.preventDefault(), i(o);
|
|
751
|
+
}
|
|
752
|
+
handleEnd() {
|
|
753
|
+
let { onAbort: e, onEnd: t } = this.props;
|
|
754
|
+
this.detach(), this.activated || e(this.props.active), t();
|
|
755
|
+
}
|
|
756
|
+
handleCancel() {
|
|
757
|
+
let { onAbort: e, onCancel: t } = this.props;
|
|
758
|
+
this.detach(), this.activated || e(this.props.active), t();
|
|
759
|
+
}
|
|
760
|
+
handleKeydown(e) {
|
|
761
|
+
e.code === K.Esc && this.handleCancel();
|
|
762
|
+
}
|
|
763
|
+
removeTextSelection() {
|
|
764
|
+
var e;
|
|
765
|
+
(e = this.document.getSelection()) == null || e.removeAllRanges();
|
|
766
|
+
}
|
|
767
|
+
}, Q = {
|
|
768
|
+
cancel: { name: "pointercancel" },
|
|
769
|
+
move: { name: "pointermove" },
|
|
770
|
+
end: { name: "pointerup" }
|
|
771
|
+
}, Ne = class extends Z {
|
|
772
|
+
constructor(e) {
|
|
773
|
+
let { event: t } = e, n = g(t.target);
|
|
774
|
+
super(e, Q, n);
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
Ne.activators = [{
|
|
778
|
+
eventName: "onPointerDown",
|
|
779
|
+
handler: (e, t) => {
|
|
780
|
+
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
781
|
+
return !(!n.isPrimary || n.button !== 0 || (r?.({ event: n }), 0));
|
|
782
|
+
}
|
|
783
|
+
}];
|
|
784
|
+
var Pe = {
|
|
785
|
+
move: { name: "mousemove" },
|
|
786
|
+
end: { name: "mouseup" }
|
|
787
|
+
};
|
|
788
|
+
(function(e) {
|
|
789
|
+
e[e.RightClick = 2] = "RightClick";
|
|
790
|
+
})(Me ||= {});
|
|
791
|
+
var $, Fe, Ie = class extends Z {
|
|
792
|
+
constructor(e) {
|
|
793
|
+
super(e, Pe, g(e.event.target));
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
Ie.activators = [{
|
|
797
|
+
eventName: "onMouseDown",
|
|
798
|
+
handler: (e, t) => {
|
|
799
|
+
let { nativeEvent: n } = e, { onActivation: r } = t;
|
|
800
|
+
return n.button !== Me.RightClick && (r?.({ event: n }), !0);
|
|
801
|
+
}
|
|
802
|
+
}];
|
|
803
|
+
var Le, Re, ze = {
|
|
804
|
+
cancel: { name: "touchcancel" },
|
|
805
|
+
move: { name: "touchmove" },
|
|
806
|
+
end: { name: "touchend" }
|
|
807
|
+
}, Be = class extends Z {
|
|
808
|
+
constructor(e) {
|
|
809
|
+
super(e, ze);
|
|
810
|
+
}
|
|
811
|
+
static setup() {
|
|
812
|
+
return window.addEventListener(ze.move.name, e, {
|
|
813
|
+
capture: !1,
|
|
814
|
+
passive: !1
|
|
815
|
+
}), function() {
|
|
816
|
+
window.removeEventListener(ze.move.name, e);
|
|
817
|
+
};
|
|
818
|
+
function e() {}
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
function Ve(e) {
|
|
822
|
+
let { acceleration: t, activator: n = $.Pointer, canScroll: r, draggingRect: i, enabled: a, interval: s = 5, order: c = Fe.TreeOrder, pointerCoordinates: l, scrollableAncestors: u, scrollableAncestorRects: d, delta: f, threshold: p } = e, m = function(e) {
|
|
823
|
+
let { delta: t, disabled: n } = e, r = S(t);
|
|
824
|
+
return b((e) => {
|
|
825
|
+
if (n || !r || !e) return He;
|
|
826
|
+
let i = Math.sign(t.x - r.x), a = Math.sign(t.y - r.y);
|
|
827
|
+
return {
|
|
828
|
+
x: {
|
|
829
|
+
[U.Backward]: e.x[U.Backward] || i === -1,
|
|
830
|
+
[U.Forward]: e.x[U.Forward] || i === 1
|
|
831
|
+
},
|
|
832
|
+
y: {
|
|
833
|
+
[U.Backward]: e.y[U.Backward] || a === -1,
|
|
834
|
+
[U.Forward]: e.y[U.Forward] || a === 1
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
}, [
|
|
838
|
+
n,
|
|
839
|
+
t,
|
|
840
|
+
r
|
|
841
|
+
]);
|
|
842
|
+
}({
|
|
843
|
+
delta: f,
|
|
844
|
+
disabled: !a
|
|
845
|
+
}), [h, g] = function() {
|
|
846
|
+
let e = (0, o.useRef)(null);
|
|
847
|
+
return [(0, o.useCallback)((t, n) => {
|
|
848
|
+
e.current = setInterval(t, n);
|
|
849
|
+
}, []), (0, o.useCallback)(() => {
|
|
850
|
+
e.current !== null && (clearInterval(e.current), e.current = null);
|
|
851
|
+
}, [])];
|
|
852
|
+
}(), _ = (0, o.useRef)({
|
|
853
|
+
x: 0,
|
|
854
|
+
y: 0
|
|
855
|
+
}), v = (0, o.useRef)({
|
|
856
|
+
x: 0,
|
|
857
|
+
y: 0
|
|
858
|
+
}), y = (0, o.useMemo)(() => {
|
|
859
|
+
switch (n) {
|
|
860
|
+
case $.Pointer: return l ? {
|
|
861
|
+
top: l.y,
|
|
862
|
+
bottom: l.y,
|
|
863
|
+
left: l.x,
|
|
864
|
+
right: l.x
|
|
865
|
+
} : null;
|
|
866
|
+
case $.DraggableRect: return i;
|
|
867
|
+
}
|
|
868
|
+
}, [
|
|
869
|
+
n,
|
|
870
|
+
i,
|
|
871
|
+
l
|
|
872
|
+
]), x = (0, o.useRef)(null), C = (0, o.useCallback)(() => {
|
|
873
|
+
let e = x.current;
|
|
874
|
+
if (!e) return;
|
|
875
|
+
let t = _.current.x * v.current.x, n = _.current.y * v.current.y;
|
|
876
|
+
e.scrollBy(t, n);
|
|
877
|
+
}, []), w = (0, o.useMemo)(() => c === Fe.TreeOrder ? [...u].reverse() : u, [c, u]);
|
|
878
|
+
(0, o.useEffect)(() => {
|
|
879
|
+
if (a && u.length && y) {
|
|
880
|
+
for (let e of w) {
|
|
881
|
+
if (!1 === r?.(e)) continue;
|
|
882
|
+
let n = u.indexOf(e), i = d[n];
|
|
883
|
+
if (!i) continue;
|
|
884
|
+
let { direction: a, speed: o } = xe(e, i, y, t, p);
|
|
885
|
+
for (let e of ["x", "y"]) m[e][a[e]] || (o[e] = 0, a[e] = 0);
|
|
886
|
+
if (o.x > 0 || o.y > 0) return g(), x.current = e, h(C, s), _.current = o, void (v.current = a);
|
|
887
|
+
}
|
|
888
|
+
_.current = {
|
|
889
|
+
x: 0,
|
|
890
|
+
y: 0
|
|
891
|
+
}, v.current = {
|
|
892
|
+
x: 0,
|
|
893
|
+
y: 0
|
|
894
|
+
}, g();
|
|
895
|
+
} else g();
|
|
896
|
+
}, [
|
|
897
|
+
t,
|
|
898
|
+
C,
|
|
899
|
+
r,
|
|
900
|
+
g,
|
|
901
|
+
a,
|
|
902
|
+
s,
|
|
903
|
+
JSON.stringify(y),
|
|
904
|
+
JSON.stringify(m),
|
|
905
|
+
h,
|
|
906
|
+
u,
|
|
907
|
+
w,
|
|
908
|
+
d,
|
|
909
|
+
JSON.stringify(p)
|
|
910
|
+
]);
|
|
911
|
+
}
|
|
912
|
+
Be.activators = [{
|
|
913
|
+
eventName: "onTouchStart",
|
|
914
|
+
handler: (e, t) => {
|
|
915
|
+
let { nativeEvent: n } = e, { onActivation: r } = t, { touches: i } = n;
|
|
916
|
+
return !(i.length > 1 || (r?.({ event: n }), 0));
|
|
917
|
+
}
|
|
918
|
+
}], function(e) {
|
|
919
|
+
e[e.Pointer = 0] = "Pointer", e[e.DraggableRect = 1] = "DraggableRect";
|
|
920
|
+
}($ ||= {}), function(e) {
|
|
921
|
+
e[e.TreeOrder = 0] = "TreeOrder", e[e.ReversedTreeOrder = 1] = "ReversedTreeOrder";
|
|
922
|
+
}(Fe ||= {});
|
|
923
|
+
var He = {
|
|
924
|
+
x: {
|
|
925
|
+
[U.Backward]: !1,
|
|
926
|
+
[U.Forward]: !1
|
|
927
|
+
},
|
|
928
|
+
y: {
|
|
929
|
+
[U.Backward]: !1,
|
|
930
|
+
[U.Forward]: !1
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
(function(e) {
|
|
934
|
+
e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
|
|
935
|
+
})(Le ||= {}), (Re ||= {}).Optimized = "optimized";
|
|
936
|
+
var Ue = /* @__PURE__ */ new Map();
|
|
937
|
+
function We(e, t) {
|
|
938
|
+
return b((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
|
|
939
|
+
}
|
|
940
|
+
function Ge(e) {
|
|
941
|
+
let { callback: t, disabled: n } = e, r = v(t), i = (0, o.useMemo)(() => {
|
|
942
|
+
if (n || typeof window > "u" || window.ResizeObserver === void 0) return;
|
|
943
|
+
let { ResizeObserver: e } = window;
|
|
944
|
+
return new e(r);
|
|
945
|
+
}, [n]);
|
|
946
|
+
return (0, o.useEffect)(() => () => i?.disconnect(), [i]), i;
|
|
947
|
+
}
|
|
948
|
+
function Ke(e) {
|
|
949
|
+
return new we(fe(e), e);
|
|
950
|
+
}
|
|
951
|
+
function qe(e, t, n) {
|
|
952
|
+
t === void 0 && (t = Ke);
|
|
953
|
+
let [r, i] = (0, o.useState)(null);
|
|
954
|
+
function a() {
|
|
955
|
+
i((r) => {
|
|
956
|
+
if (!e) return null;
|
|
957
|
+
if (!1 === e.isConnected) return r ?? n ?? null;
|
|
958
|
+
let i = t(e);
|
|
959
|
+
return JSON.stringify(r) === JSON.stringify(i) ? r : i;
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
let s = function(e) {
|
|
963
|
+
let { callback: t, disabled: n } = e, r = v(t), i = (0, o.useMemo)(() => {
|
|
964
|
+
if (n || typeof window > "u" || window.MutationObserver === void 0) return;
|
|
965
|
+
let { MutationObserver: e } = window;
|
|
966
|
+
return new e(r);
|
|
967
|
+
}, [r, n]);
|
|
968
|
+
return (0, o.useEffect)(() => () => i?.disconnect(), [i]), i;
|
|
969
|
+
}({ callback(t) {
|
|
970
|
+
if (e) for (let n of t) {
|
|
971
|
+
let { type: t, target: r } = n;
|
|
972
|
+
if (t === "childList" && r instanceof HTMLElement && r.contains(e)) {
|
|
973
|
+
a();
|
|
974
|
+
break;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
} }), c = Ge({ callback: a });
|
|
978
|
+
return _(() => {
|
|
979
|
+
a(), e ? (c?.observe(e), s?.observe(document.body, {
|
|
980
|
+
childList: !0,
|
|
981
|
+
subtree: !0
|
|
982
|
+
})) : (c?.disconnect(), s?.disconnect());
|
|
983
|
+
}, [e]), r;
|
|
984
|
+
}
|
|
985
|
+
var Je = [];
|
|
986
|
+
function Ye(e, t) {
|
|
987
|
+
t === void 0 && (t = []);
|
|
988
|
+
let n = (0, o.useRef)(null);
|
|
989
|
+
return (0, o.useEffect)(() => {
|
|
990
|
+
n.current = null;
|
|
991
|
+
}, t), (0, o.useEffect)(() => {
|
|
992
|
+
let t = e !== I;
|
|
993
|
+
t && !n.current && (n.current = e), !t && n.current && (n.current = null);
|
|
994
|
+
}, [e]), n.current ? D(e, n.current) : I;
|
|
995
|
+
}
|
|
996
|
+
function Xe(e) {
|
|
997
|
+
return (0, o.useMemo)(() => e ? function(e) {
|
|
998
|
+
let t = e.innerWidth, n = e.innerHeight;
|
|
999
|
+
return {
|
|
1000
|
+
top: 0,
|
|
1001
|
+
left: 0,
|
|
1002
|
+
right: t,
|
|
1003
|
+
bottom: n,
|
|
1004
|
+
width: t,
|
|
1005
|
+
height: n
|
|
1006
|
+
};
|
|
1007
|
+
}(e) : null, [e]);
|
|
1008
|
+
}
|
|
1009
|
+
var Ze = [];
|
|
1010
|
+
function Qe(e) {
|
|
1011
|
+
let { measure: t } = e, [n, r] = (0, o.useState)(null), i = Ge({ callback: (0, o.useCallback)((e) => {
|
|
1012
|
+
for (let { target: n } of e) if (m(n)) {
|
|
1013
|
+
r((e) => {
|
|
1014
|
+
let r = t(n);
|
|
1015
|
+
return e ? {
|
|
1016
|
+
...e,
|
|
1017
|
+
width: r.width,
|
|
1018
|
+
height: r.height
|
|
1019
|
+
} : r;
|
|
1020
|
+
});
|
|
1021
|
+
break;
|
|
1022
|
+
}
|
|
1023
|
+
}, [t]) }), [a, s] = x((0, o.useCallback)((e) => {
|
|
1024
|
+
let n = function(e) {
|
|
1025
|
+
if (!e) return null;
|
|
1026
|
+
if (e.children.length > 1) return e;
|
|
1027
|
+
let t = e.children[0];
|
|
1028
|
+
return m(t) ? t : e;
|
|
1029
|
+
}(e);
|
|
1030
|
+
i?.disconnect(), n && i?.observe(n), r(n ? t(n) : null);
|
|
1031
|
+
}, [t, i]));
|
|
1032
|
+
return (0, o.useMemo)(() => ({
|
|
1033
|
+
nodeRef: a,
|
|
1034
|
+
rect: n,
|
|
1035
|
+
setRef: s
|
|
1036
|
+
}), [
|
|
1037
|
+
n,
|
|
1038
|
+
a,
|
|
1039
|
+
s
|
|
1040
|
+
]);
|
|
1041
|
+
}
|
|
1042
|
+
var $e, et = [{
|
|
1043
|
+
sensor: Ne,
|
|
1044
|
+
options: {}
|
|
1045
|
+
}, {
|
|
1046
|
+
sensor: ke,
|
|
1047
|
+
options: {}
|
|
1048
|
+
}], tt = { current: {} }, nt = {
|
|
1049
|
+
draggable: { measure: pe },
|
|
1050
|
+
droppable: {
|
|
1051
|
+
measure: pe,
|
|
1052
|
+
strategy: Le.WhileDragging,
|
|
1053
|
+
frequency: Re.Optimized
|
|
1054
|
+
},
|
|
1055
|
+
dragOverlay: { measure: fe }
|
|
1056
|
+
}, rt = class extends Map {
|
|
1057
|
+
get(e) {
|
|
1058
|
+
var t;
|
|
1059
|
+
return e != null && (t = super.get(e)) != null ? t : void 0;
|
|
1060
|
+
}
|
|
1061
|
+
toArray() {
|
|
1062
|
+
return Array.from(this.values());
|
|
1063
|
+
}
|
|
1064
|
+
getEnabled() {
|
|
1065
|
+
return this.toArray().filter((e) => {
|
|
1066
|
+
let { disabled: t } = e;
|
|
1067
|
+
return !t;
|
|
1068
|
+
});
|
|
1069
|
+
}
|
|
1070
|
+
getNodeFor(e) {
|
|
1071
|
+
return this.get(e)?.node.current ?? void 0;
|
|
1072
|
+
}
|
|
1073
|
+
}, it = {
|
|
1074
|
+
activatorEvent: null,
|
|
1075
|
+
active: null,
|
|
1076
|
+
activeNode: null,
|
|
1077
|
+
activeNodeRect: null,
|
|
1078
|
+
collisions: null,
|
|
1079
|
+
containerNodeRect: null,
|
|
1080
|
+
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1081
|
+
droppableRects: /* @__PURE__ */ new Map(),
|
|
1082
|
+
droppableContainers: new rt(),
|
|
1083
|
+
over: null,
|
|
1084
|
+
dragOverlay: {
|
|
1085
|
+
nodeRef: { current: null },
|
|
1086
|
+
rect: null,
|
|
1087
|
+
setRef: F
|
|
1088
|
+
},
|
|
1089
|
+
scrollableAncestors: [],
|
|
1090
|
+
scrollableAncestorRects: [],
|
|
1091
|
+
measuringConfiguration: nt,
|
|
1092
|
+
measureDroppableContainers: F,
|
|
1093
|
+
windowRect: null,
|
|
1094
|
+
measuringScheduled: !1
|
|
1095
|
+
}, at = (0, o.createContext)({
|
|
1096
|
+
activatorEvent: null,
|
|
1097
|
+
activators: [],
|
|
1098
|
+
active: null,
|
|
1099
|
+
activeNodeRect: null,
|
|
1100
|
+
ariaDescribedById: { draggable: "" },
|
|
1101
|
+
dispatch: F,
|
|
1102
|
+
draggableNodes: /* @__PURE__ */ new Map(),
|
|
1103
|
+
over: null,
|
|
1104
|
+
measureDroppableContainers: F
|
|
1105
|
+
}), ot = (0, o.createContext)(it);
|
|
1106
|
+
function st() {
|
|
1107
|
+
return {
|
|
1108
|
+
draggable: {
|
|
1109
|
+
active: null,
|
|
1110
|
+
initialCoordinates: {
|
|
1111
|
+
x: 0,
|
|
1112
|
+
y: 0
|
|
1113
|
+
},
|
|
1114
|
+
nodes: /* @__PURE__ */ new Map(),
|
|
1115
|
+
translate: {
|
|
1116
|
+
x: 0,
|
|
1117
|
+
y: 0
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
droppable: { containers: new rt() }
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
function ct(e, t) {
|
|
1124
|
+
switch (t.type) {
|
|
1125
|
+
case M.DragStart: return {
|
|
1126
|
+
...e,
|
|
1127
|
+
draggable: {
|
|
1128
|
+
...e.draggable,
|
|
1129
|
+
initialCoordinates: t.initialCoordinates,
|
|
1130
|
+
active: t.active
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
case M.DragMove: return e.draggable.active == null ? e : {
|
|
1134
|
+
...e,
|
|
1135
|
+
draggable: {
|
|
1136
|
+
...e.draggable,
|
|
1137
|
+
translate: {
|
|
1138
|
+
x: t.coordinates.x - e.draggable.initialCoordinates.x,
|
|
1139
|
+
y: t.coordinates.y - e.draggable.initialCoordinates.y
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
};
|
|
1143
|
+
case M.DragEnd:
|
|
1144
|
+
case M.DragCancel: return {
|
|
1145
|
+
...e,
|
|
1146
|
+
draggable: {
|
|
1147
|
+
...e.draggable,
|
|
1148
|
+
active: null,
|
|
1149
|
+
initialCoordinates: {
|
|
1150
|
+
x: 0,
|
|
1151
|
+
y: 0
|
|
1152
|
+
},
|
|
1153
|
+
translate: {
|
|
1154
|
+
x: 0,
|
|
1155
|
+
y: 0
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
case M.RegisterDroppable: {
|
|
1160
|
+
let { element: n } = t, { id: r } = n, i = new rt(e.droppable.containers);
|
|
1161
|
+
return i.set(r, n), {
|
|
1162
|
+
...e,
|
|
1163
|
+
droppable: {
|
|
1164
|
+
...e.droppable,
|
|
1165
|
+
containers: i
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
case M.SetDroppableDisabled: {
|
|
1170
|
+
let { id: n, key: r, disabled: i } = t, a = e.droppable.containers.get(n);
|
|
1171
|
+
if (!a || r !== a.key) return e;
|
|
1172
|
+
let o = new rt(e.droppable.containers);
|
|
1173
|
+
return o.set(n, {
|
|
1174
|
+
...a,
|
|
1175
|
+
disabled: i
|
|
1176
|
+
}), {
|
|
1177
|
+
...e,
|
|
1178
|
+
droppable: {
|
|
1179
|
+
...e.droppable,
|
|
1180
|
+
containers: o
|
|
1181
|
+
}
|
|
1182
|
+
};
|
|
1183
|
+
}
|
|
1184
|
+
case M.UnregisterDroppable: {
|
|
1185
|
+
let { id: n, key: r } = t, i = e.droppable.containers.get(n);
|
|
1186
|
+
if (!i || r !== i.key) return e;
|
|
1187
|
+
let a = new rt(e.droppable.containers);
|
|
1188
|
+
return a.delete(n), {
|
|
1189
|
+
...e,
|
|
1190
|
+
droppable: {
|
|
1191
|
+
...e.droppable,
|
|
1192
|
+
containers: a
|
|
1193
|
+
}
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
default: return e;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
function lt(e) {
|
|
1200
|
+
let { disabled: t } = e, { active: n, activatorEvent: r, draggableNodes: i } = (0, o.useContext)(at), a = S(r), s = S(n?.id);
|
|
1201
|
+
return (0, o.useEffect)(() => {
|
|
1202
|
+
if (!t && !r && a && s != null) {
|
|
1203
|
+
if (!O(a) || document.activeElement === a.target) return;
|
|
1204
|
+
let e = i.get(s);
|
|
1205
|
+
if (!e) return;
|
|
1206
|
+
let { activatorNode: t, node: n } = e;
|
|
1207
|
+
if (!t.current && !n.current) return;
|
|
1208
|
+
requestAnimationFrame(() => {
|
|
1209
|
+
for (let e of [t.current, n.current]) {
|
|
1210
|
+
if (!e) continue;
|
|
1211
|
+
let t = ne(e);
|
|
1212
|
+
if (t) {
|
|
1213
|
+
t.focus();
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
}
|
|
1219
|
+
}, [
|
|
1220
|
+
r,
|
|
1221
|
+
t,
|
|
1222
|
+
i,
|
|
1223
|
+
s,
|
|
1224
|
+
a
|
|
1225
|
+
]), null;
|
|
1226
|
+
}
|
|
1227
|
+
var ut = (0, o.createContext)({
|
|
1228
|
+
...I,
|
|
1229
|
+
scaleX: 1,
|
|
1230
|
+
scaleY: 1
|
|
1231
|
+
});
|
|
1232
|
+
(function(e) {
|
|
1233
|
+
e[e.Uninitialized = 0] = "Uninitialized", e[e.Initializing = 1] = "Initializing", e[e.Initialized = 2] = "Initialized";
|
|
1234
|
+
})($e ||= {});
|
|
1235
|
+
var dt = (0, o.memo)(function(e) {
|
|
1236
|
+
let { id: t, accessibility: n, autoScroll: r = !0, children: i, sensors: a = et, collisionDetection: s = V, measuring: u, modifiers: d, ...p } = e, [m, h] = (0, o.useReducer)(ct, void 0, st), [g, v] = function() {
|
|
1237
|
+
let [e] = (0, o.useState)(() => /* @__PURE__ */ new Set()), t = (0, o.useCallback)((t) => (e.add(t), () => e.delete(t)), [e]);
|
|
1238
|
+
return [(0, o.useCallback)((t) => {
|
|
1239
|
+
let { type: n, event: r } = t;
|
|
1240
|
+
e.forEach((e) => e[n]?.call(e, r));
|
|
1241
|
+
}, [e]), t];
|
|
1242
|
+
}(), [x, S] = (0, o.useState)($e.Uninitialized), C = x === $e.Initialized, { draggable: { active: T, nodes: D, translate: O }, droppable: { containers: k } } = m, te = T == null ? null : D.get(T), ne = (0, o.useRef)({
|
|
1243
|
+
initial: null,
|
|
1244
|
+
translated: null
|
|
1245
|
+
}), A = (0, o.useMemo)(() => T == null ? null : {
|
|
1246
|
+
id: T,
|
|
1247
|
+
data: te?.data ?? tt,
|
|
1248
|
+
rect: ne
|
|
1249
|
+
}, [T, te]), j = (0, o.useRef)(null), [re, N] = (0, o.useState)(null), [P, ae] = (0, o.useState)(null), F = y(p, Object.values(p)), se = w("DndDescribedBy", t), ce = (0, o.useMemo)(() => k.getEnabled(), [k]), L = (0, o.useMemo)(() => ({
|
|
1250
|
+
draggable: {
|
|
1251
|
+
...nt.draggable,
|
|
1252
|
+
...R?.draggable
|
|
1253
|
+
},
|
|
1254
|
+
droppable: {
|
|
1255
|
+
...nt.droppable,
|
|
1256
|
+
...R?.droppable
|
|
1257
|
+
},
|
|
1258
|
+
dragOverlay: {
|
|
1259
|
+
...nt.dragOverlay,
|
|
1260
|
+
...R?.dragOverlay
|
|
1261
|
+
}
|
|
1262
|
+
}), [
|
|
1263
|
+
(R = u)?.draggable,
|
|
1264
|
+
R?.droppable,
|
|
1265
|
+
R?.dragOverlay
|
|
1266
|
+
]);
|
|
1267
|
+
var R;
|
|
1268
|
+
let { droppableRects: z, measureDroppableContainers: le, measuringScheduled: B } = function(e, t) {
|
|
1269
|
+
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() {
|
|
1270
|
+
switch (u) {
|
|
1271
|
+
case Le.Always: return !1;
|
|
1272
|
+
case Le.BeforeDragging: return n;
|
|
1273
|
+
default: return !n;
|
|
1274
|
+
}
|
|
1275
|
+
}(), p = y(f), m = (0, o.useCallback)(function(e) {
|
|
1276
|
+
e === void 0 && (e = []), p.current || s((t) => t === null ? e : t.concat(e.filter((e) => !t.includes(e))));
|
|
1277
|
+
}, [p]), h = (0, o.useRef)(null), g = b((t) => {
|
|
1278
|
+
if (f && !n) return Ue;
|
|
1279
|
+
if (!t || t === Ue || d.current !== e || a != null) {
|
|
1280
|
+
let t = /* @__PURE__ */ new Map();
|
|
1281
|
+
for (let n of e) {
|
|
1282
|
+
if (!n) continue;
|
|
1283
|
+
if (a && a.length > 0 && !a.includes(n.id) && n.rect.current) {
|
|
1284
|
+
t.set(n.id, n.rect.current);
|
|
1285
|
+
continue;
|
|
1286
|
+
}
|
|
1287
|
+
let e = n.node.current, r = e ? new we(l(e), e) : null;
|
|
1288
|
+
n.rect.current = r, r && t.set(n.id, r);
|
|
1289
|
+
}
|
|
1290
|
+
return t;
|
|
1291
|
+
}
|
|
1292
|
+
return t;
|
|
1293
|
+
}, [
|
|
1294
|
+
e,
|
|
1295
|
+
a,
|
|
1296
|
+
n,
|
|
1297
|
+
f,
|
|
1298
|
+
l
|
|
1299
|
+
]);
|
|
1300
|
+
return (0, o.useEffect)(() => {
|
|
1301
|
+
d.current = e;
|
|
1302
|
+
}, [e]), (0, o.useEffect)(() => {
|
|
1303
|
+
f || m();
|
|
1304
|
+
}, [n, f]), (0, o.useEffect)(() => {
|
|
1305
|
+
a && a.length > 0 && s(null);
|
|
1306
|
+
}, [JSON.stringify(a)]), (0, o.useEffect)(() => {
|
|
1307
|
+
f || typeof c != "number" || h.current !== null || (h.current = setTimeout(() => {
|
|
1308
|
+
m(), h.current = null;
|
|
1309
|
+
}, c));
|
|
1310
|
+
}, [
|
|
1311
|
+
c,
|
|
1312
|
+
f,
|
|
1313
|
+
m,
|
|
1314
|
+
...r
|
|
1315
|
+
]), {
|
|
1316
|
+
droppableRects: g,
|
|
1317
|
+
measureDroppableContainers: m,
|
|
1318
|
+
measuringScheduled: a != null
|
|
1319
|
+
};
|
|
1320
|
+
}(ce, {
|
|
1321
|
+
dragging: C,
|
|
1322
|
+
dependencies: [O.x, O.y],
|
|
1323
|
+
config: L.droppable
|
|
1324
|
+
}), U = function(e, t) {
|
|
1325
|
+
let n = t == null ? void 0 : e.get(t), r = n ? n.node.current : null;
|
|
1326
|
+
return b((e) => t == null ? null : r ?? e ?? null, [r, t]);
|
|
1327
|
+
}(D, T), de = (0, o.useMemo)(() => P ? ee(P) : null, [P]), pe = function() {
|
|
1328
|
+
let e = !1 === re?.autoScrollEnabled, t = typeof r == "object" ? !1 === r.enabled : !1 === r, n = C && !e && !t;
|
|
1329
|
+
return typeof r == "object" ? {
|
|
1330
|
+
...r,
|
|
1331
|
+
enabled: n
|
|
1332
|
+
} : { enabled: n };
|
|
1333
|
+
}(), _e = function(e, t) {
|
|
1334
|
+
return We(e, t);
|
|
1335
|
+
}(U, L.draggable.measure);
|
|
1336
|
+
(function(e) {
|
|
1337
|
+
let { activeNode: t, measure: n, initialRect: r, config: i = !0 } = e, a = (0, o.useRef)(!1), { x: s, y: c } = typeof i == "boolean" ? {
|
|
1338
|
+
x: i,
|
|
1339
|
+
y: i
|
|
1340
|
+
} : i;
|
|
1341
|
+
_(() => {
|
|
1342
|
+
if (!s && !c || !t) return void (a.current = !1);
|
|
1343
|
+
if (a.current || !r) return;
|
|
1344
|
+
let e = t?.node.current;
|
|
1345
|
+
if (!e || !1 === e.isConnected) return;
|
|
1346
|
+
let i = H(n(e), r);
|
|
1347
|
+
if (s || (i.x = 0), c || (i.y = 0), a.current = !0, Math.abs(i.x) > 0 || Math.abs(i.y) > 0) {
|
|
1348
|
+
let t = he(e);
|
|
1349
|
+
t && t.scrollBy({
|
|
1350
|
+
top: i.y,
|
|
1351
|
+
left: i.x
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
}, [
|
|
1355
|
+
t,
|
|
1356
|
+
s,
|
|
1357
|
+
c,
|
|
1358
|
+
r,
|
|
1359
|
+
n
|
|
1360
|
+
]);
|
|
1361
|
+
})({
|
|
1362
|
+
activeNode: T == null ? null : D.get(T),
|
|
1363
|
+
config: pe.layoutShiftCompensation,
|
|
1364
|
+
initialRect: _e,
|
|
1365
|
+
measure: L.draggable.measure
|
|
1366
|
+
});
|
|
1367
|
+
let W = qe(U, L.draggable.measure, _e), be = qe(U ? U.parentElement : null), G = (0, o.useRef)({
|
|
1368
|
+
activatorEvent: null,
|
|
1369
|
+
active: null,
|
|
1370
|
+
activeNode: U,
|
|
1371
|
+
collisionRect: null,
|
|
1372
|
+
collisions: null,
|
|
1373
|
+
droppableRects: z,
|
|
1374
|
+
draggableNodes: D,
|
|
1375
|
+
draggingNode: null,
|
|
1376
|
+
draggingNodeRect: null,
|
|
1377
|
+
droppableContainers: k,
|
|
1378
|
+
over: null,
|
|
1379
|
+
scrollableAncestors: [],
|
|
1380
|
+
scrollAdjustedTranslate: null
|
|
1381
|
+
}), K = k.getNodeFor(G.current.over?.id), q = Qe({ measure: L.dragOverlay.measure }), xe = q.nodeRef.current ?? U, J = C ? q.rect ?? W : null, Ce = !(!q.nodeRef.current || !q.rect), Y = H(Te = Ce ? null : W, We(Te));
|
|
1382
|
+
var Te;
|
|
1383
|
+
let Ee = Xe(xe ? f(xe) : null), X = function(e) {
|
|
1384
|
+
let t = (0, o.useRef)(e), n = b((n) => e ? n && n !== Je && e && t.current && e.parentNode === t.current.parentNode ? n : me(e) : Je, [e]);
|
|
1385
|
+
return (0, o.useEffect)(() => {
|
|
1386
|
+
t.current = e;
|
|
1387
|
+
}, [e]), n;
|
|
1388
|
+
}(C ? K ?? U : null), De = function(e, t) {
|
|
1389
|
+
t === void 0 && (t = fe);
|
|
1390
|
+
let [n] = e, r = Xe(n ? f(n) : null), [i, a] = (0, o.useState)(Ze);
|
|
1391
|
+
function s() {
|
|
1392
|
+
a(() => e.length ? e.map((e) => ye(e) ? r : new we(t(e), e)) : Ze);
|
|
1393
|
+
}
|
|
1394
|
+
let c = Ge({ callback: s });
|
|
1395
|
+
return _(() => {
|
|
1396
|
+
c?.disconnect(), s(), e.forEach((e) => c?.observe(e));
|
|
1397
|
+
}, [e]), i;
|
|
1398
|
+
}(X), Oe = function(e, t) {
|
|
1399
|
+
let { transform: n, ...r } = t;
|
|
1400
|
+
return e != null && e.length ? e.reduce((e, t) => t({
|
|
1401
|
+
transform: e,
|
|
1402
|
+
...r
|
|
1403
|
+
}), n) : n;
|
|
1404
|
+
}(d, {
|
|
1405
|
+
transform: {
|
|
1406
|
+
x: O.x - Y.x,
|
|
1407
|
+
y: O.y - Y.y,
|
|
1408
|
+
scaleX: 1,
|
|
1409
|
+
scaleY: 1
|
|
1410
|
+
},
|
|
1411
|
+
activatorEvent: P,
|
|
1412
|
+
active: A,
|
|
1413
|
+
activeNodeRect: W,
|
|
1414
|
+
containerNodeRect: be,
|
|
1415
|
+
draggingNodeRect: J,
|
|
1416
|
+
over: G.current.over,
|
|
1417
|
+
overlayNodeRect: q.rect,
|
|
1418
|
+
scrollableAncestors: X,
|
|
1419
|
+
scrollableAncestorRects: De,
|
|
1420
|
+
windowRect: Ee
|
|
1421
|
+
}), ke = de ? E(de, O) : null, Ae = function(e) {
|
|
1422
|
+
let [t, n] = (0, o.useState)(null), r = (0, o.useRef)(e), i = (0, o.useCallback)((e) => {
|
|
1423
|
+
let t = ge(e.target);
|
|
1424
|
+
t && n((e) => e ? (e.set(t, ve(t)), new Map(e)) : null);
|
|
1425
|
+
}, []);
|
|
1426
|
+
return (0, o.useEffect)(() => {
|
|
1427
|
+
let t = r.current;
|
|
1428
|
+
if (e !== t) {
|
|
1429
|
+
a(t);
|
|
1430
|
+
let o = e.map((e) => {
|
|
1431
|
+
let t = ge(e);
|
|
1432
|
+
return t ? (t.addEventListener("scroll", i, { passive: !0 }), [t, ve(t)]) : null;
|
|
1433
|
+
}).filter((e) => e != null);
|
|
1434
|
+
n(o.length ? new Map(o) : null), r.current = e;
|
|
1435
|
+
}
|
|
1436
|
+
return () => {
|
|
1437
|
+
a(e), a(t);
|
|
1438
|
+
};
|
|
1439
|
+
function a(e) {
|
|
1440
|
+
e.forEach((e) => {
|
|
1441
|
+
ge(e)?.removeEventListener("scroll", i);
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
}, [i, e]), (0, o.useMemo)(() => e.length ? t ? Array.from(t.values()).reduce((e, t) => E(e, t), I) : Se(e) : I, [e, t]);
|
|
1445
|
+
}(X), je = Ye(Ae), Me = Ye(Ae, [W]), Z = E(Oe, je), Q = J ? ue(J, Oe) : null, Ne = A && Q ? s({
|
|
1446
|
+
active: A,
|
|
1447
|
+
collisionRect: Q,
|
|
1448
|
+
droppableRects: z,
|
|
1449
|
+
droppableContainers: ce,
|
|
1450
|
+
pointerCoordinates: ke
|
|
1451
|
+
}) : null, Pe = function(e) {
|
|
1452
|
+
if (!e || e.length === 0) return null;
|
|
1453
|
+
let [t] = e;
|
|
1454
|
+
return t.id;
|
|
1455
|
+
}(Ne), [$, Fe] = (0, o.useState)(null), Ie = function(e, t, n) {
|
|
1456
|
+
return {
|
|
1457
|
+
...e,
|
|
1458
|
+
scaleX: t && n ? t.width / n.width : 1,
|
|
1459
|
+
scaleY: t && n ? t.height / n.height : 1
|
|
1460
|
+
};
|
|
1461
|
+
}(Ce ? Oe : E(Oe, Me), $?.rect ?? null, W), Re = (0, o.useRef)(null), ze = (0, o.useCallback)((e, t) => {
|
|
1462
|
+
let { sensor: n, options: r } = t;
|
|
1463
|
+
if (j.current == null) return;
|
|
1464
|
+
let i = D.get(j.current);
|
|
1465
|
+
if (!i) return;
|
|
1466
|
+
let a = e.nativeEvent, o = new n({
|
|
1467
|
+
active: j.current,
|
|
1468
|
+
activeNode: i,
|
|
1469
|
+
event: a,
|
|
1470
|
+
options: r,
|
|
1471
|
+
context: G,
|
|
1472
|
+
onAbort(e) {
|
|
1473
|
+
if (!D.get(e)) return;
|
|
1474
|
+
let { onDragAbort: t } = F.current, n = { id: e };
|
|
1475
|
+
t?.(n), g({
|
|
1476
|
+
type: "onDragAbort",
|
|
1477
|
+
event: n
|
|
1478
|
+
});
|
|
1479
|
+
},
|
|
1480
|
+
onPending(e, t, n, r) {
|
|
1481
|
+
if (!D.get(e)) return;
|
|
1482
|
+
let { onDragPending: i } = F.current, a = {
|
|
1483
|
+
id: e,
|
|
1484
|
+
constraint: t,
|
|
1485
|
+
initialCoordinates: n,
|
|
1486
|
+
offset: r
|
|
1487
|
+
};
|
|
1488
|
+
i?.(a), g({
|
|
1489
|
+
type: "onDragPending",
|
|
1490
|
+
event: a
|
|
1491
|
+
});
|
|
1492
|
+
},
|
|
1493
|
+
onStart(e) {
|
|
1494
|
+
let t = j.current;
|
|
1495
|
+
if (t == null) return;
|
|
1496
|
+
let n = D.get(t);
|
|
1497
|
+
if (!n) return;
|
|
1498
|
+
let { onDragStart: r } = F.current, i = {
|
|
1499
|
+
activatorEvent: a,
|
|
1500
|
+
active: {
|
|
1501
|
+
id: t,
|
|
1502
|
+
data: n.data,
|
|
1503
|
+
rect: ne
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
(0, c.unstable_batchedUpdates)(() => {
|
|
1507
|
+
r?.(i), S($e.Initializing), h({
|
|
1508
|
+
type: M.DragStart,
|
|
1509
|
+
initialCoordinates: e,
|
|
1510
|
+
active: t
|
|
1511
|
+
}), g({
|
|
1512
|
+
type: "onDragStart",
|
|
1513
|
+
event: i
|
|
1514
|
+
}), N(Re.current), ae(a);
|
|
1515
|
+
});
|
|
1516
|
+
},
|
|
1517
|
+
onMove(e) {
|
|
1518
|
+
h({
|
|
1519
|
+
type: M.DragMove,
|
|
1520
|
+
coordinates: e
|
|
1521
|
+
});
|
|
1522
|
+
},
|
|
1523
|
+
onEnd: s(M.DragEnd),
|
|
1524
|
+
onCancel: s(M.DragCancel)
|
|
1525
|
+
});
|
|
1526
|
+
function s(e) {
|
|
1527
|
+
return async function() {
|
|
1528
|
+
let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = G.current, o = null;
|
|
1529
|
+
if (t && i) {
|
|
1530
|
+
let { cancelDrop: s } = F.current;
|
|
1531
|
+
o = {
|
|
1532
|
+
activatorEvent: a,
|
|
1533
|
+
active: t,
|
|
1534
|
+
collisions: n,
|
|
1535
|
+
delta: i,
|
|
1536
|
+
over: r
|
|
1537
|
+
}, e === M.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = M.DragCancel);
|
|
1538
|
+
}
|
|
1539
|
+
j.current = null, (0, c.unstable_batchedUpdates)(() => {
|
|
1540
|
+
h({ type: e }), S($e.Uninitialized), Fe(null), N(null), ae(null), Re.current = null;
|
|
1541
|
+
let t = e === M.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
1542
|
+
if (o) {
|
|
1543
|
+
let e = F.current[t];
|
|
1544
|
+
e?.(o), g({
|
|
1545
|
+
type: t,
|
|
1546
|
+
event: o
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1549
|
+
});
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
Re.current = o;
|
|
1553
|
+
}, [D]), Be = function(e, t) {
|
|
1554
|
+
return (0, o.useMemo)(() => e.reduce((e, n) => {
|
|
1555
|
+
let { sensor: r } = n;
|
|
1556
|
+
return [...e, ...r.activators.map((e) => ({
|
|
1557
|
+
eventName: e.eventName,
|
|
1558
|
+
handler: t(e.handler, n)
|
|
1559
|
+
}))];
|
|
1560
|
+
}, []), [e, t]);
|
|
1561
|
+
}(a, (0, o.useCallback)((e, t) => (n, r) => {
|
|
1562
|
+
let i = n.nativeEvent, a = D.get(r);
|
|
1563
|
+
if (j.current !== null || !a || i.dndKit || i.defaultPrevented) return;
|
|
1564
|
+
let o = { active: a };
|
|
1565
|
+
!0 === e(n, t.options, o) && (i.dndKit = { capturedBy: t.sensor }, j.current = r, ze(n, t));
|
|
1566
|
+
}, [D, ze]));
|
|
1567
|
+
(function(e) {
|
|
1568
|
+
(0, o.useEffect)(() => {
|
|
1569
|
+
if (!l) return;
|
|
1570
|
+
let t = e.map((e) => {
|
|
1571
|
+
let { sensor: t } = e;
|
|
1572
|
+
return t.setup == null ? void 0 : t.setup();
|
|
1573
|
+
});
|
|
1574
|
+
return () => {
|
|
1575
|
+
for (let e of t) e?.();
|
|
1576
|
+
};
|
|
1577
|
+
}, e.map((e) => {
|
|
1578
|
+
let { sensor: t } = e;
|
|
1579
|
+
return t;
|
|
1580
|
+
}));
|
|
1581
|
+
})(a), _(() => {
|
|
1582
|
+
W && x === $e.Initializing && S($e.Initialized);
|
|
1583
|
+
}, [W, x]), (0, o.useEffect)(() => {
|
|
1584
|
+
let { onDragMove: e } = F.current, { active: t, activatorEvent: n, collisions: r, over: i } = G.current;
|
|
1585
|
+
if (!t || !n) return;
|
|
1586
|
+
let a = {
|
|
1587
|
+
active: t,
|
|
1588
|
+
activatorEvent: n,
|
|
1589
|
+
collisions: r,
|
|
1590
|
+
delta: {
|
|
1591
|
+
x: Z.x,
|
|
1592
|
+
y: Z.y
|
|
1593
|
+
},
|
|
1594
|
+
over: i
|
|
1595
|
+
};
|
|
1596
|
+
(0, c.unstable_batchedUpdates)(() => {
|
|
1597
|
+
e?.(a), g({
|
|
1598
|
+
type: "onDragMove",
|
|
1599
|
+
event: a
|
|
1600
|
+
});
|
|
1601
|
+
});
|
|
1602
|
+
}, [Z.x, Z.y]), (0, o.useEffect)(() => {
|
|
1603
|
+
let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = G.current;
|
|
1604
|
+
if (!e || j.current == null || !t || !i) return;
|
|
1605
|
+
let { onDragOver: a } = F.current, o = r.get(Pe), s = o && o.rect.current ? {
|
|
1606
|
+
id: o.id,
|
|
1607
|
+
rect: o.rect.current,
|
|
1608
|
+
data: o.data,
|
|
1609
|
+
disabled: o.disabled
|
|
1610
|
+
} : null, l = {
|
|
1611
|
+
active: e,
|
|
1612
|
+
activatorEvent: t,
|
|
1613
|
+
collisions: n,
|
|
1614
|
+
delta: {
|
|
1615
|
+
x: i.x,
|
|
1616
|
+
y: i.y
|
|
1617
|
+
},
|
|
1618
|
+
over: s
|
|
1619
|
+
};
|
|
1620
|
+
(0, c.unstable_batchedUpdates)(() => {
|
|
1621
|
+
Fe(s), a?.(l), g({
|
|
1622
|
+
type: "onDragOver",
|
|
1623
|
+
event: l
|
|
1624
|
+
});
|
|
1625
|
+
});
|
|
1626
|
+
}, [Pe]), _(() => {
|
|
1627
|
+
G.current = {
|
|
1628
|
+
activatorEvent: P,
|
|
1629
|
+
active: A,
|
|
1630
|
+
activeNode: U,
|
|
1631
|
+
collisionRect: Q,
|
|
1632
|
+
collisions: Ne,
|
|
1633
|
+
droppableRects: z,
|
|
1634
|
+
draggableNodes: D,
|
|
1635
|
+
draggingNode: xe,
|
|
1636
|
+
draggingNodeRect: J,
|
|
1637
|
+
droppableContainers: k,
|
|
1638
|
+
over: $,
|
|
1639
|
+
scrollableAncestors: X,
|
|
1640
|
+
scrollAdjustedTranslate: Z
|
|
1641
|
+
}, ne.current = {
|
|
1642
|
+
initial: J,
|
|
1643
|
+
translated: Q
|
|
1644
|
+
};
|
|
1645
|
+
}, [
|
|
1646
|
+
A,
|
|
1647
|
+
U,
|
|
1648
|
+
Ne,
|
|
1649
|
+
Q,
|
|
1650
|
+
D,
|
|
1651
|
+
xe,
|
|
1652
|
+
J,
|
|
1653
|
+
z,
|
|
1654
|
+
k,
|
|
1655
|
+
$,
|
|
1656
|
+
X,
|
|
1657
|
+
Z
|
|
1658
|
+
]), Ve({
|
|
1659
|
+
...pe,
|
|
1660
|
+
delta: O,
|
|
1661
|
+
draggingRect: Q,
|
|
1662
|
+
pointerCoordinates: ke,
|
|
1663
|
+
scrollableAncestors: X,
|
|
1664
|
+
scrollableAncestorRects: De
|
|
1665
|
+
});
|
|
1666
|
+
let He = (0, o.useMemo)(() => ({
|
|
1667
|
+
active: A,
|
|
1668
|
+
activeNode: U,
|
|
1669
|
+
activeNodeRect: W,
|
|
1670
|
+
activatorEvent: P,
|
|
1671
|
+
collisions: Ne,
|
|
1672
|
+
containerNodeRect: be,
|
|
1673
|
+
dragOverlay: q,
|
|
1674
|
+
draggableNodes: D,
|
|
1675
|
+
droppableContainers: k,
|
|
1676
|
+
droppableRects: z,
|
|
1677
|
+
over: $,
|
|
1678
|
+
measureDroppableContainers: le,
|
|
1679
|
+
scrollableAncestors: X,
|
|
1680
|
+
scrollableAncestorRects: De,
|
|
1681
|
+
measuringConfiguration: L,
|
|
1682
|
+
measuringScheduled: B,
|
|
1683
|
+
windowRect: Ee
|
|
1684
|
+
}), [
|
|
1685
|
+
A,
|
|
1686
|
+
U,
|
|
1687
|
+
W,
|
|
1688
|
+
P,
|
|
1689
|
+
Ne,
|
|
1690
|
+
be,
|
|
1691
|
+
q,
|
|
1692
|
+
D,
|
|
1693
|
+
k,
|
|
1694
|
+
z,
|
|
1695
|
+
$,
|
|
1696
|
+
le,
|
|
1697
|
+
X,
|
|
1698
|
+
De,
|
|
1699
|
+
L,
|
|
1700
|
+
B,
|
|
1701
|
+
Ee
|
|
1702
|
+
]), Ke = (0, o.useMemo)(() => ({
|
|
1703
|
+
activatorEvent: P,
|
|
1704
|
+
activators: Be,
|
|
1705
|
+
active: A,
|
|
1706
|
+
activeNodeRect: W,
|
|
1707
|
+
ariaDescribedById: { draggable: se },
|
|
1708
|
+
dispatch: h,
|
|
1709
|
+
draggableNodes: D,
|
|
1710
|
+
over: $,
|
|
1711
|
+
measureDroppableContainers: le
|
|
1712
|
+
}), [
|
|
1713
|
+
P,
|
|
1714
|
+
Be,
|
|
1715
|
+
A,
|
|
1716
|
+
W,
|
|
1717
|
+
h,
|
|
1718
|
+
se,
|
|
1719
|
+
D,
|
|
1720
|
+
$,
|
|
1721
|
+
le
|
|
1722
|
+
]);
|
|
1723
|
+
return o.createElement(ie.Provider, { value: v }, o.createElement(at.Provider, { value: Ke }, o.createElement(ot.Provider, { value: He }, o.createElement(ut.Provider, { value: Ie }, i)), o.createElement(lt, { disabled: !1 === n?.restoreFocus })), o.createElement(oe, {
|
|
1724
|
+
...n,
|
|
1725
|
+
hiddenTextDescribedById: se
|
|
1726
|
+
}));
|
|
1727
|
+
}), ft = (0, o.createContext)(null), pt = "button", mt = { timeout: 25 }, ht = (e) => {
|
|
1728
|
+
let { transform: t } = e;
|
|
1729
|
+
return {
|
|
1730
|
+
...t,
|
|
1731
|
+
x: 0
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1734
|
+
function gt(e, t, n) {
|
|
1735
|
+
let r = e.slice();
|
|
1736
|
+
return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
|
|
1737
|
+
}
|
|
1738
|
+
function _t(e, t) {
|
|
1739
|
+
return e.reduce((e, n, r) => {
|
|
1740
|
+
let i = t.get(n);
|
|
1741
|
+
return i && (e[r] = i), e;
|
|
1742
|
+
}, Array(e.length));
|
|
1743
|
+
}
|
|
1744
|
+
function vt(e) {
|
|
1745
|
+
return e !== null && e >= 0;
|
|
1746
|
+
}
|
|
1747
|
+
var yt = (e) => {
|
|
1748
|
+
let { rects: t, activeIndex: n, overIndex: r, index: i } = e, a = gt(t, r, n), o = t[i], s = a[i];
|
|
1749
|
+
return s && o ? {
|
|
1750
|
+
x: s.left - o.left,
|
|
1751
|
+
y: s.top - o.top,
|
|
1752
|
+
scaleX: s.width / o.width,
|
|
1753
|
+
scaleY: s.height / o.height
|
|
1754
|
+
} : null;
|
|
1755
|
+
}, bt = {
|
|
1756
|
+
scaleX: 1,
|
|
1757
|
+
scaleY: 1
|
|
1758
|
+
}, xt = (e) => {
|
|
1759
|
+
let { activeIndex: t, activeNodeRect: n, index: r, rects: i, overIndex: a } = e, o = i[t] ?? n;
|
|
1760
|
+
if (!o) return null;
|
|
1761
|
+
if (r === t) {
|
|
1762
|
+
let e = i[a];
|
|
1763
|
+
return e ? {
|
|
1764
|
+
x: 0,
|
|
1765
|
+
y: t < a ? e.top + e.height - (o.top + o.height) : e.top - o.top,
|
|
1766
|
+
...bt
|
|
1767
|
+
} : null;
|
|
1768
|
+
}
|
|
1769
|
+
let s = function(e, t, n) {
|
|
1770
|
+
let r = e[t], i = e[t - 1], a = e[t + 1];
|
|
1771
|
+
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;
|
|
1772
|
+
}(i, r, t);
|
|
1773
|
+
return r > t && r <= a ? {
|
|
1774
|
+
x: 0,
|
|
1775
|
+
y: -o.height - s,
|
|
1776
|
+
...bt
|
|
1777
|
+
} : r < t && r >= a ? {
|
|
1778
|
+
x: 0,
|
|
1779
|
+
y: o.height + s,
|
|
1780
|
+
...bt
|
|
1781
|
+
} : {
|
|
1782
|
+
x: 0,
|
|
1783
|
+
y: 0,
|
|
1784
|
+
...bt
|
|
1785
|
+
};
|
|
1786
|
+
}, St = "Sortable", Ct = o.createContext({
|
|
1787
|
+
activeIndex: -1,
|
|
1788
|
+
containerId: St,
|
|
1789
|
+
disableTransforms: !1,
|
|
1790
|
+
items: [],
|
|
1791
|
+
overIndex: -1,
|
|
1792
|
+
useDragOverlay: !1,
|
|
1793
|
+
sortedRects: [],
|
|
1794
|
+
strategy: yt,
|
|
1795
|
+
disabled: {
|
|
1796
|
+
draggable: !1,
|
|
1797
|
+
droppable: !1
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
function wt(e) {
|
|
1801
|
+
let { children: t, id: n, items: r, strategy: i = yt, disabled: a = !1 } = e, { active: s, dragOverlay: c, droppableRects: l, over: u, measureDroppableContainers: d } = (0, o.useContext)(ot), f = w(St, 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) {
|
|
1802
|
+
if (e === t) return !0;
|
|
1803
|
+
if (e.length !== t.length) return !1;
|
|
1804
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
1805
|
+
return !0;
|
|
1806
|
+
}(m, y.current), x = v !== -1 && g === -1 || b, S = function(e) {
|
|
1807
|
+
return typeof e == "boolean" ? {
|
|
1808
|
+
draggable: e,
|
|
1809
|
+
droppable: e
|
|
1810
|
+
} : e;
|
|
1811
|
+
}(a);
|
|
1812
|
+
_(() => {
|
|
1813
|
+
b && h && d(m);
|
|
1814
|
+
}, [
|
|
1815
|
+
b,
|
|
1816
|
+
m,
|
|
1817
|
+
h,
|
|
1818
|
+
d
|
|
1819
|
+
]), (0, o.useEffect)(() => {
|
|
1820
|
+
y.current = m;
|
|
1821
|
+
}, [m]);
|
|
1822
|
+
let C = (0, o.useMemo)(() => ({
|
|
1823
|
+
activeIndex: g,
|
|
1824
|
+
containerId: f,
|
|
1825
|
+
disabled: S,
|
|
1826
|
+
disableTransforms: x,
|
|
1827
|
+
items: m,
|
|
1828
|
+
overIndex: v,
|
|
1829
|
+
useDragOverlay: p,
|
|
1830
|
+
sortedRects: _t(m, l),
|
|
1831
|
+
strategy: i
|
|
1832
|
+
}), [
|
|
1833
|
+
g,
|
|
1834
|
+
f,
|
|
1835
|
+
S.draggable,
|
|
1836
|
+
S.droppable,
|
|
1837
|
+
x,
|
|
1838
|
+
m,
|
|
1839
|
+
v,
|
|
1840
|
+
l,
|
|
1841
|
+
p,
|
|
1842
|
+
i
|
|
1843
|
+
]);
|
|
1844
|
+
return o.createElement(Ct.Provider, { value: C }, t);
|
|
1845
|
+
}
|
|
1846
|
+
var Tt = (e) => {
|
|
1847
|
+
let { id: t, items: n, activeIndex: r, overIndex: i } = e;
|
|
1848
|
+
return gt(n, r, i).indexOf(t);
|
|
1849
|
+
}, Et = (e) => {
|
|
1850
|
+
let { containerId: t, isSorting: n, wasDragging: r, index: i, items: a, newIndex: o, previousItems: s, previousContainerId: c, transition: l } = e;
|
|
1851
|
+
return !(!l || !r || s !== a && i === o || !n && (o === i || t !== c));
|
|
1852
|
+
}, Dt = {
|
|
1853
|
+
duration: 200,
|
|
1854
|
+
easing: "ease"
|
|
1855
|
+
}, Ot = "transform", kt = k.Transition.toString({
|
|
1856
|
+
property: Ot,
|
|
1857
|
+
duration: 0,
|
|
1858
|
+
easing: "linear"
|
|
1859
|
+
}), At = { roleDescription: "sortable" };
|
|
1860
|
+
function jt(e) {
|
|
1861
|
+
let { animateLayoutChanges: t = Et, attributes: n, disabled: r, data: i, getNewIndex: a = Tt, id: s, strategy: c, resizeObserverConfig: l, transition: u = Dt } = e, { items: d, containerId: f, activeIndex: p, disabled: m, disableTransforms: h, sortedRects: g, overIndex: v, useDragOverlay: b, strategy: S } = (0, o.useContext)(Ct), C = function(e, t) {
|
|
1862
|
+
return typeof e == "boolean" ? {
|
|
1863
|
+
draggable: e,
|
|
1864
|
+
droppable: !1
|
|
1865
|
+
} : {
|
|
1866
|
+
draggable: e?.draggable ?? t.draggable,
|
|
1867
|
+
droppable: e?.droppable ?? t.droppable
|
|
1868
|
+
};
|
|
1869
|
+
}(r, m), T = d.indexOf(s), E = (0, o.useMemo)(() => ({
|
|
1870
|
+
sortable: {
|
|
1871
|
+
containerId: f,
|
|
1872
|
+
index: T,
|
|
1873
|
+
items: d
|
|
1874
|
+
},
|
|
1875
|
+
...i
|
|
1876
|
+
}), [
|
|
1877
|
+
f,
|
|
1878
|
+
i,
|
|
1879
|
+
T,
|
|
1880
|
+
d
|
|
1881
|
+
]), D = (0, o.useMemo)(() => d.slice(d.indexOf(s)), [d, s]), { rect: ee, node: te, isOver: ne, setNodeRef: A } = function(e) {
|
|
1882
|
+
let { data: t, disabled: n = !1, id: r, resizeObserverConfig: i } = e, a = w("Droppable"), { active: s, dispatch: c, over: l, measureDroppableContainers: u } = (0, o.useContext)(at), 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: _ } = {
|
|
1883
|
+
...mt,
|
|
1884
|
+
...i
|
|
1885
|
+
}, v = y(g ?? r), b = Ge({
|
|
1886
|
+
callback: (0, o.useCallback)(() => {
|
|
1887
|
+
f.current ? (m.current != null && clearTimeout(m.current), m.current = setTimeout(() => {
|
|
1888
|
+
u(Array.isArray(v.current) ? v.current : [v.current]), m.current = null;
|
|
1889
|
+
}, _)) : f.current = !0;
|
|
1890
|
+
}, [_]),
|
|
1891
|
+
disabled: h || !s
|
|
1892
|
+
}), [S, C] = x((0, o.useCallback)((e, t) => {
|
|
1893
|
+
b && (t && (b.unobserve(t), f.current = !1), e && b.observe(e));
|
|
1894
|
+
}, [b])), T = y(t);
|
|
1895
|
+
return (0, o.useEffect)(() => {
|
|
1896
|
+
b && S.current && (b.disconnect(), f.current = !1, b.observe(S.current));
|
|
1897
|
+
}, [S, b]), (0, o.useEffect)(() => (c({
|
|
1898
|
+
type: M.RegisterDroppable,
|
|
1899
|
+
element: {
|
|
1900
|
+
id: r,
|
|
1901
|
+
key: a,
|
|
1902
|
+
disabled: n,
|
|
1903
|
+
node: S,
|
|
1904
|
+
rect: p,
|
|
1905
|
+
data: T
|
|
1906
|
+
}
|
|
1907
|
+
}), () => c({
|
|
1908
|
+
type: M.UnregisterDroppable,
|
|
1909
|
+
key: a,
|
|
1910
|
+
id: r
|
|
1911
|
+
})), [r]), (0, o.useEffect)(() => {
|
|
1912
|
+
n !== d.current.disabled && (c({
|
|
1913
|
+
type: M.SetDroppableDisabled,
|
|
1914
|
+
id: r,
|
|
1915
|
+
key: a,
|
|
1916
|
+
disabled: n
|
|
1917
|
+
}), d.current.disabled = n);
|
|
1918
|
+
}, [
|
|
1919
|
+
r,
|
|
1920
|
+
a,
|
|
1921
|
+
n,
|
|
1922
|
+
c
|
|
1923
|
+
]), {
|
|
1924
|
+
active: s,
|
|
1925
|
+
rect: p,
|
|
1926
|
+
isOver: l?.id === r,
|
|
1927
|
+
node: S,
|
|
1928
|
+
over: l,
|
|
1929
|
+
setNodeRef: C
|
|
1930
|
+
};
|
|
1931
|
+
}({
|
|
1932
|
+
id: s,
|
|
1933
|
+
data: E,
|
|
1934
|
+
disabled: C.droppable,
|
|
1935
|
+
resizeObserverConfig: {
|
|
1936
|
+
updateMeasurementsFor: D,
|
|
1937
|
+
...l
|
|
1938
|
+
}
|
|
1939
|
+
}), { active: j, activatorEvent: re, activeNodeRect: N, attributes: ie, setNodeRef: P, listeners: ae, isDragging: oe, over: F, setActivatorNodeRef: se, transform: I } = function(e) {
|
|
1940
|
+
let { id: t, data: n, disabled: r = !1, attributes: i } = e, a = w("Draggable"), { activators: s, activatorEvent: c, active: l, activeNodeRect: u, ariaDescribedById: d, draggableNodes: f, over: p } = (0, o.useContext)(at), { role: m = pt, roleDescription: h = "draggable", tabIndex: g = 0 } = i ?? {}, v = l?.id === t, b = (0, o.useContext)(v ? ut : ft), [S, C] = x(), [T, E] = x(), D = function(e, t) {
|
|
1941
|
+
return (0, o.useMemo)(() => e.reduce((e, n) => {
|
|
1942
|
+
let { eventName: r, handler: i } = n;
|
|
1943
|
+
return e[r] = (e) => {
|
|
1944
|
+
i(e, t);
|
|
1945
|
+
}, e;
|
|
1946
|
+
}, {}), [e, t]);
|
|
1947
|
+
}(s, t), O = y(n);
|
|
1948
|
+
return _(() => (f.set(t, {
|
|
1949
|
+
id: t,
|
|
1950
|
+
key: a,
|
|
1951
|
+
node: S,
|
|
1952
|
+
activatorNode: T,
|
|
1953
|
+
data: O
|
|
1954
|
+
}), () => {
|
|
1955
|
+
let e = f.get(t);
|
|
1956
|
+
e && e.key === a && f.delete(t);
|
|
1957
|
+
}), [f, t]), {
|
|
1958
|
+
active: l,
|
|
1959
|
+
activatorEvent: c,
|
|
1960
|
+
activeNodeRect: u,
|
|
1961
|
+
attributes: (0, o.useMemo)(() => ({
|
|
1962
|
+
role: m,
|
|
1963
|
+
tabIndex: g,
|
|
1964
|
+
"aria-disabled": r,
|
|
1965
|
+
"aria-pressed": !(!v || m !== pt) || void 0,
|
|
1966
|
+
"aria-roledescription": h,
|
|
1967
|
+
"aria-describedby": d.draggable
|
|
1968
|
+
}), [
|
|
1969
|
+
r,
|
|
1970
|
+
m,
|
|
1971
|
+
g,
|
|
1972
|
+
v,
|
|
1973
|
+
h,
|
|
1974
|
+
d.draggable
|
|
1975
|
+
]),
|
|
1976
|
+
isDragging: v,
|
|
1977
|
+
listeners: r ? void 0 : D,
|
|
1978
|
+
node: S,
|
|
1979
|
+
over: p,
|
|
1980
|
+
setNodeRef: C,
|
|
1981
|
+
setActivatorNodeRef: E,
|
|
1982
|
+
transform: b
|
|
1983
|
+
};
|
|
1984
|
+
}({
|
|
1985
|
+
id: s,
|
|
1986
|
+
data: E,
|
|
1987
|
+
attributes: {
|
|
1988
|
+
...At,
|
|
1989
|
+
...n
|
|
1990
|
+
},
|
|
1991
|
+
disabled: C.draggable
|
|
1992
|
+
}), ce = function() {
|
|
1993
|
+
var e = [...arguments];
|
|
1994
|
+
return (0, o.useMemo)(() => (t) => {
|
|
1995
|
+
e.forEach((e) => e(t));
|
|
1996
|
+
}, e);
|
|
1997
|
+
}(A, P), L = !!j, R = L && !h && vt(p) && vt(v), z = !b && oe, le = R ? (z && R ? I : null) ?? (c ?? S)({
|
|
1998
|
+
rects: g,
|
|
1999
|
+
activeNodeRect: N,
|
|
2000
|
+
activeIndex: p,
|
|
2001
|
+
overIndex: v,
|
|
2002
|
+
index: T
|
|
2003
|
+
}) : null, B = vt(p) && vt(v) ? a({
|
|
2004
|
+
id: s,
|
|
2005
|
+
items: d,
|
|
2006
|
+
activeIndex: p,
|
|
2007
|
+
overIndex: v
|
|
2008
|
+
}) : T, V = j?.id, H = (0, o.useRef)({
|
|
2009
|
+
activeId: V,
|
|
2010
|
+
items: d,
|
|
2011
|
+
newIndex: B,
|
|
2012
|
+
containerId: f
|
|
2013
|
+
}), U = d !== H.current.items, ue = t({
|
|
2014
|
+
active: j,
|
|
2015
|
+
containerId: f,
|
|
2016
|
+
isDragging: oe,
|
|
2017
|
+
isSorting: L,
|
|
2018
|
+
id: s,
|
|
2019
|
+
index: T,
|
|
2020
|
+
items: d,
|
|
2021
|
+
newIndex: H.current.newIndex,
|
|
2022
|
+
previousItems: H.current.items,
|
|
2023
|
+
previousContainerId: H.current.containerId,
|
|
2024
|
+
transition: u,
|
|
2025
|
+
wasDragging: H.current.activeId != null
|
|
2026
|
+
}), de = function(e) {
|
|
2027
|
+
let { disabled: t, index: n, node: r, rect: i } = e, [a, s] = (0, o.useState)(null), c = (0, o.useRef)(n);
|
|
2028
|
+
return _(() => {
|
|
2029
|
+
if (!t && n !== c.current && r.current) {
|
|
2030
|
+
let e = i.current;
|
|
2031
|
+
if (e) {
|
|
2032
|
+
let t = fe(r.current, { ignoreTransform: !0 }), n = {
|
|
2033
|
+
x: e.left - t.left,
|
|
2034
|
+
y: e.top - t.top,
|
|
2035
|
+
scaleX: e.width / t.width,
|
|
2036
|
+
scaleY: e.height / t.height
|
|
2037
|
+
};
|
|
2038
|
+
(n.x || n.y) && s(n);
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
n !== c.current && (c.current = n);
|
|
2042
|
+
}, [
|
|
2043
|
+
t,
|
|
2044
|
+
n,
|
|
2045
|
+
r,
|
|
2046
|
+
i
|
|
2047
|
+
]), (0, o.useEffect)(() => {
|
|
2048
|
+
a && s(null);
|
|
2049
|
+
}, [a]), a;
|
|
2050
|
+
}({
|
|
2051
|
+
disabled: !ue,
|
|
2052
|
+
index: T,
|
|
2053
|
+
node: te,
|
|
2054
|
+
rect: ee
|
|
2055
|
+
});
|
|
2056
|
+
return (0, o.useEffect)(() => {
|
|
2057
|
+
L && H.current.newIndex !== B && (H.current.newIndex = B), f !== H.current.containerId && (H.current.containerId = f), d !== H.current.items && (H.current.items = d);
|
|
2058
|
+
}, [
|
|
2059
|
+
L,
|
|
2060
|
+
B,
|
|
2061
|
+
f,
|
|
2062
|
+
d
|
|
2063
|
+
]), (0, o.useEffect)(() => {
|
|
2064
|
+
if (V === H.current.activeId) return;
|
|
2065
|
+
if (V != null && H.current.activeId == null) return void (H.current.activeId = V);
|
|
2066
|
+
let e = setTimeout(() => {
|
|
2067
|
+
H.current.activeId = V;
|
|
2068
|
+
}, 50);
|
|
2069
|
+
return () => clearTimeout(e);
|
|
2070
|
+
}, [V]), {
|
|
2071
|
+
active: j,
|
|
2072
|
+
activeIndex: p,
|
|
2073
|
+
attributes: ie,
|
|
2074
|
+
data: E,
|
|
2075
|
+
rect: ee,
|
|
2076
|
+
index: T,
|
|
2077
|
+
newIndex: B,
|
|
2078
|
+
items: d,
|
|
2079
|
+
isOver: ne,
|
|
2080
|
+
isSorting: L,
|
|
2081
|
+
isDragging: oe,
|
|
2082
|
+
listeners: ae,
|
|
2083
|
+
node: te,
|
|
2084
|
+
overIndex: v,
|
|
2085
|
+
over: F,
|
|
2086
|
+
setNodeRef: ce,
|
|
2087
|
+
setActivatorNodeRef: se,
|
|
2088
|
+
setDroppableNodeRef: A,
|
|
2089
|
+
setDraggableNodeRef: P,
|
|
2090
|
+
transform: de ?? le,
|
|
2091
|
+
transition: de || U && H.current.newIndex === T ? kt : z && !O(re) || !u || !L && !ue ? void 0 : k.Transition.toString({
|
|
2092
|
+
...u,
|
|
2093
|
+
property: Ot
|
|
2094
|
+
})
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
K.Down, K.Right, K.Up, K.Left;
|
|
2098
|
+
var Mt = "data-sxl-flip", Nt = (0, o.memo)((e) => {
|
|
2099
|
+
let { ids: t, onMove: n, scrollRef: r, children: i } = e, a = function() {
|
|
2100
|
+
var e = [...arguments];
|
|
2101
|
+
return (0, o.useMemo)(() => [...e].filter((e) => e != null), [...e]);
|
|
2102
|
+
}(se(Ie, { activationConstraint: { distance: 6 } }), se(Be, { activationConstraint: {
|
|
2103
|
+
delay: 200,
|
|
2104
|
+
tolerance: 6
|
|
2105
|
+
} })), c = (0, o.useRef)(null), l = (0, o.useMemo)(() => [ht, ({ draggingNodeRect: e, transform: t }) => {
|
|
2106
|
+
let n = c.current;
|
|
2107
|
+
return e && n ? e.top + t.y < n.top ? {
|
|
2108
|
+
...t,
|
|
2109
|
+
y: n.top - e.top
|
|
2110
|
+
} : e.bottom + t.y > n.bottom ? {
|
|
2111
|
+
...t,
|
|
2112
|
+
y: n.bottom - e.bottom
|
|
2113
|
+
} : t : t;
|
|
2114
|
+
}], []);
|
|
2115
|
+
return (0, s.jsx)(dt, {
|
|
2116
|
+
sensors: a,
|
|
2117
|
+
collisionDetection: le,
|
|
2118
|
+
modifiers: l,
|
|
2119
|
+
onDragStart: () => {
|
|
2120
|
+
c.current = ((e) => {
|
|
2121
|
+
if (!e) return null;
|
|
2122
|
+
let t = e.querySelectorAll(`[${Mt}]`);
|
|
2123
|
+
if (t.length === 0) return null;
|
|
2124
|
+
let n = 1 / 0, r = -1 / 0;
|
|
2125
|
+
for (let e = 0; e < t.length; e++) {
|
|
2126
|
+
let i = t[e].getBoundingClientRect();
|
|
2127
|
+
i.top < n && (n = i.top), i.bottom > r && (r = i.bottom);
|
|
2128
|
+
}
|
|
2129
|
+
return {
|
|
2130
|
+
top: n,
|
|
2131
|
+
bottom: r
|
|
2132
|
+
};
|
|
2133
|
+
})(r.current);
|
|
2134
|
+
},
|
|
2135
|
+
onDragCancel: () => {
|
|
2136
|
+
c.current = null;
|
|
2137
|
+
},
|
|
2138
|
+
autoScroll: { canScroll: (e) => {
|
|
2139
|
+
if (e === document.scrollingElement || e === document.documentElement || e === document.body) return !1;
|
|
2140
|
+
let t = r.current;
|
|
2141
|
+
return !!t && (e === t || e.contains(t));
|
|
2142
|
+
} },
|
|
2143
|
+
onDragEnd: (e) => {
|
|
2144
|
+
c.current = null;
|
|
2145
|
+
let { active: r, over: i } = e;
|
|
2146
|
+
if (!i || r.id === i.id) return;
|
|
2147
|
+
let a = t.indexOf(String(r.id)), o = t.indexOf(String(i.id));
|
|
2148
|
+
a !== -1 && o !== -1 && a !== o && n(a, o);
|
|
2149
|
+
},
|
|
2150
|
+
children: (0, s.jsx)(wt, {
|
|
2151
|
+
items: t,
|
|
2152
|
+
strategy: xt,
|
|
2153
|
+
children: i
|
|
2154
|
+
})
|
|
2155
|
+
});
|
|
2156
|
+
});
|
|
2157
|
+
function Pt(e, t, n) {
|
|
2158
|
+
let r = (0, o.useRef)(/* @__PURE__ */ new Map());
|
|
2159
|
+
_(() => {
|
|
2160
|
+
if (!t || !e.current) return void (r.current = /* @__PURE__ */ new Map());
|
|
2161
|
+
let i = r.current, a = /* @__PURE__ */ new Map(), o = [], s = e.current.querySelectorAll(`[${Mt}]`);
|
|
2162
|
+
for (let e = 0; e < s.length; e++) {
|
|
2163
|
+
let t = s[e], n = t.getAttribute(Mt), r = t.offsetTop;
|
|
2164
|
+
a.set(n, r);
|
|
2165
|
+
let c = i.get(n);
|
|
2166
|
+
c !== void 0 && c !== r && o.push({
|
|
2167
|
+
element: t,
|
|
2168
|
+
delta: c - r
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
if (r.current = a, o.length !== 0) {
|
|
2172
|
+
if (n.current) n.current = !1;
|
|
2173
|
+
else {
|
|
2174
|
+
for (let { element: e, delta: t } of o) e.style.transition = "none", e.style.transform = `translateY(${t}px)`;
|
|
2175
|
+
e.current.offsetHeight;
|
|
2176
|
+
for (let { element: e } of o) e.style.transition = "transform 200ms ease", e.style.transform = "", e.addEventListener("transitionend", function t() {
|
|
2177
|
+
e.style.transition = "", e.removeEventListener("transitionend", t);
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
}
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
Nt.displayName = "SortableCards";
|
|
2184
|
+
var Ft = (0, o.memo)((e) => {
|
|
2185
|
+
let { id: t, disabled: n, children: r } = e, { setNodeRef: c, transform: l, transition: u, isDragging: d, listeners: f } = jt({
|
|
2186
|
+
id: t,
|
|
2187
|
+
disabled: n
|
|
2188
|
+
}), p = (0, o.useMemo)(() => {
|
|
2189
|
+
if (!f) return f;
|
|
2190
|
+
let e = {};
|
|
2191
|
+
for (let [t, n] of Object.entries(f)) e[t] = (e, ...t) => {
|
|
2192
|
+
(e?.target)?.closest?.("button, input, textarea, select, a[href], [contenteditable=\"true\"], [role=\"combobox\"]") || n(e, ...t);
|
|
2193
|
+
};
|
|
2194
|
+
return e;
|
|
2195
|
+
}, [f]);
|
|
2196
|
+
return (0, s.jsx)(a, {
|
|
2197
|
+
ref: c,
|
|
2198
|
+
...p,
|
|
2199
|
+
[Mt]: t,
|
|
2200
|
+
className: i("sxl-sortable-card", {
|
|
2201
|
+
"sxl-dragging": d,
|
|
2202
|
+
"sxl-drag-disabled": n
|
|
2203
|
+
}),
|
|
2204
|
+
sx: {
|
|
2205
|
+
flex: "0 0 auto",
|
|
2206
|
+
borderRadius: (e) => e.spacing(1.25),
|
|
2207
|
+
boxShadow: d ? 6 : void 0,
|
|
2208
|
+
...n ? null : {
|
|
2209
|
+
cursor: d ? "grabbing" : "grab",
|
|
2210
|
+
"&:active": { cursor: "grabbing" }
|
|
2211
|
+
},
|
|
2212
|
+
...d ? {
|
|
2213
|
+
"& *": { cursor: "grabbing !important" },
|
|
2214
|
+
backgroundColor: (e) => e.palette.background.paper
|
|
2215
|
+
} : null
|
|
2216
|
+
},
|
|
2217
|
+
style: {
|
|
2218
|
+
transform: k.Translate.toString(l),
|
|
2219
|
+
transition: u,
|
|
2220
|
+
touchAction: "manipulation",
|
|
2221
|
+
...d ? {
|
|
2222
|
+
position: "relative",
|
|
2223
|
+
zIndex: 1
|
|
2224
|
+
} : null
|
|
2225
|
+
},
|
|
2226
|
+
children: r
|
|
2227
|
+
});
|
|
2228
|
+
});
|
|
2229
|
+
Ft.displayName = "SortableCard";
|
|
2230
|
+
export { Ft as n, Nt as r, Pt as t };
|