@kabmo-labs/kabmo 0.40.0 → 0.41.0
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/dist/client/index.html +1 -1
- package/dist/client/index.js +360 -359
- package/dist/client/static/js/{CsvGrid-j9nvnhq1.js → CsvGrid-60njj97j.js} +2 -2
- package/dist/client/static/js/{DocxView-87gnpm81.js → DocxView-rsv0j46a.js} +1 -1
- package/dist/client/static/js/{DrawioView-a351t8f8.js → DrawioView-n2g5df3a.js} +1 -1
- package/dist/client/static/js/{ImageView-c139r891.js → ImageView-t330jx6y.js} +1 -1
- package/dist/client/static/js/LayoutWrapper-qp6nsw65.js +2 -0
- package/dist/client/static/js/{Modal-0weqfqvk.js → Modal-sbya4ahp.js} +9 -9
- package/dist/client/static/js/{PdfView-n6bwcvc8.js → PdfView-1r7a0qkp.js} +1 -1
- package/dist/client/static/js/SessionsView-yqs5m8tj.js +1 -0
- package/dist/client/static/js/{SheetView-k8ymr87w.js → SheetView-bt5pp042.js} +8 -8
- package/dist/client/static/js/{SvgPreview-5pcp444e.js → SvgPreview-vfmqgmrx.js} +1 -1
- package/dist/client/static/js/{abnfDiagram-O67JEVCF-psav75bx.js → abnfDiagram-O67JEVCF-8k5hk1yx.js} +1 -1
- package/dist/client/static/js/architecture-7GRP2DOG-1wqga929.js +1 -0
- package/dist/client/static/js/{architectureDiagram-NJMV4G6O-9bk6ykn7.js → architectureDiagram-NJMV4G6O-7jcb7fgy.js} +2 -2
- package/dist/client/static/js/{blockDiagram-BEXU5L5S-17xsf182.js → blockDiagram-BEXU5L5S-04sbtdth.js} +1 -1
- package/dist/client/static/js/{c4Diagram-YGBWAQC7-jn9j4n04.js → c4Diagram-YGBWAQC7-vwac9za0.js} +1 -1
- package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-663z1g1r.js → classDiagram-v2-NBCMYWYE-18cc0bsb.js} +1 -1
- package/dist/client/static/js/{cose-bilkent-JH36ORCC-vp4yvx8x.js → cose-bilkent-JH36ORCC-dk683zvp.js} +1 -1
- package/dist/client/static/js/css-2re5mbea.js +1 -0
- package/dist/client/static/js/cynefin-OW5HDTMX-j2dpdgkh.js +1 -0
- package/dist/client/static/js/{cynefinDiagram-VND7K2PF-dagkrjbh.js → cynefinDiagram-VND7K2PF-m2sx8d8s.js} +1 -1
- package/dist/client/static/js/{dagre-6A5THRUB-8qgwpb5a.js → dagre-6A5THRUB-qf3pr59p.js} +2 -2
- package/dist/client/static/js/{diagram-22UHCM2B-671xtp0d.js → diagram-22UHCM2B-twnz23mt.js} +1 -1
- package/dist/client/static/js/{diagram-3UASUU5V-8nn5fha8.js → diagram-3UASUU5V-417bas6t.js} +1 -1
- package/dist/client/static/js/{diagram-ATOU4E4O-dnar0ktg.js → diagram-ATOU4E4O-n63cpdnx.js} +1 -1
- package/dist/client/static/js/{diagram-CDSNMT55-bt0fhk7n.js → diagram-CDSNMT55-v86p14dd.js} +1 -1
- package/dist/client/static/js/{diagram-MLGK6HIB-tp6dwxdb.js → diagram-MLGK6HIB-7a0h1hs3.js} +1 -1
- package/dist/client/static/js/{diagram-MPIPVDR6-qgx8c8ee.js → diagram-MPIPVDR6-w75bftmd.js} +1 -1
- package/dist/client/static/js/{dockerfile-hk0s4qaw.js → dockerfile-g5qbaeq3.js} +1 -1
- package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-nmf9r33z.js → ebnfDiagram-ZINNZB2B-vdzm3tsv.js} +1 -1
- package/dist/client/static/js/{elk-276RUBZZ-dheh5ngz.js → elk-276RUBZZ-2fsbb484.js} +1 -1
- package/dist/client/static/js/{erDiagram-OPXOYQCR-8837mk18.js → erDiagram-OPXOYQCR-vnkztq7d.js} +1 -1
- package/dist/client/static/js/{erlang-w9gmf866.js → erlang-jqqa3ehb.js} +1 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-xjvjawd3.js +1 -0
- package/dist/client/static/js/flowDiagram-KWPJA3E3-j21f2bfg.js +1 -0
- package/dist/client/static/js/{ganttDiagram-FUAMR5RP-g68mvnje.js → ganttDiagram-FUAMR5RP-pbvcch52.js} +1 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-r0zbk95f.js +1 -0
- package/dist/client/static/js/{gitGraphDiagram-X574FWY7-ymk81cdj.js → gitGraphDiagram-X574FWY7-dkvktvzr.js} +1 -1
- package/dist/client/static/js/graphql-npbd9fdx.js +1 -0
- package/dist/client/static/js/{index-jy91r3ap.js → index-0c6vpk89.js} +2 -2
- package/dist/client/static/js/{index-js81yrmy.js → index-0xaz2eyv.js} +2 -2
- package/dist/client/static/js/{index-qnt118mp.js → index-1sw00wm0.js} +1 -1
- package/dist/client/static/js/{index-rvjc19x7.js → index-2z9wrb46.js} +1 -1
- package/dist/client/static/js/{index-ag78jnva.js → index-3rymer2w.js} +1 -1
- package/dist/client/static/js/{index-69xe17c1.js → index-4jk8ngjg.js} +2 -2
- package/dist/client/static/js/{index-q1bqg4f6.js → index-55hq7tnj.js} +1 -1
- package/dist/client/static/js/{index-547h1b8j.js → index-6fx2t6y7.js} +6 -6
- package/dist/client/static/js/{index-bgpcf3mr.js → index-7fwppdkn.js} +1 -1
- package/dist/client/static/js/{index-p2812ygk.js → index-7w3gqw2b.js} +1 -1
- package/dist/client/static/js/{index-2kg3r5jw.js → index-9dnkfpx4.js} +2 -2
- package/dist/client/static/js/{index-8ggxxp8c.js → index-9fnzcg2x.js} +1 -1
- package/dist/client/static/js/{index-y5hxhr7q.js → index-a4ed3mks.js} +1 -1
- package/dist/client/static/js/{index-g10nr8m6.js → index-ae91g8ka.js} +5 -5
- package/dist/client/static/js/{index-d1vearmk.js → index-ajjq0b8y.js} +2 -2
- package/dist/client/static/js/{index-ek7hqfp0.js → index-amawahyh.js} +2 -2
- package/dist/client/static/js/{index-wv36ddd5.js → index-b6cyn4hr.js} +19 -19
- package/dist/client/static/js/{index-aznkfx1z.js → index-c6kx7s6a.js} +1 -1
- package/dist/client/static/js/{index-9wjnbb3q.js → index-cytks03p.js} +2 -2
- package/dist/client/static/js/{index-b612vske.js → index-djv15k5s.js} +2 -2
- package/dist/client/static/js/{index-8888hgj8.js → index-ds6a2cx7.js} +4 -4
- package/dist/client/static/js/{index-qw5aqk2d.js → index-e6qjfcz9.js} +1 -1
- package/dist/client/static/js/{index-173x4bh0.js → index-e7yf273s.js} +2 -2
- package/dist/client/static/js/{index-y82bk3hr.js → index-efn233xp.js} +4 -4
- package/dist/client/static/js/index-esx3zwnt.js +1 -0
- package/dist/client/static/js/{index-4j1g7m8g.js → index-f8pq132s.js} +1 -1
- package/dist/client/static/js/{index-qntpsp98.js → index-fbbp5cwj.js} +1 -1
- package/dist/client/static/js/{index-bdz08fe2.js → index-g1cggqgx.js} +7 -7
- package/dist/client/static/js/{index-bj3wn9je.js → index-ghsdzs4m.js} +1 -1
- package/dist/client/static/js/{index-j4ks5s41.js → index-gs7ytgdw.js} +171 -171
- package/dist/client/static/js/{index-gx2xefdg.js → index-hz177dr2.js} +2 -2
- package/dist/client/static/js/{index-wy05jt00.js → index-j5ram1ve.js} +1 -1
- package/dist/client/static/js/{index-6wtx7a9x.js → index-ne131hmw.js} +1 -1
- package/dist/client/static/js/{index-vwc8pdy3.js → index-ngk9h0v9.js} +1 -1
- package/dist/client/static/js/{index-ek4gwrm8.js → index-ntcqyqd5.js} +2 -2
- package/dist/client/static/js/{index-4j5jwb54.js → index-pbsm2vw7.js} +2 -2
- package/dist/client/static/js/{index-wsqgp9jw.js → index-pfbyfab5.js} +1 -1
- package/dist/client/static/js/{index-vv9ytx0t.js → index-pn91shfp.js} +2 -2
- package/dist/client/static/js/{index-w130cs7d.js → index-qjsy6p86.js} +1 -1
- package/dist/client/static/js/{index-dj7y2df7.js → index-rdqn92tc.js} +1 -1
- package/dist/client/static/js/{index-c003wb3r.js → index-re1xz433.js} +1 -1
- package/dist/client/static/js/{index-mxpgfj6p.js → index-rebnv57p.js} +1 -1
- package/dist/client/static/js/{index-cccrappc.js → index-tgper3yy.js} +2 -2
- package/dist/client/static/js/{index-pp6mss9b.js → index-x2kb1kx5.js} +1 -1
- package/dist/client/static/js/{index-018ehs1n.js → index-xfa5hswh.js} +1 -1
- package/dist/client/static/js/{index-r1fe56cn.js → index-yq9vnd1y.js} +2 -2
- package/dist/client/static/js/{index-harsfp4x.js → index-zfykeg7x.js} +3 -3
- package/dist/client/static/js/{index-ys4t1am4.js → index-zye9309h.js} +2 -2
- package/dist/client/static/js/info-A6RAGUB7-a8xap43w.js +1 -0
- package/dist/client/static/js/{infoDiagram-VRGFBTTK-11trzn8c.js → infoDiagram-VRGFBTTK-mh6yks62.js} +1 -1
- package/dist/client/static/js/ini-df5bw23e.js +1 -0
- package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-8xnnymb5.js → ishikawaDiagram-OU5B5YK6-hnfqppnv.js} +1 -1
- package/dist/client/static/js/java-8j33rj1p.js +1 -0
- package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-wd47j0hy.js → journeyDiagram-ZHPQQLJL-s4nv1f3q.js} +2 -2
- package/dist/client/static/js/jsx-f6p72qpc.js +1 -0
- package/dist/client/static/js/{julia-c2q0vwpd.js → julia-yre4bxb9.js} +1 -1
- package/dist/client/static/js/{kanban-definition-PNTS6WVX-s5rgcp44.js → kanban-definition-PNTS6WVX-t8kbfefp.js} +7 -7
- package/dist/client/static/js/lua-bahx6qze.js +1 -0
- package/dist/client/static/js/markdown-9dhg1fax.js +1 -0
- package/dist/client/static/js/{mermaid.core-9fxp8nt2.js → mermaid.core-0784021p.js} +6 -6
- package/dist/client/static/js/{mindmap-definition-NLK3R4M7-4fyewtst.js → mindmap-definition-NLK3R4M7-swkkze8c.js} +8 -8
- package/dist/client/static/js/one-dark-pro-h5tmw145.js +1 -0
- package/dist/client/static/js/one-light-x7vj1pxr.js +1 -0
- package/dist/client/static/js/packet-AYTQ26CC-b5bvg6v1.js +1 -0
- package/dist/client/static/js/{pegDiagram-GJSIUBJH-s2xe2e2k.js → pegDiagram-GJSIUBJH-jqayzh7z.js} +1 -1
- package/dist/client/static/js/{perl-6pa0tn3b.js → perl-weeskn1v.js} +1 -1
- package/dist/client/static/js/{php-1zy994pz.js → php-vf3045p9.js} +1 -1
- package/dist/client/static/js/pie-WAS4IAKB-77ee73zg.js +1 -0
- package/dist/client/static/js/{pieDiagram-5QR66LMP-1szpjbzy.js → pieDiagram-5QR66LMP-w03a65ky.js} +1 -1
- package/dist/client/static/js/properties-49mfnee4.js +1 -0
- package/dist/client/static/js/python-qb69wp1s.js +1 -0
- package/dist/client/static/js/{quadrantDiagram-O4NWA36T-mv3ee2qa.js → quadrantDiagram-O4NWA36T-2j7sfa9s.js} +1 -1
- package/dist/client/static/js/r-s3mf2tch.js +1 -0
- package/dist/client/static/js/radar-RG4KPBEZ-cp79xtvb.js +1 -0
- package/dist/client/static/js/railroad-74A4TZTK-dcpgqhcb.js +1 -0
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-qasqv686.js +1 -0
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-e46908rd.js +1 -0
- package/dist/client/static/js/railroad-peg-WCYAUIDC-7009t6bk.js +1 -0
- package/dist/client/static/js/{railroadDiagram-XR7U4H2S-hgdqjpm9.js → railroadDiagram-XR7U4H2S-jtkkgy34.js} +1 -1
- package/dist/client/static/js/{requirementDiagram-PLB6GJNP-yrfjp9wx.js → requirementDiagram-PLB6GJNP-t85ckjdb.js} +1 -1
- package/dist/client/static/js/{ruby-arvs7kz4.js → ruby-1a2ryzy6.js} +1 -1
- package/dist/client/static/js/{rust-3ahjk339.js → rust-736r0f0v.js} +1 -1
- package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-k7k871xa.js → sankeyDiagram-IPEJSGJF-5pfkw8ne.js} +1 -1
- package/dist/client/static/js/{sass-cmkf7nwd.js → sass-tq4vw7hd.js} +1 -1
- package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-gd80m0as.js → sequenceDiagram-PO4LG4MO-55vs9zv5.js} +3 -3
- package/dist/client/static/js/{sizeCapture-INFHLROL-jv6p4834.js → sizeCapture-INFHLROL-pzqqd7f4.js} +1 -1
- package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-tvphxq2h.js → stateDiagram-v2-GCMORJYK-6nhrph8n.js} +2 -2
- package/dist/client/static/js/{swimlanes-2SLR337P-3dt7nxj2.js → swimlanes-2SLR337P-6tcnxfbv.js} +1 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-7xrkrkpa.js +8 -0
- package/dist/client/static/js/{timeline-definition-EJHVYXUP-40vvf856.js → timeline-definition-EJHVYXUP-1dz46nt5.js} +2 -2
- package/dist/client/static/js/treeView-Q6P3EWNA-tpn62q8j.js +1 -0
- package/dist/client/static/js/treemap-WGGIJYW6-w910f1g4.js +1 -0
- package/dist/client/static/js/{usecaseDiagram-POWQR4AR-g1j5x0xh.js → usecaseDiagram-POWQR4AR-b3jfveq6.js} +1 -1
- package/dist/client/static/js/{vennDiagram-UO4OBE2U-5b8789qk.js → vennDiagram-UO4OBE2U-dnc3jqvp.js} +3 -3
- package/dist/client/static/js/wardley-WFR3VGLG-pt9tq808.js +1 -0
- package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-c7x3za3w.js → wardleyDiagram-VNRHLVJA-466m8400.js} +1 -1
- package/dist/client/static/js/xml-wr1dxav5.js +1 -0
- package/dist/client/static/js/{xychartDiagram-PMCCYNJV-h0fy45tg.js → xychartDiagram-PMCCYNJV-kryrpqp1.js} +2 -2
- package/dist/client/static/js/yaml-0y9fdskg.js +1 -0
- package/package.json +1 -1
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +7 -0
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +2 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.test.tsx +1 -1
- package/src/client/components/mobile/SessionSidebar.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +19 -19
- package/src/client/hooks/commands/use-command-runtime.ts +15 -0
- package/src/client/hooks/ui/updates/check-request.ts +41 -0
- package/src/client/hooks/ui/updates/index.ts +13 -5
- package/src/client/lib/native/run-command.test.ts +95 -0
- package/src/client/lib/native/run-command.ts +52 -0
- package/src/client/lib/router/open-session.test.ts +26 -1
- package/src/client/lib/router/open-session.ts +21 -0
- package/src/client/main.tsx +9 -0
- package/src/server/lib/changes/capture-shell.test.ts +253 -0
- package/src/server/lib/changes/capture-targets.test.ts +83 -0
- package/src/server/lib/changes/capture-targets.ts +51 -0
- package/src/server/lib/changes/capture-write.server.ts +2 -2
- package/src/server/lib/changes/capture.server.ts +14 -29
- package/src/server/lib/changes/capture.test.ts +69 -149
- package/src/server/lib/changes/patch-paths.ts +37 -0
- package/src/shared/lib/commands/catalog.test.ts +36 -0
- package/src/shared/lib/commands/catalog.ts +16 -0
- package/src/shared/lib/updates/popup-state.ts +11 -0
- package/dist/client/static/js/LayoutWrapper-08axzr3a.js +0 -2
- package/dist/client/static/js/SessionsView-awef8ehj.js +0 -1
- package/dist/client/static/js/architecture-7GRP2DOG-6rbq97t9.js +0 -1
- package/dist/client/static/js/css-zj4qzw6r.js +0 -1
- package/dist/client/static/js/cynefin-OW5HDTMX-zafxcz2k.js +0 -1
- package/dist/client/static/js/eventmodeling-NTZA5JFV-cq3dvz7e.js +0 -1
- package/dist/client/static/js/flowDiagram-KWPJA3E3-spzh2jxq.js +0 -1
- package/dist/client/static/js/gitGraph-4MIJSDKK-epgk26pj.js +0 -1
- package/dist/client/static/js/graphql-dewsj5g1.js +0 -1
- package/dist/client/static/js/index-dhrp656p.js +0 -1
- package/dist/client/static/js/info-A6RAGUB7-0an46pag.js +0 -1
- package/dist/client/static/js/ini-09e0scxh.js +0 -1
- package/dist/client/static/js/java-vnaesxzs.js +0 -1
- package/dist/client/static/js/jsx-xz71aed4.js +0 -1
- package/dist/client/static/js/lua-e4wenyzt.js +0 -1
- package/dist/client/static/js/markdown-yv3p1p7m.js +0 -1
- package/dist/client/static/js/one-dark-pro-ahch85zb.js +0 -1
- package/dist/client/static/js/one-light-9706jgqt.js +0 -1
- package/dist/client/static/js/packet-AYTQ26CC-5e397pav.js +0 -1
- package/dist/client/static/js/pie-WAS4IAKB-0zzmzg64.js +0 -1
- package/dist/client/static/js/properties-0ag74bdj.js +0 -1
- package/dist/client/static/js/python-zsn5tdbj.js +0 -1
- package/dist/client/static/js/r-mwtqhnw3.js +0 -1
- package/dist/client/static/js/radar-RG4KPBEZ-mtar9742.js +0 -1
- package/dist/client/static/js/railroad-74A4TZTK-d6a6j9fq.js +0 -1
- package/dist/client/static/js/railroad-abnf-HS5TGJTU-1257kd8x.js +0 -1
- package/dist/client/static/js/railroad-ebnf-LZEXJU2U-v8b6qmas.js +0 -1
- package/dist/client/static/js/railroad-peg-WCYAUIDC-jxpbx410.js +0 -1
- package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-aqnh1hhp.js +0 -8
- package/dist/client/static/js/treeView-Q6P3EWNA-q3qr7ew7.js +0 -1
- package/dist/client/static/js/treemap-WGGIJYW6-zgbdydeq.js +0 -1
- package/dist/client/static/js/wardley-WFR3VGLG-b230aajh.js +0 -1
- package/dist/client/static/js/xml-23y6pgvx.js +0 -1
- package/dist/client/static/js/yaml-vrayja34.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t,Zd,l,x,te,R,F,z,P,U,q,j,p,h,Qi,$l,Ni,Ff,In,Pg,Ko,uo,Rs,K}from"./index-wv36ddd5.js";import{Cl,Cu,Dd,Eu,ia}from"./index-6wtx7a9x.js";import{mn,Bn}from"./index-gx2xefdg.js";var fn=Bn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,A,_,rt,O=a(this),Y=(D=this.isoWeekYear(),A=this.$u,_=(A?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return O.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var A=this.$utils(),_=!!A.u(D)||D;return A.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var dn=Bn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(E){return(E=+E)+(E>68?1900:2000)},D=function(E){return function(H){this[E]=+H}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(H){if(!H)return 0;if(H==="Z")return 0;var I=H.match(/([+-]|\d\d)/g),Q=60*I[1]+(+I[2]||0);return Q===0?0:I[0]==="+"?-Q:Q}(E)}],_=function(E){var H=c[E];return H&&(H.indexOf?H:H.s.concat(H.f))},rt=function(E,H){var I,Q=c.meridiem;if(Q){for(var lt=1;lt<=24;lt+=1)if(E.indexOf(Q(lt,0,H))>-1){I=lt>12;break}}else I=E===(H?"pm":"PM");return I},O={A:[s,function(E){this.afternoon=rt(E,!1)}],a:[s,function(E){this.afternoon=rt(E,!0)}],Q:[n,function(E){this.month=3*(E-1)+1}],S:[n,function(E){this.milliseconds=100*+E}],SS:[i,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(E){var H=c.ordinal,I=E.match(/\d+/);if(this.day=I[0],H)for(var Q=1;Q<=31;Q+=1)H(Q).replace(/\[|\]/g,"")===E&&(this.day=Q)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(E){var H=_("months"),I=(_("monthsShort")||H.map(function(Q){return Q.slice(0,3)})).indexOf(E)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(E){var H=_("months").indexOf(E)+1;if(H<1)throw Error();this.month=H%12||H}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(E){this.year=w(E)}],YYYY:[/\d{4}/,D("year")],Z:A,ZZ:A};function Y(E){var H,I;H=E,I=c&&c.formats;for(var Q=(E=H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||I[v]||e[v]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,W,f){return W||f.slice(1)})})).match(r),lt=Q.length,it=0;it<lt;it+=1){var N=Q[it],M=O[N],u=M&&M[0],L=M&&M[1];Q[it]=L?{regex:u,parser:L}:N.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=Q[v];if(typeof C=="string")S+=C.length;else{var{regex:W,parser:f}=C,b=tt.slice(S),T=W.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(E,H,I){I.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(w=E.parseTwoDigitYear);var Q=H.prototype,lt=Q.parse;Q.parse=function(it){var{date:N,utc:M,args:u}=it;this.$u=M;var L=u[1];if(typeof L=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(b,T,k,Z){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:X,month:m,day:dt,hours:d,minutes:B,seconds:G,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,V=dt||(X||m?1:g.getDate()),J=X||g.getFullYear(),y=0;X&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=B||0,ht=G||0,yt=ct||0;return ut?new Date(Date.UTC(J,y,V,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(J,y,V,at,st,ht,yt)):(mt=new Date(J,y,V,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(N,L,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&N!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var C=L.length,W=1;W<=C;W+=1){u[1]=L[W-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}W===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=Bn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"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(A){switch(A){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),A==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),A==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return A}});return i.bind(this)(D)}}})});var yn=Bn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(N){return N instanceof lt},O=function(N,M,u){return new lt(N,u,M.$l)},Y=function(N){return r.p(N)+"s"},E=function(N){return N<0},H=function(N){return E(N)?Math.ceil(N):Math.floor(N)},I=function(N){return Math.abs(N)},Q=function(N,M){return N?E(N)?{negative:!0,format:""+I(N)+M}:{negative:!1,format:""+N+M}:{negative:!1,format:""}},lt=function(){function N(u,L,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return O(u*_[Y(L)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=N.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(L,tt){return L+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=H(u/c),u%=c,this.$d.months=H(u/w),u%=w,this.$d.days=H(u/s),u%=s,this.$d.hours=H(u/a),u%=a,this.$d.minutes=H(u/i),u%=i,this.$d.seconds=H(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=Q(this.$d.years,"Y"),L=Q(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=Q(tt,"D"),v=Q(this.$d.hours,"H"),S=Q(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var W=Q(C,"S"),f=u.negative||L.negative||et.negative||v.negative||S.negative||W.negative,b=v.format||S.format||W.format?"T":"",T=(f?"-":"")+"P"+u.format+L.format+et.format+b+v.format+S.format+W.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var L=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(A,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var L=this.$ms,tt=Y(u);return tt==="milliseconds"?L%=1000:L=tt==="weeks"?H(L/_[tt]):this.$d[tt],L||0},M.add=function(u,L,tt){var et;return et=L?u*_[Y(L)]:rt(u)?u.$ms:O(u,this).$ms,O(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,L){return this.add(u,L,!0)},M.locale=function(u){var L=this.clone();return L.$l=u,L},M.clone=function(){return O(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},N}(),it=function(N,M,u){return N.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(N,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return O(et,{$l:S},v)},u.isDuration=rt;var L=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):L.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Wn(e){return"translate("+e+",0)"}function En(e){return"translate(0,"+e+")"}function An(e){return(r)=>+e(r)}function On(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function $n(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,A=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Wn:En;function O(Y){var E=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,H=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+w,Q=r.range(),lt=+Q[0]+D,it=+Q[Q.length-1]+D,N=(r.bandwidth?On:An)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),L=M.selectAll(".tick").data(E,r).order(),tt=L.exit(),et=L.enter().append("g").attr("class","tick"),v=L.select("line"),S=L.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",A*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,A*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),L=L.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=N(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var W=this.parentNode.__axis;return rt((W&&isFinite(W=W(C))?W:N(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+A*c+","+lt+"H"+D+"V"+it+"H"+A*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+A*c+"V"+D+"H"+it+"V"+A*c:"M"+lt+","+D+"H"+it),L.attr("opacity",1).attr("transform",function(C){return rt(N(C)+D)}),v.attr(_+"2",A*s),S.attr(_,A*I).text(H),M.filter($n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=N})}return O.scale=function(Y){return arguments.length?(r=Y,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),O):n.slice()},O.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),O):i&&i.slice()},O.tickFormat=function(Y){return arguments.length?(a=Y,O):a},O.tickSize=function(Y){return arguments.length?(s=c=+Y,O):s},O.tickSizeInner=function(Y){return arguments.length?(s=+Y,O):s},O.tickSizeOuter=function(Y){return arguments.length?(c=+Y,O):c},O.tickPadding=function(Y){return arguments.length?(w=+Y,O):w},O.offset=function(Y){return arguments.length?(D=+Y,O):D},O}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Hn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof In))e=Ff(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Qi(_t,Lr,$l(Ni,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new In(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Hn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Nn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Nn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Qi(Wt,ye,$l(Ni,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=Ko(r.c,n.c),s=Ko(r.l,n.l),c=Ko(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er(Pg),Ms=Er(Ko);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let A;do D.push(A=new Date(+s)),r(s,w),e(s);while(A<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Pn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),Vn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),zn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Rn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var ui=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var li=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(A,_,rt){let O=_<A;if(O)[A,_]=[_,A];let Y=rt&&typeof rt.range==="function"?rt:D(A,_,rt),E=Y?Y.range(A,+_+1):[];return O?E.reverse():E}function D(A,_,rt){let O=Math.abs(_-A)/rt,Y=Cl(([,,I])=>I).right(c,O);if(Y===c.length)return e.every(Cu(A/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(Cu(A,_,rt),1));let[E,H]=c[O/c[Y-1][2]<c[Y][2]/O?Y-1:Y];return E.every(H)}return[w,D]}var[fi,di]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,A=oe(a),_=ce(a),rt=oe(s),O=ce(s),Y=oe(c),E=ce(c),H=oe(w),I=ce(w),Q=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Ei,g:Zi,G:Xi,H:Ui,I:Li,j:Wi,L:rn,m:Ai,M:Oi,p:m,q:dt,Q:tn,s:en,S:$i,u:Hi,U:Pi,V:Vi,w:zi,W:Ri,x:null,X:null,y:Bi,Y:ji,Z:qi,"%":Kr},N={a:d,A:B,b:G,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Gi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:na,u:aa,U:sa,V:oa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:W,c:f,d:qr,e:qr,f:_i,g:Xr,G:jr,H:Gr,I:Gr,j:Mi,L:Si,m:wi,M:Di,p:et,q:bi,Q:Fi,s:Ii,S:Ci,u:ki,U:pi,V:Ti,w:gi,W:vi,x:b,X:T,y:Xr,Y:jr,Z:xi,"%":Yi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),N.x=u(n,N),N.X=u(i,N),N.c=u(r,N);function u(g,V){return function(J){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(J instanceof Date))J=new Date(+J);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=V[ht])ht=pt(J,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function L(g,V){return function(J){var y=se(1900,void 0,1),mt=tt(y,g,J+="",0),at,st;if(mt!=J.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(V&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,V,J,y){var mt=0,at=V.length,st=J.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=V.charCodeAt(mt++),ht===37){if(ht=V.charAt(mt++),yt=M[ht in Zr?V.charAt(mt++):ht],!yt||(y=yt(g,J,y))<0)return-1}else if(ht!=J.charCodeAt(y++))return-1}return y}function et(g,V,J){var y=A.exec(V.slice(J));return y?(g.p=_.get(y[0].toLowerCase()),J+y[0].length):-1}function v(g,V,J){var y=Y.exec(V.slice(J));return y?(g.w=E.get(y[0].toLowerCase()),J+y[0].length):-1}function S(g,V,J){var y=rt.exec(V.slice(J));return y?(g.w=O.get(y[0].toLowerCase()),J+y[0].length):-1}function C(g,V,J){var y=Q.exec(V.slice(J));return y?(g.m=lt.get(y[0].toLowerCase()),J+y[0].length):-1}function W(g,V,J){var y=H.exec(V.slice(J));return y?(g.m=I.get(y[0].toLowerCase()),J+y[0].length):-1}function f(g,V,J){return tt(g,r,V,J)}function b(g,V,J){return tt(g,n,V,J)}function T(g,V,J){return tt(g,i,V,J)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function G(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var V=u(g+="",it);return V.toString=function(){return g},V},parse:function(g){var V=L(g+="",!1);return V.toString=function(){return g},V},utcFormat:function(g){var V=u(g+="",N);return V.toString=function(){return g},V},utcParse:function(g){var V=L(g+="",!0);return V.toString=function(){return g},V}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,mi=/^%/,hi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function yi(e){return e.replace(hi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(yi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function gi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function xi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function bi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Yi(e,r,n){var i=mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Fi(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Ui(e,r){return ot(e.getHours(),r,2)}function Li(e,r){return ot(e.getHours()%12||12,r,2)}function Wi(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Ei(e,r){return rn(e,r)+"000"}function Ai(e,r){return ot(e.getMonth()+1,r,2)}function Oi(e,r){return ot(e.getMinutes(),r,2)}function $i(e,r){return ot(e.getSeconds(),r,2)}function Hi(e){var r=e.getDay();return r===0?7:r}function Pi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function Vi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function zi(e){return e.getDay()}function Ri(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Bi(e,r){return ot(e.getFullYear()%100,r,2)}function Zi(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function ji(e,r){return ot(e.getFullYear()%1e4,r,4)}function Xi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function qi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Gi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function na(e,r){return ot(e.getUTCSeconds(),r,2)}function aa(e){var r=e.getUTCDay();return r===0?7:r}function sa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function oa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,w,D,A){var _=Eu(),{invert:rt,domain:O}=_,Y=A(".%L"),E=A(":%S"),H=A("%I:%M"),I=A("%I %p"),Q=A("%a %d"),lt=A("%b %d"),it=A("%B"),N=A("%Y");function M(u){return(D(u)<u?Y:w(u)<u?E:c(u)<u?H:s(u)<u?I:i(u)<u?a(u)<u?Q:lt:n(u)<u?it:N)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?O(Array.from(u,ga)):O().map(ya)},_.ticks=function(u){var L=O();return e(L[0],L[L.length-1],u==null?10:u)},_.tickFormat=function(u,L){return L==null?M:A(L)},_.nice=function(u){var L=O();if(!u||typeof u.range!=="function")u=r(L[0],L[L.length-1],u==null?10:u);return u?O(Ve(L,u)):_},_.copy=function(){return Dd(_,ln(e,r,n,i,a,s,c,w,D,A))},_}function Je(){return uo.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Tn=mn(Rs(),1),bt=mn(Zd(),1),vn=mn(fn(),1),xn=mn(dn(),1),bn=mn(hn(),1),Jt=mn(Zd(),1),Ln=mn(yn(),1);var cr=function(){var e=t(function(W,f,b,T){for(b=b||{},T=W.length;T--;b[W[T]]=f);return b},"o"),r=[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],n=[1,26],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],A=[1,33],_=[1,34],rt=[1,9],O=[1,10],Y=[1,11],E=[1,12],H=[1,13],I=[1,14],Q=[1,15],lt=[1,16],it=[1,19],N=[1,20],M=[1,21],u=[1,22],L=[1,23],tt=[1,25],et=[1,35],v={trace:t(function(){},"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:t(function(f,b,T,k,Z,o,X){var m=o.length-1;switch(Z){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],Z=[null],o=[],X=this.table,m="",dt=0,d=0,B=0,G=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var V in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,V))g.yy[V]=this.yy[V];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var J=nt.yylloc;o.push(J);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>G)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
1
|
+
import{t,Zd,l,x,te,R,F,z,P,U,q,j,p,h,Qi,$l,Ni,Mf,In,$g,Ko,uo,Rs,K}from"./index-b6cyn4hr.js";import{Cl,Cu,Dd,Eu,ia}from"./index-ne131hmw.js";import{mn,Bn}from"./index-hz177dr2.js";var fn=Bn(function(Ke,tr){(function(e,r){typeof Ke=="object"&&typeof tr<"u"?tr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Ke,function(){var e="day";return function(r,n,i){var a=function(w){return w.add(4-w.isoWeekday(),e)},s=n.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(w){if(!this.$utils().u(w))return this.add(7*(w-this.isoWeek()),e);var D,A,_,rt,O=a(this),Y=(D=this.isoWeekYear(),A=this.$u,_=(A?i.utc:i)().year(D).startOf("year"),rt=4-_.isoWeekday(),_.isoWeekday()>4&&(rt+=7),_.add(rt,e));return O.diff(Y,"week")+1},s.isoWeekday=function(w){return this.$utils().u(w)?this.day()||7:this.day(this.day()%7?w:w-7)};var c=s.startOf;s.startOf=function(w,D){var A=this.$utils(),_=!!A.u(D)||D;return A.p(w)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):c.bind(this)(w,D)}}})});var dn=Bn(function(er,rr){(function(e,r){typeof er=="object"&&typeof rr<"u"?rr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(er,function(){var e={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,c={},w=function(E){return(E=+E)+(E>68?1900:2000)},D=function(E){return function(H){this[E]=+H}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(H){if(!H)return 0;if(H==="Z")return 0;var I=H.match(/([+-]|\d\d)/g),Q=60*I[1]+(+I[2]||0);return Q===0?0:I[0]==="+"?-Q:Q}(E)}],_=function(E){var H=c[E];return H&&(H.indexOf?H:H.s.concat(H.f))},rt=function(E,H){var I,Q=c.meridiem;if(Q){for(var lt=1;lt<=24;lt+=1)if(E.indexOf(Q(lt,0,H))>-1){I=lt>12;break}}else I=E===(H?"pm":"PM");return I},O={A:[s,function(E){this.afternoon=rt(E,!1)}],a:[s,function(E){this.afternoon=rt(E,!0)}],Q:[n,function(E){this.month=3*(E-1)+1}],S:[n,function(E){this.milliseconds=100*+E}],SS:[i,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[a,D("seconds")],ss:[a,D("seconds")],m:[a,D("minutes")],mm:[a,D("minutes")],H:[a,D("hours")],h:[a,D("hours")],HH:[a,D("hours")],hh:[a,D("hours")],D:[a,D("day")],DD:[i,D("day")],Do:[s,function(E){var H=c.ordinal,I=E.match(/\d+/);if(this.day=I[0],H)for(var Q=1;Q<=31;Q+=1)H(Q).replace(/\[|\]/g,"")===E&&(this.day=Q)}],w:[a,D("week")],ww:[i,D("week")],M:[a,D("month")],MM:[i,D("month")],MMM:[s,function(E){var H=_("months"),I=(_("monthsShort")||H.map(function(Q){return Q.slice(0,3)})).indexOf(E)+1;if(I<1)throw Error();this.month=I%12||I}],MMMM:[s,function(E){var H=_("months").indexOf(E)+1;if(H<1)throw Error();this.month=H%12||H}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(E){this.year=w(E)}],YYYY:[/\d{4}/,D("year")],Z:A,ZZ:A};function Y(E){var H,I;H=E,I=c&&c.formats;for(var Q=(E=H.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(tt,et,v){var S=v&&v.toUpperCase();return et||I[v]||e[v]||I[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,W,f){return W||f.slice(1)})})).match(r),lt=Q.length,it=0;it<lt;it+=1){var N=Q[it],M=O[N],u=M&&M[0],L=M&&M[1];Q[it]=L?{regex:u,parser:L}:N.replace(/^\[|\]$/g,"")}return function(tt){for(var et={},v=0,S=0;v<lt;v+=1){var C=Q[v];if(typeof C=="string")S+=C.length;else{var{regex:W,parser:f}=C,b=tt.slice(S),T=W.exec(b)[0];f.call(et,T),tt=tt.replace(T,"")}}return function(k){var Z=k.afternoon;if(Z!==void 0){var o=k.hours;Z?o<12&&(k.hours+=12):o===12&&(k.hours=0),delete k.afternoon}}(et),et}}return function(E,H,I){I.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(w=E.parseTwoDigitYear);var Q=H.prototype,lt=Q.parse;Q.parse=function(it){var{date:N,utc:M,args:u}=it;this.$u=M;var L=u[1];if(typeof L=="string"){var tt=u[2]===!0,et=u[3]===!0,v=tt||et,S=u[2];et&&(S=u[2]),c=this.$locale(),!tt&&S&&(c=I.Ls[S]),this.$d=function(b,T,k,Z){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1000:1)*b);var o=Y(T)(b),{year:X,month:m,day:dt,hours:d,minutes:B,seconds:G,milliseconds:ct,zone:ut,week:nt}=o,g=new Date,V=dt||(X||m?1:g.getDate()),J=X||g.getFullYear(),y=0;X&&!m||(y=m>0?m-1:g.getMonth());var mt,at=d||0,st=B||0,ht=G||0,yt=ct||0;return ut?new Date(Date.UTC(J,y,V,at,st,ht,yt+60*ut.offset*1000)):k?new Date(Date.UTC(J,y,V,at,st,ht,yt)):(mt=new Date(J,y,V,at,st,ht,yt),nt&&(mt=Z(mt).week(nt).toDate()),mt)}catch(pt){return new Date("")}}(N,L,M,I),this.init(),S&&S!==!0&&(this.$L=this.locale(S).$L),v&&N!=this.format(L)&&(this.$d=new Date("")),c={}}else if(L instanceof Array)for(var C=L.length,W=1;W<=C;W+=1){u[1]=L[W-1];var f=I.apply(this,u);if(f.isValid()){this.$d=f.$d,this.$L=f.$L,this.init();break}W===C&&(this.$d=new Date(""))}else lt.call(this,it)}}})});var hn=Bn(function(nr,ir){(function(e,r){typeof nr=="object"&&typeof ir<"u"?ir.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(nr,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(a){var s=this,c=this.$locale();if(!this.isValid())return i.bind(this)(a);var w=this.$utils(),D=(a||"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(A){switch(A){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return c.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return c.ordinal(s.week(),"W");case"w":case"ww":return w.s(s.week(),A==="w"?1:2,"0");case"W":case"WW":return w.s(s.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return w.s(String(s.$H===0?24:s.$H),A==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1000);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return A}});return i.bind(this)(D)}}})});var yn=Bn(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ar,function(){var e,r,n=1000,i=60000,a=3600000,s=86400000,c=31536000000,w=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,_={years:c,months:w,days:s,hours:a,minutes:i,seconds:n,milliseconds:1,weeks:604800000},rt=function(N){return N instanceof lt},O=function(N,M,u){return new lt(N,u,M.$l)},Y=function(N){return r.p(N)+"s"},E=function(N){return N<0},H=function(N){return E(N)?Math.ceil(N):Math.floor(N)},I=function(N){return Math.abs(N)},Q=function(N,M){return N?E(N)?{negative:!0,format:""+I(N)+M}:{negative:!1,format:""+N+M}:{negative:!1,format:""}},lt=function(){function N(u,L,tt){var et=this;if(this.$d={},this.$l=tt,u===void 0&&(this.$ms=0,this.parseFromMilliseconds()),L)return O(u*_[Y(L)],this);if(typeof u=="number")return this.$ms=u,this.parseFromMilliseconds(),this;if(typeof u=="object")return Object.keys(u).forEach(function(C){et.$d[Y(C)]=u[C]}),this.calMilliseconds(),this;if(typeof u=="string"){var v=u.match(D);if(v){var S=v.slice(2).map(function(C){return C!=null?Number(C):0});return this.$d.years=S[0],this.$d.months=S[1],this.$d.weeks=S[2],this.$d.days=S[3],this.$d.hours=S[4],this.$d.minutes=S[5],this.$d.seconds=S[6],this.calMilliseconds(),this}}return this}var M=N.prototype;return M.calMilliseconds=function(){var u=this;this.$ms=Object.keys(this.$d).reduce(function(L,tt){return L+(u.$d[tt]||0)*_[tt]},0)},M.parseFromMilliseconds=function(){var u=this.$ms;this.$d.years=H(u/c),u%=c,this.$d.months=H(u/w),u%=w,this.$d.days=H(u/s),u%=s,this.$d.hours=H(u/a),u%=a,this.$d.minutes=H(u/i),u%=i,this.$d.seconds=H(u/n),u%=n,this.$d.milliseconds=u},M.toISOString=function(){var u=Q(this.$d.years,"Y"),L=Q(this.$d.months,"M"),tt=+this.$d.days||0;this.$d.weeks&&(tt+=7*this.$d.weeks);var et=Q(tt,"D"),v=Q(this.$d.hours,"H"),S=Q(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1000,C=Math.round(1000*C)/1000);var W=Q(C,"S"),f=u.negative||L.negative||et.negative||v.negative||S.negative||W.negative,b=v.format||S.format||W.format?"T":"",T=(f?"-":"")+"P"+u.format+L.format+et.format+b+v.format+S.format+W.format;return T==="P"||T==="-P"?"P0D":T},M.toJSON=function(){return this.toISOString()},M.format=function(u){var L=u||"YYYY-MM-DDTHH:mm:ss",tt={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return L.replace(A,function(et,v){return v||String(tt[et])})},M.as=function(u){return this.$ms/_[Y(u)]},M.get=function(u){var L=this.$ms,tt=Y(u);return tt==="milliseconds"?L%=1000:L=tt==="weeks"?H(L/_[tt]):this.$d[tt],L||0},M.add=function(u,L,tt){var et;return et=L?u*_[Y(L)]:rt(u)?u.$ms:O(u,this).$ms,O(this.$ms+et*(tt?-1:1),this)},M.subtract=function(u,L){return this.add(u,L,!0)},M.locale=function(u){var L=this.clone();return L.$l=u,L},M.clone=function(){return O(this.$ms,this)},M.humanize=function(u){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!u)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},N}(),it=function(N,M,u){return N.add(M.years()*u,"y").add(M.months()*u,"M").add(M.days()*u,"d").add(M.hours()*u,"h").add(M.minutes()*u,"m").add(M.seconds()*u,"s").add(M.milliseconds()*u,"ms")};return function(N,M,u){e=u,r=u().$utils(),u.duration=function(et,v){var S=u.locale();return O(et,{$l:S},v)},u.isDuration=rt;var L=M.prototype.add,tt=M.prototype.subtract;M.prototype.add=function(et,v){return rt(et)?it(this,et,1):L.bind(this)(et,v)},M.prototype.subtract=function(et,v){return rt(et)?it(this,et,-1):tt.bind(this)(et,v)}}})});function Ie(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n<i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n<a||n===void 0&&a>=a))n=a}return n}function Ue(e,r){let n;if(r===void 0){for(let i of e)if(i!=null&&(n>i||n===void 0&&i>=i))n=i}else{let i=-1;for(let a of e)if((a=r(a,++i,e))!=null&&(n>a||n===void 0&&a>=a))n=a}return n}function Le(e){return e}var me=1,We=2,Ee=3,de=4,wr=0.000001;function Wn(e){return"translate("+e+",0)"}function En(e){return"translate(0,"+e+")"}function An(e){return(r)=>+e(r)}function On(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function $n(){return!this.__axis}function Mr(e,r){var n=[],i=null,a=null,s=6,c=6,w=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,A=e===me||e===de?-1:1,_=e===de||e===We?"x":"y",rt=e===me||e===Ee?Wn:En;function O(Y){var E=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,H=a==null?r.tickFormat?r.tickFormat.apply(r,n):Le:a,I=Math.max(s,0)+w,Q=r.range(),lt=+Q[0]+D,it=+Q[Q.length-1]+D,N=(r.bandwidth?On:An)(r.copy(),D),M=Y.selection?Y.selection():Y,u=M.selectAll(".domain").data([null]),L=M.selectAll(".tick").data(E,r).order(),tt=L.exit(),et=L.enter().append("g").attr("class","tick"),v=L.select("line"),S=L.select("text");if(u=u.merge(u.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),L=L.merge(et),v=v.merge(et.append("line").attr("stroke","currentColor").attr(_+"2",A*s)),S=S.merge(et.append("text").attr("fill","currentColor").attr(_,A*I).attr("dy",e===me?"0em":e===Ee?"0.71em":"0.32em")),Y!==M)u=u.transition(Y),L=L.transition(Y),v=v.transition(Y),S=S.transition(Y),tt=tt.transition(Y).attr("opacity",wr).attr("transform",function(C){return isFinite(C=N(C))?rt(C+D):this.getAttribute("transform")}),et.attr("opacity",wr).attr("transform",function(C){var W=this.parentNode.__axis;return rt((W&&isFinite(W=W(C))?W:N(C))+D)});tt.remove(),u.attr("d",e===de||e===We?c?"M"+A*c+","+lt+"H"+D+"V"+it+"H"+A*c:"M"+D+","+lt+"V"+it:c?"M"+lt+","+A*c+"V"+D+"H"+it+"V"+A*c:"M"+lt+","+D+"H"+it),L.attr("opacity",1).attr("transform",function(C){return rt(N(C)+D)}),v.attr(_+"2",A*s),S.attr(_,A*I).text(H),M.filter($n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===We?"start":e===de?"end":"middle"),M.each(function(){this.__axis=N})}return O.scale=function(Y){return arguments.length?(r=Y,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(Y){return arguments.length?(n=Y==null?[]:Array.from(Y),O):n.slice()},O.tickValues=function(Y){return arguments.length?(i=Y==null?null:Array.from(Y),O):i&&i.slice()},O.tickFormat=function(Y){return arguments.length?(a=Y,O):a},O.tickSize=function(Y){return arguments.length?(s=c=+Y,O):s},O.tickSizeInner=function(Y){return arguments.length?(s=+Y,O):s},O.tickSizeOuter=function(Y){return arguments.length?(c=+Y,O):c},O.tickPadding=function(Y){return arguments.length?(w=+Y,O):w},O.offset=function(Y){return arguments.length?(D=+Y,O):D},O}function Ae(e){return Mr(me,e)}function Oe(e){return Mr(Ee,e)}var Dr=Math.PI/180,Cr=180/Math.PI;var he=18,Sr=0.96422,_r=1,Yr=0.82521,Fr=0.13793103448275862,Xt=0.20689655172413793,Ir=3*Xt*Xt,Hn=Xt*Xt*Xt;function Ur(e){if(e instanceof _t)return new _t(e.l,e.a,e.b,e.opacity);if(e instanceof Wt)return Wr(e);if(!(e instanceof In))e=Mf(e);var r=Pe(e.r),n=Pe(e.g),i=Pe(e.b),a=$e((0.2225045*r+0.7168786*n+0.0606169*i)/_r),s,c;if(r===n&&n===i)s=c=a;else s=$e((0.4360747*r+0.3850649*n+0.1430804*i)/Sr),c=$e((0.0139322*r+0.0971045*n+0.7141733*i)/Yr);return new _t(116*a-16,500*(s-a),200*(a-c),e.opacity)}function Lr(e,r,n,i){return arguments.length===1?Ur(e):new _t(e,r,n,i==null?1:i)}function _t(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Qi(_t,Lr,$l(Ni,{brighter(e){return new _t(this.l+he*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new _t(this.l-he*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Sr*He(r),e=_r*He(e),n=Yr*He(n),new In(Ne(3.1338561*r-1.6168667*e-0.4906146*n),Ne(-0.9787684*r+1.9161415*e+0.033454*n),Ne(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function $e(e){return e>Hn?Math.pow(e,0.3333333333333333):e/Ir+Fr}function He(e){return e>Xt?e*e*e:Ir*(e-Fr)}function Ne(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Pe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Nn(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);if(!(e instanceof _t))e=Ur(e);if(e.a===0&&e.b===0)return new Wt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Cr;return new Wt(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ye(e,r,n,i){return arguments.length===1?Nn(e):new Wt(e,r,n,i==null?1:i)}function Wt(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Wr(e){if(isNaN(e.h))return new _t(e.l,0,0,e.opacity);var r=e.h*Dr;return new _t(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Qi(Wt,ye,$l(Ni,{brighter(e){return new Wt(this.h,this.c,this.l+he*(e==null?1:e),this.opacity)},darker(e){return new Wt(this.h,this.c,this.l-he*(e==null?1:e),this.opacity)},rgb(){return Wr(this).rgb()}}));function Er(e){return function(r,n){var i=e((r=ye(r)).h,(n=ye(n)).h),a=Ko(r.c,n.c),s=Ko(r.l,n.l),c=Ko(r.opacity,n.opacity);return function(w){return r.h=i(w),r.c=a(w),r.l=s(w),r.opacity=c(w),r+""}}}var Ar=Er($g),Ms=Er(Ko);function Ve(e,r){e=e.slice();var n=0,i=e.length-1,a=e[n],s=e[i],c;if(s<a)c=n,n=i,i=c,c=a,a=s,s=c;return e[n]=r.floor(a),e[i]=r.ceil(s),e}var ze=new Date,Re=new Date;function ft(e,r,n,i){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}if(a.floor=(s)=>(e(s=new Date(+s)),s),a.ceil=(s)=>(e(s=new Date(s-1)),r(s,1),e(s),s),a.round=(s)=>{let c=a(s),w=a.ceil(s);return s-c<w-s?c:w},a.offset=(s,c)=>(r(s=new Date(+s),c==null?1:Math.floor(c)),s),a.range=(s,c,w)=>{let D=[];if(s=a.ceil(s),w=w==null?1:Math.floor(w),!(s<c)||!(w>0))return D;let A;do D.push(A=new Date(+s)),r(s,w),e(s);while(A<s&&s<c);return D},a.filter=(s)=>ft((c)=>{if(c>=c)while(e(c),!s(c))c.setTime(c-1)},(c,w)=>{if(c>=c)if(w<0)while(++w<=0)while(r(c,-1),!s(c));else while(--w>=0)while(r(c,1),!s(c));}),n)a.count=(s,c)=>(ze.setTime(+s),Re.setTime(+c),e(ze),e(Re),Math.floor(n(ze,Re))),a.every=(s)=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:!(s>1)?a:a.filter(i?(c)=>i(c)%s===0:(c)=>a.count(0,c)%s===0));return a}var Yt=ft(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);Yt.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return Yt;return ft((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Or=Yt.range;var Mt=1000,Tt=60000,Ft=3600000,Ht=86400000,ie=604800000,Be=2592000000,ge=31536000000;var vt=ft((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Mt)},(e,r)=>(r-e)/Mt,(e)=>e.getUTCSeconds()),$r=vt.range;var Et=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getMinutes()),Pn=Et.range,ke=ft((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Tt)},(e,r)=>(r-e)/Tt,(e)=>e.getUTCMinutes()),Vn=ke.range;var At=ft((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Mt-e.getMinutes()*Tt)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getHours()),zn=At.range,pe=ft((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ft)},(e,r)=>(r-e)/Ft,(e)=>e.getUTCHours()),Rn=pe.range;var Dt=ft((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Tt)/Ht,(e)=>e.getDate()-1),Zn=Dt.range,ae=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>e.getUTCDate()-1),jn=ae.range,Te=ft((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Ht,(e)=>Math.floor(e/Ht)),Xn=Te.range;function Vt(e){return ft((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*Tt)/ie)}var Ct=Vt(0),Nt=Vt(1),ve=Vt(2),xe=Vt(3),It=Vt(4),be=Vt(5),we=Vt(6),Hr=Ct.range,qn=Nt.range,Gn=ve.range,Qn=xe.range,Jn=It.range,Kn=be.range,ti=we.range;function zt(e){return ft((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/ie)}var Rt=zt(0),qt=zt(1),Nr=zt(2),Pr=zt(3),Pt=zt(4),Vr=zt(5),zr=zt(6),Rr=Rt.range,ei=qt.range,ri=Nr.range,ni=Pr.range,ii=Pt.range,ai=Vr.range,si=zr.range;var Ot=ft((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),oi=Ot.range,Me=ft((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),ci=Me.range;var xt=ft((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());xt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var ui=xt.range,St=ft((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());St.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var li=St.range;function Br(e,r,n,i,a,s){let c=[[vt,1,Mt],[vt,5,5*Mt],[vt,15,15*Mt],[vt,30,30*Mt],[s,1,Tt],[s,5,5*Tt],[s,15,15*Tt],[s,30,30*Tt],[a,1,Ft],[a,3,3*Ft],[a,6,6*Ft],[a,12,12*Ft],[i,1,Ht],[i,2,2*Ht],[n,1,ie],[r,1,Be],[r,3,3*Be],[e,1,ge]];function w(A,_,rt){let O=_<A;if(O)[A,_]=[_,A];let Y=rt&&typeof rt.range==="function"?rt:D(A,_,rt),E=Y?Y.range(A,+_+1):[];return O?E.reverse():E}function D(A,_,rt){let O=Math.abs(_-A)/rt,Y=Cl(([,,I])=>I).right(c,O);if(Y===c.length)return e.every(Cu(A/ge,_/ge,rt));if(Y===0)return Yt.every(Math.max(Cu(A,_,rt),1));let[E,H]=c[O/c[Y-1][2]<c[Y][2]/O?Y-1:Y];return E.every(H)}return[w,D]}var[fi,di]=Br(St,Me,Rt,Te,pe,ke),[Ze,je]=Br(xt,Ot,Ct,Dt,At,Et);function Xe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function qe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function se(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ge(e){var{dateTime:r,date:n,time:i,periods:a,days:s,shortDays:c,months:w,shortMonths:D}=e,A=oe(a),_=ce(a),rt=oe(s),O=ce(s),Y=oe(c),E=ce(c),H=oe(w),I=ce(w),Q=oe(D),lt=ce(D),it={a:k,A:Z,b:o,B:X,c:null,d:Qr,e:Qr,f:Ei,g:Zi,G:Xi,H:Ui,I:Li,j:Wi,L:rn,m:Ai,M:Oi,p:m,q:dt,Q:tn,s:en,S:$i,u:Hi,U:Pi,V:Vi,w:zi,W:Ri,x:null,X:null,y:Bi,Y:ji,Z:qi,"%":Kr},N={a:d,A:B,b:G,B:ct,c:null,d:Jr,e:Jr,f:ta,g:fa,G:ma,H:Gi,I:Ji,j:Ki,L:an,m:ea,M:ra,p:ut,q:nt,Q:tn,s:en,S:na,u:aa,U:sa,V:oa,w:ca,W:ua,x:null,X:null,y:la,Y:da,Z:ha,"%":Kr},M={a:v,A:S,b:C,B:W,c:f,d:qr,e:qr,f:_i,g:Xr,G:jr,H:Gr,I:Gr,j:Mi,L:Si,m:wi,M:Di,p:et,q:bi,Q:Fi,s:Ii,S:Ci,u:ki,U:pi,V:Ti,w:gi,W:vi,x:b,X:T,y:Xr,Y:jr,Z:xi,"%":Yi};it.x=u(n,it),it.X=u(i,it),it.c=u(r,it),N.x=u(n,N),N.X=u(i,N),N.c=u(r,N);function u(g,V){return function(J){var y=[],mt=-1,at=0,st=g.length,ht,yt,pt;if(!(J instanceof Date))J=new Date(+J);while(++mt<st)if(g.charCodeAt(mt)===37){if(y.push(g.slice(at,mt)),(yt=Zr[ht=g.charAt(++mt)])!=null)ht=g.charAt(++mt);else yt=ht==="e"?" ":"0";if(pt=V[ht])ht=pt(J,yt);y.push(ht),at=mt+1}return y.push(g.slice(at,mt)),y.join("")}}function L(g,V){return function(J){var y=se(1900,void 0,1),mt=tt(y,g,J+="",0),at,st;if(mt!=J.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(V&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)at=qe(se(y.y,0,1)),st=at.getUTCDay(),at=st>4||st===0?qt.ceil(at):qt(at),at=ae.offset(at,(y.V-1)*7),y.y=at.getUTCFullYear(),y.m=at.getUTCMonth(),y.d=at.getUTCDate()+(y.w+6)%7;else at=Xe(se(y.y,0,1)),st=at.getDay(),at=st>4||st===0?Nt.ceil(at):Nt(at),at=Dt.offset(at,(y.V-1)*7),y.y=at.getFullYear(),y.m=at.getMonth(),y.d=at.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;st="Z"in y?qe(se(y.y,0,1)).getUTCDay():Xe(se(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(st+5)%7:y.w+y.U*7-(st+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,qe(y);return Xe(y)}}function tt(g,V,J,y){var mt=0,at=V.length,st=J.length,ht,yt;while(mt<at){if(y>=st)return-1;if(ht=V.charCodeAt(mt++),ht===37){if(ht=V.charAt(mt++),yt=M[ht in Zr?V.charAt(mt++):ht],!yt||(y=yt(g,J,y))<0)return-1}else if(ht!=J.charCodeAt(y++))return-1}return y}function et(g,V,J){var y=A.exec(V.slice(J));return y?(g.p=_.get(y[0].toLowerCase()),J+y[0].length):-1}function v(g,V,J){var y=Y.exec(V.slice(J));return y?(g.w=E.get(y[0].toLowerCase()),J+y[0].length):-1}function S(g,V,J){var y=rt.exec(V.slice(J));return y?(g.w=O.get(y[0].toLowerCase()),J+y[0].length):-1}function C(g,V,J){var y=Q.exec(V.slice(J));return y?(g.m=lt.get(y[0].toLowerCase()),J+y[0].length):-1}function W(g,V,J){var y=H.exec(V.slice(J));return y?(g.m=I.get(y[0].toLowerCase()),J+y[0].length):-1}function f(g,V,J){return tt(g,r,V,J)}function b(g,V,J){return tt(g,n,V,J)}function T(g,V,J){return tt(g,i,V,J)}function k(g){return c[g.getDay()]}function Z(g){return s[g.getDay()]}function o(g){return D[g.getMonth()]}function X(g){return w[g.getMonth()]}function m(g){return a[+(g.getHours()>=12)]}function dt(g){return 1+~~(g.getMonth()/3)}function d(g){return c[g.getUTCDay()]}function B(g){return s[g.getUTCDay()]}function G(g){return D[g.getUTCMonth()]}function ct(g){return w[g.getUTCMonth()]}function ut(g){return a[+(g.getUTCHours()>=12)]}function nt(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var V=u(g+="",it);return V.toString=function(){return g},V},parse:function(g){var V=L(g+="",!1);return V.toString=function(){return g},V},utcFormat:function(g){var V=u(g+="",N);return V.toString=function(){return g},V},utcParse:function(g){var V=L(g+="",!0);return V.toString=function(){return g},V}}}var Zr={"-":"",_:" ","0":"0"},kt=/^\s*\d+/,mi=/^%/,hi=/[\\^$*+?|[\]().{}]/g;function ot(e,r,n){var i=e<0?"-":"",a=(i?-e:e)+"",s=a.length;return i+(s<n?Array(n-s+1).join(r)+a:a)}function yi(e){return e.replace(hi,"\\$&")}function oe(e){return new RegExp("^(?:"+e.map(yi).join("|")+")","i")}function ce(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function gi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function ki(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function pi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Ti(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function vi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function jr(e,r,n){var i=kt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function Xr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function xi(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function bi(e,r,n){var i=kt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function wi(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function qr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Mi(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Gr(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Di(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Ci(e,r,n){var i=kt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Si(e,r,n){var i=kt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=kt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Yi(e,r,n){var i=mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Fi(e,r,n){var i=kt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=kt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function Qr(e,r){return ot(e.getDate(),r,2)}function Ui(e,r){return ot(e.getHours(),r,2)}function Li(e,r){return ot(e.getHours()%12||12,r,2)}function Wi(e,r){return ot(1+Dt.count(xt(e),e),r,3)}function rn(e,r){return ot(e.getMilliseconds(),r,3)}function Ei(e,r){return rn(e,r)+"000"}function Ai(e,r){return ot(e.getMonth()+1,r,2)}function Oi(e,r){return ot(e.getMinutes(),r,2)}function $i(e,r){return ot(e.getSeconds(),r,2)}function Hi(e){var r=e.getDay();return r===0?7:r}function Pi(e,r){return ot(Ct.count(xt(e)-1,e),r,2)}function nn(e){var r=e.getDay();return r>=4||r===0?It(e):It.ceil(e)}function Vi(e,r){return e=nn(e),ot(It.count(xt(e),e)+(xt(e).getDay()===4),r,2)}function zi(e){return e.getDay()}function Ri(e,r){return ot(Nt.count(xt(e)-1,e),r,2)}function Bi(e,r){return ot(e.getFullYear()%100,r,2)}function Zi(e,r){return e=nn(e),ot(e.getFullYear()%100,r,2)}function ji(e,r){return ot(e.getFullYear()%1e4,r,4)}function Xi(e,r){var n=e.getDay();return e=n>=4||n===0?It(e):It.ceil(e),ot(e.getFullYear()%1e4,r,4)}function qi(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ot(r/60|0,"0",2)+ot(r%60,"0",2)}function Jr(e,r){return ot(e.getUTCDate(),r,2)}function Gi(e,r){return ot(e.getUTCHours(),r,2)}function Ji(e,r){return ot(e.getUTCHours()%12||12,r,2)}function Ki(e,r){return ot(1+ae.count(St(e),e),r,3)}function an(e,r){return ot(e.getUTCMilliseconds(),r,3)}function ta(e,r){return an(e,r)+"000"}function ea(e,r){return ot(e.getUTCMonth()+1,r,2)}function ra(e,r){return ot(e.getUTCMinutes(),r,2)}function na(e,r){return ot(e.getUTCSeconds(),r,2)}function aa(e){var r=e.getUTCDay();return r===0?7:r}function sa(e,r){return ot(Rt.count(St(e)-1,e),r,2)}function sn(e){var r=e.getUTCDay();return r>=4||r===0?Pt(e):Pt.ceil(e)}function oa(e,r){return e=sn(e),ot(Pt.count(St(e),e)+(St(e).getUTCDay()===4),r,2)}function ca(e){return e.getUTCDay()}function ua(e,r){return ot(qt.count(St(e)-1,e),r,2)}function la(e,r){return ot(e.getUTCFullYear()%100,r,2)}function fa(e,r){return e=sn(e),ot(e.getUTCFullYear()%100,r,2)}function da(e,r){return ot(e.getUTCFullYear()%1e4,r,4)}function ma(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Pt(e):Pt.ceil(e),ot(e.getUTCFullYear()%1e4,r,4)}function ha(){return"+0000"}function Kr(){return"%"}function tn(e){return+e}function en(e){return Math.floor(+e/1000)}var Gt,Bt,on,cn,un;Qe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qe(e){return Gt=Ge(e),Bt=Gt.format,on=Gt.parse,cn=Gt.utcFormat,un=Gt.utcParse,Gt}function ya(e){return new Date(e)}function ga(e){return e instanceof Date?+e:+new Date(+e)}function ln(e,r,n,i,a,s,c,w,D,A){var _=Eu(),{invert:rt,domain:O}=_,Y=A(".%L"),E=A(":%S"),H=A("%I:%M"),I=A("%I %p"),Q=A("%a %d"),lt=A("%b %d"),it=A("%B"),N=A("%Y");function M(u){return(D(u)<u?Y:w(u)<u?E:c(u)<u?H:s(u)<u?I:i(u)<u?a(u)<u?Q:lt:n(u)<u?it:N)(u)}return _.invert=function(u){return new Date(rt(u))},_.domain=function(u){return arguments.length?O(Array.from(u,ga)):O().map(ya)},_.ticks=function(u){var L=O();return e(L[0],L[L.length-1],u==null?10:u)},_.tickFormat=function(u,L){return L==null?M:A(L)},_.nice=function(u){var L=O();if(!u||typeof u.range!=="function")u=r(L[0],L[L.length-1],u==null?10:u);return u?O(Ve(L,u)):_},_.copy=function(){return Dd(_,ln(e,r,n,i,a,s,c,w,D,A))},_}function Je(){return uo.apply(ln(Ze,je,xt,Ot,Ct,Dt,At,Et,vt,Bt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Tn=mn(Rs(),1),bt=mn(Zd(),1),vn=mn(fn(),1),xn=mn(dn(),1),bn=mn(hn(),1),Jt=mn(Zd(),1),Ln=mn(yn(),1);var cr=function(){var e=t(function(W,f,b,T){for(b=b||{},T=W.length;T--;b[W[T]]=f);return b},"o"),r=[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],n=[1,26],i=[1,27],a=[1,28],s=[1,29],c=[1,30],w=[1,31],D=[1,32],A=[1,33],_=[1,34],rt=[1,9],O=[1,10],Y=[1,11],E=[1,12],H=[1,13],I=[1,14],Q=[1,15],lt=[1,16],it=[1,19],N=[1,20],M=[1,21],u=[1,22],L=[1,23],tt=[1,25],et=[1,35],v={trace:t(function(){},"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:t(function(f,b,T,k,Z,o,X){var m=o.length-1;switch(Z){case 1:return o[m-1];case 2:this.$=[];break;case 3:o[m-1].push(o[m]),this.$=o[m-1];break;case 4:case 5:this.$=o[m];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[m].substr(18);break;case 19:k.TopAxis(),this.$=o[m].substr(8);break;case 20:k.setAxisFormat(o[m].substr(11)),this.$=o[m].substr(11);break;case 21:k.setTickInterval(o[m].substr(13)),this.$=o[m].substr(13);break;case 22:k.setExcludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 23:k.setIncludes(o[m].substr(9)),this.$=o[m].substr(9);break;case 24:k.setTodayMarker(o[m].substr(12)),this.$=o[m].substr(12);break;case 27:k.setDiagramTitle(o[m].substr(6)),this.$=o[m].substr(6);break;case 28:this.$=o[m].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[m].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[m].substr(8)),this.$=o[m].substr(8);break;case 33:k.addTask(o[m-1],o[m]),this.$="task";break;case 34:this.$=o[m-1],k.setClickEvent(o[m-1],o[m],null);break;case 35:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],o[m]);break;case 36:this.$=o[m-2],k.setClickEvent(o[m-2],o[m-1],null),k.setLink(o[m-2],o[m]);break;case 37:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-2],o[m-1]),k.setLink(o[m-3],o[m]);break;case 38:this.$=o[m-2],k.setClickEvent(o[m-2],o[m],null),k.setLink(o[m-2],o[m-1]);break;case 39:this.$=o[m-3],k.setClickEvent(o[m-3],o[m-1],o[m]),k.setLink(o[m-3],o[m-2]);break;case 40:this.$=o[m-1],k.setLink(o[m-1],o[m]);break;case 41:case 47:this.$=o[m-1]+" "+o[m];break;case 42:case 43:case 45:this.$=o[m-2]+" "+o[m-1]+" "+o[m];break;case 44:case 46:this.$=o[m-3]+" "+o[m-2]+" "+o[m-1]+" "+o[m];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:s,16:c,17:w,18:D,19:18,20:A,21:_,22:rt,23:O,24:Y,25:E,26:H,27:I,28:Q,29:lt,30:it,31:N,33:M,35:u,36:L,37:24,38:tt,40:et},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(f,b){if(b.recoverable)this.trace(f);else{var T=Error(f);throw T.hash=b,T}},"parseError"),parse:t(function(f){var b=this,T=[0],k=[],Z=[null],o=[],X=this.table,m="",dt=0,d=0,B=0,G=2,ct=1,ut=o.slice.call(arguments,1),nt=Object.create(this.lexer),g={yy:{}};for(var V in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,V))g.yy[V]=this.yy[V];if(nt.setInput(f,g.yy),g.yy.lexer=nt,g.yy.parser=this,typeof nt.yylloc>"u")nt.yylloc={};var J=nt.yylloc;o.push(J);var y=nt.options&&nt.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function mt(wt){T.length=T.length-2*wt,Z.length=Z.length-wt,o.length=o.length-wt}t(mt,"popStack");function at(){var wt=k.pop()||nt.lex()||ct;if(typeof wt!=="number"){if(wt instanceof Array)k=wt,wt=k.pop();wt=b.symbols_[wt]||wt}return wt}t(at,"lex");var st,ht,yt,pt,os,Ye,jt={},le,Lt,br,fe;while(!0){if(yt=T[T.length-1],this.defaultActions[yt])pt=this.defaultActions[yt];else{if(st===null||typeof st>"u")st=at();pt=X[yt]&&X[yt][st]}if(typeof pt>"u"||!pt.length||!pt[0]){var Fe="";fe=[];for(le in X[yt])if(this.terminals_[le]&&le>G)fe.push("'"+this.terminals_[le]+"'");if(nt.showPosition)Fe="Parse error on line "+(dt+1)+`:
|
|
2
2
|
`+nt.showPosition()+`
|
|
3
3
|
Expecting `+fe.join(", ")+", got '"+(this.terminals_[st]||st)+"'";else Fe="Parse error on line "+(dt+1)+": Unexpected "+(st==ct?"end of input":"'"+(this.terminals_[st]||st)+"'");this.parseError(Fe,{text:nt.match,token:this.terminals_[st]||st,line:nt.yylineno,loc:J,expected:fe})}if(pt[0]instanceof Array&&pt.length>1)throw Error("Parse Error: multiple actions possible at state: "+yt+", token: "+st);switch(pt[0]){case 1:if(T.push(st),Z.push(nt.yytext),o.push(nt.yylloc),T.push(pt[1]),st=null,!ht){if(d=nt.yyleng,m=nt.yytext,dt=nt.yylineno,J=nt.yylloc,B>0)B--}else st=ht,ht=null;break;case 2:if(Lt=this.productions_[pt[1]][1],jt.$=Z[Z.length-Lt],jt._$={first_line:o[o.length-(Lt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Lt||1)].first_column,last_column:o[o.length-1].last_column},y)jt._$.range=[o[o.length-(Lt||1)].range[0],o[o.length-1].range[1]];if(Ye=this.performAction.apply(jt,[m,d,dt,g.yy,pt[1],Z,o].concat(ut)),typeof Ye<"u")return Ye;if(Lt)T=T.slice(0,-1*Lt*2),Z=Z.slice(0,-1*Lt),o=o.slice(0,-1*Lt);T.push(this.productions_[pt[1]][0]),Z.push(jt.$),o.push(jt._$),br=X[T[T.length-2]][T[T.length-1]],T.push(br);break;case 3:return!0}}return!0},"parse")},S=function(){var W={EOF:1,parseError:t(function(b,T){if(this.yy.parser)this.yy.parser.parseError(b,T);else throw Error(b)},"parseError"),setInput:t(function(f,b){if(this.yy=b||this.yy||{},this._input=f,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];return this.offset=0,this},"setInput"),input:t(function(){var f=this._input[0];this.yytext+=f,this.yyleng++,this.offset++,this.match+=f,this.matched+=f;var b=f.match(/(?:\r\n?|\n).*/g);if(b)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),f},"input"),unput:t(function(f){var b=f.length,T=f.split(/(?:\r\n?|\n)/g);this._input=f+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1)this.yylineno-=T.length-1;var Z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:T?(T.length===k.length?this.yylloc.first_column:0)+k[k.length-T.length].length-T[0].length:this.yylloc.first_column-b},this.options.ranges)this.yylloc.range=[Z[0],Z[0]+this.yyleng-b];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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:t(function(f){this.unput(this.match.slice(f))},"less"),pastInput:t(function(){var f=this.matched.substr(0,this.matched.length-this.match.length);return(f.length>20?"...":"")+f.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var f=this.match;if(f.length<20)f+=this._input.substr(0,20-f.length);return(f.substr(0,20)+(f.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var f=this.pastInput(),b=Array(f.length+1).join("-");return f+this.upcomingInput()+`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{xf}from"./index-6fx2t6y7.js";export{xf as createGitGraphServices};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ki}from"./index-mxpgfj6p.js";import{be}from"./index-018ehs1n.js";import{t,l,V,C,x,R,F,z,P,U,q,j,p,Ol,h,Of,se,K}from"./index-wv36ddd5.js";import{De}from"./index-547h1b8j.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=V.gitGraph,Y=t(()=>se({...ke,...C().gitGraph}),"getConfig"),m=new ki(()=>{let e=Y(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return Of({length:7})}t(ae,"getID");function fe(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(fe,"uniqBy");var Ce=t(function(e){m.records.direction=e},"setDirection"),ve=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ee=t(function(){return m.records.options},"getOptions"),Te=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=Y();a=x.sanitizeText(a,d),r=x.sanitizeText(r,d),c=c?.map((o)=>x.sanitizeText(o,d));let s={id:a?a:m.records.seq+"-"+ae(),message:r,seq:m.records.seq++,type:n??k.NORMAL,tags:c??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=s,l.info("main branch",d.mainBranchName),m.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);m.records.commits.set(s.id,s),m.records.branches.set(m.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Le=t(function(e){let{name:r,order:a}=e;if(r=x.sanitizeText(r,Y()),m.records.branches.has(r))throw 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}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:a}),$e(r),l.debug("in createBranch")},"branch"),Me=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=Y();if(r=x.sanitizeText(r,d),a)a=x.sanitizeText(a,d);let s=m.records.branches.get(m.records.currBranch),o=m.records.branches.get(r),g=s?m.records.commits.get(s):void 0,y=o?m.records.commits.get(o):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let i=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!m.records.branches.has(r)){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(y===void 0||!y){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(g===y){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&m.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let u=o?o:"",f={id:a||`${m.records.seq}-${ae()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),l.debug(m.records.branches),l.debug("in mergeBranch")},"merge"),Pe=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=Y();if(r=x.sanitizeText(r,d),a=x.sanitizeText(a,d),n=n?.map((g)=>x.sanitizeText(g,d)),c=x.sanitizeText(c,d),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=m.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!m.records.commits.has(a)){if(o===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,s.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),l.debug(m.records.branches),l.debug("in cherryPick")}},"cherryPick"),$e=t(function(e){if(e=x.sanitizeText(e,Y()),!m.records.branches.has(e)){let r=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}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function ie(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ie,"upsert");function he(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in m.records.branches)if(m.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=m.records.commits.get(r.parents[0]);if(ie(e,r,c),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=m.records.commits.get(r.parents[0]);ie(e,r,c)}e=fe(e,(c)=>c.id),he(e)}t(he,"prettyPrintCommitHistory");var Re=t(function(){l.debug(m.records.commits);let e=pe()[0];he([e])},"prettyPrint"),Oe=t(function(){m.reset(),R()},"clear"),Ie=t(function(){return[...m.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),_e=t(function(){return m.records.branches},"getBranches"),Ge=t(function(){return m.records.commits},"getCommits"),pe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ye={commitType:k,getConfig:Y,setDirection:Ce,setOptions:ve,getOptions:Ee,commit:Te,branch:Le,merge:Me,cherryPick:Pe,checkout:$e,prettyPrint:Re,clear:Oe,getBranchesAsObjArray:Ie,getBranches:_e,getCommits:Ge,getCommitsArray:pe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:F,getAccTitle:z,getAccDescription:U,setAccDescription:P,setDiagramTitle:q,getDiagramTitle:j},He=t((e,r)=>{if(be(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await De("gitGraph",e);l.debug(r),He(r,ye)},"parse")},A=10,H=40,_=4,D=2,S=8,oe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),de=12,le=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),N=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),M=new Map,O=new Map,te=30,J=new Map,re=[],W=0,w="LR",Ve=t(()=>{M.clear(),O.clear(),J.clear(),W=0,re=[],w="LR"},"clear"),xe=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),ue=t((e)=>{let r,a,n;if(w==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=w==="TB"||w=="BT"?O.get(c)?.y:O.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=O.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=O.get(g).y-H,n<=c)c=n;let y=M.get(o.branch).pos,u=n-A;O.set(o.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=ue(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=O.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+H,"calculateCommitPosition"),et=t((e,r)=>{let a=M.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+A;return O.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=M.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;O.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=p(),o=oe.has(s??""),g=le.has(s??""),y=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${N(c,S,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${N(c,S,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let u=e.append("circle");if(u.attr("cx",a.x),u.attr("cy",a.y),u.attr("r",o?7:10),u.attr("class",`commit ${r.id} commit${N(c,S,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${N(c,S,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${N(c,S,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-D).attr("y",a.y+13.5).attr("width",g.width+2*D).attr("height",g.height+2*D),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*_+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*_)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;d.attr("transform","translate("+y+", "+u+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:u,rect:y,yOffset:c}),c+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
import{ki}from"./index-rebnv57p.js";import{be}from"./index-xfa5hswh.js";import{t,l,V,C,x,R,F,z,P,U,q,j,p,Ol,h,zf,se,K}from"./index-b6cyn4hr.js";import{De}from"./index-6fx2t6y7.js";var k={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ke=V.gitGraph,Y=t(()=>se({...ke,...C().gitGraph}),"getConfig"),m=new ki(()=>{let e=Y(),{mainBranchName:r,mainBranchOrder:a}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:a}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function ae(){return zf({length:7})}t(ae,"getID");function fe(e,r){let a=Object.create(null);return e.reduce((n,c)=>{let d=r(c);if(!a[d])a[d]=!0,n.push(c);return n},[])}t(fe,"uniqBy");var Ce=t(function(e){m.records.direction=e},"setDirection"),ve=t(function(e){l.debug("options str",e),e=e?.trim(),e=e||"{}";try{m.records.options=JSON.parse(e)}catch(r){l.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ee=t(function(){return m.records.options},"getOptions"),Te=t(function(e){let{msg:r,id:a,type:n,tags:c}=e;l.info("commit",r,a,n,c),l.debug("Entering commit:",r,a,n,c);let d=Y();a=x.sanitizeText(a,d),r=x.sanitizeText(r,d),c=c?.map((o)=>x.sanitizeText(o,d));let s={id:a?a:m.records.seq+"-"+ae(),message:r,seq:m.records.seq++,type:n??k.NORMAL,tags:c??[],parents:m.records.head==null?[]:[m.records.head.id],branch:m.records.currBranch};if(m.records.head=s,l.info("main branch",d.mainBranchName),m.records.commits.has(s.id))l.warn(`Commit ID ${s.id} already exists`);m.records.commits.set(s.id,s),m.records.branches.set(m.records.currBranch,s.id),l.debug("in pushCommit "+s.id)},"commit"),Le=t(function(e){let{name:r,order:a}=e;if(r=x.sanitizeText(r,Y()),m.records.branches.has(r))throw 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}")`);m.records.branches.set(r,m.records.head!=null?m.records.head.id:null),m.records.branchConfig.set(r,{name:r,order:a}),$e(r),l.debug("in createBranch")},"branch"),Me=t((e)=>{let{branch:r,id:a,type:n,tags:c}=e,d=Y();if(r=x.sanitizeText(r,d),a)a=x.sanitizeText(a,d);let s=m.records.branches.get(m.records.currBranch),o=m.records.branches.get(r),g=s?m.records.commits.get(s):void 0,y=o?m.records.commits.get(o):void 0;if(g&&y&&g.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(m.records.currBranch===r){let i=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(g===void 0||!g){let i=Error(`Incorrect usage of "merge". Current branch (${m.records.currBranch})has no commits`);throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},i}if(!m.records.branches.has(r)){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},i}if(y===void 0||!y){let i=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},i}if(g===y){let i=Error('Incorrect usage of "merge". Both branches have same head');throw i.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},i}if(a&&m.records.commits.has(a)){let i=Error('Incorrect usage of "merge". Commit with id:'+a+" already exists, use different custom id");throw i.hash={text:`merge ${r} ${a} ${n} ${c?.join(" ")}`,token:`merge ${r} ${a} ${n} ${c?.join(" ")}`,expected:[`merge ${r} ${a}_UNIQUE ${n} ${c?.join(" ")}`]},i}let u=o?o:"",f={id:a||`${m.records.seq}-${ae()}`,message:`merged branch ${r} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,u],branch:m.records.currBranch,type:k.MERGE,customType:n,customId:a?!0:!1,tags:c??[]};m.records.head=f,m.records.commits.set(f.id,f),m.records.branches.set(m.records.currBranch,f.id),l.debug(m.records.branches),l.debug("in mergeBranch")},"merge"),Pe=t(function(e){let{id:r,targetId:a,tags:n,parent:c}=e;l.debug("Entering cherryPick:",r,a,n);let d=Y();if(r=x.sanitizeText(r,d),a=x.sanitizeText(a,d),n=n?.map((g)=>x.sanitizeText(g,d)),c=x.sanitizeText(c,d),!r||!m.records.commits.has(r)){let g=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},g}let s=m.records.commits.get(r);if(s===void 0||!s)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(c&&!(Array.isArray(s.parents)&&s.parents.includes(c)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let o=s.branch;if(s.type===k.MERGE&&!c)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!a||!m.records.commits.has(a)){if(o===m.records.currBranch){let f=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let g=m.records.branches.get(m.records.currBranch);if(g===void 0||!g){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let y=m.records.commits.get(g);if(y===void 0||!y){let f=Error(`Incorrect usage of "cherry-pick". Current branch (${m.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${r} ${a}`,token:`cherryPick ${r} ${a}`,expected:["cherry-pick abc"]},f}let u={id:m.records.seq+"-"+ae(),message:`cherry-picked ${s?.message} into ${m.records.currBranch}`,seq:m.records.seq++,parents:m.records.head==null?[]:[m.records.head.id,s.id],branch:m.records.currBranch,type:k.CHERRY_PICK,tags:n?n.filter(Boolean):[`cherry-pick:${s.id}${s.type===k.MERGE?`|parent:${c}`:""}`]};m.records.head=u,m.records.commits.set(u.id,u),m.records.branches.set(m.records.currBranch,u.id),l.debug(m.records.branches),l.debug("in cherryPick")}},"cherryPick"),$e=t(function(e){if(e=x.sanitizeText(e,Y()),!m.records.branches.has(e)){let r=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}else{m.records.currBranch=e;let r=m.records.branches.get(m.records.currBranch);if(r===void 0||!r)m.records.head=null;else m.records.head=m.records.commits.get(r)??null}},"checkout");function ie(e,r,a){let n=e.indexOf(r);if(n===-1)e.push(a);else e.splice(n,1,a)}t(ie,"upsert");function he(e){let r=e.reduce((c,d)=>{if(c.seq>d.seq)return c;return d},e[0]),a="";e.forEach(function(c){if(c===r)a+="\t*";else a+="\t|"});let n=[a,r.id,r.seq];for(let c in m.records.branches)if(m.records.branches.get(c)===r.id)n.push(c);if(l.debug(n.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let c=m.records.commits.get(r.parents[0]);if(ie(e,r,c),r.parents[1])e.push(m.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let c=m.records.commits.get(r.parents[0]);ie(e,r,c)}e=fe(e,(c)=>c.id),he(e)}t(he,"prettyPrintCommitHistory");var Re=t(function(){l.debug(m.records.commits);let e=pe()[0];he([e])},"prettyPrint"),Oe=t(function(){m.reset(),R()},"clear"),Ie=t(function(){return[...m.records.branchConfig.values()].map((r,a)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${a}`)}}).sort((r,a)=>(r.order??0)-(a.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),_e=t(function(){return m.records.branches},"getBranches"),Ge=t(function(){return m.records.commits},"getCommits"),pe=t(function(){let e=[...m.records.commits.values()];return e.forEach(function(r){l.debug(r.id)}),e.sort((r,a)=>r.seq-a.seq),e},"getCommitsArray"),We=t(function(){return m.records.currBranch},"getCurrentBranch"),qe=t(function(){return m.records.direction},"getDirection"),Ae=t(function(){return m.records.head},"getHead"),ye={commitType:k,getConfig:Y,setDirection:Ce,setOptions:ve,getOptions:Ee,commit:Te,branch:Le,merge:Me,cherryPick:Pe,checkout:$e,prettyPrint:Re,clear:Oe,getBranchesAsObjArray:Ie,getBranches:_e,getCommits:Ge,getCommitsArray:pe,getCurrentBranch:We,getDirection:qe,getHead:Ae,setAccTitle:F,getAccTitle:z,getAccDescription:U,setAccDescription:P,setDiagramTitle:q,getDiagramTitle:j},He=t((e,r)=>{if(be(e,r),e.dir)r.setDirection(e.dir);for(let a of e.statements)Se(a,r)},"populate"),Se=t((e,r)=>{let n={Commit:t((c)=>r.commit(Ne(c)),"Commit"),Branch:t((c)=>r.branch(Fe(c)),"Branch"),Merge:t((c)=>r.merge(ze(c)),"Merge"),Checkout:t((c)=>r.checkout(Ye(c)),"Checkout"),CherryPicking:t((c)=>r.cherryPick(je(c)),"CherryPicking")}[e.$type];if(n)n(e);else l.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ne=t((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?k[e.type]:k.NORMAL,tags:e.tags??void 0}),"parseCommit"),Fe=t((e)=>({name:e.name,order:e.order??0}),"parseBranch"),ze=t((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?k[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ye=t((e)=>e.branch,"parseCheckout"),je=t((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ke={parse:t(async(e)=>{let r=await De("gitGraph",e);l.debug(r),He(r,ye)},"parse")},A=10,H=40,_=4,D=2,S=8,oe=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),de=12,le=new Set(["redux-color","redux-dark-color"]),Ue=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),N=t((e,r,a=!1)=>{if(a&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),M=new Map,O=new Map,te=30,J=new Map,re=[],W=0,w="LR",Ve=t(()=>{M.clear(),O.clear(),J.clear(),W=0,re=[],w="LR"},"clear"),xe=t((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach((n)=>{let c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),c.setAttribute("class","row"),c.textContent=n.trim(),r.appendChild(c)}),r},"drawText"),ue=t((e)=>{let r,a,n;if(w==="BT")a=t((c,d)=>c<=d,"comparisonFunc"),n=1/0;else a=t((c,d)=>c>=d,"comparisonFunc"),n=0;return e.forEach((c)=>{let d=w==="TB"||w=="BT"?O.get(c)?.y:O.get(c)?.x;if(d!==void 0&&a(d,n))r=c,n=d}),r},"findClosestParent"),Ze=t((e)=>{let r="",a=1/0;return e.forEach((n)=>{let c=O.get(n).y;if(c<=a)r=n,a=c}),r||void 0},"findClosestParentBT"),Xe=t((e,r,a)=>{let n=a,c=a,d=[];e.forEach((s)=>{let o=r.get(s);if(!o)throw Error(`Commit not found for key ${s}`);if(o.parents.length)n=Qe(o),c=Math.max(n,c);else d.push(o);et(o,n)}),n=c,d.forEach((s)=>{tt(s,n,a)}),e.forEach((s)=>{let o=r.get(s);if(o?.parents.length){let g=Ze(o.parents);if(n=O.get(g).y-H,n<=c)c=n;let y=M.get(o.branch).pos,u=n-A;O.set(o.id,{x:y,y:u})}})},"setParallelBTPos"),Je=t((e)=>{let r=ue(e.parents.filter((n)=>n!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let a=O.get(r)?.y;if(a===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return a},"findClosestParentPos"),Qe=t((e)=>Je(e)+H,"calculateCommitPosition"),et=t((e,r)=>{let a=M.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let n=a.pos,c=r+A;return O.set(e.id,{x:n,y:c}),{x:n,y:c}},"setCommitPosition"),tt=t((e,r,a)=>{let n=M.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let c=r+a,d=n.pos;O.set(e.id,{x:d,y:c})},"setRootPosition"),rt=t((e,r,a,n,c,d)=>{let{theme:s}=p(),o=oe.has(s??""),g=le.has(s??""),y=Ue.has(s??"");if(d===k.HIGHLIGHT)e.append("rect").attr("x",a.x-10+(o?3:0)).attr("y",a.y-10+(o?3:0)).attr("width",o?14:20).attr("height",o?14:20).attr("class",`commit ${r.id} commit-highlight${N(c,S,g)} ${n}-outer`),e.append("rect").attr("x",a.x-6+(o?2:0)).attr("y",a.y-6+(o?2:0)).attr("width",o?8:12).attr("height",o?8:12).attr("class",`commit ${r.id} commit${N(c,S,g)} ${n}-inner`);else if(d===k.CHERRY_PICK)e.append("circle").attr("cx",a.x).attr("cy",a.y).attr("r",o?7:10).attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x-3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("circle").attr("cx",a.x+3).attr("cy",a.y+2).attr("r",o?2.5:2.75).attr("fill",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x+3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`),e.append("line").attr("x1",a.x-3).attr("y1",a.y+1).attr("x2",a.x).attr("y2",a.y-5).attr("stroke",y?"#000000":"#fff").attr("class",`commit ${r.id} ${n}`);else{let u=e.append("circle");if(u.attr("cx",a.x),u.attr("cy",a.y),u.attr("r",o?7:10),u.attr("class",`commit ${r.id} commit${N(c,S,g)}`),d===k.MERGE){let f=e.append("circle");f.attr("cx",a.x),f.attr("cy",a.y),f.attr("r",o?5:6),f.attr("class",`commit ${n} ${r.id} commit${N(c,S,g)}`)}if(d===k.REVERSE){let f=e.append("path"),i=o?4:5;f.attr("d",`M ${a.x-i},${a.y-i}L${a.x+i},${a.y+i}M${a.x-i},${a.y+i}L${a.x+i},${a.y-i}`).attr("class",`commit ${n} ${r.id} commit${N(c,S,g)}`)}}},"drawCommitBullet"),at=t((e,r,a,n,c)=>{if(r.type!==k.CHERRY_PICK&&(r.customId&&r.type===k.MERGE||r.type!==k.MERGE)&&c.showCommitLabel){let d=e.append("g"),s=d.insert("rect").attr("class","commit-label-bkg"),o=d.append("text").attr("x",n).attr("y",a.y+25).attr("class","commit-label").text(r.id),g=o.node()?.getBBox();if(g){if(s.attr("x",a.posWithOffset-g.width/2-D).attr("y",a.y+13.5).attr("width",g.width+2*D).attr("height",g.height+2*D),w==="TB"||w==="BT")s.attr("x",a.x-(g.width+4*_+5)).attr("y",a.y-12),o.attr("x",a.x-(g.width+4*_)).attr("y",a.y+g.height-12);else o.attr("x",a.posWithOffset-g.width/2);if(c.rotateCommitLabel)if(w==="TB"||w==="BT")o.attr("transform","rotate(-45, "+a.x+", "+a.y+")"),s.attr("transform","rotate(-45, "+a.x+", "+a.y+")");else{let y=-7.5-(g.width+10)/25*9.5,u=10+g.width/25*8.5;d.attr("transform","translate("+y+", "+u+") rotate(-45, "+n+", "+a.y+")")}}}},"drawCommitLabel"),ot=t((e,r,a,n)=>{if(r.tags.length>0){let c=0,d=0,s=0,o=[];for(let g of r.tags.reverse()){let y=e.insert("polygon"),u=e.append("circle"),f=e.append("text").attr("y",a.y-16-c).attr("class","tag-label").text(g),i=f.node()?.getBBox();if(!i)throw Error("Tag bbox not found");d=Math.max(d,i.width),s=Math.max(s,i.height),f.attr("x",a.posWithOffset-i.width/2),o.push({tag:f,hole:u,rect:y,yOffset:c}),c+=20}for(let{tag:g,hole:y,rect:u,yOffset:f}of o){let i=s/2,B=a.y-19.2-f;if(u.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${n-d/2-_/2},${B+D}
|
|
3
3
|
${n-d/2-_/2},${B-D}
|
|
4
4
|
${a.posWithOffset-d/2-_},${B-i-D}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wf}from"./index-9dnkfpx4.js";import"./index-agdbjh5k.js";import"./index-sj4y8kj2.js";import"./index-xf36nmbm.js";import"./index-e7yf273s.js";export{Wf as default};
|