Files
INTUIA/Programa final/dist/PJM_IA/_internal/jupyterlab/static/7114.a44f4e4afe0f4cf18421.js
T

1 line
1.5 MiB
JavaScript
Raw Normal View History

2026-03-15 13:27:50 +00:00
(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7114],{62954:(n,e,t)=>{(function(e){if(true){n.exports=e()}else{var t}})((function(){var n,e,r;return function(){function n(e,t,r){function i(c,u){if(!t[c]){if(!e[c]){var o=undefined;if(!u&&o)return require(c,!0);if(a)return a(c,!0);var s=new Error("Cannot find module '"+c+"'");throw s.code="MODULE_NOT_FOUND",s}var f=t[c]={exports:{}};e[c][0].call(f.exports,(function(n){var t=e[c][1][n];return i(t||n)}),f,f.exports,n,e,t,r)}return t[c].exports}for(var a=undefined,c=0;c<r.length;c++)i(r[c]);return i}return n}()({1:[function(n,e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=function(){function n(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(n,r.key,r)}}return function(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}}();function i(n,e){if(!(n instanceof e)){throw new TypeError("Cannot call a class as a function")}}var a=function(){function n(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=t.defaultLayoutOptions,a=r===undefined?{}:r,u=t.algorithms,o=u===undefined?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:u,s=t.workerFactory,f=t.workerUrl;i(this,n);this.defaultLayoutOptions=a;this.initialized=false;if(typeof f==="undefined"&&typeof s==="undefined"){throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.")}var h=s;if(typeof f!=="undefined"&&typeof s==="undefined"){h=function n(e){return new Worker(e)}}var l=h(f);if(typeof l.postMessage!=="function"){throw new TypeError("Created worker does not provide"+" the required 'postMessage' function.")}this.worker=new c(l);this.worker.postMessage({cmd:"register",algorithms:o}).then((function(n){return e.initialized=true})).catch(console.err)}r(n,[{key:"layout",value:function n(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=t.layoutOptions,i=r===undefined?this.defaultLayoutOptions:r,a=t.logging,c=a===undefined?false:a,u=t.measureExecutionTime,o=u===undefined?false:u;if(!e){return Promise.reject(new Error("Missing mandatory parameter 'graph'."))}return this.worker.postMessage({cmd:"layout",graph:e,layoutOptions:i,options:{logging:c,measureExecutionTime:o}})}},{key:"knownLayoutAlgorithms",value:function n(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function n(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function n(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function n(){this.worker.terminate()}}]);return n}();t.default=a;var c=function(){function n(e){var t=this;i(this,n);if(e===undefined){throw new Error("Missing mandatory parameter 'worker'.")}this.resolvers={};this.worker=e;this.worker.onmessage=function(n){setTimeout((function(){t.receive(t,n)}),0)}}r(n,[{key:"postMessage",value:function n(e){var t=this.id||0;this.id=t+1;e.id=t;var r=this;return new Promise((function(n,i){r.resolvers[t]=function(e,t){if(e){r.convertGwtStyleError(e);i(e)}else{n(t)}};r.worker.postMessage(e)}))}},{key:"receive",value:function n(e,t){var r=t.data;var i=e.resolvers[r.id];if(i){delete e.resolvers[r.id];if(r.error){i(r.error)}else{i(null,r.data)}}}},{key:"terminate",value:function n(){if(this.worker.terminate){this.worker.terminate()}}},{key:"convertGwtStyleError",value:function n(e){if(!e){return}var t=e["__java$exception"];if(t){if(t.cause&&t.cause.backingJsObject){e.cause=t.cause.backingJsObject;this.convertGwtStyleError(e.cause)}delete e["__java$exception"]}}}]);return n}()},{}],2:[function(n,e,r){(function(n){(function(){"use strict";var t;if(typeof window!=="undefined")t=window;else if(typeof n!=="undefined")t=n;else if(typeof self!=="undefined")t=self;var i,a;var c,u,o;function s(){}function f(){}function h(){}function l(){}function b(){}function w(){}function d(){}function g(){}function v(){}f