@layers-app/editor 0.7.29 → 0.7.31

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 (214) hide show
  1. package/README.md +111 -0
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.ts +4 -1
  4. package/dist/index.js +2 -2
  5. package/dist/{layers.C52auqjj.js → layers.0IyMWDz5.js} +2 -2
  6. package/dist/{layers.WSjwxoI_.js → layers.1x71m17k.js} +1 -1
  7. package/dist/{layers.B3-2Qv9W.js → layers.3Om3t2Z_.js} +1 -1
  8. package/dist/{layers.B13kz55O.js → layers.4Fo1-48s.js} +1 -1
  9. package/dist/{layers.D2UdwJdx.js → layers.5z5cHJxH.js} +1 -1
  10. package/dist/{layers.BvBLoOhy.js → layers.6YwTkhvt.js} +1 -1
  11. package/dist/{layers.BBxN_3oT.js → layers.6m8HLcSO.js} +1 -1
  12. package/dist/{layers.3uP6lTBs.js → layers.7bO_wVS9.js} +1 -1
  13. package/dist/{layers.ff4Jab6V.js → layers.7mAs-3CR.js} +1 -1
  14. package/dist/{layers.CT_maPza.js → layers.8hLT0HS7.js} +1 -1
  15. package/dist/{layers.Cw3zi6ot.js → layers.A4l_cQhe.js} +1 -1
  16. package/dist/{layers.XstgwanS.js → layers.AIFLvqiL.js} +1 -1
  17. package/dist/{layers.CfYiJYUK.js → layers.B0xxDynX.js} +1 -1
  18. package/dist/{layers.3RdpIy11.js → layers.B2zQoClA.js} +6 -6
  19. package/dist/{layers.CRRIDL86.js → layers.B3s3xHhW.js} +1 -1
  20. package/dist/{layers.BvqU3Sdo.js → layers.B4bzq2St.js} +4 -4
  21. package/dist/{layers.GiLd5pex.js → layers.B5WssB9O.js} +3 -3
  22. package/dist/{layers.BEQP5AX_.js → layers.B7z98Twi.js} +1 -1
  23. package/dist/{layers.Dn8dUnLw.js → layers.BBnfr2YB.js} +1 -1
  24. package/dist/{layers.D5PKvlsr.js → layers.BDYssWi9.js} +1 -1
  25. package/dist/{layers.Dv3qX5QF.js → layers.BIsRrmwJ.js} +1 -1
  26. package/dist/{layers.zqmbwRIT.js → layers.BJiKpx59.js} +1 -1
  27. package/dist/layers.BLfs2Wat.js +129 -0
  28. package/dist/{layers.CMJvFaHq.js → layers.BMOufvng.js} +1 -1
  29. package/dist/{layers.j2AugaW_.js → layers.BNNjEKHw.js} +1 -1
  30. package/dist/{layers.BDYsJmeH.js → layers.BOZ7CCqF.js} +1 -1
  31. package/dist/{layers.C5Kilh6U.js → layers.BP6BelqB.js} +1 -1
  32. package/dist/{layers.QIbKf4RT.js → layers.BQks7F9T.js} +1 -1
  33. package/dist/{layers.Dn1ZCK1c.js → layers.BS6H5T7o.js} +1 -1
  34. package/dist/{layers.DR3vtFU4.js → layers.BVH7sR1J.js} +1 -1
  35. package/dist/{layers.CaVpO5_J.js → layers.BW9DGUUG.js} +1 -1
  36. package/dist/{layers.BggRrBNT.js → layers.BXA8vSPT.js} +4 -4
  37. package/dist/layers.BYYqABvB.js +8 -0
  38. package/dist/{layers.Dw0auG8Q.js → layers.BYZgTW-D.js} +2 -2
  39. package/dist/{layers.NPGqaScJ.js → layers.Bcp8vVUY.js} +1 -1
  40. package/dist/{layers.fTdftBdI.js → layers.Bdp7KiYc.js} +1 -1
  41. package/dist/{layers.VGo1X9m3.js → layers.BdyYzFMy.js} +1 -1
  42. package/dist/{layers.ByCrgmzI.js → layers.BeCyZ4T5.js} +1 -1
  43. package/dist/{layers.5KLNOsGi.js → layers.BgetKNXB.js} +1 -1
  44. package/dist/{layers.exglxTtS.js → layers.BjCa6Vhc.js} +1 -1
  45. package/dist/{layers.xiJ8nk__.js → layers.BjFJ8W69.js} +1 -1
  46. package/dist/{layers.DlLZxsUk.js → layers.Bk3TUNSG.js} +1 -1
  47. package/dist/{layers.BLmqCDOI.js → layers.BkOV6TKv.js} +1 -1
  48. package/dist/{layers.DWEp0Vvi.js → layers.Bl2qa0Go.js} +1 -1
  49. package/dist/{layers.DgfURPBV.js → layers.Bl4z_ye0.js} +1 -1
  50. package/dist/{layers.BtVtvTIG.js → layers.Bn0zMvcY.js} +1 -1
  51. package/dist/{layers.cFoDs8ir.js → layers.Bo1IQgTY.js} +4 -4
  52. package/dist/{layers.BogfOS03.js → layers.Bp5B9IH7.js} +1 -1
  53. package/dist/{layers.BT9Baja5.js → layers.Bp_neKf-.js} +1 -1
  54. package/dist/{layers.DaWC_onm.js → layers.BpqTdnOQ.js} +1 -1
  55. package/dist/{layers.CREbxxJm.js → layers.BqbEssNp.js} +4 -4
  56. package/dist/{layers.BzxBJVM5.js → layers.BrZVQ2iU.js} +1 -1
  57. package/dist/{layers.BV_hiBNU.js → layers.BuXH_mbz.js} +3 -3
  58. package/dist/{layers.CmnX9Ckf.js → layers.BwMuKYbs.js} +1 -1
  59. package/dist/{layers.DSYB2EoJ.js → layers.BxFdbr07.js} +1 -1
  60. package/dist/{layers.CgsmhnI9.js → layers.ByfmrxIM.js} +1 -1
  61. package/dist/{layers.Dy8hvaZC.js → layers.BzC0Ahfv.js} +1 -1
  62. package/dist/{layers.B3by1yi9.js → layers.C-uxyI5D.js} +1 -1
  63. package/dist/{layers.DfUqe8p9.js → layers.C16EyDh5.js} +1 -1
  64. package/dist/{layers.j-ECAe6i.js → layers.C18tB2Ez.js} +1 -1
  65. package/dist/{layers.BbegB9Ct.js → layers.C2QHWjtY.js} +1 -1
  66. package/dist/{layers.Bzb9KnZL.js → layers.C2wBKRZF.js} +1 -1
  67. package/dist/{layers.Chj92fyS.js → layers.C2xcuECS.js} +1 -1
  68. package/dist/{layers.W3oI2l3F.js → layers.C5RtY-nF.js} +3 -3
  69. package/dist/{layers.CsH3uH92.js → layers.C5kradWl.js} +1 -1
  70. package/dist/{layers.BfC3YcAH.js → layers.C5y5935Y.js} +1 -1
  71. package/dist/{layers.OJfLC75t.js → layers.C68FUBOf.js} +3 -3
  72. package/dist/{layers.IhVuN9a5.js → layers.C7JjeKEx.js} +1 -1
  73. package/dist/{layers.B6cw5k1p.js → layers.C7YdwUJ3.js} +2 -2
  74. package/dist/{layers.CKnqUyPY.js → layers.C7lZmq0W.js} +24 -24
  75. package/dist/{layers.0mi4m22v.js → layers.C8diIYu-.js} +1 -1
  76. package/dist/{layers.BSSh3vKX.js → layers.C8ohPE3b.js} +1 -1
  77. package/dist/{layers.CtF2Lw_2.js → layers.C9hy0-KS.js} +1 -1
  78. package/dist/{layers.cZtVhpsF.js → layers.CAi6uf_s.js} +1 -1
  79. package/dist/{layers.CBL8JLN5.js → layers.CAl3TZD_.js} +1 -1
  80. package/dist/{layers.CXX33Dc8.js → layers.CDwtHby_.js} +5 -5
  81. package/dist/{layers.Bfv5w4T1.js → layers.CEFwO4ok.js} +1 -1
  82. package/dist/{layers.ELczGn5f.js → layers.CFNi4f89.js} +1 -1
  83. package/dist/{layers.DLHZSZ2V.js → layers.CFZRSauf.js} +1 -1
  84. package/dist/{layers.BuFXNyhn.js → layers.CGx4gkFl.js} +1 -1
  85. package/dist/{layers.ChVPCETW.js → layers.CI1Sw0jQ.js} +3 -3
  86. package/dist/{layers.DI4zY33m.js → layers.CLNAjnx0.js} +1 -1
  87. package/dist/{layers.CWdWT5Rm.js → layers.CNE9uqUr.js} +1 -1
  88. package/dist/{layers.8ZrTnp1U.js → layers.COhxHLqw.js} +1 -1
  89. package/dist/{layers.CgMTcIhf.js → layers.CPVaM9rN.js} +1 -1
  90. package/dist/{layers.CYdkjFOC.js → layers.CQEm3-he.js} +1 -1
  91. package/dist/{layers.zWLdHsPw.js → layers.CRrWpOkh.js} +1 -1
  92. package/dist/{layers.BmmQnmoQ.js → layers.CT1OON6E.js} +1 -1
  93. package/dist/layers.CX9-iobo.js +1 -0
  94. package/dist/{layers.Cnu3fjZ1.js → layers.CXaiXB92.js} +1 -1
  95. package/dist/{layers.BSJ1_DQ5.js → layers.CYAJTLlo.js} +1 -1
  96. package/dist/{layers.CKVr_tBp.js → layers.CZ0ozS9y.js} +1 -1
  97. package/dist/{layers.h1rKLnfh.js → layers.CZPhZ6Bf.js} +3 -3
  98. package/dist/{layers.D417pG1o.js → layers.C_CJa3yb.js} +1 -1
  99. package/dist/{layers.DYVkNYlK.js → layers.C_dtbJot.js} +1 -1
  100. package/dist/{layers.B9jb4fmK.js → layers.C_h97pk2.js} +3 -3
  101. package/dist/{layers.CRvuZjio.js → layers.CeniXOmu.js} +1 -1
  102. package/dist/{layers.DM-DCYHm.js → layers.Cg-OLCT7.js} +1 -1
  103. package/dist/{layers.4yupkJUJ.js → layers.Cgd3BN2w.js} +4 -4
  104. package/dist/{layers.D-ljRoXC.js → layers.ChenCyj7.js} +1 -1
  105. package/dist/{layers.Bqgl0Yu0.js → layers.CiE-kdMO.js} +1 -1
  106. package/dist/{layers.DpYJ2Aon.js → layers.Cit96aTI.js} +1 -1
  107. package/dist/{layers.Bl6olSY_.js → layers.CoC2w3fN.js} +1 -1
  108. package/dist/{layers.uWxqttep.js → layers.CrFDzVSD.js} +1 -1
  109. package/dist/{layers.EBv0YRcH.js → layers.CrfLdGpx.js} +1 -1
  110. package/dist/{layers.BHtrbnpL.js → layers.Csv-RNMM.js} +2 -2
  111. package/dist/{layers.z7OEuDRW.js → layers.CuhICF6R.js} +1 -1
  112. package/dist/{layers.BFORHNfj.js → layers.CvMgd0LJ.js} +1 -1
  113. package/dist/{layers.BSaa74ps.js → layers.CwqBsZNp.js} +1 -1
  114. package/dist/{layers.v1X-jJ56.js → layers.Cy7-VEpQ.js} +3 -3
  115. package/dist/{layers.wL_dSWM5.js → layers.D-VwfTqH.js} +1 -1
  116. package/dist/{layers.CNKrCOJg.js → layers.D0Qxiqsz.js} +1 -1
  117. package/dist/{layers.BxuXmaWe.js → layers.D3lyIZXA.js} +1 -1
  118. package/dist/{layers.DYsEqDuJ.js → layers.D4YXFAyB.js} +1 -1
  119. package/dist/{layers.C3PNnWDH.js → layers.D5C6Me1o.js} +1 -1
  120. package/dist/{layers.DyH0bHcr.js → layers.D6Q8bbIl.js} +1 -1
  121. package/dist/{layers.cTipvihL.js → layers.D7Icl64Z.js} +1 -1
  122. package/dist/{layers.Dvo6pUh_.js → layers.DAJXIkLG.js} +1 -1
  123. package/dist/{layers.DEq30MVU.js → layers.DCFXuJ-w.js} +3 -3
  124. package/dist/{layers.Bix9y2gx.js → layers.DDnBZI1_.js} +1 -1
  125. package/dist/{layers.CI3GGftA.js → layers.DECLFr4c.js} +1 -1
  126. package/dist/{layers.x6IbgK8Q.js → layers.DEdPzSFO.js} +3 -3
  127. package/dist/{layers.CQ0SZFvh.js → layers.DFuJzjkC.js} +1 -1
  128. package/dist/{layers.DZkybyFG.js → layers.DGm8ayvM.js} +1 -1
  129. package/dist/{layers.CaTR_22L.js → layers.DJInX1K9.js} +5 -5
  130. package/dist/{layers.CSGTXdaN.js → layers.DJXA-73h.js} +4 -4
  131. package/dist/{layers.C9VyTEXh.js → layers.DKE7vA42.js} +3 -3
  132. package/dist/{layers.RBMIexda.js → layers.DMat1Byh.js} +1 -1
  133. package/dist/{layers.C6jkuWXv.js → layers.DN92Nuvl.js} +8695 -8704
  134. package/dist/{layers.jOItB-Ey.js → layers.DNOINtOj.js} +1 -1
  135. package/dist/{layers.DfMuj19Z.js → layers.DNb3XtYW.js} +1 -1
  136. package/dist/{layers.Dkl9Wldv.js → layers.DOYfa5sM.js} +1 -1
  137. package/dist/{layers.lLLx8Mw9.js → layers.DOnfHLuR.js} +1 -1
  138. package/dist/{layers.5BoIoFJ8.js → layers.DQqnQIwC.js} +1 -1
  139. package/dist/{layers.B67fMMPn.js → layers.DQzPM0iB.js} +1 -1
  140. package/dist/{layers.Db77MYzT.js → layers.DRL358jH.js} +1 -1
  141. package/dist/layers.DViF9KQr.js +1 -0
  142. package/dist/{layers.B5K8wEqs.js → layers.DXsyYXyR.js} +1 -1
  143. package/dist/{layers.R9MdahU5.js → layers.DY1MoOGn.js} +1 -1
  144. package/dist/{layers.wyFtVbga.js → layers.DZYVLZrG.js} +1 -1
  145. package/dist/{layers.B4j0GrkJ.js → layers.D_B__3qQ.js} +1 -1
  146. package/dist/{layers.DLI51l1w.js → layers.D_dMjjgQ.js} +1 -1
  147. package/dist/{layers.Dmgm1yOK.js → layers.D_oq0gXy.js} +1 -1
  148. package/dist/{layers.CGShr1qY.js → layers.DaXxX1GI.js} +1 -1
  149. package/dist/{layers.CkDO4zR2.js → layers.DdaXOuhX.js} +1 -1
  150. package/dist/{layers.BvJhvY-c.js → layers.DesaC1Kr.js} +1 -1
  151. package/dist/{layers.DIM1_Iep.js → layers.Dfci0i1V.js} +1 -1
  152. package/dist/{layers.BrSY0TFz.js → layers.Dfv-n7Xa.js} +4 -4
  153. package/dist/{layers.ao1yPcGT.js → layers.DgMj3_co.js} +1 -1
  154. package/dist/{layers.CEg7pDOv.js → layers.DhzZQ1yR.js} +2 -2
  155. package/dist/{layers.CGyO5Wiz.js → layers.DjbFMG40.js} +1 -1
  156. package/dist/{layers.DmnFYZDY.js → layers.DjcMOp3v.js} +1 -1
  157. package/dist/{layers.V2GSwEI7.js → layers.DkBuGfxw.js} +1 -1
  158. package/dist/{layers.hyzlbCQ2.js → layers.Dk_TgNcY.js} +1 -1
  159. package/dist/{layers.BhfmN9u1.js → layers.DlJMXXfu.js} +1 -1
  160. package/dist/{layers.MGC5SidV.js → layers.DlfzhH7w.js} +1 -1
  161. package/dist/{layers.CE9XX0Ev.js → layers.DnVWhR_-.js} +1 -1
  162. package/dist/{layers.D0cJxaWO.js → layers.Dnn7grVK.js} +1 -1
  163. package/dist/{layers.BpxfMjpP.js → layers.DnwmhU8J.js} +1 -1
  164. package/dist/{layers.BoyVtwz4.js → layers.Doghc3vT.js} +8 -8
  165. package/dist/{layers.CitY-m92.js → layers.DpdHu36T.js} +1 -1
  166. package/dist/{layers._rOwYlJP.js → layers.DrJi0XJn.js} +1 -1
  167. package/dist/{layers.BneplmiE.js → layers.DteoJKHz.js} +1 -1
  168. package/dist/{layers.59rEyFaC.js → layers.DvYfDz9B.js} +1 -1
  169. package/dist/{layers.DQA_epSd.js → layers.Dym_ak5H.js} +2 -2
  170. package/dist/{layers.q2PE4AM2.js → layers.DzPSzCk4.js} +1 -1
  171. package/dist/layers.EVFIwP38.js +6 -0
  172. package/dist/{layers.BahDQlcz.js → layers.F69DYapQ.js} +1 -1
  173. package/dist/{layers.BJOoK5Lj.js → layers.MdKNZ6cr.js} +1 -1
  174. package/dist/{layers.CBHG-Jl5.js → layers.N2JTPd6N.js} +1 -1
  175. package/dist/{layers.Fq61fIMO.js → layers.NSD_YfX-.js} +1 -1
  176. package/dist/{layers.sKXEsygj.js → layers.OKszS5x5.js} +1 -1
  177. package/dist/{layers.Dmqm-c6n.js → layers.PKOZO4ti.js} +1 -1
  178. package/dist/{layers.BVjfKGX6.js → layers.SsPGZDom.js} +1 -1
  179. package/dist/{layers.Dn30jhJx.js → layers.UKK71vEd.js} +1 -1
  180. package/dist/{layers.DTjFk_tO.js → layers.VqrqBF6D.js} +1 -1
  181. package/dist/{layers.Dw-_Alyk.js → layers.Wbb9AnKg.js} +1 -1
  182. package/dist/{layers.D9KipcCz.js → layers.YAJxfHbp.js} +3 -3
  183. package/dist/{layers.DnQh2Iaz.js → layers.ZBpeRlt7.js} +1 -1
  184. package/dist/{layers.DbM_YIpW.js → layers._8H9lWqi.js} +1 -1
  185. package/dist/{layers.B7llS1hK.js → layers._NNFwzUB.js} +4 -4
  186. package/dist/{layers.BHAVGqMn.js → layers._eHG8EQx.js} +1 -1
  187. package/dist/{layers.B2lfGIUC.js → layers._sH_lhc3.js} +7 -7
  188. package/dist/{layers.Ca2LAwuu.js → layers.axKIAGtk.js} +1 -1
  189. package/dist/{layers.D7C6UaRo.js → layers.c1MWIbgE.js} +1 -1
  190. package/dist/{layers.BLYWQIOP.js → layers.c3vaIDMA.js} +1 -1
  191. package/dist/{layers.DZCrQUip.js → layers.ddmNk10V.js} +1 -1
  192. package/dist/{layers.CNxZU7ZL.js → layers.f6Fj1WNh.js} +1 -1
  193. package/dist/{layers.V9dQ1B3x.js → layers.fAxQ3_tc.js} +1 -1
  194. package/dist/{layers.D118_OUk.js → layers.hQgU--BE.js} +1 -1
  195. package/dist/{layers.53foWKMh.js → layers.lc6zsgOG.js} +1 -1
  196. package/dist/{layers.BaQVIKu-.js → layers.mqGMlwgo.js} +2 -2
  197. package/dist/{layers.B4q726ob.js → layers.oqhRH5RT.js} +1 -1
  198. package/dist/{layers.DZT8aobP.js → layers.qr3bDEL9.js} +1 -1
  199. package/dist/{layers.Bo2N903n.js → layers.r6aSVZR7.js} +4 -4
  200. package/dist/{layers.OgL1oGvQ.js → layers.sXNaJumi.js} +1 -1
  201. package/dist/{layers.-ual4v9-.js → layers.tpTGmhK0.js} +1 -1
  202. package/dist/{layers.DxghzO8_.js → layers.uIx0rHqc.js} +1 -1
  203. package/dist/{layers.CuLJfsO_.js → layers.vWwHpfbh.js} +1 -1
  204. package/dist/{layers.eeiuZRxz.js → layers.w6q7Y0A9.js} +1 -1
  205. package/dist/{layers.CIZtriJi.js → layers.wMBlJy49.js} +1 -1
  206. package/dist/{layers.BNaqFFHi.js → layers.yTMOuWkm.js} +1 -1
  207. package/dist/{layers.CFjJ3X5X.js → layers.z3gm7Yoo.js} +1 -1
  208. package/dist/{layers.DHmfwIvx.js → layers.zHBESfgE.js} +1 -1
  209. package/package.json +1 -1
  210. package/dist/layers.BR4XYY4s.js +0 -129
  211. package/dist/layers.CARprdR-.js +0 -1
  212. package/dist/layers.CKORNUwD.js +0 -8
  213. package/dist/layers.CSRMaXgD.js +0 -6
  214. package/dist/layers.Cq2BfarX.js +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.CI3GGftA.js"),d=require("./layers.D9KipcCz.js");require("lodash-es");const $=require("./layers.Cyzu9PKQ.js"),H=require("./layers.BLd2spTm.js");require("./layers.B2lfGIUC.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const _=require("./layers.BBxN_3oT.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.DECLFr4c.js"),d=require("./layers.YAJxfHbp.js");require("lodash-es");const $=require("./layers.Cyzu9PKQ.js"),H=require("./layers.BLd2spTm.js");require("./layers._sH_lhc3.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const _=require("./layers.6m8HLcSO.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),t.relation.lineType==1&&n.attr("class","relation dashed-line"),t.relation.lineType==10&&n.attr("class","relation dotted-line"),t.relation.type1!=="none"&&n.attr("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.info("Rendering relation "+JSON.stringify(t)),t.relationTitle1!==void 0&&t.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",y).attr("y",b).attr("fill","black").attr("font-size","6").text(t.relationTitle1),t.relationTitle2!==void 0&&t.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
2
2
  `);n.forEach(function(x){d.log$1.debug(`Adding line: ${x}`),h.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const a=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(x){x.setAttribute("x",(u-x.getBBox().width)/2)}),c.width=u,c.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c},N=function(i,r,t,l){const{displayText:p,cssStyle:c}=r.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);c!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",l.textHeight)},M={getClassTitleString:v,drawClass:A,drawEdge:C,drawNote:W};let B={};const E=20,L=function(i){const r=Object.entries(B).find(t=>t[1].label===i);if(r)return r[0]},q=function(i){i.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),i.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),i.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),i.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},G=function(i,r,t,l){const p=d.getConfig().class;B={},d.log$1.info("Rendering diagram "+i);const c=d.getConfig().securityLevel;let o;c==="sandbox"&&(o=d.select("#i"+r));const h=c==="sandbox"?d.select(o.nodes()[0].contentDocument.body):d.select("body"),n=h.select(`[id='${r}']`);q(n);const a=new H.Graph({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const f=l.db.getClasses(),u=Object.keys(f);for(const e of u){const s=f[e],g=M.drawClass(n,s,p,l);B[g.id]=g,a.setNode(g.id,g),d.log$1.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){d.log$1.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){d.log$1.debug(`Adding note: ${JSON.stringify(e)}`);const s=M.drawNote(n,e,p,l);B[s.id]=s,a.setNode(s.id,s),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$.layout(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(d.log$1.debug("Node "+e+": "+JSON.stringify(a.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(d.log$1.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),M.drawEdge(n,a.edge(e),a.edge(e).relation,p,l))});const y=n.node().getBBox(),b=y.width+E*2,m=y.height+E*2;d.configureSvgSize(n,m,b,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${b} ${m}`;d.log$1.debug(`viewBox ${k}`),n.attr("viewBox",k)},I={draw:G},O={parser:T.parser$1,db:T.db,renderer:I,styles:T.styles,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,T.db.clear()}};exports.diagram=O;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./layers.D9KipcCz.js");require("./layers.B2lfGIUC.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const Y=require("./layers.DYsEqDuJ.js");var J=(function(){var n=function(f,i,r,c){for(r=r||{},c=f.length;c--;r[f[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,u,d,o,I){var b=o.length-1;switch(d){case 1:return o[b-1];case 2:this.$=[];break;case 3:o[b-1].push(o[b]),this.$=o[b-1];break;case 4:case 5:this.$=o[b];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[b].substr(6)),this.$=o[b].substr(6);break;case 9:this.$=o[b].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[b].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[b].substr(8)),this.$=o[b].substr(8);break;case 15:u.addTask(o[b],0,""),this.$=o[b];break;case 16:u.addEvent(o[b].substr(2)),this.$=o[b];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],u=[],d=[null],o=[],I=this.table,b="",$=0,W=0,C=2,P=1,B=o.slice.call(arguments,1),v=Object.create(this.lexer),S={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(S.yy[w]=this.yy[w]);v.setInput(i,S.yy),S.yy.lexer=v,S.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var T=v.yylloc;o.push(T);var A=v.options&&v.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=u.pop()||v.lex()||P,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var k,L,E,U,R={},O,N,X,j;;){if(L=c[c.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=z()),E=I[L]&&I[L][k]),typeof E>"u"||!E.length||!E[0]){var Z="";j=[];for(O in I[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");v.showPosition?Z="Parse error on line "+($+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./layers.YAJxfHbp.js");require("./layers._sH_lhc3.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const Y=require("./layers.D4YXFAyB.js");var J=(function(){var n=function(f,i,r,c){for(r=r||{},c=f.length;c--;r[f[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,u,d,o,I){var b=o.length-1;switch(d){case 1:return o[b-1];case 2:this.$=[];break;case 3:o[b-1].push(o[b]),this.$=o[b-1];break;case 4:case 5:this.$=o[b];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[b].substr(6)),this.$=o[b].substr(6);break;case 9:this.$=o[b].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[b].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[b].substr(8)),this.$=o[b].substr(8);break;case 15:u.addTask(o[b],0,""),this.$=o[b];break;case 16:u.addEvent(o[b].substr(2)),this.$=o[b];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],u=[],d=[null],o=[],I=this.table,b="",$=0,W=0,C=2,P=1,B=o.slice.call(arguments,1),v=Object.create(this.lexer),S={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(S.yy[w]=this.yy[w]);v.setInput(i,S.yy),S.yy.lexer=v,S.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var T=v.yylloc;o.push(T);var A=v.options&&v.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=u.pop()||v.lex()||P,typeof M!="number"&&(M instanceof Array&&(u=M,M=u.pop()),M=r.symbols_[M]||M),M}for(var k,L,E,U,R={},O,N,X,j;;){if(L=c[c.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=z()),E=I[L]&&I[L][k]),typeof E>"u"||!E.length||!E[0]){var Z="";j=[];for(O in I[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");v.showPosition?Z="Parse error on line "+($+1)+`:
2
2
  `+v.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+($+1)+": Unexpected "+(k==P?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:v.match,token:this.terminals_[k]||k,line:v.yylineno,loc:T,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(E[0]){case 1:c.push(k),d.push(v.yytext),o.push(v.yylloc),c.push(E[1]),k=null,W=v.yyleng,b=v.yytext,$=v.yylineno,T=v.yylloc;break;case 2:if(N=this.productions_[E[1]][1],R.$=d[d.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},A&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),U=this.performAction.apply(R,[b,W,$,S.yy,E[1],d,o].concat(B)),typeof U<"u")return U;N&&(c=c.slice(0,-1*N*2),d=d.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[E[1]][0]),d.push(R.$),o.push(R._$),X=I[c[c.length-2]][c[c.length-1]],c.push(X);break;case 3:return!0}}return!0}},_=(function(){var f={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,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},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var d=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import "./layers.BoyVtwz4.js";
1
+ import "./layers.Doghc3vT.js";
2
2
  var u = { paste: "لصق", pasteAsPlaintext: "اللصق كنص عادي", pasteCharts: "لصق الرسوم البيانية", selectAll: "تحديد الكل", multiSelect: "إضافة عنصر للتحديد", moveCanvas: "نقل لوح الرسم", cut: "قص", copy: "نسخ", copyAsPng: "نسخ إلى الحافظة بصيغة PNG", copyAsSvg: "نسخ إلى الحافظة بصيغة SVG", copyText: "نسخ إلى الحافظة كنص", copySource: "", convertToCode: "", bringForward: "جلب للأمام", sendToBack: "أرسل للخلف", bringToFront: "أحضر للأمام", sendBackward: "أرسل للخلف", delete: "حذف", copyStyles: "نسخ الأنماط", pasteStyles: "لصق الأنماط", stroke: "الخط", background: "الخلفية", fill: "التعبئة", strokeWidth: "سُمك الخط", strokeStyle: "نمط الخط", strokeStyle_solid: "متصل", strokeStyle_dashed: "متقطع", strokeStyle_dotted: "منقط", sloppiness: "الإمالة", opacity: "الشفافية", textAlign: "محاذاة النص", edges: "الحواف", sharp: "حادة", round: "دائرية", arrowheads: "رؤوس الأسهم", arrowhead_none: "لا شيء", arrowhead_arrow: "سهم", arrowhead_bar: "شريط", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "مثلث", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "حجم الخط", fontFamily: "نوع الخط", addWatermark: 'إضافة "مصنوعة بواسطة Excalidraw"', handDrawn: "رسم باليد", normal: "عادي", code: "رمز", small: "صغير", medium: "متوسط", large: "كبير", veryLarge: "كبير جدا", solid: "كامل", hachure: "خطوط", zigzag: "متعرج", crossHatch: "خطوط متقطعة", thin: "نحيف", bold: "داكن", left: "الـيسار", center: "وسط", right: "يمين", extraBold: "عريض", architect: "معماري", artist: "رسام", cartoonist: "كرتوني", fileTitle: "إسم الملف", colorPicker: "منتقي اللون", canvasColors: "تستخدم على القماش", canvasBackground: "خلفية اللوحة", drawingCanvas: "لوحة الرسم", layers: "الطبقات", actions: "الإجراءات", language: "اللغة", liveCollaboration: "التعاون المباشر...", duplicateSelection: "تكرار", untitled: "غير معنون", name: "الاسم", yourName: "اسمك", madeWithExcalidraw: "مصنوعة بواسطة Excalidraw", group: "تحديد مجموعة", ungroup: "إلغاء تحديد مجموعة", collaborators: "المتعاونون", showGrid: "إظهار الشبكة", addToLibrary: "أضف إلى المكتبة", removeFromLibrary: "حذف من المكتبة", libraryLoadingMessage: "جارٍ تحميل المكتبة…", libraries: "تصفح المكتبات", loadingScene: "جاري تحميل المشهد…", align: "محاذاة", alignTop: "محاذاة إلى اﻷعلى", alignBottom: "محاذاة إلى اﻷسفل", alignLeft: "محاذاة إلى اليسار", alignRight: "محاذاة إلى اليمين", centerVertically: "توسيط عمودي", centerHorizontally: "توسيط أفقي", distributeHorizontally: "التوزيع الأفقي", distributeVertically: "التوزيع عمودياً", flipHorizontal: "قلب عامودي", flipVertical: "قلب أفقي", viewMode: "نمط العرض", share: "مشاركة", showStroke: "إظهار منتقي لون الخط", showBackground: "إظهار منتقي لون الخلفية", toggleTheme: "غير النمط", personalLib: "المكتبة الشخصية", excalidrawLib: "مكتبتنا", decreaseFontSize: "تصغير حجم الخط", increaseFontSize: "تكبير حجم الخط", unbindText: "فك ربط النص", bindText: "ربط النص بالحاوية", createContainerFromText: "نص مغلف في حاوية", link: { edit: "تعديل الرابط", editEmbed: "تحرير الرابط وإدراجه", create: "إنشاء رابط", createEmbed: "إنشاء رابط و إدراجه", label: "رابط", labelEmbed: "رابط و إدراج", empty: "لم يتم تعيين رابط" }, lineEditor: { edit: "تحرير السطر", exit: "الخروج من المُحرر" }, elementLock: { lock: "قفل", unlock: "فتح", lockAll: "قفل الكل", unlockAll: "فتح الكل" }, statusPublished: "نُشر", sidebarLock: "إبقاء الشريط الجانبي مفتوح", selectAllElementsInFrame: "تحديد جميع العناصر في الإطار", removeAllElementsFromFrame: "إزالة جميع العناصر من الإطار", eyeDropper: "اختيار اللون من القماش", textToDiagram: "", prompt: "" }, A = { noItems: "لا توجد عناصر أضيفت بعد...", hint_emptyLibrary: "حدد عنصر على القماش لإضافته هنا، أو تثبيت مكتبة من المستودع العام أدناه.", hint_emptyPrivateLibrary: "حدد عنصر على القماش لإضافته هنا." }, e = { clearReset: "إعادة تعيين اللوحة", exportJSON: "صدر الملف", exportImage: "تصدير الصورة...", export: "حفظ إلى...", copyToClipboard: "نسخ إلى الحافظة", save: "احفظ للملف الحالي", saveAs: "حفظ كـ", load: "فتح", getShareableLink: "احصل على رابط المشاركة", close: "غلق", selectLanguage: "اختر اللغة", scrollBackToContent: "الرجوع إلى المحتوى", zoomIn: "تكبير", zoomOut: "تصغير", resetZoom: "إعادة تعيين الشاشة", menu: "القائمة", done: "تم", edit: "تعديل", undo: "تراجع", redo: "إعادة تنفيذ", resetLibrary: "إعادة ضبط المكتبة", createNewRoom: "إنشاء غرفة جديدة", fullScreen: "شاشة كاملة", darkMode: "الوضع المظلم", lightMode: "الوضع المضيء", zenMode: "وضع التأمل", objectsSnapMode: "التقط إلى العناصر", exitZenMode: "إلغاء الوضع الليلى", cancel: "إلغاء", clear: "مسح", remove: "إزالة", embed: "تبديل الإدراج", publishLibrary: "انشر", submit: "أرسل", confirm: "تأكيد", embeddableInteractionButton: "اضغط للتفاعل" }, a = { clearReset: "هذا سيُزيل كامل اللوحة. هل أنت متأكد؟", couldNotCreateShareableLink: "تعذر إنشاء رابطة المشاركة.", couldNotCreateShareableLinkTooBig: "تعذر إنشاء رابط قابل للمشاركة: المشهد كبير جدًا", couldNotLoadInvalidFile: "تعذر التحميل، الملف غير صالح", importBackendFailed: "فشل الاستيراد من الخادوم.", cannotExportEmptyCanvas: "لا يمكن تصدير لوحة فارغة.", couldNotCopyToClipboard: "تعذر النسخ إلى الحافظة.", decryptFailed: "تعذر فك تشفير البيانات.", uploadedSecurly: "تم تأمين التحميل بتشفير النهاية إلى النهاية، مما يعني أن خادوم Excalidraw والأطراف الثالثة لا يمكنها قراءة المحتوى.", loadSceneOverridePrompt: "تحميل الرسم الخارجي سيحل محل المحتوى الموجود لديك. هل ترغب في المتابعة؟", collabStopOverridePrompt: `إيقاف الجلسة سيؤدي إلى الكتابة فوق رسومك السابقة المخزنة داخليا. هل أنت متأكد؟
3
3
 
4
4
  (إذا كنت ترغب في الاحتفاظ برسمك المخزن داخليا، ببساطة أغلق علامة تبويب المتصفح بدلاً من ذلك.)`, errorAddingToLibrary: "تعذر إضافة العنصر للمكتبة", errorRemovingFromLibrary: "تعذر إزالة العنصر من المكتبة", confirmAddLibrary: "هذا سيضيف {{numShapes}} شكل إلى مكتبتك. هل أنت متأكد؟", imageDoesNotContainScene: "يبدو أن هذه الصورة لا تحتوي على أي بيانات مشهد. هل قمت بتمكين تضمين المشهد أثناء التصدير؟", cannotRestoreFromImage: "تعذر استعادة المشهد من ملف الصورة", invalidSceneUrl: "تعذر استيراد المشهد من عنوان URL المتوفر. إما أنها مشوهة، أو لا تحتوي على بيانات Excalidraw JSON صالحة.", resetLibrary: "هذا سوف يمسح مكتبتك. هل أنت متأكد؟", removeItemsFromsLibrary: "حذف {{count}} عنصر (عناصر) من المكتبة؟", invalidEncryptionKey: "مفتاح التشفير يجب أن يكون من 22 حرفاً. التعاون المباشر معطل.", collabOfflineWarning: `لا يوجد اتصال بالانترنت.