(window.webpackJsonpcodecrumbs=window.webpackJsonpcodecrumbs||[]).push([[14],{179:function(e,t,n){"use strict";n.d(t,"e",function(){return d}),n.d(t,"d",function(){return f}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return w});var r=n(9),a=n.n(r),o=n(212),c=n.n(o),u=n(4),i=n.n(u),s=n(7),l=n(5),d=function(e,t){return e.name===t.name&&e.flowStep===t.flowStep},f=function(e,t){return!!e&&(d(e.source,t)||d(e.target,t))},p=function(e,t){return e.step-t.step},m=function(e,t){var n=t.namespacesList,r=t.currentSelectedCrumbedFlowKey,o=n.reduce(function(t,n){var o={namespace:n},u=Object(s.a)(e,o),d=u.selectedCrumbedFlowKey,f=u.codeCrumbedFlowsMap;if(r!==d)return t;var m=Object(s.f)(e,o),b=m.codecrumbsLayoutMap,w=m.ccAlightPoint,v=function(e){var t=e.namespace,n=e.codeCrumbedFlowsMap,r=e.selectedCrumbedFlowKey,a=e.codecrumbsLayoutMap,o=n[r]||{};return Object.keys(o).reduce(function(e,n){var o=(a[n]&&a[n].children||[]).filter(function(e){return e.data.params.flow===r}).map(function(e){var a=e.data,o=e.x,c=e.y;return i()({},a,{namespace:t,filePath:n,step:a.params.flowStep,flow:r,x:o,y:c})});return c()(e).concat(c()(o))},[])}({namespace:n,codeCrumbedFlowsMap:f,selectedCrumbedFlowKey:d,codecrumbsLayoutMap:b});return{flowSteps:v,sortedFlowSteps:d!==l.e?c()(t.sortedFlowSteps).concat(c()(v)).sort(p):[],involvedNsData:i()({},t.involvedNsData,a()({},n,{codecrumbsLayoutMap:b,ccAlightPoint:w}))}},{involvedNsData:{},flowSteps:[],sortedFlowSteps:[]});return i()({},o,{ccShiftIndexMap:function(e){var t={},n=0;return e.forEach(function(e,r,a){r?(e.x<a[r-1].x&&n++,t[e.id]=n):t[e.id]=n}),t}(o.sortedFlowSteps)})},b=function(e){return e+70*(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)},w=function(e,t){return t.namespacesList.reduce(function(t,n){var r=Object(s.f)(e,{namespace:n}).layoutSize;return r&&r.width>t?r.width:t},0)}},212:function(e,t,n){var r=n(213),a=n(214),o=n(215);e.exports=function(e){return r(e)||a(e)||o()}},213:function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},214:function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},215:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},693:function(e,t,n){var r=n(694);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(49)(r,a);r.locals&&(e.exports=r.locals)},694:function(e,t,n){(e.exports=n(48)(!1)).push([e.i,".CrumbsTab {\n  height: 100%;\n}\n.CrumbsTab .ant-collapse {\n  margin-left: -16px;\n  margin-right: -16px;\n  max-height: 100%;\n  overflow: auto;\n}\n",""])},704:function(e,t,n){"use strict";n.r(t);var r=n(4),a=n.n(r),o=n(0),c=n.n(o),u=n(65),i=n(254),s=(n(252),n(194)),l=(n(193),n(13)),d=n(7),f=n(179),p=n(219),m=(n(693),i.a.Panel),b=function(e,t,n){var r=[],a=t[e];return a?(Object.keys(a).forEach(function(t){r=r.concat((n[t]&&n[t].children||[]).filter(function(t){return t.data.params.flow===e}).map(function(e){return{crumbNodeLines:e.data.crumbNodeLines,file:n[t].data}}))}),r):r};t.default=Object(u.b)(function(e,t){var n=Object(d.c)(e),r=t.namespace,o=Object(d.a)(e,{namespace:r}),c=o.selectedCrumbedFlowKey,u=o.selectedCcFlowEdgeNodes,i=o.codeCrumbedFlowsMap,s=Object(f.a)(e,{currentSelectedCrumbedFlowKey:c,namespacesList:n}),p=s.involvedNsData,m=s.sortedFlowSteps;return c===l.NO_TRAIL_FLOW?{flowStepsFiles:b(c,i,p[r].codecrumbsLayoutMap)}:{flowStepsFiles:(u?[u.source,u.target]:m).map(function(e){return a()({},e,{file:p[e.namespace].codecrumbsLayoutMap[e.filePath].data})})}})(function(e){var t=e.language,n=e.flowStepsFiles;return c.a.createElement("div",{className:"CrumbsTab"},n.length?c.a.createElement(i.a,{bordered:!1,defaultActiveKey:Array(n.length).fill().map(function(e,t){return"".concat(t)})},n.map(function(e,n){return c.a.createElement(m,{header:"[".concat(void 0!==e.step?e.step:"*","] ").concat(e.file.path),key:e.crumbNodeLines.join(",")},c.a.createElement(p.default,{language:t,limitedHeight:!0,code:e.file.fileCode||"",crumbedLines:[e.crumbNodeLines]}))})):c.a.createElement(s.a,{message:"C-mon, my dear friend, select crumbs trail, what are you waiting for?",type:"info",showIcon:!0}))})}}]);