@dooc-dev/dooc 0.0.4 → 0.0.6

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 (231) hide show
  1. package/dist/cli.js +157 -58
  2. package/dist/code-worker.global.js +152 -0
  3. package/dist/code.global.js +101 -101
  4. package/dist/compiler/asset-references.d.ts +4 -0
  5. package/dist/compiler/asset-references.js +117 -0
  6. package/dist/compiler/bundle-urls.d.ts +1 -1
  7. package/dist/compiler/bundle-urls.js +17 -5
  8. package/dist/compiler/check.js +10 -5
  9. package/dist/compiler/code-languages.js +7 -2
  10. package/dist/compiler/compile.d.ts +5 -0
  11. package/dist/compiler/compile.js +117 -12
  12. package/dist/compiler/config.js +2 -1
  13. package/dist/compiler/dxf.d.ts +1 -0
  14. package/dist/compiler/dxf.js +81 -0
  15. package/dist/compiler/export.d.ts +4 -0
  16. package/dist/compiler/export.js +147 -0
  17. package/dist/compiler/figures.js +43 -10
  18. package/dist/compiler/files.js +82 -41
  19. package/dist/compiler/fonts.js +4 -1
  20. package/dist/compiler/icons.d.ts +1 -1
  21. package/dist/compiler/icons.js +11 -2
  22. package/dist/compiler/ignored-files.d.ts +5 -0
  23. package/dist/compiler/ignored-files.js +98 -0
  24. package/dist/compiler/locales.js +13 -8
  25. package/dist/compiler/ops.d.ts +6 -0
  26. package/dist/compiler/ops.js +99 -8
  27. package/dist/compiler/subformat-schema.d.ts +14 -0
  28. package/dist/compiler/subformat-schema.js +92 -0
  29. package/dist/compiler/subformats.d.ts +22 -0
  30. package/dist/compiler/subformats.js +339 -0
  31. package/dist/compiler/textfile.js +3 -0
  32. package/dist/compiler/theme-variants.js +5 -2
  33. package/dist/core/code-file.js +7 -5
  34. package/dist/core/code-grammars.d.ts +5 -0
  35. package/dist/core/code-grammars.js +34 -0
  36. package/dist/core/content-metadata.d.ts +16 -6
  37. package/dist/core/content-metadata.js +283 -17
  38. package/dist/core/content-types.d.ts +4 -2
  39. package/dist/core/escape-html.d.ts +1 -0
  40. package/dist/core/escape-html.js +1 -0
  41. package/dist/core/figure-frame.js +20 -2
  42. package/dist/core/file-embed.js +7 -3
  43. package/dist/core/files.d.ts +2 -1
  44. package/dist/core/files.js +6 -8
  45. package/dist/core/flow-base-css.generated.js +1 -1
  46. package/dist/core/html.d.ts +4 -1
  47. package/dist/core/html.js +11 -10
  48. package/dist/core/icons.d.ts +3 -0
  49. package/dist/core/icons.js +3 -0
  50. package/dist/core/json-tools.d.ts +1 -0
  51. package/dist/core/json-tools.js +12 -0
  52. package/dist/core/language.js +5 -2
  53. package/dist/core/markdown.js +3 -1
  54. package/dist/core/previewers.d.ts +8 -0
  55. package/dist/core/previewers.js +2 -0
  56. package/dist/core/routing.d.ts +5 -2
  57. package/dist/core/routing.js +17 -5
  58. package/dist/core/schema-fields.d.ts +13 -0
  59. package/dist/core/schema-fields.js +175 -0
  60. package/dist/core/schema-graph-mount.js +26 -3
  61. package/dist/core/schema-refs.d.ts +8 -0
  62. package/dist/core/schema-refs.js +82 -0
  63. package/dist/core/subformat-record.d.ts +3 -0
  64. package/dist/core/subformat-record.js +131 -0
  65. package/dist/core/subformats.d.ts +43 -0
  66. package/dist/core/subformats.js +81 -0
  67. package/dist/core/toc-ui.js +26 -24
  68. package/dist/edit.global.js +326 -118
  69. package/dist/flow.global.js +3 -3
  70. package/dist/graph/abnfDiagram-S7VZAUFO-ASBULSKE.js +1 -0
  71. package/dist/graph/architecture-WOLXFQ4H-V57EDXXY.js +1 -0
  72. package/dist/graph/architectureDiagram-YGSQEFNW-GIMP347N.js +36 -0
  73. package/dist/graph/blockDiagram-APKKGZFW-RDL2T4JW.js +140 -0
  74. package/dist/graph/bpmnIcons-APHXDYXF-TWOSQNUQ.js +1 -0
  75. package/dist/graph/c4Diagram-KJ2TOQU5-75LIUC4F.js +38 -0
  76. package/dist/graph/chunk-26TUJSYJ.js +1 -0
  77. package/dist/graph/chunk-3LU66YMI.js +1 -0
  78. package/dist/graph/chunk-3RNHDNP5.js +1 -0
  79. package/dist/graph/chunk-3Y2PDVDE.js +1 -0
  80. package/dist/graph/chunk-3YJHMOOA.js +3 -0
  81. package/dist/graph/chunk-4KILFWYV.js +339 -0
  82. package/dist/graph/chunk-4QDE4SUK.js +1 -0
  83. package/dist/graph/chunk-5OO6DATX.js +1 -0
  84. package/dist/graph/chunk-5UUEAHTN.js +1 -0
  85. package/dist/graph/chunk-6T55RVVR.js +1 -0
  86. package/dist/graph/chunk-ARAJTKOH.js +2 -0
  87. package/dist/graph/chunk-BBD5CEDC.js +72 -0
  88. package/dist/graph/chunk-BVXT562I.js +1 -0
  89. package/dist/graph/chunk-BZAMCJ6B.js +32 -0
  90. package/dist/graph/chunk-C6J4A356.js +15 -0
  91. package/dist/graph/chunk-EG5UVNOC.js +213 -0
  92. package/dist/graph/chunk-GF4TOPUK.js +1 -0
  93. package/dist/graph/chunk-GYT4IYBZ.js +1 -0
  94. package/dist/graph/chunk-HJG2HUYJ.js +88 -0
  95. package/dist/graph/chunk-HOPPTA6H.js +62 -0
  96. package/dist/graph/chunk-I3DMZIHV.js +1 -0
  97. package/dist/graph/chunk-IC23EEF6.js +1 -0
  98. package/dist/graph/chunk-ISO77HML.js +1 -0
  99. package/dist/graph/chunk-JD7ZBJD2.js +1 -0
  100. package/dist/graph/chunk-JRSH5GNS.js +1 -0
  101. package/dist/graph/chunk-JSHWCPFJ.js +1 -0
  102. package/dist/graph/chunk-K2KLZU7M.js +10 -0
  103. package/dist/graph/chunk-K4I76XBX.js +14 -0
  104. package/dist/graph/chunk-KT4VPQD5.js +135 -0
  105. package/dist/graph/chunk-KU6GTEMS.js +1 -0
  106. package/dist/graph/chunk-LT6LXKCR.js +136 -0
  107. package/dist/graph/chunk-MPR575IN.js +1 -0
  108. package/dist/graph/chunk-N3OHKGRZ.js +1 -0
  109. package/dist/graph/chunk-O656ZI37.js +1 -0
  110. package/dist/graph/chunk-OFZLK5G4.js +1 -0
  111. package/dist/graph/chunk-PDH25ALM.js +2 -0
  112. package/dist/graph/chunk-PW2RGZ3O.js +1 -0
  113. package/dist/graph/chunk-QCJUF4YA.js +1 -0
  114. package/dist/graph/chunk-QEEA3KYY.js +2 -0
  115. package/dist/graph/chunk-QYAXYFNI.js +1 -0
  116. package/dist/graph/chunk-QYTM6GY3.js +1 -0
  117. package/dist/graph/chunk-R63JUMUK.js +1 -0
  118. package/dist/graph/chunk-SCEY3ZPT.js +1 -0
  119. package/dist/graph/chunk-VM2H7G2R.js +1 -0
  120. package/dist/graph/chunk-XQS73SBQ.js +1 -0
  121. package/dist/graph/chunk-YCRLJT2S.js +1 -0
  122. package/dist/graph/chunk-Z4FIZ7CR.js +1 -0
  123. package/dist/graph/chunk-ZMCB7VP2.js +1 -0
  124. package/dist/graph/chunk-ZSZXN4BT.js +2 -0
  125. package/dist/graph/classDiagram-v2-L25IHNXF-JL7LVDZH.js +217 -0
  126. package/dist/graph/cose-bilkent-JH36ORCC-PNM3EYPB.js +1 -0
  127. package/dist/graph/cynefin-EF2NZ3EQ-PSXP3DXL.js +1 -0
  128. package/dist/graph/cynefinDiagram-L36ESFBY-QVY54CXO.js +62 -0
  129. package/dist/graph/dagre-SPEB5RXH-HPGQXBZJ.js +4 -0
  130. package/dist/graph/diagram-3B7GL73J-DWH5WS2P.js +200 -0
  131. package/dist/graph/diagram-DNEMPZML-TEGH2U5I.js +24 -0
  132. package/dist/graph/diagram-L3MUGCDN-X4MREUWR.js +41 -0
  133. package/dist/graph/diagram-LA4NIPWU-NXT746HG.js +24 -0
  134. package/dist/graph/diagram-MHCOC4E2-JGHXSAGS.js +3 -0
  135. package/dist/graph/diagram-XPFHEONP-ZHZPBLT4.js +30 -0
  136. package/dist/graph/ebnfDiagram-UZSYDL2S-SMF6KJ43.js +1 -0
  137. package/dist/graph/elk-XV6XMXQE-AZ4HLCWI.js +27 -0
  138. package/dist/graph/erDiagram-EYBAPDEH-B3JNJ357.js +99 -0
  139. package/dist/graph/eventmodeling-K75KTNOO-WG6DDYMC.js +1 -0
  140. package/dist/graph/flowDiagram-MALGAFMO-2R7EYAQI.js +1 -0
  141. package/dist/graph/ganttDiagram-23REXITY-YXBYWFOJ.js +292 -0
  142. package/dist/graph/gitGraph-VSP46ZUC-VBFWJBBT.js +1 -0
  143. package/dist/graph/gitGraphDiagram-STJD7YCW-4FZDCFGV.js +106 -0
  144. package/dist/graph/info-OHQRW6UA-ALVDUVYV.js +1 -0
  145. package/dist/graph/infoDiagram-KBXO4MBG-7EHX2GQG.js +2 -0
  146. package/dist/graph/ishikawaDiagram-M35NCXHK-FRZD2PWQ.js +70 -0
  147. package/dist/graph/journeyDiagram-OPLOXDXO-7Z66JCPR.js +139 -0
  148. package/dist/graph/kanban-definition-BZKZHSQY-NN5AIKTE.js +89 -0
  149. package/dist/graph/katex-DXDNVO6V.js +257 -0
  150. package/dist/graph/mindmap-definition-I2QAS2VK-HDPCABN2.js +98 -0
  151. package/dist/graph/packet-JDAUHWVQ-5MQIBWAH.js +1 -0
  152. package/dist/graph/pegDiagram-FD4XPPHP-H2BFNCKT.js +1 -0
  153. package/dist/graph/pie-XZMESJXO-T5VRKHVT.js +1 -0
  154. package/dist/graph/pieDiagram-J4AKIIQI-O3NJSVD3.js +39 -0
  155. package/dist/graph/quadrantDiagram-XTYBLID2-TMTZJI3P.js +7 -0
  156. package/dist/graph/radar-ABXABTNO-C6FXIBYW.js +1 -0
  157. package/dist/graph/railroad-I3PHUGI6-ZSO5JXB3.js +1 -0
  158. package/dist/graph/railroad-abnf-LNEFI6M7-CI4GQRHB.js +1 -0
  159. package/dist/graph/railroad-ebnf-DWYD2UWJ-MUENNCGK.js +1 -0
  160. package/dist/graph/railroad-peg-JR7BVNR7-N3X5GGIX.js +1 -0
  161. package/dist/graph/railroadDiagram-MRQ6NCDL-JHWS23UO.js +1 -0
  162. package/dist/graph/requirementDiagram-Y7LWUY3S-7DVLPO4B.js +84 -0
  163. package/dist/graph/sankeyDiagram-WGJFYUXA-Z5L4R5TR.js +40 -0
  164. package/dist/graph/schema-graph-global.js +639 -0
  165. package/dist/graph/sequenceDiagram-5NDRBG5M-RCTU25NT.js +169 -0
  166. package/dist/graph/sizeCapture-INFHLROL-RROY32P5.js +1 -0
  167. package/dist/graph/stateDiagram-v2-FJ4FJNEA-BXUSPWDK.js +291 -0
  168. package/dist/graph/swimlanes-UMQ2AFYF-LDD74Q2S.js +1 -0
  169. package/dist/graph/swimlanesDiagram-OMPLPG4O-ZYULLJSU.js +8 -0
  170. package/dist/graph/timeline-definition-SEUHKTQE-ZQSMIVAS.js +120 -0
  171. package/dist/graph/treeView-D4JQ5SDB-42S7U73N.js +1 -0
  172. package/dist/graph/treemap-SAJKECNS-RUBYQ7XF.js +1 -0
  173. package/dist/graph/usecaseDiagram-AFA6YXN4-57RDRYXF.js +370 -0
  174. package/dist/graph/vennDiagram-NNMJR3RB-5C3LVAV6.js +34 -0
  175. package/dist/graph/wardley-7MLQ67FV-NV5HXTTC.js +1 -0
  176. package/dist/graph/wardleyDiagram-S7YFUSEH-6D5BKXHM.js +78 -0
  177. package/dist/graph/xychartDiagram-GGNKY7IX-6ET3ZM67.js +7 -0
  178. package/dist/mcp.js +54 -12
  179. package/dist/plugins/index.d.ts +1 -0
  180. package/dist/plugins/transport.d.ts +22 -0
  181. package/dist/plugins/transport.js +1 -0
  182. package/dist/plugins.global.js +95 -0
  183. package/dist/subformats.global.js +21 -0
  184. package/dist/ui.global.js +80 -60
  185. package/dist/viewer/build-plugins.d.ts +7 -0
  186. package/dist/viewer/build-plugins.js +70 -0
  187. package/dist/viewer/build.d.ts +11 -0
  188. package/dist/viewer/build.js +52 -11
  189. package/dist/viewer/code-file.js +7 -2
  190. package/dist/viewer/editor-tools.d.ts +7 -7
  191. package/dist/viewer/editor-tools.js +36 -5
  192. package/dist/viewer/figure-preview.d.ts +4 -0
  193. package/dist/viewer/figure-preview.js +54 -0
  194. package/dist/viewer/font-picker.js +5 -1
  195. package/dist/viewer/git-diff.d.ts +3 -0
  196. package/dist/viewer/git-diff.js +47 -0
  197. package/dist/viewer/hmr.js +8 -4
  198. package/dist/viewer/i18n.js +7 -5
  199. package/dist/viewer/language-picker.d.ts +2 -2
  200. package/dist/viewer/language-picker.js +26 -9
  201. package/dist/viewer/lazy-preview.d.ts +2 -0
  202. package/dist/viewer/lazy-preview.js +43 -0
  203. package/dist/viewer/locales/eng.json +95 -10
  204. package/dist/viewer/locales/jpn.json +96 -11
  205. package/dist/viewer/locales/zho.json +96 -11
  206. package/dist/viewer/nav-focus.js +8 -1
  207. package/dist/viewer/nav-update.d.ts +2 -0
  208. package/dist/viewer/nav-update.js +117 -0
  209. package/dist/viewer/plugin-blocks.js +1 -1
  210. package/dist/viewer/plugin-style.d.ts +1 -0
  211. package/dist/viewer/plugin-style.js +82 -0
  212. package/dist/viewer/plugins.js +1 -1
  213. package/dist/viewer/resize.d.ts +0 -2
  214. package/dist/viewer/resize.js +2 -98
  215. package/dist/viewer/resource-library.d.ts +11 -9
  216. package/dist/viewer/resource-library.js +181 -31
  217. package/dist/viewer/search.d.ts +4 -2
  218. package/dist/viewer/search.js +252 -53
  219. package/dist/viewer/serve.d.ts +11 -5
  220. package/dist/viewer/serve.js +913 -295
  221. package/dist/viewer/site-icon.js +13 -6
  222. package/dist/viewer/site-title.js +15 -2
  223. package/dist/viewer/textfile.d.ts +5 -0
  224. package/dist/viewer/textfile.js +34 -2
  225. package/dist/viewer/theme-picker.d.ts +2 -0
  226. package/dist/viewer/theme-picker.js +24 -8
  227. package/dist/viewer/workspace.d.ts +2 -0
  228. package/dist/viewer/workspace.js +46 -1
  229. package/package.json +27 -10
  230. package/dist/compiler/bundle.d.ts +0 -2
  231. package/dist/compiler/bundle.js +0 -100
@@ -0,0 +1,10 @@
1
+ import{a as Wt}from"./chunk-JD7ZBJD2.js";import{f as Z}from"./chunk-HOPPTA6H.js";import{a as $t}from"./chunk-4QDE4SUK.js";import{c as yt,d as gt}from"./chunk-QCJUF4YA.js";import{c as pt,e as Ut}from"./chunk-BBD5CEDC.js";import{q as U,u as At}from"./chunk-QEEA3KYY.js";import{c as at,d as xt,f as bt,g as wt,h as dt,l as Mt,o as vt,s as St,t as Lt,u as _t,v as Et,w as Ot,x as Tt}from"./chunk-OFZLK5G4.js";import{$ as A,C as B,G as ct,b as ut}from"./chunk-KT4VPQD5.js";import{b as w,d as T}from"./chunk-JRSH5GNS.js";import{a as l}from"./chunk-GYT4IYBZ.js";var j=l((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),v={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Ht={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function J(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=x(r),t=x(t);let[a,e]=[r.x,r.y],[s,n]=[t.x,t.y],o=s-a,i=n-e;return{angle:Math.atan(i/o),deltaX:o,deltaY:i}}l(J,"calculateDeltaAndAngle");var x=l(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),fr=l(r=>({x:l(function(t,a,e){let s=0,n=x(e[0]).x<x(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:p,deltaX:u}=J(e[0],e[1]);s=v[r.arrowTypeStart]*Math.cos(p)*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:p,deltaX:u}=J(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.cos(p)*(u>=0?1:-1)}let o=Math.abs(x(t).x-x(e[e.length-1]).x),i=Math.abs(x(t).y-x(e[e.length-1]).y),c=Math.abs(x(t).x-x(e[0]).x),h=Math.abs(x(t).y-x(e[0]).y),f=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],d=1;if(o<m&&o>0&&i<m){let p=m+d-o;p*=n==="right"?-1:1,s-=p}if(c<f&&c>0&&h<f){let p=f+d-c;p*=n==="right"?-1:1,s+=p}return x(t).x+s},"x"),y:l(function(t,a,e){let s=0,n=x(e[0]).y<x(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:p,deltaY:u}=J(e[0],e[1]);s=v[r.arrowTypeStart]*Math.abs(Math.sin(p))*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:p,deltaY:u}=J(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.abs(Math.sin(p))*(u>=0?1:-1)}let o=Math.abs(x(t).y-x(e[e.length-1]).y),i=Math.abs(x(t).x-x(e[e.length-1]).x),c=Math.abs(x(t).y-x(e[0]).y),h=Math.abs(x(t).x-x(e[0]).x),f=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],d=1;if(o<m&&o>0&&i<m){let p=m+d-o;p*=n==="up"?-1:1,s-=p}if(c<f&&c>0&&h<f){let p=f+d-c;p*=n==="up"?-1:1,s+=p}return x(t).y+s},"y")}),"getLineFunctionsWithOffset"),Qt=1,mr=l(r=>typeof r=="number"&&Number.isFinite(r)&&r>0?r:Qt,"getStepDuration"),mt=l(r=>typeof r.step=="number"&&Number.isInteger(r.step)&&r.step>0,"isStepEdge"),Yt=[.25,.35,.15,.65,.75,.5,.85,.1,.9],ht=9,kr=11,ur=2,yr="#333333",Xt=12,Pt=6,Bt=14,Ct=.01,gr=4.5,Gt=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,xr=4,br=.6,wr=4,Mr=l((r,t,a=Qt)=>{let e=Math.max(t,r);return{begin:(r-1)*a,dur:a,gap:(e-1)*a}},"getEdgeStepTiming"),vr=l(r=>`step_${Array.from(r,t=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),Sr=l(r=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(r.trim());return t?`translate(${t[1]},${t[2]}) `:""},"pathStartTranslate"),Lr=l(r=>Array.from(r,(t,a)=>{let e=t.codePointAt(0)??0;if(e===0)return"\uFFFD";let s=e<=31||e===127,n=/\d/.test(t)&&(a===0||a===1&&r.startsWith("-"));return s||n?`\\${e.toString(16)} `:r==="-"?"\\-":e>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(""),"escapeCssIdentifierFallback"),_r=l(r=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):Lr(r),"escapeCssIdentifier"),Er=l((r,t)=>{let a=r.node(),e=a?.ownerSVGElement??a?.closest?.("svg")??a,s=t||e?.getAttribute("id");if(!e||!s||e.querySelector("style.edge-step-style"))return;let n=`#${_r(s)} `,o=e.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");o.setAttribute("class","edge-step-style"),o.textContent=`@media (prefers-reduced-motion: reduce) { ${n}.edge-step-dot, ${n}.edge-step-highlight { display: none; } }`,e.appendChild(o)},"ensureReducedMotionStyle"),Or=l((r,t)=>{let a=r.filter(n=>Number.isFinite(n.x)&&Number.isFinite(n.y));if(a.length===0)return;let e=a.slice(1).map((n,o)=>Math.hypot(n.x-a[o].x,n.y-a[o].y)),s=e.reduce((n,o)=>n+o,0)*t;for(let[n,o]of e.entries()){if(s<=o&&o>0){let i=s/o,c=a[n],h=a[n+1];return{x:c.x+(h.x-c.x)*i,y:c.y+(h.y-c.y)*i}}s-=o}return a[a.length-1]},"pointAlongPolyline"),Tr=l((r,t)=>{let a=typeof t?.getTotalLength=="function"?t.getTotalLength():0,e=t?.getPointAtLength?.bind(t);return a>0&&e?s=>{let{x:n,y:o}=e(a*s);return{x:n,y:o}}:s=>Or(r,s)},"createPathSampler"),Ar=l((r,t)=>Math.min(Number.POSITIVE_INFINITY,...t.map(a=>{let e=Math.max(Math.abs(r.x-a.x)-a.halfWidth,0),s=Math.max(Math.abs(r.y-a.y)-a.halfHeight,0);return Math.hypot(e,s)-ht})),"roomAround"),Ur=l((r,t)=>{let a=r(t),e=r(Math.max(t-Ct,0)),s=r(Math.min(t+Ct,1));if(!a||!e||!s)return[];let n=Math.hypot(s.x-e.x,s.y-e.y);if(n===0)return[];let o={x:-(s.y-e.y)/n,y:(s.x-e.x)/n};return[1,-1].map(i=>({x:a.x+o.x*Bt*i,y:a.y+o.y*Bt*i}))},"besideThePath"),$r=l((r,t)=>{let a=[...Yt.map(r),...Yt.flatMap(n=>Ur(r,n))],e,s=Number.NEGATIVE_INFINITY;for(let n of a){if(!n||!Number.isFinite(n.x)||!Number.isFinite(n.y))continue;let o=Ar(n,t);if(o>=ur)return n;o>s&&(e=n,s=o)}return e},"chooseBadgePosition"),Zt=l((r,t)=>({...r,halfWidth:t,halfHeight:t}),"square"),Wr=l(r=>{let t=Gt.exec(r.getAttribute("transform")??"");return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},"translationOf"),kt=l(r=>{let t={x:0,y:0};for(let a=r;a&&a.localName!=="svg";a=a.parentElement){let{x:e,y:s}=Wr(a);t.x+=e,t.y+=s}return t},"offsetInSvg"),Hr=l((r,t)=>{if(!Gt.test(r.getAttribute("transform")??""))return;let a=kt(r),e=a.x-t.x,s=a.y-t.y,n=r.getBBox?.();if(n)return{x:e+n.x+n.width/2,y:s+n.y+n.height/2,halfWidth:n.width/2,halfHeight:n.height/2}},"boxedObstacle"),Yr=l(r=>{try{let t=JSON.parse(atob(r.getAttribute("data-points")??""));return Array.isArray(t)?t:[]}catch{return[]}},"readPoints"),Nt=l((r,t)=>{let a=Math.hypot(r.x-t.x,r.y-t.y);if(a===0)return Zt(r,Xt);let e={x:(r.x-t.x)/a,y:(r.y-t.y)/a},s=Xt/2;return{x:r.x-e.x*s,y:r.y-e.y*s,halfWidth:Math.abs(e.x)*s+Math.abs(e.y)*Pt,halfHeight:Math.abs(e.y)*s+Math.abs(e.x)*Pt}},"arrowheadObstacle"),Rt=l((r,t)=>{let a=r.getAttribute(t);return!!a&&a!=="none"},"hasMarker"),Xr=l((r,t)=>{let a=Yr(r).filter(i=>Number.isFinite(i?.x)&&Number.isFinite(i?.y));if(a.length===0)return[];let e=kt(r),s=l(i=>({x:i.x+e.x-t.x,y:i.y+e.y-t.y}),"toSvg"),n=a.length-1,o=[];return Rt(r,"marker-start")&&o.push(Nt(s(a[0]),s(a[Math.min(1,n)]))),Rt(r,"marker-end")&&o.push(Nt(s(a[n]),s(a[Math.max(n-1,0)]))),o},"arrowheadObstacles"),jt=l(r=>{let t={x:0,y:0},a=[...r?.querySelectorAll(".edgeLabel, .node")??[]].map(s=>Hr(s,t)).filter(s=>s!==void 0),e=[...r?.querySelectorAll('path[data-edge="true"]')??[]].flatMap(s=>Xr(s,t));return[...a,...e]},"collectBadgeObstacles"),Pr=l((r,t)=>{if(!r.label||t.length===0)return[];let{x:a,y:e}=U.calcLabelPosition(t);return[{x:a,y:e,halfWidth:(r.width??0)/2,halfHeight:(r.height??0)/2}]},"edgeLabelObstacles"),Br=l(r=>{let t=r/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},"linearChannel"),zt=l(r=>{try{let[t,a,e]=["r","g","b"].map(s=>Br(ut(r,s)));return .2126*t+.7152*a+.0722*e}catch{return}},"relativeLuminance"),Cr=l((r,t)=>{let a=zt(r),e=zt(t);return a===void 0||e===void 0?0:(Math.max(a,e)+.05)/(Math.min(a,e)+.05)},"contrastRatio"),Nr=l((r,t)=>{let e=[...t.filter(n=>!!n),"#ffffff","#000000"].map(n=>({color:n,ratio:Cr(r,n)}));return(e.find(({ratio:n})=>n>=gr)??e.reduce((n,o)=>o.ratio>n.ratio?o:n)).color},"pickBadgeTextColor"),Rr=l(r=>{let t=r?.replace(/^stroke:\s*/,"").trim();return t===""?void 0:t},"bareColor"),zr=l((r,t,a,e=jt(r.node()?.closest("svg")))=>{if(!mt(t)||!t.showStepNumber)return;let s=kt(r.node()),n=e.map(h=>({...h,x:h.x-s.x,y:h.y-s.y})),o=$r(Tr(a.points,a.pathNode),[...n,...Pr(t,a.points)]);if(!o)return;let i=Rr(a.color)??yr,c=r.append("g").attr("class","edge-step-badge").attr("transform",`translate(${o.x},${o.y})`).attr("pointer-events","none").attr("data-step",t.step);return c.append("circle").attr("r",ht).attr("fill",i),c.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",kr).attr("fill",Nr(i,a.textColors??[])).text(String(t.step)),Zt({x:o.x+s.x,y:o.y+s.y},ht)},"insertEdgeStepBadge"),Dt=l((r,t,a)=>{r.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${a}s`).attr("begin",`${t}.begin`).attr("fill","remove")},"showWhileStepPlays"),Dr=l((r,t,a,e,s)=>{if(!mt(t)||!a)return;let{begin:n,dur:o,gap:i}=Mr(t.step,t.stepCount??t.step,mr(t.stepDuration)),c=vr(`${e}-${t.id}-step`),h=`${Sr(a)}scale(0)`,f=s?.replace(/^stroke:\s*/,""),m=r.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",a).attr("fill","none").attr("stroke",f??"currentColor").attr("stroke-width",xr).attr("stroke-linecap","round").attr("stroke-opacity",br).attr("pointer-events","none").attr("transform",h).attr("data-step",t.step);Dt(m,c,o);let d=r.append("circle").attr("class","edge-step-dot").attr("r",wr).attr("aria-hidden","true").attr("transform",h).attr("data-step",t.step);f&&d.attr("fill",f).attr("stroke","none"),d.append("animateMotion").attr("id",c).attr("path",a).attr("dur",`${o}s`).attr("begin",`${n}s;${c}.end+${i}s`).attr("fill","remove"),Dt(d,c,o),Er(r,e)},"insertEdgeStepDot"),et=new WeakMap,qr=l(r=>{let t=r.querySelector(":scope > g.edge-step-badges");if(t)return t;let a=r.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return a.setAttribute("class","edge-step-badges"),r.appendChild(a)},"badgeLayer"),Na=l(r=>{let t=r?et.get(r):void 0;if(!r||!t)return;et.delete(r);let a=jt(r);for(let{elem:e,edge:s,options:n}of t){let o=e.node()?.parentElement;if(!o)continue;let i=T(qr(o)),c=zr(i,s,n,a);c&&a.push(c)}},"placeQueuedStepBadges"),Ir=l((r,t,a,e,s)=>{Dr(r,t,a,e,s.color);let n=r.node(),o=n?.ownerSVGElement??n;!o||!mt(t)||!t.showStepNumber||et.set(o,[...et.get(o)??[],{elem:r,edge:t,options:s}])},"insertEdgeStepMarks"),Fr=l((r,t,a,e,s,n=!1,o)=>{t.arrowTypeStart&&qt(r,"start",t.arrowTypeStart,a,e,s,n,o),t.arrowTypeEnd&&qt(r,"end",t.arrowTypeEnd,a,e,s,n,o)},"addEdgeMarkers"),Qr={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},Gr=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],qt=l((r,t,a,e,s,n,o=!1,i)=>{if(!a||a==="none")return;let c=Qr[a],h=c&&Gr.includes(c.type);if(!c){w.warn(`Unknown arrow type: ${a}`);return}let f=c.type,p=`${s}_${n}-${f}${t==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(i&&i.trim()!==""){let u=i.replace(/[^\dA-Za-z]/g,"_"),y=`${p}_${u}`;if(!document.getElementById(y)){let k=document.getElementById(p);if(k){let _=k.cloneNode(!0);_.id=y,_.querySelectorAll("path, circle, line").forEach(H=>{H.setAttribute("stroke",i),c.fill&&H.setAttribute("fill",i)}),k.parentNode?.appendChild(_)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${p})`)},"addEdgeMarker"),Zr=l(r=>typeof r=="string"?r:A()?.flowchart?.curve,"resolveEdgeCurveType"),nt=new Map,L=new Map,Da=l(()=>{nt.clear(),L.clear()},"clear"),qa=l(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),V=l(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Ia=l(async(r,t)=>{let a=A(),e=ct(a),{labelStyles:s}=gt(t);t.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",h=await Ut(r,t.label,{style:V(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);o.node().appendChild(h),w.info("abc82",t,t.labelType);let f,m;if(e){let p=h.children[0],u=T(h);f=await pt.measure(()=>p.getBoundingClientRect()),m=f,u.attr("width",f.width),u.attr("height",f.height)}else{let p=T(h).select("text").node();await pt.measure(()=>{f=h.getBBox(),p&&typeof p.getBBox=="function"?m=p.getBBox():m=f})}o.attr("transform",j(m,e)),nt.set(t.id,n),t.width=f.width,t.height=f.height;let d;if(t.startLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.startLabelLeft,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startLeft=p,tt(d,t.startLabelLeft,k),K(t,"startLeft",k)}if(t.startLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.startLabelRight,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).startRight=p,tt(d,t.startLabelRight,k),K(t,"startRight",k)}if(t.endLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.endLabelLeft,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endLeft=p,tt(d,t.endLabelLeft,k),K(t,"endLeft",k)}if(t.endLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),u=p.insert("g").attr("class","inner"),y=await Z(u,t.endLabelRight,V(t.labelStyle)||"",!1,!1);d=y;let k=y.getBBox();if(e){let _=y.children[0],b=T(y);k=_.getBoundingClientRect(),b.attr("width",k.width),b.attr("height",k.height)}u.attr("transform",j(k,e)),L.get(t.id)||L.set(t.id,{}),L.get(t.id).endRight=p,tt(d,t.endLabelRight,k),K(t,"endRight",k)}return h},"insertEdgeLabel");function K(r,t,a){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:a.width,height:a.height}}l(K,"recordTerminalLabelSize");function tt(r,t,a){ct(A())&&r&&(r.style.width=Math.max(t.length*9,a.width)+"px",r.style.height=a.height+"px")}l(tt,"setTerminalWidth");var jr=l((r,t)=>{let a=r.x,e=r.y;if(t?.updatedPath){let s=U.calcLabelPosition(t.updatedPath);if(t.originalPath){let n=U.calcLabelPosition(t.originalPath);a=r.x+(s.x-n.x),e=r.y+(s.y-n.y)}else a=s.x,e=s.y}return{x:a,y:e}},"resolveEdgeLabelPosition"),Fa=l((r,t)=>{w.debug("Moving label abc88 ",r.id,r.label,nt.get(r.id),t);let a=A(),{subGraphTitleTotalMargin:e}=Wt(a);if(r.label){let n=nt.get(r.id),{x:o,y:i}=jr(r,t);w.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",o,",",i,") abc88"),n.attr("transform",`translate(${o}, ${i+e/2})`)}let s=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let n=L.get(r.id).startLeft,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.startLabelRight){let n=L.get(r.id).startRight,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelLeft){let n=L.get(r.id).endLeft,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelRight){let n=L.get(r.id).endRight,o=r.x,i=r.y;if(s){let c=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);o=c.x,i=c.y}n.attr("transform",`translate(${o}, ${i})`)}},"positionEdgeLabel"),q=.5,$=l((r,t)=>Math.abs(r.x-t.x)<q,"sharesColumn"),W=l((r,t)=>Math.abs(r.y-t.y)<q,"sharesRow"),Vt=l((r,t)=>$(r,t)&&W(r,t),"coincides");function Jt(r,t,a){return $(r,t)&&!W(r,t)?$(a,t):W(r,t)&&!$(r,t)?W(a,t):$(a,t)||W(a,t)}l(Jt,"keepsArrivalAxis");function Kt(r,t,a){return Vt(r,t)?{heading:t,from:a}:{heading:r,from:t}}l(Kt,"arrivalSegment");function tr({heading:r,from:t},a,e){return(r.x-t.x)*(e.x-a.x)+(r.y-t.y)*(e.y-a.y)<0}l(tr,"runsAgainstHeading");function rr({heading:r,from:t},a,e){return W(r,t)&&!$(r,t)?{x:e.x,y:a.y}:$(r,t)&&!W(r,t)?{x:a.x,y:e.y}:e}l(rr,"snapToArrivalAxis");function ar(r,t,a,e){if(($(r,t)||W(r,t))&&!Jt(r,t,e))return r;let n=Kt(r,t,a);return tr(n,t,e)?t:rr(n,t,e)}l(ar,"dockFinalPoint");function er(r){let t=Object.hasOwn(v,r)?v[r]:0;return Number.isFinite(t)?t:0}l(er,"markerPullBack");function nr({originalLast:r,lastInner:t,newLast:a,minLength:e}){let s=!Vt(r,t),n=Math.hypot(a.x-t.x,a.y-t.y);return n>=Math.max(q,e)?a:s&&n>=q?r:void 0}l(nr,"finalDockPoint");var Vr=l((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,s=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return s<.001||n<.001?t:n>=s?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Jr=l((r,t)=>{let a=r.x,e=r.y,s=Math.abs(t.x-a),n=Math.abs(t.y-e),o=r.width/2,i=r.height/2;return s>=o||n>=i},"outsideNode"),Kr=l((r,t,a)=>{w.debug(`intersection calc abc89:
2
+ outsidePoint: ${JSON.stringify(t)}
3
+ insidePoint : ${JSON.stringify(a)}
4
+ node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let e=r.x,s=r.y,n=Math.abs(e-a.x),o=r.width/2,i=a.x<t.x?o-n:o+n,c=r.height/2,h=Math.abs(t.y-a.y),f=Math.abs(t.x-a.x);if(Math.abs(s-t.y)*o>Math.abs(e-t.x)*c){let m=a.y<t.y?t.y-c-s:s-c-t.y;i=f*m/h;let d={x:a.x<t.x?a.x+i:a.x-f+i,y:a.y<t.y?a.y+h-m:a.y-h+m};return i===0&&(d.x=t.x,d.y=t.y),f===0&&(d.x=t.x),h===0&&(d.y=t.y),w.debug(`abc89 top/bottom calc, Q ${h}, q ${m}, R ${f}, r ${i}`,d),d}else{a.x<t.x?i=t.x-o-e:i=e-o-t.x;let m=h*i/f,d=a.x<t.x?a.x+f-i:a.x-f+i,p=a.y<t.y?a.y+m:a.y-m;return w.debug(`sides calc abc89, Q ${h}, q ${m}, R ${f}, r ${i}`,{_x:d,_y:p}),i===0&&(d=t.x,p=t.y),f===0&&(d=t.x),h===0&&(p=t.y),{x:d,y:p}}},"intersection"),It=l((r,t)=>{w.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],s=!1;return r.forEach(n=>{if(w.info("abc88 checking point",n,t),!Jr(t,n)&&!s){let o=Kr(t,e,n);w.debug("abc88 inside",n,e,o),w.debug("abc88 intersection",o,t);let i=!1;a.forEach(c=>{i=i||c.x===o.x&&c.y===o.y}),a.some(c=>c.x===o.x&&c.y===o.y)?w.warn("abc88 no intersect",o,a):a.push(o),s=!0}else w.warn("abc88 outside",n,e),e=n,s||a.push(n)}),w.debug("returning points",a),a},"cutPathAtIntersect");function sr(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let s=r[e-1],n=r[e],o=r[e+1];(s.x===n.x&&n.y===o.y&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5||s.y===n.y&&n.x===o.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}l(sr,"extractCornerPoints");var Ft=l(function(r,t,a){let e=t.x-r.x,s=t.y-r.y,n=Math.sqrt(e*e+s*s),o=a/n;return{x:t.x-o*e,y:t.y-o*s}},"findAdjacentPoint"),ta=l(function(r){let{cornerPointPositions:t}=sr(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let s=r[e-1],n=r[e+1],o=r[e],i=Ft(s,o,5),c=Ft(n,o,5),h=c.x-i.x,f=c.y-i.y;a.push(i);let m=Math.sqrt(2)*2,d={x:o.x,y:o.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){w.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let p=5;o.x===i.x?d={x:h<0?i.x-p+m:i.x+p-m,y:f<0?i.y-m:i.y+m}:d={x:h<0?i.x-m:i.x+m,y:f<0?i.y-p+m:i.y+p-m}}else w.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));a.push(d,c)}else a.push(r[e]);return a},"fixCorners"),ra=l((r,t,a)=>{let e=r-t-a,s=2,n=2,o=s+n,i=Math.floor(e/o),c=Number.isFinite(i)?Math.max(0,i):0,h=Array(c).fill(`${s} ${n}`).join(" ");return`0 ${t} ${h} ${a}`},"generateDashArray"),Qa=l(function(r,t,a,e,s,n,o,i=!1,c=void 0){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:h,layout:f}=A(),m=c??f,d=t.points,p=!1,u=s;var y=n;let k=[];for(let g in t.cssCompiledStyles)yt(g)||k.push(t.cssCompiledStyles[g]);if(m==="swimlane"){if(!i&&y.intersect&&u.intersect&&Array.isArray(d)&&d.length>=2)if(d.length===2){let[g,E]=d;d=$(g,E)||W(g,E)?[u.intersect(g),y.intersect(E)]:[u.intersect(E),y.intersect(g)]}else{let g=d.slice(1,-1),E=g[0],Y=g[g.length-1],X=u.intersect(E),N=d[d.length-1],Q=y.intersect(Y),G=g.at(-2)??d[0],D=ar(N,Y,G,Q),P=nr({originalLast:N,lastInner:Y,newLast:D,minLength:er(t.arrowTypeEnd)}),pr=Math.abs(X.x-E.x)<q&&Math.abs(X.y-E.y)<q?[]:[X],hr=P?[P]:[];d=[...pr,...g,...hr]}d=Vr(t,d)}else y.intersect&&u.intersect&&!i&&(d=d.slice(1,t.points.length-1),d.unshift(u.intersect(d[0])),d.push(y.intersect(d[d.length-1])));let _=btoa(JSON.stringify(d));t.toCluster&&(w.info("to cluster abc88",a.get(t.toCluster)),d=It(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(w.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(d,null,2)),d=It(d.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let b=d.filter(g=>!Number.isNaN(g.y)),H=Zr(t.curve);H!=="rounded"&&(b=ta(b));let S=at;switch(H){case"linear":S=at;break;case"basis":S=dt;break;case"cardinal":S=Mt;break;case"bumpX":S=bt;break;case"bumpY":S=wt;break;case"catmullRom":S=vt;break;case"monotoneX":S=St;break;case"monotoneY":S=Lt;break;case"natural":S=_t;break;case"step":S=Et;break;case"stepAfter":S=Tt;break;case"stepBefore":S=Ot;break;case"rounded":S=at;break;default:S=dt}let{x:I,y:R}=fr(t),st=xt().x(I).y(R).curve(S),O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let M,F=H==="rounded"?or(ir(b,t),5):st(b),C=Array.isArray(t.style)?t.style:[t.style],ot=C.find(g=>g?.startsWith("stroke:")),z="";t.animate&&(z="edge-animation-fast"),t.animation&&(z="edge-animation-"+t.animation);let it=!1;if(t.look==="handDrawn"){let g=$t.svg(r);Object.assign([],b);let E=g.path(F,{roughness:.3,seed:h});O+=" transition",M=T(E).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",C?C.reduce((X,N)=>X+";"+N,""):"");let Y=M.attr("d");M.attr("d",Y),r.node().appendChild(M.node())}else{let g=k.join(";"),E=C?C.reduce((D,P)=>D+P+";",""):"",Y=(g?g+";"+E+";":E)+";"+(C?C.reduce((D,P)=>D+";"+P,""):"");M=r.append("path").attr("d",F).attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",Y),ot=Y.match(/stroke:([^;]+)/)?.[1],it=t.animate===!0||!!t.animation||g.includes("animation");let X=M.node(),N=typeof X.getTotalLength=="function"?X.getTotalLength():0,Q=Ht[t.arrowTypeStart]||0,G=Ht[t.arrowTypeEnd]||0;if(t.look==="neo"&&!it){let P=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?ra(N,Q,G):`0 ${Q} ${N-Q-G} ${G}`}; stroke-dashoffset: 0;`;M.attr("style",P+M.attr("style"))}}if(M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",_),M.attr("data-look",At(t.look)),t.step!==void 0){let{themeVariables:g}=A(),E=ot??g?.lineColor;Ir(r,t,F,o,{points:b,pathNode:M.node(),color:E,textColors:[g?.background,g?.primaryTextColor]})}t.showPoints&&b.forEach(g=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",g.x).attr("cy",g.y)});let rt="";(A().flowchart.arrowMarkerAbsolute||A().state.arrowMarkerAbsolute)&&(rt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,rt=rt.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),w.info("arrowTypeStart",t.arrowTypeStart),w.info("arrowTypeEnd",t.arrowTypeEnd);let lr=!it&&t?.look==="neo";Fr(M,t,rt,o,e,lr,ot);let cr=Math.floor(d.length/2),dr=d[cr];U.isLabelCoordinateInPath(dr,M.attr("d"))||(p=!0);let lt={};return p&&(lt.updatedPath=d),lt.originalPath=t.points,lt},"insertEdge");function or(r,t){if(r.length<2)return"";let a="",e=r.length,s=1e-5;for(let n=0;n<e;n++){let o=r[n],i=r[n-1],c=r[n+1];if(n===0)a+=`M${o.x},${o.y}`;else if(n===e-1)a+=`L${o.x},${o.y}`;else{let h=o.x-i.x,f=o.y-i.y,m=c.x-o.x,d=c.y-o.y,p=Math.hypot(h,f),u=Math.hypot(m,d);if(p<s||u<s){a+=`L${o.x},${o.y}`;continue}let y=h/p,k=f/p,_=m/u,b=d/u,H=y*_+k*b,S=Math.max(-1,Math.min(1,H)),I=Math.acos(S);if(I<s||Math.abs(Math.PI-I)<s){a+=`L${o.x},${o.y}`;continue}let R=Math.min(t/Math.sin(I/2),p/2,u/2),st=o.x-y*R,O=o.y-k*R,M=o.x+_*R,F=o.y+b*R;a+=`L${st},${O}`,a+=`Q${o.x},${o.y} ${M},${F}`}}return a}l(or,"generateRoundedPath");function ft(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}l(ft,"calculateDeltaAndAngle");function ir(r,t){let a=r.map(s=>({...s}));if(r.length>=2&&v[t.arrowTypeStart]){let s=v[t.arrowTypeStart],n=r[0],o=r[1],{angle:i}=ft(n,o),c=s*Math.cos(i),h=s*Math.sin(i);a[0].x=n.x+c,a[0].y=n.y+h}let e=r.length;if(e>=2&&v[t.arrowTypeEnd]){let s=v[t.arrowTypeEnd],n=r[e-1],o=r[e-2],{angle:i}=ft(o,n),c=s*Math.cos(i),h=s*Math.sin(i);a[e-1].x=n.x-c,a[e-1].y=n.y-h}return a}l(ir,"applyMarkerOffsetsToPoints");var aa=l((r,t,a,e)=>{t.forEach(s=>{Oa[s](r,a,e)})},"insertMarkers"),ea=l((r,t,a)=>{w.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),na=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),sa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),oa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),ia=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),la=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),ca=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),da=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),pa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),ha=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),fa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),ma=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),ka=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),ua=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),ya=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),ga=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");c.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),c.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),xa=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),ba=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");c.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),c.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),wa=l((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
5
+ L20,10
6
+ M20,10
7
+ L0,20`)},"requirement_arrow"),Ma=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
8
+ L20,10
9
+ M20,10
10
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),va=l((r,t,a)=>{let e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Sa=l((r,t,a)=>{let e=B(),{themeVariables:s}=e,{strokeWidth:n}=s,o=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),La=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),_a=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),Ea=l((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),Oa={extension:ea,composition:na,aggregation:sa,dependency:oa,lollipop:ia,point:la,circle:ca,cross:da,barb:pa,barbNeo:ha,hierarchy:La,only_one:fa,zero_or_one:ma,one_or_more:ka,zero_or_more:ua,only_one_neo:ya,zero_or_one_neo:ga,one_or_more_neo:xa,zero_or_more_neo:ba,requirement_arrow:wa,requirement_contains:va,requirement_arrow_neo:Ma,requirement_contains_neo:Sa,openArrow:_a,hollowCircle:Ea},Ga=aa;export{v as a,Ht as b,mr as c,mt as d,Na as e,nt as f,L as g,Da as h,qa as i,Ia as j,jr as k,Fa as l,Qa as m,Ga as n};
@@ -0,0 +1,14 @@
1
+ var qa=typeof global=="object"&&global&&global.Object===Object&&global,qr=qa;var $a=typeof self=="object"&&self&&self.Object===Object&&self,Va=qr||$a||Function("return this")(),g=Va;var Ya=g.Symbol,_=Ya;var Gt=Object.prototype,Za=Gt.hasOwnProperty,Ja=Gt.toString,Rr=_?_.toStringTag:void 0;function Xa(r){var t=Za.call(r,Rr),e=r[Rr];try{r[Rr]=void 0;var o=!0}catch{}var a=Ja.call(r);return o&&(t?r[Rr]=e:delete r[Rr]),a}var Ut=Xa;var Qa=Object.prototype,ka=Qa.toString;function rf(r){return ka.call(r)}var Kt=rf;var tf="[object Null]",ef="[object Undefined]",Wt=_?_.toStringTag:void 0;function of(r){return r==null?r===void 0?ef:tf:Wt&&Wt in Object(r)?Ut(r):Kt(r)}var P=of;function af(r){return r!=null&&typeof r=="object"}var y=af;var ff="[object Symbol]";function nf(r){return typeof r=="symbol"||y(r)&&P(r)==ff}var L=nf;function sf(r,t){for(var e=-1,o=r==null?0:r.length,a=Array(o);++e<o;)a[e]=t(r[e],e,r);return a}var B=sf;var pf=Array.isArray,m=pf;var uf=1/0,Ht=_?_.prototype:void 0,zt=Ht?Ht.toString:void 0;function qt(r){if(typeof r=="string")return r;if(m(r))return B(r,qt)+"";if(L(r))return zt?zt.call(r):"";var t=r+"";return t=="0"&&1/r==-uf?"-0":t}var $t=qt;var mf=/\s/;function lf(r){for(var t=r.length;t--&&mf.test(r.charAt(t)););return t}var Vt=lf;var df=/^\s+/;function cf(r){return r&&r.slice(0,Vt(r)+1).replace(df,"")}var Yt=cf;function xf(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var h=xf;var Zt=NaN,hf=/^[-+]0x[0-9a-f]+$/i,gf=/^0b[01]+$/i,bf=/^0o[0-7]+$/i,yf=parseInt;function _f(r){if(typeof r=="number")return r;if(L(r))return Zt;if(h(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=h(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Yt(r);var e=gf.test(r);return e||bf.test(r)?yf(r.slice(2),e?2:8):hf.test(r)?Zt:+r}var Jt=_f;var Xt=1/0,vf=17976931348623157e292;function Of(r){if(!r)return r===0?r:0;if(r=Jt(r),r===Xt||r===-Xt){var t=r<0?-1:1;return t*vf}return r===r?r:0}var cr=Of;function Af(r){var t=cr(r),e=t%1;return t===t?e?t-e:t:0}var Qt=Af;function Tf(r){return r}var I=Tf;var wf="[object AsyncFunction]",Sf="[object Function]",Pf="[object GeneratorFunction]",Cf="[object Proxy]";function If(r){if(!h(r))return!1;var t=P(r);return t==Sf||t==Pf||t==wf||t==Cf}var G=If;var Ef=g["__core-js_shared__"],$r=Ef;var kt=(function(){var r=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function jf(r){return!!kt&&kt in r}var re=jf;var Lf=Function.prototype,Mf=Lf.toString;function Ff(r){if(r!=null){try{return Mf.call(r)}catch{}try{return r+""}catch{}}return""}var H=Ff;var Rf=/[\\^$.*+?()[\]{}|]/g,Nf=/^\[object .+?Constructor\]$/,Df=Function.prototype,Bf=Object.prototype,Gf=Df.toString,Uf=Bf.hasOwnProperty,Kf=RegExp("^"+Gf.call(Uf).replace(Rf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(r){if(!h(r)||re(r))return!1;var t=G(r)?Kf:Nf;return t.test(H(r))}var te=Wf;function Hf(r,t){return r?.[t]}var ee=Hf;function zf(r,t){var e=ee(r,t);return te(e)?e:void 0}var E=zf;var qf=E(g,"WeakMap"),Vr=qf;var oe=Object.create,$f=(function(){function r(){}return function(t){if(!h(t))return{};if(oe)return oe(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})(),ae=$f;function Vf(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var fe=Vf;function Yf(){}var ne=Yf;function Zf(r,t){var e=-1,o=r.length;for(t||(t=Array(o));++e<o;)t[e]=r[e];return t}var Yr=Zf;var Jf=800,Xf=16,Qf=Date.now;function kf(r){var t=0,e=0;return function(){var o=Qf(),a=Xf-(o-e);if(e=o,a>0){if(++t>=Jf)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var ie=kf;function rn(r){return function(){return r}}var V=rn;var tn=(function(){try{var r=E(Object,"defineProperty");return r({},"",{}),r}catch{}})(),xr=tn;var en=xr?function(r,t){return xr(r,"toString",{configurable:!0,enumerable:!1,value:V(t),writable:!0})}:I,se=en;var on=ie(se),Zr=on;function an(r,t){for(var e=-1,o=r==null?0:r.length;++e<o&&t(r[e],e,r)!==!1;);return r}var Jr=an;function fn(r,t,e,o){for(var a=r.length,f=e+(o?1:-1);o?f--:++f<a;)if(t(r[f],f,r))return f;return-1}var Xr=fn;function nn(r){return r!==r}var pe=nn;function sn(r,t,e){for(var o=e-1,a=r.length;++o<a;)if(r[o]===t)return o;return-1}var ue=sn;function pn(r,t,e){return t===t?ue(r,t,e):Xr(r,pe,e)}var me=pn;function un(r,t){var e=r==null?0:r.length;return!!e&&me(r,t,0)>-1}var le=un;var mn=9007199254740991,ln=/^(?:0|[1-9]\d*)$/;function dn(r,t){var e=typeof r;return t=t??mn,!!t&&(e=="number"||e!="symbol"&&ln.test(r))&&r>-1&&r%1==0&&r<t}var Y=dn;function cn(r,t,e){t=="__proto__"&&xr?xr(r,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):r[t]=e}var Z=cn;function xn(r,t){return r===t||r!==r&&t!==t}var F=xn;var hn=Object.prototype,gn=hn.hasOwnProperty;function bn(r,t,e){var o=r[t];(!(gn.call(r,t)&&F(o,e))||e===void 0&&!(t in r))&&Z(r,t,e)}var J=bn;function yn(r,t,e,o){var a=!e;e||(e={});for(var f=-1,n=t.length;++f<n;){var i=t[f],s=o?o(e[i],r[i],i,e,r):void 0;s===void 0&&(s=r[i]),a?Z(e,i,s):J(e,i,s)}return e}var U=yn;var de=Math.max;function _n(r,t,e){return t=de(t===void 0?r.length-1:t,0),function(){for(var o=arguments,a=-1,f=de(o.length-t,0),n=Array(f);++a<f;)n[a]=o[t+a];a=-1;for(var i=Array(t+1);++a<t;)i[a]=o[a];return i[t]=e(n),fe(r,this,i)}}var Qr=_n;function vn(r,t){return Zr(Qr(r,t,I),r+"")}var X=vn;var On=9007199254740991;function An(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=On}var hr=An;function Tn(r){return r!=null&&hr(r.length)&&!G(r)}var v=Tn;function wn(r,t,e){if(!h(e))return!1;var o=typeof t;return(o=="number"?v(e)&&Y(t,e.length):o=="string"&&t in e)?F(e[t],r):!1}var z=wn;function Sn(r){return X(function(t,e){var o=-1,a=e.length,f=a>1?e[a-1]:void 0,n=a>2?e[2]:void 0;for(f=r.length>3&&typeof f=="function"?(a--,f):void 0,n&&z(e[0],e[1],n)&&(f=a<3?void 0:f,a=1),t=Object(t);++o<a;){var i=e[o];i&&r(t,i,o,f)}return t})}var ce=Sn;var Pn=Object.prototype;function Cn(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Pn;return r===e}var Q=Cn;function In(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var xe=In;var En="[object Arguments]";function jn(r){return y(r)&&P(r)==En}var Pt=jn;var he=Object.prototype,Ln=he.hasOwnProperty,Mn=he.propertyIsEnumerable,Fn=Pt((function(){return arguments})())?Pt:function(r){return y(r)&&Ln.call(r,"callee")&&!Mn.call(r,"callee")},R=Fn;function Rn(){return!1}var ge=Rn;var _e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,be=_e&&typeof module=="object"&&module&&!module.nodeType&&module,Nn=be&&be.exports===_e,ye=Nn?g.Buffer:void 0,Dn=ye?ye.isBuffer:void 0,Bn=Dn||ge,N=Bn;var Gn="[object Arguments]",Un="[object Array]",Kn="[object Boolean]",Wn="[object Date]",Hn="[object Error]",zn="[object Function]",qn="[object Map]",$n="[object Number]",Vn="[object Object]",Yn="[object RegExp]",Zn="[object Set]",Jn="[object String]",Xn="[object WeakMap]",Qn="[object ArrayBuffer]",kn="[object DataView]",ri="[object Float32Array]",ti="[object Float64Array]",ei="[object Int8Array]",oi="[object Int16Array]",ai="[object Int32Array]",fi="[object Uint8Array]",ni="[object Uint8ClampedArray]",ii="[object Uint16Array]",si="[object Uint32Array]",x={};x[ri]=x[ti]=x[ei]=x[oi]=x[ai]=x[fi]=x[ni]=x[ii]=x[si]=!0;x[Gn]=x[Un]=x[Qn]=x[Kn]=x[kn]=x[Wn]=x[Hn]=x[zn]=x[qn]=x[$n]=x[Vn]=x[Yn]=x[Zn]=x[Jn]=x[Xn]=!1;function pi(r){return y(r)&&hr(r.length)&&!!x[P(r)]}var ve=pi;function ui(r){return function(t){return r(t)}}var k=ui;var Oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nr=Oe&&typeof module=="object"&&module&&!module.nodeType&&module,mi=Nr&&Nr.exports===Oe,Ct=mi&&qr.process,li=(function(){try{var r=Nr&&Nr.require&&Nr.require("util").types;return r||Ct&&Ct.binding&&Ct.binding("util")}catch{}})(),q=li;var Ae=q&&q.isTypedArray,di=Ae?k(Ae):ve,rr=di;var ci=Object.prototype,xi=ci.hasOwnProperty;function hi(r,t){var e=m(r),o=!e&&R(r),a=!e&&!o&&N(r),f=!e&&!o&&!a&&rr(r),n=e||o||a||f,i=n?xe(r.length,String):[],s=i.length;for(var p in r)(t||xi.call(r,p))&&!(n&&(p=="length"||a&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Y(p,s)))&&i.push(p);return i}var kr=hi;function gi(r,t){return function(e){return r(t(e))}}var rt=gi;var bi=rt(Object.keys,Object),Te=bi;var yi=Object.prototype,_i=yi.hasOwnProperty;function vi(r){if(!Q(r))return Te(r);var t=[];for(var e in Object(r))_i.call(r,e)&&e!="constructor"&&t.push(e);return t}var gr=vi;function Oi(r){return v(r)?kr(r):gr(r)}var b=Oi;function Ai(r){var t=[];if(r!=null)for(var e in Object(r))t.push(e);return t}var we=Ai;var Ti=Object.prototype,wi=Ti.hasOwnProperty;function Si(r){if(!h(r))return we(r);var t=Q(r),e=[];for(var o in r)o=="constructor"&&(t||!wi.call(r,o))||e.push(o);return e}var Se=Si;function Pi(r){return v(r)?kr(r,!0):Se(r)}var j=Pi;var Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ii=/^\w*$/;function Ei(r,t){if(m(r))return!1;var e=typeof r;return e=="number"||e=="symbol"||e=="boolean"||r==null||L(r)?!0:Ii.test(r)||!Ci.test(r)||t!=null&&r in Object(t)}var br=Ei;var ji=E(Object,"create"),$=ji;function Li(){this.__data__=$?$(null):{},this.size=0}var Pe=Li;function Mi(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Ce=Mi;var Fi="__lodash_hash_undefined__",Ri=Object.prototype,Ni=Ri.hasOwnProperty;function Di(r){var t=this.__data__;if($){var e=t[r];return e===Fi?void 0:e}return Ni.call(t,r)?t[r]:void 0}var Ie=Di;var Bi=Object.prototype,Gi=Bi.hasOwnProperty;function Ui(r){var t=this.__data__;return $?t[r]!==void 0:Gi.call(t,r)}var Ee=Ui;var Ki="__lodash_hash_undefined__";function Wi(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=$&&t===void 0?Ki:t,this}var je=Wi;function yr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}yr.prototype.clear=Pe;yr.prototype.delete=Ce;yr.prototype.get=Ie;yr.prototype.has=Ee;yr.prototype.set=je;var It=yr;function Hi(){this.__data__=[],this.size=0}var Le=Hi;function zi(r,t){for(var e=r.length;e--;)if(F(r[e][0],t))return e;return-1}var tr=zi;var qi=Array.prototype,$i=qi.splice;function Vi(r){var t=this.__data__,e=tr(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():$i.call(t,e,1),--this.size,!0}var Me=Vi;function Yi(r){var t=this.__data__,e=tr(t,r);return e<0?void 0:t[e][1]}var Fe=Yi;function Zi(r){return tr(this.__data__,r)>-1}var Re=Zi;function Ji(r,t){var e=this.__data__,o=tr(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var Ne=Ji;function _r(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}_r.prototype.clear=Le;_r.prototype.delete=Me;_r.prototype.get=Fe;_r.prototype.has=Re;_r.prototype.set=Ne;var er=_r;var Xi=E(g,"Map"),or=Xi;function Qi(){this.size=0,this.__data__={hash:new It,map:new(or||er),string:new It}}var De=Qi;function ki(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Be=ki;function rs(r,t){var e=r.__data__;return Be(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ar=rs;function ts(r){var t=ar(this,r).delete(r);return this.size-=t?1:0,t}var Ge=ts;function es(r){return ar(this,r).get(r)}var Ue=es;function os(r){return ar(this,r).has(r)}var Ke=os;function as(r,t){var e=ar(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var We=as;function vr(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}vr.prototype.clear=De;vr.prototype.delete=Ge;vr.prototype.get=Ue;vr.prototype.has=Ke;vr.prototype.set=We;var mr=vr;var fs="Expected a function";function Et(r,t){if(typeof r!="function"||t!=null&&typeof t!="function")throw new TypeError(fs);var e=function(){var o=arguments,a=t?t.apply(this,o):o[0],f=e.cache;if(f.has(a))return f.get(a);var n=r.apply(this,o);return e.cache=f.set(a,n)||f,n};return e.cache=new(Et.Cache||mr),e}Et.Cache=mr;var He=Et;var ns=500;function is(r){var t=He(r,function(o){return e.size===ns&&e.clear(),o}),e=t.cache;return t}var ze=is;var ss=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ps=/\\(\\)?/g,us=ze(function(r){var t=[];return r.charCodeAt(0)===46&&t.push(""),r.replace(ss,function(e,o,a,f){t.push(a?f.replace(ps,"$1"):o||e)}),t}),qe=us;function ms(r){return r==null?"":$t(r)}var tt=ms;function ls(r,t){return m(r)?r:br(r,t)?[r]:qe(tt(r))}var fr=ls;var ds=1/0;function cs(r){if(typeof r=="string"||L(r))return r;var t=r+"";return t=="0"&&1/r==-ds?"-0":t}var K=cs;function xs(r,t){t=fr(t,r);for(var e=0,o=t.length;r!=null&&e<o;)r=r[K(t[e++])];return e&&e==o?r:void 0}var nr=xs;function hs(r,t,e){var o=r==null?void 0:nr(r,t);return o===void 0?e:o}var $e=hs;function gs(r,t){for(var e=-1,o=t.length,a=r.length;++e<o;)r[a+e]=t[e];return r}var Or=gs;var Ve=_?_.isConcatSpreadable:void 0;function bs(r){return m(r)||R(r)||!!(Ve&&r&&r[Ve])}var Ye=bs;function Ze(r,t,e,o,a){var f=-1,n=r.length;for(e||(e=Ye),a||(a=[]);++f<n;){var i=r[f];t>0&&e(i)?t>1?Ze(i,t-1,e,o,a):Or(a,i):o||(a[a.length]=i)}return a}var Ar=Ze;function ys(r){var t=r==null?0:r.length;return t?Ar(r,1):[]}var jt=ys;function _s(r){return Zr(Qr(r,void 0,jt),r+"")}var Je=_s;var vs=rt(Object.getPrototypeOf,Object),Tr=vs;var Os="[object Object]",As=Function.prototype,Ts=Object.prototype,Xe=As.toString,ws=Ts.hasOwnProperty,Ss=Xe.call(Object);function Ps(r){if(!y(r)||P(r)!=Os)return!1;var t=Tr(r);if(t===null)return!0;var e=ws.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&Xe.call(e)==Ss}var Qe=Ps;var Cs="\\ud800-\\udfff",Is="\\u0300-\\u036f",Es="\\ufe20-\\ufe2f",js="\\u20d0-\\u20ff",Ls=Is+Es+js,Ms="\\ufe0e\\ufe0f",Fs="\\u200d",Rs=RegExp("["+Fs+Cs+Ls+Ms+"]");function Ns(r){return Rs.test(r)}var ke=Ns;function Ds(r,t,e,o){var a=-1,f=r==null?0:r.length;for(o&&f&&(e=r[++a]);++a<f;)e=t(e,r[a],a,r);return e}var ro=Ds;function Bs(){this.__data__=new er,this.size=0}var to=Bs;function Gs(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var eo=Gs;function Us(r){return this.__data__.get(r)}var oo=Us;function Ks(r){return this.__data__.has(r)}var ao=Ks;var Ws=200;function Hs(r,t){var e=this.__data__;if(e instanceof er){var o=e.__data__;if(!or||o.length<Ws-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new mr(o)}return e.set(r,t),this.size=e.size,this}var fo=Hs;function wr(r){var t=this.__data__=new er(r);this.size=t.size}wr.prototype.clear=to;wr.prototype.delete=eo;wr.prototype.get=oo;wr.prototype.has=ao;wr.prototype.set=fo;var W=wr;function zs(r,t){return r&&U(t,b(t),r)}var no=zs;function qs(r,t){return r&&U(t,j(t),r)}var io=qs;var mo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,so=mo&&typeof module=="object"&&module&&!module.nodeType&&module,$s=so&&so.exports===mo,po=$s?g.Buffer:void 0,uo=po?po.allocUnsafe:void 0;function Vs(r,t){if(t)return r.slice();var e=r.length,o=uo?uo(e):new r.constructor(e);return r.copy(o),o}var et=Vs;function Ys(r,t){for(var e=-1,o=r==null?0:r.length,a=0,f=[];++e<o;){var n=r[e];t(n,e,r)&&(f[a++]=n)}return f}var ot=Ys;function Zs(){return[]}var at=Zs;var Js=Object.prototype,Xs=Js.propertyIsEnumerable,lo=Object.getOwnPropertySymbols,Qs=lo?function(r){return r==null?[]:(r=Object(r),ot(lo(r),function(t){return Xs.call(r,t)}))}:at,Sr=Qs;function ks(r,t){return U(r,Sr(r),t)}var co=ks;var rp=Object.getOwnPropertySymbols,tp=rp?function(r){for(var t=[];r;)Or(t,Sr(r)),r=Tr(r);return t}:at,ft=tp;function ep(r,t){return U(r,ft(r),t)}var xo=ep;function op(r,t,e){var o=t(r);return m(r)?o:Or(o,e(r))}var nt=op;function ap(r){return nt(r,b,Sr)}var Dr=ap;function fp(r){return nt(r,j,ft)}var ho=fp;var np=E(g,"DataView"),it=np;var ip=E(g,"Promise"),st=ip;var sp=E(g,"Set"),ir=sp;var go="[object Map]",pp="[object Object]",bo="[object Promise]",yo="[object Set]",_o="[object WeakMap]",vo="[object DataView]",up=H(it),mp=H(or),lp=H(st),dp=H(ir),cp=H(Vr),lr=P;(it&&lr(new it(new ArrayBuffer(1)))!=vo||or&&lr(new or)!=go||st&&lr(st.resolve())!=bo||ir&&lr(new ir)!=yo||Vr&&lr(new Vr)!=_o)&&(lr=function(r){var t=P(r),e=t==pp?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case up:return vo;case mp:return go;case lp:return bo;case dp:return yo;case cp:return _o}return t});var M=lr;var xp=Object.prototype,hp=xp.hasOwnProperty;function gp(r){var t=r.length,e=new r.constructor(t);return t&&typeof r[0]=="string"&&hp.call(r,"index")&&(e.index=r.index,e.input=r.input),e}var Oo=gp;var bp=g.Uint8Array,Pr=bp;function yp(r){var t=new r.constructor(r.byteLength);return new Pr(t).set(new Pr(r)),t}var Cr=yp;function _p(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.byteLength)}var Ao=_p;var vp=/\w*$/;function Op(r){var t=new r.constructor(r.source,vp.exec(r));return t.lastIndex=r.lastIndex,t}var To=Op;var wo=_?_.prototype:void 0,So=wo?wo.valueOf:void 0;function Ap(r){return So?Object(So.call(r)):{}}var Po=Ap;function Tp(r,t){var e=t?Cr(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var pt=Tp;var wp="[object Boolean]",Sp="[object Date]",Pp="[object Map]",Cp="[object Number]",Ip="[object RegExp]",Ep="[object Set]",jp="[object String]",Lp="[object Symbol]",Mp="[object ArrayBuffer]",Fp="[object DataView]",Rp="[object Float32Array]",Np="[object Float64Array]",Dp="[object Int8Array]",Bp="[object Int16Array]",Gp="[object Int32Array]",Up="[object Uint8Array]",Kp="[object Uint8ClampedArray]",Wp="[object Uint16Array]",Hp="[object Uint32Array]";function zp(r,t,e){var o=r.constructor;switch(t){case Mp:return Cr(r);case wp:case Sp:return new o(+r);case Fp:return Ao(r,e);case Rp:case Np:case Dp:case Bp:case Gp:case Up:case Kp:case Wp:case Hp:return pt(r,e);case Pp:return new o;case Cp:case jp:return new o(r);case Ip:return To(r);case Ep:return new o;case Lp:return Po(r)}}var Co=zp;function qp(r){return typeof r.constructor=="function"&&!Q(r)?ae(Tr(r)):{}}var ut=qp;var $p="[object Map]";function Vp(r){return y(r)&&M(r)==$p}var Io=Vp;var Eo=q&&q.isMap,Yp=Eo?k(Eo):Io,jo=Yp;var Zp="[object Set]";function Jp(r){return y(r)&&M(r)==Zp}var Lo=Jp;var Mo=q&&q.isSet,Xp=Mo?k(Mo):Lo,Fo=Xp;var Qp=1,kp=2,ru=4,Ro="[object Arguments]",tu="[object Array]",eu="[object Boolean]",ou="[object Date]",au="[object Error]",No="[object Function]",fu="[object GeneratorFunction]",nu="[object Map]",iu="[object Number]",Do="[object Object]",su="[object RegExp]",pu="[object Set]",uu="[object String]",mu="[object Symbol]",lu="[object WeakMap]",du="[object ArrayBuffer]",cu="[object DataView]",xu="[object Float32Array]",hu="[object Float64Array]",gu="[object Int8Array]",bu="[object Int16Array]",yu="[object Int32Array]",_u="[object Uint8Array]",vu="[object Uint8ClampedArray]",Ou="[object Uint16Array]",Au="[object Uint32Array]",c={};c[Ro]=c[tu]=c[du]=c[cu]=c[eu]=c[ou]=c[xu]=c[hu]=c[gu]=c[bu]=c[yu]=c[nu]=c[iu]=c[Do]=c[su]=c[pu]=c[uu]=c[mu]=c[_u]=c[vu]=c[Ou]=c[Au]=!0;c[au]=c[No]=c[lu]=!1;function mt(r,t,e,o,a,f){var n,i=t&Qp,s=t&kp,p=t&ru;if(e&&(n=a?e(r,o,a,f):e(r)),n!==void 0)return n;if(!h(r))return r;var u=m(r);if(u){if(n=Oo(r),!i)return Yr(r,n)}else{var l=M(r),d=l==No||l==fu;if(N(r))return et(r,i);if(l==Do||l==Ro||d&&!a){if(n=s||d?{}:ut(r),!i)return s?xo(r,io(n,r)):co(r,no(n,r))}else{if(!c[l])return a?r:{};n=Co(r,l,i)}}f||(f=new W);var T=f.get(r);if(T)return T;f.set(r,n),Fo(r)?r.forEach(function(A){n.add(mt(A,t,e,A,r,f))}):jo(r)&&r.forEach(function(A,S){n.set(S,mt(A,t,e,S,r,f))});var O=p?s?ho:Dr:s?j:b,C=u?void 0:O(r);return Jr(C||r,function(A,S){C&&(S=A,A=r[S]),J(n,S,mt(A,t,e,S,r,f))}),n}var Bo=mt;var Tu=1,wu=4;function Su(r){return Bo(r,Tu|wu)}var Pu=Su;var Cu="__lodash_hash_undefined__";function Iu(r){return this.__data__.set(r,Cu),this}var Go=Iu;function Eu(r){return this.__data__.has(r)}var Uo=Eu;function lt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new mr;++t<e;)this.add(r[t])}lt.prototype.add=lt.prototype.push=Go;lt.prototype.has=Uo;var dt=lt;function ju(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}var Ko=ju;function Lu(r,t){return r.has(t)}var ct=Lu;var Mu=1,Fu=2;function Ru(r,t,e,o,a,f){var n=e&Mu,i=r.length,s=t.length;if(i!=s&&!(n&&s>i))return!1;var p=f.get(r),u=f.get(t);if(p&&u)return p==t&&u==r;var l=-1,d=!0,T=e&Fu?new dt:void 0;for(f.set(r,t),f.set(t,r);++l<i;){var O=r[l],C=t[l];if(o)var A=n?o(C,O,l,t,r,f):o(O,C,l,r,t,f);if(A!==void 0){if(A)continue;d=!1;break}if(T){if(!Ko(t,function(S,ur){if(!ct(T,ur)&&(O===S||a(O,S,e,o,f)))return T.push(ur)})){d=!1;break}}else if(!(O===C||a(O,C,e,o,f))){d=!1;break}}return f.delete(r),f.delete(t),d}var xt=Ru;function Nu(r){var t=-1,e=Array(r.size);return r.forEach(function(o,a){e[++t]=[a,o]}),e}var Wo=Nu;function Du(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var Ir=Du;var Bu=1,Gu=2,Uu="[object Boolean]",Ku="[object Date]",Wu="[object Error]",Hu="[object Map]",zu="[object Number]",qu="[object RegExp]",$u="[object Set]",Vu="[object String]",Yu="[object Symbol]",Zu="[object ArrayBuffer]",Ju="[object DataView]",Ho=_?_.prototype:void 0,Lt=Ho?Ho.valueOf:void 0;function Xu(r,t,e,o,a,f,n){switch(e){case Ju:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Zu:return!(r.byteLength!=t.byteLength||!f(new Pr(r),new Pr(t)));case Uu:case Ku:case zu:return F(+r,+t);case Wu:return r.name==t.name&&r.message==t.message;case qu:case Vu:return r==t+"";case Hu:var i=Wo;case $u:var s=o&Bu;if(i||(i=Ir),r.size!=t.size&&!s)return!1;var p=n.get(r);if(p)return p==t;o|=Gu,n.set(r,t);var u=xt(i(r),i(t),o,a,f,n);return n.delete(r),u;case Yu:if(Lt)return Lt.call(r)==Lt.call(t)}return!1}var zo=Xu;var Qu=1,ku=Object.prototype,rm=ku.hasOwnProperty;function tm(r,t,e,o,a,f){var n=e&Qu,i=Dr(r),s=i.length,p=Dr(t),u=p.length;if(s!=u&&!n)return!1;for(var l=s;l--;){var d=i[l];if(!(n?d in t:rm.call(t,d)))return!1}var T=f.get(r),O=f.get(t);if(T&&O)return T==t&&O==r;var C=!0;f.set(r,t),f.set(t,r);for(var A=n;++l<s;){d=i[l];var S=r[d],ur=t[d];if(o)var Bt=n?o(ur,S,d,t,r,f):o(S,ur,d,r,t,f);if(!(Bt===void 0?S===ur||a(S,ur,e,o,f):Bt)){C=!1;break}A||(A=d=="constructor")}if(C&&!A){var Hr=r.constructor,zr=t.constructor;Hr!=zr&&"constructor"in r&&"constructor"in t&&!(typeof Hr=="function"&&Hr instanceof Hr&&typeof zr=="function"&&zr instanceof zr)&&(C=!1)}return f.delete(r),f.delete(t),C}var qo=tm;var em=1,$o="[object Arguments]",Vo="[object Array]",ht="[object Object]",om=Object.prototype,Yo=om.hasOwnProperty;function am(r,t,e,o,a,f){var n=m(r),i=m(t),s=n?Vo:M(r),p=i?Vo:M(t);s=s==$o?ht:s,p=p==$o?ht:p;var u=s==ht,l=p==ht,d=s==p;if(d&&N(r)){if(!N(t))return!1;n=!0,u=!1}if(d&&!u)return f||(f=new W),n||rr(r)?xt(r,t,e,o,a,f):zo(r,t,s,e,o,a,f);if(!(e&em)){var T=u&&Yo.call(r,"__wrapped__"),O=l&&Yo.call(t,"__wrapped__");if(T||O){var C=T?r.value():r,A=O?t.value():t;return f||(f=new W),a(C,A,e,o,f)}}return d?(f||(f=new W),qo(r,t,e,o,a,f)):!1}var Zo=am;function Jo(r,t,e,o,a){return r===t?!0:r==null||t==null||!y(r)&&!y(t)?r!==r&&t!==t:Zo(r,t,e,o,Jo,a)}var gt=Jo;var fm=1,nm=2;function im(r,t,e,o){var a=e.length,f=a,n=!o;if(r==null)return!f;for(r=Object(r);a--;){var i=e[a];if(n&&i[2]?i[1]!==r[i[0]]:!(i[0]in r))return!1}for(;++a<f;){i=e[a];var s=i[0],p=r[s],u=i[1];if(n&&i[2]){if(p===void 0&&!(s in r))return!1}else{var l=new W;if(o)var d=o(p,u,s,r,t,l);if(!(d===void 0?gt(u,p,fm|nm,o,l):d))return!1}}return!0}var Xo=im;function sm(r){return r===r&&!h(r)}var bt=sm;function pm(r){for(var t=b(r),e=t.length;e--;){var o=t[e],a=r[o];t[e]=[o,a,bt(a)]}return t}var Qo=pm;function um(r,t){return function(e){return e==null?!1:e[r]===t&&(t!==void 0||r in Object(e))}}var yt=um;function mm(r){var t=Qo(r);return t.length==1&&t[0][2]?yt(t[0][0],t[0][1]):function(e){return e===r||Xo(e,r,t)}}var ko=mm;function lm(r,t){return r!=null&&t in Object(r)}var ra=lm;function dm(r,t,e){t=fr(t,r);for(var o=-1,a=t.length,f=!1;++o<a;){var n=K(t[o]);if(!(f=r!=null&&e(r,n)))break;r=r[n]}return f||++o!=a?f:(a=r==null?0:r.length,!!a&&hr(a)&&Y(n,a)&&(m(r)||R(r)))}var _t=dm;function cm(r,t){return r!=null&&_t(r,t,ra)}var vt=cm;var xm=1,hm=2;function gm(r,t){return br(r)&&bt(t)?yt(K(r),t):function(e){var o=$e(e,r);return o===void 0&&o===t?vt(e,r):gt(t,o,xm|hm)}}var ta=gm;function bm(r){return function(t){return t?.[r]}}var Ot=bm;function ym(r){return function(t){return nr(t,r)}}var ea=ym;function _m(r){return br(r)?Ot(K(r)):ea(r)}var oa=_m;function vm(r){return typeof r=="function"?r:r==null?I:typeof r=="object"?m(r)?ta(r[0],r[1]):ko(r):oa(r)}var w=vm;function Om(r){return function(t,e,o){for(var a=-1,f=Object(t),n=o(t),i=n.length;i--;){var s=n[r?i:++a];if(e(f[s],s,f)===!1)break}return t}}var aa=Om;var Am=aa(),Er=Am;function Tm(r,t){return r&&Er(r,t,b)}var jr=Tm;function wm(r,t){return function(e,o){if(e==null)return e;if(!v(e))return r(e,o);for(var a=e.length,f=t?a:-1,n=Object(e);(t?f--:++f<a)&&o(n[f],f,n)!==!1;);return e}}var fa=wm;var Sm=fa(jr),sr=Sm;var Pm=function(){return g.Date.now()},Cm=Pm;var na=Object.prototype,Im=na.hasOwnProperty,Em=X(function(r,t){r=Object(r);var e=-1,o=t.length,a=o>2?t[2]:void 0;for(a&&z(t[0],t[1],a)&&(o=1);++e<o;)for(var f=t[e],n=j(f),i=-1,s=n.length;++i<s;){var p=n[i],u=r[p];(u===void 0||F(u,na[p])&&!Im.call(r,p))&&(r[p]=f[p])}return r}),jm=Em;function Lm(r,t,e){(e!==void 0&&!F(r[t],e)||e===void 0&&!(t in r))&&Z(r,t,e)}var Br=Lm;function Mm(r){return y(r)&&v(r)}var At=Mm;function Fm(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}var Gr=Fm;function Rm(r){return U(r,j(r))}var ia=Rm;function Nm(r,t,e,o,a,f,n){var i=Gr(r,e),s=Gr(t,e),p=n.get(s);if(p){Br(r,e,p);return}var u=f?f(i,s,e+"",r,t,n):void 0,l=u===void 0;if(l){var d=m(s),T=!d&&N(s),O=!d&&!T&&rr(s);u=s,d||T||O?m(i)?u=i:At(i)?u=Yr(i):T?(l=!1,u=et(s,!0)):O?(l=!1,u=pt(s,!0)):u=[]:Qe(s)||R(s)?(u=i,R(i)?u=ia(i):(!h(i)||G(i))&&(u=ut(s))):l=!1}l&&(n.set(s,u),a(u,s,o,f,n),n.delete(s)),Br(r,e,u)}var sa=Nm;function pa(r,t,e,o,a){r!==t&&Er(t,function(f,n){if(a||(a=new W),h(f))sa(r,t,n,e,pa,o,a);else{var i=o?o(Gr(r,n),f,n+"",r,t,a):void 0;i===void 0&&(i=f),Br(r,n,i)}},j)}var ua=pa;function Dm(r,t,e){for(var o=-1,a=r==null?0:r.length;++o<a;)if(e(t,r[o]))return!0;return!1}var ma=Dm;function Bm(r){var t=r==null?0:r.length;return t?r[t-1]:void 0}var Gm=Bm;function Um(r){return typeof r=="function"?r:I}var Lr=Um;function Km(r,t){var e=m(r)?Jr:sr;return e(r,Lr(t))}var D=Km;function Wm(r,t){var e=[];return sr(r,function(o,a,f){t(o,a,f)&&e.push(o)}),e}var la=Wm;function Hm(r,t){var e=m(r)?ot:la;return e(r,w(t,3))}var Mr=Hm;function zm(r){return function(t,e,o){var a=Object(t);if(!v(t)){var f=w(e,3);t=b(t),e=function(i){return f(a[i],i,a)}}var n=r(t,e,o);return n>-1?a[f?t[n]:n]:void 0}}var da=zm;var qm=Math.max;function $m(r,t,e){var o=r==null?0:r.length;if(!o)return-1;var a=e==null?0:Qt(e);return a<0&&(a=qm(o+a,0)),Xr(r,w(t,3),a)}var ca=$m;var Vm=da(ca),Ym=Vm;function Zm(r,t){var e=-1,o=v(r)?Array(r.length):[];return sr(r,function(a,f,n){o[++e]=t(a,f,n)}),o}var Tt=Zm;function Jm(r,t){var e=m(r)?B:Tt;return e(r,w(t,3))}var Xm=Jm;function Qm(r,t){return r==null?r:Er(r,Lr(t),j)}var km=Qm;function rl(r,t){return r&&jr(r,Lr(t))}var tl=rl;function el(r,t){return r>t}var xa=el;var ol=Object.prototype,al=ol.hasOwnProperty;function fl(r,t){return r!=null&&al.call(r,t)}var ha=fl;function nl(r,t){return r!=null&&_t(r,t,ha)}var il=nl;var sl="[object String]";function pl(r){return typeof r=="string"||!m(r)&&y(r)&&P(r)==sl}var ga=pl;function ul(r,t){return B(t,function(e){return r[e]})}var ba=ul;function ml(r){return r==null?[]:ba(r,b(r))}var Ur=ml;var ll="[object Map]",dl="[object Set]",cl=Object.prototype,xl=cl.hasOwnProperty;function hl(r){if(r==null)return!0;if(v(r)&&(m(r)||typeof r=="string"||typeof r.splice=="function"||N(r)||rr(r)||R(r)))return!r.length;var t=M(r);if(t==ll||t==dl)return!r.size;if(Q(r))return!gr(r).length;for(var e in r)if(xl.call(r,e))return!1;return!0}var wt=hl;function gl(r){return r===void 0}var pr=gl;function bl(r,t){return r<t}var St=bl;function yl(r,t){var e={};return t=w(t,3),jr(r,function(o,a,f){Z(e,a,t(o,a,f))}),e}var _l=yl;function vl(r,t,e){for(var o=-1,a=r.length;++o<a;){var f=r[o],n=t(f);if(n!=null&&(i===void 0?n===n&&!L(n):e(n,i)))var i=n,s=f}return s}var Fr=vl;function Ol(r){return r&&r.length?Fr(r,I,xa):void 0}var Al=Ol;var Tl=ce(function(r,t,e){ua(r,t,e)}),wl=Tl;function Sl(r){return r&&r.length?Fr(r,I,St):void 0}var Pl=Sl;function Cl(r,t){return r&&r.length?Fr(r,w(t,2),St):void 0}var Il=Cl;function El(r,t,e,o){if(!h(r))return r;t=fr(t,r);for(var a=-1,f=t.length,n=f-1,i=r;i!=null&&++a<f;){var s=K(t[a]),p=e;if(s==="__proto__"||s==="constructor"||s==="prototype")return r;if(a!=n){var u=i[s];p=o?o(u,s,i):void 0,p===void 0&&(p=h(u)?u:Y(t[a+1])?[]:{})}J(i,s,p),i=i[s]}return r}var ya=El;function jl(r,t,e){for(var o=-1,a=t.length,f={};++o<a;){var n=t[o],i=nr(r,n);e(i,n)&&ya(f,fr(n,r),i)}return f}var _a=jl;function Ll(r,t){var e=r.length;for(r.sort(t);e--;)r[e]=r[e].value;return r}var va=Ll;function Ml(r,t){if(r!==t){var e=r!==void 0,o=r===null,a=r===r,f=L(r),n=t!==void 0,i=t===null,s=t===t,p=L(t);if(!i&&!p&&!f&&r>t||f&&n&&s&&!i&&!p||o&&n&&s||!e&&s||!a)return 1;if(!o&&!f&&!p&&r<t||p&&e&&a&&!o&&!f||i&&e&&a||!n&&a||!s)return-1}return 0}var Oa=Ml;function Fl(r,t,e){for(var o=-1,a=r.criteria,f=t.criteria,n=a.length,i=e.length;++o<n;){var s=Oa(a[o],f[o]);if(s){if(o>=i)return s;var p=e[o];return s*(p=="desc"?-1:1)}}return r.index-t.index}var Aa=Fl;function Rl(r,t,e){t.length?t=B(t,function(f){return m(f)?function(n){return nr(n,f.length===1?f[0]:f)}:f}):t=[I];var o=-1;t=B(t,k(w));var a=Tt(r,function(f,n,i){var s=B(t,function(p){return p(f)});return{criteria:s,index:++o,value:f}});return va(a,function(f,n){return Aa(f,n,e)})}var Ta=Rl;var Nl=Ot("length"),wa=Nl;var Pa="\\ud800-\\udfff",Dl="\\u0300-\\u036f",Bl="\\ufe20-\\ufe2f",Gl="\\u20d0-\\u20ff",Ul=Dl+Bl+Gl,Kl="\\ufe0e\\ufe0f",Wl="["+Pa+"]",Mt="["+Ul+"]",Ft="\\ud83c[\\udffb-\\udfff]",Hl="(?:"+Mt+"|"+Ft+")",Ca="[^"+Pa+"]",Ia="(?:\\ud83c[\\udde6-\\uddff]){2}",Ea="[\\ud800-\\udbff][\\udc00-\\udfff]",zl="\\u200d",ja=Hl+"?",La="["+Kl+"]?",ql="(?:"+zl+"(?:"+[Ca,Ia,Ea].join("|")+")"+La+ja+")*",$l=La+ja+ql,Vl="(?:"+[Ca+Mt+"?",Mt,Ia,Ea,Wl].join("|")+")",Sa=RegExp(Ft+"(?="+Ft+")|"+Vl+$l,"g");function Yl(r){for(var t=Sa.lastIndex=0;Sa.test(r);)++t;return t}var Ma=Yl;function Zl(r){return ke(r)?Ma(r):wa(r)}var Fa=Zl;function Jl(r,t){return _a(r,t,function(e,o){return vt(r,o)})}var Ra=Jl;var Xl=Je(function(r,t){return r==null?{}:Ra(r,t)}),Ql=Xl;var kl=Math.ceil,rd=Math.max;function td(r,t,e,o){for(var a=-1,f=rd(kl((t-r)/(e||1)),0),n=Array(f);f--;)n[o?f:++a]=r,r+=e;return n}var Na=td;function ed(r){return function(t,e,o){return o&&typeof o!="number"&&z(t,e,o)&&(e=o=void 0),t=cr(t),e===void 0?(e=t,t=0):e=cr(e),o=o===void 0?t<e?1:-1:cr(o),Na(t,e,o,r)}}var Da=ed;var od=Da(),ad=od;function fd(r,t,e,o,a){return a(r,function(f,n,i){e=o?(o=!1,f):t(e,f,n,i)}),e}var Ba=fd;function nd(r,t,e){var o=m(r)?ro:Ba,a=arguments.length<3;return o(r,w(t,4),e,a,sr)}var Rt=nd;var id="[object Map]",sd="[object Set]";function pd(r){if(r==null)return 0;if(v(r))return ga(r)?Fa(r):r.length;var t=M(r);return t==id||t==sd?r.size:gr(r).length}var ud=pd;var md=X(function(r,t){if(r==null)return[];var e=t.length;return e>1&&z(r,t[0],t[1])?t=[]:e>2&&z(t[0],t[1],t[2])&&(t=[t[0]]),Ta(r,Ar(t,1),[])}),ld=md;var dd=1/0,cd=ir&&1/Ir(new ir([,-0]))[1]==dd?function(r){return new ir(r)}:ne,Ga=cd;var xd=200;function hd(r,t,e){var o=-1,a=le,f=r.length,n=!0,i=[],s=i;if(e)n=!1,a=ma;else if(f>=xd){var p=t?null:Ga(r);if(p)return Ir(p);n=!1,a=ct,s=new dt}else s=t?[]:i;r:for(;++o<f;){var u=r[o],l=t?t(u):u;if(u=e||u!==0?u:0,n&&l===l){for(var d=s.length;d--;)if(s[d]===l)continue r;t&&s.push(l),i.push(u)}else a(s,l,e)||(s!==i&&s.push(l),i.push(u))}return i}var Ua=hd;var gd=X(function(r){return Ua(Ar(r,1,At,!0))}),Nt=gd;var bd=0;function yd(r){var t=++bd;return tt(r)+t}var _d=yd;function vd(r,t,e){for(var o=-1,a=r.length,f=t.length,n={};++o<a;){var i=o<f?t[o]:void 0;e(n,r[o],i)}return n}var Ka=vd;function Od(r,t){return Ka(r||[],t||[],J)}var Ad=Od;var wd="\0",dr="\0",Wa="",Wr=class{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=V(void 0),this._defaultEdgeLabelFn=V(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[dr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return G(t)||(t=V(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return b(this._nodes)}sources(){var t=this;return Mr(this.nodes(),function(e){return wt(t._in[e])})}sinks(){var t=this;return Mr(this.nodes(),function(e){return wt(t._out[e])})}setNodes(t,e){var o=arguments,a=this;return D(t,function(f){o.length>1?a.setNode(f,e):a.setNode(f)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=dr,this._children[t]={},this._children[dr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=o=>this.removeEdge(this._edgeObjs[o]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],D(this.children(t),o=>{this.setParent(o)}),delete this._children[t]),D(b(this._in[t]),e),delete this._in[t],delete this._preds[t],D(b(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(pr(e))e=dr;else{e+="";for(var o=e;!pr(o);o=this.parent(o))if(o===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==dr)return e}}children(t){if(pr(t)&&(t=dr),this._isCompound){var e=this._children[t];if(e)return b(e)}else{if(t===dr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return b(e)}successors(t){var e=this._sucs[t];if(e)return b(e)}neighbors(t){var e=this.predecessors(t);if(e)return Nt(e,this.successors(t))}isLeaf(t){var e;return this.isDirected()?e=this.successors(t):e=this.neighbors(t),e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var o=this;D(this._nodes,function(n,i){t(i)&&e.setNode(i,n)}),D(this._edgeObjs,function(n){e.hasNode(n.v)&&e.hasNode(n.w)&&e.setEdge(n,o.edge(n))});var a={};function f(n){var i=o.parent(n);return i===void 0||e.hasNode(i)?(a[n]=i,i):i in a?a[i]:f(i)}return this._isCompound&&D(e.nodes(),function(n){e.setParent(n,f(n))}),e}setDefaultEdgeLabel(t){return G(t)||(t=V(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ur(this._edgeObjs)}setPath(t,e){var o=this,a=arguments;return Rt(t,function(f,n){return a.length>1?o.setEdge(f,n,e):o.setEdge(f,n),n}),this}setEdge(){var t,e,o,a,f=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(t=n.v,e=n.w,o=n.name,arguments.length===2&&(a=arguments[1],f=!0)):(t=n,e=arguments[1],o=arguments[3],arguments.length>2&&(a=arguments[2],f=!0)),t=""+t,e=""+e,pr(o)||(o=""+o);var i=Kr(this._isDirected,t,e,o);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,i))return f&&(this._edgeLabels[i]=a),this;if(!pr(o)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[i]=f?a:this._defaultEdgeLabelFn(t,e,o);var s=Sd(this._isDirected,t,e,o);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[i]=s,Ha(this._preds[e],t),Ha(this._sucs[t],e),this._in[e][i]=s,this._out[t][i]=s,this._edgeCount++,this}edge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return this._edgeLabels[a]}hasEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(t,e,o){var a=arguments.length===1?Dt(this._isDirected,arguments[0]):Kr(this._isDirected,t,e,o),f=this._edgeObjs[a];return f&&(t=f.v,e=f.w,delete this._edgeLabels[a],delete this._edgeObjs[a],za(this._preds[e],t),za(this._sucs[t],e),delete this._in[e][a],delete this._out[t][a],this._edgeCount--),this}inEdges(t,e){var o=this._in[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.v===e}):a}}outEdges(t,e){var o=this._out[t];if(o){var a=Ur(o);return e?Mr(a,function(f){return f.w===e}):a}}nodeEdges(t,e){var o=this.inEdges(t,e);if(o)return o.concat(this.outEdges(t,e))}};Wr.prototype._nodeCount=0;Wr.prototype._edgeCount=0;function Ha(r,t){r[t]?r[t]++:r[t]=1}function za(r,t){--r[t]||delete r[t]}function Kr(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}return a+Wa+f+Wa+(pr(o)?wd:o)}function Sd(r,t,e,o){var a=""+t,f=""+e;if(!r&&a>f){var n=a;a=f,f=n}var i={v:a,w:f};return o&&(i.name=o),i}function Dt(r,t){return Kr(r,t.v,t.w,t.name)}export{m as a,V as b,jt as c,Pu as d,Cm as e,jm as f,Gm as g,D as h,Mr as i,Ym as j,Xm as k,km as l,tl as m,il as n,Ur as o,pr as p,_l as q,Al as r,wl as s,Pl as t,Il as u,Ql as v,ad as w,Rt as x,ud as y,ld as z,_d as A,Ad as B,Wr as C};
2
+ /*! Bundled license information:
3
+
4
+ lodash-es/lodash.js:
5
+ (**
6
+ * @license
7
+ * Lodash (Custom Build) <https://lodash.com/>
8
+ * Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ *)
14
+ */