fika-editor 3.0.2 → 3.0.4

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 (159) hide show
  1. package/README.md +8 -0
  2. package/dist/embed/{947.js → 183.js} +25 -31
  3. package/dist/embed/_e2e-statika.json +10909 -0
  4. package/dist/embed/agentic-manifest.json +4 -4
  5. package/dist/embed/chunks/{9121.js → 1091.js} +1 -1
  6. package/dist/embed/chunks/112.js +64 -0
  7. package/dist/embed/chunks/1131.css +1 -1
  8. package/dist/embed/chunks/1131.js +1 -1
  9. package/dist/embed/chunks/{7854.js → 1483.js} +1 -1
  10. package/dist/embed/chunks/1488.js +93 -0
  11. package/dist/embed/chunks/1668.js +1 -1
  12. package/dist/embed/chunks/1742.js +90 -0
  13. package/dist/embed/chunks/190.js +1 -0
  14. package/dist/embed/chunks/2062.js +94 -0
  15. package/dist/embed/chunks/{1904.js → 2214.js} +1 -1
  16. package/dist/embed/chunks/2395.js +1 -0
  17. package/dist/embed/chunks/2595.js +1 -0
  18. package/dist/embed/chunks/{7594.js → 2619.js} +1 -1
  19. package/dist/embed/chunks/2638.js +1 -0
  20. package/dist/embed/chunks/2807.js +1 -1
  21. package/dist/embed/chunks/2853.js +1 -0
  22. package/dist/embed/chunks/2982.js +24 -0
  23. package/dist/embed/chunks/3009.js +1 -0
  24. package/dist/embed/chunks/3017.js +1 -0
  25. package/dist/embed/chunks/3084.js +27 -0
  26. package/dist/embed/chunks/3270.js +62 -0
  27. package/dist/embed/chunks/3275.js +226 -0
  28. package/dist/embed/chunks/3312.js +1 -0
  29. package/dist/embed/chunks/3671.js +1 -0
  30. package/dist/embed/chunks/4000.js +23 -0
  31. package/dist/embed/chunks/4392.js +41 -0
  32. package/dist/embed/chunks/4467.js +1 -1
  33. package/dist/embed/chunks/451.js +32 -0
  34. package/dist/embed/chunks/4630.js +148 -0
  35. package/dist/embed/chunks/4764.js +1 -0
  36. package/dist/embed/chunks/{4552.js → 4779.js} +1 -1
  37. package/dist/embed/chunks/4929.js +215 -0
  38. package/dist/embed/chunks/4936.js +12 -12
  39. package/dist/embed/chunks/4975.js +98 -97
  40. package/dist/embed/chunks/5216.js +1 -1
  41. package/dist/embed/chunks/5250.js +153 -1
  42. package/dist/embed/chunks/529.js +36 -0
  43. package/dist/embed/chunks/5428.js +1 -0
  44. package/dist/embed/chunks/{4619.js → 549.js} +2 -2
  45. package/dist/embed/chunks/5493.js +1 -0
  46. package/dist/embed/chunks/5681.js +1 -0
  47. package/dist/embed/chunks/5863.js +1 -0
  48. package/dist/embed/chunks/612.js +1 -0
  49. package/dist/embed/chunks/6520.js +1 -0
  50. package/dist/embed/chunks/6762.js +1 -0
  51. package/dist/embed/chunks/6771.js +1 -0
  52. package/dist/embed/chunks/7029.js +1 -0
  53. package/dist/embed/chunks/7057.js +1 -0
  54. package/dist/embed/chunks/7091.js +1 -0
  55. package/dist/embed/chunks/718.js +1 -0
  56. package/dist/embed/chunks/7276.js +79 -0
  57. package/dist/embed/chunks/7305.js +115 -0
  58. package/dist/embed/chunks/7463.js +1 -1
  59. package/dist/embed/chunks/7471.js +1 -0
  60. package/dist/embed/chunks/7798.js +1 -0
  61. package/dist/embed/chunks/788.js +29 -19
  62. package/dist/embed/chunks/7946.js +1 -0
  63. package/dist/embed/chunks/{3729.js → 8407.js} +16 -4
  64. package/dist/embed/chunks/8628.js +1 -0
  65. package/dist/embed/chunks/8665.js +1 -0
  66. package/dist/embed/chunks/9009.js +1 -0
  67. package/dist/embed/chunks/9010.js +1 -0
  68. package/dist/embed/chunks/9256.js +8 -0
  69. package/dist/embed/chunks/9464.js +77 -0
  70. package/dist/embed/chunks/9678.js +1 -0
  71. package/dist/embed/chunks/{273.js → 9686.js} +1 -1
  72. package/dist/embed/chunks/9918.js +138 -0
  73. package/dist/embed/fika-embed.css +1 -1
  74. package/dist/embed/fika-embed.js +9 -3
  75. package/dist/types/components/Draggable.d.ts +1 -1
  76. package/dist/types/components/Slider.d.ts +1 -0
  77. package/dist/types/configs/animation.d.ts +1 -1
  78. package/dist/types/configs/transitions.d.ts +28 -0
  79. package/dist/types/embed/agentic/types.d.ts +7 -0
  80. package/dist/types/embed/types.d.ts +8 -0
  81. package/dist/types/i18n/i18n-types.d.ts +202 -34
  82. package/dist/types/paint/rasterResources.d.ts +7 -0
  83. package/dist/types/paint/scheduler.d.ts +17 -0
  84. package/dist/types/paint/slidePainter.d.ts +17 -0
  85. package/dist/types/paint/textPainter.d.ts +31 -0
  86. package/dist/types/store/importConfirm.d.ts +6 -1
  87. package/dist/types/store/index.d.ts +2 -2
  88. package/dist/types/store/slides.d.ts +14 -5
  89. package/dist/types/types/slides.d.ts +3 -2
  90. package/dist/types/utils/elementOutline.d.ts +33 -3
  91. package/dist/types/utils/exportFonts.d.ts +7 -3
  92. package/dist/types/utils/importApply.d.ts +10 -0
  93. package/dist/types/utils/importTransition.d.ts +19 -0
  94. package/dist/types/utils/layerStack.d.ts +24 -0
  95. package/dist/types/utils/liveElementOffset.d.ts +6 -5
  96. package/dist/types/utils/mediaIntern.d.ts +9 -0
  97. package/dist/types/utils/textFit.d.ts +14 -6
  98. package/dist/types/views/Editor/Canvas/LayerStackPanel.d.ts +14 -0
  99. package/dist/types/views/Editor/Toolbar/common/ElementOutline.d.ts +2 -0
  100. package/dist/types/views/components/ThumbnailSlide/CanvasSlideThumb.d.ts +11 -0
  101. package/dist/types/views/components/ThumbnailSlide/index.d.ts +2 -7
  102. package/package.json +21 -17
  103. package/dist/embed/chunks/1169.js +0 -1
  104. package/dist/embed/chunks/1505.js +0 -8
  105. package/dist/embed/chunks/1605.js +0 -1
  106. package/dist/embed/chunks/1804.js +0 -8
  107. package/dist/embed/chunks/1916.js +0 -1
  108. package/dist/embed/chunks/1932.js +0 -1
  109. package/dist/embed/chunks/2143.js +0 -62
  110. package/dist/embed/chunks/2246.js +0 -1
  111. package/dist/embed/chunks/2289.js +0 -80
  112. package/dist/embed/chunks/2632.js +0 -1
  113. package/dist/embed/chunks/2796.js +0 -34
  114. package/dist/embed/chunks/3088.js +0 -1
  115. package/dist/embed/chunks/3443.js +0 -1
  116. package/dist/embed/chunks/3581.js +0 -77
  117. package/dist/embed/chunks/397.js +0 -1
  118. package/dist/embed/chunks/4335.js +0 -1
  119. package/dist/embed/chunks/435.js +0 -1
  120. package/dist/embed/chunks/4354.js +0 -27
  121. package/dist/embed/chunks/4359.js +0 -1
  122. package/dist/embed/chunks/4515.js +0 -1
  123. package/dist/embed/chunks/4607.js +0 -1
  124. package/dist/embed/chunks/4625.js +0 -153
  125. package/dist/embed/chunks/4794.js +0 -1
  126. package/dist/embed/chunks/4891.js +0 -226
  127. package/dist/embed/chunks/5026.js +0 -1
  128. package/dist/embed/chunks/5480.js +0 -1
  129. package/dist/embed/chunks/5659.js +0 -64
  130. package/dist/embed/chunks/5792.js +0 -141
  131. package/dist/embed/chunks/5889.js +0 -1
  132. package/dist/embed/chunks/5901.js +0 -1
  133. package/dist/embed/chunks/6014.js +0 -1
  134. package/dist/embed/chunks/627.js +0 -115
  135. package/dist/embed/chunks/6522.js +0 -1
  136. package/dist/embed/chunks/6567.js +0 -1
  137. package/dist/embed/chunks/6778.js +0 -1
  138. package/dist/embed/chunks/6999.js +0 -93
  139. package/dist/embed/chunks/7048.js +0 -1
  140. package/dist/embed/chunks/7101.js +0 -1
  141. package/dist/embed/chunks/717.js +0 -148
  142. package/dist/embed/chunks/7175.js +0 -90
  143. package/dist/embed/chunks/7311.js +0 -23
  144. package/dist/embed/chunks/7376.js +0 -1
  145. package/dist/embed/chunks/7588.js +0 -41
  146. package/dist/embed/chunks/7916.js +0 -79
  147. package/dist/embed/chunks/809.js +0 -1
  148. package/dist/embed/chunks/810.js +0 -1
  149. package/dist/embed/chunks/8212.js +0 -36
  150. package/dist/embed/chunks/8239.js +0 -1
  151. package/dist/embed/chunks/8620.js +0 -1
  152. package/dist/embed/chunks/8716.js +0 -215
  153. package/dist/embed/chunks/8941.js +0 -1
  154. package/dist/embed/chunks/9465.js +0 -5
  155. package/dist/embed/chunks/9761.js +0 -1
  156. package/dist/embed/chunks/9976.js +0 -1
  157. package/dist/types/views/components/ThumbnailSlide/LiveSlideThumb.d.ts +0 -21
  158. package/dist/types/views/components/ThumbnailSlide/thumbSnapshot.d.ts +0 -54
  159. /package/dist/embed/{947.css → 183.css} +0 -0
@@ -1 +1 @@
1
- export const __rspack_esm_id=1668;export const __rspack_esm_ids=[1668];export const __webpack_modules__={80509(e,t,r){r.r(t);var i=r(71710),n=r.n(i),a=r(72325),l=r(41884),o=r(47729);let u=72/914400,f={none:"no",fade:"fade",fadeThroughBlack:"fade",push:"slideX",wipe:"slideX",cover:"slideX",uncover:"slideX",pull:"slideX",split:"slideY",blinds:"slideY",checker:"slideX",comb:"slideX",random:"random",randomBar:"random",cut:"no",dissolve:"fade",wheel:"rotate",wedge:"rotate",circle:"scale",diamond:"scale",plus:"scale",newsflash:"rotate",zoom:"scale",warp:"scale",flip:"slideX3D",gallery:"slideX",conveyor:"slideX",doors:"slideX",window:"slideX",ferris:"rotate",flythrough:"scale",crush:"scaleReverse",peelOff:"slideX",pageCurl:"slideX",airplane:"slideX",origami:"rotate",morph:"fade",prism:"slideX3D",pan:"slideX",glitter:"fade",honeycomb:"fade",flash:"fade",shred:"fade",switch:"slideX",flipover:"slideX3D"};function s(e){if(!e?.type||"none"===e.type)return;let t=e.type.replace(/^p\d{0,2}:/,""),r=(e.direction||"").toLowerCase();return"push"===t||"wipe"===t||"cover"===t||"uncover"===t||"pull"===t?"u"===r||"d"===r?"slideY":"slideX":"split"===t||"blinds"===t?"vert"===r||"l"===r||"r"===r?"slideX":"slideY":"zoom"===t||"warp"===t?"out"===r?"scaleReverse":"scale":"flip"===t?"u"===r||"d"===r?"slideY3D":"slideX3D":f[t]}function d(e){return e.replace(/\u00a0/g," ").replace(/[\u{1D400}-\u{1D7FF}]/gu,e=>{let t=e.codePointAt(0);return t>=119808&&t<=119833?String.fromCharCode(65+(t-119808)):t>=119834&&t<=119859?String.fromCharCode(97+(t-119834)):t>=119860&&t<=119885?String.fromCharCode(65+(t-119860)):t>=119886&&t<=119911?String.fromCharCode(97+(t-119886)):t>=119912&&t<=119937?String.fromCharCode(65+(t-119912)):t>=119938&&t<=119963?String.fromCharCode(97+(t-119938)):t>=120782&&t<=120791?String.fromCharCode(48+(t-120782)):t>=120792&&t<=120801?String.fromCharCode(48+(t-120792)):t>=120802&&t<=120811?String.fromCharCode(48+(t-120802)):t>=120812&&t<=120821?String.fromCharCode(48+(t-120812)):t>=120822&&t<=120831?String.fromCharCode(48+(t-120822)):e}).trim()}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d(e.latex||"");if(!r)return null;let i="";try{i=new o.j(r).pathd({})}catch{i=""}let n=Math.max(1,e.width||1),a=Math.max(1,e.height||1);return{type:"latex",id:t.id||(0,l.Ak)(10),left:e.left,top:e.top,width:n,height:a,rotate:0,latex:r,path:i,color:t.color||"#333333",strokeWidth:2,viewBox:[n,a],fixedRatio:!0}}function p(e,t){if(e)for(let r of e)"string"!=typeof r&&r?.tagName&&(t(r),p(r.children,t))}function m(e){if(!e)return"";let t=e.indexOf(":");return t>=0?e.slice(t+1):e}function h(e){return e?"string"==typeof e?e:e.children?.length?e.children.map(e=>h(e)).join(""):"":""}function g(e,t){if(e?.children){for(let r of e.children)if("string"!=typeof r&&m(r.tagName)===t)return r}}function b(e){let t=new Map;return e&&p((0,a.qg)(e),e=>{let r=m(e.tagName);if("cmAuthor"!==r&&"author"!==r)return;let i=e.attributes?.id,n=e.attributes?.name||e.attributes?.initials||"Author";null!=i&&t.set(String(i),n)}),t}function I(e){let t=g(e,"txBody");if(!t)return"";let r=[];return p(t.children,e=>{if("t"!==m(e.tagName))return;let t=h(e).trim();t&&r.push(t)}),r.join(" ")}function w(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t){if(!e)continue;let t=Date.parse(e);if(!Number.isNaN(t))return t}return Date.now()}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(!e)return[];let r=(0,a.qg)(e),i=[];return p(r,e=>{var r;if("cm"!==m(e.tagName))return;let n=e.attributes?.authorId??"",a=g(e,"text"),o=(a?h(a):I(e)).trim();if(!o)return;let u=(r=g(e,"replyLst"),!r?.children?[]:r.children.filter(e=>"string"!=typeof e&&"reply"===m(e.tagName))).map(e=>{let r=I(e).trim(),i=e.attributes?.authorId??"";return{id:(0,l.Ak)(10),content:r,time:w(e.attributes?.created,e.attributes?.dt),user:t.get(String(i))||"Author"}}).filter(e=>!!e.content);i.push({id:(0,l.Ak)(10),content:o,time:w(e.attributes?.startDate,e.attributes?.dt),user:t.get(String(n))||"Author",...u.length?{replies:u}:{}})}),i}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return y(e,t)}function v(e){return Number(e||0)*u}function N(e){let t="000000",r=1;return p(e?.children,e=>{let i=m(e.tagName);if("srgbClr"===i&&e.attributes?.val&&(t=e.attributes.val.replace(/^#/,"")),"schemeClr"===i&&e.attributes?.val&&(t=e.attributes.val),"alpha"===i&&e.attributes?.val){let t=Number(e.attributes.val);Number.isFinite(t)&&(r=t>1?t/1e5:t)}}),{color:t.startsWith("#")?t:`#${t}`,opacity:r}}function S(e){if(!e)return;let t={};for(let r of e.children||[]){if("string"==typeof r)continue;let e=m(r.tagName),i=r.attributes||{};if("glow"===e){let{color:e,opacity:n}=N(r);t.glow={color:e,opacity:n,radius:v(i.rad)}}else if("innerShdw"===e){let{color:e,opacity:n}=N(r),a=v(i.dist),l=Number(i.dir||0)/6e4*Math.PI/180;t.innerShadow={color:e,opacity:n,blur:v(i.blurRad),h:a*Math.cos(l),v:a*Math.sin(l)}}else"softEdge"===e?t.softEdge={radius:v(i.rad)}:"reflection"===e&&(t.reflection={blur:v(i.blurRad),direction:Number(i.dir||0)/6e4,distance:v(i.dist),opacity:null!=i.stA?Number(i.stA)/1e5:.5,scaleY:null!=i.sy?Number(i.sy)/1e5:-1})}return Object.keys(t).length?t:void 0}function k(e,t){if(!e)return[];let r=(0,a.qg)(e),i=[],n=0;return p(r,e=>{let r;if(!["sp","pic","cxnSp","graphicFrame","grpSp"].includes(m(e.tagName)))return;for(let t of["nvSpPr","nvPicPr","nvCxnSpPr","nvGraphicFramePr","nvGrpSpPr"]){let i=g(e,t);if(r=g(i,"cNvPr"))break}let a=r?.attributes?.id;if(null==a||""===a)return;let l=function(e){let t;for(let r of["spPr","picPr","grpSpPr","xfrm"]){if("xfrm"===m(e.tagName)){t=e;break}let i=g(e,r);if(t=g(i,"xfrm")||("xfrm"===m(i?.tagName)?i:void 0))break}t||(t=g(e,"xfrm"));let r=g(t,"off"),i=g(t,"ext"),n=Number(r?.attributes?.x||0)*u,a=Number(r?.attributes?.y||0)*u;return{left:n,top:a,width:Number(i?.attributes?.cx||0)*u,height:Number(i?.attributes?.cy||0)*u}}(e),o=g(e,"spPr")||g(e,"grpSpPr"),f=S(g(o,"effectLst"));i.push({order:n++,objectId:String(a),name:r?.attributes?.name,partPath:t,...l,...f?{effects:f}:{}})}),i}async function C(e,t){let r=e.file(t)||e.file(t.replace(/^\//,""));return r?r.async("text"):null}async function O(e){if("u">typeof crypto&&crypto.subtle)return[...new Uint8Array(await crypto.subtle.digest("SHA-256",e))].map(e=>e.toString(16).padStart(2,"0")).join("").slice(0,32);let t=new Uint8Array(e),r=0x811c9dc5;for(let e=0;e<t.length;e+=Math.max(1,Math.floor(t.length/4096)))r^=t[e],r=Math.imul(r,0x1000193);return`pkg_${(r>>>0).toString(16)}_${t.length.toString(16)}`}let X={clickEffect:"click",withEffect:"meantime",afterEffect:"auto",clickPar:"click",withGroup:"meantime",afterGroup:"auto",interactiveSeq:"click"},P={onClick:"click",withPrevious:"meantime",afterPrevious:"auto",click:"click",meantime:"meantime",auto:"auto"},M={entr:"in",exit:"out",emph:"attention",path:"attention"},A=new Set(["verb","mediacall"]),L={1:"fadeInDown",2:"fadeInRight",4:"fadeInUp",8:"fadeInLeft",9:"fadeInTopLeft",3:"fadeInTopRight",12:"fadeInBottomLeft",6:"fadeInBottomRight"},j={1:"fadeOutUp",2:"fadeOutRight",4:"fadeOutDown",8:"fadeOutLeft",9:"fadeOutTopLeft",3:"fadeOutTopRight",12:"fadeOutBottomLeft",6:"fadeOutBottomRight"},_={1:"appear",2:"fadeInLeft",3:"zoomIn",4:"zoomIn",5:"fadeIn",6:"zoomIn",7:"zoomIn",8:"fadeIn",9:"flash",10:"fadeIn",12:"zoomIn",13:"zoomIn",14:"fadeIn",15:"fadeIn",16:"fadeIn",19:"fadeInLeft",20:"zoomIn",21:"fadeIn",22:"fadeInLeft",23:"bounceIn",26:"bounceIn",27:"backInUp",29:"fadeInUp",31:"flipInX",41:"fadeIn",42:"backInUp",45:"rotateIn",52:"appear",53:"zoomIn"},T={1:"fadeOut",2:"fadeOutLeft",4:"zoomOut",6:"zoomOut",8:"fadeOut",10:"fadeOut",14:"fadeOut",16:"fadeOut",21:"fadeOut",22:"fadeOutLeft",26:"bounceOut",31:"flipOutX",42:"backOutDown",45:"rotateOut",53:"zoomOut"},z={1:"pulse",6:"rubberBand",7:"pulse",8:"tada",9:"pulse",19:"pulse",21:"pulse",24:"pulse",25:"pulse",26:"pulse",27:"pulse",30:"pulse",32:"shakeX"};function D(e,t){var r,i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=n.toLowerCase();if("entr"===e)return 2===t||22===t||19===t||l.includes("wipe")?(r=_[t]||"fadeInLeft",L[a]||r):l.includes("fade")||10===t?"fadeIn":_[t]||"fadeIn";if("exit"===e)return 2===t||22===t||19===t||l.includes("wipe")?(i=T[t]||"fadeOutLeft",j[a]||i):l.includes("fade")||10===t?"fadeOut":T[t]||"fadeOut";return"emph"===e&&z[t]||"pulse"}function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!e||"indefinite"===e)return t;let r=Number(e);return Number.isFinite(r)&&r>=0?r:t}function R(e){return e&&e.includes("<p:timing")?function e(t,r){let i=[];if(!t)return i;for(let n of t){if("string"==typeof n||!n.tagName)continue;let t=m(n.tagName),a=n.attributes||{};if("cTn"===t){let t=a.presetClass,l=a.nodeType,o=l&&X[l]||r,u=t?M[t]:void 0;if(t&&!A.has(t)&&u){let e=o||"click",r="",l="",f=F(a.dur,1e3);p(n.children,e=>{if("spTgt"!==m(e.tagName)||r||(r=e.attributes?.spid||""),"animEffect"===m(e.tagName)&&(l=e.attributes?.filter||l),"cTn"===m(e.tagName)){let t=F(e.attributes?.dur,-1);t>=0&&e.attributes?.dur&&"indefinite"!==e.attributes.dur&&(f=t)}}),r&&i.push({objectId:r,trigger:e,type:u,effect:D(t,Number(a.presetID||0),l,Number(a.presetSubtype||0)),duration:f});continue}i.push(...e(n.children,o));continue}i.push(...e(n.children,r))}return i}((0,a.qg)(e)):[]}function E(e){if(!e?.spid||A.has(e.class))return null;let t=M[e.class],r=P[e.trigger]||X[e.trigger];return t&&r?{objectId:String(e.spid),trigger:r,type:t,effect:D(e.class,e.presetId,e.filter||"",e.presetSubtype||0),duration:e.duration>0?e.duration:1e3}:null}function B(e,t,r){let i=new Map;for(let e of t){let t=e.source?.objectId;t&&!i.has(t)&&i.set(t,e.id)}if(r)for(let[e,t]of r)i.has(e)||i.set(e,t);let n=[];for(let t of e){let e=i.get(t.objectId);e&&n.push({id:(0,l.Ak)(10),elId:e,effect:t.effect,type:t.type,duration:t.duration,trigger:t.trigger})}return n}async function U(e){let t=await O(e),r=await n().loadAsync(e),i=await C(r,"ppt/authors.xml")||await C(r,"ppt/commentAuthors.xml"),l=i?b(i):new Map,o=new Map,u=new Map,f=new Map;for(let e of Object.keys(r.files).filter(e=>/^ppt\/slides\/slide\d+\.xml$/i.test(e)&&!r.files[e].dir).sort((e,t)=>Number(e.match(/slide(\d+)/i)?.[1]||0)-Number(t.match(/slide(\d+)/i)?.[1]||0))){let t=Math.max(0,Number(e.match(/slide(\d+)/i)?.[1]||0)-1),i=await C(r,e);if(i){u.set(t,k(i,e));let r=R(i);r.length&&f.set(t,r)}let n=e.replace("ppt/slides/","ppt/slides/_rels/")+".rels",s=await C(r,n);if(!s)continue;let d=(0,a.qg)(s),c=[];p(d,t=>{if("Relationship"!==m(t.tagName))return;let r=t.attributes?.Type||"";if(!/\/comments/i.test(r)&&!/relationships\/comments/i.test(r))return;let i=t.attributes?.Target;i&&c.push(function(e,t){if(!t)return"";if(t.startsWith("/"))return t.replace(/^\//,"");if(t.startsWith("ppt/"))return t;let r=[...e.split("/").slice(0,-1)];for(let e of t.split("/"))e&&"."!==e&&(".."===e?r.pop():r.push(e));return r.join("/")}(e,i))});let h=[];for(let e of c){let t=await C(r,e);t&&h.push(...y(t,l))}h.length&&o.set(t,h)}return{packageId:t,commentsBySlide:o,identitiesBySlide:u,animationsBySlide:f}}function q(e,t,r){r&&(e.source={packageId:t,partPath:r.partPath,objectId:r.objectId,order:r.order,name:r.name},r.effects&&!e.effects&&(e.effects=r.effects))}function Y(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75;if(!e?.length)return;let i=e.findIndex(e=>Math.abs(e.left-t.left)<=r&&Math.abs(e.top-t.top)<=r&&Math.abs(e.width-t.width)<=r&&Math.abs(e.height-t.height)<=r);if(i<0)return;let[n]=e.splice(i,1);return n}function G(e,t){if(!e?.length||null==t||""===t)return;let r=e.findIndex(e=>e.objectId===String(t));if(r<0)return;let[i]=e.splice(r,1);return i}function W(e,t){if(!e?.length||null==t||!Number.isFinite(t))return;let r=e.findIndex(e=>e.order===t);if(r<0)return;let[i]=e.splice(r,1);return i}r.d(t,{attachElementSource:()=>q,bindImportedAnimations:()=>B,buildLatexElementFromMath:()=>c,extractCNvPrIdentitiesFromSlideXml:()=>k,extractPptxImportExtras:()=>U,extractSlideAnimationsFromXml:()=>R,hashPackageId:()=>O,mapPptxTransitionToTurningMode:()=>s,mapPptxtojsonAnimation:()=>E,mapPresetToEffect:()=>D,normalizeImportedLatex:()=>d,parseCommentAuthorsXml:()=>b,parseCommentsXml:()=>y,parseEffectLst:()=>S,parseLegacyCommentsXml:()=>x,takeIdentityForGeometry:()=>Y,takeIdentityForObjectId:()=>G,takeIdentityForOrder:()=>W})},32088(){},29252(){}};
1
+ export const __rspack_esm_id=1668;export const __rspack_esm_ids=[1668];export const __webpack_modules__={80509(e,t,r){r.r(t);var i=r(71710),n=r.n(i),a=r(72325),o=r(41884),l=r(47729);let u=72/914400,s={none:"no",fade:"fade",fadeThroughBlack:"throughInk",push:"slideX",wipe:"wipe",cover:"slideX",uncover:"reveal",pull:"reveal",split:"doors",blinds:"slideY",checker:"slideX",comb:"slideX",random:"random",randomBar:"random",cut:"no",dissolve:"dissolve",wheel:"rotate",wedge:"rotate",circle:"ripple",diamond:"scale",plus:"scale",newsflash:"rotate",zoom:"scale",warp:"scaleX",flip:"slideX3D",gallery:"slideX",conveyor:"slideX",doors:"doors",window:"doors",ferris:"rotate",flythrough:"flythrough",crush:"scaleReverse",peelOff:"reveal",pageCurl:"reveal",airplane:"flythrough",origami:"rotate",morph:"morph",prism:"slideX3D",pan:"slideX",glitter:"dissolve",honeycomb:"dissolve",flash:"throughInk",shred:"dissolve",switch:"slideX3D",ripple:"ripple",reveal:"reveal",flipover:"slideX3D"};function f(e){if(!e?.type||"none"===e.type)return;let t=e.type.replace(/^p\d{0,2}:/,""),r=(e.direction||"").toLowerCase();return"fade"===t&&("black"===r||"thrublk"===r||"throughblack"===r)?"throughInk":"push"===t?"u"===r||"d"===r?"slideY":"slideX":"wipe"===t?"wipe":"cover"===t?"u"===r||"d"===r?"slideY":"slideX":"uncover"===t||"pull"===t?"reveal":"split"===t||"doors"===t||"window"===t?"doors":"blinds"===t?"vert"===r||"l"===r||"r"===r?"slideX":"slideY":"zoom"===t?"out"===r?"scaleReverse":"scale":"warp"===t?"out"===r?"scaleReverse":"scaleX":"flip"===t?"u"===r||"d"===r?"slideY3D":"slideX3D":"flythrough"===t?"flythrough":"ripple"===t?"ripple":"reveal"===t?"reveal":"morph"===t?"morph":"dissolve"===t?"dissolve":s[t]}function d(e){return e.replace(/\u00a0/g," ").replace(/[\u{1D400}-\u{1D7FF}]/gu,e=>{let t=e.codePointAt(0);return t>=119808&&t<=119833?String.fromCharCode(65+(t-119808)):t>=119834&&t<=119859?String.fromCharCode(97+(t-119834)):t>=119860&&t<=119885?String.fromCharCode(65+(t-119860)):t>=119886&&t<=119911?String.fromCharCode(97+(t-119886)):t>=119912&&t<=119937?String.fromCharCode(65+(t-119912)):t>=119938&&t<=119963?String.fromCharCode(97+(t-119938)):t>=120782&&t<=120791?String.fromCharCode(48+(t-120782)):t>=120792&&t<=120801?String.fromCharCode(48+(t-120792)):t>=120802&&t<=120811?String.fromCharCode(48+(t-120802)):t>=120812&&t<=120821?String.fromCharCode(48+(t-120812)):t>=120822&&t<=120831?String.fromCharCode(48+(t-120822)):e}).trim()}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d(e.latex||"");if(!r)return null;let i="";try{i=new l.j(r).pathd({})}catch{i=""}let n=Math.max(1,e.width||1),a=Math.max(1,e.height||1);return{type:"latex",id:t.id||(0,o.Ak)(10),left:e.left,top:e.top,width:n,height:a,rotate:0,latex:r,path:i,color:t.color||"#333333",strokeWidth:2,viewBox:[n,a],fixedRatio:!0}}function p(e,t){if(e)for(let r of e)"string"!=typeof r&&r?.tagName&&(t(r),p(r.children,t))}function h(e){if(!e)return"";let t=e.indexOf(":");return t>=0?e.slice(t+1):e}function m(e){return e?"string"==typeof e?e:e.children?.length?e.children.map(e=>m(e)).join(""):"":""}function g(e,t){if(e?.children){for(let r of e.children)if("string"!=typeof r&&h(r.tagName)===t)return r}}function b(e){let t=new Map;return e&&p((0,a.qg)(e),e=>{let r=h(e.tagName);if("cmAuthor"!==r&&"author"!==r)return;let i=e.attributes?.id,n=e.attributes?.name||e.attributes?.initials||"Author";null!=i&&t.set(String(i),n)}),t}function I(e){let t=g(e,"txBody");if(!t)return"";let r=[];return p(t.children,e=>{if("t"!==h(e.tagName))return;let t=m(e).trim();t&&r.push(t)}),r.join(" ")}function v(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(let e of t){if(!e)continue;let t=Date.parse(e);if(!Number.isNaN(t))return t}return Date.now()}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(!e)return[];let r=(0,a.qg)(e),i=[];return p(r,e=>{var r;if("cm"!==h(e.tagName))return;let n=e.attributes?.authorId??"",a=g(e,"text"),l=(a?m(a):I(e)).trim();if(!l)return;let u=(r=g(e,"replyLst"),!r?.children?[]:r.children.filter(e=>"string"!=typeof e&&"reply"===h(e.tagName))).map(e=>{let r=I(e).trim(),i=e.attributes?.authorId??"";return{id:(0,o.Ak)(10),content:r,time:v(e.attributes?.created,e.attributes?.dt),user:t.get(String(i))||"Author"}}).filter(e=>!!e.content);i.push({id:(0,o.Ak)(10),content:l,time:v(e.attributes?.startDate,e.attributes?.dt),user:t.get(String(n))||"Author",...u.length?{replies:u}:{}})}),i}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return w(e,t)}function x(e){return Number(e||0)*u}function N(e){let t="000000",r=1;return p(e?.children,e=>{let i=h(e.tagName);if("srgbClr"===i&&e.attributes?.val&&(t=e.attributes.val.replace(/^#/,"")),"schemeClr"===i&&e.attributes?.val&&(t=e.attributes.val),"alpha"===i&&e.attributes?.val){let t=Number(e.attributes.val);Number.isFinite(t)&&(r=t>1?t/1e5:t)}}),{color:t.startsWith("#")?t:`#${t}`,opacity:r}}function k(e){if(!e)return;let t={};for(let r of e.children||[]){if("string"==typeof r)continue;let e=h(r.tagName),i=r.attributes||{};if("glow"===e){let{color:e,opacity:n}=N(r);t.glow={color:e,opacity:n,radius:x(i.rad)}}else if("innerShdw"===e){let{color:e,opacity:n}=N(r),a=x(i.dist),o=Number(i.dir||0)/6e4*Math.PI/180;t.innerShadow={color:e,opacity:n,blur:x(i.blurRad),h:a*Math.cos(o),v:a*Math.sin(o)}}else"softEdge"===e?t.softEdge={radius:x(i.rad)}:"reflection"===e&&(t.reflection={blur:x(i.blurRad),direction:Number(i.dir||0)/6e4,distance:x(i.dist),opacity:null!=i.stA?Number(i.stA)/1e5:.5,scaleY:null!=i.sy?Number(i.sy)/1e5:-1})}return Object.keys(t).length?t:void 0}function S(e,t){if(!e)return[];let r=(0,a.qg)(e),i=[],n=0;return p(r,e=>{let r;if(!["sp","pic","cxnSp","graphicFrame","grpSp"].includes(h(e.tagName)))return;for(let t of["nvSpPr","nvPicPr","nvCxnSpPr","nvGraphicFramePr","nvGrpSpPr"]){let i=g(e,t);if(r=g(i,"cNvPr"))break}let a=r?.attributes?.id;if(null==a||""===a)return;let o=function(e){let t;for(let r of["spPr","picPr","grpSpPr","xfrm"]){if("xfrm"===h(e.tagName)){t=e;break}let i=g(e,r);if(t=g(i,"xfrm")||("xfrm"===h(i?.tagName)?i:void 0))break}t||(t=g(e,"xfrm"));let r=g(t,"off"),i=g(t,"ext"),n=Number(r?.attributes?.x||0)*u,a=Number(r?.attributes?.y||0)*u;return{left:n,top:a,width:Number(i?.attributes?.cx||0)*u,height:Number(i?.attributes?.cy||0)*u}}(e),l=g(e,"spPr")||g(e,"grpSpPr"),s=k(g(l,"effectLst"));i.push({order:n++,objectId:String(a),name:r?.attributes?.name,partPath:t,...o,...s?{effects:s}:{}})}),i}async function C(e,t){let r=e.file(t)||e.file(t.replace(/^\//,""));return r?r.async("text"):null}async function O(e){if("u">typeof crypto&&crypto.subtle)return[...new Uint8Array(await crypto.subtle.digest("SHA-256",e))].map(e=>e.toString(16).padStart(2,"0")).join("").slice(0,32);let t=new Uint8Array(e),r=0x811c9dc5;for(let e=0;e<t.length;e+=Math.max(1,Math.floor(t.length/4096)))r^=t[e],r=Math.imul(r,0x1000193);return`pkg_${(r>>>0).toString(16)}_${t.length.toString(16)}`}let P={clickEffect:"click",withEffect:"meantime",afterEffect:"auto",clickPar:"click",withGroup:"meantime",afterGroup:"auto",interactiveSeq:"click"},X={onClick:"click",withPrevious:"meantime",afterPrevious:"auto",click:"click",meantime:"meantime",auto:"auto"},M={entr:"in",exit:"out",emph:"attention",path:"attention"},A=new Set(["verb","mediacall"]),L={1:"fadeInDown",2:"fadeInRight",4:"fadeInUp",8:"fadeInLeft",9:"fadeInTopLeft",3:"fadeInTopRight",12:"fadeInBottomLeft",6:"fadeInBottomRight"},j={1:"fadeOutUp",2:"fadeOutRight",4:"fadeOutDown",8:"fadeOutLeft",9:"fadeOutTopLeft",3:"fadeOutTopRight",12:"fadeOutBottomLeft",6:"fadeOutBottomRight"},_={1:"appear",2:"fadeInLeft",3:"zoomIn",4:"zoomIn",5:"fadeIn",6:"zoomIn",7:"zoomIn",8:"fadeIn",9:"flash",10:"fadeIn",12:"zoomIn",13:"zoomIn",14:"fadeIn",15:"fadeIn",16:"fadeIn",19:"fadeInLeft",20:"zoomIn",21:"fadeIn",22:"fadeInLeft",23:"bounceIn",26:"bounceIn",27:"backInUp",29:"fadeInUp",31:"flipInX",41:"fadeIn",42:"backInUp",45:"rotateIn",52:"appear",53:"zoomIn"},D={1:"fadeOut",2:"fadeOutLeft",4:"zoomOut",6:"zoomOut",8:"fadeOut",10:"fadeOut",14:"fadeOut",16:"fadeOut",21:"fadeOut",22:"fadeOutLeft",26:"bounceOut",31:"flipOutX",42:"backOutDown",45:"rotateOut",53:"zoomOut"},T={1:"pulse",6:"rubberBand",7:"pulse",8:"tada",9:"pulse",19:"pulse",21:"pulse",24:"pulse",25:"pulse",26:"pulse",27:"pulse",30:"pulse",32:"shakeX"};function z(e,t){var r,i;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=n.toLowerCase();if("entr"===e)return 2===t||22===t||19===t||o.includes("wipe")?(r=_[t]||"fadeInLeft",L[a]||r):o.includes("fade")||10===t?"fadeIn":_[t]||"fadeIn";if("exit"===e)return 2===t||22===t||19===t||o.includes("wipe")?(i=D[t]||"fadeOutLeft",j[a]||i):o.includes("fade")||10===t?"fadeOut":D[t]||"fadeOut";return"emph"===e&&T[t]||"pulse"}function F(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!e||"indefinite"===e)return t;let r=Number(e);return Number.isFinite(r)&&r>=0?r:t}function R(e){return e&&e.includes("<p:timing")?function e(t,r){let i=[];if(!t)return i;for(let n of t){if("string"==typeof n||!n.tagName)continue;let t=h(n.tagName),a=n.attributes||{};if("cTn"===t){let t=a.presetClass,o=a.nodeType,l=o&&P[o]||r,u=t?M[t]:void 0;if(t&&!A.has(t)&&u){let e=l||"click",r="",o="",s=F(a.dur,1e3);p(n.children,e=>{if("spTgt"!==h(e.tagName)||r||(r=e.attributes?.spid||""),"animEffect"===h(e.tagName)&&(o=e.attributes?.filter||o),"cTn"===h(e.tagName)){let t=F(e.attributes?.dur,-1);t>=0&&e.attributes?.dur&&"indefinite"!==e.attributes.dur&&(s=t)}}),r&&i.push({objectId:r,trigger:e,type:u,effect:z(t,Number(a.presetID||0),o,Number(a.presetSubtype||0)),duration:s});continue}i.push(...e(n.children,l));continue}i.push(...e(n.children,r))}return i}((0,a.qg)(e)):[]}function E(e){if(!e?.spid||A.has(e.class))return null;let t=M[e.class],r=X[e.trigger]||P[e.trigger];return t&&r?{objectId:String(e.spid),trigger:r,type:t,effect:z(e.class,e.presetId,e.filter||"",e.presetSubtype||0),duration:e.duration>0?e.duration:1e3}:null}function B(e,t,r){let i=new Map;for(let e of t){let t=e.source?.objectId;t&&!i.has(t)&&i.set(t,e.id)}if(r)for(let[e,t]of r)i.has(e)||i.set(e,t);let n=[];for(let t of e){let e=i.get(t.objectId);e&&n.push({id:(0,o.Ak)(10),elId:e,effect:t.effect,type:t.type,duration:t.duration,trigger:t.trigger})}return n}async function U(e){let t=await O(e),r=await n().loadAsync(e),i=await C(r,"ppt/authors.xml")||await C(r,"ppt/commentAuthors.xml"),o=i?b(i):new Map,l=new Map,u=new Map,s=new Map;for(let e of Object.keys(r.files).filter(e=>/^ppt\/slides\/slide\d+\.xml$/i.test(e)&&!r.files[e].dir).sort((e,t)=>Number(e.match(/slide(\d+)/i)?.[1]||0)-Number(t.match(/slide(\d+)/i)?.[1]||0))){let t=Math.max(0,Number(e.match(/slide(\d+)/i)?.[1]||0)-1),i=await C(r,e);if(i){u.set(t,S(i,e));let r=R(i);r.length&&s.set(t,r)}let n=e.replace("ppt/slides/","ppt/slides/_rels/")+".rels",f=await C(r,n);if(!f)continue;let d=(0,a.qg)(f),c=[];p(d,t=>{if("Relationship"!==h(t.tagName))return;let r=t.attributes?.Type||"";if(!/\/comments/i.test(r)&&!/relationships\/comments/i.test(r))return;let i=t.attributes?.Target;i&&c.push(function(e,t){if(!t)return"";if(t.startsWith("/"))return t.replace(/^\//,"");if(t.startsWith("ppt/"))return t;let r=[...e.split("/").slice(0,-1)];for(let e of t.split("/"))e&&"."!==e&&(".."===e?r.pop():r.push(e));return r.join("/")}(e,i))});let m=[];for(let e of c){let t=await C(r,e);t&&m.push(...w(t,o))}m.length&&l.set(t,m)}return{packageId:t,commentsBySlide:l,identitiesBySlide:u,animationsBySlide:s}}function q(e,t,r){r&&(e.source={packageId:t,partPath:r.partPath,objectId:r.objectId,order:r.order,name:r.name},r.effects&&!e.effects&&(e.effects=r.effects))}function Y(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75;if(!e?.length)return;let i=e.findIndex(e=>Math.abs(e.left-t.left)<=r&&Math.abs(e.top-t.top)<=r&&Math.abs(e.width-t.width)<=r&&Math.abs(e.height-t.height)<=r);if(i<0)return;let[n]=e.splice(i,1);return n}function G(e,t){if(!e?.length||null==t||""===t)return;let r=e.findIndex(e=>e.objectId===String(t));if(r<0)return;let[i]=e.splice(r,1);return i}function W(e,t){if(!e?.length||null==t||!Number.isFinite(t))return;let r=e.findIndex(e=>e.order===t);if(r<0)return;let[i]=e.splice(r,1);return i}r.d(t,{attachElementSource:()=>q,bindImportedAnimations:()=>B,buildLatexElementFromMath:()=>c,extractCNvPrIdentitiesFromSlideXml:()=>S,extractPptxImportExtras:()=>U,extractSlideAnimationsFromXml:()=>R,hashPackageId:()=>O,mapPptxTransitionToTurningMode:()=>f,mapPptxtojsonAnimation:()=>E,mapPresetToEffect:()=>z,normalizeImportedLatex:()=>d,parseCommentAuthorsXml:()=>b,parseCommentsXml:()=>w,parseEffectLst:()=>k,parseLegacyCommentsXml:()=>y,takeIdentityForGeometry:()=>Y,takeIdentityForObjectId:()=>G,takeIdentityForOrder:()=>W})},32088(){},29252(){}};
@@ -0,0 +1,90 @@
1
+ export const __rspack_esm_id=1742;export const __rspack_esm_ids=[1742];export const __webpack_modules__={1672(e,t,n){var i=n(70736),s=n(31293),o=n(86827),r=(0,o.K)((e,t,n,o)=>{e.attr("class",n);let{width:r,height:l,x:h,y:d}=a(e,t);(0,i.a$)(e,l,r,o);let g=c(h,d,r,l,t);e.attr("viewBox",g),s.R.debug(`viewBox configured: ${g} with padding: ${t}`)},"setupViewPortForSVG"),a=(0,o.K)((e,t)=>{let n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+2*t,height:n.height+2*t,x:n.x,y:n.y}},"calculateDimensionsWithPadding"),c=(0,o.K)((e,t,n,i,s)=>`${e-s} ${t-s} ${n} ${i}`,"createViewBox");n.d(t,{P:()=>r})},96755(e,t,n){var i=n(86827),s=n(74045),o=(0,i.K)((e,t)=>{let n;return"sandbox"===t&&(n=(0,s.Ltv)("#i"+e)),("sandbox"===t?(0,s.Ltv)(n.nodes()[0].contentDocument.body):(0,s.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement");n.d(t,{A:()=>o})},74893(e,t,n){n.d(t,{diagram:()=>E});var i=n(96755),s=n(1672),o=n(9417);n(78771),n(46853),n(717),n(79515),n(44505),n(83081),n(72346),n(24768);var r=n(70736),a=n(31293),c=n(86827);let l=new Uint8Array(16),h=[];for(let e=0;e<256;++e)h.push((e+256).toString(16).slice(1));var d=n(57418),g=n(78041),u=n(75263),p=function(){var e=(0,c.K)(function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n},"o"),t=[1,4],n=[1,13],i=[1,12],s=[1,15],o=[1,16],r=[1,20],a=[1,19],l=[6,7,8],h=[1,26],d=[1,24],g=[1,25],u=[6,7,11],p=[1,6,13,15,16,19,22],y=[1,33],m=[1,34],f=[1,6,7,11,13,15,16,19,22],_={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,c.K)(function(e,t,n,i,s,o,r){var a=o.length-1;switch(s){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[a].id),i.addNode(o[a-1].length,o[a].id,o[a].descr,o[a].type);break;case 16:i.getLogger().trace("Icon: ",o[a]),i.decorateNode({icon:o[a]});break;case 17:case 21:i.decorateNode({class:o[a]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[a].id),i.addNode(0,o[a].id,o[a].descr,o[a].type);break;case 20:i.decorateNode({icon:o[a]});break;case 25:i.getLogger().trace("node found ..",o[a-2]),this.$={id:o[a-1],descr:o[a-1],type:i.getType(o[a-2],o[a])};break;case 26:this.$={id:o[a],descr:o[a],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[a-3]),this.$={id:o[a-3],descr:o[a-1],type:i.getType(o[a-2],o[a])}}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:n,9:22,12:11,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},{6:h,7:d,10:23,11:g},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:a}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:h,7:d,10:32,11:g},{1:[2,7],6:n,12:21,13:i,14:14,15:s,16:o,17:17,18:18,19:r,22:a},e(p,[2,14],{7:y,11:m}),e(f,[2,8]),e(f,[2,9]),e(f,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(p,[2,13],{7:y,11:m}),e(f,[2,11]),e(f,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,c.K)(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},"parseError"),parse:(0,c.K)(function(e){var t=this,n=[0],i=[],s=[null],o=[],r=this.table,a="",l=0,h=0,d=0,g=o.slice.call(arguments,1),u=Object.create(this.lexer),p={};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(p[y]=this.yy[y]);u.setInput(e,p),p.lexer=u,p.parser=this,void 0===u.yylloc&&(u.yylloc={});var m=u.yylloc;o.push(m);var f=u.options&&u.options.ranges;function _(){var e;return"number"!=typeof(e=i.pop()||u.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(e){n.length=n.length-2*e,s.length=s.length-e,o.length=o.length-e},"popStack"),(0,c.K)(_,"lex");for(var b,E,k,S,x,L,N,D,$,v={};;){if(k=n[n.length-1],this.defaultActions[k]?S=this.defaultActions[k]:(null==b&&(b=_()),S=r[k]&&r[k][b]),void 0===S||!S.length||!S[0]){var I="";for(L in $=[],r[k])this.terminals_[L]&&L>2&&$.push("'"+this.terminals_[L]+"'");I=u.showPosition?"Parse error on line "+(l+1)+":\n"+u.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(I,{text:u.match,token:this.terminals_[b]||b,line:u.yylineno,loc:m,expected:$})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+k+", token: "+b);switch(S[0]){case 1:n.push(b),s.push(u.yytext),o.push(u.yylloc),n.push(S[1]),b=null,E?(b=E,E=null):(h=u.yyleng,a=u.yytext,l=u.yylineno,m=u.yylloc,d>0&&d--);break;case 2:if(N=this.productions_[S[1]][1],v.$=s[s.length-N],v._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},f&&(v._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(v,[a,h,l,p,S[1],s,o].concat(g))))return x;N&&(n=n.slice(0,-1*N*2),s=s.slice(0,-1*N),o=o.slice(0,-1*N)),n.push(this.productions_[S[1]][0]),s.push(v.$),o.push(v._$),D=r[n[n.length-2]][n[n.length-1]],n.push(D);break;case 3:return!0}}return!0},"parse")};function b(){this.yy={}}return _.lexer={EOF:1,parseError:(0,c.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,c.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,c.K)(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,c.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,c.K)(function(e,t){var n,i,s;if(this.options.backtrack_lexer&&(s={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(s.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack)for(var o in s)this[o]=s[o];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,n,i,s=this._currentRules(),o=0;o<s.length;o++)if((n=this._input.match(this.rules[s[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,i=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,s[o])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,s[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,c.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,c.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K)(function(e,t,n,i){switch(n){case 0:return e.getLogger().trace("Found comment",t.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:case 26:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 24:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 27:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 30:case 33:case 34:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 31:case 32:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 35:case 36:return e.getLogger().trace("Long description:",t.yytext),20}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},(0,c.K)(b,"Parser"),b.prototype=_,_.Parser=b,new b}();p.parser=p;var y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},m=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=y,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{(0,c.K)(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(e,t,n,i){a.R.info("addNode",e,t,n,i);let s=!1;0===this.nodes.length?(this.baseLevel=e,e=0,s=!0):void 0!==this.baseLevel&&(e-=this.baseLevel,s=!1);let o=(0,r.D7)(),c=o.mindmap?.padding??r.UI.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:c*=2}let l={id:this.count++,nodeId:(0,r.jZ)(t,o),level:e,descr:(0,r.jZ)(n,o),type:i,children:[],width:o.mindmap?.maxNodeWidth??r.UI.mindmap.maxNodeWidth,padding:c,isRoot:s},h=this.getParent(e);if(h)h.children.push(l),this.nodes.push(l);else if(s)this.nodes.push(l);else throw Error(`There can be only one root. No parent could be found for ("${l.descr}")`)}getType(e,t){switch(a.R.debug("In get type",e,t),e){case"[":return this.nodeType.RECT;case"(":return")"===t?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=(0,r.D7)(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=(0,r.jZ)(e.icon,t)),e.class&&(n.class=(0,r.jZ)(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(0===e.level?e.section=void 0:e.section=t,e.children)for(let[n,i]of e.children.entries()){let s=0===e.level?n%11:t;this.assignSections(i,s)}}flattenNodes(e,t){let n=(0,r.D7)(),i=["mindmap-node"];!0===e.isRoot?i.push("section-root","section--1"):void 0!==e.section&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let s=i.join(" "),o=(0,c.K)(e=>{let t=(n.theme?.toLowerCase()??"").includes("redux");switch(e){case y.CIRCLE:return"mindmapCircle";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexagon";case y.DEFAULT:return t?"rounded":"defaultMindmapNode";case y.NO_BORDER:default:return"rect"}},"getShapeFromType"),a={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:o(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:s,cssStyles:[],look:n.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(t.push(a),e.children)for(let n of e.children)this.flattenNodes(n,t)}generateEdges(e,t){if(!e.children)return;let n=(0,r.D7)();for(let i of e.children){let s="edge";void 0!==i.section&&(s+=` section-edge-${i.section}`);let o=e.level+1;s+=` edge-depth-${o}`;let r={id:`edge_${e.id}_${i.id}`,start:e.id.toString(),end:i.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:n.look,classes:s,depth:e.level,section:i.section};t.push(r),this.generateEdges(i,t)}}getData(){let e=this.getMindmap(),t=(0,r.D7)();if(void 0!==(0,r.TM)().layout||(t.layout="cose-bilkent"),!e)return{nodes:[],edges:[],config:t};a.R.debug("getData: mindmapRoot",e,t),this.assignSections(e);let n=[],i=[];this.flattenNodes(e,n),this.generateEdges(e,i),a.R.debug(`getData: processed ${n.length} nodes and ${i.length} edges`);let s=new Map;for(let e of n)s.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:n,edges:i,config:t,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(s),type:"mindmap",diagramId:"mindmap-"+(crypto.randomUUID?crypto.randomUUID():function(e,t,n){let i=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(l);if(i.length<16)throw Error("Random bytes length must be >= 16");if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase()}(i)}(void 0,void 0,void 0))}}getLogger(){return a.R}},f=(0,c.K)(async(e,t,n,c)=>{a.R.debug("Rendering mindmap diagram\n"+e);let l=c.db,h=l.getData(),d=(0,i.A)(t,h.config.securityLevel);if(h.type=c.type,h.layoutAlgorithm=(0,o.q7)(h.config.layout,{fallback:"cose-bilkent"}),h.diagramId=t,!l.getMindmap())return;h.nodes.forEach(e=>{"rounded"===e.shape?(e.radius=15,e.taper=15,e.stroke="none",e.width=0,e.padding=15):"circle"===e.shape?e.padding=10:"rect"===e.shape?(e.width=0,e.padding=10):"hexagon"===e.shape&&(e.width=0,e.height=0)}),await (0,o.XX)(h,d);let{themeVariables:g}=(0,r.zj)(),{useGradient:u,gradientStart:p,gradientStop:y}=g;if(u&&p&&y){let e=d.attr("id"),t=d.append("defs").append("linearGradient").attr("id",`${e}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("stop").attr("offset","0%").attr("stop-color",p).attr("stop-opacity",1),t.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}(0,s.P)(d,h.config.mindmap?.padding??r.UI.mindmap.padding,"mindmapDiagram",h.config.mindmap?.useMaxWidth??r.UI.mindmap.useMaxWidth)},"draw"),_=(0,c.K)(e=>{let{theme:t,look:n}=e,i="";for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e["lineColor"+t]=e["lineColor"+t]||e["cScaleInv"+t],(0,d.A)(e["lineColor"+t])?e["lineColor"+t]=(0,g.A)(e["lineColor"+t],20):e["lineColor"+t]=(0,u.A)(e["lineColor"+t],20);for(let s=0;s<e.THEME_COLOR_LIMIT;s++){let o=""+("neo"===n?Math.max(10-(s-1)*2,2):17-3*s);i+=`
2
+ .section-${s-1} rect, .section-${s-1} path, .section-${s-1} circle, .section-${s-1} polygon, .section-${s-1} path {
3
+ fill: ${e["cScale"+s]};
4
+ }
5
+ .section-${s-1} text {
6
+ fill: ${e["cScaleLabel"+s]};
7
+ }
8
+ .section-${s-1} span {
9
+ color: ${e["cScaleLabel"+s]};
10
+ }
11
+ .node-icon-${s-1} {
12
+ font-size: 40px;
13
+ color: ${e["cScaleLabel"+s]};
14
+ }
15
+ .section-edge-${s-1}{
16
+ stroke: ${e["cScale"+s]};
17
+ }
18
+ .edge-depth-${s-1}{
19
+ stroke-width: ${o};
20
+ }
21
+ .section-${s-1} line {
22
+ stroke: ${e["cScaleInv"+s]} ;
23
+ stroke-width: 3;
24
+ }
25
+
26
+ .disabled, .disabled circle, .disabled text {
27
+ fill: lightgray;
28
+ }
29
+ .disabled text {
30
+ fill: #efefef;
31
+ }
32
+ [data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {
33
+ fill: ${"redux"===t||"redux-dark"===t||"neutral"===t?e.mainBkg:e["cScale"+s]};
34
+ stroke: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScale"+s]};
35
+ stroke-width: ${e.strokeWidth??2}px;
36
+ }
37
+ [data-look="neo"].section-edge-${s-1}{
38
+ stroke: ${t?.includes("redux")||"neo-dark"===t?e.nodeBorder:e["cScale"+s]};
39
+ }
40
+ [data-look="neo"].mindmap-node.section-${s-1} text {
41
+ fill: ${"redux"===t||"redux-dark"===t?e.nodeBorder:e["cScaleLabel"+("neutral"===t?1:s)]};
42
+ }
43
+ `}return i},"genSections"),b=(0,c.K)((e,t,n)=>{let i="";for(let s=0;s<e;s++)i+=`
44
+ [data-look="neo"].mindmap-node.section-${s-1} rect, [data-look="neo"].mindmap-node.section-${s-1} path, [data-look="neo"].mindmap-node.section-${s-1} circle, [data-look="neo"].mindmap-node.section-${s-1} polygon {
45
+ stroke: url(${t}-gradient);
46
+ fill: ${n};
47
+ }
48
+ .section-${s-1} line {
49
+ stroke-width: 0;
50
+ }`;return i},"genGradient"),E={get db(){return new m},renderer:{draw:f},parser:p,styles:(0,c.K)(e=>{let{theme:t}=e,n=e.svgId,i=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none";return`
51
+ .edge {
52
+ stroke-width: 3;
53
+ }
54
+ ${_(e)}
55
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
56
+ fill: ${e.git0};
57
+ }
58
+ .section-root text {
59
+ fill: ${e.gitBranchLabel0};
60
+ }
61
+ .section-root span {
62
+ color: ${t?.includes("redux")?e.nodeBorder:e.gitBranchLabel0};
63
+ }
64
+ .icon-container {
65
+ height:100%;
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ }
70
+ .edge {
71
+ fill: none;
72
+ }
73
+ .mindmap-node-label {
74
+ dy: 1em;
75
+ alignment-baseline: middle;
76
+ text-anchor: middle;
77
+ dominant-baseline: middle;
78
+ text-align: center;
79
+ }
80
+ [data-look="neo"].mindmap-node {
81
+ filter: ${i};
82
+ }
83
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
84
+ fill: ${t?.includes("redux")?e.mainBkg:e.git0};
85
+ }
86
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
87
+ fill: ${t?.includes("redux")?e.nodeBorder:e["cScaleLabel"+ +("neutral"===t)]};
88
+ }
89
+ ${e.useGradient&&n&&e.mainBkg?b(e.THEME_COLOR_LIMIT,n,e.mainBkg):""}
90
+ `},"getStyles")}}};
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=190;export const __rspack_esm_ids=[190];export const __webpack_modules__={6445(_,e,s){var c=s(54614);s(4954),s.d(e,{createInfoServices:()=>c.v})}};
@@ -0,0 +1,94 @@
1
+ export const __rspack_esm_id=2062;export const __rspack_esm_ids=[2062];export const __webpack_modules__={75937(t,e,s){var i=s(9601),r=s(71005);e.A=(t,e)=>i.A.lang.round(r.A.parse(t)[e])},1672(t,e,s){var i=s(70736),r=s(31293),a=s(86827),n=(0,a.K)((t,e,s,a)=>{t.attr("class",s);let{width:n,height:c,x:h,y:u}=o(t,e);(0,i.a$)(t,c,n,a);let d=l(h,u,n,c,e);t.attr("viewBox",d),r.R.debug(`viewBox configured: ${d} with padding: ${e}`)},"setupViewPortForSVG"),o=(0,a.K)((t,e)=>{let s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*e,height:s.height+2*e,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`,"createViewBox");s.d(e,{P:()=>n})},96755(t,e,s){var i=s(86827),r=s(74045),a=(0,i.K)((t,e)=>{let s;return"sandbox"===e&&(s=(0,r.Ltv)("#i"+t)),("sandbox"===e?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${t}"]`)},"getDiagramElement");s.d(e,{A:()=>a})},56634(t,e,s){var i=s(96755),r=s(1672),a=s(9417);s(78771),s(46853),s(717),s(79515),s(44505),s(83081),s(72346);var n=s(24768),o=s(70736),l=s(31293),c=s(86827),h=s(74045),u=s(75937),d=s(25582),y=function(){var t=(0,c.K)(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],s=[2,2],i=[1,7],r=[1,9],a=[1,10],n=[1,11],o=[1,12],l=[1,30],h=[1,23],u=[1,24],d=[1,25],y=[1,26],p=[1,27],b=[1,19],_=[1,28],g=[1,29],f=[1,20],m=[1,18],k=[1,21],E=[1,22],S=[2,6],$=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],T=[1,36],O=[1,37],x=[1,38],N=[1,39],A=[1,40],R=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],C=[1,46],I=[1,47],D=[1,57],v=[43,51,53,54,55,74,75],L=[1,70],w=[1,68],K=[1,65],M=[1,69],B=[1,71],G=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],F=[1,78],Y=[1,77],P=[1,76],z=[69,70,71,72,73],U=[1,91],Z=[6,9,45,50],j=[6,9,12,44,45,50,51,52],W=[1,101],q=[1,100],X=[1,99],V=[18,61],H=[1,110],Q=[1,109],J=[20,43,51,53,54,55],tt=[18,61,64,66],te={trace:(0,c.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:(0,c.K)(function(t,e,s,i,r,a,n){var o=a.length-1;switch(r){case 1:break;case 2:case 5:case 6:this.$=[];break;case 3:this.$=a[o-1].concat(a[o]);break;case 4:case 34:case 59:case 60:case 61:case 62:case 86:case 69:case 71:case 74:this.$=a[o];break;case 7:i.addEntity(a[o-4]),i.addEntity(a[o-2]),i.addRelationship(a[o-4],a[o],a[o-2],a[o-3]),this.$=[a[o-4],a[o-2]];break;case 8:i.addEntity(a[o-8]),i.addEntity(a[o-4]),i.addRelationship(a[o-8],a[o],a[o-4],a[o-5]),i.setClass([a[o-8]],a[o-6]),i.setClass([a[o-4]],a[o-2]),this.$=[a[o-8],a[o-4]];break;case 9:i.addEntity(a[o-6]),i.addEntity(a[o-2]),i.addRelationship(a[o-6],a[o],a[o-2],a[o-3]),i.setClass([a[o-6]],a[o-4]),this.$=[a[o-6],a[o-2]];break;case 10:i.addEntity(a[o-6]),i.addEntity(a[o-4]),i.addRelationship(a[o-6],a[o],a[o-4],a[o-5]),i.setClass([a[o-4]],a[o-2]),this.$=[a[o-6],a[o-4]];break;case 11:i.addEntity(a[o-3]),i.addAttributes(a[o-3],a[o-1]),this.$=[a[o-3]];break;case 12:i.addEntity(a[o-5]),i.addAttributes(a[o-5],a[o-1]),i.setClass([a[o-5]],a[o-3]),this.$=[a[o-5]];break;case 13:i.addEntity(a[o-2]),this.$=[a[o-2]];break;case 14:i.addEntity(a[o-4]),i.setClass([a[o-4]],a[o-2]),this.$=[a[o-4]];break;case 15:i.addEntity(a[o]),this.$=[a[o]];break;case 16:i.addEntity(a[o-2]),i.setClass([a[o-2]],a[o]),this.$=[a[o-2]];break;case 17:i.addEntity(a[o-6],a[o-4]),i.addAttributes(a[o-6],a[o-1]),this.$=[a[o-6]];break;case 18:i.addEntity(a[o-8],a[o-6]),i.addAttributes(a[o-8],a[o-1]),i.setClass([a[o-8]],a[o-3]),this.$=[a[o-8]];break;case 19:i.addEntity(a[o-5],a[o-3]),this.$=[a[o-5]];break;case 20:i.addEntity(a[o-7],a[o-5]),i.setClass([a[o-7]],a[o-2]),this.$=[a[o-7]];break;case 21:i.addEntity(a[o-3],a[o-1]);break;case 22:i.addEntity(a[o-5],a[o-3]),i.setClass([a[o-5]],a[o]);break;case 23:case 24:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=a[o]:(i.setDirection(a[o].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:a[o-2].id},a[o-1],{text:a[o-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:a[o-1],text:a[o-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:a[o-4],text:a[o-2]};break;case 35:this.$=a[o-1]+" "+a[o];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=a[o-3],i.addClass(a[o-2],a[o-1]);break;case 41:case 42:case 63:case 72:case 47:this.$=[a[o]];break;case 43:case 44:this.$=a[o-2].concat([a[o]]);break;case 45:this.$=a[o-2],i.setClass(a[o-1],a[o]);break;case 46:this.$=a[o-3],i.addCssStyles(a[o-2],a[o-1]);break;case 48:case 73:a[o-2].push(a[o]),this.$=a[o-2];break;case 50:case 70:this.$=a[o-1]+a[o];break;case 58:case 84:case 85:case 75:this.$=a[o].replace(/"/g,"");break;case 64:a[o].push(a[o-1]),this.$=a[o];break;case 65:this.$={type:a[o-1],name:a[o]};break;case 66:this.$={type:a[o-2],name:a[o-1],keys:a[o]};break;case 67:this.$={type:a[o-2],name:a[o-1],comment:a[o]};break;case 68:this.$={type:a[o-3],name:a[o-2],keys:a[o-1],comment:a[o]};break;case 76:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,s,{5:3}),{6:[1,4],7:5,8:6,9:i,10:8,21:r,23:a,25:n,27:o,28:13,29:14,30:15,31:16,32:17,34:l,37:h,38:u,39:d,40:y,41:p,43:b,46:_,47:g,51:f,53:m,54:k,55:E},t(e,S,{1:[2,1]}),t($,[2,3]),t($,[2,4]),t($,[2,5]),t($,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:T,70:O,71:x,72:N,73:A}),{22:[1,41]},{24:[1,42]},{26:[1,43]},t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),t($,s,{5:44}),t(R,[2,58]),t(R,[2,59]),t(R,[2,60]),t(R,[2,61]),t(R,[2,62]),t($,[2,36]),t($,[2,37]),t($,[2,38]),t($,[2,39]),{15:45,43:C,44:I},{15:48,43:C,44:I},{15:49,43:C,44:I},{10:50,43:b,51:f,53:m,54:k,55:E},{10:51,43:b,51:f,53:m,54:k,55:E},{15:52,43:C,44:I},{17:53,18:[1,54],56:55,57:56,61:D},{10:58,43:b,51:f,53:m,54:k,55:E},{68:59,74:[1,60],75:[1,61]},t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(v,[2,81]),t($,[2,23]),t($,[2,24]),t($,[2,25]),{6:[1,63],7:5,8:6,9:i,10:8,21:r,23:a,25:n,27:o,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:l,37:h,38:u,39:d,40:y,41:p,43:b,46:_,47:g,51:f,53:m,54:k,55:E},{12:L,42:64,44:w,45:K,48:66,49:67,51:M,52:B},t(G,[2,41]),t(G,[2,42]),{15:72,43:C,44:I,45:K},{12:L,42:73,44:w,45:K,48:66,49:67,51:M,52:B},{6:F,9:Y,19:[1,75],35:74,50:P},{12:[1,79],14:[1,80]},t($,[2,16],{67:35,11:81,16:[1,82],45:K,69:T,70:O,71:x,72:N,73:A}),{18:[1,83]},t($,[2,13]),{17:84,18:[2,63],56:55,57:56,61:D},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:T,70:O,71:x,72:N,73:A},t(z,[2,82]),t(z,[2,83]),t($,[2,31]),t($,S),{6:F,9:Y,35:90,45:U,50:P},{43:[1,92],44:[1,93]},t(Z,[2,47],{49:94,12:L,44:w,51:M,52:B}),t(j,[2,49]),t(j,[2,54]),t(j,[2,55]),t(j,[2,56]),t(j,[2,57]),t($,[2,45],{45:K}),{6:F,9:Y,35:95,45:U,50:P},t($,[2,32]),{10:97,36:96,43:b,51:f,53:m,54:k,55:E},t($,[2,51]),t($,[2,52]),t($,[2,53]),{13:98,43:W,53:q,76:X},{15:102,43:C,44:I},{10:103,43:b,51:f,53:m,54:k,55:E},{17:104,18:[1,105],56:55,57:56,61:D},t($,[2,11]),{18:[2,64]},t(V,[2,65],{59:106,60:107,63:108,65:H,66:Q}),t([18,61,65,66],[2,71]),{61:[2,70]},t($,[2,21],{14:[1,112],16:[1,111]}),t([43,51,53,54,55],[2,76]),t($,[2,40]),{12:L,44:w,48:113,49:67,51:M,52:B},t(G,[2,43]),t(G,[2,44]),t(j,[2,50]),t($,[2,46]),{10:115,20:[1,114],43:b,51:f,53:m,54:k,55:E},t(J,[2,34]),t($,[2,7]),t($,[2,84]),t($,[2,85]),t($,[2,86]),{12:[1,116],45:K},{12:[1,118],14:[1,117]},{18:[1,119]},t($,[2,14]),t(V,[2,66],{60:120,64:[1,121],66:Q}),t(V,[2,67]),t(tt,[2,72]),t(V,[2,75]),t(tt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:D},{15:124,43:C,44:I},t(Z,[2,48],{49:94,12:L,44:w,51:M,52:B}),{6:F,9:Y,35:125,50:P},t(J,[2,35]),{13:126,43:W,53:q,76:X},{15:127,43:C,44:I},{13:128,43:W,53:q,76:X},t($,[2,12]),t(V,[2,68]),{63:129,65:H},{18:[1,130]},t($,[2,19]),t($,[2,22],{16:[1,131],45:K}),t($,[2,33]),t($,[2,10]),{12:[1,132],45:K},t($,[2,9]),t(tt,[2,73]),t($,[2,17]),{17:133,18:[1,134],56:55,57:56,61:D},{13:135,43:W,53:q,76:X},{18:[1,136]},t($,[2,20]),t($,[2,8]),t($,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:(0,c.K)(function(t,e){if(e.recoverable)this.trace(t);else{var s=Error(t);throw s.hash=e,s}},"parseError"),parse:(0,c.K)(function(t){var e=this,s=[0],i=[],r=[null],a=[],n=this.table,o="",l=0,h=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var b in this.yy)Object.prototype.hasOwnProperty.call(this.yy,b)&&(p[b]=this.yy[b]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var _=y.yylloc;a.push(_);var g=y.options&&y.options.ranges;function f(){var t;return"number"!=typeof(t=i.pop()||y.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,c.K)(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),(0,c.K)(f,"lex");for(var m,k,E,S,$,T,O,x,N,A={};;){if(E=s[s.length-1],this.defaultActions[E]?S=this.defaultActions[E]:(null==m&&(m=f()),S=n[E]&&n[E][m]),void 0===S||!S.length||!S[0]){var R="";for(T in N=[],n[E])this.terminals_[T]&&T>2&&N.push("'"+this.terminals_[T]+"'");R=y.showPosition?"Parse error on line "+(l+1)+":\n"+y.showPosition()+"\nExpecting "+N.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(R,{text:y.match,token:this.terminals_[m]||m,line:y.yylineno,loc:_,expected:N})}if(S[0]instanceof Array&&S.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+m);switch(S[0]){case 1:s.push(m),r.push(y.yytext),a.push(y.yylloc),s.push(S[1]),m=null,k?(m=k,k=null):(h=y.yyleng,o=y.yytext,l=y.yylineno,_=y.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[S[1]][1],A.$=r[r.length-O],A._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},g&&(A._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),void 0!==($=this.performAction.apply(A,[o,h,l,p,S[1],r,a].concat(d))))return $;O&&(s=s.slice(0,-1*O*2),r=r.slice(0,-1*O),a=a.slice(0,-1*O)),s.push(this.productions_[S[1]][0]),r.push(A.$),a.push(A._$),x=n[s[s.length-2]][s[s.length-1]],s.push(x);break;case 3:return!0}}return!0},"parse")};function ts(){this.yy={}}return te.lexer={EOF:1,parseError:(0,c.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,c.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,c.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,c.K)(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,c.K)(function(){return this._more=!0,this},"more"),reject:(0,c.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,c.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,c.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,c.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,c.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,c.K)(function(t,e){var s,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,c.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,s,i,r=this._currentRules(),a=0;a<r.length;a++)if((s=this._input.match(this.rules[r[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,r[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,c.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,c.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,c.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,c.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,c.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,c.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,c.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,c.K)(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),23;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),25;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 28:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:case 22:case 30:case 37:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;case 17:case 18:case 40:return 52;case 19:case 39:return 45;case 20:return 14;case 21:case 38:return 12;case 23:return 65;case 24:case 25:case 27:return 61;case 26:this.begin("block_bq");break;case 29:return 66;case 31:return this.popState(),18;case 32:case 81:return e.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;case 36:return this.popState(),9;case 41:return this.begin("style"),41;case 42:return 46;case 43:return 34;case 44:return 33;case 45:case 49:case 50:case 68:return 69;case 46:case 47:case 48:case 56:case 58:case 70:return 71;case 51:case 52:case 53:case 54:case 55:case 57:case 69:return 70;case 59:case 60:case 62:case 63:case 64:case 67:return 72;case 61:return 54;case 65:return 55;case 66:return 51;case 71:return 73;case 72:case 75:case 76:case 77:return 74;case 73:case 74:return 75;case 78:return 44;case 79:return 50;case 80:return 43;case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}},(0,c.K)(ts,"Parser"),ts.prototype=te,te.Parser=ts,new ts}();y.parser=y;var p=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=o.SV,this.getAccTitle=o.iN,this.setAccDescription=o.EI,this.getAccDescription=o.m7,this.setDiagramTitle=o.ke,this.getDiagramTitle=o.ab,this.getConfig=(0,c.K)(()=>(0,o.D7)().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{(0,c.K)(this,"ErDB")}addEntity(t,e=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&e&&(this.entities.get(t).alias=e,l.R.info(`Add alias '${e}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:e,shape:"erBox",look:(0,o.D7)().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),l.R.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,e){let s,i=this.addEntity(t);for(s=e.length-1;s>=0;s--)e[s].keys||(e[s].keys=[]),e[s].comment||(e[s].comment=""),i.attributes.push(e[s]),l.R.debug("Added attribute ",e[s].name)}addRelationship(t,e,s,i){let r,a;if(this.subGraphLookup.has(t))r=t;else{let e=this.addEntity(t);if(!e)return;r=e.id}if(this.subGraphLookup.has(s))a=s;else{let t=this.addEntity(s);if(!t)return;a=t.id}let n={entityA:r,roleA:e,entityB:a,relSpec:i};this.relationships.push(n),l.R.debug("Added new relationship :",n)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let e=[];for(let s of t){let t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}addCssStyles(t,e){for(let s of t){let t=this.entities.get(s),i=this.subGraphLookup.get(s);if(e){if(t)for(let s of e)t.cssStyles.push(s);if(i)for(let t of(i.cssStyles||(i.cssStyles=[]),e))i.cssStyles.push(t)}}}addClass(t,e){t.forEach(t=>{let s=this.classes.get(t);void 0===s&&(s={id:t,styles:[],textStyles:[]},this.classes.set(t,s)),e&&e.forEach(function(t){if(/color/.exec(t)){let e=t.replace("fill","bgFill");s.textStyles.push(e)}s.styles.push(t)})})}addSubGraph(t,e,s){let i=t.text.trim(),r=s.text,a=(0,c.K)(t=>{let e,s=new Set;return{nodeList:t.filter(t=>{if(t?.stmt)return"dir"===t.stmt&&(e=t.value),!1;if("string"!=typeof t)return!1;let i=t.trim();return!(!i||s.has(i))&&(s.add(i),!0)}),dir:e}},"uniq")(e.flat()),n=a.nodeList,o=a.dir;i=i??"subGraph"+this.subCount,r=r||"",r=this.sanitizeText(r),this.subCount=this.subCount+1;let h={id:i,nodes:n,title:r.trim(),classes:[],cssStyles:[],dir:o,labelType:this.sanitizeNodeLabelType(s?.type)};return l.R.info("Adding",h.id,h.nodes,h.dir),h.nodes=this.makeUniq(h,this.subGraphs).nodes,this.subGraphs.push(h),this.subGraphLookup.set(i,h),i}getSubGraphs(){return this.subGraphs}setClass(t,e){for(let s of t){let t=this.entities.get(s);if(t)for(let s of e)t.cssClasses+=" "+s;let i=this.subGraphLookup.get(s);if(i)for(let t of e)i.classes.push(t)}}subgraphNodeCache(t){let e=new Set;for(let s of t)for(let t of s.nodes)e.add(t);return e}makeUniq(t,e){let s=this.subgraphNodeCache(e),i=[];return t.nodes.forEach((e,r)=>{s.has(e)?l.R.warn(`Entity '${e}' already belongs to another subgraph and will be ignored`):i.push(t.nodes[r])}),{nodes:i}}sanitizeText(t){return o.Y2.sanitizeText(t,(0,o.D7)())}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,(0,o.IU)()}getData(){let t=[],e=[],s=(0,o.D7)(),i=this.getSubGraphs(),r=new Map,a=new Map;for(let t=i.length-1;t>=0;t--){let e=i[t];for(let t of(e.nodes.length>0&&a.set(e.id,!0),e.nodes))r.set(t,e.id)}for(let e=i.length-1;e>=0;e--){let a=i[e];t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssStyles:a.cssStyles,cssClasses:a.classes.join(" "),shape:"rect",dir:a.dir,isGroup:!0,look:s.look})}let l=new Set(i.map(t=>t.id)),c=0;for(let e of this.entities.keys()){if(l.has(e))continue;let s=this.entities.get(e);s&&(s.cssCompiledStyles=this.getCompiledStyles(s.cssClasses.split(" ")),s.colorIndex=c++,t.push({...s,parentId:r.get(e),isGroup:!1}))}let h=0;for(let t of this.relationships){let i={id:(0,n.rY)(t.entityA,t.entityB,{prefix:"id",counter:h++}),type:"normal",curve:"basis",start:t.entityA,end:t.entityB,label:t.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:t.relSpec.cardB.toLowerCase(),arrowTypeEnd:t.relSpec.cardA.toLowerCase(),pattern:"IDENTIFYING"==t.relSpec.relType?"solid":"dashed",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.direction}}},b={};(0,c.V)(b,{draw:()=>_});var _=(0,c.K)(async function(t,e,s,c){l.R.info("REF0:"),l.R.info("Drawing er diagram (unified)",e);let{securityLevel:u,er:d,layout:y}=(0,o.D7)(),p=c.db.getData(),b=(0,i.A)(e,u);p.type=c.type,p.layoutAlgorithm=(0,a.q7)(y),p.config.flowchart.nodeSpacing=d?.nodeSpacing||140,p.config.flowchart.rankSpacing=d?.rankSpacing||80,p.direction=c.db.getDirection();let{config:_}=p,{look:g}=_;"neo"===g?p.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"]:p.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],p.diagramId=e,await (0,a.XX)(p,b),"elk"===p.layoutAlgorithm&&b.select(".edges").lower();let f=b.selectAll('[id*="-background"]');Array.from(f).length>0&&f.each(function(){let t=(0,h.Ltv)(this),e=t.attr("id").replace("-background",""),s=b.select(`#${CSS.escape(e)}`);if(!s.empty()){let e=s.attr("transform");t.attr("transform",e)}}),n._K.insertTitle(b,"erDiagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle()),(0,r.P)(b,8,"erDiagram",d?.useMaxWidth??!0)},"draw"),g=(0,c.K)((t,e)=>{let s=u.A,i=s(t,"r"),r=s(t,"g"),a=s(t,"b");return d.A(i,r,a,e)},"fade"),f=new Set(["redux-color","redux-dark-color"]),m=(0,c.K)(t=>{let{theme:e,look:s,bkgColorArray:i,borderColorArray:r}=t;if(!f.has(e))return"";let a=i?.length>0,n="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)n+=`
2
+
3
+ [data-look="${s}"][data-color-id="color-${e}"].node path {
4
+ stroke: ${r[e]};
5
+ ${a?`fill: ${i[e]};`:""}
6
+ }
7
+
8
+ [data-look="${s}"][data-color-id="color-${e}"].node rect {
9
+ stroke: ${r[e]};
10
+ ${a?`fill: ${i[e]};`:""}
11
+ }
12
+ `;return n},"genColor"),k={parser:y,get db(){return new p},renderer:b,styles:(0,c.K)(t=>{let{look:e,theme:s,erEdgeLabelBackground:i,strokeWidth:r}=t;return`
13
+ ${m(t)}
14
+ .entityBox {
15
+ fill: ${t.mainBkg};
16
+ stroke: ${t.nodeBorder};
17
+ }
18
+
19
+ .relationshipLabelBox {
20
+ fill: ${t.tertiaryColor};
21
+ opacity: 0.7;
22
+ background-color: ${t.tertiaryColor};
23
+ rect {
24
+ opacity: 0.5;
25
+ }
26
+ }
27
+
28
+ .labelBkg {
29
+ background-color: ${f.has(s)&&i?i:g(t.tertiaryColor,.5)};
30
+ }
31
+
32
+ .edgeLabel {
33
+ background-color: ${f.has(s)&&i?i:t.edgeLabelBackground};
34
+ }
35
+ .edgeLabel .label rect {
36
+ fill: ${f.has(s)&&i?i:t.edgeLabelBackground};
37
+ }
38
+ .edgeLabel .label text {
39
+ fill: ${t.textColor};
40
+ }
41
+
42
+ .edgeLabel .label {
43
+ fill: ${t.nodeBorder};
44
+ font-size: 14px;
45
+ }
46
+
47
+ .label {
48
+ font-family: ${t.fontFamily};
49
+ color: ${t.nodeTextColor||t.textColor};
50
+ }
51
+
52
+ .edge-pattern-dashed {
53
+ stroke-dasharray: 8,8;
54
+ }
55
+
56
+ .node rect,
57
+ .node circle,
58
+ .node ellipse,
59
+ .node polygon
60
+ {
61
+ fill: ${t.mainBkg};
62
+ stroke: ${t.nodeBorder};
63
+ stroke-width: ${"neo"===e?r:"1px"};
64
+ }
65
+
66
+ .relationshipLine {
67
+ stroke: ${t.lineColor};
68
+ stroke-width: ${"neo"===e?r:"1px"};
69
+ fill: none;
70
+ }
71
+
72
+ .marker {
73
+ fill: none !important;
74
+ stroke: ${t.lineColor} !important;
75
+ stroke-width: 1;
76
+ }
77
+ [data-look=neo].labelBkg {
78
+ background-color: ${g(t.tertiaryColor,.5)};
79
+ }
80
+
81
+ .cluster rect {
82
+ fill: ${t.clusterBkg??t.mainBkg};
83
+ stroke: ${t.clusterBorder??t.nodeBorder};
84
+ stroke-width: 1px;
85
+ }
86
+
87
+ .cluster text {
88
+ fill: ${t.titleColor??t.textColor};
89
+ }
90
+
91
+ .cluster-label text {
92
+ fill: ${t.titleColor??t.textColor};
93
+ }
94
+ `},"getStyles")};s.d(e,{diagram:()=>k})}};
@@ -1,4 +1,4 @@
1
- export const __rspack_esm_id=1904;export const __rspack_esm_ids=[1904];export const __webpack_modules__={15350(t,e,r){var o=r(86827),a=class{constructor(t){this.init=t,this.records=this.init()}static{(0,o.K)(this,"ImperativeState")}reset(){this.records=this.init()}};r.d(e,{m:()=>a})},77454(t,e,r){function o(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}(0,r(86827).K)(o,"populateCommonDb"),r.d(e,{S:()=>o})},31715(t,e,r){var o=r(15350),a=r(77454),i=r(24692),n=r(64183),s=r(31293),c=r(86827),d=r(78731),l=r(74045),$={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},h=n.UI.gitGraph,m=(0,c.K)(()=>(0,i.$t)({...h,...(0,n.zj)().gitGraph}),"getConfig"),g=new o.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function p(){return(0,i.yT)({length:7})}function y(t,e){let r=Object.create(null);return t.reduce((t,o)=>{let a=e(o);return r[a]||(r[a]=!0,t.push(o)),t},[])}(0,c.K)(p,"getID"),(0,c.K)(y,"uniqBy");var f=(0,c.K)(function(t){g.records.direction=t},"setDirection"),x=(0,c.K)(function(t){s.R.debug("options str",t),t=(t=t?.trim())||"{}";try{g.records.options=JSON.parse(t)}catch(t){s.R.error("error while parsing gitGraph options",t.message)}},"setOptions"),u=(0,c.K)(function(){return g.records.options},"getOptions"),b=(0,c.K)(function(t){let e=t.msg,r=t.id,o=t.type,a=t.tags;s.R.info("commit",e,r,o,a),s.R.debug("Entering commit:",e,r,o,a);let i=m();r=n.Y2.sanitizeText(r,i),e=n.Y2.sanitizeText(e,i),a=a?.map(t=>n.Y2.sanitizeText(t,i));let c={id:r||g.records.seq+"-"+p(),message:e,seq:g.records.seq++,type:o??$.NORMAL,tags:a??[],parents:null==g.records.head?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=c,s.R.info("main branch",i.mainBranchName),g.records.commits.has(c.id)&&s.R.warn(`Commit ID ${c.id} already exists`),g.records.commits.set(c.id,c),g.records.branches.set(g.records.currBranch,c.id),s.R.debug("in pushCommit "+c.id)},"commit"),k=(0,c.K)(function(t){let e=t.name,r=t.order;if(e=n.Y2.sanitizeText(e,m()),g.records.branches.has(e))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);g.records.branches.set(e,null!=g.records.head?g.records.head.id:null),g.records.branchConfig.set(e,{name:e,order:r}),E(e),s.R.debug("in createBranch")},"branch"),B=(0,c.K)(t=>{let e=t.branch,r=t.id,o=t.type,a=t.tags,i=m();e=n.Y2.sanitizeText(e,i),r&&(r=n.Y2.sanitizeText(r,i));let c=g.records.branches.get(g.records.currBranch),d=g.records.branches.get(e),l=c?g.records.commits.get(c):void 0,h=d?g.records.commits.get(d):void 0;if(l&&h&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if(g.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!g.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===h||!h){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===h){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&g.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${o} ${a?.join(" ")}`,token:`merge ${e} ${r} ${o} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${o} ${a?.join(" ")}`]},t}let y={id:r||`${g.records.seq}-${p()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,d||""],branch:g.records.currBranch,type:$.MERGE,customType:o,customId:!!r,tags:a??[]};g.records.head=y,g.records.commits.set(y.id,y),g.records.branches.set(g.records.currBranch,y.id),s.R.debug(g.records.branches),s.R.debug("in mergeBranch")},"merge"),w=(0,c.K)(function(t){let e=t.id,r=t.targetId,o=t.tags,a=t.parent;s.R.debug("Entering cherryPick:",e,r,o);let i=m();if(e=n.Y2.sanitizeText(e,i),r=n.Y2.sanitizeText(r,i),o=o?.map(t=>n.Y2.sanitizeText(t,i)),a=n.Y2.sanitizeText(a,i),!e||!g.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let c=g.records.commits.get(e);if(void 0===c||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(c.parents)&&c.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=c.branch;if(c.type===$.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!g.records.commits.has(r)){if(d===g.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=g.records.branches.get(g.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let i=g.records.commits.get(t);if(void 0===i||!i){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n={id:g.records.seq+"-"+p(),message:`cherry-picked ${c?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,c.id],branch:g.records.currBranch,type:$.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${c.id}${c.type===$.MERGE?`|parent:${a}`:""}`]};g.records.head=n,g.records.commits.set(n.id,n),g.records.branches.set(g.records.currBranch,n.id),s.R.debug(g.records.branches),s.R.debug("in cherryPick")}},"cherryPick"),E=(0,c.K)(function(t){if(t=n.Y2.sanitizeText(t,m()),g.records.branches.has(t)){g.records.currBranch=t;let e=g.records.branches.get(g.records.currBranch);void 0!==e&&e?g.records.head=g.records.commits.get(e)??null:g.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function T(t,e,r){let o=t.indexOf(e);-1===o?t.push(r):t.splice(o,1,r)}function L(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+=" *":r+=" |"});let o=[r,e.id,e.seq];for(let t in g.records.branches)g.records.branches.get(t)===e.id&&o.push(t);if(s.R.debug(o.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=g.records.commits.get(e.parents[0]);T(t,e,r),e.parents[1]&&t.push(g.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=g.records.commits.get(e.parents[0]);T(t,e,r)}L(t=y(t,t=>t.id))}(0,c.K)(T,"upsert"),(0,c.K)(L,"prettyPrintCommitHistory");var C=(0,c.K)(function(){s.R.debug(g.records.commits),L([I()[0]])},"prettyPrint"),K=(0,c.K)(function(){g.reset(),(0,n.IU)()},"clear"),M=(0,c.K)(function(){return[...g.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),R=(0,c.K)(function(){return g.records.branches},"getBranches"),v=(0,c.K)(function(){return g.records.commits},"getCommits"),I=(0,c.K)(function(){let t=[...g.records.commits.values()];return t.forEach(function(t){s.R.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),P={commitType:$,getConfig:m,setDirection:f,setOptions:x,getOptions:u,commit:b,branch:k,merge:B,cherryPick:w,checkout:E,prettyPrint:C,clear:K,getBranchesAsObjArray:M,getBranches:R,getCommits:v,getCommitsArray:I,getCurrentBranch:(0,c.K)(function(){return g.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K)(function(){return g.records.direction},"getDirection"),getHead:(0,c.K)(function(){return g.records.head},"getHead"),setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,setDiagramTitle:n.ke,getDiagramTitle:n.ab},O=(0,c.K)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K)((t,e)=>{let r={Commit:(0,c.K)(t=>e.commit(_(t)),"Commit"),Branch:(0,c.K)(t=>e.branch(G(t)),"Branch"),Merge:(0,c.K)(t=>e.merge(S(t)),"Merge"),Checkout:(0,c.K)(t=>e.checkout(H(t)),"Checkout"),CherryPicking:(0,c.K)(t=>e.cherryPick(D(t)),"CherryPicking")}[t.$type];r?r(t):s.R.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),_=(0,c.K)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?$[t.type]:$.NORMAL,tags:t.tags??void 0}),"parseCommit"),G=(0,c.K)(t=>({name:t.name,order:t.order??0}),"parseBranch"),S=(0,c.K)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?$[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),H=(0,c.K)(t=>t.branch,"parseCheckout"),D=(0,c.K)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),W={parse:(0,c.K)(async t=>{let e=await (0,d.qg)("gitGraph",t);s.R.debug(e),O(e,P)},"parse")},q=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),z=new Set(["redux-color","redux-dark-color"]),Y=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),j=(0,c.K)((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),F=new Map,N=new Map,U=new Map,V=[],J=0,Q="LR",X=(0,c.K)(()=>{F.clear(),N.clear(),U.clear(),J=0,V=[],Q="LR"},"clear"),Z=(0,c.K)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),tt=(0,c.K)(t=>{let e,r,o;return"BT"===Q?(r=(0,c.K)((t,e)=>t<=e,"comparisonFunc"),o=1/0):(r=(0,c.K)((t,e)=>t>=e,"comparisonFunc"),o=0),t.forEach(t=>{let a="TB"===Q||"BT"==Q?N.get(t)?.y:N.get(t)?.x;void 0!==a&&r(a,o)&&(e=t,o=a)}),e},"findClosestParent"),te=(0,c.K)(t=>{let e="",r=1/0;return t.forEach(t=>{let o=N.get(t).y;o<=r&&(e=t,r=o)}),e||void 0},"findClosestParentBT"),tr=(0,c.K)((t,e,r)=>{let o=r,a=r,i=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?a=Math.max(o=ta(r),a):i.push(r),ti(r,o)}),o=a,i.forEach(t=>{tn(t,o,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=te(r.parents);(o=N.get(t).y-40)<=a&&(a=o);let e=F.get(r.branch).pos,i=o-10;N.set(r.id,{x:e,y:i})}})},"setParallelBTPos"),to=(0,c.K)(t=>{let e=tt(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=N.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),ta=(0,c.K)(t=>to(t)+40,"calculateCommitPosition"),ti=(0,c.K)((t,e)=>{let r=F.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let o=r.pos,a=e+10;return N.set(t.id,{x:o,y:a}),{x:o,y:a}},"setCommitPosition"),tn=(0,c.K)((t,e,r)=>{let o=F.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let a=o.pos;N.set(t.id,{x:a,y:e+r})},"setRootPosition"),ts=(0,c.K)((t,e,r,o,a,i)=>{let{theme:s}=(0,n.D7)(),c=q.has(s??""),d=z.has(s??""),l=Y.has(s??"");if(i===$.HIGHLIGHT)t.append("rect").attr("x",r.x-10+3*!!c).attr("y",r.y-10+3*!!c).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${e.id} commit-highlight${j(a,8,d)} ${o}-outer`),t.append("rect").attr("x",r.x-6+2*!!c).attr("y",r.y-6+2*!!c).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${e.id} commit${j(a,8,d)} ${o}-inner`);else if(i===$.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",c?7:10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{let n=t.append("circle");if(n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",c?7:10),n.attr("class",`commit ${e.id} commit${j(a,8,d)}`),i===$.MERGE){let i=t.append("circle");i.attr("cx",r.x),i.attr("cy",r.y),i.attr("r",c?5:6),i.attr("class",`commit ${o} ${e.id} commit${j(a,8,d)}`)}if(i===$.REVERSE){let i=t.append("path"),n=c?4:5;i.attr("d",`M ${r.x-n},${r.y-n}L${r.x+n},${r.y+n}M${r.x-n},${r.y+n}L${r.x+n},${r.y-n}`).attr("class",`commit ${o} ${e.id} commit${j(a,8,d)}`)}}},"drawCommitBullet"),tc=(0,c.K)((t,e,r,o,a)=>{if(e.type!==$.CHERRY_PICK&&(e.customId&&e.type===$.MERGE||e.type!==$.MERGE)&&a.showCommitLabel){let i=t.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(n.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===Q||"BT"===Q?(n.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),a.rotateCommitLabel))if("TB"===Q||"BT"===Q)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),n.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),td=(0,c.K)((t,e,r,o)=>{if(e.tags.length>0){let a=0,i=0,n=0,s=[];for(let o of e.tags.reverse()){let e=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(o),l=d.node()?.getBBox();if(!l)throw Error("Tag bbox not found");i=Math.max(i,l.width),n=Math.max(n,l.height),d.attr("x",r.posWithOffset-l.width/2),s.push({tag:d,hole:c,rect:e,yOffset:a}),a+=20}for(let{tag:t,hole:e,rect:a,yOffset:c}of s){let s=n/2,d=r.y-19.2-c;if(a.attr("class","tag-label-bkg").attr("points",`
1
+ export const __rspack_esm_id=2214;export const __rspack_esm_ids=[2214];export const __webpack_modules__={15350(t,e,r){var o=r(86827),a=class{constructor(t){this.init=t,this.records=this.init()}static{(0,o.K)(this,"ImperativeState")}reset(){this.records=this.init()}};r.d(e,{m:()=>a})},77454(t,e,r){function o(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}(0,r(86827).K)(o,"populateCommonDb"),r.d(e,{S:()=>o})},46789(t,e,r){var o=r(15350),a=r(77454),i=r(24768),n=r(70736),s=r(31293),c=r(86827),d=r(78731),l=r(74045),$={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},h=n.UI.gitGraph,m=(0,c.K)(()=>(0,i.$t)({...h,...(0,n.zj)().gitGraph}),"getConfig"),g=new o.m(()=>{let t=m(),e=t.mainBranchName,r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function p(){return(0,i.yT)({length:7})}function y(t,e){let r=Object.create(null);return t.reduce((t,o)=>{let a=e(o);return r[a]||(r[a]=!0,t.push(o)),t},[])}(0,c.K)(p,"getID"),(0,c.K)(y,"uniqBy");var f=(0,c.K)(function(t){g.records.direction=t},"setDirection"),x=(0,c.K)(function(t){s.R.debug("options str",t),t=(t=t?.trim())||"{}";try{g.records.options=JSON.parse(t)}catch(t){s.R.error("error while parsing gitGraph options",t.message)}},"setOptions"),u=(0,c.K)(function(){return g.records.options},"getOptions"),b=(0,c.K)(function(t){let e=t.msg,r=t.id,o=t.type,a=t.tags;s.R.info("commit",e,r,o,a),s.R.debug("Entering commit:",e,r,o,a);let i=m();r=n.Y2.sanitizeText(r,i),e=n.Y2.sanitizeText(e,i),a=a?.map(t=>n.Y2.sanitizeText(t,i));let c={id:r||g.records.seq+"-"+p(),message:e,seq:g.records.seq++,type:o??$.NORMAL,tags:a??[],parents:null==g.records.head?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=c,s.R.info("main branch",i.mainBranchName),g.records.commits.has(c.id)&&s.R.warn(`Commit ID ${c.id} already exists`),g.records.commits.set(c.id,c),g.records.branches.set(g.records.currBranch,c.id),s.R.debug("in pushCommit "+c.id)},"commit"),k=(0,c.K)(function(t){let e=t.name,r=t.order;if(e=n.Y2.sanitizeText(e,m()),g.records.branches.has(e))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);g.records.branches.set(e,null!=g.records.head?g.records.head.id:null),g.records.branchConfig.set(e,{name:e,order:r}),E(e),s.R.debug("in createBranch")},"branch"),B=(0,c.K)(t=>{let e=t.branch,r=t.id,o=t.type,a=t.tags,i=m();e=n.Y2.sanitizeText(e,i),r&&(r=n.Y2.sanitizeText(r,i));let c=g.records.branches.get(g.records.currBranch),d=g.records.branches.get(e),l=c?g.records.commits.get(c):void 0,h=d?g.records.commits.get(d):void 0;if(l&&h&&l.branch===e)throw Error(`Cannot merge branch '${e}' into itself.`);if(g.records.currBranch===e){let t=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(void 0===l||!l){let t=Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},t}if(!g.records.branches.has(e)){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},t}if(void 0===h||!h){let t=Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},t}if(l===h){let t=Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},t}if(r&&g.records.commits.has(r)){let t=Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");throw t.hash={text:`merge ${e} ${r} ${o} ${a?.join(" ")}`,token:`merge ${e} ${r} ${o} ${a?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${o} ${a?.join(" ")}`]},t}let y={id:r||`${g.records.seq}-${p()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,d||""],branch:g.records.currBranch,type:$.MERGE,customType:o,customId:!!r,tags:a??[]};g.records.head=y,g.records.commits.set(y.id,y),g.records.branches.set(g.records.currBranch,y.id),s.R.debug(g.records.branches),s.R.debug("in mergeBranch")},"merge"),w=(0,c.K)(function(t){let e=t.id,r=t.targetId,o=t.tags,a=t.parent;s.R.debug("Entering cherryPick:",e,r,o);let i=m();if(e=n.Y2.sanitizeText(e,i),r=n.Y2.sanitizeText(r,i),o=o?.map(t=>n.Y2.sanitizeText(t,i)),a=n.Y2.sanitizeText(a,i),!e||!g.records.commits.has(e)){let t=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let c=g.records.commits.get(e);if(void 0===c||!c)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(a&&!(Array.isArray(c.parents)&&c.parents.includes(a)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=c.branch;if(c.type===$.MERGE&&!a)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!r||!g.records.commits.has(r)){if(d===g.records.currBranch){let t=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let t=g.records.branches.get(g.records.currBranch);if(void 0===t||!t){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let i=g.records.commits.get(t);if(void 0===i||!i){let t=Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);throw t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]},t}let n={id:g.records.seq+"-"+p(),message:`cherry-picked ${c?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:null==g.records.head?[]:[g.records.head.id,c.id],branch:g.records.currBranch,type:$.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${c.id}${c.type===$.MERGE?`|parent:${a}`:""}`]};g.records.head=n,g.records.commits.set(n.id,n),g.records.branches.set(g.records.currBranch,n.id),s.R.debug(g.records.branches),s.R.debug("in cherryPick")}},"cherryPick"),E=(0,c.K)(function(t){if(t=n.Y2.sanitizeText(t,m()),g.records.branches.has(t)){g.records.currBranch=t;let e=g.records.branches.get(g.records.currBranch);void 0!==e&&e?g.records.head=g.records.commits.get(e)??null:g.records.head=null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function T(t,e,r){let o=t.indexOf(e);-1===o?t.push(r):t.splice(o,1,r)}function L(t){let e=t.reduce((t,e)=>t.seq>e.seq?t:e,t[0]),r="";t.forEach(function(t){t===e?r+=" *":r+=" |"});let o=[r,e.id,e.seq];for(let t in g.records.branches)g.records.branches.get(t)===e.id&&o.push(t);if(s.R.debug(o.join(" ")),e.parents&&2==e.parents.length&&e.parents[0]&&e.parents[1]){let r=g.records.commits.get(e.parents[0]);T(t,e,r),e.parents[1]&&t.push(g.records.commits.get(e.parents[1]))}else if(0==e.parents.length)return;else if(e.parents[0]){let r=g.records.commits.get(e.parents[0]);T(t,e,r)}L(t=y(t,t=>t.id))}(0,c.K)(T,"upsert"),(0,c.K)(L,"prettyPrintCommitHistory");var C=(0,c.K)(function(){s.R.debug(g.records.commits),L([I()[0]])},"prettyPrint"),K=(0,c.K)(function(){g.reset(),(0,n.IU)()},"clear"),M=(0,c.K)(function(){return[...g.records.branchConfig.values()].map((t,e)=>null!==t.order&&void 0!==t.order?t:{...t,order:parseFloat(`0.${e}`)}).sort((t,e)=>(t.order??0)-(e.order??0)).map(({name:t})=>({name:t}))},"getBranchesAsObjArray"),R=(0,c.K)(function(){return g.records.branches},"getBranches"),v=(0,c.K)(function(){return g.records.commits},"getCommits"),I=(0,c.K)(function(){let t=[...g.records.commits.values()];return t.forEach(function(t){s.R.debug(t.id)}),t.sort((t,e)=>t.seq-e.seq),t},"getCommitsArray"),P={commitType:$,getConfig:m,setDirection:f,setOptions:x,getOptions:u,commit:b,branch:k,merge:B,cherryPick:w,checkout:E,prettyPrint:C,clear:K,getBranchesAsObjArray:M,getBranches:R,getCommits:v,getCommitsArray:I,getCurrentBranch:(0,c.K)(function(){return g.records.currBranch},"getCurrentBranch"),getDirection:(0,c.K)(function(){return g.records.direction},"getDirection"),getHead:(0,c.K)(function(){return g.records.head},"getHead"),setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,setDiagramTitle:n.ke,getDiagramTitle:n.ab},O=(0,c.K)((t,e)=>{for(let r of((0,a.S)(t,e),t.dir&&e.setDirection(t.dir),t.statements))A(r,e)},"populate"),A=(0,c.K)((t,e)=>{let r={Commit:(0,c.K)(t=>e.commit(_(t)),"Commit"),Branch:(0,c.K)(t=>e.branch(G(t)),"Branch"),Merge:(0,c.K)(t=>e.merge(S(t)),"Merge"),Checkout:(0,c.K)(t=>e.checkout(H(t)),"Checkout"),CherryPicking:(0,c.K)(t=>e.cherryPick(D(t)),"CherryPicking")}[t.$type];r?r(t):s.R.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),_=(0,c.K)(t=>({id:t.id,msg:t.message??"",type:void 0!==t.type?$[t.type]:$.NORMAL,tags:t.tags??void 0}),"parseCommit"),G=(0,c.K)(t=>({name:t.name,order:t.order??0}),"parseBranch"),S=(0,c.K)(t=>({branch:t.branch,id:t.id??"",type:void 0!==t.type?$[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),H=(0,c.K)(t=>t.branch,"parseCheckout"),D=(0,c.K)(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),W={parse:(0,c.K)(async t=>{let e=await (0,d.qg)("gitGraph",t);s.R.debug(e),O(e,P)},"parse")},q=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),z=new Set(["redux-color","redux-dark-color"]),Y=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),j=(0,c.K)((t,e,r=!1)=>r&&t>0?(t-1)%(e-1)+1:t%e,"calcColorIndex"),F=new Map,N=new Map,U=new Map,V=[],J=0,Q="LR",X=(0,c.K)(()=>{F.clear(),N.clear(),U.clear(),J=0,V=[],Q="LR"},"clear"),Z=(0,c.K)(t=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return("string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(t=>{let r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}),e},"drawText"),tt=(0,c.K)(t=>{let e,r,o;return"BT"===Q?(r=(0,c.K)((t,e)=>t<=e,"comparisonFunc"),o=1/0):(r=(0,c.K)((t,e)=>t>=e,"comparisonFunc"),o=0),t.forEach(t=>{let a="TB"===Q||"BT"==Q?N.get(t)?.y:N.get(t)?.x;void 0!==a&&r(a,o)&&(e=t,o=a)}),e},"findClosestParent"),te=(0,c.K)(t=>{let e="",r=1/0;return t.forEach(t=>{let o=N.get(t).y;o<=r&&(e=t,r=o)}),e||void 0},"findClosestParentBT"),tr=(0,c.K)((t,e,r)=>{let o=r,a=r,i=[];t.forEach(t=>{let r=e.get(t);if(!r)throw Error(`Commit not found for key ${t}`);r.parents.length?a=Math.max(o=ta(r),a):i.push(r),ti(r,o)}),o=a,i.forEach(t=>{tn(t,o,r)}),t.forEach(t=>{let r=e.get(t);if(r?.parents.length){let t=te(r.parents);(o=N.get(t).y-40)<=a&&(a=o);let e=F.get(r.branch).pos,i=o-10;N.set(r.id,{x:e,y:i})}})},"setParallelBTPos"),to=(0,c.K)(t=>{let e=tt(t.parents.filter(t=>null!==t));if(!e)throw Error(`Closest parent not found for commit ${t.id}`);let r=N.get(e)?.y;if(void 0===r)throw Error(`Closest parent position not found for commit ${t.id}`);return r},"findClosestParentPos"),ta=(0,c.K)(t=>to(t)+40,"calculateCommitPosition"),ti=(0,c.K)((t,e)=>{let r=F.get(t.branch);if(!r)throw Error(`Branch not found for commit ${t.id}`);let o=r.pos,a=e+10;return N.set(t.id,{x:o,y:a}),{x:o,y:a}},"setCommitPosition"),tn=(0,c.K)((t,e,r)=>{let o=F.get(t.branch);if(!o)throw Error(`Branch not found for commit ${t.id}`);let a=o.pos;N.set(t.id,{x:a,y:e+r})},"setRootPosition"),ts=(0,c.K)((t,e,r,o,a,i)=>{let{theme:s}=(0,n.D7)(),c=q.has(s??""),d=z.has(s??""),l=Y.has(s??"");if(i===$.HIGHLIGHT)t.append("rect").attr("x",r.x-10+3*!!c).attr("y",r.y-10+3*!!c).attr("width",c?14:20).attr("height",c?14:20).attr("class",`commit ${e.id} commit-highlight${j(a,8,d)} ${o}-outer`),t.append("rect").attr("x",r.x-6+2*!!c).attr("y",r.y-6+2*!!c).attr("width",c?8:12).attr("height",c?8:12).attr("class",`commit ${e.id} commit${j(a,8,d)} ${o}-inner`);else if(i===$.CHERRY_PICK)t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",c?7:10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",c?2.5:2.75).attr("fill",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke",l?"#000000":"#fff").attr("class",`commit ${e.id} ${o}`);else{let n=t.append("circle");if(n.attr("cx",r.x),n.attr("cy",r.y),n.attr("r",c?7:10),n.attr("class",`commit ${e.id} commit${j(a,8,d)}`),i===$.MERGE){let i=t.append("circle");i.attr("cx",r.x),i.attr("cy",r.y),i.attr("r",c?5:6),i.attr("class",`commit ${o} ${e.id} commit${j(a,8,d)}`)}if(i===$.REVERSE){let i=t.append("path"),n=c?4:5;i.attr("d",`M ${r.x-n},${r.y-n}L${r.x+n},${r.y+n}M${r.x-n},${r.y+n}L${r.x+n},${r.y-n}`).attr("class",`commit ${o} ${e.id} commit${j(a,8,d)}`)}}},"drawCommitBullet"),tc=(0,c.K)((t,e,r,o,a)=>{if(e.type!==$.CHERRY_PICK&&(e.customId&&e.type===$.MERGE||e.type!==$.MERGE)&&a.showCommitLabel){let i=t.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),s=i.append("text").attr("x",o).attr("y",r.y+25).attr("class","commit-label").text(e.id),c=s.node()?.getBBox();if(c&&(n.attr("x",r.posWithOffset-c.width/2-2).attr("y",r.y+13.5).attr("width",c.width+4).attr("height",c.height+4),"TB"===Q||"BT"===Q?(n.attr("x",r.x-(c.width+16+5)).attr("y",r.y-12),s.attr("x",r.x-(c.width+16)).attr("y",r.y+c.height-12)):s.attr("x",r.posWithOffset-c.width/2),a.rotateCommitLabel))if("TB"===Q||"BT"===Q)s.attr("transform","rotate(-45, "+r.x+", "+r.y+")"),n.attr("transform","rotate(-45, "+r.x+", "+r.y+")");else{let t=-7.5-(c.width+10)/25*9.5,e=10+c.width/25*8.5;i.attr("transform","translate("+t+", "+e+") rotate(-45, "+o+", "+r.y+")")}}},"drawCommitLabel"),td=(0,c.K)((t,e,r,o)=>{if(e.tags.length>0){let a=0,i=0,n=0,s=[];for(let o of e.tags.reverse()){let e=t.insert("polygon"),c=t.append("circle"),d=t.append("text").attr("y",r.y-16-a).attr("class","tag-label").text(o),l=d.node()?.getBBox();if(!l)throw Error("Tag bbox not found");i=Math.max(i,l.width),n=Math.max(n,l.height),d.attr("x",r.posWithOffset-l.width/2),s.push({tag:d,hole:c,rect:e,yOffset:a}),a+=20}for(let{tag:t,hole:e,rect:a,yOffset:c}of s){let s=n/2,d=r.y-19.2-c;if(a.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-i/2-2},${d+2}
3
3
  ${o-i/2-2},${d-2}
4
4
  ${r.posWithOffset-i/2-4},${d-s-2}
@@ -0,0 +1 @@
1
+ export const __rspack_esm_id=2395;export const __rspack_esm_ids=[2395];export const __webpack_modules__={59590(_,e,s){var c=s(26041);s(4954),s.d(e,{createPieServices:()=>c.f})}};