@flyfish-group/file-viewer-web 1.0.9

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.
Files changed (201) hide show
  1. package/LICENSE +160 -0
  2. package/README.md +41 -0
  3. package/dist/index.d.ts +60 -0
  4. package/dist/index.js +165 -0
  5. package/dist/node.d.ts +23 -0
  6. package/dist/node.js +43 -0
  7. package/package.json +67 -0
  8. package/scripts/copy-assets.mjs +59 -0
  9. package/viewer/assets/AudioViewer-0CSMvCtp.css +1 -0
  10. package/viewer/assets/AudioViewer-HHLkFx24.js +1 -0
  11. package/viewer/assets/CadViewer-BYC0zQ0T.js +1 -0
  12. package/viewer/assets/CadViewer-Cv8b95Gj.css +1 -0
  13. package/viewer/assets/CodeViewer-HGV-dwr6.css +1 -0
  14. package/viewer/assets/CodeViewer-VQE6BewI.js +4 -0
  15. package/viewer/assets/DrawingViewer-BtEGTvJQ.js +2 -0
  16. package/viewer/assets/DrawingViewer-CHm6iXmV.css +1 -0
  17. package/viewer/assets/EpubViewer-5hOhOgl5.js +2 -0
  18. package/viewer/assets/EpubViewer-Cci0l1Vm.css +1 -0
  19. package/viewer/assets/ImageViewer-D2_fTk_7.css +10 -0
  20. package/viewer/assets/ImageViewer-D8t2LOeu.js +1 -0
  21. package/viewer/assets/MarkdownViewer-47tSKoCN.css +1 -0
  22. package/viewer/assets/MarkdownViewer-CauCMix8.js +64 -0
  23. package/viewer/assets/OfdViewer-DZCDN3UD.css +1 -0
  24. package/viewer/assets/OfdViewer-d-bt92VG.js +2 -0
  25. package/viewer/assets/PdfView-BmvyynSl.js +558 -0
  26. package/viewer/assets/PdfView-CS_IFVnD.css +1 -0
  27. package/viewer/assets/PptxRender-BQ5mqB0E.css +1 -0
  28. package/viewer/assets/PptxRender-DPUrsWGR.js +32 -0
  29. package/viewer/assets/UmdViewer-DgDIrlID.js +3 -0
  30. package/viewer/assets/UmdViewer-DpObj56a.css +1 -0
  31. package/viewer/assets/XlsxTable-BxlH06s2.css +1 -0
  32. package/viewer/assets/XlsxTable-Dca8o5_N.js +5 -0
  33. package/viewer/assets/ar-SA-G6X2FPQ2-DWAZRxPu.js +10 -0
  34. package/viewer/assets/arc-Dimj_7G-.js +1 -0
  35. package/viewer/assets/architecture-7EHR7CIX-PuoqTBea.js +1 -0
  36. package/viewer/assets/architectureDiagram-3BPJPVTR-ourcMGqp.js +36 -0
  37. package/viewer/assets/az-AZ-76LH7QW2-CD-SA1wC.js +1 -0
  38. package/viewer/assets/bg-BG-XCXSNQG7-lFFvFyxW.js +5 -0
  39. package/viewer/assets/blockDiagram-GPEHLZMM-DETJLwVU.js +132 -0
  40. package/viewer/assets/bn-BD-2XOGV67Q-CuUcZaL8.js +5 -0
  41. package/viewer/assets/c4Diagram-AAUBKEIU-DCfnD0yS.js +10 -0
  42. package/viewer/assets/ca-ES-6MX7JW3Y-Cj4OlC6R.js +8 -0
  43. package/viewer/assets/channel-Cvj3_InT.js +1 -0
  44. package/viewer/assets/chunk-2J33WTMH-vXxffsmH.js +1 -0
  45. package/viewer/assets/chunk-3OPIFGDE-C9LtEwmG.js +62 -0
  46. package/viewer/assets/chunk-4BX2VUAB-CIKyExbu.js +1 -0
  47. package/viewer/assets/chunk-55IACEB6-uprZKw0K.js +1 -0
  48. package/viewer/assets/chunk-5ZQYHXKU-C2girjDc.js +2 -0
  49. package/viewer/assets/chunk-6U3AYISY-sM9HnDSj.js +12 -0
  50. package/viewer/assets/chunk-727SXJPM-BJJusOVj.js +206 -0
  51. package/viewer/assets/chunk-AGHRB4JF-vbzngFky.js +1 -0
  52. package/viewer/assets/chunk-AQP2D5EJ-BPoH0fiI.js +231 -0
  53. package/viewer/assets/chunk-BSJP7CBP-9m7kELGq.js +1 -0
  54. package/viewer/assets/chunk-CSCIHK7Q-OdsAx3G8.js +124 -0
  55. package/viewer/assets/chunk-EIO257PC-B13QElRc.js +22 -0
  56. package/viewer/assets/chunk-FMBD7UC4-DiXlV5mw.js +15 -0
  57. package/viewer/assets/chunk-K2UTITRG-CJkr0tXj.js +35 -0
  58. package/viewer/assets/chunk-KSCS5N6A-WSLcjFr5.js +10 -0
  59. package/viewer/assets/chunk-L5ZTLDWV-B_HlbJUe.js +1 -0
  60. package/viewer/assets/chunk-LZXEDZCA-Cqd1LSkM.js +2 -0
  61. package/viewer/assets/chunk-ND2GUHAM-28eJdx7E.js +1 -0
  62. package/viewer/assets/chunk-NZK2D7GU-BUIZFEFT.js +1 -0
  63. package/viewer/assets/chunk-O5CBEL6O-DZNjSn6F.js +70 -0
  64. package/viewer/assets/chunk-QZHKN3VN-DQmrlo26.js +1 -0
  65. package/viewer/assets/chunk-SRAX5OIU-D2mqL_eA.js +1 -0
  66. package/viewer/assets/chunk-WU5MYG2G-CI2E4kog.js +1 -0
  67. package/viewer/assets/chunk-XPW4576I-CvDbpA2d.js +32 -0
  68. package/viewer/assets/chunk-Z3N5DIM6-DVAc8Qv7.js +1 -0
  69. package/viewer/assets/chunk-ZUYEQ4TG-DaQMhOk1.js +7 -0
  70. package/viewer/assets/classDiagram-4FO5ZUOK-BR_8dE4R.js +1 -0
  71. package/viewer/assets/classDiagram-v2-Q7XG4LA2-BSPdc-Mh.js +1 -0
  72. package/viewer/assets/cose-bilkent-S5V4N54A-DT4OXn3T.js +1 -0
  73. package/viewer/assets/cs-CZ-2BRQDIVT-9YP2OnzR.js +11 -0
  74. package/viewer/assets/cytoscape.esm-DQPqE0MR.js +321 -0
  75. package/viewer/assets/da-DK-5WZEPLOC-DyH5OvyC.js +5 -0
  76. package/viewer/assets/dagre-BM42HDAG-BQqjetsc.js +4 -0
  77. package/viewer/assets/dagre-D7L3ChvY.js +1 -0
  78. package/viewer/assets/de-DE-XR44H4JA-Dm-lIYs8.js +8 -0
  79. package/viewer/assets/defaultLocale-GXPQCpCV.js +1 -0
  80. package/viewer/assets/diagram-2AECGRRQ-DQj687EE.js +43 -0
  81. package/viewer/assets/diagram-5GNKFQAL-C9cKajpJ.js +10 -0
  82. package/viewer/assets/diagram-KO2AKTUF-BrHr9ddz.js +3 -0
  83. package/viewer/assets/diagram-LMA3HP47-B_3VIpAA.js +24 -0
  84. package/viewer/assets/diagram-OG6HWLK6-CKGkIofl.js +24 -0
  85. package/viewer/assets/directory-open-01563666-DJpMaT5E.js +1 -0
  86. package/viewer/assets/directory-open-4ed118d0-vrMz6VGC.js +1 -0
  87. package/viewer/assets/dist-BWLXExfL.js +27 -0
  88. package/viewer/assets/dist-Bl_HJvJC.js +1 -0
  89. package/viewer/assets/dist-CDIdMEAB.js +7 -0
  90. package/viewer/assets/docx-preview-CiJ_X4bw.js +20 -0
  91. package/viewer/assets/el-GR-BZB4AONW-r581kidc.js +10 -0
  92. package/viewer/assets/en-B4ZKOASM-Crn8bm25.js +1 -0
  93. package/viewer/assets/erDiagram-TEJ5UH35-BEdSv6Fr.js +85 -0
  94. package/viewer/assets/es-ES-U4NZUMDT-Cwbu6VfM.js +9 -0
  95. package/viewer/assets/eu-ES-A7QVB2H4-BQQ8mY2m.js +11 -0
  96. package/viewer/assets/eventmodeling-FCH6USID-ClPyqCMG.js +1 -0
  97. package/viewer/assets/fa-IR-HGAKTJCU-eYy7h0Hx.js +8 -0
  98. package/viewer/assets/fi-FI-Z5N7JZ37-0dUJDB5b.js +6 -0
  99. package/viewer/assets/file-open-002ab408-D8YX4_im.js +1 -0
  100. package/viewer/assets/file-open-7c801643-ssV9zcu_.js +1 -0
  101. package/viewer/assets/file-save-3189631c-DxUkN-yO.js +1 -0
  102. package/viewer/assets/file-save-745eba88-VPL_lGKy.js +1 -0
  103. package/viewer/assets/flowDiagram-I6XJVG4X-BuWsqPkc.js +162 -0
  104. package/viewer/assets/fr-FR-RHASNOE6-CcYw1Zvt.js +9 -0
  105. package/viewer/assets/ganttDiagram-6RSMTGT7-CJySS69b.js +292 -0
  106. package/viewer/assets/gitGraph-WXDBUCRP-ce180Qdx.js +1 -0
  107. package/viewer/assets/gitGraphDiagram-PVQCEYII-DR2VhZO_.js +106 -0
  108. package/viewer/assets/gl-ES-HMX3MZ6V-C3Iv5ndX.js +10 -0
  109. package/viewer/assets/graphlib-Bk2wNdF0.js +1 -0
  110. package/viewer/assets/he-IL-6SHJWFNN-CL8Or2hC.js +10 -0
  111. package/viewer/assets/hi-IN-IWLTKZ5I-DgAD87B-.js +4 -0
  112. package/viewer/assets/hu-HU-A5ZG7DT2-B8ITrvUt.js +7 -0
  113. package/viewer/assets/id-ID-SAP4L64H-VQ2OqDi1.js +10 -0
  114. package/viewer/assets/image-GAAHSSAO-DbYjE9JA.js +1 -0
  115. package/viewer/assets/image-blob-reduce.esm-Co0wHMYu.js +2 -0
  116. package/viewer/assets/index-0hvuUhZv.js +106 -0
  117. package/viewer/assets/index-Bwjgtadn.css +1 -0
  118. package/viewer/assets/info-J43DQDTF-CMRAUPs-.js +1 -0
  119. package/viewer/assets/infoDiagram-5YYISTIA-DxNv4IA7.js +2 -0
  120. package/viewer/assets/init-Bj57mB65.js +1 -0
  121. package/viewer/assets/ishikawaDiagram-YF4QCWOH-2rCqsio7.js +70 -0
  122. package/viewer/assets/it-IT-JPQ66NNP-D777F8zf.js +11 -0
  123. package/viewer/assets/ja-JP-DBVTYXUO-D1PJdPJe.js +8 -0
  124. package/viewer/assets/journeyDiagram-JHISSGLW-DQQq5Lp7.js +139 -0
  125. package/viewer/assets/jszip.min-D1xSKQ08.js +2 -0
  126. package/viewer/assets/kaa-6HZHGXH3-fRgBr8Mi.js +1 -0
  127. package/viewer/assets/kab-KAB-ZGHBKWFO-DlQ49dRn.js +8 -0
  128. package/viewer/assets/kanban-definition-UN3LZRKU-B5eO6Mg1.js +89 -0
  129. package/viewer/assets/katex-C22v-RF3.js +257 -0
  130. package/viewer/assets/kk-KZ-P5N5QNE5-Hq_H-Gj0.js +1 -0
  131. package/viewer/assets/km-KH-HSX4SM5Z-BhI31DxZ.js +11 -0
  132. package/viewer/assets/ko-KR-MTYHY66A-ImUZQcvz.js +9 -0
  133. package/viewer/assets/ku-TR-6OUDTVRD-DfaC8QXn.js +9 -0
  134. package/viewer/assets/linear-CjCAJGt1.js +1 -0
  135. package/viewer/assets/logo-DG62cSZK.png +0 -0
  136. package/viewer/assets/lt-LT-XHIRWOB4-I-ZCC3dU.js +3 -0
  137. package/viewer/assets/lv-LV-5QDEKY6T-Qq5QdgfN.js +7 -0
  138. package/viewer/assets/mermaid-parser.core-Bdy3q53b.js +161 -0
  139. package/viewer/assets/mindmap-definition-RKZ34NQL-m96D2ClP.js +96 -0
  140. package/viewer/assets/mr-IN-CRQNXWMA-BeP3PnlU.js +13 -0
  141. package/viewer/assets/my-MM-5M5IBNSE-BYx0eFn7.js +1 -0
  142. package/viewer/assets/nb-NO-T6EIAALU-C9J5JzGe.js +10 -0
  143. package/viewer/assets/nl-NL-IS3SIHDZ-CMVLrD7F.js +8 -0
  144. package/viewer/assets/nn-NO-6E72VCQL-BBxsrvc2.js +8 -0
  145. package/viewer/assets/oc-FR-POXYY2M6-CHEXPovt.js +8 -0
  146. package/viewer/assets/ofd-D8TA6tcU.js +6 -0
  147. package/viewer/assets/ordinal-CEZ33b-s.js +1 -0
  148. package/viewer/assets/pa-IN-N4M65BXN-Bnyu119-.js +4 -0
  149. package/viewer/assets/packet-YPE3B663-mGtuymGQ.js +1 -0
  150. package/viewer/assets/pdf.worker-BZPf8fJG.js +50 -0
  151. package/viewer/assets/percentages-BXMCSKIN-CBvdjJLu.js +1 -0
  152. package/viewer/assets/pica-CB7jwGa3.js +2 -0
  153. package/viewer/assets/pie-DUmD7IHG.js +1 -0
  154. package/viewer/assets/pie-LRSECV5Y-CGMZQePM.js +1 -0
  155. package/viewer/assets/pieDiagram-4H26LBE5-DVleOheM.js +30 -0
  156. package/viewer/assets/pl-PL-T2D74RX3-Cw72z8vE.js +9 -0
  157. package/viewer/assets/pptx.worker-c0GnmoEE.js +23 -0
  158. package/viewer/assets/prod-Npfld6sP.js +149 -0
  159. package/viewer/assets/pt-BR-5N22H2LF-ok3TV3dt.js +9 -0
  160. package/viewer/assets/pt-PT-UZXXM6DQ-BX423IXU.js +9 -0
  161. package/viewer/assets/quadrantDiagram-W4KKPZXB-CV_EkNJ-.js +7 -0
  162. package/viewer/assets/radar-GUYGQ44K-C81hKZN2.js +1 -0
  163. package/viewer/assets/requirementDiagram-4Y6WPE33-B_kmlnjO.js +84 -0
  164. package/viewer/assets/ro-RO-JPDTUUEW-Pv4aDgxu.js +11 -0
  165. package/viewer/assets/rough.esm-BrTFrov0.js +1 -0
  166. package/viewer/assets/roundRect-BDOnP7qU.js +1 -0
  167. package/viewer/assets/ru-RU-B4JR7IUQ-BGRCDPgW.js +9 -0
  168. package/viewer/assets/sankeyDiagram-5OEKKPKP-CCXvqmNS.js +40 -0
  169. package/viewer/assets/sequenceDiagram-3UESZ5HK-CoR9l1O_.js +162 -0
  170. package/viewer/assets/sheet.worker-DXcmIjpw.js +68 -0
  171. package/viewer/assets/si-LK-N5RQ5JYF-CSeZ8jFh.js +1 -0
  172. package/viewer/assets/sk-SK-C5VTKIMK-BrMoO_Q1.js +6 -0
  173. package/viewer/assets/sl-SI-NN7IZMDC-B_x--94y.js +6 -0
  174. package/viewer/assets/src-BBw8FbvP.js +1 -0
  175. package/viewer/assets/src-BbUo_1sw.js +5 -0
  176. package/viewer/assets/stateDiagram-AJRCARHV-DdTaUVJA.js +1 -0
  177. package/viewer/assets/stateDiagram-v2-BHNVJYJU-D9_r8kG7.js +1 -0
  178. package/viewer/assets/subset-shared.chunk-DpZLNUjP.js +1 -0
  179. package/viewer/assets/subset-worker.chunk-DoDHTOze.js +1 -0
  180. package/viewer/assets/sv-SE-XGPEYMSR-BB4gq_Zc.js +10 -0
  181. package/viewer/assets/ta-IN-2NMHFXQM-9zxtttPw.js +9 -0
  182. package/viewer/assets/th-TH-HPSO5L25-Bu674ZxS.js +2 -0
  183. package/viewer/assets/time-0omzMTb_.js +1 -0
  184. package/viewer/assets/timeline-definition-PNZ67QCA-CLUsDmue.js +120 -0
  185. package/viewer/assets/tr-TR-DEFEU3FU-BOU8hW6c.js +7 -0
  186. package/viewer/assets/treeView-BLDUP644-NZTNRLdP.js +1 -0
  187. package/viewer/assets/treemap-LRROVOQU-BMknj0en.js +1 -0
  188. package/viewer/assets/uk-UA-QMV73CPH-DExt1pCB.js +6 -0
  189. package/viewer/assets/vennDiagram-CIIHVFJN-DFmAzwyu.js +34 -0
  190. package/viewer/assets/vi-VN-M7AON7JQ-ChzDxy_w.js +5 -0
  191. package/viewer/assets/wardley-L42UT6IY-D9i-Iven.js +1 -0
  192. package/viewer/assets/wardleyDiagram-YWT4CUSO-DpnSL_l7.js +78 -0
  193. package/viewer/assets/worker-ref-zQl5Zn-S.js +1 -0
  194. package/viewer/assets/xlsx-ff7ER-JZ.png +0 -0
  195. package/viewer/assets/xychartDiagram-2RQKCTM6-DTybmPGf.js +7 -0
  196. package/viewer/assets/zh-CN-LNUGB5OW-AIyEr3br.js +10 -0
  197. package/viewer/assets/zh-HK-E62DVLB3-CyQvIghB.js +1 -0
  198. package/viewer/assets/zh-TW-RAJ6MFWO-C9bb32Ou.js +9 -0
  199. package/viewer/favicon.ico +0 -0
  200. package/viewer/flyfish-viewer-manifest.json +5 -0
  201. package/viewer/index.html +14 -0
@@ -0,0 +1,292 @@
1
+ import{A as e,D as t}from"./index-0hvuUhZv.js";import{a as n,n as r,r as i}from"./chunk-AGHRB4JF-vbzngFky.js";import{H as a,K as o,U as s,a as c,c as l,s as u,v as d,w as f,x as p,y as m}from"./chunk-CSCIHK7Q-OdsAx3G8.js";import{t as h}from"./linear-CjCAJGt1.js";import{D as g,E as _,M as v,S as y,_ as b,b as x,f as S,g as C,h as w,k as T,m as E,n as D,p as O,r as k,u as A,v as j,w as M}from"./time-0omzMTb_.js";import{K as N,Q as ee,U as te,W as P,X as F,Y as ne,Z as I,q as L}from"./src-BBw8FbvP.js";import{g as re}from"./chunk-5ZQYHXKU-C2girjDc.js";import{t as ie}from"./dist-Bl_HJvJC.js";function ae(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function oe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var se=Math.PI/180,ce=180/Math.PI,R=18,le=.96422,ue=1,de=.82521,fe=4/29,z=6/29,pe=3*z*z,me=z*z*z;function he(e){if(e instanceof B)return new B(e.l,e.a,e.b,e.opacity);if(e instanceof V)return Ce(e);e instanceof L||(e=ne(e));var t=be(e.r),n=be(e.g),r=be(e.b),i=_e((.2225045*t+.7168786*n+.0606169*r)/ue),a,o;return t===n&&n===r?a=o=i:(a=_e((.4360747*t+.3850649*n+.1430804*r)/le),o=_e((.0139322*t+.0971045*n+.7141733*r)/de)),new B(116*i-16,500*(a-i),200*(i-o),e.opacity)}function ge(e,t,n,r){return arguments.length===1?he(e):new B(e,t,n,r??1)}function B(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}F(B,ge,I(N,{brighter(e){return new B(this.l+R*(e??1),this.a,this.b,this.opacity)},darker(e){return new B(this.l-R*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=le*ve(t),e=ue*ve(e),n=de*ve(n),new L(ye(3.1338561*t-1.6168667*e-.4906146*n),ye(-.9787684*t+1.9161415*e+.033454*n),ye(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function _e(e){return e>me?e**(1/3):e/pe+fe}function ve(e){return e>z?e*e*e:pe*(e-fe)}function ye(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function be(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function xe(e){if(e instanceof V)return new V(e.h,e.c,e.l,e.opacity);if(e instanceof B||(e=he(e)),e.a===0&&e.b===0)return new V(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ce;return new V(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Se(e,t,n,r){return arguments.length===1?xe(e):new V(e,t,n,r??1)}function V(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Ce(e){if(isNaN(e.h))return new B(e.l,0,0,e.opacity);var t=e.h*se;return new B(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}F(V,Se,I(N,{brighter(e){return new V(this.h,this.c,this.l+R*(e??1),this.opacity)},darker(e){return new V(this.h,this.c,this.l-R*(e??1),this.opacity)},rgb(){return Ce(this).rgb()}}));function we(e){return function(t,n){var r=e((t=Se(t)).h,(n=Se(n)).h),i=P(t.c,n.c),a=P(t.l,n.l),o=P(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var Te=we(te),Ee=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))})),De=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),Oe=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`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(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),ke=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/s),e%=s,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(o,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),Ae=ie(),H=e(n(),1),je=e(Ee(),1),Me=e(De(),1),Ne=e(Oe(),1),Pe=e(ke(),1),Fe=(function(){var e=r(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[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],o=[1,29],s=[1,30],c=[1,31],l=[1,32],u=[1,33],d=[1,34],f=[1,9],p=[1,10],m=[1,11],h=[1,12],g=[1,13],_=[1,14],v=[1,15],y=[1,16],b=[1,19],x=[1,20],S=[1,21],C=[1,22],w=[1,23],T=[1,25],E=[1,35],D={trace:r(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:r(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setWeekday(`monday`);break;case 9:r.setWeekday(`tuesday`);break;case 10:r.setWeekday(`wednesday`);break;case 11:r.setWeekday(`thursday`);break;case 12:r.setWeekday(`friday`);break;case 13:r.setWeekday(`saturday`);break;case 14:r.setWeekday(`sunday`);break;case 15:r.setWeekend(`friday`);break;case 16:r.setWeekend(`saturday`);break;case 17:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 18:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 19:r.TopAxis(),this.$=a[s].substr(8);break;case 20:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 21:r.setTickInterval(a[s].substr(13)),this.$=a[s].substr(13);break;case 22:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 23:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 24:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 27:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 28:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 31:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 33:r.addTask(a[s-1],a[s]),this.$=`task`;break;case 34:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 35:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 36:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 37:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 38:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 39:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 40:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 41:case 47:this.$=a[s-1]+` `+a[s];break;case 42:case 43:case 45:this.$=a[s-2]+` `+a[s-1]+` `+a[s];break;case 44:case 46:this.$=a[s-3]+` `+a[s-2]+` `+a[s-1]+` `+a[s];break}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[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:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:i,14:a,15:o,16:s,17:c,18:l,19:18,20:u,21:d,22:f,23:p,24:m,25:h,26:g,27:_,28:v,29:y,30:b,31:x,33:S,35:C,36:w,37:24,38:T,40:E},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:r(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:r(function(e){var t=this,n=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){n.length-=2*e,a.length-=e,o.length-=e}r(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}r(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=n[n.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
+ `+h.showPosition()+`
3
+ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:n.push(S),a.push(h.yytext),o.push(h.yylloc),n.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(n=n.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0},`parse`)};D.lexer=(function(){return{EOF:1,parseError:r(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:r(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:r(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:r(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:r(function(){return this._more=!0,this},`more`),reject:r(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
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:r(function(e){this.unput(this.match.slice(e))},`less`),pastInput:r(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:r(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:r(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:r(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:r(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:r(function(){return this.next()||this.lex()},`lex`),begin:r(function(e){this.conditionStack.push(e)},`begin`),popState:r(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:r(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:r(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:r(function(e){this.begin(e)},`pushState`),stateStackSize:r(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:r(function(e,t,n,r){switch(n){case 0:return this.begin(`open_directive`),`open_directive`;case 1:return this.begin(`acc_title`),31;case 2:return this.popState(),`acc_title_value`;case 3:return this.begin(`acc_descr`),33;case 4:return this.popState(),`acc_descr_value`;case 5:this.begin(`acc_descr_multiline`);break;case 6:this.popState();break;case 7:return`acc_descr_multiline_value`;case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin(`href`);break;case 15:this.popState();break;case 16:return 43;case 17:this.begin(`callbackname`);break;case 18:this.popState();break;case 19:this.popState(),this.begin(`callbackargs`);break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin(`click`);break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return`date`;case 45:return 30;case 46:return`accDescription`;case 47:return 36;case 48:return 38;case 49:return 39;case 50:return`:`;case 51:return 6;case 52:return`INVALID`}},`anonymous`),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}}})();function O(){this.yy={}}return r(O,`Parser`),O.prototype=D,D.Parser=O,new O})();Fe.parser=Fe;var Ie=Fe;H.default.extend(je.default),H.default.extend(Me.default),H.default.extend(Ne.default);var Le={friday:5,saturday:6},U=``,Re=``,ze=void 0,Be=``,W=[],G=[],Ve=new Map,He=[],K=[],q=``,Ue=``,We=[`active`,`done`,`crit`,`milestone`,`vert`],Ge=[],J=``,Y=!1,Ke=!1,qe=`sunday`,Je=`saturday`,Ye=0,Xe=r(function(){He=[],K=[],q=``,Ge=[],kt=0,Mt=void 0,Nt=void 0,Z=[],U=``,Re=``,Ue=``,ze=void 0,Be=``,W=[],G=[],Y=!1,Ke=!1,Ye=0,Ve=new Map,J=``,c(),qe=`sunday`,Je=`saturday`},`clear`),Ze=r(function(e){J=e},`setDiagramId`),Qe=r(function(e){Re=e},`setAxisFormat`),$e=r(function(){return Re},`getAxisFormat`),et=r(function(e){ze=e},`setTickInterval`),tt=r(function(){return ze},`getTickInterval`),nt=r(function(e){Be=e},`setTodayMarker`),rt=r(function(){return Be},`getTodayMarker`),it=r(function(e){U=e},`setDateFormat`),at=r(function(){Y=!0},`enableInclusiveEndDates`),ot=r(function(){return Y},`endDatesAreInclusive`),st=r(function(){Ke=!0},`enableTopAxis`),ct=r(function(){return Ke},`topAxisEnabled`),lt=r(function(e){Ue=e},`setDisplayMode`),ut=r(function(){return Ue},`getDisplayMode`),dt=r(function(){return U},`getDateFormat`),ft=r(function(e){W=e.toLowerCase().split(/[\s,]+/)},`setIncludes`),pt=r(function(){return W},`getIncludes`),mt=r(function(e){G=e.toLowerCase().split(/[\s,]+/)},`setExcludes`),ht=r(function(){return G},`getExcludes`),gt=r(function(){return Ve},`getLinks`),_t=r(function(e){q=e,He.push(e)},`addSection`),vt=r(function(){return He},`getSections`),yt=r(function(){let e=Lt(),t=0;for(;!e&&t<10;)e=Lt(),t++;return K=Z,K},`getTasks`),bt=r(function(e,t,n,r){let i=e.format(t.trim()),a=e.format(`YYYY-MM-DD`);return r.includes(i)||r.includes(a)?!1:n.includes(`weekends`)&&(e.isoWeekday()===Le[Je]||e.isoWeekday()===Le[Je]+1)||n.includes(e.format(`dddd`).toLowerCase())?!0:n.includes(i)||n.includes(a)},`isInvalidDate`),xt=r(function(e){qe=e},`setWeekday`),St=r(function(){return qe},`getWeekday`),Ct=r(function(e){Je=e},`setWeekend`),wt=r(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;i=e.startTime instanceof Date?(0,H.default)(e.startTime):(0,H.default)(e.startTime,t,!0),i=i.add(1,`d`);let a;a=e.endTime instanceof Date?(0,H.default)(e.endTime):(0,H.default)(e.endTime,t,!0);let[o,s]=Tt(i,a,t,n,r);e.endTime=o.toDate(),e.renderEndTime=s},`checkTaskDates`),Tt=r(function(e,t,n,r,i){let a=!1,o=null,s=t.add(1e4,`d`);for(;e<=t;){if(a||(o=t.toDate()),a=bt(e,n,r,i),a&&(t=t.add(1,`d`),t>s))throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.");e=e.add(1,`d`)}return[t,o]},`fixTaskDates`),Et=r(function(e,t,n){if(n=n.trim(),r(e=>{let t=e.trim();return t===`x`||t===`X`},`isTimestampFormat`)(t)&&/^\d+$/.test(n))return new Date(Number(n));let a=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let e=null;for(let t of a.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.endTime>e.endTime)&&(e=n)}if(e)return e.endTime;let t=new Date;return t.setHours(0,0,0,0),t}let o=(0,H.default)(n,t.trim(),!0);if(o.isValid())return o.toDate();{i.debug(`Invalid date:`+n),i.debug(`With date format:`+t.trim());let e=new Date(n);if(e===void 0||isNaN(e.getTime())||e.getFullYear()<-1e4||e.getFullYear()>1e4)throw Error(`Invalid date:`+n);return e}},`getStartDate`),Dt=r(function(e){let t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t===null?[NaN,`ms`]:[Number.parseFloat(t[1]),t[2]]},`parseDuration`),Ot=r(function(e,t,n,r=!1){n=n.trim();let i=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let e=null;for(let t of i.groups.ids.split(` `)){let n=Q(t);n!==void 0&&(!e||n.startTime<e.startTime)&&(e=n)}if(e)return e.startTime;let t=new Date;return t.setHours(0,0,0,0),t}let a=(0,H.default)(n,t.trim(),!0);if(a.isValid())return r&&(a=a.add(1,`d`)),a.toDate();let o=(0,H.default)(e),[s,c]=Dt(n);if(!Number.isNaN(s)){let e=o.add(s,c);e.isValid()&&(o=e)}return o.toDate()},`getEndDate`),kt=0,X=r(function(e){return e===void 0?(kt+=1,`task`+kt):e},`parseId`),At=r(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Ut(r,i,We);for(let e=0;e<r.length;e++)r[e]=r[e].trim();let a=``;switch(r.length){case 1:i.id=X(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=X(),i.startTime=Et(void 0,U,r[0]),a=r[1];break;case 3:i.id=X(r[0]),i.startTime=Et(void 0,U,r[1]),a=r[2];break;default:}return a&&(i.endTime=Ot(i.startTime,U,a,Y),i.manualEndTime=(0,H.default)(a,`YYYY-MM-DD`,!0).isValid(),wt(i,U,G,W)),i},`compileData`),jt=r(function(e,t){let n;n=t.substr(0,1)===`:`?t.substr(1,t.length):t;let r=n.split(`,`),i={};Ut(r,i,We);for(let e=0;e<r.length;e++)r[e]=r[e].trim();switch(r.length){case 1:i.id=X(),i.startTime={type:`prevTaskEnd`,id:e},i.endTime={data:r[0]};break;case 2:i.id=X(),i.startTime={type:`getStartDate`,startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=X(r[0]),i.startTime={type:`getStartDate`,startData:r[1]},i.endTime={data:r[2]};break;default:}return i},`parseData`),Mt,Nt,Z=[],Pt={},Ft=r(function(e,t){let n={section:q,type:q,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=jt(Nt,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Nt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=Ye,Ye++;let i=Z.push(n);Nt=n.id,Pt[n.id]=i-1},`addTask`),Q=r(function(e){let t=Pt[e];return Z[t]},`findTaskById`),It=r(function(e,t){let n={section:q,type:q,description:e,task:e,classes:[]},r=At(Mt,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,Mt=n,K.push(n)},`addTaskOrg`),Lt=r(function(){let e=r(function(e){let t=Z[e],n=``;switch(Z[e].raw.startTime.type){case`prevTaskEnd`:t.startTime=Q(t.prevTaskId).endTime;break;case`getStartDate`:n=Et(void 0,U,Z[e].raw.startTime.startData),n&&(Z[e].startTime=n);break}return Z[e].startTime&&(Z[e].endTime=Ot(Z[e].startTime,U,Z[e].raw.endTime.data,Y),Z[e].endTime&&(Z[e].processed=!0,Z[e].manualEndTime=(0,H.default)(Z[e].raw.endTime.data,`YYYY-MM-DD`,!0).isValid(),wt(Z[e],U,G,W))),Z[e].processed},`compileTask`),t=!0;for(let[n,r]of Z.entries())e(n),t&&=r.processed;return t},`compileTasks`),Rt=r(function(e,t){let n=t;p().securityLevel!==`loose`&&(n=(0,Ae.sanitizeUrl)(t)),e.split(`,`).forEach(function(e){Q(e)!==void 0&&(Vt(e,()=>{window.open(n,`_self`)}),Ve.set(e,n))}),zt(e,`clickable`)},`setLink`),zt=r(function(e,t){e.split(`,`).forEach(function(e){let n=Q(e);n!==void 0&&n.classes.push(t)})},`setClass`),Bt=r(function(e,t,n){if(p().securityLevel!==`loose`||t===void 0)return;let r=[];if(typeof n==`string`){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();t.startsWith(`"`)&&t.endsWith(`"`)&&(t=t.substr(1,t.length-2)),r[e]=t}}r.length===0&&r.push(e),Q(e)!==void 0&&Vt(e,()=>{re.runFunc(t,...r)})},`setClickFun`),Vt=r(function(e,t){Ge.push(function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}"]`);r!==null&&r.addEventListener(`click`,function(){t()})},function(){let n=J?`${J}-${e}`:e,r=document.querySelector(`[id="${n}-text"]`);r!==null&&r.addEventListener(`click`,function(){t()})})},`pushFun`),Ht={getConfig:r(()=>p().gantt,`getConfig`),clear:Xe,setDateFormat:it,getDateFormat:dt,enableInclusiveEndDates:at,endDatesAreInclusive:ot,enableTopAxis:st,topAxisEnabled:ct,setAxisFormat:Qe,getAxisFormat:$e,setTickInterval:et,getTickInterval:tt,setTodayMarker:nt,getTodayMarker:rt,setAccTitle:s,getAccTitle:m,setDiagramTitle:o,getDiagramTitle:f,setDiagramId:Ze,setDisplayMode:lt,getDisplayMode:ut,setAccDescription:a,getAccDescription:d,addSection:_t,getSections:vt,getTasks:yt,addTask:Ft,findTaskById:Q,addTaskOrg:It,setIncludes:ft,getIncludes:pt,setExcludes:mt,getExcludes:ht,setClickEvent:r(function(e,t,n){e.split(`,`).forEach(function(e){Bt(e,t,n)}),zt(e,`clickable`)},`setClickEvent`),setLink:Rt,getLinks:gt,bindFunctions:r(function(e){Ge.forEach(function(t){t(e)})},`bindFunctions`),parseDuration:Dt,isInvalidDate:bt,setWeekday:xt,getWeekday:St,setWeekend:Ct};function Ut(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){let i=`^\\s*`+n+`\\s*$`,a=new RegExp(i);e[0].match(a)&&(t[n]=!0,e.shift(1),r=!0)})}r(Ut,`getTaskTags`),H.default.extend(Pe.default);var Wt=r(function(){i.debug(`Something is calling, setConf, remove the call`)},`setConf`),Gt={monday:O,tuesday:b,wednesday:j,thursday:C,friday:S,saturday:E,sunday:w},Kt=r((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((e,t)=>e.startTime-t.startTime||e.order-t.order),i=0;for(let e of r)for(let r=0;r<n.length;r++)if(e.startTime>=n[r]){n[r]=e.endTime,e.order=r+t,r>i&&(i=r);break}return i},`getMaxIntersections`),$,qt=1e4,Jt={parser:Ie,db:Ht,renderer:{setConf:Wt,draw:r(function(e,t,n,a){let o=p().gantt;a.db.setDiagramId(t);let s=p().securityLevel,c;s===`sandbox`&&(c=ee(`#i`+t));let d=ee(s===`sandbox`?c.nodes()[0].contentDocument.body:`body`),f=s===`sandbox`?c.nodes()[0].contentDocument:document,m=f.getElementById(t);$=m.parentElement.offsetWidth,$===void 0&&($=1200),o.useWidth!==void 0&&($=o.useWidth);let b=a.db.getTasks(),S=[];for(let e of b)S.push(e.type);S=re(S);let C={},w=2*o.topPadding;if(a.db.getDisplayMode()===`compact`||o.displayMode===`compact`){let e={};for(let t of b)e[t.section]===void 0?e[t.section]=[t]:e[t.section].push(t);let t=0;for(let n of Object.keys(e)){let r=Kt(e[n],t)+1;t+=r,w+=r*(o.barHeight+o.barGap),C[n]=r}}else{w+=b.length*(o.barHeight+o.barGap);for(let e of S)C[e]=b.filter(t=>t.type===e).length}m.setAttribute(`viewBox`,`0 0 `+$+` `+w);let E=d.select(`[id="${t}"]`),O=D().domain([oe(b,function(e){return e.startTime}),ae(b,function(e){return e.endTime})]).rangeRound([0,$-o.leftPadding-o.rightPadding]);function j(e,t){let n=e.startTime,r=t.startTime,i=0;return n>r?i=1:n<r&&(i=-1),i}r(j,`taskCompare`),b.sort(j),N(b,$,w),l(E,w,$,o.useMaxWidth),E.append(`text`).text(a.db.getDiagramTitle()).attr(`x`,$/2).attr(`y`,o.titleTopMargin).attr(`class`,`titleText`);function N(e,t,n){let r=o.barHeight,i=r+o.barGap,s=o.topPadding,c=o.leftPadding,l=h().domain([0,S.length]).range([`#00B9FA`,`#F95002`]).interpolate(Te);P(i,s,c,t,n,e,a.db.getExcludes(),a.db.getIncludes()),ne(c,s,t,n),te(e,i,s,c,r,l,t,n),I(i,s,c,r,l),L(c,s,t,n)}r(N,`makeGantt`);function te(e,n,r,i,s,c,l){e.sort((e,t)=>e.vert===t.vert?0:e.vert?1:-1);let u=[...new Set(e.map(e=>e.order))].map(t=>e.find(e=>e.order===t));E.append(`g`).selectAll(`rect`).data(u).enter().append(`rect`).attr(`x`,0).attr(`y`,function(e,t){return t=e.order,t*n+r-2}).attr(`width`,function(){return l-o.rightPadding/2}).attr(`height`,n).attr(`class`,function(e){for(let[t,n]of S.entries())if(e.type===n)return`section section`+t%o.numberSectionStyles;return`section section0`}).enter();let d=E.append(`g`).selectAll(`rect`).data(e).enter(),f=a.db.getLinks();if(d.append(`rect`).attr(`id`,function(e){return t+`-`+e.id}).attr(`rx`,3).attr(`ry`,3).attr(`x`,function(e){return e.milestone?O(e.startTime)+i+.5*(O(e.endTime)-O(e.startTime))-.5*s:O(e.startTime)+i}).attr(`y`,function(e,t){return t=e.order,e.vert?o.gridLineStartPadding:t*n+r}).attr(`width`,function(e){return e.milestone?s:e.vert?.08*s:O(e.renderEndTime||e.endTime)-O(e.startTime)}).attr(`height`,function(e){return e.vert?b.length*(o.barHeight+o.barGap)+o.barHeight*2:s}).attr(`transform-origin`,function(e,t){return t=e.order,(O(e.startTime)+i+.5*(O(e.endTime)-O(e.startTime))).toString()+`px `+(t*n+r+.5*s).toString()+`px`}).attr(`class`,function(e){let t=``;e.classes.length>0&&(t=e.classes.join(` `));let n=0;for(let[t,r]of S.entries())e.type===r&&(n=t%o.numberSectionStyles);let r=``;return e.active?e.crit?r+=` activeCrit`:r=` active`:e.done?r=e.crit?` doneCrit`:` done`:e.crit&&(r+=` crit`),r.length===0&&(r=` task`),e.milestone&&(r=` milestone `+r),e.vert&&(r=` vert `+r),r+=n,r+=` `+t,`task`+r}),d.append(`text`).attr(`id`,function(e){return t+`-`+e.id+`-text`}).text(function(e){return e.task}).attr(`font-size`,o.fontSize).attr(`x`,function(e){let t=O(e.startTime),n=O(e.renderEndTime||e.endTime);if(e.milestone&&(t+=.5*(O(e.endTime)-O(e.startTime))-.5*s,n=t+s),e.vert)return O(e.startTime)+i;let r=this.getBBox().width;return r>n-t?n+r+1.5*o.leftPadding>l?t+i-5:n+i+5:(n-t)/2+t+i}).attr(`y`,function(e,t){return e.vert?o.gridLineStartPadding+b.length*(o.barHeight+o.barGap)+60:(t=e.order,t*n+o.barHeight/2+(o.fontSize/2-2)+r)}).attr(`text-height`,s).attr(`class`,function(e){let t=O(e.startTime),n=O(e.endTime);e.milestone&&(n=t+s);let r=this.getBBox().width,i=``;e.classes.length>0&&(i=e.classes.join(` `));let a=0;for(let[t,n]of S.entries())e.type===n&&(a=t%o.numberSectionStyles);let c=``;return e.active&&(c=e.crit?`activeCritText`+a:`activeText`+a),e.done?c=e.crit?c+` doneCritText`+a:c+` doneText`+a:e.crit&&(c=c+` critText`+a),e.milestone&&(c+=` milestoneText`),e.vert&&(c+=` vertText`),r>n-t?n+r+1.5*o.leftPadding>l?i+` taskTextOutsideLeft taskTextOutside`+a+` `+c:i+` taskTextOutsideRight taskTextOutside`+a+` `+c+` width-`+r:i+` taskText taskText`+a+` `+c+` width-`+r}),p().securityLevel===`sandbox`){let e;e=ee(`#i`+t);let n=e.nodes()[0].contentDocument;d.filter(function(e){return f.has(e.id)}).each(function(e){var r=n.querySelector(`#`+CSS.escape(t+`-`+e.id)),i=n.querySelector(`#`+CSS.escape(t+`-`+e.id+`-text`));let a=r.parentNode;var o=n.createElement(`a`);o.setAttribute(`xlink:href`,f.get(e.id)),o.setAttribute(`target`,`_top`),a.appendChild(o),o.appendChild(r),o.appendChild(i)})}}r(te,`drawRects`);function P(e,n,r,s,c,l,u,d){if(u.length===0&&d.length===0)return;let f,p;for(let{startTime:e,endTime:t}of l)(f===void 0||e<f)&&(f=e),(p===void 0||t>p)&&(p=t);if(!f||!p)return;if((0,H.default)(p).diff((0,H.default)(f),`year`)>5){i.warn(`The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.`);return}let m=a.db.getDateFormat(),h=[],g=null,_=(0,H.default)(f);for(;_.valueOf()<=p;)a.db.isInvalidDate(_,m,u,d)?g?g.end=_:g={start:_,end:_}:g&&=(h.push(g),null),_=_.add(1,`d`);E.append(`g`).selectAll(`rect`).data(h).enter().append(`rect`).attr(`id`,e=>t+`-exclude-`+e.start.format(`YYYY-MM-DD`)).attr(`x`,e=>O(e.start.startOf(`day`))+r).attr(`y`,o.gridLineStartPadding).attr(`width`,e=>O(e.end.endOf(`day`))-O(e.start.startOf(`day`))).attr(`height`,c-n-o.gridLineStartPadding).attr(`transform-origin`,function(t,n){return(O(t.start)+r+.5*(O(t.end)-O(t.start))).toString()+`px `+(n*e+.5*c).toString()+`px`}).attr(`class`,`exclude-range`)}r(P,`drawExcludeDays`);function F(e,t,n,r){if(n<=0||e>t)return 1/0;let i=t-e,a=H.default.duration({[r??`day`]:n}).asMilliseconds();return a<=0?1/0:Math.ceil(i/a)}r(F,`getEstimatedTickCount`);function ne(e,t,n,r){let s=a.db.getDateFormat(),c=a.db.getAxisFormat(),l;l=c||(s===`D`?`%d`:o.axisFormat??`%Y-%m-%d`);let u=T(O).tickSize(-r+t+o.gridLineStartPadding).tickFormat(k(l)),d=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)i.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],n=a.db.getWeekday()||o.weekday,r=O.domain(),s=r[0],c=r[1],l=F(s,c,e,t);if(l>qt)i.warn(`The tick interval "${e}${t}" would generate ${l} ticks, which exceeds the maximum allowed (${qt}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(t){case`millisecond`:u.ticks(g.every(e));break;case`second`:u.ticks(_.every(e));break;case`minute`:u.ticks(M.every(e));break;case`hour`:u.ticks(y.every(e));break;case`day`:u.ticks(x.every(e));break;case`week`:u.ticks(Gt[n].every(e));break;case`month`:u.ticks(A.every(e));break}}}if(E.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+(r-50)+`)`).call(u).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10).attr(`dy`,`1em`),a.db.topAxisEnabled()||o.topAxis){let n=v(O).tickSize(-r+t+o.gridLineStartPadding).tickFormat(k(l));if(d!==null){let e=parseInt(d[1],10);if(isNaN(e)||e<=0)i.warn(`Invalid tick interval value: "${d[1]}". Skipping custom tick interval.`);else{let t=d[2],r=a.db.getWeekday()||o.weekday,i=O.domain(),s=i[0],c=i[1];if(F(s,c,e,t)<=qt)switch(t){case`millisecond`:n.ticks(g.every(e));break;case`second`:n.ticks(_.every(e));break;case`minute`:n.ticks(M.every(e));break;case`hour`:n.ticks(y.every(e));break;case`day`:n.ticks(x.every(e));break;case`week`:n.ticks(Gt[r].every(e));break;case`month`:n.ticks(A.every(e));break}}}E.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(`+e+`, `+t+`)`).call(n).selectAll(`text`).style(`text-anchor`,`middle`).attr(`fill`,`#000`).attr(`stroke`,`none`).attr(`font-size`,10)}}r(ne,`makeGrid`);function I(e,t){let n=0,r=Object.keys(C).map(e=>[e,C[e]]);E.append(`g`).selectAll(`text`).data(r).enter().append(function(e){let t=e[0].split(u.lineBreakRegex),n=-(t.length-1)/2,r=f.createElementNS(`http://www.w3.org/2000/svg`,`text`);r.setAttribute(`dy`,n+`em`);for(let[e,n]of t.entries()){let t=f.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);t.setAttribute(`alignment-baseline`,`central`),t.setAttribute(`x`,`10`),e>0&&t.setAttribute(`dy`,`1em`),t.textContent=n,r.appendChild(t)}return r}).attr(`x`,10).attr(`y`,function(i,a){if(a>0)for(let o=0;o<a;o++)return n+=r[a-1][1],i[1]*e/2+n*e+t;else return i[1]*e/2+t}).attr(`font-size`,o.sectionFontSize).attr(`class`,function(e){for(let[t,n]of S.entries())if(e[0]===n)return`sectionTitle sectionTitle`+t%o.numberSectionStyles;return`sectionTitle`})}r(I,`vertLabels`);function L(e,t,n,r){let i=a.db.getTodayMarker();if(i===`off`)return;let s=E.append(`g`).attr(`class`,`today`),c=new Date,l=s.append(`line`);l.attr(`x1`,O(c)+e).attr(`x2`,O(c)+e).attr(`y1`,o.titleTopMargin).attr(`y2`,r-o.titleTopMargin).attr(`class`,`today`),i!==``&&l.attr(`style`,i.replace(/,/g,`;`))}r(L,`drawToday`);function re(e){let t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}r(re,`checkUnique`)},`draw`)},styles:r(e=>`
7
+ .mermaid-main-font {
8
+ font-family: ${e.fontFamily};
9
+ }
10
+
11
+ .exclude-range {
12
+ fill: ${e.excludeBkgColor};
13
+ }
14
+
15
+ .section {
16
+ stroke: none;
17
+ opacity: 0.2;
18
+ }
19
+
20
+ .section0 {
21
+ fill: ${e.sectionBkgColor};
22
+ }
23
+
24
+ .section2 {
25
+ fill: ${e.sectionBkgColor2};
26
+ }
27
+
28
+ .section1,
29
+ .section3 {
30
+ fill: ${e.altSectionBkgColor};
31
+ opacity: 0.2;
32
+ }
33
+
34
+ .sectionTitle0 {
35
+ fill: ${e.titleColor};
36
+ }
37
+
38
+ .sectionTitle1 {
39
+ fill: ${e.titleColor};
40
+ }
41
+
42
+ .sectionTitle2 {
43
+ fill: ${e.titleColor};
44
+ }
45
+
46
+ .sectionTitle3 {
47
+ fill: ${e.titleColor};
48
+ }
49
+
50
+ .sectionTitle {
51
+ text-anchor: start;
52
+ font-family: ${e.fontFamily};
53
+ }
54
+
55
+
56
+ /* Grid and axis */
57
+
58
+ .grid .tick {
59
+ stroke: ${e.gridColor};
60
+ opacity: 0.8;
61
+ shape-rendering: crispEdges;
62
+ }
63
+
64
+ .grid .tick text {
65
+ font-family: ${e.fontFamily};
66
+ fill: ${e.textColor};
67
+ }
68
+
69
+ .grid path {
70
+ stroke-width: 0;
71
+ }
72
+
73
+
74
+ /* Today line */
75
+
76
+ .today {
77
+ fill: none;
78
+ stroke: ${e.todayLineColor};
79
+ stroke-width: 2px;
80
+ }
81
+
82
+
83
+ /* Task styling */
84
+
85
+ /* Default task */
86
+
87
+ .task {
88
+ stroke-width: 2;
89
+ }
90
+
91
+ .taskText {
92
+ text-anchor: middle;
93
+ font-family: ${e.fontFamily};
94
+ }
95
+
96
+ .taskTextOutsideRight {
97
+ fill: ${e.taskTextDarkColor};
98
+ text-anchor: start;
99
+ font-family: ${e.fontFamily};
100
+ }
101
+
102
+ .taskTextOutsideLeft {
103
+ fill: ${e.taskTextDarkColor};
104
+ text-anchor: end;
105
+ }
106
+
107
+
108
+ /* Special case clickable */
109
+
110
+ .task.clickable {
111
+ cursor: pointer;
112
+ }
113
+
114
+ .taskText.clickable {
115
+ cursor: pointer;
116
+ fill: ${e.taskTextClickableColor} !important;
117
+ font-weight: bold;
118
+ }
119
+
120
+ .taskTextOutsideLeft.clickable {
121
+ cursor: pointer;
122
+ fill: ${e.taskTextClickableColor} !important;
123
+ font-weight: bold;
124
+ }
125
+
126
+ .taskTextOutsideRight.clickable {
127
+ cursor: pointer;
128
+ fill: ${e.taskTextClickableColor} !important;
129
+ font-weight: bold;
130
+ }
131
+
132
+
133
+ /* Specific task settings for the sections*/
134
+
135
+ .taskText0,
136
+ .taskText1,
137
+ .taskText2,
138
+ .taskText3 {
139
+ fill: ${e.taskTextColor};
140
+ }
141
+
142
+ .task0,
143
+ .task1,
144
+ .task2,
145
+ .task3 {
146
+ fill: ${e.taskBkgColor};
147
+ stroke: ${e.taskBorderColor};
148
+ }
149
+
150
+ .taskTextOutside0,
151
+ .taskTextOutside2
152
+ {
153
+ fill: ${e.taskTextOutsideColor};
154
+ }
155
+
156
+ .taskTextOutside1,
157
+ .taskTextOutside3 {
158
+ fill: ${e.taskTextOutsideColor};
159
+ }
160
+
161
+
162
+ /* Active task */
163
+
164
+ .active0,
165
+ .active1,
166
+ .active2,
167
+ .active3 {
168
+ fill: ${e.activeTaskBkgColor};
169
+ stroke: ${e.activeTaskBorderColor};
170
+ }
171
+
172
+ .activeText0,
173
+ .activeText1,
174
+ .activeText2,
175
+ .activeText3 {
176
+ fill: ${e.taskTextDarkColor} !important;
177
+ }
178
+
179
+
180
+ /* Completed task */
181
+
182
+ .done0,
183
+ .done1,
184
+ .done2,
185
+ .done3 {
186
+ stroke: ${e.doneTaskBorderColor};
187
+ fill: ${e.doneTaskBkgColor};
188
+ stroke-width: 2;
189
+ }
190
+
191
+ .doneText0,
192
+ .doneText1,
193
+ .doneText2,
194
+ .doneText3 {
195
+ fill: ${e.taskTextDarkColor} !important;
196
+ }
197
+
198
+ /* Done task text displayed outside the bar sits against the diagram background,
199
+ not against the done-task bar, so it must use the outside/contrast color. */
200
+ .doneText0.taskTextOutsideLeft,
201
+ .doneText0.taskTextOutsideRight,
202
+ .doneText1.taskTextOutsideLeft,
203
+ .doneText1.taskTextOutsideRight,
204
+ .doneText2.taskTextOutsideLeft,
205
+ .doneText2.taskTextOutsideRight,
206
+ .doneText3.taskTextOutsideLeft,
207
+ .doneText3.taskTextOutsideRight {
208
+ fill: ${e.taskTextOutsideColor} !important;
209
+ }
210
+
211
+
212
+ /* Tasks on the critical line */
213
+
214
+ .crit0,
215
+ .crit1,
216
+ .crit2,
217
+ .crit3 {
218
+ stroke: ${e.critBorderColor};
219
+ fill: ${e.critBkgColor};
220
+ stroke-width: 2;
221
+ }
222
+
223
+ .activeCrit0,
224
+ .activeCrit1,
225
+ .activeCrit2,
226
+ .activeCrit3 {
227
+ stroke: ${e.critBorderColor};
228
+ fill: ${e.activeTaskBkgColor};
229
+ stroke-width: 2;
230
+ }
231
+
232
+ .doneCrit0,
233
+ .doneCrit1,
234
+ .doneCrit2,
235
+ .doneCrit3 {
236
+ stroke: ${e.critBorderColor};
237
+ fill: ${e.doneTaskBkgColor};
238
+ stroke-width: 2;
239
+ cursor: pointer;
240
+ shape-rendering: crispEdges;
241
+ }
242
+
243
+ .milestone {
244
+ transform: rotate(45deg) scale(0.8,0.8);
245
+ }
246
+
247
+ .milestoneText {
248
+ font-style: italic;
249
+ }
250
+ .doneCritText0,
251
+ .doneCritText1,
252
+ .doneCritText2,
253
+ .doneCritText3 {
254
+ fill: ${e.taskTextDarkColor} !important;
255
+ }
256
+
257
+ /* Done-crit task text outside the bar \u2014 same reasoning as doneText above. */
258
+ .doneCritText0.taskTextOutsideLeft,
259
+ .doneCritText0.taskTextOutsideRight,
260
+ .doneCritText1.taskTextOutsideLeft,
261
+ .doneCritText1.taskTextOutsideRight,
262
+ .doneCritText2.taskTextOutsideLeft,
263
+ .doneCritText2.taskTextOutsideRight,
264
+ .doneCritText3.taskTextOutsideLeft,
265
+ .doneCritText3.taskTextOutsideRight {
266
+ fill: ${e.taskTextOutsideColor} !important;
267
+ }
268
+
269
+ .vert {
270
+ stroke: ${e.vertLineColor};
271
+ }
272
+
273
+ .vertText {
274
+ font-size: 15px;
275
+ text-anchor: middle;
276
+ fill: ${e.vertLineColor} !important;
277
+ }
278
+
279
+ .activeCritText0,
280
+ .activeCritText1,
281
+ .activeCritText2,
282
+ .activeCritText3 {
283
+ fill: ${e.taskTextDarkColor} !important;
284
+ }
285
+
286
+ .titleText {
287
+ text-anchor: middle;
288
+ font-size: 18px;
289
+ fill: ${e.titleColor||e.textColor};
290
+ font-family: ${e.fontFamily};
291
+ }
292
+ `,`getStyles`)};export{Jt as diagram};
@@ -0,0 +1 @@
1
+ import{_ as e}from"./mermaid-parser.core-Bdy3q53b.js";export{e as createGitGraphServices};
@@ -0,0 +1,106 @@
1
+ import{n as e,r as t}from"./chunk-AGHRB4JF-vbzngFky.js";import{H as n,K as r,U as i,Y as a,a as o,b as s,f as c,s as l,v as u,w as d,x as f,y as p}from"./chunk-CSCIHK7Q-OdsAx3G8.js";import{Q as m}from"./src-BBw8FbvP.js";import{g as h,i as g,m as _}from"./chunk-5ZQYHXKU-C2girjDc.js";import{t as v}from"./mermaid-parser.core-Bdy3q53b.js";import{t as y}from"./chunk-4BX2VUAB-CIKyExbu.js";import{t as b}from"./chunk-QZHKN3VN-DQmrlo26.js";var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},ee=c.gitGraph,S=e(()=>g({...ee,...s().gitGraph}),`getConfig`),C=new b(()=>{let e=S(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function w(){return _({length:7})}e(w,`getID`);function T(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}e(T,`uniqBy`);var te=e(function(e){C.records.direction=e},`setDirection`),ne=e(function(e){t.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{C.records.options=JSON.parse(e)}catch(e){t.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),re=e(function(){return C.records.options},`getOptions`),ie=e(function(e){let n=e.msg,r=e.id,i=e.type,a=e.tags;t.info(`commit`,n,r,i,a),t.debug(`Entering commit:`,n,r,i,a);let o=S();r=l.sanitizeText(r,o),n=l.sanitizeText(n,o),a=a?.map(e=>l.sanitizeText(e,o));let s={id:r||C.records.seq+`-`+w(),message:n,seq:C.records.seq++,type:i??x.NORMAL,tags:a??[],parents:C.records.head==null?[]:[C.records.head.id],branch:C.records.currBranch};C.records.head=s,t.info(`main branch`,o.mainBranchName),C.records.commits.has(s.id)&&t.warn(`Commit ID ${s.id} already exists`),C.records.commits.set(s.id,s),C.records.branches.set(C.records.currBranch,s.id),t.debug(`in pushCommit `+s.id)},`commit`),ae=e(function(e){let n=e.name,r=e.order;if(n=l.sanitizeText(n,S()),C.records.branches.has(n))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 ${n}")`);C.records.branches.set(n,C.records.head==null?null:C.records.head.id),C.records.branchConfig.set(n,{name:n,order:r}),E(n),t.debug(`in createBranch`)},`branch`),oe=e(e=>{let n=e.branch,r=e.id,i=e.type,a=e.tags,o=S();n=l.sanitizeText(n,o),r&&=l.sanitizeText(r,o);let s=C.records.branches.get(C.records.currBranch),c=C.records.branches.get(n),u=s?C.records.commits.get(s):void 0,d=c?C.records.commits.get(c):void 0;if(u&&d&&u.branch===n)throw Error(`Cannot merge branch '${n}' into itself.`);if(C.records.currBranch===n){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(u===void 0||!u){let e=Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`commit`]},e}if(!C.records.branches.has(n)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) does not exist`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch ${n}`]},e}if(d===void 0||!d){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+n+`) has no commits`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`"commit"`]},e}if(u===d){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${n}`,token:`merge ${n}`,expected:[`branch abc`]},e}if(r&&C.records.commits.has(r)){let e=Error(`Incorrect usage of "merge". Commit with id:`+r+` already exists, use different custom id`);throw e.hash={text:`merge ${n} ${r} ${i} ${a?.join(` `)}`,token:`merge ${n} ${r} ${i} ${a?.join(` `)}`,expected:[`merge ${n} ${r}_UNIQUE ${i} ${a?.join(` `)}`]},e}let f=c||``,p={id:r||`${C.records.seq}-${w()}`,message:`merged branch ${n} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,f],branch:C.records.currBranch,type:x.MERGE,customType:i,customId:!!r,tags:a??[]};C.records.head=p,C.records.commits.set(p.id,p),C.records.branches.set(C.records.currBranch,p.id),t.debug(C.records.branches),t.debug(`in mergeBranch`)},`merge`),se=e(function(e){let n=e.id,r=e.targetId,i=e.tags,a=e.parent;t.debug(`Entering cherryPick:`,n,r,i);let o=S();if(n=l.sanitizeText(n,o),r=l.sanitizeText(r,o),i=i?.map(e=>l.sanitizeText(e,o)),a=l.sanitizeText(a,o),!n||!C.records.commits.has(n)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let s=C.records.commits.get(n);if(s===void 0||!s)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(a&&!(Array.isArray(s.parents)&&s.parents.includes(a)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let c=s.branch;if(s.type===x.MERGE&&!a)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!r||!C.records.commits.has(r)){if(c===C.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let e=C.records.branches.get(C.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let o=C.records.commits.get(e);if(o===void 0||!o){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${n} ${r}`,token:`cherryPick ${n} ${r}`,expected:[`cherry-pick abc`]},e}let l={id:C.records.seq+`-`+w(),message:`cherry-picked ${s?.message} into ${C.records.currBranch}`,seq:C.records.seq++,parents:C.records.head==null?[]:[C.records.head.id,s.id],branch:C.records.currBranch,type:x.CHERRY_PICK,tags:i?i.filter(Boolean):[`cherry-pick:${s.id}${s.type===x.MERGE?`|parent:${a}`:``}`]};C.records.head=l,C.records.commits.set(l.id,l),C.records.branches.set(C.records.currBranch,l.id),t.debug(C.records.branches),t.debug(`in cherryPick`)}},`cherryPick`),E=e(function(e){if(e=l.sanitizeText(e,S()),C.records.branches.has(e)){C.records.currBranch=e;let t=C.records.branches.get(C.records.currBranch);t===void 0||!t?C.records.head=null:C.records.head=C.records.commits.get(t)??null}else{let t=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw t.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},t}},`checkout`);function D(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}e(D,`upsert`);function O(e){let n=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in C.records.branches)C.records.branches.get(e)===n.id&&i.push(e);if(t.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let t=C.records.commits.get(n.parents[0]);D(e,n,t),n.parents[1]&&e.push(C.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let t=C.records.commits.get(n.parents[0]);D(e,n,t)}e=T(e,e=>e.id),O(e)}e(O,`prettyPrintCommitHistory`);var ce=e(function(){t.debug(C.records.commits);let e=k()[0];O([e])},`prettyPrint`),le=e(function(){C.reset(),o()},`clear`),ue=e(function(){return[...C.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),de=e(function(){return C.records.branches},`getBranches`),fe=e(function(){return C.records.commits},`getCommits`),k=e(function(){let e=[...C.records.commits.values()];return e.forEach(function(e){t.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),A={commitType:x,getConfig:S,setDirection:te,setOptions:ne,getOptions:re,commit:ie,branch:ae,merge:oe,cherryPick:se,checkout:E,prettyPrint:ce,clear:le,getBranchesAsObjArray:ue,getBranches:de,getCommits:fe,getCommitsArray:k,getCurrentBranch:e(function(){return C.records.currBranch},`getCurrentBranch`),getDirection:e(function(){return C.records.direction},`getDirection`),getHead:e(function(){return C.records.head},`getHead`),setAccTitle:i,getAccTitle:p,getAccDescription:u,setAccDescription:n,setDiagramTitle:r,getDiagramTitle:d},pe=e((e,t)=>{y(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)me(n,t)},`populate`),me=e((n,r)=>{let i={Commit:e(e=>r.commit(he(e)),`Commit`),Branch:e(e=>r.branch(ge(e)),`Branch`),Merge:e(e=>r.merge(_e(e)),`Merge`),Checkout:e(e=>r.checkout(ve(e)),`Checkout`),CherryPicking:e(e=>r.cherryPick(ye(e)),`CherryPicking`)}[n.$type];i?i(n):t.error(`Unknown statement type: ${n.$type}`)},`parseStatement`),he=e(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?x.NORMAL:x[e.type],tags:e.tags??void 0}),`parseCommit`),ge=e(e=>({name:e.name,order:e.order??0}),`parseBranch`),_e=e(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:x[e.type],tags:e.tags??void 0}),`parseMerge`),ve=e(e=>e.branch,`parseCheckout`),ye=e(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),be={parse:e(async e=>{let n=await v(`gitGraph`,e);t.debug(n),pe(n,A)},`parse`)},j=10,M=40,N=4,P=2,F=8,I=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),L=12,R=new Set([`redux-color`,`redux-dark-color`]),xe=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),z=e((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),B=new Map,V=new Map,H=30,U=new Map,W=[],G=0,K=`LR`,q=e(()=>{B.clear(),V.clear(),U.clear(),G=0,W=[],K=`LR`},`clear`),J=e(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);n.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,`xml:space`,`preserve`),n.setAttribute(`dy`,`1em`),n.setAttribute(`x`,`0`),n.setAttribute(`class`,`row`),n.textContent=e.trim(),t.appendChild(n)}),t},`drawText`),Y=e(t=>{let n,r,i;return K===`BT`?(r=e((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=e((e,t)=>e>=t,`comparisonFunc`),i=0),t.forEach(e=>{let t=K===`TB`||K==`BT`?V.get(e)?.y:V.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),Se=e(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=V.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),Ce=e((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=Te(n),i=Math.max(r,i)):a.push(n),Ee(n,r)}),r=i,a.forEach(e=>{De(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=Se(n.parents);r=V.get(e).y-M,r<=i&&(i=r);let t=B.get(n.branch).pos,a=r-j;V.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),we=e(e=>{let t=Y(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=V.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),Te=e(e=>we(e)+M,`calculateCommitPosition`),Ee=e((e,t)=>{let n=B.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+j;return V.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),De=e((e,t,n)=>{let r=B.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;V.set(e.id,{x:a,y:i})},`setRootPosition`),Oe=e((e,t,n,r,i,a)=>{let{theme:o}=f(),s=I.has(o??``),c=R.has(o??``),l=xe.has(o??``);if(a===x.HIGHLIGHT)e.append(`rect`).attr(`x`,n.x-10+(s?3:0)).attr(`y`,n.y-10+(s?3:0)).attr(`width`,s?14:20).attr(`height`,s?14:20).attr(`class`,`commit ${t.id} commit-highlight${z(i,F,c)} ${r}-outer`),e.append(`rect`).attr(`x`,n.x-6+(s?2:0)).attr(`y`,n.y-6+(s?2:0)).attr(`width`,s?8:12).attr(`height`,s?8:12).attr(`class`,`commit ${t.id} commit${z(i,F,c)} ${r}-inner`);else if(a===x.CHERRY_PICK)e.append(`circle`).attr(`cx`,n.x).attr(`cy`,n.y).attr(`r`,s?7:10).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x-3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`circle`).attr(`cx`,n.x+3).attr(`cy`,n.y+2).attr(`r`,s?2.5:2.75).attr(`fill`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x+3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`),e.append(`line`).attr(`x1`,n.x-3).attr(`y1`,n.y+1).attr(`x2`,n.x).attr(`y2`,n.y-5).attr(`stroke`,l?`#000000`:`#fff`).attr(`class`,`commit ${t.id} ${r}`);else{let o=e.append(`circle`);if(o.attr(`cx`,n.x),o.attr(`cy`,n.y),o.attr(`r`,s?7:10),o.attr(`class`,`commit ${t.id} commit${z(i,F,c)}`),a===x.MERGE){let a=e.append(`circle`);a.attr(`cx`,n.x),a.attr(`cy`,n.y),a.attr(`r`,s?5:6),a.attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}if(a===x.REVERSE){let a=e.append(`path`),o=s?4:5;a.attr(`d`,`M ${n.x-o},${n.y-o}L${n.x+o},${n.y+o}M${n.x-o},${n.y+o}L${n.x+o},${n.y-o}`).attr(`class`,`commit ${r} ${t.id} commit${z(i,F,c)}`)}}},`drawCommitBullet`),ke=e((e,t,n,r,i)=>{if(t.type!==x.CHERRY_PICK&&(t.customId&&t.type===x.MERGE||t.type!==x.MERGE)&&i.showCommitLabel){let a=e.append(`g`),o=a.insert(`rect`).attr(`class`,`commit-label-bkg`),s=a.append(`text`).attr(`x`,r).attr(`y`,n.y+25).attr(`class`,`commit-label`).text(t.id),c=s.node()?.getBBox();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-P).attr(`y`,n.y+13.5).attr(`width`,c.width+2*P).attr(`height`,c.height+2*P),K===`TB`||K===`BT`?(o.attr(`x`,n.x-(c.width+4*N+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*N)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(K===`TB`||K===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),Ae=e((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){let t=e.insert(`polygon`),c=e.append(`circle`),l=e.append(`text`).attr(`y`,n.y-16-i).attr(`class`,`tag-label`).text(r),u=l.node()?.getBBox();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
2
+ ${r-a/2-N/2},${l+P}
3
+ ${r-a/2-N/2},${l-P}
4
+ ${n.posWithOffset-a/2-N},${l-s-P}
5
+ ${n.posWithOffset+a/2+N},${l-s-P}
6
+ ${n.posWithOffset+a/2+N},${l+s+P}
7
+ ${n.posWithOffset-a/2-N},${l+s+P}`),t.attr(`cy`,l).attr(`cx`,r-a/2+N/2).attr(`r`,1.5).attr(`class`,`tag-hole`),K===`TB`||K===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
8
+ ${n.x},${o+2}
9
+ ${n.x},${o-2}
10
+ ${n.x+j},${o-s-2}
11
+ ${n.x+j+a+4},${o-s-2}
12
+ ${n.x+j+a+4},${o+s+2}
13
+ ${n.x+j},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+N/2).attr(`cy`,o).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),e.attr(`x`,n.x+5).attr(`y`,o+3).attr(`transform`,`translate(14,14) rotate(45, `+n.x+`,`+r+`)`)}}}},`drawCommitTags`),je=e(e=>{switch(e.customType??e.type){case x.NORMAL:return`commit-normal`;case x.REVERSE:return`commit-reverse`;case x.HIGHLIGHT:return`commit-highlight`;case x.MERGE:return`commit-merge`;case x.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),Me=e((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=Y(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+M:t===`BT`?(r.get(e.id)??i).y-M:a.x+M}}else if(t===`TB`)return H;else if(t===`BT`)return(r.get(e.id)??i).y-M;else return 0;return 0},`calculatePosition`),Ne=e((e,t,n)=>{let r=K===`BT`&&n?t:t+j,i=B.get(e.branch)?.pos,a=K===`TB`||K===`BT`?B.get(e.branch)?.pos:r;if(a===void 0||i===void 0)throw Error(`Position were undefined for commit ${e.id}`);let o=I.has(f().theme??``);return{x:a,y:K===`TB`||K===`BT`?r:i+(o?L/2+1:-2),posWithOffset:r}},`getCommitPosition`),X=e((t,n,r,i)=>{let a=t.append(`g`).attr(`class`,`commit-bullets`),o=t.append(`g`).attr(`class`,`commit-labels`),s=K===`TB`||K===`BT`?H:0,c=[...n.keys()],l=i.parallelCommits??!1,u=e((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=c.sort(u);K===`BT`&&(l&&Ce(d,n,s),d=d.reverse()),d.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);l&&(s=Me(t,K,s,V));let c=Ne(t,s,l);if(r){let e=je(t),n=t.customType??t.type;Oe(a,t,c,e,B.get(t.branch)?.index??0,n),ke(o,t,c,s,i),Ae(o,t,c,s)}K===`TB`||K===`BT`?V.set(t.id,{x:c.x,y:c.posWithOffset}):V.set(t.id,{x:c.posWithOffset,y:c.y}),s=K===`BT`&&l?s+M:s+M+j,s>G&&(G=s)})},`drawCommits`),Pe=e((t,n,r,i,a)=>{let o=(K===`TB`||K===`BT`?r.x<i.x:r.y<i.y)?n.branch:t.branch,s=e(e=>e.branch===o,`isOnBranchToGetCurve`),c=e(e=>e.seq>t.seq&&e.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),Z=e((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:W.every(e=>Math.abs(e-r)>=10)?(W.push(r),r):Z(e,t-Math.abs(e-t)/5,n+1)},`findLane`),Fe=e((e,t,n,r)=>{let{theme:i}=f(),a=R.has(i??``),o=V.get(t.id),s=V.get(n.id);if(o===void 0||s===void 0)throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);let c=Pe(t,n,o,s,r),l=``,u=``,d=0,p=0,m=B.get(n.branch)?.index;n.type===x.MERGE&&t.id!==n.parents[0]&&(m=B.get(t.branch)?.index);let h;if(c){l=`A 10 10, 0, 0, 0,`,u=`A 10 10, 0, 0, 1,`,d=10,p=10;let e=o.y<s.y?Z(o.y,s.y):Z(s.y,o.y),n=o.x<s.x?Z(o.x,s.x):Z(s.x,o.x);K===`TB`?o.x<s.x?h=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${u} ${n} ${o.y+p} L ${n} ${s.y-d} ${l} ${n+p} ${s.y} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${l} ${n} ${o.y+p} L ${n} ${s.y-d} ${u} ${n-p} ${s.y} L ${s.x} ${s.y}`):K===`BT`?o.x<s.x?h=`M ${o.x} ${o.y} L ${n-d} ${o.y} ${l} ${n} ${o.y-p} L ${n} ${s.y+d} ${u} ${n+p} ${s.y} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${n+d} ${o.y} ${u} ${n} ${o.y-p} L ${n} ${s.y+d} ${l} ${n-p} ${s.y} L ${s.x} ${s.y}`):o.y<s.y?h=`M ${o.x} ${o.y} L ${o.x} ${e-d} ${l} ${o.x+p} ${e} L ${s.x-d} ${e} ${u} ${s.x} ${e+p} L ${s.x} ${s.y}`:(m=B.get(t.branch)?.index,h=`M ${o.x} ${o.y} L ${o.x} ${e+d} ${u} ${o.x+p} ${e} L ${s.x-d} ${e} ${l} ${s.x} ${e-p} L ${s.x} ${s.y}`)}else l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,p=20,K===`TB`?(o.x<s.x&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${u} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${l} ${s.x} ${o.y+p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):K===`BT`?(o.x<s.x&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x>s.x&&(l=`A 20 20, 0, 0, 0,`,u=`A 20 20, 0, 0, 1,`,d=20,p=20,h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${l} ${o.x-p} ${s.y} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${s.x+d} ${o.y} ${u} ${s.x} ${o.y-p} L ${s.x} ${s.y}`),o.x===s.x&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`)):(o.y<s.y&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${u} ${s.x} ${o.y+p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y-d} ${l} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y>s.y&&(h=n.type===x.MERGE&&t.id!==n.parents[0]?`M ${o.x} ${o.y} L ${s.x-d} ${o.y} ${l} ${s.x} ${o.y-p} L ${s.x} ${s.y}`:`M ${o.x} ${o.y} L ${o.x} ${s.y+d} ${u} ${o.x+p} ${s.y} L ${s.x} ${s.y}`),o.y===s.y&&(h=`M ${o.x} ${o.y} L ${s.x} ${s.y}`));if(h===void 0)throw Error(`Line definition not found`);e.append(`path`).attr(`d`,h).attr(`class`,`arrow arrow`+z(m,F,a))},`drawArrow`),Ie=e((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Fe(n,t.get(e),r,t)})})},`drawArrows`),Le=e((e,t,n,r)=>{let{look:i,theme:a,themeVariables:o}=f(),{dropShadow:s,THEME_COLOR_LIMIT:c}=o,l=I.has(a??``),u=R.has(a??``),d=e.append(`g`);t.forEach((e,t)=>{let a=z(t,l?c:F,u),o=B.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let f=K===`TB`||K===`BT`?o:l?o+L/2+1:o-2,p=d.append(`line`);p.attr(`x1`,0),p.attr(`y1`,f),p.attr(`x2`,G),p.attr(`y2`,f),p.attr(`class`,`branch branch`+a),K===`TB`?(p.attr(`y1`,H),p.attr(`x1`,o),p.attr(`y2`,G),p.attr(`x2`,o)):K===`BT`&&(p.attr(`y1`,G),p.attr(`x1`,o),p.attr(`y2`,H),p.attr(`x2`,o)),W.push(f);let m=e.name,h=J(m),g=d.insert(`rect`),_=d.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+a);_.node().appendChild(h);let v=h.getBBox(),y=l?0:4,b=l?16:0,x=l?L:0;i===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+a).attr(`style`,i===`neo`?`filter:${l?`url(#${r}-drop-shadow)`:s}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(n.rotateCommitLabel===!0?30:0)).attr(`y`,-v.height/2+10).attr(`width`,v.width+18+b).attr(`height`,v.height+4+x),_.attr(`transform`,`translate(`+(-v.width-14-(n.rotateCommitLabel===!0?30:0)+b/2)+`, `+(f-v.height/2-2)+`)`),K===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):K===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,G),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+G+`)`),l&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(G+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(f-12-x/2)+`)`)})},`drawBranches`),Re=e(function(e,t,n,r,i){return B.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(K===`TB`||K===`BT`?r.width/2:0),t},`setBranchPosition`),ze={draw:e(function(e,n,r,i){q(),t.debug(`in gitgraph renderer`,e+`
14
+ `,`id:`,n,r);let o=i.db;if(!o.getConfig){t.error(`getConfig method is not available on db`);return}let s=o.getConfig(),c=s.rotateCommitLabel??!1;U=o.getCommits();let l=o.getBranchesAsObjArray();K=o.getDirection();let u=m(`[id="${n}"]`),{look:d,theme:p,themeVariables:g}=f(),{useGradient:_,gradientStart:v,gradientStop:y,filterColor:b}=g;if(_){let e=u.append(`defs`).append(`linearGradient`).attr(`id`,n+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,v).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,y).attr(`stop-opacity`,1)}d===`neo`&&I.has(p??``)&&u.append(`defs`).append(`filter`).attr(`id`,n+`-drop-shadow`).attr(`height`,`130%`).attr(`width`,`130%`).append(`feDropShadow`).attr(`dx`,`4`).attr(`dy`,`4`).attr(`stdDeviation`,0).attr(`flood-opacity`,`0.06`).attr(`flood-color`,b);let x=0;l.forEach((e,t)=>{let n=J(e.name),r=u.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();x=Re(e.name,x,t,o,c),a.remove(),i.remove(),r.remove()}),X(u,U,!1,s),s.showBranches&&Le(u,l,s,n),Ie(u,U),X(u,U,!0,s),h.insertTitle(u,`gitTitleText`,s.titleTopMargin??0,o.getDiagramTitle()),a(void 0,u,s.diagramPadding,s.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Be=new Set([`redux-color`,`redux-dark-color`]),Ve=new Set([`neo`,`neo-dark`]),He=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Ue=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),We=e(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
15
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
16
+ `;return n},`genGitGraphGradient`),Ge=e(e=>{let{theme:t,themeVariables:n}=s(),{borderColorArray:r}=n,i=$.has(t);if(Ve.has(t)){let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)if(n===0)t+=`
17
+ .branch-label${n} { fill: ${e.nodeBorder};}
18
+ .commit${n} { stroke: ${e.nodeBorder}; }
19
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
20
+ .arrow${n} { stroke: ${e.nodeBorder}; }
21
+ .commit-bullets { fill: ${e.nodeBorder}; }
22
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
23
+ ${We(e)}`;else{let r=n%Q;t+=`
24
+ .branch-label${n} { fill: ${e[`gitBranchLabel`+r]}; }
25
+ .commit${n} { stroke: ${e[`git`+r]}; fill: ${e[`git`+r]}; }
26
+ .commit-highlight${n} { stroke: ${e[`gitInv`+r]}; fill: ${e[`gitInv`+r]}; }
27
+ .arrow${n} { stroke: ${e[`git`+r]}; }
28
+ `}return t}else if(Be.has(t)){let n=``;for(let a=0;a<e.THEME_COLOR_LIMIT;a++)if(a===0)n+=`
29
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
30
+ .commit${a} { stroke: ${e.nodeBorder}; }
31
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
32
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``} }
33
+ .arrow${a} { stroke: ${e.nodeBorder}; }
34
+ .commit-bullets { fill: ${e.nodeBorder}; }
35
+ `;else{let o=a%r.length;n+=`
36
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
37
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
38
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
39
+ .label${a} { fill: ${He.has(t)?e.mainBkg:r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
40
+ .arrow${a} { stroke: ${r[o]}; }
41
+ `}return n}else{let t=``;for(let n=0;n<e.THEME_COLOR_LIMIT;n++)t+=`
42
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i?`font-weight:${e.noteFontWeight}`:``} }
43
+ .commit${n} { stroke: ${e.nodeBorder}; }
44
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
45
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i?`font-weight:${e.noteFontWeight}`:``}}
46
+ .arrow${n} { stroke: ${e.nodeBorder}; }
47
+ .commit-bullets { fill: ${e.nodeBorder}; }
48
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
49
+ `;return t}},`genColor`),Ke=e(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return`
50
+ .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
51
+ .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
52
+ .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
53
+ .label${t} { fill: ${e[`git`+n]}; }
54
+ .arrow${t} { stroke: ${e[`git`+n]}; }
55
+ `}).join(`
56
+ `)}`,`normalTheme`),qe={parser:be,db:A,renderer:ze,styles:e(e=>{let{theme:t}=s(),n=Ue.has(t);return`
57
+ .commit-id,
58
+ .commit-msg,
59
+ .branch-label {
60
+ fill: lightgrey;
61
+ color: lightgrey;
62
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
+ font-family: var(--mermaid-font-family);
64
+ }
65
+
66
+ ${n?Ge(e):Ke(e)}
67
+
68
+ .branch {
69
+ stroke-width: ${e.strokeWidth};
70
+ stroke: ${e.commitLineColor??e.lineColor};
71
+ stroke-dasharray: ${n?`4 2`:`2`};
72
+ }
73
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n?e.nodeBorder:e.commitLabelColor}; ${n?`font-weight:${e.noteFontWeight};`:``}}
74
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n?`transparent`:e.commitLabelBackground}; opacity: ${n?``:.5}; }
75
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
76
+ .tag-label-bkg { fill: ${n?e.mainBkg:e.tagLabelBackground}; stroke: ${n?e.nodeBorder:e.tagLabelBorder}; ${n?`filter:${e.dropShadow}`:``} }
77
+ .tag-hole { fill: ${e.textColor}; }
78
+
79
+ .commit-merge {
80
+ stroke: ${n?e.mainBkg:e.primaryColor};
81
+ fill: ${n?e.mainBkg:e.primaryColor};
82
+ }
83
+ .commit-reverse {
84
+ stroke: ${n?e.mainBkg:e.primaryColor};
85
+ fill: ${n?e.mainBkg:e.primaryColor};
86
+ stroke-width: ${n?e.strokeWidth:3};
87
+ }
88
+ .commit-highlight-outer {
89
+ }
90
+ .commit-highlight-inner {
91
+ stroke: ${n?e.mainBkg:e.primaryColor};
92
+ fill: ${n?e.mainBkg:e.primaryColor};
93
+ }
94
+
95
+ .arrow {
96
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
+ stroke-width: ${$.has(t)?e.strokeWidth:8};
98
+ stroke-linecap: round;
99
+ fill: none
100
+ }
101
+ .gitTitleText {
102
+ text-anchor: middle;
103
+ font-size: 18px;
104
+ fill: ${e.textColor};
105
+ }
106
+ `},`getStyles`)};export{qe as diagram};
@@ -0,0 +1,10 @@
1
+ import"./chunk-SRAX5OIU-D2mqL_eA.js";var e={paste:`Pegar`,pasteAsPlaintext:`Pegar coma texto sen formato`,pasteCharts:`Pegar gráficos`,selectAll:`Seleccionar todo`,multiSelect:`Engadir elemento á selección`,moveCanvas:`Mover o lenzo`,cut:`Cortar`,copy:`Copiar`,copyAsPng:`Copiar no portapapeis como PNG`,copyAsSvg:`Copiar no portapapeis como SVG`,copyText:`Copia no portapapeis como texto`,copySource:``,convertToCode:``,bringForward:`Traer cara adiante`,sendToBack:`Enviar cara atrás`,bringToFront:`Traer á fronte`,sendBackward:`Enviar ao fondo`,delete:`Borrar`,copyStyles:`Copiar estilo`,pasteStyles:`Pegar estilo`,stroke:`Trazo`,background:`Fondo`,fill:`Recheo`,strokeWidth:`Largo do trazo`,strokeStyle:`Estilo do trazo`,strokeStyle_solid:`Sólido`,strokeStyle_dashed:`Liña de trazos`,strokeStyle_dotted:`Liña de puntos`,sloppiness:`Estilo de trazo`,opacity:`Opacidade`,textAlign:`Aliñar texto`,edges:`Bordos`,sharp:`Agudo`,round:`Redondo`,arrowheads:`Puntas de frecha`,arrowhead_none:`Ningunha`,arrowhead_arrow:`Frecha`,arrowhead_bar:`Barra`,arrowhead_circle:``,arrowhead_circle_outline:``,arrowhead_triangle:`Triángulo`,arrowhead_triangle_outline:``,arrowhead_diamond:``,arrowhead_diamond_outline:``,fontSize:`Tamaño da fonte`,fontFamily:`Tipo de fonte`,addWatermark:`Engadir "Feito con Excalidraw"`,handDrawn:`Debuxado a man`,normal:`Normal`,code:`Código`,small:`Pequeno`,medium:`Mediano`,large:`Grande`,veryLarge:`Moi grande`,solid:`Sólido`,hachure:`Folleto`,zigzag:`Zigzag`,crossHatch:`Raiado transversal`,thin:`Estreito`,bold:`Groso`,left:`Esquerda`,center:`Centrado`,right:`Dereita`,extraBold:`Moi groso`,architect:`Arquitecto`,artist:`Artista`,cartoonist:`Caricatura`,fileTitle:`Nome do arquivo`,colorPicker:`Selector de cor`,canvasColors:`Usado en lenzo`,canvasBackground:`Fondo do lenzo`,drawingCanvas:`Lenzo de debuxo`,layers:`Capas`,actions:`Accións`,language:`Idioma`,liveCollaboration:`Colaboración en directo...`,duplicateSelection:`Duplicar`,untitled:`Sen título`,name:`Nome`,yourName:`O teu nome`,madeWithExcalidraw:`Feito con Excalidraw`,group:`Agrupar selección`,ungroup:`Desagrupar selección`,collaborators:`Colaboradores`,showGrid:`Mostrar cuadrícula`,addToLibrary:`Engadir á biblioteca`,removeFromLibrary:`Eliminar da biblioteca`,libraryLoadingMessage:`Cargando biblioteca…`,libraries:`Explorar bibliotecas`,loadingScene:`Cargando escena…`,align:`Aliñamento`,alignTop:`Aliñamento superior`,alignBottom:`Aliñamento inferior`,alignLeft:`Aliñar a esquerda`,alignRight:`Aliñar a dereita`,centerVertically:`Centrar verticalmente`,centerHorizontally:`Centrar horizontalmente`,distributeHorizontally:`Distribuír horizontalmente`,distributeVertically:`Distribuír verticalmente`,flipHorizontal:`Virar horizontalmente`,flipVertical:`Virar verticalmente`,viewMode:`Modo de visualización`,share:`Compartir`,showStroke:`Mostrar selector de cores do trazo`,showBackground:`Mostrar selector de cores do fondo`,toggleTheme:`Alternar tema`,personalLib:`Biblioteca Persoal`,excalidrawLib:`Biblioteca Excalidraw`,decreaseFontSize:`Diminuír tamaño da fonte`,increaseFontSize:`Aumentar o tamaño da fonte`,unbindText:`Desvincular texto`,bindText:`Ligar o texto ao contedor`,createContainerFromText:`Envolver o texto nun contedor`,link:{edit:`Editar ligazón`,editEmbed:``,create:`Crear ligazón`,createEmbed:``,label:`Ligazón`,labelEmbed:``,empty:``},lineEditor:{edit:`Editar liña`,exit:`Saír do editor de liñas`},elementLock:{lock:`Bloquear`,unlock:`Desbloquear`,lockAll:`Bloquear todo`,unlockAll:`Desbloquear todo`},statusPublished:`Publicado`,sidebarLock:`Manter a barra lateral aberta`,selectAllElementsInFrame:``,removeAllElementsFromFrame:``,eyeDropper:``,textToDiagram:``,prompt:``},t={noItems:`Aínda non hai elementos engadidos...`,hint_emptyLibrary:`Seleccione un elemento no lenzo para engadilo aquí, ou instale unha biblioteca dende o repositorio público, como se detalla a continuación.`,hint_emptyPrivateLibrary:`Seleccione un elemento do lenzo para engadilo aquí.`},n={clearReset:`Limpar o lenzo`,exportJSON:`Exportar a arquivo`,exportImage:`Exportar imaxe...`,export:`Gardar en...`,copyToClipboard:`Copiar ao portapapeis`,save:`Gardar no ficheiro actual`,saveAs:`Gardar como`,load:`Abrir`,getShareableLink:`Obter unha ligazón que se poida compartir`,close:`Pechar`,selectLanguage:`Seleccionar idioma`,scrollBackToContent:`Volver ao contido`,zoomIn:`Ampliar`,zoomOut:`Reducir`,resetZoom:`Reiniciar zoom`,menu:`Menú`,done:`Feito`,edit:`Editar`,undo:`Desfacer`,redo:`Refacer`,resetLibrary:`Reiniciar biblioteca`,createNewRoom:`Crear nova sala`,fullScreen:`Pantalla completa`,darkMode:`Modo escuro`,lightMode:`Modo claro`,zenMode:`Modo zen`,objectsSnapMode:``,exitZenMode:`Saír do modo zen`,cancel:`Cancelar`,clear:`Limpar`,remove:`Eliminar`,embed:``,publishLibrary:`Publicar`,submit:`Enviar`,confirm:`Confirmar`,embeddableInteractionButton:`Faga clic para interactuar`},r={clearReset:`Isto limpará todo o lenzo. Estás seguro?`,couldNotCreateShareableLink:`Non se puido crear unha ligazón para compartir.`,couldNotCreateShareableLinkTooBig:`Non se puido crear a ligazón para compartir: a escena é demasiado grande`,couldNotLoadInvalidFile:`Non se puido cargar o ficheiro non válido`,importBackendFailed:`A importación dende o backend fallou.`,cannotExportEmptyCanvas:`Non se pode exportar un lenzo baleiro.`,couldNotCopyToClipboard:`Non se puido copiar ao portapapeis.`,decryptFailed:`Non se poideron descifrar os datos.`,uploadedSecurly:`A carga foi asegurada con cifrado de extremo a extremo, o que significa que o servidor de Excalidraw e terceiros non poden ler o contido.`,loadSceneOverridePrompt:`A carga dun debuxo externo substituirá o contido existente. Desexa continuar?`,collabStopOverridePrompt:`Deter a sesión, sobrescribirá o seu debuxo local previamente almacenado. Está seguro?
2
+
3
+ (Se quere manter o seu debuxo local, simplemente peche a lapela do navegador.)`,errorAddingToLibrary:`Non se puido engadir o elemento á biblioteca`,errorRemovingFromLibrary:`Non se puido eliminar o elemento da biblioteca`,confirmAddLibrary:`Isto engadirá {{numShapes}} forma(s) a túa biblioteca. Estás seguro?`,imageDoesNotContainScene:`Esta imaxe non parece conter ningún dato da escena. Activou a inserción de escenas durante a exportación?`,cannotRestoreFromImage:`Non se puido restaurar a escena dende este arquivo de imaxe`,invalidSceneUrl:`Non se puido importar a escena dende a URL proporcionada. Ou ben está malformada ou non contén un JSON con información válida para Excalidraw.`,resetLibrary:`Isto limpará a súa biblioteca. Está seguro?`,removeItemsFromsLibrary:`Eliminar {{count}} elemento(s) da biblioteca?`,invalidEncryptionKey:`A clave de cifrado debe ter 22 caracteres. A colaboración en directo está desactivada.`,collabOfflineWarning:`Non hai conexión a Internet dispoñible.
4
+ Os teus cambios non serán gardados!`},i={unsupportedFileType:`Tipo de ficheiro non soportado.`,imageInsertError:`Non se puido inserir a imaxe. Probe de novo máis tarde...`,fileTooBig:`O ficheiro é demasiado grande. O tamaño máximo permitido é {{maxSize}}.`,svgImageInsertError:`Non se puido inserir como imaxe SVG. O marcado SVG semella inválido.`,failedToFetchImage:``,invalidSVGString:`SVG inválido.`,cannotResolveCollabServer:`Non se puido conectar ao servidor de colaboración. Por favor recargue a páxina e probe de novo.`,importLibraryError:`Non se puido cargar a biblioteca`,collabSaveFailed:`Non se puido gardar na base de datos. Se o problema persiste, deberías gardar o teu arquivo de maneira local para asegurarte de non perdelo teu traballo.`,collabSaveFailed_sizeExceeded:`Non se puido gardar na base de datos, o lenzo semella demasiado grande. Deberías gardar o teu arquivo de maneira local para asegurarte de non perdelo teu traballo.`,imageToolNotSupported:``,brave_measure_text_error:{line1:``,line2:``,line3:``,line4:``},libraryElementTypeError:{embeddable:``,iframe:``,image:``},asyncPasteFailedOnRead:``,asyncPasteFailedOnParse:``,copyToSystemClipboardFailed:``},a={selection:`Selección`,image:`Inserir imaxe`,rectangle:`Rectángulo`,diamond:`Diamante`,ellipse:`Elipse`,arrow:`Frecha`,line:`Liña`,freedraw:`Debuxar`,text:`Texto`,library:`Biblioteca`,lock:`Manter a ferramenta seleccionada activa despois de debuxar`,penMode:`Modo lapis - evitar o contacto`,link:`Engadir/ Actualizar ligazón para a forma seleccionada`,eraser:`Goma de borrar`,frame:``,magicframe:``,embeddable:`Inserir na web`,laser:`Punteiro láser`,hand:`Man (ferramenta de desprazamento)`,extraTools:`Máis ferramentas`,mermaidToExcalidraw:``,magicSettings:``},o={canvasActions:`Accións do lenzo`,selectedShapeActions:`Accións da forma seleccionada`,shapes:`Formas`},s={canvasPanning:`Para mover o lenzo, manteña pulsada a roda do rato ou a barra de espazo mentres arrastra, ou utilice a ferramenta da man`,linearElement:`Faga clic para iniciar varios puntos, arrastre para unha sola liña`,freeDraw:`Fai clic e arrastra, solta cando acabes`,text:`Consello: tamén podes engadir texto facendo dobre-clic en calquera lugar coa ferramenta de selección`,embeddable:`Faga clic e arrastre para crear un sitio web embebido`,text_selected:`Dobre-clic ou prema ENTER para editar o texto`,text_editing:`Prema Escape ou CtrlOrCmd+ENTER para finalizar a edición`,linearElementMulti:`Faga clic no último punto ou prema Escape ou Enter para rematar`,lockAngle:`Pode reducir o ángulo mantendo SHIFT`,resize:`Pode reducir as proporcións mantendo SHIFT mentres axusta o tamaño,
5
+ manteña ALT para axustalo dende o centro`,resizeImage:`Pode axustar o tamaño libremente mantendo SHIFT,
6
+ manteña ALT para axustalo dende o centro`,rotate:`Podes reducir os ángulos mantendo SHIFT mentres os rotas`,lineEditor_info:`Manteña pulsado CtrlOrCmd e faga dobre clic ou prema CtrlOrCmd + Enter para editar puntos`,lineEditor_pointSelected:`Prema Suprimir para eliminar o(s) punto(s)
7
+ CtrlOrCmd+D para duplicalos, ou arrastre para movelos`,lineEditor_nothingSelected:`Seleccione un punto para editar (manteña pulsado SHIFT para selección múltiple),
8
+ ou manteña pulsado Alt e faga clic para engadir novos puntos`,placeImage:`Faga clic para colocar a imaxe, ou faga clic e arrastre para establecer o seu tamaño manualmente`,publishLibrary:`Publica a túa propia biblioteca`,bindTextToElement:`Prema a tecla enter para engadir texto`,deepBoxSelect:`Manteña pulsado CtrlOrCmd para seleccionar en profundidade e evitar o arrastre`,eraserRevert:`Manteña pulsado Alt para reverter os elementos marcados para a súa eliminación`,firefox_clipboard_write:`Esta función pódese activar establecendo a opción "dom.events.asyncClipboard.clipboardItem" a "true". Para cambiar as opcións do navegador en Firefox, visita a páxina "about:config".`,disableSnapping:``},c={cannotShowPreview:`Non se pode mostrar a vista previa`,canvasTooBig:`Pode que o lenzo sexa demasiado grande.`,canvasTooBigTip:`Consello: Probe a acercar un pouco os elementos máis afastados.`},l={headingMain:`Atopouse un erro. Probe <button>recargando a páxina.</button>`,clearCanvasMessage:`Se recargar non funcionou, probe <button>limpando o lenzo.</button>`,clearCanvasCaveat:` Isto resultará nunha perda do seu traballo `,trackedToSentry:`O erro con identificador {{eventId}} foi rastrexado no noso sistema.`,openIssueMessage:`Fomos moi cautelosos de non incluír a información da súa escena no erro. Se a súa escena non é privada, por favor, considere o seguimento do noso <button>rastrexador de erros.</button> Por favor inclúa a seguinte información copiándoa e pegándoa na issue de Github.`,sceneContent:`Contido da escena:`},u={desc_intro:`Podes invitar xente a colaborar contigo na túa escena actual.`,desc_privacy:`Non te preocupes, a sesión usa cifrado de punto a punto, polo que calquera cousa que debuxes mantense privada. Nin tan sequera o noso servidor será capaz de ver o que fas.`,button_startSession:`Comezar sesión`,button_stopSession:`Rematar sesión`,desc_inProgressIntro:`A sesión de colaboración en directo está agora en progreso.`,desc_shareLink:`Comparte esta ligazón con calquera que queiras colaborar:`,desc_exitSession:`Deter a sesión desconectarao da sala, pero poderá seguir traballando coa escena de maneira local. Teña en conta que isto non afectará a outras persoas, que poderán seguir colaborando na súa versión.`,shareTitle:`Únase a unha sesión de colaboración en directo en Excalidraw`},d={title:`Erro`},f={disk_title:`Gardar no disco`,disk_details:`Exporte os datos da escena a un ficheiro que poderás importar máis tarde.`,disk_button:`Gardar nun ficheiro`,link_title:`Ligazón para compartir`,link_details:`Exportar como unha ligazón de só lectura.`,link_button:`Exportar a unha ligazón`,excalidrawplus_description:`Garde a escena no seu espazo de traballo en Excalidraw+.`,excalidrawplus_button:`Exportar`,excalidrawplus_exportError:`Non se puido exportar a Excalidraw+ neste momento...`},p={blog:`Le o noso blog`,click:`clic`,deepSelect:`Selección en profundidade`,deepBoxSelect:`Selección en profundidade dentro da caixa, evitando o arrastre`,curvedArrow:`Frecha curva`,curvedLine:`Liña curva`,documentation:`Documentación`,doubleClick:`dobre-clic`,drag:`arrastrar`,editor:`Editor`,editLineArrowPoints:``,editText:``,github:`Encontrou un problema? Envíeo`,howto:`Sigue as nosas normas`,or:`ou`,preventBinding:`Evitar a unión de frechas`,tools:`Ferramentas`,shortcuts:`Atallos de teclado`,textFinish:`Rematar de editar (editor de texto)`,textNewLine:`Engadir unha nova liña (editor de texto)`,title:`Axuda`,view:`Vista`,zoomToFit:`Zoom que se axuste a todos os elementos`,zoomToSelection:`Zoom á selección`,toggleElementLock:`Bloquear/desbloquear selección`,movePageUpDown:`Mover páxina cara enriba/abaixo`,movePageLeftRight:`Mover páxina cara a esquerda/dereita`},m={title:`Limpar lenzo`},h={title:`Publicar biblioteca`,itemName:`Nome do elemento`,authorName:`Nome do autor`,githubUsername:`Nome de usuario en Github`,twitterUsername:`Nome de usuario en Twitter`,libraryName:`Nome da biblioteca`,libraryDesc:`Descrición da biblioteca`,website:`Páxina web`,placeholder:{authorName:`O seu nome ou nome de usuario`,libraryName:`Nome da súa biblioteca`,libraryDesc:`Descrición da súa biblioteca para axudar a xente a entender o seu uso`,githubHandle:`Nome de usuario de GitHub (opcional), así poderás editar a biblioteca unha vez enviada para a súa revisión`,twitterHandle:`Nome de usuario en Twitter(opcional), así sabemos a quen darlle crédito cando se lle de promoción a través de Twitter`,website:`Ligazón ao teu sitio web persoal ou a outro sitio (opcional)`},errors:{required:`Obrigatorio`,website:`Introduza unha URL válida`},noteDescription:`Envíe a súa biblioteca para que sexa incluída no <link>repositorio público de bibliotecas</link>para que outra xente a poida usar nos seus debuxos.`,noteGuidelines:`A biblioteca necesita ser aprobada manualmente primeiro. Por favor, lea as <link>normas</link> antes de ser enviado. Necesitarás unha conta de GitHub para comunicarte ou facer cambios se se solicitan, pero non é estritamente necesario.`,noteLicense:`Ao enviar, estás de acordo con que a biblioteca sexa publicada baixo a <link>Licenza MIT, </link>o cal significa que, en resumo, calquera pode usalo sen restricións.`,noteItems:`Cada elemento da biblioteca debe ter o seu nome propio para que se poida filtrar. Os seguintes elementos da biblioteca serán incluídos:`,atleastOneLibItem:`Por favor seleccione polo menos un elemento da biblioteca para comezar`,republishWarning:`Nota: algúns dos elementos seleccionados están marcados como xa publicados/enviados. Só deberías reenviar elementos cando se actualice unha biblioteca ou envío.`},g={title:`Biblioteca enviada`,content:`Grazas {{authorName}}. A súa biblioteca foi enviada para ser revisada. Pode seguir o estado<link>aquí</link>`},_={resetLibrary:`Restablecer biblioteca`,removeItemsFromLib:`Eliminar os elementos seleccionados da biblioteca`},v={header:`Exportar imaxe`,label:{withBackground:`Fondo`,onlySelected:``,darkMode:`Modo escuro`,embedScene:``,scale:``,padding:``},tooltip:{embedScene:``},title:{exportToPng:`Exportar a PNG`,exportToSvg:`Exportar a SVG`,copyPngToClipboard:`Copiar PNG ao portapapeis`},button:{exportToPng:`PNG`,exportToSvg:`SVG`,copyPngToClipboard:`Copiar ao portapapeis`}},y={tooltip:`Os teus debuxos están cifrados de punto a punto, polo que os servidores de Excalidraw nunca os verán.`,link:`Entrada do blog acerca do cifrado de punto a punto en Excalidraw`},b={angle:`Ángulo`,element:`Elemento`,elements:`Elementos`,height:`Alto`,scene:`Escena`,selected:`Seleccionado`,storage:`Almacenamento`,title:`Estadísticas para nerds`,total:`Total`,version:`Versión`,versionCopy:`Faga clic para copiar`,versionNotAvailable:`Versión non dispoñible`,width:`Ancho`},x={addedToLibrary:`Engadido á biblioteca`,copyStyles:`Estilos copiados.`,copyToClipboard:`Copiado ao portapapeis.`,copyToClipboardAsPng:`Copiar {{exportSelection}} ao portapapeis como PNG
9
+ ({{exportColorScheme}})`,fileSaved:`Ficheiro gardado.`,fileSavedToFilename:`Gardado en {filename}`,canvas:`lenzo`,selection:`selección`,pasteAsSingleElement:`Usa {{shortcut}} para pegar como un único elemento
10
+ ou pega nun editor de texto existente`,unableToEmbed:``,unrecognizedLinkFormat:``},S={transparent:`Transparente`,black:`Negro`,white:`Branco`,red:`Vermello`,pink:`Rosa`,grape:`Uva`,violet:`Violeta`,gray:`Gris`,blue:`Azul`,cyan:``,teal:``,green:`Verde`,yellow:`Marelo`,orange:`Laranxa`,bronze:`Bronce`},C={app:{center_heading:`Toda a información é gardada de maneira local no seu navegador.`,center_heading_plus:`Queres ir a Excalidraw+ no seu lugar?`,menuHint:`Exportar, preferencias, idiomas, ...`},defaults:{menuHint:`Exportar, preferencias, e máis...`,center_heading:`Diagramas. Feito. Sinxelo.`,toolbarHint:`Escolle unha ferramenta & Comeza a debuxar!`,helpHint:`Atallos & axuda`}},w={mostUsedCustomColors:``,colors:`Cores`,shades:``,hexCode:``,noShades:``},T={action:{exportToImage:{title:`Exportar como imaxe`,button:`Exportar como imaxe`,description:``},saveToDisk:{title:`Gardar no disco`,button:`Gardar no disco`,description:``},excalidrawPlus:{title:`Excalidraw+`,button:`Exportar a Excalidraw+`,description:``}},modal:{loadFromFile:{title:`Cargar dende arquivo`,button:`Cargar dende arquivo`,description:``},shareableLink:{title:`Cargar dende un enlace`,button:`Substituír o meu contido`,description:``}}},E={title:``,button:``,description:``,syntax:``,preview:``},D={labels:e,library:t,buttons:n,alerts:r,errors:i,toolBar:a,headings:o,hints:s,canvasError:c,errorSplash:l,roomDialog:u,errorDialog:d,exportDialog:f,helpDialog:p,clearCanvasDialog:m,publishDialog:h,publishSuccessDialog:g,confirmDialog:_,imageExportDialog:v,encrypted:y,stats:b,toast:x,colors:S,welcomeScreen:C,colorPicker:w,overwriteConfirm:T,mermaid:E};export{r as alerts,n as buttons,c as canvasError,m as clearCanvasDialog,w as colorPicker,S as colors,_ as confirmDialog,D as default,y as encrypted,d as errorDialog,l as errorSplash,i as errors,f as exportDialog,o as headings,p as helpDialog,s as hints,v as imageExportDialog,e as labels,t as library,E as mermaid,T as overwriteConfirm,h as publishDialog,g as publishSuccessDialog,u as roomDialog,b as stats,x as toast,a as toolBar,C as welcomeScreen};