@sheetxl/mcp 0.8.0-beta.15 → 0.8.0-beta.16
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 +8 -7
- package/assets/{OVRdpPUzR0-ueTxE.js → -PtBguqpLi7Nr4Df.js} +2 -2
- package/assets/{BOPsJmq7v7HOKUkO.js → 2GLqCzpAJP6jbaRx.js} +12 -12
- package/assets/{BPwmBu_aouERJjiW.js → 3_NofB4A4Qhl-4YY.js} +2 -2
- package/assets/{CGBGyaCGdlZFQYK0.js → 3t-I20nDzFHBd5UJ.js} +2 -2
- package/assets/{hulrR0PldUxMJm_F.js → 4vS8pASPZSU7QcRZ.js} +4 -4
- package/assets/{Bh0PNKlrR4VAqnP8.js → 5B_tapYOcjOv1wGO.js} +35528 -30074
- package/assets/{FS9NbEKgQvz5wqvZ.js → 8NrxfSWBHDaEJvhz.js} +2 -2
- package/assets/{oxjm7Yr7u7MeaO5P.js → 9MXt8KXdWlbEJNc2.js} +2 -2
- package/assets/{CduNzsdbTigxH-ZK.js → AjWB-QdIkr07kToW.js} +189 -189
- package/assets/{DvUUArnZwoYOKOuk.js → B16N6VSLY5HPgVkD.js} +2 -2
- package/assets/{C0CiMKC3lWK1z9p5.js → B2YEEPHIkNcezk9T.js} +3 -3
- package/assets/{CNz3LdmvsOEJoLO9.js → B3MqN3t5naY3moOk.js} +2 -2
- package/assets/BBPjYcS8XKQREith.js +199 -0
- package/assets/{B4VnJacrzr1x4PHR.js → BCSRsSAEPlwR59H5.js} +5 -5
- package/assets/{CMK6tIDVqYYvK4GZ.js → BIUUGUhypimIDg2a.js} +2 -2
- package/assets/{iujMYIEPx_v3sdPf.js → BNrpvJZtIL0Ex_wE.js} +996 -995
- package/assets/{DA_ar3QKLKtJ9fJD.js → BR66nPIzyzlOcP10.js} +2 -2
- package/assets/{CvngwB17_ve4W49b.js → BRLA4pJWiYdpW-69.js} +73 -73
- package/assets/{Crt2kLdGIlBHANgg.js → BUAq-ENCmL0XGLIu.js} +2 -2
- package/assets/{Bn8D2bebQ2tFfwQt.js → BYqyNLuwXl7GKuzh.js} +43 -41
- package/assets/{ZuYfVKlp41IJnrOS.js → BZbxPclVVopktv3l.js} +2 -2
- package/assets/{Cf9LpgZz-W5blzy_.js → B_nQLUWaxp-Q1IfV.js} +3 -3
- package/assets/{BbcUxIZe3YXywsQR.js → BbDKWV_FQAICqZjP.js} +2 -2
- package/assets/{B2udpZ-uIaql3AUh.js → BbXlmp8W_cbr75FN.js} +6 -6
- package/assets/{CxjchwpiqxPM1XKd.js → BdMebk9YSA0oxQ_d.js} +70 -70
- package/assets/{JO3zH9hupFSV6vj2.js → Bdt9nQs8gDIzu_IG.js} +2 -2
- package/assets/{Cf2dcwmmmf13Rywg.js → BiE9M6RctwQ339_7.js} +2 -2
- package/assets/{BJxfinOazQqqByc-.js → BiGm1tKvxUh8oWbD.js} +2 -2
- package/assets/{DH7sGHzxUqIQkDnd.js → BjDsx_FHl0mShqHX.js} +2 -2
- package/assets/{DB-tkqI6wFXDKEfB.js → BlIrJwQGEASCgJdZ.js} +2 -2
- package/assets/{DD8HNAUFroTCuD-b.js → BlWfQ5HPEehB_lPz.js} +3288 -2130
- package/assets/BpgPKKZwxXklRyo7.js +7 -0
- package/assets/{D7oUtYjetuykGhQ5.js → BrtLeTsrulaU6osB.js} +2 -2
- package/assets/{LyLlBk--VJD2V-f8.js → BsFWmVYPrLyh5Dre.js} +34 -34
- package/assets/{DJiLWtmPR2OQNjzi.js → BtNRIFE92ka4hATo.js} +2 -2
- package/assets/{DKLm4nWzynGw1Kr9.js → BuhHuKVWppW4L8AV.js} +2 -2
- package/assets/{C4z2IilWTuu2TWXw.js → C-AIgWmHugqMcl9J.js} +3 -3
- package/assets/{U1XXGEPuuqIAzYl1.js → C-gN7uBg-MWHRo4g.js} +2 -2
- package/assets/{vZZi_iKYHm05gAye.js → C0JSC9gVwR1QxopD.js} +2 -2
- package/assets/{Cfhv_Yw_LT8VzAMt.js → C2dG4GHThf9O-IJy.js} +2 -2
- package/assets/{Cg51xaLRUkVOMdCZ.js → C3Wibs7QGFZ1FI7W.js} +2 -2
- package/assets/{BuUEsifnQALe49uk.js → C75i_5ip7OhGkuiF.js} +2 -2
- package/assets/{DDnwKPJSznyfYDZS.js → C95HXhZkkhnUx_aE.js} +3 -3
- package/assets/{CWl6oHiJxkNKRixk.js → CAEhAL7-0FG7jdzN.js} +2 -2
- package/assets/{D-ffk16w8c5w0mxI.js → CAMrW5ypKhgn105y.js} +2 -2
- package/assets/{B-MqXm_7luDLwazY.js → CBPkPTmeaEokFPSI.js} +2 -2
- package/assets/{xnhBSX6lAcmBM65y.js → CDqG64rXHp9-2tXr.js} +2 -2
- package/assets/{ClNQN3vEg5b5qUDp.js → CFdJvXLSbUrvNera.js} +2435 -2447
- package/assets/{PpFbmF0DFeUdpb9I.js → CG8zvnxueimOY7wm.js} +2 -2
- package/assets/{BsQZI1vXTRE63Zy-.js → CIqJdIUKSLZkNwHy.js} +345 -235
- package/assets/{_fUXIv6nKvgZkhxn.js → CJa8JVvKGVBz8Q7q.js} +3 -3
- package/assets/{CwPBmcY6xSP8dNlh.js → CK9h6iDOreaI8GEt.js} +12 -12
- package/assets/CL1-ziDI0aAaVbhJ.js +7 -0
- package/assets/{C7ONfuYIWRmDu_vs.js → CVRc6jQcH155Z89u.js} +2 -2
- package/assets/{B9US2ZrF93KOjmAx.js → CVbRpT7QPHOMgwTx.js} +2 -2
- package/assets/CW-ivE6pl3V7vKuT.js +2563 -0
- package/assets/{F_f0jJqM5MrXGbwC.js → CX-6eYkcr5y0VmQm.js} +4 -4
- package/assets/{BlPubAFi7DY7VrAo.js → CZepo1lDTQp1myg6.js} +2 -2
- package/assets/{D8J14MLlN2HRXdXB.js → C_0RM0w6Pw70Bx_Y.js} +2 -2
- package/assets/{C2OrZ8LZ-TI6eYG0.js → Ci7-PIIhZwb2mVv5.js} +2 -2
- package/assets/{BleMG0hAQgjE8fTa.js → Cl98sBOj9GM2XnFe.js} +3 -3
- package/assets/{DwWngYJTgC0KLbih.js → CoIjAX2gECGb3Wxl.js} +2 -2
- package/assets/{DcWTBOi_iBFc6U4J.js → Co_y6GfwJTYtOmlt.js} +8 -8
- package/assets/{BQMDOjNBMjAx9WiW.js → CrwtgrD7BbXyCkx0.js} +2 -2
- package/assets/{CJ5WQnaoCsdr5gf4.js → CsjjeeOHE2624pGt.js} +2 -2
- package/assets/Ct5VTtdW77k-WcP_.js +529 -0
- package/assets/{DwLZpYUp85UHBE3H.js → CvJkwRgwm80S2bcd.js} +2 -2
- package/assets/{fDMpDhXp36CatF-G.js → D-irgQZ2WmkP9dnK.js} +2 -2
- package/assets/{BFdeov2e_xUQPEY_.js → D1g6IOzdvInVLV-x.js} +7 -7
- package/assets/{Btys7KwtvV3hz2F6.js → D2YdqNWXwSHJMPbA.js} +109 -109
- package/assets/{BQbF1RkUH8WyXqSD.js → D3bxrF1Ys2GSVfQH.js} +25 -19
- package/assets/{wfVh0olISLRWdv9Q.js → D7iU4kaxzl_PojNt.js} +2 -2
- package/assets/{DTfl-4Iboi6TQU5m.js → D7ibkNIu_Pn4TeBD.js} +4 -4
- package/assets/DBANZf_eAzaCFdIj.js +4676 -0
- package/assets/{DoILAmhKUOlKWRVw.js → DBMZF6PRHCko9K9R.js} +2 -2
- package/assets/{BFXeoFUbuc4IKTz9.js → DEIkGoOZ_WeuY0Lj.js} +2 -2
- package/assets/{xmTQJJVyCrcq77WR.js → DFAqI-o57Kd_Azlt.js} +2 -2
- package/assets/{BtjqpAKczftx91BQ.js → DFn_thWGK0_EZI5k.js} +2 -2
- package/assets/{DlBdhv6NHgrNp5Yo.js → DFvs1LVzXKm1N5M2.js} +3 -3
- package/assets/{DVchxwp6w6lu2Ihu.js → DJdRl2yX9DP_D8kh.js} +3 -3
- package/assets/{BG5kgbDRXMc0re6W.js → DKRa_Oc4XqB3DABB.js} +9 -9
- package/assets/{BZPTaa0WjpoUAbgZ.js → DLhlBqwsDnmscAuL.js} +2 -2
- package/assets/{BRzp6DEIYUgM3NkN.js → DMhtIFfkX-DZT_e3.js} +4 -4
- package/assets/{DpdHDTFOeuzDVNEe.js → DNhfziNrJGdL8BYs.js} +78 -77
- package/assets/{jadLBUNBVR9mbZ35.js → DOZ40EyxD3m0gCos.js} +809 -494
- package/assets/{SHZe9VOU1prGs1F9.js → DQcus4X_kTKIIyX6.js} +2 -2
- package/assets/{C7Z1li2XjWi6bkrp.js → DR9xHYH6v5G0lOqf.js} +4 -4
- package/assets/{DsCI_ZYm_jDjXF3J.js → DTLbKr_XIJMwQJmk.js} +52 -52
- package/assets/{_d5XJ7dn1CKKYrep.js → DaILIYfy-jPVTXjz.js} +3 -3
- package/assets/{S16s2h9qoYVBlVEa.js → Dd8CHUZz7xuYTfp-.js} +1444 -1356
- package/assets/{B5lHOOQ_rkP4Mi2r.js → DdrsYdX3bLixdb_9.js} +2 -2
- package/assets/DfWWAHOjmhqvN3m_.js +7166 -0
- package/assets/{9U9XCqqdn-q3i2fj.js → DfzLOnWTNL_2J90y.js} +2 -2
- package/assets/{BTQhJQ3e0hsiousD.js → Dg4JXbd1yPGNZOtL.js} +2 -2
- package/assets/Di4ehJD7muvtcrN3.js +169 -0
- package/assets/{BbAmA46MhQSu3ZF_.js → DmLbqbAez7Dzwyl7.js} +2 -2
- package/assets/{CudNpUD78SrtJIiy.js → Dp-dLoOaBndV2N5i.js} +3 -3
- package/assets/DsTi7zHk_Xl37bAD.js +14 -0
- package/assets/{Diee6f_qAmcZBd2_.js → DvFwVzuc5YfagNnH.js} +2 -2
- package/assets/{D0CHDsemn0S31ltt.js → Dy67BUF2yd8VRPwL.js} +2 -2
- package/assets/{LEJp05fjmflKgyqF.js → DzkccbbE6iXMqQDO.js} +451 -447
- package/assets/{B7gUyrfLln3TiyKM.js → Gqh12ggLm5KlvN3v.js} +2 -2
- package/assets/{BjqQjxBuoXza8oqg.js → JC8UUcu6m23qqrr3.js} +3 -4
- package/assets/{ChWpsFGl-BYOnX_A.js → LwFDS0HxPZKiiEnN.js} +2 -2
- package/assets/{BeLr36oL3jmeXFFi.js → POdlv6cpSx6ftJxx.js} +2 -2
- package/assets/{CMWAsUQ66V8fYrME.js → QVWayvB03YMyTKt3.js} +3 -3
- package/assets/{Dz8UUJ7Xc2oN5PBG.js → SB2aKOIVln0EkgXR.js} +2 -2
- package/assets/SaCo3me4_hw2b1L4.js +2039 -0
- package/assets/{CecTe22WURiXbVdY.js → TNQaiw20sEAEUiK5.js} +386 -372
- package/assets/{jPUOH4FHF4b-rapv.js → W2FU69Pfo4chpqtk.js} +2 -2
- package/assets/{CXHslDxkWCuEcCSQ.js → YXC__Myl-BuIFW6s.js} +2 -2
- package/assets/{DPCKMM7sgWbrtB8z.js → Z01wJImjl6lBMpf4.js} +2 -2
- package/assets/{C97xDe_wBbLZh_uW.js → h6EQSu5n2vTsu2yd.js} +2 -2
- package/assets/{FzNG48GE_wso6RII.js → iULnLPcNKVpz00r7.js} +2 -2
- package/assets/{DEW2GxfGYqVFvrfg.js → iqQWGoJaPha0_8lU.js} +2 -2
- package/assets/{BrcQmHcE7Hcr1erJ.js → nDmE2I07HvkpRdR0.js} +2 -2
- package/assets/{Bg95xYj5siqhHVEz.js → nmB0nnkFQf5NWo0i.js} +3 -3
- package/assets/{BCy1zP97fsiIcvj6.js → pQUJKbHGetb7dcOr.js} +2 -2
- package/assets/{B2Ek-DWpZMGJ0V1Z.js → rfwqMukKbJBeJBuC.js} +3 -3
- package/assets/{By-7OWXShMlFFejV.js → soSlr334Fv1j5t2m.js} +2 -2
- package/index.js +2010 -1944
- package/lib.js +2 -2
- package/licenses/dependencies.txt +259 -194
- package/package.json +4 -9
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
- package/screenshot-page/assets/{CSUd8n1H0VBfREnk.js → -N4OYIMgf6f5vgNy.js} +1 -1
- package/screenshot-page/assets/{B4PbXdzBe9BsoZ0e.js → B7eQ3rE-7Vayb_4O.js} +1 -1
- package/screenshot-page/assets/B8i4Sr2kMQAXp0rb.js +4 -0
- package/screenshot-page/assets/{DQWHkaQeNXft9j8b.js → B8qybUclSjEYP5FJ.js} +2 -2
- package/screenshot-page/assets/BIHbD4jMsk3NetOd.js +1 -0
- package/screenshot-page/assets/BIrVK5hdDCUYmxGO.js +1 -0
- package/screenshot-page/assets/{l32n8O_A78Qqduv3.js → BJ2r2WfEL3SgkBAX.js} +1 -1
- package/screenshot-page/assets/BJviQwDXR5L6l1DA.js +1 -0
- package/screenshot-page/assets/BM78thqEW6HwXFAK.js +13 -0
- package/screenshot-page/assets/{BcOdl17EeFSxnAiq.js → BMf827t1Ul65MHd5.js} +1 -1
- package/screenshot-page/assets/BMwQInar0xVS5FRu.js +1 -0
- package/screenshot-page/assets/{BUjI304IvdJnFXH3.js → BU5S8KEzPmIA_Flm.js} +1 -1
- package/screenshot-page/assets/{D6Jpaz2YkhOfzxDB.js → BYQZ8o8k3-MDoNat.js} +1 -1
- package/screenshot-page/assets/{CZf9s6otzzoaBlSs.js → BftXEPOuf5Uwxpud.js} +1 -1
- package/screenshot-page/assets/Bir0SSOHX0w2yo8h.js +1 -0
- package/screenshot-page/assets/{CykecBozGGFl26KA.js → Btgo0VFTT0JxuaP3.js} +74 -68
- package/screenshot-page/assets/C2H2lX8eyKpxpP6M.js +2 -0
- package/screenshot-page/assets/{B-KIwD5F_5S-NsPg.js → C71ZZMVLfHdPl441.js} +1 -1
- package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +1 -0
- package/screenshot-page/assets/{DGXDfjkGZjMRAXPg.js → CN8u05DjKwNHbUHN.js} +1 -1
- package/screenshot-page/assets/CQFj5AGXfIA9z9zI.js +1 -0
- package/screenshot-page/assets/{gG0AFZ45VxS_moMw.js → CRsTnamLrPN5-Dsi.js} +1 -1
- package/screenshot-page/assets/CYfkL98Zu43S8-50.js +42 -0
- package/screenshot-page/assets/{DXQLzGmxoyN3kfQi.js → CZa1rha3RnQUWyOk.js} +7 -7
- package/screenshot-page/assets/{CpbohdgEaEsVDi9J.js → C_vPl50T1L5HWnhv.js} +1 -1
- package/screenshot-page/assets/{CbUDukmvDZmVfhJH.js → CfkssmHURDicfYvR.js} +1 -1
- package/screenshot-page/assets/{Bj-vfAT28PK-tWWa.js → CguXw0IcKNPbmAbj.js} +2 -2
- package/screenshot-page/assets/{DmbuCapSSCYIa3yk.js → ClzJdxlUDDtBYjH8.js} +1 -1
- package/screenshot-page/assets/{BTboCICZ-951XWsi.js → CqyMYduWKFvmMs_Z.js} +1 -1
- package/screenshot-page/assets/CzsoLbEIUVK5ia1C.js +1 -0
- package/screenshot-page/assets/D2IHCJ1QWDKwmhge.js +1 -0
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +1 -0
- package/screenshot-page/assets/D7biuwkvm3zAwsBa.js +39 -0
- package/screenshot-page/assets/D8s3sJnhFxbI3Dqn.js +1 -0
- package/screenshot-page/assets/{hp_-JA1DMK4Yoztn.js → DDkL9PZPXAggW2Yr.js} +19 -19
- package/screenshot-page/assets/DEpn6VGd30cHEJOS.js +1 -0
- package/screenshot-page/assets/{CIged53b3hHKxa-o.js → DLFFFQjTi5Ji1940.js} +1 -1
- package/screenshot-page/assets/DMxrNtfw275en7pm.js +1 -0
- package/screenshot-page/assets/{CqR3hGrC956TkCMj.js → DRncpwDkZZX8rL9S.js} +1 -1
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +1 -0
- package/screenshot-page/assets/D_kJ3WunvjIINcHC.js +1 -0
- package/screenshot-page/assets/{BFaiQZKle44Rhyou.js → D_rtIYQ7FDC2CoEn.js} +1 -1
- package/screenshot-page/assets/{Bf7xq8PyF4ohjMzP.js → Db6bZVJ-184DJIoe.js} +2 -2
- package/screenshot-page/assets/{DyLWQxXXTw5uwPVy.js → DeyRZ5rprDbRbuf4.js} +1 -1
- package/screenshot-page/assets/{D47ePD4x1lVazNdl.js → DgtqX4DiBgkepVZZ.js} +1 -1
- package/screenshot-page/assets/DhB6GjSJIeTmIODk.js +1 -0
- package/screenshot-page/assets/Dn5PwRw7rrTKNnql.js +586 -0
- package/screenshot-page/assets/{TfhknTx8vxQkw4zV.js → Dq7wGcTrNIshovlT.js} +2 -2
- package/screenshot-page/assets/{BUGXf2DEBog16Slb.js → DqXO_Zw1Cp7rAQ04.js} +2 -2
- package/screenshot-page/assets/{21oAESJyBGXeHegm.js → DtihumgXQ7ETaN0A.js} +2 -2
- package/screenshot-page/assets/DuYb_otrRZZDq6-f.js +2 -0
- package/screenshot-page/assets/DyiVrm8mEnEaoZHa.js +3 -0
- package/screenshot-page/assets/{BHqg55S-4_OoAu3P.js → LYyM_ig973jLdOU0.js} +2 -2
- package/screenshot-page/assets/TilS2JSBGVkd1za3.js +3 -0
- package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +1 -0
- package/screenshot-page/assets/UKFgEuwI1UMhPqKF.js +2 -0
- package/screenshot-page/assets/XgsioU5Px1T5gKAY.js +1 -0
- package/screenshot-page/assets/cTMKPkmZF8FWQaMn.js +1 -0
- package/screenshot-page/assets/hlxJ87-H830aSZBQ.js +1 -0
- package/screenshot-page/assets/{DDQWM8rNYCYzKa9R.js → lgeNUp9cU20IAotv.js} +1 -1
- package/screenshot-page/assets/nM1r2xslndIMKlI2.js +2 -0
- package/screenshot-page/assets/{BSdFVGZNhU6YHbMI.js → rOzyaU7hqchMbhRL.js} +1 -1
- package/screenshot-page/index.html +12 -12
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +82 -1
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +80 -1
- package/types/scripting-api.json +9967 -9497
- package/types/scripting-enums.json +27 -0
- package/types/scripting.d.ts +2282 -166
- package/assets/BBb_3gEGzmEzbTIk.js +0 -359
- package/assets/BSxTn2BhkEEeF9x_.js +0 -2346
- package/assets/CWVWdbY1B1-WLl9k.js +0 -199
- package/assets/CZTSZL3T_f-vSXqM.js +0 -7
- package/assets/DaoSWy3EFlqpZaLr.js +0 -4437
- package/assets/Dht2mcOSyYlPY32b.js +0 -14
- package/assets/DkibD_CEVePaoj_y.js +0 -7
- package/assets/jiEe5eKV3BFPBWfi.js +0 -6294
- package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +0 -1
- package/screenshot-page/assets/B2MJPcMcsuv6FekC.js +0 -1
- package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +0 -1
- package/screenshot-page/assets/BTMW3ukmc44U2fy7.js +0 -1
- package/screenshot-page/assets/B_W2QroTKADz3ABp.js +0 -2
- package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +0 -3
- package/screenshot-page/assets/BnoVwUBEor8NgQNs.js +0 -4
- package/screenshot-page/assets/BzQ5GyiXq8gTz-H-.js +0 -1
- package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +0 -1
- package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +0 -1
- package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +0 -2
- package/screenshot-page/assets/CwqNb7JYzC03lCj0.js +0 -1
- package/screenshot-page/assets/CzhH7lTYQrYGHct6.js +0 -1
- package/screenshot-page/assets/D66vSE1ConAuENmB.js +0 -586
- package/screenshot-page/assets/DCVUZ_ayOXFwV2d_.js +0 -3
- package/screenshot-page/assets/DFE-fKq5NV7_O8V6.js +0 -1
- package/screenshot-page/assets/DK_QSosKV62NDcuT.js +0 -42
- package/screenshot-page/assets/DTFRGj188QuLKEXw.js +0 -1
- package/screenshot-page/assets/DXWWyJlMSWgDFxs1.js +0 -10
- package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +0 -1
- package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +0 -1
- package/screenshot-page/assets/Dsx0NUmGIxS7SvZ8.js +0 -1
- package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +0 -2
- package/screenshot-page/assets/Q5EKmzoJZCE81Om-.js +0 -2
- package/screenshot-page/assets/VvqAh6BWzaD5OUPF.js +0 -1
- package/screenshot-page/assets/fGlPAximvsxzPzGA.js +0 -1
- package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +0 -1
- package/screenshot-page/assets/sHBomL5R4-_px8rD.js +0 -1
- package/screenshot-page/assets/skRJ2qjA7kcmnOsh.js +0 -39
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DyxJBLjUkeDuu96F.js","./ChSvXfVMLxZsP9zG.js","./HclGiUj8dZXDFmoM.js","./3Ls_kOvlQseMV8Q0.js","./6IEV7KeOEbBdrthj.js","./D9zCVZpnJBfNSNO2.js","./nHThFXCAZFOM_npq.js","./B2IQMVqTZT1rUnib.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./HclGiUj8dZXDFmoM.js";import{B as t,I as n,J as r,Z as i,q as a,u as o}from"./ChSvXfVMLxZsP9zG.js";import{r as s}from"./3Ls_kOvlQseMV8Q0.js";import{t as c}from"./nHThFXCAZFOM_npq.js";var l,u;(u=l||={}).TabStop=class{},u.HorizontalAlignment={General:`general`,Left:`left`,Center:`center`,Right:`right`,Justify:`justify`,Distributed:`distributed`,CenterContinuous:`centerContinuous`,Fill:`fill`},u.VerticalAlignment={Top:`top`,Center:`center`,Bottom:`bottom`,Justify:`justify`,Distributed:`distributed`},u.Orientation={Horizontal:`horizontal`,Vertical:`90`,Vertical270:`270`,Stacked:`stacked`},u.ReadingDirection={Auto:`auto`,LeftToRight:`ltr`,RightToLeft:`rtl`},u.Overflow={Visible:`visible`,Wrap:`wrap`,Clip:`clip`,Shrink:`shrink`,Ellipsis:`ellipsis`},u.Autofit={None:`none`,Normal:`normal`,Shape:`shape`},u.TabStopAlignment={Default:`default`,Left:`left`,Right:`right`,Center:`center`,Decimal:`decimal`},u.WritingMode={Horizontal:`horizontal`,Vertical:`vertical`,Vertical270:`vertical270`,WordArtVertical:`wordArtVertical`,EastAsianVertical:`eastAsianVertical`,MongolianVertical:`mongolianVertical`,WordArtVerticalRtl:`wordArtVerticalRtl`},u.toCSSHorizontalTextAlign=e=>e?e.toLowerCase():null;var d={AD:`EUR`,AT:`EUR`,BE:`EUR`,CY:`EUR`,DE:`EUR`,EE:`EUR`,ES:`EUR`,FI:`EUR`,FR:`EUR`,GR:`EUR`,HR:`EUR`,IE:`EUR`,IT:`EUR`,LT:`EUR`,LU:`EUR`,LV:`EUR`,MC:`EUR`,ME:`EUR`,MT:`EUR`,NL:`EUR`,PT:`EUR`,SI:`EUR`,SK:`EUR`,SM:`EUR`,VA:`EUR`,XK:`EUR`,AL:`ALL`,BA:`BAM`,BG:`BGN`,BY:`BYN`,CH:`CHF`,CZ:`CZK`,DK:`DKK`,FO:`DKK`,GB:`GBP`,GE:`GEL`,GG:`GBP`,GI:`GIP`,IM:`GBP`,IS:`ISK`,JE:`GBP`,LI:`CHF`,MD:`MDL`,MK:`MKD`,NO:`NOK`,PL:`PLN`,RO:`RON`,RS:`RSD`,RU:`RUB`,SE:`SEK`,SJ:`NOK`,TR:`TRY`,UA:`UAH`,AG:`XCD`,AI:`XCD`,AR:`ARS`,AW:`AWG`,BB:`BBD`,BL:`EUR`,BM:`BMD`,BO:`BOB`,BQ:`USD`,BR:`BRL`,BS:`BSD`,BZ:`BZD`,CA:`CAD`,CL:`CLP`,CO:`COP`,CR:`CRC`,CU:`CUP`,CW:`XCG`,DM:`XCD`,DO:`DOP`,EC:`USD`,FK:`FKP`,GD:`XCD`,GF:`EUR`,GL:`DKK`,GP:`EUR`,GT:`GTQ`,GY:`GYD`,HN:`HNL`,HT:`HTG`,JM:`JMD`,KN:`XCD`,KY:`KYD`,LC:`XCD`,MF:`EUR`,MQ:`EUR`,MS:`XCD`,MX:`MXN`,NI:`NIO`,PA:`PAB`,PE:`PEN`,PM:`EUR`,PR:`USD`,PY:`PYG`,SR:`SRD`,SV:`USD`,SX:`XCG`,TC:`USD`,TT:`TTD`,US:`USD`,UY:`UYU`,VC:`XCD`,VE:`VES`,VG:`USD`,VI:`USD`,AE:`AED`,AF:`AFN`,AM:`AMD`,AZ:`AZN`,BD:`BDT`,BH:`BHD`,BN:`BND`,BT:`BTN`,CC:`AUD`,CN:`CNY`,CX:`AUD`,HK:`HKD`,ID:`IDR`,IL:`ILS`,IN:`INR`,IQ:`IQD`,IR:`IRR`,JO:`JOD`,JP:`JPY`,KG:`KGS`,KH:`KHR`,KP:`KPW`,KR:`KRW`,KW:`KWD`,KZ:`KZT`,LA:`LAK`,LB:`LBP`,LK:`LKR`,MM:`MMK`,MN:`MNT`,MO:`MOP`,MV:`MVR`,MY:`MYR`,NP:`NPR`,OM:`OMR`,PH:`PHP`,PK:`PKR`,PS:`ILS`,QA:`QAR`,SA:`SAR`,SG:`SGD`,SY:`SYP`,TH:`THB`,TJ:`TJS`,TL:`USD`,TM:`TMT`,TW:`TWD`,UZ:`UZS`,VN:`VND`,YE:`YER`,AO:`AOA`,BF:`XOF`,BI:`BIF`,BJ:`XOF`,BW:`BWP`,CD:`CDF`,CF:`XAF`,CG:`XAF`,CI:`XOF`,CM:`XAF`,CV:`CVE`,DJ:`DJF`,DZ:`DZD`,EG:`EGP`,EH:`MAD`,ER:`ERN`,ET:`ETB`,GA:`XAF`,GH:`GHS`,GM:`GMD`,GN:`GNF`,GQ:`XAF`,GW:`XOF`,KE:`KES`,KM:`KMF`,LR:`LRD`,LS:`LSL`,LY:`LYD`,MA:`MAD`,MG:`MGA`,ML:`XOF`,MR:`MRU`,MU:`MUR`,MW:`MWK`,MZ:`MZN`,NA:`NAD`,NE:`XOF`,NG:`NGN`,RE:`EUR`,RW:`RWF`,SC:`SCR`,SD:`SDG`,SH:`SHP`,SL:`SLE`,SN:`XOF`,SO:`SOS`,SS:`SSP`,ST:`STN`,SZ:`SZL`,TD:`XAF`,TG:`XOF`,TN:`TND`,TZ:`TZS`,UG:`UGX`,YT:`EUR`,ZA:`ZAR`,ZM:`ZMW`,ZW:`ZWG`,AS:`USD`,AU:`AUD`,CK:`NZD`,FJ:`FJD`,FM:`USD`,GU:`USD`,KI:`AUD`,MH:`USD`,MP:`USD`,NC:`XPF`,NF:`AUD`,NR:`AUD`,NU:`NZD`,NZ:`NZD`,PF:`XPF`,PG:`PGK`,PW:`USD`,SB:`SBD`,TK:`NZD`,TO:`TOP`,TV:`AUD`,VU:`VUV`,WF:`XPF`,WS:`WST`},f=new Set([`ar`,`he`,`fa`,`ur`,`ps`,`sd`,`ug`,`dv`,`ku`]),p={US:{firstDay:0,weekend:[6,0]},CA:{firstDay:0,weekend:[6,0]},GB:{firstDay:1,weekend:[6,0]},DE:{firstDay:1,weekend:[6,0]},FR:{firstDay:1,weekend:[6,0]},ES:{firstDay:1,weekend:[6,0]},IT:{firstDay:1,weekend:[6,0]},BR:{firstDay:0,weekend:[6,0]},MX:{firstDay:0,weekend:[6,0]},JP:{firstDay:0,weekend:[6,0]},CN:{firstDay:1,weekend:[6,0]},IN:{firstDay:0,weekend:[6,0]},AE:{firstDay:6,weekend:[5,6]},SA:{firstDay:0,weekend:[5,6]}},m=new Set([`hi-IN`,`en-IN`,`bn-IN`,`gu-IN`,`mr-IN`,`ta-IN`,`te-IN`,`kn-IN`,`ml-IN`,`pa-IN`]);function h(e,t){let n=new Intl.DateTimeFormat(e,t),r=new Date(Date.UTC(2001,10,21,13,5,9)),i=n.formatToParts(r),a=n.resolvedOptions(),o=typeof a.hour12==`boolean`?a.hour12:a.hourCycle?/h1[12]/.test(a.hourCycle):i.some(e=>e.type===`dayPeriod`),s=(e,t)=>{switch(e){case`year`:return t.length>=4?`yyyy`:`yy`;case`month`:return/^\d+$/.test(t)?t.length===2?`MM`:`M`:t.length<=3?`MMM`:`MMMM`;case`day`:return t.length===2?`dd`:`d`;case`weekday`:return t.length<=3?`EEE`:`EEEE`;case`hour`:{let e=t.length===2;return o?e?`hh`:`h`:e?`HH`:`H`}case`minute`:return t.length===2?`mm`:`m`;case`second`:return t.length===2?`ss`:`s`;case`dayPeriod`:return`a`;case`era`:return t.length<=3?`G`:`GGGG`;case`timeZoneName`:return t.length>3?`zzzz`:`z`;default:return``}},c=``;for(let e of i)c+=e.type===`literal`?e.value:s(e.type,e.value);return c}function g(e,t){let n=new Intl.DateTimeFormat(e,{month:t});return Array.from({length:12},(e,t)=>n.format(new Date(2020,t,1)))}function _(e,t){let n=new Intl.DateTimeFormat(e,{weekday:t});return Array.from({length:7},(e,t)=>n.format(new Date(2020,7,2+t)))}function v(e,t){let n=new Intl.NumberFormat(e).resolvedOptions().numberingSystem||`latn`,{decimal:r,group:i,minusSign:a,percentSign:o}=function(e){let t=new Intl.NumberFormat(e,{useGrouping:!0,maximumFractionDigits:1}).formatToParts(12345.6);return{decimal:t.find(e=>e.type===`decimal`)?.value??`.`,group:t.find(e=>e.type===`group`)?.value??`,`,minusSign:new Intl.NumberFormat(e).formatToParts(-1).find(e=>e.type===`minusSign`)?.value??`-`,percentSign:new Intl.NumberFormat(e,{style:`percent`,maximumFractionDigits:0}).formatToParts(50).find(e=>e.type===`percentSign`)?.value??`%`}}(e),s=m.has(e)?[3,2]:i===``?[]:function(e,t){let n=new Intl.NumberFormat(e,{useGrouping:!0}).format(1234567890123),r=[];for(let e=0;e<n.length;e++)n[e]===t&&r.push(e);if(r.length===0)return[];let i=r.map(e=>n.length-1-e).sort((e,t)=>e-t),a=[];for(let e=0;e<i.length;e++){let t=e===0?-1:i[e-1];a.push(i[e]-t-1)}if(a.every(e=>e===a[0]))return[a[0]];let o=a[a.length-1];return[a[a.length-2],o]}(e,i),{code:c,symbol:l,position:u,spacing:v}=function(e){let t;try{t=new Intl.Locale(e).maximize().region??``}catch{t=``}let n=d[t]??`USD`,r=new Intl.NumberFormat(e,{style:`currency`,currency:n}).formatToParts(12),i=r.map(e=>e.type),a=i.indexOf(`currency`),o=[i.indexOf(`integer`),i.indexOf(`nan`)].filter(e=>e!==-1),s=o.length>0?Math.min(...o):-1,c=a!==-1&&s!==-1&&a<s,l=r.some(e=>e.type===`literal`&&/\s/.test(e.value))?`space`:`tight`;return{code:n,symbol:r[a]?.value??n,position:c?`before`:`after`,spacing:l}}(e),y=h(e,{dateStyle:`short`}),b=h(e,{dateStyle:`medium`}),x=h(e,{dateStyle:`long`}),S=h(e,{timeStyle:`short`}),ee=h(e,{timeStyle:`medium`}),{firstDay:te,weekend:C}=function(e){try{let t=new Intl.Locale(e);if(t.weekInfo)return{firstDay:t.weekInfo.firstDay,weekend:[t.weekInfo.weekend[0],t.weekInfo.weekend[t.weekInfo.weekend.length-1]]}}catch{}return p[function(e){let t=e.split(/[-_]/);return t.length>=2?t[1].toUpperCase():``}(e)]??{firstDay:1,weekend:[6,0]}}(e),{am:w,pm:T}=function(e){return{am:new Intl.DateTimeFormat(e,{hour:`numeric`,hour12:!0}).formatToParts(new Date(Date.UTC(2e3,0,1,9))).find(e=>e.type===`dayPeriod`)?.value,pm:new Intl.DateTimeFormat(e,{hour:`numeric`,hour12:!0}).formatToParts(new Date(Date.UTC(2e3,0,1,18))).find(e=>e.type===`dayPeriod`)?.value}}(e),ne=g(e,`long`),re=g(e,`short`),ie=_(e,`long`),ae=_(e,`short`),E=function(e){return!!new Intl.DateTimeFormat(e,{hour:`numeric`}).resolvedOptions().hour12}(e),{list:oe,csv:se}=function(e){let t=e===`,`?`;`:`,`;return{list:t,csv:t}}(r),ce=function(e){let t=function(e){return e.split(/[-_]/)[0]}(e);return f.has(t)}(e),D={tag:e,numberingSystem:n,decimal:r,group:i,grouping:s,minusSign:a,percentSign:o,permilleSign:`‰`,currencyCode:c,currencySymbol:l,currencyDisplay:`symbol`,currencyPosition:u,currencySpacing:v,date:{calendar:new Intl.DateTimeFormat(e).resolvedOptions().calendar||`gregory`,short:y,medium:b,long:x,timeShort:S,timeLong:ee,am:w,pm:T,firstDay:te,weekend:C,monthsWide:ne,monthsAbbr:re,weekdaysWide:ie,weekdaysAbbr:ae,hour12:E},listSeparator:oe,csvDelimiter:se,rtl:ce,collator:{sensitivity:`accent`,numeric:!1}};return t?function(e,t){let{date:n,...r}=t;return{...e,...r,tag:e.tag,date:n?{...e.date,...n}:e.date}}(D,t):D}function y(e){return typeof e!=`object`||!e?JSON.stringify(e)??`null`:Array.isArray(e)?`[`+e.map(y).join(`,`)+`]`:`{`+Object.keys(e).sort().map(t=>JSON.stringify(t)+`:`+y(e[t])).join(`,`)+`}`}var b=new Map;function x(e,t){let n=t?e+`\0`+y(t):e,r=b.get(n);return r||(r=v(e,t),b.set(n,r)),r}var S,ee=t(`sdk:fonts-wasm`,()=>e(()=>import(`./DyxJBLjUkeDuu96F.js`),__vite__mapDeps([0,1,2,3]),import.meta.url),{prefetch:!1}),te=async()=>(await ee.load()).wasm,C=/^\p{White_Space}$/u,w=e=>Math.max(0,Math.floor(e+.5))||0,T=class e{constructor(e,t){this._perEm=new Map,this._units=new Map,this._unitsPerEm=0,this._hinting=null,this._measureMissing=null,this._native=null,this._nativePending=[],this.family=e.family,this.weight=e.weight,this.italic=e.italic,this._vertical=t}static fromJSON(t){if(t?.format!==e.FORMAT)throw Error(`Not a font metrics table: format '${t?.format}', expected '${e.FORMAT}'.`);let n=Math.max(1,t.unitsPerEm),r=e=>e?{position:e[0]/n,thickness:e[1]/n}:null,i=new e({family:t.family,weight:t.weight,italic:t.italic},{ascent:t.winAscent/n,descent:t.winDescent/n,typoLine:t.typoLine?t.typoLine/n:null,underline:r(t.underline),strikeout:r(t.strikeout)}),a=i._perEm,o=i._units;i._unitsPerEm=n;for(let[e,r]of t.advances)for(let t=0;t<r.length;t++)a.set(e+t,r[t]/n),o.set(e+t,r[t]);return i}applyHinting(t){if(t?.format!==e.HINTED_FORMAT)throw Error(`Not a font hinting table: format '${t?.format}', expected '${e.HINTED_FORMAT}'.`);if(t.unitsPerEm!==this._unitsPerEm)throw Error(`Hinting for ${t.unitsPerEm} units per em does not fit a table of ${this._unitsPerEm}.`);let n=new Map;for(let[e,r]of t.sizes){let t=new Map;for(let e=0;e+1<r.length;e+=2)t.set(r[e],r[e+1]);n.set(e,t)}this._hinting=n,this.release()}get typoLine(){return this._vertical.typoLine??null}get isHinted(){return this._hinting!==null}get size(){return this._perEm.size}advance(e){return this._perEm.get(e)}set(e){for(let[t,n]of e)this._record(t,n)}_record(e,t){this._perEm.set(e,t),this._native&&this._nativePending.push([e,t])}native(e,t){if(t&&this._measureMissing)for(let e of this.missing(t)){let t=this._measureMissing(e);t!==void 0&&this._record(e.codePointAt(0),t)}let n=this._native;if(n){if(this._nativePending.length>0){let e=this._nativePending;this._nativePending=[],n.fill_per_em(Uint32Array.from(e,e=>e[0]),Float32Array.from(e,e=>e[1]))}}else n=this._native=this._buildNative(e);return n}get hasNative(){return this._native!==null}release(){this._native?.free(),this._native=null,this._nativePending=[]}_buildNative(e){let t=new e.MetricsTable(this._vertical.ascent,this._vertical.descent),n=this._units;if(n.size>0){let e=new Uint32Array(n.size),r=new Uint16Array(n.size),i=0;for(let[t,a]of n)e[i]=t,r[i]=a,i++;t.fill(this._unitsPerEm,e,r)}let r=[];for(let[e,t]of this._perEm)n.has(e)||r.push([e,t]);if(r.length>0&&t.fill_per_em(Uint32Array.from(r,e=>e[0]),Float32Array.from(r,e=>e[1])),this._hinting){this._hinting.size===0&&t.fill_hinting(0,new Uint32Array,new Int16Array);for(let[e,n]of this._hinting){let r=new Uint32Array(n.size),i=new Int16Array(n.size),a=0;for(let[e,t]of n)r[a]=e,i[a]=t,a++;t.fill_hinting(e,r,i)}}return this._nativePending=[],t}setMeasureMissing(e){this._measureMissing=e}missing(e){let t=new Set;for(let n of e)this._perEm.has(n.codePointAt(0))||t.add(n);return[...t]}width(e,t,n){let r=w(t),i=this._hinting?.get(r),a=this._advancePx(32,t,r,i)??0,o=0,s=0;for(let n of e)o+=this._advancePx(n.codePointAt(0),t,r,i)??(C.test(n)?a:0),s++;return o*(n?.superSub?.6:1)+(n?.letterSpacing??0)*Math.max(0,s-1)}_advancePx(e,t,n,r){if(this._hinting){let t=this._units.get(e);if(t!==void 0)return Math.max(0,((e,t,n)=>{let r=Math.max(1,t);return Math.floor((e*n*2+r)/(2*r))})(t,this._unitsPerEm,n)+(r?.get(e)??0))}let i=this._perEm.get(e);return i===void 0&&this._measureMissing&&(i=this._measureMissing(String.fromCodePoint(e)),i!==void 0&&this._record(e,i)),i===void 0?void 0:i*t}metrics(e){let t=w(e),n=w(this._vertical.ascent*t),r=w(this._vertical.descent*t);return{ascent:n,descent:r,lineHeight:n+r,baseline:n,lineGap:0}}underline(e){return ne(this._vertical.underline,e)}strikeout(e){return ne(this._vertical.strikeout,e)}measure(e,t,n){let r=e=>Math.max(1,Math.ceil((e?.thickness??0)*t)),i=this.width(e,t,n);return{width:i,...this.metrics(t),underlineThickness:r(this._vertical.underline),strikeThickness:r(this._vertical.strikeout),renderLetterSpacing:n?.paint?this._renderLetterSpacing(e,t,i,n):0}}_renderLetterSpacing(e,t,n,r){let i=-1;for(let t of e)i++;return i<=0?0:(n-r.paint.width(e,t,{letterSpacing:r.letterSpacing,superSub:r.superSub}))/i}};function ne(e,t){return e?{position:e.position*t,thickness:e.thickness*t}:null}(S=T||={}).FORMAT=`sheetxl-font-metrics/1`,S.HINTED_FORMAT=`sheetxl-font-hinting/1`;var re=`fonts`,ie=`@sheetxl/sdk`;function ae(e){let t=e.family.trim().toLowerCase().replace(/\s+/g,`-`),n=e.weight>=600;return`${t}-${n&&e.italic?`bold-italic`:n?`bold`:e.italic?`italic`:`regular`}.metrics.json`}var E=class{constructor(e=null,t={}){this.name=`table-file`,this.kind=`table`,this._pending=new Map,this._base=e,this._companions=t}build(e){let t=ae(e),n=this._pending.get(t);return n||(n=this._load(t),this._pending.set(t,n)),n}async hint(e){let t=ae(e).replace(/\.metrics\.json$/,``),n=Object.keys(this._companions),[r,...i]=await Promise.all([e.isHinted?null:this._companion(`${t}.hinted.json`),...n.map(e=>this._companion(`${t}${e}`))]);return i.forEach((e,t)=>{e&&this._companions[n[t]](e)}),r&&e.applyHinting(r),e.isHinted}async _companion(e){try{return await a(re,ie,e,this._base,import.meta.url)}catch{return null}}async _load(e){let t;try{t=await a(re,ie,e,this._base,import.meta.url)}catch{return null}let n=T.fromJSON(t);return await this.hint(n),n}},oe={first:6,last:120};function se(e){let t={family:e.family,typographicFamily:e.typographic_family,subfamily:e.subfamily,fullName:e.full_name,postscriptName:e.postscript_name,weight:e.weight,bold:e.bold,italic:e.italic,version:e.version};return e.free(),t}function ce(e){return ae({family:e.family,weight:e.bold?700:400,italic:e.italic}).replace(/\.metrics\.json$/,``)}var D=new Map([[`aptos`,`calibri`],[`aptos narrow`,`calibri`],[`aptos display`,`calibri`],[`intos`,`aptos`],[`intos narrow`,`aptos narrow`],[`intos display`,`aptos display`],[`calibri light`,`calibri`],[`carlito`,`calibri`],[`caladea`,`cambria`],[`helvetica`,`arial`],[`helvetica neue`,`arial`],[`arial nova`,`arial`],[`liberation sans`,`arial`],[`arimo`,`arial`],[`times`,`times new roman`],[`liberation serif`,`times new roman`],[`tinos`,`times new roman`],[`courier`,`courier new`],[`liberation mono`,`courier new`],[`cousine`,`courier new`],[`sans-serif`,`calibri`],[`serif`,`times new roman`],[`monospace`,`courier new`],[`system-ui`,`arial`],[`ui-system`,`arial`],[`ui-sans-serif`,`arial`],[`ui-rounded`,`arial`],[`ui-serif`,`times new roman`],[`ui-monospace`,`courier new`]]),le=new Map([[`calibri`,[`Calibri`,`Carlito`]],[`cambria`,[`Cambria`,`Caladea`]],[`arial`,[`Arial`,`Liberation Sans`,`Arimo`]],[`times new roman`,[`Times New Roman`,`Liberation Serif`,`Tinos`]],[`courier new`,[`Courier New`,`Liberation Mono`,`Cousine`]],[`aptos`,[`Aptos`,`Intos`]],[`aptos narrow`,[`Aptos Narrow`,`Intos Narrow`]],[`aptos display`,[`Aptos Display`,`Intos Display`]]]),ue=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-system`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`math`,`emoji`,`fangsong`]),de=e=>e.trim().replace(/\s+/g,` `).toLowerCase();function fe(e){let t=de(e);if(ue.has(t))return[];let n=[];for(let e of me(t))de(e)===t||n.some(t=>de(t)===de(e))||n.push(e);return n}var O,pe,me=e=>{let t=D.get(e);return[...le.get(e)??[],...t?me(t):[]]};function he(e){let t=[],n=new Set,r=e=>{let r=de(e);n.has(r)||(n.add(r),t.push(e))};for(let t of e){r(t);for(let e of fe(t))r(e)}return t}(pe=O||={}).Style={Normal:`normal`,Italic:`italic`},pe.Scheme={Major:`major`,Minor:`minor`,None:`none`},pe.Charset={Ansi:0,Default:1,Symbol:2,Mac:77,ShiftJIS:128,Hangul:129,Johab:130,GB2312:134,ChineseBig5:136,Greek:161,Turkish:162,Vietnamese:163,Hebrew:177,Arabic:178,Baltic:186,Russian:204,Thai:222,EastEurope:238,Oem:255},pe.StrikeStyle={None:`none`,Single:`single`,Double:`double`},pe.UnderlineStyle={None:`none`,Words:`words`,Single:`single`,Double:`double`,SingleAccounting:`singleAccounting`,DoubleAccounting:`doubleAccounting`,Heavy:`heavy`,Dotted:`dotted`,DottedHeavy:`dottedHeavy`,Dash:`dash`,DashHeavy:`dashHeavy`,DashLong:`dashLong`,DashLongHeavy:`dashLongHeavy`,DotDash:`dotDash`,DotDashHeavy:`dotDashHeavy`,DotDotDash:`dotDotDash`,DotDotDashHeavy:`dotDotDashHeavy`,Wavy:`wavy`,WavyHeavy:`wavyHeavy`,WavyDouble:`wavyDouble`},pe.getDeviceScale=function(){return ke.getDeviceScale()},pe.captureTables=function(e,t){return async function(e,t){let n=!1===t?.hinting?null:t?.hinting??oe,r=n?.first??1,i=n?.last??0,{FontFile:a}=await te(),o=new a(e);try{let e=o.face_count(),n=[];for(let a=0;a<e;a++){let s=se(o.identity(a)),c={...s,fileStem:ce(s)};if(t?.filter&&!t.filter(c))continue;let l=o.capture(a,s.family,r,i,t?.sourceFile),u={...c,metrics:l.metrics,hinted:l.hinted??void 0};l.free(),n.push(u),t?.onCaptured?.(u,a,e)}return n}finally{o.free()}}(e,t)},pe.toCSSFontFamily=function(e,t){return function(e,t){return he([e,...t??[]].filter(Boolean)).map(e=>ue.has(de(e))||!/\s/.test(e.trim())?e.trim():`"${e.trim().replace(/"/g,`\\"`)}"`).join(`, `)}(e,t)},pe.getPanoseFallback=function(e){let t=[],n=e.length;for(let r=0;r<n;r+=2)t.push(parseInt(e.substring(r,r+2),16));let r=t[0],i=t[1],a=t[3];switch(r){case 2:return a===9?`monospace`:i>=2&&i<=8?`serif`:`sans-serif`;case 3:return`cursive`;case 4:return`fantasy`;case 5:return`monospace`;default:return`sans-serif`}},pe.GenericName={Serif:`serif`,SanSerif:`sans-serif`,MonoSpace:`monospace`,Cursive:`cursive`,Fantasy:`fantasy`,SystemUI:`system-ui`,UISystem:`ui-system`,UISerif:`ui-serif`,UISanSerif:`ui-sans-serif`,UIMonoSpace:`ui-monospace`,UIRounded:`ui-rounded`,Math:`math`,Emoji:`emoji`,Fangsong:`fangsong`};var ge=256,_e=new Set(Object.values(O.GenericName)),ve=[`serif`,`sans-serif`,`monospace`],ye=e=>`${e.italic?`italic `:``}${e.weight} 256px `,be=e=>{let t=e.trim().toLowerCase();return _e.has(t)?t:`"${e.replace(/"/g,`\\"`)}"`},xe=class{constructor(e){this.name=`canvas`,this.kind=`exact`,this._context=void 0,this._createContext=e??Ce}async build(e){let t=this._ctx();if(!t)return null;let n=ye(e),r=be(e.family),i=n+r;return await globalThis.document?.fonts?.load?.(i).catch?.(()=>{}),_e.has(r)||Se(t,n,r)?this._measure(t,e,i):null}async paint(e,t){let n=this._ctx();if(!n)return null;let r=(t.length>0?t:[e.family]).map(be).join(`, `),i=ye(e)+r;return await globalThis.document?.fonts?.load?.(i).catch?.(()=>{}),this._measure(n,e,i)}measureMissing(e){let t=this._ctx();if(!t)return null;let n=ye(e)+be(e.family);return e=>(t.font=n,t.measureText(e).width/ge)}isInstalled(e){let t=this._ctx();if(!t)return;let n=be(e);return!!_e.has(n)||Se(t,ye({family:e,weight:400,italic:!1}),n)}_measure(e,t,n){e.font=n;let r=e.measureText(`Mg`),i=r.fontBoundingBoxAscent,a=r.fontBoundingBoxDescent,o=new T(t,{ascent:i===void 0?.8:i/ge,descent:a===void 0?.2:a/ge}),s=t=>(e.font=n,e.measureText(t).width/ge),c=[];for(let e=32;e<=126;e++)c.push([e,s(String.fromCharCode(e))]);return o.set(c),o.setMeasureMissing(s),o}_ctx(){if(this._context===void 0)try{this._context=this._createContext()}catch{this._context=null}return this._context}},Se=(e,t,n)=>{let r;for(let i of ve){e.font=`${t}${n}, ${i}`;let a=e.measureText(`mmmmmmmmmmlliiWW00`).width;if(r===void 0)r=a;else if(a!==r)return!1}return!0};function Ce(){let e=globalThis;return typeof e.OffscreenCanvas==`function`?new e.OffscreenCanvas(1,1).getContext(`2d`):(e.document?.createElement?.(`canvas`))?.getContext?.(`2d`)??null}function we(){return[new xe]}function Te(){return 96/72}var Ee,De,Oe=s({getAdvanceBuilders:()=>we,getDeviceScale:()=>Te}),ke={getDeviceScale:()=>Oe.getDeviceScale(),getAdvanceBuilders:()=>Oe.getAdvanceBuilders()};(De=Ee||={}).ThemeFamily={Heading:`theme:heading`,Body:`theme:body`},De.Baseline={Superscript:30,Subscript:-25};var Ae=s({DefaultFontSizes:()=>je,SuperSubScale:()=>Pe,findNextFontSize:()=>Me}),je=Object.freeze([8,9,10,11,12,14,16,18,20,22,24,26,28,30,36,48,72]);function Me(e,t=!0,r=je){if(!r||r.length===0)return e;if(e===void 0)return r[0];if(t&&e>=r[r.length-1]||!t&&e<=r[0])return e;let i=n.findEqualOrGreater(r,e);return t?(r[i]===e&&(i+=1),r[i]||--i,r[i]):(--i,r[i])}var k,Ne,Pe=.6;(Ne=k||={}).StrokeStyle={None:`none`,DashDot:`dashDot`,MediumDashDot:`mediumDashDot`,Dotted:`dotted`,Hair:`hair`,Thin:`thin`,Medium:`medium`,Thick:`thick`,MediumDashDotDot:`mediumDashDotDot`,DashDotDot:`dashDotDot`,Dashed:`dashed`,MediumDashed:`mediumDashed`,SlantDashDot:`slantDashDot`,Double:`double`},Ne.Edge={Left:`left`,Top:`top`,Right:`right`,Bottom:`bottom`,Horizontal:`horizontal`,Vertical:`vertical`,DiagonalUp:`diagonalUp`,DiagonalDown:`diagonalDown`};var Fe=[],Ie=new Map,Le=Object.freeze([[k.StrokeStyle.Thin,`Thin`,1,null],[k.StrokeStyle.Hair,`Hair`,1,[1,1]],[k.StrokeStyle.Dotted,`Dotted`,1,[2,2]],[k.StrokeStyle.Dashed,`Dashed`,1,[3,1]],[k.StrokeStyle.DashDot,`Dash Dot`,1,[3,3,9,3]],[k.StrokeStyle.DashDotDot,`Dash Dot Dot`,1,[3,3,3,3,9,3]],[k.StrokeStyle.Double,`Double`,3,null],[k.StrokeStyle.Medium,`Medium`,2,null],[k.StrokeStyle.MediumDashed,`Medium Dashed`,2,[9,3]],[k.StrokeStyle.MediumDashDot,`Medium Dash Dot`,2,[3,3,9,3]],[k.StrokeStyle.MediumDashDotDot,`Medium Dash Dot Dot`,2,[3,3,3,3,9,3]],[k.StrokeStyle.SlantDashDot,`Slant Dash Dot`,2,[5,1,11,1]],[k.StrokeStyle.Thick,`Thick`,3,null],[k.StrokeStyle.None,`None`,0,null]]);for(let e=0;e<Le.length;e++){let t=Le[e],n=t[0],r=Object.freeze({style:n,description:t[1],width:t[2],pattern:t[3]});Fe.push(r),Ie.set(n,r)}var Re,ze=new Map([k.StrokeStyle.Hair,k.StrokeStyle.DashDotDot,k.StrokeStyle.DashDot,k.StrokeStyle.Dotted,k.StrokeStyle.Dashed,k.StrokeStyle.Thin,k.StrokeStyle.MediumDashDotDot,k.StrokeStyle.SlantDashDot,k.StrokeStyle.MediumDashDot,k.StrokeStyle.MediumDashed,k.StrokeStyle.Medium,k.StrokeStyle.Thick,k.StrokeStyle.Double].map((e,t)=>[e,t])),Be=e=>{if(!e)return 0;let t=e.toRGBA();return .299*t.red+.587*t.green+.114*t.blue};(Re=k||={}).isEqualStrokes=function(e,t){return!(e&&!t||t&&!e)&&(e===t||e.getStyle()===t.getStyle()&&e.getColor().isEqual(t.getColor()))},Re.compareStrokes=function(e,t){let n=e?ze.get(e.getStyle())??-1:-1,r=t?ze.get(t.getStyle())??-1:-1;return n===r?n===-1?0:Be(t.getColor())-Be(e.getColor()):n-r},Re.oppositeEdge=function(e){return e===k.Edge.Left?k.Edge.Right:e===k.Edge.Right?k.Edge.Left:e===k.Edge.Top?k.Edge.Bottom:e===k.Edge.Bottom?k.Edge.Top:e},Re.BuiltInDefinitionsArray=Fe,Re.BuiltInDefinitions=Ie;var A={General:`General`,Number:`Number`,Currency:`Currency`,Accounting:`Accounting`,ShortDate:`Short Date`,LongDate:`Long Date`,MediumDate:`Medium Date`,ShortTime:`Short Time`,MediumTime:`Medium Time`,LongTime:`Long Time`,Comma:`Comma`,Percentage:`Percentage`,Fraction:`Fraction`,Scientific:`Scientific`,Text:`Text`,Special:`Special`,Custom:`Custom`},Ve=`general`,He=`hash`,Ue=`zero`,We=`qmark`,Ge=`slash`,Ke=`group`,qe=`scale`,Je=`comma`,Ye=`break`,Xe=`text`,Ze=`plus`,Qe=`minus`,$e=`point`,et=`space`,tt=`percent`,nt=`digit`,rt=`calendar`,it=`error`,at=`datetime`,ot=`duration`,st=`condition`,ct=`dbnum`,lt=`natnum`,ut=`locale`,dt=`color`,ft=`modifier`,pt=`ampm`,mt=`escaped`,ht=`string`,gt=`skip`,_t=`fill`,vt=`paren`,yt=`char`,bt=`#000000.#FFFFFF.#FF0000.#00FF00.#0000FF.#FFFF00.#FF00FF.#00FFFF.#800000.#008000.#000080.#808000.#800080.#008080.#C0C0C0.#808080.#9999FF.#993366.#FFFFCC.#CCFFFF.#660066.#FF8080.#0066CC.#CCCCFF.#000080.#FF00FF.#FFFF00.#00FFFF.#800080.#800000.#008080.#0000FF.#00CCFF.#CCFFFF.#CCFFCC.#FFFF99.#99CCFF.#FF99CC.#CC99FF.#FFCC99.#3366FF.#33CCCC.#99CC00.#FFCC00.#FF9900.#FF6600.#666699.#969696.#003366.#339966.#003300.#333300.#993300.#993366.#333399.#333333`.split(`.`),xt=`¤.$.£.¥.֏.؋.৳.฿.៛.₡.₦.₩.₪.₫.€.₭.₮.₱.₲.₴.₸.₹.₺.₼.₽.₾.₿`.split(`.`),St=RegExp(`[`+xt.join(``)+`]`),Ct=Object.freeze({1078:`af`,1052:`sq`,1118:`am`,5121:`ar_DZ`,15361:`ar_BH`,3073:`ar_EG`,2049:`ar_IQ`,11265:`ar_JO`,13313:`ar_KW`,12289:`ar_LB`,4097:`ar_LY`,6145:`ar_MA`,8193:`ar_OM`,16385:`ar_QA`,1025:`ar_SA`,10241:`ar_SY`,7169:`ar_TN`,14337:`ar_AE`,9217:`ar_YE`,1067:`hy`,1101:`as`,2092:`az_AZ`,1068:`az_AZ`,1069:`eu`,1059:`be`,2117:`bn`,1093:`bn_IN`,5146:`bs`,1026:`bg`,1109:`my`,1027:`ca`,2052:`zh_CN`,3076:`zh_HK`,5124:`zh_MO`,4100:`zh_SG`,1028:`zh_TW`,1050:`hr`,1029:`cs`,1030:`da`,1125:`dv`,2067:`nl_BE`,1043:`nl_NL`,1126:`bin`,3081:`en_AU`,10249:`en_BZ`,4105:`en_CA`,9225:`en_CB`,2057:`en_GB`,16393:`en_IN`,6153:`en_IE`,8201:`en_JM`,5129:`en_NZ`,13321:`en_PH`,7177:`en_ZA`,11273:`en_TT`,1033:`en_US`,12297:`en_ZW`,1061:`et`,1071:`mk`,1080:`fo`,1065:`fa`,1124:`fil`,1035:`fi`,2060:`fr_BE`,11276:`fr_CM`,3084:`fr_CA`,9228:`fr_CG`,12300:`fr_CI`,1036:`fr_FR`,5132:`fr_LU`,13324:`fr_ML`,6156:`fr_MC`,14348:`fr_MA`,10252:`fr_SN`,4108:`fr_CH`,7180:`fr`,1122:`fy_NL`,2108:`gd_IE`,1084:`gd`,1110:`gl`,1079:`ka`,3079:`de_AT`,1031:`de_DE`,5127:`de_LI`,4103:`de_LU`,2055:`de_CH`,1032:`el`,1140:`gn`,1095:`gu`,1279:`en`,1037:`he`,1081:`hi`,1038:`hu`,1039:`is`,1136:`ig_NG`,1057:`id`,1040:`it_IT`,2064:`it_CH`,1041:`ja`,1099:`kn`,1120:`ks`,1087:`kk`,1107:`km`,1111:`kok`,1042:`ko`,1088:`ky`,1108:`lo`,1142:`la`,1062:`lv`,1063:`lt`,2110:`ms_BN`,1086:`ms_MY`,1100:`ml`,1082:`mt`,1112:`mni`,1153:`mi`,1102:`mr`,1104:`mn`,2128:`mn`,1121:`ne`,1044:`no_NO`,2068:`no_NO`,1096:`or`,1045:`pl`,1046:`pt_BR`,2070:`pt_PT`,1094:`pa`,1047:`rm`,2072:`ro_MO`,1048:`ro_RO`,1049:`ru`,2073:`ru_MO`,1083:`se`,1103:`sa`,3098:`sr_SP`,2074:`sr_SP`,1072:`st`,1074:`tn`,1113:`sd`,1115:`si`,1051:`sk`,1060:`sl`,1143:`so`,1070:`sb`,11274:`es_AR`,16394:`es_BO`,13322:`es_CL`,9226:`es_CO`,5130:`es_CR`,7178:`es_DO`,12298:`es_EC`,17418:`es_SV`,4106:`es_GT`,18442:`es_HN`,2058:`es_MX`,19466:`es_NI`,6154:`es_PA`,15370:`es_PY`,10250:`es_PE`,20490:`es_PR`,1034:`es_ES`,14346:`es_UY`,8202:`es_VE`,1089:`sw`,2077:`sv_FI`,1053:`sv_SE`,1114:`syc`,1064:`tg`,1097:`ta`,1092:`tt`,1098:`te`,1054:`th`,1105:`bo`,1073:`ts`,1055:`tr`,1090:`tk`,1058:`uk`,1056:`ur`,2115:`uz_UZ`,1091:`uz_UZ`,1075:`ve`,1066:`vi`,1106:`cy`,1076:`xh`,1085:`yi`,1077:`zu`}),wt=/^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i,Tt={},j=(e,t=``)=>e.replace(/~/g,t).split(`;`),M=(e,t=0,n=0)=>(e.mmm||=t<1?e.mmmm.concat():e.mmmm.map(e=>{let n=e.slice(0,t%10);return n+(t<10||e===n?``:`.`)}),e.ddd||=n<1?e.dddd.concat():e.dddd.map(e=>{let t=e.slice(0,n%10);return t+(n<10||e===t?``:`.`)}),!e.mmm6&&e.mmmm6&&(e.mmm6=e.mmmm6),e),Et={group:`\xA0`,decimal:`.`,positive:`+`,negative:`-`,percent:`%`,exponent:`E`,nan:`NaN`,infinity:`∞`,ampm:j(`AM;PM`),mmmm6:j(`Muharram;Safar;Rabiʻ I;Rabiʻ II;Jumada I;Jumada II;Rajab;Shaʻban;Ramadan;Shawwal;Dhuʻl-Qiʻdah;Dhuʻl-Hijjah`),mmm6:j(`Muh.;Saf.;Rab. I;Rab. II;Jum. I;Jum. II;Raj.;Sha.;Ram.;Shaw.;Dhuʻl-Q.;Dhuʻl-H.`),mmmm:j(`January;February;March;April;May;June;July;August;September;October;November;December`),mmm:j(`Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec`),dddd:j(`Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday`),ddd:j(`Sun;Mon;Tue;Wed;Thu;Fri;Sat`),bool:j(`TRUE;FALSE`),preferMDY:!1};function Dt(e){let t=wt.exec(e);if(!t)throw SyntaxError(`Malformed locale: ${e}`);return{lang:t[1]+(t[2]?`_`+t[2]:``),language:t[1],territory:t[2]||``}}function Ot(e){if(typeof e==`number`)return Ct[65535&e]||null;let t=parseInt(e,16);return isFinite(t)&&Ct[65535&t]?Ct[65535&t]||null:wt.test(e)?e:null}function kt(e){let t=Ot(e),n=null;if(t){let e=Dt(t);n=Tt[e.lang]||Tt[e.language]||null}return n}function At(e){return Object.assign({},Et,e)}function N(e,t){let n=typeof t==`object`?t:Dt(t);return Tt[n.lang]=At(e),n.language===n.lang||Tt[n.language]||(Tt[n.language]=At(e)),Tt[n.lang]}var jt=At({group:`,`,preferMDY:!0});jt.isDefault=!0,N({group:`,`,ampm:j(`上午;下午`),mmmm:j(`一月;二月;三月;四月;五月;六月;七月;八月;九月;十月;十一月;十二月`),mmm:j(`1月;2月;3月;4月;5月;6月;7月;8月;9月;10月;11月;12月`),dddd:j(`~日;~一;~二;~三;~四;~五;~六`,`星期`),ddd:j(`周日;周一;周二;周三;周四;周五;周六`)},`zh_CN`);var Mt={group:`,`,ampm:j(`上午;下午`),mmmm:j(`1月;2月;3月;4月;5月;6月;7月;8月;9月;10月;11月;12月`),mmm:j(`1月;2月;3月;4月;5月;6月;7月;8月;9月;10月;11月;12月`),dddd:j(`~日;~一;~二;~三;~四;~五;~六`,`星期`),ddd:j(`周日;周一;周二;周三;周四;周五;周六`)};N({...Mt,nan:`非數值`,dddd:j(`~日;~一;~二;~三;~四;~五;~六`,`星期`)},`zh_TW`),N({...Mt,dddd:j(`~日;~一;~二;~三;~四;~五;~六`,`星期`)},`zh_HK`),N({...Mt,ampm:j(`午前;午後`),dddd:j(`日~;月~;火~;水~;木~;金~;土~`,`曜日`),ddd:j(`日;月;火;水;木;金;土`)},`ja`),N({group:`,`,ampm:j(`오전;오후`),mmmm:j(`1월;2월;3월;4월;5월;6월;7월;8월;9월;10월;11월;12월`),mmm:j(`1월;2월;3월;4월;5월;6월;7월;8월;9월;10월;11월;12월`),dddd:j(`일요일;월요일;화요일;수요일;목요일;금요일;토요일`),ddd:j(`일;월;화;수;목;금;토`)},`ko`),N({group:`,`,ampm:j(`ก่อนเที่ยง;หลังเที่ยง`),mmmm:j(`มกร~;กุมภาพันธ์;มีน~;เมษายน;พฤษภ~;มิถุนายน;กรกฎ~;สิงห~;กันยายน;ตุล~;พฤศจิกายน;ธันว~`,`าคม`),mmm:j(`ม.ค.;ก.พ.;มี.ค.;เม.ย.;พ.ค.;มิ.ย.;ก.ค.;ส.ค.;ก.ย.;ต.ค.;พ.ย.;ธ.ค.`),dddd:j(`วันอาทิตย์;วันจันทร์;วันอังคาร;วันพุธ;วันพฤหัสบดี;วันศุกร์;วันเสาร์`),ddd:j(`อา.;จ.;อ.;พ.;พฤ.;ศ.;ส.`)},`th`),N(M({decimal:`,`,ampm:j(`dop.;odp.`),mmmm:j(`ledna;února;března;dubna;května;června;července;srpna;září;října;listopadu;prosince`),mmm:j(`I;II;III;IV;V;VI;VII;VIII;IX;X;XI;XII`),dddd:j(`neděle;pondělí;úterý;středa;čtvrtek;pátek;sobota`),bool:j(`PRAVDA;NEPRAVDA`)},-1,2),`cs`),N(M({group:`.`,decimal:`,`,mmmm:j(`januar;februar;marts;april;maj;juni;juli;august;september;oktober;november;december`),dddd:j(`søn~;man~;tirs~;ons~;tors~;fre~;lør~`,`dag`),bool:j(`SAND;FALSK`)},13,13),`da`),N(M({group:`.`,decimal:`,`,ampm:j(`a.m.;p.m.`),mmmm:j(`januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december`),mmm:j(`jan.;feb.;mrt.;apr.;mei;jun.;jul.;aug.;sep.;okt.;nov.;dec.`),dddd:j(`zondag;maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag`),bool:j(`WAAR;ONWAAR`)},-1,2),`nl`),N({group:`,`,preferMDY:!0},`en`),N({group:`,`,preferMDY:!0},`en_US`),N({group:`,`},`en_AU`),N({group:`,`},`en_CA`),N({group:`,`},`en_GB`),N({group:`,`,mmm:j(`Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sept;Oct;Nov;Dec`)},`en_IE`),N(M({decimal:`,`,nan:`epäluku`,ampm:j(`ap.;ip.`),mmmm:j(`tammi~;helmi~;maalis~;huhti~;touko~;kesä~;heinä~;elo~;syys~;loka~;marras~;joulu~`,`kuuta`),mmm:j(`tammik.;helmik.;maalisk.;huhtik.;toukok.;kesäk.;heinäk.;elok.;syysk.;lokak.;marrask.;jouluk.`),dddd:j(`sunnun~;maanan~;tiis~;keskiviikkona;tors~;perjan~;lauan~`,`taina`),bool:j(`TOSI;EPÄTOSI`)},-1,2),`fi`);var Nt=M({group:` `,decimal:`,`,mmmm:j(`janvier;février;mars;avril;mai;juin;juillet;août;septembre;octobre;novembre;décembre`),mmm:j(`janv.;févr.;mars;avr.;mai;juin;juil.;août;sept.;oct.;nov.;déc.`),dddd:j(`~manche;lun~;mar~;mercre~;jeu~;vendre~;same~`,`di`),bool:j(`VRAI;FAUX`)},-1,13);N({...Nt},`fr`),N({...Nt,mmm:j(`janv.;févr.;mars;avr.;mai;juin;juill.;août;sept.;oct.;nov.;déc.`)},`fr_CA`),N({group:`'`,decimal:`.`,...Nt},`fr_CH`);var Pt=M({mmmm:j(`Januar;Februar;März;April;Mai;Juni;Juli;August;September;Oktober;November;Dezember`),mmm:j(`Jan.;Feb.;März;Apr.;Mai;Juni;Juli;Aug.;Sept.;Okt.;Nov.;Dez.`),dddd:j(`Sonn~;Mon~;Diens~;Mittwoch;Donners~;Frei~;Sams~`,`tag`),bool:j(`WAHR;FALSCH`)},-1,12);N({group:`.`,decimal:`,`,...Pt},`de`),N({group:`'`,decimal:`.`,...Pt},`de_CH`),N(M({group:`.`,decimal:`,`,ampm:j(`π.μ.;μ.μ.`),mmmm:j(`Ιανουαρ~;Φεβρουαρ~;Μαρτ~;Απριλ~;Μαΐου;Ιουν~;Ιουλ~;Αυγούστου;Σεπτεμβρ~;Οκτωβρ~;Νοεμβρ~;Δεκεμβρ~`,`ίου`),mmm:j(`Ιαν;Φεβ;Μαρ;Απρ;Μαΐ;Ιουν;Ιουλ;Αυγ;Σεπ;Οκτ;Νοε;Δεκ`),dddd:j(`Κυριακή;Δευτέρα;Τρίτη;Τετάρτη;Πέμπτη;Παρασκευή;Σάββατο`)},-1,3),`el`),N({decimal:`,`,ampm:j(`de.;du.`),mmmm:j(`január;február;március;április;május;június;július;augusztus;szeptember;október;november;december`),mmm:j(`jan.;febr.;márc.;ápr.;máj.;jún.;júl.;aug.;szept.;okt.;nov.;dec.`),dddd:j(`vasárnap;hétfő;kedd;szerda;csütörtök;péntek;szombat`),ddd:j(`V;H;K;Sze;Cs;P;Szo`),bool:j(`IGAZ;HAMIS`)},`hu`),N(M({group:`.`,decimal:`,`,ampm:j(`f.h.;e.h.`),mmmm:j(`janúar;febrúar;mars;apríl;maí;júní;júlí;ágúst;september;október;nóvember;desember`),dddd:j(`sunnu~;mánu~;þriðju~;miðviku~;fimmtu~;föstu~;laugar~`,`dagur`)},13,13),`is`),N(M({group:`.`,decimal:`,`,mmmm:j(`Januari;Februari;Maret;April;Mei;Juni;Juli;Agustus;September;Oktober;November;Desember`),dddd:j(`Minggu;Senin;Selasa;Rabu;Kamis;Jumat;Sabtu`)},3,3),`id`);var Ft=M({mmmm:j(`gennaio;febbraio;marzo;aprile;maggio;giugno;luglio;agosto;settembre;ottobre;novembre;dicembre`),dddd:j(`domenica;lunedì;martedì;mercoledì;giovedì;venerdì;sabato`),bool:j(`VERO;FALSO`)},3,3);N({group:`.`,decimal:`,`,...Ft},`it`),N({group:`'`,decimal:`.`,...Ft},`it_CH`);var It={decimal:`,`,ampm:j(`a.m.;p.m.`),mmmm:j(`januar;februar;mars;april;mai;juni;juli;august;september;oktober;november;desember`),mmm:j(`jan.;feb.;mar.;apr.;mai;jun.;jul.;aug.;sep.;okt.;nov.;des.`),dddd:j(`søn~;man~;tirs~;ons~;tors~;fre~;lør~`,`dag`),bool:j(`SANN;USANN`)};N(M({...It},-1,13),`nb`),N(M({...It},-1,13),`no`),N(M({decimal:`,`,mmmm:j(`stycznia;lutego;marca;kwietnia;maja;czerwca;lipca;sierpnia;września;października;listopada;grudnia`),dddd:j(`niedziela;poniedziałek;wtorek;środa;czwartek;piątek;sobota`),ddd:j(`niedz.;pon.;wt.;śr.;czw.;pt.;sob.`),bool:j(`PRAWDA;FAŁSZ`)},3,-1),`pl`);var Lt={group:`.`,decimal:`,`,mmmm:j(`janeiro;fevereiro;março;abril;maio;junho;julho;agosto;setembro;outubro;novembro;dezembro`),dddd:j(`domingo;segunda-feira;terça-feira;quarta-feira;quinta-feira;sexta-feira;sábado`),bool:j(`VERDADEIRO;FALSO`)};N(M(Lt,13,13),`pt`),N(M(Lt,13,13),`pt_BR`),N({decimal:`,`,nan:`не\xA0число`,mmmm:j(`января;февраля;марта;апреля;мая;июня;июля;августа;сентября;октября;ноября;декабря`),mmm:j(`янв.;февр.;мар.;апр.;мая;июн.;июл.;авг.;сент.;окт.;нояб.;дек.`),dddd:j(`воскресенье;понедельник;вторник;среда;четверг;пятница;суббота`),ddd:j(`вс;пн;вт;ср;чт;пт;сб`),mmmm6:j(`рамадан;шавваль;зуль-каада;зуль-хиджжа;мухаррам;раби-уль-авваль;раби-уль-ахир;джумад-уль-авваль;джумад-уль-ахир;раджаб;шаабан;рамадан`),mmm6:j(`рам.;шав.;зуль-к.;зуль-х.;мух.;раб. I;раб. II;джум. I;джум. II;радж.;шааб.;рам.`),bool:j(`ИСТИНА;ЛОЖЬ`)},`ru`),N(M({decimal:`,`,mmmm:j(`januára;februára;marca;apríla;mája;júna;júla;augusta;septembra;októbra;novembra;decembra`),dddd:j(`nedeľa;pondelok;utorok;streda;štvrtok;piatok;sobota`)},3,2),`sk`);var Rt={group:`.`,decimal:`,`,ampm:j(`a.\xA0m.;p.\xA0m.`),mmmm:j(`enero;febrero;marzo;abril;mayo;junio;julio;agosto;septiem~;octu~;noviem~;diciem~`,`bre`),mmm:j(`ene;feb;mar;abr;may;jun;jul;ago;sept;oct;nov;dic`),dddd:j(`domingo;lunes;martes;miércoles;jueves;viernes;sábado`),ddd:j(`dom;lun;mar;mié;jue;vie;sáb`),bool:j(`VERDADERO;FALSO`)},zt=j(`ene;feb;mar;abr;may;jun;jul;ago;sep;oct;nov;dic`),Bt=j(`ene.;feb.;mar.;abr.;may.;jun.;jul.;ago.;sept.;oct.;nov.;dic.`);N({...Rt},`es`),N({...Rt},`es_AR`),N({...Rt},`es_BO`),N({...Rt},`es_CL`),N({...Rt},`es_CO`),N({...Rt},`es_EC`),N({...Rt,mmm:zt,ampm:j(`a.m.;p.m.`)},`es_MX`),N({...Rt,mmm:Bt},`es_PY`),N({...Rt,mmm:Bt},`es_UY`),N({...Rt,mmm:Bt,mmmm:j(`enero;febrero;marzo;abril;mayo;junio;julio;agosto;setiembre;octubre;noviembre;diciembre`)},`es_VE`),N({decimal:`,`,ampm:j(`fm;em`),mmmm:j(`januari;februari;mars;april;maj;juni;juli;augusti;september;oktober;november;december`),mmm:j(`jan.;feb.;mars;apr.;maj;juni;juli;aug.;sep.;okt.;nov.;dec.`),dddd:j(`sön~;mån~;tis~;ons~;tors~;fre~;lör~`,`dag`),ddd:j(`sön;mån;tis;ons;tors;fre;lör`)},`sv`),N(M({group:`.`,decimal:`,`,ampm:j(`ÖÖ;ÖS`),mmmm:j(`Ocak;Şubat;Mart;Nisan;Mayıs;Haziran;Temmuz;Ağustos;Eylül;Ekim;Kasım;Aralık`),mmm:j(`Oca;Şub;Mar;Nis;May;Haz;Tem;Ağu;Eyl;Eki;Kas;Ara`),dddd:j(`Pazar;Pazartesi;Salı;Çarşamba;Perşembe;Cuma;Cumartesi`),ddd:j(`Paz;Pzt;Sal;Çar;Per;Cum;Cmt`),bool:j(`DOĞRU;YANLIŞ`)},3,-1),`tr`),N({group:`,`,ampm:j(`yb;yh`),mmmm:j(`Ionawr;Chwefror;Mawrth;Ebrill;Mai;Mehefin;Gorffennaf;Awst;Medi;Hydref;Tachwedd;Rhagfyr`),mmm:j(`Ion;Chwef;Maw;Ebr;Mai;Meh;Gorff;Awst;Medi;Hyd;Tach;Rhag`),dddd:j(`Dydd Sul;Dydd Llun;Dydd Mawrth;Dydd Mercher;Dydd Iau;Dydd Gwener;Dydd Sadwrn`),ddd:j(`Sul;Llun;Maw;Mer;Iau;Gwen;Sad`)},`cy`),N({group:`.`,decimal:`,`,mmmm:j(`yanvar;fevral;mart;aprel;may;iyun;iyul;avqust;sentyabr;oktyabr;noyabr;dekabr`),mmm:j(`yan;fev;mar;apr;may;iyn;iyl;avq;sen;okt;noy;dek`),dddd:j(`bazar;bazar ertəsi;çərşənbə axşamı;çərşənbə;cümə axşamı;cümə;şənbə`),ddd:j(`B.;B.e.;Ç.a.;Ç.;C.a.;C.;Ş.`)},`az`),N(M({decimal:`,`,mmmm:j(`студзеня;лютага;сакавіка;красавіка;мая;чэрвеня;ліпеня;жніўня;верасня;кастрычніка;лістапада;снежня`),dddd:j(`нядзеля;панядзелак;аўторак;серада;чацвер;пятніца;субота`),ddd:j(`нд;пн;аў;ср;чц;пт;сб`)},3,-1),`be`),N({decimal:`,`,ampm:j(`пр.об.;сл.об.`),mmmm:j(`януари;февруари;март;април;май;юни;юли;август;септември;октомври;ноември;декември`),mmm:j(`яну;фев;март;апр;май;юни;юли;авг;сеп;окт;ное;дек`),dddd:j(`неделя;понеделник;вторник;сряда;четвъртък;петък;събота`),ddd:j(`нд;пн;вт;ср;чт;пт;сб`),bool:j(`ИСТИНА;ЛОЖЬ`)},`bg`),N({group:`.`,decimal:`,`,mmmm:j(`de gener;de febrer;de març;d’abril;de maig;de juny;de juliol;d’agost;de setembre;d’octubre;de novembre;de desembre`),mmm:j(`de gen.;de febr.;de març;d’abr.;de maig;de juny;de jul.;d’ag.;de set.;d’oct.;de nov.;de des.`),dddd:j(`diumenge;dilluns;dimarts;dimecres;dijous;divendres;dissabte`),ddd:j(`dg.;dl.;dt.;dc.;dj.;dv.;ds.`),ampm:j(`a.\xA0m.;p.\xA0m.`)},`ca`),N(M({group:`,`,decimal:`.`,mmmm:j(`Enero;Pebrero;Marso;Abril;Mayo;Hunyo;Hulyo;Agosto;Setyembre;Oktubre;Nobyembre;Disyembre`),dddd:j(`Linggo;Lunes;Martes;Miyerkules;Huwebes;Biyernes;Sabado`)},3,3),`fil`),N({group:`,`,decimal:`.`,mmmm:j(`જાન્યુઆરી;ફેબ્રુઆરી;માર્ચ;એપ્રિલ;મે;જૂન;જુલાઈ;ઑગસ્ટ;સપ્ટેમ્બર;ઑક્ટોબર;નવેમ્બર;ડિસેમ્બર`),mmm:j(`જાન્યુ;ફેબ્રુ;માર્ચ;એપ્રિલ;મે;જૂન;જુલાઈ;ઑગસ્ટ;સપ્ટે;ઑક્ટો;નવે;ડિસે`),dddd:j(`રવિ~;સોમ~;મંગળ~;બુધ~;ગુરુ~;શુક્ર~;શનિ~`,`વાર`),ddd:j(`રવિ;સોમ;મંગળ;બુધ;ગુરુ;શુક્ર;શનિ`)},`gu`),N({group:`,`,decimal:`.`,ampm:j(`לפנה״צ;אחה״צ`),dddd:j(`~ראשון;~שני;~שלישי;~רביעי;~חמישי;~שישי;~שבת`,`יום `),ddd:j(`~א׳;~ב׳;~ג׳;~ד׳;~ה׳;~ו׳;שבת`,`יום `),mmmm:j(`ינואר;פברואר;מרץ;אפריל;מאי;יוני;יולי;אוגוסט;ספטמבר;אוקטובר;נובמבר;דצמבר`),mmm:j(`ינו׳;פבר׳;מרץ;אפר׳;מאי;יוני;יולי;אוג׳;ספט׳;אוק׳;נוב׳;דצמ׳`),mmmm6:j(`רמדאן;שוואל;ד׳ו אל־קעדה;ד׳ו אל־חיג׳ה;מוחרם;רביע אל־אוול;רביע א־ת׳אני;ג׳ומאדא אל־אולא;ג׳ומאדא א־ת׳אניה;רג׳ב;שעבאן;רמדאן`),mmm6:j(`רמדאן;שוואל;ד׳ו אל־קעדה;ד׳ו אל־חיג׳ה;מוחרם;רביע א׳;רביע ב׳;ג׳ומאדא א׳;ג׳ומאדא ב׳;רג׳ב;שעבאן;רמדאן`)},`he`),N(M({group:`.`,decimal:`,`,mmmm:j(`siječnja;veljače;ožujka;travnja;svibnja;lipnja;srpnja;kolovoza;rujna;listopada;studenoga;prosinca`),mmm:j(`sij;velj;ožu;tra;svi;lip;srp;kol;ruj;lis;stu;pro`),dddd:j(`nedjelja;ponedjeljak;utorak;srijeda;četvrtak;petak;subota`)},-1,3),`hr`),N({decimal:`,`,mmmm:j(`հունվարի;փետրվարի;մարտի;ապրիլի;մայիսի;հունիսի;հուլիսի;օգոստոսի;սեպտեմբերի;հոկտեմբերի;նոյեմբերի;դեկտեմբերի`),mmm:j(`հնվ;փտվ;մրտ;ապր;մյս;հնս;հլս;օգս;սեպ;հոկ;նոյ;դեկ`),dddd:j(`կիրակի;երկուշաբթի;երեքշաբթի;չորեքշաբթի;հինգշաբթի;ուրբաթ;շաբաթ`),ddd:j(`կիր;երկ;երք;չրք;հնգ;ուր;շբթ`)},`hy`),N(M({decimal:`,`,mmmm:j(`იანვარი;თებერვალი;მარტი;აპრილი;მაისი;ივნისი;ივლისი;აგვისტო;სექტემბერი;ოქტომბერი;ნოემბერი;დეკემბერი`),dddd:j(`კვირა;ორშაბათი;სამშაბათი;ოთხშაბათი;ხუთშაბათი;პარასკევი;შაბათი`)},3,3),`ka`),N(M({decimal:`,`,mmmm:j(`қаңтар;ақпан;наурыз;сәуір;мамыр;маусым;шілде;тамыз;қыркүйек;қазан;қараша;желтоқсан`),dddd:j(`жексенбі;дүйсенбі;сейсенбі;сәрсенбі;бейсенбі;жұма;сенбі`),ddd:j(`жс;дс;сс;ср;бс;жм;сб`)},13,-1),`kk`),N({group:`,`,mmmm:j(`ಜನವರಿ;ಫೆಬ್ರವರಿ;ಮಾರ್ಚ್;ಏಪ್ರಿಲ್;ಮೇ;ಜೂನ್;ಜುಲೈ;ಆಗಸ್ಟ್;ಸೆಪ್ಟೆಂಬರ್;ಅಕ್ಟೋಬರ್;ನವೆಂಬರ್;ಡಿಸೆಂಬರ್`),mmm:j(`ಜನವರಿ;ಫೆಬ್ರವರಿ;ಮಾರ್ಚ್;ಏಪ್ರಿ;ಮೇ;ಜೂನ್;ಜುಲೈ;ಆಗಸ್ಟ್;ಸೆಪ್ಟೆಂ;ಅಕ್ಟೋ;ನವೆಂ;ಡಿಸೆಂ`),dddd:j(`ಭಾನು~;ಸೋಮ~;ಮಂಗಳ~;ಬುಧ~;ಗುರು~;ಶುಕ್ರ~;ಶನಿ~`,`ವಾರ`),ddd:j(`ಭಾನು;ಸೋಮ;ಮಂಗಳ;ಬುಧ;ಗುರು;ಶುಕ್ರ;ಶನಿ`),ampm:j(`ಪೂರ್ವಾಹ್ನ;ಅಪರಾಹ್ನ`)},`kn`),N({decimal:`,`,mmmm:j(`sausio;vasario;kovo;balandžio;gegužės;birželio;liepos;rugpjūčio;rugsėjo;spalio;lapkričio;gruodžio`),mmm:j(`saus.;vas.;kov.;bal.;geg.;birž.;liep.;rugp.;rugs.;spal.;lapkr.;gruod.`),dddd:j(`sekmadienis;pirmadienis;antradienis;trečiadienis;ketvirtadienis;penktadienis;šeštadienis`),ddd:j(`sk;pr;an;tr;kt;pn;št`),ampm:j(`priešpiet;popiet`)},`lt`),N({decimal:`,`,mmmm:j(`janvāris;februāris;marts;aprīlis;maijs;jūnijs;jūlijs;augusts;septembris;oktobris;novembris;decembris`),mmm:j(`janv.;febr.;marts;apr.;maijs;jūn.;jūl.;aug.;sept.;okt.;nov.;dec.`),dddd:j(`svētdiena;pirmdiena;otrdiena;trešdiena;ceturtdiena;piektdiena;sestdiena`),ddd:j(`svētd.;pirmd.;otrd.;trešd.;ceturtd.;piektd.;sestd.`),ampm:j(`priekšpusdienā;pēcpusdienā`)},`lv`),N({group:`,`,decimal:`.`,mmmm:j(`ജനുവരി;ഫെബ്രുവരി;മാർച്ച്;ഏപ്രിൽ;മേയ്;ജൂൺ;ജൂലൈ;ഓഗസ്റ്റ്;സെപ്റ്റംബർ;ഒക്ടോബർ;നവംബർ;ഡിസംബർ`),mmm:j(`ജനു;ഫെബ്രു;മാർ;ഏപ്രി;മേയ്;ജൂൺ;ജൂലൈ;ഓഗ;സെപ്റ്റം;ഒക്ടോ;നവം;ഡിസം`),dddd:j(`ഞായറാഴ്ച;തിങ്കളാഴ്ച;ചൊവ്വാഴ്ച;ബുധനാഴ്ച;വ്യാഴാഴ്ച;വെള്ളിയാഴ്ച;ശനിയാഴ്ച`),ddd:j(`ഞായർ;തിങ്കൾ;ചൊവ്വ;ബുധൻ;വ്യാഴം;വെള്ളി;ശനി`)},`ml`),N({group:`,`,decimal:`.`,mmmm:j(`нэгдүгээ~;хоёрдугаа~;гуравдугаа~;дөрөвдүгээ~;тавдугаа~;зургаадугаа~;долоодугаа~;наймдугаа~;есдүгээ~;аравдугаа~;арван нэгдүгээ~;арван хоёрдугаа~`,`р сар`),mmm:j(`1~;2~;3~;4~;5~;6~;7~;8~;9~;10~;11~;12~`,`-р сар`),dddd:j(`ням;даваа;мягмар;лхагва;пүрэв;баасан;бямба`),ddd:j(`Ня;Да;Мя;Лх;Пү;Ба;Бя`),ampm:j(`ү.ө.;ү.х.`)},`mn`),N({group:`,`,decimal:`.`,mmmm:j(`जानेवारी;फेब्रुवारी;मार्च;एप्रिल;मे;जून;जुलै;ऑगस्ट;सप्टेंबर;ऑक्टोबर;नोव्हेंबर;डिसेंबर`),mmm:j(`जाने;फेब्रु;मार्च;एप्रि;मे;जून;जुलै;ऑग;सप्टें;ऑक्टो;नोव्हें;डिसें`),dddd:j(`रविवार;सोमवार;मंगळवार;बुधवार;गुरुवार;शुक्रवार;शनिवार`),ddd:j(`रवि;सोम;मंगळ;बुध;गुरु;शुक्र;शनि`)},`mr`),N(M({group:`,`,decimal:`.`,mmmm:j(`ဇန်နဝါရီ;ဖေဖော်ဝါရီ;မတ်;ဧပြီ;မေ;ဇွန်;ဇူလိုင်;ဩဂုတ်;စက်တင်ဘာ;အောက်တိုဘာ;နိုဝင်ဘာ;ဒီဇင်ဘာ`),mmm:j(`ဇန်;ဖေ;မတ်;ဧ;မေ;ဇွန်;ဇူ;ဩ;စက်;အောက်;နို;ဒီ`),dddd:j(`တနင်္ဂနွေ;တနင်္လာ;အင်္ဂါ;ဗုဒ္ဓဟူး;ကြာသပတေး;သောကြာ;စနေ`),ampm:j(`နံနက်;ညနေ`)},-1,0),`my`),N({group:`,`,decimal:`.`,mmmm:j(`ਜਨਵਰੀ;ਫ਼ਰਵਰੀ;ਮਾਰਚ;ਅਪ੍ਰੈਲ;ਮਈ;ਜੂਨ;ਜੁਲਾਈ;ਅਗਸਤ;ਸਤੰਬਰ;ਅਕਤੂਬਰ;ਨਵੰਬਰ;ਦਸੰਬਰ`),mmm:j(`ਜਨ;ਫ਼ਰ;ਮਾਰਚ;ਅਪ੍ਰੈ;ਮਈ;ਜੂਨ;ਜੁਲਾ;ਅਗ;ਸਤੰ;ਅਕਤੂ;ਨਵੰ;ਦਸੰ`),dddd:j(`ਐਤਵਾਰ;ਸੋਮਵਾਰ;ਮੰਗਲਵਾਰ;ਬੁੱਧਵਾਰ;ਵੀਰਵਾਰ;ਸ਼ੁੱਕਰਵਾਰ;ਸ਼ਨਿੱਚਰਵਾਰ`),ddd:j(`ਐਤ;ਸੋਮ;ਮੰਗਲ;ਬੁੱਧ;ਵੀਰ;ਸ਼ੁੱਕਰ;ਸ਼ਨਿੱਚਰ`),ampm:j(`ਪੂ.ਦੁ.;ਬਾ.ਦੁ.`)},`pa`),N({group:`.`,decimal:`,`,mmmm:j(`ianuarie;februarie;martie;aprilie;mai;iunie;iulie;august;septem~;octom~;noiem~;decem~`,`brie`),mmm:j(`ian.;feb.;mar.;apr.;mai;iun.;iul.;aug.;sept.;oct.;nov.;dec.`),dddd:j(`duminică;luni;marți;miercuri;joi;vineri;sâmbătă`),ddd:j(`dum.;lun.;mar.;mie.;joi;vin.;sâm.`),ampm:j(`a.m.;p.m.`)},`ro`),N(M({group:`.`,decimal:`,`,mmmm:j(`januar;februar;marec;april;maj;junij;julij;avgust;september;oktober;november;december`),mmm:j(`jan.;feb.;mar.;apr.;maj;jun.;jul.;avg.;sep.;okt.;nov.;dec.`),dddd:j(`nedelja;ponedeljek;torek;sreda;četrtek;petek;sobota`),ampm:j(`dop.;pop.`)},-1,13),`sl`),N(M({group:`.`,decimal:`,`,mmmm:j(`јануар;фебруар;март;април;мај;јун;јул;август;септембар;октобар;новембар;децембар`),dddd:j(`недеља;понедељак;уторак;среда;четвртак;петак;субота`)},3,3),`sr`),N({group:`,`,decimal:`.`,mmmm:j(`ஜனவரி;பிப்ரவரி;மார்ச்;ஏப்ரல்;மே;ஜூன்;ஜூலை;ஆகஸ்ட்;செப்டம்பர்;அக்டோபர்;நவம்பர்;டிசம்பர்`),mmm:j(`ஜன.;பிப்.;மார்.;ஏப்.;மே;ஜூன்;ஜூலை;ஆக.;செப்.;அக்.;நவ.;டிச.`),dddd:j(`ஞாயிறு;திங்கள்;செவ்வாய்;புதன்;வியாழன்;வெள்ளி;சனி`),ddd:j(`ஞாயி.;திங்.;செவ்.;புத.;வியா.;வெள்.;சனி`)},`ta`),N({group:`,`,decimal:`.`,mmmm:j(`జనవరి;ఫిబ్రవరి;మార్చి;ఏప్రిల్;మే;జూన్;జులై;ఆగస్టు;సెప్టెంబర్;అక్టోబర్;నవంబర్;డిసెంబర్`),mmm:j(`జన;ఫిబ్ర;మార్చి;ఏప్రి;మే;జూన్;జులై;ఆగ;సెప్టెం;అక్టో;నవం;డిసెం`),dddd:j(`ఆదివారం;సోమవారం;మంగళవారం;బుధవారం;గురువారం;శుక్రవారం;శనివారం`),ddd:j(`ఆది;సోమ;మంగళ;బుధ;గురు;శుక్ర;శని`)},`te`),N({decimal:`,`,mmmm:j(`січня;лютого;березня;квітня;травня;червня;липня;серпня;вересня;жовтня;листопада;грудня`),mmm:j(`січ.;лют.;бер.;квіт.;трав.;черв.;лип.;серп.;вер.;жовт.;лист.;груд.`),dddd:j(`неділю;понеділок;вівторок;середу;четвер;пʼятницю;суботу`),ddd:j(`нд;пн;вт;ср;чт;пт;сб`),ampm:j(`дп;пп`)},`uk`),N({group:`.`,decimal:`,`,mmmm:j(`~1;~2;~3;~4;~5;~6;~7;~8;~9;~10;~11;~12`,`tháng `),mmm:j(`~1;~2;~3;~4;~5;~6;~7;~8;~9;~10;~11;~12`,`thg `),dddd:j(`Chủ Nhật;Thứ Hai;Thứ Ba;Thứ Tư;Thứ Năm;Thứ Sáu;Thứ Bảy`),ddd:j(`CN;Th 2;Th 3;Th 4;Th 5;Th 6;Th 7`),ampm:j(`SA;CH`)},`vi`),N(M({group:`٬`,decimal:`٫`,ampm:j(`ص;م`),mmmm:j(`يناير;فبراير;مارس;أبريل;مايو;يونيو;يوليو;أغسطس;سبتمبر;أكتوبر;نوفمبر;ديسمبر`),dddd:j(`الأحد;الاثنين;الثلاثاء;الأربعاء;الخميس;الجمعة;السبت`),mmmm6:j(`رمضان;شوال;ذو القعدة;ذو الحجة;محرم;ربيع الأول;ربيع الآخرة;جمادى الأولى;جمادى الآخرة;رجب;شعبان;رمضان`)},0,0),`ar`),N({group:`,`,decimal:`.`,mmmm:j(`জানুয়ারী;ফেব্রুয়ারী;মার্চ;এপ্রিল;মে;জুন;জুলাই;আগস্ট;সেপ্টেম্বর;অক্টোবর;নভেম্বর;ডিসেম্বর`),mmm:j(`জানু;ফেব;মার্চ;এপ্রি;মে;জুন;জুল;আগ;সেপ্টেঃ;অক্টোঃ;নভেঃ;ডিসেঃ`),dddd:j(`রবিবার;সোমবার;মঙ্গলবার;বুধবার;বৃহস্পতিবার;শুক্রবার;শনিবার`),ddd:j(`রবি;সোম;মঙ্গল;বুধ;বৃহস্পতি;শুক্র;শনি`)},`bn`),N({group:`,`,decimal:`.`,mmmm:j(`जनवरी;फ़रवरी;मार्च;अप्रैल;मई;जून;जुलाई;अगस्त;सितंबर;अक्तूबर;नवंबर;दिसंबर`),mmm:j(`जन॰;फ़र॰;मार्च;अप्रैल;मई;जून;जुल॰;अग॰;सित॰;अक्तू॰;नव॰;दिस॰`),dddd:j(`रविवार;सोमवार;मंगलवार;बुधवार;गुरुवार;शुक्रवार;शनिवार`),ddd:j(`रवि;सोम;मंगल;बुध;गुरु;शुक्र;शनि`),ampm:j(`am;pm`)},`hi`);var Vt={overflow:`######`,dateErrorThrows:!1,dateErrorNumber:!0,bigintErrorNumber:!1,dateSpanLarge:!0,leap1900:!0,nbsp:!1,throws:!0,invalid:`######`,locale:``,ignoreTimezone:!1,grouping:[3,3],indexColors:!0,skipChar:``,repeatChar:``,digitChar:``};function P(e,t=0){if(typeof e!=`number`)return e;if(e<0)return-P(-e,t);if(t){let[n,r]=String(e).split(`e`),i=Math.round(Number(n+`e`+(Number(r??0)+t))),[a,o]=String(i).split(`e`);return Number(a+`e`+(Number(o??0)-t))}return Math.round(e)}var F=Math.floor;function Ht(e,t=!0){if(t&&e>=0){if(e===0)return[1900,1,0];if(e===60)return[1900,2,29];if(e<60)return[1900,e<32?1:2,(e-1)%31+1]}let n=e+68569+2415019,r=F(4*n/146097);n-=F((146097*r+3)/4);let i=F(4e3*(n+1)/1461001);n=n-F(1461*i/4)+31;let a=F(80*n/2447),o=n-F(2447*a/80);return n=F(a/11),[100*(r-49)+i+n|0,0|a+2-12*n,0|o]}function Ut(e,t=0,n=!0){let r=F(e);return t===6?function(e){if(e===60)throw Error(`#VALUE!`);if(e<=1)return[1317,8,29];if(e<60)return[1317,e<32?9:10,1+(e-2)%30];let t=10631/30,n=.1335,r=e+466935,i=F(r/10631);r-=10631*i;let a=F((r-n)/t);r-=F(a*t+n);let o=F((r+28.5001)/29.5);return o===13?[30*i+a,12,30]:[30*i+a,o,r-F(29.5001*o-29)]}(r):t===-1?function(e){return Ht(e+1462)}(r):Ht(r,n)}var Wt=Math.floor,Gt=86400;function Kt(e,t){let n=null;if(Array.isArray(e)){let[t,r,i,a,o,s]=e;n=Date.UTC(t,r==null?0:r-1,i??1,a||0,o||0,s||0)}else if(e instanceof Date&&(n=1*e,!t?.ignoreTimezone)){let t=new Date;t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n=1*t}if(n!=null&&isFinite(n)){let e=n/864e5;return e-(e<=-25509?-25568:-25569)}return null}function qt(e,t){let n=0|e,r=Gt*(e-n),i=Wt(r);r-i>.9999&&(i+=1,i===Gt&&(i=0,n+=1));let a=i<0?Gt+i:i,[o,s,c]=Ut(e,0,t?.leap1900);return[o,s,c,Wt(a/60/60)%60,Wt(a/60)%60,Wt(a)%60]}function Jt(e,t,n){return t[n+`_max`]=e.length,t[n+`_min`]=e.replace(/#/g,``).length,t}function I(e,t){typeof e==`string`?t.push({type:`string`,value:e}):t.push(e)}function Yt(e,t){let n=e?.type;return n===`hash`||n===`zero`||n===`qmark`||n===`digit`&&t===`den`}function Xt(e){let t=[],n={scale:1,percent:!1,text:!1,date:0,date_eval:!1,date_system:1,sec_decimals:0,general:!1,clock:24,int_pattern:[],frac_pattern:[],man_pattern:[],den_pattern:[],num_pattern:[],tokens:t},r=`int`,i=null,a=[],o,s=!1,c=-1,l=!1,u=``,d=!1;for(;++c<e.length&&!l;){let f=e[c],p=f.type||`error`;if(u+=f.raw,p===`general`)n.general=!0,I(f,t);else if(Yt(f,r)){let e=n[r+`_pattern`];Yt(o,r)||o?.type===`group`?(e.push((e.pop()||``)+f.value),i.num+=f.value):(e.push(f.value),i={type:r,num:f.value},I(i,t))}else if(p===`paren`)f.value===`(`&&(n.parens=!0),I(f.value,t);else if(p===`digit`)I(f.value,t);else if(p===`slash`){if(d=!0,n[r+`_pattern`].length){if(!i)throw SyntaxError(`Format pattern is missing a numerator`);n.fractions=!0,n.num_pattern.push(n[r+`_pattern`].pop()),i.type=`num`,r=`den`,I({type:`div`},t)}else I(f.value,t)}else if(p===`comma`)I(`,`,t);else if(p===`scale`)n.scale*=.001**f.raw.length;else if(p===`group`){if(r===`int`&&(n.grouping=!0),r===`den`)throw SyntaxError(`Cannot group denominator digits`)}else if(p===`space`)I(f,t);else{if(p===`break`){l=!0;break}if(p===`text`)n.text=!0,I(f,t);else if(p===`plus`||p===`minus`)I(f,t);else if(p===`duration`){let e=f.value.toLowerCase(),r=e[0],i={type:``,size:0,date:1,pad:e.length};r===`h`?(i.size=16,i.type=`hour-elap`):r===`m`?(i.size=32,i.type=`min-elap`):(i.size=64,i.type=`sec-elap`),n.date|=i.size,a.push(i),I(i,t)}else if(n.date&&p===`point`&&e[c+1]?.type===`zero`){let r=1;c++;let i=`0`;e[c+1]?.type===`zero`&&(i+=`0`,r=2,c++),e[c+1]?.type===`zero`&&(i+=`0`,r=3,c++),u+=i;let a=[64,128,256,512][r];n.date|=a,n.date_eval=!0,n.sec_decimals=Math.max(n.sec_decimals,r),I({type:`subsec`,size:a,decimals:r,date:1},t)}else if(p===`calendar`)s||(n.date_system=f.value===`B2`||f.value===`b2`?6:1);else if(p===`datetime`){let e={type:``,size:0,date:1},r=f.value.toLowerCase(),i=r[0];if(r===`y`||r===`yy`)e.size=2,e.type=`year-short`;else if(i===`y`||i===`e`)e.size=2,e.type=`year`;else if(r===`b`||r===`bb`)e.size=2,e.type=`b-year-short`;else if(i===`b`)e.size=2,e.type=`b-year`;else if(r===`d`||r===`dd`)e.size=8,e.type=`day`,e.pad=/dd/.test(r);else if(r===`ddd`||r===`aaa`)e.size=8,e.type=`weekday-short`;else if(i===`d`||i===`a`)e.size=8,e.type=`weekday`;else if(i===`h`)e.size=16,e.type=`hour`,e.pad=/hh/i.test(r);else if(i===`m`){r.length===3?(e.size=4,e.type=`monthname-short`):r.length===5?(e.size=4,e.type=`monthname-single`):r.length>=4&&(e.size=4,e.type=`monthname`);let t=a[a.length-1];!e.type&&t&&!t.used&&80&t.size&&(t.used=!0,e.size=32,e.type=`min`,e.pad=/mm/.test(r)),e.type||(e.size=4,e.type=`month`,e.pad=/mm/.test(r),e.indeterminate=!0)}else if(i===`s`){e.size=64,e.type=`sec`,e.pad=/ss/.test(r);let t=a[a.length-1];t&&32&t.size?e.used=!0:t?.indeterminate&&(delete t.indeterminate,t.size=32,t.type=`min`,e.used=!0)}n.date|=e.size,n.date_eval=!0,a.push(e),I(e,t)}else if(p===`ampm`)n.clock=12,n.date=16|n.date,n.date_eval=!0,f.short=f.value===`A/P`,I(f,t);else if(p===`string`||p===`escaped`||p===`char`)I(f.value,t);else if(p===`condition`)n.condition=[f.value[0],parseFloat(f.value[1]??`0`)];else if(p===`locale`){let e=f.value.split(`-`),r=e.length<2?``:e.slice(1).join(`-`),i=e[0];i&&I(i,t);let a=Ot(r);a&&(n.locale=a);let o=parseInt(r,16);isFinite(o)&&16711680&o&&(o>>16&255)==6&&(n.date_system=6),s=!0}else if(p===`color`){let e,t=f.value.toLowerCase();(e=/^color\s*(\d+)$/i.exec(t))&&(t=parseInt(e[1],10)),n.color=t}else if(p===`percent`)n.scale*=100,n.percent=!0,I(`%`,t);else if(p===`point`)I(f,t),n.date||(n.dec_fractions=!0,r=`frac`);else if(p===`exp`)n.exponential=!0,n.exp_plus=f.value.includes(`+`),r=`man`,I({type:`exp`,plus:n.exp_plus},t);else if(p===`skip`)I(f,t);else if(p===`fill`)I(f,t);else if(p!==`dbnum`&&p!==`natnum`)throw SyntaxError(p===`error`?`Illegal character: ${u}`:`Unknown token ${p} in ${u}`)}o=f}if(n.tokensUsed=c,n.pattern=u,/^((?:\[[^\]]+\])+)(;|$)/.test(n.pattern)&&!/^\[(?:h+|m+|s+)\]/.test(n.pattern)&&I({type:`text`},t),n.fractions&&n.dec_fractions||n.grouping&&!n.int_pattern.length||n.fractions&&n.exponential||n.fractions&&n.den_pattern.length*n.num_pattern.length===0||d&&!n.fractions&&!n.date||n.exponential&&(n.int_pattern.length||n.frac_pattern.length)*n.man_pattern.length===0)throw SyntaxError(`Invalid pattern: ${u}`);let f=n.int_pattern.join(``),p=n.man_pattern.join(``),m=n.frac_pattern.join(``);Jt(f,n,`int`);let h=0;for(let e=0;e<f.length;e++){let t=f[f.length-1-e];/^[0-9?]/.test(t)&&(h=e+1)}n.int_min=h,Jt(m,n,`frac`),Jt(p,n,`man`);let g=n.num_pattern.join(``),_=n.den_pattern[0]||``;if(_.includes(`?`)||g.includes(`?`)?(_=_.replace(/\d/g,`?`),_=_.replace(/#$/g,`?`),Jt(g,n,`num`),Jt(_,n,`den`),g=g.replace(/#$/g,`?`)):(Jt(g,n,`num`),Jt(_,n,`den`)),n.int_p=f,n.man_p=p,n.num_p=g,n.den_p=_,n.den_pattern.length&&(n.denominator=parseInt(n.den_pattern.join(``).replace(/\D/g,``),10)),n.integer=!!f.length,!n.integer&&!n.exponential&&m.length){let e=n.tokens.findIndex(e=>e.type===`point`);n.tokens.splice(e,0,{type:`int`,value:`#`}),n.integer=!0,n.int_pattern=[`#`],n.int_p=`#`}if(n.fractions)for(let e=0;e<t.length-1;e++){let n=t[e];if(n.type!==`string`&&n.type!==`space`)continue;let r=t[e+1].type;r===`num`?n.rule=`num+int`:r===`div`?n.rule=`num`:r===`den`&&(n.rule=`den`)}return n.grouping&&n.int_pattern.length>1&&(n.grouping=!1),n}function Zt(e,t=0){let n=Math.floor(Math.log10(e));return t>1?Math.floor(n/t)*t:n}function Qt(e,t=1){return t<-300?parseFloat(e.toExponential().split(`e`)[0]):e*10**-t}var $t={total:1,sign:0,period:0,int:1,frac:0},en=(e,t)=>e.replace(/\./,t.decimal),tn=(e,t,n)=>{let r=Math.abs(t),i;return i=e===1?e:P(e,5),[en(i+``,n),n.exponent,t<0?n.negative:n.positive,r<10?`0`:``,r]};function nn(e,t,n,r){let i=0|n;if(typeof n==`string`)e.push(n);else if(n===i)e.push(Math.abs(i));else{let t=Math.abs(n),i=Zt(t),a=Qt(t,i);a===10&&(a=1,i++);let o=function(e,t=!0){let n=Math.abs(e);if(!n)return $t;let r=t&&e<0?1:0,i=Math.floor(n),a=Math.floor(Math.log10(n)+1),o=0,s=0;if(i!==n){o=1;let e=String(P(n*10**-a,15)),t=e.length,r=!0,i=0;for(;i<=e.length;){if(e[i]===`.`){t--;break}e[i]===`0`&&r?t--:r=!1,i++}s=t-a,s<0&&(s=0,o=0)}return{total:r+Math.max(a,1)+o+s,digits:Math.max(a,0)+s,sign:r,period:o,int:Math.max(a,1),frac:s}}(t);if(i>=-4&&i<=-1){let n=P(t,9).toFixed(9).replace(/\.?0+$/,``);e.push(en(n,r))}else if(i===10){let n=P(t);n>=1e11?e.push(...tn(1,11,r)):e.push(n)}else if(Math.abs(i)<=9){if(o.total<=11){let n=P(t,9).toFixed(o.frac);e.push(en(n,r))}else i===9?e.push(P(t)):i>=0&&i<9?e.push(en(String(P(t,9-i)),r)):e.push(...tn(a,i,r))}else o.total>=12?e.push(...tn(a,i,r)):e.push(en(P(t,9).toFixed(o.frac),r))}return e}function rn(e,t=!1){return e===`0`?`0`:e===`?`?t?`\xA0`:` `:``}var an=[[Ve,/^General/i,0],[He,/^#/,0],[Ue,/^0/,0],[We,/^\?/,0],[Ge,/^\//,0],[Ye,/^;/,0],[Xe,/^@/,0],[Ze,/^\+/,0],[Qe,/^-/,0],[$e,/^\./,0],[et,/^ /,0],[tt,/^%/,0],[nt,/^[1-9]/,0],[rt,/^(?:B[12])/i,0],[it,/^B$/,0],[at,/^(?:[hH]+|[mM]+|[sS]+|[yY]+|[bB]+|[dD]+|[gG]+|[aA]{3,}|e+)/,0],[ot,/^(?:\[(h+|m+|s+)\])/i,1],[st,/^\[(<[=>]?|>=?|=)\s*(-?[.\d]+(?:[eE][+-]?\d+)?)?\]/,[1,2]],[ct,/^\[(DBNum[0-4]?\d)\]/i,1],[lt,/^\[(NatNum[0-4]?\d)\]/i,1],[ut,/^\[\$([^\]]+)\]/,1],[dt,/^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*\d+)\]/i,1],[ft,/^\[([^\]]+)\]/,1],[pt,/^(?:AM\/PM|am\/pm|A\/P)/,0],[mt,/^\\(.)/,1],[ht,/^"([^"]*?)"/,1],[gt,/^_(\\.|.)/,1],[`exp`,/^[Ee]([+-])/,1],[_t,/^\*(\\.|.)/,1],[vt,/^[()]/,0],[it,/^[EÈÉÊËèéêëĒēĔĕĖėĘęĚěȄȅȆȇȨȩNnÑñŃńŅņŇňǸǹ["*/\\_]/,0],[yt,/^./,0]],on=e=>{let t=(e||`\0`).charCodeAt(0);return t===63||t===35||t>=48&&t<=57};function sn(e){let t=0,n=[],r=[];for(;t<e.length;){let i=e.slice(t),a=0,o=/^(,+)(.)?/.exec(i);if(o){let i=o[1];a=i.length;let s=e[t-1]||``,c=!1,l=!1;on(s)?(c=!0,l=!0):s===`.`&&(l=!0);let u=o[2]||``;if(!c||u&&u!==`;`||(c=!1),l&&on(u)&&(l=!1),c&&!l)n.push({type:Ke,value:`,`,raw:i});else if(!c&&l)n.push({type:qe,value:`,`,raw:i});else if(c&&l){let e={type:qe,value:`,`,raw:i};n.push(e),r.push(e)}else n.push({type:Je,value:`,`,raw:i})}else{let e;for(let[t,r,o]of an){let s=r.exec(i);if(s){e={type:t,value:Array.isArray(o)?o.map(e=>s[e]):s[o||0],raw:s[0]},n.push(e),a=s[0].length;break}}r.length&&e.raw===`;`&&(r.length=0),r.length&&e.raw===`.`&&(r.length=0),r.length&&on(e.raw)&&(r.forEach(e=>e.type=Ke),r.length=0)}if(!a){let e=i[0];a=1,n.push({type:yt,value:e,raw:e})}t+=a}return n}var cn=e=>{let[t,n]=e.condition??[];n<0&&(t===`<`||t===`<=`||t===`=`)||n===0&&t===`<`||e.tokens.unshift({type:`minus`,volatile:!0})},ln=(e,t=null)=>{let n={};for(let t in e)n[t]=Array.isArray(e[t])?[...e[t]]:e[t];return t&&n.tokens.unshift(t),n.generated=!0,n};function un(e){let t=[],n,r=!1,i=null,a=0,o=!1,s=0,c=0,l=sn(e);do{if(o=Xt(l),(o.date||o.general)&&(o.int_pattern.length||o.frac_pattern.length||o.scale!==1||o.text))throw Error(`Illegal format`);if(o.condition&&(c++,r=!0),o.text){if(i)throw Error(`Unexpected partition`);i=o}o.locale&&(n=Ot(o.locale)),t.push(o),a=+(l[o.tokensUsed]?.type===`break`),l=l.slice(o.tokensUsed+a),s++}while(a&&s<4&&c<3);if(a)throw Error(`Unexpected partition`);if(c>2)throw Error(`Unexpected condition`);let u=t[3];if(u&&(u.int_pattern.length||u.frac_pattern.length||u.date))throw Error(`Unexpected partition`);if(r){t[0].condition||(t[0].condition=[`>`,0]);let e=t.length;if(e===1&&(t[1]=Xt(sn(`General`)),t[1].generated=!0),e<3){let e=t[0],n=t[1];if(cn(e),n.condition)cn(n);else{let t=e.condition;(t[0]===`=`||t[1]>=0&&(t[0]===`>`||t[0]===`>=`))&&n.tokens.unshift({type:`minus`,volatile:!0})}}else t.forEach(cn)}else{if(t.length<4&&i)for(let e=0,n=t.length;e<n;e++)t[e]===i&&t.splice(e,1);t.length<1&&i&&(t[0]=Xt(sn(`General`)),t[0].generated=!0);let e=t.length===1?t[0].color:void 0;if(t.length<2&&t.push(ln(t[0],{type:`minus`,volatile:!0})),t.length<3&&t.push(ln(t[0])),t.length<4){if(i)t.push(i);else{let n=Xt(sn(`@`));n.generated=!0,n.color=e,t.push(n)}}t[0].condition=[`>`,0],t[1].condition=[`<`,0],t[2].condition=null}return{pattern:e,partitions:t,locale:n}}function dn(e){return typeof e==`number`&&isFinite(e)&&e!==0?Number(e.toPrecision(15)):e}function fn(e,t){return dn(P(e,t))}function pn(e){let t=String(e),n=/^(-?)(\d)(?:\.(\d+))?e([+-]\d+)$/.exec(t);if(!n)return t;let r=n[1],i=n[2],a=n[3]||``,o=+n[4];if(o>=0){let e=o-a.length;return e>=0?r+i+a+`0`.repeat(e):r+i+a.slice(0,o)+`.`+a.slice(o)}return r+`0.`+`0`.repeat(-o-1)+i+a}var mn=Object.freeze({date:!1,time:!1});function hn(e){let t=0,n=!1;for(let r of function(e){try{return un(e)}catch(t){let n={tokens:[{type:`error`}],error:t.message};return{pattern:e,partitions:[n,n,n,n],error:t.message,locale:null}}}(e).partitions)if(r.date&&!r.generated){r.date_eval&&(n=!0);for(let e of r.tokens)e.date?t|=e.size:e.type===`ampm`&&(t|=16)}return n?{date:!!(14&t),time:!!(-15&t)}:mn}var gn=86400;function _n(e,t,n,r){let i=``,a=``,o=``,s=``,c=``,l=``,u=0,d=0;if(typeof e==`bigint`){if(!(e<=2**53-1&&e>=-(2**53-1)))return n.bigintErrorNumber?String(e):n.overflow;d=e=Number(e)}else d=Math.trunc(e);let f=0,p=0,m=1,h=0,g=0,_=0,v=0,y=0,b=0,x=0,S=r||jt;if(!t.text&&isFinite(t.scale)&&t.scale!==1&&(e=function(e){if(e===0)return e;let t=Math.ceil(Math.log10(e<0?-e:e)),n=10**(16-Math.floor(t));return isFinite(n)?Math.round(e*n)/n:0}(e*t.scale)),t.exponential){let n=Math.abs(e);n&&(u=Zt(n,t.int_max)),e&&!t.integer&&u++,n=Qt(n,u),t.int_max===1&&P(n,t.frac_max)===10&&(n=1,u++),e=e<0?-n:n,i+=Math.abs(u)}if(e=dn(e),t.integer){let n=Math.abs(fn(e,t.fractions?1:t.frac_max));l+=n<1?``:pn(Math.floor(n))}let ee=n.grouping[0]??3,te=n.grouping[1]??ee;t.dec_fractions&&(c=pn(fn(e,t.frac_max)).split(`.`)[1]||``);let C=!t.error&&(t.num_p.includes(`0`)||t.den_p.includes(`0`)),w=C;if(t.fractions){w=C||!!(e%1);let n=Math.abs(t.integer?e%1:e);if(n){if(w=!0,t.denominator&&isFinite(t.denominator))s+=t.denominator,o+=P(n*t.denominator),o===`0`&&(o=``,s=``,w=C);else{let e=function(e,t=2,n=2){let r=e<0?-1:1,i=10**(t||2),a=10**(n||2),o,s,c=Math.abs(e),l=0,u=0,d=0,f=1;if((e=c)%1==0)s=[e*r,1];else if(e<1e-19)s=[r,0x8ac7230489e80000];else if(e>0x8ac7230489e80000)s=[0x8ac7230489e80000*r,1];else{do if(c=1/(c-Math.floor(c)),o=f,f=f*Math.floor(c)+l,l=o,u=d,d=Math.floor(e*f+.5),d>=i||f>=a)return[r*u,l];while(Math.abs(e-d/f)>=1e-13&&c!==Math.floor(c));s=[r*d,f]}return s}(n,1/0,t.den_max);o+=e[0],s+=e[1],t.integer&&o===`0`&&(o=``,s=``,w=C)}}else e||t.integer||(w=!0,o=`0`,s=`1`);!t.integer||w||Math.trunc(e)||(l=`0`)}if(t.date){d=Math.trunc(e);let r=gn*(e-d);if(f=Math.floor(r),b=r-f,Math.abs(b)<1e-6?b=0:b>.9999&&(b=0,f+=1,f===gn&&(f=0,d+=1,x=1)),b){let e=512&t.date||256&t.date||128&t.date;(e===512&&b>.9995||e===256&&b>.995||e===128&&b>.95||!e&&b>=.5)&&(f++,b=0,f===gn&&(f=0,d+=1,x=1))}if(d||t.date_system){let r=Ut(x?d:e,t.date_system,n.leap1900);p=r[0],m=r[1],h=r[2]}if(f){let e=f<0?gn+f:f;y=Math.floor(e)%60,v=Math.floor(e/60)%60,_=Math.floor(e/60/60)%60}if(g=(6+d)%7,t.date_eval&&(T=e,ne=d+f/gn,n.dateSpanLarge?T<-694324||ne>=35830291:T<0||ne>=2958466)){if(n.dateErrorThrows)throw Error(`Date out of bounds`);return n.dateErrorNumber?nn(e<0?[S.negative]:[],0,e,S).join(``):n.overflow}}var T,ne;let re=rn(`?`,n.nbsp),ie=e=>n.digitChar?n.digitChar+e:re,ae=e=>n.digitChar&&e===`?`?n.digitChar+`0`:rn(e,n.nbsp);u<0?a=`-`:t.exp_plus&&(a=`+`);let E=[],oe=(e,t,n,r)=>{let i=!r&&e.length>t.length?n.length+e.length-t.length:n.length;e.length<t.length&&(r+=e.length-t.length);for(let t=0;t<i;t++)E.push(e[t+r]||ae(n[t]));return i},se=!1,ce=-1;for(let e=0,n=t.tokens.length;e<n;e++){let n=t.tokens[e];if(n.date&&/^(?:year|b-year|month|weekday|day)/.test(n.type||``)){ce=e;break}}let D={int:0,frac:0,man:0,num:0,den:0};for(let u=0,x=t.tokens.length;u<x;u++){let x=t.tokens[u],C=x.type,T=x.num?x.num.length:0;if(C===`string`)x.rule?x.rule===`num`?w?E.push(x.value.replace(/ /g,re)):(t.num_min>0||t.den_min>0)&&E.push(x.value.replace(/./g,e=>ie(e))):x.rule===`num+int`?w&&l?E.push(x.value.replace(/ /g,re)):t.den_min>0&&(l||t.num_min)&&E.push(x.value.replace(/./g,e=>ie(e))):x.rule===`den`&&(w?E.push(x.value.replace(/ /g,re)):(t.den_min>0||t.den_min>0)&&E.push(x.value.replace(/./g,e=>ie(e)))):E.push(x.value.replace(/ /g,re));else if(C===`space`)x.rule===`num+int`?(w||t.num_min||t.den_min)&&(l||t.num_min)&&E.push(re):E.push(re);else if(C===`error`)E.push(n.invalid);else if(C===`point`)E.push(t.date?x.value:S.decimal);else if(C===`general`)nn(E,0,e,S);else if(C===`exp`)E.push(S.exponent);else if(C===`minus`)x.volatile&&t.date||x.volatile&&(e>=0||typeof e!=`number`)||(x.volatile&&!t.fractions&&(t.integer||t.dec_fractions)?(e<0&&l&&l!==`0`||c)&&E.push(S.negative):E.push(S.negative));else if(C===`plus`)E.push(S.positive);else if(C===`text`)E.push(e);else if(C===`fill`)n.fillChar&&E.push(n.fillChar,x.value);else if(C===`skip`)n.skipChar?E.push(n.skipChar,x.value):E.push(n.nbsp?`\xA0`:` `);else if(C===`div`)w?E.push(`/`):t.num_min>0||t.den_min>0?E.push(ie(`/`)):E.push(rn(`#`,n.nbsp));else if(C===`int`){if(t.int_pattern.length===1){let e=t.int_p,n=``;for(let r=Math.max(t.int_min,l.length);r>0;r--){let i=l.charAt(l.length-r),a=i?``:e.charAt(e.length-r)||e[0],o=``;if(t.grouping){let e=r-1-ee;e>=0&&!(e%te)&&(o=i||a===`0`?S.group:ie(S.group))}n+=(i||ae(a))+o}E.push(n)}else D.int+=oe(l,t.int_p,x.num,D.int)}else if(C===`frac`){let e=D.frac;for(let t=0;t<T;t++)E.push(c[t+e]||ae(x.num[t]));D.frac+=T}else if(C===`man`)D[C]||D.man||E.push(a),D.man+=oe(i,t.man_p,x.num,D.man);else if(C===`num`)D.num+=oe(o,t.num_p,x.num,D.num);else if(C===`den`){let e=D.den;for(let t=0;t<T;t++){let n=s[t+e];if(!n){let e=x.num[t];`123456789`.includes(e)||se&&e===`0`?(se=!0,n=ie(e)):n=se||t!==T-1||e!==`0`||s?ae(e):`1`}E.push(n)}D.den+=T}else if(C===`year`)p<0&&E.push(S.negative),E.push(String(Math.abs(p)).padStart(4,`0`));else if(C===`year-short`){let e=p%100;E.push(e<10?`0`:``,e)}else if(C===`month`)E.push(x.pad&&m<10?`0`:``,m);else if(C===`monthname-single`)t.date_system===6?E.push(S.mmmm6[m-1].charAt(0)):E.push(S.mmmm[m-1].charAt(0));else if(C===`monthname-short`)t.date_system===6?E.push(S.mmm6[m-1]):E.push(S.mmm[m-1]);else if(C===`monthname`)t.date_system===6?E.push(S.mmmm6[m-1]):E.push(S.mmmm[m-1]);else if(x.type===`weekday-short`)E.push(S.ddd[g]);else if(C===`weekday`)E.push(S.dddd[g]);else if(C===`day`)E.push(x.pad&&h<10?`0`:``,h);else if(C===`hour`){let e=_%t.clock||(t.clock<24?t.clock:0);E.push(x.pad&&e<10?`0`:``,e)}else if(C===`min`)E.push(x.pad&&v<10?`0`:``,v);else if(C===`sec`)E.push(x.pad&&y<10?`0`:``,y);else if(C===`subsec`){E.push(S.decimal);let e=b.toFixed(t.sec_decimals);E.push(e.slice(2,2+x.decimals))}else if(C===`ampm`){let e=_<12?0:1;x.short&&!r?E.push(`AP`[e]):E.push(S.ampm[e])}else if(C===`hour-elap`){e<0&&E.push(S.negative);let t=ce!==-1&&u>ce?12:24*d+Math.floor(Math.abs(f)/3600);E.push(String(Math.abs(t)).padStart(x.pad,`0`))}else if(C===`min-elap`){e<0&&E.push(S.negative);let t=ce!==-1&&u>ce?720:1440*d+Math.floor(Math.abs(f)/60);E.push(String(Math.abs(t)).padStart(x.pad,`0`))}else if(C===`sec-elap`){e<0&&E.push(S.negative);let t=ce!==-1&&u>ce?43200:d*gn+Math.abs(f);E.push(String(Math.abs(t)).padStart(x.pad,`0`))}else if(C===`b-year`)E.push(p+543);else if(C===`b-year-short`){let e=(p+543)%100;E.push(e<10?`0`:``,e)}}return E.join(``)}var vn=Xt([{type:Xe,value:`@`,raw:`@`}]);function yn(e,t){for(let n=0;n<3;n++){let r=t[n];if(r){let t;if(r.condition){let n=r.condition[0],i=r.condition[1];n===`=`?t=e===i:n===`>`?t=e>i:n===`<`?t=e<i:n===`>=`?t=e>=i:n===`<=`?t=e<=i:n===`<>`&&(t=e!==i)}else t=!0;if(t)return r}}}function bn(e){return!!(e[0]?.percent||e[1]?.percent||e[2]?.percent||e[3]?.percent)}function xn(e){return!!(e[0]?.date||e[1]?.date||e[2]?.date||e[3]?.date)}function Sn(e){let[t,n,r,i]=e;return!(t&&!t.generated||n&&!n.generated||r&&!r.generated||!i?.text||i.generated)}var Cn={text:15,datetime:10.8,date:10.8,time:10.8,percent:10.6,currency:10.4,grouped:10.2,scientific:6,number:4,fraction:2,general:0,error:0},wn=[[`DMY`,1],[`DM`,2],[`MY`,3],[`MDY`,4],[`MD`,5],[`hmsa`,6],[`hma`,7],[`hms`,8],[`hm`,9]],Tn=Object.create({});function En(e,t=!1){e||=`General`;let n=Tn[e];if(!n)try{n=un(e),Tn[e]=n}catch(r){if(t)throw r;let i={tokens:[{type:`error`}],error:r.message};n={pattern:e,partitions:[i,i,i,i],error:r.message,locale:null}}return n}function Dn(e,t,n={}){let r=Object.assign({},Vt,n),i=En(e,r.throws);return function(e,t,n){let r=t.partitions,i=kt(t.locale||n.locale),a=r[3]?r[3]:vn;if(typeof e==`boolean`&&(e=(i||jt).bool[+!e]),e==null)return``;let o=typeof e==`bigint`;if(typeof e!=`number`&&!o)return _n(e,a,n,i);if(!o&&!isFinite(e)){let t=i||jt;return isNaN(e)?t.nan:(e<0?t.negative:``)+t.infinity}let s=yn(e,r);return s?_n(e,s,n,i):n.overflow}(Kt(t,r)??t,i,r)}function On(e,t,n){let r=Object.assign({},Vt,n),i=En(e,r.throws);return function(e,t,n){let r=t.partitions,i=r[3],a=null;return typeof e!=`number`&&typeof e!=`bigint`||!isFinite(e)||(i=yn(e,r)),i?.color&&(a=i.color),a&&typeof a==`number`&&n.indexColors&&(a=bt[a-1]||`#000`),a}(Kt(t,r)??t,i,r)}function kn(e,t={}){let n=En(e,!1);return n.info||=function(e,t=null){let[n,r]=e,i=n.frac_max,a={type:`general`,isDate:xn(e),isText:Sn(e),isPercent:bn(e),maxDecimals:n.general?9:i,scale:n.scale??1,color:0,parentheses:0,grouped:+!!n.grouping},o=!a.isDate&&!a.isText&&!n.error&&n.tokens.some(e=>e.type===`string`&&(t?e.value===t:St.test(e.value))),s=`G`,c=i>=0?Math.min(15,i):``,l=``,u=``;if(r?.color&&(u=`-`,a.color=1),n.parens&&(l=`()`,a.parentheses=1),o)s=`C`,a.type=`currency`;else if(n.error)a.type=`error`,a.maxDecimals=0;else if(a.isDate){let e=0,t=0,r=``;n.tokens.forEach(n=>{let i=n.type;/^(b-)?year/.test(i)?(r+=`Y`,t++):i.startsWith(`month`)?(r+=`M`,t++):/^(week)?day/.test(i)?(r+=`D`,t++):i!==`hour`&&i!==`min`&&i!==`sec`&&i!==`ampm`||(r+=i[0],e++)}),a.type=`date`,t&&e?a.type=`datetime`:!t&&e&&(a.type=`time`);let i=wn.find(e=>r.startsWith(e[0]));s=i?`D`:`G`,c=i?i[1]:``}else a.isText?(s=`G`,a.type=`text`,c=``,a.maxDecimals=0):n.general?(s=`G`,a.type=`general`,c=``):n.fractions?(s=`G`,a.type=`fraction`,c=``):n.exponential?(s=`S`,a.type=`scientific`):a.isPercent?(s=`P`,a.type=`percent`):n.grouping?(s=`,`,a.type=`grouped`):(n.int_max||i)&&(s=`F`,a.type=`number`);return a.code=s+c+u+l,a.level=Cn[a.type],Object.freeze(a)}(n.partitions,t?.currency),n.info}Object.freeze({AMPM:pt,BREAK:Ye,CALENDAR:rt,CHAR:yt,COLOR:dt,COMMA:Je,CONDITION:st,DATETIME:at,DBNUM:ct,DIGIT:nt,DURATION:ot,ERROR:it,ESCAPED:mt,EXP:`exp`,FILL:_t,GENERAL:Ve,GROUP:Ke,HASH:He,LOCALE:ut,MINUS:Qe,MODIFIER:ft,NATNUM:lt,PAREN:vt,PERCENT:tt,PLUS:Ze,POINT:$e,QMARK:We,SCALE:qe,SKIP:gt,SLASH:Ge,SPACE:et,STRING:ht,TEXT:Xe,ZERO:Ue});var L,R=`\\s*([-]?[0-9e]*[.]?[0-9]+)`,An=RegExp(`^rgb\\(${R},${R},${R}\\)$`,`i`),jn=RegExp(`^rgba\\(${R},${R},${R},${R}\\)$`,`i`),Mn=RegExp(`^lrgb\\(${R},${R},${R}\\)$`,`i`),Nn=RegExp(`^lrgba\\(${R},${R},${R},${R}\\)$`,`i`),Pn=RegExp(`^hsl\\(${R},${R},${R}\\)$`,`i`),Fn=RegExp(`^hsla\\(${R},${R},${R},${R}\\)$`,`i`),In=new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/),Ln=new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/),Rn=RegExp(`^index(\\d+)$`,`i`),zn=(e,t,n)=>[parseFloat(e),parseFloat(t),parseFloat(n)],Bn=(e,t=255)=>{let n=[...e];for(var r=0;r<e.length;r++)n[r]=e[r]/t;return n},Vn=(e,t=255)=>{let n=[...e];for(var r=0;r<e.length;r++)n[r]=e[r]*t;return n},Hn=(e,t=0)=>{let r=[...e];for(var i=0;i<e.length;i++)n.roundAccurately(e[i],t+8)%1==.5?r[i]=Math.floor(e[i]):r[i]=n.roundAccurately(e[i],t);return r},z=(e,t=!0)=>{let n=[...e],r=t?1:255;for(var i=0;i<e.length;i++)n[i]=Math.max(0,Math.min(r,e[i]));return n},Un=e=>Math.max(0,Math.min(1,e)),Wn=e=>((e%=360)<0&&(e-=360),e),Gn=e=>{let t=[...e];for(var n=0;n<e.length;n++)t[n]=qn(e[n]);return t},Kn=e=>{let t=[...e];for(var n=0;n<e.length;n++)t[n]=Jn(e[n]);return t},qn=e=>e<.04045?e/12.92:((e+.055)/1.055)**2.4,Jn=e=>e<.0031308?12.92*e:1.055*e**(1/2.4)-.055,Yn=e=>{let t=e[0],n=e[1],r=e[2];t%=360,t/=360,n/=100,r/=100;let i=r<.5?r*(1+n):r+n-n*r,a=2*r-i;return[Math.max(0,Xn(a,i,t+1/3)),Math.max(0,Xn(a,i,t)),Math.max(0,Xn(a,i,t-1/3))]},Xn=(e,t,n)=>(n<0&&(n+=1),n>1&&--n,6*n<1?e+6*(t-e)*n:2*n<1?t:3*n<2?e+6*(t-e)*(2/3-n):e),Zn=e=>{let t=e[0],n=e[1],r=e[2],i=Math.min(t,Math.min(n,r)),a=Math.max(t,Math.max(n,r)),o=0;a===i?o=0:a===t?o=(60*(n-r)/(a-i)+360)%360:a===n?o=60*(r-t)/(a-i)+120:a===r&&(o=60*(t-n)/(a-i)+240);let s=(a+i)/2,c=0;return c=a===i?0:s<=.5?(a-i)/(a+i):(a-i)/(2-a-i),[o,100*c,100*s]},B=0,Qn=1,$n=2,er=0,tr=1,nr=2,rr=0,ir=1,ar=2,or=(e,t)=>{let n=t/100;return((e,t)=>{let n=Gn(e);n[0]=t(n[0],n),n[1]=t(n[1],n),n[2]=t(n[2],n);let r=Kn(n);return r=z(r),r})(e,(e,t)=>e*n)},sr=2.55,cr=(e,t)=>{let r=Zn(e),i=r[2];var a,o;r[2]=n.roundAccurately((a=i,(o=t)>0?(a*sr*(1-o)+(255-255*(1-o)))/sr:o<0?a*sr*(1+o)/sr:a),3);let s=Yn(r);return s=z(s),s},lr=(e,t)=>{let n=Gn(e),r=t/100;for(var i=0;i<3;i++)n[i]=n[i]*r+(1-r);let a=Kn(n);return a=z(a),a},ur=(e,t,n)=>{let r=Zn(t),i=n/1;e===B&&(i=Wn(n)),r[e]=i;let a=Yn(r);return a=z(a),a},dr=(e,t,n)=>{let r=Zn(t);if(e===B){let e=n/360;r[B]=360*(r[B]/360+e),r[B]%=360,r[B]<0&&(r[B]-=360)}else{let t=n/.1;r[e]=.1*(r[e]/.1+t)}let i=Yn(r);return i=z(i),i},fr=(e,t,n)=>{let r=Zn(t),i=n/100;r[e]=r[e]*i,e===B&&(r[B]=Wn(r[B]));let a=Yn(r);return a=z(a),a},pr=(e,t,n,r)=>{let i=Gn(t),a=n/100;r===rr?i[e]=a:r===ir?i[e]+=a:r===ar&&(i[e]*=a);let o=Kn(i);return o=z(o),o},mr=e=>{let t=Gn(e),n=.213*t[er]+.715*t[tr]+.072*t[nr];t[0]=n,t[1]=n,t[2]=n;let r=Kn(t);return r=z(r),r},hr=e=>{let t=Zn(e);t[B]+=180,t[B]%=360,t[B]<0&&(t[B]-=360);let n=Yn(t);return n=z(n),n},gr=(e,t=!0)=>{let n=t?Gn(e):[...e],r=t?1:255;return n[0]=r-n[0],n[1]=r-n[1],n[2]=r-n[2],t&&(n=Kn(n)),n=z(n,t),n},_r=e=>{let t=[0,0,0];return t[0]=Jn(e[0]),t[1]=Jn(e[1]),t[2]=Jn(e[2]),z(t)},vr=e=>{let t=[0,0,0];return t[0]=qn(e[0]),t[1]=qn(e[1]),t[2]=qn(e[2]),z(t)},yr=(e,t,n,r=null)=>{let i=e=>{let t=e.toString(16);return t.length===1?`0`+t:t};return(r===null?``:i(Math.round(255*r)))+i(Number(e)).toUpperCase()+i(Number(t)).toUpperCase()+i(Number(n)).toUpperCase()},br=.2126,xr=.7152,Sr=.0722;(function(e){e.RGBA=class{constructor(e,t,n,r=1){this._private={red:e,green:t,blue:n,alpha:r}}get red(){return this._private.red}get green(){return this._private.green}get blue(){return this._private.blue}get alpha(){return this._private.alpha??1}toString(e=!0){return e&&this._private.alpha!==null?`rgba(${this.red},${this.green},${this.blue},${this.alpha})`:`rgb(${this.red},${this.green},${this.blue})`}isEqual(e){return!!e&&e.red===this.red&&e.green===this.green&&e.blue===this.blue&&e.alpha===this.alpha}isAlmostEqual(e){if(!e)return!1;let t=1.5;return!(Math.abs(e.red-this.red)>t)&&!(Math.abs(e.green-this.green)>t)&&!(Math.abs(e.blue-this.blue)>t)&&!(Math.abs(e.alpha-this.alpha)>t)}},e.HSLA=class{constructor(e,t,n,r){this._private={hue:e,sat:t,lum:n,alpha:r}}get hue(){return this._private.hue}get sat(){return this._private.sat}get lum(){return this._private.lum}get alpha(){return this._private.alpha??1}toString(e=!0){return e&&this._private.alpha!==null?`hsla(${this.hue},${this.sat},${this.lum},${this.alpha})`:`hsl(${this.hue},${this.sat},${this.lum})`}isEqual(e){return!!e&&e.hue===this.hue&&e.sat===this.sat&&e.lum===this.lum&&e.alpha===this.alpha}isAlmostEqual(e){if(!e)return!1;let t=1.5;return!(Math.abs(e.hue-this.hue)>t)&&!(Math.abs(e.sat-this.sat)>t)&&!(Math.abs(e.lum-this.lum)>t)&&!(Math.abs(e.alpha-this.alpha)>t)}};class t extends L.RGBA{toString(e=!0){return e&&this._private.alpha!==null?`#`+yr(this.red,this.green,this.blue,this.alpha??1).toUpperCase():`#`+yr(this.red,this.green,this.blue).toUpperCase()}}e.HEX=t})(L||={});var Cr=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,wr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Tr=function(e){if(!e)return null;e=e.replace(Cr,function(e,t,n,r){return t+t+n+n+r+r});let t=wr.exec(e);return t?new L.RGBA(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)):null},Er=`000000.FFFFFF.FF0000.00FF00.0000FF.FFFF00.FF00FF.00FFFF.000000.FFFFFF.FF0000.00FF00.0000FF.FFFF00.FF00FF.00FFFF.800000.008000.000080.808000.800080.008080.C0C0C0.808080.9999FF.993366.FFFFCC.CCFFFF.660066.FF8080.0066CC.CCCCFF.000080.FF00FF.FFFF00.00FFFF.800080.800000.008080.0000FF.00CCFF.CCFFFF.CCFFCC.FFFF99.99CCFF.FF99CC.CC99FF.FFCC99.3366FF.33CCCC.99CC00.FFCC00.FF9900.FF6600.666699.969696.003366.339966.003300.333300.993300.993366.333399.333333`.split(`.`),Dr=new Map;for(let e=0;e<Er.length;e++)Dr.set(e,Tr(Er[e]));var Or=new Map([[64,`windowText`],[65,`window`],[80,`infoBk`],[81,`infoText`]]);function kr(e){return Or.get(e)??null}function Ar(e){return Dr.get(e)??null}var jr=Object.freeze({0:`General`,1:`0`,2:`0.00`,3:`#,##0`,4:`#,##0.00`,5:`$#,##0_);($#,##0)`,6:`$#,##0_);[Red]($#,##0)`,7:`$#,##0.00_);($#,##0.00)`,8:`$#,##0.00_);[Red]($#,##0.00)`,9:`0%`,10:`0.00%`,11:`0.00E+00`,12:`# ?/?`,13:`# ??/??`,14:`m/d/yy`,15:`d-mmm-yy`,16:`d-mmm`,17:`mmm-yy`,18:`h:mm AM/PM`,19:`h:mm:ss AM/PM`,20:`h:mm`,21:`h:mm:ss`,22:`m/d/yy h:mm`,23:`General`,24:`General`,25:`General`,26:`General`,27:`m/d/yyyy`,28:`m/d/yyyy`,29:`m/d/yyyy`,30:`m/d/yyyy`,31:`m/d/yyyy`,32:`h:mm:ss`,33:`h:mm:ss`,34:`h:mm:ss`,35:`h:mm:ss`,36:`m/d/yyyy`,37:`#,##0_);(#,##0)`,38:`#,##0_);[Red](#,##0)`,39:`#,##0.00_);(#,##0.00)`,40:`#,##0.00_);[Red](#,##0.00)`,41:`_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)`,42:`_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)`,43:`_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)`,44:`_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)`,45:`mm:ss`,46:`[h]:mm:ss`,47:`mm:ss.0`,48:`##0.0E+0`,49:`@`,50:`m/d/yyyy`,51:`m/d/yyyy`,52:`m/d/yyyy`,53:`m/d/yyyy`,54:`m/d/yyyy`,55:`m/d/yyyy`,56:`m/d/yyyy`,57:`m/d/yyyy`,58:`m/d/yyyy`,59:`00000`,60:`0.00`,61:`#,##0`,62:`#,##0.00`,63:`$#,##0_);($#,##0)`,64:`$#,##0_);[Red]($#,##0)`,65:`$#,##0.00_);($#,##0.00)`,66:`$#,##0.00_);[Red]($#,##0.00)`,67:`0%`,68:`0.00%`,69:`# ?/?`,70:`# ??/??`,71:`m/d/yyyy`,72:`m/d/yyyy`,73:`d-mmm-yy`,74:`d-mmm`,75:`mmm-yy`,76:`h:mm`,77:`h:mm:ss`,78:`m/d/yyyy h:mm`,79:`mm:ss`,80:`[h]:mm:ss`,81:`mm:ss.0`}),Mr=Object.freeze({"en-US":{14:`m/d/yyyy`,22:`m/d/yyyy h:mm`},"en-GB":{14:`dd/mm/yyyy`,15:`dd-mmm-yy`,16:`dd-mmm`,20:`hh:mm`,21:`hh:mm:ss`,22:`dd/mm/yyyy hh:mm`},"de-DE":{14:`dd.mm.yyyy`,15:`dd. mmm yy`,16:`dd. mmm`,17:`mmm yy`,20:`hh:mm`,21:`hh:mm:ss`,22:`dd.mm.yyyy hh:mm`},"fr-FR":{14:`dd/mm/yyyy`,15:`dd-mmm-yy`,16:`dd-mmm`,20:`hh:mm`,21:`hh:mm:ss`,22:`dd/mm/yyyy hh:mm`},"es-ES":{14:`dd/mm/yyyy`,15:`dd-mmm-yy`,16:`dd-mmm`,22:`dd/mm/yyyy h:mm`},"ja-JP":{14:`yyyy/mm/dd`,15:`dd-mmm-yy`,16:`dd-mmm`,22:`yyyy/mm/dd h:mm`}}),Nr=(()=>{let e=new Map;for(let t of Object.keys(Mr)){let n=t.split(`-`)[0];e.has(n)||e.set(n,t)}return e})();function Pr(e,t){let n=t??`en-US`;return(Mr[n]??Mr[Nr.get(n.split(`-`)[0])??``])?.[e]}function Fr(e){return jr[e]}function Ir(e){return typeof e==`number`?jr[e]??`General`:e}var Lr=Object.freeze({"General Number":`General`,"General Date":`m/d/yyyy h:mm`,"Short Date":14,"Medium Date":15,"Long Date":`[$-F800]dddd\\,\\ mmmm\\ dd\\,\\ yyyy`,"Short Time":20,"Medium Time":18,"Long Time":`[$-F400]h:mm:ss\\ AM/PM;@`,"Short DateTime":22,Currency:`"$"#,##0.00_);[Red]\\("$"#,##0.00\\)`,Fixed:2,Standard:4,Percent:10,Scientific:11,"Yes/No":`"Yes";"Yes";"No";@`,"True/False":`"True";"True";"False";@`,"On/Off":`"Yes";"Yes";"No";@`}),Rr=(()=>{let e=new Map;for(let[t,n]of[[0,13],[15,21],[37,49]])for(let r=t;r<=n;r++)e.set(jr[r],r);return e.set(`m/d/yyyy`,14),e.set(`m/d/yyyy h:mm`,22),e})(),V=1462;function zr(e){let t=(6+Math.floor(e))%7;return t===0?7:t}function Br(e,t,n){let r=function(e,t,n){let r=Math.floor((14-t)/12),i=e+4800-r,a=t+12*r-3;return n+Math.floor((153*a+2)/5)+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)-32045}(e,t,1)-2415019;return(r<=60?r-1:r)+n-1}function Vr(e,t,n,r=0,i=0,a=0,o=0){let s=3600*r+60*i+a+o/1e3,c=Math.floor(s/86400);return Br(e,t,n)+c+(s-86400*c)/86400}function Hr(e){let t=86400*(e-Math.floor(e)),n=t-Math.floor(t);return(n>.9999||n<1e-6)&&(n=0),Math.round(1e3*n)}var Ur=.5/86400;function Wr(e,t=!1){return typeof e==`object`&&e&&(e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`)?!isNaN(e.getTime()):!t&&typeof e==`number`&&!(e<0||e>2958465)}function Gr(e,t){return t===2?e%4!=0||e%100==0&&e%400!=0?28:29:t===4||t===6||t===9||t===11?30:31}var Kr={year:0,month:0,day:0,hour:0,minute:0,second:0,millis:0,dow:0,serial:0};function qr(e,t=!1){let n=ni(e,t,Kr);return n?12*n.year+(n.month-1):NaN}function Jr(e,t=!1){let n=ni(e,t,Kr);return n?n.day:NaN}function Yr(e,t=!1){let n=ni(e,t,Kr);return!!n&&n.day===Gr(n.year,n.month)}function Xr(e,t,n=!1,r=!1){let i=ni(e,r,Kr);if(!i)return NaN;let a=12*i.year+(i.month-1)+t,o=Math.floor(a/12),s=a-12*o+1,c=Gr(o,s),l=Br(o,s,n?c:Math.min(i.day,c));return(r?l-V:l)+(e-Math.floor(e))}var Zr=e=>((e-1)%7+7)%7,Qr=e=>{let t=Zr(e);return t===0||t===6};function $r(e,t=!1){return Qr(Math.floor(e)+(t?V:0))}function ei(e,t=!1){let n=Math.floor(e)+(t?V:0);for(;Qr(n);)n++;let r=Zr(n)-1;return(n-r-2)/7*5+r}function ti(e,t,n=!1){let r=Math.floor(e),i=r+(n?V:0);if(t>0)for(;Qr(i);)i--;else for(;Qr(i);)i++;let a=Zr(i)-1,o=(i-a-2)/7*5+a+t,s=Math.floor(o/5);return 7*s+2+(o-5*s)-(n?V:0)+(e-r)}function ni(e,t=!1,n){if(typeof e!=`number`||isNaN(e)||e<0)return null;let r=t?e+V:e,i=r+Ur,a=Math.floor(i);if(a>2958465)return null;let[o,s,c]=qt(a,{leap1900:!0}),l=Math.floor(86400*(i-a)),u=l/3600|0,d=(l/60|0)%60,f=l%60,p=Hr(r),m=zr(a),h=!0===n?ri:n||void 0;return h?(h.year=o,h.month=s,h.day=c,h.hour=u,h.minute=d,h.second=f,h.millis=p,h.dow=m,h.serial=e,h):{year:o,month:s,day:c,hour:u,minute:d,second:f,millis:p,dow:m,serial:e}}var ri={year:0,month:0,day:0,hour:0,minute:0,second:0,millis:0,dow:0,serial:0};function ii(e,t=!1){if(!e)return null;let n=Vr(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millis);return t?n-V:n}function ai(e,t=!1){if(typeof e!=`number`||isNaN(e)||e<0)return null;let n=t?e+V:e;if(n>2958465)return null;let[r,i,a,o,s,c]=qt(n,{leap1900:!0});return new Date(r,i-1,a,o,s,c,Hr(n))}function oi(e,t=!1){if(isNaN(e))return null;let n=Vr(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds());return t?n-V:n}var si=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),ci=e=>e.map(si).join(`|`),li=/MMMM|MMM|MM|M|dd|d|yyyy|yyy|EEEE|EEE|[^MdyE]+/g,ui=``;function di(e,t,n){let r=t.regex.exec(e);if(!r)return null;let i={};for(let e=0;e<t.fields.length;e++){let a=r[e+1];switch(t.fields[e]){case`monthName`:{let e=n.get(a.toLowerCase());if(!e)return null;i.month=e;break}case`monthNum`:{let e=parseInt(a,10);if(e<1||e>12)return null;i.month=e;break}case`day`:{let e=parseInt(a,10);if(e<1||e>31)return null;i.day=e;break}case`year`:i.year=parseInt(a,10)}}return i.month===void 0?null:i}var fi=new Map;function pi(e){let t=fi.get(e);if(t)return t;let{date:n}=x(e),r=new Map,i=[];for(let e=0;e<12;e++){let t=n.monthsWide[e],a=[n.monthsAbbr[e],t];for(let e=3;e<t.length;e++)a.push(t.slice(0,e));for(let t of a){let n=t.toLowerCase();r.has(n)||(r.set(n,e+1),i.push(t))}}i.sort((e,t)=>t.length-e.length);let a={mmm:i,mmmm:i,ddd:n.weekdaysAbbr,dddd:n.weekdaysWide},o=function(e){let t=e,n=[];for(let e=0;e<t.length;e++){let r=t[e][0],i=!r.startsWith(`~`);i||(r=r.slice(1));let a=/yyy(?!y)/.test(r),o=r.indexOf(`yyyy`)>-1,s=r.indexOf(`.`)>-1,c=r.indexOf(`-`)>-1;n.push({parseFormat:r,numberFormat:t[e][1],todaysYear:!a&&!o,windowYear:!o,excelOnly:i,containsDot:s,containsDash:c}),a&&n.push({parseFormat:r.replace(/yyy/g,`yyyy`),numberFormat:t[e][1],todaysYear:!1,windowYear:!1,excelOnly:i,containsDot:s,containsDash:c})}return n}((s=function(e){let t=[];for(let n of e){let e=n===`d`||n===`D`?`d`:n===`M`||n===`L`?`M`:n===`y`||n===`Y`?`y`:null;e&&!t.includes(e)&&t.push(e)}let n=t.indexOf(`d`),r=t.indexOf(`M`);return{dayFirst:n!==-1&&r!==-1&&n<r,yearFirst:t[0]===`y`}}(n.short),[s.dayFirst?[`d-MM`,`d-mmm`]:[`MM-d`,`d-mmm`],[`MM-yyy`,`mmm-yy`],[`M-yyy`,`mmm-yy`],s.dayFirst?[`d-M-yyy`,`Short Date`]:[`M-d-yyy`,`Short Date`],[`yyyy-M-d`,`Short Date`],[`d.MMM`,`d-mmm`],[`d.MMMM`,`d-mmm`],[`d.MMM.yyy`,`d-mmm-yy`],[`d.MMMM.yyy`,`d-mmm-yy`],[`MMM.d`,`d-mmm`],[`MMMM.d`,`d-mmm`],[`MMM.yyy`,`mmm-yy`],[`MMMM.yyy`,`mmm-yy`],[`MMM dd, yyy`,`d-mmm-yy`],[`MMMM dd, yyy`,`d-mmm-yy`],[`~EEE, MMMM dd, yyy`,`[$-x-sysdate]ddd, mmmm dd, yyyy`],[`~EEEE, MMMM dd, yyy`,`[$-x-sysdate]dddd, mmmm dd, yyyy`]]));var s;let c=o.map(e=>function(e,t){let n=[],r=`^`;for(let i of e.match(li)??[])switch(i){case`MMMM`:n.push(`monthName`),r+=`(${ci(t.mmmm)})`;break;case`MMM`:n.push(`monthName`),r+=`(${ci(t.mmm)})`;break;case`MM`:case`M`:n.push(`monthNum`),r+=`(\\d{1,2})`;break;case`dd`:case`d`:n.push(`day`),r+=`(\\d{1,2})`;break;case`yyyy`:n.push(`year`),r+=`(\\d{3,4})`;break;case`yyy`:n.push(`year`),r+=`(\\d{1,2})`;break;case`EEEE`:n.push(`weekday`),r+=`(${ci(t.dddd)})`;break;case`EEE`:n.push(`weekday`),r+=`(${ci(t.ddd)})`;break;default:r+=si(i.replaceAll(`.`,ui))}return{regex:RegExp(r+`$`,`i`),fields:n}}(e.parseFormat,a)),l=function(e){let t=e.match(/[^a-zA-Z]/);return t?t[0]:`/`}(n.short),u=l===`/`||l===`-`?``:si(l),d=RegExp(`[/${u}]`,`g`),f=RegExp(`[-/ ${u}]`,`g`);return t={formats:o,compiled:c,monthByName:r,weekdaysAbbr:n.weekdaysAbbr,weekdaysWide:n.weekdaysWide,numericSep:d,wildcardSep:f},fi.set(e,t),t}var mi={year:0,month:1,day:0,hour:0,minute:0,second:0,millis:0};function hi(e,t){let n={...mi,...t},r=e.isDate1904();return n.year=r?1904:1900,r&&t.day===void 0&&(n.day=1),n.serial=ii(n,r),n.dow=zr(r?n.serial+V:n.serial),n}var gi=RegExp(`([0-9]{1,2})\\s*(P[M]?|A[M]?)\\s*$`,`i`),_i=RegExp(`([0-9]+)\\s*\\:$`,`i`),vi=RegExp(`(\\s*[0-9]{1,2})\\s+(P[M]?|A[M]?)\\s*$`,`i`),yi=new Map;function bi(e,t,n=!1,r=!1){if(!t||t.trim().length<2||t.indexOf(`:`)===-1&&t.match(vi)===null)return null;let{mid:i,last:a,lastMeridiem:o,split:s}=function(e){let t=yi.get(e);if(t)return t;let n=si(e);return t={mid:RegExp(`(\\s*[0-9]{1,4})\\s*(${n}\\s*[0-9]+)?\\s*\\:`,`i`),last:RegExp(`(\\s*[0-9]{1,4})\\s*(${n}\\s*[0-9]*)?\\s*$`,`i`),lastMeridiem:RegExp(`(\\s*[0-9]{1,4})\\s*(${n}\\s*[0-9]*)?\\s+(P[M]?|A[M]?)\\s*$`,`i`),split:RegExp(`^(\\s*[0-9]{1,4}\\s*(?:${n}\\s*[0-9]*)?(?:\\s+[AP]M?)?)\\s+(\\S.*)$`,`i`)},yi.set(e,t),t}(e.getLocaleProfile().decimal),c=null,l=null,u=null,d=!1,f=!1,p=`h:mm AM/PM`,m=[],h=t,g=null;do{let e=h.indexOf(`:`);e===-1?(m.push(h),h=null):(m.push(h.substring(0,e+1)),h=h.substring(e+1,h.length))}while(m.length<3&&h&&h.length>0);if((h?.length??0)>0)return null;let _=(e,t,n,r=!1)=>{let i=e.match(t);if(!i||r&&(i.index!==0||i[0].length!==e.length))return null;g===null&&(g=e.substring(0,i.index));let a=parseInt(i[1]);if(i[2]&&u===null){if(n){let e=parseFloat(i[2].substring(1,i[2].length));isNaN(e)||(l=e)}let e=parseFloat(`.`+i[2].substring(1,i[2].length).trim());isNaN(e)||(c=e),u=n}return a},v=(e,t,n=!1)=>{let r=e.match(t);if(!r||r.length!==3||n&&(r.index!==0||r[0].length!==e.length))return null;g===null&&(g=e.substring(0,r.index)),d=!0;let i=parseInt(r[1]);return f=r[2].charAt(0)===`p`||r[2].charAt(0)===`P`,i};m[m.length-1].trim().length===0&&m.pop();let y=[];if(m.length>0){let e=_(m[0],_i,!1);if(e===null&&(e=v(m[0],gi)),e===null)return null;y.push(e)}if(m.length>2){let e=_(m[1],i,!0,!0);if(e===null&&(e=v(m[0],vi)),e===null)return null;y.push(e)}let b=``;if(m.length>1){let e=m[m.length-1],t=e=>{let t=_(e,i,!1,!0);return t===null&&(t=_(e,a,!1,!0)),t===null&&(t=v(e,vi,!0)),t===null&&(t=(e=>{let t=e.match(o);if(!t||t.index!==0||t[0].length!==e.length)return null;if(g===null&&(g=``),d=!0,f=t[3].charAt(0)===`p`||t[3].charAt(0)===`P`,t[2]&&u===null){let e=parseFloat(`.`+t[2].substring(1).trim());isNaN(e)||(c=e),u=!1}return parseInt(t[1])})(e)),t},n=t(e);if(n===null&&r){let r=e.match(s);r&&(n=t(r[1]),n!==null&&(b=r[2]))}if(n===null)return null;y.push(n)}if((g??``).length>0&&!n)return null;if(!0===u&&(y.length===2&&y.splice(1,0,0),y[2]=l||0),y.length===2&&c!==null&&!0!==u&&y.unshift(0),d){if(y[0]>12||y[1]>=60||y[2]>=60)return null;y[0]===12?y[0]=f?12:0:f&&(y[0]+=12),c!==null&&(p=`mm:ss.0`)}else p=m.length>2?`h:mm:ss`:`h:mm`,y[0]>23&&(p=`[h]:mm:ss`),c!==null&&(p=`mm:ss.0`),y[1]>=60&&(p=`General`),y[2]>=60&&(p=`General`);return p!==`General`&&(y.length===1&&y.push(0),y.length===2&&(c===null?y.push(0):y.unshift(0))),{numberFormat:p,parsed:hi(e,{hour:y[0]??0,minute:y[1]??0,second:y[2]??0,millis:1e3*(c??0)}),leadingText:g,trailingText:b}}var xi=(e,t,n=null,r=!1,i=!1)=>{let a=new Date(n??Date.now()).getFullYear(),{formats:o,compiled:s,monthByName:c,weekdaysAbbr:l,weekdaysWide:u,numericSep:d,wildcardSep:f}=pi(e.getLocale()),p=t.replaceAll(/^ +| +$/g,``).replaceAll(/ +/g,` `);p=p.replaceAll(/ *([-/]) */g,`$1`);let m=p.replaceAll(f,ui),h=p.replaceAll(d,`-`),g=e.isDate1904();for(let e=0;e<o.length;e++){if(!o[e].excelOnly&&!i)continue;let t=p;o[e].containsDot?t=m:o[e].containsDash&&(t=h);let n=di(t,s[e],c);if(!n)continue;let r=n.year??a;o[e].windowYear&&n.year!==void 0&&(r=r<=29?2e3+r:1900+r),o[e].todaysYear&&(r=a);let d=n.day??1,f=r===1900&&n.month===2&&d===29,_=new Date(0);if(_.setFullYear(r,n.month-1,d),_.setHours(0,0,0,0),!f&&(_.getMonth()!==n.month-1||_.getDate()!==d))continue;let v=f?Br(1900,2,29)-(g?V:0):oi(_,g),y=+!g;if(o[e].windowYear||v>=y){if(o[e].parseFormat.indexOf(`EEE`)>-1){let e=Zr(Br(r,n.month,d)),i=t.toLowerCase();if(!i.includes(l[e].toLowerCase())&&!i.includes(u[e].toLowerCase()))return null}return{asSerialDate:v,asJSDate:_,numberFormat:o[e].numberFormat}}}if(!r){let r=t.replace(Si,`$1 $2`).replace(Ci,`$1 $2`);if(r!==t)return xi(e,r,n,!0,i)}return null},Si=/(\d)(\p{L})/gu,Ci=/(\p{L})(\d)/gu,wi=Object.freeze({isDate:!1,isTime:!1}),Ti=/(?:Short|Medium|Long) (?:Date|Time)/g,Ei=new Map;function Di(e){if(!e&&e!==0)return wi;let t=Ei.get(e);if(t)return t;let n=Ir(e),r=Lr[n];n=typeof r==`string`||typeof r==`number`?Ir(r):n.replace(Ti,e=>Ir(Lr[e]).split(`;`)[0]);let i=hn(n),a=i.date||i.time?Object.freeze({isDate:i.date,isTime:i.time}):wi;return Ei.set(e,a),a}function Oi(e){return Di(e).isDate}function ki(e){return Di(e).isTime}function Ai(e,t,n=!1){let r=t,i=bi(e,t,!0,!0);if(i){let e=i.leadingText.trim(),t=i.trailingText.trim();if(e.length>0&&t.length>0)return null;r=e.length>0?e:t}let a=null;if(r.trim().length>0&&(a=xi(e,r),!a&&n)||(!a&&i&&(i.leadingText.trim().length>0||i.trailingText.trim().length>0)&&(i=null),!a&&!i))return null;let o=0;return a&&(o+=a.asSerialDate),i&&(o+=i.parsed.serial),o}function ji(e){if(typeof e==`number`)return Fr(e)??`General`;let t=Lr[e];return t===void 0?e:typeof t==`number`?Fr(t)??`General`:t}var Mi=Object.freeze({leap1900:!0,dateSpanLarge:!1,dateErrorThrows:!0,dateErrorNumber:!1,throws:!0,indexColors:!1}),Ni=class{constructor(){this.key=`numfmt`}format(e,t,n){let r=n?.date1904??!1,i=n?.locale,a=e;if(Lr[a]!==void 0&&(a=Lr[a]),typeof a==`number`&&(a=Pr(a,i)??a),typeof t==`number`){let e=Hi(a,t,{date1904:r,locale:i});if(e!==null)return{text:e.fmt,color:null,fills:null,skips:null}}typeof a==`number`&&(a=Fr(a)??`General`);let o=this.isDateFormat(a)||this.isTimeFormat(a),s=t;if(o&&typeof s==`number`){if(s<0||s>=2958466)return{text:null,color:null,fills:null,skips:null};r&&(s+=1462)}let c={...Mi,locale:i},l,u=null,d=null;try{if(n?.placeholders){let e=Dn(a,s,{...c,nbsp:!0,skipChar:``,fillChar:``,digitChar:``}),t=``;for(let n=0;n<e.length;n++){let r=e[n];r===``||r===``?((d??=[]).push({offset:t.length,char:e[n+1]??` `}),n++):r===``?((u??=[]).push({offset:t.length,char:e[n+1]??` `}),n++):t+=r}l=t}else l=Dn(a,s,c)}catch(e){if(o&&this.isValidFormat(a))return{text:null,color:null,fills:null,skips:null};throw e}let f=null;if(n?.placeholders){let e=On(a,s,c);e!=null&&(f=Wi(typeof e==`number`?`color${e}`:String(e)))}return{text:l,color:f,fills:u,skips:d}}isDateFormat(e){return Oi(e)}isTimeFormat(e){return ki(e)}isFractionFormat(e){return Qi(Ir(e))}adjustDecimalPlaces(e,t){return function(e,t){if(!e&&e!==0)return``;let n=Ir(e),r=(e,t)=>{let n=e||``,r=n.length,i=r===0||n.endsWith(`.`)?`0`:n.charAt(r-1);return t<0?(n=n.substring(0,Math.max(0,r+t)),n===`.`&&(n=``)):(n.startsWith(`.`)||(n+=`.`),n+=i.repeat(t)),n},i=(e,t)=>{if(e===`General`)return t>0?`0`+r(``,t):e;if(Qi(e))return e;let n=e,i=-1,a=-1,o=n.indexOf(`E`);if(o>=0&&(n=n.substring(0,o)),i=n.indexOf(`.`),i>=0){n=n.substring(i,n.length);let t=n&&n.match(/([.]{1}[0,#]+)/);if(!t)return e;n=t[1],a=i+n.length}else{if(t<=0)return e;i=n.lastIndexOf(`0`),i<0&&(i=n.lastIndexOf(`#`)),i>=0&&(i+=1),a=i,n=``}return i===-1?e:(n=r(n,t),e.substring(0,i)+n+e.substring(a,e.length))},a=[],o=Ri(n);for(let e=0;e<o.length;e++)a.push(i(o[e].trim(),t));return a.join(`;`)}(e,t)}getFormatInfo(e){try{return kn(ji(e))}catch{return null}}getFormatDateInfo(e){try{let t=ji(e);return kn(t).isDate?function(e){let t=En(e,!1);return t.dateInfo||=function(e){let[t]=e;return{year:!!(2&t.date),month:!!(4&t.date),day:!!(8&t.date),hours:!!(16&t.date),minutes:!!(32&t.date),seconds:!!(64&t.date),clockType:t.clock===12?12:24}}(t.partitions),t.dateInfo}(t):null}catch{return null}}isValidFormat(e){try{return function(e){try{return En(e,!0),!0}catch{return!1}}(ji(e))}catch{return!1}}get isIFormatEngine(){return!0}},Pi=null;function Fi(){return Pi??=new Ni}var Ii=/^\[\$-(.*?)\]/i,Li=1462;function Ri(e){let t=[],n=``;for(let r=0;r<e.length;r++){let i=e[r];if(i===`"`){for(n+=i,r++;r<e.length&&e[r]!==`"`;)n+=e[r++];r<e.length&&(n+=e[r])}else if(i===`[`){for(n+=i,r++;r<e.length&&e[r]!==`]`;)n+=e[r++];r<e.length&&(n+=e[r])}else i===`\\`?(n+=i,r+1<e.length&&(n+=e[++r])):i===`;`?(t.push(n),n=``):n+=i}return t.push(n),t}function zi(e,t,n){return Dn(Pr(e,n?.locale)??Fr(e)??`General`,n?.date1904?t+Li:t,{leap1900:!0,locale:n?.locale})}function Bi(e,t,n){let r=!(!n||!n.onSpacingChar&&!n.onRepeatChar&&n.spacingCharacter===void 0),i=Fi().format(e,t,{date1904:n?.date1904??!1,locale:n?.locale,placeholders:r});if(!r)return i.text??``;let a=i.skips??[],o=i.fills??[];if(n.onRepeatChar)for(let e of o)n.onRepeatChar(e.offset,e.char);let s=i.text??``;if(n.spacingCharacter!==``&&a.length){let e=``,t=0;for(let r=0;r<a.length;r++){let i=a[r];e+=s.slice(t,i.offset)+(n.spacingCharacter??` `),t=i.offset,n.onSpacingChar&&n.onSpacingChar(i.offset+r,i.char)}s=e+s.slice(t)}else if(n.onSpacingChar)for(let e of a)n.onSpacingChar(e.offset,e.char);return s}function Vi(e,t,n,r){return Hi(t,n,{...r,date1904:e?.isDate1904()??!1,locale:e?.getLocale()??void 0})}function Hi(e,t,n){if(typeof t!=`number`||t>2958465||t<0)return null;let r=ai(t,n?.date1904??!1),i=n?.locale??`en-US`,a=!1,o=e,s=-1;if(o===`Short DateTime`&&(o=22),typeof o==`number`)switch(o){case 14:o=Pr(14,i)===void 0?new Intl.DateTimeFormat(i).format(r):zi(14,t,{...n,locale:i}),a=!0;break;case 22:o=Pr(22,i)===void 0?new Intl.DateTimeFormat(i).format(r)+` `+zi(20,t,n):zi(22,t,{...n,locale:i}),a=!0}else{let e=Ii.exec(o);if(e&&e[1]){let t=e[1].toUpperCase();t===`F800`?o=`Long Date`:t===`F400`&&(o=`Long Time`)}if((s=o.indexOf(`Short Date`))!==-1){let e=Pr(14,i)===void 0?new Intl.DateTimeFormat(i).format(r):zi(14,t,{...n,locale:i});o=o.substring(0,s)+e+o.substring(s+10),a=!0}if((s=o.indexOf(`Medium Date`))!==-1){let e=zi(15,t,n);o=o.substring(0,s)+e+o.substring(s+11),a=!0}if((s=o.indexOf(`Long Date`))!==-1){let e=new Intl.DateTimeFormat(i,{dateStyle:`full`}).format(r);o=o.substring(0,s)+e+o.substring(s+9),a=!0}if((s=o.indexOf(`Short Time`))!==-1){let e=zi(20,t,n);o=o.substring(0,s)+e+o.substring(s+10),a=!0}if((s=o.indexOf(`Medium Time`))!==-1){let e=zi(18,t,n);o=o.substring(0,s)+e+o.substring(s+11),a=!0}if((s=o.indexOf(`Long Time`))!==-1){let e=new Intl.DateTimeFormat(i,{timeStyle:`medium`}).format(r);o=o.substring(0,s)+e+o.substring(s+9),a=!0}}return a?{fmt:o,date:r}:null}var Ui=Object.freeze({black:0,white:1,red:2,green:3,blue:4,yellow:5,magenta:6,cyan:7});function Wi(e){let t=null;if((e=e.toLowerCase()).startsWith(`color`)){let n=parseInt(e.substring(5));n>=0&&n<=56&&(t=`Index${n+7}`)}if(!t){let n=Ui[e];n!==void 0&&(t=Ar(n).toString())}return t}var Gi=`=`,Ki=`<>`,qi=`>`,Ji=`<`,Yi=`>=`,Xi=`<=`,Zi=new Map;Zi.set(Gi,(e,t)=>e===t),Zi.set(Ki,(e,t)=>e!==t),Zi.set(qi,(e,t)=>e>t),Zi.set(Ji,(e,t)=>e<t),Zi.set(Yi,(e,t)=>e>=t),Zi.set(Xi,(e,t)=>e<=t),Object.freeze({op:Yi,comp:0}),Object.freeze({op:Ji,comp:0}),Object.freeze({op:qi,comp:0}),Object.freeze({op:Gi,comp:0});function Qi(e){return!(!e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)&&!e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))}function $i(e){return!!e&&(e===49||e===`@`||typeof e!=`number`&&(Fi().getFormatInfo(e)?.isText??!1))}var ea={Text:`text`,Repeat:`repeat`,Spacing:`spacing`},ta=Object.freeze({formatValue:function(e,t,n,r){return Bi(t,n,{...r,date1904:e?.isDate1904()??!1,locale:e?.getLocale()??void 0})},isFractionFormat:e=>Fi().isFractionFormat(e),adjustDecimalPlaces:(e,t)=>Fi().adjustDecimalPlaces(e,t),getFormatInfo:e=>Fi().getFormatInfo(e),getFormatDateInfo:e=>Fi().getFormatDateInfo(e),isValidFormat:e=>Fi().isValidFormat(e)});function na(e){return e===14?`Short Date`:e===22?`Short DateTime`:jr[e]??null}function ra(e){if(typeof e==`number`)return e;let t=e,n=Lr[e];return n&&(t=n),typeof t==`number`?t:(r=t,Rr.get(r)??t);var r}var ia=[{numberFormat:`General`,formatType:A.General,primary:1},{numberFormat:`0`,formatType:A.Number,regMatch:/^0[.]{0,1}[0]*$/,args:{decimalPlaces:0,separator:!1}},{numberFormat:`0.00`,formatType:A.Number,primary:2,args:{decimalPlaces:2,separator:!1}},{numberFormat:`#,##0.00`,formatType:A.Number,regMatch:/^#,##0[.]{0,1}[0]*$/,args:{decimalPlaces:2,separator:!0}},{numberFormat:`#,##0_);(#,##0)`,formatType:A.Number,args:{decimalPlaces:0,separator:!0}},{numberFormat:`#,##0_);[Red](#,##0)`,formatType:A.Number,args:{decimalPlaces:0,separator:!0}},{numberFormat:`#,##0.00_);(#,##0.00)`,formatType:A.Number,args:{decimalPlaces:2,separator:!0}},{numberFormat:`#,##0.00_);[Red](#,##0.00)`,formatType:A.Number,args:{decimalPlaces:2,separator:!0}},{numberFormat:`$#,##0.00`,formatType:A.Currency,primary:3,args:{decimalPlaces:2,currencySymbol:`$`}},{numberFormat:`$#,##0_);($#,##0)`,formatType:A.Currency,args:{decimalPlaces:0,currencySymbol:`$`}},{numberFormat:`$#,##0_);[Red]($#,##0)`,formatType:A.Currency,args:{decimalPlaces:0,currencySymbol:`$`}},{numberFormat:`$#,##0.00_);($#,##0.00)`,formatType:A.Currency,args:{decimalPlaces:2,currencySymbol:`$`}},{numberFormat:`$#,##0.00_);[Red]($#,##0.00)`,formatType:A.Currency,args:{decimalPlaces:2,currencySymbol:`$`}},{numberFormat:`_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)`,primary:4,formatType:A.Accounting},{numberFormat:`_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)`,formatType:A.Accounting},{numberFormat:`_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)`,formatType:A.Accounting},{numberFormat:`_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)`,formatType:A.Accounting},{numberFormat:`Short Date`,formatType:A.ShortDate,primary:5},{numberFormat:`d-mmm-yy`,formatType:A.MediumDate,primary:5.5},{numberFormat:`Long Date`,formatType:A.LongDate,primary:6},{numberFormat:`h:mm`,formatType:A.ShortTime,primary:7},{numberFormat:`h:mm AM/PM`,formatType:A.MediumTime,primary:7.5},{numberFormat:`Long Time`,formatType:A.LongTime,primary:8},{numberFormat:`_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)`,formatType:A.Comma,primary:9},{numberFormat:`0.00%`,formatType:A.Percentage,primary:10,args:{decimalPlaces:2},regMatch:/^^[0#?]*[.]{0,1}[0#?]*%*$/},{numberFormat:`0%`,formatType:A.Percentage,args:{decimalPlaces:0}},{numberFormat:`# ?/?`,formatType:A.Fraction,primary:11},{numberFormat:`# ??/??`,formatType:A.Fraction},{numberFormat:`0.00E+00`,formatType:A.Scientific,primary:12,args:{decimalPlaces:2},regMatch:/^[0#?]*[.]{0,1}[0#?]*E\+[0#?]*$/},{numberFormat:`##0.0E+0`,formatType:A.Custom,args:{decimalPlaces:0}},{numberFormat:`@`,formatType:A.Text,primary:13},{numberFormat:`d-mmm`,formatType:A.Custom},{numberFormat:`mmm-yy`,formatType:A.Custom},{numberFormat:`h:mm:ss`,formatType:A.Custom},{numberFormat:`m/d/yyyy h:mm`,formatType:A.Custom},{numberFormat:`Short DateTime`,formatType:A.Custom},{numberFormat:`mm:ss`,formatType:A.Custom},{numberFormat:`mm:ss.0`,formatType:A.Custom},{numberFormat:`[h]:mm:ss`,formatType:A.Custom}],aa=[{numberFormat:`00000`,formatType:A.Special,primary:11},{numberFormat:`00000-0000`,formatType:A.Special},{numberFormat:`[<=9999999]###-####;(###) ###-####`,formatType:A.Special},{numberFormat:`000-00-0000`,formatType:A.Special}],oa=[...ia,...aa],sa=new Map,ca=[];for(let e=0;e<ia.length;e++){let t=ia[e].numberFormat.toLowerCase();sa.set(t,ia[e]),ia[e].regMatch&&ca.unshift(ia[e])}for(let e=0;e<aa.length;e++){let t=aa[e].numberFormat.toLowerCase();sa.set(t,aa[e])}var la=[],ua=new Map;sa.forEach(function(e,t,r){e.primary&&(la.push(e),ua.set(n.textToKey(e.formatType),e.numberFormat))}),la.sort(function(e,t){return e.primary-t.primary});var da=sa.get(A.General.toLowerCase()),fa=class{lookupStyle(e){if(!e)return da;if(typeof e==`number`&&(e=na(e)),!e.toLowerCase)return console.warn(`Invalid numberFormat`,e),da;e=e.toLowerCase();let t=sa.get(e);if(t)return t;for(let n=0;!t&&n<ca.length;n++)ca[n].regMatch&&e.match(ca[n].regMatch)&&(t=ca[n]);return t||{numberFormat:e,formatType:A.Custom}}lookupPrimary(){return la}lookupByType(e){return oa.filter(t=>t.formatType===e)}lookupDefault(e){return ua.get(n.textToKey(e))}},pa=s({CATEGORIES:()=>ha,CURRENCY_SYMBOLS:()=>Sa,DATE_PRESETS:()=>Ca,FRACTION_PRESETS:()=>Ta,NEGATIVE_STYLES:()=>xa,SPECIAL_PRESETS:()=>Ea,TIME_PRESETS:()=>wa,build:()=>Aa,defaultCodeForCategory:()=>Da,isParametricCategory:()=>_a,parse:()=>Pa}),ma=new fa,ha=Object.freeze([`General`,`Number`,`Currency`,`Accounting`,`Date`,`Time`,`Percentage`,`Fraction`,`Scientific`,`Text`,`Special`,`Custom`]),ga=new Set([`Number`,`Currency`,`Accounting`,`Percentage`,`Scientific`]);function _a(e){return ga.has(e)}var va,ya,H,ba,xa=Object.freeze([{key:`minus`,label:`Minus sign`,red:!1,parens:!1},{key:`red`,label:`Red`,red:!0,parens:!1},{key:`parens`,label:`Parentheses`,red:!1,parens:!0},{key:`redParens`,label:`Red parentheses`,red:!0,parens:!0}]),Sa=Object.freeze([`$`,`€`,`£`,`¥`,`₹`,`₩`,`₽`,`₺`,`R$`,`CHF`,`kr`,`฿`]),Ca=Object.freeze([`Short Date`,`Long Date`,`m/d/yyyy`,`d-mmm-yy`,`d-mmm`,`mmm-yy`,`mmmm d, yyyy`,`m/d/yy h:mm`]),wa=Object.freeze([`h:mm AM/PM`,`h:mm:ss AM/PM`,`h:mm`,`h:mm:ss`,`Long Time`,`[h]:mm:ss`,`mm:ss`,`mm:ss.0`]),Ta=Object.freeze([`# ?/?`,`# ??/??`,`# ???/???`,`# ?/2`,`# ?/4`,`# ?/8`,`# ??/16`,`# ?/10`,`# ??/100`]),Ea=Object.freeze([`00000`,`00000-0000`,`[<=9999999]###-####;(###) ###-####`,`000-00-0000`]);function Da(e){switch(e){case`General`:case`Custom`:return`General`;case`Text`:return`@`;case`Number`:return Aa({category:`Number`,decimalPlaces:2,useSeparator:!1,negativeStyle:0});case`Currency`:return Aa({category:`Currency`,decimalPlaces:2,currencySymbol:`$`,negativeStyle:0});case`Accounting`:return Aa({category:`Accounting`,decimalPlaces:2,currencySymbol:`$`});case`Percentage`:return`0.00%`;case`Scientific`:return`0.00E+00`;case`Date`:return Ca[0];case`Time`:return wa[0];case`Fraction`:return Ta[0];case`Special`:return Ea[0]}}function Oa(e){let t=e??`$`;return t===`$`?`$`:`"${t}"`}function ka(e,t){let n=xa[t??0]??xa[0];return n.parens?n.red?`${e}_);[Red](${e})`:`${e}_);(${e})`:n.red?`${e};[Red]${e}`:e}function Aa(e){let{category:t,decimalPlaces:n,useSeparator:r,currencySymbol:i,negativeStyle:a,code:o}=e,s=function(e){let t=Math.max(0,Math.min(30,e??0));return t>0?`.`+`0`.repeat(t):``}(n??0);switch(t){case`General`:return`General`;case`Text`:return`@`;case`Number`:return ka((r?`#,##0`:`0`)+s,a);case`Currency`:return ka(Oa(i)+`#,##0`+s,a);case`Accounting`:{let e=Oa(i);return`_(${e}* #,##0${s}_);_(${e}* (#,##0${s});_(${e}* ${(n??0)>0?`"-"`+`?`.repeat(n):`"-"`}_);_(@_)`}case`Percentage`:return`0`+s+`%`;case`Scientific`:return`0`+s+`E+00`;case`Date`:case`Time`:case`Fraction`:case`Special`:case`Custom`:return o||Da(t)}}function ja(e,t){if(ma.lookupStyle(e).formatType===A.Special)return`Special`;switch(t){case`general`:return`General`;case`text`:return`Text`;case`percent`:return`Percentage`;case`scientific`:return`Scientific`;case`fraction`:return`Fraction`;case`date`:return`Date`;case`time`:return`Time`;case`datetime`:default:return`Custom`;case`currency`:return function(e){return e.includes(`_(`)&&e.includes(`* `)}(e)?`Accounting`:`Currency`;case`number`:case`grouped`:return function(e){return ma.lookupStyle(e).formatType===A.Special}(e)?`Special`:`Number`}}function Ma(e){let t=e.match(/\[\$([^\]-]+)(?:-[^\]]*)?\]/);if(t)return t[1];let n=e.match(/"([^"]+)"/);return n&&n[1]!==`-`?n[1]:(e.includes(`$`),`$`)}function Na(e){let t=Ri(e);if(t.length<2)return 0;let n=t[1],r=/\[red\]/i.test(n);return n.includes(`(`)?r?3:2:+!!r}function Pa(e){if(e==null||e===``)return{category:`General`};let t=Fi().getFormatInfo(e),n=ja(e,t?.type),r={category:n};switch(n){case`Number`:r.decimalPlaces=t?.maxDecimals??0,r.useSeparator=!!t?.grouped,r.negativeStyle=Na(e);break;case`Currency`:r.decimalPlaces=t?.maxDecimals??2,r.currencySymbol=Ma(e),r.negativeStyle=Na(e);break;case`Accounting`:r.decimalPlaces=t?.maxDecimals??2,r.currencySymbol=Ma(e);break;case`Percentage`:case`Scientific`:r.decimalPlaces=t?.maxDecimals??2;break;default:r.code=e}return r}(ya=va||={}).Type=A,ya.Parser=ta,ya.Styles=new fa,ya.ParseRunType=ea,ya.toBuiltInID=ra,ya.resolve=Ir,ya.builtInFormat=Fr,ya.getEngine=Fi,ya.Builder=pa,(ba=H||={}).AdjustmentType={Alpha:`alpha`,AlphaOff:`alphaOff`,AlphaMod:`alphaMod`,Hue:`hue`,Sat:`sat`,Lum:`lum`,HueOff:`hueOff`,SatOff:`satOff`,LumOff:`lumOff`,HueMod:`hueMod`,SatMod:`satMod`,LumMod:`lumMod`,Red:`red`,Green:`green`,Blue:`blue`,RedOff:`redOff`,GreenOff:`greenOff`,BlueOff:`blueOff`,RedMod:`redMod`,GreenMod:`greenMod`,BlueMod:`blueMod`,Shade:`shade`,Tint:`tint`,ETint:`eTint`,Gray:`gray`,Comp:`comp`,Inv:`inv`,Gamma:`gamma`,InvGamma:`invGamma`},ba.Named={ActiveBorder:`activeBorder`,ActiveCaption:`activeCaption`,CaptionText:`captionText`,AppWorkspace:`appWorkspace`,BtnFace:`btnFace`,BtnShadow:`btnShadow`,DkShadow3d:`3dDkShadow`,BtnHighlight:`btnHighlight`,Light3d:`3dLight`,BtnText:`btnText`,Background:`background`,GrayText:`grayText`,Highlight:`highlight`,HighlightText:`highlightText`,HotLight:`hotLight`,InactiveBorder:`inactiveBorder`,InactiveCaption:`inactiveCaption`,InactiveCaptionText:`inactiveCaptionText`,InfoBk:`infoBk`,InfoText:`infoText`,Menu:`menu`,MenuText:`menuText`,ScrollBar:`scrollBar`,Window:`window`,WindowFrame:`windowFrame`,WindowText:`windowText`,Transparent:`transparent`,AliceBlue:`aliceBlue`,AntiqueWhite:`antiqueWhite`,Aqua:`aqua`,Aquamarine:`aquamarine`,Azure:`azure`,Beige:`beige`,Bisque:`bisque`,Black:`black`,BlanchedAlmond:`blanchedAlmond`,Blue:`blue`,BlueViolet:`blueViolet`,Brown:`brown`,BurlyWood:`burlyWood`,CadetBlue:`cadetBlue`,Chartreuse:`chartreuse`,Chocolate:`chocolate`,Coral:`coral`,CornflowerBlue:`cornflowerBlue`,Cornsilk:`cornsilk`,Crimson:`crimson`,Cyan:`cyan`,DkBlue:`dkBlue`,DkCyan:`dkCyan`,DkGoldenrod:`dkGoldenrod`,DkGray:`dkGray`,DkGreen:`dkGreen`,DkKhaki:`dkKhaki`,DkMagenta:`dkMagenta`,DkOliveGreen:`dkOliveGreen`,DkOrange:`dkOrange`,DkOrchid:`dkOrchid`,DkRed:`dkRed`,DkSalmon:`dkSalmon`,DkSeaGreen:`dkSeaGreen`,DkSlateBlue:`dkSlateBlue`,DkSlateGray:`dkSlateGray`,DkTurquoise:`dkTurquoise`,DkViolet:`dkViolet`,DeepPink:`deepPink`,DeepSkyBlue:`deepSkyBlue`,DimGray:`dimGray`,DodgerBlue:`dodgerBlue`,Firebrick:`firebrick`,FloralWhite:`floralWhite`,ForestGreen:`forestGreen`,Fuchsia:`fuchsia`,Gainsboro:`gainsboro`,GhostWhite:`ghostWhite`,Gold:`gold`,Goldenrod:`goldenrod`,Gray:`gray`,Grey:`grey`,Green:`green`,GreenYellow:`greenYellow`,Honeydew:`honeydew`,HotPink:`hotPink`,IndianRed:`indianRed`,Indigo:`indigo`,Ivory:`ivory`,Khaki:`khaki`,Lavender:`lavender`,LavenderBlush:`lavenderBlush`,LawnGreen:`lawnGreen`,LemonChiffon:`lemonChiffon`,LtBlue:`ltBlue`,LtCoral:`ltCoral`,LtCyan:`ltCyan`,LtGoldenrodYellow:`ltGoldenrodYellow`,LtGray:`ltGray`,LtGreen:`ltGreen`,LtPink:`ltPink`,LtSalmon:`ltSalmon`,LtSeaGreen:`ltSeaGreen`,LtSkyBlue:`ltSkyBlue`,LtSlateGray:`ltSlateGray`,LtSteelBlue:`ltSteelBlue`,LtYellow:`ltYellow`,Lime:`lime`,LimeGreen:`limeGreen`,Linen:`linen`,Magenta:`magenta`,Maroon:`maroon`,MedAquamarine:`medAquamarine`,MedBlue:`medBlue`,MedOrchid:`medOrchid`,MedPurple:`medPurple`,MedSeaGreen:`medSeaGreen`,MedSlateBlue:`medSlateBlue`,MedSpringGreen:`medSpringGreen`,MedTurquoise:`medTurquoise`,MedVioletRed:`medVioletRed`,MidnightBlue:`midnightBlue`,MintCream:`mintCream`,MistyRose:`mistyRose`,Moccasin:`moccasin`,NavajoWhite:`navajoWhite`,Navy:`navy`,OldLace:`oldLace`,Olive:`olive`,OliveDrab:`oliveDrab`,Orange:`orange`,OrangeRed:`orangeRed`,Orchid:`orchid`,PaleGoldenrod:`paleGoldenrod`,PaleGreen:`paleGreen`,PaleTurquoise:`paleTurquoise`,PaleVioletRed:`paleVioletRed`,PapayaWhip:`papayaWhip`,PeachPuff:`peachPuff`,Peru:`peru`,Pink:`pink`,Plum:`plum`,PowderBlue:`powderBlue`,Purple:`purple`,Red:`red`,RosyBrown:`rosyBrown`,RoyalBlue:`royalBlue`,SaddleBrown:`saddleBrown`,Salmon:`salmon`,SandyBrown:`sandyBrown`,SeaGreen:`seaGreen`,SeaShell:`seaShell`,Sienna:`sienna`,Silver:`silver`,SkyBlue:`skyBlue`,SlateBlue:`slateBlue`,SlateGray:`slateGray`,Snow:`snow`,SpringGreen:`springGreen`,SteelBlue:`steelBlue`,Tan:`tan`,Teal:`teal`,Thistle:`thistle`,Tomato:`tomato`,Turquoise:`turquoise`,Violet:`violet`,Wheat:`wheat`,White:`white`,WhiteSmoke:`whiteSmoke`,Yellow:`yellow`,YellowGreen:`yellowGreen`,ButtonFace:`buttonFace`,ButtonHighlight:`buttonHighlight`,ButtonShadow:`buttonShadow`,GradientActiveCaption:`gradientActiveCaption`,GradientInactiveCaption:`gradientInactiveCaption`,MenuBar:`menuBar`,MenuHighlight:`menuHighlight`},ba.Scheme={Bg1:`bg1`,Bg2:`bg2`,Tx1:`tx1`,Tx2:`tx2`,Accent1:`accent1`,Accent2:`accent2`,Accent3:`accent3`,Accent4:`accent4`,Accent5:`accent5`,Accent6:`accent6`,Hlink:`hlink`,FolHlink:`folHlink`},ba.Type={Scheme:`scheme`,Named:`named`,Index:`index`,Auto:`auto`,HSL:`hsl`,RGB:`rgb`,LRGB:`lrgb`,Hex:`hex`};var Fa=[[16777215,H.Named.Transparent,!0],[4290032820,H.Named.ActiveBorder,!0],[4288263377,H.Named.ActiveCaption,!0],[4278190080,H.Named.CaptionText,!0],[4289440683,H.Named.AppWorkspace,!0],[4293980400,H.Named.BtnFace,!0],[4285098345,H.Named.BtnShadow,!0],[4278190080,H.Named.DkShadow3d,!0],[4293125091,H.Named.BtnHighlight,!0],[4293125091,H.Named.Light3d,!0],[4278190080,H.Named.BtnText,!0],[4278190080,H.Named.Background,!0],[4285361517,H.Named.GrayText,!0],[4281571839,H.Named.Highlight,!0],[4294967295,H.Named.HighlightText,!0],[4278216396,H.Named.HotLight,!0],[4294244348,H.Named.InactiveBorder,!0],[4290760155,H.Named.InactiveCaption,!0],[4278190080,H.Named.InactiveCaptionText,!0],[4294967265,H.Named.InfoBk,!0],[4278190080,H.Named.InfoText,!0],[4293980400,H.Named.Menu,!0],[4278190080,H.Named.MenuText,!0],[4291348680,H.Named.ScrollBar,!0],[4294967295,H.Named.Window,!0],[4284769380,H.Named.WindowFrame,!0],[4278190080,H.Named.WindowText,!0],[16777215,H.Named.Transparent],[4293982463,H.Named.AliceBlue],[4294634455,H.Named.AntiqueWhite],[4278255615,H.Named.Aqua],[4286578644,H.Named.Aquamarine],[4293984255,H.Named.Azure],[4294309340,H.Named.Beige],[4294960324,H.Named.Bisque],[4278190080,H.Named.Black],[4294962125,H.Named.BlanchedAlmond],[4278190335,H.Named.Blue],[4287245282,H.Named.BlueViolet],[4289014314,H.Named.Brown],[4292786311,H.Named.BurlyWood],[4284456608,H.Named.CadetBlue],[4286578432,H.Named.Chartreuse],[4291979550,H.Named.Chocolate],[4294934352,H.Named.Coral],[4284782061,H.Named.CornflowerBlue],[4294965468,H.Named.Cornsilk],[4292613180,H.Named.Crimson],[4278255615,H.Named.Cyan],[4278190219,H.Named.DkBlue],[4278225803,H.Named.DkCyan],[4290283019,H.Named.DkGoldenrod],[4289309097,H.Named.DkGray],[4278215680,H.Named.DkGreen],[4290623339,H.Named.DkKhaki],[4287299723,H.Named.DkMagenta],[4283788079,H.Named.DkOliveGreen],[4294937600,H.Named.DkOrange],[4288230092,H.Named.DkOrchid],[4287299584,H.Named.DkRed],[4293498490,H.Named.DkSalmon],[4287609995,H.Named.DkSeaGreen],[4282924427,H.Named.DkSlateBlue],[4281290575,H.Named.DkSlateGray],[4278243025,H.Named.DkTurquoise],[4287889619,H.Named.DkViolet],[4294907027,H.Named.DeepPink],[4278239231,H.Named.DeepSkyBlue],[4285098345,H.Named.DimGray],[4280193279,H.Named.DodgerBlue],[4289864226,H.Named.Firebrick],[4294966e3,H.Named.FloralWhite],[4280453922,H.Named.ForestGreen],[4294902015,H.Named.Fuchsia],[4292664540,H.Named.Gainsboro],[4294506751,H.Named.GhostWhite],[4294956800,H.Named.Gold],[4292519200,H.Named.Goldenrod],[4286611584,H.Named.Gray],[4278222848,H.Named.Green],[4289593135,H.Named.GreenYellow],[4293984240,H.Named.Honeydew],[4294928820,H.Named.HotPink],[4291648604,H.Named.IndianRed],[4283105410,H.Named.Indigo],[4294967280,H.Named.Ivory],[4293977740,H.Named.Khaki],[4293322490,H.Named.Lavender],[4294963445,H.Named.LavenderBlush],[4286381056,H.Named.LawnGreen],[4294965965,H.Named.LemonChiffon],[4289583334,H.Named.LtBlue],[4293951616,H.Named.LtCoral],[4292935679,H.Named.LtCyan],[4294638200,H.Named.LtGoldenrodYellow],[4292072403,H.Named.LtGray],[4287688336,H.Named.LtGreen],[4294948545,H.Named.LtPink],[4294942842,H.Named.LtSalmon],[4280332970,H.Named.LtSeaGreen],[4287090426,H.Named.LtSkyBlue],[4286023833,H.Named.LtSlateGray],[4289774814,H.Named.LtSteelBlue],[4294967264,H.Named.LtYellow],[4278255360,H.Named.Lime],[4281519410,H.Named.LimeGreen],[4294635750,H.Named.Linen],[4294902015,H.Named.Magenta],[4286578688,H.Named.Maroon],[4284927402,H.Named.MedAquamarine],[4278190285,H.Named.MedBlue],[4290401747,H.Named.MedOrchid],[4287852763,H.Named.MedPurple],[4282168177,H.Named.MedSeaGreen],[4286277870,H.Named.MedSlateBlue],[4278254234,H.Named.MedSpringGreen],[4282962380,H.Named.MedTurquoise],[4291237253,H.Named.MedVioletRed],[4279834992,H.Named.MidnightBlue],[4294311930,H.Named.MintCream],[4294960353,H.Named.MistyRose],[4294960309,H.Named.Moccasin],[4294958765,H.Named.NavajoWhite],[4278190208,H.Named.Navy],[4294833638,H.Named.OldLace],[4286611456,H.Named.Olive],[4285238819,H.Named.OliveDrab],[4294944e3,H.Named.Orange],[4294919424,H.Named.OrangeRed],[4292505814,H.Named.Orchid],[4293847210,H.Named.PaleGoldenrod],[4288215960,H.Named.PaleGreen],[4289720046,H.Named.PaleTurquoise],[4292571283,H.Named.PaleVioletRed],[4294963157,H.Named.PapayaWhip],[4294957753,H.Named.PeachPuff],[4291659071,H.Named.Peru],[4294951115,H.Named.Pink],[4292714717,H.Named.Plum],[4289781990,H.Named.PowderBlue],[4286578816,H.Named.Purple],[4294901760,H.Named.Red],[4290547599,H.Named.RosyBrown],[4282477025,H.Named.RoyalBlue],[4287317267,H.Named.SaddleBrown],[4294606962,H.Named.Salmon],[4294222944,H.Named.SandyBrown],[4281240407,H.Named.SeaGreen],[4294964718,H.Named.SeaShell],[4288696877,H.Named.Sienna],[4290822336,H.Named.Silver],[4287090411,H.Named.SkyBlue],[4285160141,H.Named.SlateBlue],[4285563024,H.Named.SlateGray],[4294966010,H.Named.Snow],[4278255487,H.Named.SpringGreen],[4282811060,H.Named.SteelBlue],[4291998860,H.Named.Tan],[4278222976,H.Named.Teal],[4292394968,H.Named.Thistle],[4294927175,H.Named.Tomato],[4282441936,H.Named.Turquoise],[4293821166,H.Named.Violet],[4294303411,H.Named.Wheat],[4294967295,H.Named.White],[4294309365,H.Named.WhiteSmoke],[4294967040,H.Named.Yellow],[4288335154,H.Named.YellowGreen],[4293980400,H.Named.ButtonFace],[4294967295,H.Named.ButtonHighlight],[4288716960,H.Named.ButtonShadow],[4290367978,H.Named.GradientActiveCaption],[4292338930,H.Named.GradientInactiveCaption],[4293980400,H.Named.MenuBar],[4281571839,H.Named.MenuHighlight],[4286611584,H.Named.Grey]],Ia=new class{constructor(){this._lookupByName=new Map;let e=Fa.length;for(let t=0;t<e;t++){let e=Fa[t],n=e[0],r=(n>>24&255)/255,i=n>>16&255,a=n>>8&255,o=255&n,s={id:t,name:e[1],rgbaColor:{r:i,g:a,b:o,a:r},system:e.length>2};this._lookupByName.set(s.name.toLowerCase(),s)}}valueOfName(e){return this._lookupByName.get(e?e.toLowerCase():`transparent`)}getSystemColorDefaults(){let e=e=>e.toString(16).padStart(2,`0`).toUpperCase(),t={};return this._lookupByName.forEach((n,r)=>{if(!n.system)return;let{r:i,g:a,b:o}=n.rgbaColor;t[r]=`#${e(i)}${e(a)}${e(o)}`}),t}},La=[{scheme:H.Scheme.Tx1,description:`First Text Color`},{scheme:H.Scheme.Tx2,description:`Second Text Color`},{scheme:H.Scheme.Bg1,description:`First Background Color`},{scheme:H.Scheme.Bg2,description:`Second Background Color`},{scheme:H.Scheme.Accent1,description:`Accent 1`},{scheme:H.Scheme.Accent2,description:`Accent 2`},{scheme:H.Scheme.Accent3,description:`Accent 3`},{scheme:H.Scheme.Accent4,description:`Accent 4`},{scheme:H.Scheme.Accent5,description:`Accent 5`},{scheme:H.Scheme.Accent6,description:`Accent 6`},{scheme:H.Scheme.Hlink,description:`Hyperlink`},{scheme:H.Scheme.FolHlink,description:`Followed Hyperlink`},{scheme:`dk1`,description:`Text/Background - Dark 1`},{scheme:`lt1`,description:`Text/Background - Light 1`},{scheme:`dk2`,description:`Text/Background - Dark 2`},{scheme:`lt2`,description:`Text/Background - Light 2`}],Ra=new Map;for(let e=0;e<La.length;e++)Ra.set(La[e].scheme.toLowerCase(),La[e]);var za=`lastclr`,Ba=e=>{if(!e)return null;let t=e.replace(`#`,``);if(t.length<6)return null;let n=parseInt(t.substring(0,2),16),r=parseInt(t.substring(2,4),16),i=parseInt(t.substring(4,6),16);return isNaN(n)||isNaN(r)||isNaN(i)?null:new L.RGBA(n,r,i,1)},Va=e=>new L.HEX(e.red,e.green,e.blue,1).toString(!1).replace(`#`,``),Ha=e=>new L.RGBA(e.rgbaColor.r,e.rgbaColor.g,e.rgbaColor.b,e.rgbaColor.a),Ua=(e,t,n)=>{let r=Ia.valueOfName(e);if(!r)return null;if(r.system){let e=r.name;return{rgba:(t?t(e,!1):null)?.toRGBA()??n??Ha(r),systemName:e}}return{rgba:Ha(r),systemName:null}},Wa=e=>{if(!e)return null;let t=e.getAdjustments();if(t&&t.length>0)return null;let n=e.getType();return n===H.Type.Auto?H.Named.WindowText:n===H.Type.Named&&so.isSystem(e.getVal())?e.getVal():null},Ga=e=>e?{srgb:[e.red/255,e.green/255,e.blue/255],alpha:e.alpha===void 0?1:e.alpha}:null,Ka=function(e,t,n,r,i){let a,o=null,s=null,c=null,l=H.Type.Named;if(e.toLowerCase()===`auto`){let e=Ua(H.Named.WindowText,r,i);a=Ga(e.rgba),o=e.systemName,l=H.Type.Auto}else{let t=Ua(e,r,i);a=Ga(t?.rgba??null),o=t?.systemName??null}if(a===null&&((u=e)===`phClr`&&(u=`dk1`),Ra.get(u.toLowerCase()))){if(!t)throw Error(`a scheme val was used but a schemeLookup was not provided`);s=e;let n=t(s);c=n.toRGBA(),a=Ga(c),o=Wa(n),l=H.Type.Scheme}var u;if(a===null){let t=e.match(In)||e.match(Ln);if(t){let e,n=1;t.length===4?e=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:(e=[parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16)],n=Un(parseInt(t[1],16)/255)),e=Bn(e),e=z(e),a={srgb:e,alpha:n},l=H.Type.Hex}}if(a===null){let t=e.match(An)||e.match(jn);if(t){let e=zn(t[1],t[2],t[3]);e=Bn(e),e=z(e),a={srgb:e,alpha:t[4]?Un(parseFloat(t[4])):1},l=H.Type.RGB}}if(a===null){let t=e.match(Mn)||e.match(Nn);if(t){let e=zn(t[1],t[2],t[3]);e=Bn(e,100),e=Kn(e),e=z(e),a={srgb:e,alpha:t[4]?Un(parseFloat(t[4])):1},l=H.Type.LRGB}}if(a===null){let t=e.match(Pn)||e.match(Fn);if(t){let e=zn(t[1],t[2],t[3]);e=Yn(e),e=z(e),a={srgb:e,alpha:t[4]?Un(parseFloat(t[4])):1},l=H.Type.HSL}}if(a===null){let t=e.match(Rn);if(t){let e=parseInt(t[1]),s=n?.(e),c=s?null:kr(e),u=s?s.toRGBA():c?Ua(c,r,i).rgba:Ar(e);u&&(a={srgb:[u.red/255,u.green/255,u.blue/255],alpha:u.alpha},o=s?Wa(s):c,l=H.Type.Index)}}if(a===null)throw Error(`Not a valid color format: `+e);return{srgbAlpha:a,key:s,color:c,type:l,systemName:o}},qa=(e,t)=>{let n=[...e.srgb],r=e.alpha===void 0?1:e.alpha,i=t?t.length:0;for(var a=0;a<i;a++){let e=t[a],i=Object.keys(e)[0],o=e[i];i===H.AdjustmentType.Alpha?r=Math.max(0,Math.min(1,o)):i===H.AdjustmentType.AlphaOff?r=Math.max(0,Math.min(1,r+o)):i===H.AdjustmentType.AlphaMod?r=Math.max(0,Math.min(1,r*o)):i===H.AdjustmentType.Hue?n=ur(B,n,o):i===H.AdjustmentType.Sat?n=ur(Qn,n,o):i===H.AdjustmentType.Lum?n=ur($n,n,o):i===H.AdjustmentType.HueOff?n=dr(B,n,o):i===H.AdjustmentType.SatOff?n=dr(Qn,n,o):i===H.AdjustmentType.LumOff?n=dr($n,n,o):i===H.AdjustmentType.HueMod?n=fr(B,n,o):i===H.AdjustmentType.SatMod?n=fr(Qn,n,o):i===H.AdjustmentType.LumMod?n=fr($n,n,o):i===H.AdjustmentType.Red?n=pr(er,n,o,rr):i===H.AdjustmentType.Green?n=pr(tr,n,o,rr):i===H.AdjustmentType.Blue?n=pr(nr,n,o,rr):i===H.AdjustmentType.RedOff?n=pr(er,n,o,ir):i===H.AdjustmentType.GreenOff?n=pr(tr,n,o,ir):i===H.AdjustmentType.BlueOff?n=pr(nr,n,o,ir):i===H.AdjustmentType.RedMod?n=pr(er,n,o,ar):i===H.AdjustmentType.GreenMod?n=pr(tr,n,o,ar):i===H.AdjustmentType.BlueMod?n=pr(nr,n,o,ar):i===H.AdjustmentType.Shade?n=or(n,o):i===H.AdjustmentType.Tint?n=lr(n,o):i===H.AdjustmentType.ETint?n=cr(n,o):i===H.AdjustmentType.Gray?n=mr(n):i===H.AdjustmentType.Comp?n=hr(n):i===H.AdjustmentType.Inv?n=gr(n,o):i===H.AdjustmentType.Gamma?n=_r(n):i===H.AdjustmentType.InvGamma?n=vr(n):console.warn(`unknown adjustmentType: `+i)}return{srgb:n,alpha:r}},Ja=new Map,Ya=Object.keys(H.AdjustmentType),Xa=Ya.length;for(let e=0;e<Xa;e++){let t=Ya[e];Ja.set(H.AdjustmentType[t].toLowerCase(),H.AdjustmentType[t])}var U,Za,W,Qa,$a,eo=RegExp(`\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))`),to=RegExp(`\\s*[,]\\s*|\\s+`),no=null,ro=null,io=`--sxl-sys-color-`,ao=0,oo={[H.Scheme.Bg1]:`window`,[H.Scheme.Bg2]:`E8E8E8`,[H.Scheme.Tx1]:`windowText`,[H.Scheme.Tx2]:`0E2841`,[H.Scheme.Accent1]:`156082`,[H.Scheme.Accent2]:`E97132`,[H.Scheme.Accent3]:`196B24`,[H.Scheme.Accent4]:`0F9ED5`,[H.Scheme.Accent5]:`A02B93`,[H.Scheme.Accent6]:`4EA72E`,[H.Scheme.Hlink]:`467886`,[H.Scheme.FolHlink]:`96607D`},so=class e{constructor(t,n,r,i=null,a){let o=null,s=null,c=i;if(t instanceof e)o=t.getVal(),t.getAdjustments()&&(s=[...t.getAdjustments()]),c??=t._private.last;else if(typeof t==`string`){let e=this._parse(t);o=e.val,s=e.adjs,e.last&&(c=Ba(e.last))}else if(t?.val){o=t.val,s=t.adjs;let e=t.last;e&&(c=Ba(e))}if(!o)throw Error(`Unable to determine color value`);let l=a??ro;this._private={val:o,last:c,adjs:s,schemeLookup:n,indexedLookup:r,systemLookup:a,parsedVal:Ka(o,n,r,l,c),adjusted:null,resolved:null,resolvedEpoch:ao}}_parse(e){let t=null,n=e.trim(),r=n.split(eo);if(r&&(t=r[0],n=n.substring(t.length,n.length).trim()),!t)throw Error(`no color key found`);let i=[],a=null,o=n.split(to),s=o.length;for(let e=0;e<s;e++){let t=o[e];if(!t)continue;if(t.toLowerCase()===za){e++,a=o[e];continue}let n=Ja.get(t.toLowerCase());if(!n)throw Error(`Invalid adjustment type:`+t);let r=null;if(n!==H.AdjustmentType.Gray&&n!==H.AdjustmentType.Comp&&n!==H.AdjustmentType.Inv&&n!==H.AdjustmentType.Gamma&&n!==H.AdjustmentType.InvGamma){e++;let n=o[e];if(r=parseFloat(n),r==null)throw Error(`Invalid adjustment value: missing value for'${t}'`);if(isNaN(r))throw Error(`Invalid adjustment value:`+n)}i.push({[n]:r})}return{val:t,last:a,adjs:i}}_forceDark(e=!0){this._resolve();let t=this._private.parsedVal,n=this._private.systemLookup??ro;if(t.systemName&&n){let r=n(t.systemName,!0);if(r){let t=qa(Ga(r.toRGBA()),this._private.adjs),n=Un(t.alpha);if(e){let e=Hn(Vn([...t.srgb]));return new L.RGBA(e[0],e[1],e[2],n)}let i=Zn(t.srgb);return new L.HSLA(i[0],i[1],i[2],n)}}let r=this._private.resolved,i=[r.red,r.green,r.blue];i=((e,t)=>{t=(t%360+360)%360;let n=[1,0,0,0,1,0,0,0,1],r=Math.cos(t*Math.PI/180),i=Math.sin(t*Math.PI/180);n[0]=br+.7874*r-br*i,n[1]=xr-xr*r-xr*i,n[2]=Sr-Sr*r+.9278*i,n[3]=br-br*r+.143*i,n[4]=xr+.28480000000000005*r+.14*i,n[5]=Sr-Sr*r-.283*i,n[6]=br-br*r-.7874*i,n[7]=xr-xr*r+xr*i,n[8]=Sr+.9278*r+Sr*i;let a=e=>Math.round(Math.max(0,Math.min(255,e))),o=e[0],s=e[1],c=e[2];return[a(n[0]*o+n[1]*s+n[2]*c),a(n[3]*o+n[4]*s+n[5]*c),a(n[6]*o+n[7]*s+n[8]*c)]})(i,180),i=gr(i,!1);let a=Gn(i),o=Zn(a);if(o[$n]=.95*o[$n],a=Yn(o),i=Kn(a),i=Hn(i),i=z(i,!1),e)return new L.RGBA(i[0],i[1],i[2],r.alpha);let s=Zn(Gn(i));return new L.HSLA(s[0],s[1],s[2],r.alpha)}_resolve(){if(this._private.resolved){let e=this._private.parsedVal;if(!e.key&&!e.systemName)return;if(e.systemName){if(this._private.resolvedEpoch===ao)return}else{let t=this._private.schemeLookup(e.key)?.toRGBA();if(t===e.color||t?.isEqual(e.color))return}}let e=this._private.systemLookup??ro,t=Ka(this._private.val,this._private.schemeLookup,this._private.indexedLookup,e,this._private.last),n=t.srgbAlpha,r=qa(n,this._private.adjs),i=Vn(r.srgb);i=Hn(i);let a=Un(r.alpha);this._private.adjusted=r,this._private.parsedVal=t,this._private.resolved=new L.RGBA(i[0],i[1],i[2],a),this._private.resolvedEpoch=ao}static parse(t,n,r,i=null,a){if(t instanceof e)return t;let o=t,s=null,c=o?.trim(),l=null;try{if(!s){let e=c?.split(eo);e&&(s=e[0],c=c.substring(s.length,c.length).trim())}if(!s)throw Error(`no color found`);let t=[],o=null,u=c.split(to),d=u.length;for(let e=0;e<d;e++){let n=u[e];if(!n)continue;if(n.toLowerCase()===za){e++,o=u[e];continue}let r=Ja.get(n.toLowerCase());if(!r)throw Error(`Invalid adjustment type:`+n);let i=null;if(r!==H.AdjustmentType.Gray&&r!==H.AdjustmentType.Comp&&r!==H.AdjustmentType.Inv&&r!==H.AdjustmentType.Gamma&&r!==H.AdjustmentType.InvGamma){e++;let t=u[e];if(i=parseFloat(t),i==null)throw Error(`Invalid adjustment value: missing value for'${n}'`);if(isNaN(i))throw Error(`Invalid adjustment value:`+t)}t.push({[r]:i})}l=new e({val:s,adjs:t,last:o},n,r,i,a)}catch(e){throw e}return l}static isSystem(e){return!!e&&!0===Ia.valueOfName(e)?.system}static getDefaultSystemLookup(){return ro}static setDefaultSystemLookup(e){let t=ro;return ro=e??null,ao++,t}static getSystemEpoch(){return ao}static invalidateSystemColors(){ao++}static getSystemColorDefaults(){return Ia.getSystemColorDefaults()}static getDefaultSchemeLookup(){if(!no){let t=new Map,n=Object.keys(oo),r=n.length;for(let i=0;i<r;i++){let r=n[i];t.set(r.toLowerCase(),e.parse(oo[r],null))}no=e=>t.get(e.toLowerCase())}return no}isEqual(t){return t instanceof e&&this.toString().toLowerCase()===t.toString().toLowerCase()}getVal(){return this._private.val}getAdjustments(){return this._private.adjs}getBaseColor(){return new e({val:this._private.val,adjs:null},this._private.schemeLookup,this._private.indexedLookup,this._private.last,this._private.systemLookup)}getLastColor(){return this._private.last&&this._private.parsedVal.systemName?Va(this._private.last):null}getType(){return this._resolve(),this._private.parsedVal.type??null}adjust(t){return new e({val:this._private.val,adjs:this._private.adjs?this._private.adjs.concat(t):t},this._private.schemeLookup,this._private.indexedLookup,this._private.last,this._private.systemLookup)}_systemCSSVar(e){this._resolve();let t=this._private.parsedVal;if(!t.systemName||this._private.adjs&&this._private.adjs.length>0)return null;let n=t.systemName.toLowerCase(),r=Ua(t.systemName,null,this._private.last).rgba,i=`#`+Va(r),a=`${io}${n}`;return e?`var(${a}-dark, var(${a}, ${i}))`:`var(${a}, ${i})`}toCSS(e=!1,t=!1){if(e===`adaptive`){let e=this.toCSS(!1,t),n=this.toCSS(!0,t);return e===n?e:`light-dark(${e}, ${n})`}let n=!0===e,r=this._systemCSSVar(n);if(r)return r;let i=n?this._forceDark():this.toRGBA();return i.alpha===0?`none`:i.toString(t)}toRGBA(e=!1){return this._resolve(),e?this._forceDark():this._private.resolved}toHSLA(e=!1){if(this._resolve(),e)return this._forceDark(!1);let t=Zn(this._private.adjusted.srgb);return new L.HSLA(t[0],t[1],t[2],Un(this._private.adjusted.alpha??1))}toHex(e=!1){this._resolve();let t=e?this._forceDark():this._private.resolved;return new L.HEX(t.red,t.green,t.blue,t.alpha??1)}toBlackOrWhite(t=!1,n=157){let r=this.toRGBA(t),i=.299*r.red+.587*r.green+.114*r.blue>n;return new e(i?`#000000`:`#FFFFFF`,this._private.schemeLookup,this._private.indexedLookup,this._private.last,this._private.systemLookup)}get[Symbol.toStringTag](){return this.toString()}toString(){let e=this._private.val,t=this._private.adjs,n=t?t.length:0;for(let r=0;r<n;r++){let i=t[r];if(!i)continue;let a=Object.keys(i)[0];e+=` `+a;let o=i[a];typeof o==`number`&&(e+=` `+o),r<n-1&&(e+=`,`)}let r=this.getLastColor();return r&&(e+=` lastClr `+r),e}get isIColor(){return!0}};(Za=U||={}).Type={None:`none`,Solid:`solid`,Gradient:`gradient`,Pattern:`pattern`,Image:`image`,Background:`background`,Group:`group`,Custom:`custom`},Za.GradientType={Linear:`linear`,Path:`path`,Rect:`rect`,Shape:`shape`},Za.TileFlip={None:`none`,Horizontal:`x`,Vertical:`y`,Both:`xy`},Za.BuiltInSheetPattern={None:`none`,Solid:`solid`,DarkGray:`darkGray`,MediumGray:`mediumGray`,LightGray:`lightGray`,Gray0625:`gray0625`,Gray125:`gray125`,DarkHorizontal:`darkHorizontal`,DarkVertical:`darkVertical`,DarkDown:`darkDown`,DarkUp:`darkUp`,DarkGrid:`darkGrid`,DarkTrellis:`darkTrellis`,LightHorizontal:`lightHorizontal`,LightVertical:`lightVertical`,LightDown:`lightDown`,LightUp:`lightUp`,LightGrid:`lightGrid`,LightTrellis:`lightTrellis`,Custom:`custom`},function(e){e.LineEndType={None:`none`,Triangle:`triangle`,Stealth:`stealth`,Diamond:`diamond`,Oval:`oval`,Arrow:`arrow`},e.LineEndSize={Small:`sm`,Medium:`med`,Large:`lg`},e.Compound={Single:`sng`,Double:`dbl`,ThickThin:`thickThin`,ThinThick:`thinThick`,Triple:`tri`},e.Align={Center:`ctr`,Inset:`in`,Outset:`outset`},e.LineCap={Butt:`butt`,Round:`round`,Square:`square`},e.LineJoin={Bevel:`bevel`,Miter:`miter`,Round:`round`};let t=e.DashStyle={Solid:`solid`,SysDot:`sysDot`,SysDash:`sysDash`,Dash:`dash`,DashDot:`dashDot`,LongDash:`lgDash`,LongDashDot:`lgDashDot`,LongDashDotDot:`lgDashDotDot`,Dot:`dot`,SysDashDot:`sysDashDot`,SysDashDotDot:`sysDashDotDot`},n={[t.Solid]:null,[t.Dot]:[1,3],[t.Dash]:[4,3],[t.DashDot]:[4,3,1,3],[t.LongDash]:[8,3],[t.LongDashDot]:[8,3,1,3],[t.LongDashDotDot]:[8,3,1,3,1,3],[t.SysDot]:[1,1],[t.SysDash]:[3,1],[t.SysDashDot]:[3,1,1,1],[t.SysDashDotDot]:[3,1,1,1,1,1]};e.toDashLengths=function(e){if(Array.isArray(e)){let t=e.map(e=>Math.max(0,e)/100);return t.length>0&&t.some(e=>e>0)?t:null}let t=e?n[e]:null;return t?[...t]:null}}(W||={}),(Qa||={}).Type={OuterShadow:`outerShadow`,InnerShadow:`innerShadow`,PresetShadow:`presetShadow`,Glow:`glow`,SoftEdge:`softEdge`,Reflection:`reflection`},function(e){let t=e.BuiltInName={Normal:`Normal`,RowLevel:`RowLevel_#`,ColLevel:`ColLevel_#`,Comma:`Comma`,Currency:`Currency`,Percent:`Percent`,Comma0:`Comma [0]`,Currency0:`Currency [0]`,Hyperlink:`Hyperlink`,FollowedHyperlink:`Followed Hyperlink`,Note:`Note`,WarningText:`Warning Text`,Unknown12:`??-12`,Unknown13:`??-13`,Unknown14:`??-14`,Title:`Title`,Heading1:`Heading 1`,Heading2:`Heading 2`,Heading3:`Heading 3`,Heading4:`Heading 4`,Input:`Input`,Output:`Output`,Calculation:`Calculation`,CheckCell:`Check Cell`,LinkedCell:`Linked Cell`,Total:`Total`,Good:`Good`,Bad:`Bad`,Neutral:`Neutral`,Accent1:`Accent1`,Accent1_20:`20% - Accent1`,Accent1_40:`40% - Accent1`,Accent1_60:`60% - Accent1`,Accent2:`Accent2`,Accent2_20:`20% - Accent2`,Accent2_40:`40% - Accent2`,Accent2_60:`60% - Accent2`,Accent3:`Accent3`,Accent3_20:`20% - Accent3`,Accent3_40:`40% - Accent3`,Accent3_60:`60% - Accent3`,Accent4:`Accent4`,Accent4_20:`20% - Accent4`,Accent4_40:`40% - Accent4`,Accent4_60:`60% - Accent4`,Accent5:`Accent5`,Accent5_20:`20% - Accent5`,Accent5_40:`40% - Accent5`,Accent5_60:`60% - Accent5`,Accent6:`Accent6`,Accent6_20:`20% - Accent6`,Accent6_40:`40% - Accent6`,Accent6_60:`60% - Accent6`,ExplanatoryText:`Explanatory Text`},n=Object.values(t);e.builtInNameFromId=function(e){return n[e]},e.IconSet={Arrows3:`3Arrows`,ArrowsGray3:`3ArrowsGray`,Flags3:`3Flags`,Signs3:`3Signs`,Symbols3:`3Symbols`,Symbols3_2:`3Symbols2`,TrafficLights3:`3TrafficLights1`,TrafficLights3_2:`3TrafficLights2`,Triangles3:`3Triangles`,Stars3:`3Stars`,Arrows4:`4Arrows`,ArrowsGray4:`4ArrowsGray`,Rating4:`4Rating`,RedToBlack4:`4RedToBlack`,TrafficLights4:`4TrafficLights`,Arrows5:`5Arrows`,ArrowsGray5:`5ArrowsGray`,Quarters5:`5Quarters`,Rating5:`5Rating`,Boxes5:`5Boxes`,NoIcons:`NoIcons`}}($a||={});var co={type:U.Type.Solid,color:`phClr`},lo=e=>({type:U.Type.Gradient,isRotatedWithShape:!0,gradientType:U.GradientType.Linear,angle:180,scaled:!1,stops:e.map(([e,t])=>({offset:e,color:t}))}),uo=e=>({align:W.Align.Center,lineCap:W.LineCap.Butt,compound:W.Compound.Single,width:e,lineJoin:W.LineJoin.Miter,miterLimit:8,dash:W.DashStyle.Solid,fill:co}),fo={type:Qa.Type.OuterShadow,color:`000000 alpha 0.63`,distance:1.5,angle:90,blur:4.5,alignment:`ctr`,isRotatedWithShape:!1},po=Object.freeze({fillStyleLst:[co,lo([[0,`phClr lumMod 110 satMod 105 tint 67`],[.5,`phClr lumMod 105 satMod 103 tint 73`],[1,`phClr lumMod 105 satMod 109 tint 81`]]),lo([[0,`phClr satMod 103 lumMod 102 tint 94`],[.5,`phClr satMod 110 lumMod 100 shade 100`],[1,`phClr lumMod 99 satMod 120 shade 78`]])],lnStyleLst:[uo(.5),uo(1),uo(1.5)],effectStyleLst:[[],[],[fo]],bgFillStyleLst:[co,{type:U.Type.Solid,color:`phClr tint 95 satMod 170`},lo([[0,`phClr tint 93 satMod 150 shade 98 lumMod 102`],[.5,`phClr tint 98 satMod 130 shade 90 lumMod 103`],[1,`phClr shade 63 satMod 120`]])]});function mo(e){return!/^(-?\d|--)/.test(e)}function ho(e){let t=[],n=``,r=``,i=7;for(let a,o=0;a=e.charAt(o);o++)if(/[a-zA-Z\d\xa0-\uffff_-]/.test(a)&&i===7)n+=a;else if(a===`\\`&&i===7)i=6;else if(a===` `&&i===7){if(n!==``){if(!mo(n))return null;t.push(n),n=``}}else if(i===6)/[0-9a-f]/i.test(a)?(r+=a,i=8):(n+=a,i=7);else{if(i!==8)return null;/[0-9a-f]/i.test(a)&&r.length<6?r+=a:(n+=String.fromCodePoint(parseInt(r,16)),n+=a,r=``,i=7)}if(n!==``){if(!mo(n))return null;t.push(n)}return t.join(` `)}function go(e,t){let n=t,r=``,i={"font-family":[]};for(let t,a=0;t=e.charAt(a);a+=1)if(n!==4||t!==`"`&&t!==`'`){if(n===3&&t===`,`)n=4,r=``;else if(n===4&&t===`,`){let e=ho(r);e&&i[`font-family`].push(e),r=``}else if(n===5&&t===` `)/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:deg|grad|rad|turn)$/.test(r)?(i[`font-style`]+=` `+r,r=``):--a,n=1;else if(n!==1||t!==` `&&t!==`/`)n===2&&t===` `?(/^(?:\+|-)?([0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)?$/.test(r)&&(i[`line-height`]=r),n=4,r=``):r+=t;else{if(/^(?:(?:xx|x)-large|(?:xx|s)-small|small|large|medium)$/.test(r)||/^(?:larg|small)er$/.test(r)||/^(?:\+|-)?(?:[0-9]*\.)?[0-9]+(?:em|ex|ch|rem|vh|vw|vmin|vmax|px|mm|cm|in|pt|pc|%)$/.test(r))n=t===`/`?2:4,i[`font-size`]=r;else if(/^italic$/.test(r))i[`font-style`]=r;else if(/^oblique$/.test(r))i[`font-style`]=r,n=5;else if(/^small-caps$/.test(r))i[`font-variant`]=r;else if(/^(?:bold(?:er)?|lighter|normal)$/.test(r))i[`font-weight`]=r;else if(/^[+-]?(?:[0-9]*\.)?[0-9]+(?:e[+-]?(?:0|[1-9][0-9]*))?$/.test(r)){let e=parseFloat(r);e>=1&&e<=1e3&&(i[`font-weight`]=r)}else/^(?:(?:ultra|extra|semi)-)?(?:condensed|expanded)$/.test(r)&&(i[`font-stretch`]=r);r=``}}else{let o=a+1;do if(o=e.indexOf(t,o)+1,!o)return null;while(e.charAt(o-2)===`\\`);i[`font-family`].push(e.slice(a+1,o-1).replace(/\\('|")/g,`$1`)),a=o-1,n=3,r=``}if(n===3&&!/^\s*$/.test(r))return null;if(n===4){let e=ho(r);e&&i[`font-family`].push(e)}return i}function _o(e){let t=parseFloat(e);return isNaN(t)||(t%=360,t>0?t=360-t:t<0&&(t*=-1)),t}function vo(e){return(e%=360)<0&&(e+=360),e>180?e=360-e:e>1&&(e*=-1),e}function yo(e){if(typeof e!=`string`)return null;let t=function(e){let t=go(e,4);return t===null?null:t[`font-family`]}(e);Array.isArray(t)&&t.length===0&&(t=null),t=t?{"font-family":t}:function(e){let t=go(e,1);return t!==null&&t[`font-size`]&&t[`font-family`].length?t:null}(e);let n=null,r=null,i=null;if(t){let e=t[`font-family`],a=e.shift();a&&(n=a),e.length>0&&(r=e),t[`font-size`]!==void 0&&(i=t[`font-size`])}return{family:n,fallbacks:r,size:i}}function bo(e,t=!1){return t===`adaptive`?e?.toCSS(`adaptive`)??null:function(e,t=!1){return e?.toHex(t)?.toString(!1).toLowerCase()??null}(e,t)}function xo(e){return e==null?null:n.roundAccurately(e,2)+`pt`}function So(e,t){let n=``,r=!0===t||!!t&&t!==O.StrikeStyle.None,i=e&&e!==O.UnderlineStyle.None;return r&&(n+=`line-through`),i&&r&&(n+=` `),i&&(n+=`underline`,!0!==e&&e!==O.UnderlineStyle.Single&&e!==O.UnderlineStyle.SingleAccounting||(n+=` solid`),e!==O.UnderlineStyle.Double&&e!==O.UnderlineStyle.DoubleAccounting||(n+=` double`)),n}function Co(e){return e===O.UnderlineStyle.Single?`single`:e===O.UnderlineStyle.Double?`double`:e===O.UnderlineStyle.SingleAccounting?`single-accounting`:e===O.UnderlineStyle.DoubleAccounting?`double-accounting`:`none`}var wo=Object.freeze({underline:O.UnderlineStyle.None,strike:!1});function To(e){if(!e)return wo;let t=O.UnderlineStyle.None,n=!1;return(e=e.toLowerCase()).includes(`underline`)&&(t=O.UnderlineStyle.Single),(e.includes(`line-through`)||e.includes(`linethrough`))&&(n=!0),{underline:t,strike:n}}function Eo(e){return e?(e=e.toLowerCase())===`single`?O.UnderlineStyle.Single:e===`double`?O.UnderlineStyle.Double:e===`single-accounting`||e===`singleaccounting`?O.UnderlineStyle.SingleAccounting:e===`double-accounting`||e===`doubleaccounting`?O.UnderlineStyle.DoubleAccounting:O.UnderlineStyle.None:O.UnderlineStyle.None}function Do(e){return e?e.toLowerCase():null}function Oo(e){return e?e===l.Overflow.Visible||e===l.Overflow.Clip||e===l.Overflow.Shrink?`nowrap`:e===l.Overflow.Wrap?`normal`:void 0:null}function ko(e,t){return O.toCSSFontFamily(e,t)}function Ao(e){let t=``,n=!1,r=``;for(let i=0;i<e.length;i++){let a=e.charAt(i);n&&a!==`]`&&a!==`"`?t+=a:a===`"`?(t+=`\\0022`,n=!n):[`[`,`]`,`,`,`#`,`.`,`@`,`/`,`:`,`;`,`-`,` `].includes(a)?(t+=`\\`+a,a===`[`?n=!0:a===`]`&&(n=!1)):[`(`,`)`].includes(a)?t+=r===`_`?`\\`+a:`\\\\\\`+a:[`$`].includes(a)?t+=`\\0022`+a+`\\0022`:t+=a,r=a}return`"`+t+`"`}function jo(e){let t=e.replace(/(\\[0-9]{4})/g,e=>String.fromCharCode(parseInt(e.replace(/\\/g,``),16)));return t=t.replace(/(\\.{1})/g,e=>e.substring(e.length-1,e.length)),t.includes(`\\`)&&(t=t.replace(/(\\.{1})/g,e=>e.substring(e.length-1,e.length))),t=t.replace(/^"(.*)"$/,`$1`),t}var Mo=`Thin`,No=`Hairline`,Po=`Extra Light`,Fo=`Ultra Light`,Io=`Light`,Lo=`Normal`,Ro=`Regular`,zo=`Medium`,Bo=`Semi Bold`,Vo=`Demi Bold`,Ho=`Bold`,Uo=`Extra Bold`,Wo=`Ultra Bold`,Go=`Black`,Ko=`Heavy`,qo=`Extra Black`,Jo=`Ultra Black`,Yo=`lighter`,Xo=`normal`,Zo=`bold`,Qo=`bolder`,G=new Map;function $o(e){let t=400;if(t=typeof e==`number`?e:parseFloat(e),!isNaN(t))return t;if(typeof e==`string`){let t=n.textToKey(e),r=G.get(t);if(r)return r}return t}G.set(n.textToKey(Mo),100),G.set(n.textToKey(No),100),G.set(n.textToKey(Po),200),G.set(n.textToKey(Fo),200),G.set(n.textToKey(Io),300),G.set(n.textToKey(Lo),400),G.set(n.textToKey(Ro),400),G.set(n.textToKey(zo),500),G.set(n.textToKey(Bo),600),G.set(n.textToKey(Vo),600),G.set(n.textToKey(Lo),400),G.set(n.textToKey(Ho),700),G.set(n.textToKey(Uo),800),G.set(n.textToKey(Wo),800),G.set(n.textToKey(Go),900),G.set(n.textToKey(Ko),900),G.set(n.textToKey(qo),950),G.set(n.textToKey(Jo),950),G.set(n.textToKey(Yo),100),G.set(n.textToKey(Xo),400),G.set(n.textToKey(Zo),700),G.set(n.textToKey(Qo),700);var es=`xx-small`,ts=`x-small`,ns=`small`,rs=`medium`,is=`large`,as=`x-large`,os=`xx-large`,ss=`xxx-large`,cs=`smaller`,ls=`larger`,us=`math`,ds=RegExp(`^[0-9]*[.]?[0-9]+$`,`g`),K=new Map;function fs(e,t=11,r=`pt`){if(!e)return null;let i=t;e=e.trim().toLowerCase();let a=r===`pt`?O.getDeviceScale():1,o=r===`pt`?1:O.getDeviceScale();if(ds.test(e)){let t=parseFloat(e);isNaN(t)||(e=t+r)}if(e.endsWith(`pt`))i=parseFloat(e.substring(0,e.length-2).trim())*o;else if(e.endsWith(`px`))i=parseFloat(e.substring(0,e.length-2).trim())/a;else if(e.endsWith(`em`))i=parseFloat(e.substring(0,e.length-2).trim())*t;else if(e.endsWith(`rem`))i=parseFloat(e.substring(0,e.length-3).trim())*t;else if(e.endsWith(`%`))i=parseFloat(e.substring(0,e.length-1).trim())/100*t;else if(typeof e==`string`){let r=n.textToKey(e),i=K.get(r);if(i)return i(t)}return isNaN(i)?null:i}K.set(n.textToKey(es),e=>.4*e),K.set(n.textToKey(ts),e=>.5*e),K.set(n.textToKey(ns),e=>.6*e),K.set(n.textToKey(rs),e=>e),K.set(n.textToKey(is),e=>1.1*e),K.set(n.textToKey(as),e=>1.25*e),K.set(n.textToKey(os),e=>1.5*e),K.set(n.textToKey(ss),e=>2*e),K.set(n.textToKey(cs),e=>.9*e),K.set(n.textToKey(ls),e=>1.1*e),K.set(n.textToKey(us),e=>e);var q=new Map;q.set(U.BuiltInSheetPattern.None,{description:`None`,cssKey:`none`}),q.set(U.BuiltInSheetPattern.Solid,{description:`Solid`,cssKey:`solid`}),q.set(U.BuiltInSheetPattern.DarkGray,{description:`75% gray`,cssKey:`gray-75`}),q.set(U.BuiltInSheetPattern.MediumGray,{description:`50% gray`,cssKey:`gray-50`}),q.set(U.BuiltInSheetPattern.LightGray,{description:`25% gray`,cssKey:`gray-25`}),q.set(U.BuiltInSheetPattern.Gray125,{description:`12.5% Gray`,cssKey:`gray-125`}),q.set(U.BuiltInSheetPattern.Gray0625,{description:`6.25% Gray`,cssKey:`gray-0625`}),q.set(U.BuiltInSheetPattern.DarkHorizontal,{description:`Horizontal Strip`,cssKey:`horz-stripe`}),q.set(U.BuiltInSheetPattern.DarkVertical,{description:`Vertical Strip`,cssKey:`vert-stripe`}),q.set(U.BuiltInSheetPattern.DarkDown,{description:`Reverse Diagonal Stripe`,cssKey:`reverse-diag-stripe`}),q.set(U.BuiltInSheetPattern.DarkUp,{description:`Diagonal Strip`,cssKey:`diag-stripe`}),q.set(U.BuiltInSheetPattern.DarkGrid,{description:`Diagonal Crosshatch`,cssKey:`diag-cross`}),q.set(U.BuiltInSheetPattern.DarkTrellis,{description:`Thick Diagonal Crosshatch`,cssKey:`thick-diag-cross`}),q.set(U.BuiltInSheetPattern.LightHorizontal,{description:`Thin Horizontal Stripe`,cssKey:`thin-horz-stripe`}),q.set(U.BuiltInSheetPattern.LightVertical,{description:`Thin Vertical Stripe`,cssKey:`thin-vert-stripe`}),q.set(U.BuiltInSheetPattern.LightDown,{description:`Thin Reverse Diagonal Stripe`,cssKey:`thin-reverse-diag-stripe`}),q.set(U.BuiltInSheetPattern.LightUp,{description:`Thin Diagonal Stripe`,cssKey:`thin-diag-stripe`}),q.set(U.BuiltInSheetPattern.LightGrid,{description:`Thin Horizontal Cross`,cssKey:`thin-horz-cross`}),q.set(U.BuiltInSheetPattern.LightTrellis,{description:`Thin Diagonal Cross`,cssKey:`thin-diag-cross`});var ps=``,ms=new Map;q.forEach((e,t)=>{ps.length>0&&(ps+=`|`),ps+=`\\b`+e.cssKey+`\\b`,ms.set(e.cssKey,t)});var hs=RegExp(`(\\s*(?:${ps}))`,`g`);function gs(e){if(!e)return null;let t=e.toLowerCase();t=t.replace(/;/,``);let n=t.match(hs);if(!n)return null;let r=null;n&&n.length>0&&(r=(e=>{if(!e)return null;let n=t.indexOf(e);return t=t.substring(0,n)+t.substring(n+e.length,t.length),e.trim()})(n[0])),t=t.trim();let i=t?t.trim():null;return r||i?{patternType:ms.get(r??`solid`),foreground:i}:null}var _s=(e,t=!1,n=null)=>{if(!e)return null;let r=e.getStops();if(!r||r.length<1)return null;let i=r.length;if(i===1)return bo(r[0].getColor(),t);let a=``;for(let e=0;e<i;e++){let n=r[e],o=n.getOffset(),s=o===void 0?e/(i-1)*100:100*o;a+=`${bo(n.getColor(),t)} ${s}%${e<i-1?`, `:``}`}if(e.getGradientType()===U.GradientType.Linear){let t=e.getAngle()??0;if(n&&n.width>0&&n.height>0&&t%90!=0){let e=n.width,r=n.height,i=(90-t)*(Math.PI/180),a=Math.cos(i)*r,o=Math.sin(i)*e;t=(90-180*Math.atan2(o,a)/Math.PI+360)%360}return`linear-gradient(${t}deg, ${a})`}return e.getGradientType()===U.GradientType.Path||e.getGradientType()===U.GradientType.Rect||e.getGradientType()===U.GradientType.Shape?function(e,t,n){let r=t??Xs,i=vs(r.left??0),a=vs(r.right??0),o=vs(r.top??0),s=vs(r.bottom??0);if(i>a||o>s)return null;let c=(i+a)/2,l=(o+s)/2,u=(100*c).toFixed(3),d=(100*l).toFixed(3);if(!n||n.width<=0||n.height<=0)return`radial-gradient(ellipse farthest-corner at ${u}% ${d}%, ${e})`;let f=n.width,p=n.height,m=Math.max(c,1-c),h=Math.max(l,1-l),g=Math.sqrt(m*m+h*h);return`radial-gradient(ellipse ${(g*f).toFixed(3)}px ${(g*p).toFixed(3)}px at ${u}% ${d}%, ${e})`}(a,e.getFocus(),n)||bo((r[i-1]??r[0]).getColor(),t):null},vs=e=>Math.max(0,Math.min(1,e));function ys(e){return q.get(e)?.cssKey??`solid`}var J=new Map;function bs(e){if(!e)return`none`;let t=J.get(e.getStyle());if(!t)return null;if(t.cssKey===`none`)return t.cssKey;let n=function(e,t=!1){return e?.toRGBA(t).toString(!1)??null}(e?.getColor());return n=n?` `+n:``,`${t.size===null?``:`${t.size}pt `}${t.cssKey}${n}`}J.set(k.StrokeStyle.None,{size:null,cssKey:`none`}),J.set(k.StrokeStyle.DashDot,{size:.5,cssKey:`dot-dash`}),J.set(k.StrokeStyle.DashDotDot,{size:.5,cssKey:`dot-dot-dash`}),J.set(k.StrokeStyle.Dashed,{size:.5,cssKey:`dashed`}),J.set(k.StrokeStyle.MediumDashed,{size:1,cssKey:`dashed`}),J.set(k.StrokeStyle.Dotted,{size:.5,cssKey:`dotted`}),J.set(k.StrokeStyle.MediumDashDot,{size:1,cssKey:`dot-dash`}),J.set(k.StrokeStyle.MediumDashDotDot,{size:1,cssKey:`dot-dot-dash`}),J.set(k.StrokeStyle.Hair,{size:.5,cssKey:`hairline`}),J.set(k.StrokeStyle.Thin,{size:.5,cssKey:`solid`}),J.set(k.StrokeStyle.Thick,{size:1.5,cssKey:`solid`}),J.set(k.StrokeStyle.Medium,{size:1,cssKey:`solid`}),J.set(k.StrokeStyle.Double,{size:2,cssKey:`double`}),J.set(k.StrokeStyle.SlantDashDot,{size:1,cssKey:`dot-dash-slanted`});var xs=[],Ss=new Set,Cs=new Map,ws=(e,t)=>{let n=e.size===null?e.cssKey:`${e.size.toString()} ${e.cssKey}`;Cs.set(n,t),Ss.has(e.cssKey)||(xs.push(e.cssKey),Ss.add(e.cssKey))};J.forEach(ws);var Ts=Object.keys(k.StrokeStyle);for(let e=0;e<Ts.length;e++)ws({size:null,cssKey:Ts[e].toLowerCase()},k.StrokeStyle[Ts[e]]);ws({size:null,cssKey:`double`},k.StrokeStyle.Double),ws({size:null,cssKey:`solid`},k.StrokeStyle.Medium),ws({size:null,cssKey:`hidden`},k.StrokeStyle.None),xs.sort((e,t)=>t.length-e.length);var Es=``,Ds=xs.length;for(let e=0;e<Ds;e++)Es.length>0&&(Es+=`|`),Es+=`\\b`+xs[e]+`\\b`;var Os=RegExp(`(\\s*(?:${Es}))`,`g`),ks=RegExp(`(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})`,`g`);function As(e,t){if(!e)return null;let n=e.toLowerCase(),r=n.match(Os);if(!r){let e=t?.(n);return e?{color:e,style:k.StrokeStyle.Medium}:null}let i=e=>{if(!e)return null;let t=n.indexOf(e);return n=n.substring(0,t)+n.substring(t+e.length,n.length).trim(),e.trim()},a=null;if(r&&r.length>0&&(a=i(r[0])),!a)return null;let o=null;if(r=n.match(ks),r&&r.length>0){let e=i(r[0]);o=parseFloat(e.substring(0,e.length-2))}n=n.trim();let s=n?n.trim():null,c=o===null?a:`${o.toString()} ${a}`,l=Cs.get(c);return l||=Cs.get(a),l?{color:s,style:l}:null}var js=`start`,Ms=`end`,Ns=`left`,Ps=`right`,Fs=`center`,Is=`justify`,Ls=`justify-all`,Rs=`baseline`,zs=`top`,Bs=`middle`,Vs=`bottom`,Hs=`sub`,Us=`text-top`,Ws=`justify`,Gs=`distributed`,Ks=new Map;function qs(e){let t=n.textToKey(e);return Ks.get(t)||null}Ks.set(n.textToKey(js),l.HorizontalAlignment.Left),Ks.set(n.textToKey(Ns),l.HorizontalAlignment.Left),Ks.set(n.textToKey(Ms),l.HorizontalAlignment.Right),Ks.set(n.textToKey(Ps),l.HorizontalAlignment.Right),Ks.set(n.textToKey(Fs),l.HorizontalAlignment.Center),Ks.set(n.textToKey(Is),l.HorizontalAlignment.Justify),Ks.set(n.textToKey(Ls),l.HorizontalAlignment.Justify);var Js=new Map;Js.set(n.textToKey(Rs),l.VerticalAlignment.Bottom),Js.set(n.textToKey(zs),l.VerticalAlignment.Top),Js.set(n.textToKey(Bs),l.VerticalAlignment.Center),Js.set(n.textToKey(Vs),l.VerticalAlignment.Bottom),Js.set(n.textToKey(Hs),l.VerticalAlignment.Bottom),Js.set(n.textToKey(Us),l.VerticalAlignment.Top),Js.set(n.textToKey(Ws),l.VerticalAlignment.Justify),Js.set(n.textToKey(Gs),l.VerticalAlignment.Distributed);var Ys=e=>{let t=n.textToKey(e);return Js.get(t)||null},Xs=Object.freeze({left:0,right:0,top:0,bottom:0});function Zs(e){return Math.ceil(e/4)}function Qs(e){return 1}function $s(e,t,n){return Pe}var ec=e=>{if(e instanceof so)return{color:e.toString()};if(typeof e==`string`)try{return{color:e===`none`||e===`transparent`?null:e}}catch(e){throw e}return e},Y=r.PassThrough,tc={shorthand:(e,t)=>{if(!e||e===`none`||e===`transparent`)return null;try{return t.parseColor(e).toString()}catch(e){console.warn(`error`,e)}return e},merge:(e,t,n)=>e},nc={shorthand:(e,t)=>{if(e.isIStroke)return e.getProperties();if(typeof e==`string`&&(e=As(e,e=>{try{return t.parseColor(e).toString()}catch{}return null})),!e)return null;let n={};return e.style&&(n.style=e.style),e.color&&(n.color=e.color),n},properties:{color:tc,style:Y}},rc={shorthand:(e,t)=>{if(e.isIBorders)return e.getProperties();if(typeof e==`string`){let n=As(e,e=>{try{return t.parseColor(e).toString()}catch{}return null});return{left:n,right:n,top:n,bottom:n,horizontal:null,vertical:null,diagonalUp:null,diagonalDown:null}}return e},properties:{top:nc,left:nc,right:nc,bottom:nc,horizontal:nc,vertical:nc,diagonalUp:nc,diagonalDown:nc}},ic={shorthand:(e,t)=>{if(typeof e==`string`){let t=va.Styles.lookupDefault(e)??e,n=va.toBuiltInID(t);return typeof n==`number`&&n!==0?n:t}return typeof e==`number`?e===0?va.Type.General:va.builtInFormat(e)===void 0?null:e:null}},ac={shorthand:(e,t)=>{if(e.isIFontStyle)return e.toJSON();if(typeof e==`string`){let t=yo(e);if(t){let e={};if(t.family&&(e.family=t.family),t.fallbacks&&(e.fallbacks=t.fallbacks),t.size&&(e.size=fs(t.size)),Object.keys(t).length>0)return e}return e}return e&&(e=>{let{bold:t,italic:n,...r}=e;if(t===void 0&&n===void 0)return e;let i=r;return t!==void 0&&i.weight===void 0&&(i.weight=t===null?null:t?700:400),n!==void 0&&i.style===void 0&&(i.style=n===null?null:n?O.Style.Italic:O.Style.Normal),i})(e)},properties:{family:{shorthand:(e,t)=>e===Ee.ThemeFamily.Heading||e===Ee.ThemeFamily.Body?e:yo(e)?.family??null},fallbacks:{shorthand:(e,t)=>{if(typeof e!=`string`)return e;let n=yo(e);if(!n)return null;let r=[n.family];return n.fallbacks&&(r=r.concat(n.fallbacks)),r}},size:{shorthand:(e,t)=>{let r=e;return typeof e==`string`&&(r=fs(e,t.getNormal().getFont().getSize())),isNaN(r)||typeof r!=`number`?null:(r=Math.max(1,Math.min(n.roundAccurately(r,1),409)),r)}},weight:{shorthand:(e,t)=>{if(typeof e!=`string`)return e;let n=$o(e);return isNaN(n)||typeof n!=`number`?null:n}},style:Y,color:tc,letterSpacing:Y,underline:{shorthand:(e,t)=>e?!0===e?O.UnderlineStyle.Single:Eo(e):O.UnderlineStyle.None},strike:{shorthand:(e,t)=>!0===e?O.StrikeStyle.Single:!1===e?O.StrikeStyle.None:e},baseline:Y,shadow:Y,outline:Y,charset:{shorthand:(e,t)=>{if(e==null)return null;let n=typeof e==`string`?parseInt(e,10):e;return typeof n==`number`&&Number.isFinite(n)?n:null}}}},oc={shorthand:(e,t)=>e&&typeof e==`object`?(e=>{let{rotation:t,stacked:n}=e;return t!=null&&n===void 0?{...e,stacked:!1}:!0===n&&t===void 0?{...e,rotation:0}:e})(e):e,properties:{horizontal:Y,vertical:Y,indent:{shorthand:(e,t)=>{let n=e;return typeof e==`string`&&(n=parseFloat(e)),isNaN(n)||typeof n!=`number`?null:n}},relativeIndent:Y,overflow:Y,rotation:{shorthand:(e,t)=>{let n=e;return typeof e==`string`&&(n=parseFloat(e)),isNaN(n)||typeof n!=`number`?null:(n%=360,n<0&&(n+=360),n)}},stacked:Y,justifyLastLine:Y,readingDirection:Y}},sc={shorthand:(e,t)=>e===`none`||e===`transparent`||typeof e==`object`&&Object.keys(e).length===0?{type:U.Type.None}:(e.getType?.(),U.Type.None,e)},cc={shorthand:e=>{let t=ec(e);return typeof t==`object`&&t.color&&(t.type=U.Type.Solid),t},merge:(e,t)=>{let n=e,r=t;return n&&`color`in n&&n.color===null?{type:U.Type.None}:n.color?n:(r?.toJSON&&(r=r.toJSON()),r?.type===U.Type.Solid?{...r}:r?.type===U.Type.Gradient?{type:U.Type.Solid,color:r?.stops?.[0]?.color??H.Scheme.Bg1}:r?.type===U.Type.Pattern?{type:U.Type.Solid,color:r?.foreground??H.Scheme.Bg1}:n?{...n}:null)},properties:{color:tc,type:Y,isRotatedWithShape:Y}},lc={shorthand:e=>(typeof e==`object`&&e.stops&&(e.type=U.Type.Gradient),e),merge:(e,t,n)=>{let r=e,i=t;return r.stops?r:(i?.toJSON&&(i=i.toJSON()),i?.type===U.Type.Gradient?{...i}:i?.type===U.Type.Solid?{type:U.Type.Gradient,stops:[{offset:0,color:i?.color??H.Scheme.Accent1},{offset:1,color:H.Scheme.Bg1}]}:i?.type===U.Type.Pattern?{type:U.Type.Gradient,stops:[{offset:0,color:i?.foreground??H.Scheme.Bg1},{offset:1,color:i?.background??H.Scheme.Accent1}]}:r?{...r}:null)},properties:{type:Y,stops:{shorthand:e=>(typeof e==`string`&&(e=e.split(`,`).map(e=>e.trim())),Array.isArray(e)?e.map((e,t)=>{if(!e)return;let n=e;return typeof e==`string`&&(n=ec(e)),e.isIColor&&(n={color:e.toString()}),n}):e),arrayType:{shorthand:e=>ec(e),properties:{color:tc,offset:Y}}},gradientType:Y,angle:Y,focus:Y,scaled:Y,tileRect:Y,flip:Y,isRotatedWithShape:Y}},uc={shorthand:(e,t)=>{if(typeof e==`object`){let t=e;(t.foreground||t.background||t.patternType)&&(t.type=U.Type.Pattern,t.patternType=t.patternType??U.BuiltInSheetPattern.Solid)}return e},merge:(e,t,n)=>{let r=e,i=t;if(r.background&&r.foreground)return r;i?.toJSON&&(i=i.toJSON());let a=U.BuiltInSheetPattern.MediumGray;if(i?.type===U.Type.Pattern){let e={type:U.Type.Pattern,patternType:r.patternType??i.patternType};return i.foreground&&(e.foreground=i.foreground),i.background&&(e.background=i.background),r.foreground&&(e.foreground=r.foreground),r.background&&(e.background=r.background),e}return i?.type===U.Type.Solid?{patternType:a,foreground:i?.color??H.Named.WindowText,background:H.Scheme.Bg1,...r}:i?.type===U.Type.Gradient?{patternType:a,foreground:i?.stops?.[0]?.color??H.Named.WindowText,background:i?.stops?.[1]?.color??H.Scheme.Bg1,...r}:r?{type:U.Type.Pattern,patternType:U.BuiltInSheetPattern.Solid,foreground:H.Named.WindowText,background:H.Scheme.Bg1,...r}:null},properties:{type:Y,patternType:Y,foreground:tc,background:tc,isRotatedWithShape:Y}},dc={properties:{type:Y,resId:Y,sourceRect:Y,stretch:Y,tile:Y,dpi:Y,compressionState:Y,imageEffects:Y,extLst:Y,isRotatedWithShape:Y}},fc={properties:{type:Y,isRotatedWithShape:Y}},pc=[sc,cc,lc,uc,dc,fc],mc=[];for(let e=0;e<pc.length;e++){let t=pc[e]?.shorthand;t&&mc.push(t)}var hc=mc.length,gc={shorthand:(e,t)=>{e.isIFill&&(e=e.toJSON());for(let n=0;n<hc;n++){let r=mc[n](e,t);if(r?.type)return r}return e},getSubType:(e,t)=>{let n=e.type??t?.type;return n===U.Type.None?sc:n===U.Type.Solid?cc:n===U.Type.Gradient?lc:n===U.Type.Pattern?uc:n===U.Type.Image?dc:n===U.Type.Group?fc:null}},_c={properties:{font:ac,fill:gc,alignment:oc,borders:rc,numberFormat:ic,quotePrefix:Y,protection:{properties:{alwaysUnlocked:Y,showFormulas:Y}},named:Y,insets:Y}},vc=Object.freeze([`font`,`fill`,`alignment`,`borders`,`numberFormat`,`quotePrefix`,`protection`,`insets`]),yc={shorthand:(e,t)=>{if(!e||typeof e!=`object`)return;let n=e.named;if(!n||(n.isINamed&&(n=n.getName()),typeof n!=`string`))return;let r=null;if(n.toLowerCase()===$a.BuiltInName.Normal.toLowerCase())r=vc;else{let e=t?.getNamedStyles().getByName(n)?.getRanged().getPropertiesAt(0,0,null);e&&(r=Object.keys(e))}let i={...e,named:n},a=r?r.length:0;for(let e=0;e<a;e++){let t=r[e];t!==`named`&&i[t]===void 0&&(i[t]=null)}return i},properties:_c.properties},bc={properties:{style:yc,name:Y,hidden:Y,iLevel:Y,customized:Y}},xc={[U.BuiltInSheetPattern.Gray0625]:{path:`M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 4.5 2.5 L 4.5 3.5 M 4.5 6.5 L 4.5 7.5`,size:8},[U.BuiltInSheetPattern.LightGray]:{path:`M 0.5 0.5 L 0.5 1.5 M 0.5 2.5 L 0.5 3.5 M 2.5 -0.5 L 2.5 0.5 M 2.5 1.5 L 2.5 2.5 M 2.5 3.5 L 2.5 4.5`,size:4},[U.BuiltInSheetPattern.MediumGray]:{path:`M 0.5 0.5 L 0.5 1.5 M 1.5 1.5 L 1.5 2.5 M 1.5 -0.5 L 1.5 0.5 M -0.5 -0.5 L -0.5 0.5`,size:2},[U.BuiltInSheetPattern.DarkGray]:{path:`M 0 0 L 0 4 M 1 1 L 1 2 M 1 3 L 1 4 M 2 0 L 2 4 M 3 0.5 L 3 1.5 M 3 2.5 L 3 3.5 M 4 0 L 4 4`,size:4},[U.BuiltInSheetPattern.LightHorizontal]:{path:`M 0 2 L 4 2`,size:4},[U.BuiltInSheetPattern.DarkHorizontal]:{path:`M 0 2 L 4 2 M 0 3 L 4 3`,size:4},[U.BuiltInSheetPattern.LightVertical]:{path:`M 2 0 L 2 4`,size:4},[U.BuiltInSheetPattern.DarkVertical]:{path:`M 2 0 L 2 4 M 3 0 L 3 4`,size:4},[U.BuiltInSheetPattern.LightUp]:{path:`M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5`,size:4},[U.BuiltInSheetPattern.DarkUp]:{path:`M 0.5 -0.5 L 0.5 1.5 M 0.5 3.5 L 0.5 4.5 M 1.5 2.5 L 1.5 4.5 M 2.5 1.5 L 2.5 3.5 M 3.5 0.5 L 3.5 2.5 M 1.5 -0.5 L 1.5 0.5`,size:4},[U.BuiltInSheetPattern.LightDown]:{path:`M 0.5 0 L 0.5 1 M 1.5 1 L 1.5 2 M 2.5 2 L 2.5 3 M 3.5 3 L 3.5 4`,size:4},[U.BuiltInSheetPattern.DarkDown]:{path:`M 0.5 -0.5 L 0.5 2 M 1.5 1 L 1.5 3 M 2.5 2 L 2.5 4 M 3.5 3 L 3.5 5 M 3.5 -0.5 L 3.5 1.0`,size:4},[U.BuiltInSheetPattern.LightGrid]:{path:`M 1.5 -0.5 L 1.5 4.5 M -0.5 1.5 L 4.5 1.5`,size:4},[U.BuiltInSheetPattern.DarkGrid]:{path:`M 0.5 -0.5 L 0.5 1.5 M 1.5 -0.5 L 1.5 1.5 M 2.5 1.5 L 2.5 3.5 M 3.5 1.5 L 3.5 3.5 M 0.5 3.5 L 0.5 4.5 M 1.5 3.5 L 1.5 4.5`,size:4},[U.BuiltInSheetPattern.LightTrellis]:{path:`M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5 M 1.5 1.5 L 1.5 2.5 M 3.5 3.5 L 3.5 4.5 M 3.5 -0.5 L 3.5 0.5`,size:4},[U.BuiltInSheetPattern.DarkTrellis]:{path:`M 0 0 L 4 0 M 0 1 L 2 1 M 0 2 L 4 2 M 2 3 L 4 3 M 0 4 L 4 4`,size:4},[U.BuiltInSheetPattern.Gray125]:{path:`M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 2.5 2.5 L 2.5 3.5 M 2.5 6.5 L 2.5 7.5 M 4.5 0.5 L 4.5 1.5 M 4.5 4.5 L 4.5 5.5 M 6.5 2.5 L 6.5 3.5 M 6.5 6.5 L 6.5 7.5`,size:8}},Sc=xc[U.BuiltInSheetPattern.Gray125],Cc=(e,t,n)=>`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}' viewBox='0 0 ${t} ${t}' shape-rendering='crispEdges' %3E%3Cpath d='${e}' stroke='${n}' %3E%3C/path%3E%3C/svg%3E")`,wc=new class{_svgImage(e,t,n){let{path:r,size:i}=n;return{backgroundImage:Cc(r,i,e),backgroundRepeat:`repeat`,backgroundSize:`${i}px ${i}px`,backgroundPositionX:`0px`,backgroundPositionY:`0px`,backgroundPosition:``+-i,backgroundColor:t}}toCSS(e,t,n){return e&&e!==U.BuiltInSheetPattern.None?e===U.BuiltInSheetPattern.Solid?{background:t}:this._svgImage(t,n,xc[e]??Sc):{background:`none`}}toCSSMask(e,t,n){if(!e||e===U.BuiltInSheetPattern.None||e===U.BuiltInSheetPattern.Solid)return null;let{path:r,size:i}=xc[e]??Sc;return{base:{backgroundColor:n},marks:{backgroundColor:t,maskImage:Cc(r,i,`black`),maskRepeat:`repeat`,maskSize:`${i}px ${i}px`,maskPosition:`0px 0px`}}}},Tc=class{constructor(e,t){this._h=e,this._p=t}_value(e){let t=this._p;for(let n=t.length-1;n>=0;n--){let r=t[n]?.[e];if(r!==void 0)return r}}_update(e,t,n){return this._h.updateFill(e,{description:t,...n})}get isIFill(){return!0}},Ec=Object.freeze({background:`none`}),Dc=class extends Tc{getType(){return U.Type.None}getColor(){return null}setColor(e,t){return e===null?this:this._update({color:e},i(`op.setFillColor`),t)}toCSS(e){return Ec}hasVisibleStyling(){return!1}isEqual(e){return!!e&&e.getType()===U.Type.None}toJSON(){return{type:U.Type.None}}get[Symbol.toStringTag](){return`[NoneFill]`}toString(){return`[NoneFill]`}},Oc=class extends Tc{getType(){return U.Type.Solid}getColor(){return this._h.parseColor(this._value(`color`)??H.Scheme.Bg1)}setColor(e,t){return this._update({color:e},i(`op.setFillColor`),t)}toCSS(e){return{background:this.getColor().toCSS(e)}}hasVisibleStyling(){let e=this._h.getBaseFill();return!e||!e.isEqual(this)}isEqual(e){return!!e&&e.getType()===U.Type.Solid&&!!e.getColor().isEqual(this.getColor())}toJSON(){return{type:U.Type.Solid,color:this.getColor()?.toString()??null}}get[Symbol.toStringTag](){return`[SolidFill]`}toString(){return`[SolidFill]`}},kc=class extends Tc{constructor(e,t,n,r){super(n,r),this._i=e,this._l=t}getOffset(){return this._value(`offset`)??(this._l>1?this._i/(this._l-1):0)}getColor(){return this._h.parseColor(this._value(`color`)??H.Scheme.Bg1)}},Ac=class extends Tc{getType(){return U.Type.Gradient}_stops(){return this._value(`stops`)??n.EmptyArray}getColor(){let e=this._stops(),t=e.length;return t===0?null:new kc(0,t,this._h,[e[0]]).getColor()}setColor(e,t){let n=this._stops(),r=n.length>0?{...n[0]}:{offset:0,color:null},a=[...n];return a[0]=r,r.color=e,this._update({stops:a},i(`op.setFillColor`),t)}getStops(){let e=this._stops(),t=e.length,r=t===0?n.EmptyArray:Array(t);for(let n=0;n<t;n++)r[n]=new kc(n,t,this._h,[e[n]]);return r}setStops(e,t){return this._update({stops:e},i(`op.setStops`),t)}getGradientType(){return this._value(`gradientType`)??U.GradientType.Linear}setGradientType(e,t){return this._update({gradientType:e},i(`op.setGradientType`),t)}getAngle(){return this._value(`angle`)??0}setAngle(e,t){return this._update({angle:e},i(`op.setAngle`),t)}getFocus(){return this._value(`focus`)??null}setFocus(e,t){return this._update({focus:e},i(`op.setFocus`),t)}toCSS(e,t){let n=_s(this,e,t);return n?{background:n}:null}hasVisibleStyling(){return!0}isEqual(e){return!1}toJSON(){let e={type:U.Type.Gradient},t=this._stops(),n=t.length;if(n>0){let r=Array(n);for(let e=0;e<n;e++){let n=t[e],i={color:n.color.toString()},a=n.offset;a!==void 0&&(i.offset=a),r[e]=i}e.stops=r}return this.getAngle()!==0&&(e.angle=this.getAngle()),this.getGradientType()!==U.GradientType.Linear&&(e.gradientType=this.getGradientType()),this.getFocus()&&(e.focus=this.getFocus()),e}get[Symbol.toStringTag](){return`[GradientFill]`}toString(){return`[GradientFill]`}},jc=class extends Tc{getType(){return U.Type.Pattern}getColor(){return this.getBackground()}setColor(e,t){return this.setBackground(e,t)}getBackground(){let e=this._value(`background`)??H.Named.Window;return this._h.parseColor(e)}setBackground(e,t){return this._update({background:e},i(`op.setBackgroundColor`),t)}getForeground(){return this._h.parseColor(this._value(`foreground`)??H.Scheme.Tx1)}setForeground(e,t){return this._update({foreground:e},i(`op.setForegroundColor`),t)}getPatternType(){return this._value(`patternType`)??U.BuiltInSheetPattern.None}setPatternType(e,t){return this._update({patternType:e},i(`op.setPatternType`),t)}toCSS(e){if(this.getPatternType()===U.BuiltInSheetPattern.None)return{background:`none`};if(this.getPatternType()===U.BuiltInSheetPattern.Solid)return{background:this.getForeground().toCSS(e)};let t=!0===e,n=e=>{let n=e.toRGBA(t);return n.alpha===0?`none`:n.toString(!1)};return wc.toCSS(this.getPatternType(),n(this.getForeground()),n(this.getBackground()))}toCSSMask(e){return wc.toCSSMask(this.getPatternType(),this.getForeground().toCSS(e),this.getBackground().toCSS(e))}hasVisibleStyling(){return!0}isEqual(e){if(!e||e.getType()!==U.Type.Pattern)return!1;let t=e;return t.getPatternType()===this.getPatternType()&&!!t.getForeground().isEqual(this.getForeground())&&!!t.getBackground().isEqual(this.getBackground())}toJSON(){let e={type:U.Type.Pattern};this.getPatternType()!==U.BuiltInSheetPattern.None&&(e.patternType=this.getPatternType());let t=this.getForeground();t&&(e.foreground=t.toString());let n=this.getBackground();return n&&(e.background=n.toString()),e}get[Symbol.toStringTag](){return`[PatternFill]`}toString(){return`[PatternFill]`}},Mc=[`resId`,`sourceRect`,`stretch`,`tile`,`dpi`,`compressionState`,`extLst`,`isRotatedWithShape`],Nc=class extends Tc{getType(){return U.Type.Image}getColor(){return null}setColor(e,t){return e===null?this:this._update({type:U.Type.Solid,color:e},i(`op.setFillColor`),t)}getResource(){let e=this._value(`resId`);return e===void 0?null:this._h.getResource?.(e)??null}isTiled(){return this._value(`tile`)!==void 0}toCSS(e){return Ec}hasVisibleStyling(){return!0}isEqual(e){if(!e||e.getType()!==U.Type.Image)return!1;let t=e.toJSON(),n=this.toJSON();for(let e of Mc)if(JSON.stringify(n[e])!==JSON.stringify(t[e]))return!1;return!0}toJSON(){let e={type:U.Type.Image};for(let t of Mc){let n=this._value(t);n!==void 0&&(e[t]=n)}return e}get[Symbol.toStringTag](){return`[ImageFill]`}toString(){return`[ImageFill]`}};function Pc(e,t){let n=t.filter(e=>!!e),r;for(let e=n.length-1;r===void 0&&e>=0;e--)r=n[e].type;if(r===void 0){for(let e=n.length-1;e>=0;e--)if(n[e].color!==void 0){r=U.Type.Solid;break}}switch(r){case U.Type.Solid:return new Oc(e,n);case U.Type.Gradient:return new Ac(e,n);case U.Type.Pattern:return new jc(e,n);case U.Type.Image:return new Nc(e,n);default:return new Dc(e,n)}}var Fc,Ic,Lc,Rc,zc=Object.freeze({AccentBorderCallout1:`accentBorderCallout1`,AccentBorderCallout2:`accentBorderCallout2`,AccentBorderCallout3:`accentBorderCallout3`,AccentCallout1:`accentCallout1`,AccentCallout2:`accentCallout2`,AccentCallout3:`accentCallout3`,ActionButtonBackPrevious:`actionButtonBackPrevious`,ActionButtonBeginning:`actionButtonBeginning`,ActionButtonBlank:`actionButtonBlank`,ActionButtonDocument:`actionButtonDocument`,ActionButtonEnd:`actionButtonEnd`,ActionButtonForwardNext:`actionButtonForwardNext`,ActionButtonHelp:`actionButtonHelp`,ActionButtonHome:`actionButtonHome`,ActionButtonInformation:`actionButtonInformation`,ActionButtonMovie:`actionButtonMovie`,ActionButtonReturn:`actionButtonReturn`,ActionButtonSound:`actionButtonSound`,Arc:`arc`,BentArrow:`bentArrow`,BentConnector2:`bentConnector2`,BentConnector3:`bentConnector3`,BentConnector4:`bentConnector4`,BentConnector5:`bentConnector5`,BentUpArrow:`bentUpArrow`,Bevel:`bevel`,BlockArc:`blockArc`,BorderCallout1:`borderCallout1`,BorderCallout2:`borderCallout2`,BorderCallout3:`borderCallout3`,BracePair:`bracePair`,BracketPair:`bracketPair`,Callout1:`callout1`,Callout2:`callout2`,Callout3:`callout3`,Can:`can`,ChartPlus:`chartPlus`,ChartStar:`chartStar`,ChartX:`chartX`,Chevron:`chevron`,Chord:`chord`,CircularArrow:`circularArrow`,Cloud:`cloud`,CloudCallout:`cloudCallout`,Corner:`corner`,CornerTabs:`cornerTabs`,Cube:`cube`,CurvedConnector2:`curvedConnector2`,CurvedConnector3:`curvedConnector3`,CurvedConnector4:`curvedConnector4`,CurvedConnector5:`curvedConnector5`,CurvedDownArrow:`curvedDownArrow`,CurvedLeftArrow:`curvedLeftArrow`,CurvedRightArrow:`curvedRightArrow`,CurvedUpArrow:`curvedUpArrow`,Decagon:`decagon`,DiagStripe:`diagStripe`,Diamond:`diamond`,Dodecagon:`dodecagon`,Donut:`donut`,DoubleWave:`doubleWave`,DownArrow:`downArrow`,DownArrowCallout:`downArrowCallout`,Ellipse:`ellipse`,EllipseRibbon:`ellipseRibbon`,EllipseRibbon2:`ellipseRibbon2`,FlowChartAlternateProcess:`flowChartAlternateProcess`,FlowChartCollate:`flowChartCollate`,FlowChartConnector:`flowChartConnector`,FlowChartDecision:`flowChartDecision`,FlowChartDelay:`flowChartDelay`,FlowChartDisplay:`flowChartDisplay`,FlowChartDocument:`flowChartDocument`,FlowChartExtract:`flowChartExtract`,FlowChartInputOutput:`flowChartInputOutput`,FlowChartInternalStorage:`flowChartInternalStorage`,FlowChartMagneticDisk:`flowChartMagneticDisk`,FlowChartMagneticDrum:`flowChartMagneticDrum`,FlowChartMagneticTape:`flowChartMagneticTape`,FlowChartManualInput:`flowChartManualInput`,FlowChartManualOperation:`flowChartManualOperation`,FlowChartMerge:`flowChartMerge`,FlowChartMultidocument:`flowChartMultidocument`,FlowChartOfflineStorage:`flowChartOfflineStorage`,FlowChartOffpageConnector:`flowChartOffpageConnector`,FlowChartOnlineStorage:`flowChartOnlineStorage`,FlowChartOr:`flowChartOr`,FlowChartPredefinedProcess:`flowChartPredefinedProcess`,FlowChartPreparation:`flowChartPreparation`,FlowChartProcess:`flowChartProcess`,FlowChartPunchedCard:`flowChartPunchedCard`,FlowChartPunchedTape:`flowChartPunchedTape`,FlowChartSort:`flowChartSort`,FlowChartSummingJunction:`flowChartSummingJunction`,FlowChartTerminator:`flowChartTerminator`,FoldedCorner:`foldedCorner`,Frame:`frame`,Funnel:`funnel`,Gear6:`gear6`,Gear9:`gear9`,HalfFrame:`halfFrame`,Heart:`heart`,Heptagon:`heptagon`,Hexagon:`hexagon`,HomePlate:`homePlate`,HorizontalScroll:`horizontalScroll`,IrregularSeal1:`irregularSeal1`,IrregularSeal2:`irregularSeal2`,LeftArrow:`leftArrow`,LeftArrowCallout:`leftArrowCallout`,LeftBrace:`leftBrace`,LeftBracket:`leftBracket`,LeftCircularArrow:`leftCircularArrow`,LeftRightArrow:`leftRightArrow`,LeftRightArrowCallout:`leftRightArrowCallout`,LeftRightCircularArrow:`leftRightCircularArrow`,LeftRightRibbon:`leftRightRibbon`,LeftRightUpArrow:`leftRightUpArrow`,LeftUpArrow:`leftUpArrow`,LightningBolt:`lightningBolt`,Line:`line`,LineInv:`lineInv`,MathDivide:`mathDivide`,MathEqual:`mathEqual`,MathMinus:`mathMinus`,MathMultiply:`mathMultiply`,MathNotEqual:`mathNotEqual`,MathPlus:`mathPlus`,Moon:`moon`,NoSmoking:`noSmoking`,NonIsoscelesTrapezoid:`nonIsoscelesTrapezoid`,NotchedRightArrow:`notchedRightArrow`,Octagon:`octagon`,Parallelogram:`parallelogram`,Pentagon:`pentagon`,Pie:`pie`,PieWedge:`pieWedge`,Plaque:`plaque`,PlaqueTabs:`plaqueTabs`,Plus:`plus`,QuadArrow:`quadArrow`,QuadArrowCallout:`quadArrowCallout`,Rect:`rect`,Ribbon:`ribbon`,Ribbon2:`ribbon2`,RightArrow:`rightArrow`,RightArrowCallout:`rightArrowCallout`,RightBrace:`rightBrace`,RightBracket:`rightBracket`,Round1Rect:`round1Rect`,Round2DiagRect:`round2DiagRect`,Round2SameRect:`round2SameRect`,RoundRect:`roundRect`,RtTriangle:`rtTriangle`,SmileyFace:`smileyFace`,Snip1Rect:`snip1Rect`,Snip2DiagRect:`snip2DiagRect`,Snip2SameRect:`snip2SameRect`,SnipRoundRect:`snipRoundRect`,SquareTabs:`squareTabs`,Star10:`star10`,Star12:`star12`,Star16:`star16`,Star24:`star24`,Star32:`star32`,Star4:`star4`,Star5:`star5`,Star6:`star6`,Star7:`star7`,Star8:`star8`,StraightConnector1:`straightConnector1`,StripedRightArrow:`stripedRightArrow`,Sun:`sun`,SwooshArrow:`swooshArrow`,Teardrop:`teardrop`,Trapezoid:`trapezoid`,Triangle:`triangle`,UpArrow:`upArrow`,UpArrowCallout:`upArrowCallout`,UpDownArrow:`upDownArrow`,UpDownArrowCallout:`upDownArrowCallout`,UturnArrow:`uturnArrow`,VerticalScroll:`verticalScroll`,Wave:`wave`,WedgeEllipseCallout:`wedgeEllipseCallout`,WedgeRectCallout:`wedgeRectCallout`,WedgeRoundRectCallout:`wedgeRoundRectCallout`});(Ic=Fc||={}).Preset=zc,Ic.PathLayer={Fill:`fill`,Stroke:`stroke`,Marker:`marker`},Ic.FillTransfer=Object.freeze({norm:[1,0],darken:[.6,0],darkenLess:[.8,0],lighten:[.6,.4],lightenLess:[.8,.2]}),Ic.HandleType={XY:`xy`,Polar:`polar`},(Rc=Lc||={}).Type={Shape:`shape`,Connector:`connector`},Rc.ConnectorType={Straight:`straight`,Elbow:`elbow`,Curved:`curved`};var Bc=96/72,Vc={head:[`headType`,`headWidth`,`headLength`],tail:[`tailType`,`tailWidth`,`tailLength`]},Hc=(e,t)=>{let[n,r,i]=Vc[e];if(t===null)return{[n]:null,[r]:null,[i]:null};let a=typeof t==`string`?{type:t}:t;return{[n]:a.type,[r]:a.width??null,[i]:a.length??null}},Uc=class e{constructor(e,t){this._fill=null,this._h=e,this._p=t.filter(e=>!!e)}_value(e){let t=this._p;for(let n=t.length-1;n>=0;n--){let r=t[n][e];if(r!==void 0)return r}}_update(e,t,n){return this._h.updateStroke(e,{description:t,...n})}getFill(){if(this._fill)return this._fill;let e=this._h,t={parseColor:t=>e.parseColor(t),getBaseFill:()=>e.getBaseStroke()?.getFill()??null,getResource:t=>e.getResource?.(t)??null,updateFill:(t,n)=>e.updateStroke({fill:t},n).getFill()},n=this._p.map(e=>e.fill);return this._fill=Pc(t,n)}setFill(e,t){return this._update({fill:e},i(`op.setStrokeColor`),t)}getWidth(){let e=this._value(`width`);return typeof e==`number`?e:.75}setWidth(e,t){return this._update({width:e},i(`op.setStrokeWidth`),t)}getDash(){return this._value(`dash`)??W.DashStyle.Solid}setDash(e,t){return this._update({dash:e},i(`op.setStrokeDash`),t)}getLineCap(){return this._value(`lineCap`)??W.LineCap.Butt}setLineCap(e,t){return this._update({lineCap:e},i(`op.setStroke`),t)}getLineJoin(){return this._value(`lineJoin`)??W.LineJoin.Miter}setLineJoin(e,t){return this._update({lineJoin:e},i(`op.setStroke`),t)}getMiterLimit(){let e=this._value(`miterLimit`);return typeof e==`number`?e:10}_end(e){let[t,n,r]=Vc[e],i={type:this._value(t)??W.LineEndType.None},a=this._value(n);a!==void 0&&(i.width=a);let o=this._value(r);return o!==void 0&&(i.length=o),i}getHead(){return this._end(`head`)}setHead(e,t){return this._update(Hc(`head`,e),i(`op.setLineEnds`),t)}getTail(){return this._end(`tail`)}setTail(e,t){return this._update(Hc(`tail`,e),i(`op.setLineEnds`),t)}getCompound(){return this._value(`compound`)??W.Compound.Single}getAlign(){return this._value(`align`)??W.Align.Center}update(t,n){return this._h.updateStroke(e.toModifiers(t),{description:i(`op.setStroke`),...n})}isVisible(){return this.getWidth()>0&&this.getFill().getType()!==U.Type.None}isEqual(e){return!!e&&JSON.stringify(this.toJSON())===JSON.stringify(e.toJSON())}toCSS(e,t){if(!this.isVisible())return{border:`none`};let n=this.getFill().getColor(),r=this.getDash();return{borderWidth:this.getWidth()*Bc+`px`,borderStyle:r===W.DashStyle.Solid?`solid`:r===W.DashStyle.Dot||r===W.DashStyle.SysDot?`dotted`:`dashed`,borderColor:n?n.toCSS(e):`currentColor`}}toJSON(){let e={},t=this._p;for(let n=0;n<t.length;n++)Object.assign(e,t[n]);return e.fill&&=this.getFill().toJSON(),e}get[Symbol.toStringTag](){return`[Stroke]`}toString(){return`[Stroke]`}get isIStroke(){return!0}static toModifiers(e){if(e==null)return null;if(typeof e==`string`)return{fill:e};if(e.isIStroke)return e.toJSON();let{head:t,tail:n,...r}=e,i={...r};return t!==void 0&&Object.assign(i,Hc(`head`,t)),n!==void 0&&Object.assign(i,Hc(`tail`,n)),i}},Wc=s({TEXT_DEFAULTS:()=>Qc,defaultStyleRefs:()=>Yc,inheritedGroupFill:()=>il,inheritedTextSize:()=>$c,resolve:()=>al,withThemeDefaults:()=>Xc,withoutDefaultStyleRefs:()=>Zc}),Gc=Object.freeze({fill:{index:1,color:`accent1`},stroke:{index:2,color:`accent1 shade 15`},effect:{index:0,color:`accent1`},font:{index:O.Scheme.Minor,color:`lt1`}}),Kc=Object.freeze({fill:{index:0,color:`accent1`},stroke:{index:1,color:`accent1`},effect:{index:0,color:`accent1`},font:{index:O.Scheme.Minor,color:`tx1`}}),qc=Object.freeze({fill:{index:0},stroke:{index:0},effect:{index:0},font:{index:O.Scheme.Minor,color:`dk1`}}),Jc=Object.freeze({fill:{type:U.Type.Solid,color:`lt1`},stroke:{width:.75,fill:{type:U.Type.Solid,color:`lt1 shade 50`}}});function Yc(e){return e?.type===Lc.Type.Connector?Kc:e?.textBox?qc:Gc}function Xc(e,t){let n=t.getObjectDefaults(),r=e.type===Lc.Type.Connector,i=(r?n.line:e.textBox?n.text:n.shape)??(e.textBox?Jc:null);if(!i)return e;let{type:a,geometry:o,textBox:s,...c}=i;r&&delete c.text;let l={...c,...e};c.stroke&&e.stroke&&(l.stroke={...c.stroke,...e.stroke}),c.style&&e.style&&(l.style={...c.style,...e.style}),c.text&&e.text&&(l.text={...c.text,...e.text},c.text.body&&e.text.body&&(l.text.body={...c.text.body,...e.text.body}));let u=Zc(l);return u===void 0?delete l.style:l.style=u,l}function Zc(e){let t=e.style;if(!t)return t;let n=Yc(e),r={};for(let e of[`fill`,`stroke`,`effect`,`font`]){let i=t[e],a=n[e];!i||a&&i.index===a.index&&i.color===a.color||(r[e]=i)}return Object.keys(r).length>0?r:void 0}var Qc=Object.freeze({verticalOverflow:l.Overflow.Clip,horizontalOverflow:l.Overflow.Clip,size:11});function $c(e,t){let n=e.listStyle;return t.defaultRun?.size??n?.levels?.[t.level??0]?.defaultRun?.size??n?.default?.defaultRun?.size}var el=(e,t)=>typeof e==`string`&&e.startsWith(`phClr`)?(t??`tx1`)+e.slice(5):e,tl=(e,t)=>{let n={...e};return`color`in n&&(n.color=el(n.color,t)),`foreground`in n&&(n.foreground=el(n.foreground,t)),`background`in n&&(n.background=el(n.background,t)),Array.isArray(n.stops)&&(n.stops=n.stops.map(e=>typeof e==`string`?el(e,t):{...e,color:el(e.color,t)})),n},nl=(e,t)=>{if(!e)return;if(e.index<=0)return{type:U.Type.None};let n=t?.fillStyleLst?.length?t.fillStyleLst:po.fillStyleLst,r=n[Math.min(e.index,n.length)-1];return r?tl(r,e.color):void 0},rl=(e,t)=>{if(!e)return;if(e.index<=0)return{fill:{type:U.Type.None}};let n=t?.lnStyleLst?.length?t.lnStyleLst:po.lnStyleLst,r=n[Math.min(e.index,n.length)-1];if(!r)return;let i={...r};return i.fill&&=tl(i.fill,e.color),i};function il(e){let t=e?.getParent()??null;for(;t;){let e=t.getContent().getFill?.()??null;if(e&&e.type!==U.Type.Group)return e;t=t.getParent()}return null}function al(e,t,n){let r=e?.style===null?{}:{...Yc(e),...e?.style},i=(e?.fill?.type===U.Type.Group?n??void 0:e?.fill)??nl(r.fill,t),a=rl(r.stroke,t),o=e?.stroke,s=o||a?{...a,...o,fill:o?.fill??a?.fill}:void 0;return{fill:i,stroke:s,strokeWidth:typeof s?.width==`number`?s.width:.75,fontColor:r.font?.color??(i&&i.type!==U.Type.None?`lt1`:`tx1`)}}var ol,sl=[[()=>e(()=>import(`./AjS2PipZDIH3BXB2.js`),[],import.meta.url),[`bentConnector2`,`bentConnector3`,`bentConnector4`,`bentConnector5`,`curvedConnector2`,`curvedConnector3`,`curvedConnector4`,`curvedConnector5`,`line`,`lineInv`,`straightConnector1`]],[()=>e(()=>import(`./BQAN82ftWBiLJT3r.js`),[],import.meta.url),[`rect`,`round1Rect`,`round2DiagRect`,`round2SameRect`,`roundRect`,`snip1Rect`,`snip2DiagRect`,`snip2SameRect`,`snipRoundRect`]],[()=>e(()=>import(`./Cr1tQKUBVKOQl3QC.js`),[],import.meta.url),[`mathDivide`,`mathEqual`,`mathMinus`,`mathMultiply`,`mathNotEqual`,`mathPlus`]],[()=>e(()=>import(`./Bp7se0JaDGrzfSA_.js`),[],import.meta.url),`flowChartAlternateProcess.flowChartCollate.flowChartConnector.flowChartDecision.flowChartDelay.flowChartDisplay.flowChartDocument.flowChartExtract.flowChartInputOutput.flowChartInternalStorage.flowChartMagneticDisk.flowChartMagneticDrum.flowChartMagneticTape.flowChartManualInput.flowChartManualOperation.flowChartMerge.flowChartMultidocument.flowChartOfflineStorage.flowChartOffpageConnector.flowChartOnlineStorage.flowChartOr.flowChartPredefinedProcess.flowChartPreparation.flowChartProcess.flowChartPunchedCard.flowChartPunchedTape.flowChartSort.flowChartSummingJunction.flowChartTerminator`.split(`.`)],[()=>e(()=>import(`./pRykm05ElquZBk_a.js`),[],import.meta.url),`bentArrow.bentUpArrow.chevron.circularArrow.curvedDownArrow.curvedLeftArrow.curvedRightArrow.curvedUpArrow.downArrow.downArrowCallout.homePlate.leftArrow.leftArrowCallout.leftCircularArrow.leftRightArrow.leftRightArrowCallout.leftRightCircularArrow.leftRightUpArrow.leftUpArrow.notchedRightArrow.quadArrow.quadArrowCallout.rightArrow.rightArrowCallout.stripedRightArrow.swooshArrow.upArrow.upArrowCallout.upDownArrow.upDownArrowCallout.uturnArrow`.split(`.`)],[()=>e(()=>import(`./DHa5_U58lSwCnpmG.js`),[],import.meta.url),[`accentBorderCallout1`,`accentBorderCallout2`,`accentBorderCallout3`,`accentCallout1`,`accentCallout2`,`accentCallout3`,`borderCallout1`,`borderCallout2`,`borderCallout3`,`callout1`,`callout2`,`callout3`,`cloudCallout`,`wedgeEllipseCallout`,`wedgeRectCallout`,`wedgeRoundRectCallout`]],[()=>e(()=>import(`./C6oLDVnuCS9LGkkH.js`),[],import.meta.url),[`doubleWave`,`ellipseRibbon`,`ellipseRibbon2`,`horizontalScroll`,`irregularSeal1`,`irregularSeal2`,`leftRightRibbon`,`ribbon`,`ribbon2`,`star10`,`star12`,`star16`,`star24`,`star32`,`star4`,`star5`,`star6`,`star7`,`star8`,`verticalScroll`,`wave`]],[()=>e(()=>import(`./CzzEl3lAkZopkwhC.js`),[],import.meta.url),[`actionButtonBackPrevious`,`actionButtonBeginning`,`actionButtonBlank`,`actionButtonDocument`,`actionButtonEnd`,`actionButtonForwardNext`,`actionButtonHelp`,`actionButtonHome`,`actionButtonInformation`,`actionButtonMovie`,`actionButtonReturn`,`actionButtonSound`,`chartPlus`,`chartStar`,`chartX`,`cornerTabs`,`plaqueTabs`,`squareTabs`]],[()=>e(()=>import(`./Bx61vmiWY0Xvx9qs.js`),[],import.meta.url),`arc.bevel.blockArc.bracePair.bracketPair.can.chord.cloud.corner.cube.decagon.diagStripe.diamond.dodecagon.donut.ellipse.foldedCorner.frame.funnel.gear6.gear9.halfFrame.heart.heptagon.hexagon.leftBrace.leftBracket.lightningBolt.moon.noSmoking.nonIsoscelesTrapezoid.octagon.parallelogram.pentagon.pie.pieWedge.plaque.plus.rightBrace.rightBracket.rtTriangle.smileyFace.sun.teardrop.trapezoid.triangle`.split(`.`)]],cl=e=>{let t=null;return()=>{if(!t){let n=e();n.catch(()=>{t=null}),t=n}return t}},ll=cl(()=>e(()=>import(`./6IEV7KeOEbBdrthj.js`),__vite__mapDeps([4,5,6]),import.meta.url)),ul=cl(()=>e(()=>import(`./B2IQMVqTZT1rUnib.js`),__vite__mapDeps([7,5,6]),import.meta.url)),dl=null,fl=e=>{let t=new Map;for(let[n,r]of Object.entries(e.BUILT_IN)){let{cxn:i}=r;t.set(n,typeof i==`number`?Object.freeze({...r,cxn:e.CXN_SHARED[i]}):{...r,cxn:i})}return t},pl=()=>{if(dl)return dl;dl=new Map;for(let[e,t]of sl){let n=cl(()=>e().then(fl));for(let e of t)dl.set(e,n)}return dl},ml=async e=>{let t=pl().get(e);if(t)return(await t()).get(e)},hl=96/72,gl=e=>c(e,2),_l=(e,t,n)=>{if(!e||e===W.LineEndType.None)return;let r={type:e};return t&&(r.width=t),n&&(r.length=n),r},vl=e=>{let t=e.stroke;return t?.fill&&t.fill.type!==U.Type.None?yl(e)/2*Math.SQRT2:0},yl=e=>Math.max(Math.max(0,e.strokeWidth)*hl,1),bl=(e,t)=>({r:e,b:t,hc:e/2,vc:t/2}),xl=(e,t,n)=>({...n}),Sl={pad:0,evaluate(e,t){let{r:n,b:r,hc:i,vc:a}=bl(e,t);return{paths:[{d:`M0 0 L${gl(n)} 0 L${gl(n)} ${gl(r)} L0 ${gl(r)} Z`,fill:`norm`,stroke:!0}],textRect:{l:0,t:0,r:e,b:t},pathBounds:{l:0,t:0,r:e,b:t},handles:[],connections:[{x:i,y:0,ang:270},{x:0,y:a,ang:180},{x:i,y:r,ang:90},{x:n,y:a,ang:0}],adjustments:{}}},adjustmentsFromHandle:xl},Cl=(e,t,n)=>{let r=n?{line:n}:void 0;return{pad:0,evaluate:(n,i,a)=>e.evaluateGeometry(t,n,i,a,r),adjustmentsFromHandle:(n,r,i,a,o,s)=>e.adjustmentsFromHandle(t,n,r,i,a,o,s)}},wl=async(e,t)=>{let n=al(e,t),r=await Tl(e,(e=>{let t=e.stroke;if(!t?.fill||t.fill.type===U.Type.None)return;let n=_l(t.headType,t.headWidth,t.headLength),r=_l(t.tailType,t.tailWidth,t.tailLength);if(!n&&!r)return;let i={width:yl(e)};return t.lineCap&&(i.cap=t.lineCap),n&&(i.head=n),r&&(i.tail=r),i})(n));return r?{...r,pad:vl(n)}:null},Tl=async(e,t)=>{let n=e.geometry??`rect`;if(n===`rect`)return Sl;if(n===`line`||n===`straightConnector1`)return((e,t,n)=>({pad:0,evaluate(r,i){let{r:a,b:o}=bl(r,i),s=`M0 0 L${gl(a)} ${gl(o)}`,c=e===`line`,l=[],u={x:0,y:0,segments:[{k:`L`,x0:0,y0:0,x1:a,y1:o}],closed:!1},d=n&&t?n.decorateSubpaths([u],t):null,f={l:Math.min(0,a),t:Math.min(0,o),r:Math.max(0,a),b:Math.max(0,o)};return d?(c&&l.push({d:s,fill:`norm`,stroke:!1}),l.push({d:n.subpathsToSVG(d.stroke,2),fill:`none`,stroke:!0}),l.push({d:n.subpathsToSVG(d.ends,2),fill:`line`,stroke:!1}),f=n.addSubpathsBounds({...f},d.ends)):l.push({d:s,fill:c?`norm`:`none`,stroke:!0}),{paths:l,textRect:{l:0,t:0,r,b:i},pathBounds:f,handles:[],connections:c?[{x:0,y:0,ang:90},{x:a,y:o,ang:270}]:[],adjustments:{}}},adjustmentsFromHandle:xl}))(n,t,t?await ul():null);if(typeof n==`object`)return Cl(await ll(),n,t);if(r=n,!pl().has(r))return null;var r;let[i,a]=await Promise.all([ll(),ml(n)]);return a?Cl(i,a,t):null},El=class e{constructor(e,t,n,r){this._evaluator=e,this._width=t,this._height=n,this._adjustments=r,this._evaluated=e.evaluate(t,n,r)}getWidth(){return this._width}getHeight(){return this._height}getTextRect(){return{...this._evaluated.textRect}}getPathBounds(){return{...this._evaluated.pathBounds}}_getDrawnRect(){return((e,t)=>t>0?{l:e.l-t,t:e.t-t,r:e.r+t,b:e.b+t}:{...e})(this._evaluated.pathBounds,this._evaluator.pad)}forEachPath(e){let t=0;((e,t,n)=>{let r=(e,r,i)=>{t({index:n(),d:e,layer:r,fill:i})};for(let t of e.paths)t.d!==``&&t.fill!==`none`&&t.fill!==`line`&&r(t.d,Fc.PathLayer.Fill,t.fill);for(let t of e.paths)t.d!==``&&t.stroke&&r(t.d,Fc.PathLayer.Stroke,`norm`);for(let t of e.paths)t.d!==``&&t.fill===`line`&&r(t.d,Fc.PathLayer.Marker,`norm`)})(this._evaluated,e,()=>t++)}forEachHandle(e){this._evaluated.handles.forEach(({type:t,x:n,y:r},i)=>e({type:t,index:i,x:n,y:r}))}forEachConnection(e){this._evaluated.connections.forEach((t,n)=>e({...t,index:n}))}resize(t,n){return new e(this._evaluator,t,n,this._adjustments)}withAdjustments(t){return new e(this._evaluator,this._width,this._height,t??void 0)}adjustmentsFromHandle(e,t,n){return this._evaluator.adjustmentsFromHandle(this._width,this._height,this._adjustments,e,t,n)}},Dl=e=>e instanceof El?e._getDrawnRect():e.getPathBounds(),Ol=async(e,t,n,r)=>{let i=await wl(e,t);return i?new El(i,n,r,e.adjustments):null},X=r.PassThrough,kl={properties:{fill:gc,stroke:{shorthand:e=>typeof e==`string`?{fill:e}:e?.isIStroke?e.toJSON():e,properties:{fill:gc,width:X,lineJoin:X,lineCap:X,miterLimit:X,headType:X,headWidth:X,headLength:X,tailType:X,tailWidth:X,tailLength:X,dash:X,compound:X,align:X}}}},Al=class{constructor(e){this._h=e}_parseColor(e){let t=this._h.getStyles();return t?t.parseColor(e):new so(e)}_resolve(e){return this._h.resolve?this._h.resolve(e):al(e,this._h.getTheme(),il(this._h.getMovable()))}_describe(e,t){return this._h.describe?.(e)??t}_without(e){let t=this._h.getData();if(!t)return null;let{[e]:n,...r}=t;return r}_fillHost(){return{parseColor:e=>this._parseColor(e),getBaseFill:()=>Pc(this._fillHost(),[this._resolve(this._without(`fill`)).fill]),getResource:e=>this._h.getResource(e),updateFill:(e,t)=>(this.setFill(e,t),this.getFill())}}_strokeHost(){return{parseColor:e=>this._parseColor(e),getBaseStroke:()=>new Uc(this._strokeHost(),[this._resolve(this._without(`stroke`)).stroke]),getResource:e=>this._h.getResource(e),updateStroke:(e,t)=>(this.setStroke(e,t),this.getStroke())}}getFill(){return Pc(this._fillHost(),[this._resolve(this._h.getData()).fill])}setFill(e,t){return this.update({fill:e},{description:this._describe(`fill`,i(`op.setShapeFill`)),...t})}setFillSolid(e){return this.update({fill:{type:U.Type.Solid}},{description:i(`op.setFillSolid`),...e}),this.getFill()}setFillGradient(e){return this.update({fill:{type:U.Type.Gradient}},{description:i(`op.setFillGradient`),...e}),this.getFill()}setFillPattern(e){return this.update({fill:{type:U.Type.Pattern}},{description:i(`op.setFillPattern`),...e}),this.getFill()}setFillNone(e){return this.update({fill:{type:U.Type.None}},{description:i(`op.setFillNone`),...e}),this.getFill()}getStroke(){return new Uc(this._strokeHost(),[this._resolve(this._h.getData()).stroke])}setStroke(e,t){return this.update({stroke:e},{description:this._describe(`stroke`,i(`op.setShapeStroke`)),...t})}setStrokeNone(e){return this.update({stroke:{fill:{type:U.Type.None}}},{description:this._describe(`stroke`,i(`op.setShapeStroke`)),...e}),this.getStroke()}update(e,t){let n=t?.description??this._describe(`style`,i(`op.setShapeStyle`));if(e===null)return this.clear({...t,description:n});let a=e.isIShapeStyle?e.toJSON()??{}:e,o=this._h.getData(),s={fill:this._resolve(o).fill,stroke:o?.stroke},c={...a};c.stroke!==void 0&&(c.stroke=Uc.toModifiers(c.stroke));let l=this._h.getStyles(),u=r.resolveTypedUpdates(c,kl,l,s)??{},d={};return`fill`in a&&(d.fill=u.fill),`stroke`in a&&(d.stroke=u.stroke),Object.keys(d).length===0||this._h.write(d,{...t,description:n}),this}clear(e){return this.isThemed()||this._h.write({fill:void 0,stroke:void 0},{description:this._describe(`clear`,i(`op.clearShapeStyle`)),...e}),this}isThemed(){let e=this._h.getData();return!e?.fill&&!e?.stroke}toJSON(){let e=this._h.getData(),t={};return e?.fill&&(t.fill=e.fill),e?.stroke&&(t.stroke=e.stroke),t.fill||t.stroke?t:null}get[Symbol.toStringTag](){return`[ShapeStyle]`}toString(){return`[ShapeStyle]`}get isIShapeStyle(){return!0}},jl=e=>{let t=Math.floor(((e%360+360)%360+45)/90)%4;return t===1||t===3},Ml=(e,t)=>jl(t)?{x:e.x+(e.width-e.height)/2,y:e.y+(e.height-e.width)/2,width:e.height,height:e.width}:e,Nl=e=>typeof e?._getDrawnRect==`function`,Pl=(e,t,n,r)=>{let i=t??{l:0,t:0,r:e.width,b:e.height};r?.horizontal&&(i={...i,l:e.width-i.r,r:e.width-i.l}),r?.vertical&&(i={...i,t:e.height-i.b,b:e.height-i.t});let a=e.x+e.width/2,o=e.y+e.height/2,s=(n||0)*Math.PI/180,c=Math.cos(s),l=Math.sin(s),u=1/0,d=1/0,f=-1/0,p=-1/0;for(let[t,n]of[[i.l,i.t],[i.r,i.t],[i.r,i.b],[i.l,i.b]]){let r=t-e.width/2,i=n-e.height/2,s=a+r*c-i*l,m=o+r*l+i*c;u=Math.min(u,s),d=Math.min(d,m),f=Math.max(f,s),p=Math.max(p,m)}return{x:u,y:d,width:f-u,height:p-d}},Fl=(e,t)=>Math.max(0,e.x-t.x,e.y-t.y,t.x+t.width-(e.x+e.width),t.y+t.height-(e.y+e.height)),Il=(e,t)=>e.x<=t.x+t.width&&t.x<=e.x+e.width&&e.y<=t.y+t.height&&t.y<=e.y+e.height,Ll=0,Rl=()=>Ll,zl=()=>{Ll++};(function(e){e.placeInParent=(e,t,r)=>{let i=e.bounds,a=t.width>0?i.width/t.width:1,o=t.height>0?i.height/t.height:1,s=r.bounds,c=a!==o&&jl(r.rotation),l=c?s.width*o:s.width*a,u=c?s.height*a:s.height*o,d=(s.x+s.width/2-t.x)*a-i.width/2,f=(s.y+s.height/2-t.y)*o-i.height/2,p=e.flip.horizontal,m=e.flip.vertical;p&&(d=-d),m&&(f=-f);let h=(e.rotation||0)*Math.PI/180,g=Math.cos(h),_=Math.sin(h),v=p!==m;return{bounds:{x:i.x+i.width/2+d*g-f*_-l/2,y:i.y+i.height/2+d*_+f*g-u/2,width:l,height:u},rotation:n((e.rotation||0)+(v?-r.rotation:r.rotation)),flip:{horizontal:r.flip.horizontal!==p,vertical:r.flip.vertical!==m}}},e.placeInChild=(e,t,r)=>{let i=e.bounds,a=t.width>0?i.width/t.width:1,o=t.height>0?i.height/t.height:1,s=e.flip.horizontal,c=e.flip.vertical,l=n(s===c?r.rotation-e.rotation:e.rotation-r.rotation),u=-(e.rotation||0)*Math.PI/180,d=Math.cos(u),f=Math.sin(u),p=r.bounds.x+r.bounds.width/2-(i.x+i.width/2),m=r.bounds.y+r.bounds.height/2-(i.y+i.height/2),h=p*d-m*f,g=p*f+m*d;s&&(h=-h),c&&(g=-g);let _=a!==o&&jl(l),v=_?r.bounds.width/o:r.bounds.width/a,y=_?r.bounds.height/a:r.bounds.height/o;return{bounds:{x:(h+i.width/2)/a+t.x-v/2,y:(g+i.height/2)/o+t.y-y/2,width:v,height:y},rotation:l,flip:{horizontal:r.flip.horizontal!==s,vertical:r.flip.vertical!==c}}},e.rotatedBox=(e,t)=>{if(!t)return e;let n=t*Math.PI/180,r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=e.width*r+e.height*i,o=e.width*i+e.height*r;return{x:e.x+(e.width-a)/2,y:e.y+(e.height-o)/2,width:a,height:o}},e.unionBounds=e=>{if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height);return{x:t,y:n,width:r-t,height:i-n}};let t=e.EPSILON=1e-6;e.isSameBounds=(e,n)=>Math.abs(e.x-n.x)<t&&Math.abs(e.y-n.y)<t&&Math.abs(e.width-n.width)<t&&Math.abs(e.height-n.height)<t,e.flatPlacement=e=>({bounds:e,rotation:0,flip:{horizontal:!1,vertical:!1}}),e.placementOf=e=>{let t=e.getBounds();return t?{bounds:t,rotation:e.getRotation(),flip:e.getFlip()}:null};let n=e=>{let t=(e%360+360)%360;return Object.is(t,-0)?0:t}})(ol||={});var Bl=e=>(e||0)*Math.PI/180,Vl=e=>{let t=(e||0)/90;if(Number.isInteger(t))return[[1,0],[0,1],[-1,0],[0,-1]][(t%4+4)%4].slice();let n=Bl(e);return[Math.cos(n),Math.sin(n)]},Hl=(e,t)=>{let{bounds:n,rotation:r,flip:i}=e,a=i.horizontal?n.width-t.x:t.x,o=i.vertical?n.height-t.y:t.y,s=a-n.width/2,c=o-n.height/2,[l,u]=Vl(r);return{x:n.x+n.width/2+s*l-c*u,y:n.y+n.height/2+s*u+c*l}},Ul=e=>({start:Hl(e,{x:0,y:0}),end:Hl(e,{x:e.bounds.width,y:e.bounds.height})}),Wl=(e,t,n=0)=>{let r=(e.x+t.x)/2,i=(e.y+t.y)/2,[a,o]=Vl(-n),s=e.x-r,c=e.y-i,l=s*a-c*o,u=s*o+c*a,d=2*Math.abs(l),f=2*Math.abs(u);return{bounds:{x:r-d/2,y:i-f/2,width:d,height:f},rotation:n||0,flip:{horizontal:l>0,vertical:u>0}}},Z=24,Gl=4/3,Kl=(e,t,n)=>{let r=t.x-e.x,i=t.y-e.y;return(Math.abs(Math.abs(r)-Math.abs(i))<1e-6?n%2==1:Math.abs(r)>Math.abs(i))?r>=0?0:2:i>=0?1:3},ql=(e,t)=>{switch((t%4+4)%4){case 1:return{x:-e.y,y:e.x};case 2:return{x:-e.x,y:-e.y};case 3:return{x:e.y,y:-e.x};default:return{x:e.x,y:e.y}}},Jl=(e,t)=>{let n=ql({x:e.x,y:e.y},t),r=ql({x:e.x+e.width,y:e.y+e.height},t);return{x:Math.min(n.x,r.x),y:Math.min(n.y,r.y),width:Math.abs(n.x-r.x),height:Math.abs(n.y-r.y)}},Yl=e=>({x:e.x,y:-e.y}),Q=e=>e.x+e.width,$=e=>e.y+e.height,Xl=(e,t)=>e.y<t&&t<$(e),Zl=(e,t,n)=>{let r=-e.direction,i=((t.direction-e.direction)%4+4)%4,a=i===1,o=e=>a?Yl(ql(e,r)):ql(e,r),s=e=>a?(e=>({x:e.x,y:-(e.y+e.height),width:e.width,height:e.height}))(Jl(e,r)):Jl(e,r),c=((e,t,n,r,i)=>{let a=()=>r.x>=Q(t)?(Q(t)+r.x)/2:e.x+Z,o=e=>e?Q(t)<=r.x?(Q(t)+r.x)/2:n.x-Z:t.x>=Q(r)?(Q(r)+t.x)/2:n.x+Z,s=(t,r,i)=>[e,{x:t,y:e.y},{x:t,y:r},{x:i,y:r},{x:i,y:n.y},n];switch(i){case 2:{if(n.x>=e.x){let i=r.x>=Q(t)?(Q(t)+r.x)/2:(e.x+n.x)/2;return[e,{x:i,y:e.y},{x:i,y:n.y},n]}let i;return i=$(t)<=r.y?($(t)+r.y)/2:$(r)<=t.y?($(r)+t.y)/2:n.y>=e.y?Math.max($(t),$(r))+Z:Math.min(t.y,r.y)-Z,s(a(),i,o(!0))}case 0:{let i=e.y===n.y;if(r.x>=Q(t)&&Xl(r,e.y))return s(a(),i?$(r)+Z:r.y-Z,o(!1));if(t.x>=Q(r)&&Xl(t,n.y))return s(a(),i?t.y-Z:$(t)+Z,o(!1));let c=Math.max(e.x,n.x)+Z;return[e,{x:c,y:e.y},{x:c,y:n.y},n]}default:{if(n.x>=e.x&&e.y<=n.y)return[e,{x:n.x,y:e.y},n];let i=a(),o=$(t)<=r.y?($(t)+r.y)/2:n.y-Z;return $(t)>r.y&&Math.min(i,n.x)<Q(t)&&Math.max(i,n.x)>t.x&&(o=Math.min(o,t.y-Z)),[e,{x:i,y:e.y},{x:i,y:o},{x:n.x,y:o},n]}}})(o(e.point),s(e.box),o(t.point),s(t.box),a?3:i).map(e=>ql(a?Yl(e):e,-r)),l=c.length,u=Wl(c[0],c[l-1],90*e.direction),d={...u.bounds};l>3&&d.width<1e-9&&(d.width=Gl),l>4&&d.height<1e-9&&(d.height=Gl);let f={...u,bounds:d},p=c.map(e=>((e,t)=>{let{bounds:n,rotation:r,flip:i}=e,a=t.x-(n.x+n.width/2),o=t.y-(n.y+n.height/2),[s,c]=Vl(-r),l=n.width/2+a*s-o*c,u=n.height/2+a*c+o*s;return{x:i.horizontal?n.width-l:l,y:i.vertical?n.height-u:u}})(u,e)),m=(e,t)=>Math.round(e/t*1e5),h=null;l===4?h={adj1:m(p[1].x,d.width)}:l===5?h={adj1:m(p[1].x,d.width),adj2:m(p[2].y,d.height)}:l===6&&(h={adj1:m(p[1].x,d.width),adj2:m(p[2].y,d.height),adj3:m(p[3].x,d.width)});let g=((e,t,n,r)=>{let i=(r.adj1??0)/1e5*t,a=(r.adj2??0)/1e5*n,o=(r.adj3??0)/1e5*t;switch(e){case 3:return[{x:0,y:0},{x:t,y:0},{x:t,y:n}];case 4:return[{x:0,y:0},{x:i,y:0},{x:i,y:n},{x:t,y:n}];case 5:return[{x:0,y:0},{x:i,y:0},{x:i,y:a},{x:t,y:a},{x:t,y:n}];default:return[{x:0,y:0},{x:i,y:0},{x:i,y:a},{x:o,y:a},{x:o,y:n},{x:t,y:n}]}})(l,d.width,d.height,h??{}).map(e=>Hl(f,e));return{geometry:`${n?`curvedConnector`:`bentConnector`}${l-1}`,adjustments:h,placement:f,points:g}},Ql=(e,t,n)=>{if(!t)return null;let r=e.getContent(),{width:i,height:a}=t.bounds,o=r.getConnections?r.getConnections(i,a,{adjustments:t.adjustments,onReady:n}):((e,t)=>[{index:0,x:e/2,y:0,ang:270},{index:1,x:0,y:t/2,ang:180},{index:2,x:e/2,y:t,ang:90},{index:3,x:e,y:t/2,ang:0}])(i,a);return o?o.map(e=>{let n=Hl(t,e),r=Bl(e.ang),i=Hl(t,{x:e.x+Math.cos(r),y:e.y+Math.sin(r)});return{index:e.index,...n,direction:(a=i.x-n.x,o=i.y-n.y,(Math.round(Math.atan2(o,a)/(Math.PI/2))%4+4)%4)};var a,o}):null},$l=e=>{let t=e.getContent();return t._getSourceId?t._getSourceId():t.toJSON?.()?.sourceId},eu=(e,t)=>{let n=e.getContent();if(!n._ensureSourceId)throw new o(`A ${n.getTypeDescription()} cannot be glued to while it is loading.`);return n._ensureSourceId(t)},tu=e=>{let t=e.getContent();return t.isConnector?.()?t.toJSON?.()?.connectorEnds??null:null},nu=e=>{let t=e.getContent(),n=t.getType();return n===`group`||n===`shape`&&(!t.isConnector||t.isConnector())},ru=e=>e.getMovables().getItems({deep:!0}),iu=(e,t)=>{for(let n of ru(e))if($l(n)===t)return n;return null},au=e=>{let t=1;for(let n of ru(e)){let e=$l(n);typeof e==`number`&&e>t&&(t=e)}return t+1},ou=e=>ol.placementOf(e),su=e=>{let{width:t,height:n}=e.bounds,r=[{x:0,y:0},{x:t,y:0},{x:0,y:n},{x:t,y:n}].map(t=>Hl(e,t)),i=r.map(e=>e.x),a=r.map(e=>e.y),o=Math.min(...i),s=Math.min(...a);return{x:o,y:s,width:Math.max(...i)-o,height:Math.max(...a)-s}},cu=(e,t)=>{if(!e||!t||t.adjustments!==void 0)return!1;let n=e.bounds,r=t.bounds;return n.width===r.width&&n.height===r.height&&(n.x!==r.x||n.y!==r.y)&&(e.rotation||0)===(t.rotation||0)&&e.flip.horizontal===t.flip.horizontal&&e.flip.vertical===t.flip.vertical},lu=(e,t,n,r,i=t=>iu(e,t),a)=>{let o=n(t),s=tu(t);if(!o||!s)return null;let c=Ul(o),l={};for(let e of[`start`,`end`]){let o=s[e];if(!o)continue;let c=i(o.id);if(!c||c===t)continue;let u=n(c),d=Ql(c,u,r)?.find(e=>e.index===o.index);if(!d||!u)continue;let f=a??cu(ou(c),u);l[e]={site:d,box:su(u),translated:f}}if(!l.start&&!l.end)return null;let u=t.getContent().getConnectorFormat?.()?.getConnectorType(),d=l.start&&!l.end?`start`:l.end&&!l.start?`end`:null;if(d){let{site:e,box:t,translated:n}=l[d];if(n){let t=e.x-c[d].x,n=e.y-c[d].y;return{placement:{bounds:{...o.bounds,x:o.bounds.x+t,y:o.bounds.y+n},rotation:o.rotation||0,flip:o.flip},route:null}}let r=d===`start`?`end`:`start`;if(c[d]={x:e.x,y:e.y},u===`elbow`||u===`curved`){let n={point:c[d],direction:e.direction,box:t},i={point:c[r],direction:Kl(c[r],c[d],e.direction),box:{x:c[r].x,y:c[r].y,width:0,height:0}},a=d===`start`?Zl(n,i,u===`curved`):Zl(i,n,u===`curved`);return{placement:a.placement,route:a}}return{placement:Wl(c.start,c.end,o.rotation),route:null}}let f=l.start,p=l.end;if(c.start={x:f.site.x,y:f.site.y},c.end={x:p.site.x,y:p.site.y},u===`elbow`||u===`curved`){let e=Zl({point:c.start,direction:f.site.direction,box:f.box},{point:c.end,direction:p.site.direction,box:p.box},u===`curved`);return{placement:e.placement,route:e}}return{placement:Wl(c.start,c.end,o.rotation),route:null}},uu=(e,t)=>{let{placement:n,route:r}=t,i=e.getBounds(),a=e.getFlip();if(i&&!ol.isSameBounds(i,n.bounds)||a.horizontal!==n.flip.horizontal||a.vertical!==n.flip.vertical||(e.getRotation()||0)!==n.rotation)return!1;if(!r)return!0;let o=e.getContent();return o.getShapeType()===r.geometry&&du(o.getAdjustments(),r.adjustments)},du=(e,t)=>{let n=Object.keys(e),r=Object.keys(t??{});return n.length===r.length&&r.every(n=>e[n]===t[n])},fu=(e,t)=>{let n=[];for(let r of e.getMovables().getItems({type:`shape`,deep:!0})){if(!tu(r))continue;let i=lu(e,r,ou,t);i&&!uu(r,i)&&n.push([r,i])}return n},pu=(e,t)=>{let{placement:n,route:r}=t;(e.getRotation()||0)!==n.rotation&&e.setRotation(n.rotation);let i=e.getBounds();i&&!ol.isSameBounds(i,n.bounds)&&e.setBounds(n.bounds);let a=e.getFlip();if(a.horizontal===n.flip.horizontal&&a.vertical===n.flip.vertical||e.setFlip(n.flip),!r)return;let o=e.getContent();o.getShapeType()===r.geometry&&du(o.getAdjustments(),r.adjustments)||o._setRoute?.(r.geometry,r.adjustments)},mu=(e,t)=>{if(t.size===0)return[];let n=[];for(let r of e.getMovables().getItems({type:`shape`,deep:!0})){let e=tu(r);e&&(e.start&&t.has(e.start.id)||e.end&&t.has(e.end.id))&&n.push(r)}return n},hu=e=>{let t=new Map;for(let n of e)for(let e of[n,...n.getMovables()?.getItems({deep:!0})??[]]){let n=$l(e);n!==void 0&&t.set(n,e)}return t},gu=new WeakSet,_u=(e,t,n,r=!1)=>{if(gu.has(t))return;let i=hu([t]),a=mu(e,i);if(a.length!==0){gu.add(t);try{let t=t=>i.get(t)??iu(e,t);for(let i of a){let a=lu(e,i,ou,n,t,r);a&&pu(i,a)}}finally{gu.delete(t)}}},vu=(e,t,n)=>{if(!gu.has(t)){gu.add(t);try{let r=lu(e,t,ou,n);r&&pu(t,r)}finally{gu.delete(t)}}};export{Ql as $,bc as $t,ko as A,Ai as At,$s as B,ii as Bt,Nl as C,_u as Ct,O as D,Ml as Dt,Pr as E,au as Et,Fl as F,hu as Ft,U as G,nu as Gt,Co as H,iu as Ht,$a as I,ra as It,Wr as J,ys as Jt,Wc as K,yc as Kt,$i as L,so as Lt,kt as M,Ao as Mt,Fc as N,Ar as Nt,ke as O,k as Ot,Fi as P,he as Pt,Qa as Q,St as Qt,$o as R,mu as Rt,Rl as S,_s as St,Pl as T,ai as Tt,Ee as U,na as Ut,zl as V,io as Vt,Eo as W,ni as Wt,Zs as X,To as Xt,W as Y,T as Yt,Xr as Z,So as Zt,Lr as _,ti as _t,jt as a,oi as at,qr as b,_c as bt,Ol as c,x as ct,Do as d,xt as dt,bi as en,Qs as et,Il as f,l as ft,Lc as g,fu as gt,Ul as h,fs as ht,jo as i,E as it,kr as j,Al as jt,ki as k,Ae as kt,Oo as l,xi as lt,H as m,lu as mt,ei as n,bs as nn,vo as nt,Vi as o,ol as ot,Ir as p,D as pt,Wl as q,yo as qt,jl as r,Bi as rn,vu as rt,Oi as s,ou as st,eu as t,bo as tn,va as tt,Dl as u,xo as ut,Yr as v,po as vt,Pc as w,gs as wt,qs as x,_o as xt,Ys as y,pu as yt,$r as z,Jr as zt};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as e}from"./ChSvXfVMLxZsP9zG.js";import{ct as t}from"./Ca6nxdhEuLLty3d7.js";import{i as n,n as r,r as i,s as a,t as o}from"./BcOdl17EeFSxnAiq.js";import{Bn as s,Dr as c,Ht as l,Ii as u,Nr as d,P as f,Ri as p,Rt as m,Vt as h,_r as g,b as _,ci as v,ct as y,d as b,dt as x,fr as S,ft as ee,ii as C,it as w,ki as T,nn as E,p as D,pt as O,sn as k,un as A,wi as te,x as j,y as M,yn as N,z as ne,zi as re}from"./D66vSE1ConAuENmB.js";var ie=(e,t)=>e+t,ae=(e,t)=>e-t,oe=(e,t)=>M(e+t,e),se=(e,t)=>M(e-t,e),ce=(e,t)=>_(e*t),le=(e,t)=>t===0?n.BuiltIn.Div0:_(e/t),ue=(e,t)=>{if(e===0){if(t<0)return n.BuiltIn.Div0;if(t===0)return NaN}if(e<0){if(Number.isInteger(t)&&Math.abs(t)<=4294967294)return _(e**t);let n=Number((1/t).toPrecision(15));return Number.isInteger(n)&&Math.abs(n%2)===1?_(-((-e)**t)):NaN}return _(e**t)},de=(e=``,t=``)=>{e===null&&(e=``),t===null&&(t=``);let n=typeof t;typeof e==`boolean`&&(e=E(e)),n===`boolean`&&(t=E(t));let r=``+e+t;return r.length>i.MAX_TEXT_LENGTH?r.slice(0,i.MAX_TEXT_LENGTH):r},fe=(e,t=null,n=null)=>e.compare(t,n)===0,pe=(e,t=null,n=null)=>e.compare(t,n)!==0,me=(e,t=null,n=null)=>e.compare(t,n)>0,he=(e,t=null,n=null)=>e.compare(t,n)>=0,ge=(e,t=null,n=null)=>e.compare(t,n)<0,_e=(e,t=null,n=null)=>e.compare(t,n)<=0,ve={type:o.Number,coerce:[o.Boolean,o.String],onError:`value`,misalignValue:n.BuiltIn.NA},ye={type:o.String,coerce:[o.Boolean,o.Number],onError:`value`,misalignValue:n.BuiltIn.NA},be={onError:`value`,misalignValue:n.BuiltIn.NA},P=e=>typeof e==`object`&&e&&!0===e.isIReferenceRange&&e.size===1?e.getValueAt(0,0)??null:e,F=(e,t,r,i)=>{if(t!==null&&t.colStart!==void 0&&(t=e.getValueAt(t.rowStart,t.colStart,t.scope))&&n.isError(t))return t;if(r!==null&&r.colStart!==void 0&&(r=e.getValueAt(r.rowStart,r.colStart,r.scope))&&n.isError(r))return r;if(t=P(t),r=P(r),typeof t==`number`&&typeof r==`number`)return i(t,r);let a,s;if(t?.isIRange?a=t:r?.isIRange&&(s=r),!a&&!s){let a=e.getRuntime();return t=u(a,t,A(t,!0),o.Number,!0),r=u(a,r,A(r,!0),o.Number,!0),t&&n.isError(t)?t:r&&n.isError(r)?r:i(t,r)}let c=!a,l=c?t:r;return(a??s).broadcast(l,(t,r)=>t&&n.isError(t)?t:r&&n.isError(r)?r:x(c?i(r,t):i(t,r),e),ve).fillEmpty(0)},I=(e,t,i,a)=>{if(s(t)||s(i)||r(t)||r(i))return n.BuiltIn.Value;if(t!==null&&t.colStart!==void 0&&(t=e.getValueAt(t.rowStart,t.colStart,t.scope))&&n.isError(t))return t;if(i!==null&&i.colStart!==void 0&&(i=e.getValueAt(i.rowStart,i.colStart,i.scope))&&n.isError(i))return i;let o,c;t=P(t),i=P(i);let l=!1;return t?.isIRange?(o=t,c=i):i?.isIRange&&(o=i,c=t,l=!0),o?o.broadcast(c,(t,r)=>t&&n.isError(t)?t:r&&n.isError(r)?r:(t=L(t),r=L(r),l?a(e,r,t):a(e,t,r)),be):n.isError(t)?t:n.isError(i)?i:a(e,L(t),L(i))},L=e=>!0===e?.isIRichData?e.toPrimitive?.()??e:e,xe=(e,t,r)=>{if(r??=0,r!==null&&r.colStart!==void 0&&(r=e.getValueAt(r.rowStart,r.colStart,r.scope))&&n.isError(r))return r;r=P(r);let i,a=1;if(t===`+`)return r;if(t!==`-`)throw new n.Value(`Unrecognized prefix: ${t}`);if(a=-a,r?.isIRange&&(i=r),!i){let t=e.getRuntime();return typeof(r=u(t,r,A(r,!0),o.Number,!0))==`number`?r*a:n.BuiltIn.Value}return i.broadcast(a,(e,t)=>e&&n.isError(e)?e:t&&n.isError(t)?t:ce(e,t),ve)},R=e=>e.getCode()<=n.Code.NA?e:n.BuiltIn.Value,z=(e,t,r,i,a)=>{if(n.isError(t))return R(t);if(r&&n.isError(r))return R(r);if(!t)return n.BuiltIn.Ref;if(t.isIReferenceRange&&r&&!r.isIReferenceRange?r=e.getReference(r):r&&r.isIReferenceRange&&t&&!t.isIReferenceRange&&(t=e.getReference(t)),t.isIReferenceRange&&(t=t.getCoords()),t.colStart===void 0||(r.isIReferenceRange&&(r=r.getCoords()),r.colStart===void 0))return n.BuiltIn.Value;let o=t.scope?a!==`either`||r.scope?null:t:r;if(o?.scope){let t=e.getReference(o);if(n.isError(t))return t;if(e.getSheetIndex()!==e.getSheetIndex(t))return n.BuiltIn.Value}let s=i(t,r);return n.isError(s)?s:s?e.getReference(s):n.BuiltIn.Null},Se={"+":(e,t,n)=>F(e,t,n,ie),"-":(e,t,n)=>F(e,t,n,ae),"*":(e,t,n)=>F(e,t,n,ce),"/":(e,t,n)=>F(e,t,n,le),"^":(e,t,n)=>F(e,t,n,ue)," ":(e,t,n,r)=>z(e,t,n,re,`either`),":":(e,t,n,r)=>z(e,t,n,N,`start`),".:.":(e,t,n,r)=>{let i=z(e,t,n,N,`start`);return e.getFunction(`TRIMRANGE`).execute(i,3,3)},".:":(e,t,n,r)=>{let i=z(e,t,n,N,`start`);return e.getFunction(`TRIMRANGE`).execute(i,1,1)},":.":(e,t,n,r)=>{let i=z(e,t,n,N,`start`);return e.getFunction(`TRIMRANGE`).execute(i,2,2)},"&":(e,t,r)=>((e,t,r,i)=>{if(t!==null&&t.colStart!==void 0&&(t=e.getValueAt(t.rowStart,t.colStart,t.scope))&&n.isError(t))return t;if(r!==null&&r.colStart!==void 0&&(r=e.getValueAt(r.rowStart,r.colStart,r.scope))&&n.isError(r))return r;if(t=P(t),r=P(r),typeof t==`string`&&typeof r==`string`)return i(t,r);let a,s;if(t?.isIRange?a=t:r?.isIRange&&(s=r),!a&&!s){let a=e.getRuntime();return t=u(a,t,A(t,!0),o.String,!1),r=u(a,r,A(r,!0),o.String,!1),n.isError(t)?t:n.isError(r)?r:i(t,r)}let c=!a,l=c?t:r;return(a??s).broadcast(l,(e,t)=>e&&n.isError(e)?e:t&&n.isError(t)?t:c?i(t,e):i(e,t),ye)})(e,t,r,de),"=":(e,t,n)=>I(e,t,n,fe),"<>":(e,t,n)=>I(e,t,n,pe),">":(e,t,n)=>I(e,t,n,me),"<":(e,t,n)=>I(e,t,n,ge),">=":(e,t,n)=>I(e,t,n,he),"<=":(e,t,n)=>I(e,t,n,_e)},Ce={"+":(e,t,n)=>F(e,t,n,oe),"-":(e,t,n)=>F(e,t,n,se)},we={"-":(e,t)=>xe(e,`-`,t),"+":(e,t)=>xe(e,`+`,t),"@":(e,t)=>{if(!t||!t.isIRange)return t;let r=t;if(!t.isIReferenceRange)return r.getValueAt(0,0);let i=t.getCoords(),a=r.getRowCount(),o=r.getColumnCount(),s=e.getRow()-i.rowStart,c=e.getColumn()-i.colStart,l=s>=0&&s<a,u=c>=0&&c<o;return l&&u?r.getValueAt(s,c):l&&o===1?r.getValueAt(s,0):u&&a===1?r.getValueAt(0,c):a===1&&o===1?r.getValueAt(0,0):n.BuiltIn.Value}},Te={"%":(e,t)=>F(e,t,100,le),"#":(e,t)=>n.isError(t)?R(t):t?(t.isIReferenceRange&&(t=t.getCoords()),t.colStart===void 0?n.BuiltIn.Value:t.rowStart!==t.rowEnd||t.colStart!==t.colEnd?n.BuiltIn.Ref:e.getSpillAt(t.rowStart,t.colStart,t.scope)||n.BuiltIn.Ref):n.BuiltIn.Ref};function B(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].type===t)return e[n]}var Ee=class{constructor(){this.referenceIndices=[],this.rootReferences=new Set,this.cells=new Map,this.references=new Map,this.names=new Map}processNode(e,t){let n=e.type;if(e.isReference){let t={node:e,index:this.references.size,op:null,value:null,inputs:null};if(this.references.set(e,t),n===h.Cell){let n=e.value;n.$colIndex&&(t.hasHorizontalAbs=!0),n.$rowIndex&&(t.hasVerticalAbs=!0),t.value=this.cells.size,this.cells.set(e,this.cells.size),this.rootReferences.add(t),e.referenceIndex=this.referenceIndices.length,this.referenceIndices.push(t.index);return}if(n===h.Infix||n===h.Prefix||n===h.Postfix||n===h.List){let n=e.inputs||[],r=n.length,i=e.value;t.op=i;let a=b(r);t.inputs=a;for(let e=0;e<r;e++){let r=n[e],i=this.references.get(r);i?(i.hasHorizontalAbs&&(t.hasHorizontalAbs=!0),i.hasVerticalAbs&&(t.hasVerticalAbs=!0),a[e]=i.index):a[e]=-1,i&&this.rootReferences.delete(i)}if(this.rootReferences.add(t),rt.includes(i)){let r=n[0],i=!!r&&r.type===h.Cell,a=n[1],o=!!a&&a.type===h.Cell;i&&o&&a.referenceIndex!==void 0&&r.referenceIndex!==void 0&&(this.referenceIndices.splice(a.referenceIndex,1),a.referenceIndex=r.referenceIndex,e.referenceIndex=r.referenceIndex,this.referenceIndices[r.referenceIndex]=t.index)}else i===`#`&&n[0]&&(e.referenceIndex=n[0].referenceIndex);return}if(n===h.Error||n===h.Named){let r=n===h.Named?e.value.nameId:j(e.value),i=this.names.get(r);t.op=n,i===void 0&&(i=this.names.size,this.names.set(r,i)),t.value=i,this.rootReferences.add(t),e.referenceIndex=this.referenceIndices.length,this.referenceIndices.push(t.index);return}if(n===h.TableReference)return t.op=n,this.rootReferences.add(t),e.referenceIndex=this.referenceIndices.length,void this.referenceIndices.push(t.index)}else if(t&&t.isReference){let t={node:e,index:this.references.size,op:h.Function,value:e.value,inputs:null};this.references.set(e,t)}}};function V(e,t=!1,n=ne){let r=[],i=new Set,a=(e,n,a)=>{let o={type:e.type,value:e.type===h.Error?O(e.value):e.value};e.image!==void 0&&(o.text=(e=>{let n=t?e.value?.scopeImage:void 0;return typeof n==`string`?n:``})(e)+e.image);let s=e.evalIndex??a;return s!==void 0&&(o.evalIndex=s),n&&(o.context=n),e.referenceIndex!==void 0&&(o.referenceIndex=e.referenceIndex),e.isReference&&i.add(o),r.push(o),o},o=(e,t,n,i,a)=>{if(t==null||r.length>1&&e===h.Whitespace&&r[r.length-1].type===h.Whitespace)return;let o={type:e,value:t,text:a??t};i!==void 0&&(o.evalIndex=i),n&&(o.context=n),r.push(o)};(function e(s,l,u){let d=s.evalIndex??u??0,f=s.type,p=(t,r,i)=>{if(!t)return;let a=t.length;for(let s=0;s<a;s++)e(t[s],r,i),s<a-1&&o(h.Separator,`,`,r,i,n.separatorFunction)};if(s.isLiteral){if(o(h.Whitespace,s.wsBefore,l,d),f===h.Array){o(h.Type,`{`,l,d);let t=s.value,r=t.length;for(let i=0;i<r;i++){let a=t[i],s=a.value,c=s.length;for(let t=0;t<c;t++){let r=s[t];o(h.Whitespace,r.wsBefore,l,d),e(r,l,d),o(h.Whitespace,r.wsAfter,l,d),t<c-1&&o(h.Separator,`,`,l,d,n.separatorColumn)}i<r-1&&(o(h.Whitespace,a.wsBefore,l,d),o(h.Separator,`;`,l,d,n.separatorRow),o(h.Whitespace,a.wsAfter,l,d))}s.error||o(h.Type,`}`,l,d)}else f===h.String&&(s={type:f,value:`"`+`${s.value}`.replace(/"/g,`""`)+`"`,image:s.image}),a(s,l,d);o(h.Whitespace,s.wsAfter,l,d)}else if(f===h.Infix)e(s.inputs[0],l,d),o(h.Whitespace,s.wsBefore,l,d),a(s,l,d),o(h.Whitespace,s.wsAfter,l,d),e(s.inputs[1],l,d);else if(f===h.Prefix)o(h.Whitespace,s.wsBefore,l,d),a(s,l,d),o(h.Whitespace,s.wsAfter,l,d),s.inputs&&e(s.inputs[0],l,d);else if(f===h.Postfix){s.inputs?.[0]&&e(s.inputs[0],l,d),o(h.Whitespace,s.wsBefore,l,d);let t=a(s,l,d),n=r[r.length-2];s.value===`#`&&t.text!==void 0&&!s.wsBefore&&i.has(n)&&(n.text=(n.text??``)+t.text,t.text=``),o(h.Whitespace,s.wsAfter,l,d)}else{o(h.Whitespace,s.wsBefore,l,d);let u=s.inputs;switch(f){case h.Function:{let t=String(s.value),i={type:h.Function,value:t,text:s.image??t,evalIndex:s.evalIndex};l&&(i.context=l),r.push(i);let a={name:t,argIndex:-1,type:s.binder?.kind??`function`};if(l?.bound&&(a.bound=l.bound),o(h.Paren,`(`,a,s.evalIndex),u){let t=u.length,r=s.binder?.kind,i=r===`lambda`?1:r===`let`?2:0,c=a.bound;for(let s=0;s<t;s++){let l=i&&s>=i?u[s-i]:void 0;if(l?.binding?.declaration){let e=l.value.nameId,t=r===`let`?St(u[s-1]):void 0;c=Z(c,t?{name:e,params:t}:{name:e})}let f={...a,argIndex:s};c&&(f.bound=c),e(u[s],f,d),s<t-1&&o(h.Separator,`,`,f,d,n.separatorFunction)}}s.error||o(h.Paren,`)`,a,s.evalIndex);break}case h.Call:{let t=v(s),i=r.length;if(t&&e(t,l,d),t?.type===h.Named)for(let e=i;e<r.length;e++){let t=r[e];t.type!==h.Whitespace&&(t.evalIndex=s.evalIndex,t.type===h.Named&&(t.type=h.Function,t.value=t.value.name))}let a={name:t?.type===h.Named?t.value.nameId:``,argIndex:-1,type:`function`};l?.bound&&(a.bound=l.bound),o(h.Paren,`(`,a,s.evalIndex);let u=c(s),f=u.length;for(let t=0;t<f;t++){let r={...a,argIndex:t};e(u[t],r,d),t<f-1&&o(h.Separator,`,`,r,d,n.separatorFunction)}s.error||o(h.Paren,`)`,a,s.evalIndex);break}case h.Cell:a(s,l,d);break;case h.Paren:o(f,`(`,l,d),p(u,l,d),s.error||o(f,`)`,l,d);break;case h.TableReference:{let n=s.value?.tableId??``,a={name:n,argIndex:-1,type:`table`},c=r.length,f=s.image,p,m=!1;if(n&&f){let e=0;if(f.charCodeAt(0)===91){let t=f.indexOf(`]`);t!==-1&&f.charCodeAt(t+1)===33&&(e=t+2)}let n=f.indexOf(`[`,e);if(m=n===0&&u!=null,n>0)p=f.slice(0,n);else if(!u){let e=f.lastIndexOf(`!`);p=t||e===-1?f:f.slice(e+1)}}if(!n||m&&t||o(h.TableReference,n,l,d,p),u&&o(h.Paren,`[`,a,d),u){let t=u.length;for(let n=0;n<t;n++){let r={...a,argIndex:n};e(u[n],r,d),n<t-1&&o(h.Separator,`,`,r,d)}}u&&!s.error&&o(h.Paren,`]`,a,d);let g=s.referenceIndex;for(let e=c;e<r.length;e++)g!==void 0&&(r[e].referenceIndex=g),i.add(r[e]);break}case h.TableSpecifier:case h.TableColumn:{let e=s.image,t=e!=null&&e.startsWith(`[`)&&e.endsWith(`]`);t&&o(h.Paren,`[`,l,d);let n={table:l?.type===`table`?l.name:``,name:s.value},i={type:f,value:n,text:t?e.slice(1,-1):e??n.name};d!==void 0&&(i.evalIndex=d),l&&(i.context=l),r.push(i),t&&o(h.Paren,`]`,l,d);break}case h.List:p(u,l,d);break;case h.Named:{let e=a(s,l,d),t=s.value;e.value=t.scope?{name:t.nameId,scope:t.scope}:{name:t.nameId},s.binding?.declaration&&s.binding.optional&&(e.value.optional=!0),s.binding&&(e.type=h.Parameter,s.binding.declaration&&(e.value.declaration=!0)),delete e.referenceIndex;break}default:s.value!==void 0&&a(s,l,d),u&&u.forEach(t=>e(t,l,d))}o(h.Whitespace,s.wsAfter,l,d)}})(e);let s=new Map;for(let e of r)if(e.type===h.Cell&&e.referenceIndex!==void 0){let t=s.get(e.referenceIndex);t?t.push(e):s.set(e.referenceIndex,[e])}for(let e of s.values())e.length===1?e[0].refSide=`self`:(e[0].refSide=`left`,e[e.length-1].refSide=`right`);let l=new Map;for(let e of r)if(e.referenceIndex!==void 0&&e.evalIndex!==void 0){let t=l.get(e.referenceIndex);(t===void 0||e.evalIndex<t)&&l.set(e.referenceIndex,e.evalIndex)}if(l.size>0){for(let e of r)if(e.referenceIndex!==void 0){let t=l.get(e.referenceIndex);t!==void 0&&(e.evalIndex=t)}}return r}function De(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e[r],a=i.type;if(a===h.Cell||a===h.Named||a===h.Error){let e=a===h.Cell?i.value?.scope:(h.Named,i.value?.scope??void 0),r=a===h.Error?i.text!==void 0&&D(i.text):i.text?.includes(`!`)??!1;if(e&&i.text!==void 0&&!r){let r=t?.resolve(S.Sheet,e)?.toString()??e;n+=T(r)+`!`+i.text;continue}if(a===h.Named){n+=i.text??i.value?.name??``;continue}}if(a===h.Parameter){n+=i.text??i.value?.name??``;continue}let o=i.text??i.value;typeof o==`string`&&(n+=o)}return n}function Oe(e,t){let n;if(w(e,e=>{e.evalIndex===t&&(n=e)}),!n)return[];let r=V(n);return r.length>1&&r[0].type===h.Whitespace&&r.shift(),r.length>1&&r[r.length-1].type===h.Whitespace&&r.pop(),r}function ke(e){return w(e,e=>{if(e.type!==h.TableReference)return;let t=function(e){if(e.value!==null&&typeof e.value==`object`)return e.value;let t=e.value,n=e.inputs,r=!1,i=!1,a=!1,o=!1,s=null,c=null,l=!1,u=e=>{e?.type===h.TableColumn&&(s=e.value,c=e.value)};if(n)for(let e of n){let t=e.type;if(t===h.TableSpecifier){let t=e.value.toUpperCase().trim();t===`#ALL`?i=!0:t===`#HEADERS`?a=!0:t===`#TOTALS`?o=!0:t===`#DATA`?r=!0:t!==`@`&&t!==`#THIS ROW`||(l=!0)}else if(t===h.TableColumn)u(e);else if(t===h.Infix&&e.value===`:`){let t=e.inputs?.[0],n=e.inputs?.[1];t?.type===h.TableColumn&&(s=t.value),n?.type===h.TableColumn&&(c=n.value)}else if(t===h.Prefix&&e.value===`@`){l=!0;let t=e.inputs?.[0];t?.type===h.Infix&&t.value===`:`?(t.inputs?.[0]?.type===h.TableColumn&&(s=t.inputs[0].value),t.inputs?.[1]?.type===h.TableColumn&&(c=t.inputs[1].value)):u(t)}}return{tableId:t,spec:d(i,a,r,o),columnFromId:s,columnToId:c,isThisRow:l}}(e);return{...e,value:t}})}function Ae(e){return w(e,e=>{if(e.type!==h.TableReference)return;let t=e.inputs;if(!t||t.findIndex(e=>e.type===h.TableSpecifier&&e.value.toUpperCase().trim()===`#THIS ROW`)===-1)return;let n=[],r;for(let e of t)(e.type!==h.TableSpecifier||e.value.toUpperCase().trim()!==`#THIS ROW`)&&(e.type!==h.TableColumn&&(e.type!==h.Infix||e.value!==`:`)||r?n.push(e):r=e);if(!r)return n.push({type:h.Prefix,value:`@`,inputs:null,isReference:!0}),{...e,inputs:n};let i=r.image??r.value,a=i.startsWith(`[`)&&i.endsWith(`]`)?{...r,image:i.slice(1,-1)}:r;return n.push(k(`@`,a,!0)),{...e,inputs:n}})}function je(e){return w(e,e=>{if(e.type!==h.TableReference||e.inputs?.length!==0||e.error)return;let t=e.value;return(typeof t==`string`?t:t?.tableId)?{...e,inputs:null}:void 0})}function Me(e){return w(e,e=>{if(e.type!==h.TableReference||!e.inputs)return;let t=e.value,n=typeof t==`string`?t:t?.tableId,r=e.image;if(!n||r?.charCodeAt(0)!==91)return;let i=r.indexOf(`]`);if(i!==-1&&r.charCodeAt(i+1)===33)return;let a={...e};return delete a.image,a})}var Ne=e=>{if(e?.type!==h.TableSpecifier)return 4;switch(e.value.toUpperCase().trim()){case`#ALL`:return 0;case`#HEADERS`:return 1;case`#DATA`:return 2;case`#TOTALS`:return 3;default:return 4}};function Pe(e){return w(e,e=>{if(e.type!==h.TableReference)return;let t=e.inputs;if(!t||t.length<2)return;let n=t.map((e,t)=>({input:e,index:t,rank:Ne(e)})).sort((e,t)=>e.rank-t.rank||e.index-t.index).map(e=>e.input);return n.every((e,n)=>e===t[n])?void 0:{...e,inputs:n}})}function Fe(t){if(!t)return e.EmptyArray;let n=e.EmptyArray;return w(t,t=>{if(t.type!==h.Named||t.binding)return;let r=t.value.nameId;r&&(n===e.EmptyArray&&(n=[]),n.includes(r)||n.push(r))}),n}function Ie(t,n){if(!t)return e.EmptyArray;let r=e.EmptyArray;return w(t,(t,i,a)=>{if(!t.isReference||i?.isReference)return;let o=t.type;if(o===h.Named||o===h.Error||o===h.TableReference||B(a,h.TableReference))return;let s=function(e){let t=e;for(;t;){if(t.referenceIndex!==void 0)return t.referenceIndex;if(!t.isReference)return;t=t.inputs?.[0]}}(t);s!==void 0&&function(e,t,n){let r=e;for(let e=t.length-1;e>=0;e--){let i=t[e];if(i.type===h.Paren||i.isReference){r=i;continue}if(i.type!==h.Function)return!0;let a=n?.(String(i.value));if(!a)return!0;let o=i.inputs?i.inputs.indexOf(r):-1;return(o>=0?H(a.getDeclaration().getParameters(),o):null)?.getRangeType()!==`p`}return!0}(t,a,n)&&(r===e.EmptyArray&&(r=[]),r.includes(s)||r.push(s))}),r.length>1&&r.sort((e,t)=>e-t),r}var Le=new Set([`SUBTOTAL`,`AGGREGATE`]);function Re(e,t){if(!e||!t)return!1;let n=!1;return w(e,e=>{if(n||e.type!==h.Function)return;let r=t(e.value)?.getName();r&&Le.has(r.toUpperCase())&&(n=!0)}),n}function ze(e,t){if(!e||!t)return!1;let n=!1;return w(e,e=>{n||e.type!==h.Function||t(e.value)?.getName().toUpperCase()===`TABLE`&&(n=!0)}),n}function Be(e,t){if(!e||!t)return!1;let n=!1;return w(e,e=>{n||e.type!==h.Function||!0===t(e.value)?.getDeclaration().getReturnType()?.isVolatile()&&(n=!0)}),n}var Ve=Object.freeze({value:!1,array:!1}),He=(e,t)=>{let n=function(e,t){if(!e||!t)return Ve;let n=!1,r=!1;return w(e,e=>{if(n)return;let i=e.type;if(i===h.Named)return void(e.binding===void 0&&(n=!0));if(i===h.Prefix)return void(e.value===`@`&&(n=!0));if(i===h.Call)return void(n=!0);if(i!==h.Function||e.binder!==void 0)return;let a=t(e.value);if(!a)return void(n=!0);if(r||!0!==e.implicitIntersect)return;let o=a.getDeclaration().getParameters(),s=e.inputs;if(s)for(let e=0;e<s.length;e++){let n=H(o,e);if(n!==null&&n.isValueOrRange()&&W(s[e],t))return void(r=!0)}}),{value:!n&&!r,array:!n}}(e,t);return{isBlankCacheable:n.value,isBlankCacheableArray:n.array}},Ue=(e,t)=>{let n=e.length;if(n===0)return null;if(t<n-1)return e[t];let r=e[n-1],i=r.getRepeatingTypes();return i&&i.length!==0?i[(t-(n-1))%i.length]:t<n?e[t]:r.isRest()?r:null};function We(t){if(!t)return e.EmptyArray;let n=e.EmptyArray,r=t=>{t&&(n===e.EmptyArray&&(n=[]),n.includes(t)||n.push(t))},i=e=>{typeof e==`string`&&r(f(e)?.bookId)};return w(t,e=>{if(e.type===h.Named){if(e.binding)return;let t=e.value;r(t.nameId),i(t.scope)}else if(e.type===h.TableReference){let t=e.value;r(typeof t==`string`?t:t?.tableId)}else if(e.type===h.Cell){let t=e.value?.scope;i(t),C(t)&&r(t)}else e.type===h.Error&&i(e.value?.scope)}),n}var Ge=(e,t)=>{if(!0===e.lazyArg)return!0;if(t?.binder?.kind!==`lambda`)return!1;let n=t.inputs;return n[n.length-1]===e},Ke=new Set([`IF`,`IFS`,`SWITCH`,`CHOOSE`,`IFERROR`,`IFNA`]),H=(e,t)=>{let n=e.length;if(n===0)return null;if(t<n)return e[t];let r=e[n-1];if(!r.isRest())return null;let i=r.getRepeatingTypes();return i&&i.length!==0?i[(t-(n-1))%i.length]:r},qe=e=>e.getScalarType()!==null&&e.getRangeType()===null&&e.getLambda()===null&&!e.isValueOrRange(),Je=(e,t,n)=>!(e.isRest()||!qe(e)||!W(t,n))&&!(e.isNoLift()&&U(t,n)),U=(e,t)=>{if(!e)return!1;let n=e.inputs;switch(e.type){case h.Cell:case h.Named:case h.TableReference:return!0;case h.Infix:case h.Prefix:case h.Postfix:return!0===e.isReference&&e.value!==`@`;case h.Paren:case h.List:return!!n&&n.length===1&&U(n[0],t);case h.Function:{if(e.binder!==void 0)return!1;let r=String(e.value).toUpperCase();if(Ke.has(r)){if(!n)return!1;for(let e=0;e<n.length;e++)if(U(n[e],t))return!0;return!1}let i=t?.(e.value);return!!i&&i.getDeclaration().getReturnType().getKind()===a.Reference}default:return!1}},Ye=(e,t)=>{if(!e)return!1;for(let n=0;n<e.length;n++)if(W(e[n],t))return!0;return!1};function W(e,t){if(!e)return!1;if(e.arrayValued!==void 0)return e.arrayValued;let n,r=e.type,i=e.inputs;switch(r){case h.Array:n=!0;break;case h.Cell:{let t=e.value;n=t.rowIndex===-(2**53-1)||t.colIndex===-(2**53-1);break}case h.Named:case h.Call:case h.TableReference:n=!0;break;case h.Infix:case h.Prefix:case h.Postfix:n=e.isReference?e.value!==`@`:Ye(i,t);break;case h.Paren:case h.List:n=!i||i.length!==1||W(i[0],t);break;case h.Function:{let r=e.binder;if(r!==void 0){n=r.kind===`lambda`||!!i&&W(i[i.length-1],t);break}let o=String(e.value).toUpperCase();if(Ke.has(o)){n=Ye(i,t);break}if(o===`INDEX`){if(n=!1,i)for(let e=1;e<i.length;e++){let r=i[e];if(!r||r.type===h.Empty||r.isLiteral&&r.value===0||W(r,t)){n=!0;break}}break}let s=t?.(e.value);if(!s){n=!0;break}let c=s.getDeclaration().getReturnType(),l=c.getKind();n=l===a.Array||l===a.Reference||l===null&&c.getRangeType()!==null;break}default:n=!1}return e.arrayValued=n,n}function Xe(e,t){if(e.firstCell!==void 0)return;let n=(e,r)=>{if(!e)return;e.firstCell=r;let i=e.inputs;if(!i)return;let a=e.type;if(a===h.Infix||a===h.Prefix||a===h.Postfix){let t=r&&!e.isReference;for(let e=0;e<i.length;e++)n(i[e],t)}else if(a===h.Paren||a===h.List){let e=r&&i.length===1;for(let t=0;t<i.length;t++)n(i[t],e)}else if(a===h.Function){let a=e.binder;if(a!==void 0){let e=i.length-1;for(let t=0;t<i.length;t++)n(i[t],r&&a.kind===`let`&&t===e);return}let o=r?t?.(e.value)?.getDeclaration().getParameters():null;for(let e=0;e<i.length;e++){let t=o?H(o,e):null;n(i[e],t!==null&&(qe(t)||et(t)))}}else for(let e=0;e<i.length;e++)n(i[e],!1)};n(e,!0)}var Ze=new Set([`=`,`<>`,`<`,`>`,`<=`,`>=`]),Qe=new Set([`ROW`,`COLUMN`]);function $e(e,t){if(!e||!t)return null;let n=e=>t(e.value)?.getName().toUpperCase()??null,r=!1;if(w(e,e=>{(e.hasLazyArgs||e.type===h.Call||e.binder!==void 0)&&(r=!0)}),r)return null;let i=e=>e.type===h.Number,a=e=>e.type===h.Number||e.type===h.String||e.type===h.Boolean,o=e=>{if(!e)return!1;let t=e.inputs;switch(e.type){case h.Paren:return t?.length===1&&o(t[0]);case h.Prefix:return(e.value===`-`||e.value===`+`)&&o(t?.[0]);case h.Infix:{if(e.value!==`+`&&e.value!==`-`&&e.value!==`*`)return!1;let[n,r]=t??[];return!(!n||!r)&&(o(n)&&(o(r)||i(r))||i(n)&&o(r))}case h.Function:{let r=n(e);if(r!==null&&Qe.has(r))return!t||t.length===0||t.length===1&&t[0]?.type===h.Cell;if(r===`MOD`&&t?.length===2){let e=t[1];return o(t[0])&&i(e)&&e.value!==0}return!1}}return!1},s=e=>{if(!e)return!1;let t=e.inputs;switch(e.type){case h.Paren:return t?.length===1&&s(t[0]);case h.Infix:{if(!Ze.has(e.value))return!1;let[n,r]=t??[];return!(!n||!r)&&(o(n)&&(o(r)||a(r))||a(n)&&o(r))}case h.Function:{let r=n(e);if(!t||t.length===0)return!1;if(r===`ISODD`||r===`ISEVEN`)return t.length===1&&o(t[0]);if(r===`NOT`)return t.length===1&&s(t[0]);if(r===`AND`||r===`OR`||r===`XOR`){let e=!1;for(let n=0;n<t.length;n++){let r=t[n];if(!r)return!1;if(r.type!==h.Boolean){if(!s(r))return!1;e=!0}}return e}return!1}}return!1},c=[],l=e=>{if(!e)return;if(s(e))return void c.push(e);let t=e.inputs;if(t)for(let e=0;e<t.length;e++)l(t[e])};l(e);let u=c.length;if(u===0||u>4)return null;let d=[];for(let t=0;t<1<<u;t++){let n=e=>{let r=c.indexOf(e);if(r!==-1)return te(t&1<<r?`TRUE`:`FALSE`);let i={...e};return delete i.evalIndex,delete i.firstCell,delete i.inLazy,delete i.lazyArg,delete i.hasLazyArgs,delete i.deferred,e.inputs&&(i.inputs=e.inputs.map(e=>e&&n(e))),i};d.push(n(e))}return d}var et=e=>e.getRangeType()===`*`&&e.getLambda()===null&&e.getArrayDepth()<=+!!e.isRest();function tt(e,n,r,i=!1,a=null,o=null){let s,c,l=r;l=ke(l),i||(l=Ae(l),l=Pe(l),l=je(l),l=Me(l)),[s,c]=function(e){let t=new Map,n=0,r=[e];for(;r.length>0;){let e=r.shift();if(t.set(e,{...e,evalIndex:n++}),e&&e.inputs)for(let t of e.inputs)r.push(t)}return t.forEach((e,n)=>{n&&n.inputs&&(e.inputs=n.inputs.map(e=>t.get(e)??e))}),[t.get(e),n]}(l);let u=b(c),d=[],f=[],p=new Ee,_,v=!1;(function(e,t){if(!e||!t)return;let n=e=>{if(!e)return;e.inLazy=!0,e.type===h.Named&&(e.deferredResolve=!0);let t=e.inputs;if(t)for(let e=0;e<t.length;e++)n(t[e])};w(e,e=>{if(e.type!==h.Function||e.binder!==void 0)return;let r=e.inputs;if(!r||r.length===0)return;let i=t(e.value)?.getDeclaration().getParameters();if(i)for(let t=0;t<r.length;t++){let a=r[t];a&&a.type!==h.Empty&&Ue(i,t)?.isLazy()&&(a.lazyArg=!0,e.hasLazyArgs=!0,n(a))}})})(s,o);let y=e=>{_===void 0&&(_=new Map);let t=_.get(e);return t===void 0&&_.set(e,t=[]),t},x=(e,t)=>{e===void 0?d.push(t):y(e).push(t)},S=e=>{e?.type!==h.Infix||e.value!==`+`&&e.value!==`-`||(e.snapsCancellation=!0)};s=w(s,(t,n,r)=>{let i=t.type,a=t.evalIndex;if(u[a]=null,i===h.TableColumn||i===h.TableSpecifier||t.isReference&&B(r,h.TableReference))return;if(v||=!q(t),t.binding?.declaration)return f[t.binding.slot]=-1,void(u[a]=void 0);let o=((e,t,n)=>{if(Ge(e,t))return e;for(let e=n.length-1;e>=0;e--)if(Ge(n[e],n[e-1]))return n[e]})(t,n,r);o===t&&y(t),o!==void 0&&i===h.Named&&(t.deferredResolve=!0);let s=t.binder;if(s&&s.kind===`let`){let e=t.inputs,n=e?.length??0,r=0;for(let t=0;t+1<n&&r<s.slots.length;t+=2)e[t]?.binding?.declaration&&(f[s.slots[r++]]=e[t+1]?.evalIndex??-1)}if((t.isReference||n&&n.isReference)&&(p.processNode(t,n),t.isReference)){if(i===h.Named)return void(o!==void 0&&x(o,t));if(i===h.Cell||i===h.TableReference||i===h.Error)return;if(i===h.Infix||i===h.Prefix||i===h.Postfix||i===h.List)return void x(o,t)}if(t.isLiteral){if(i!==h.Array)u[a]=t.value;else{let n=t.value,r=n.length,i=b(r);for(let e=0;e<r;e++){let t=n[e].value,r=t.length,a=b(r);for(let e=0;e<r;e++){let n=t[e],r=null;if(n&&(r=n.type===h.Error?j(n.value):n.value,n.type===h.Prefix)){let e=n.value;r=n.inputs[0].value,e===`-`&&(r=-r)}a[e]=r}i[e]=a}let o=g(i);u[a]=new ee(e,o.values,o.coords,void 0,o.isLiteral)}}else{if(i!==h.Empty)return t.binder?.kind===`lambda`&&S(t.inputs[t.inputs.length-1]),x(o,t),t;u[a]=void 0}}),S(s),_?.forEach((e,t)=>{t.deferred=e});let C=b(p.cells.size);p.cells.forEach((e,t)=>{let n=t.value,r=n.colIndex,i=n.rowIndex,a=n.$colIndex,o=n.$rowIndex,s={colStart:r,rowStart:i,colEnd:r,rowEnd:i,$colStart:a,$rowStart:o,$colEnd:a,$rowEnd:o};r===-(2**53-1)&&(s.colEnd=2**53-1),i===-(2**53-1)&&(s.rowEnd=2**53-1),n.scope&&(s.scope=n.scope),C[e]=s});let T=C.length,E=b(T);for(let e=0;e<T;e++)E[e]={colStart:0,rowStart:0,colEnd:0,rowEnd:0,scope:null};let D=b(p.references.size);p.references.forEach(e=>{D[e.index]=e});let O=[];p.rootReferences.forEach(e=>{O.push(e.index)}),function(e,t,n=!1){if(n){let t=e=>{if(!e)return;let n=e.type;n!==h.Function&&n!==h.Call||(e.implicitIntersect=!0);let r=e.inputs;if(r)for(let e=0;e<r.length;e++)t(r[e])};t(e);return}let r=e=>W(e,t),i=(e,n)=>{if(!e)return;let a=e.type;a!==h.Function&&a!==h.Call||(e.implicitIntersect=n);let o=e.inputs;if(o){if(a===h.Infix||a===h.Prefix||a===h.Postfix){let t=!e.isReference;for(let e=0;e<o.length;e++)i(o[e],(!t||!r(o[e]))&&n);return}if(a===h.Function){let r=e.binder;if(r!==void 0){let e=r.kind!==`lambda`&&n;for(let t=0;t<o.length;t++)i(o[t],e);return}let a=t?.(e.value)?.getDeclaration().getParameters(),s=!1;if(a)for(let e=0;e<o.length&&!s;e++){let n=o[e];if(!n)continue;let r=H(a,e);r&&Je(r,n,t)&&(s=!0)}s&&(e.implicitIntersect=!1);for(let e=0;e<o.length;e++)i(o[e],!s&&n);return}for(let e=0;e<o.length;e++)i(o[e],n)}};i(e,!r(e))}(s,o,!0===r.legacyIntersect);let k=e=>{let t=e.length;for(let n=0;n<t;n++){let t=e[n],r=t.type;if(r===h.Infix){if(!0===t.snapsCancellation){t.fn=Ce[t.value];continue}t.fn=Se[t.value]}else r===h.Prefix?t.fn=we[t.value]:r===h.Postfix&&(t.fn=Te[t.value])}},A;k(d),_?.forEach(k);let te=i?m(t(e.getLocale()).decimal):ne,M={runtime:e,symbols:n,getFunction:o,ast:s,evaluations:u,executions:d,bindings:f,referencesAbsolute:E,referencesExecute:D,referencesRelative:C,referencesRoot:O,referenceIndices:p.referenceIndices,formatReferenceIndices:Ie(s,o),getTokens:()=>A??=V(s,i,te),namedIds:Fe(s),symbolIds:We(s),hasTotals:Re(s,o),hasDataTable:ze(s,o),hasVolatile:Be(s,o),...He(s,o),isReferenceOnly:!v,error:a,transform:t=>{let r=w(s,t);return r===s?M:tt(e,n,r,i,a,o)}};return M}function nt(e){let t=-1,r=-1;return Number.isSafeInteger(e.previousToken?.startLine)?(t=e.previousToken.startLine,r=e.previousToken.endColumn+1):Number.isSafeInteger(e.token?.startLine)&&(t=e.token.startLine,r=e.token.startColumn),t===-1?new n.Parse(e.message,{cause:e}):(e.errorLocation={line:t,column:r},new n.Parse(e.message,{line:t,column:r,cause:e}))}Object.freeze([[`:`,`.:.`,`.:`,`:.`],[`^`],[`*`,`/`],[`+`,`-`],[`&`],[`<`,`>`,`=`,`<>`,`<=`,`>=`]]);var rt=Object.freeze([`:`,`.:.`,`.:`,`:.`]),G=Object.freeze([`:`,` `,`.:.`,`.:`,`:.`]),it=Object.freeze([`@`]),K=Object.freeze([`#`]),at=Object.freeze(G.concat(K)),q=(Object.freeze(G.concat(it).concat(K)),e=>{if(!e)return!1;let t=e.type;if(t===h.Cell||t===h.TableReference)return!0;if(t===h.Infix){if(!G.includes(e.value))return!1;let t=e.inputs,n=t[0],r=t[1];return q(n)&&q(r)}return t===h.List&&(e.inputs?.every(q)??!1)}),ot=e=>!!e&&(!(e.type!==h.Infix||!at.includes(e.value))||!(e.type!==h.Postfix||!K.includes(e.value))||e.type===h.Array||e.type===h.TableReference),st=Object.freeze([`+`,`-`,`*`,`/`,`^`,`&`,`=`,`<>`,`>`,`<`,`>=`,`<=`]),ct=Object.freeze([`-`,`+`]),J=(e,t)=>{if(!e)return!1;let n=e.type;if(e.isLiteral)return n!==h.Error;if(n===h.Paren||n===h.List){let n=e.inputs;return!(!n||n.length===0)&&n.every(e=>J(e,t))}if(n===h.Infix)return st.includes(e.value);if(n===h.Prefix)return ct.includes(e.value);if(n===h.Postfix)return e.value===`%`;if(n===h.Function){if(!t)return!1;let n=t(e.value);if(!n)return!1;let r=n.getDeclaration().getReturnType(),i=r.getRangeType();return i!==`p`&&(i!==null||r.getLambda()===null&&r.getScalarType()!=null)}return!1},lt=(e,t)=>{if(!e)return null;let n=null,r=e=>{if(n||!e)return;if(e.type===h.Infix&&e.value===` `){let r=e.inputs,i=r?.[0],a=r?.[1];if(J(i,t))return void(n=i);if(J(a,t))return void(n=a)}let i=e.inputs;if(i)for(let e=0;e<i.length&&!n;e++)r(i[e])};return r(e),n},ut=(e,t)=>{if(!e)return null;let n=null,r=e=>{if(n||!e)return;if(e.type===h.Postfix&&e.value===`#`){let r=e.inputs?.[0];if(r&&J(r,t))return void(n=r)}let i=e.inputs;if(i)for(let e=0;e<i.length&&!n;e++)r(i[e])};return r(e),n},dt=e=>{for(let t=0;t<e.length;t++)if(e[t].getRepeatingTypes())return t;return-1},ft=(e,t,n)=>{let r=e[t].getRepeatingTypes(),i=r.length,a=t,o=e.length-t-1,s=o;for(;s>0&&e[t+s].isOptional();)s--;let c=+!e[t].isOptional(),l=r[i-1].isOptional();for(let e=s;e<=o;e++){let t=n-a-e;if(t>=0&&t%i===0&&t/i>=c)return{n:t/i,short:!1,variable:t,period:i,prefix:a,suffix:e};if(l&&t===i-1)return{n:1,short:!0,variable:t,period:i,prefix:a,suffix:e}}return null},pt=e=>{if(!e)return null;let t=null,n=e=>{if(t||!e)return;if(e.type===h.Array&&Array.isArray(e.value)){let n=e.value,r=n[0]?.value?.length??0;for(let e=1;e<n.length&&!t;e++){let i=n[e]?.value?.length??0;i!==r&&(t=`Array rows must all be the same length — row ${e+1} has ${i} value${i===1?``:`s`}, but row 1 has ${r}.`)}}let r=e.inputs;if(r)for(let e=0;e<r.length&&!t;e++)n(r[e])};return n(e),t},mt=(e,t)=>{if(!e||!t)return null;let n=null,r=e=>{if(n||!e)return;if(e.type===h.Function){let r=e.value,i=t(r);if(i){let t=i.getDeclaration(),a=t.getParameters(),o=e.inputs?.length??0,s=t.getMaxArguments();if(o>s)return void(n=`Too many arguments for ${r}. The most it accepts is ${s}, but got ${o}.`);let c=a.length>0?dt(a):-1,l=a.length>0&&a[a.length-1].isRest();if(c>=0){if(!ft(a,c,o)){let e=a[c].getRepeatingTypes().length,t=a.length-1;n=e===1?`Too few arguments for ${r}. Expected at least ${t+1}, but got ${o}.`:`Wrong number of arguments for ${r}. Expected ${t} plus a multiple of ${e}, but got ${o}.`}}else if(!l&&o>a.length)n=`Too many arguments for ${r}. Expected ${a.length}, but got ${o}.`;else for(let e=o;e<a.length&&!n;e++){let t=a[e];t.isOptional()||t.isRest()||(n=`Parameter ${t.getName()} is missing for ${r}.`)}}}let i=e.inputs;if(i)for(let e=0;e<i.length&&!n;e++)r(i[e])};return r(e),n},ht=(e,t)=>{if(!e||!t)return null;let n=null,r=e=>{if(n||!e)return;if(e.type===h.Function){let r=t(e.value);if(r){let i=r.getDeclaration().getParameters(),a=e.inputs;if(i.length>0&&a){let e=((e,t)=>{let n=Array(t),r=e.length,i=r>0?dt(e):-1;if(i<0){let i=r>0?e[r-1]:null,a=!!i&&i.isRest();for(let o=0;o<t;o++)n[o]=o<r?e[o]:a?i:null;return n}let a=e[i].getRepeatingTypes(),o=a.length,s=i,c=ft(e,i,t),l=c?c.suffix:r-i-1,u=Math.max(0,t-s-l);for(let c=0;c<t;c++)if(c<s)n[c]=e[c];else if(c<s+u)n[c]=a[(c-s)%o];else{let t=i+1+(c-s-u);n[c]=t<r?e[t]:null}return n})(i,a.length);for(let r=0;r<a.length&&!n;r++){let i=e[r];i&&i.getRangeType()===`p`&&J(a[r],t)&&(n=a[r])}}}}let i=e.inputs;if(i)for(let e=0;e<i.length&&!n;e++)r(i[e])};return r(e),n},gt=(e,t)=>{if(!e)return null;let n=null,r=e=>{if(n||!e)return;if(e.type===h.Call){let r=e.inputs?.[0];if(r&&J(r,t))return void(n=`This expression always produces a value, so it cannot be called as a function.`)}let i=e.inputs;if(i)for(let e=0;e<i.length&&!n;e++)r(i[e])};return r(e),n},Y=(e,t)=>{if(e.type!==h.Function)return;let n=e.value;if(typeof n!=`string`)return;let r=(t?.(n)?.getName()??n).toUpperCase();return r===`LET`?`let`:r===`LAMBDA`?`lambda`:void 0},X=e=>{if(e?.type!==h.Named)return;let t=e.value;return t?.nameId&&!t.scope&&!0!==t.optional?t.nameId:void 0},_t=/^[A-Za-z_\\][A-Za-z0-9_\\]*$/,vt=new Set([`TRUE`,`FALSE`]),yt=e=>{if(e?.type===h.Named){let t=e.value;return!0!==t?.optional||!t.nameId||t.scope?void 0:t.nameId}if(e?.type!==h.TableReference)return;let t=e.value,n;if(t===null||typeof t==`string`){if(t)return;let r=e.inputs;if(!r||r.length!==1||r[0]?.type!==h.TableColumn)return;let i=r[0].value;if(typeof i!=`string`)return;n=i}else{let e=t;if(!e||e.tableId!==``||e.spec!==0||!0===e.isThisRow||!e.columnFromId||e.columnFromId!==e.columnToId)return;n=e.columnFromId}return _t.test(n)&&!vt.has(n.toUpperCase())&&e.image===`[${n}]`?n:void 0},bt=e=>{let t=p(e.image??e.value);t.image=e.image??e.value,t.wsBefore=e.wsBefore;let n={type:h.Call,value:null,inputs:[t,...e.inputs??[]],wsAfter:e.wsAfter};return e.error&&(n.error=e.error),n};function xt(e,t){return e&&t?w(e,e=>{if(e.type===h.Function&&typeof e.value==`string`&&!t(e.value))return bt(e)}):e}function Z(e,t){let n=t.name.toUpperCase(),r=e?e.filter(e=>e.name.toUpperCase()!==n):[];return r.push(t),r}function St(e){if(e?.type!==h.Function||e.binder?.kind!==`lambda`)return;let t=e.inputs??[],n=[];for(let e=0;e<t.length-1;e++){let r=t[e];if(!r?.binding?.declaration)return;let i=r.value.nameId;n.push(r.binding.optional?{name:i,optional:!0}:{name:i})}return n}var Ct=new Set([`IF`,`IFERROR`,`IFNA`]);function Q(e,t){if(!e||e.type!==h.Function||typeof e.value!=`string`)return e;let n=(t?.(e.value)?.getName()??e.value).toUpperCase();if(!Ct.has(n))return e;let r=e.inputs,i;if(r)for(let e=0;e<r.length;e++){let n=Q(r[e],t);n!==r[e]&&((i??=[...r])[e]=n)}return{...e,inputs:i??r,passOmitted:!0}}function wt(e,t=null){if(!e)return e;let n=[],r=0,i=e=>{let t=e.inputs;if(!t)return e;let n;for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let i=a(r);i!==r&&(n||=[...t],n[e]=i)}return n?{...e,inputs:n}:e},a=e=>{if(!e)return e;let o=Y(e,t);if(o)return((e,o)=>{let s=e.inputs,c=s?.length??0;if(!s||c<1)return i(e);let l=n.length,u=[],d=[...s],f=(e,t=!1)=>{let i=d[e],a=X(i),o=!1;if(a===void 0&&t){if(a=yt(i),a===void 0)return;o=!0}else if(a===void 0)return;let s=r++;n.push({key:a.toUpperCase(),slot:s,name:a}),u.push(s),d[e]=o?{...i,type:h.Named,value:{nameId:a,scope:null},inputs:null,binding:{slot:s,declaration:!0,optional:!0},isReference:!1}:{...i,binding:{slot:s,declaration:!0},isReference:!1}};if(o===`lambda`){for(let e=0;e<c-1;e++)f(e,!0);d[c-1]&&(d[c-1]=a(d[c-1]))}else{for(let e=0;e+1<c;e+=2)d[e+1]&&(d[e+1]=Q(a(d[e+1]),t)),f(e);c%2==1&&d[c-1]&&(d[c-1]=a(d[c-1]))}for(;n.length>l;)n.pop();return{...e,inputs:d,binder:{kind:o,slots:u}}})(e,o);if(e.type===h.Function&&typeof e.value==`string`){let r=e.value.toUpperCase();if(n.some(e=>e.key===r)&&!t?.(e.value))return i(bt(e))}if(n.length>0&&e.isReference&&e.value===`:`&&e.inputs?.length===2){let[t,r]=e.inputs;if(Tt(t)&&Tt(r)){let a=t.image.toUpperCase(),o=r.image.toUpperCase();if(n.some(e=>e.key===a||e.key===o))return i({...e,inputs:[Et(t),Et(r)]})}}if(e.type===h.Named){let t=X(e);if(t!==void 0){let r=t.toUpperCase();for(let i=n.length-1;i>=0;i--){if(n[i].key!==r)continue;let a={...e,binding:{slot:n[i].slot},isReference:!1};return t!==n[i].name&&(a.value={...e.value,nameId:n[i].name}),a}}return e}let s=i(e);if(s.type===h.Function&&typeof s.value==`string`&&(t?.(s.value)?.getName()??s.value).toUpperCase()===`ISOMITTED`){let e=s.inputs;if(e){let n;for(let r=0;r<e.length;r++){let i=e[r];if(i?.binding&&!i.binding.declaration&&!0!==i.rawFrameRead){(n??=[...e])[r]={...i,rawFrameRead:!0};continue}let a=Q(i,t);a!==i&&((n??=[...e])[r]=a)}if(n)return{...s,inputs:n}}}return s};return a(e)}var Tt=e=>{if(e?.type!==h.Cell||e.image===void 0)return!1;let t=e.value;return t.rowIndex===-(2**53-1)&&!0!==t.$colIndex&&!t.scope},Et=e=>{let t=p(e.image);return y(t,e),t},Dt=e=>e?.type===h.Cell,Ot=(e,t=null)=>{if(!e)return e;let n=!1,r=e=>{if(n||!e)return;let i=Y(e,t),a=e.inputs;if(i&&a){let e=i===`let`?2:1;for(let t=0;t<a.length-1;t+=e)if(Dt(a[t]))return void(n=!0)}if(a)for(let e=0;e<a.length&&!n;e++)r(a[e])};if(r(e),!n)return e;let i=null,a=w(e,e=>{if(e?.type!==h.Cell)return;let t=e.value,n=e.image;if(!0===t?.$colIndex||!0===t?.$rowIndex)return void(i??=`'${n??`a reference`}' cannot be absolute here. A LET/LAMBDA name that is a cell reference makes every reference in the formula a name, and a name cannot contain '$'.`);if(n===void 0)return;let r=p(n);y(r,e);let a=t?.scope;return a&&(r.value.scope=a,r.value.scopeImage=t.scopeImage),r});return i??a},kt=(e,t)=>{if(!e)return null;let n=null,r=e=>{if(n||!e)return;let i=Y(e,t);i&&((e,t)=>{let r=t===`let`?`LET`:`LAMBDA`,i=e.inputs,a=i?.length??0;if(!i||a<2)return;if(t===`let`&&a%2==0)return void(n=`Wrong number of arguments for LET. Expected name/value pairs followed by a calculation, but got ${a}.`);if(t===`lambda`&&i[a-1]?.type===h.Empty)return void(n=`LAMBDA has no calculation: the last argument is empty.`);let o=new Set,s=t===`let`?2:1,c=!1;for(let e=0;e<a-1;e+=s){let a=X(i[e]);if(a===void 0&&t===`lambda`)a=yt(i[e]),a!==void 0&&(c=!0);else if(a!==void 0&&c)return void(n=`Required name '${a}' cannot follow an optional name in ${r}.`);if(a===void 0)return void(n=`Expected a name in ${r} argument ${e+1}; a name cannot be the output of a formula.`);if(a.includes(`.`))return void(n=`Expected a name in ${r} argument ${e+1}; a name cannot contain '.'.`);let s=a.toUpperCase();if(o.has(s))return void(n=`Duplicate name '${a}' in ${r}.`);o.add(s)}})(e,i);let a=e.inputs;if(a)for(let e=0;e<a.length&&!n;e++)r(a[e])};return r(e),n};function At(e,t,n,r,i){let a=r,o,s=()=>(o===void 0&&(o=i&&n?t.bind(S.Table,``,{at:{scope:n,rowIndex:i.rowIndex,colIndex:i.colIndex}}):null),o);return w(e,(e,r,i=[])=>{let o,c=e.type;if(c===h.Cell){let n=e.value;if(n?.scope){let r=t.bind(S.Sheet,n.scope,a);r!==null&&(o||={...e},o.value={...n,scope:r})}}else if(c===h.Named){let r=e.value;if(r&&!e.binding){let i=function(e,t,n,r){if(t.scope){let e=n.bind(S.Sheet,t.scope,r);if(e===null||l(e))return}let i=n.bind(S.Table,t.nameId,{existing:!0});if(i===null)return;let a={type:h.TableReference,value:i,inputs:null,isReference:!0};y(a,e);let o=t.scopeImage;return typeof o==`string`&&e.image!==void 0&&(a.image=o+e.image),a}(e,r,t,a);if(i)return i;let s=r.scope?t.bind(S.Sheet,r.scope,a):null,c=(s===null?r.scope:l(s)?s:t.resolve(S.Sheet,s)?.toString()??r.scope)??n,u=t.bind(S.NamedFormula,r.nameId,c?{scope:c}:void 0);u===null&&s===null||(o||={...e},o.value={...r,nameId:u??r.nameId,...s===null?void 0:{scope:s}})}}else if(c===h.Error){let n=e.value;if(n?.scope){let r=t.bind(S.Sheet,n.scope,a);r!==null&&(o||={...e},o.value={...n,scope:r})}}else if(c===h.TableReference){let n=e.value;if(n){let r=t.bind(S.Table,n);o||={...e},r!==null&&(o.value=r)}else if(typeof n==`string`){let n=s();if(n!==null&&$(e,t))return{...e,value:n}}}else if(c===h.TableColumn){let n=e.value;if(n){let r=B(i,h.TableReference),a=r?.value||(r?s()??void 0:void 0),c=t.bind(S.TableColumn,n,a?{tableName:a}:void 0);o||={...e},c!==null&&(o.value=c)}}else if(c===h.Function){let n=e.value;if(n){let r=t.bind(S.Function,n);o||={...e},r!==null&&(o.value=r)}}return o})}function $(e,t){let n=!0,r=e.inputs;if(!r)return!0;for(let e=0;e<r.length&&n;e++)w(r[e],e=>{e.type===h.TableColumn&&t.resolve(S.TableColumn,e.value)===null&&(n=!1)});return n}function jt(e,t){let n=null;return w(e,e=>{if(n||e.type!==h.TableReference)return;if(e.value===``)return void(n=`A structured reference without a table name must be in a table that has its columns.`);let r=e.value;if(!t||typeof r!=`string`)return;let i=t.resolve(S.Table,r)?.toString()??r;t.bind(S.Table,i,{existing:!0})===null?n=`There is no table named '${i}'.`:$(e,t)||(n=`The table has no such column.`)}),n}export{wt as A,nt as C,tt as D,rt as E,ut as O,mt as S,pt as T,je as _,De as a,kt as b,Ot as c,Te as d,V as f,ht as g,gt as h,Ce as i,xt as j,we as k,Pe as l,Z as m,Ae as n,Me as o,Xe as p,At as r,Oe as s,$e as t,Se as u,jt as v,ot as w,lt as x,ke as y};
|