copilot-operator 0.1.54 → 0.1.56

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 (197) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +618 -609
  3. package/dist/src/api/folderPicker.js +22 -22
  4. package/dist/src/api/operator.controller.js +32 -3
  5. package/dist/src/api/operator.service.js +80 -12
  6. package/dist/src/api/security.js +1 -1
  7. package/dist/src/api/server.js +9 -1
  8. package/dist/src/api/settings.js +18 -4
  9. package/dist/src/cli.js +16 -15
  10. package/dist/src/config/home.js +109 -0
  11. package/dist/src/config/layout.js +40 -5
  12. package/dist/src/config/schema.js +5 -1
  13. package/dist/src/exec/network.js +50 -3
  14. package/dist/src/orchestrator/hold.js +25 -0
  15. package/dist/src/orchestrator/leadLedger.js +88 -0
  16. package/dist/src/orchestrator/leadRunner.js +29 -2
  17. package/dist/src/orchestrator/review.js +2 -2
  18. package/dist/src/orchestrator/taskRunner.js +46 -4
  19. package/dist/src/plan/kerrigan.js +126 -126
  20. package/dist/src/plan/systemGuide.js +129 -17
  21. package/dist/src/protocol/leadSchema.js +36 -2
  22. package/dist/src/session/store.js +3 -0
  23. package/dist/src/session/workspaceGit.js +95 -1
  24. package/dist/src/transport/profileLock.js +34 -4
  25. package/dist/web/404.html +3 -3
  26. package/dist/web/_next/static/L-h3cKqABsuAzPqNkvLAP/_buildManifest.js +1 -0
  27. package/dist/web/_next/static/chunks/1077.a8fcbe8fc90ecb2d.js +1 -0
  28. package/dist/web/_next/static/chunks/1083.0122bea31f7199d9.js +1 -0
  29. package/dist/web/_next/static/chunks/1490.f5154054ddfd3dee.js +1 -0
  30. package/dist/web/_next/static/chunks/1536.98fab69162f370f0.js +1 -0
  31. package/dist/web/_next/static/chunks/1548.3aba99d28ca12a76.js +1 -0
  32. package/dist/web/_next/static/chunks/1584.7500138d08971f81.js +1 -0
  33. package/dist/web/_next/static/chunks/1732.90182d376c75c315.js +1 -0
  34. package/dist/web/_next/static/chunks/17449abc.fa53da036b7dcfb4.js +1 -0
  35. package/dist/web/_next/static/chunks/1872.d12259d09bb1173f.js +1 -0
  36. package/dist/web/_next/static/chunks/192.955be0d5fcd27ec6.js +1 -0
  37. package/dist/web/_next/static/chunks/1920.59b93a4215a75653.js +1 -0
  38. package/dist/web/_next/static/chunks/2063.4745e20abad5b208.js +1 -0
  39. package/dist/web/_next/static/chunks/2163.f028462d8dbc30fe.js +1 -0
  40. package/dist/web/_next/static/chunks/2175.8c8957600f6b88a8.js +1 -0
  41. package/dist/web/_next/static/chunks/2280.5a3754f49656d989.js +1 -0
  42. package/dist/web/_next/static/chunks/2355.d6bb92f10d516f81.js +1 -0
  43. package/dist/web/_next/static/chunks/2378.4f15342be64a9d23.js +1 -0
  44. package/dist/web/_next/static/chunks/2395.c2c4d3696d3b5542.js +1 -0
  45. package/dist/web/_next/static/chunks/2486.d130023b2b399eaa.js +1 -0
  46. package/dist/web/_next/static/chunks/2606.8e9434e7fee257b9.js +1 -0
  47. package/dist/web/_next/static/chunks/26dd8e60.1890515693b4ca88.js +1 -0
  48. package/dist/web/_next/static/chunks/2738.2559ed1058f6fb19.js +1 -0
  49. package/dist/web/_next/static/chunks/2821.409d92f5ac5b8142.js +1 -0
  50. package/dist/web/_next/static/chunks/3088.12b1d19ca55225b7.js +1 -0
  51. package/dist/web/_next/static/chunks/3152.d623d85a9afed5d3.js +1 -0
  52. package/dist/web/_next/static/chunks/3184.0788c67536fc4140.js +1 -0
  53. package/dist/web/_next/static/chunks/3194.8ee589997ce1e093.js +1 -0
  54. package/dist/web/_next/static/chunks/3322.4f7b378a41711478.js +1 -0
  55. package/dist/web/_next/static/chunks/3564.bfa030e92401f57d.js +1 -0
  56. package/dist/web/_next/static/chunks/358.4791f77f174006f3.js +1 -0
  57. package/dist/web/_next/static/chunks/3696.a367f4c8f42909d1.js +1 -0
  58. package/dist/web/_next/static/chunks/3748.8726b202d79d0dba.js +3 -0
  59. package/dist/web/_next/static/chunks/3794.19aedfb95f89dc48.js +1 -0
  60. package/dist/web/_next/static/chunks/384.063f394c789898a7.js +1 -0
  61. package/dist/web/_next/static/chunks/3854.39b7a1bf2b4189fe.js +1 -0
  62. package/dist/web/_next/static/chunks/386.2718f961400a3322.js +1 -0
  63. package/dist/web/_next/static/chunks/4008.3691a32e1711848f.js +1 -0
  64. package/dist/web/_next/static/chunks/4054.1c8d37b1513d20d8.js +1 -0
  65. package/dist/web/_next/static/chunks/4328.e326d66dd5c820c6.js +1 -0
  66. package/dist/web/_next/static/chunks/4444.36f5d8532bd6300d.js +1 -0
  67. package/dist/web/_next/static/chunks/4560.b8235d283fb3608c.js +1 -0
  68. package/dist/web/_next/static/chunks/464.f60ecfb6c72ec733.js +1 -0
  69. package/dist/web/_next/static/chunks/4912.1ab85b0ebf52a3e0.js +1 -0
  70. package/dist/web/_next/static/chunks/4982.bbbd303d665de4f0.js +1 -0
  71. package/dist/web/_next/static/chunks/4fecf3c3.e14d65bd1dce80cf.js +1 -0
  72. package/dist/web/_next/static/chunks/5052.dc8c36742419eed5.js +1 -0
  73. package/dist/web/_next/static/chunks/{7496.17282033df0e8794.js → 5115.fbe164892bfd6fa4.js} +1 -1
  74. package/dist/web/_next/static/chunks/5120.b4aadb89d4fb4f65.js +1 -0
  75. package/dist/web/_next/static/chunks/5448.1c4e0b719af53b3f.js +1 -0
  76. package/dist/web/_next/static/chunks/5623.cc6818f4096ce4c2.js +1 -0
  77. package/dist/web/_next/static/chunks/5664.507fea1f6305067e.js +1 -0
  78. package/dist/web/_next/static/chunks/5706.be484c6a7bed3fde.js +1 -0
  79. package/dist/web/_next/static/chunks/6336.b09d0d920c7631eb.js +1 -0
  80. package/dist/web/_next/static/chunks/6364.5b0466f24f4ecf58.js +1 -0
  81. package/dist/web/_next/static/chunks/640.2c2baacde5197a77.js +1 -0
  82. package/dist/web/_next/static/chunks/6419.61399b0413b8bef0.js +1 -0
  83. package/dist/web/_next/static/chunks/642.b70763e1cfe9e45e.js +1 -0
  84. package/dist/web/_next/static/chunks/6554.0110334a71e72bbe.js +1 -0
  85. package/dist/web/_next/static/chunks/6688.4a6ac23ba061262b.js +1 -0
  86. package/dist/web/_next/static/chunks/6815.6537cc012ba16cca.js +1 -0
  87. package/dist/web/_next/static/chunks/6896.33fdeb4e682c2cab.js +1 -0
  88. package/dist/web/_next/static/chunks/6912.3416822e13b4bc03.js +1 -0
  89. package/dist/web/_next/static/chunks/6944.635230aa8cb23871.js +1 -0
  90. package/dist/web/_next/static/chunks/6964.35718884ad3375bc.js +1 -0
  91. package/dist/web/_next/static/chunks/6992.4b059bae2659231d.js +1 -0
  92. package/dist/web/_next/static/chunks/6996.7c41217972cabc3f.js +1 -0
  93. package/dist/web/_next/static/chunks/7024.8bc670b892a558bb.js +1 -0
  94. package/dist/web/_next/static/chunks/7040.e058d8f95c3c11e7.js +1 -0
  95. package/dist/web/_next/static/chunks/714.70bdf8b4550aa78f.js +1 -0
  96. package/dist/web/_next/static/chunks/7220.807613863ef39947.js +1 -0
  97. package/dist/web/_next/static/chunks/7250.7f1d45021e49d2fd.js +1 -0
  98. package/dist/web/_next/static/chunks/7290.7bceed706f7b6df5.js +1 -0
  99. package/dist/web/_next/static/chunks/7301.c60eb2ba8ae6b859.js +1 -0
  100. package/dist/web/_next/static/chunks/7328.021e5e45124e40de.js +1 -0
  101. package/dist/web/_next/static/chunks/7340.a5a75ee889c30b74.js +1 -0
  102. package/dist/web/_next/static/chunks/7443.c189418756727101.js +1 -0
  103. package/dist/web/_next/static/chunks/7484.c0e6bfca7b2fb65e.js +1 -0
  104. package/dist/web/_next/static/chunks/7496.e638a7286c17e438.js +1 -0
  105. package/dist/web/_next/static/chunks/7500-077d236acd9b9c50.js +1 -0
  106. package/dist/web/_next/static/chunks/7695.11ba99db589cb586.js +1 -0
  107. package/dist/web/_next/static/chunks/7764.e62333ee1d63a458.js +1 -0
  108. package/dist/web/_next/static/chunks/7921-ddb0291f25a2e486.js +1 -0
  109. package/dist/web/_next/static/chunks/80.df762af692aca107.js +1 -0
  110. package/dist/web/_next/static/chunks/8024.4bd0b5a7f26a0f7d.js +1 -0
  111. package/dist/web/_next/static/chunks/82b69429.c6dd4e5c5ac704f3.js +368 -0
  112. package/dist/web/_next/static/chunks/8360.371456f14873ee9f.js +1 -0
  113. package/dist/web/_next/static/chunks/8544.7c1fb012f9073eaa.js +1 -0
  114. package/dist/web/_next/static/chunks/8547.424f9970cc72775f.js +1 -0
  115. package/dist/web/_next/static/chunks/8584.9bf7e755a7c8c432.js +1 -0
  116. package/dist/web/_next/static/chunks/8616.8e05c4a20dcdf39d.js +1 -0
  117. package/dist/web/_next/static/chunks/8752.bf29293df3366e17.js +298 -0
  118. package/dist/web/_next/static/chunks/8800.3c7b01176e98160a.js +1 -0
  119. package/dist/web/_next/static/chunks/88b2132a.04b02968da05b8a6.js +1005 -0
  120. package/dist/web/_next/static/chunks/8924.49dd385ac101fb7e.js +1 -0
  121. package/dist/web/_next/static/chunks/896.eb46d6e001d25d0f.js +1 -0
  122. package/dist/web/_next/static/chunks/9003.3d5c7a418d0b858b.js +1 -0
  123. package/dist/web/_next/static/chunks/9067.394ff92d9ae542b3.js +1 -0
  124. package/dist/web/_next/static/chunks/9068.9662bb8fa5fdc637.js +1 -0
  125. package/dist/web/_next/static/chunks/9178.a7631bd283f2a69c.js +1 -0
  126. package/dist/web/_next/static/chunks/9190.e3a90b1a9ed21668.js +1 -0
  127. package/dist/web/_next/static/chunks/9296.59fcfc8261a4c6bd.js +1 -0
  128. package/dist/web/_next/static/chunks/9312.e1fb4089a122d3d3.js +1 -0
  129. package/dist/web/_next/static/chunks/9348.022486b05b882739.js +1 -0
  130. package/dist/web/_next/static/chunks/948.132a0571d85c8b01.js +1 -0
  131. package/dist/web/_next/static/chunks/951.43a4ba54b1d1ff4e.js +3 -0
  132. package/dist/web/_next/static/chunks/9544.acc06fe34aa32c5c.js +7 -0
  133. package/dist/web/_next/static/chunks/9591.d205941f0062de24.js +1 -0
  134. package/dist/web/_next/static/chunks/9628.d8954a2bd28b85a6.js +1 -0
  135. package/dist/web/_next/static/chunks/9636.35df6241125f8513.js +1 -0
  136. package/dist/web/_next/static/chunks/9658.cdecb568f615e4c9.js +782 -0
  137. package/dist/web/_next/static/chunks/9672.b379566a8bfcd947.js +1 -0
  138. package/dist/web/_next/static/chunks/9680.d10b204d08ca3a62.js +1 -0
  139. package/dist/web/_next/static/chunks/9728.1d4cb6c68bd55f44.js +1 -0
  140. package/dist/web/_next/static/chunks/9747.80f474bcd4654c6c.js +1 -0
  141. package/dist/web/_next/static/chunks/9784.c9938b7e977e14eb.js +1 -0
  142. package/dist/web/_next/static/chunks/9812.024424a52730b057.js +1 -0
  143. package/dist/web/_next/static/chunks/9888.ce925cd415b672ef.js +1 -0
  144. package/dist/web/_next/static/chunks/{9891.91a2c59fd073fd48.js → 9891.a97db7c8f05693d1.js} +1 -1
  145. package/dist/web/_next/static/chunks/9904.a3d2f8569d7355ab.js +1 -0
  146. package/dist/web/_next/static/chunks/992.8470b96c23472686.js +1 -0
  147. package/dist/web/_next/static/chunks/9924.03252dda78c705c3.js +1 -0
  148. package/dist/web/_next/static/chunks/9968.3d45ff9183e8b07b.js +1 -0
  149. package/dist/web/_next/static/chunks/app/_not-found/page-23c6c0396966da29.js +1 -0
  150. package/dist/web/_next/static/chunks/app/defaults/page-4e5be923763ba3d9.js +1 -0
  151. package/dist/web/_next/static/chunks/app/layout-678acf830096ce90.js +1 -0
  152. package/dist/web/_next/static/chunks/app/page-be5c3849591d8c11.js +1 -0
  153. package/dist/web/_next/static/chunks/app/settings/page-b39878dce98ded94.js +1 -0
  154. package/dist/web/_next/static/chunks/app/system/page-176448acb2c8baa6.js +1 -0
  155. package/dist/web/_next/static/chunks/{main-app-f747f0f5ddb4213b.js → main-app-d23441ca81b3a063.js} +1 -1
  156. package/dist/web/_next/static/chunks/webpack-b26d4d956feb6e65.js +1 -0
  157. package/dist/web/_next/static/css/2de713eca93a7750.css +3 -0
  158. package/dist/web/_next/static/css/4bfdd3ebb3d1a180.css +1 -0
  159. package/dist/web/_next/static/css/51bfff1122e9f34d.css +1 -0
  160. package/dist/web/_next/static/css/73368887921d70d9.css +1 -0
  161. package/dist/web/_next/static/media/codicon.5ce2572b.ttf +0 -0
  162. package/dist/web/_next/static/media/editorWebWorkerMain.828b206c.js +1 -0
  163. package/dist/web/defaults.html +3 -3
  164. package/dist/web/defaults.txt +9 -9
  165. package/dist/web/index.html +4 -4
  166. package/dist/web/index.txt +9 -9
  167. package/dist/web/settings.html +14 -0
  168. package/dist/web/settings.txt +25 -0
  169. package/dist/web/system.html +3 -3
  170. package/dist/web/system.txt +9 -9
  171. package/dist/web/third-party-notices.txt +5966 -0
  172. package/package.json +157 -151
  173. package/prompts/lead1.md +140 -116
  174. package/prompts/level1.md +574 -574
  175. package/prompts/review1.md +287 -287
  176. package/dist/src/context/desktopDir.js +0 -44
  177. package/dist/web/_next/static/WuIGWiKKh_ESR3KwzsLZF/_buildManifest.js +0 -1
  178. package/dist/web/_next/static/chunks/1077.ae2fd686ef05572e.js +0 -1
  179. package/dist/web/_next/static/chunks/1548.bd558d3f2c8df4af.js +0 -1
  180. package/dist/web/_next/static/chunks/2163.b41334711ddcceff.js +0 -1
  181. package/dist/web/_next/static/chunks/714.cb77983f9be215c9.js +0 -1
  182. package/dist/web/_next/static/chunks/7220.072a60cd9d60220a.js +0 -1
  183. package/dist/web/_next/static/chunks/7500-f90e2ae7061e351d.js +0 -1
  184. package/dist/web/_next/static/chunks/7921-54dae769aa8bae96.js +0 -1
  185. package/dist/web/_next/static/chunks/8547.0a9997b67008c706.js +0 -1
  186. package/dist/web/_next/static/chunks/8584.9d5d6c09b0375015.js +0 -1
  187. package/dist/web/_next/static/chunks/9067.832c4761a991f2c2.js +0 -1
  188. package/dist/web/_next/static/chunks/9591.fabd60bd0d10341c.js +0 -1
  189. package/dist/web/_next/static/chunks/9747.c8d4ba56c9eef95f.js +0 -1
  190. package/dist/web/_next/static/chunks/app/_not-found/page-1264c0db9665169c.js +0 -1
  191. package/dist/web/_next/static/chunks/app/defaults/page-a1f90fe37e302928.js +0 -1
  192. package/dist/web/_next/static/chunks/app/layout-46efb208d7c88648.js +0 -1
  193. package/dist/web/_next/static/chunks/app/page-57787f15774d76b8.js +0 -1
  194. package/dist/web/_next/static/chunks/app/system/page-825f53f14d16033d.js +0 -1
  195. package/dist/web/_next/static/chunks/webpack-cb74fa884b8af278.js +0 -1
  196. package/dist/web/_next/static/css/d3398f485b2a9075.css +0 -1
  197. /package/dist/web/_next/static/{WuIGWiKKh_ESR3KwzsLZF → L-h3cKqABsuAzPqNkvLAP}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8547,9591],{88547:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(4461),i=n(36744),o=n(25706).Buffer;function l(e){let t=[];for(let n=0;n<e.length-1;n++)t.push({a:e[n],b:e[n+1]});return t}function a(e,t,n,r){let i=t.x-e.x,o=t.y-e.y,l=r.x-n.x,a=r.y-n.y,s=i*a-o*l;if(0===s)return null;let d=n.x-e.x,u=n.y-e.y,h=(d*a-u*l)/s,g=(d*o-u*i)/s;return h<=1e-6||h>=.999999||g<=1e-6||g>=.999999?null:{point:{x:e.x+h*i,y:e.y+h*o},tA:h,tB:g}}function s(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function d(e,t,n){if("rounded"!==e.curve)return!1;let r=e.points,i=r[t],o=r[t+1];if(!i||!o)return!1;let l=Math.hypot(o.x-i.x,o.y-i.y),a=n*l,s=t>0?y(r[t-1],i,o,5):null;if(s&&a<s.cutLen)return!0;let d=t+2<r.length?y(i,o,r[t+2],5):null;return null!==d&&l-a<d.cutLen}function u(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=l(r.points);for(let o=n+1;o<e.length;o++){let n=e[o],u=l(n.points);for(let[e,o]of i.entries())for(let[i,l]of u.entries()){let u=a(o.a,o.b,l.a,l.b);if(!u||d(r,e,u.tA)||d(n,i,u.tB))continue;let h=s(o);h!==s(l)&&h?t.push({jumpEdgeId:r.id,otherEdgeId:n.id,segIndex:e,t:u.tA,point:u.point}):t.push({jumpEdgeId:n.id,otherEdgeId:r.id,segIndex:i,t:u.tB,point:u.point})}}}return t}function h(e){let t=Math.round(1e3*e)/1e3;return Number.isInteger(t),`${t}`}function g(e){return`${h(e.x)},${h(e.y)}`}function f(e){let t=e.b.x-e.a.x,n=e.b.y-e.a.y;return Math.abs(t)>=Math.abs(n)?+(t>=0):+(n>=0)}function p(e,t){if(e.length<2)return e.map(e=>({...e}));let n=e.map(e=>({...e})),i=t.arrowTypeStart&&r.hq[t.arrowTypeStart];if(i){let t=e[0],r=e[1],o=Math.atan2(r.y-t.y,r.x-t.x);n[0].x=t.x+i*Math.cos(o),n[0].y=t.y+i*Math.sin(o)}let o=t.arrowTypeEnd&&r.hq[t.arrowTypeEnd];if(o){let t=e.length,r=e[t-2],i=e[t-1],l=Math.atan2(i.y-r.y,i.x-r.x);n[t-1].x=i.x-o*Math.cos(l),n[t-1].y=i.y-o*Math.sin(l)}return n}function c(e,t,n,r,i){let o=e.point.x,l=e.point.y,a={x:o-t*e.r,y:l-n*e.r},s={x:o+t*e.r,y:l+n*e.r},d=[`L${g(a)}`];return"arc"===i?d.push(`A${h(e.r)},${h(e.r)} 0 0 ${r} ${g(s)}`):d.push(`M${g(s)}`),d}function y(e,t,n,r){let i=t.x-e.x,o=t.y-e.y,l=n.x-t.x,a=n.y-t.y,s=Math.hypot(i,o),d=Math.hypot(l,a);if(s<1e-5||d<1e-5)return null;let u=i/s,h=o/s,g=l/d,f=a/d,p=Math.acos(Math.max(-1,Math.min(1,u*g+h*f)));if(p<1e-5||1e-5>Math.abs(Math.PI-p))return null;let c=Math.min(r/Math.sin(p/2),s/2,d/2);return{startX:t.x-u*c,startY:t.y-h*c,endX:t.x+g*c,endY:t.y+f*c,ctrlX:t.x,ctrlY:t.y,cutLen:c}}function x(e,t,n){let r=e.points;if(r.length<2)return"";let i=p(r,e),o="rounded"===e.curve,a=l(i),s=new Map;for(let e of t){let t=a[e.segIndex];if(!t)continue;let r=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),i=s.get(e.segIndex)??[];i.push({t:e.t,point:e.point,d:e.t*r,r:n.jumpRadius}),s.set(e.segIndex,i)}let d=[`M${g(i[0])}`];for(let e=0;e<a.length;e++){let t=a[e],r=Math.hypot(t.b.x-t.a.x,t.b.y-t.a.y),l=0===r?0:(t.b.x-t.a.x)/r,u=0===r?0:(t.b.y-t.a.y)/r,p=f(t),x=0;if(o&&e>0){let t=y(i[e-1],i[e],i[e+1]??i[e],5);t&&(x=t.cutLen)}let b=r,m=null;o&&e<a.length-1&&(m=y(i[e],i[e+1],i[e+2]??i[e+1],5))&&(b=r-m.cutLen);let k=.6*n.jumpRadius,w=[...s.get(e)??[]].sort((e,t)=>e.t-t.t).filter(e=>{let t=Math.min(e.d-x,b-e.d)-2;return e.r=Math.min(e.r,t),e.r>=k});for(let e=0;e<w.length-1;e++){let t=w[e+1].d-w[e].d;if(w[e].r+w[e+1].r>t){let n=t/2;w[e].r=Math.min(w[e].r,n),w[e+1].r=Math.min(w[e+1].r,n)}}for(let e of w)e.r<k||d.push(...c(e,l,u,p,n.jumpStyle));o&&m?(d.push(`L${h(m.startX)},${h(m.startY)}`),d.push(`Q${h(m.ctrlX)},${h(m.ctrlY)} ${h(m.endX)},${h(m.endY)}`)):d.push(`L${g(t.b)}`)}return d.join(" ")}function b(e){return/^[\d\s+,.LMelm-]*$/.test(e)}function m(e){return!e||"linear"===e||"rounded"===e||"step"===e||"stepBefore"===e||"stepAfter"===e}function k(e){if(!e)return null;try{let t="function"==typeof atob?atob(e):o.from(e,"base64").toString(),n=JSON.parse(t);if(!Array.isArray(n))return null;let r=[];for(let e of n)e&&"number"==typeof e.x&&"number"==typeof e.y&&r.push({x:e.x,y:e.y});return r.length>=2?r:null}catch{return null}}function w(e,t,n){if(!n.enabled)return;let r=e.node();if(!r)return;let i=new Map;for(let e of t)i.set(e.id,e);let o=new Map;for(let e of r.querySelectorAll("path[data-id]")){let t=e.getAttribute("data-id");null===t||o.has(t)||o.set(t,e)}let l=[];for(let e of t){let t=o.get(e.id);if(!t)continue;let n=k(t.getAttribute("data-points"))??e.points;l.push({...e,points:n})}let a=u(l);if(0===a.length)return;let s=new Map;for(let e of a){let t=s.get(e.jumpEdgeId)??[];t.push(e),s.set(e.jumpEdgeId,t)}for(let e of l){let t=s.get(e.id);if(!t||0===t.length)continue;let r=i.get(e.id),l=r?.curve;if(void 0!==l&&!m(l))continue;let a=o.get(e.id);if(!a||void 0===l&&!b(a.getAttribute("d")??""))continue;let d=a.getAttribute("style")??"",u=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(d),h=u?Number.parseFloat(u[1]):null,g=u?Number.parseFloat(u[2]):null,f=x(e,t,n);if(a.setAttribute("d",f),null!==h&&null!==g&&"function"==typeof a.getTotalLength){let e=Math.max(0,a.getTotalLength()-h-g),t=`0 ${h} ${e} ${g}`,n=d.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${t};`).replace(/;\s*;+/g,";");a.setAttribute("style",n)}}}(0,i.K)(l,"buildSegmentList"),(0,i.K)(a,"segmentIntersection"),(0,i.K)(s,"isHorizontalSeg"),(0,i.K)(d,"crossingSitsInRoundedCorner"),(0,i.K)(u,"findEdgeIntersections"),(0,i.K)(h,"fmt"),(0,i.K)(g,"pointToString"),(0,i.K)(f,"getArcSweepFlag"),(0,i.K)(p,"applyMarkerOffsets"),(0,i.K)(c,"emitJump"),(0,i.K)(y,"computeRoundedCorner"),(0,i.K)(x,"rewriteEdgePath"),(0,i.K)(b,"isStraightPath"),(0,i.K)(m,"curveSupportsLineHops"),(0,i.K)(k,"decodeDataPoints"),(0,i.K)(w,"applyLineJumpsToSvg")},99591:(e,t,n)=>{n.r(t),n.d(t,{render:()=>V});var r=n(88547),i=n(53117),o=n(14637),l=n(4461);n(11152),n(63570),n(7103),n(56960),n(23810),n(23742),n(73607);var a=n(97562);n(13318);var s=n(36744),d=n(13226),u=n(74040),h=(0,s.K)((e,t,{parentById:n})=>{let r=new Set,i=e;if(e===t)return n[e]||"root";for(;i;){if(r.add(i),i===t)return i;i=n[i]}for(i=t;i;){if(r.has(i))return i;i=n[i]}return"root"},"findCommonAncestor");function g(e,t,{parentById:n}){let r=e;for(;(n[r]??"root")!==t;)r=n[r];return r}function f(e,t){let n=e.map(()=>!1),r=new Map;for(let i of(e.forEach(({source:e,target:n},i)=>{if(e===n)return;let o=h(e,n,t);if(o===e||o===n)return;let l=g(e,o,t),a=g(n,o,t),s=r.get(o)??[];s.push({index:i,from:l,to:a,collapsed:l!==e||a!==n}),r.set(o,s)}),r.values())){let e=new Map,t=[],r=new Map;for(let n of i){for(let i of[n.from,n.to])e.has(i)||(e.set(i,[]),t.push(i),r.set(i,0));e.get(n.from).push(n),r.set(n.to,r.get(n.to)+1)}let o=new Map;for(let i of[...t.filter(e=>0===r.get(e)),...t]){if(o.has(i))continue;o.set(i,1);let t=[{node:i,next:0}];for(;t.length>0;){let r=t[t.length-1],i=e.get(r.node);if(r.next>=i.length){o.set(r.node,2),t.pop();continue}let l=i[r.next++],a=o.get(l.to);1===a?n[l.index]=l.collapsed:void 0===a&&(o.set(l.to,1),t.push({node:l.to,next:0}))}}}return n}function p(e,{measure:t}){let n=e.config?.elk?.lineHops;if(!1===n)return;let i=e.edges.filter(e=>Array.isArray(e.points)&&e.points.length>=2).map(e=>({id:e.id,points:e.points,curve:e.curve,arrowTypeStart:e.arrowTypeStart,arrowTypeEnd:e.arrowTypeEnd}));(0,r.Z)(t.groups.edgePaths,i,{enabled:!0,jumpRadius:6,jumpStyle:"gap"===n?"gap":"arc"})}(0,s.K)(g,"childOnPath"),(0,s.K)(f,"findSubgraphFeedbackEdges"),(0,s.K)(p,"applyElkLineJumps");var c={},y={},x={},b={},m=10,k=(0,s.K)((e,t,n=.5)=>{let r=e.width/2,i=e.height/2,o=e.x-r,l=e.x+r,a=e.y-i,s=e.y+i,d=Math.abs(t.x-o)<=n&&t.y>=a-n&&t.y<=s+n,u=Math.abs(t.x-l)<=n&&t.y>=a-n&&t.y<=s+n,h=Math.abs(t.y-a)<=n&&t.x>=o-n&&t.x<=l+n,g=Math.abs(t.y-s)<=n&&t.x>=o-n&&t.x<=l+n;return d||u||h||g},"onBorder"),w=(0,s.K)((e,t,n)=>{let r=e.x,i=e.y,o=Math.abs(r-n.x),l=e.width/2,a=n.x<t.x?l-o:l+o,s=e.height/2,d=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*l>Math.abs(r-t.x)*s){let e=n.y<t.y?t.y-s-i:i-s-t.y;a=u*e/d;let r={x:n.x<t.x?n.x+a:n.x-u+a,y:n.y<t.y?n.y+d-e:n.y-d+e};return 0===u&&(r.x=t.x),0===d&&(r.y=t.y),r}{let e=d*(a=n.x<t.x?t.x-l-r:r-l-t.x)/u,i=n.x<t.x?n.x+u-a:n.x-u+a,o=n.y<t.y?n.y+e:n.y-e;return 0===u&&(i=t.x),0===d&&(o=t.y),{x:i,y:o}}},"intersection"),E=(0,s.K)((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),o=Math.abs(t.y-r),l=e.width/2,a=e.height/2;return i>=l||o>=a},"outsideNode"),M=(0,s.K)((e,t,n=m)=>{let r=Math.abs(t.x-e.x),i=Math.abs(t.y-e.y),o=e.width/2,l=e.height/2;if(1>Math.abs(r-o)||1>Math.abs(i-l)){let r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i);if(o>0)return{x:e.x+r/o*(o+n),y:e.y+i/o*(o+n)}}return t},"ensureTrulyOutside"),K=(0,s.K)((e,t,n)=>{let r=1>Math.abs(t.x-e.x),i=1>Math.abs(t.y-e.y);return{x:r?t.x:t.x<e.x?e.x-e.width/4:e.x+e.width/4,y:i?t.y:n.y}},"makeInsidePoint"),L=(0,s.K)((e,t,n)=>{if(!e?.intersect)return null;let r=e.intersect(n);return!r||n.x<t.x&&r.x>t.x||n.x>t.x&&r.x<t.x||1>=Math.hypot(n.x-r.x,n.y-r.y)?null:r},"tryNodeIntersect"),S=(0,s.K)((e,t,n)=>{let r=K(e,t,n);return w(e,t,r)},"fallbackIntersection"),O=(0,s.K)((e,t,n)=>{let r=e.intersect?.(n);return!!r&&Math.hypot(n.x-t.x,n.y-t.y)<=Math.hypot(r.x-t.x,r.y-t.y)+1e-9},"insideOutline"),P=(0,s.K)((e,t,n,r)=>{if(!e?.intersect)return null;let i=r.x-n.x,o=r.y-n.y;if(0===i&&0===o||Math.abs(i)>1e-6&&Math.abs(o)>1e-6)return null;let l={x:t.x,y:t.y},a=Math.abs(i)>Math.abs(o),d=(0,s.K)(e=>a?{x:e,y:n.y}:{x:n.x,y:e},"along"),u=a?l.x:l.y,h=a?n.x:n.y;if(!O(e,l,d(u)))return null;if(O(e,l,d(h)))return{...n};for(let t=0;t<20;t++){let t=(u+h)/2;O(e,l,d(t))?u=t:h=t}return d(u)},"outlineAttachPoint"),I=(0,s.K)((e,t,n,r)=>{let i=M(t,n);return L(e,t,i)??S(t,i,r)},"computeNodeIntersection"),A=(0,s.K)((e,t,n,r=.1)=>{if(n&&0!==e.length)if("start"===t)e.length>0&&Math.abs(e[0].x-n.x)<r&&Math.abs(e[0].y-n.y)<r?e.shift():e[0]=n;else{let t=e.length-1;e.length>0&&Math.abs(e[t].x-n.x)<r&&Math.abs(e[t].y-n.y)<r?e.pop():e[t]=n}},"replaceEndpoint"),v=(0,s.K)(e=>"string"!=typeof e?0:Math.max(l.hq[e]??0,l.Nq[e]??0),"markerPathOffset"),N={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},T="[top=12,left=12,bottom=12,right=12]",D={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},C=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(D)];function _(e){for(let t of C)delete e[t];e["spacing.baseValue"]=24,e["spacing.nodeNode"]=50}(0,s.K)(_,"clearContainerAlgorithmOptions");var R=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);function B(e,t){if("string"==typeof e)return R.has(e)?e:void t?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...R].join(", ")}. Falling back to the diagram's layout algorithm.`)}function $(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":default:return"DOWN";case"BT":return"UP"}}function X(e){return(0,o.qV)(e.shape)?(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0):0}function F(e){return(0,o.qV)(e.shape)?{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${X(e)}, 0)`}:{}}function G(e,t,n,r){let i=(e.labelData?.width??0)+2*(e.padding??0),o=e.labelData?.height??0,l=et(t?.preset),a={...F(e),"spacing.baseValue":24,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":50,"elk.padding":"[top=24,left=24,bottom=24,right=24]","nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":t?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":t?.nodePlacementAlignment??l.alignment,"elk.layered.nodePlacement.strategy":t?.nodePlacementStrategy??l.containerPlacement,"elk.layered.cycleBreaking.strategy":t?.cycleBreakingStrategy??l.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":T},s=B(e.metadata?.algorithm,r);if(s){let e=o+15;if(a["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",a["nodeSize.minimum"]=`(${i}, ${e+15})`,a["elk.algorithm"]=s,a["elk.hierarchyHandling"]="SEPARATE_CHILDREN",a["elk.aspectRatio"]="2.0",a["elk.contentAlignment"]="H_CENTER V_TOP",a["elk.expandNodes"]="true",a["elk.padding"]=`[top=${e},left=15,bottom=15,right=15]`,"elk.rectpacking"===s){let e=o+10;Object.assign(a,D,{"elk.padding":`[top=${e},left=10,bottom=10,right=10]`,"nodeSize.minimum":`(${i}, ${e+10})`})}}else e.dir&&(a["elk.algorithm"]=n,a["elk.direction"]=$(e.dir),a["elk.hierarchyHandling"]="SEPARATE_CHILDREN");return Object.assign(a,b),a}function Y(e,t){let n=new Set,r=new Map;for(let{id:t,parentId:n}of e){let e=r.get(n);e?e.push(t):r.set(n,[t])}for(let e of r.values()){let r=new Set(e),i=new Map(e.map(e=>[e,0])),o=new Map(e.map(e=>[e,[]])),l=[];for(let e of t){let t=null==e.source?void 0:String(e.source),n=null==e.target?void 0:String(e.target);t&&n&&t!==n&&r.has(t)&&r.has(n)&&(i.set(n,(i.get(n)??0)+1),o.get(t).push(n),o.get(n).push(t),l.push([t,n]))}let a=new Map,d=0;for(let t of e){if(a.has(t))continue;let e=[t];for(a.set(t,d);e.length>0;){let t=e.pop();for(let n of o.get(t))a.has(n)||(a.set(n,d),e.push(n))}d++}let u=Array(d).fill(!1);for(let t of e)(i.get(t)??0)===0&&(u[a.get(t)]=!0);if(!u.includes(!1))continue;let h=new Map(e.map(e=>[e,[]])),g=new Map(e.map(e=>[e,0])),f=(0,s.K)((e,t)=>{let n=new Set([e]),r=[e];for(;r.length>0;){let e=r.pop();if(e===t)return!0;for(let t of h.get(e))n.has(t)||(n.add(t),r.push(t))}return!1},"reaches");for(let[e,t]of l)f(t,e)||(h.get(e).push(t),g.set(t,(g.get(t)??0)+1));let p=Array(d).fill(!1);for(let t of e){let e=a.get(t);u[e]||p[e]||0!==g.get(t)||(n.add(t),p[e]=!0)}}return n}function j(e,t){if(e.config.elk?.keepEntryNodeOnTop)for(let n of Y(e.nodes,e.edges.map(e=>({source:e.start,target:e.end})))){let e=t[n];e&&(e.layoutOptions={...e.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"})}}function H(e,t){let n=Z(t);return q(n),eV(e,n),{algorithm:n.algorithm}}async function W(e,t){let n=Z(t),r=U(e,n),i=new u;n.log.info("Drawing flowchart using v4 renderer",i);let o=await ep(i,r.elkGraph,n.log);return ec(e,o,r,n.log),J(e.nodes),o}function U(e,t){let n={},r=en(e,t.algorithm,t.rootLayoutOptions),i=e.direction??"DOWN";r.layoutOptions["elk.direction"]=$(i);let o=er(e.nodes,t.log);return ei(e.nodes,r,n,t),es(e,r,n,t),eh(e,n,o,t),eg(r,n,o,t.log),e.config.elk?.orientFeedbackEdges!==!1&&z(r,o),j(e,n),{elkGraph:r,nodeDb:n,parentLookupDb:o}}function z(e,t){let n=f(e.edges.map(e=>({source:e.sources[0],target:e.targets[0]})),t);e.edges.forEach((e,t)=>{n[t]&&([e.sources,e.targets]=[e.targets,e.sources],e.layoutReversed=!0)})}(0,s.K)(B,"resolveContainerAlgorithm"),(0,s.K)($,"dir2ElkDirection"),(0,s.K)(X,"groupTitleWidth"),(0,s.K)(F,"groupTitleSizeOptions"),(0,s.K)(G,"buildSubgraphLayoutOptions"),(0,s.K)(Y,"findCyclicEntryNodes"),(0,s.K)(j,"applyCyclicEntryConstraint"),(0,s.K)(H,"prepareLayoutForElk"),(0,s.K)(W,"runElkLayoutCore"),(0,s.K)(U,"buildElkGraphFromLayoutData"),(0,s.K)(z,"reverseSubgraphFeedbackEdges");var V=(0,i.xY)({afterPaint:p,prepareLayout:H,measureLayout:(0,s.K)((e,t)=>(0,i.QV)(e,t,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:W,paintOptions:{skipIntersect:!0}});function q(e){(0,a.XV)(e.getConfig())}function J(e){let t=new Map(e.map(e=>[e.id,e]));e.sort((e,n)=>e.isGroup!==n.isGroup?e.isGroup?-1:1:e.isGroup&&n.isGroup?Q(e,t)-Q(n,t):0)}function Q(e,t){let n=0,r=new Set,i=e.parentId;for(;i&&!r.has(i);){r.add(i);let e=t.get(i);if(!e?.isGroup)break;n++,i=e.parentId}return n}function Z(e){let t=e.helpers;if(!t)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:t.common,getConfig:t.getConfig,interpolateToCurve:t.interpolateToCurve,log:t.log}}(0,s.K)(q,"syncHostConfig"),(0,s.K)(J,"orderNodesForElkPaint"),(0,s.K)(Q,"getGroupDepth"),(0,s.K)(Z,"getElkLayoutContext");var ee={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};function et(e){return void 0!==e&&Object.hasOwn(ee,e)?ee[e]:ee.default}function en(e,t,n){let r=et(e.config.elk?.preset),i={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":t,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??r.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??r.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??r.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??r.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":T},children:[],edges:[]};return"elk.rectpacking"===t&&Object.assign(i.layoutOptions,D,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"}),n&&Object.assign(i.layoutOptions,n),Object.assign(i.layoutOptions,c,y,x),i}function er(e,t){let n={parentById:{},childrenById:{}},r=e.filter(e=>e.isGroup);return t.info("Subgraphs - ",r),r.forEach(t=>{e.filter(e=>e.parentId===t.id).forEach(e=>{n.parentById[e.id]=t.id,n.childrenById[t.id]??=[],n.childrenById[t.id].push(e.id)})}),n}function ei(e,t,n,r,i){let o=e.filter(e=>e?.parentId===i);return r.log.info("addVertices APA12",o,i),o.forEach(i=>{eo(t,e,i,n,r)}),t}function eo(e,t,n,r,i){let o=el(n);e.children.push(o),r[n.id]=o,n.isGroup&&(o.children=[],ei(t,o,r,i,n.id),o.labelData=ea(n,i.getConfig()))}function el(e){let t={...e};return delete t.domId,e.isGroup?t.children=[]:(t.width=e.width??0,t.height=e.height??0,e.spreadPorts&&(t.layoutOptions={...t.layoutOptions,"elk.portAlignment.default":"CENTER"})),t}function ea(e,t){let n=e.labelData;return n||(e.labelBBox?{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth}:{width:0,height:0,wrappingWidth:e.wrappingWidth??t.flowchart?.wrappingWidth})}function es(e,t,n,r){r.log.info("abc78 DAGA edges = ",e);let i={};return e.edges.forEach(e=>{let o=e.id;i[o]=(i[o]??-1)+1,e.id=o,r.log.info("abc78 new link id to be used is",o,o,i[o]);let{source:l,target:a,sourceId:s,targetId:d}=eu(e,n);r.log.debug("abc78 source and target",l,a),t.edges.push({...e,sources:[l],targets:[a],sourceId:s,targetId:d,labels:[{width:e.width??0,height:e.height??0,orgWidth:e.width??0,orgHeight:e.height??0,text:e.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}},...(r.rootLayoutOptions?.["elk.algorithm"]??r.algorithm??"elk.layered")==="elk.layered"?ed(e):[]]})}),t}function ed(e){let t={startLeft:e.startLabelLeft,startRight:e.startLabelRight,endLeft:e.endLabelLeft,endRight:e.endLabelRight};return Object.entries(e.terminalLabelSizes??{}).map(([n,r])=>{let i=n.startsWith("start"),o=i?e.arrowTypeStart:e.arrowTypeEnd,l=o&&"none"!==o?6:0;return{terminal:n,text:t[n],width:r.width+2*l,height:r.height+2*l,layoutOptions:{"edgeLabels.placement":i?"TAIL":"HEAD"}}})}function eu(e,t){let n=e.start,r=e.end,i=n?t[n]:void 0,o=r?t[r]:void 0;return i&&o?{source:n,target:r,sourceId:n,targetId:r}:{source:n,target:r}}function eh(e,t,n,r){e.nodes.forEach(i=>{let o=t[i.id];o&&void 0!==n.childrenById[o.id]&&(o.labels=[{text:o.label,width:o?.labelData?.width??50,height:o?.labelData?.height??50}],r.log.debug("UIO node label",o?.labelData?.width,o.padding),o.layoutOptions=G(o,e.config.elk,r.algorithm,r.log),delete o.x,delete o.y,delete o.width,delete o.height)})}function eg(e,t,n,r){r.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((e,i)=>{r.debug("APA01 processing edge",i,":",e);let o=e.sources[0],l=e.targets[0];if(r.debug("APA01 source:",o,"target:",l),r.debug("APA01 nodeDb[source]:",t[o]),r.debug("APA01 nodeDb[target]:",t[l]),t[o]&&t[l]&&t[o].parentId!==t[l].parentId){let e=h(o,l,n);ef(t,o,e,r),ef(t,l,e,r)}})}function ef(e,t,n,r){let i=e[t];i&&(i.layoutOptions??={},"SEPARATE_CHILDREN"===i.layoutOptions["elk.hierarchyHandling"]&&B(i.metadata?.algorithm)&&(r.debug("Dropping explicit algorithm for node",i.id,"due to cross-boundary edges"),_(i.layoutOptions),Object.assign(i.layoutOptions,F(i))),i.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",i.id!==n&&i.parentId&&ef(e,i.parentId,n,r))}async function ep(e,t,n){let r=globalThis.__mermaidProfiler;try{let i;r?.begin("layoutCore");try{i=await e.layout(t)}finally{r?.end()}return n.debug("APA01 after - success"),n.debug("APA01 layout result:",i),i}catch(e){throw n.error("ELK layout error:",e),e}}function ec(e,t,n,r){let i=new Map(e.nodes.map(e=>[e.id,e]));em(t.children??[],n,i,0,0,0,r),eb(t.children??[],n,i,t),ev(e,t,n,r)}function ey(e,t=new Set){for(let n of e.children??[])t.add(n.id),ey(n,t);return t}function ex(e,t,n,r){let i=[];for(let o of e.edges??[]){let e=o.sources?.[0]??o.start,l=o.targets?.[0]??o.end,a=t.has(e)&&t.has(l),s=e===r,d=l===r;if(!a&&!s&&!d)continue;let u=eF(e,l,n.parentLookupDb,n.nodeDb);for(let e of o.sections??[])for(let t of a?[e.startPoint,...e.bendPoints??[],e.endPoint]:[s?e.startPoint:null,d?e.endPoint:null])t&&i.push({x:t.x+u.x,y:t.y+u.y})}return i}function eb(e,t,n,r={}){for(let i of e){if(!i?.isGroup)continue;let e=i.children??[];eb(e,t,n,r);let o=t.nodeDb[i.id],l=e.map(e=>t.nodeDb[e.id]).filter(e=>e?.offset&&e.width&&e.height);if(!o?.offset||0===l.length)continue;let a=ex(r,ey(i),t,i.id),s=[...l.map(e=>e.offset.posX),...l.map(e=>e.offset.posX+e.width),...a.map(e=>e.x)],d=[...l.map(e=>e.offset.posY),...l.map(e=>e.offset.posY+e.height),...a.map(e=>e.y)],u=o.offset,h=Math.max(u.posX,Math.min(...s)-24),g=Math.min(u.posX+o.width,Math.max(...s)+24),f=Math.min(u.posY+o.height,Math.max(...d)+24),p=u.posY,c=X(i),y=h,x=g-h;if(x<c){y-=(c-x)/2,x=c;let e=u.posX+o.width;y=Math.max(u.posX,Math.min(y,e-x)),x=Math.min(x,o.width)}let b=f-p;if(b<=0||x<=0)continue;o.elkOrigin??={posX:u.posX,posY:u.posY},o.offset.posX=y,o.offset.width=x,o.offset.height=b,o.width=x,o.height=b,o.x=y+x/2,o.y=p+b/2;let m=n.get(i.id);m&&(m.x=o.x,m.y=o.y,m.width=x,m.height=b)}}function em(e,t,n,r,i,o,l){e.forEach(e=>{if(!e)return;let a=t.nodeDb[e.id]??e,s=Math.max(e.width,e.labels&&e.labels[0]?.width||0),d={posX:e.x+r,posY:e.y+i,x:r,y:i,depth:o,width:s,height:e.height};a.offset=d,a.x=d.posX+e.width/2,a.y=d.posY+e.height/2,a.width=e.width,a.height=e.height;let u=n.get(e.id);u&&(u.x=a.x,u.y=a.y,u.width=e.isGroup?Math.max(e.width,e.labelData?.width??0):e.width,u.height=e.height,u.labelData=e.labelData,u.labels=e.labels),e.isGroup?(l.debug("Id abc88 subgraph = ",e.id,e.x,e.y,e.labelData),em(e.children??[],t,n,d.posX,d.posY,o+1,l)):l.info("Id NODE = ",e.id,e.x,e.y,r,i,`translate(${a.x}, ${a.y})`)})}function ek(e,t){let n=Math.abs(t.x-e.x),r=Math.abs(t.y-e.y);return n>.01&&r<=.01?"h":r>.01&&n<=.01?"v":void 0}function ew(e){let t=[],n=e,r=eE(n);r&&(n=r.points,t.push(r.run));let i=eE([...n].reverse());return i&&(n=i.points.reverse(),t.push(i.run)),{points:n,runs:t}}function eE(e){if(e.length<5)return null;let[t,n,r,i]=e,o=ek(t,n);if(!o||ek(r,i)!==o||ek(n,r)!==("h"===o?"v":"h")||Math.hypot(n.x-t.x,n.y-t.y)>30)return null;let l="h"===o?Math.abs(r.y-n.y):Math.abs(r.x-n.x);if(l<.01||l>16||!("h"===o?Math.sign(n.x-t.x)===Math.sign(i.x-r.x):Math.sign(n.y-t.y)===Math.sign(i.y-r.y)))return null;let a=3;for(;a+1<e.length&&ek(e[a],e[a+1])===o;)a++;if(a===e.length-1)return null;let s=[...e];for(let n=2;n<=a;n++)s[n]="h"===o?{x:e[n].x,y:t.y}:{x:t.x,y:e[n].y};let d={old:{a:e[2],b:e[a]},new:{a:s[2],b:s[a]}};return s.splice(1,2),{points:s,run:d}}function eM(e,t,n,r){let i=(0,s.K)((e,t,n)=>(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x),"side"),o=i(n,r,e),l=i(n,r,t),a=i(e,t,n),d=i(e,t,r);return(o>0&&l<0||o<0&&l>0)&&(a>0&&d<0||a<0&&d>0)}function eK(e,t){let n=0;for(let r=0;r<e.length-1;r++)for(let i=0;i<t.length-1;i++)eM(e[r],e[r+1],t[i],t[i+1])&&n++;return n}function eL(e,t,n){let r=n.x-t.x,i=n.y-t.y,o=r*r+i*i;return 0===o?0:Math.max(0,Math.min(1,((e.x-t.x)*r+(e.y-t.y)*i)/o))}function eS(e,t,n){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function eO(e,t){let n=null;for(let r of t){let t=eL(e,r.old.a,r.old.b),i=eS(r.old.a,r.old.b,t),o=i.x-e.x,l=i.y-e.y,a=o*o+l*l;(!n||a<n.distSq)&&(n={distSq:a,point:eS(r.new.a,r.new.b,t)})}return n?.point??null}function eP(e,t,n){let r=0,i=1,o=t.x-e.x,l=t.y-e.y;for(let[t,a]of[[-o,e.x-n.x1],[o,n.x2-e.x],[-l,e.y-n.y1],[l,n.y2-e.y]])if(0===t){if(a<0)return!1}else t<0?r=Math.max(r,a/t):i=Math.min(i,a/t);return r<i}(0,s.K)(et,"resolveElkPreset"),(0,s.K)(en,"createRootElkGraph"),(0,s.K)(er,"addSubGraphs"),(0,s.K)(ei,"addVertices"),(0,s.K)(eo,"addVertex"),(0,s.K)(el,"createElkNode"),(0,s.K)(ea,"getMeasuredLabelData"),(0,s.K)(es,"addEdgesToElkGraph"),(0,s.K)(ed,"terminalElkLabels"),(0,s.K)(eu,"getEdgeStartEndPoint"),(0,s.K)(eh,"configureSubgraphNodes"),(0,s.K)(eg,"configureCrossHierarchyEdges"),(0,s.K)(ef,"setIncludeChildrenPolicy"),(0,s.K)(ep,"runElkLayout"),(0,s.K)(ec,"applyElkLayoutResult"),(0,s.K)(ey,"collectDescendantIds"),(0,s.K)(ex,"internalEdgePoints"),(0,s.K)(eb,"evenGroupFrames"),(0,s.K)(em,"applyElkNodePositions"),(0,s.K)(ek,"axisOf"),(0,s.K)(ew,"straightenTerminalJogsWithRuns"),(0,s.K)(eE,"straightenFront"),(0,s.K)(eM,"segmentsCrossStrict"),(0,s.K)(eK,"crossingCount"),(0,s.K)(eL,"paramOnSegment"),(0,s.K)(eS,"pointAtParam"),(0,s.K)(eO,"projectLabelOntoStraightenedRun"),(0,s.K)(eP,"segmentHitsBox");var eI=(0,s.K)((e,t)=>({x1:e.x-t.width/2,y1:e.y-t.height/2,x2:e.x+t.width/2,y2:e.y+t.height/2}),"labelBox");function eA(e){let t=e.map(e=>e.points??[]),n=e.map(e=>null!=e.x&&null!=e.y&&e.label&&e.width&&e.height?{centre:{x:e.x,y:e.y},size:{width:e.width,height:e.height}}:void 0),r=(0,s.K)((e,t)=>{let n=t&&eI(t.centre,t.size);return!!n&&e.some((t,r)=>r<e.length-1&&eP(t,e[r+1],n))},"covers"),i=[];for(let[o,l]of e.entries()){let e=t[o];if(e.length<5)continue;let{points:a,runs:s}=ew(e);if(a===e)continue;let d=n[o],u=d&&eO(d.centre,s),h=d&&u?{centre:u,size:d.size}:d,g=0,f=0,p=0,c=0;for(let[i,l]of t.entries())i===o||l.length<2||(g+=eK(e,l),f+=eK(a,l),p+=Number(r(l,d))+Number(r(e,n[i])),c+=Number(r(l,h))+Number(r(a,n[i])));f>g||c>p||(l.points=a,t[o]=a,n[o]=h,i.push({edge:l,runs:s}))}return i}function ev(e,t,n,r){let i=new Map(e.edges.map(e=>[e.id,e])),o=e.config.elk?.straightenEdges!==!1,l=new Map;for(let t of e.edges)delete t.terminalLabelCenters;let a=new Map(e.nodes.map(e=>[e.id,e])),d=new Set;if(t.edges?.forEach(e=>{if(!e.sections?.length)return;let t=n.nodeDb[e.sources?.[0]??e.start],r=n.nodeDb[e.targets?.[0]??e.end];if(!t||!r)return;let i=eF(e.start??e.sourceId??e.sources?.[0],e.end??e.targetId??e.targets?.[0],n.parentLookupDb,n.nodeDb),o=e.sections[0];"rect33"!==t.shape&&e$(t,{x:o.startPoint.x+i.x,y:o.startPoint.y+i.y},a,d),"rect33"!==r.shape&&e$(r,{x:o.endPoint.x+i.x,y:o.endPoint.y+i.y},a,d)}),t.edges?.forEach(e=>{let t=i.get(e.id);if(!t)return;let o=!0===e.layoutReversed,a=e.sources?.[0]??e.start,d=e.targets?.[0]??e.end;o&&([a,d]=[d,a]);let u=n.nodeDb[a],h=n.nodeDb[d];if(!u||!h)return;if(!e.sections?.length){let n=(0,s.K)(e=>({x:(e.offset?.posX??e.x??0)+(e.width??0)/2,y:(e.offset?.posY??e.y??0)+(e.height??0)/2}),"centre"),i=n(u),o=n(h);u.x=i.x,u.y=i.y,h.x=o.x,h.y=o.y;let l=eG([i,o],u,h,r);t.points=l,t.curve="linear";let a=l[0],d=l[l.length-1];t.x=(a.x+d.x)/2,t.y=(a.y+d.y)/2,r.debug("APA18 no edge sections, using a straight line",e.id,t.points);return}let g=e.start??e.sourceId??a,f=e.end??e.targetId??d,p=eF(g,f,n.parentLookupDb,n.nodeDb);r.debug("APA18 offset",p,g," ==> ",f,"edge:",e,u);let c=eX(e.sections[0],p);o&&c.reverse();let y={start:c[0],end:c[c.length-1]};u.x=u.offset.posX+u.width/2,u.y=u.offset.posY+u.height/2,h.x=h.offset.posX+h.width/2,h.y=h.offset.posY+h.height/2,"rect33"!==u.shape&&c.unshift({x:u.x,y:u.y}),"rect33"!==h.shape&&c.push({x:h.x,y:h.y}),t.points=eU(ez(eG(c,u,h,r),e1(h),eH(t),r),e1(u),eW(t),r),t.curve="rounded";let x=e.labels?.[0];for(let n of(x&&(t.x=x.x+p.x+x.width/2,t.y=x.y+p.y+x.height/2),e.labels??[]))n.terminal&&(n.x||n.y)&&(t.terminalLabelCenters??={},t.terminalLabelCenters[n.terminal]={x:n.x+p.x+n.width/2,y:n.y+p.y+n.height/2});t.terminalLabelCenters&&l.set(t,y)}),o)for(let{edge:t,runs:n}of eA(e.edges)){if(null==t.x||null==t.y)continue;let e=eO({x:t.x,y:t.y},n);e&&(t.x=e.x,t.y=e.y)}for(let[e,t]of l)eB(e,t);e_(e.edges,e.nodes),eR(e.edges,e.nodes),eN(e.edges)}function eN(e){let t=new Map;for(let n of e){if(null==n.x||null==n.y||!n.label||!n.width)continue;let e=[n.start??"",n.end??""].sort().join("\0"),r=t.get(e);r?r.push(n):t.set(e,[n])}for(let e of t.values()){if(2!==e.length)continue;let[t,n]=e;if(Math.abs(t.y-n.y)>Math.max(t.height??0,n.height??0))continue;let r=t.width/2+n.width/2+4,i=n.x-t.x,o=r-Math.abs(i);if(o<=0)continue;let l=Math.sign(i)||1;t.x=t.x-l*o/2,n.x=n.x+l*o/2}}(0,s.K)(eA,"straightenEdgeTerminals"),(0,s.K)(ev,"applyElkEdgeLayout"),(0,s.K)(eN,"separateOppositeEdgeLabels");var eT=(0,s.K)((e,t)=>e.x1<t.x2&&t.x1<e.x2&&e.y1<t.y2&&t.y1<e.y2,"boxesOverlap");function eD(e,t){let n=t.filter(e=>void 0!==e.x&&void 0!==e.y),r=(0,s.K)(e=>eI({x:e.x,y:e.y},{width:e.width??0,height:e.height??0}),"boxOf"),i=n.filter(e=>!e.isGroup).map(r),o=n.filter(e=>e.isGroup).map(r).flatMap(({x1:e,y1:t,x2:n,y2:r})=>[[{x:e,y:t},{x:n,y:t}],[{x:n,y:t},{x:n,y:r}],[{x:n,y:r},{x:e,y:r}],[{x:e,y:r},{x:e,y:t}]]),l=e.filter(e=>e.label&&e.width&&e.height&&void 0!==e.x).map(e=>eI({x:e.x,y:e.y},{width:e.width,height:e.height})),a=(0,s.K)((e,t=0)=>{let n={x1:e.x1-t,y1:e.y1-t,x2:e.x2+t,y2:e.y2+t};return o.some(([e,t])=>eP(e,t,n))},"hitsFrame"),d=(0,s.K)((t,n,r,o,s=0)=>i.some(e=>eT(t,e))||l.some(e=>eT(t,e))||a(t,s)||e.some(e=>(e.points??[]).some((r,i,l)=>i<l.length-1&&(e!==n||i!==o)&&eP(r,l[i+1],t)))||e.some(e=>Object.entries(e.terminalLabelCenters??{}).some(([i,o])=>{let l=e.terminalLabelSizes?.[i];return(e!==n||i!==r)&&void 0!==l&&eT(t,eI(o,l))})),"blocked");return{hitsFrame:a,blocked:d}}function*eC(e){for(let t of e){let e=t.points;if(e&&!(e.length<2)&&t.terminalLabelCenters&&t.terminalLabelSizes)for(let[n,r]of Object.entries(t.terminalLabelCenters)){let i=t.terminalLabelSizes[n],o=n.startsWith("start"),l=o?0:e.length-2,[a,s]=[e[l],e[l+1]],d=Math.hypot(s.x-a.x,s.y-a.y);i&&0!==d&&(yield{edge:t,key:n,center:r,size:i,atStart:o,segment:l,from:a,to:s,length:d})}}}function e_(e,t){let{hitsFrame:n,blocked:r}=eD(e,t);for(let{edge:t,key:i,center:o,size:l,atStart:a,segment:d,from:u,to:h,length:g}of eC(e)){if(!n(eI(o,l)))continue;let[e,f]=a?[h,u]:[u,h],p={x:(f.x-e.x)/g,y:(f.y-e.y)/g},c=(Math.abs(p.x)*l.width+Math.abs(p.y)*l.height)/2,y=(0,s.K)(e=>(e.x-f.x)*p.x+(e.y-f.y)*p.y,"along"),x=(0,s.K)(e=>y(e)+c<=0&&y(e)-c>=-g,"onSegment");for(let e=1;e<=g;e++){let n=[e,-e].map(e=>({x:o.x+e*p.x,y:o.y+e*p.y})).find(e=>x(e)&&!r(eI(e,l),t,i,d,2));if(n){t.terminalLabelCenters[i]=n;break}}}}function eR(e,t){let{blocked:n}=eD(e,t);for(let{edge:t,key:r,center:i,size:o,segment:l,from:a,to:s,length:d}of eC(e)){let e={x:-(s.y-a.y)/d,y:(s.x-a.x)/d},u=(i.x-a.x)*e.x+(i.y-a.y)*e.y;if(0===u||u>0===r.endsWith("Right"))continue;let h={x:i.x-2*u*e.x,y:i.y-2*u*e.y};n(eI(h,o),t,r,l)||(t.terminalLabelCenters[r]=h)}}function eB(e,t){let n=e.points;if(!n?.length||!e.terminalLabelCenters)return;let r={start:{x:n[0].x-t.start.x,y:n[0].y-t.start.y},end:{x:n[n.length-1].x-t.end.x,y:n[n.length-1].y-t.end.y}};for(let[t,n]of Object.entries(e.terminalLabelCenters)){let i=t.startsWith("start")?r.start:r.end;e.terminalLabelCenters[t]={x:n.x+i.x,y:n.y+i.y}}}function e$(e,t,n,r){let i=e.width??0,o=e.height??0,l=e.offset.posY,a=.5>=Math.abs(t.y-l)||.5>=Math.abs(t.y-(l+o));if((a?i:o)>=24||r.has(e.id))return;r.add(e.id);let s=a?t.x-(e.offset.posX+i/2):t.y-(e.offset.posY+o/2);if(.01>Math.abs(s))return;a?(e.offset.posX+=s,e.x=e.offset.posX+i/2):(e.offset.posY+=s,e.y=e.offset.posY+o/2);let d=n.get(e.id);d&&(d.x=e.offset.posX+i/2,d.y=e.offset.posY+o/2)}function eX(e,t){let n=e.startPoint,r=e.endPoint,i=(e.bendPoints?e.bendPoints:[]).map(e=>({x:e.x+t.x,y:e.y+t.y}));return[{x:n.x+t.x,y:n.y+t.y},...i,{x:r.x+t.x,y:r.y+t.y}]}function eF(e,t,n,r){let i=h(e,t,n);if(void 0===i||"root"===i)return{x:0,y:0};let o=r[i],l=o?.elkOrigin??o?.offset;return{x:l?.posX??0,y:l?.posY??0}}function eG(e,t,n,r){let i,o=Array.isArray(e)?[...e]:[],l=e1(n);r.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",l,k(l,e[e.length-1]));{let e=e1(t),l=e1(n),a=!!t?.isGroup,s=!!n?.isGroup,{candidate:d,centerApprox:u}=e3(o,t,"start"),{candidate:h,centerApprox:g}=e3(o,n,"end"),f=a&&k(e,d),p=s&&k(l,h);e4(o,"start",f&&u),e4(o,"end",p&&g),a&&!f&&(f=e6(o,e,"start")),s&&!p&&(p=e6(o,l,"end")),f||p?(f||e9(o,t,e,r),p||e7(o,n,l,r),r.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:f,skipEnd:p,startCenterApprox:u,endCenterApprox:g,startCandidate:d,endCandidate:h}),i=o):i=te(t,n,o,r)}if(r.debug("PPP cutter2: Points after cutter2:",JSON.stringify(i)),!Array.isArray(i)||i.length<2||eY(i)){r.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",i);let e=o.filter(e=>Number.isFinite(e?.x)&&Number.isFinite(e?.y));i=e.length>=2?e:o}return r.debug("UIO cutter2: Points after cutter2 (sanitized):",i),ej(i,r)}function eY(e){return e?.some(e=>!Number.isFinite(e?.x)||!Number.isFinite(e?.y))}function ej(e,t){let n=e.filter((e,t,n)=>{if(0===t)return!0;let r=n[t-1];return Math.abs(e.x-r.x)>1e-6||Math.abs(e.y-r.y)>1e-6});return n.length!==e.length&&t.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:n}),n}function eH(e){return v(e.arrowTypeEnd)}function eW(e){return v(e.arrowTypeStart)}function eU(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[0],o=e[1],l=Math.hypot(o.x-i.x,o.y-i.y);if(l>=Math.max(8,2*n)||!k(t,o,1))return e;let a=[i,...e.slice(2)];return r.debug("UIO cutter2: removed short start marker segment",{before:e,after:a,markerOffset:n,segmentLength:l}),a}function ez(e,t,n,r){if(n<=0||e.length<3)return e;let i=e[e.length-1],o=e[e.length-2],l=Math.hypot(i.x-o.x,i.y-o.y);if(l>=Math.max(8,2*n)||!k(t,o,1))return e;let a=[...e.slice(0,-2),i];return r.debug("UIO cutter2: removed short end marker segment",{before:e,after:a,markerOffset:n,segmentLength:l}),a}function eV(e,t){let n=e.edges.defaultInterpolate,r=e.edges.defaultStyle,i=t.getConfig();e.edges.forEach(e=>{let o=eZ(e,{defaultStyle:r,defaultInterpolate:n,confCurve:i.curve},t);Object.assign(e,o)})}function eq(e){return void 0!==e.classes?e.classes:e.start&&e.end?`flowchart-link LS_${e.start} LE_${e.end}`:void 0}function eJ(e,t,n){let r="normal",i="solid",o=[],l=[];return"dotted"===e?(i="dotted",o=["fill:none","stroke-width:2px","stroke-dasharray:3"]):"thick"===e?(r="thick",o=["stroke-width: 3.5px","fill:none"]):(o=t??["fill:none"],void 0!==n&&(l=n)),{thickness:r,pattern:i,style:o,labelStyle:l}}function eQ(e,t,n){return void 0!==e?e:void 0!==t?t:n}function eZ(e,t,n){let r={};r.minlen=e.minlen??e.length??1,r.text=e.text??e.label,r.arrowhead=e.arrowhead??("arrow_open"===e.type?"none":"normal");let i=N[e.type??"arrow_open"]??N.arrow_open;r.arrowTypeStart=e.arrowTypeStart??i[0],r.arrowTypeEnd=e.arrowTypeEnd??i[1],r.startLabelRight=e.startLabelRight,r.endLabelLeft=e.endLabelLeft;let o=eJ(e.stroke,t.defaultStyle,t.defaultLabelStyle);r.thickness=e.thickness??o.thickness,r.pattern=e.pattern??o.pattern,r.style=e.style??o.style,r.labelStyle=e.labelStyle??o.labelStyle,r.classes=eq(e),r.curve=n.interpolateToCurve(eQ(e.curve??e.interpolate,t.defaultInterpolate,t.confCurve),d.lUB);let l=(r.text??"")!=="";return void 0!==e.arrowheadStyle?r.arrowheadStyle=e.arrowheadStyle:(l||void 0!==e.style)&&(r.arrowheadStyle="fill: #333"),r.labelpos=e.labelpos??(l?"c":void 0),r.labelType=e.labelType,r.label=(e.label??r.text??"").replace(n.common.lineBreakRegex,"\n"),r}function e0(e){return Math.max(e.width??0,X(e))}function e1(e){let t=e?.isGroup?e0(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:t??0,height:e.height??0,padding:e.padding}}function e2(e,t,n=1e-6){return Math.abs(e-t)<n}function e5(e,t){return e2(e.x,t.x??0)&&e2(e.y,t.y??0)}function e3(e,t,n){if(!e?.length)return{candidate:{x:t.x??0,y:t.y??0},centerApprox:!0};if("start"===n){let n=e[0],r=e5(n,t);return{candidate:r&&e.length>1?e[1]:n,centerApprox:r}}{let n=e[e.length-1],r=e5(n,t);return{candidate:r&&e.length>1?e[e.length-2]:n,centerApprox:r}}}function e4(e,t,n){n&&("start"===t?e.length>0&&e.shift():e.length>0&&e.pop())}function e6(e,t,n){let r="start"===n?1:-1,i="start"===n?0:e.length-1,o=i;for(;i>=0&&i<e.length&&!E(t,e[i]);)i+=r;if(i===o||i<0||i>=e.length)return!1;let l=e[i],a=e[i-r],s=l.x-a.x,d=l.y-a.y,u=Math.min(0===s?1/0:(t.x+Math.sign(s)*t.width/2-a.x)/s,0===d?1/0:(t.y+Math.sign(d)*t.height/2-a.y)/d),h={x:a.x+u*s,y:a.y+u*d};return"start"===n?e.splice(0,i,h):e.splice(i+1,e.length-i-1,h),!0}function e9(e,t,n,r){let i=-1;for(let[t,r]of e.entries())if(E(n,r)){i=t;break}if(-1!==i){let o=I(t,n,e[i],e[0]);A(e,"start",o),r.debug("UIO cutter2: start-only intersection applied",{startIntersection:o})}}function e7(e,t,n,r){let i=-1;for(let t=e.length-1;t>=0;t--)if(E(n,e[t])){i=t;break}if(-1!==i){let o=I(t,n,e[i],e[e.length-1]);A(e,"end",o),r.debug("UIO cutter2: end-only intersection applied",{endIntersection:o})}}function e8(e,t,n,r,i){if(e?.isGroup)return null;let o=n[r],l=n[r+i];return o&&l?P(e,t,o,l):null}function te(e,t,n,r){let i=e1(e),o=e1(t);if(0===n.length)return[];let l=[...n],a=l[0],s=l[l.length-1];r.debug("PPP cutter2: bounds",{startBounds:i,endBounds:o}),r.debug("PPP cutter2: original points",n);let d=-1;for(let[e,t]of l.entries())-1===d&&E(i,t)&&(d=e);if(-1!==d){let t=l[d],n=e8(e,i,l,d,1)??I(e,i,t,a);r.debug("UIO cutter2: start intersection",n),A(l,"start",n)}let u=null,h=-1;for(let e=l.length-1;e>=0;e--)if(E(o,l[e])){u=l[e],h=e;break}if(!u&&l.length>1&&(u=l[l.length-2],h=l.length-2),u){let e=e8(t,o,l,h,-1)??I(t,o,u,s);r.debug("UIO cutter2: end intersection",{endIntersection:e,outsideIndexForEnd:h}),A(l,"end",e)}if(l.length>1){let e=l[l.length-1],t=l[l.length-2],n=Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2);n<2&&(r.debug("UIO cutter2: trimming tail point (too close)",{distance:n,lastPoint:e,secondLastPoint:t}),l.pop())}return r.debug("UIO cutter2: final points",l),l}(0,s.K)(eD,"terminalLabelObstacles"),(0,s.K)(eC,"placedTerminalLabels"),(0,s.K)(e_,"slideTerminalLabelsOffFrames"),(0,s.K)(eR,"putTerminalLabelsOnTheirSide"),(0,s.K)(eB,"followMovedEndpoints"),(0,s.K)(e$,"alignDegenerateNodeToAnchor"),(0,s.K)(eX,"createEdgePointsFromSection"),(0,s.K)(eF,"calcOffset"),(0,s.K)(eG,"sanitizeElkEdgePoints"),(0,s.K)(eY,"hasInvalidPoint"),(0,s.K)(ej,"dedupeConsecutivePoints"),(0,s.K)(eH,"getEndMarkerPathOffset"),(0,s.K)(eW,"getStartMarkerPathOffset"),(0,s.K)(eU,"ensureStartMarkerSegmentLength"),(0,s.K)(ez,"ensureEndMarkerSegmentLength"),(0,s.K)(eV,"applyElkEdgeRenderData"),(0,s.K)(eq,"buildFallbackEdgeClasses"),(0,s.K)(eJ,"computeStroke"),(0,s.K)(eQ,"getCurve"),(0,s.K)(eZ,"buildEdgeData"),(0,s.K)(e0,"getEffectiveGroupWidth"),(0,s.K)(e1,"boundsFor"),(0,s.K)(e2,"approxEq"),(0,s.K)(e5,"isCenterApprox"),(0,s.K)(e3,"getCandidateBorderPoint"),(0,s.K)(e4,"dropAutoCenterPoint"),(0,s.K)(e6,"clipGroupEndpoint"),(0,s.K)(e9,"applyStartIntersectionIfNeeded"),(0,s.K)(e7,"applyEndIntersectionIfNeeded"),(0,s.K)(e8,"attachAlongDepartureAxis"),(0,s.K)(te,"cutter2")}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9628],{49628:(E,T,R)=>{R.r(T),R.d(T,{conf:()=>A,language:()=>I});let A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9636],{69636:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>i,language:()=>_});let i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*#pragma\\s+region\\b"),end:RegExp("^\\s*#pragma\\s+endregion\\b")}}},_={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m512","__m512d","__m512i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\s*include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword.directive"],{include:"@whitespace"},[/\[\s*\[/,{token:"annotation",next:"@annotation"}],[/[{}()<>\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/[^)]+/,"string.raw"],[/\)$S2\"/,{token:"string.raw.end",next:"@pop"}],[/\)/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]);