@layers-app/editor 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/package.json +5 -4
  2. package/dist/index.cjs +0 -2
  3. package/dist/index.d.ts +0 -315
  4. package/dist/index.js +0 -13
  5. package/dist/layers.0GV8bqI4.js +0 -186
  6. package/dist/layers.2-v72gXD.js +0 -1
  7. package/dist/layers.271NUg7u.js +0 -39
  8. package/dist/layers.2YgiancJ.js +0 -116
  9. package/dist/layers.3DEO2eFX.js +0 -38
  10. package/dist/layers.3PKeLS62.js +0 -48146
  11. package/dist/layers.52famHy6.js +0 -1
  12. package/dist/layers.6M02Y2O6.js +0 -6
  13. package/dist/layers.7DTJccah.js +0 -10
  14. package/dist/layers.7JqFgE4-.js +0 -15
  15. package/dist/layers.7geZ_Z3x.js +0 -36
  16. package/dist/layers.88aO_Zsd.js +0 -14
  17. package/dist/layers.8hFVbiPY.js +0 -59
  18. package/dist/layers.9KaBpXFA.js +0 -1283
  19. package/dist/layers.9pNaFvaX.js +0 -1
  20. package/dist/layers.AIKsYMqL.js +0 -8
  21. package/dist/layers.B-0J3b5U.js +0 -40
  22. package/dist/layers.B19hGmey.js +0 -1
  23. package/dist/layers.B3D4g2HH.js +0 -1
  24. package/dist/layers.B4yEsxVs.js +0 -10
  25. package/dist/layers.B5Xhxhbr.js +0 -39
  26. package/dist/layers.B6jgTP72.js +0 -1
  27. package/dist/layers.B8a2ydDI.js +0 -1265
  28. package/dist/layers.B9EoV4pJ.js +0 -1
  29. package/dist/layers.BAI7Z-Wd.js +0 -40
  30. package/dist/layers.BAtv1CM7.js +0 -1
  31. package/dist/layers.BB24KMYM.js +0 -19
  32. package/dist/layers.BBWAKePM.js +0 -7
  33. package/dist/layers.BBWcXYuR.js +0 -5
  34. package/dist/layers.BC3JkNtz.js +0 -21938
  35. package/dist/layers.BFKY-mk1.js +0 -8
  36. package/dist/layers.BGnHNrIw.js +0 -38
  37. package/dist/layers.BIF7gnlw.js +0 -6
  38. package/dist/layers.BIeVwYKL.js +0 -1
  39. package/dist/layers.BJDrjORS.js +0 -244
  40. package/dist/layers.BJtqK_fc.js +0 -40
  41. package/dist/layers.BLMsv5-v.js +0 -295
  42. package/dist/layers.BLd2spTm.js +0 -1
  43. package/dist/layers.BLj5XN2k.js +0 -802
  44. package/dist/layers.BMzZVoyQ.js +0 -5
  45. package/dist/layers.BN0X-mKK.js +0 -41
  46. package/dist/layers.BNP0J0MG.js +0 -4
  47. package/dist/layers.BQgrfzZU.js +0 -7
  48. package/dist/layers.BRFujA4d.js +0 -8
  49. package/dist/layers.BSTBZrFn.js +0 -1
  50. package/dist/layers.BSXvhEG5.js +0 -5
  51. package/dist/layers.BSzdascH.js +0 -42
  52. package/dist/layers.BTsJAbTY.js +0 -37
  53. package/dist/layers.BUpmCmqT.js +0 -36
  54. package/dist/layers.BVAnEpZl.js +0 -10
  55. package/dist/layers.BW84v3Ox.js +0 -2
  56. package/dist/layers.B_Lan92M.js +0 -1
  57. package/dist/layers.BaW-t_Zc.js +0 -8
  58. package/dist/layers.BapT0txt.js +0 -425
  59. package/dist/layers.BbCfEXyj.js +0 -55
  60. package/dist/layers.BdqQLuaK.js +0 -40
  61. package/dist/layers.Bdwk_Ggl.js +0 -33
  62. package/dist/layers.Bg7-KHZC.js +0 -2235
  63. package/dist/layers.BgOa2ZQq.js +0 -7
  64. package/dist/layers.BiJ8hfRt.js +0 -1510
  65. package/dist/layers.BkFD_pHb.js +0 -40
  66. package/dist/layers.BlN6GnRT.js +0 -7
  67. package/dist/layers.Bm84E1I5.js +0 -39
  68. package/dist/layers.Bo3tMbEB.js +0 -42
  69. package/dist/layers.BoOcWXFs.js +0 -10
  70. package/dist/layers.BpilXLfW.js +0 -6
  71. package/dist/layers.BrHN_kMd.js +0 -41
  72. package/dist/layers.BruMG2wy.js +0 -160
  73. package/dist/layers.BsWPnWD1.js +0 -40
  74. package/dist/layers.Bu9ZoRYM.js +0 -40
  75. package/dist/layers.BvjpCDHj.js +0 -9
  76. package/dist/layers.Bwb7QBBL.js +0 -10
  77. package/dist/layers.Bx0DgrIz.js +0 -84
  78. package/dist/layers.By8wynAO.js +0 -40
  79. package/dist/layers.C0Lgw_Sx.js +0 -11688
  80. package/dist/layers.C3me1AOA.js +0 -904
  81. package/dist/layers.C5XL_KJW.js +0 -44
  82. package/dist/layers.C65tYhLf.js +0 -5
  83. package/dist/layers.C67fBVg3.js +0 -3
  84. package/dist/layers.C6HmVi2T.js +0 -39
  85. package/dist/layers.C8_lu5UH.js +0 -23
  86. package/dist/layers.C8oO_BiQ.js +0 -40
  87. package/dist/layers.C9AvvTRV.js +0 -32
  88. package/dist/layers.CA3DQGmO.js +0 -11
  89. package/dist/layers.CCoWlQxf.js +0 -70
  90. package/dist/layers.CCy49ah1.js +0 -37
  91. package/dist/layers.CDftR5Kg.js +0 -320
  92. package/dist/layers.CDw-iNbj.js +0 -9
  93. package/dist/layers.CEDfv2oj.js +0 -423
  94. package/dist/layers.CGeTu6ph.js +0 -1
  95. package/dist/layers.CHZsXQcr.js +0 -1
  96. package/dist/layers.CJlWYRtk.js +0 -41
  97. package/dist/layers.CKy_DRKv.js +0 -42
  98. package/dist/layers.COEorZbZ.js +0 -257
  99. package/dist/layers.CP2_7vUR.js +0 -32
  100. package/dist/layers.CPEzOey-.js +0 -84
  101. package/dist/layers.CSY_lOK0.js +0 -268
  102. package/dist/layers.CT_bvOgC.js +0 -1
  103. package/dist/layers.CUWVPrVU.js +0 -40
  104. package/dist/layers.CVCC2rNb.js +0 -139
  105. package/dist/layers.CXbK6Z0C.js +0 -8
  106. package/dist/layers.CXzpm8-U.js +0 -41
  107. package/dist/layers.CYwLZCUi.js +0 -1088
  108. package/dist/layers.CZ6FLSh1.js +0 -1
  109. package/dist/layers.CZzvHupu.js +0 -36
  110. package/dist/layers.CaZJgSbm.js +0 -4
  111. package/dist/layers.CcX1e4Cb.js +0 -6
  112. package/dist/layers.CgHCxAKJ.js +0 -35
  113. package/dist/layers.CgyRf-4B.js +0 -41
  114. package/dist/layers.ChtNiFGR.js +0 -11
  115. package/dist/layers.CiYt11kd.js +0 -7
  116. package/dist/layers.Cik9ty7R.js +0 -34
  117. package/dist/layers.Cizp88rb.js +0 -32
  118. package/dist/layers.Cjxg13wd.js +0 -47029
  119. package/dist/layers.Cl6-9OBf.js +0 -39
  120. package/dist/layers.ClExSsZJ.js +0 -36
  121. package/dist/layers.CqE1nYk3.js +0 -8
  122. package/dist/layers.CqVTtuYm.js +0 -6
  123. package/dist/layers.CsNI3f74.js +0 -7
  124. package/dist/layers.CuAECIsO.js +0 -39
  125. package/dist/layers.CuVNrIcW.js +0 -52
  126. package/dist/layers.Cv-z4RwC.js +0 -1089
  127. package/dist/layers.CvPdAUZN.js +0 -37
  128. package/dist/layers.CvQiknH6.js +0 -1
  129. package/dist/layers.Cwn1D7F6.js +0 -1619
  130. package/dist/layers.CyOP0v_-.js +0 -8
  131. package/dist/layers.CyvQNQUj.js +0 -139
  132. package/dist/layers.Cyzu9PKQ.js +0 -1
  133. package/dist/layers.Cz4E3Gls.js +0 -21763
  134. package/dist/layers.D-rCo5dz.js +0 -207
  135. package/dist/layers.D0zn4_Mx.js +0 -1
  136. package/dist/layers.D11yimAp.js +0 -230
  137. package/dist/layers.D1sBwAcX.js +0 -1
  138. package/dist/layers.D22AIgry.js +0 -1
  139. package/dist/layers.D2Y56Lcj.js +0 -1
  140. package/dist/layers.D2sjiqI3.js +0 -41
  141. package/dist/layers.D3OtVkCp.js +0 -38
  142. package/dist/layers.D3pymTps.js +0 -6
  143. package/dist/layers.D44d_6CD.js +0 -437
  144. package/dist/layers.D4T8fTcj.js +0 -1223
  145. package/dist/layers.D7jGxypv.js +0 -8
  146. package/dist/layers.D9umovmT.js +0 -10
  147. package/dist/layers.DE-6jvOp.js +0 -10
  148. package/dist/layers.DFWypiYS.js +0 -4
  149. package/dist/layers.DFZcoBfL.js +0 -42
  150. package/dist/layers.DGHPyPPP.js +0 -37
  151. package/dist/layers.DL_hhIIR.js +0 -793
  152. package/dist/layers.DLwuMfdd.js +0 -84
  153. package/dist/layers.DMkBISW1.js +0 -1
  154. package/dist/layers.DMkqdBNu.js +0 -1
  155. package/dist/layers.DN9HoVxI.js +0 -18
  156. package/dist/layers.DNpGJLyQ.js +0 -65
  157. package/dist/layers.DOrgOHBr.js +0 -1
  158. package/dist/layers.DPumOFMF.js +0 -51
  159. package/dist/layers.DQ9duwtV.js +0 -1359
  160. package/dist/layers.DQSx2qqb.js +0 -11
  161. package/dist/layers.DRj2t11p.js +0 -9
  162. package/dist/layers.DWvD3vql.js +0 -220
  163. package/dist/layers.DXVNKM5t.js +0 -33
  164. package/dist/layers.DXg_yjAg.js +0 -10
  165. package/dist/layers.DYXNu8ur.js +0 -6
  166. package/dist/layers.Da3-MQaS.js +0 -315
  167. package/dist/layers.DbEYtfVc.js +0 -9166
  168. package/dist/layers.DbaKVP5e.js +0 -1
  169. package/dist/layers.Dc79Ci3K.js +0 -501
  170. package/dist/layers.DdaAmsdK.js +0 -1
  171. package/dist/layers.DeGb7buU.js +0 -9
  172. package/dist/layers.DeUrAJLR.js +0 -2479
  173. package/dist/layers.DfLG2r9J.js +0 -1
  174. package/dist/layers.DfVTedYs.js +0 -1
  175. package/dist/layers.DgM9vwax.js +0 -1
  176. package/dist/layers.Dhzc98B1.js +0 -1
  177. package/dist/layers.Dit1Y-a1.js +0 -9
  178. package/dist/layers.Dj4g5Vb5.js +0 -10
  179. package/dist/layers.DjUOC4st.js +0 -16
  180. package/dist/layers.DkOYepgq.js +0 -10
  181. package/dist/layers.Dld8CjhI.js +0 -8
  182. package/dist/layers.Dlp-dPD8.js +0 -96
  183. package/dist/layers.DlrAk6DA.js +0 -9
  184. package/dist/layers.Dm5fcqXE.js +0 -5
  185. package/dist/layers.DpuQVg48.js +0 -2966
  186. package/dist/layers.DqT5Jouj.js +0 -11
  187. package/dist/layers.DrlOZ3DT.js +0 -9
  188. package/dist/layers.DsSMSFyE.js +0 -9
  189. package/dist/layers.DtcuZ6vs.js +0 -187
  190. package/dist/layers.DuGoIpLS.js +0 -769
  191. package/dist/layers.DxA6ocdw.js +0 -70
  192. package/dist/layers.DxS_nrN5.js +0 -32
  193. package/dist/layers.DxhSwb8B.js +0 -791
  194. package/dist/layers.DxwOJMY_.js +0 -2
  195. package/dist/layers.Dy1naDTQ.js +0 -14
  196. package/dist/layers.DyPFKCS6.js +0 -1580
  197. package/dist/layers.DyydDZDU.js +0 -41
  198. package/dist/layers.GaSOetZx.js +0 -7
  199. package/dist/layers.IAZiYFRK.js +0 -35
  200. package/dist/layers.JWCLFILJ.js +0 -1
  201. package/dist/layers.JgqeK3h7.js +0 -1
  202. package/dist/layers.K2rcpzhY.js +0 -4
  203. package/dist/layers.KIWs25tZ.js +0 -1
  204. package/dist/layers.LLke4z7b.js +0 -13
  205. package/dist/layers.Marfmnqs.js +0 -61
  206. package/dist/layers.OFho5MbN.js +0 -118
  207. package/dist/layers.R8QN7W65.js +0 -1
  208. package/dist/layers.RT_eBoD-.js +0 -35
  209. package/dist/layers.SbloXQp4.js +0 -9
  210. package/dist/layers.SvUN62A9.js +0 -11
  211. package/dist/layers.TGEy1wS6.js +0 -32
  212. package/dist/layers.TdE-jeZL.js +0 -7
  213. package/dist/layers.UWRNxgT8.js +0 -8
  214. package/dist/layers.VA5efHzM.js +0 -39
  215. package/dist/layers._2_sfSMa.js +0 -1
  216. package/dist/layers.ajIRcGd4.js +0 -1126
  217. package/dist/layers.b0h5ZBmD.js +0 -61
  218. package/dist/layers.cjE12qw2.js +0 -9
  219. package/dist/layers.dJvyCZ1b.js +0 -2
  220. package/dist/layers.da887to_.js +0 -8
  221. package/dist/layers.dhxVHEDE.js +0 -1
  222. package/dist/layers.ejvu1U9t.js +0 -122
  223. package/dist/layers.epvyXTdV.js +0 -373
  224. package/dist/layers.fm_nJlxH.js +0 -6
  225. package/dist/layers.guGfRsPS.js +0 -39
  226. package/dist/layers.hweLqW3I.js +0 -261
  227. package/dist/layers.j04tfCKj.js +0 -39
  228. package/dist/layers.kzDq9Q-l.js +0 -1
  229. package/dist/layers.lCpg7dOn.js +0 -21
  230. package/dist/layers.ldz4asX5.js +0 -202
  231. package/dist/layers.ov1rbOW3.js +0 -1
  232. package/dist/layers.pHVqEwm3.js +0 -32
  233. package/dist/layers.rgYI6gus.js +0 -803
  234. package/dist/layers.sTUiyAuM.js +0 -41
  235. package/dist/layers.uMaAjCOP.js +0 -931
  236. package/dist/layers.vJ0fdhPp.js +0 -282
  237. package/dist/layers.vqKLXMfn.js +0 -1034
  238. package/dist/layers.wSBHMHgW.js +0 -42
  239. package/dist/layers.yquOOwF7.js +0 -7
  240. package/dist/layers.zJTwyIu5.js +0 -960
@@ -1,84 +0,0 @@
1
- const c = Math.PI, x = 2 * c, u = 1e-6, m = x - u;
2
- function E(e) {
3
- this._ += e[0];
4
- for (let t = 1, h = e.length; t < h; ++t)
5
- this._ += arguments[t] + e[t];
6
- }
7
- function A(e) {
8
- let t = Math.floor(e);
9
- if (!(t >= 0)) throw new Error(`invalid digits: ${e}`);
10
- if (t > 15) return E;
11
- const h = 10 ** t;
12
- return function(i) {
13
- this._ += i[0];
14
- for (let s = 1, n = i.length; s < n; ++s)
15
- this._ += Math.round(arguments[s] * h) / h + i[s];
16
- };
17
- }
18
- class L {
19
- constructor(t) {
20
- this._x0 = this._y0 = // start of current subpath
21
- this._x1 = this._y1 = null, this._ = "", this._append = t == null ? E : A(t);
22
- }
23
- moveTo(t, h) {
24
- this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}`;
25
- }
26
- closePath() {
27
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
28
- }
29
- lineTo(t, h) {
30
- this._append`L${this._x1 = +t},${this._y1 = +h}`;
31
- }
32
- quadraticCurveTo(t, h, i, s) {
33
- this._append`Q${+t},${+h},${this._x1 = +i},${this._y1 = +s}`;
34
- }
35
- bezierCurveTo(t, h, i, s, n, $) {
36
- this._append`C${+t},${+h},${+i},${+s},${this._x1 = +n},${this._y1 = +$}`;
37
- }
38
- arcTo(t, h, i, s, n) {
39
- if (t = +t, h = +h, i = +i, s = +s, n = +n, n < 0) throw new Error(`negative radius: ${n}`);
40
- let $ = this._x1, r = this._y1, p = i - t, l = s - h, _ = $ - t, o = r - h, a = _ * _ + o * o;
41
- if (this._x1 === null)
42
- this._append`M${this._x1 = t},${this._y1 = h}`;
43
- else if (a > u) if (!(Math.abs(o * p - l * _) > u) || !n)
44
- this._append`L${this._x1 = t},${this._y1 = h}`;
45
- else {
46
- let d = i - $, f = s - r, y = p * p + l * l, T = d * d + f * f, g = Math.sqrt(y), v = Math.sqrt(a), w = n * Math.tan((c - Math.acos((y + a - T) / (2 * g * v))) / 2), M = w / v, b = w / g;
47
- Math.abs(M - 1) > u && this._append`L${t + M * _},${h + M * o}`, this._append`A${n},${n},0,0,${+(o * d > _ * f)},${this._x1 = t + b * p},${this._y1 = h + b * l}`;
48
- }
49
- }
50
- arc(t, h, i, s, n, $) {
51
- if (t = +t, h = +h, i = +i, $ = !!$, i < 0) throw new Error(`negative radius: ${i}`);
52
- let r = i * Math.cos(s), p = i * Math.sin(s), l = t + r, _ = h + p, o = 1 ^ $, a = $ ? s - n : n - s;
53
- this._x1 === null ? this._append`M${l},${_}` : (Math.abs(this._x1 - l) > u || Math.abs(this._y1 - _) > u) && this._append`L${l},${_}`, i && (a < 0 && (a = a % x + x), a > m ? this._append`A${i},${i},0,1,${o},${t - r},${h - p}A${i},${i},0,1,${o},${this._x1 = l},${this._y1 = _}` : a > u && this._append`A${i},${i},0,${+(a >= c)},${o},${this._x1 = t + i * Math.cos(n)},${this._y1 = h + i * Math.sin(n)}`);
54
- }
55
- rect(t, h, i, s) {
56
- this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +h}h${i = +i}v${+s}h${-i}Z`;
57
- }
58
- toString() {
59
- return this._;
60
- }
61
- }
62
- function P(e) {
63
- return function() {
64
- return e;
65
- };
66
- }
67
- function q(e) {
68
- let t = 3;
69
- return e.digits = function(h) {
70
- if (!arguments.length) return t;
71
- if (h == null)
72
- t = null;
73
- else {
74
- const i = Math.floor(h);
75
- if (!(i >= 0)) throw new RangeError(`invalid digits: ${h}`);
76
- t = i;
77
- }
78
- return e;
79
- }, () => new L(t);
80
- }
81
- export {
82
- P as c,
83
- q as w
84
- };
@@ -1 +0,0 @@
1
- "use strict";function r(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}exports.commonjsRequire=r;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.Bwb7QBBL.js"),o=require("./layers.2YgiancJ.js"),t=require("./layers.Dlp-dPD8.js");require("lodash-es");require("./layers.BLd2spTm.js");require("./layers.Cyzu9PKQ.js");require("./layers.D11yimAp.js");const a={parser:e.parser$1,db:e.flowDb,renderer:o.flowRendererV2,styles:o.flowStyles,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.setConfig({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),o.flowRendererV2.setConf(r.flowchart),e.flowDb.clear(),e.flowDb.setGen("gen-2")}};exports.diagram=a;
@@ -1,18 +0,0 @@
1
- const l = async (e) => {
2
- const a = await e.getFile();
3
- return a.handle = e, a;
4
- };
5
- var p = async (e = [{}]) => {
6
- Array.isArray(e) || (e = [e]);
7
- const a = [];
8
- e.forEach((i, c) => {
9
- a[c] = { description: i.description || "", accept: {} }, i.mimeTypes ? i.mimeTypes.map((n) => {
10
- a[c].accept[n] = i.extensions || [];
11
- }) : a[c].accept["*/*"] = i.extensions || [];
12
- });
13
- const t = await window.showOpenFilePicker({ id: e[0].id, startIn: e[0].startIn, types: a, multiple: e[0].multiple || !1, excludeAcceptAllOption: e[0].excludeAcceptAllOption || !1 }), s = await Promise.all(t.map(l));
14
- return e[0].multiple ? s : s[0];
15
- };
16
- export {
17
- p as default
18
- };
@@ -1,65 +0,0 @@
1
- import { K as i } from "./layers.Cz4E3Gls.js";
2
- import { m as o } from "./layers.DbEYtfVc.js";
3
- const l = (s, t) => {
4
- const r = s.append("rect");
5
- if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx !== void 0 && r.attr("rx", t.rx), t.ry !== void 0 && r.attr("ry", t.ry), t.attrs !== void 0)
6
- for (const e in t.attrs)
7
- r.attr(e, t.attrs[e]);
8
- return t.class !== void 0 && r.attr("class", t.class), r;
9
- }, d = (s, t) => {
10
- const r = {
11
- x: t.startx,
12
- y: t.starty,
13
- width: t.stopx - t.startx,
14
- height: t.stopy - t.starty,
15
- fill: t.fill,
16
- stroke: t.stroke,
17
- class: "rect"
18
- };
19
- l(s, r).lower();
20
- }, h = (s, t) => {
21
- const r = t.text.replace(o, " "), e = s.append("text");
22
- e.attr("x", t.x), e.attr("y", t.y), e.attr("class", "legend"), e.style("text-anchor", t.anchor), t.class !== void 0 && e.attr("class", t.class);
23
- const n = e.append("tspan");
24
- return n.attr("x", t.x + t.textMargin * 2), n.text(r), e;
25
- }, m = (s, t, r, e) => {
26
- const n = s.append("image");
27
- n.attr("x", t), n.attr("y", r);
28
- const a = i.sanitizeUrl(e);
29
- n.attr("xlink:href", a);
30
- }, p = (s, t, r, e) => {
31
- const n = s.append("use");
32
- n.attr("x", t), n.attr("y", r);
33
- const a = i.sanitizeUrl(e);
34
- n.attr("xlink:href", `#${a}`);
35
- }, y = () => ({
36
- x: 0,
37
- y: 0,
38
- width: 100,
39
- height: 100,
40
- fill: "#EDF2AE",
41
- stroke: "#666",
42
- anchor: "start",
43
- rx: 0,
44
- ry: 0
45
- }), g = () => ({
46
- x: 0,
47
- y: 0,
48
- width: 100,
49
- height: 100,
50
- "text-anchor": "start",
51
- style: "#666",
52
- textMargin: 0,
53
- rx: 0,
54
- ry: 0,
55
- tspan: !0
56
- });
57
- export {
58
- d as a,
59
- g as b,
60
- p as c,
61
- l as d,
62
- m as e,
63
- h as f,
64
- y as g
65
- };
@@ -1 +0,0 @@
1
- "use strict";const M=Math.PI,x=2*M,p=1e-6,T=x-p;function E(e){this._+=e[0];for(let t=1,h=e.length;t<h;++t)this._+=arguments[t]+e[t]}function m(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E;const h=10**t;return function(i){this._+=i[0];for(let s=1,n=i.length;s<n;++s)this._+=Math.round(arguments[s]*h)/h+i[s]}}class A{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E:m(t)}moveTo(t,h){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,h){this._append`L${this._x1=+t},${this._y1=+h}`}quadraticCurveTo(t,h,i,s){this._append`Q${+t},${+h},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,h,i,s,n,$){this._append`C${+t},${+h},${+i},${+s},${this._x1=+n},${this._y1=+$}`}arcTo(t,h,i,s,n){if(t=+t,h=+h,i=+i,s=+s,n=+n,n<0)throw new Error(`negative radius: ${n}`);let $=this._x1,r=this._y1,u=i-t,l=s-h,_=$-t,o=r-h,a=_*_+o*o;if(this._x1===null)this._append`M${this._x1=t},${this._y1=h}`;else if(a>p)if(!(Math.abs(o*u-l*_)>p)||!n)this._append`L${this._x1=t},${this._y1=h}`;else{let d=i-$,f=s-r,y=u*u+l*l,P=d*d+f*f,g=Math.sqrt(y),v=Math.sqrt(a),w=n*Math.tan((M-Math.acos((y+a-P)/(2*g*v)))/2),c=w/v,b=w/g;Math.abs(c-1)>p&&this._append`L${t+c*_},${h+c*o}`,this._append`A${n},${n},0,0,${+(o*d>_*f)},${this._x1=t+b*u},${this._y1=h+b*l}`}}arc(t,h,i,s,n,$){if(t=+t,h=+h,i=+i,$=!!$,i<0)throw new Error(`negative radius: ${i}`);let r=i*Math.cos(s),u=i*Math.sin(s),l=t+r,_=h+u,o=1^$,a=$?s-n:n-s;this._x1===null?this._append`M${l},${_}`:(Math.abs(this._x1-l)>p||Math.abs(this._y1-_)>p)&&this._append`L${l},${_}`,i&&(a<0&&(a=a%x+x),a>T?this._append`A${i},${i},0,1,${o},${t-r},${h-u}A${i},${i},0,1,${o},${this._x1=l},${this._y1=_}`:a>p&&this._append`A${i},${i},0,${+(a>=M)},${o},${this._x1=t+i*Math.cos(n)},${this._y1=h+i*Math.sin(n)}`)}rect(t,h,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+h}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function L(e){return function(){return e}}function q(e){let t=3;return e.digits=function(h){if(!arguments.length)return t;if(h==null)t=null;else{const i=Math.floor(h);if(!(i>=0))throw new RangeError(`invalid digits: ${h}`);t=i}return e},()=>new A(t)}exports.constant=L;exports.withPath=q;
@@ -1,51 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./layers.Dlp-dPD8.js"),pt=require("./layers.BLd2spTm.js");require("lodash-es");const _t=require("./layers.Cyzu9PKQ.js");require("./layers.D11yimAp.js");const gt=require("./layers.CZ6FLSh1.js"),Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function mt(t){return typeof t=="string"&&Et.test(t)}const M=[];for(let t=0;t<256;++t)M.push((t+256).toString(16).slice(1));function kt(t,e=0){return M[t[e+0]]+M[t[e+1]]+M[t[e+2]]+M[t[e+3]]+"-"+M[t[e+4]]+M[t[e+5]]+"-"+M[t[e+6]]+M[t[e+7]]+"-"+M[t[e+8]]+M[t[e+9]]+"-"+M[t[e+10]]+M[t[e+11]]+M[t[e+12]]+M[t[e+13]]+M[t[e+14]]+M[t[e+15]]}function xt(t){if(!mt(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function Ot(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}const Rt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",bt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Nt(t,e,r){function u(c,p,f,o){var h;if(typeof c=="string"&&(c=Ot(c)),typeof p=="string"&&(p=xt(p)),((h=p)===null||h===void 0?void 0:h.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+c.length);if(_.set(p),_.set(c,p.length),_=r(_),_[6]=_[6]&15|e,_[8]=_[8]&63|128,f){o=o||0;for(let m=0;m<16;++m)f[o+m]=_[m];return f}return kt(_)}try{u.name=t}catch{}return u.DNS=Rt,u.URL=bt,u}function Tt(t,e,r,u){switch(t){case 0:return e&r^~e&u;case 1:return e^r^u;case 2:return e&r^e&u^r&u;case 3:return e^r^u}}function et(t,e){return t<<e|t>>>32-e}function At(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o<f.length;++o)t.push(f.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const u=t.length/4+2,c=Math.ceil(u/16),p=new Array(c);for(let f=0;f<c;++f){const o=new Uint32Array(16);for(let h=0;h<16;++h)o[h]=t[f*64+h*4]<<24|t[f*64+h*4+1]<<16|t[f*64+h*4+2]<<8|t[f*64+h*4+3];p[f]=o}p[c-1][14]=(t.length-1)*8/Math.pow(2,32),p[c-1][14]=Math.floor(p[c-1][14]),p[c-1][15]=(t.length-1)*8&4294967295;for(let f=0;f<c;++f){const o=new Uint32Array(80);for(let y=0;y<16;++y)o[y]=p[f][y];for(let y=16;y<80;++y)o[y]=et(o[y-3]^o[y-8]^o[y-14]^o[y-16],1);let h=r[0],_=r[1],m=r[2],k=r[3],O=r[4];for(let y=0;y<80;++y){const T=Math.floor(y/20),D=et(h,5)+Tt(T,_,m,k)+O+e[T]+o[y]>>>0;O=k,k=m,m=et(_,30)>>>0,_=h,h=D}r[0]=r[0]+h>>>0,r[1]=r[1]+_>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+k>>>0,r[4]=r[4]+O>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const Mt=Nt("v5",80,At);var rt=(function(){var t=function(w,n,a,l){for(a=a||{},l=w.length;l--;a[w[l]]=n);return a},e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],c=[1,12],p=[1,13],f=[1,14],o=[1,15],h=[1,21],_=[1,22],m=[1,23],k=[1,24],O=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],T=[1,34],D=[27,28,46,47],F=[41,42,43,44,45],W=[17,34],P=[1,54],A=[1,53],S=[17,34,36,38],R={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(n,a,l,d,g,i,V){var s=i.length-1;switch(g){case 1:break;case 2:this.$=[];break;case 3:i[s-1].push(i[s]),this.$=i[s-1];break;case 4:case 5:this.$=i[s];break;case 6:case 7:this.$=[];break;case 8:d.addEntity(i[s-4]),d.addEntity(i[s-2]),d.addRelationship(i[s-4],i[s],i[s-2],i[s-3]);break;case 9:d.addEntity(i[s-3]),d.addAttributes(i[s-3],i[s-1]);break;case 10:d.addEntity(i[s-2]);break;case 11:d.addEntity(i[s]);break;case 12:d.addEntity(i[s-6],i[s-4]),d.addAttributes(i[s-6],i[s-1]);break;case 13:d.addEntity(i[s-5],i[s-3]);break;case 14:d.addEntity(i[s-3],i[s-1]);break;case 15:case 16:this.$=i[s].trim(),d.setAccTitle(this.$);break;case 17:case 18:this.$=i[s].trim(),d.setAccDescription(this.$);break;case 19:case 43:this.$=i[s];break;case 20:case 41:case 42:this.$=i[s].replace(/"/g,"");break;case 21:case 29:this.$=[i[s]];break;case 22:i[s].push(i[s-1]),this.$=i[s];break;case 23:this.$={attributeType:i[s-1],attributeName:i[s]};break;case 24:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeKeyTypeList:i[s]};break;case 25:this.$={attributeType:i[s-2],attributeName:i[s-1],attributeComment:i[s]};break;case 26:this.$={attributeType:i[s-3],attributeName:i[s-2],attributeKeyTypeList:i[s-1],attributeComment:i[s]};break;case 27:case 28:case 31:this.$=i[s];break;case 30:i[s-2].push(i[s]),this.$=i[s-2];break;case 32:this.$=i[s].replace(/"/g,"");break;case 33:this.$={cardA:i[s],relType:i[s-1],cardB:i[s-2]};break;case 34:this.$=d.Cardinality.ZERO_OR_ONE;break;case 35:this.$=d.Cardinality.ZERO_OR_MORE;break;case 36:this.$=d.Cardinality.ONE_OR_MORE;break;case 37:this.$=d.Cardinality.ONLY_ONE;break;case 38:this.$=d.Cardinality.MD_PARENT;break;case 39:this.$=d.Identification.NON_IDENTIFYING;break;case 40:this.$=d.Identification.IDENTIFYING;break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:c,26:p,27:f,28:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:c,26:p,27:f,28:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:h,42:_,43:m,44:k,45:O}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:f,28:o},{16:30,17:[1,31],29:32,30:33,34:T},{11:35,27:f,28:o},{40:36,46:[1,37],47:[1,38]},t(D,[2,34]),t(D,[2,35]),t(D,[2,36]),t(D,[2,37]),t(D,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:T},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:h,42:_,43:m,44:k,45:O},t(F,[2,39]),t(F,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(W,[2,23],{32:50,33:51,35:52,37:P,38:A}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(W,[2,24],{33:56,36:[1,57],38:A}),t(W,[2,25]),t(S,[2,29]),t(W,[2,32]),t(S,[2,31]),{16:58,17:[1,59],29:32,30:33,34:T},t(W,[2,26]),{35:60,37:P},{17:[1,61]},t(e,[2,13]),t(S,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:function(n,a){if(a.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=a,l}},parse:function(n){var a=this,l=[0],d=[],g=[null],i=[],V=this.table,s="",X=0,nt=0,dt=2,at=1,ut=i.slice.call(arguments,1),N=Object.create(this.lexer),H={yy:{}};for(var j in this.yy)Object.prototype.hasOwnProperty.call(this.yy,j)&&(H.yy[j]=this.yy[j]);N.setInput(n,H.yy),H.yy.lexer=N,H.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var J=N.yylloc;i.push(J);var ft=N.options&&N.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(){var Z;return Z=d.pop()||N.lex()||at,typeof Z!="number"&&(Z instanceof Array&&(d=Z,Z=d.pop()),Z=a.symbols_[Z]||Z),Z}for(var I,z,v,$,K={},Q,Y,st,q;;){if(z=l[l.length-1],this.defaultActions[z]?v=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=yt()),v=V[z]&&V[z][I]),typeof v>"u"||!v.length||!v[0]){var tt="";q=[];for(Q in V[z])this.terminals_[Q]&&Q>dt&&q.push("'"+this.terminals_[Q]+"'");N.showPosition?tt="Parse error on line "+(X+1)+`:
2
- `+N.showPosition()+`
3
- Expecting `+q.join(", ")+", got '"+(this.terminals_[I]||I)+"'":tt="Parse error on line "+(X+1)+": Unexpected "+(I==at?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(tt,{text:N.match,token:this.terminals_[I]||I,line:N.yylineno,loc:J,expected:q})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(v[0]){case 1:l.push(I),g.push(N.yytext),i.push(N.yylloc),l.push(v[1]),I=null,nt=N.yyleng,s=N.yytext,X=N.yylineno,J=N.yylloc;break;case 2:if(Y=this.productions_[v[1]][1],K.$=g[g.length-Y],K._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ft&&(K._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),$=this.performAction.apply(K,[s,nt,X,H.yy,v[1],g,i].concat(ut)),typeof $<"u")return $;Y&&(l=l.slice(0,-1*Y*2),g=g.slice(0,-1*Y),i=i.slice(0,-1*Y)),l.push(this.productions_[v[1]][0]),g.push(K.$),i.push(K._$),st=V[l[l.length-2]][l[l.length-1]],l.push(st);break;case 3:return!0}}return!0}},b=(function(){var w={EOF:1,parseError:function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},setInput:function(n,a){return this.yy=a||this.yy||{},this._input=n,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 n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var a=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=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),l.length-1&&(this.yylineno-=l.length-1);var g=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:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
5
- `+a+"^"},test_match:function(n,a){var l,d,g;if(this.options.backtrack_lexer&&(g={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&&(g.yylloc.range=this.yylloc.range.slice(0))),d=n[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,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(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var i in g)this[i]=g[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,a,l,d;this._more||(this.yytext="",this.match="");for(var g=this._currentRules(),i=0;i<g.length;i++)if(l=this._input.match(this.rules[g[i]]),l&&(!a||l[0].length>a[0].length)){if(a=l,d=i,this.options.backtrack_lexer){if(n=this.test_match(l,g[i]),n!==!1)return n;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(n=this.test_match(a,g[d]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,l,d,g){switch(d){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return l.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return l.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[\*A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,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,53,54,55],inclusive:!0}}};return w})();R.lexer=b;function L(){this.yy={}}return L.prototype=R,R.Parser=L,new L})();rt.parser=rt;const St=rt;let U={},it=[];const wt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},It={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},lt=function(t,e=void 0){return U[t]===void 0?(U[t]={attributes:[],alias:e},E.log$1.info("Added new entity :",t)):U[t]&&!U[t].alias&&e&&(U[t].alias=e,E.log$1.info(`Add alias '${e}' to entity '${t}'`)),U[t]},Dt=()=>U,vt=function(t,e){let r=lt(t),u;for(u=e.length-1;u>=0;u--)r.attributes.push(e[u]),E.log$1.debug("Added attribute ",e[u].attributeName)},Lt=function(t,e,r,u){let c={entityA:t,roleA:e,entityB:r,relSpec:u};it.push(c),E.log$1.debug("Added new relationship :",c)},Bt=()=>it,Ct=function(){U={},it=[],E.clear()},Pt={Cardinality:wt,Identification:It,getConfig:()=>E.getConfig().er,addEntity:lt,addAttributes:vt,getEntities:Dt,addRelationship:Lt,getRelationships:Bt,clear:Ct,setAccTitle:E.setAccTitle,getAccTitle:E.getAccTitle,setAccDescription:E.setAccDescription,getAccDescription:E.getAccDescription,setDiagramTitle:E.setDiagramTitle,getDiagramTitle:E.getDiagramTitle},B={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END",MD_PARENT_END:"MD_PARENT_END",MD_PARENT_START:"MD_PARENT_START"},Yt=function(t,e){let r;t.append("defs").append("marker").attr("id",B.MD_PARENT_START).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"),t.append("defs").append("marker").attr("id",B.MD_PARENT_END).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"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",B.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",B.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),r=t.append("defs").append("marker").attr("id",B.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),r.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},C={ERMarkers:B,insertMarkers:Yt},Zt=/[^\dA-Za-z](\W)*/g;let x={},G=new Map;const Ft=function(t){const e=Object.keys(t);for(const r of e)x[r]=t[r]},Wt=(t,e,r)=>{const u=x.entityPadding/3,c=x.entityPadding/3,p=x.fontSize*.85,f=e.node().getBBox(),o=[];let h=!1,_=!1,m=0,k=0,O=0,y=0,T=f.height+u*2,D=1;r.forEach(A=>{A.attributeKeyTypeList!==void 0&&A.attributeKeyTypeList.length>0&&(h=!0),A.attributeComment!==void 0&&(_=!0)}),r.forEach(A=>{const S=`${e.node().id}-attr-${D}`;let R=0;const b=E.parseGenericTypes(A.attributeType),L=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(b),w=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(A.attributeName),n={};n.tn=L,n.nn=w;const a=L.node().getBBox(),l=w.node().getBBox();if(m=Math.max(m,a.width),k=Math.max(k,l.width),R=Math.max(a.height,l.height),h){const d=A.attributeKeyTypeList!==void 0?A.attributeKeyTypeList.join(","):"",g=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(d);n.kn=g;const i=g.node().getBBox();O=Math.max(O,i.width),R=Math.max(R,i.height)}if(_){const d=t.append("text").classed("er entityLabel",!0).attr("id",`${S}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",E.getConfig().fontFamily).style("font-size",p+"px").text(A.attributeComment||"");n.cn=d;const g=d.node().getBBox();y=Math.max(y,g.width),R=Math.max(R,g.height)}n.height=R,o.push(n),T+=R+u*2,D+=1});let F=4;h&&(F+=2),_&&(F+=2);const W=m+k+O+y,P={width:Math.max(x.minEntityWidth,Math.max(f.width+x.entityPadding*2,W+c*F)),height:r.length>0?T:Math.max(x.minEntityHeight,f.height+x.entityPadding*2)};if(r.length>0){const A=Math.max(0,(P.width-W-c*F)/(F/2));e.attr("transform","translate("+P.width/2+","+(u+f.height/2)+")");let S=f.height+u*2,R="attributeBoxOdd";o.forEach(b=>{const L=S+u+b.height/2;b.tn.attr("transform","translate("+c+","+L+")");const w=t.insert("rect","#"+b.tn.node().id).classed(`er ${R}`,!0).attr("x",0).attr("y",S).attr("width",m+c*2+A).attr("height",b.height+u*2),n=parseFloat(w.attr("x"))+parseFloat(w.attr("width"));b.nn.attr("transform","translate("+(n+c)+","+L+")");const a=t.insert("rect","#"+b.nn.node().id).classed(`er ${R}`,!0).attr("x",n).attr("y",S).attr("width",k+c*2+A).attr("height",b.height+u*2);let l=parseFloat(a.attr("x"))+parseFloat(a.attr("width"));if(h){b.kn.attr("transform","translate("+(l+c)+","+L+")");const d=t.insert("rect","#"+b.kn.node().id).classed(`er ${R}`,!0).attr("x",l).attr("y",S).attr("width",O+c*2+A).attr("height",b.height+u*2);l=parseFloat(d.attr("x"))+parseFloat(d.attr("width"))}_&&(b.cn.attr("transform","translate("+(l+c)+","+L+")"),t.insert("rect","#"+b.cn.node().id).classed(`er ${R}`,"true").attr("x",l).attr("y",S).attr("width",y+c*2+A).attr("height",b.height+u*2)),S+=b.height+u*2,R=R==="attributeBoxOdd"?"attributeBoxEven":"attributeBoxOdd"})}else P.height=Math.max(x.minEntityHeight,T),e.attr("transform","translate("+P.width/2+","+P.height/2+")");return P},Ut=function(t,e,r){const u=Object.keys(e);let c;return u.forEach(function(p){const f=Xt(p,"entity");G.set(p,f);const o=t.append("g").attr("id",f);c=c===void 0?f:c;const h="text-"+f,_=o.append("text").classed("er entityLabel",!0).attr("id",h).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",E.getConfig().fontFamily).style("font-size",x.fontSize+"px").text(e[p].alias??p),{width:m,height:k}=Wt(o,_,e[p].attributes),y=o.insert("rect","#"+h).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",m).attr("height",k).node().getBBox();r.setNode(f,{width:y.width,height:y.height,shape:"rect",id:f})}),c},Ht=function(t,e){e.nodes().forEach(function(r){r!==void 0&&e.node(r)!==void 0&&t.select("#"+r).attr("transform","translate("+(e.node(r).x-e.node(r).width/2)+","+(e.node(r).y-e.node(r).height/2)+" )")})},ht=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},zt=function(t,e){return t.forEach(function(r){e.setEdge(G.get(r.entityA),G.get(r.entityB),{relationship:r},ht(r))}),t};let ot=0;const Kt=function(t,e,r,u,c){ot++;const p=r.edge(G.get(e.entityA),G.get(e.entityB),ht(e)),f=gt.line().x(function(T){return T.x}).y(function(T){return T.y}).curve(E.curveBasis),o=t.insert("path","#"+u).classed("er relationshipLine",!0).attr("d",f(p.points)).style("stroke",x.stroke).style("fill","none");e.relSpec.relType===c.db.Identification.NON_IDENTIFYING&&o.attr("stroke-dasharray","8,8");let h="";switch(x.arrowMarkerAbsolute&&(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,h=h.replace(/\(/g,"\\("),h=h.replace(/\)/g,"\\)")),e.relSpec.cardA){case c.db.Cardinality.ZERO_OR_ONE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ZERO_OR_ONE_END+")");break;case c.db.Cardinality.ZERO_OR_MORE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ZERO_OR_MORE_END+")");break;case c.db.Cardinality.ONE_OR_MORE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ONE_OR_MORE_END+")");break;case c.db.Cardinality.ONLY_ONE:o.attr("marker-end","url("+h+"#"+C.ERMarkers.ONLY_ONE_END+")");break;case c.db.Cardinality.MD_PARENT:o.attr("marker-end","url("+h+"#"+C.ERMarkers.MD_PARENT_END+")");break}switch(e.relSpec.cardB){case c.db.Cardinality.ZERO_OR_ONE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ZERO_OR_ONE_START+")");break;case c.db.Cardinality.ZERO_OR_MORE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ZERO_OR_MORE_START+")");break;case c.db.Cardinality.ONE_OR_MORE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ONE_OR_MORE_START+")");break;case c.db.Cardinality.ONLY_ONE:o.attr("marker-start","url("+h+"#"+C.ERMarkers.ONLY_ONE_START+")");break;case c.db.Cardinality.MD_PARENT:o.attr("marker-start","url("+h+"#"+C.ERMarkers.MD_PARENT_START+")");break}const _=o.node().getTotalLength(),m=o.node().getPointAtLength(_*.5),k="rel"+ot,y=t.append("text").classed("er relationshipLabel",!0).attr("id",k).attr("x",m.x).attr("y",m.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",E.getConfig().fontFamily).style("font-size",x.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+k).classed("er relationshipLabelBox",!0).attr("x",m.x-y.width/2).attr("y",m.y-y.height/2).attr("width",y.width).attr("height",y.height)},Vt=function(t,e,r,u){x=E.getConfig().er,E.log$1.info("Drawing ER diagram");const c=E.getConfig().securityLevel;let p;c==="sandbox"&&(p=E.select("#i"+e));const o=(c==="sandbox"?E.select(p.nodes()[0].contentDocument.body):E.select("body")).select(`[id='${e}']`);C.insertMarkers(o,x);let h;h=new pt.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:x.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const _=Ut(o,u.db.getEntities(),h),m=zt(u.db.getRelationships(),h);_t.layout(h),Ht(o,h),m.forEach(function(D){Kt(o,D,h,_,u)});const k=x.diagramPadding;E.utils.insertTitle(o,"entityTitleText",x.titleTopMargin,u.db.getDiagramTitle());const O=o.node().getBBox(),y=O.width+k*2,T=O.height+k*2;E.configureSvgSize(o,T,y,x.useMaxWidth),o.attr("viewBox",`${O.x-k} ${O.y-k} ${y} ${T}`)},Gt="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function Xt(t="",e=""){const r=t.replace(Zt,"");return`${ct(e)}${ct(r)}${Mt(t,Gt)}`}function ct(t=""){return t.length>0?`${t}-`:""}const Qt={setConf:Ft,draw:Vt},qt=t=>`
7
- .entityBox {
8
- fill: ${t.mainBkg};
9
- stroke: ${t.nodeBorder};
10
- }
11
-
12
- .attributeBoxOdd {
13
- fill: ${t.attributeBackgroundColorOdd};
14
- stroke: ${t.nodeBorder};
15
- }
16
-
17
- .attributeBoxEven {
18
- fill: ${t.attributeBackgroundColorEven};
19
- stroke: ${t.nodeBorder};
20
- }
21
-
22
- .relationshipLabelBox {
23
- fill: ${t.tertiaryColor};
24
- opacity: 0.7;
25
- background-color: ${t.tertiaryColor};
26
- rect {
27
- opacity: 0.5;
28
- }
29
- }
30
-
31
- .relationshipLine {
32
- stroke: ${t.lineColor};
33
- }
34
-
35
- .entityTitleText {
36
- text-anchor: middle;
37
- font-size: 18px;
38
- fill: ${t.textColor};
39
- }
40
- #MD_PARENT_START {
41
- fill: #f5f5f5 !important;
42
- stroke: ${t.lineColor} !important;
43
- stroke-width: 1;
44
- }
45
- #MD_PARENT_END {
46
- fill: #f5f5f5 !important;
47
- stroke: ${t.lineColor} !important;
48
- stroke-width: 1;
49
- }
50
-
51
- `,jt=qt,Jt={parser:St,db:Pt,renderer:Qt,styles:jt};exports.diagram=Jt;