@intent-hq/web 2.289.0 → 2.290.1
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/package.json +1 -1
- package/web/app/immutable/chunks/{PZzdtHEH.js → -8bl9H3j.js} +1 -1
- package/web/app/immutable/chunks/{OJ1L_5qb.js → 1H7i14Jq.js} +1 -1
- package/web/app/immutable/chunks/{iaCxlE6C.js → 1NjHIsWL.js} +1 -1
- package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
- package/web/app/immutable/chunks/{BMtE4svi.js → 2zyiBICC.js} +1 -1
- package/web/app/immutable/chunks/{CLqc4Ghh.js → 4cIwmSuD.js} +4 -4
- package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
- package/web/app/immutable/chunks/{CbsrOoqP.js → 86pQg5ba.js} +1 -1
- package/web/app/immutable/chunks/{h6LfsnBK.js → 8DpW-FUQ.js} +1 -1
- package/web/app/immutable/chunks/{Dtny-3OT.js → 8ZymRjAb.js} +1 -1
- package/web/app/immutable/chunks/{D3NFuU4L.js → B05yODFj.js} +1 -1
- package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
- package/web/app/immutable/chunks/{CVAEsdqc.js → B1uw4k3u.js} +1 -1
- package/web/app/immutable/chunks/{CM-42I4J.js → B4ARXgVr.js} +1 -1
- package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
- package/web/app/immutable/chunks/{gbA3Idh4.js → B7WsW6mB.js} +6 -6
- package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
- package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
- package/web/app/immutable/chunks/{BFapXlF9.js → BB-rM-bv.js} +1 -1
- package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
- package/web/app/immutable/chunks/{BraZvQcb.js → BCqLW1sk.js} +1 -1
- package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
- package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
- package/web/app/immutable/chunks/{BNAxChIn.js → BFxAoZrN.js} +3 -3
- package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
- package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
- package/web/app/immutable/chunks/{3oF_cfgL.js → BJiYgQMg.js} +1 -1
- package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
- package/web/app/immutable/chunks/{DmLTqLLV.js → BLV57oiS.js} +1 -1
- package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
- package/web/app/immutable/chunks/{CxWK8xnP.js → BLwubCUL.js} +1 -1
- package/web/app/immutable/chunks/{CBLL08sm.js → BME2e0zx.js} +1 -1
- package/web/app/immutable/chunks/{CF8O1pc4.js → BMI9BPVJ.js} +1 -1
- package/web/app/immutable/chunks/{l18fXbdG.js → BOrf8iaF.js} +2 -2
- package/web/app/immutable/chunks/{BlUnlsOK.js → BPomlxD-.js} +51 -51
- package/web/app/immutable/chunks/{CSSOys25.js → BQAjYSZn.js} +1 -1
- package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
- package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
- package/web/app/immutable/chunks/{B5NmEYUa.js → BUfDnmlv.js} +1 -1
- package/web/app/immutable/chunks/{BulSFF-a.js → BVf1OKWM.js} +1 -1
- package/web/app/immutable/chunks/{DFm7ZzVD.js → BVkABTn_.js} +1 -1
- package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
- package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
- package/web/app/immutable/chunks/{DXRlnb97.js → BZML3c09.js} +1 -1
- package/web/app/immutable/chunks/{DVs38eSu.js → BZrGNaMY.js} +4 -4
- package/web/app/immutable/chunks/{Hai9JAty.js → B_ZXH4Bf.js} +1 -1
- package/web/app/immutable/chunks/{Df7C6745.js → Ba-TS5vR.js} +1 -1
- package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
- package/web/app/immutable/chunks/{DZ1zC9TP.js → BffyNBKQ.js} +1 -1
- package/web/app/immutable/chunks/{C2WwiwWs.js → Bfq2PcjA.js} +1 -1
- package/web/app/immutable/chunks/{BzLM7oPX.js → BgerNePf.js} +1 -1
- package/web/app/immutable/chunks/{Mw1KbVyQ.js → BiCS5wL3.js} +1 -1
- package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
- package/web/app/immutable/chunks/{CKeHkFGu.js → BjBW4i6w.js} +1 -1
- package/web/app/immutable/chunks/{13AmrEpa.js → BjJW_Stw.js} +1 -1
- package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
- package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
- package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
- package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
- package/web/app/immutable/chunks/{DpDRAdy2.js → BmwLKx4A.js} +2 -2
- package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
- package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
- package/web/app/immutable/chunks/{BYk1ULDt.js → BoHfk-5t.js} +3 -3
- package/web/app/immutable/chunks/{CDT1G70y.js → BpOXeNkx.js} +1 -1
- package/web/app/immutable/chunks/{Cs8DWwEN.js → BpxCnE9X.js} +2 -2
- package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
- package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
- package/web/app/immutable/chunks/{BR8wCCqs.js → BsqGui1M.js} +1 -1
- package/web/app/immutable/chunks/{C6HNr-1J.js → BssOKdq0.js} +1 -1
- package/web/app/immutable/chunks/{DBAVKOs3.js → BtVjR42p.js} +1 -1
- package/web/app/immutable/chunks/{rJ19sxRo.js → BvtLLvEi.js} +1 -1
- package/web/app/immutable/chunks/{DmRzBB2M.js → BvypOCfp.js} +1 -1
- package/web/app/immutable/chunks/{BuNDx2oQ.js → BwDb1jNr.js} +1 -1
- package/web/app/immutable/chunks/{n0AniKod.js → BxE5JflA.js} +1 -1
- package/web/app/immutable/chunks/{DyyrFzIP.js → Byu82QgX.js} +1 -1
- package/web/app/immutable/chunks/{BlBEj3oF.js → C-BS-coA.js} +2 -2
- package/web/app/immutable/chunks/{D1yGasR4.js → C0fOehTZ.js} +1 -1
- package/web/app/immutable/chunks/{CHwD9QHP.js → C1H4_ssx.js} +1 -1
- package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
- package/web/app/immutable/chunks/{B-CmW-Rt.js → C4hboqwm.js} +1 -1
- package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
- package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
- package/web/app/immutable/chunks/{DxrXzX_M.js → C7KdCylX.js} +3 -3
- package/web/app/immutable/chunks/{B2-XfPcN.js → C7mmIZCH.js} +1 -1
- package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
- package/web/app/immutable/chunks/{DZC7segB.js → C9AcsTi0.js} +1 -1
- package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
- package/web/app/immutable/chunks/{CwzDLq3o.js → CAaAIfXJ.js} +1 -1
- package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
- package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
- package/web/app/immutable/chunks/{DjyFgI1x.js → CEAZJuV2.js} +1 -1
- package/web/app/immutable/chunks/{C_drUQi2.js → CECSRFPp.js} +1 -1
- package/web/app/immutable/chunks/{CnypGHrl.js → CETsvapu.js} +1 -1
- package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
- package/web/app/immutable/chunks/{Db3BHa7z.js → CG-2eU4S.js} +1 -1
- package/web/app/immutable/chunks/{CN0OjCVu.js → CJcw2WA-.js} +1 -1
- package/web/app/immutable/chunks/{ClIwbXJq.js → CKuYPUu0.js} +1 -1
- package/web/app/immutable/chunks/{C0MRkgn4.js → CN15iJiw.js} +1 -1
- package/web/app/immutable/chunks/{Ev7NI-4B.js → CNWeExHy.js} +1 -1
- package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
- package/web/app/immutable/chunks/{DFBRG5f3.js → CQk4XJFx.js} +1 -1
- package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
- package/web/app/immutable/chunks/{Diyq2-7-.js → CSJ0J5sC.js} +1 -1
- package/web/app/immutable/chunks/{BiN4BvQG.js → CT1GHsTn.js} +1 -1
- package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
- package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
- package/web/app/immutable/chunks/{DVFKqUgb.js → CU1rgNTy.js} +1 -1
- package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
- package/web/app/immutable/chunks/{DsoGIaMF.js → CW92V9X1.js} +1 -1
- package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
- package/web/app/immutable/chunks/{iNzcdJYX.js → CYEJX57C.js} +1 -1
- package/web/app/immutable/chunks/{B0vB3nPK.js → CYH5KIcO.js} +1 -1
- package/web/app/immutable/chunks/{y_-PH3Cn.js → CZiA6iY8.js} +1 -1
- package/web/app/immutable/chunks/{CjPlYTON.js → C_dZqjuM.js} +1 -1
- package/web/app/immutable/chunks/{D3Xty9Im.js → Car8OZH2.js} +1 -1
- package/web/app/immutable/chunks/{5bL3DJj7.js → CaxwpItd.js} +1 -1
- package/web/app/immutable/chunks/{rZp3PWdq.js → CbVYqaBE.js} +1 -1
- package/web/app/immutable/chunks/{CtGY50_e.js → Ccxm74iK.js} +1 -1
- package/web/app/immutable/chunks/CfV9aH5z.js +4 -0
- package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
- package/web/app/immutable/chunks/{DktdylrS.js → Ch36jfts.js} +1 -1
- package/web/app/immutable/chunks/{T4V8F4hM.js → ChRkiYOJ.js} +1 -1
- package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
- package/web/app/immutable/chunks/CiyXcVwM.js +1 -0
- package/web/app/immutable/chunks/{YvM9JcXX.js → CjUzEyu9.js} +1 -1
- package/web/app/immutable/chunks/{D2ImsQzb.js → CkmJMnjs.js} +1 -1
- package/web/app/immutable/chunks/{Da9J2JX1.js → ClHM0gRH.js} +1 -1
- package/web/app/immutable/chunks/{B5xbJc9W.js → Clm-X79i.js} +1 -1
- package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
- package/web/app/immutable/chunks/{CBolvbXG.js → Cm8yeV3M.js} +1 -1
- package/web/app/immutable/chunks/{CDbeyeCP.js → Cmd7Q9e2.js} +2 -2
- package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
- package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
- package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
- package/web/app/immutable/chunks/{rjfpoS8M.js → CpWIfz5C.js} +1 -1
- package/web/app/immutable/chunks/{D4kGqGBk.js → CpZlxc5c.js} +1 -1
- package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
- package/web/app/immutable/chunks/{CJT0k-x3.js → Cqsec-yx.js} +1 -1
- package/web/app/immutable/chunks/{DIiXUVIr.js → Cro1ceUg.js} +3 -3
- package/web/app/immutable/chunks/{3CggOKng.js → Cs1191LV.js} +1 -1
- package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
- package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
- package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
- package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
- package/web/app/immutable/chunks/{DmeSNHl2.js → CvNRUlp4.js} +1 -1
- package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
- package/web/app/immutable/chunks/{Bs0OTveI.js → CvlQZpOV.js} +1 -1
- package/web/app/immutable/chunks/{u8zBWO7U.js → Cx9nrScM.js} +1 -1
- package/web/app/immutable/chunks/{0n1_sqb5.js → CzeJNa_N.js} +1 -1
- package/web/app/immutable/chunks/{C3U610Va.js → D-USmFEk.js} +1 -1
- package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
- package/web/app/immutable/chunks/{e4k4F_fF.js → D-nuXMbz.js} +1 -1
- package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
- package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
- package/web/app/immutable/chunks/{1kMmRwXf.js → D226daYk.js} +1 -1
- package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
- package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
- package/web/app/immutable/chunks/{BDZGpmAg.js → D4KaTH-V.js} +1 -1
- package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
- package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
- package/web/app/immutable/chunks/{KrEm5AbS.js → D6rPVTS4.js} +1 -1
- package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
- package/web/app/immutable/chunks/{C7cZaxG3.js → D7RRnWwO.js} +1 -1
- package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
- package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
- package/web/app/immutable/chunks/{CamLX2Sb.js → DC4NL8YS.js} +1 -1
- package/web/app/immutable/chunks/{f34gPxAx.js → DCpi1ytG.js} +1 -1
- package/web/app/immutable/chunks/{CG_nXeYa.js → DD8c9eUJ.js} +1 -1
- package/web/app/immutable/chunks/{C7FfDPRZ.js → DFT4lZL_.js} +1 -1
- package/web/app/immutable/chunks/{Bb6J6sjQ.js → DG2MKLyJ.js} +1 -1
- package/web/app/immutable/chunks/{BTurlMFD.js → DG9YtBZO.js} +1 -1
- package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
- package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
- package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
- package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
- package/web/app/immutable/chunks/{BzBOPxuP.js → DK1Nq2tK.js} +1 -1
- package/web/app/immutable/chunks/{CBiBtnBM.js → DKDZTli0.js} +1 -1
- package/web/app/immutable/chunks/{C26KoPDI.js → DKs113YH.js} +1 -1
- package/web/app/immutable/chunks/{DfacsTaO.js → DNWjwuC6.js} +1 -1
- package/web/app/immutable/chunks/{hcRUxON5.js → DPRoG8qR.js} +1 -1
- package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
- package/web/app/immutable/chunks/{COR1ZgMB.js → DQcbLXPp.js} +1 -1
- package/web/app/immutable/chunks/{CW9o0MGu.js → DR8eV9N8.js} +1 -1
- package/web/app/immutable/chunks/{iF8lSM38.js → DTTAQR6U.js} +1 -1
- package/web/app/immutable/chunks/{D1dtTkDE.js → DUEahgsi.js} +1 -1
- package/web/app/immutable/chunks/{CNySgneH.js → DV1BB3if.js} +1 -1
- package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
- package/web/app/immutable/chunks/{CK6izZOP.js → DVOiawfp.js} +2 -2
- package/web/app/immutable/chunks/{Bg4MuTWX.js → DVbZ5oZ8.js} +1 -1
- package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
- package/web/app/immutable/chunks/{BGCd17XA.js → DX09WtDr.js} +1 -1
- package/web/app/immutable/chunks/{Bg5ADDrW.js → DX8x4w_C.js} +1 -1
- package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
- package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
- package/web/app/immutable/chunks/{CEuCjemc.js → DZyz0CaB.js} +1 -1
- package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
- package/web/app/immutable/chunks/{BAhFveyJ.js → Darv-bZj.js} +1 -1
- package/web/app/immutable/chunks/{Db1mweH6.js → DbD4A30t.js} +1 -1
- package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
- package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
- package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
- package/web/app/immutable/chunks/{CIkVHIT3.js → Df8Itx2l.js} +1 -1
- package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
- package/web/app/immutable/chunks/{1KqMO8DA.js → Dfw44tJF.js} +1 -1
- package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
- package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
- package/web/app/immutable/chunks/{D_OjFNQH.js → DknXCwG-.js} +1 -1
- package/web/app/immutable/chunks/{TjYngI-X.js → Dl6wwL68.js} +1 -1
- package/web/app/immutable/chunks/{D8u-TTw-.js → DlcwslMx.js} +1 -1
- package/web/app/immutable/chunks/{IjnClLwt.js → Dlfu53Jt.js} +1 -1
- package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
- package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
- package/web/app/immutable/chunks/{D91osLQe.js → DpDR6yW3.js} +1 -1
- package/web/app/immutable/chunks/{V68rWC50.js → DqNPF1Kv.js} +1 -1
- package/web/app/immutable/chunks/{BppZZR6X.js → DsEt8_PJ.js} +1 -1
- package/web/app/immutable/chunks/{Dy2xsFvf.js → Dt4GGs4d.js} +1 -1
- package/web/app/immutable/chunks/{D8C52zH9.js → Dug6137y.js} +1 -1
- package/web/app/immutable/chunks/{Cd0IJoag.js → DxGgdCHB.js} +1 -1
- package/web/app/immutable/chunks/{B7y27fC-.js → Dynz04e1.js} +1 -1
- package/web/app/immutable/chunks/{DwxN7Wdi.js → DzbhMJUu.js} +1 -1
- package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
- package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
- package/web/app/immutable/chunks/{cv4xg7k0.js → HK2fZqOM.js} +1 -1
- package/web/app/immutable/chunks/{D6QA9x6A.js → IorbBySt.js} +1 -1
- package/web/app/immutable/chunks/{BiMGq9Z7.js → IuNsAsbW.js} +1 -1
- package/web/app/immutable/chunks/{wI7zMgx-.js → Kr-Hl0sp.js} +1 -1
- package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
- package/web/app/immutable/chunks/{BejAw64w.js → LhLTjc8B.js} +6 -6
- package/web/app/immutable/chunks/{D1zpsxCF.js → LwsqbQ0C.js} +1 -1
- package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
- package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
- package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
- package/web/app/immutable/chunks/{BelvDbq4.js → Q0BLEqss.js} +3 -3
- package/web/app/immutable/chunks/{B7g53bMx.js → Qe1_731c.js} +1 -1
- package/web/app/immutable/chunks/{CsgZCzi1.js → RiB0F36z.js} +3 -3
- package/web/app/immutable/chunks/RmgPTyFU.js +1 -0
- package/web/app/immutable/chunks/{CyLm5JOs.js → SEnfPRC9.js} +1 -1
- package/web/app/immutable/chunks/{C-jH8s9r.js → S_AAYsIr.js} +2 -2
- package/web/app/immutable/chunks/{CVYI64VR.js → SpDQ1yhe.js} +1 -1
- package/web/app/immutable/chunks/{glfri7wL.js → Wtp4gWgF.js} +1 -1
- package/web/app/immutable/chunks/{Drwt7aYJ.js → Xz2JgrtK.js} +1 -1
- package/web/app/immutable/chunks/{Cm72nCq-.js → ZBCGBGeT.js} +1 -1
- package/web/app/immutable/chunks/{C_lRd9OO.js → ZsIzkx4b.js} +1 -1
- package/web/app/immutable/chunks/{D6cxqzoz.js → _es_q85K.js} +1 -1
- package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
- package/web/app/immutable/chunks/{D2zf67XA.js → bAWH0D1a.js} +7 -7
- package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
- package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
- package/web/app/immutable/chunks/{DFhTl2LJ.js → dpToMVNV.js} +1 -1
- package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
- package/web/app/immutable/chunks/{CUTHTUjs.js → fciB9y8B.js} +1 -1
- package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
- package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
- package/web/app/immutable/chunks/{B1rvRaDg.js → ihEwdinj.js} +1 -1
- package/web/app/immutable/chunks/{CfeU66Hz.js → jsY6ocH0.js} +1 -1
- package/web/app/immutable/chunks/{DShhv9Lh.js → kIb2FXed.js} +1 -1
- package/web/app/immutable/chunks/{p29Y4Sx3.js → kXKukUHU.js} +1 -1
- package/web/app/immutable/chunks/{DuMYTc8Y.js → kza5UJ4U.js} +1 -1
- package/web/app/immutable/chunks/{D30--6jq.js → mMBlGZk9.js} +1 -1
- package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
- package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
- package/web/app/immutable/chunks/{B3II5C5l.js → n-WVnUeH.js} +1 -1
- package/web/app/immutable/chunks/{DFQ2LZfw.js → nR6RXxA9.js} +1 -1
- package/web/app/immutable/chunks/{BzBHISyY.js → pBEY1Dg2.js} +1 -1
- package/web/app/immutable/chunks/{D6Y18pu-.js → pEUfw1x0.js} +1 -1
- package/web/app/immutable/chunks/{DYZQjWbl.js → prrfQq6f.js} +1 -1
- package/web/app/immutable/chunks/{DTjIXONR.js → puEh5oJr.js} +4 -4
- package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
- package/web/app/immutable/chunks/{Cno21Zxg.js → q6-D_vn6.js} +1 -1
- package/web/app/immutable/chunks/{CaHA2ESe.js → qshqk_Zv.js} +1 -1
- package/web/app/immutable/chunks/{Dmq8N6LI.js → qvHk51jx.js} +2 -2
- package/web/app/immutable/chunks/{CdtTvwl3.js → r8ylcc1d.js} +1 -1
- package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
- package/web/app/immutable/chunks/{LzhxhM8_.js → u8Ybsqvl.js} +1 -1
- package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
- package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
- package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
- package/web/app/immutable/chunks/{CHLJ-3Q1.js → wk8l4Vfb.js} +1 -1
- package/web/app/immutable/chunks/{Z-nmDTPH.js → wz1UgZlY.js} +1 -1
- package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
- package/web/app/immutable/chunks/{D-k0eOJ6.js → yW5sglFu.js} +1 -1
- package/web/app/immutable/chunks/{DzpyprB1.js → ydrF5SOC.js} +1 -1
- package/web/app/immutable/chunks/{DE17eju9.js → zgX_Rwbq.js} +1 -1
- package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
- package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DF_Qftdw.js} +3 -3
- package/web/app/immutable/entry/start.DzVa4jHd.js +1 -0
- package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.KW34tjG8.js} +1 -1
- package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.CHhQxwtD.js} +1 -1
- package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.CGdaTN_a.js} +1 -1
- package/web/app/immutable/nodes/{11.DdNqWjT1.js → 11.K4X9py2s.js} +1 -1
- package/web/app/immutable/nodes/{12.sEYH_Pmu.js → 12.CV0D62ho.js} +1 -1
- package/web/app/immutable/nodes/{13.B0uhCaJY.js → 13.B-lV8z59.js} +3 -3
- package/web/app/immutable/nodes/{14.C3Ch8LVG.js → 14.BTTvfbc0.js} +1 -1
- package/web/app/immutable/nodes/{15.B6xmqReh.js → 15.CKURddgk.js} +1 -1
- package/web/app/immutable/nodes/{16.k3HHr2yy.js → 16.DD-jxx3d.js} +2 -2
- package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.CTO1JTL7.js} +4 -4
- package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.BE75vqzp.js} +1 -1
- package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.BUm0nN8e.js} +1 -1
- package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.BRXD3vaZ.js} +1 -1
- package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.CWxGKv_E.js} +1 -1
- package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.DI6-BnKI.js} +1 -1
- package/web/app/immutable/nodes/8.5BsghwEn.js +14 -0
- package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.-PRJswf6.js} +6 -6
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +48 -48
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/BCVnawos.js +0 -1
- package/web/app/immutable/chunks/BQS0XfBK.js +0 -1
- package/web/app/immutable/chunks/CjKcpWyx.js +0 -4
- package/web/app/immutable/chunks/D9I3JJnE.js +0 -1
- package/web/app/immutable/chunks/lvIYiyhL.js +0 -1
- package/web/app/immutable/chunks/sMg7Lxjd.js +0 -1
- package/web/app/immutable/entry/start.IOR_3Iyx.js +0 -1
- package/web/app/immutable/nodes/8.Dc-nd7pr.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a0 as Ot,l as xt,ao as Pt,aX as kt}from"./B8o4lNgr.js";import{B as St,_ as Tt}from"./sMg7Lxjd.js";function en(t,e,...n){var r=new St(t);Ot(()=>{const a=e()??null;Pt&&a==null&&kt(),r.ensure(a,a&&(o=>a(o,...n)))},xt)}const Ft="system";function j(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language??"",script:e.script??"",region:e.region??""}}catch{return null}}function dt(t,e){const n=t.toLowerCase();return e.find(r=>r.toLowerCase()===n)}function Wt(t,e,n){for(const r of t){if(typeof r!="string"||r.trim()==="")continue;const a=dt(r,e);if(a)return a;const o=j(r);if(!o||o.language==="")continue;const s=e.filter(u=>{const l=j(u);return l!==null&&l.language===o.language&&l.script===o.script});if(s.length>0)return s.find(l=>j(l)?.region===o.region)??s[0]}return n}function Yt(t,e,n,r){if(typeof t=="string"&&t.trim()!==""&&t!==Ft){const a=dt(t,n);if(a)return a}return Wt(e,n,r)}const U=globalThis.__INTENT_PARAGLIDE_I18N__.runtime,mt=U.baseLocale,lt=U.locales,Nt=(...t)=>U.overwriteGetLocale(...t),ht=6048e5,Et=864e5,H=43200,K=1440,Z=Symbol.for("constructDateFrom");function k(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Z in t?t[Z](e):t instanceof Date?new t.constructor(e):new Date(e)}function M(t,e){return k(e||t,t)}let Ct={};function A(){return Ct}function X(t,e){const n=A(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=M(t,e?.in),o=a.getDay(),s=(o<r?7:0)+o-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function R(t,e){return X(t,{...e,weekStartsOn:1})}function gt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=k(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=R(a),s=k(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=R(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function $(t){const e=M(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Q(t,...e){const n=k.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function tt(t,e){const n=M(t,e?.in);return n.setHours(0,0,0,0),n}function _t(t,e,n){const[r,a]=Q(n?.in,t,e),o=tt(r),s=tt(a),u=+o-$(o),l=+s-$(s);return Math.round((u-l)/Et)}function qt(t,e){const n=gt(t,e),r=k(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),R(r)}function L(t,e){const n=+M(t)-+M(e);return n<0?-1:n>0?1:n}function Xt(t){return k(t,Date.now())}function At(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function It(t){return!(!At(t)&&typeof t!="number"||isNaN(+M(t)))}function Ht(t,e,n){const[r,a]=Q(n?.in,t,e),o=r.getFullYear()-a.getFullYear(),s=r.getMonth()-a.getMonth();return o*12+s}function Lt(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Rt(t,e){return+M(t)-+M(e)}function $t(t,e){const n=M(t,e?.in);return n.setHours(23,59,59,999),n}function Gt(t,e){const n=M(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qt(t,e){const n=M(t,e?.in);return+$t(n,e)==+Gt(n,e)}function Bt(t,e,n){const[r,a,o]=Q(n?.in,t,t,e),s=L(a,o),u=Math.abs(Ht(a,o));if(u<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*u);let l=L(a,o)===-s;Qt(r)&&u===1&&L(r,o)===1&&(l=!1);const b=s*(u-+l);return b===0?0:b}function jt(t,e,n){const r=Rt(t,e)/1e3;return Lt(n?.roundingMethod)(r)}function Vt(t,e){const n=M(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Jt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zt=(t,e,n)=>{let r;const a=Jt[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te={date:V({formats:Ut,defaultWidth:"full"}),time:V({formats:Kt,defaultWidth:"full"}),dateTime:V({formats:Zt,defaultWidth:"full"})},ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ne=(t,e,n,r)=>ee[t];function _(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):s;a=t.formattingValues[u]||t.formattingValues[s]}else{const s=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[s]}const o=t.argumentCallback?t.argumentCallback(e):e;return a[o]}}const re={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},se={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ce=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fe={ordinalNumber:ce,era:_({values:re,defaultWidth:"wide"}),quarter:_({values:ae,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_({values:oe,defaultWidth:"wide"}),day:_({values:ie,defaultWidth:"wide"}),dayPeriod:_({values:se,defaultWidth:"wide",formattingValues:ue,defaultFormattingWidth:"wide"})};function q(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;const s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?me(u,g=>g.test(s)):de(u,g=>g.test(s));let b;b=t.valueCallback?t.valueCallback(l):l,b=n.valueCallback?n.valueCallback(b):b;const h=e.slice(s.length);return{value:b,rest:h}}}function de(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function me(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function le(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=e.slice(a.length);return{value:s,rest:u}}}const he=/^(\d+)(th|st|nd|rd)?/i,ge=/\d+/i,we={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ye={any:[/^b/i,/^(a|c)/i]},be={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Me={any:[/1/i,/2/i,/3/i,/4/i]},De={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ve={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ke={ordinalNumber:le({matchPattern:he,parsePattern:ge,valueCallback:t=>parseInt(t,10)}),era:q({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),quarter:q({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any",valueCallback:t=>t+1}),month:q({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any"}),day:q({matchPatterns:ve,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:xe,defaultMatchWidth:"any",parsePatterns:Pe,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:zt,formatLong:te,formatRelative:ne,localize:fe,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(t,e){const n=M(t,e?.in);return _t(n,Vt(n))+1}function Te(t,e){const n=M(t,e?.in),r=+R(n)-+qt(n);return Math.round(r/ht)+1}function yt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=A(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=k(e?.in||t,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=X(s,e),l=k(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const b=X(l,e);return+n>=+u?r+1:+n>=+b?r:r-1}function Fe(t,e){const n=A(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=yt(t,e),o=k(e?.in||t,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),X(o,e)}function We(t,e){const n=M(t,e?.in),r=+X(n,e)-+Fe(n,e);return Math.round(r/ht)+1}function m(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const F={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return m(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):m(n+1,2)},d(t,e){return m(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return m(t.getHours()%12||12,e.length)},H(t,e){return m(t.getHours(),e.length)},m(t,e){return m(t.getMinutes(),e.length)},s(t,e){return m(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return m(a,e.length)}},C={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},et={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return F.y(t,e)},Y:function(t,e,n,r){const a=yt(t,r),o=a>0?a:1-a;if(e==="YY"){const s=o%100;return m(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):m(o,e.length)},R:function(t,e){const n=gt(t);return m(n,e.length)},u:function(t,e){const n=t.getFullYear();return m(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return F.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=We(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):m(a,e.length)},I:function(t,e,n){const r=Te(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):m(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):F.d(t,e)},D:function(t,e,n){const r=Se(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return m(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return m(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=C.noon:r===0?a=C.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=C.evening:r>=12?a=C.afternoon:r>=4?a=C.morning:a=C.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return F.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):F.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):F.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):F.s(t,e)},S:function(t,e){return F.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return rt(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return rt(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nt(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nt(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return m(r,e.length)},T:function(t,e,n){return m(+t,e.length)}};function nt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+e+m(o,2)}function rt(t,e){return t%60===0?(t>0?"-":"+")+m(Math.abs(t)/60,2):N(t,e)}function N(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=m(Math.trunc(r/60),2),o=m(r%60,2);return n+a+e+o}const at=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ye=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",at(r,e)).replace("{{time}}",bt(a,e))},Ne={p:bt,P:Ye},Ee=/^D+$/,Ce=/^Y+$/,_e=["D","DD","YY","YYYY"];function qe(t){return Ee.test(t)}function Xe(t){return Ce.test(t)}function Ae(t,e,n){const r=Ie(t,e,n);if(console.warn(r),_e.includes(t))throw new RangeError(r)}function Ie(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,$e=/''/g,Ge=/[a-zA-Z]/;function Qe(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=M(t,n?.in);if(!It(u))throw new RangeError("Invalid time value");let l=e.match(Le).map(h=>{const g=h[0];if(g==="p"||g==="P"){const w=Ne[g];return w(h,a.formatLong)}return h}).join("").match(He).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:Be(h)};if(et[g])return{isToken:!0,value:h};if(g.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const b={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return l.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!n?.useAdditionalWeekYearTokens&&Xe(g)||!n?.useAdditionalDayOfYearTokens&&qe(g))&&Ae(g,e,String(t));const w=et[g[0]];return w(u,g,a.localize,b)}).join("")}function Be(t){const e=t.match(Re);return e?e[1].replace($e,"'"):t}function je(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=2520,s=L(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[l,b]=Q(n?.in,...s>0?[e,t]:[t,e]),h=jt(b,l),g=($(b)-$(l))/1e3,w=Math.round((h-g)/60);let S;if(w<2)return n?.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,u):h<10?a.formatDistance("lessThanXSeconds",10,u):h<20?a.formatDistance("lessThanXSeconds",20,u):h<40?a.formatDistance("halfAMinute",0,u):h<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):w===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",w,u);if(w<45)return a.formatDistance("xMinutes",w,u);if(w<90)return a.formatDistance("aboutXHours",1,u);if(w<K){const x=Math.round(w/60);return a.formatDistance("aboutXHours",x,u)}else{if(w<o)return a.formatDistance("xDays",1,u);if(w<H){const x=Math.round(w/K);return a.formatDistance("xDays",x,u)}else if(w<H*2)return S=Math.round(w/H),a.formatDistance("aboutXMonths",S,u)}if(S=Bt(b,l),S<12){const x=Math.round(w/H);return a.formatDistance("xMonths",x,u)}else{const x=S%12,E=Math.trunc(S/12);return x<3?a.formatDistance("aboutXYears",E,u):x<9?a.formatDistance("overXYears",E,u):a.formatDistance("almostXYears",E+1,u)}}function Ve(t,e){return je(t,Xt(t),e)}const ot=new Map,it=new Map,st=new Map;function P(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=ot.get(n);return r||(r=new Intl.NumberFormat(t,e),ot.set(n,r)),r}function Y(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=it.get(n);return r||(r=new Intl.DateTimeFormat(t,e),it.set(n,r)),r}function J(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=st.get(n);return r||(r=new Intl.RelativeTimeFormat(t,e),st.set(n,r)),r}const z=new Map;async function Je(t){if(t==="en"||z.has(t))return;const e=await Tt(()=>import("./BpZ--9ga.js"),[],import.meta.url),[n]=t.split("-"),a=[t.replace(/-/g,""),n].map(o=>e[o]).find(o=>o!=null&&typeof o=="object");z.set(t,a)}function ut(t){return z.get(t)}function O(t){const e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?null:e}function ze(t){const e=Math.round(t/1e3),n=Math.abs(e);if(n<10)return{value:0,unit:"second"};if(n<60)return{value:e,unit:"second"};const r=Math.trunc(e/60);if(Math.abs(r)<60)return{value:r,unit:"minute"};const a=Math.trunc(e/3600);if(Math.abs(a)<24)return{value:a,unit:"hour"};const o=Math.trunc(e/86400);if(Math.abs(o)<7)return{value:o,unit:"day"};if(Math.abs(o)<30)return{value:Math.trunc(o/7),unit:"week"};const s=Math.trunc(o/30);return Math.abs(s)<12?{value:s,unit:"month"}:{value:Math.trunc(o/365),unit:"year"}}function ct(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ft(t,e){return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)}function nn(t){function e(c,f){return P(t(),f??{}).format(c)}function n(c){return Number.isFinite(c)?P(t(),{maximumFractionDigits:0}).format(c):"0"}function r(c,f){if(!Number.isFinite(c))return n(0);const i=f?.maximumFractionDigits??(Math.abs(c)<1e3?0:1);return P(t(),{notation:"compact",compactDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:i}).format(c)}function a(c,f,i){if(!Number.isFinite(c))return"";const d=t(),y=c!==0&&Math.abs(c)<1,D=i?.fractionDigits!==void 0?{minimumFractionDigits:i.fractionDigits,maximumFractionDigits:i.fractionDigits}:y?{minimumFractionDigits:2,maximumFractionDigits:4}:{};try{return P(d,{style:"currency",currency:f,...D}).format(c)}catch{return`${P(d,{minimumFractionDigits:i?.fractionDigits??2,maximumFractionDigits:i?.fractionDigits??(y?4:2)}).format(c)} ${f}`}}function o(c){if(!Number.isFinite(c)||c<0)return"";const f=["B","Ki","Mi","Gi","Ti"];let i=c,d=0;for(;i>=1024&&d<f.length-1;)i/=1024,d++;return`${P(t(),{maximumSignificantDigits:3,useGrouping:!1}).format(i)}${f[d]}`}function s(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,{value:y,unit:D}=ze(i.getTime()-d.getTime());return J(t(),{numeric:"auto",style:f?.style==="narrow"?"narrow":"long"}).format(y,D)}function u(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=d.getTime()-i.getTime(),p=Math.floor(D/6e4),v=(B,vt)=>P(y,{style:"unit",unit:B,unitDisplay:"narrow"}).format(vt);if(D<=0)return J(y,{numeric:"auto"}).format(0,"second");if(p<1)return v("second",Math.floor(D/1e3));if(p<60)return v("minute",p);const T=Math.floor(p/60);if(T<24)return v("hour",T);const W=Math.floor(T/24);if(W<7)return v("day",W);const I=Math.floor(W/7);return I<5?v("week",I):w(i,{now:d})}function l(c){if(!Number.isFinite(c))return"";const f=t(),i=(I,B)=>P(f,{style:"unit",unit:I,unitDisplay:"narrow"}).format(B),d=Math.max(0,Math.round(c/1e3)),y=d%60,D=Math.floor(d/60);if(D===0)return i("second",y);const p=D%60,v=Math.floor(D/60);if(v===0)return y===0?i("minute",p):`${i("minute",p)} ${i("second",y)}`;const T=v%24,W=Math.floor(v/24);return W===0?p===0?i("hour",T):`${i("hour",T)} ${i("minute",p)}`:T===0?i("day",W):`${i("day",W)} ${i("hour",T)}`}function b(c){if(!Number.isFinite(c))return"";const f=t(),i=(y,D)=>P(f,{style:"unit",unit:y,unitDisplay:"narrow"}).format(D),d=Math.max(0,c);return d<6e4?i("second",Math.round(d/1e3)):d<36e5?i("minute",Math.floor(d/6e4)):d<864e5?i("hour",Math.floor(d/36e5)):i("day",Math.floor(d/864e5))}function h(c,f){const i=O(c);if(!i)return"";const d=f?.seconds?{hour:"2-digit",minute:"2-digit",second:"2-digit"}:{hour:"numeric",minute:"2-digit"};return Y(t(),d).format(i)}function g(c){const f=O(c);return f?Y(t(),{dateStyle:"medium"}).format(f):""}function w(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=i.getFullYear()===d.getFullYear();return Y(t(),{month:"short",day:"numeric",...y?{}:{year:"numeric"}}).format(i)}function S(c){const f=O(c);return f?Y(t(),{dateStyle:"medium",timeStyle:"short"}).format(f):""}function x(c){const f=O(c);return f?Y(t(),{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(f):""}function E(c){const f=O(c);return f?Y(t(),{weekday:"long"}).format(f):""}function Mt(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=J(y,{numeric:"auto"});if(ct(i,d))return ft(D.format(0,"day"),y);const p=new Date(d);if(p.setDate(p.getDate()-1),ct(i,p))return ft(D.format(-1,"day"),y);const v=new Date(d);return v.setDate(v.getDate()-7),i>v&&i<d?E(i):Y(y,{weekday:"long",month:"long",day:"numeric",...i.getFullYear()===d.getFullYear()?{}:{year:"numeric"}}).format(i)}function Dt(c,f){const i=O(c);return i?Ve(i,{addSuffix:f?.addSuffix??!0,locale:ut(t())}):""}function pt(c,f){const i=O(c);return i?Qe(i,f,{locale:ut(t())}):""}return{formatNumber:e,formatInteger:n,formatCompactNumber:r,formatCurrency:a,formatBytesBinary:o,formatRelativeTime:s,formatCompactRelativeTime:u,formatCompactDuration:l,formatSalientDuration:b,formatTime:h,formatDate:g,formatShortDate:w,formatDateTime:S,formatFullDateTime:x,formatWeekday:E,formatDaySeparator:Mt,formatDistanceToNow:Dt,formatDatePattern:pt}}let G=mt;Nt(()=>G);function Ue(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages:navigator.language?[navigator.language]:[]}function rn(){return lt}function Ke(t){return Yt(t,Ue(),lt,mt)}function an(t){G=Ke(t),Je(G)}function on(){return G}function sn(t){let e=t;try{const n=new Intl.Locale(t).maximize();n.language==="zh"&&n.script&&(e=`zh-${n.script}`)}catch{}try{const n=new Intl.DisplayNames([t],{type:"language"}).of(e);if(n&&n!==e)return n.charAt(0).toLocaleUpperCase(t)+n.slice(1)}catch{}return t}export{Ft as S,an as a,V as b,_ as c,q as d,le as e,nn as f,_t as g,wt as h,zt as i,ne as j,on as k,rn as l,sn as m,lt as n,fe as o,ke as p,Q as q,Ke as r,en as s,X as t,M as u};
|
|
1
|
+
import{a0 as Ot,l as xt,ao as Pt,aX as kt}from"./B8o4lNgr.js";import{B as St,_ as Tt}from"./CgPr4hs2.js";function en(t,e,...n){var r=new St(t);Ot(()=>{const a=e()??null;Pt&&a==null&&kt(),r.ensure(a,a&&(o=>a(o,...n)))},xt)}const Ft="system";function j(t){try{const e=new Intl.Locale(t).maximize();return{language:e.language??"",script:e.script??"",region:e.region??""}}catch{return null}}function dt(t,e){const n=t.toLowerCase();return e.find(r=>r.toLowerCase()===n)}function Wt(t,e,n){for(const r of t){if(typeof r!="string"||r.trim()==="")continue;const a=dt(r,e);if(a)return a;const o=j(r);if(!o||o.language==="")continue;const s=e.filter(u=>{const l=j(u);return l!==null&&l.language===o.language&&l.script===o.script});if(s.length>0)return s.find(l=>j(l)?.region===o.region)??s[0]}return n}function Yt(t,e,n,r){if(typeof t=="string"&&t.trim()!==""&&t!==Ft){const a=dt(t,n);if(a)return a}return Wt(e,n,r)}const U=globalThis.__INTENT_PARAGLIDE_I18N__.runtime,mt=U.baseLocale,lt=U.locales,Nt=(...t)=>U.overwriteGetLocale(...t),ht=6048e5,Et=864e5,H=43200,K=1440,Z=Symbol.for("constructDateFrom");function k(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&Z in t?t[Z](e):t instanceof Date?new t.constructor(e):new Date(e)}function M(t,e){return k(e||t,t)}let Ct={};function A(){return Ct}function X(t,e){const n=A(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=M(t,e?.in),o=a.getDay(),s=(o<r?7:0)+o-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function R(t,e){return X(t,{...e,weekStartsOn:1})}function gt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=k(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const o=R(a),s=k(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=R(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function $(t){const e=M(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Q(t,...e){const n=k.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function tt(t,e){const n=M(t,e?.in);return n.setHours(0,0,0,0),n}function _t(t,e,n){const[r,a]=Q(n?.in,t,e),o=tt(r),s=tt(a),u=+o-$(o),l=+s-$(s);return Math.round((u-l)/Et)}function qt(t,e){const n=gt(t,e),r=k(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),R(r)}function L(t,e){const n=+M(t)-+M(e);return n<0?-1:n>0?1:n}function Xt(t){return k(t,Date.now())}function At(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function It(t){return!(!At(t)&&typeof t!="number"||isNaN(+M(t)))}function Ht(t,e,n){const[r,a]=Q(n?.in,t,e),o=r.getFullYear()-a.getFullYear(),s=r.getMonth()-a.getMonth();return o*12+s}function Lt(t){return e=>{const r=(t?Math[t]:Math.trunc)(e);return r===0?0:r}}function Rt(t,e){return+M(t)-+M(e)}function $t(t,e){const n=M(t,e?.in);return n.setHours(23,59,59,999),n}function Gt(t,e){const n=M(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Qt(t,e){const n=M(t,e?.in);return+$t(n,e)==+Gt(n,e)}function Bt(t,e,n){const[r,a,o]=Q(n?.in,t,t,e),s=L(a,o),u=Math.abs(Ht(a,o));if(u<1)return 0;a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*u);let l=L(a,o)===-s;Qt(r)&&u===1&&L(r,o)===1&&(l=!1);const b=s*(u-+l);return b===0?0:b}function jt(t,e,n){const r=Rt(t,e)/1e3;return Lt(n?.roundingMethod)(r)}function Vt(t,e){const n=M(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Jt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},zt=(t,e,n)=>{let r;const a=Jt[t];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function V(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Ut={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zt={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},te={date:V({formats:Ut,defaultWidth:"full"}),time:V({formats:Kt,defaultWidth:"full"}),dateTime:V({formats:Zt,defaultWidth:"full"})},ee={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ne=(t,e,n,r)=>ee[t];function _(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const s=t.defaultFormattingWidth||t.defaultWidth,u=n?.width?String(n.width):s;a=t.formattingValues[u]||t.formattingValues[s]}else{const s=t.defaultWidth,u=n?.width?String(n.width):t.defaultWidth;a=t.values[u]||t.values[s]}const o=t.argumentCallback?t.argumentCallback(e):e;return a[o]}}const re={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ie={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},se={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ue={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ce=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fe={ordinalNumber:ce,era:_({values:re,defaultWidth:"wide"}),quarter:_({values:ae,defaultWidth:"wide",argumentCallback:t=>t-1}),month:_({values:oe,defaultWidth:"wide"}),day:_({values:ie,defaultWidth:"wide"}),dayPeriod:_({values:se,defaultWidth:"wide",formattingValues:ue,defaultFormattingWidth:"wide"})};function q(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;const s=o[0],u=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(u)?me(u,g=>g.test(s)):de(u,g=>g.test(s));let b;b=t.valueCallback?t.valueCallback(l):l,b=n.valueCallback?n.valueCallback(b):b;const h=e.slice(s.length);return{value:b,rest:h}}}function de(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function me(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function le(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],o=e.match(t.parsePattern);if(!o)return null;let s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=e.slice(a.length);return{value:s,rest:u}}}const he=/^(\d+)(th|st|nd|rd)?/i,ge=/\d+/i,we={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ye={any:[/^b/i,/^(a|c)/i]},be={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Me={any:[/1/i,/2/i,/3/i,/4/i]},De={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ve={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Oe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},xe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ke={ordinalNumber:le({matchPattern:he,parsePattern:ge,valueCallback:t=>parseInt(t,10)}),era:q({matchPatterns:we,defaultMatchWidth:"wide",parsePatterns:ye,defaultParseWidth:"any"}),quarter:q({matchPatterns:be,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any",valueCallback:t=>t+1}),month:q({matchPatterns:De,defaultMatchWidth:"wide",parsePatterns:pe,defaultParseWidth:"any"}),day:q({matchPatterns:ve,defaultMatchWidth:"wide",parsePatterns:Oe,defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:xe,defaultMatchWidth:"any",parsePatterns:Pe,defaultParseWidth:"any"})},wt={code:"en-US",formatDistance:zt,formatLong:te,formatRelative:ne,localize:fe,match:ke,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Se(t,e){const n=M(t,e?.in);return _t(n,Vt(n))+1}function Te(t,e){const n=M(t,e?.in),r=+R(n)-+qt(n);return Math.round(r/ht)+1}function yt(t,e){const n=M(t,e?.in),r=n.getFullYear(),a=A(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=k(e?.in||t,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=X(s,e),l=k(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const b=X(l,e);return+n>=+u?r+1:+n>=+b?r:r-1}function Fe(t,e){const n=A(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=yt(t,e),o=k(e?.in||t,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),X(o,e)}function We(t,e){const n=M(t,e?.in),r=+X(n,e)-+Fe(n,e);return Math.round(r/ht)+1}function m(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const F={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return m(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):m(n+1,2)},d(t,e){return m(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return m(t.getHours()%12||12,e.length)},H(t,e){return m(t.getHours(),e.length)},m(t,e){return m(t.getMinutes(),e.length)},s(t,e){return m(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return m(a,e.length)}},C={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},et={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return F.y(t,e)},Y:function(t,e,n,r){const a=yt(t,r),o=a>0?a:1-a;if(e==="YY"){const s=o%100;return m(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):m(o,e.length)},R:function(t,e){const n=gt(t);return m(n,e.length)},u:function(t,e){const n=t.getFullYear();return m(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return m(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return m(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return F.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return m(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=We(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):m(a,e.length)},I:function(t,e,n){const r=Te(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):m(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):F.d(t,e)},D:function(t,e,n){const r=Se(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return m(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return m(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return m(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=C.noon:r===0?a=C.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=C.evening:r>=12?a=C.afternoon:r>=4?a=C.morning:a=C.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return F.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):F.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):m(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):F.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):F.s(t,e)},S:function(t,e){return F.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return rt(r);case"XXXX":case"XX":return N(r);case"XXXXX":case"XXX":default:return N(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return rt(r);case"xxxx":case"xx":return N(r);case"xxxxx":case"xxx":default:return N(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nt(r,":");case"OOOO":default:return"GMT"+N(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nt(r,":");case"zzzz":default:return"GMT"+N(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return m(r,e.length)},T:function(t,e,n){return m(+t,e.length)}};function nt(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+e+m(o,2)}function rt(t,e){return t%60===0?(t>0?"-":"+")+m(Math.abs(t)/60,2):N(t,e)}function N(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=m(Math.trunc(r/60),2),o=m(r%60,2);return n+a+e+o}const at=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},bt=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Ye=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return at(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",at(r,e)).replace("{{time}}",bt(a,e))},Ne={p:bt,P:Ye},Ee=/^D+$/,Ce=/^Y+$/,_e=["D","DD","YY","YYYY"];function qe(t){return Ee.test(t)}function Xe(t){return Ce.test(t)}function Ae(t,e,n){const r=Ie(t,e,n);if(console.warn(r),_e.includes(t))throw new RangeError(r)}function Ie(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const He=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Re=/^'([^]*?)'?$/,$e=/''/g,Ge=/[a-zA-Z]/;function Qe(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=M(t,n?.in);if(!It(u))throw new RangeError("Invalid time value");let l=e.match(Le).map(h=>{const g=h[0];if(g==="p"||g==="P"){const w=Ne[g];return w(h,a.formatLong)}return h}).join("").match(He).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:Be(h)};if(et[g])return{isToken:!0,value:h};if(g.match(Ge))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});a.localize.preprocessor&&(l=a.localize.preprocessor(u,l));const b={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return l.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!n?.useAdditionalWeekYearTokens&&Xe(g)||!n?.useAdditionalDayOfYearTokens&&qe(g))&&Ae(g,e,String(t));const w=et[g[0]];return w(u,g,a.localize,b)}).join("")}function Be(t){const e=t.match(Re);return e?e[1].replace($e,"'"):t}function je(t,e,n){const r=A(),a=n?.locale??r.locale??wt,o=2520,s=L(t,e);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[l,b]=Q(n?.in,...s>0?[e,t]:[t,e]),h=jt(b,l),g=($(b)-$(l))/1e3,w=Math.round((h-g)/60);let S;if(w<2)return n?.includeSeconds?h<5?a.formatDistance("lessThanXSeconds",5,u):h<10?a.formatDistance("lessThanXSeconds",10,u):h<20?a.formatDistance("lessThanXSeconds",20,u):h<40?a.formatDistance("halfAMinute",0,u):h<60?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",1,u):w===0?a.formatDistance("lessThanXMinutes",1,u):a.formatDistance("xMinutes",w,u);if(w<45)return a.formatDistance("xMinutes",w,u);if(w<90)return a.formatDistance("aboutXHours",1,u);if(w<K){const x=Math.round(w/60);return a.formatDistance("aboutXHours",x,u)}else{if(w<o)return a.formatDistance("xDays",1,u);if(w<H){const x=Math.round(w/K);return a.formatDistance("xDays",x,u)}else if(w<H*2)return S=Math.round(w/H),a.formatDistance("aboutXMonths",S,u)}if(S=Bt(b,l),S<12){const x=Math.round(w/H);return a.formatDistance("xMonths",x,u)}else{const x=S%12,E=Math.trunc(S/12);return x<3?a.formatDistance("aboutXYears",E,u):x<9?a.formatDistance("overXYears",E,u):a.formatDistance("almostXYears",E+1,u)}}function Ve(t,e){return je(t,Xt(t),e)}const ot=new Map,it=new Map,st=new Map;function P(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=ot.get(n);return r||(r=new Intl.NumberFormat(t,e),ot.set(n,r)),r}function Y(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=it.get(n);return r||(r=new Intl.DateTimeFormat(t,e),it.set(n,r)),r}function J(t,e){const n=`${t}|${JSON.stringify(e)}`;let r=st.get(n);return r||(r=new Intl.RelativeTimeFormat(t,e),st.set(n,r)),r}const z=new Map;async function Je(t){if(t==="en"||z.has(t))return;const e=await Tt(()=>import("./C1vv_LrD.js"),[],import.meta.url),[n]=t.split("-"),a=[t.replace(/-/g,""),n].map(o=>e[o]).find(o=>o!=null&&typeof o=="object");z.set(t,a)}function ut(t){return z.get(t)}function O(t){const e=t instanceof Date?t:new Date(t);return Number.isNaN(e.getTime())?null:e}function ze(t){const e=Math.round(t/1e3),n=Math.abs(e);if(n<10)return{value:0,unit:"second"};if(n<60)return{value:e,unit:"second"};const r=Math.trunc(e/60);if(Math.abs(r)<60)return{value:r,unit:"minute"};const a=Math.trunc(e/3600);if(Math.abs(a)<24)return{value:a,unit:"hour"};const o=Math.trunc(e/86400);if(Math.abs(o)<7)return{value:o,unit:"day"};if(Math.abs(o)<30)return{value:Math.trunc(o/7),unit:"week"};const s=Math.trunc(o/30);return Math.abs(s)<12?{value:s,unit:"month"}:{value:Math.trunc(o/365),unit:"year"}}function ct(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ft(t,e){return t.charAt(0).toLocaleUpperCase(e)+t.slice(1)}function nn(t){function e(c,f){return P(t(),f??{}).format(c)}function n(c){return Number.isFinite(c)?P(t(),{maximumFractionDigits:0}).format(c):"0"}function r(c,f){if(!Number.isFinite(c))return n(0);const i=f?.maximumFractionDigits??(Math.abs(c)<1e3?0:1);return P(t(),{notation:"compact",compactDisplay:"short",minimumFractionDigits:0,maximumFractionDigits:i}).format(c)}function a(c,f,i){if(!Number.isFinite(c))return"";const d=t(),y=c!==0&&Math.abs(c)<1,D=i?.fractionDigits!==void 0?{minimumFractionDigits:i.fractionDigits,maximumFractionDigits:i.fractionDigits}:y?{minimumFractionDigits:2,maximumFractionDigits:4}:{};try{return P(d,{style:"currency",currency:f,...D}).format(c)}catch{return`${P(d,{minimumFractionDigits:i?.fractionDigits??2,maximumFractionDigits:i?.fractionDigits??(y?4:2)}).format(c)} ${f}`}}function o(c){if(!Number.isFinite(c)||c<0)return"";const f=["B","Ki","Mi","Gi","Ti"];let i=c,d=0;for(;i>=1024&&d<f.length-1;)i/=1024,d++;return`${P(t(),{maximumSignificantDigits:3,useGrouping:!1}).format(i)}${f[d]}`}function s(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,{value:y,unit:D}=ze(i.getTime()-d.getTime());return J(t(),{numeric:"auto",style:f?.style==="narrow"?"narrow":"long"}).format(y,D)}function u(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=d.getTime()-i.getTime(),p=Math.floor(D/6e4),v=(B,vt)=>P(y,{style:"unit",unit:B,unitDisplay:"narrow"}).format(vt);if(D<=0)return J(y,{numeric:"auto"}).format(0,"second");if(p<1)return v("second",Math.floor(D/1e3));if(p<60)return v("minute",p);const T=Math.floor(p/60);if(T<24)return v("hour",T);const W=Math.floor(T/24);if(W<7)return v("day",W);const I=Math.floor(W/7);return I<5?v("week",I):w(i,{now:d})}function l(c){if(!Number.isFinite(c))return"";const f=t(),i=(I,B)=>P(f,{style:"unit",unit:I,unitDisplay:"narrow"}).format(B),d=Math.max(0,Math.round(c/1e3)),y=d%60,D=Math.floor(d/60);if(D===0)return i("second",y);const p=D%60,v=Math.floor(D/60);if(v===0)return y===0?i("minute",p):`${i("minute",p)} ${i("second",y)}`;const T=v%24,W=Math.floor(v/24);return W===0?p===0?i("hour",T):`${i("hour",T)} ${i("minute",p)}`:T===0?i("day",W):`${i("day",W)} ${i("hour",T)}`}function b(c){if(!Number.isFinite(c))return"";const f=t(),i=(y,D)=>P(f,{style:"unit",unit:y,unitDisplay:"narrow"}).format(D),d=Math.max(0,c);return d<6e4?i("second",Math.round(d/1e3)):d<36e5?i("minute",Math.floor(d/6e4)):d<864e5?i("hour",Math.floor(d/36e5)):i("day",Math.floor(d/864e5))}function h(c,f){const i=O(c);if(!i)return"";const d=f?.seconds?{hour:"2-digit",minute:"2-digit",second:"2-digit"}:{hour:"numeric",minute:"2-digit"};return Y(t(),d).format(i)}function g(c){const f=O(c);return f?Y(t(),{dateStyle:"medium"}).format(f):""}function w(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=i.getFullYear()===d.getFullYear();return Y(t(),{month:"short",day:"numeric",...y?{}:{year:"numeric"}}).format(i)}function S(c){const f=O(c);return f?Y(t(),{dateStyle:"medium",timeStyle:"short"}).format(f):""}function x(c){const f=O(c);return f?Y(t(),{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(f):""}function E(c){const f=O(c);return f?Y(t(),{weekday:"long"}).format(f):""}function Mt(c,f){const i=O(c);if(!i)return"";const d=f?.now??new Date,y=t(),D=J(y,{numeric:"auto"});if(ct(i,d))return ft(D.format(0,"day"),y);const p=new Date(d);if(p.setDate(p.getDate()-1),ct(i,p))return ft(D.format(-1,"day"),y);const v=new Date(d);return v.setDate(v.getDate()-7),i>v&&i<d?E(i):Y(y,{weekday:"long",month:"long",day:"numeric",...i.getFullYear()===d.getFullYear()?{}:{year:"numeric"}}).format(i)}function Dt(c,f){const i=O(c);return i?Ve(i,{addSuffix:f?.addSuffix??!0,locale:ut(t())}):""}function pt(c,f){const i=O(c);return i?Qe(i,f,{locale:ut(t())}):""}return{formatNumber:e,formatInteger:n,formatCompactNumber:r,formatCurrency:a,formatBytesBinary:o,formatRelativeTime:s,formatCompactRelativeTime:u,formatCompactDuration:l,formatSalientDuration:b,formatTime:h,formatDate:g,formatShortDate:w,formatDateTime:S,formatFullDateTime:x,formatWeekday:E,formatDaySeparator:Mt,formatDistanceToNow:Dt,formatDatePattern:pt}}let G=mt;Nt(()=>G);function Ue(){return typeof navigator>"u"?[]:Array.isArray(navigator.languages)&&navigator.languages.length>0?navigator.languages:navigator.language?[navigator.language]:[]}function rn(){return lt}function Ke(t){return Yt(t,Ue(),lt,mt)}function an(t){G=Ke(t),Je(G)}function on(){return G}function sn(t){let e=t;try{const n=new Intl.Locale(t).maximize();n.language==="zh"&&n.script&&(e=`zh-${n.script}`)}catch{}try{const n=new Intl.DisplayNames([t],{type:"language"}).of(e);if(n&&n!==e)return n.charAt(0).toLocaleUpperCase(t)+n.slice(1)}catch{}return t}export{Ft as S,an as a,V as b,_ as c,q as d,le as e,nn as f,_t as g,wt as h,zt as i,ne as j,on as k,rn as l,sn as m,lt as n,fe as o,ke as p,Q as q,Ke as r,en as s,X as t,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as j,bq as d,a_ as B,by as T,bs as W,b as q,bo as z,bu as D}from"./
|
|
1
|
+
import{t as j,bq as d,a_ as B,by as T,bs as W,b as q,bo as z,bu as D}from"./CgPr4hs2.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./B8o4lNgr.js";import{C as U}from"./CYEJX57C.js";import{dj as V}from"./Df2ohObb.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return j({component:Z,...c});L(o,!0);const l=()=>D(b,"$workspace",u),[u,m]=W();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:T,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};B(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(c,p);var x=H(C);return m(),x}export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as G,bq as n,a_ as I,by as P,b as S}from"./
|
|
1
|
+
import{t as G,bq as n,a_ as I,by as P,b as S}from"./CgPr4hs2.js";import{bs as T,a5 as j,bA as q,b_ as E,W as e,bn as N,aA as f,be as l,aC as o}from"./B8o4lNgr.js";import{s}from"./CsstSIr0.js";import{u as d}from"./CFHzcj7N.js";var W=o('<path d="M2 5.5V3.5a1.5 1.5 0 0 1 1.5-1.5h2M10.5 2h2A1.5 1.5 0 0 1 14 3.5v2"></path><path d="M14 10.5v2a1.5 1.5 0 0 1-1.5 1.5h-2M5.5 14h-2A1.5 1.5 0 0 1 2 12.5v-2"></path><circle cx="8" cy="8" r="1.25" fill="currentColor" stroke="none"></circle>',1),F=o('<rect x="1.75" y="2.75" width="12.5" height="10.5" rx="1.75"></rect><path d="M1.75 6h12.5"></path>',1),J=o('<path d="M2 4.5V3a1 1 0 0 1 1-1h1.5M7 2h2M11.5 2H13a1 1 0 0 1 1 1v1.5M14 7v2M14 11.5V13a1 1 0 0 1-1 1h-1.5M9 14H7M4.5 14H3a1 1 0 0 1-1-1v-1.5M2 9V7"></path>'),K=o('<rect x="1.75" y="4" width="8.75" height="8" rx="1.75"></rect><path d="M10.5 7l3.75-2.25v6.5L10.5 9"></path>',1),O=o('<path d="M10.25 2.75l3 3L5.5 13.5 2.25 13.75 2.5 10.5z"></path><path d="M8.75 4.25l3 3"></path>',1),Q=o('<circle cx="8" cy="8" r="5.75"></circle><circle cx="8" cy="8" r="1.75" fill="currentColor" stroke="none"></circle>',1),U=o('<rect x="2.5" y="2.5" width="11" height="11" rx="2"></rect>'),X=o('<path d="M2 11.5c1.5-4 3.25-6.5 4.5-6.5 1.75 0 0 6 1.75 6S11.75 6 14 4.5"></path>'),Y=o('<path d="M3.5 12.5l8.5-8.5M6 3.75h6.25V10"></path>'),Z=o('<rect x="5.5" y="1.75" width="5" height="8" rx="2.5"></rect><path d="M3 7.5a5 5 0 0 0 10 0M8 12.5v2"></path>',1),$=o('<rect x="2" y="2" width="12" height="12" rx="2.5" fill="currentColor" stroke="none"></rect>'),rr=o('<path d="M4.5 3v10l8.5-5z" fill="currentColor"></path>'),ar=o('<path d="M4 4l8 8M12 4l-8 8"></path>'),tr=o('<path d="M3.5 2.5l9 4.25-3.9 1.35L7.25 12z"></path>'),er=o('<path d="M3 8.5l3.25 3.25L13 5"></path>'),or=o('<path d="M9.25 2.5l4.25 4.25-6.25 6.25H4.5L2.5 11z"></path><path d="M5.75 6l4.25 4.25M8 13h5.5"></path>',1),ir=o('<path d="M2.75 4.25h10.5M6.25 4.25V2.75h3.5v1.5M4 4.25l.6 8.1a1 1 0 0 0 1 .9h4.8a1 1 0 0 0 1-.9l.6-8.1M6.75 6.75v4M9.25 6.75v4"></path>'),pr=o('<path d="M13.25 7.5l-5.5 5.5a3.18 3.18 0 0 1-4.5-4.5l5.75-5.75a2.12 2.12 0 0 1 3 3L6.25 11.5a1.06 1.06 0 0 1-1.5-1.5L10 4.75"></path>'),cr=o('<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="butt" stroke-linejoin="round" aria-hidden="true" focusable="false"><!></svg>');function hr(i,p){if(new.target)return G({component:hr,...i});T(p,!0);let t=n(p,"glyph",7),c=n(p,"size",7,16);var v={get glyph(){return t()},set glyph(r){t(r),f()},get size(){return c()},set size(r=16){c(r),f()},$set:P,$on:(r,a)=>S(p,r,a)},h=cr(),g=j(h);{var u=r=>{var a=W();l(2),e(r,a)},_=r=>{var a=F();l(),e(r,a)},M=r=>{var a=J();e(r,a)},m=r=>{var a=K();l(),e(r,a)},x=r=>{var a=O();l(),e(r,a)},y=r=>{var a=Q();l(),e(r,a)},b=r=>{var a=U();e(r,a)},k=r=>{var a=X();e(r,a)},w=r=>{var a=Y();e(r,a)},C=r=>{var a=Z();l(),e(r,a)},z=r=>{var a=$();e(r,a)},D=r=>{var a=rr();e(r,a)},L=r=>{var a=ar();e(r,a)},A=r=>{var a=tr();e(r,a)},V=r=>{var a=er();e(r,a)},H=r=>{var a=or();l(),e(r,a)},R=r=>{var a=ir();e(r,a)},B=r=>{var a=pr();e(r,a)};I(g,r=>{t()==="viewfinder"?r(u):t()==="window"?r(_,1):t()==="region"?r(M,2):t()==="video"?r(m,3):t()==="pencil"?r(x,4):t()==="target"?r(y,5):t()==="box"?r(b,6):t()==="pen"?r(k,7):t()==="arrow"?r(w,8):t()==="mic"?r(C,9):t()==="stop"?r(z,10):t()==="play"?r(D,11):t()==="x"?r(L,12):t()==="cursor"?r(A,13):t()==="check"?r(V,14):t()==="eraser"?r(H,15):t()==="trash"?r(R,16):t()==="paperclip"&&r(B,17)})}return q(h),E(()=>{s(h,"width",c()),s(h,"height",c()),s(h,"data-dock-glyph",t())}),e(i,h),N(v)}function fr(i){const p=Math.max(0,Math.floor(i/1e3)),t=d(Math.floor(p/60),{useGrouping:!1}),c=d(p%60,{minimumIntegerDigits:2,useGrouping:!1});return`${t}:${c}`}function dr(i,p,t,c=!1){const v=i.alerts??{},h=c||!!i.captureDisabled;return{capture:{revision:i.captureRevision,label:p.capture,tooltip:v.capture??i.captureTooltip??(i.captureDisabled?p.captureLimit:p.capture),disabled:h,pending:!!i.capturePending,alert:!!v.capture},record:{label:i.recording?p.stopRecording:p.record,tooltip:v.record??i.recordingTooltip??(i.recording?p.stopRecording:p.record),disabled:c||!!i.recordingDisabled,pending:!!i.recordingPending,alert:!!v.record,recording:i.recording,startedAt:i.recording?t:null}}}export{hr as D,dr as d,fr as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as d,bq as r,by as n,b as h}from"./
|
|
1
|
+
import{t as d,bq as r,by as n,b as h}from"./CgPr4hs2.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./B8o4lNgr.js";import{s as i,k as G,d as M}from"./CsstSIr0.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
|
|
2
2
|
fill: #72716d;
|
|
3
3
|
}
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as o}from"./
|
|
1
|
+
import{p as o}from"./DZyz0CaB.js";import{a as e,ad as s,aE as i,r as g}from"./bAWH0D1a.js";var d={parse:e(async r=>{const a=await o("info",r);s.debug(a)},"parse")},p={version:"11.17.0"},v=e(()=>p.version,"getVersion"),m={getVersion:v},c=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=i(a);g(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},_={parser:d,db:m,renderer:f};export{_ as diagram};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g,bq as h,bo as u,by as C,b as S}from"./
|
|
1
|
+
import{t as g,bq as h,bo as u,by as C,b as S}from"./CgPr4hs2.js";import{bs as T,a5 as _,bl as l,bS as c,bA as m,b_ as A,bO as n,W as j,bn as q,aA as w,aB as B}from"./B8o4lNgr.js";var I=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function L(p,a){if(new.target)return g({component:L,...p});T(a,!0);let e=h(a,"tab",7);var v={get tab(){return e()},set tab(t){e(t),w()},$set:C,$on:(t,r)=>S(a,t,r)},s=I(),o=_(s),b=_(o),d=l(b,!0),i=c(b,2),x=l(i,!0),f=c(i,2),y=l(f,!0);return m(o),m(s),A((t,r)=>{n(d,e().title),n(x,t),n(y,r)},[()=>u.layout_panelContent_typeLabel({type:e().type}),()=>u.layout_settingsTab_notImplemented_label()]),j(p,s),q(v)}export{L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as k,W as Qt,aH as zt,ad as ee,N as me,R as Jt,ax as Zt,aV as nt,aG as $t,aF as e1,aI as t1,L as s1,K as i1,O as r1,p as a1,ac as n1,J as u1,a7 as o1,P as rt,as as l1,k as c1,x as h1,aC as d1,i as p1}from"./
|
|
1
|
+
import{a as k,W as Qt,aH as zt,ad as ee,N as me,R as Jt,ax as Zt,aV as nt,aG as $t,aF as e1,aI as t1,L as s1,K as i1,O as r1,p as a1,ac as n1,J as u1,a7 as o1,P as rt,as as l1,k as c1,x as h1,aC as d1,i as p1}from"./bAWH0D1a.js";import{g as f1}from"./yW5sglFu.js";import{g as g1}from"./B4ARXgVr.js";import{s as b1}from"./Kr-Hl0sp.js";import{c as A1}from"./DqNPF1Kv.js";import{g as j,c3 as at}from"./LhLTjc8B.js";var k1="flowchart-",Te,m1=(Te=class{constructor(){this.vertexCounter=0,this.config=me(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=$t,this.setAccDescription=e1,this.setDiagramTitle=t1,this.getAccTitle=s1,this.getAccDescription=i1,this.getDiagramTitle=r1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return a1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,c,g,l={},m){if(!i||i.trim().length===0)return;let p;if(m!==void 0){let u;m.includes(`
|
|
2
2
|
`)?u=m+`
|
|
3
3
|
`:u=`{
|
|
4
4
|
`+m+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Y as f,GB as p,pU as k}from"./
|
|
1
|
+
import{Y as f,GB as p,pU as k}from"./BL_sVoge.js";import{cd as m}from"./B8o4lNgr.js";const h=["agent:started","agent:completed","agent:failed","agent:idle","agent:status-changed","task:created","task:status-changed","workspace:displayStatus-changed","workspace:attention-changed","pr:linked","pr:updated","pr:unlinked","git:commit","git:pull"],N="agent:delegated";function n(t){return typeof t=="string"&&t.length>0?t:void 0}function S(t,e){if(t==="agent:failed")return"err";if(t==="agent:status-changed"){const r=n(e.status)??"";return r==="error"||r==="failed"?"err":r==="completed"?"ok":p(r)==="running"?"info":"idle"}if(t==="agent:idle")return"idle";if(t==="agent:completed")return"ok";if(t==="task:created")return"info";if(t==="task:status-changed")return n(e.newStatus)==="complete"?"ok":"info";if(t==="workspace:displayStatus-changed"){const r=n(e.displayStatus);return r==="pr_merged"||r==="complete"?"ok":r==="pr_ready"||r==="pr_queued"||r==="pr_open"?"accent":r==="needs_attention"?"warn":r==="idle"||r==="not_started"?"idle":"info"}return t==="workspace:attention-changed"?k(n(e.attention)??"")?"warn":"info":t.startsWith("pr:")?"accent":"info"}function T(t,e){switch(t){case"agent:started":case"agent:completed":case"agent:idle":return"";case"agent:failed":return n(e.error)??"";case"agent:status-changed":return"";case"task:created":return n(e.noteTitle)??n(e.noteId)??"";case"task:status-changed":return[n(e.noteTitle)??n(e.noteId),n(e.newStatus)].filter(Boolean).join(" → ");case"workspace:displayStatus-changed":return"";case"workspace:attention-changed":return n(e.attention)??"";case"pr:linked":case"pr:updated":return[typeof e.prNumber=="number"?`#${e.prNumber}`:void 0,n(e.prStatus)].filter(Boolean).join(" ");case"pr:unlinked":return"";case"git:commit":return n(e.message)??n(e.commit)??"";case"git:pull":return n(e.branch)??"";default:return""}}const w=new Set(["idle","inactive"]);function E(t,e){if(t!=="agent:status-changed")return!1;const r=(n(e.status)??"").toLowerCase();return w.has(r)}function _(t,e){return t==="workspace:attention-changed"&&n(e.attention)===f}function y(t){const e=typeof t.type=="string"?t.type:"";if(!h.includes(e))return null;const r=n(t.id),u=n(t.timestamp),c=n(t.workspaceId);if(!r||!u||!c)return null;const a=t.data&&typeof t.data=="object"?t.data:{};if(E(e,a)||_(e,a))return null;const s={id:r,ts:u,colorClass:S(e,a),source:c,kind:e,text:T(e,a)};if(e.startsWith("agent:")){const i=n(a.agentId),d=n(a.agentName);if(i&&(s.agentId=i),d&&(s.agentName=d),e==="agent:status-changed"){const l=n(a.status);l&&(s.agentStatus=l)}}if(e==="workspace:displayStatus-changed"){const i=n(a.displayStatus);i&&(s.displayStatus=i)}return s}const o=new Set;function D(t){return o.add(t),()=>o.delete(t)}function A(t){for(const e of o)e(t)}const g=m(null),U={subscribe:g.subscribe};function B(t){g.set(t)}export{N as H,h as a,A as e,y as m,D as o,B as s,U as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as t}from"./
|
|
1
|
+
import{n as t}from"./Bo4f3vLH.js";import"./B8o4lNgr.js";import{bo as n}from"./CgPr4hs2.js";import"./CsstSIr0.js";import"./D3ROSEe0.js";import"./Ps9iRbKd.js";import"./ChTqQfQN.js";import"./D32qvOGn.js";import"./BL_sVoge.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t,s as r}from"./
|
|
1
|
+
import{c as t,s as r}from"./D7RRnWwO.js";import{a}from"./bAWH0D1a.js";import"./LhLTjc8B.js";import"./DqNPF1Kv.js";var s=a(e=>`${r(e)}
|
|
2
2
|
.swimlane.cluster rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./BpOXeNkx.js";import{f as l}from"./LhLTjc8B.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as de,aF as fe,O as he,aI as me,L as ke,aG as ye,a as l,N as mt,r as ge,ad as lt,p as pe,k as ve,aA as ee,aB as Te,aV as xe}from"./D2zf67XA.js";import{c3 as bt,g as Y,h as ut,_ as Ct}from"./BejAw64w.js";import{t as be,d as we,m as _e,i as De,a as Se,f as Bt,l as qt,o as Ce,n as Me,g as Ee,p as Ie,r as Ye,q as $e,k as Le,e as Gt,h as Xt,j as Ut,s as Zt,c as Qt,b as Ae}from"./DFhTl2LJ.js";import{l as Fe}from"./T4V8F4hM.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(F){return F.add(4-F.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var A=b.startOf;b.startOf=function(F,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(F)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):A.bind(this)(F,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,A={},F=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=A[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=A.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=A.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=F(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=A&&A.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(r,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var r=L[v];if(typeof r=="string")y+=r.length;else{var d=r.regex,f=r.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(n){var S=n.afternoon;if(S!==void 0){var o=n.hours;S?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(F=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),A=this.$locale(),!m&&y&&(A=W.Ls[y]),this.$d=(function(u,_,n,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,nt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var K,Z=M||0,ct=R||0,tt=E||0,rt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt+60*P.offset*1e3)):n?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt)):(K=new Date(ot,G,ft,Z,ct,tt,rt),nt&&(K=S(K).week(nt).toDate()),K)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),A={}}else if(I instanceof Array)for(var r=I.length,d=1;d<=r;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===r&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,A=this.$locale();if(!this.isValid())return g.bind(this)(p);var F=this.$utils(),w=(p||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return A.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return A.ordinal(b.week(),"W");case"w":case"ww":return F.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return F.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return F.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,A=31536e6,F=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:A,months:F,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(r){T.$d[N(r)]=h[r]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(r){return r!=null?Number(r):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/A),h%=A,this.$d.months=D(h/F),h%=F,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var d=L(r,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),J=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,r,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=r);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],A=[1,32],F=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(Y(function(r,d,f,u,_,n,S){var o=n.length-1;switch(_){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(r,d){if(d.recoverable)this.trace(r);else{var f=new Error(r);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(r){var d=this,f=[0],u=[],_=[null],n=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=n.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(r,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var nt=E.yylloc;n.push(nt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,n.length=n.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,K,Z,ct,tt={},rt,et,Ht,xt;;){if(K=f[f.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=ot()),Z=S[K]&&S[K][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(rt in S[K])this.terminals_[rt]&&rt>C&&xt.push("'"+this.terminals_[rt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
|
|
1
|
+
import{K as de,aF as fe,O as he,aI as me,L as ke,aG as ye,a as l,N as mt,r as ge,ad as lt,p as pe,k as ve,aA as ee,aB as Te,aV as xe}from"./bAWH0D1a.js";import{c3 as bt,g as Y,h as ut,_ as Ct}from"./LhLTjc8B.js";import{t as be,d as we,m as _e,i as De,a as Se,f as Bt,l as qt,o as Ce,n as Me,g as Ee,p as Ie,r as Ye,q as $e,k as Le,e as Gt,h as Xt,j as Ut,s as Zt,c as Qt,b as Ae}from"./dpToMVNV.js";import{l as Fe}from"./ChRkiYOJ.js";var Oe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/isoWeek.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_isoWeek=e()})(t,(function(){var i="day";return function(e,a,g){var p=Y(function(F){return F.add(4-F.isoWeekday(),i)},"a"),b=a.prototype;b.isoWeekYear=function(){return p(this).year()},b.isoWeek=function(F){if(!this.$utils().u(F))return this.add(7*(F-this.isoWeek()),i);var w,V,O,z,U=p(this),N=(w=this.isoWeekYear(),V=this.$u,O=(V?g.utc:g)().year(w).startOf("year"),z=4-O.isoWeekday(),O.isoWeekday()>4&&(z+=7),O.add(z,i));return U.diff(N,"week")+1},b.isoWeekday=function(F){return this.$utils().u(F)?this.day()||7:this.day(this.day()%7?F:F-7)};var A=b.startOf;b.startOf=function(F,w){var V=this.$utils(),O=!!V.u(w)||w;return V.p(F)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):A.bind(this)(F,w)}}}))}}),We=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/customParseFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_customParseFormat=e()})(t,(function(){var i={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,g=/\d\d/,p=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,A={},F=Y(function(k){return(k=+k)+(k>68?1900:2e3)},"a"),w=Y(function(k){return function(D){this[k]=+D}},"f"),V=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(D){if(!D||D==="Z")return 0;var W=D.match(/([+-]|\d\d)/g),L=60*W[1]+(+W[2]||0);return L===0?0:W[0]==="+"?-L:L})(k)}],O=Y(function(k){var D=A[k];return D&&(D.indexOf?D:D.s.concat(D.f))},"u"),z=Y(function(k,D){var W,L=A.meridiem;if(L){for(var q=1;q<=24;q+=1)if(k.indexOf(L(q,0,D))>-1){W=q>12;break}}else W=k===(D?"pm":"PM");return W},"d"),U={A:[b,function(k){this.afternoon=z(k,!1)}],a:[b,function(k){this.afternoon=z(k,!0)}],Q:[a,function(k){this.month=3*(k-1)+1}],S:[a,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[p,w("seconds")],ss:[p,w("seconds")],m:[p,w("minutes")],mm:[p,w("minutes")],H:[p,w("hours")],h:[p,w("hours")],HH:[p,w("hours")],hh:[p,w("hours")],D:[p,w("day")],DD:[g,w("day")],Do:[b,function(k){var D=A.ordinal,W=k.match(/\d+/);if(this.day=W[0],D)for(var L=1;L<=31;L+=1)D(L).replace(/\[|\]/g,"")===k&&(this.day=L)}],w:[p,w("week")],ww:[g,w("week")],M:[p,w("month")],MM:[g,w("month")],MMM:[b,function(k){var D=O("months"),W=(O("monthsShort")||D.map((function(L){return L.slice(0,3)}))).indexOf(k)+1;if(W<1)throw new Error;this.month=W%12||W}],MMMM:[b,function(k){var D=O("months").indexOf(k)+1;if(D<1)throw new Error;this.month=D%12||D}],Y:[/[+-]?\d+/,w("year")],YY:[g,function(k){this.year=F(k)}],YYYY:[/\d{4}/,w("year")],Z:V,ZZ:V};function N(k){var D,W;D=k,W=A&&A.formats;for(var L=(k=D.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(m,T,v){var y=v&&v.toUpperCase();return T||W[v]||i[v]||W[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(r,d,f){return d||f.slice(1)}))}))).match(e),q=L.length,B=0;B<q;B+=1){var $=L[B],x=U[$],h=x&&x[0],I=x&&x[1];L[B]=I?{regex:h,parser:I}:$.replace(/^\[|\]$/g,"")}return function(m){for(var T={},v=0,y=0;v<q;v+=1){var r=L[v];if(typeof r=="string")y+=r.length;else{var d=r.regex,f=r.parser,u=m.slice(y),_=d.exec(u)[0];f.call(T,_),m=m.replace(_,"")}}return(function(n){var S=n.afternoon;if(S!==void 0){var o=n.hours;S?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return Y(N,"l"),function(k,D,W){W.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(F=k.parseTwoDigitYear);var L=D.prototype,q=L.parse;L.parse=function(B){var $=B.date,x=B.utc,h=B.args;this.$u=x;var I=h[1];if(typeof I=="string"){var m=h[2]===!0,T=h[3]===!0,v=m||T,y=h[2];T&&(y=h[2]),A=this.$locale(),!m&&y&&(A=W.Ls[y]),this.$d=(function(u,_,n,S){try{if(["x","X"].indexOf(_)>-1)return new Date((_==="X"?1e3:1)*u);var o=N(_)(u),H=o.year,c=o.month,C=o.day,M=o.hours,R=o.minutes,E=o.seconds,j=o.milliseconds,P=o.zone,nt=o.week,at=new Date,ft=C||(H||c?1:at.getDate()),ot=H||at.getFullYear(),G=0;H&&!c||(G=c>0?c-1:at.getMonth());var K,Z=M||0,ct=R||0,tt=E||0,rt=j||0;return P?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt+60*P.offset*1e3)):n?new Date(Date.UTC(ot,G,ft,Z,ct,tt,rt)):(K=new Date(ot,G,ft,Z,ct,tt,rt),nt&&(K=S(K).week(nt).toDate()),K)}catch{return new Date("")}})($,I,x,W),this.init(),y&&y!==!0&&(this.$L=this.locale(y).$L),v&&$!=this.format(I)&&(this.$d=new Date("")),A={}}else if(I instanceof Array)for(var r=I.length,d=1;d<=r;d+=1){h[1]=I[d-1];var f=W.apply(this,h);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}d===r&&(this.$d=new Date(""))}else q.call(this,B)}}}))}}),Pe=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/advancedFormat.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_advancedFormat=e()})(t,(function(){return function(i,e){var a=e.prototype,g=a.format;a.format=function(p){var b=this,A=this.$locale();if(!this.isValid())return g.bind(this)(p);var F=this.$utils(),w=(p||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(V){switch(V){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return A.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return A.ordinal(b.week(),"W");case"w":case"ww":return F.s(b.week(),V==="w"?1:2,"0");case"W":case"WW":return F.s(b.isoWeek(),V==="W"?1:2,"0");case"k":case"kk":return F.s(String(b.$H===0?24:b.$H),V==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return V}}));return g.bind(this)(w)}}}))}}),Ve=Ct({"../../node_modules/.pnpm/dayjs@1.11.21/node_modules/dayjs/plugin/duration.js"(t,s){(function(i,e){typeof t=="object"&&typeof s<"u"?s.exports=e():typeof define=="function"&&define.amd?define(e):(i=typeof globalThis<"u"?globalThis:i||self).dayjs_plugin_duration=e()})(t,(function(){var i,e,a=1e3,g=6e4,p=36e5,b=864e5,A=31536e6,F=2628e6,w=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,V=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:A,months:F,days:b,hours:p,minutes:g,seconds:a,milliseconds:1,weeks:6048e5},z=Y(function($){return $ instanceof q},"c"),U=Y(function($,x,h){return new q($,h,x.$l)},"f"),N=Y(function($){return e.p($)+"s"},"m"),k=Y(function($){return $<0},"l"),D=Y(function($){return k($)?Math.ceil($):Math.floor($)},"$"),W=Y(function($){return Math.abs($)},"y"),L=Y(function($,x){return $?k($)?{negative:!0,format:""+W($)+x}:{negative:!1,format:""+$+x}:{negative:!1,format:""}},"v"),q=(function(){function $(h,I,m){var T=this;if(this.$d={},this.$l=m,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),I)return U(h*O[N(I)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(r){T.$d[N(r)]=h[r]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(w);if(v){var y=v.slice(2).map((function(r){return r!=null?Number(r):0}));return this.$d.years=y[0],this.$d.months=y[1],this.$d.weeks=y[2],this.$d.days=y[3],this.$d.hours=y[4],this.$d.minutes=y[5],this.$d.seconds=y[6],this.calMilliseconds(),this}}return this}Y($,"l");var x=$.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(I,m){return I+(h.$d[m]||0)*O[m]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=D(h/A),h%=A,this.$d.months=D(h/F),h%=F,this.$d.days=D(h/b),h%=b,this.$d.hours=D(h/p),h%=p,this.$d.minutes=D(h/g),h%=g,this.$d.seconds=D(h/a),h%=a,this.$d.milliseconds=h},x.toISOString=function(){var h=L(this.$d.years,"Y"),I=L(this.$d.months,"M"),m=+this.$d.days||0;this.$d.weeks&&(m+=7*this.$d.weeks);var T=L(m,"D"),v=L(this.$d.hours,"H"),y=L(this.$d.minutes,"M"),r=this.$d.seconds||0;this.$d.milliseconds&&(r+=this.$d.milliseconds/1e3,r=Math.round(1e3*r)/1e3);var d=L(r,"S"),f=h.negative||I.negative||T.negative||v.negative||y.negative||d.negative,u=v.format||y.format||d.format?"T":"",_=(f?"-":"")+"P"+h.format+I.format+T.format+u+v.format+y.format+d.format;return _==="P"||_==="-P"?"P0D":_},x.toJSON=function(){return this.toISOString()},x.format=function(h){var I=h||"YYYY-MM-DDTHH:mm:ss",m={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return I.replace(V,(function(T,v){return v||String(m[T])}))},x.as=function(h){return this.$ms/O[N(h)]},x.get=function(h){var I=this.$ms,m=N(h);return m==="milliseconds"?I%=1e3:I=m==="weeks"?D(I/O[m]):this.$d[m],I||0},x.add=function(h,I,m){var T;return T=I?h*O[N(I)]:z(h)?h.$ms:U(h,this).$ms,U(this.$ms+T*(m?-1:1),this)},x.subtract=function(h,I){return this.add(h,I,!0)},x.locale=function(h){var I=this.clone();return I.$l=h,I},x.clone=function(){return U(this.$ms,this)},x.humanize=function(h){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},$})(),B=Y(function($,x,h){return $.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")},"p");return function($,x,h){i=h,e=h().$utils(),h.duration=function(T,v){var y=h.locale();return U(T,{$l:y},v)},h.isDuration=z;var I=x.prototype.add,m=x.prototype.subtract;x.prototype.add=function(T,v){return z(T)?B(this,T,1):I.bind(this)(T,v)},x.prototype.subtract=function(T,v){return z(T)?B(this,T,-1):m.bind(this)(T,v)}}}))}}),Re=ut(Te()),J=ut(ee()),ze=ut(Oe()),Ne=ut(We()),je=ut(Pe()),vt=ut(ee()),He=ut(Ve()),Yt=(function(){var t=l(function(y,r,d,f){for(d=d||{},f=y.length;f--;d[y[f]]=r);return d},"o"),s=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],e=[1,27],a=[1,28],g=[1,29],p=[1,30],b=[1,31],A=[1,32],F=[1,33],w=[1,34],V=[1,9],O=[1,10],z=[1,11],U=[1,12],N=[1,13],k=[1,14],D=[1,15],W=[1,16],L=[1,19],q=[1,20],B=[1,21],$=[1,22],x=[1,23],h=[1,25],I=[1,35],m={trace:l(Y(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(Y(function(r,d,f,u,_,n,S){var o=n.length-1;switch(_){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(s,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,7],{1:[2,1]}),t(s,[2,3]),{9:36,11:17,12:i,13:e,14:a,15:g,16:p,17:b,18:A,19:18,20:F,21:w,22:V,23:O,24:z,25:U,26:N,27:k,28:D,29:W,30:L,31:q,33:B,35:$,36:x,37:24,38:h,40:I},t(s,[2,5]),t(s,[2,6]),t(s,[2,17]),t(s,[2,18]),t(s,[2,19]),t(s,[2,20]),t(s,[2,21]),t(s,[2,22]),t(s,[2,23]),t(s,[2,24]),t(s,[2,25]),t(s,[2,26]),t(s,[2,27]),{32:[1,37]},{34:[1,38]},t(s,[2,30]),t(s,[2,31]),t(s,[2,32]),{39:[1,39]},t(s,[2,8]),t(s,[2,9]),t(s,[2,10]),t(s,[2,11]),t(s,[2,12]),t(s,[2,13]),t(s,[2,14]),t(s,[2,15]),t(s,[2,16]),{41:[1,40],43:[1,41]},t(s,[2,4]),t(s,[2,28]),t(s,[2,29]),t(s,[2,33]),t(s,[2,34],{42:[1,42],43:[1,43]}),t(s,[2,40],{41:[1,44]}),t(s,[2,35],{43:[1,45]}),t(s,[2,36]),t(s,[2,38],{42:[1,46]}),t(s,[2,37]),t(s,[2,39])],defaultActions:{},parseError:l(Y(function(r,d){if(d.recoverable)this.trace(r);else{var f=new Error(r);throw f.hash=d,f}},"parseError"),"parseError"),parse:l(Y(function(r){var d=this,f=[0],u=[],_=[null],n=[],S=this.table,o="",H=0,c=0,C=2,M=1,R=n.slice.call(arguments,1),E=Object.create(this.lexer),j={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(j.yy[P]=this.yy[P]);E.setInput(r,j.yy),j.yy.lexer=E,j.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var nt=E.yylloc;n.push(nt);var at=E.options&&E.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(Q){f.length=f.length-2*Q,_.length=_.length-Q,n.length=n.length-Q}Y(ft,"popStack"),l(ft,"popStack");function ot(){var Q;return Q=u.pop()||E.lex()||M,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}Y(ot,"lex"),l(ot,"lex");for(var G,K,Z,ct,tt={},rt,et,Ht,xt;;){if(K=f[f.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((G===null||typeof G>"u")&&(G=ot()),Z=S[K]&&S[K][G]),typeof Z>"u"||!Z.length||!Z[0]){var Et="";xt=[];for(rt in S[K])this.terminals_[rt]&&rt>C&&xt.push("'"+this.terminals_[rt]+"'");E.showPosition?Et="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+E.showPosition()+`
|
|
3
3
|
Expecting `+xt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Et="Parse error on line "+(H+1)+": Unexpected "+(G==M?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Et,{text:E.match,token:this.terminals_[G]||G,line:E.yylineno,loc:nt,expected:xt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+G);switch(Z[0]){case 1:f.push(G),_.push(E.yytext),n.push(E.yylloc),f.push(Z[1]),G=null,c=E.yyleng,o=E.yytext,H=E.yylineno,nt=E.yylloc;break;case 2:if(et=this.productions_[Z[1]][1],tt.$=_[_.length-et],tt._$={first_line:n[n.length-(et||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(et||1)].first_column,last_column:n[n.length-1].last_column},at&&(tt._$.range=[n[n.length-(et||1)].range[0],n[n.length-1].range[1]]),ct=this.performAction.apply(tt,[o,c,H,j.yy,Z[1],_,n].concat(R)),typeof ct<"u")return ct;et&&(f=f.slice(0,-1*et*2),_=_.slice(0,-1*et),n=n.slice(0,-1*et)),f.push(this.productions_[Z[1]][0]),_.push(tt.$),n.push(tt._$),Ht=S[f[f.length-2]][f[f.length-1]],f.push(Ht);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var y={EOF:1,parseError:l(Y(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),"parseError"),setInput:l(function(r,d){return this.yy=d||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var d=r.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:l(function(r){var d=r.length,f=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===u.length?this.yylloc.first_column:0)+u[u.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(r){this.unput(this.match.slice(r))},"less"),pastInput:l(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var r=this.pastInput(),d=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{l as k}from"./
|
|
1
|
+
import{l as k}from"./BffyNBKQ.js";import{a as m,aP as x,N as O,G as A,ad as p,b as Y,t as J,n as w,u as T,aU as _,aJ as H,B as D,a2 as z,T as F,a1 as X,ar as R,$ as q,a0 as U,aq as W}from"./bAWH0D1a.js";var C=m((t,e,r)=>Math.max(e,Math.min(r,t)),"clamp"),P=m((t="TB")=>{switch(t){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),j=m(t=>t==="flowchart"||t==="flowchart-v2"||t==="stateDiagram"||t==="er"||t==="classDiagram","shouldMergeSelfLoopSegments"),$=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],K=m((t,e,r,d,a)=>{const f=[],u=new Set;if(r.forEach(({start:i,end:o})=>{i!==d&&u.add(i),o!==d&&u.add(o)}),u.forEach(i=>{const o=t.node(i);typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)}),f.length===0&&r.forEach(({edge:i})=>{(i.points??[]).forEach(o=>{typeof o?.x=="number"&&typeof o?.y=="number"&&f.push(o)})}),f.length===0)return P(a);const c=f.reduce((i,o)=>({x:i.x+o.x/f.length,y:i.y+o.y/f.length}),{x:0,y:0}),l=c.x-e.x,s=c.y-e.y;return Math.abs(l)>Math.abs(s)?l>0?"right":"left":Math.abs(s)>0?s>0?"bottom":"top":P(a)},"getSelfLoopSide"),Q=m((t,e="top",r=0,d=0)=>{const a=t.x,f=t.y-r,u=t.width/2,c=t.height/2,l=Math.max(36,Math.min(100,t.width*.8)),s=C(Math.max(d,t.width*.35),36,l),i=C(Math.min(t.width,t.height)*.45,24,48);switch(e){case"bottom":{const o=f+c;return[{x:a-s/2,y:o},{x:a-s/2,y:o+i},{x:a+s/2,y:o+i},{x:a+s/2,y:o}]}case"right":{const o=a+u;return[{x:o,y:f-s/2},{x:o+i,y:f-s/2},{x:o+i,y:f+s/2},{x:o,y:f+s/2}]}case"left":{const o=a-u;return[{x:o,y:f-s/2},{x:o-i,y:f-s/2},{x:o-i,y:f+s/2},{x:o,y:f+s/2}]}case"top":default:{const o=f-c;return[{x:a-s/2,y:o},{x:a-s/2,y:o-i},{x:a+s/2,y:o-i},{x:a+s/2,y:o}]}}},"getSelfLoopPoints"),V=m((t,e,r="top",d=0,a={})=>{const u=t.x,c=t.y-d,l=a.width??0,s=a.height??0;switch(r){case"bottom":return{x:u,y:Math.max(...e.map(i=>i.y))+s/2+4};case"right":return{x:Math.max(...e.map(i=>i.x))+l/2+4,y:c};case"left":return{x:Math.min(...e.map(i=>i.x))-l/2-4,y:c};case"top":default:return{x:u,y:Math.min(...e.map(i=>i.y))-s/2-4}}},"getSelfLoopLabelPosition"),B=m((t,e=0,{mergeSelfLoops:r=!0}={})=>{const d=new Map,a=[],f=t.graph()?.rankdir;return t.edges().forEach(u=>{const c=t.edge(u);if(r&&c.selfLoop){const l=c.selfLoop.id;d.has(l)||d.set(l,[]),d.get(l).push({edge:c,start:u.v,end:u.w})}else a.push({edge:c,start:u.v,end:u.w})}),d.forEach(u=>{if(u.length!==3){u.forEach(h=>a.push(h));return}u.sort((h,b)=>h.edge.selfLoop.order-b.edge.selfLoop.order);const[c,l,s]=u,i=c.edge.originalEdge??l.edge.originalEdge??s.edge.originalEdge??l.edge,o=t.node(i.start);if(!o){u.forEach(h=>a.push(h));return}const n={width:l.edge.width,height:l.edge.height},L=K(t,o,u,i.start,f),E=Q(o,L,e,n.width??0),y=V(o,E,L,e,n),g={...l.edge,...i,id:i.id,points:E,start:i.start,end:i.end,x:y.x,y:y.y,width:n.width,height:n.height,labelStyle:l.edge.labelStyle,fromCluster:c.edge.fromCluster??l.edge.fromCluster??s.edge.fromCluster,toCluster:c.edge.toCluster??l.edge.toCluster??s.edge.toCluster};delete g.selfLoop,delete g.originalEdge,a.push({edge:g,start:g.start,end:g.end})}),a},"getEdgesToRender"),I=m(async({element:t,graph:e,diagramType:r,id:d,parentCluster:a,siteConfig:f})=>{const u=e.graph().rankdir;p.trace("Dir in recursive render - dir:",u);const{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o}=T(t,{edgePathsClass:"edgePaths"});e.nodes()?p.info("Recursive render XXX",e.nodes()):p.info("No nodes found for",e),e.edges().length>0&&p.info("Recursive edges",e.edge(e.edges()[0]));const n=j(r);await Promise.all(e.nodes().map(async function(y){const g=e.node(y);if(a!==void 0){const h=JSON.parse(JSON.stringify(a.clusterData));p.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,y,`
|
|
3
3
|
data=`,h.height,`
|
|
4
4
|
Parent cluster`,a.height),e.setNode(a.id,h),e.parent(y)||(p.trace("Setting parent",y,a.id),e.setParent(y,a.id,h))}if(p.info("(Insert) Node XXX"+y+": "+JSON.stringify(e.node(y))),g?.clusterNode){p.info("Cluster identified XBX",y,g.width,e.node(y));const{ranksep:h,nodesep:b}=e.graph();g.graph.setGraph({...g.graph.graph(),ranksep:h+25,nodesep:b});const S=await oe({element:i,graph:g.graph,diagramType:r,id:d,parentCluster:e.node(y),siteConfig:f}),N=S.elem;_(g,N),g.diff=S.diff||0,p.info("New compound node after recursive render XAX",y,"width",g.width,"height",g.height),H(N,g)}else e.children(y).length>0?(p.trace("Cluster - the non recursive path XBX",y,g.id,g,g.width,"Graph:",e),p.trace(D(g.id,e)),w.set(g.id,{id:D(g.id,e),node:g})):(p.trace("Node - the non recursive path XAX",y,i,e.node(y),u),await z(i,e.node(y),{config:f,dir:u}))})),await m(async()=>{const y=e.edges().map(async function(g){const h=e.edge(g.v,g.w,g.name);if(p.info("Edge "+g.v+" -> "+g.w+": "+JSON.stringify(g)),p.info("Edge "+g.v+" -> "+g.w+": ",g," ",JSON.stringify(e.edge(g))),p.info("Fix",w,"ids:",g.v,g.w,"Translating: ",w.get(g.v),w.get(g.w)),n&&h.selfLoop){if(h.selfLoop.order!==1)return;const b={...h.originalEdge,...h,id:h.selfLoop.id,startLabelLeft:h.originalEdge?.startLabelLeft??h.startLabelLeft,startLabelRight:h.originalEdge?.startLabelRight??h.startLabelRight,endLabelLeft:h.originalEdge?.endLabelLeft??h.endLabelLeft,endLabelRight:h.originalEdge?.endLabelRight??h.endLabelRight};await X(s,b),h.width=b.width,h.height=b.height,h.labelStyle=b.labelStyle;return}await X(s,h)});await Promise.all(y)},"processEdges")();const{subGraphTitleTotalMargin:E}=F(f);return{elem:o,graph:e,groups:{clusters:c,edgePaths:l,edgeLabels:s,nodes:i,rootGroups:o},diagramType:r,id:d,mergeSelfLoops:n,subGraphTitleTotalMargin:E}},"measureDagreGraph"),M=m(t=>{p.info("############################################# XXX"),p.info("### Layout ### XXX"),p.info("############################################# XXX"),k(t)},"runDagreGraphLayout"),Z=m((t,e,r)=>{const d=t.node(e);if(!d)return;const a={...d};return d?.clusterNode?a.y=(d.y??0)+r:t.children(e).length>0?a.height=(d.height??0)+r:a.y=(d.y??0)+r/2,a},"normalizeDagreNode"),v=m((t,e)=>{$.forEach(r=>{e[r]!==void 0&&(t[r]=e[r])})},"applyDagreNodeLayout"),ee=m((t,e,r,d)=>({...t,start:t.start??e,end:t.end??r,points:(t.points??[]).map(a=>({...a,y:typeof a.y=="number"?a.y+d:a.y}))}),"normalizeDagreEdge"),te=m((t,e)=>{const{graph:r,mergeSelfLoops:d,subGraphTitleTotalMargin:a=0}=e,f=new Map(t.nodes.map(c=>[c.id,c]));x(r).forEach(c=>{const l=Z(r,c,a);if(!l)return;v(r.node(c),l);const s=f.get(c);s&&v(s,l)});const u=a/2;return t.edges=B(r,u,{mergeSelfLoops:d}).map(({edge:c,start:l,end:s})=>ee(c,l,s,u)),t},"applyDagreLayoutResult"),re=m(async({elem:t,graph:e,groups:{clusters:r,edgePaths:d},diagramType:a,id:f,mergeSelfLoops:u,subGraphTitleTotalMargin:c})=>{let l=0;await Promise.all(x(e).map(async function(o){const n=e.node(o);if(p.info("Position XBX => "+o+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n?.clusterNode)n.y+=c,p.info("A tainted cluster node XBX1",o,n.id,n.width,n.height,n.x,n.y,e.parent(o)),w.get(n.id).node=n,R(n);else if(e.children(o).length>0){p.info("A pure cluster node XBX1",o,n.id,n.x,n.y,n.width,n.height,e.parent(o)),n.height+=c,e.node(n.parentId);const L=n?.padding/2||0,E=n?.labelBBox?.height||0,y=E-L||0;p.debug("OffsetY",y,"labelHeight",E,"halfPadding",L),await q(r,n),w.get(n.id).node=n}else{const L=e.node(n.parentId);n.y+=c/2,p.info("A regular node XBX1 - using the padding",n.id,"parent",n.parentId,n.width,n.height,n.x,n.y,"offsetY",n.offsetY,"parent",L,L?.offsetY,n),R(n)}}));const s=c/2;return B(e,s,{mergeSelfLoops:u}).forEach(function({edge:o,start:n,end:L}){p.info("Edge "+n+" -> "+L+": "+JSON.stringify(o),o),o.points.forEach(h=>h.y+=s);const E=e.node(n),y=e.node(L),g=U(d,o,w,a,E,y,f);W(o,g)}),e.nodes().forEach(function(o){const n=e.node(o);p.info(o,n.type,n.diff),n.isGroup&&(l=n.diff)}),p.warn("Returning from recursive render XAX",t,l),{elem:t,diff:l}},"paintDagreLayoutCore"),oe=m(async t=>{const e=await I(t);return M(e.graph),await re(e)},"renderDagreSubgraph"),G=m(t=>{const e=new A({multigraph:!0,compound:!0}).setGraph({rankdir:t.direction,nodesep:t.config?.nodeSpacing||t.nodeSpacing||t.config?.flowchart?.nodeSpacing,ranksep:t.config?.rankSpacing||t.rankSpacing||t.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return t.nodes.forEach(r=>{e.setNode(r.id,{...r}),r.parentId&&e.setParent(r.id,r.parentId)}),p.debug("Edges:",t.edges),t.edges.forEach(r=>{if(r.start===r.end){const d=r.start,a=d+"---"+d+"---1",f=d+"---"+d+"---2",u=e.node(d);e.setNode(a,{domId:a,id:a,parentId:u.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),e.setParent(a,u.parentId),e.setNode(f,{domId:f,id:f,parentId:u.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),e.setParent(f,u.parentId);const c=structuredClone(r),l=structuredClone(r),s=structuredClone(r),i=structuredClone(r);l.originalEdge=c,l.selfLoop={id:c.id,order:0},s.originalEdge=c,s.selfLoop={id:c.id,order:1},i.originalEdge=c,i.selfLoop={id:c.id,order:2},l.label="",l.arrowTypeEnd="none",l.endLabelLeft="",l.endLabelRight="",l.startLabelLeft="",l.id=d+"-cyclic-special-1",s.startLabelRight="",s.startLabelLeft="",s.endLabelLeft="",s.endLabelRight="",s.arrowTypeStart="none",s.arrowTypeEnd="none",s.id=d+"-cyclic-special-mid",i.label="",i.startLabelRight="",i.startLabelLeft="",i.arrowTypeStart="none",u.isGroup&&(l.fromCluster=d,i.toCluster=d),i.id=d+"-cyclic-special-2",i.arrowTypeStart="none",e.setEdge(d,a,l,d+"-cyclic-special-0"),e.setEdge(a,f,s,d+"-cyclic-special-1"),e.setEdge(f,d,i,d+"-cyclic-special-2")}else e.setEdge(r.start,r.end,{...r},r.id)}),Y(e),{graph:e}},"prepareLayoutForDagre"),ae=m(async(t,{element:e,preparedLayout:r})=>{const d=r??G(t),a=O(),f=await I({element:e,graph:d.graph,diagramType:t.type,id:t.diagramId,parentCluster:void 0,siteConfig:a});return d.measuredLayout=f,f},"measureDagreLayout"),ne=m((t,e)=>{const r=e.preparedLayout?.measuredLayout;if(!r)throw new Error("runDagreLayoutCore requires measureDagreLayout to run first");return M(r.graph),te(t,r),r},"runDagreLayoutCore"),se=m((t,{measure:e})=>x(e.graph).map(r=>e.graph.node(r)).filter(Boolean),"getDagrePaintNodes"),ie=m((t,e,{measure:r})=>t?r.graph.node(t):void 0,"getDagreEdgeNode"),ce=J({prepareLayout:G,measureLayout:ae,runLayoutCore:ne,paintOptions:{clusterDb:w,getNodes:se,getEdgeNode:ie,skipNode:m((t,{measure:e})=>!e.graph.hasNode(t.id),"skipNode"),isCluster:m((t,{measure:e})=>e.graph.hasNode(t.id)&&(e.graph.children(t.id)??[]).length>0,"isCluster")}});export{te as applyDagreLayoutResult,B as getEdgesToRender,ae as measureDagreLayout,G as prepareLayoutForDagre,ce as render,ne as runDagreLayoutCore};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as le}from"./D6QA9x6A.js";import{p as he}from"./CHwD9QHP.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./BejAw64w.js";import{p as Ee}from"./CvHIPf4O.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{I as le}from"./IorbBySt.js";import{p as he}from"./C1H4_ssx.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./LhLTjc8B.js";import{p as Ee}from"./CBeBcrFe.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${s-i/2-L/2},${x+R}
|
|
3
3
|
${s-i/2-L/2},${x-R}
|
|
4
4
|
${t.posWithOffset-i/2-L},${x-c-R}
|