Files
INTUIA/Programa final/_internal/share/jupyter/lab/static/1017.67e7fc6c0221ce9cbeb7.js
T

1 line
12 KiB
JavaScript
Raw Normal View History

2026-03-15 13:27:50 +00:00
"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1017],{93498:(t,e,n)=>{n.d(e,{M:()=>c});var r=n(89523);var i=n(40295);var a=4;function o(t){return(0,i.A)(t,a)}const s=o;var d=n(8937);var l=n(78230);function c(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:h(t),edges:g(t)};if(!r.A(t.graph())){e.value=s(t.graph())}return e}function h(t){return d.A(t.nodes(),(function(e){var n=t.node(e);var i=t.parent(e);var a={v:e};if(!r.A(n)){a.value=n}if(!r.A(i)){a.parent=i}return a}))}function g(t){return d.A(t.edges(),(function(e){var n=t.edge(e);var i={v:e.v,w:e.w};if(!r.A(e.name)){i.name=e.name}if(!r.A(n)){i.value=n}return i}))}function f(t){var e=new Graph(t.options).setGraph(t.value);_.each(t.nodes,(function(t){e.setNode(t.v,t.value);if(t.parent){e.setParent(t.v,t.parent)}}));_.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}));return e}},71017:(t,e,n)=>{n.d(e,{r:()=>L});var r=n(29);var i=n(93498);var a=n(28768);var o=n(76235);var s=n(84416);var d=n(78258);var l=n(92935);let c={};let h={};let g={};const f=()=>{h={};g={};c={}};const u=(t,e)=>{o.l.trace("In isDecendant",e," ",t," = ",h[e].includes(t));if(h[e].includes(t)){return true}return false};const w=(t,e)=>{o.l.info("Decendants of ",e," is ",h[e]);o.l.info("Edge is ",t);if(t.v===e){return false}if(t.w===e){return false}if(!h[e]){o.l.debug("Tilt, ",e,",not in decendants");return false}return h[e].includes(t.v)||u(t.v,e)||u(t.w,e)||h[e].includes(t.w)};const p=(t,e,n,r)=>{o.l.warn("Copying children of ",t,"root",r,"data",e.node(t),r);const i=e.children(t)||[];if(t!==r){i.push(t)}o.l.warn("Copying (nodes) clusterId",t,"nodes",i);i.forEach((i=>{if(e.children(i).length>0){p(i,e,n,r)}else{const a=e.node(i);o.l.info("cp ",i," to ",r," with parent ",t);n.setNode(i,a);if(r!==e.parent(i)){o.l.warn("Setting parent",i,e.parent(i));n.setParent(i,e.parent(i))}if(t!==r&&i!==t){o.l.debug("Setting parent",i,t);n.setParent(i,t)}else{o.l.info("In copy ",t,"root",r,"data",e.node(t),r);o.l.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==r,"node!==clusterId",i!==t)}const s=e.edges(i);o.l.debug("Copying Edges",s);s.forEach((i=>{o.l.info("Edge",i);const a=e.edge(i.v,i.w,i.name);o.l.info("Edge data",a,r);try{if(w(i,r)){o.l.info("Copying as ",i.v,i.w,a,i.name);n.setEdge(i.v,i.w,a,i.name);o.l.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))}else{o.l.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",t)}}catch(s){o.l.error(s)}}))}o.l.debug("Removing node",i);e.removeNode(i)}))};const v=(t,e)=>{const n=e.children(t);let r=[...n];for(const i of n){g[i]=t;r=[...r,...v(i,e)]}return r};const y=(t,e)=>{o.l.trace("Searching",t);const n=e.children(t);o.l.trace("Searching children of id ",t,n);if(n.length<1){o.l.trace("This is a valid node",t);return t}for(const r of n){const n=y(r,e);if(n){o.l.trace("Found replacement for",t," => ",n);return n}}};const m=t=>{if(!c[t]){return t}if(!c[t].externalConnections){return t}if(c[t]){return c[t].id}return t};const x=(t,e)=>{if(!t||e>10){o.l.debug("Opting out, no graph ");return}else{o.l.debug("Opting in, graph ")}t.nodes().forEach((function(e){const n=t.children(e);if(n.length>0){o.l.warn("Cluster identified",e," Replacement id in edges: ",y(e,t));h[e]=v(e,t);c[e]={id:y(e,t),clusterData:t.node(e)}}}));t.nodes().forEach((function(e){const n=t.children(e);const r=t.edges();if(n.length>0){o.l.debug("Cluster identified",e,h);r.forEach((t=>{if(t.v!==e&&t.w!==e){const n=u(t.v,e);const r=u(t.w,e);if(n^r){o.l.warn("Edge: ",t," leaves cluster ",e);o.l.warn("Decendants of XXX ",e,": ",h[e]);c[e].externalConnections=true}}}))}else{o.l.debug("Not a cluster ",e,h)}}));t.edges().forEach((function(e){const n=t.edge(e);o.l.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e));o.l.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let r=e.v;let i=e.w;o.l.warn("Fix XXX",c,"ids:",e.v,e.w,"Translating: ",c[e.v]," --- ",c[e.w]);if(c[e.v]&&c[e.w]&&c[e.v]===c[e.w]){o.l.warn("Fixing and trixing li