Files
INTUIA/Programa final/_internal/share/jupyter/lab/static/3538.5ce64a6194b4409fce29.js
T

1 line
22 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([[3538],{13538:(t,n,e)=>{e.d(n,{diagram:()=>_t});var i=e(76235);var s=e(92935);function r(t,n){let e;if(n===undefined){for(const n of t){if(n!=null&&(e>n||e===undefined&&n>=n)){e=n}}}else{let i=-1;for(let s of t){if((s=n(s,++i,t))!=null&&(e>s||e===undefined&&s>=s)){e=s}}}return e}function o(t){return t.target.depth}function l(t){return t.depth}function c(t,n){return n-1-t.height}function a(t,n){return t.sourceLinks.length?t.depth:n-1}function u(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?r(t.sourceLinks,o)-1:0}function h(t,n){let e=0;if(n===undefined){for(let n of t){if(n=+n){e+=n}}}else{let i=-1;for(let s of t){if(s=+n(s,++i,t)){e+=s}}}return e}function f(t,n){let e;if(n===undefined){for(const n of t){if(n!=null&&(e<n||e===undefined&&n>=n)){e=n}}}else{let i=-1;for(let s of t){if((s=n(s,++i,t))!=null&&(e<s||e===undefined&&s>=s)){e=s}}}return e}function y(t){return function(){return t}}function d(t,n){return g(t.source,n.source)||t.index-n.index}function p(t,n){return g(t.target,n.target)||t.index-n.index}function g(t,n){return t.y0-n.y0}function _(t){return t.value}function x(t){return t.index}function k(t){return t.nodes}function m(t){return t.links}function v(t,n){const e=t.get(n);if(!e)throw new Error("missing: "+n);return e}function b({nodes:t}){for(const n of t){let t=n.y0;let e=t;for(const i of n.sourceLinks){i.y0=t+i.width/2;t+=i.width}for(const i of n.targetLinks){i.y1=e+i.width/2;e+=i.width}}}function w(){let t=0,n=0,e=1,i=1;let s=24;let o=8,l;let c=x;let u=a;let w;let L;let E=k;let A=m;let S=6;function M(){const t={nodes:E.apply(null,arguments),links:A.apply(null,arguments)};T(t);I(t);C(t);O(t);$(t);b(t);return t}M.update=function(t){b(t);return t};M.nodeId=function(t){return arguments.length?(c=typeof t==="function"?t:y(t),M):c};M.nodeAlign=function(t){return arguments.length?(u=typeof t==="function"?t:y(t),M):u};M.nodeSort=function(t){return arguments.length?(w=t,M):w};M.nodeWidth=function(t){return arguments.length?(s=+t,M):s};M.nodePadding=function(t){return arguments.length?(o=l=+t,M):o};M.nodes=function(t){return arguments.length?(E=typeof t==="function"?t:y(t),M):E};M.links=function(t){return arguments.length?(A=typeof t==="function"?t:y(t),M):A};M.linkSort=function(t){return arguments.length?(L=t,M):L};M.size=function(s){return arguments.length?(t=n=0,e=+s[0],i=+s[1],M):[e-t,i-n]};M.extent=function(s){return arguments.length?(t=+s[0][0],e=+s[1][0],n=+s[0][1],i=+s[1][1],M):[[t,n],[e,i]]};M.iterations=function(t){return arguments.length?(S=+t,M):S};function T({nodes:t,links:n}){for(const[i,s]of t.entries()){s.index=i;s.sourceLinks=[];s.targetLinks=[]}const e=new Map(t.map(((n,e)=>[c(n,e,t),n])));for(const[i,s]of n.entries()){s.index=i;let{source:t,target:n}=s;if(typeof t!=="object")t=s.source=v(e,t);if(typeof n!=="object")n=s.target=v(e,n);t.sourceLinks.push(s);n.targetLinks.push(s)}if(L!=null){for(const{sourceLinks:n,targetLinks:e}of t){n.sort(L);e.sort(L)}}}function I({nodes:t}){for(const n of t){n.value=n.fixedValue===undefined?Math.max(h(n.sourceLinks,_),h(n.targetLinks,_)):n.fixedValue}}function C({nodes:t}){const n=t.length;let e=new Set(t);let i=new Set;let s=0;while(e.size){for(const t of e){t.depth=s;for(const{target:n}of t.sourceLinks){i.add(n)}}if(++s>n)throw new Error("circular link");e=i;i=new Set}}function O({nodes:t}){const n=t.length;let e=new Set(t);let i=new Set;let s=0;while(e.size){for(const t of e){t.height=s;for(const{source:n}of t.targetLinks){i.add(n)}}if(++s>n)throw new Error("circular link");e=i;i=new Set}}function D({nodes:n}){const i=f(n,(t=>t.depth))+1;const r=(e-t-s)/(i-1);const o=new Array(i);for(const e of n){const n=Math.max(0,Math.min(i-1,Math.floor(u.call(null,e,i))));e.layer=n;e.x0=t+n*r;e.x1=e.x0+s;if(o[n])o[n].push(e);else o[n]=[e]}if(w)for(const t of o){t.sort(w)}return o}function P(t){const e=r(t,(t=>(i-n-(t.length-1)*l)/h(t,_)));for(const s of t){let t=n;for(const n of s){n.y0=t;n.y1=t+n.value*e;t=n.y1+l;for(const t of n.sourceLin