@sheetxl/studio-vanilla 0.3.0 → 0.3.2
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/LICENSE.md +11 -11
- package/README.md +97 -97
- package/browser/cjs/{cXKpamD3YJ7T7UIy.cjs → 8Y7hlPEOJeSakYCm.cjs} +2 -12
- package/browser/cjs/B4SOP0NZdUa_5syD.cjs +452 -0
- package/browser/cjs/{Dqytj5avvhy0OfcQ.cjs → B5XBWUdLMqS2HDaF.cjs} +3 -3
- package/browser/cjs/{DAEWVQt08NYEEiDp.cjs → BDItG-Ctn9btjJYc.cjs} +1 -1
- package/browser/cjs/BHCPp9yjpWH3JG34.cjs +6 -0
- package/browser/cjs/{CU_BzP7b4cIkOp0W.cjs → BKGew2NYE-aa2w6y.cjs} +2 -2
- package/browser/cjs/{pXJLtwMuQqVtfxDh.cjs → BMBMwGW_zSiAe-XN.cjs} +1 -1
- package/browser/cjs/{C0s5F1POfARzrKP5.cjs → BPbd8bf2gOPV7ZtV.cjs} +8 -8
- package/browser/cjs/BZWVOs1oqYkcQagx.cjs +6 -0
- package/browser/cjs/B_HrZqG_mlwYR4Ae.cjs +6 -0
- package/browser/cjs/{BBRsvQi2qwf1nduI.cjs → Bb4zRbBuFZbbsMgv.cjs} +1 -1
- package/browser/cjs/{UaNxxw6ywOxwUm2P.cjs → BcapKXhCmLNJmfsN.cjs} +1 -1
- package/browser/cjs/{BgcoRkkmbBckGLPB.cjs → BivyzwRCqS37kNIh.cjs} +1 -1
- package/browser/cjs/Boig6aZA2-R5_w21.cjs +15 -0
- package/browser/cjs/Bwi2m9xG4JvXPBHQ.cjs +12 -0
- package/browser/cjs/{heo8nWRKxUNJeEc8.cjs → Bx6ZuxKkOWgx7s9X.cjs} +2 -2
- package/browser/cjs/{B6YGJGvRNGuQ9_gp.cjs → C4Far2itXrJ3DMOt.cjs} +1 -1
- package/browser/cjs/C6MqpTvQKwY2D1nN.cjs +7 -0
- package/browser/cjs/{Dy8SVjsVQet5vLuM.cjs → CDh1V-eGnwm_zj2N.cjs} +1 -1
- package/browser/cjs/{BdCoE_M8e0hB71qX.cjs → CDt2itaEJHdgdMf7.cjs} +1 -1
- package/browser/cjs/{733JB7rykyRwGt4E.cjs → CFRAYmx7O_QuuqLm.cjs} +1 -1
- package/browser/cjs/{3QL6_jTFdiirmbvL.cjs → CLT2qTd_lmEX24Wq.cjs} +1 -1
- package/browser/cjs/CU5XR4xQQYjuDqWh.cjs +6 -0
- package/browser/cjs/{jspcRaFi7FlNoOCi.cjs → CV3O2HrGgeVyZSTI.cjs} +2 -2
- package/browser/cjs/{Cq6nKXJncTvIPDs0.cjs → CWuna-uBlfjsma3U.cjs} +3 -25
- package/browser/cjs/{BzHjhROODDie_GcY.cjs → C_-gd03rNpCoIWh3.cjs} +1 -1
- package/browser/cjs/{C7zut22tCoRegV_d.cjs → CgBaptNB5xDzVtxH.cjs} +2 -2
- package/browser/cjs/CiCnx8sUQcc8athi.cjs +13 -0
- package/browser/cjs/{DE8l2rQfo2VVUkcB.cjs → CiJXZ4MMq0-g5pRy.cjs} +38 -48
- package/browser/cjs/{DIh6OO396kZjKhj2.cjs → CkOqLhMfOSUO6hZc.cjs} +9 -29
- package/browser/cjs/{C5jc-Y-Hgl0f-Bdo.cjs → CkboN9PqhMP8gVUO.cjs} +1 -1
- package/browser/cjs/{Br9jR9D1r5-o3MNY.cjs → CpPLkq1qYpELtBVb.cjs} +3 -3
- package/browser/cjs/CwhdUCDaoLQGcvJy.cjs +15 -0
- package/browser/cjs/{BFLfq3S9KpGbl7Sg.cjs → Cx2rTk-O7yQO7-q6.cjs} +4 -24
- package/browser/cjs/{8igELOAHTBTibdxC.cjs → Cx39LdblHkleUMb1.cjs} +1 -1
- package/browser/cjs/{BeR1ChCVTFwB5yHv.cjs → D4HABltWISUjVaOO.cjs} +3 -13
- package/browser/cjs/{DdAp7pgJ74tC2bXc.cjs → D99WjfuVwM-YRm4a.cjs} +1 -1
- package/browser/cjs/DCe0ifxJ2waXgr0H.cjs +6 -0
- package/browser/cjs/{Du3dcmxNI2FligcT.cjs → DDvILQ7_cSgi8K6F.cjs} +1 -1
- package/browser/cjs/DE3aCIXAZL7uLX0k.cjs +7 -0
- package/browser/cjs/{BXfPkTrM6foeVPwk.cjs → DRvH_199sgRclUKY.cjs} +2 -51
- package/browser/cjs/{Bjus8Eiw4cFgUHkk.cjs → DV0r3gTeA-w2Q6Jx.cjs} +1 -1
- package/browser/cjs/{Cpw1pytHjcWHlrs5.cjs → DWoR03zqV8zXWO-X.cjs} +1 -1
- package/browser/cjs/{DOfe_n57c-AmDBXL.cjs → DZ3gARHylllIcJDT.cjs} +1 -1
- package/browser/cjs/DbdPbW-LrAm6toaO.cjs +12 -0
- package/browser/cjs/{99Nzn-PICRpNSUxm.cjs → DciSg5hoXxvfqoKC.cjs} +1 -1
- package/browser/cjs/{CPy6BZgWgaukH2wr.cjs → DjmqyErluCMLOjsF.cjs} +1 -1
- package/browser/cjs/{CFIXzpjjBJD9Ssfu.cjs → DlAB_CcYmXk8tpYL.cjs} +1 -17
- package/browser/cjs/{VjVwC7Tg9iSVxZ_e.cjs → DmhCjj0KeysXxIzX.cjs} +2 -2
- package/browser/cjs/{CMsqJV9uPQCkxjr1.cjs → Dn1uL0GqyDGo3d67.cjs} +2 -2
- package/browser/cjs/{s-6Dp8AeCjfET6lC.cjs → Dn4RfIZ9VHwQ7Eex.cjs} +1 -1
- package/browser/cjs/{D1F49z1BTQNLc001.cjs → Dn6LoJinxzxUiMDg.cjs} +2 -2
- package/browser/cjs/{DVziX7RxofEvjdaZ.cjs → Do_T0KvdhyBUnWx_.cjs} +1 -6
- package/browser/cjs/DvtlLY8kPVwL4sgA.cjs +6 -0
- package/browser/cjs/{7_gN0Iu07E3GI7B1.cjs → DyS1Kn_U7Em83Hsq.cjs} +1 -1
- package/browser/cjs/INcIs0jpLlM3mm-H.cjs +11 -0
- package/browser/cjs/{mQf_DGFtPLC3XOGK.cjs → YHVbESGX6phJX20u.cjs} +1 -1
- package/browser/cjs/{D6JdKwLNWc3ioSMm.cjs → ZWsbkG6eb6seSRXv.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/{cdn/assets/CGCghKS4Jl7fGewC.js → browser/esm/3N51fmivOwyOXT3l.mjs} +1 -13
- package/{cdn/assets/C9pcd-6v0BwN-Nrg.js → browser/esm/3VzVhIOnlmOZ-dBg.mjs} +6 -12
- package/{cdn/assets/vhG_0swcLosZTyyb.js → browser/esm/6nSiDtF6igNyrf2y.mjs} +8 -14
- package/{cdn/assets/D6CGsM4vcM8GtGg4.js → browser/esm/B0DAlgwfAWOXvq4_.mjs} +2 -8
- package/{cdn/assets/Bqjg7PBsD1qpWapS.js → browser/esm/B1m-ozjxrnDeFhiZ.mjs} +1 -13
- package/browser/esm/B4LH4e6YQr0i0kbs.mjs +29 -0
- package/browser/esm/BEdbC5wAfOjfWhGs.mjs +21 -0
- package/{cdn/assets/Jv_Qhh-WUFMrxoID.js → browser/esm/BH6ldKaAlNHAWreh.mjs} +7 -77
- package/{cdn/assets/CwpligBAfWbwjv90.js → browser/esm/BM8e7ROZOHaAquLi.mjs} +1 -13
- package/browser/esm/{tUcACmQVgT_vQZRd.mjs → BTTKTkAe7jTaQvjz.mjs} +1 -13
- package/browser/esm/{Dbr6KB-IYBe-9CSb.mjs → BbYZAR2suHjEBaES.mjs} +2 -2
- package/browser/esm/Bjsc6wrUpvl_hjRj.mjs +12 -0
- package/{cdn/assets/0KJ23PTXKNiflMEW.js → browser/esm/Bjtb8lG8j5lZLmPO.mjs} +9 -15
- package/{cdn/assets/DYZMXz31j3qNRh0f.js → browser/esm/Bpt-cfH_EphAcLow.mjs} +3 -15
- package/{cdn/assets/CC2fNxNRteCEEFhk.js → browser/esm/BsMA-6c4MCPqfDAq.mjs} +2 -20
- package/{cdn/assets/D6iCivbxJB9YAHRy.js → browser/esm/C2nH1Z0Qv8dVA46o.mjs} +2 -14
- package/browser/esm/{B3SIwz6UDnshg1xz.mjs → C4ADTbdoMYv-xYb_.mjs} +1 -15
- package/browser/esm/C5ipzxDNB7mwOup8.mjs +10 -0
- package/browser/esm/{CxaMQw-I5c8XLq_x.mjs → CMICZ36cqe6eEELU.mjs} +16 -16
- package/{cdn/assets/3Oauro-m0-iFcqzH.js → browser/esm/CMwrohupcgVf9ovx.mjs} +163 -163
- package/browser/esm/{BjJVmzUi3VgBwYWL.mjs → CSvpcvVrtQMi5YMH.mjs} +1 -13
- package/browser/esm/{Cow5a04f6LqFGoQZ.mjs → CUFXsvWRmBglOxCh.mjs} +1 -13
- package/browser/esm/{iC6qNNMVatdQ7tzG.mjs → CUrekuBvZp8HzDRR.mjs} +1 -13
- package/{cdn/assets/CKJke70LtH4vX8Yy.js → browser/esm/CXM4duZAQ9xkx_-8.mjs} +1 -13
- package/browser/esm/C_9Upo5I-PSK47R_.mjs +10 -0
- package/browser/esm/{ako9wmFN1XdkwSc1.mjs → C_xUEkZ7r882X9Ha.mjs} +1 -19
- package/{cdn/assets/gu3uSTwzxG-Hq3Tn.js → browser/esm/CnenkhTeaOhTTMqv.mjs} +2 -8
- package/browser/esm/{DMc9rEXgTnQiUhVu.mjs → Ct9ZcjuuaNCX6kIj.mjs} +1 -13
- package/browser/esm/{BieQsUFphd-4Dl2o.mjs → Ctrv_0YzvwpnUr0y.mjs} +2 -14
- package/browser/esm/{rBWM2hNaaS5ELSY5.mjs → Cux5PsvHYlpp5b2x.mjs} +40 -46
- package/browser/esm/{DwdX0RUFwrRrBtRA.mjs → CvbAyNJlfhcCYfDr.mjs} +2 -8
- package/browser/esm/{D8I1NKgZQBM1OlB_.mjs → CxjY2TO23WNFisWX.mjs} +1 -13
- package/{cdn/assets/D7dirdQd4_w5Kf3O.js → browser/esm/Cz7RSKUHlEt4Sy6b.mjs} +6373 -6290
- package/browser/esm/{Xxw0Y9hXxIwKKGPq.mjs → D0wIYxN6_chAmwCc.mjs} +1 -13
- package/browser/esm/{sXwOwWbIPvtOcCOv.mjs → D3XmnZGIfxT4lk3w.mjs} +1 -13
- package/browser/esm/{D_mjyyaB1h7KHEAu.mjs → D6KZyFauO14Su023.mjs} +1 -13
- package/browser/esm/D8C3KeX9kFgFNEsb.mjs +10 -0
- package/browser/esm/DAW6ifi60VDar3-l.mjs +10 -0
- package/browser/esm/DDfN1juzl1hT_UFe.mjs +41 -0
- package/browser/esm/{TTYba_o2v8b2WWvm.mjs → DOGg1qByRfg3Xspr.mjs} +6 -32
- package/browser/esm/{DE5GJPPKB9akZnOl.mjs → DTeYi36ajMzmUc3x.mjs} +1 -13
- package/browser/esm/{CB7PEr_-y0BQWtqs.mjs → Dc1H2furircZlzN8.mjs} +13 -25
- package/{cdn/assets/DRNhrLbNn_6nGCEJ.js → browser/esm/Dd9etqsWH04KVyov.mjs} +12 -18
- package/{cdn/assets/Bn5K2xW-LDe4UKiG.js → browser/esm/DfKdydqLJ4MMUAow.mjs} +1 -13
- package/browser/esm/{BqvvewQdU3dKato4.mjs → DirjJILlmPlhPZwJ.mjs} +4 -28
- package/browser/esm/{Cfp-IQYhF8wI3U8j.mjs → DlF4ox6px_a8KGDI.mjs} +1 -13
- package/browser/esm/{BeFmG8d-eHZsiUqR.mjs → Dq8duLxf4-Tuo_wV.mjs} +5 -11
- package/browser/esm/{CRSV-894QtiDUmtJ.mjs → Dv5RrOnUwTMHeM7k.mjs} +8 -31
- package/{cdn/assets/B7MrO9H4Wh3DRVKy.js → browser/esm/HPDpApJMbty0fOGh.mjs} +3 -27
- package/browser/esm/{DhVke7KHq6lbQPZg.mjs → Ld4Og9zF7kdwc9Bq.mjs} +1 -13
- package/browser/esm/{vBbdzr5TIj8oCBOQ.mjs → MhA9JYSNQknyC2-7.mjs} +1 -13
- package/browser/esm/{DeZqllxB8Fy4CjwJ.mjs → TCHZxTIhWMVkgX3o.mjs} +1 -20
- package/browser/esm/{BGHKmUXsDDoutTYQ.mjs → TCyoIWnhQsOAGihq.mjs} +1 -7
- package/browser/esm/{OGU71t0PDjtl3-M4.mjs → XWOQU_sxt5_lFjJM.mjs} +1 -13
- package/browser/esm/{DbbapxCRGpFogl_Q.mjs → blfFjNlrt7wIm8ac.mjs} +1 -13
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/nLQOv_3C-yTgOm_d.mjs +24 -0
- package/{cdn/assets/CVXeIfSHxFnpUSYz.js → browser/esm/nuGYHbGeWLkN7IFF.mjs} +1 -13
- package/{cdn/assets/pf0juu-OwjVx8NfT.js → browser/esm/on8xRgdppLtS76xu.mjs} +12 -16
- package/{browser/esm/CGCghKS4Jl7fGewC.mjs → cdn/assets/3N51fmivOwyOXT3l.js} +1 -13
- package/cdn/assets/{DQCWbcueShZFNwmV.js → 9ZJYmMX0oks56Dir.js} +16 -16
- package/{browser/esm/dYh86bRPKzI8ASeR.mjs → cdn/assets/B0h0MHiq87C7wRUG.js} +8 -14
- package/{browser/esm/Bqjg7PBsD1qpWapS.mjs → cdn/assets/B1m-ozjxrnDeFhiZ.js} +1 -13
- package/cdn/assets/{DwOLxNWTgpajuVoq.js → B537hPIx4O8b3yYs.js} +4 -28
- package/cdn/assets/{CGc5eC8iV73B-vAE.js → BDy4o1dgQMIqsMiY.js} +2 -2
- package/cdn/assets/BEdbC5wAfOjfWhGs.js +21 -0
- package/{browser/esm/Jv_Qhh-WUFMrxoID.mjs → cdn/assets/BH6ldKaAlNHAWreh.js} +7 -77
- package/{browser/esm/BF4cNyvUhV9e9yfu.mjs → cdn/assets/BHQC-R8MGLRzOxBA.js} +6 -12
- package/{browser/esm/CwpligBAfWbwjv90.mjs → cdn/assets/BM8e7ROZOHaAquLi.js} +1 -13
- package/cdn/assets/{tUcACmQVgT_vQZRd.js → BTTKTkAe7jTaQvjz.js} +1 -13
- package/{browser/esm/Cbs-rx1iLGiLCCUn.mjs → cdn/assets/BTXU6Aai-Ialy3og.js} +4799 -5022
- package/cdn/assets/{D_PCdhiJi26hHS-8.js → BUJQ7wUyL-iSUg8h.js} +5 -11
- package/{browser/esm/CYszs6SwCHoEdnWR.mjs → cdn/assets/BbtqTKem2BWD_lH0.js} +12 -18
- package/cdn/assets/Bjsc6wrUpvl_hjRj.js +12 -0
- package/cdn/assets/{DSaJvKGEG6fH2UFL.js → Bmo80_Qi8HeLXtBu.js} +2 -14
- package/{browser/esm/CZfsDeVlXP4VI0uK.mjs → cdn/assets/C0a277r4c7jdrbo-.js} +12 -16
- package/cdn/assets/{B3SIwz6UDnshg1xz.js → C4ADTbdoMYv-xYb_.js} +1 -15
- package/cdn/assets/C5ipzxDNB7mwOup8.js +10 -0
- package/{browser/esm/DXky7q8UrsTfgOl6.mjs → cdn/assets/C6VUt6vUMhiTBp21.js} +2 -20
- package/cdn/assets/{BRJtUnAFvJgElG8C.js → CKyyzgIojzuQ14Jb.js} +13 -25
- package/cdn/assets/{BjJVmzUi3VgBwYWL.js → CSvpcvVrtQMi5YMH.js} +1 -13
- package/cdn/assets/{Cow5a04f6LqFGoQZ.js → CUFXsvWRmBglOxCh.js} +1 -13
- package/cdn/assets/{iC6qNNMVatdQ7tzG.js → CUrekuBvZp8HzDRR.js} +1 -13
- package/cdn/assets/{DTaAiRRU2uWbT8Fc.js → CWmH4zsZyNsO9p41.js} +2 -8
- package/{browser/esm/CKJke70LtH4vX8Yy.mjs → cdn/assets/CXM4duZAQ9xkx_-8.js} +1 -13
- package/cdn/assets/C_9Upo5I-PSK47R_.js +10 -0
- package/cdn/assets/{ako9wmFN1XdkwSc1.js → C_xUEkZ7r882X9Ha.js} +1 -19
- package/{browser/esm/BaOp0-PqOpggAmtp.mjs → cdn/assets/CaN6N1dq3iIVO1hT.js} +9 -15
- package/{browser/esm/CsKXDEU_EhKwgwa2.mjs → cdn/assets/Cd3KcqA1q1QnCheo.js} +2 -8
- package/{browser/esm/CYvdymNohZi87Vmf.mjs → cdn/assets/CscbwTq6KR8XJrxB.js} +64 -64
- package/cdn/assets/{DMc9rEXgTnQiUhVu.js → Ct9ZcjuuaNCX6kIj.js} +1 -13
- package/cdn/assets/{D8I1NKgZQBM1OlB_.js → CxjY2TO23WNFisWX.js} +1 -13
- package/cdn/assets/{Xxw0Y9hXxIwKKGPq.js → D0wIYxN6_chAmwCc.js} +1 -13
- package/{browser/esm/Cz7ockkCtKQwddun.mjs → cdn/assets/D1QeQpmRY9PDIMEz.js} +3 -27
- package/cdn/assets/{sXwOwWbIPvtOcCOv.js → D3XmnZGIfxT4lk3w.js} +1 -13
- package/cdn/assets/{D_mjyyaB1h7KHEAu.js → D6KZyFauO14Su023.js} +1 -13
- package/cdn/assets/D8C3KeX9kFgFNEsb.js +10 -0
- package/cdn/assets/DAW6ifi60VDar3-l.js +10 -0
- package/{browser/esm/DmwBpm4ERYyxSyyJ.mjs → cdn/assets/DHDTA2yZ7ODlBAXM.js} +2 -14
- package/{browser/esm/DpDIV4Iz_niumLpB.mjs → cdn/assets/DIOp5ZkL1dY68cMH.js} +2 -8
- package/cdn/assets/{DE5GJPPKB9akZnOl.js → DTeYi36ajMzmUc3x.js} +1 -13
- package/{browser/esm/Bn5K2xW-LDe4UKiG.mjs → cdn/assets/DfKdydqLJ4MMUAow.js} +1 -13
- package/cdn/assets/DfNI2EiuegVK3udt.js +41 -0
- package/cdn/assets/DfQ3XXU3pjhhAldB.js +29 -0
- package/cdn/assets/{Cfp-IQYhF8wI3U8j.js → DlF4ox6px_a8KGDI.js} +1 -13
- package/cdn/assets/{DDVokEjcl6-19dbU.js → E-GOcSTy1uY4Oj3I.js} +6 -32
- package/cdn/assets/{DhVke7KHq6lbQPZg.js → Ld4Og9zF7kdwc9Bq.js} +1 -13
- package/cdn/assets/{vBbdzr5TIj8oCBOQ.js → MhA9JYSNQknyC2-7.js} +1 -13
- package/cdn/assets/{CVOFtLS3D3hpykUP.js → OMD1-UUDvqKr1SYQ.js} +8 -31
- package/cdn/assets/{DeZqllxB8Fy4CjwJ.js → TCHZxTIhWMVkgX3o.js} +1 -20
- package/cdn/assets/{BGHKmUXsDDoutTYQ.js → TCyoIWnhQsOAGihq.js} +1 -7
- package/cdn/assets/{OGU71t0PDjtl3-M4.js → XWOQU_sxt5_lFjJM.js} +1 -13
- package/cdn/assets/{BzLOGtjuaZ3Mji-F.js → b4A5hTjHI0rNI6Qk.js} +40 -46
- package/cdn/assets/{DbbapxCRGpFogl_Q.js → blfFjNlrt7wIm8ac.js} +1 -13
- package/{browser/esm/HiDBwKQDu71n9dYT.mjs → cdn/assets/jNoWEx25dsSqFAso.js} +3 -15
- package/cdn/assets/nLQOv_3C-yTgOm_d.js +24 -0
- package/{browser/esm/CVXeIfSHxFnpUSYz.mjs → cdn/assets/nuGYHbGeWLkN7IFF.js} +1 -13
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +5 -10
- package/browser/cjs/B4tuWKTrIZsK5so4.cjs +0 -30
- package/browser/cjs/B5_w23_mUAW0fmJf.cjs +0 -6
- package/browser/cjs/BBXoDmENVubxlArs.cjs +0 -16
- package/browser/cjs/BFjFhtH4OqOirVjz.cjs +0 -524
- package/browser/cjs/BlYWr2BKhS18L5sc.cjs +0 -21
- package/browser/cjs/Bqucdx31CZbbWECx.cjs +0 -22
- package/browser/cjs/ByAzlBbjSnhZyx7J.cjs +0 -17
- package/browser/cjs/Cd5lC1p9vwmY8bXk.cjs +0 -30
- package/browser/cjs/Cw23_9oAnZq0oGKM.cjs +0 -17
- package/browser/cjs/D0RwDzLW2tAOaOgp.cjs +0 -21
- package/browser/cjs/D3jW9_q5k1lOmEQd.cjs +0 -17
- package/browser/cjs/DVih-qsORYLFDJ00.cjs +0 -6
- package/browser/cjs/DW3yV3bFjBYU9FNp.cjs +0 -33
- package/browser/cjs/Dg-_EjDMveR9eAsS.cjs +0 -21
- package/browser/cjs/wHFkNUwHgS4n79oY.cjs +0 -16
- package/browser/esm/B0bFoOwu-SXqZdUA.mjs +0 -22
- package/browser/esm/C53n3eOUOu4IDUnv.mjs +0 -24
- package/browser/esm/CDdRITGs1_hk1Kax.mjs +0 -42
- package/browser/esm/CPlfXwZn952WQ8tu.mjs +0 -22
- package/browser/esm/CUR7HVbE-MYKeGoV.mjs +0 -47
- package/browser/esm/CZj7MpGmmgaB8lkL.mjs +0 -40
- package/browser/esm/CnShx-cVURfKpVVG.mjs +0 -22
- package/browser/esm/D2GULUblN-TF8TA3.mjs +0 -22
- package/browser/esm/Dakx8EXKki7IUQWD.mjs +0 -53
- package/cdn/assets/B0bFoOwu-SXqZdUA.js +0 -22
- package/cdn/assets/C53n3eOUOu4IDUnv.js +0 -24
- package/cdn/assets/CDdRITGs1_hk1Kax.js +0 -42
- package/cdn/assets/CPlfXwZn952WQ8tu.js +0 -22
- package/cdn/assets/CZj7MpGmmgaB8lkL.js +0 -40
- package/cdn/assets/CnShx-cVURfKpVVG.js +0 -22
- package/cdn/assets/D2GULUblN-TF8TA3.js +0 -22
- package/cdn/assets/DotQ8xRWqk7D6hez.js +0 -47
- package/cdn/assets/S1pQULnXsDtSBJpY.js +0 -53
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var le,pe,oe={},te={},L={},ie={},Q={};function he(){if(pe)return Q;pe=1;var w=Q&&Q.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,a){function u(_){try{E(n.next(_))}catch(s){a(s)}}function h(_){try{E(n.throw(_))}catch(s){a(s)}}function E(_){var s;_.done?r(_.value):(s=_.value,s instanceof o?s:new o(function(j){j(s)})).then(u,h)}E((n=n.apply(e,t||[])).next())})},D=Q&&Q.__generator||function(e,t){var o,n,r,a,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function h(E){return function(_){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,n=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||s[0]!==6&&s[0]!==2)){u=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){u.label=s[1];break}if(s[0]===6&&u.label<r[1]){u.label=r[1],r=s;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(s);break}r[2]&&u.ops.pop(),u.trys.pop();continue}s=t.call(e,u)}catch(j){s=[6,j],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([E,_])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.JsDelivrSourceResolver=void 0;var x=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return w(this,void 0,void 0,function(){var o;return D(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Q.JsDelivrSourceResolver=x,Q}var fe,de,ve,I={},W={};function ue(){if(de)return fe;function w(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function D(e,t){for(var o,n="",r=0,a=-1,u=0,h=0;h<=e.length;++h){if(h<e.length)o=e.charCodeAt(h);else{if(o===47)break;o=47}if(o===47){if(a!==h-1&&u!==1)if(a!==h-1&&u===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var E=n.lastIndexOf("/");if(E!==n.length-1){E===-1?(n="",r=0):r=(n=n.slice(0,E)).length-1-n.lastIndexOf("/"),a=h,u=0;continue}}else if(n.length===2||n.length===1){n="",r=0,a=h,u=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(a+1,h):n=e.slice(a+1,h),r=h-a-1;a=h,u=0}else o===46&&u!==-1?++u:u=-1}return n}de=1;var x={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(e===void 0&&(e=process.cwd()),r=e),w(r),r.length!==0&&(t=r+"/"+t,o=r.charCodeAt(0)===47)}return t=D(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(w(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return(e=D(e,!t)).length!==0||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return w(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];w(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":x.normalize(e)},relative:function(e,t){if(w(e),w(t),e===t||(e=x.resolve(e))===(t=x.resolve(t)))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var n=e.length,r=n-o,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var u=t.length-a,h=r<u?r:u,E=-1,_=0;_<=h;++_){if(_===h){if(u>h){if(t.charCodeAt(a+_)===47)return t.slice(a+_+1);if(_===0)return t.slice(a+_)}else r>h&&(e.charCodeAt(o+_)===47?E=_:_===0&&(E=0));break}var s=e.charCodeAt(o+_);if(s!==t.charCodeAt(a+_))break;s===47&&(E=_)}var j="";for(_=o+E+1;_<=n;++_)_!==n&&e.charCodeAt(_)!==47||(j.length===0?j+="..":j+="/..");return j.length>0?j+t.slice(a+E):(a+=E,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(w(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,n=-1,r=!0,a=e.length-1;a>=1;--a)if((t=e.charCodeAt(a))===47){if(!r){n=a;break}}else r=!1;return n===-1?o?"/":".":o&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');w(e);var o,n=0,r=-1,a=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var u=t.length-1,h=-1;for(o=e.length-1;o>=0;--o){var E=e.charCodeAt(o);if(E===47){if(!a){n=o+1;break}}else h===-1&&(a=!1,h=o+1),u>=0&&(E===t.charCodeAt(u)?--u===-1&&(r=o):(u=-1,r=h))}return n===r?r=h:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){n=o+1;break}}else r===-1&&(a=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){w(e);for(var t=-1,o=0,n=-1,r=!0,a=0,u=e.length-1;u>=0;--u){var h=e.charCodeAt(u);if(h!==47)n===-1&&(r=!1,n=u+1),h===46?t===-1?t=u:a!==1&&(a=1):t!==-1&&(a=-1);else if(!r){o=u+1;break}}return t===-1||n===-1||a===0||a===1&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return o=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),o?o===t.root?o+n:o+"/"+n:n;var t,o,n},parse:function(e){w(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o,n=e.charCodeAt(0),r=n===47;r?(t.root="/",o=1):o=0;for(var a=-1,u=0,h=-1,E=!0,_=e.length-1,s=0;_>=o;--_)if((n=e.charCodeAt(_))!==47)h===-1&&(E=!1,h=_+1),n===46?a===-1?a=_:s!==1&&(s=1):a!==-1&&(s=-1);else if(!E){u=_+1;break}return a===-1||h===-1||s===0||s===1&&a===h-1&&a===u+1?h!==-1&&(t.base=t.name=u===0&&r?e.slice(1,h):e.slice(u,h)):(u===0&&r?(t.name=e.slice(1,a),t.base=e.slice(1,h)):(t.name=e.slice(u,a),t.base=e.slice(u,h)),t.ext=e.slice(a,h)),u>0?t.dir=e.slice(0,u-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return x.posix=x,fe=x}var ye,re={};function ge(){if(ye)return re;ye=1;var w=re&&re.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(re,"__esModule",{value:!0}),re.importResourcePathToString=void 0;var D=w(ue());return re.importResourcePathToString=function(x){var e;switch(x.kind){case"package":return D.default.join(x.packageName,(e=x.importPath)!==null&&e!==void 0?e:"","package.json");case"relative":return D.default.join(x.sourcePath,x.importPath);case"relative-in-package":return D.default.join(x.packageName,x.sourcePath,x.importPath)}},re}var me,ce={};function be(){return me||(me=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.invokeUpdate=void 0,ce.invokeUpdate=function(w,D){var x,e="".concat(w.type,": ");switch(w.type){case"CodeChanged":case"ResolveNewImports":e+="";break;case"LookedUpTypeFile":e+='"'.concat(w.path,'" was ').concat(w.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":e+='"'.concat(w.path,'" was ').concat(w.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":e+='package.json for package "'.concat(w.package,'" was ').concat(w.success?"sucessfully":"not sucessfully"," looked up").concat(w.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":e+='"'.concat(w.importPath,'" was loaded from cache');break;case"StoredToCache":e+='"'.concat(w.importPath,'" was stored to cache')}e.endsWith(": ")&&(e=e.slice(void 0,-2)),(x=D.onUpdate)===null||x===void 0||x.call(D,w,e)}),ce}var ke,we,_e,Pe,se={};function Oe(){if(ke)return se;ke=1,Object.defineProperty(se,"__esModule",{value:!0}),se.RecursionDepth=void 0;var w=function(){function D(x,e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.options=x,this.fileRecursionDepth=e,this.packageRecursionDepth=t}return D.prototype.nextPackage=function(){return new D(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},D.prototype.nextFile=function(){return new D(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},D.prototype.same=function(){return new D(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},D.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},D}();return se.RecursionDepth=w,se}var je,Re,Ce,Se,xe,Ae,De,Ee,Te,q={},Fe={},Ne={},Ie={},Me={},Y={};const Ve=function(w,D){for(var x=0;x<D.length;x++){const e=D[x];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in w)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(w,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[Te?Ee:(Te=1,De||(De=1,K=oe,Ue=oe&&oe.__createBinding||(Object.create?function(w,D,x,e){e===void 0&&(e=x);var t=Object.getOwnPropertyDescriptor(D,x);t&&!("get"in t?!D.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return D[x]}}),Object.defineProperty(w,e,t)}:function(w,D,x,e){e===void 0&&(e=x),w[e]=D[x]}),$=oe&&oe.__exportStar||function(w,D){for(var x in w)x==="default"||Object.prototype.hasOwnProperty.call(D,x)||Ue(D,w,x)},Object.defineProperty(K,"__esModule",{value:!0}),$(function(){if(Pe)return te;Pe=1;var w,D=te&&te.__extends||(w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])})(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}w(e,t),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(te,"__esModule",{value:!0}),te.AutoTypings=void 0;var x=function(e){function t(o,n){return e.call(this,o,n)||this}return D(t,e),t}(function(){if(_e)return L;_e=1;var e=L&&L.__assign||function(){return e=Object.assign||function(O){for(var P,g=1,A=arguments.length;g<A;g++)for(var v in P=arguments[g])Object.prototype.hasOwnProperty.call(P,v)&&(O[v]=P[v]);return O},e.apply(this,arguments)},t=L&&L.__createBinding||(Object.create?function(O,P,g,A){A===void 0&&(A=g);var v=Object.getOwnPropertyDescriptor(P,g);v&&!("get"in v?!P.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return P[g]}}),Object.defineProperty(O,A,v)}:function(O,P,g,A){A===void 0&&(A=g),O[A]=P[g]}),o=L&&L.__setModuleDefault||(Object.create?function(O,P){Object.defineProperty(O,"default",{enumerable:!0,value:P})}:function(O,P){O.default=P}),n=L&&L.__importStar||function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var g in O)g!=="default"&&Object.prototype.hasOwnProperty.call(O,g)&&t(P,O,g);return o(P,O),P},r=L&&L.__awaiter||function(O,P,g,A){return new(g||(g=Promise))(function(v,F){function T(B){try{ee(A.next(B))}catch(R){F(R)}}function Z(B){try{ee(A.throw(B))}catch(R){F(R)}}function ee(B){var R;B.done?v(B.value):(R=B.value,R instanceof g?R:new g(function(J){J(R)})).then(T,Z)}ee((A=A.apply(O,P||[])).next())})},a=L&&L.__generator||function(O,P){var g,A,v,F,T={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return F={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Z(ee){return function(B){return function(R){if(g)throw new TypeError("Generator is already executing.");for(;T;)try{if(g=1,A&&(v=2&R[0]?A.return:R[0]?A.throw||((v=A.return)&&v.call(A),0):A.next)&&!(v=v.call(A,R[1])).done)return v;switch(A=0,v&&(R=[2&R[0],v.value]),R[0]){case 0:case 1:v=R;break;case 4:return T.label++,{value:R[1],done:!1};case 5:T.label++,A=R[1],R=[0];continue;case 7:R=T.ops.pop(),T.trys.pop();continue;default:if(!((v=(v=T.trys).length>0&&v[v.length-1])||R[0]!==6&&R[0]!==2)){T=0;continue}if(R[0]===3&&(!v||R[1]>v[0]&&R[1]<v[3])){T.label=R[1];break}if(R[0]===6&&T.label<v[1]){T.label=v[1],v=R;break}if(v&&T.label<v[2]){T.label=v[2],T.ops.push(R);break}v[2]&&T.ops.pop(),T.trys.pop();continue}R=P.call(O,T)}catch(J){R=[6,J],A=0}finally{g=v=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([ee,B])}}},u=L&&L.__values||function(O){var P=typeof Symbol=="function"&&Symbol.iterator,g=P&&O[P],A=0;if(g)return g.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&A>=O.length&&(O=void 0),{value:O&&O[A++],done:!O}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(L,"__esModule",{value:!0}),L.AutoTypingsCore=void 0;var h=function(){if(le)return ie;le=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.DummySourceCache=void 0;var O=function(){function P(){}return P.prototype.getFile=function(g){return Promise.resolve(void 0)},P.prototype.isFileAvailable=function(g){return Promise.resolve(!1)},P.prototype.storeFile=function(g,A){return Promise.resolve(void 0)},P.prototype.clear=function(){return Promise.resolve(void 0)},P}();return ie.DummySourceCache=O,ie}(),E=he(),_=function(){if(we)return I;we=1;var O=I&&I.__assign||function(){return O=Object.assign||function(b){for(var i,p=1,d=arguments.length;p<d;p++)for(var c in i=arguments[p])Object.prototype.hasOwnProperty.call(i,c)&&(b[c]=i[c]);return b},O.apply(this,arguments)},P=I&&I.__createBinding||(Object.create?function(b,i,p,d){d===void 0&&(d=p);var c=Object.getOwnPropertyDescriptor(i,p);c&&!("get"in c?!i.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return i[p]}}),Object.defineProperty(b,d,c)}:function(b,i,p,d){d===void 0&&(d=p),b[d]=i[p]}),g=I&&I.__setModuleDefault||(Object.create?function(b,i){Object.defineProperty(b,"default",{enumerable:!0,value:i})}:function(b,i){b.default=i}),A=I&&I.__importStar||function(b){if(b&&b.__esModule)return b;var i={};if(b!=null)for(var p in b)p!=="default"&&Object.prototype.hasOwnProperty.call(b,p)&&P(i,b,p);return g(i,b),i},v=I&&I.__awaiter||function(b,i,p,d){return new(p||(p=Promise))(function(c,S){function y(C){try{l(d.next(C))}catch(f){S(f)}}function m(C){try{l(d.throw(C))}catch(f){S(f)}}function l(C){var f;C.done?c(C.value):(f=C.value,f instanceof p?f:new p(function(k){k(f)})).then(y,m)}l((d=d.apply(b,i||[])).next())})},F=I&&I.__generator||function(b,i){var p,d,c,S,y={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return S={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function m(l){return function(C){return function(f){if(p)throw new TypeError("Generator is already executing.");for(;y;)try{if(p=1,d&&(c=2&f[0]?d.return:f[0]?d.throw||((c=d.return)&&c.call(d),0):d.next)&&!(c=c.call(d,f[1])).done)return c;switch(d=0,c&&(f=[2&f[0],c.value]),f[0]){case 0:case 1:c=f;break;case 4:return y.label++,{value:f[1],done:!1};case 5:y.label++,d=f[1],f=[0];continue;case 7:f=y.ops.pop(),y.trys.pop();continue;default:if(!((c=(c=y.trys).length>0&&c[c.length-1])||f[0]!==6&&f[0]!==2)){y=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){y.label=f[1];break}if(f[0]===6&&y.label<c[1]){y.label=c[1],c=f;break}if(c&&y.label<c[2]){y.label=c[2],y.ops.push(f);break}c[2]&&y.ops.pop(),y.trys.pop();continue}f=i.call(b,y)}catch(k){f=[6,k],d=0}finally{p=c=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([l,C])}}},T=I&&I.__values||function(b){var i=typeof Symbol=="function"&&Symbol.iterator,p=i&&b[i],d=0;if(p)return p.call(b);if(b&&typeof b.length=="number")return{next:function(){return b&&d>=b.length&&(b=void 0),{value:b&&b[d++],done:!b}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=I&&I.__read||function(b,i){var p=typeof Symbol=="function"&&b[Symbol.iterator];if(!p)return b;var d,c,S=p.call(b),y=[];try{for(;(i===void 0||i-- >0)&&!(d=S.next()).done;)y.push(d.value)}catch(m){c={error:m}}finally{try{d&&!d.done&&(p=S.return)&&p.call(S)}finally{if(c)throw c.error}}return y};Object.defineProperty(I,"__esModule",{value:!0}),I.ImportResolver=void 0;var ee=function(){if(ve)return W;ve=1;var b=W&&W.__createBinding||(Object.create?function(m,l,C,f){f===void 0&&(f=C);var k=Object.getOwnPropertyDescriptor(l,C);k&&!("get"in k?!l.__esModule:k.writable||k.configurable)||(k={enumerable:!0,get:function(){return l[C]}}),Object.defineProperty(m,f,k)}:function(m,l,C,f){f===void 0&&(f=C),m[f]=l[C]}),i=W&&W.__setModuleDefault||(Object.create?function(m,l){Object.defineProperty(m,"default",{enumerable:!0,value:l})}:function(m,l){m.default=l}),p=W&&W.__importStar||function(m){if(m&&m.__esModule)return m;var l={};if(m!=null)for(var C in m)C!=="default"&&Object.prototype.hasOwnProperty.call(m,C)&&b(l,m,C);return i(l,m),l},d=W&&W.__read||function(m,l){var C=typeof Symbol=="function"&&m[Symbol.iterator];if(!C)return m;var f,k,M=C.call(m),G=[];try{for(;(l===void 0||l-- >0)&&!(f=M.next()).done;)G.push(f.value)}catch(U){k={error:U}}finally{try{f&&!f.done&&(C=M.return)&&C.call(M)}finally{if(k)throw k.error}}return G},c=W&&W.__spreadArray||function(m,l,C){if(C||arguments.length===2)for(var f,k=0,M=l.length;k<M;k++)!f&&k in l||(f||(f=Array.prototype.slice.call(l,0,k)),f[k]=l[k]);return m.concat(f||Array.prototype.slice.call(l))};Object.defineProperty(W,"__esModule",{value:!0}),W.DependencyParser=void 0;var S=p(ue()),y=function(){function m(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return m.prototype.parseDependencies=function(l,C){var f=this;return c([],d(l.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(k){var M,G;return(G=(M=k[1])!==null&&M!==void 0?M:k[2])!==null&&G!==void 0?G:k[3]}).filter(function(k){return!!k}).map(function(k){return f.resolvePath(k,C)})},m.prototype.resolvePath=function(l,C){var f=l.match(this.REGEX_NODE_MODULE);if(f)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(f[1],".d.ts"),sourcePath:""};if(typeof C=="string"){if(l.startsWith("."))return{kind:"relative",importPath:l,sourcePath:C};if(l.startsWith("@")){var k=l.split("/");return{kind:"package",packageName:"".concat(k[0],"/").concat(k[1]),importPath:k.slice(2).join("/")}}return{kind:"package",packageName:(k=l.split("/"))[0],importPath:k.slice(1).join("/")}}switch(C.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return l.startsWith(".")?{kind:"relative-in-package",packageName:C.packageName,sourcePath:S.join(C.sourcePath,C.importPath),importPath:l}:l.startsWith("@")?(k=l.split("/"),{kind:"package",packageName:"".concat(k[0],"/").concat(k[1]),importPath:k.slice(2).join("/")}):{kind:"package",packageName:(k=l.split("/"))[0],importPath:k.slice(1).join("/")}}},m}();return W.DependencyParser=y,W}(),B=ge(),R=A(ue()),J=be(),Ge=Oe(),Je=function(){function b(i){var p,d;if(this.options=i,this.loadedFiles=[],this.dependencyParser=new ee.DependencyParser,this.cache=i.sourceCache,this.sourceResolver=i.sourceResolver,this.newImportsResolved=!1,this.monaco=i.monaco,i.preloadPackages&&i.versions){this.versions=i.versions;try{for(var c=T(Object.entries(i.versions)),S=c.next();!S.done;S=c.next()){var y=Z(S.value,2),m=y[0];y[1],this.resolveImport({kind:"package",packageName:m,importPath:""},new Ge.RecursionDepth(this.options)).catch(function(l){console.error(l)})}}catch(l){p={error:l}}finally{try{S&&!S.done&&(d=c.return)&&d.call(c)}finally{if(p)throw p.error}}}}return b.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},b.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},b.prototype.resolveImportsInFile=function(i,p,d){var c,S,y;return v(this,void 0,void 0,function(){var m,l,C,f,k,M,G,U;return F(this,function(N){switch(N.label){case 0:if(d.shouldStop())return[2];m=this.dependencyParser.parseDependencies(i,p),N.label=1;case 1:N.trys.push([1,8,9,10]),l=T(m),C=l.next(),N.label=2;case 2:if(C.done)return[3,7];f=C.value,N.label=3;case 3:return N.trys.push([3,5,,6]),[4,this.resolveImport(f,d)];case 4:return N.sent(),[3,6];case 5:return k=N.sent(),this.options.onError?(S=(c=this.options).onError)===null||S===void 0||S.call(c,(y=k.message)!==null&&y!==void 0?y:k):console.error(k),[3,6];case 6:return C=l.next(),[3,2];case 7:return[3,10];case 8:return M=N.sent(),G={error:M},[3,10];case 9:try{C&&!C.done&&(U=l.return)&&U.call(l)}finally{if(G)throw G.error}return[7];case 10:return[2]}})})},b.prototype.resolveImport=function(i,p){return v(this,void 0,void 0,function(){var d,c;return F(this,function(S){switch(S.label){case 0:if(d=this.hashImportResourcePath(i),this.loadedFiles.includes(d))return[2];switch(this.loadedFiles.push(d),i.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(i)];case 2:return(c=S.sent())?[4,this.resolveImportInPackage(c,p.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,S.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(i,p.nextFile())];case 8:return[2]}})})},b.prototype.resolveImportInPackage=function(i,p){return v(this,void 0,void 0,function(){var d,c,S;return F(this,function(y){switch(y.label){case 0:return[4,this.loadSourceFileContents(i)];case 1:return(d=y.sent())?(c=d.source,S=d.at,this.createModel(c,this.monaco.Uri.parse(this.options.fileRootPath+R.join("node_modules/".concat(i.packageName),S))),[4,this.resolveImportsInFile(c,{kind:"relative-in-package",packageName:i.packageName,sourcePath:R.dirname(S),importPath:""},p)]):[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})},b.prototype.resolveImportFromPackageRoot=function(i){var p,d,c,S,y,m,l,C,f;return v(this,void 0,void 0,function(){var k,M,G,U,N,z,ne,V,X;return F(this,function(H){switch(H.label){case 0:return k={type:"LookedUpPackage",package:i.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(p=this.versions)!==null&&p!==void 0&&p[i.packageName]||(d=this.versions)!==null&&d!==void 0&&d["@types/"+i.packageName]?(M=(S=(c=i.importPath)===null||c===void 0?void 0:c.length)!==null&&S!==void 0&&S,G=M?"/".concat(i.importPath):"",[4,this.resolvePackageJson(i.packageName,(y=this.versions)===null||y===void 0?void 0:y[i.packageName],M?i.importPath:void 0)]):((0,J.invokeUpdate)(k,this.options),[2]);case 1:return(U=H.sent())||!M?[3,3]:[4,this.resolvePackageJson(i.packageName,(m=this.versions)===null||m===void 0?void 0:m[i.packageName])];case 2:U=H.sent(),G="",H.label=3;case 3:return U?(N=JSON.parse(U)).typings||N.types?(X=N.typings||N.types,this.createModel(U,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(i.packageName).concat(G,"/package.json"))),(0,J.invokeUpdate)({type:"LookedUpPackage",package:i.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(i.packageName,N.version),[2,{kind:"relative-in-package",packageName:i.packageName,sourcePath:"",importPath:R.join((l=i.importPath)!==null&&l!==void 0?l:"",X.startsWith("./")?X.slice(2):X)}]):[3,4]:[3,7];case 4:return z="@types/".concat(i.packageName.startsWith("@")?i.packageName.slice(1).replace(/\//,"__"):i.packageName),[4,this.resolvePackageJson(z,(C=this.versions)===null||C===void 0?void 0:C[z])];case 5:if(ne=H.sent()){if((V=JSON.parse(ne)).typings||V.types)return X=V.typings||V.types,this.createModel(ne,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(z,"/package.json"))),(0,J.invokeUpdate)({type:"LookedUpPackage",package:z,definitelyTyped:!0,success:!0},this.options),this.setVersion(z,V.version),[2,{kind:"relative-in-package",packageName:z,sourcePath:"",importPath:R.join((f=i.importPath)!==null&&f!==void 0?f:"",X.startsWith("./")?X.slice(2):X)}];(0,J.invokeUpdate)(k,this.options)}else(0,J.invokeUpdate)(k,this.options);H.label=6;case 6:return[3,8];case 7:(0,J.invokeUpdate)(k,this.options),H.label=8;case 8:return[2]}})})},b.prototype.loadSourceFileContents=function(i){return v(this,void 0,void 0,function(){var p,d,c,S,y,m,l,C,f,k,M,G,U,N,z,ne;return F(this,function(V){switch(V.label){case 0:return p=R.join(i.packageName,i.sourcePath,i.importPath),d={type:"LookedUpTypeFile",path:p,definitelyTyped:!1,success:!1},c=i.packageName,S=this.getVersion(i.packageName),(y=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(X){return i.importPath.endsWith(X)}).reduce(function(X,H){return X||H},!1)?[4,this.resolveSourceFile(c,S,R.join(i.sourcePath,i.importPath))]:[3,2];case 1:return(N=V.sent())?[2,{source:N,at:R.join(i.sourcePath,i.importPath)}]:[3,9];case 2:V.trys.push([2,7,8,9]),m=T(y),l=m.next(),V.label=3;case 3:return l.done?[3,6]:(C=l.value,f=R.join(i.sourcePath,i.importPath),U=(C===".d.ts"&&f.endsWith(".js")?f.slice(0,-3):f)+C,[4,this.resolveSourceFile(c,S,U)]);case 4:if(N=V.sent(),(0,J.invokeUpdate)({type:"AttemptedLookUpFile",path:R.join(c,U),success:!!N},this.options),N)return(0,J.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(c,U),success:!0},this.options),[2,{source:N,at:U}];V.label=5;case 5:return l=m.next(),[3,3];case 6:return[3,9];case 7:return k=V.sent(),z={error:k},[3,9];case 8:try{l&&!l.done&&(ne=m.return)&&ne.call(m)}finally{if(z)throw z.error}return[7];case 9:return[4,this.resolvePackageJson(c,S,R.join(i.sourcePath,i.importPath))];case 10:return(M=V.sent())&&(G=JSON.parse(M).types)?(U=R.join(i.sourcePath,i.importPath,G),[4,this.resolveSourceFile(c,S,U)]):[3,12];case 11:if(N=V.sent())return(0,J.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(c,U),success:!0},this.options),[2,{source:N,at:U}];V.label=12;case 12:return(0,J.invokeUpdate)(d,this.options),[2,null]}})})},b.prototype.getVersion=function(i){var p;return(p=this.versions)===null||p===void 0?void 0:p[i]},b.prototype.setVersions=function(i){var p,d;this.versions=i,(d=(p=this.options).onUpdateVersions)===null||d===void 0||d.call(p,i)},b.prototype.setVersion=function(i,p){var d;this.setVersions(O(O({},this.versions),((d={})[i]=p,d)))},b.prototype.createModel=function(i,p){p=p.with({path:p.path.replace("@types/","")}),this.monaco.editor.getModel(p)||(this.monaco.editor.createModel(i,"typescript",p),this.newImportsResolved=!0)},b.prototype.hashImportResourcePath=function(i){return(0,B.importResourcePathToString)(i)},b.prototype.resolvePackageJson=function(i,p,d){return v(this,void 0,void 0,function(){var c,S,y,m;return F(this,function(l){switch(l.label){case 0:return c=R.join(i+(p?"@".concat(p):""),d??"","package.json"),S=!1,y=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(c)]:[3,2];case 1:return S=l.sent(),[3,4];case 2:return[4,this.cache.getFile(c)];case 3:y=l.sent(),S=y!==void 0,l.label=4;case 4:return S?y==null?[3,5]:(m=y,[3,7]):[3,8];case 5:return[4,this.cache.getFile(c)];case 6:m=l.sent(),l.label=7;case 7:return[2,m];case 8:return[4,this.sourceResolver.resolvePackageJson(i,p,d)];case 9:return(y=l.sent())&&this.cache.storeFile(c,y),[2,y]}})})},b.prototype.resolveSourceFile=function(i,p,d){return v(this,void 0,void 0,function(){var c,S,y,m;return F(this,function(l){switch(l.label){case 0:return c=R.join(i+(p?"@".concat(p):""),d),S=!1,y=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(c)]:[3,2];case 1:return S=l.sent(),[3,4];case 2:return[4,this.cache.getFile(c)];case 3:y=l.sent(),S=y!==void 0,l.label=4;case 4:return S?((0,J.invokeUpdate)({type:"LoadedFromCache",importPath:c},this.options),y==null?[3,5]:(m=y,[3,7])):[3,8];case 5:return[4,this.cache.getFile(c)];case 6:m=l.sent(),l.label=7;case 7:return[2,m];case 8:return[4,this.sourceResolver.resolveSourceFile(i,p,d)];case 9:return(y=l.sent())&&((0,J.invokeUpdate)({type:"StoredToCache",importPath:c},this.options),this.cache.storeFile(c,y)),[2,y]}})})},b}();return I.ImportResolver=Je,I}(),s=n(ue()),j=be(),ae=Oe(),Le=function(){function O(P,g){var A=this;this.editor=P,this.options=g,this.disposables=[],this.importResolver=new _.ImportResolver(g);var v=P.onDidChangeModelContent(function(F){A.debouncedResolveContents()});this.disposables.push(v),this.resolveContents(),g.dontAdaptEditorOptions||g.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(e(e({},g.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:g.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:g.fileRootPath}))}return O.create=function(P,g){var A,v;return r(this,void 0,void 0,function(){var F;return a(this,function(T){if(g?.shareCache&&g.sourceCache&&!O.sharedCache&&(O.sharedCache=g.sourceCache),!(F=g?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new O(P,e(e({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(A=O.sharedCache)!==null&&A!==void 0?A:new h.DummySourceCache,sourceResolver:(v=g?.sourceResolver)!==null&&v!==void 0?v:new E.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},g),{monaco:F}))]})})},O.prototype.dispose=function(){var P,g;try{for(var A=u(this.disposables),v=A.next();!v.done;v=A.next())v.value.dispose()}catch(F){P={error:F}}finally{try{v&&!v.done&&(g=A.return)&&g.call(A)}finally{if(P)throw P.error}}},O.prototype.setVersions=function(P){this.importResolver.setVersions(P),this.options.versions=P},O.prototype.clearCache=function(){return r(this,void 0,void 0,function(){return a(this,function(P){switch(P.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return P.sent(),[2]}})})},O.prototype.debouncedResolveContents=function(){var P=this;this.isResolving||((0,j.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return r(P,void 0,void 0,function(){return a(this,function(g){switch(g.label){case 0:return[4,this.resolveContents()];case 1:return g.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},O.prototype.resolveContents=function(){var P;return r(this,void 0,void 0,function(){var g,A,v,F;return a(this,function(T){switch(T.label){case 0:if(this.isResolving=!0,(0,j.invokeUpdate)({type:"ResolveNewImports"},this.options),!(g=this.editor.getModel()))throw Error("No model");A=g.getLinesContent(),T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(A.join(`
|
|
7
|
+
`),s.dirname(g.uri.toString()),new ae.RecursionDepth(this.options))];case 2:return T.sent(),[3,4];case 3:if(v=T.sent(),!this.options.onError)throw v;return this.options.onError((P=v.message)!==null&&P!==void 0?P:v),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(F=this.editor.getPosition(),g.setValue(g.getValue()),F&&this.editor.setPosition(F)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},O}();return L.AutoTypingsCore=Le,L}().AutoTypingsCore);return te.AutoTypings=x,te}(),K),$(ge(),K),$(function(){if(je)return q;je=1;var w=q&&q.__awaiter||function(t,o,n,r){return new(n||(n=Promise))(function(a,u){function h(s){try{_(r.next(s))}catch(j){u(j)}}function E(s){try{_(r.throw(s))}catch(j){u(j)}}function _(s){var j;s.done?a(s.value):(j=s.value,j instanceof n?j:new n(function(ae){ae(j)})).then(h,E)}_((r=r.apply(t,o||[])).next())})},D=q&&q.__generator||function(t,o){var n,r,a,u,h={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function E(_){return function(s){return function(j){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(a=2&j[0]?r.return:j[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,j[1])).done)return a;switch(r=0,a&&(j=[2&j[0],a.value]),j[0]){case 0:case 1:a=j;break;case 4:return h.label++,{value:j[1],done:!1};case 5:h.label++,r=j[1],j=[0];continue;case 7:j=h.ops.pop(),h.trys.pop();continue;default:if(!((a=(a=h.trys).length>0&&a[a.length-1])||j[0]!==6&&j[0]!==2)){h=0;continue}if(j[0]===3&&(!a||j[1]>a[0]&&j[1]<a[3])){h.label=j[1];break}if(j[0]===6&&h.label<a[1]){h.label=a[1],a=j;break}if(a&&h.label<a[2]){h.label=a[2],h.ops.push(j);break}a[2]&&h.ops.pop(),h.trys.pop();continue}j=o.call(t,h)}catch(ae){j=[6,ae],r=0}finally{n=a=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([_,s])}}},x=q&&q.__values||function(t){var o=typeof Symbol=="function"&&Symbol.iterator,n=o&&t[o],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(q,"__esModule",{value:!0}),q.LocalStorageCache=void 0;var e=function(){function t(){this.localCache={}}return t.prototype.getFile=function(o){var n;return w(this,void 0,void 0,function(){return D(this,function(r){try{return[2,(n=localStorage.getItem(t.LOCALSTORAGE_PREFIX+o))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[o]]}return[2]})})},t.prototype.storeFile=function(o,n){return w(this,void 0,void 0,function(){return D(this,function(r){this.localCache[o]=n;try{localStorage.setItem(t.LOCALSTORAGE_PREFIX+o,n)}catch{}return[2]})})},t.prototype.clear=function(){return w(this,void 0,void 0,function(){var o,n,r,a,u,h,E;return D(this,function(_){for(this.localCache={},o=[],n=0;n<localStorage.length;n++)(u=localStorage.key(n))!=null&&u.startsWith(t.LOCALSTORAGE_PREFIX)&&o.push(u);try{for(r=x(o),a=r.next();!a.done;a=r.next())u=a.value,localStorage.removeItem(u)}catch(s){h={error:s}}finally{try{a&&!a.done&&(E=r.return)&&E.call(r)}finally{if(h)throw h.error}}return[2]})})},t.LOCALSTORAGE_PREFIX="__autotyper_cache_",t}();return q.LocalStorageCache=e,q}(),K),$((Re||(Re=1,Object.defineProperty(Fe,"__esModule",{value:!0})),Fe),K),$((Ce||(Ce=1,Object.defineProperty(Ne,"__esModule",{value:!0})),Ne),K),$((Se||(Se=1,Object.defineProperty(Ie,"__esModule",{value:!0})),Ie),K),$((xe||(xe=1,Object.defineProperty(Me,"__esModule",{value:!0})),Me),K),$(function(){if(Ae)return Y;Ae=1;var w=Y&&Y.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,a){function u(_){try{E(n.next(_))}catch(s){a(s)}}function h(_){try{E(n.throw(_))}catch(s){a(s)}}function E(_){var s;_.done?r(_.value):(s=_.value,s instanceof o?s:new o(function(j){j(s)})).then(u,h)}E((n=n.apply(e,t||[])).next())})},D=Y&&Y.__generator||function(e,t){var o,n,r,a,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function h(E){return function(_){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,n=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||s[0]!==6&&s[0]!==2)){u=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){u.label=s[1];break}if(s[0]===6&&u.label<r[1]){u.label=r[1],r=s;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(s);break}r[2]&&u.ops.pop(),u.trys.pop();continue}s=t.call(e,u)}catch(j){s=[6,j],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([E,_])}}};Object.defineProperty(Y,"__esModule",{value:!0}),Y.UnpkgSourceResolver=void 0;var x=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return w(this,void 0,void 0,function(){var o;return D(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Y.UnpkgSourceResolver=x,Y}(),K),$(he(),K)),Ee=oe)]);var K,Ue,$;exports.c=Ve;
|
|
@@ -1,58 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qe=require("react");function Ya(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Je=Ya(Qe);/**
|
|
7
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.0
|
|
8
|
-
*
|
|
9
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
-
*//**
|
|
12
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.3.0
|
|
13
|
-
*
|
|
14
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
16
|
-
*/function vi(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return!0;return!1}function Fo(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return e[i];return null}function Ni(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Kr(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Qr(e){return e.replace(/_/g,".")}function Hn(e,t){var n=null,i="-1";return vi(e,function(r){var o,a,s,c=Kr("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!c||r.brand||(n=r,i=c[3]||"-1",r.versionAlias?i=r.versionAlias:r.versionTest&&(o=r.versionTest.toLowerCase(),a=t,s=Kr("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),i=(s?s[3]:"")||i),i=Qr(i),0))}),{preset:n,version:i}}function pr(e,t){var n={brand:"",version:"-1"};return vi(e,function(i){var r=Bo(t,i);return!!r&&(n.brand=i.id,n.version=i.versionAlias||r.version,n.version!=="-1")}),n}function Bo(e,t){return Fo(e,function(n){var i=n.brand;return Kr(""+t.test,i.toLowerCase())})}var Yi=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Xi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],zr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Go=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Wi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function qi(e){return!!Hn(Go,e).preset}function Xa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(i){return i.split(" ").map(function(r){return r?""+e+r:""}).join(" ")}).join(" ")}function cn(e,t){return function(n){n&&(e[t]=n)}}function ko(e,t,n){return function(i){i&&(e[t][n]=i)}}var mi="undefined",Ao=typeof window!==mi,Wa=typeof document!==mi&&document,qa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ee=1e-7,dr={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function Hi(e,t,n,i){return(e*i+t*n)/(n+i)}function bi(e){return typeof e===mi}function Le(e){return e&&typeof e=="object"}function xe(e){return Array.isArray(e)}function Pn(e){return typeof e=="string"}function Dr(e){return typeof e=="number"}function zo(e){return typeof e=="function"}function Io(e,t,n,i,r){return Jr(e,t,n)?n:function(o,a,s,c,u){for(var f,p=function(h){var g=a[h].trim();if(g===o.close&&!Jr(o,a,h))return{value:h};var v=h,m=Fe(u,function(y){return y.open===g});if(m&&(v=Io(m,a,h,c,u)),v===-1)return f=h,"break";f=h=v},l=s;l<c;++l){var d=p(l);if(l=f,typeof d=="object")return d.value;if(d==="break")break}return-1}(e,t,n+1,i,r)}function Jr(e,t,n){if(!e.ignore)return null;var i=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(i)}function xi(e,t){var n=Pn(t)?{separator:t}:t,i=n.separator,r=i===void 0?",":i,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,c=s===void 0?a:s,u=n.openCloseCharacters,f=u===void 0?qa:u,p=f.map(function(b){var w=b.open,R=b.close;return w===R?w:w+"|"+R}).join("|"),l=new RegExp("(\\s*"+r+"\\s*|"+p+"|\\s+)","g"),d=e.split(l).filter(function(b){return b&&b!=="undefined"}),h=d.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var y,x=function(b){var w,R,G=d[b].trim(),P=b,D=Fe(f,function(F){return F.open===G}),_=Fe(f,function(F){return F.close===G});if(D){if((P=Io(D,d,b,h,f))!==-1&&c)return m()&&o?(y=b,"break"):(g.push(d.slice(b,P+1).join("")),b=P,o?(y=b,"break"):(y=b,"continue"))}else{if(_&&!Jr(_,d,b)){var T=function(){for(var F=0,B=0,O=arguments.length;B<O;B++)F+=arguments[B].length;var I=Array(F),z=0;for(B=0;B<O;B++)for(var X=arguments[B],H=0,N=X.length;H<N;H++,z++)I[z]=X[H];return I}(f);return T.splice(f.indexOf(_),1),{value:xi(e,{separator:r,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:c,openCloseCharacters:T})}}if(w=G,!(((R=r)!==""&&R!=" "||w!==""&&w!=" ")&&w!==R||a))return m(),o?(y=b,"break"):(y=b,"continue")}P===-1&&(P=h-1),v.push(d.slice(b,P+1).join("")),y=b=P},E=0;E<h;++E){var M=x(E);if(E=y,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function tr(e){return xi(e,"")}function Ln(e){return xi(e,",")}function Fr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],i=t[2];return{prefix:n,unit:t[3],value:parseFloat(i)}}function Sr(){return Date.now?Date.now():new Date().getTime()}function Cn(e,t,n){n===void 0&&(n=-1);for(var i=e.length,r=0;r<i;++r)if(t(e[r],r,e))return r;return n}function Fe(e,t,n){var i=Cn(e,t);return i>-1?e[i]:n}var Li,ji,Vi,No=(Li=Sr(),(ji=Ao&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?ji.bind(window):function(e){var t=Sr();return setTimeout(function(){e(t-Li)},1e3/60)}),Ha=(Vi=Ao&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?Vi.bind(window):function(e){clearTimeout(e)};function er(e){return Object.keys(e)}function Ee(e,t){var n=Fr(e),i=n.value,r=n.unit;if(Le(t)){var o=t[r];if(o){if(zo(o))return o(i);if(dr[r])return dr[r](i,o)}}else if(r==="%")return i*t/100;return dr[r]?dr[r](i):i}function ti(e,t,n){return Math.max(t,Math.min(e,n))}function Ui(e,t,n,i){return i===void 0&&(i=e[0]/e[1]),[[kt(t[0],ee),kt(t[0]/i,ee)],[kt(t[1]*i,ee),kt(t[1],ee)]].filter(function(r){return r.every(function(o,a){var s=t[a],c=kt(s,ee);return n?o<=s||o<=c:o>=s||o>=c})})[0]||e}function ei(e){for(var t=e.length,n=0,i=t-1;i>=0;--i)n+=e[i];return t?n/t:0}function Re(e,t){var n=t[0]-e[0],i=t[1]-e[1],r=Math.atan2(i,n);return r>=0?r:r+2*Math.PI}function Zi(e){var t,n=(t=e,[0,1].map(function(o){return ei(t.map(function(a){return a[o]}))})),i=Re(n,e[0]),r=Re(n,e[1]);return i<r&&r-i<Math.PI||i>r&&r-i<-Math.PI?1:-1}function jn(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function $i(e,t){return e.forEach(function(n,i){e[i]=kt(e[i],t)}),e}function Ye(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Yo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Xo(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function ge(e,t,n,i){e.addEventListener(t,n,i)}function fe(e,t,n,i){e.removeEventListener(t,n,i)}function yi(e){return e?.ownerDocument||Wa}function Ei(e){return yi(e).documentElement}function nn(e){return yi(e).body}function tn(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function Wo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function wi(e){return Le(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function La(e,t,n,i,r,o){for(var a=0;a<r;++a){var s=n+a*r,c=i+a*r;e[s]+=e[c]*o,t[s]+=t[c]*o}}function ja(e,t,n,i,r){for(var o=0;o<r;++o){var a=n+o*r,s=i+o*r,c=e[a],u=t[a];e[a]=e[s],e[s]=c,t[a]=t[s],t[s]=u}}function Va(e,t,n,i,r){for(var o=0;o<i;++o){var a=n+o*i;e[a]/=r,t[a]/=r}}function ln(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),i=Xt(t),r=0;r<t;++r){var o=t*r+r;if(!kt(n[o],ee)){for(var a=r+1;a<t;++a)if(n[t*r+a]){ja(n,i,r,a,t);break}}if(!kt(n[o],ee))return[];for(Va(n,i,r,t,n[o]),a=0;a<t;++a){var s=a,c=n[a+r*t];kt(c,ee)&&r!==a&&La(n,i,s,r,t,-c)}}return i}function ar(e,t){for(var n=e.slice(),i=e.length;i<t-1;++i)n[i]=0;return n[t-1]=1,n}function fn(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var i=Xt(n),r=Math.min(t,n),o=0;o<r-1;++o){for(var a=0;a<r-1;++a)i[o*n+a]=e[o*t+a];i[(o+1)*n-1]=e[(o+1)*t-1],i[(n-1)*n+o]=e[(t-1)*t+o]}return i[n*n-1]=e[t*t-1],i}function Cr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Xt(e);return t.forEach(function(r){i=ie(i,r,e)}),i}function ie(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var i=[],r=e.length/n,o=t.length/r;if(!r)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){i[s*n+a]=0;for(var c=0;c<r;++c)i[s*n+a]+=e[c*n+a]*t[s*r+c]}return i}function Ut(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]+t[r];return i}function ct(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]-t[r];return i}function Ua(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function qo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function ke(e,t,n){n===void 0&&(n=t.length);var i=ie(e,t,n),r=i[n-1];return i.map(function(o){return o/r})}function Za(e,t){return ie(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function $a(e,t){return ie(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function Ka(e,t){return ie(e,Br(t,4))}function hr(e,t){var n=t[0],i=n===void 0?1:n,r=t[1],o=r===void 0?1:r,a=t[2];return ie(e,[i,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function Ir(e,t){var n=t[0],i=n===void 0?0:n,r=t[1],o=r===void 0?0:r,a=t[2];return ie(e,[1,0,0,0,0,1,0,0,0,0,1,0,i,o,a===void 0?0:a,1],4)}function Ki(e,t){return ie(e,t,4)}function Br(e,t){var n=Math.cos(e),i=Math.sin(e),r=Xt(t);return r[0]=n,r[1]=i,r[t]=-i,r[t+1]=n,r}function Xt(e){for(var t=e*e,n=[],i=0;i<t;++i)n[i]=i%(e+1)?0:1;return n}function Ho(e,t){for(var n=Xt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[(t+1)*r]=e[r];return n}function pn(e,t){for(var n=Xt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[t*(t-1)+r]=e[r];return n}function Lo(e,t,n,i,r,o,a,s){var c=e[0],u=e[1],f=t[0],p=t[1],l=n[0],d=n[1],h=i[0],g=i[1],v=r[0],m=r[1],y=o[0],x=o[1],E=a[0],M=a[1],b=s[0],w=s[1],R=ln([c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,0,0,c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,-v*c,-m*c,-y*f,-x*f,-E*l,-M*l,-b*h,-w*h,-v*u,-m*u,-y*p,-x*p,-E*d,-M*d,-b*g,-w*g],8);if(!R.length)return[];var G=ie(R,[v,m,y,x,E,M,b,w],8);return G[8]=1,fn(function(P,D){D===void 0&&(D=Math.sqrt(P.length));for(var _=[],T=0;T<D;++T)for(var F=0;F<D;++F)_[F*D+T]=P[D*T+F];return _}(G),3,4)}var Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vn.apply(this,arguments)};function Di(e,t){return t===void 0&&(t=0),vn(_n(e,t))}function vn(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var i=n.matrixFunction,r=n.functionValue;i&&(t=i(t,r))}),t}function _n(e,t){return t===void 0&&(t=0),(xe(e)?e:tr(e)).map(function(n){var i,r=!(i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]},o=r.prefix,a=r.value,s=null,c=o,u="";if(o==="translate"||o==="translateX"||o==="translate3d"){var f=Le(t)?Vn(Vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},p=Ln(a).map(function(G,P){return f["%"]=P===0&&"x%"in f?t["x%"]:P===1&&"y%"in f?t["y%"]:t["o%"],Ee(G,f)}),l=p[0],d=p[1],h=d===void 0?0:d,g=p[2];s=Ir,u=[l,h,g===void 0?0:g]}else if(o==="translateY")s=Ir,u=[0,h=Ee(a,Le(t)?Vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=Ir,u=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=Ln(a).map(function(G){return parseFloat(G)}),m=v[0],y=v[1],x=y===void 0?m:y,E=v[2];s=hr,u=[m,x,E===void 0?1:E]}else if(o==="scaleX")s=hr,u=[m=parseFloat(a),1,1];else if(o==="scaleY")s=hr,u=[1,x=parseFloat(a),1];else if(o==="scaleZ")s=hr,u=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=Fr(a),b=M.unit,w=M.value;o==="rotate"||o==="rotateZ"?(c="rotateZ",s=Ka):o==="rotateX"?s=Za:o==="rotateY"&&(s=$a),u=b==="rad"?w:w*Math.PI/180}else if(o==="matrix3d")s=Ki,u=Ln(a).map(function(G){return parseFloat(G)});else if(o==="matrix"){var R=Ln(a).map(function(G){return parseFloat(G)});s=Ki,u=[R[0],R[1],0,0,R[2],R[3],0,0,0,0,1,0,R[4],R[5],0,1]}else c="";return{name:o,functionName:c,value:a,matrixFunction:s,functionValue:u}})}var Qa=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,i){var r=this.keys,o=this.values,a=r.indexOf(n),s=a===-1?r.length:a;r[s]=n,o[s]=i},e}(),Ja=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,i){this.object[n]=i},e}(),ts=typeof Map=="function",es=function(){function e(){}var t=e.prototype;return t.connect=function(n,i){this.prev=n,this.next=i,n&&(n.next=this),i&&(i.prev=this)},t.disconnect=function(){var n=this.prev,i=this.next;n&&(n.next=i),i&&(i.prev=n)},t.getIndex=function(){for(var n=this,i=-1;n;)n=n.prev,++i;return i},e}(),ns=function(){function e(n,i,r,o,a,s,c,u){this.prevList=n,this.list=i,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=c,this.fixed=u}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,i,r,o,a=(n=this.changedBeforeAdded,i=this.fixed,r=[],o=[],n.forEach(function(u){var f=u[0],p=u[1],l=new es;r[f]=l,o[p]=l}),r.forEach(function(u,f){u.connect(r[f-1])}),n.filter(function(u,f){return!i[f]}).map(function(u,f){var p=u[0],l=u[1];if(p===l)return[0,0];var d=r[p],h=o[l-1],g=d.getIndex();return d.disconnect(),h?d.connect(h,h.next):d.connect(void 0,r[0]),[g,d.getIndex()]})),s=this.changed,c=[];this.cacheOrdered=a.filter(function(u,f){var p=u[0],l=u[1],d=s[f],h=d[0],g=d[1];if(p!==l)return c.push([h,g]),!0}),this.cachePureChanged=c},e}();function jo(e,t,n){var i=ts?Map:n?Ja:Qa,r=n||function(y){return y},o=[],a=[],s=[],c=e.map(r),u=t.map(r),f=new i,p=new i,l=[],d=[],h={},g=[],v=0,m=0;return c.forEach(function(y,x){f.set(y,x)}),u.forEach(function(y,x){p.set(y,x)}),c.forEach(function(y,x){var E=p.get(y);E===void 0?(++m,a.push(x)):h[E]=m}),u.forEach(function(y,x){var E=f.get(y);E===void 0?(o.push(x),++v):(s.push([E,x]),m=h[x]||0,l.push([E-m,x-v]),d.push(x===E),E!==x&&g.push([E,x]))}),a.reverse(),new ns(e,t,o,a,g,s,l,d)}var Qi,rs=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),i=jo(this.list,n,this.findKeyCallback);return this.list=n,i},e}(),Vo=function(e,t){return(Vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},is=typeof Map=="function"?void 0:(Qi=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Qi)}),Uo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,is)||this}return function(n,i){function r(){this.constructor=n}Vo(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t}(rs),ni=function(){return ni=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ni.apply(this,arguments)},Zo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,i){if(Le(n))for(var r in n)this.on(r,n[r]);else this._addEvent(n,i,{});return this},t.off=function(n,i){if(n)if(Le(n))for(var r in n)this.off(r);else if(i){var o=this._events[n];if(o){var a=Cn(o,function(s){return s.listener===i});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,i){var r=this;return i&&this._addEvent(n,i,{once:!0}),new Promise(function(o){r._addEvent(n,o,{once:!0})})},t.emit=function(n,i){var r=this;i===void 0&&(i={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return i.eventType=n,i.stop=function(){a=!0},i.currentTarget=this,function(){for(var s=0,c=0,u=arguments.length;c<u;c++)s+=arguments[c].length;var f=Array(s),p=0;for(c=0;c<u;c++)for(var l=arguments[c],d=0,h=l.length;d<h;d++,p++)f[p]=l[d];return f}(o).forEach(function(s){s.listener(i),s.once&&r.off(n,s.listener)}),!a},t.trigger=function(n,i){return i===void 0&&(i={}),this.emit(n,i)},t._addEvent=function(n,i,r){var o=this._events;o[n]=o[n]||[],o[n].push(ni({listener:i},r))},e}();/*! *****************************************************************************
|
|
17
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
18
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
19
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
20
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
-
|
|
22
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
23
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
24
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
25
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
26
|
-
|
|
27
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
28
|
-
and limitations under the License.
|
|
29
|
-
***************************************************************************** *//*! *****************************************************************************
|
|
30
|
-
Copyright (c) Microsoft Corporation.
|
|
31
|
-
|
|
32
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
-
purpose with or without fee is hereby granted.
|
|
34
|
-
|
|
35
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
-
***************************************************************************** */function ye(e){return kt(e,ee)}function Ji(e){return e.length<3?0:Math.abs(function(t){for(var n=0,i=t.length-1;i>=0;--i)n+=t[i];return n}(e.map(function(t,n){var i=e[n+1]||e[0];return t[0]*i[1]-i[0]*t[1]})))/2}function to(e,t){var n=t.width,i=t.height,r=t.left,o=t.top,a=En(e),s=a.minX,c=a.minY,u=a.maxX,f=a.maxY,p=n/(u-s),l=i/(f-c);return e.map(function(d){return[r+(d[0]-s)*p,o+(d[1]-c)*l]})}function En(e){var t=e.map(function(i){return i[0]}),n=e.map(function(i){return i[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function Nr(e,t,n){var i=e[0],r=e[1],o=En(t),a=o.minX,s=o.maxX,c=[[a,r],[s,r]],u=_r(c[0],c[1]),f=ri(t),p=[];if(f.forEach(function(h){var g,v=_r(h[0],h[1]),m=h[0];g=v,u.every(function(y,x){return ye(y-g[x])===0})?p.push({pos:e,line:h,type:"line"}):$o(Mi(u,v),[c,h]).forEach(function(y){h.some(function(x){return M=y,!ye((E=x)[0]-M[0])&&!ye(E[1]-M[1]);var E,M})?p.push({pos:y,line:h,type:"point"}):ye(m[1]-r)!==0&&p.push({pos:y,line:h,type:"intersection"})})}),Fe(p,function(h){return h[0]===i}))return!0;var l=0,d={};return p.forEach(function(h){var g=h.pos,v=h.type,m=h.line;if(!(g[0]>i))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var y=Fe(m,function(M){return M[1]!==r}),x=d[g[0]],E=y[1]>r?1:-1;x?x!==E&&++l:d[g[0]]=E}}}),l%2==1}function _r(e,t){var n=e[0],i=e[1],r=t[0]-n,o=t[1]-i;Math.abs(r)<ee&&(r=0),Math.abs(o)<ee&&(o=0);var a=0,s=0,c=0;return r?o?(s=1,c=-(a=-o/r)*n-i):(s=1,c=-i):o&&(a=-1,c=n),[a,s,c]}function Mi(e,t){var n=e[0],i=e[1],r=e[2],o=t[0],a=t[1],s=t[2],c=n===0&&o===0,u=i===0&&a===0,f=[];if(c&&u)return[];if(c){var p=-r/i;return p!==-s/a?[]:[[-1/0,p],[1/0,p]]}if(u){var l=-r/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)f=[[d=-(a*(h=-r/i)+s)/o,h]];else if(o===0)f=[[d=-(i*(h=-s/a)+r)/n,h]];else if(i===0)f=[[d=-r/n,h=-(o*d+s)/a]];else if(a===0)f=[[d=-s/o,h=-(n*d+r)/i]];else{var d,h;f=[[d=(i*s-a*r)/(a*n-i*o),h=-(n*d+r)/i]]}return f.map(function(g){return[g[0],g[1]]})}function $o(e,t){var n=t.map(function(p){return[0,1].map(function(l){return[Math.min(p[0][l],p[1][l]),Math.max(p[0][l],p[1][l])]})}),i=[];if(e.length===2){var r=e[0],o=r[0],a=r[1];if(ye(o-e[1][0])){if(!ye(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(p){return p[0][0]})),c=Math.min.apply(Math,n.map(function(p){return p[0][1]}));if(ye(s-c)>0)return[];i=[[s,a],[c,a]]}}else{var u=Math.max.apply(Math,n.map(function(p){return p[1][0]})),f=Math.min.apply(Math,n.map(function(p){return p[1][1]}));if(ye(u-f)>0)return[];i=[[o,u],[o,f]]}}return i.length||(i=e.filter(function(p){var l=p[0],d=p[1];return n.every(function(h){return 0<=ye(l-h[0][0])&&0<=ye(h[0][1]-l)&&0<=ye(d-h[1][0])&&0<=ye(h[1][1]-d)})})),i.map(function(p){return[ye(p[0]),ye(p[1])]})}function ri(e){return function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<i;n++)for(var a=arguments[n],s=0,c=a.length;s<c;s++,o++)r[o]=a[s];return r}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}/*! *****************************************************************************
|
|
43
|
-
Copyright (c) Microsoft Corporation.
|
|
44
|
-
|
|
45
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
46
|
-
purpose with or without fee is hereby granted.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
49
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
50
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
51
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
52
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
53
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
54
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
55
|
-
***************************************************************************** */var Ko=function(e,t){return(Ko=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function Yr(e){return 180*(t=[e[0].clientX,e[0].clientY],i=(n=[e[1].clientX,e[1].clientY])[0]-t[0],r=n[1]-t[1],((o=Math.atan2(r,i))>=0?o:o+2*Math.PI)/Math.PI);var t,n,i,r,o}function gr(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),i=[],r=0;r<n;++r)i.push(no(t[r]));return i}(e.touches):[no(e)]:[]}function eo(e,t,n){var i=n.length,r=Un(e,i),o=r.clientX,a=r.clientY,s=r.originalClientX,c=r.originalClientY,u=Un(t,i),f=u.clientX,p=u.clientY,l=Un(n,i);return{clientX:s,clientY:c,deltaX:o-f,deltaY:a-p,distX:o-l.clientX,distY:a-l.clientY}}function Xr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function no(e){return{clientX:e.clientX,clientY:e.clientY}}function Un(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},i=Math.min(e.length,t),r=0;r<i;++r){var o=e[r];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var Wr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),Yr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),Yr(t)-Yr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var i=eo(t||this.prevClients,this.prevClients,this.startClients),r=i.deltaX,o=i.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=t,i},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,i=this.startClients,r=Math.min(this.length,n.length),o=[],a=0;a<r;++a)o[a]=eo([t[a]],[n[a]],[i[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var i=Un(t,this.length),r=Un(this.prevClients,this.length),o=i.clientX-r.clientX,a=i.clientY-r.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),Xr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),Xr(t)/Xr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(i){i.clientX-=t,i.clientY-=n}),this.prevClients.forEach(function(i){i.clientX-=t,i.clientY-=n})},e}(),ro=["textarea","input"],os=function(e){function t(n,i){i===void 0&&(i={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(l,d){if(d===void 0&&(d=!0),r.flag||l.cancelable!==!1){var h=l.type.indexOf("drag")>=-1;if(!r.flag||!h){r._isDragAPI=!0;var g=r.options,v=g.container,m=g.pinchOutside,y=g.preventWheelClick,x=g.preventRightClick,E=g.preventDefault,M=g.checkInput,b=g.dragFocusedInput,w=g.preventClickEventOnDragStart,R=g.preventClickEventOnDrag,G=g.preventClickEventByCondition,P=r._useTouch,D=!r.flag;if(r._isSecondaryButton=l.which===3||l.button===2,y&&(l.which===2||l.button===1)||x&&(l.which===3||l.button===2))return r.stop(),!1;if(D){var _=r._window.document.activeElement,T=l.target;if(T){var F=T.tagName.toLowerCase(),B=ro.indexOf(F)>-1,O=T.isContentEditable;if(B||O){if(M||!b&&_===T)return!1;if(_&&(_===T||O&&_.isContentEditable&&_.contains(T))){if(!b)return!1;T.blur()}}else if((E||l.type==="touchstart")&&_){var I=_.tagName.toLowerCase();(_.isContentEditable||ro.indexOf(I)>-1)&&_.blur()}(w||R||G)&&ge(r._window,"click",r._onClick,!0)}r.clientStores=[new Wr(gr(l))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=d,r._dragFlag=!0,r._prevInputEvent=l,r.data={},r.doubleFlag=Sr()-r.prevTime<200,r._isMouseEvent=(H=l)&&(H.type.indexOf("mouse")>-1||"button"in H),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),(r._preventMouseEvent||r.emit("dragStart",te(te({data:r.data,datas:r.data,inputEvent:l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:d,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))===!1&&r.stop(),r._isMouseEvent&&r.flag&&E&&l.preventDefault()}if(!r.flag)return!1;var z=0;if(D?(r._attchDragEvent(),P&&m&&(z=setTimeout(function(){ge(v,"touchstart",r.onDragStart,{passive:!1})}))):P&&m&&fe(v,"touchstart",r.onDragStart),r.flag&&(X=l).touches&&X.touches.length>=2){if(clearTimeout(z),D&&l.touches.length!==l.changedTouches.length)return;r.pinchFlag||r.onPinchStart(l)}}}var X,H},r.onDrag=function(l,d){if(r.flag){var h=r.options.preventDefault;!r._isMouseEvent&&h&&l.preventDefault(),r._prevInputEvent=l;var g=gr(l),v=r.moveClients(g,l,!1);if(r._dragFlag){if((r.pinchFlag||v.deltaX||v.deltaY)&&(r._preventMouseEvent||r.emit("drag",te(te({},v),{isScroll:!!d,inputEvent:l})))===!1)return void r.stop();r.pinchFlag&&r.onPinch(l,g)}r.getCurrentStore().getPosition(g,!0)}},r.onDragEnd=function(l){if(r.flag){var d=r.options,h=d.pinchOutside,g=d.container,v=d.preventClickEventOnDrag,m=d.preventClickEventOnDragStart,y=d.preventClickEventByCondition,x=r.isDrag;(v||m||y)&&requestAnimationFrame(function(){r._allowClickEvent()}),y||m||!v||x||r._allowClickEvent(),r._useTouch&&h&&fe(g,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(l);var E=l?.touches?gr(l):[];E.length!==0&&r.options.keepDragging?r._addStore(new Wr(E)):r.flag=!1;var M=r._getPosition(),b=Sr(),w=!x&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=x||w?0:b,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",te({data:r.data,datas:r.data,isDouble:w,isDrag:x,isClick:!x,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:l,isTrusted:r._isTrusted},M)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout(function(){r._preventMouseEvent=!1},200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){fe(r._window,"click",r._onClick,!0)},r._onClick=function(l){r._allowClickEvent(),r._allowMouseEvent();var d=r.options.preventClickEventByCondition;d?.(l)||(l.stopPropagation(),l.preventDefault())},r._onContextMenu=function(l){r.options.preventRightClick?r.onDragEnd(l):l.preventDefault()},r._passCallback=function(){};var o=[].concat(n),a=o[0];r._window=Wo(a)?a:tn(a),r.options=te({checkInput:!1,container:a&&!("document"in a)?tn(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},i);var s=r.options,c=s.container,u=s.events,f=s.checkWindowBlur;if(r._useDrag=u.indexOf("drag")>-1,r._useTouch=u.indexOf("touch")>-1,r._useMouse=u.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach(function(l){ge(l,"dragstart",r.onDragStart)}),r._useMouse&&(o.forEach(function(l){ge(l,"mousedown",r.onDragStart),ge(l,"mousemove",r._passCallback)}),ge(c,"contextmenu",r._onContextMenu)),f&&ge(tn(),"blur",r.onBlur),r._useTouch){var p={passive:!1};o.forEach(function(l){ge(l,"touchstart",r.onDragStart,p),ge(l,"touchmove",r._passCallback,p)})}return r}return function(n,i){function r(){this.constructor=n}Ko(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(i,r){return i+r.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,i,r,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,i),o&&this.onDrag(r,!0))},t.prototype.move=function(n,i){var r=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var c=s.clientX,u=s.clientY;return{clientX:c+r,clientY:u+o,originalClientX:c,originalClientY:u}}),i,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var i=this.data;for(var r in n)i[r]=n[r];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),te(te({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,i=this.targets,r=this.options.container;this.off(),fe(this._window,"blur",this.onBlur),this._useDrag&&i.forEach(function(o){fe(o,"dragstart",n.onDragStart)}),this._useMouse&&(i.forEach(function(o){fe(o,"mousedown",n.onDragStart)}),fe(r,"contextmenu",this._onContextMenu)),this._useTouch&&(i.forEach(function(o){fe(o,"touchstart",n.onDragStart)}),fe(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var i=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var o=new Wr(gr(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",te(te({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){i._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,i){if(this.flag&&this.pinchFlag&&!(i.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",te(te({data:this.data,datas:this.data,movement:this.getMovement(i),angle:r.getAngle(i),rotation:r.getRotation(i),touches:r.getPositions(i),scale:r.getScale(i),distance:r.getDistance(i)},r.getPosition(i)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var i=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",te(te({data:this.data,datas:this.data,isPinch:i,touches:r.getPositions()},r.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,i,r){var o=this._getPosition(n,r),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),te(te({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:i,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,i){var r=this.getCurrentStore().getPosition(n,i),o=this.clientStores.slice(1).reduce(function(c,u){var f=u.getPosition();return c.distX+=f.distX,c.distY+=f.distY,c},r),a=o.distX,s=o.distY;return te(te({},r),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,i=this.options.container,r={passive:!1};this._isDragAPI&&(ge(i,"dragover",this.onDrag,r),ge(n,"dragend",this.onDragEnd)),this._useMouse&&(ge(i,"mousemove",this.onDrag),ge(n,"mouseup",this.onDragEnd)),this._useTouch&&(ge(i,"touchmove",this.onDrag,r),ge(n,"touchend",this.onDragEnd,r),ge(n,"touchcancel",this.onDragEnd,r))},t.prototype._dettachDragEvent=function(){var n=this._window,i=this.options.container;this._isDragAPI&&(fe(i,"dragover",this.onDrag),fe(n,"dragend",this.onDragEnd)),this._useMouse&&(fe(i,"mousemove",this.onDrag),fe(n,"mouseup",this.onDragEnd)),this._useTouch&&(fe(i,"touchstart",this.onDragStart),fe(i,"touchmove",this.onDrag),fe(n,"touchend",this.onDragEnd),fe(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Zo),ii=function(){return ii=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ii.apply(this,arguments)};function Qo(e,t){var n=function(r){var o="rCS"+function(a){for(var s=5381,c=a.length;c;)s=33*s^a.charCodeAt(--c);return s>>>0}(r).toString(36);return{className:o,inject:function(a,s){s===void 0&&(s={});var c,u,f,p,l,d,h,g,v=function(x){if(x&&x.getRootNode){var E=x.getRootNode();if(E.nodeType===11)return E}}(a),m=(v||a.ownerDocument||document).querySelector('style[data-styled-id="'.concat(o,'"]'));if(m){var y=parseFloat(m.getAttribute("data-styled-count"))||0;m.setAttribute("data-styled-count","".concat(y+1))}else c=o,u=r,f=s,p=v,(g=(h=yi(a)).createElement("style")).setAttribute("type","text/css"),g.setAttribute("data-styled-id",c),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=c,d=u,f.original?d:d.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(x,E){var M=E.trim();return(M?Ln(M):[""]).map(function(b){var w=b.trim();return w.indexOf("@")===0?w:w.indexOf(":global")>-1?w.replace(/\:global/g,""):w.indexOf(":host")>-1?"".concat(w.replace(/\:host/g,".".concat(l))):w?".".concat(l," ").concat(w):".".concat(l)}).join(", ")+" {"})),(p||h.head||h.body).appendChild(g),m=g;return{destroy:function(){var x,E=parseFloat(m.getAttribute("data-styled-count"))||0;E<=1?(m.remove?m.remove():(x=m.parentNode)===null||x===void 0||x.removeChild(m),m=null):m.setAttribute("data-styled-count","".concat(E-1))}}}}}(t),i=n.className;return Qe.forwardRef(function(r,o){var a=r.className,s=a===void 0?"":a;r.cspNonce;var c=function(f,p){var l={};for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&p.indexOf(d)<0&&(l[d]=f[d]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(f);h<d.length;h++)p.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(f,d[h])&&(l[d[h]]=f[d[h]])}return l}(r,["className","cspNonce"]),u=Qe.useRef();return Qe.useImperativeHandle(o,function(){return u.current},[]),Qe.useEffect(function(){var f=n.inject(u.current,{nonce:r.cspNonce});return function(){f.destroy()}},[]),Qe.createElement(e,ii({ref:u,"data-styled-id":i,className:"".concat(s," ").concat(i)},c))})}var Jo=function(e,t){return(Jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(e,t)};function sr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jo(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)};function C(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function L(e,t,n){if(arguments.length===2)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function nr(e,t){return S({events:[],props:[],name:e},t)}var io,oo,as=["n","w","s","e"],Si=["n","w","s","e","nw","ne","sw","se"],Rn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,i=t[0],r=(e.platform||navigator.platform).toLowerCase(),o={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!pr(Go,t).brand||qi(Ni())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&vi(zr,function(p){return Bo(t,p)});var s=pr(Xi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var c=pr(zr,t);o.webkit=!!c.brand,o.webkitVersion=c.version||"-1"}var u=Fo(Wi,function(p){return new RegExp(""+p.test,"g").exec(r)});a.name=u?u.id:"";var f=pr(Yi,t);return o.name=f.brand||o.name,o.version=(f.brand,f.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Qr(a.version),o.version=Qr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=Ni(void 0),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:qi(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},r=Hn(Yi,e),o=r.preset,a=r.version,s=Hn(Wi,e),c=s.preset,u=s.version,f=Hn(Xi,e);if(n.chromium=!!f.preset,n.chromiumVersion=f.version,!n.chromium){var p=Hn(zr,e);n.webkit=!!p.preset,n.webkitVersion=p.version}return c&&(i.name=c.id,i.version=u,i.majorVersion=parseInt(u,10)),o&&(n.name=o.id,n.version=a,n.webview&&i.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:t,isHints:!1}}(),ta=Rn.browser.webkit,ea=ta&&(io=typeof window>"u"?{userAgent:""}:window.navigator,!!(oo=/applewebkit\/([^\s]+)/g.exec(io.userAgent.toLowerCase()))&&parseFloat(oo[1])<605),na=Rn.browser.name,ra=parseInt(Rn.browser.version,10),ss=na==="chrome",us=Rn.browser.chromium,cs=parseInt(Rn.browser.chromiumVersion,10)||0,ls=ss&&ra>=109||us&&cs>=109,fs=na==="firefox",ps=parseInt(Rn.browser.webkitVersion,10)>=612||ra>=15,Ci="moveable-",ds=Si.map(function(e){var t="",n="",i="center",r="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),r="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",r="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),i="right"),e.indexOf("e")>-1&&(n="left: 0px;",i="left"),'.around-control[data-direction*="'.concat(e,`"] {
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Qe=require("react");function Ya(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Je=Ya(Qe);function vi(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return!0;return!1}function Fo(e,t){for(var n=e.length,i=0;i<n;++i)if(t(e[i],i))return e[i];return null}function Ni(e){var t=e;if(t===void 0){if(typeof navigator>"u"||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function Kr(e,t){try{return new RegExp(e,"g").exec(t)}catch{return null}}function Qr(e){return e.replace(/_/g,".")}function Hn(e,t){var n=null,i="-1";return vi(e,function(r){var o,a,s,c=Kr("("+r.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!c||r.brand||(n=r,i=c[3]||"-1",r.versionAlias?i=r.versionAlias:r.versionTest&&(o=r.versionTest.toLowerCase(),a=t,s=Kr("("+o+")((?:\\/|\\s|:)([0-9|\\.|_]+))",a),i=(s?s[3]:"")||i),i=Qr(i),0))}),{preset:n,version:i}}function pr(e,t){var n={brand:"",version:"-1"};return vi(e,function(i){var r=Bo(t,i);return!!r&&(n.brand=i.id,n.version=i.versionAlias||r.version,n.version!=="-1")}),n}function Bo(e,t){return Fo(e,function(n){var i=n.brand;return Kr(""+t.test,i.toLowerCase())})}var Yi=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],Xi=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],zr=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],Go=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],Wi=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function qi(e){return!!Hn(Go,e).preset}function Xa(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(i){return i.split(" ").map(function(r){return r?""+e+r:""}).join(" ")}).join(" ")}function cn(e,t){return function(n){n&&(e[t]=n)}}function ko(e,t,n){return function(i){i&&(e[t][n]=i)}}var mi="undefined",Ao=typeof window!==mi,Wa=typeof document!==mi&&document,qa=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],ee=1e-7,dr={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function Hi(e,t,n,i){return(e*i+t*n)/(n+i)}function bi(e){return typeof e===mi}function Le(e){return e&&typeof e=="object"}function xe(e){return Array.isArray(e)}function Pn(e){return typeof e=="string"}function Dr(e){return typeof e=="number"}function zo(e){return typeof e=="function"}function Io(e,t,n,i,r){return Jr(e,t,n)?n:function(o,a,s,c,u){for(var f,p=function(h){var g=a[h].trim();if(g===o.close&&!Jr(o,a,h))return{value:h};var v=h,m=Fe(u,function(y){return y.open===g});if(m&&(v=Io(m,a,h,c,u)),v===-1)return f=h,"break";f=h=v},l=s;l<c;++l){var d=p(l);if(l=f,typeof d=="object")return d.value;if(d==="break")break}return-1}(e,t,n+1,i,r)}function Jr(e,t,n){if(!e.ignore)return null;var i=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(i)}function xi(e,t){var n=Pn(t)?{separator:t}:t,i=n.separator,r=i===void 0?",":i,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,c=s===void 0?a:s,u=n.openCloseCharacters,f=u===void 0?qa:u,p=f.map(function(b){var w=b.open,R=b.close;return w===R?w:w+"|"+R}).join("|"),l=new RegExp("(\\s*"+r+"\\s*|"+p+"|\\s+)","g"),d=e.split(l).filter(function(b){return b&&b!=="undefined"}),h=d.length,g=[],v=[];function m(){return!!v.length&&(g.push(v.join("")),v=[],!0)}for(var y,x=function(b){var w,R,G=d[b].trim(),P=b,D=Fe(f,function(F){return F.open===G}),_=Fe(f,function(F){return F.close===G});if(D){if((P=Io(D,d,b,h,f))!==-1&&c)return m()&&o?(y=b,"break"):(g.push(d.slice(b,P+1).join("")),b=P,o?(y=b,"break"):(y=b,"continue"))}else{if(_&&!Jr(_,d,b)){var T=function(){for(var F=0,B=0,O=arguments.length;B<O;B++)F+=arguments[B].length;var I=Array(F),z=0;for(B=0;B<O;B++)for(var X=arguments[B],H=0,N=X.length;H<N;H++,z++)I[z]=X[H];return I}(f);return T.splice(f.indexOf(_),1),{value:xi(e,{separator:r,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:c,openCloseCharacters:T})}}if(w=G,!(((R=r)!==""&&R!=" "||w!==""&&w!=" ")&&w!==R||a))return m(),o?(y=b,"break"):(y=b,"continue")}P===-1&&(P=h-1),v.push(d.slice(b,P+1).join("")),y=b=P},E=0;E<h;++E){var M=x(E);if(E=y,typeof M=="object")return M.value;if(M==="break")break}return v.length&&g.push(v.join("")),g}function tr(e){return xi(e,"")}function Ln(e){return xi(e,",")}function Fr(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],i=t[2];return{prefix:n,unit:t[3],value:parseFloat(i)}}function Sr(){return Date.now?Date.now():new Date().getTime()}function Cn(e,t,n){n===void 0&&(n=-1);for(var i=e.length,r=0;r<i;++r)if(t(e[r],r,e))return r;return n}function Fe(e,t,n){var i=Cn(e,t);return i>-1?e[i]:n}var Li,ji,Vi,No=(Li=Sr(),(ji=Ao&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame))?ji.bind(window):function(e){var t=Sr();return setTimeout(function(){e(t-Li)},1e3/60)}),Ha=(Vi=Ao&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame))?Vi.bind(window):function(e){clearTimeout(e)};function er(e){return Object.keys(e)}function Ee(e,t){var n=Fr(e),i=n.value,r=n.unit;if(Le(t)){var o=t[r];if(o){if(zo(o))return o(i);if(dr[r])return dr[r](i,o)}}else if(r==="%")return i*t/100;return dr[r]?dr[r](i):i}function ti(e,t,n){return Math.max(t,Math.min(e,n))}function Ui(e,t,n,i){return i===void 0&&(i=e[0]/e[1]),[[kt(t[0],ee),kt(t[0]/i,ee)],[kt(t[1]*i,ee),kt(t[1],ee)]].filter(function(r){return r.every(function(o,a){var s=t[a],c=kt(s,ee);return n?o<=s||o<=c:o>=s||o>=c})})[0]||e}function ei(e){for(var t=e.length,n=0,i=t-1;i>=0;--i)n+=e[i];return t?n/t:0}function Re(e,t){var n=t[0]-e[0],i=t[1]-e[1],r=Math.atan2(i,n);return r>=0?r:r+2*Math.PI}function Zi(e){var t,n=(t=e,[0,1].map(function(o){return ei(t.map(function(a){return a[o]}))})),i=Re(n,e[0]),r=Re(n,e[1]);return i<r&&r-i<Math.PI||i>r&&r-i<-Math.PI?1:-1}function jn(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function kt(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function $i(e,t){return e.forEach(function(n,i){e[i]=kt(e[i],t)}),e}function Ye(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function Yo(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function Xo(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function ge(e,t,n,i){e.addEventListener(t,n,i)}function fe(e,t,n,i){e.removeEventListener(t,n,i)}function yi(e){return e?.ownerDocument||Wa}function Ei(e){return yi(e).documentElement}function nn(e){return yi(e).body}function tn(e){var t;return((t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function Wo(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function wi(e){return Le(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function La(e,t,n,i,r,o){for(var a=0;a<r;++a){var s=n+a*r,c=i+a*r;e[s]+=e[c]*o,t[s]+=t[c]*o}}function ja(e,t,n,i,r){for(var o=0;o<r;++o){var a=n+o*r,s=i+o*r,c=e[a],u=t[a];e[a]=e[s],e[s]=c,t[a]=t[s],t[s]=u}}function Va(e,t,n,i,r){for(var o=0;o<i;++o){var a=n+o*i;e[a]/=r,t[a]/=r}}function ln(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),i=Xt(t),r=0;r<t;++r){var o=t*r+r;if(!kt(n[o],ee)){for(var a=r+1;a<t;++a)if(n[t*r+a]){ja(n,i,r,a,t);break}}if(!kt(n[o],ee))return[];for(Va(n,i,r,t,n[o]),a=0;a<t;++a){var s=a,c=n[a+r*t];kt(c,ee)&&r!==a&&La(n,i,s,r,t,-c)}}return i}function ar(e,t){for(var n=e.slice(),i=e.length;i<t-1;++i)n[i]=0;return n[t-1]=1,n}function fn(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var i=Xt(n),r=Math.min(t,n),o=0;o<r-1;++o){for(var a=0;a<r-1;++a)i[o*n+a]=e[o*t+a];i[(o+1)*n-1]=e[(o+1)*t-1],i[(n-1)*n+o]=e[(t-1)*t+o]}return i[n*n-1]=e[t*t-1],i}function Cr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Xt(e);return t.forEach(function(r){i=ie(i,r,e)}),i}function ie(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var i=[],r=e.length/n,o=t.length/r;if(!r)return t;if(!o)return e;for(var a=0;a<n;++a)for(var s=0;s<o;++s){i[s*n+a]=0;for(var c=0;c<r;++c)i[s*n+a]+=e[c*n+a]*t[s*r+c]}return i}function Ut(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]+t[r];return i}function ct(e,t){for(var n=Math.min(e.length,t.length),i=e.slice(),r=0;r<n;++r)i[r]=i[r]-t[r];return i}function Ua(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function qo(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function ke(e,t,n){n===void 0&&(n=t.length);var i=ie(e,t,n),r=i[n-1];return i.map(function(o){return o/r})}function Za(e,t){return ie(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function $a(e,t){return ie(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function Ka(e,t){return ie(e,Br(t,4))}function hr(e,t){var n=t[0],i=n===void 0?1:n,r=t[1],o=r===void 0?1:r,a=t[2];return ie(e,[i,0,0,0,0,o,0,0,0,0,a===void 0?1:a,0,0,0,0,1],4)}function Ir(e,t){var n=t[0],i=n===void 0?0:n,r=t[1],o=r===void 0?0:r,a=t[2];return ie(e,[1,0,0,0,0,1,0,0,0,0,1,0,i,o,a===void 0?0:a,1],4)}function Ki(e,t){return ie(e,t,4)}function Br(e,t){var n=Math.cos(e),i=Math.sin(e),r=Xt(t);return r[0]=n,r[1]=i,r[t]=-i,r[t+1]=n,r}function Xt(e){for(var t=e*e,n=[],i=0;i<t;++i)n[i]=i%(e+1)?0:1;return n}function Ho(e,t){for(var n=Xt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[(t+1)*r]=e[r];return n}function pn(e,t){for(var n=Xt(t),i=Math.min(e.length,t-1),r=0;r<i;++r)n[t*(t-1)+r]=e[r];return n}function Lo(e,t,n,i,r,o,a,s){var c=e[0],u=e[1],f=t[0],p=t[1],l=n[0],d=n[1],h=i[0],g=i[1],v=r[0],m=r[1],y=o[0],x=o[1],E=a[0],M=a[1],b=s[0],w=s[1],R=ln([c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,0,0,c,0,f,0,l,0,h,0,u,0,p,0,d,0,g,0,1,0,1,0,1,0,1,-v*c,-m*c,-y*f,-x*f,-E*l,-M*l,-b*h,-w*h,-v*u,-m*u,-y*p,-x*p,-E*d,-M*d,-b*g,-w*g],8);if(!R.length)return[];var G=ie(R,[v,m,y,x,E,M,b,w],8);return G[8]=1,fn(function(P,D){D===void 0&&(D=Math.sqrt(P.length));for(var _=[],T=0;T<D;++T)for(var F=0;F<D;++F)_[F*D+T]=P[D*T+F];return _}(G),3,4)}var Vn=function(){return Vn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Vn.apply(this,arguments)};function Di(e,t){return t===void 0&&(t=0),vn(_n(e,t))}function vn(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach(function(n){var i=n.matrixFunction,r=n.functionValue;i&&(t=i(t,r))}),t}function _n(e,t){return t===void 0&&(t=0),(xe(e)?e:tr(e)).map(function(n){var i,r=!(i=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(n))||i.length<4?{}:{prefix:i[1],value:i[2],suffix:i[3]},o=r.prefix,a=r.value,s=null,c=o,u="";if(o==="translate"||o==="translateX"||o==="translate3d"){var f=Le(t)?Vn(Vn({},t),{"o%":t["%"]}):{"%":t,"o%":t},p=Ln(a).map(function(G,P){return f["%"]=P===0&&"x%"in f?t["x%"]:P===1&&"y%"in f?t["y%"]:t["o%"],Ee(G,f)}),l=p[0],d=p[1],h=d===void 0?0:d,g=p[2];s=Ir,u=[l,h,g===void 0?0:g]}else if(o==="translateY")s=Ir,u=[0,h=Ee(a,Le(t)?Vn({"%":t["y%"]},t):{"%":t}),0];else if(o==="translateZ")s=Ir,u=[0,0,parseFloat(a)];else if(o==="scale"||o==="scale3d"){var v=Ln(a).map(function(G){return parseFloat(G)}),m=v[0],y=v[1],x=y===void 0?m:y,E=v[2];s=hr,u=[m,x,E===void 0?1:E]}else if(o==="scaleX")s=hr,u=[m=parseFloat(a),1,1];else if(o==="scaleY")s=hr,u=[1,x=parseFloat(a),1];else if(o==="scaleZ")s=hr,u=[1,1,parseFloat(a)];else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=Fr(a),b=M.unit,w=M.value;o==="rotate"||o==="rotateZ"?(c="rotateZ",s=Ka):o==="rotateX"?s=Za:o==="rotateY"&&(s=$a),u=b==="rad"?w:w*Math.PI/180}else if(o==="matrix3d")s=Ki,u=Ln(a).map(function(G){return parseFloat(G)});else if(o==="matrix"){var R=Ln(a).map(function(G){return parseFloat(G)});s=Ki,u=[R[0],R[1],0,0,R[2],R[3],0,0,0,0,1,0,R[4],R[5],0,1]}else c="";return{name:o,functionName:c,value:a,matrixFunction:s,functionValue:u}})}var Qa=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,i){var r=this.keys,o=this.values,a=r.indexOf(n),s=a===-1?r.length:a;r[s]=n,o[s]=i},e}(),Ja=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,i){this.object[n]=i},e}(),ts=typeof Map=="function",es=function(){function e(){}var t=e.prototype;return t.connect=function(n,i){this.prev=n,this.next=i,n&&(n.next=this),i&&(i.prev=this)},t.disconnect=function(){var n=this.prev,i=this.next;n&&(n.next=i),i&&(i.prev=n)},t.getIndex=function(){for(var n=this,i=-1;n;)n=n.prev,++i;return i},e}(),ns=function(){function e(n,i,r,o,a,s,c,u){this.prevList=n,this.list=i,this.added=r,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=c,this.fixed=u}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n,i,r,o,a=(n=this.changedBeforeAdded,i=this.fixed,r=[],o=[],n.forEach(function(u){var f=u[0],p=u[1],l=new es;r[f]=l,o[p]=l}),r.forEach(function(u,f){u.connect(r[f-1])}),n.filter(function(u,f){return!i[f]}).map(function(u,f){var p=u[0],l=u[1];if(p===l)return[0,0];var d=r[p],h=o[l-1],g=d.getIndex();return d.disconnect(),h?d.connect(h,h.next):d.connect(void 0,r[0]),[g,d.getIndex()]})),s=this.changed,c=[];this.cacheOrdered=a.filter(function(u,f){var p=u[0],l=u[1],d=s[f],h=d[0],g=d[1];if(p!==l)return c.push([h,g]),!0}),this.cachePureChanged=c},e}();function jo(e,t,n){var i=ts?Map:n?Ja:Qa,r=n||function(y){return y},o=[],a=[],s=[],c=e.map(r),u=t.map(r),f=new i,p=new i,l=[],d=[],h={},g=[],v=0,m=0;return c.forEach(function(y,x){f.set(y,x)}),u.forEach(function(y,x){p.set(y,x)}),c.forEach(function(y,x){var E=p.get(y);E===void 0?(++m,a.push(x)):h[E]=m}),u.forEach(function(y,x){var E=f.get(y);E===void 0?(o.push(x),++v):(s.push([E,x]),m=h[x]||0,l.push([E-m,x-v]),d.push(x===E),E!==x&&g.push([E,x]))}),a.reverse(),new ns(e,t,o,a,g,s,l,d)}var Qi,rs=function(){function e(t,n){t===void 0&&(t=[]),this.findKeyCallback=n,this.list=[].slice.call(t)}return e.prototype.update=function(t){var n=[].slice.call(t),i=jo(this.list,n,this.findKeyCallback);return this.list=n,i},e}(),Vo=function(e,t){return(Vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},is=typeof Map=="function"?void 0:(Qi=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++Qi)}),Uo=function(e){function t(n){return n===void 0&&(n=[]),e.call(this,n,is)||this}return function(n,i){function r(){this.constructor=n}Vo(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t}(rs),ni=function(){return ni=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ni.apply(this,arguments)},Zo=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,i){if(Le(n))for(var r in n)this.on(r,n[r]);else this._addEvent(n,i,{});return this},t.off=function(n,i){if(n)if(Le(n))for(var r in n)this.off(r);else if(i){var o=this._events[n];if(o){var a=Cn(o,function(s){return s.listener===i});a>-1&&o.splice(a,1)}}else this._events[n]=[];else this._events={};return this},t.once=function(n,i){var r=this;return i&&this._addEvent(n,i,{once:!0}),new Promise(function(o){r._addEvent(n,o,{once:!0})})},t.emit=function(n,i){var r=this;i===void 0&&(i={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return i.eventType=n,i.stop=function(){a=!0},i.currentTarget=this,function(){for(var s=0,c=0,u=arguments.length;c<u;c++)s+=arguments[c].length;var f=Array(s),p=0;for(c=0;c<u;c++)for(var l=arguments[c],d=0,h=l.length;d<h;d++,p++)f[p]=l[d];return f}(o).forEach(function(s){s.listener(i),s.once&&r.off(n,s.listener)}),!a},t.trigger=function(n,i){return i===void 0&&(i={}),this.emit(n,i)},t._addEvent=function(n,i,r){var o=this._events;o[n]=o[n]||[],o[n].push(ni({listener:i},r))},e}();function ye(e){return kt(e,ee)}function Ji(e){return e.length<3?0:Math.abs(function(t){for(var n=0,i=t.length-1;i>=0;--i)n+=t[i];return n}(e.map(function(t,n){var i=e[n+1]||e[0];return t[0]*i[1]-i[0]*t[1]})))/2}function to(e,t){var n=t.width,i=t.height,r=t.left,o=t.top,a=En(e),s=a.minX,c=a.minY,u=a.maxX,f=a.maxY,p=n/(u-s),l=i/(f-c);return e.map(function(d){return[r+(d[0]-s)*p,o+(d[1]-c)*l]})}function En(e){var t=e.map(function(i){return i[0]}),n=e.map(function(i){return i[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function Nr(e,t,n){var i=e[0],r=e[1],o=En(t),a=o.minX,s=o.maxX,c=[[a,r],[s,r]],u=_r(c[0],c[1]),f=ri(t),p=[];if(f.forEach(function(h){var g,v=_r(h[0],h[1]),m=h[0];g=v,u.every(function(y,x){return ye(y-g[x])===0})?p.push({pos:e,line:h,type:"line"}):$o(Mi(u,v),[c,h]).forEach(function(y){h.some(function(x){return M=y,!ye((E=x)[0]-M[0])&&!ye(E[1]-M[1]);var E,M})?p.push({pos:y,line:h,type:"point"}):ye(m[1]-r)!==0&&p.push({pos:y,line:h,type:"intersection"})})}),Fe(p,function(h){return h[0]===i}))return!0;var l=0,d={};return p.forEach(function(h){var g=h.pos,v=h.type,m=h.line;if(!(g[0]>i))if(v==="intersection")++l;else{if(v==="line")return;if(v==="point"){var y=Fe(m,function(M){return M[1]!==r}),x=d[g[0]],E=y[1]>r?1:-1;x?x!==E&&++l:d[g[0]]=E}}}),l%2==1}function _r(e,t){var n=e[0],i=e[1],r=t[0]-n,o=t[1]-i;Math.abs(r)<ee&&(r=0),Math.abs(o)<ee&&(o=0);var a=0,s=0,c=0;return r?o?(s=1,c=-(a=-o/r)*n-i):(s=1,c=-i):o&&(a=-1,c=n),[a,s,c]}function Mi(e,t){var n=e[0],i=e[1],r=e[2],o=t[0],a=t[1],s=t[2],c=n===0&&o===0,u=i===0&&a===0,f=[];if(c&&u)return[];if(c){var p=-r/i;return p!==-s/a?[]:[[-1/0,p],[1/0,p]]}if(u){var l=-r/n;return l!==-s/o?[]:[[l,-1/0],[l,1/0]]}if(n===0)f=[[d=-(a*(h=-r/i)+s)/o,h]];else if(o===0)f=[[d=-(i*(h=-s/a)+r)/n,h]];else if(i===0)f=[[d=-r/n,h=-(o*d+s)/a]];else if(a===0)f=[[d=-s/o,h=-(n*d+r)/i]];else{var d,h;f=[[d=(i*s-a*r)/(a*n-i*o),h=-(n*d+r)/i]]}return f.map(function(g){return[g[0],g[1]]})}function $o(e,t){var n=t.map(function(p){return[0,1].map(function(l){return[Math.min(p[0][l],p[1][l]),Math.max(p[0][l],p[1][l])]})}),i=[];if(e.length===2){var r=e[0],o=r[0],a=r[1];if(ye(o-e[1][0])){if(!ye(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(p){return p[0][0]})),c=Math.min.apply(Math,n.map(function(p){return p[0][1]}));if(ye(s-c)>0)return[];i=[[s,a],[c,a]]}}else{var u=Math.max.apply(Math,n.map(function(p){return p[1][0]})),f=Math.min.apply(Math,n.map(function(p){return p[1][1]}));if(ye(u-f)>0)return[];i=[[o,u],[o,f]]}}return i.length||(i=e.filter(function(p){var l=p[0],d=p[1];return n.every(function(h){return 0<=ye(l-h[0][0])&&0<=ye(h[0][1]-l)&&0<=ye(d-h[1][0])&&0<=ye(h[1][1]-d)})})),i.map(function(p){return[ye(p[0]),ye(p[1])]})}function ri(e){return function(){for(var t=0,n=0,i=arguments.length;n<i;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<i;n++)for(var a=arguments[n],s=0,c=a.length;s<c;s++,o++)r[o]=a[s];return r}(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}var Ko=function(e,t){return(Ko=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)i.hasOwnProperty(r)&&(n[r]=i[r])})(e,t)},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},te.apply(this,arguments)};function Yr(e){return 180*(t=[e[0].clientX,e[0].clientY],i=(n=[e[1].clientX,e[1].clientY])[0]-t[0],r=n[1]-t[1],((o=Math.atan2(r,i))>=0?o:o+2*Math.PI)/Math.PI);var t,n,i,r,o}function gr(e){return e?e.touches?function(t){for(var n=Math.min(t.length,2),i=[],r=0;r<n;++r)i.push(no(t[r]));return i}(e.touches):[no(e)]:[]}function eo(e,t,n){var i=n.length,r=Un(e,i),o=r.clientX,a=r.clientY,s=r.originalClientX,c=r.originalClientY,u=Un(t,i),f=u.clientX,p=u.clientY,l=Un(n,i);return{clientX:s,clientY:c,deltaX:o-f,deltaY:a-p,distX:o-l.clientX,distY:a-l.clientY}}function Xr(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function no(e){return{clientX:e.clientX,clientY:e.clientY}}function Un(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},i=Math.min(e.length,t),r=0;r<i;++r){var o=e[r];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var Wr=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),Yr(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),Yr(t)-Yr(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var i=eo(t||this.prevClients,this.prevClients,this.startClients),r=i.deltaX,o=i.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=t,i},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,i=this.startClients,r=Math.min(this.length,n.length),o=[],a=0;a<r;++a)o[a]=eo([t[a]],[n[a]],[i[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var i=Un(t,this.length),r=Un(this.prevClients,this.length),o=i.clientX-r.clientX,a=i.clientY-r.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),Xr(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),Xr(t)/Xr(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(i){i.clientX-=t,i.clientY-=n}),this.prevClients.forEach(function(i){i.clientX-=t,i.clientY-=n})},e}(),ro=["textarea","input"],os=function(e){function t(n,i){i===void 0&&(i={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._preventMouseEventId=0,r._window=window,r.onDragStart=function(l,d){if(d===void 0&&(d=!0),r.flag||l.cancelable!==!1){var h=l.type.indexOf("drag")>=-1;if(!r.flag||!h){r._isDragAPI=!0;var g=r.options,v=g.container,m=g.pinchOutside,y=g.preventWheelClick,x=g.preventRightClick,E=g.preventDefault,M=g.checkInput,b=g.dragFocusedInput,w=g.preventClickEventOnDragStart,R=g.preventClickEventOnDrag,G=g.preventClickEventByCondition,P=r._useTouch,D=!r.flag;if(r._isSecondaryButton=l.which===3||l.button===2,y&&(l.which===2||l.button===1)||x&&(l.which===3||l.button===2))return r.stop(),!1;if(D){var _=r._window.document.activeElement,T=l.target;if(T){var F=T.tagName.toLowerCase(),B=ro.indexOf(F)>-1,O=T.isContentEditable;if(B||O){if(M||!b&&_===T)return!1;if(_&&(_===T||O&&_.isContentEditable&&_.contains(T))){if(!b)return!1;T.blur()}}else if((E||l.type==="touchstart")&&_){var I=_.tagName.toLowerCase();(_.isContentEditable||ro.indexOf(I)>-1)&&_.blur()}(w||R||G)&&ge(r._window,"click",r._onClick,!0)}r.clientStores=[new Wr(gr(l))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=d,r._dragFlag=!0,r._prevInputEvent=l,r.data={},r.doubleFlag=Sr()-r.prevTime<200,r._isMouseEvent=(H=l)&&(H.type.indexOf("mouse")>-1||"button"in H),!r._isMouseEvent&&r._preventMouseEvent&&r._allowMouseEvent(),(r._preventMouseEvent||r.emit("dragStart",te(te({data:r.data,datas:r.data,inputEvent:l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:d,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){l.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))===!1&&r.stop(),r._isMouseEvent&&r.flag&&E&&l.preventDefault()}if(!r.flag)return!1;var z=0;if(D?(r._attchDragEvent(),P&&m&&(z=setTimeout(function(){ge(v,"touchstart",r.onDragStart,{passive:!1})}))):P&&m&&fe(v,"touchstart",r.onDragStart),r.flag&&(X=l).touches&&X.touches.length>=2){if(clearTimeout(z),D&&l.touches.length!==l.changedTouches.length)return;r.pinchFlag||r.onPinchStart(l)}}}var X,H},r.onDrag=function(l,d){if(r.flag){var h=r.options.preventDefault;!r._isMouseEvent&&h&&l.preventDefault(),r._prevInputEvent=l;var g=gr(l),v=r.moveClients(g,l,!1);if(r._dragFlag){if((r.pinchFlag||v.deltaX||v.deltaY)&&(r._preventMouseEvent||r.emit("drag",te(te({},v),{isScroll:!!d,inputEvent:l})))===!1)return void r.stop();r.pinchFlag&&r.onPinch(l,g)}r.getCurrentStore().getPosition(g,!0)}},r.onDragEnd=function(l){if(r.flag){var d=r.options,h=d.pinchOutside,g=d.container,v=d.preventClickEventOnDrag,m=d.preventClickEventOnDragStart,y=d.preventClickEventByCondition,x=r.isDrag;(v||m||y)&&requestAnimationFrame(function(){r._allowClickEvent()}),y||m||!v||x||r._allowClickEvent(),r._useTouch&&h&&fe(g,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(l);var E=l?.touches?gr(l):[];E.length!==0&&r.options.keepDragging?r._addStore(new Wr(E)):r.flag=!1;var M=r._getPosition(),b=Sr(),w=!x&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=x||w?0:b,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",te({data:r.data,datas:r.data,isDouble:w,isDrag:x,isClick:!x,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:l,isTrusted:r._isTrusted},M)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,clearTimeout(r._preventMouseEventId),r._preventMouseEventId=setTimeout(function(){r._preventMouseEvent=!1},200)),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){fe(r._window,"click",r._onClick,!0)},r._onClick=function(l){r._allowClickEvent(),r._allowMouseEvent();var d=r.options.preventClickEventByCondition;d?.(l)||(l.stopPropagation(),l.preventDefault())},r._onContextMenu=function(l){r.options.preventRightClick?r.onDragEnd(l):l.preventDefault()},r._passCallback=function(){};var o=[].concat(n),a=o[0];r._window=Wo(a)?a:tn(a),r.options=te({checkInput:!1,container:a&&!("document"in a)?tn(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},i);var s=r.options,c=s.container,u=s.events,f=s.checkWindowBlur;if(r._useDrag=u.indexOf("drag")>-1,r._useTouch=u.indexOf("touch")>-1,r._useMouse=u.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach(function(l){ge(l,"dragstart",r.onDragStart)}),r._useMouse&&(o.forEach(function(l){ge(l,"mousedown",r.onDragStart),ge(l,"mousemove",r._passCallback)}),ge(c,"contextmenu",r._onContextMenu)),f&&ge(tn(),"blur",r.onBlur),r._useTouch){var p={passive:!1};o.forEach(function(l){ge(l,"touchstart",r.onDragStart,p),ge(l,"touchmove",r._passCallback,p)})}return r}return function(n,i){function r(){this.constructor=n}Ko(n,i),n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(i,r){return i+r.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,i,r,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,i),o&&this.onDrag(r,!0))},t.prototype.move=function(n,i){var r=n[0],o=n[1],a=this.getCurrentStore().prevClients;return this.moveClients(a.map(function(s){var c=s.clientX,u=s.clientY;return{clientX:c+r,clientY:u+o,originalClientX:c,originalClientY:u}}),i,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var i=this.data;for(var r in n)i[r]=n[r];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),te(te({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,i=this.targets,r=this.options.container;this.off(),fe(this._window,"blur",this.onBlur),this._useDrag&&i.forEach(function(o){fe(o,"dragstart",n.onDragStart)}),this._useMouse&&(i.forEach(function(o){fe(o,"mousedown",n.onDragStart)}),fe(r,"contextmenu",this._onContextMenu)),this._useTouch&&(i.forEach(function(o){fe(o,"touchstart",n.onDragStart)}),fe(r,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var i=this,r=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>r)){var o=new Wr(gr(n));this.pinchFlag=!0,this._addStore(o),this.emit("pinchStart",te(te({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){i._dragFlag=!1}}))===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,i){if(this.flag&&this.pinchFlag&&!(i.length<2)){var r=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",te(te({data:this.data,datas:this.data,movement:this.getMovement(i),angle:r.getAngle(i),rotation:r.getRotation(i),touches:r.getPositions(i),scale:r.getScale(i),distance:r.getDistance(i)},r.getPosition(i)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var i=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var r=this.getCurrentStore();this.emit("pinchEnd",te(te({data:this.data,datas:this.data,isPinch:i,touches:r.getPositions()},r.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,i,r){var o=this._getPosition(n,r),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),te(te({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:i,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,i){var r=this.getCurrentStore().getPosition(n,i),o=this.clientStores.slice(1).reduce(function(c,u){var f=u.getPosition();return c.distX+=f.distX,c.distY+=f.distY,c},r),a=o.distX,s=o.distY;return te(te({},r),{distX:a,distY:s})},t.prototype._attchDragEvent=function(){var n=this._window,i=this.options.container,r={passive:!1};this._isDragAPI&&(ge(i,"dragover",this.onDrag,r),ge(n,"dragend",this.onDragEnd)),this._useMouse&&(ge(i,"mousemove",this.onDrag),ge(n,"mouseup",this.onDragEnd)),this._useTouch&&(ge(i,"touchmove",this.onDrag,r),ge(n,"touchend",this.onDragEnd,r),ge(n,"touchcancel",this.onDragEnd,r))},t.prototype._dettachDragEvent=function(){var n=this._window,i=this.options.container;this._isDragAPI&&(fe(i,"dragover",this.onDrag),fe(n,"dragend",this.onDragEnd)),this._useMouse&&(fe(i,"mousemove",this.onDrag),fe(n,"mouseup",this.onDragEnd)),this._useTouch&&(fe(i,"touchstart",this.onDragStart),fe(i,"touchmove",this.onDrag),fe(n,"touchend",this.onDragEnd),fe(n,"touchcancel",this.onDragEnd))},t.prototype._allowMouseEvent=function(){this._preventMouseEvent=!1,clearTimeout(this._preventMouseEventId)},t}(Zo),ii=function(){return ii=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ii.apply(this,arguments)};function Qo(e,t){var n=function(r){var o="rCS"+function(a){for(var s=5381,c=a.length;c;)s=33*s^a.charCodeAt(--c);return s>>>0}(r).toString(36);return{className:o,inject:function(a,s){s===void 0&&(s={});var c,u,f,p,l,d,h,g,v=function(x){if(x&&x.getRootNode){var E=x.getRootNode();if(E.nodeType===11)return E}}(a),m=(v||a.ownerDocument||document).querySelector('style[data-styled-id="'.concat(o,'"]'));if(m){var y=parseFloat(m.getAttribute("data-styled-count"))||0;m.setAttribute("data-styled-count","".concat(y+1))}else c=o,u=r,f=s,p=v,(g=(h=yi(a)).createElement("style")).setAttribute("type","text/css"),g.setAttribute("data-styled-id",c),g.setAttribute("data-styled-count","1"),f.nonce&&g.setAttribute("nonce",f.nonce),g.innerHTML=(l=c,d=u,f.original?d:d.replace(/([^};{\s}][^};{]*|^\s*){/gm,function(x,E){var M=E.trim();return(M?Ln(M):[""]).map(function(b){var w=b.trim();return w.indexOf("@")===0?w:w.indexOf(":global")>-1?w.replace(/\:global/g,""):w.indexOf(":host")>-1?"".concat(w.replace(/\:host/g,".".concat(l))):w?".".concat(l," ").concat(w):".".concat(l)}).join(", ")+" {"})),(p||h.head||h.body).appendChild(g),m=g;return{destroy:function(){var x,E=parseFloat(m.getAttribute("data-styled-count"))||0;E<=1?(m.remove?m.remove():(x=m.parentNode)===null||x===void 0||x.removeChild(m),m=null):m.setAttribute("data-styled-count","".concat(E-1))}}}}}(t),i=n.className;return Qe.forwardRef(function(r,o){var a=r.className,s=a===void 0?"":a;r.cspNonce;var c=function(f,p){var l={};for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&p.indexOf(d)<0&&(l[d]=f[d]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var h=0;for(d=Object.getOwnPropertySymbols(f);h<d.length;h++)p.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(f,d[h])&&(l[d[h]]=f[d[h]])}return l}(r,["className","cspNonce"]),u=Qe.useRef();return Qe.useImperativeHandle(o,function(){return u.current},[]),Qe.useEffect(function(){var f=n.inject(u.current,{nonce:r.cspNonce});return function(){f.destroy()}},[]),Qe.createElement(e,ii({ref:u,"data-styled-id":i,className:"".concat(s," ").concat(i)},c))})}var Jo=function(e,t){return(Jo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(e,t)};function sr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Jo(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var S=function(){return S=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},S.apply(this,arguments)};function C(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function L(e,t,n){if(arguments.length===2)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function nr(e,t){return S({events:[],props:[],name:e},t)}var io,oo,as=["n","w","s","e"],Si=["n","w","s","e","nw","ne","sw","se"],Rn=function(){if(typeof navigator>"u"||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}()?function(){var e=navigator.userAgentData,t=(e.uaList||e.brands).slice(),n=e.mobile||!1,i=t[0],r=(e.platform||navigator.platform).toLowerCase(),o={name:i.brand,version:i.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!pr(Go,t).brand||qi(Ni())},a={name:"unknown",version:"-1",majorVersion:-1};o.webkit=!o.chromium&&vi(zr,function(p){return Bo(t,p)});var s=pr(Xi,t);if(o.chromium=!!s.brand,o.chromiumVersion=s.version||"-1",!o.chromium){var c=pr(zr,t);o.webkit=!!c.brand,o.webkitVersion=c.version||"-1"}var u=Fo(Wi,function(p){return new RegExp(""+p.test,"g").exec(r)});a.name=u?u.id:"";var f=pr(Yi,t);return o.name=f.brand||o.name,o.version=(f.brand,f.version),o.webkit&&(a.name=n?"ios":"mac"),a.name==="ios"&&o.webview&&(o.version="-1"),a.version=Qr(a.version),o.version=Qr(o.version),a.majorVersion=parseInt(a.version,10),o.majorVersion=parseInt(o.version,10),{browser:o,os:a,isMobile:n,isHints:!0}}():function(){var e=Ni(void 0),t=!!/mobi/g.exec(e),n={name:"unknown",version:"-1",majorVersion:-1,webview:qi(e),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},i={name:"unknown",version:"-1",majorVersion:-1},r=Hn(Yi,e),o=r.preset,a=r.version,s=Hn(Wi,e),c=s.preset,u=s.version,f=Hn(Xi,e);if(n.chromium=!!f.preset,n.chromiumVersion=f.version,!n.chromium){var p=Hn(zr,e);n.webkit=!!p.preset,n.webkitVersion=p.version}return c&&(i.name=c.id,i.version=u,i.majorVersion=parseInt(u,10)),o&&(n.name=o.id,n.version=a,n.webview&&i.name==="ios"&&n.name!=="safari"&&(n.webview=!1)),n.majorVersion=parseInt(n.version,10),{browser:n,os:i,isMobile:t,isHints:!1}}(),ta=Rn.browser.webkit,ea=ta&&(io=typeof window>"u"?{userAgent:""}:window.navigator,!!(oo=/applewebkit\/([^\s]+)/g.exec(io.userAgent.toLowerCase()))&&parseFloat(oo[1])<605),na=Rn.browser.name,ra=parseInt(Rn.browser.version,10),ss=na==="chrome",us=Rn.browser.chromium,cs=parseInt(Rn.browser.chromiumVersion,10)||0,ls=ss&&ra>=109||us&&cs>=109,fs=na==="firefox",ps=parseInt(Rn.browser.webkitVersion,10)>=612||ra>=15,Ci="moveable-",ds=Si.map(function(e){var t="",n="",i="center",r="center",o="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(o,";"),r="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",r="top"),e.indexOf("w")>-1&&(n="left: ".concat(o,";"),i="right"),e.indexOf("e")>-1&&(n="left: 0px;",i="left"),'.around-control[data-direction*="'.concat(e,`"] {
|
|
56
7
|
`).concat(n).concat(t,`
|
|
57
8
|
transform-origin: `).concat(i," ").concat(r,`;
|
|
58
9
|
}`)}).join(`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/const m=require("react/jsx-runtime"),l=require("react"),r=require("./B4SOP0NZdUa_5syD.cjs"),Wt=require("react-dom");function Rt(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(o,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return o.default=e,Object.freeze(o)}const de=Rt(l);function Pt(e){return r.generateUtilityClass("MuiCollapse",e)}r.generateUtilityClasses("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ft=r.styled("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,o[i.orientation],i.state==="entered"&&o.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&o.hidden]}})(r.memoTheme(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:o})=>o.state==="exited"&&!o.in&&o.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Nt=r.styled("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,o)=>o.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),At=r.styled("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,o)=>o.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Fe=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCollapse"}),{addEndListener:t,children:n,className:a,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:x,onExit:v,onExited:y,onExiting:b,orientation:w="vertical",style:k,timeout:h=r.duration.standard,TransitionComponent:T=r.Transition,...E}=i,N={...i,orientation:w,collapsedSize:s},L=(j=>{const{orientation:W,classes:V}=j,Q={root:["root",`${W}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${W}`],wrapperInner:["wrapperInner",`${W}`]};return r.composeClasses(Q,Pt,V)})(N),H=r.useTheme(),U=r.useTimeout(),P=de.useRef(null),z=de.useRef(),$=typeof s=="number"?`${s}px`:s,Y=w==="horizontal",A=Y?"width":"height",te=de.useRef(null),F=r.useForkRef(o,te),S=j=>W=>{if(j){const V=te.current;W===void 0?j(V):j(V,W)}},M=()=>P.current?P.current[Y?"clientWidth":"clientHeight"]:0,I=S((j,W)=>{P.current&&Y&&(P.current.style.position="absolute"),j.style[A]=$,p&&p(j,W)}),D=S((j,W)=>{const V=M();P.current&&Y&&(P.current.style.position="");const{duration:Q,easing:ae}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"enter"});if(h==="auto"){const ne=H.transitions.getAutoHeightDuration(V);j.style.transitionDuration=`${ne}ms`,z.current=ne}else j.style.transitionDuration=typeof Q=="string"?Q:`${Q}ms`;j.style[A]=`${V}px`,j.style.transitionTimingFunction=ae,x&&x(j,W)}),_=S((j,W)=>{j.style[A]="auto",f&&f(j,W)}),B=S(j=>{j.style[A]=`${M()}px`,v&&v(j)}),J=S(y),q=S(j=>{const W=M(),{duration:V,easing:Q}=r.getTransitionProps({style:k,timeout:h,easing:c},{mode:"exit"});if(h==="auto"){const ae=H.transitions.getAutoHeightDuration(W);j.style.transitionDuration=`${ae}ms`,z.current=ae}else j.style.transitionDuration=typeof V=="string"?V:`${V}ms`;j.style[A]=$,j.style.transitionTimingFunction=Q,b&&b(j)});return m.jsx(T,{in:d,onEnter:I,onEntered:_,onEntering:D,onExit:B,onExited:J,onExiting:q,addEndListener:j=>{h==="auto"&&U.start(z.current||0,j),t&&t(te.current,j)},nodeRef:te,timeout:h==="auto"?null:h,...E,children:(j,{ownerState:W,...V})=>m.jsx(Ft,{as:u,className:r.clsx(L.root,a,{entered:L.entered,exited:!d&&$==="0px"&&L.hidden}[j]),style:{[Y?"minWidth":"minHeight"]:$,...k},ref:F,ownerState:{...N,state:j},...V,children:m.jsx(Nt,{ownerState:{...N,state:j},className:L.wrapper,ref:P,children:m.jsx(At,{ownerState:{...N,state:j},className:L.wrapperInner,children:n})})})})});function It(e){return r.generateUtilityClass("MuiCard",e)}Fe&&(Fe.muiSupportAuto=!0),r.generateUtilityClasses("MuiCard",["root"]);const Ht=r.styled(r.Paper,{name:"MuiCard",slot:"Root",overridesResolver:(e,o)=>o.root})({overflow:"hidden"}),qt=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCard"}),{className:t,raised:n=!1,...a}=i,s={...i,raised:n},u=(c=>{const{classes:d}=c;return r.composeClasses({root:["root"]},It,d)})(s);return m.jsx(Ht,{className:r.clsx(u.root,t),elevation:n?8:void 0,ref:o,ownerState:s,...a})});function zt(e){return r.generateUtilityClass("MuiCardActions",e)}r.generateUtilityClasses("MuiCardActions",["root","spacing"]);const Bt=r.styled("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:i}=e;return[o.root,!i.disableSpacing&&o.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ut=de.forwardRef(function(e,o){const i=r.useDefaultProps({props:e,name:"MuiCardActions"}),{disableSpacing:t=!1,className:n,...a}=i,s={...i,disableSpacing:t},u=(c=>{const{classes:d,disableSpacing:p}=c,f={root:["root",!p&&"spacing"]};return r.composeClasses(f,zt,d)})(s);return m.jsx(Bt,{className:r.clsx(u.root,n),ownerState:s,ref:o,...a})}),Ke=typeof r.globalCss({})=="function",_t=(e,o)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...o&&!e.vars&&{colorScheme:e.palette.mode}}),Vt=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),et=(e,o=!1)=>{const i={};o&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([a,s])=>{const u=e.getColorSchemeSelector(a);u.startsWith("@")?i[u]={":root":{colorScheme:s.palette?.mode}}:i[u.replace(/\s*&/,"")]={colorScheme:s.palette?.mode}});let t={html:_t(e,o),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Vt(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...i};const n=e.components?.MuiCssBaseline?.styleOverrides;return n&&(t=[t,n]),t},Re="mui-ecs",Xt=r.globalCss(Ke?({theme:e,enableColorScheme:o})=>et(e,o):({theme:e})=>(o=>{const i=et(o,!1),t=Array.isArray(i)?i[0]:i;return!o.vars&&t&&(t.html[`:root:has(${Re})`]={colorScheme:o.palette.mode}),o.colorSchemes&&Object.entries(o.colorSchemes).forEach(([n,a])=>{const s=o.getColorSchemeSelector(n);s.startsWith("@")?t[s]={[`:root:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}:t[s.replace(/\s*&/,"")]={[`&:not(:has(.${Re}))`]:{colorScheme:a.palette?.mode}}}),i})(e));function Kt(e){const o=r.useDefaultProps({props:e,name:"MuiCssBaseline"}),{children:i,enableColorScheme:t=!1}=o;return m.jsxs(de.Fragment,{children:[Ke&&m.jsx(Xt,{enableColorScheme:t}),!Ke&&!t&&m.jsx("span",{className:Re,style:{display:"none"}}),i]})}const $t=r.createSvgIcon(m.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"}),"CancelOutlined"),Gt=l.createContext(null),qe={didCatch:!1,error:null};class Zt extends l.Component{constructor(o){super(o),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=qe}static getDerivedStateFromError(o){return{didCatch:!0,error:o}}resetErrorBoundary(){const{error:o}=this.state;if(o!==null){for(var i,t,n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];(i=(t=this.props).onReset)===null||i===void 0||i.call(t,{args:a,reason:"imperative-api"}),this.setState(qe)}}componentDidCatch(o,i){var t,n;(t=(n=this.props).onError)===null||t===void 0||t.call(n,o,i)}componentDidUpdate(o,i){const{didCatch:t}=this.state,{resetKeys:n}=this.props;var a,s;t&&i.error!==null&&function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return u.length!==c.length||u.some((d,p)=>!Object.is(d,c[p]))}(o.resetKeys,n)&&((a=(s=this.props).onReset)===null||a===void 0||a.call(s,{next:n,prev:o.resetKeys,reason:"keys"}),this.setState(qe))}render(){const{children:o,fallbackRender:i,FallbackComponent:t,fallback:n}=this.props,{didCatch:a,error:s}=this.state;let u=o;if(a){const c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof i=="function")u=i(c);else if(t)u=l.createElement(t,c);else{if(n===void 0)throw s;u=n}}return l.createElement(Gt.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}}function ft(e){var o,i,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(i=ft(e[o]))&&(t&&(t+=" "),t+=i);else for(o in e)e[o]&&(t&&(t+=" "),t+=o);return t}function ie(){for(var e,o,i=0,t="";i<arguments.length;)(e=arguments[i++])&&(o=ft(e))&&(t&&(t+=" "),t+=o);return t}let Yt={data:""},Jt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Qt=/\/\*[^]*?\*\/| +/g,tt=/\n+/g,ue=(e,o)=>{let i="",t="",n="";for(let a in e){let s=e[a];a[0]=="@"?a[1]=="i"?i=a+" "+s+";":t+=a[1]=="f"?ue(s,a):a+"{"+ue(s,a[1]=="k"?"":o)+"}":typeof s=="object"?t+=ue(s,o?o.replace(/([^,])+/g,u=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,u):u?u+" "+c:c)):a):s!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=ue.p?ue.p(a,s):a+":"+s+";")}return i+(o&&n?o+"{"+n+"}":n)+t},oe={},ht=e=>{if(typeof e=="object"){let o="";for(let i in e)o+=i+ht(e[i]);return o}return e};function $e(e){let o=this||{},i=e.call?e(o.p):e;return((s,u,c,d,p)=>{let f=ht(s),x=oe[f]||(oe[f]=(h=>{let T=0,E=11;for(;T<h.length;)E=101*E+h.charCodeAt(T++)>>>0;return"go"+E})(f));if(!oe[x]){let h=f!==s?s:(T=>{let E,N,L=[{}];for(;E=Jt.exec(T.replace(Qt,""));)E[4]?L.shift():E[3]?(N=E[3].replace(tt," ").trim(),L.unshift(L[0][N]=L[0][N]||{})):L[0][E[1]]=E[2].replace(tt," ").trim();return L[0]})(s);oe[x]=ue(p?{["@keyframes "+x]:h}:h,c?"":"."+x)}let v=c&&oe.g?oe.g:null;return c&&(oe.g=oe[x]),y=oe[x],b=u,w=d,(k=v)?b.data=b.data.replace(k,y):b.data.indexOf(y)===-1&&(b.data=w?y+b.data:b.data+y),x;var y,b,w,k})(i.unshift?i.raw?(t=i,n=[].slice.call(arguments,1),a=o.p,t.reduce((s,u,c)=>{let d=n[c];if(d&&d.call){let p=d(a),f=p&&p.props&&p.props.className||/^go/.test(p)&&p;d=f?"."+f:p&&typeof p=="object"?p.props?"":ue(p,""):p===!1?"":p}return s+u+(d??"")},"")):i.reduce((s,u)=>Object.assign(s,u&&u.call?u(o.p):u),{}):i,(s=>typeof window=="object"?((s?s.querySelector("#_goober"):window._goober)||Object.assign((s||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:s||Yt)(o.target),o.g,o.o,o.k);var t,n,a}function gt(e,o,i){return o&&function(t,n){for(var a=0;a<n.length;a++){var s=n[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}(e.prototype,o),e}function O(){return O=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},O.apply(this,arguments)}function kt(e,o){e.prototype=Object.create(o.prototype),e.prototype.constructor=e,e.__proto__=o}function Ce(e,o){if(e==null)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)i=a[t],o.indexOf(i)>=0||(n[i]=e[i]);return n}function nt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}$e.bind({g:1}),$e.bind({k:1});var ot=function(){return""},bt=l.createContext({enqueueSnackbar:ot,closeSnackbar:ot}),ze="@media (max-width:599.95px)",Pe="@media (min-width:600px)",rt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ze=function(e){return""+rt(e.vertical)+rt(e.horizontal)},je=function(e){return!!e||e===0},Me="unmounted",pe="exited",me="entering",xe="entered",it="exiting",Ye=function(e){function o(t){var n;n=e.call(this,t)||this;var a,s=t.appear;return n.appearStatus=null,t.in?s?(a=pe,n.appearStatus=me):a=xe:a=t.unmountOnExit||t.mountOnEnter?Me:pe,n.state={status:a},n.nextCallback=null,n}kt(o,e),o.getDerivedStateFromProps=function(t,n){return t.in&&n.status===Me?{status:pe}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var n=null;if(t!==this.props){var a=this.state.status;this.props.in?a!==me&&a!==xe&&(n=me):a!==me&&a!==xe||(n=it)}this.updateStatus(!1,n)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t=this.props.timeout,n=t,a=t;return t!=null&&typeof t!="number"&&typeof t!="string"&&(a=t.exit,n=t.enter),{exit:a,enter:n}},i.updateStatus=function(t,n){t===void 0&&(t=!1),n!==null?(this.cancelNextCallback(),n===me?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===pe&&this.setState({status:Me})},i.performEnter=function(t){var n=this,a=this.props.enter,s=t,u=this.getTimeouts();t||a?(this.props.onEnter&&this.props.onEnter(this.node,s),this.safeSetState({status:me},function(){n.props.onEntering&&n.props.onEntering(n.node,s),n.onTransitionEnd(u.enter,function(){n.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})})})):this.safeSetState({status:xe},function(){n.props.onEntered&&n.props.onEntered(n.node,s)})},i.performExit=function(){var t=this,n=this.props.exit,a=this.getTimeouts();n?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:it},function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(a.exit,function(){t.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})})})):this.safeSetState({status:pe},function(){t.props.onExited&&t.props.onExited(t.node)})},i.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},i.setNextCallback=function(t){var n=this,a=!0;return this.nextCallback=function(){a&&(a=!1,n.nextCallback=null,t())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(t,n){this.setNextCallback(n);var a=t==null&&!this.props.addEndListener;this.node&&!a?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),t!=null&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===Me)return null;var n=this.props;return(0,n.children)(t,Ce(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},gt(o,[{key:"node",get:function(){var t,n=(t=this.props.nodeRef)===null||t===void 0?void 0:t.current;if(!n)throw new Error("notistack - Custom snackbar is not refForwarding");return n}}]),o}(l.Component);function fe(){}function at(e,o){typeof e=="function"?e(o):e&&(e.current=o)}function Ge(e,o){return l.useMemo(function(){return e==null&&o==null?null:function(i){at(e,i),at(o,i)}},[e,o])}function Ne(e){var o=e.timeout,i=e.style,t=i===void 0?{}:i,n=e.mode;return{duration:typeof o=="object"?o[n]||0:o,easing:t.transitionTimingFunction,delay:t.transitionDelay}}Ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fe,onEntering:fe,onEntered:fe,onExit:fe,onExiting:fe,onExited:fe};var xt=function(e){e.scrollTop=e.scrollTop},st=function(e){return Math.round(e)+"ms"};function he(e,o){e===void 0&&(e=["all"]);var i=o||{},t=i.duration,n=t===void 0?300:t,a=i.easing,s=a===void 0?"cubic-bezier(0.4, 0, 0.2, 1)":a,u=i.delay,c=u===void 0?0:u;return(Array.isArray(e)?e:[e]).map(function(d){var p=typeof n=="string"?n:st(n),f=typeof c=="string"?c:st(c);return d+" "+p+" "+s+" "+f}).join(",")}function yt(e){var o;return((o=e)&&o.ownerDocument||document).defaultView||window}function Te(e,o){if(o){var i=function(t,n){var a,s=n.getBoundingClientRect(),u=yt(n);if(n.fakeTransform)a=n.fakeTransform;else{var c=u.getComputedStyle(n);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}var d=0,p=0;if(a&&a!=="none"&&typeof a=="string"){var f=a.split("(")[1].split(")")[0].split(",");d=parseInt(f[4],10),p=parseInt(f[5],10)}switch(t){case"left":return"translateX("+(u.innerWidth+d-s.left)+"px)";case"right":return"translateX(-"+(s.left+s.width-d)+"px)";case"up":return"translateY("+(u.innerHeight+p-s.top)+"px)";default:return"translateY(-"+(s.top+s.height-p)+"px)"}}(e,o);i&&(o.style.webkitTransform=i,o.style.transform=i)}}var wt=l.forwardRef(function(e,o){var i=e.children,t=e.direction,n=t===void 0?"down":t,a=e.in,s=e.style,u=e.timeout,c=u===void 0?0:u,d=e.onEnter,p=e.onEntered,f=e.onExit,x=e.onExited,v=Ce(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),y=l.useRef(null),b=Ge(i.ref,y),w=Ge(b,o),k=l.useCallback(function(){y.current&&Te(n,y.current)},[n]);return l.useEffect(function(){if(!a&&n!=="down"&&n!=="right"){var h=function(E,N){var L;function H(){for(var U=this,P=arguments.length,z=new Array(P),$=0;$<P;$++)z[$]=arguments[$];clearTimeout(L),L=setTimeout(function(){E.apply(U,z)},N)}return N===void 0&&(N=166),H.clear=function(){clearTimeout(L)},H}(function(){y.current&&Te(n,y.current)}),T=yt(y.current);return T.addEventListener("resize",h),function(){h.clear(),T.removeEventListener("resize",h)}}},[n,a]),l.useEffect(function(){a||k()},[a,k]),l.createElement(Ye,Object.assign({appear:!0,nodeRef:y,onEnter:function(h,T){Te(n,h),xt(h),d&&d(h,T)},onEntered:p,onEntering:function(h){var T=Ne({timeout:c,mode:"enter",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.0, 0, 0.2, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),h.style.webkitTransform="none",h.style.transform="none"},onExit:function(h){var T=Ne({timeout:c,mode:"exit",style:O({},s,{transitionTimingFunction:s?.transitionTimingFunction||"cubic-bezier(0.4, 0, 0.6, 1)"})});h.style.webkitTransition=he("-webkit-transform",T),h.style.transition=he("transform",T),Te(n,h),f&&f(h)},onExited:function(h){h.style.webkitTransition="",h.style.transition="",x&&x(h)},in:a,timeout:c},v),function(h,T){return l.cloneElement(i,O({ref:w,style:O({visibility:h!=="exited"||a?void 0:"hidden"},s,{},i.props.style)},T))})});wt.displayName="Slide";var Le=function(e){return l.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ce={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
7
|
+
10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},null),warning:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
8
|
+
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
9
|
+
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},null),info:l.createElement(function(){return l.createElement(Le,null,l.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
10
|
+
0 22,12A10,10 0 0,0 12,2Z`}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:wt,transitionDuration:{enter:225,exit:195}};function Se(e){return Object.entries(e).reduce(function(o,i){var t,n=i[0],a=i[1];return O({},o,((t={})[n]=$e(a),t))},{})}var vt="notistack-CollapseWrapper",en=function(e){return"notistack-MuiContent-"+e},lt=Se({root:{height:0},entered:{height:"auto"}}),Be="0px",Et=l.forwardRef(function(e,o){var i=e.children,t=e.in,n=e.onExited,a=l.useRef(null),s=l.useRef(null),u=Ge(o,s),c=function(){return a.current?a.current.clientHeight:0};return l.createElement(Ye,{in:t,unmountOnExit:!0,onEnter:function(d){d.style.height=Be},onEntered:function(d){d.style.height="auto"},onEntering:function(d){var p=c(),f=Ne({timeout:175,mode:"enter"}),x=f.duration,v=f.easing;d.style.transitionDuration=typeof x=="string"?x:x+"ms",d.style.height=p+"px",d.style.transitionTimingFunction=v||""},onExit:function(d){d.style.height=c()+"px"},onExited:n,onExiting:function(d){xt(d);var p=Ne({timeout:175,mode:"exit"}),f=p.duration,x=p.easing;d.style.transitionDuration=typeof f=="string"?f:f+"ms",d.style.height=Be,d.style.transitionTimingFunction=x||""},nodeRef:s,timeout:175},function(d,p){return l.createElement("div",Object.assign({ref:u,className:ie(lt.root,d==="entered"&<.entered),style:O({pointerEvents:"all",overflow:"hidden",minHeight:Be,transition:he("height")},d==="entered"&&{overflow:"visible"},{},d==="exited"&&!t&&{visibility:"hidden"})},p),l.createElement("div",{ref:a,className:vt,style:{display:"flex",width:"100%"}},i))})});Et.displayName="Collapse";var ct={right:"left",left:"right",bottom:"up",top:"down"},tn=function(e){return"anchorOrigin"+Ze(e)},nn=function(){};function Ee(e,o){return e.reduce(function(i,t){return t==null?i:function(){for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];var u=[].concat(a);o&&u.indexOf(o)===-1&&u.push(o),i.apply(this,u),t.apply(this,u)}},nn)}var on=typeof window<"u"?l.useLayoutEffect:l.useEffect;function ut(e){var o=l.useRef(e);return on(function(){o.current=e}),l.useCallback(function(){return o.current.apply(void 0,arguments)},[])}var Ue,Ct=l.forwardRef(function(e,o){var i=e.children,t=e.className,n=e.autoHideDuration,a=e.disableWindowBlurListener,s=a!==void 0&&a,u=e.onClose,c=e.id,d=e.open,p=e.SnackbarProps,f=p===void 0?{}:p,x=l.useRef(),v=ut(function(){u&&u.apply(void 0,arguments)}),y=ut(function(k){u&&k!=null&&(x.current&&clearTimeout(x.current),x.current=setTimeout(function(){v(null,"timeout",c)},k))});l.useEffect(function(){return d&&y(n),function(){x.current&&clearTimeout(x.current)}},[d,n,y]);var b=function(){x.current&&clearTimeout(x.current)},w=l.useCallback(function(){n!=null&&y(.5*n)},[n,y]);return l.useEffect(function(){if(!s&&d)return window.addEventListener("focus",w),window.addEventListener("blur",b),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",b)}},[s,w,d]),l.createElement("div",Object.assign({ref:o},f,{className:ie("notistack-Snackbar",t),onMouseEnter:function(k){f.onMouseEnter&&f.onMouseEnter(k),b()},onMouseLeave:function(k){f.onMouseLeave&&f.onMouseLeave(k),w()}}),i)});Ct.displayName="Snackbar";var rn=Se({root:(Ue={display:"flex",flexWrap:"wrap",flexGrow:1},Ue[Pe]={flexGrow:"initial",minWidth:"288px"},Ue)}),Je=l.forwardRef(function(e,o){var i=e.className,t=Ce(e,["className"]);return l.createElement("div",Object.assign({ref:o,className:ie(rn.root,i)},t))});Je.displayName="SnackbarContent";var ye=Se({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),dt="notistack-snackbar",St=l.forwardRef(function(e,o){var i=e.id,t=e.message,n=e.action,a=e.iconVariant,s=e.variant,u=e.hideIconVariant,c=e.style,d=e.className,p=a[s],f=n;return typeof f=="function"&&(f=f(i)),l.createElement(Je,{ref:o,role:"alert","aria-describedby":dt,style:c,className:ie("notistack-MuiContent",en(s),ye.root,ye[s],d,!u&&p&&ye.lessPadding)},l.createElement("div",{id:dt,className:ye.message},u?null:p,t),f&&l.createElement("div",{className:ye.action},f))});St.displayName="MaterialDesignContent";var we,_e,De,Oe,Ve,an=l.memo(St),sn=Se({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),ln=function(e){var o=l.useRef(),i=l.useState(!0),t=i[0],n=i[1],a=Ee([e.snack.onClose,e.onClose]),s=l.useCallback(function(){o.current=setTimeout(function(){n(function(U){return!U})},125)},[]);l.useEffect(function(){return function(){o.current&&clearTimeout(o.current)}},[]);var u,c=e.snack,d=e.classes,p=e.Component,f=p===void 0?an:p,x=l.useMemo(function(){return function(U){U===void 0&&(U={});var P={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(U).filter(function(z){return!P[z]}).reduce(function(z,$){var Y;return O({},z,((Y={})[$]=U[$],Y))},{})}(d)},[d]),v=c.open,y=c.SnackbarProps,b=c.TransitionComponent,w=c.TransitionProps,k=c.transitionDuration,h=c.disableWindowBlurListener,T=c.content,E=Ce(c,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),N=O({direction:(u=E.anchorOrigin,u.horizontal!=="center"?ct[u.horizontal]:ct[u.vertical]),timeout:k},w),L=T;typeof L=="function"&&(L=L(E.id,E.message));var H=["onEnter","onEntered","onExit","onExited"].reduce(function(U,P){var z;return O({},U,((z={})[P]=Ee([e.snack[P],e[P]],E.id),z))},{});return l.createElement(Et,{in:t,onExited:H.onExited},l.createElement(Ct,{open:v,id:E.id,disableWindowBlurListener:h,autoHideDuration:E.autoHideDuration,className:ie(sn.wrappedRoot,x.root,x[tn(E.anchorOrigin)]),SnackbarProps:y,onClose:a},l.createElement(b,Object.assign({},N,{appear:!0,in:v,onExit:H.onExit,onExited:s,onEnter:H.onEnter,onEntered:Ee([H.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],E.id)}),L||l.createElement(f,Object.assign({},E)))))},ve=20,Xe=6,cn=2,pt="."+vt,We=Se({root:(we={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:he(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},we[pt]={padding:Xe+"px 0px",transition:"padding 300ms ease 0ms"},we.maxWidth="calc(100% - "+2*ve+"px)",we[ze]={width:"100%",maxWidth:"calc(100% - 32px)"},we),rootDense:(_e={},_e[pt]={padding:cn+"px 0px"},_e),top:{top:ve-Xe+"px",flexDirection:"column"},bottom:{bottom:ve-Xe+"px",flexDirection:"column-reverse"},left:(De={left:ve+"px"},De[Pe]={alignItems:"flex-start"},De[ze]={left:"16px"},De),right:(Oe={right:ve+"px"},Oe[Pe]={alignItems:"flex-end"},Oe[ze]={right:"16px"},Oe),center:(Ve={left:"50%",transform:"translateX(-50%)"},Ve[Pe]={alignItems:"center"},Ve)}),un=l.memo(function(e){var o=e.classes,i=o===void 0?{}:o,t=e.anchorOrigin,n=e.dense,a=e.children,s=ie("notistack-SnackbarContainer",We[t.vertical],We[t.horizontal],We.root,i.containerRoot,i["containerAnchorOrigin"+Ze(t)],n&&We.rootDense);return l.createElement("div",{className:s},a)}),mt=function(e){return!(typeof e=="string"||l.isValidElement(e))},dn=function(e){function o(i){var t;return(t=e.call(this,i)||this).enqueueSnackbar=function(n,a){if(a===void 0&&(a={}),n==null)throw new Error("enqueueSnackbar called with invalid argument");var s=mt(n)?n:a,u=mt(n)?n.message:n,c=s.key,d=s.preventDuplicate,p=Ce(s,["key","preventDuplicate"]),f=je(c),x=f?c:new Date().getTime()+Math.random(),v=function(b,w){return function(k,h){return h===void 0&&(h=!1),h?O({},ce[k],{},w[k],{},b[k]):k==="autoHideDuration"?(L=b.autoHideDuration,H=w.autoHideDuration,(U=function(P){return typeof P=="number"||P===null})(L)?L:U(H)?H:ce.autoHideDuration):k==="transitionDuration"?(T=b.transitionDuration,E=w.transitionDuration,(N=function(P,z){return z.some(function($){return typeof P===$})})(T,["string","number"])?T:N(T,["object"])?O({},ce.transitionDuration,{},N(E,["object"])&&E,{},T):N(E,["string","number"])?E:N(E,["object"])?O({},ce.transitionDuration,{},E):ce.transitionDuration):b[k]||w[k]||ce[k];var T,E,N,L,H,U}}(p,t.props),y=O({id:x},p,{message:u,open:!0,entered:!1,requestClose:!1,persist:v("persist"),action:v("action"),content:v("content"),variant:v("variant"),anchorOrigin:v("anchorOrigin"),disableWindowBlurListener:v("disableWindowBlurListener"),autoHideDuration:v("autoHideDuration"),hideIconVariant:v("hideIconVariant"),TransitionComponent:v("TransitionComponent"),transitionDuration:v("transitionDuration"),TransitionProps:v("TransitionProps",!0),iconVariant:v("iconVariant",!0),style:v("style",!0),SnackbarProps:v("SnackbarProps",!0),className:ie(t.props.className,p.className)});return y.persist&&(y.autoHideDuration=void 0),t.setState(function(b){if(d===void 0&&t.props.preventDuplicate||d){var w=function(T){return f?T.id===x:T.message===u},k=b.queue.findIndex(w)>-1,h=b.snacks.findIndex(w)>-1;if(k||h)return b}return t.handleDisplaySnack(O({},b,{queue:[].concat(b.queue,[y])}))}),x},t.handleDisplaySnack=function(n){return n.snacks.length>=t.maxSnack?t.handleDismissOldest(n):t.processQueue(n)},t.processQueue=function(n){var a=n.queue,s=n.snacks;return a.length>0?O({},n,{snacks:[].concat(s,[a[0]]),queue:a.slice(1,a.length)}):n},t.handleDismissOldest=function(n){if(n.snacks.some(function(c){return!c.open||c.requestClose}))return n;var a=!1,s=!1;n.snacks.reduce(function(c,d){return c+(d.open&&d.persist?1:0)},0)===t.maxSnack&&(s=!0);var u=n.snacks.map(function(c){return a||c.persist&&!s?O({},c):(a=!0,c.entered?(c.onClose&&c.onClose(null,"maxsnack",c.id),t.props.onClose&&t.props.onClose(null,"maxsnack",c.id),O({},c,{open:!1})):O({},c,{requestClose:!0}))});return O({},n,{snacks:u})},t.handleEnteredSnack=function(n,a,s){if(!je(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");t.setState(function(u){return{snacks:u.snacks.map(function(c){return c.id===s?O({},c,{entered:!0}):O({},c)})}})},t.handleCloseSnack=function(n,a,s){t.props.onClose&&t.props.onClose(n,a,s);var u=s===void 0;t.setState(function(c){var d=c.snacks,p=c.queue;return{snacks:d.map(function(f){return u||f.id===s?f.entered?O({},f,{open:!1}):O({},f,{requestClose:!0}):O({},f)}),queue:p.filter(function(f){return f.id!==s})}})},t.closeSnackbar=function(n){var a=t.state.snacks.find(function(s){return s.id===n});je(n)&&a&&a.onClose&&a.onClose(null,"instructed",n),t.handleCloseSnack(null,"instructed",n)},t.handleExitedSnack=function(n,a){if(!je(a))throw new Error("handleExitedSnack Cannot be called with undefined key");t.setState(function(s){var u=t.processQueue(O({},s,{snacks:s.snacks.filter(function(c){return c.id!==a})}));return u.queue.length===0?u:t.handleDismissOldest(u)})},t.enqueueSnackbar,t.closeSnackbar,t.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:t.enqueueSnackbar.bind(nt(t)),closeSnackbar:t.closeSnackbar.bind(nt(t))}},t}return kt(o,e),o.prototype.render=function(){var i=this,t=this.state.contextValue,n=this.props,a=n.domRoot,s=n.children,u=n.dense,c=u!==void 0&&u,d=n.Components,p=d===void 0?{}:d,f=n.classes,x=this.state.snacks.reduce(function(y,b){var w,k=Ze(b.anchorOrigin),h=y[k]||[];return O({},y,((w={})[k]=[].concat(h,[b]),w))},{}),v=Object.keys(x).map(function(y){var b=x[y],w=b[0];return l.createElement(un,{key:y,dense:c,anchorOrigin:w.anchorOrigin,classes:f},b.map(function(k){return l.createElement(ln,{key:k.id,snack:k,classes:f,Component:p[k.variant],onClose:i.handleCloseSnack,onEnter:i.props.onEnter,onExit:i.props.onExit,onExited:Ee([i.handleExitedSnack,i.props.onExited],k.id),onEntered:Ee([i.handleEnteredSnack,i.props.onEntered],k.id)})}))});return l.createElement(bt.Provider,{value:t},s,a?Wt.createPortal(v,a):v)},gt(o,[{key:"maxSnack",get:function(){return this.props.maxSnack||ce.maxSnack}}]),o}(l.Component),jt=function(){return l.useContext(bt)};const re={card:"_card_r6a8n_13",actionRoot:"_actionRoot_r6a8n_21",icons:"_icons_r6a8n_31",expand:"_expand_r6a8n_43",expandOpen:"_expandOpen_r6a8n_57",stackTraceContainer:"_stackTraceContainer_r6a8n_65"},Mt=l.forwardRef((e,o)=>{const{id:i,message:t,iconVariant:n,error:a,hideIconVariant:s,...u}=e,{closeSnackbar:c}=jt(),d=r.Js(),[p,f]=l.useState(!1),x=l.useCallback(()=>{f(b=>!b)},[]),v=l.useCallback(()=>{c(i)},[i,c]),y=a?.message||String(t);return m.jsx(Je,{ref:o,className:r.Go(re.root,"error-snackbar"),children:m.jsxs(qt,{className:re.card,style:{backgroundColor:d.palette.error.dark,border:`1px solid ${d.palette.error.dark}`},children:[m.jsxs(Ut,{className:re.actionRoot,children:[s?null:n?.error,m.jsx(r.Typography,{variant:"body2",component:"div",className:re.typography,style:{color:d.palette.text.primary},children:y}),m.jsx("div",{style:{flex:"1 1 auto"}}),m.jsxs("div",{className:re.icons,children:[a?m.jsx(r.IconButton,{"aria-label":"Show more",size:"small",className:r.Go(re.expand,{[re.expandOpen]:p}),style:{color:d.palette.action.active},onClick:x,children:m.jsx(r.Xn,{})}):null,m.jsx(r.IconButton,{size:"small",className:re.expand,style:{color:d.palette.action.active},onClick:v,children:m.jsx(r.vo,{fontSize:"small"})})]})]}),a?m.jsx(Fe,{in:p,timeout:"auto",unmountOnExit:!0,children:m.jsx("div",{className:re.stackTraceContainer,style:{backgroundColor:d.palette.error.light,borderTop:`1px solid ${d.palette.error.main}`},children:m.jsx(r.ok,{error:a,hideLineNumbers:!0})})}):null]})})});Mt.displayName="ToastError";const Tt=l.memo(l.forwardRef((e,o)=>{const{commands:i,commandHook:t,scope:n="workbook",disabled:a=!1,...s}=e,u=r.Te(d=>{const p={variant:r.pn.Menuitem,parentFloat:d.floatReference,commandHook:t,scope:n,disabled:a},f=m.jsxs(m.Fragment,{children:[m.jsx(r.qe,{...p,command:i.getCommand("newWorkbook"),icon:r.Le(m.jsx(r.qK,{}))}),m.jsx(r.en,{orientation:"horizontal"}),m.jsx(r.qe,{...p,command:i.getCommand("openWorkbook"),icon:r.Le(m.jsx(r.KK,{}))}),m.jsx(r.go,{...p,commands:i,quickCommand:"saveWorkbook",icon:r.Le(m.jsx(r.XK,{})),createPopupPanel:x=>{const v={...p,parentFloat:x.floatReference,scope:"saveWorkbook"},y=[];return r.xX.getWriteFormats().forEach(b=>{if(b.isDefault)return;let w=null;b.key==="CSV"?w=r.Le(m.jsx(r.YK,{})):b.key==="Excel"&&(w=r.Le(m.jsx(r.ZK,{})));const k=i.getCommand(`saveWorkbookAs${b.key}`);k?y.push(l.createElement(r.qe,{...v,key:b.key,command:k,icon:w})):console.warn(`Unable to resolve command: 'saveWorkbookAs${b.key}'`)}),r.eo({...x,children:y,onClick:()=>{x.closeFloatAll()}})}})]});return r.eo({...d,children:f,onClick:x=>{x.isDefaultPrevented||d.closeFloatAll()}})},[a,i,t,n]),c="File";return m.jsx(r.go,{commands:i,disabled:a,commandHook:t,scope:n,label:c,tooltip:"Options for saving and loading the workbook.",sx:{paddingBottom:"0px","& button":{paddingTop:"0px",paddingBottom:"0px",height:d=>`calc(1.25rem + ${d.spacing(2)}px)`}},...s,createPopupPanel:u,icon:m.jsx(r.lu,{className:"label",icon:null,label:c})})}));Tt.displayName="StandaloneFileCommandButton";const pn=m.jsx(r.ii,{label:"SheetXL",description:"Visit me at sheetxl.com.",children:m.jsx(r.Box,{sx:{width:"24px",height:"24px",marginBottom:"4px",marginLeft:"6px"},children:m.jsx(r.gX,{onClick:()=>{window?.open("https://www.sheetxl.com","_blank")},style:{width:"24px",height:"24px",cursor:"pointer"}})})}),Lt=l.memo(l.forwardRef((e,o)=>{const{commands:i,workbook:t,logo:n=pn,mainElement:a,showFileMenu:s=!0,showAppearanceMenu:u=!0,...c}=e,{reference:d}=r.El(),[p,{width:f}]=r.og(),x=f<530,v=s?m.jsx(Tt,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,y=u?m.jsx(r.yX,{commands:i,commandHook:{beforeExecute(){d?.closeAll()},onError(k,h,T){}}}):null,b=l.useMemo(()=>({paddingLeft:k=>k.spacing(1),paddingRight:k=>k.spacing(1)}),[]),w=l.useRef(null);return m.jsx(r.Box,{ref:r.z6([w,p,o]),...c,children:r.iK({commands:i,renderCompact:x,workbook:t,selectWrapper:k=>m.jsxs(r.Box,{sx:{display:"flex",flex:"1",flexDirection:"row",alignItems:"stretch",gap:h=>h.spacing(1),paddingLeft:h=>h.spacing(1),paddingRight:h=>h.spacing(1)},children:[m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",flex:"1 1 100%",gap:h=>h.spacing(.5)},children:[n,m.jsxs(r.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:h=>h.spacing(.25)},children:[v,k]})]}),m.jsx(r.Box,{sx:{display:"flex",flexDirection:"row",flex:"1 1 300%",overflow:"hidden",alignItems:"center",justifyContent:"center"},children:a}),m.jsx(r.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"end",flex:x&&!y?"0 0 auto":"1 1 100%"},children:y})]}),selectProps:b,toolbarsProps:{Home:{sx:{}}}})})}));Lt.displayName="StandaloneWorkbookToolbar";const Dt=l.memo(l.forwardRef((e,o)=>{const{workbook:i,setWorkbook:t,refWorkbookTitle:n,titleWorkbook:a,setWorkbookTitle:s,titlePlaceHolder:u,children:c,undoManager:d,commands:p,importExportDisabled:f,themeModeOptions:x}=e,v=jt(),y=v?v.enqueueSnackbar:()=>{},b=v?v.closeSnackbar:()=>{},[w,k]=l.useState({isMounted:!1,label:null,starting:new Map,running:new Map}),h=l.useCallback(()=>{k(F=>({...F,isMounted:!0}))},[]),T=l.useCallback(()=>{k(F=>({...F,isMounted:!1}))},[]),E=r.aX(),N=r.cX(),L=r.dX(),H=l.useRef(new Set),U=l.useMemo(()=>{const F=(S,M)=>{if(M?.onceKey){if(H.current.has(M.onceKey))return;const D=new Set(H.current);D.add(M.onceKey),H.current=D}const I={variant:M?.type??r._l.Info,anchorOrigin:{vertical:"top",horizontal:"center"},preventDuplicate:M?.preventDuplicate,persist:M?.persist??M?.type===r._l.Error,action:D=>m.jsx(r.IconButton,{onClick:()=>b(D),children:m.jsx($t,{})})};M?.enqueueProps&&Object.assign(I,M.enqueueProps),S||console.log("message is 'null'",M),y(S??"Alert",I)};return{showMessage:F,showBusy:(S,M)=>{let I=null;const D=new Promise(_=>{I=_});return k(_=>{const B=new Map(_.starting);return B.set(D,I),{..._,label:S,starting:B}}),D},showWindow:(S,M,I)=>{const D={...M,onKeyDown:_=>{p?.dispatchToFocusedCommand(_),_.isDefaultPrevented()||_.isPropagationStopped()||M?.onKeyDown?.(_)}};return E(S,{sort:()=>Promise.resolve().then(()=>require("./Dn6LoJinxzxUiMDg.cjs")),numberFormat:()=>Promise.resolve().then(()=>require("./BKGew2NYE-aa2w6y.cjs")),hyperlink:()=>Promise.resolve().then(()=>require("./ZWsbkG6eb6seSRXv.cjs")),comments:()=>Promise.resolve().then(()=>require("./B5XBWUdLMqS2HDaF.cjs")),find:()=>Promise.resolve().then(()=>require("./BHCPp9yjpWH3JG34.cjs")),tableDetails:()=>Promise.resolve().then(()=>require("./DmhCjj0KeysXxIzX.cjs")),tableNew:()=>Promise.resolve().then(()=>require("./Bx6ZuxKkOWgx7s9X.cjs")),namedDetails:()=>Promise.resolve().then(()=>require("./CV3O2HrGgeVyZSTI.cjs"))}[S],D,I)},showOptions:N,showInputOptions:L,showError:S=>{let M,I=r._l.Error,D="Unknown Error";typeof S=="string"?D=S:S instanceof Error&&(M=S,S.message&&(D=S.message)),S instanceof r.EA&&(I=r._l.Info),F(D,{type:I,enqueueProps:{error:M}})}}},[]),P=l.useCallback(()=>{},[]),z=(F=>{const{workbook:S,setWorkbook:M,importExportDisabled:I,workbookTitle:D="export",setWorkbookTitle:_,notifier:B,requestWorkbookTitle:J,themeModeOptions:q,undoManager:j,commands:W,onExecute:V}=F,Q=r.Te(q?.onForceModeChange,[q?.onForceModeChange]),ae=r.Te(q?.onForceLightGridChange,[q?.onForceLightGridChange]),ne=r.Te(q?.onForceLightImagesChange,[q?.onForceLightImagesChange]),Ae=r.Te(async(R=null,Z=null)=>{const g=[];let C,X=null,ee=null;if(typeof R=="string"?ee=R:X=R,C=X?R:await r.un.openFileDialog(ee??r.xX.getAllReadFormatTypeAsString().join(",")),!C)return null;const se={source:C,constructorOptions:Z,onWarning:He=>{g.push(He)}},be=await r.xX.read(se,B);return g.length>0&&(B?.showMessage?.("Some elements were not able to be imported. See console for details."),console.warn(`Import warnings:
|
|
11
|
+
`+g.join(`
|
|
12
|
+
`))),be},[V,B,S]),ge=r.Te(async(R,Z,g)=>{if(!Z&&J){const C=await J("Enter Workbook name to "+(g.isDefault?"Save.":`Export as ${g.description}.`));return C!==null&&r.xX.writeFile(C,R,{formatType:g.key})}return r.xX.writeFile(Z,R,{formatType:g.key})},[B,S,J]),K=l.useCallback(()=>({contains:R=>!0,focus(){}}),[]),le=l.useMemo(()=>{const R=[];I||(r.xX.getWriteFormats().forEach(g=>{const C=g.isDefault,X={label:C?"Save Workbook":`Save Workbook as ${g.description}`,scopedLabels:{workbook:"Save",saveWorkbook:`as ${g.description}`},tags:g.tags,description:`Save the workbook to the desktop${C?"":` as ${g.description}`}.`};C&&(X.shortcut={key:"S",modifiers:[r.He.Ctrl]},R.push(new r.Ue("saveWorkbookAs",K,{label:"Save Workbook As…",scopedLabels:{workbook:"Save as…",saveWorkbook:"as…"},shortcut:[{key:"S",modifiers:[r.He.Shift,r.He.Ctrl]},{key:"F12"}],description:"Save the workbook to the desktop with the provided name."},()=>{ge(S,null,g).catch(se=>{B?.showError?.(se)})})));const ee=C?"saveWorkbook":`saveWorkbookAs${g.key}`;R.push(new r.Ue(ee,K,X,se=>{ge(S,se??D,g).catch(be=>{B?.showError?.(be)})}))}),R.push(new r.Ue("openWorkbook",K,{label:"Open Workbook…",scopedLabels:{workbook:"Open…"},description:"Open a workbook from the desktop.",shortcut:{key:"O",modifiers:[r.He.Ctrl]}},async(g=null)=>{const C={date1904:S.isDate1904(),...S.options};try{const X=await Ae(g,C);if(!X)return;const ee=X.title,se=X.workbook,be=se.getSelectedSheet();if(X.formatType.mimeType==="text/csv"){const He=S.findValidSheetName(ee);await S.doBatch(async()=>{const Qe=be.getUsedRange();Qe?await S.getSheets().add({name:He,autoSelect:!0}).getRange({colStart:0,rowStart:0,colEnd:0,rowEnd:0}).copyFrom(Qe):B?.showMessage("The file appears to be blank.")},`Import CSV '${ee}'`)}else S?.close(),_?.(ee),M(se)}catch(X){B?.showError?.(X)}})),R.push(new r.Ue("openWorkbookFromUrl",K,{label:"Open Workbook From Web",scopedLabels:{insert:"From Web",workbook:"From Web…"},description:"Open a workbook from the web."},async function(g){if(!g){const C=await B?.showInputOptions?.({title:"Open Workbook from the Web",description:"Enter the web address for the workbook to open.",inputLabel:"Address",initialValue:"https://www.sheetxl.com/examples/features-checklist.xlsx",inputProps:{style:{minWidth:"440px"}},options:["Open"]});if(C.option!=="Open")return;g=C.input}g&&console.log("openWorkbookFromUrl",g)})));let Z=[];return q&&(Z=[new r.Ue("themeMode",K,{label:"Light/Dark Mode",scopedLabels:{appearance:"Light/Dark Mode"},description:"Toggle the application styling between light and dark mode."}),new r.Ue("defaultThemeMode",K,{label:"Use System Light/Dark Mode",scopedLabels:{appearance:"Use System Default"},description:"Use the system settings to determine styling for light and dark mode."}),new r.Ue("forceLightGrid",K,{label:"Force Light Grid",description:"Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)."}),new r.Ue("forceLightImages",K,{label:"Force Light Images",description:"Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode."})]),[...R,...Z,new r.Vt("help",K,{label:"Show Help",description:"Provide Help.",shortcut:{key:"F1"}},()=>{}),new r.Vt("showKeyboardShortcuts",K,{label:"Keyboard Shortcuts",description:"Show keyboard shortcuts.",shortcut:{key:"/",modifiers:[r.He.Ctrl]}},()=>{}),new r.Ue("gotoUrlGithub",K,{label:"Github",description:"Download examples, explore source code, and leave a star."},()=>{window?.open("https://github.com/sheetxl/sheetxl")}),new r.Ue("gotoUrlDiscord",K,{label:"Discord",description:"Join our community on discord."},()=>{window?.open("https://discord.gg/NTKdwUgK9p")}),new r.Ue("gotoUrlDocumentation",K,{label:"Documentation",description:"Read the documentation."},()=>{window?.open("https://www.sheetxl.com/docs")}),new r.Ue("gotoUrlIssue",K,{label:"Create Issue",description:"Create an issue to identify a bug or a feature request."},()=>{window?.open("https://github.com/sheetxl/sheetxl/issues")})]},[S,D,B,I,q,W,j]),G=l.useMemo(()=>{let R=null;return R=W?W.createChildGroup(K,"standaloneWorkbook",!1):new r.Au(K,"standaloneWorkbook"),R.addCommands(le,!0),R},[W,le]);r.GK({manager:j,commands:G,notifier:B});const{themeMode:ke}=r.vX();l.useEffect(()=>{if(!q||!G)return;const R=q.forceMode==="dark"||!q.forceMode&&ke==="dark";G.getCommand("themeMode").update({state:q.forceMode??null,label:R?"Dark Mode":"Light Mode",scopedLabels:{appearance:R?"Dark Mode":"Light Mode"}}).updateCallback(()=>{Q(R?r.bX.Light:r.bX.Dark)}),G.getCommand("defaultThemeMode").update({state:!q.forceMode}).updateCallback(()=>{Q(null)}),G.getCommand("forceLightGrid").update({state:q.forceLightGrid}).updateCallback(()=>{ae(!q.forceLightGrid)}),G.getCommand("forceLightImages").update({state:q.forceLightImages}).updateCallback(()=>{ne(!q.forceLightImages)})},[ke,q,le]);const{showModal:Ie}=r.u6();return l.useEffect(()=>{const R=()=>new Promise((Z,g)=>{const C=l.lazy(()=>Promise.resolve().then(()=>require("./BPbd8bf2gOPV7ZtV.cjs"))),X=Ie(C,{title:"Shortcut Keys Reference",commands:G,onDone:()=>{X.hide()},TransitionProps:{onExited:()=>{Z(!0)}}})});G.getCommand("showKeyboardShortcuts").updateCallback(()=>R()),G.getCommand("help").updateCallback(()=>R())},[le,G]),G})({workbook:i,setWorkbook:t,importExportDisabled:f,workbookTitle:a,setWorkbookTitle:s,commands:p,requestWorkbookTitle:F=>new Promise(S=>{n.current?n.current.requestWorkbookTitle((M,I)=>{S(M)},{selectAll:!0,requestReason:F}):S(u)}),themeModeOptions:x,undoManager:d,notifier:U,onExecute:P});l.useEffect(()=>{w.starting.size<=0||!w.isMounted||k(F=>{const S=new Map(F.running);return F.starting.forEach((M,I)=>{const D=()=>{k(_=>{const B=new Map(_.running);return B.delete(I),{..._,running:B}})};S.set(I,D),M(D)}),{...F,starting:new Map,running:S}})},[w]);const[$,Y]=l.useState(null);l.useEffect(()=>{w.starting.size!==0||w.running.size!==0?Y(m.jsx(r.Fu,{icon:m.jsx(r.iX,{sx:{transform:"scale(0.7)",marginLeft:"-6px"}}),panel:!0,label:w.label,onMount:h,onUnmount:T,sx:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",zIndex:"9999"}})):Y(null)},[w.starting,w.running]);const A=l.useMemo(()=>m.jsx(r.wX,{commands:z,disableHover:!0,sx:{padding:"0"},buttonProps:{sx:{maxHeight:"22px"}}}),[z]),te={notifier:U,commands:z};return i&&(te.statusBarProps={childrenEnd:A}),m.jsxs(m.Fragment,{children:[$,c?l.cloneElement(c,te):null]})}));Dt.displayName="SnackbarAndCommandsWrapper";const Ot=l.memo(l.forwardRef((e,o)=>{const{className:i,sx:t,style:n,onElementLoad:a,onError:s,undoManager:u,errorPanel:c=r.JV,onKeyDown:d,workbook:p,createWorkbookOptions:f,onWorkbookChange:x,logo:v,importExportDisabled:y=!1,themeModeOptions:b,autoFocus:w=!1,commands:k,title:h,onTitleChange:T,titleProps:E,...N}=e,L=l.useRef(null),H=r.Te(x,[x]),U=r.Te(T??E?.onTitleChange,[T??E?.onTitleChange]),P=E?.placeHolder??"Untitled",z=b?.forceMode,{themeMode:$,source:Y}=r.vX({mode:z}),A=l.useMemo(()=>({...b,light:r.sX(!1,r.re.deepMerge(b?.theme??{},b?.light??{})),dark:r.sX(!0,r.re.deepMerge(b?.theme??{},b?.dark??{}))}),[b]),te=$===r.bX.Dark,[F,S]=l.useState(null);l.useEffect(()=>{S(u??new r.WK)},[u]);const[M,I]=l.useState(null),[D,_]=l.useState(null),B=r.bR();l.useLayoutEffect(()=>{if(!p||Object.keys(p).length===0&&!r.re.isPromiseLike(p)){const g={theme:B.getDefaultTheme(),...f};_(new r.vL(g))}else _(p)},[p]),l.useLayoutEffect(()=>{if(D){if(D instanceof r.vL)return I({workbook:D}),void(p!==D&&H?.(D));(async()=>{try{let g,C=await Promise.resolve(D);C&&C.source&&(C=await r.xX.read(C)),C.workbook?(V(C.title),g=C.workbook):g=C,H?.(g),I({workbook:g})}catch(g){H?.(null),I({error:g})}})()}},[D]);const[J,q]=l.useState(null);l.useEffect(()=>{if(!F||!M)return;F.clear();const g=M?.workbook?.getTransactions();return g?g.addListener({onCommitEnd:C=>{C.getDescription()?F.addUndoOperation({description:C.getDescription(),undo:()=>(g.revert(C.getId()),J.source?.focus(),()=>{g.restore(C.getId()),J.source?.focus()})}):console.warn("commit has no description",C)}}):void 0},[F,M,J]);const j=r.Te(g=>{g?F.setRepeatableOperation({description:g.label(),repeat:async()=>g.execute()}):F.setRepeatableOperation(null)},[F]),[W,V]=l.useState(h??E?.title??"");l.useEffect(()=>{V(h??E?.title??"")},[h??E?.title]),l.useEffect(()=>{U?.(W)},[W]);const[Q,ae]=l.useState(null),ne=l.useMemo(()=>{const g=()=>({contains:C=>!0,focus(){}});return k?k.createChildGroup(g,"application",!1):new r.Au(g,"application")},[k]),Ae=r.Te(g=>{ae(g.source.getViewportElement()),q(g),ne.activate("sheet"),a?.(g)},[ne]);l.useEffect(()=>{J&&w&&J.source?.focus(typeof w=="object"?w:void 0)},[J]);const ge=l.useRef(null),K=l.useCallback(g=>{let C=null;return E?.hidden||(C=m.jsx(r.RK,{...E,style:{maxWidth:"100%",...E?.style},workbook:L.current,ref:ge,title:W,placeHolder:P,onTitleChange:X=>{V(X)}})),m.jsx(Lt,{...g,logo:v,mainElement:C,showFileMenu:!y,showAppearanceMenu:!!(A?.onForceLightGridChange||A?.onForceLightImagesChange||A?.onForceModeChange)})},[v,W,E,A,y,ne]);l.useEffect(()=>{const g=C=>C.preventDefault();return L.current?.addEventListener("wheel",g,{passive:!1}),()=>{L.current?.removeEventListener("wheel",g)}},[]);const le=l.useMemo(()=>m.jsx(r.Fu,{transparentBackground:!0,sx:t,style:n}),[t,n]),G=l.useCallback(({error:g})=>(s?.(g),m.jsx(c,{sx:t,style:n,error:g??"Unable to display empty workbook."})),[t,n,s]),ke=l.useMemo(()=>({...t,"& .SnackbarContainer-root":{position:"absolute !important"},"& .notistack-Snackbar":{minWidth:"unset"},"& .notistack-MuiContent *":{fontFamily:g=>g.typography.fontFamily},"& #notistack-snackbar":{maxWidth:"560px",whiteSpace:"pre-wrap"},"*":{userSelect:"none"}}),[t]),Ie=r.z6([L,o]),R=l.useMemo(()=>{if(!M)return le;if(M.error||!M.workbook)return G({error:M.error});let g=null,C=null,X=!1;return A&&(g=te?A.dark:A.light,C=te&&!A.forceLightGrid?A.dark:A.light,X=A.forceLightImages),m.jsx(r.kK,{sx:ke,style:n,tabIndex:0,autoFocus:!0,workbook:M.workbook,ref:Ie,renderToolbar:K,onElementLoad:Ae,onRepeatCommandChange:j,onKeyDown:ee=>{d?.(ee)},gridTheme:C,headersTheme:g,forceLightImages:X,className:r.Go(i,"sheetxl-workbook"),onContextMenu:ee=>ee.preventDefault(),...N},"WorkbookElement")},[M,W,F,le,A,N,K,ke]);let Z=m.jsx(Zt,{fallbackRender:G,children:m.jsx(dn,{maxSnack:3,domRoot:Q,anchorOrigin:{vertical:"bottom",horizontal:"right"},autoHideDuration:3500,onClose:(g,C,X)=>{L.current?.focus()},Components:{error:Mt},iconVariant:{success:m.jsx(r.SvgIcon,{style:{marginRight:"8px"},children:m.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})}),error:m.jsx(r.rX,{style:{marginRight:"8px"}})},children:m.jsx(r.lX,{children:m.jsx(Dt,{workbook:M?.workbook,setWorkbook:_,importExportDisabled:y,titlePlaceHolder:P,titleWorkbook:W,setWorkbookTitle:V,refWorkbookTitle:ge,commands:ne,undoManager:F,themeModeOptions:A,children:R})})})});return A&&(Z=m.jsxs(r.Nj,{theme:te?A.dark:A.light,children:[A.cssBaseline?m.jsx(Kt,{}):null,Z]})),Z}));Ot.displayName="EagerStandaloneWorkbook";const mn=Object.freeze(Object.defineProperty({__proto__:null,default:Ot},Symbol.toStringTag,{value:"Module"})),fn=Object.freeze(Object.defineProperty({__proto__:null,E:mn,c:ie},Symbol.toStringTag,{value:"Module"}));exports.ByYn00uYUmHj9zvS=fn,exports.Collapse=Fe,exports.fe=ie;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.3.2
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|